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

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

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


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

 Copyright Google LLC All Rights Reserved.

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

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

 (The MIT License)

 Copyright (C) 2014 by Vitaly Puzrin

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

 Copyright (c) 2014, John MacFarlane

 All rights reserved.

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

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

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

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

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


 The MIT License (MIT)

 Copyright (c) 2015-present Dan Abramov

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

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

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

 The MIT License (MIT)

 Copyright (c) 2016 Denis Rul

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

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

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

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

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

 Copyright Google Inc. All Rights Reserved.

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

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

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

Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var ea,ha,aaa,eaa,ka,oa,faa,xa,Aa,gaa,haa,iaa,Ca,laa,maa,Ha,paa,uaa,xaa,zaa,Caa,Daa,Faa,Iaa,Jaa,Laa,hb,nb,ob,Oaa,Paa,rb,Qaa,sb,Taa,Uaa,Cb,Hb,Waa,aba,bba,dba,eba,fba,hba,cba,Rb,iba,kba,lba,nba,sba,hc,uba,vba,wba,ec,pba,cc,qba,rba,Aba,Bba,Cba,mc,Eba,Fba,Gba,Hba,Jba,Kba,Nba,Pba,Rba,uc,Wba,Vba,zc,Xba,bca,Bc,cca,Cc,eca,Iba,Dc,Ec,Gc,fca,gca,Ic,ica,jca,lca,nca,mca,oca,pca,qca,Hc,Kc,sca,uca,wca,Aca,Wc,Fca,xca,Gca,Ica,Jca,Qca,Mca,Tca,Vca,Wca,Yca,Zca,cda,hda,nda,rda,xda,td,zda,Bda,Cda,Ad,Bd,Dd,Ed,Hd,Ld,Nd,
Pd,Jda,Mda,Nda,Qda,Tda,ce,Uda,ee,fe,ge,he,Wda,Xda,Yda,Zda,$da,bea,cea,dea,eea,gea,le,ke,hea,iea,jea,lea,kea,mea,oea,pea,te,ue,ve,we,ze,rea,Ae,tea,yea,Ce,zea,Aea,Bea,Ee,Cea,Dea,Eea,Fe,Hea,He,Kea,Lea,Ie,Nea,Mea,Oea,Pea,Qea,Rea,Me,Sea,Tea,Ne,Uea,Vea,Oe,Pe,Qe,Re,Wea,Yea,Xea,Se,$ea,afa,bfa,Ue,Xe,Ze,$e,af,bf,cfa,dfa,efa,ffa,gfa,hfa,ifa,jfa,kfa,lfa,mfa,nfa,df,ofa,pfa,qfa,hf,jf,rfa,ufa,vfa,wfa,yfa,zfa,Afa,Efa,Ffa,Gfa,Hfa,Ifa,Jfa,Kfa,Ofa,mf,Pfa,Qfa,nf,Rfa,Sfa,Tfa,Ufa,Wfa,hga,iga,jga,mga,nga,uf,oga,rga,uga,
vga,wga,xga,yga,zga,Aga,Bga,Dga,Ega,sga,Fga,Gga,Hga,Iga,Jga,Kga,Lga,Mga,Nga,Sga,Qga,Vga,Tga,Uga,Yga,Zga,$ga,Wga,bha,Xga,dha,Kf,Lf,Of,eha,gha,hha,kha,uha,mha,lha,oha,qha,nha,Aha,xha,Bha,Cha,Dha,Eha,Fha,Hha,Gha,Jha,Kha,Lha,Mha,Oha,Qha,Rha,Sha,Uha,Tha,fia,gia,Sf,hia,kia,lia,mia,nia,oia,qia,ria,sia,ag,tia,zia,dg,eg,Dia,Fia,Pia,Yia,jg,aja,eja,cja,dja,pg,fja,gja,ija,jja,kja,lja,mja,nja,oja,qja,rja,tja,zg,vja,wja,xja,yja,zja,Aja,Bja,Dja,Fja,Eja,Ng,Pg,Pja,Sg,Tja,Tg,Vg,Uja,Wg,Wja,Vja,dka,eka,gka,hka,ika,kka,
nka,oka,$g,ska,vka,wka,xka,yka,zka,uka,rka,qka,bh,pka,Aka,Cka,Eka,Hka,eh,Jka,Lka,Mka,Nka,Oka,ih,Pka,Rka,Qka,Ska,Uka,lh,Xka,Zka,rla,wla,xla,ph,qh,rh,yla,Cla,uh,xh,Gla,Ah,Jla,Mla,Ola,Pla,Qla,Bh,Rla,Sla,Tla,Vla,Wla,Xla,Yla,$la,Dh,ama,bma,Fh,Jh,ema,fma,gma,Mh,jma,kma,mma,Sh,sma,tma,uma,vma,wma,Wh,Cma,Xh,Yh,Zh,Dma,ai,Ema,Fma,Gma,Hma,Jma,Kma,Ima,Mma,Lma,Nma,Rma,ci,Qma,Sma,Oma,Tma,fi,Wma,Uma,Xma,Yma,Zma,ana,$ma,bna,ena,cna,gna,mna,ona,qna,tna,sna,rna,una,xna,zna,yna,Ana,Cna,Dna,ri,Hna,ui,Kna,Jna,Lna,wi,
xi,Mna,yi,Nna,Pna,Rna,Una,Wna,Vna,Ui,Xna,Qna,doa,eoa,foa,Yi,goa,ioa,joa,cj,loa,ooa,noa,soa,toa,uoa,voa,xoa,Coa,yoa,Aoa,Boa,Doa,Foa,Eoa,Hoa,Goa,kj,Ioa,Koa,Loa,Poa,sj,tj,Qoa,Roa,uj,Voa,yj,zj,Aj,Zoa,Bj,bpa,Ej,cpa,dpa,epa,fpa,Hj,gpa,ipa,jpa,lpa,npa,qpa,spa,Qj,tpa,upa,vpa,wpa,xpa,ypa,zpa,Apa,Tj,Dpa,Epa,Fpa,Gpa,Hpa,Ipa,Jpa,Kpa,Lpa,Mpa,Npa,Opa,Ppa,bk,aqa,bqa,ck,dk,ek,cqa,dqa,eqa,fqa,gqa,hqa,iqa,nqa,oqa,pqa,qqa,rqa,ik,kk,lk,mk,qk,rk,tk,tqa,vk,vqa,wk,wqa,xqa,xk,yqa,zqa,Aqa,Jqa,Lqa,Qqa,Uqa,Tqa,Kqa,Vqa,Yqa,
lra,dra,qra,fra,pra,rra,Dk,tra,Fk,vra,wra,yra,zra,Ara,Cra,Ik,Era,Fra,Gra,Hra,Ira,Jra,Kra,Dra,Nra,Ora,Pra,Kk,Vra,Wra,Ura,Yra,Zra,asa,bsa,$ra,isa,ksa,msa,osa,Wk,usa,tsa,zsa,Bsa,Csa,Dsa,Esa,Fsa,Gsa,hl,Psa,Rsa,Nsa,Msa,Qsa,Isa,Tsa,dta,Wsa,Xsa,Ysa,nta,pta,mta,vta,lta,Hsa,uta,Vsa,cta,ota,Ssa,Ksa,Jsa,Lsa,Osa,kta,xl,Kta,Nta,Mta,Ota,Pta,Qta,Zta,eua,fua,Jl,hua,kua,oua,nua,qua,rua,uua,tua,vua,xua,Ul,yua,zua,Bua,Aua,Wl,Gua,Fua,Eua,Kua,Hua,Lua,Jua,Mua,Yl,Nua,Rua,Pua,Qua,Tua,Uua,Wua,bm,Zua,Xua,$ua,dva,eva,hva,jva,
fm,gm,nva,ova,hm,im,pva,jm,km,qva,lm,rva,mm,sva,tva,om,uva,vva,wva,xva,yva,Ava,zva,Cva,Fva,Eva,Gva,Hva,Bva,Iva,Lva,Kva,Dva,Mva,Nva,um,Ova,Qva,Pva,Rva,Sva,Uva,Tva,Vva,wm,Xva,Yva,Wva,$va,awa,bwa,fwa,iwa,nwa,rwa,xm,uwa,vwa,ym,wwa,Cm,Dm,Cwa,Am,Gm,Dwa,Ewa,Gwa,Hwa,Jwa,Lwa,Mwa,Nwa,Owa,Rwa,Wwa,Uwa,Qwa,Xwa,Ywa,Km,Vwa,Zwa,Nm,$wa,axa,bxa,cxa,gxa,dxa,fxa,kxa,lxa,qxa,pxa,txa,zxa,Axa,Cxa,Exa,Fxa,Hxa,Ixa,Jxa,Lxa,Mxa,Nxa,Qxa,Uxa,Vxa,Rxa,Xxa,Zxa,Yxa,Wxa,$xa,bya,cya,dya,eya,fya,Zm,$m,cn,fn,iya,jya,lya,oya,gn,hn,pya,
jn,sya,tya,uya,ln,zya,Dya,Fya,Gya,Hya,Iya,Jya,Mya,nn,Nya,Qya,on,Rya,Uya,Vya,Wya,Tya,bza,eza,cza,fza,iza,kza,mza,qza,pza,uza,tn,vza,wza,un,xza,vn,yza,zza,Aza,Cza,Bza,Dza,Eza,Fza,Gza,Nza,Pza,Rza,Qza,Kza,Iza,Tza,Vza,$za,aAa,gAa,iAa,zn,jAa,lAa,mAa,oAa,sAa,uAa,wAa,xAa,yAa,zAa,EAa,AAa,IAa,JAa,LAa,Cn,NAa,OAa,PAa,QAa,RAa,SAa,TAa,VAa,WAa,Gn,YAa,ZAa,aBa,Hn,$Aa,cBa,gBa,Kn,hBa,iBa,jBa,mBa,nBa,kBa,pBa,tBa,xBa,yBa,Tn,zBa,DBa,HBa,Xn,KBa,IBa,JBa,MBa,OBa,PBa,TBa,WBa,VBa,UBa,XBa,ZBa,$Ba,eCa,aCa,fCa,hCa,gCa,nCa,qCa,
sCa,uCa,yCa,FCa,HCa,ICa,LCa,NCa,PCa,Go,Po,ZCa,YCa,aDa,bDa,dDa,cDa,eDa,fDa,Qo,Rqa,WCa,$Ca,XCa,No,iDa,jDa,kDa,mDa,Zo,nDa,bp,oDa,pDa,qDa,rDa,ep,sDa,vDa,xDa,yDa,FDa,HDa,IDa,JDa,LDa,MDa,np,ODa,PDa,QDa,RDa,SDa,TDa,VDa,XDa,ZDa,$Da,fEa,dEa,gEa,jEa,kEa,vp,lEa,nEa,oEa,rEa,tEa,sEa,vEa,xEa,yp,zp,zEa,yEa,AEa,BEa,DEa,FEa,EEa,GEa,CEa,HEa,IEa,JEa,KEa,LEa,MEa,NEa,OEa,PEa,SEa,REa,TEa,VEa,UEa,Ap,WEa,ZEa,dFa,XEa,eFa,gFa,hFa,iFa,Ip,rFa,sFa,uFa,vFa,Lp,zFa,EFa,Mp,IFa,HFa,JFa,Pp,KFa,LFa,MFa,OFa,PFa,QFa,RFa,TFa,UFa,dGa,$Fa,
bGa,fGa,eGa,gGa,hGa,jGa,lGa,nGa,pGa,zGa,CGa,EGa,FGa,GGa,HGa,IGa,KGa,LGa,OGa,PGa,QGa,RGa,SGa,TGa,UGa,VGa,YGa,ZGa,bq,cq,dq,eq,$Ga,fq,aHa,dHa,gHa,jHa,mHa,pHa,nHa,DHa,EHa,vHa,AHa,qHa,yHa,oHa,wHa,cHa,GHa,tHa,HHa,iHa,fHa,IHa,JHa,KHa,lHa,rHa,uHa,MHa,OHa,QHa,UHa,VHa,rq,cIa,bIa,gIa,jIa,lIa,nIa,oIa,rIa,tIa,sIa,wIa,yIa,FIa,DIa,AIa,EIa,BIa,GIa,KIa,Dq,TIa,QIa,VIa,WIa,YIa,Eq,$Ia,cJa,dJa,eJa,fJa,nJa,mJa,Mq,Sq,uJa,vJa,Uq,wJa,xJa,yJa,zJa,AJa,BJa,CJa,DJa,EJa,FJa,GJa,HJa,IJa,JJa,KJa,Vq,LJa,MJa,NJa,OJa,PJa,QJa,RJa,SJa,
TJa,UJa,VJa,WJa,Xq,YJa,$Ja,bKa,eKa,hKa,iKa,jKa,lKa,nKa,oKa,pKa,rKa,vKa,tKa,wKa,xKa,yKa,BKa,GKa,HKa,JKa,nr,LKa,lr,NKa,OKa,or,PKa,RKa,SKa,TKa,pr,XKa,ZKa,eLa,dLa,gLa,hLa,vr,wr,iLa,kLa,mLa,nLa,pLa,qLa,lLa,rLa,wLa,ALa,BLa,xr,CLa,DLa,ILa,ELa,GLa,HLa,OLa,KLa,PLa,QLa,RLa,wMa,xMa,yMa,zMa,AMa,BMa,DMa,FMa,GMa,HMa,IMa,KMa,MMa,PMa,TMa,WMa,YMa,aNa,Er,bNa,cNa,dNa,eNa,fNa,hNa,iNa,jNa,kNa,lNa,mNa,nNa,oNa,pNa,qNa,rNa,tNa,sNa,wNa,yNa,zNa,Hr,ANa,BNa,ENa,DNa,Jr,KNa,HNa,Lr,LNa,MNa,NNa,ONa,PNa,TNa,SNa,RNa,WNa,VNa,aOa,XNa,
Sr,ZNa,hOa,dOa,eOa,fOa,gOa,iOa,kOa,jOa,Tr,Ur,rOa,mOa,qOa,pOa,nOa,oOa,uOa,vOa,xOa,wOa,BOa,AOa,EOa,FOa,HOa,IOa,GOa,JOa,LOa,KOa,NOa,QOa,bs,ROa,SOa,VOa,$Oa,ds,aPa,cPa,iPa,es,kPa,oPa,sPa,rPa,pPa,qPa,js,xPa,uPa,vPa,yPa,APa,zPa,DPa,EPa,GPa,HPa,IPa,JPa,KPa,MPa,NPa,us,PPa,ws,xs,QPa,UPa,VPa,Cs,WPa,YPa,gQa,hQa,bQa,fQa,cQa,dQa,lQa,mQa,kQa,nQa,oQa,sQa,pQa,tQa,uQa,Ks,wQa,xQa,yQa,vQa,AQa,zQa,Ls,EQa,LQa,MQa,NQa,OQa,PQa,QQa,UQa,SQa,TQa,RQa,WQa,YQa,ZQa,bRa,cRa,eRa,Qs,fRa,gRa,hRa,jRa,kRa,lRa,mRa,nRa,pRa,rRa,sRa,vRa,
uRa,xRa,wRa,yRa,zRa,ARa,Us,CRa,MRa,KRa,PRa,QRa,WRa,XRa,YRa,ZRa,$Ra,aSa,dSa,eSa,fSa,gSa,jSa,kSa,lSa,mSa,nSa,oSa,qSa,rSa,sSa,tSa,uSa,wSa,xSa,ySa,ASa,CSa,ESa,ISa,HSa,GSa,FSa,pt,KSa,LSa,MSa,NSa,QSa,OSa,RSa,st,SSa,PSa,TSa,USa,VSa,WSa,XSa,YSa,vt,$Sa,ZSa,bTa,dTa,At,eTa,iTa,Ct,Dt,jTa,kTa,lTa,mTa,nTa,pTa,qTa,rTa,sTa,vTa,uTa,ATa,tTa,Et,BTa,wTa,zTa,ETa,GTa,LTa,JTa,KTa,ITa,HTa,MTa,NTa,OTa,PTa,QTa,Lt,Mt,VTa,STa,RTa,TTa,fUa,dUa,UTa,cUa,mUa,nUa,oUa,Zt,pUa,qUa,rUa,uUa,wUa,yUa,AUa,BUa,CUa,GUa,FUa,HUa,JUa,fu,MUa,NUa,
OUa,PUa,hu,iu,SUa,VUa,aVa,eVa,fVa,gVa,hVa,iVa,kVa,mVa,lVa,nVa,oVa,pVa,qVa,rVa,sVa,pu,tVa,BVa,CVa,yVa,xVa,AVa,zVa,HVa,IVa,JVa,KVa,LVa,OVa,MVa,NVa,QVa,SVa,UVa,WVa,YVa,bWa,cWa,dWa,eWa,fWa,iWa,hWa,gWa,uu,jWa,mWa,oWa,pWa,qWa,zu,vWa,wWa,xWa,zWa,yWa,AWa,CWa,GWa,HWa,IWa,KWa,LWa,JWa,OWa,RWa,SWa,TWa,VWa,UWa,YWa,$Wa,aXa,bXa,gXa,hXa,iXa,jXa,kXa,nXa,mXa,lXa,qXa,sXa,rXa,Mu,tXa,uXa,yXa,xXa,zXa,AXa,BXa,CXa,FXa,HXa,IXa,JXa,KXa,LXa,MXa,NXa,PXa,OXa,QXa,SXa,RXa,TXa,UXa,VXa,WXa,YXa,ZXa,$Xa,aYa,bYa,cYa,dYa,fYa,gYa,eYa,
$u,iYa,jYa,mYa,lYa,nYa,qYa,rYa,oYa,wYa,yYa,AYa,BYa,CYa,EYa,FYa,KYa,LYa,QYa,SYa,TYa,WYa,XYa,YYa,ZYa,$Ya,aZa,cZa,dZa,fZa,hZa,jZa,nZa,lZa,kZa,mZa,oZa,rZa,pZa,qZa,tZa,wZa,xZa,yZa,AZa,BZa,CZa,EZa,GZa,DZa,HZa,IZa,JZa,KZa,LZa,MZa,NZa,OZa,PZa,RZa,QZa,SZa,TZa,UZa,VZa,WZa,XZa,YZa,ZZa,b_a,c_a,d_a,$Za,a_a,g_a,i_a,j_a,k_a,l_a,m_a,o_a,p_a,q_a,r_a,s_a,t_a,u_a,iv,v_a,w_a,kv,x_a,y_a,z_a,A_a,B_a,C_a,F_a,G_a,R_a,N_a,Q_a,S_a,P_a,sv,T_a,U_a,W_a,Z_a,Y_a,$_a,a0a,tv,vv,c0a,d0a,yv,zv,e0a,f0a,j0a,m0a,Cv,Dv,n0a,o0a,Ev,p0a,
q0a,r0a,s0a,u0a,v0a,x0a,C0a,B0a,A0a,D0a,E0a,G0a,H0a,J0a,K0a,L0a,M0a,N0a,Q0a,R0a,T0a,U0a,V0a,W0a,Y0a,Z0a,$0a,b1a,c1a,d1a,f1a,g1a,i1a,j1a,m1a,o1a,q1a,p1a,s1a,t1a,u1a,v1a,w1a,y1a,z1a,A1a,F1a,G1a,H1a,I1a,Nv,Pv,Ov,L1a,M1a,N1a,O1a,R1a,Q1a,T1a,U1a,V1a,X1a,a2a,c2a,d2a,e2a,Rv,f2a,Sv,i2a,j2a,k2a,l2a,m2a,n2a,p2a,r2a,t2a,w2a,x2a,Tv,Uv,B2a,z2a,Vv,E2a,C2a,F2a,Xv,H2a,I2a,J2a,M2a,O2a,Yv,Q2a,R2a,S2a,T2a,U2a,V2a,W2a,$2a,a3a,d3a,b3a,c3a,e3a,f3a,j3a,g3a,i3a,k3a,l3a,m3a,p3a,q3a,r3a,s3a,t3a,z3a,y3a,F3a,I3a,fw,J3a,jia,
K3a,L3a,N3a,P3a,Q3a,X3a,Y3a,kw,Z3a,$3a,a4a,b4a,c4a,e4a,g4a,d4a,f4a,j4a,i4a,l4a,m4a,n4a,o4a,p4a,q4a,r4a,s4a,w4a,z4a,x4a,A4a,B4a,D4a,G4a,C4a,nw,I4a,ow,J4a,K4a,qw,M4a,L4a,N4a,O4a,Q4a,R4a,T4a,U4a,V4a,W4a,X4a,Z4a,b5a,e5a,h5a,g5a,i5a,j5a,m5a,w5a,q5a,y5a,z5a,B5a,C5a,E5a,F5a,G5a,H5a,I5a,J5a,K5a,M5a,P5a,Q5a,R5a,S5a,V5a,U5a,Z5a,$5a,a6a,b6a,d6a,c6a,f6a,k6a,l6a,m6a,n6a,o6a,Jw,q6a,Nw,s6a,u6a,v6a,A6a,C6a,G6a,I6a,J6a,L6a,M6a,N6a,P6a,R6a,S6a,V6a,X6a,$6a,Z6a,Y6a,Tw,b7a,a7a,c7a,d7a,e7a,f7a,g7a,h7a,i7a,k7a,l7a,m7a,
o7a,r7a,n7a,p7a,s7a,t7a,u7a,v7a,x7a,y7a,G7a,H7a,I7a,J7a,K7a,N7a,$w,T7a,U7a,V7a,W7a,X7a,ax,Og,e8a,dx,f8a,l8a,k8a,ex,n8a,nea;_.da=function(a,b){if(Error.captureStackTrace)Error.captureStackTrace(this,_.da);else{var c=Error().stack;c&&(this.stack=c)}a&&(this.message=String(a));b!==void 0&&(this.cause=b)};
ea=function(a){return(a&192)!==128};
ha=function(){throw Error("B");};
aaa=function(a,b){b=String.fromCharCode.apply(null,b);return a==null?b:a+b};
eaa=function(a){var b=!1;b=b===void 0?!1:b;if(baa){if(b&&(caa?!a.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(a)))throw Error("C");a=(daa||(daa=new TextEncoder)).encode(a)}else{for(var c=0,d=new Uint8Array(3*a.length),e=0;e<a.length;e++){var g=a.charCodeAt(e);if(g<128)d[c++]=g;else{if(g<2048)d[c++]=g>>6|192;else{if(g>=55296&&g<=57343){if(g<=56319&&e<a.length){var k=a.charCodeAt(++e);if(k>=56320&&k<=57343){g=(g-55296)*1024+k-56320+65536;d[c++]=g>>18|
240;d[c++]=g>>12&63|128;d[c++]=g>>6&63|128;d[c++]=g&63|128;continue}else e--}if(b)throw Error("C");g=65533}d[c++]=g>>12|224;d[c++]=g>>6&63|128}d[c++]=g&63|128}}a=c===d.length?d:d.subarray(0,c)}return a};
ka=function(a){_.ja.setTimeout(function(){throw a;},0)};
_.na=function(a,b){return a.lastIndexOf(b,0)==0};
oa=function(a,b){var c=a.length-b.length;return c>=0&&a.indexOf(b,c)==c};
_.qa=function(a){return/^[\s\xa0]*$/.test(a)};
_.ra=function(a,b){return a.indexOf(b)!=-1};
_.ta=function(a,b){return _.ra(a.toLowerCase(),b.toLowerCase())};
_.ua=function(){var a=_.ja.navigator;return a&&(a=a.userAgent)?a:""};
faa=function(a){if(!va||!wa)return!1;for(var b=0;b<wa.brands.length;b++){var c=wa.brands[b].brand;if(c&&_.ra(c,a))return!0}return!1};
xa=function(a){return _.ra(_.ua(),a)};
Aa=function(){return va?!!wa&&wa.brands.length>0:!1};
gaa=function(){return Aa()?!1:xa("Opera")};
haa=function(){return Aa()?!1:xa("Trident")||xa("MSIE")};
iaa=function(){return Aa()?faa("Microsoft Edge"):xa("Edg/")};
Ca=function(){return xa("Firefox")||xa("FxiOS")};
_.jaa=function(){return xa("Safari")&&!(_.Ea()||(Aa()?0:xa("Coast"))||gaa()||(Aa()?0:xa("Edge"))||iaa()||(Aa()?faa("Opera"):xa("OPR"))||Ca()||xa("Silk")||xa("Android"))};
_.Ea=function(){return Aa()?faa("Chromium"):(xa("Chrome")||xa("CriOS"))&&!(Aa()?0:xa("Edge"))||xa("Silk")};
_.kaa=function(){return xa("Android")&&!(_.Ea()||Ca()||gaa()||xa("Silk"))};
laa=function(a){var b={};a.forEach(function(c){b[c[0]]=c[1]});
return function(c){return b[c.find(function(d){return d in b})]||""}};
maa=function(a){var b=_.ua();if(a==="Internet Explorer"){if(haa())if((a=/rv: *([\d\.]*)/.exec(b))&&a[1])b=a[1];else{a="";var c=/MSIE +([\d\.]+)/.exec(b);if(c&&c[1])if(b=/Trident\/(\d.\d)/.exec(b),c[1]=="7.0")if(b&&b[1])switch(b[1]){case "4.0":a="8.0";break;case "5.0":a="9.0";break;case "6.0":a="10.0";break;case "7.0":a="11.0"}else a="7.0";else a=c[1];b=a}else b="";return b}var d=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");c=[];for(var e;e=d.exec(b);)c.push([e[1],e[2],e[3]||void 0]);
b=laa(c);switch(a){case "Opera":if(gaa())return b(["Version","Opera"]);if(Aa()?faa("Opera"):xa("OPR"))return b(["OPR"]);break;case "Microsoft Edge":if(Aa()?0:xa("Edge"))return b(["Edge"]);if(iaa())return b(["Edg"]);break;case "Chromium":if(_.Ea())return b(["Chrome","CriOS","HeadlessChrome"])}return a==="Firefox"&&Ca()||a==="Safari"&&_.jaa()||a==="Android Browser"&&_.kaa()||a==="Silk"&&xa("Silk")?(b=c[2])&&b[1]||"":""};
_.naa=function(a){if(Aa()&&a!=="Silk"){var b=wa.brands.find(function(c){return c.brand===a});
if(!b||!b.version)return NaN;b=b.version.split(".")}else{b=maa(a);if(b==="")return NaN;b=b.split(".")}return b.length===0?NaN:Number(b[0])};
Ha=function(){return va?!!wa&&!!wa.platform:!1};
_.oaa=function(){return Ha()?wa.platform==="Android":xa("Android")};
paa=function(){return xa("iPhone")&&!xa("iPod")&&!xa("iPad")};
_.Ia=function(){return paa()||xa("iPad")||xa("iPod")};
_.qaa=function(){return Ha()?wa.platform==="macOS":xa("Macintosh")};
_.raa=function(){return Ha()?wa.platform==="Windows":xa("Windows")};
_.saa=function(){return Ha()?wa.platform==="Chrome OS":xa("CrOS")};
_.Ja=function(a){return a[a.length-1]};
_.Ka=function(a,b,c){b=_.taa(a,b,c);return b<0?null:typeof a==="string"?a.charAt(b):a[b]};
_.taa=function(a,b,c){for(var d=a.length,e=typeof a==="string"?a.split(""):a,g=0;g<d;g++)if(g in e&&b.call(c,e[g],g,a))return g;return-1};
uaa=function(a){for(var b=_.Ma,c=typeof a==="string"?a.split(""):a,d=a.length-1;d>=0;d--)if(d in c&&b.call(void 0,c[d],d,a))return d;return-1};
_.Pa=function(a,b){return _.Na(a,b)>=0};
_.vaa=function(a,b){_.Pa(a,b)||a.push(b)};
_.Qa=function(a,b){b=_.Na(a,b);var c;(c=b>=0)&&_.waa(a,b);return c};
_.waa=function(a,b){Array.prototype.splice.call(a,b,1)};
_.Ra=function(a){var b=a.length;if(b>0){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]};
_.Wa=function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(_.Sa(d)){var e=a.length||0,g=d.length||0;a.length=e+g;for(var k=0;k<g;k++)a[e+k]=d[k]}else a.push(d)}};
_.yaa=function(a,b,c,d){Array.prototype.splice.apply(a,xaa(arguments,1))};
xaa=function(a,b,c){return arguments.length<=2?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};
zaa=function(a,b){b=b||a;for(var c=0,d=0,e={};d<a.length;){var g=a[d++],k=_.$a(g)?"o"+_.ab(g):(typeof g).charAt(0)+g;Object.prototype.hasOwnProperty.call(e,k)||(e[k]=!0,b[c++]=g)}b.length=c};
_.Baa=function(a,b,c){c=c||_.Aaa;for(var d=0,e=a.length,g;d<e;){var k=d+(e-d>>>1);var m=c(b,a[k]);m>0?d=k+1:(e=k,g=!m)}return g?d:-d-1};
_.cb=function(a,b,c){if(!_.Sa(a)||!_.Sa(b)||a.length!=b.length)return!1;var d=a.length;c=c||Caa;for(var e=0;e<d;e++)if(!c(a[e],b[e]))return!1;return!0};
_.Aaa=function(a,b){return a>b?1:a<b?-1:0};
Caa=function(a,b){return a===b};
Daa=function(a,b,c){b=Array.prototype.splice.call(a,b,1);Array.prototype.splice.call(a,c,0,b[0])};
Faa=function(a){return Eaa[a]||""};
Iaa=function(a){if(!Gaa)return _.db(a);a=Haa.test(a)?a.replace(Haa,Faa):a;a=atob(a);for(var b=new Uint8Array(a.length),c=0;c<a.length;c++)b[c]=a.charCodeAt(c);return b};
Jaa=function(a,b){a.__closure__error__context__984382||(a.__closure__error__context__984382={});a.__closure__error__context__984382.severity=b};
_.eb=function(a){a=Error(a);Jaa(a,"warning");return a};
Laa=function(a,b){if(a!=null){var c;var d=(c=Kaa)!=null?c:Kaa={};c=d[a]||0;c>=b||(d[a]=c+1,a=Error(),Jaa(a,"incident"),ka(a))}};
hb=function(a,b,c){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(c===void 0?0:c)&&Symbol.for&&a?Symbol.for(a):a!=null?Symbol(a):Symbol():b};
nb=function(a,b){jb||_.lb in a||Maa(a,Naa);a[_.lb]|=b};
ob=function(a,b){jb||_.lb in a||Maa(a,Naa);a[_.lb]=b};
Oaa=function(a){a[_.lb]&=-3};
Paa=function(a){if(4&a)return 2048&a?2048:4096&a?4096:0};
rb=function(a){nb(a,34);return a};
Qaa=function(a){nb(a,32);return a};
sb=function(a,b){return b===void 0?a.copyOnWrite!==Raa&&!!(2&(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.lb]|0)):!!(2&b)&&a.copyOnWrite!==Raa};
_.yb=function(a,b){if(a!=null)if(typeof a==="string")a=a?new ub(a,vb):_.wb();else if(a.constructor!==ub)if(Saa&&a!=null&&a instanceof Uint8Array)a=a.length?new ub(new Uint8Array(a),vb):_.wb();else{if(!b)throw Error();a=void 0}return a};
Taa=function(a,b){if(typeof b!=="number"||b<0||b>=a.length)throw Error();};
Uaa=function(a,b,c){var d=b&512?0:-1,e=a.length;if(b&64)b&=256;else if(b=!!e)b=a[e-1],b=b!=null&&typeof b==="object"&&b.constructor===Object;for(var g=e+(b?-1:0),k=0;k<g;k++)c(k-d,a[k]);if(b){a=a[e-1];for(var m in a)!isNaN(m)&&c(+m,a[m])}};
Cb=function(a){return a&512?Bb:void 0};
_.Eb=function(){return typeof BigInt==="function"};
_.Gb=function(a){return a};
Hb=function(a){a.isGuard_doNotManuallySetPrettyPlease=!0;return a};
Waa=function(){var a=Vaa;return Hb(function(b){for(var c in a)if(b===a[c]&&!/^[0-9]+$/.test(c))return!0;return!1})};
_.Ib=function(a){var b=a;if(Xaa(b)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(b))throw Error(String(b));}else if(Yaa(b)&&!Number.isSafeInteger(b))throw Error(String(b));return Zaa?BigInt(a):a=$aa(a)?a?"1":"0":Xaa(a)?a.trim()||"0":String(a)};
aba=function(a,b){if(a.length>b.length)return!1;if(a.length<b.length||a===b)return!0;for(var c=0;c<a.length;c++){var d=a[c],e=b[c];if(d>e)return!1;if(d<e)return!0}};
bba=function(a){var b=a>>>0;_.Jb=b;_.Kb=(a-b)/4294967296>>>0};
_.Lb=function(a){if(a<0){bba(-a);var b=_.h(cba(_.Jb,_.Kb));a=b.next().value;b=b.next().value;_.Jb=a>>>0;_.Kb=b>>>0}else bba(a)};
dba=function(a,b){var c=b*4294967296+(a>>>0);return Number.isSafeInteger(c)?c:_.Nb(a,b)};
eba=function(a,b){var c=b&2147483648;c&&(a=~a+1>>>0,b=~b>>>0,a==0&&(b=b+1>>>0));a=dba(a,b);return typeof a==="number"?c?-a:a:c?"-"+a:a};
_.Nb=function(a,b){b>>>=0;a>>>=0;if(b<=2097151)var c=""+(4294967296*b+a);else _.Eb()?c=""+(BigInt(b)<<BigInt(32)|BigInt(a)):(c=(a>>>24|b<<8)&16777215,b=b>>16&65535,a=(a&16777215)+c*6777216+b*6710656,c+=b*8147497,b*=2,a>=1E7&&(c+=a/1E7>>>0,a%=1E7),c>=1E7&&(b+=c/1E7>>>0,c%=1E7),c=b+fba(c)+fba(a));return c};
fba=function(a){a=String(a);return"0000000".slice(a.length)+a};
_.gba=function(a,b){b&2147483648?_.Eb()?a=""+(BigInt(b|0)<<BigInt(32)|BigInt(a>>>0)):(b=_.h(cba(a,b)),a=b.next().value,b=b.next().value,a="-"+_.Nb(a,b)):a=_.Nb(a,b);return a};
hba=function(a){if(a.length<16)_.Lb(Number(a));else if(_.Eb())a=BigInt(a),_.Jb=Number(a&BigInt(4294967295))>>>0,_.Kb=Number(a>>BigInt(32)&BigInt(4294967295));else{var b=+(a[0]==="-");_.Kb=_.Jb=0;for(var c=a.length,d=b,e=(c-b)%6+b;e<=c;d=e,e+=6)d=Number(a.slice(d,e)),_.Kb*=1E6,_.Jb=_.Jb*1E6+d,_.Jb>=4294967296&&(_.Kb+=Math.trunc(_.Jb/4294967296),_.Kb>>>=0,_.Jb>>>=0);b&&(b=_.h(cba(_.Jb,_.Kb)),a=b.next().value,b=b.next().value,_.Jb=a,_.Kb=b)}};
cba=function(a,b){b=~b;a?a=~a+1:b+=1;return[a,b]};
Rb=function(a){return Array.prototype.slice.call(a)};
_.Sb=function(a,b){throw Error(b===void 0?"unexpected value "+a+"!":b);};
_.Ub=function(a){if(a!=null&&typeof a!=="number")throw Error("I`"+typeof a+"`"+a);return a};
iba=function(a){if(a==null||typeof a==="number")return a;if(a==="NaN"||a==="Infinity"||a==="-Infinity")return Number(a)};
kba=function(a){if(a!=null&&typeof a!=="boolean")throw Error("J`"+_.jba(a)+"`"+a);return a};
lba=function(a){if(a==null||typeof a==="boolean")return a;if(typeof a==="number")return!!a};
_.Wb=function(a){switch(typeof a){case "bigint":return!0;case "number":return Vb(a);case "string":return mba.test(a);default:return!1}};
_.Xb=function(a){if(!Vb(a))throw _.eb("enum");return a|0};
_.Zb=function(a){return a==null?a:Vb(a)?a|0:void 0};
nba=function(a){if(typeof a!=="number")throw _.eb("int32");if(!Vb(a))throw _.eb("int32");return a|0};
_.ac=function(a){return a==null?a:nba(a)};
_.bc=function(a){if(a==null)return a;if(typeof a==="string"&&a)a=+a;else if(typeof a!=="number")return;return Vb(a)?a|0:void 0};
_.oba=function(a){if(a==null)return a;if(typeof a==="string"&&a)a=+a;else if(typeof a!=="number")return;return Vb(a)?a>>>0:void 0};
sba=function(a){var b=0;b=b===void 0?0:b;if(!_.Wb(a))throw _.eb("int64");var c=typeof a;switch(b){case 2048:switch(c){case "string":return cc(a);case "bigint":return String(dc(64,a));default:return pba(a)}case 4096:switch(c){case "string":return qba(a);case "bigint":return _.Ib(dc(64,a));default:return rba(a)}case 0:switch(c){case "string":return cc(a);case "bigint":return _.Ib(dc(64,a));default:return ec(a)}default:return _.Sb(b,"Unknown format requested type for int64")}};
hc=function(a){return a==null?a:sba(a)};
_.tba=function(a){if(a[0]==="-")return!1;var b=a.length;return b<20?!0:b===20&&Number(a.substring(0,6))<184467};
uba=function(a){var b=a.length;return a[0]==="-"?b<20?!0:b===20&&Number(a.substring(0,7))>-922337:b<19?!0:b===19&&Number(a.substring(0,6))<922337};
vba=function(a){if(a<0){_.Lb(a);var b=_.Nb(_.Jb,_.Kb);a=Number(b);return(0,_.ic)(a)?a:b}b=String(a);if(_.tba(b))return b;_.Lb(a);return dba(_.Jb,_.Kb)};
wba=function(a){if(uba(a))return a;hba(a);return _.gba(_.Jb,_.Kb)};
_.xba=function(a){if(_.tba(a))return a;hba(a);return _.Nb(_.Jb,_.Kb)};
ec=function(a){a=(0,_.jc)(a);(0,_.ic)(a)||(_.Lb(a),a=eba(_.Jb,_.Kb));return a};
_.yba=function(a){a=(0,_.jc)(a);return a>=0&&(0,_.ic)(a)?a:vba(a)};
pba=function(a){a=(0,_.jc)(a);if((0,_.ic)(a))a=String(a);else{var b=String(a);uba(b)?a=b:(_.Lb(a),a=_.gba(_.Jb,_.Kb))}return a};
cc=function(a){var b=(0,_.jc)(Number(a));if((0,_.ic)(b))return String(b);b=a.indexOf(".");b!==-1&&(a=a.substring(0,b));return wba(a)};
qba=function(a){var b=(0,_.jc)(Number(a));if((0,_.ic)(b))return _.Ib(b);b=a.indexOf(".");b!==-1&&(a=a.substring(0,b));return _.Eb()?_.Ib(dc(64,BigInt(a))):_.Ib(wba(a))};
rba=function(a){return(0,_.ic)(a)?_.Ib(ec(a)):_.Ib(pba(a))};
_.zba=function(a){var b=(0,_.jc)(Number(a));if((0,_.ic)(b)&&b>=0)return String(b);b=a.indexOf(".");b!==-1&&(a=a.substring(0,b));return _.xba(a)};
Aba=function(a,b){b=b===void 0?!1:b;var c=typeof a;if(a==null)return a;if(c==="bigint")return String(dc(64,a));if(_.Wb(a))return c==="string"?cc(a):b?pba(a):ec(a)};
Bba=function(a){if(a==null)return a;var b=typeof a;if(b==="bigint")return String(dc(64,a));if(_.Wb(a)){if(b==="string")return cc(a);if(b==="number")return ec(a)}};
Cba=function(a){if(a==null)return a;var b=typeof a;if(b==="bigint")return String((0,_.kc)(64,a));if(_.Wb(a)){if(b==="string")return _.zba(a);if(b==="number")return _.yba(a)}};
_.lc=function(a){if(typeof a!=="string")throw Error();return a};
mc=function(a){if(a!=null&&typeof a!=="string")throw Error();return a};
_.oc=function(a){return a==null||typeof a==="string"?a:void 0};
Eba=function(a,b,c,d){if(a!=null&&typeof a==="object"&&a[qc]===rc)return a;if(!Array.isArray(a))return c?d&2?((a=b[Dba])||(a=new b,rb(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),a=b[Dba]=a),b=a):b=new b:b=void 0,b;c=a[_.lb]|0;d=c|d&32|d&2;d!==c&&ob(a,d);return new b(a)};
Fba=function(a,b,c){a=b?nba(a):_.bc(a);return a==null?c?0:void 0:a|0};
Gba=function(a){return a};
Hba=function(a){return a};
Jba=function(a,b,c,d,e,g){a=Eba(a,d,c,g);e&&(a=Iba(a));return a};
Kba=function(a){return[a,this.get(a)]};
Nba=function(){return Lba||(Lba=new sc(rb([]),void 0,void 0,void 0,Mba))};
Pba=function(a){var b=Oba(tc);return b?a[b]:void 0};
Rba=function(a){var b=Oba(tc),c;jb&&b&&((c=a[b])==null?void 0:c[175237375])!=null&&Laa(Qba,3)};
uc=function(a,b,c,d,e){var g=d?!!(b&32):void 0;d=[];var k=a.length,m=!1;if(b&64){if(b&256){k--;var n=a[k];var r=k}else r=4294967295,n=void 0;if(!(e||b&512)){m=!0;var t;var u=((t=Sba)!=null?t:Gba)(n?r- -1:b>>16&1023||536870912,-1,a,n);r=u+-1}}else r=4294967295,b&1||(n=k&&a[k-1],n!=null&&typeof n==="object"&&n.constructor===Object?(k--,r=k,u=0):n=void 0);t=void 0;for(var w=0;w<k;w++){var A=a[w];if(A!=null&&(A=c(A,g))!=null)if(w>=r){var C=void 0;((C=t)!=null?C:t={})[w- -1]=A}else d[w]=A}if(n)for(var G in n)k=
n[G],k!=null&&(k=c(k,g))!=null&&(w=+G,w<u?d[w+-1]=k:(w=void 0,((w=t)!=null?w:t={})[G]=k));t&&(m?d.push(t):d[r]=t);e&&(ob(d,b&67043905|(t!=null?290:34)),Oba(tc)&&(a=Pba(a))&&a instanceof Tba&&(d[tc]=Uba(a)));return d};
Wba=function(a){a[0]=Vba(a[0]);a[1]=Vba(a[1]);return a};
Vba=function(a){switch(typeof a){case "number":return Number.isFinite(a)?a:""+a;case "bigint":return vc(a)?Number(a):""+a;case "boolean":return a?1:0;case "object":if(Array.isArray(a)){var b=a[_.lb]|0;return a.length===0&&b&1?void 0:uc(a,b,Vba,!1,!1)}if(a[qc]===rc)return Xba(a);if(a instanceof ub){b=a.JSC$6663_value_;if(b==null)a="";else if(typeof b==="string")a=b;else{if(Gaa){for(var c="",d=0,e=b.length-10240;d<e;)c+=String.fromCharCode.apply(null,b.subarray(d,d+=10240));c+=String.fromCharCode.apply(null,
d?b.subarray(d):b);b=btoa(c)}else b=_.wc(b);a=a.JSC$6663_value_=b}return a}if(a instanceof sc)return a=a.size!==0?Array.from(xc.prototype.entries.call(a),Wba):void 0,a;return}return a};
zc=function(a,b){if(b){Sba=b==null||b===Gba||b[Yba]!==Zba?Gba:b;try{return Xba(a)}finally{Sba=void 0}}return Xba(a)};
Xba=function(a){a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return uc(a,a[_.lb]|0,Vba,void 0,!1)};
bca=function(a){switch(typeof a){case "boolean":return $ba||($ba=[0,void 0,!0]);case "number":return a>0?void 0:a===0?aca||(aca=[0,void 0]):[-a,void 0];case "string":return[0,a];case "object":return a}};
Bc=function(a,b,c){a=_.Ac(a,b[0],b[1],c?1:2);b!==$ba&&c&&nb(a,8192);return a};
_.Ac=function(a,b,c,d){if(a==null){var e=32;c?(a=[c],e|=512):a=[];b&&(e=e&-67043329|(b&1023)<<16)}else{if(!Array.isArray(a))throw Error("N");e=a[_.lb]|0;16384&e&&!(2&e)&&cca();if(e&1024)throw Error("P");if(e&64)return d!==3||e&16384||ob(a,e|16384),a;if(c&&(e|=512,c!==a[0]))throw Error("Q");a:{c=a;e&=-257;var g=c.length;if(g){var k=g-1,m=c[k];if(m!=null&&typeof m==="object"&&m.constructor===Object){e|=256;b=e&512?0:-1;k-=b;if(k>=1024)throw Error("S");for(var n in m)g=+n,g<k&&(c[g+b]=m[n],delete m[n]);
e=e&-67043329|(k&1023)<<16;break a}}if(b){n=Math.max(b,g-(e&512?0:-1));if(n>1024)throw Error("T");e=e&-67043329|(n&1023)<<16}}}e|=64;d===3&&(e|=16384);ob(a,e);return a};
cca=function(){Laa(dca,5)};
Cc=function(a,b){if(typeof a!=="object")return a;if(Array.isArray(a)){var c=a[_.lb]|0;return a.length===0&&c&1?void 0:c&2?a:!b||!(32&c)&&1&c||1&c&&!(16&c)?uc(a,c,Cc,b!==void 0,!0):(nb(a,34),c&4&&Object.freeze(a),a)}if(a[qc]===rc)return eca(a);if(a instanceof sc){b=a.arrayState;if(b&2)return a;if(!a.size)return;c=rb(Array.from(xc.prototype.entries.call(a)));if(a.valueCtor)for(a=0;a<c.length;a++){var d=c[a],e=d[1];if(e==null||typeof e!=="object")e=void 0;else if(e[qc]===rc)e=eca(e);else if(Array.isArray(e)){var g=
e[_.lb]|0;g&2||(b&32&&!(!(32&g)&&1&g||1&g&&!(16&g))?nb(e,34):e=uc(e,g,Cc,!0,!0))}else e=void 0;d[1]=e}return c}if(a instanceof ub)return a};
eca=function(a){var b=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c=b[_.lb]|0;return sb(a,c)?a:uc(b,c,Cc,!0,!0)};
Iba=function(a){var b=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c=b[_.lb]|0;if(!sb(a,c))return a;a=new a.constructor(uc(b,c,Cc,!0,!0));Oaa(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return a};
Dc=function(a){if(a.copyOnWrite!==Raa)return!1;var b=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;b=uc(b,b[_.lb]|0,Cc,!0,!0);Oaa(b);a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=b;a.copyOnWrite=void 0;return!0};
Ec=function(a){if(!Dc(a)&&sb(a,a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.lb]|0))throw Error();};
Gc=function(a,b,c,d,e){var g=c+(e?0:-1),k=a.length-1;if(k>=1+(e?0:-1)&&g>=k){var m=a[k];if(m!=null&&typeof m==="object"&&m.constructor===Object)return m[c]=d,b}if(g<=k)return a[g]=d,b;if(d!==void 0){var n;k=((n=b)!=null?n:b=a[_.lb]|0)>>16&1023||536870912;c>=k?d!=null&&(g={},a[k+(e?0:-1)]=(g[c]=d,g),b|=256,ob(a,b)):a[g]=d}return b};
_.Mc=function(a,b,c,d,e){var g=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,k=g[_.lb]|0;d=sb(a,k)?1:d;e=!!e||d===3;d===2&&Dc(a)&&(g=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,k=g[_.lb]|0);a=fca(g,b);var m=a[_.lb]|0;if(!(4&m)){4&m&&(a=Rb(a),m=Hc(m,k),k=Gc(g,k,b,a));for(var n=0,r=0;n<a.length;n++){var t=c(a[n]);t!=null&&(a[r++]=t)}r<n&&(a.length=r);m=gca(m,k);c=(m|20)&-2049;m=c&=-4097;ob(a,m);2&m&&Object.freeze(a)}d===1||d===4&&32&m?Ic(m)||(e=m,m|=2,m!==e&&ob(a,m),Object.freeze(a)):
(d===2&&Ic(m)&&(a=Rb(a),m=Hc(m,k),m=Kc(m,k,e),ob(a,m),k=Gc(g,k,b,a)),Ic(m)||(b=m,m=Kc(m,k,e),m!==b&&ob(a,m)));return a};
fca=function(a,b,c){a=_.Nc(a,b,c);return Array.isArray(a)?a:hca};
gca=function(a,b){a===0&&(a=Hc(a,b),a|=16);return a|1};
Ic=function(a){return!!(2&a)&&!!(4&a)||!!(1024&a)};
ica=function(a){return _.yb(a,!0)};
jca=function(a,b){var c=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,d=c[_.lb]|0;a:{var e=d;d=sb(a,d);!d&&Dc(a)&&(c=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,e=c[_.lb]|0);var g=_.Nc(c,b);a=!1;if(g==null){if(d){b=Nba();break a}g=[]}else if(g.constructor===sc)if(g.arrayState&2&&!d)g=Array.from(xc.prototype.entries.call(g));else{b=g;break a}else Array.isArray(g)?a=!!((g[_.lb]|0)&2):g=[];if(d){if(!g.length){b=Nba();break a}a||(a=!0,rb(g))}else if(a){a=!1;d=g;d=Rb(d);for(g=0;g<
d.length;g++){var k=d[g]=Rb(d[g]);Array.isArray(k[1])&&(k[1]=rb(k[1]))}g=d}!a&&e&32&&Qaa(g);a=new sc(g,void 0,Fba,Fba);Gc(c,e,b,a);b=a}return b};
_.Oc=function(a,b,c,d){Ec(a);var e=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,g=e[_.lb]|0;if(c==null)return Gc(e,g,b),a;var k=c[_.lb]|0,m=k,n=Ic(k),r=n||Object.isFrozen(c);n||(k=0);r||(c=Rb(c),m=0,k=Hc(k,g),k=Kc(k,g,!0),r=!1);k|=21;var t;n=(t=Paa(k))!=null?t:0;for(t=0;t<c.length;t++){var u=c[t],w=d(u,n);Object.is(u,w)||(r&&(c=Rb(c),m=0,k=Hc(k,g),k=Kc(k,g,!0),r=!1),c[t]=w)}k!==m&&(r&&(c=Rb(c),k=Hc(k,g),k=Kc(k,g,!0)),ob(c,k));Gc(e,g,b,c);return a};
_.Qc=function(a,b,c,d,e){Ec(a);var g=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Gc(g,g[_.lb]|0,b,(d==="0"?Number(c)===0:c===d)?void 0:c,e);return a};
_.kca=function(a,b,c){if(b&2)throw Error();var d=!!(64&b)||!(8192&b),e=Cb(b),g=fca(a,c,e),k=g!==hca;if(d||!k){k=d=g===hca?55:g[_.lb]|0;if(2&k||Ic(k)||4&k&&!(32&k))g=Rb(g),d=0,k=Hc(k,b),b=Gc(a,b,c,g,e);k=gca(k,b)&-13;k=Kc(k,b,!0);k!==d&&ob(g,k)}return g};
lca=function(a){if(jb){var b;return(b=a[Rc])!=null?b:a[Rc]=new Map}if(Rc in a)return a[Rc];b=new Map;Object.defineProperty(a,Rc,{value:b});return b};
nca=function(a,b,c,d,e){var g=lca(a),k=mca(g,a,b,c,e);k!==d&&(k&&(b=Gc(a,b,k,void 0,e)),g.set(c,d));return b};
mca=function(a,b,c,d,e){var g=a.get(d);if(g!=null)return g;for(var k=g=0;k<d.length;k++){var m=d[k];_.Nc(b,m,e)!=null&&(g!==0&&(c=Gc(b,c,g,void 0,e)),g=m)}a.set(d,g);return g};
oca=function(a,b,c,d,e){a=_.Nc(a,d,e,function(g){return Eba(g,c,!1,b)});
if(a!=null)return a};
pca=function(a,b,c,d,e,g,k,m){var n=sb(a,c);g=n?1:g;k=!!k||g===3;n=m&&!n;(g===2||n)&&Dc(a)&&(b=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c=b[_.lb]|0);a=fca(b,e);var r=a[_.lb]|0;m=!!(4&r);if(!m){r=gca(r,c);var t=a,u=c,w=!!(2&r);w&&(u|=2);for(var A=!w,C=!0,G=0,J=0;G<t.length;G++){var I=Eba(t[G],d,!1,u);if(I instanceof d){if(!w){var R=sb(I);A&&(A=!R);C&&(C=R)}t[J++]=I}}J<G&&(t.length=J);r|=4;r=C?r|16:r&-17;r=A?r|8:r&-9;ob(t,r);w&&Object.freeze(t)}if(n&&!(8&r||!a.length&&(g===1||g===4&&
32&r))){Ic(r)&&(a=Rb(a),r=Hc(r,c),c=Gc(b,c,e,a));d=a;n=r;for(t=0;t<d.length;t++)r=d[t],u=Iba(r),r!==u&&(d[t]=u);n|=8;n=d.length?n&-17:n|16;ob(d,n);r=n}g===1||g===4&&32&r?Ic(r)||(c=r,r|=!a.length||16&r&&(!m||32&r)?2:1024,r!==c&&ob(a,r),Object.freeze(a)):(g===2&&Ic(r)&&(a=Rb(a),r=Hc(r,c),r=Kc(r,c,k),ob(a,r),c=Gc(b,c,e,a)),Ic(r)||(b=r,r=Kc(r,c,k),r!==b&&ob(a,r)));return a};
qca=function(a){a==null&&(a=void 0);return a};
Hc=function(a,b){2&a&&(a|=16);a=(2&b?a|2:a&-3)|32;return a&=-1025};
Kc=function(a,b,c){32&b&&c||(a&=-33);return a};
_.rca=function(a,b,c,d,e){Ec(a);b=_.Mc(a,b,e,2,!0);var g;e=(g=Paa(b[_.lb]|0))!=null?g:0;b.push(c(d,e));return a};
sca=function(a,b,c,d,e,g,k){Ec(a);var m=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;a=pca(a,m,m[_.lb]|0,c,b,2,!0);if(g&&k)e!=null||(e=a.length-1),Taa(a,e),a.splice(e,g),a.length||nb(a,16);else{if(g){if(typeof e!=="number"||e<0||e>a.length)throw Error();}else d=d!=null?d:new c;e!=void 0?a.splice(e,g,d):a.push(d);e=c=a[_.lb]|0;sb(d)?(c&=-9,a.length===1&&(c|=16)):c&=-17;c!==e&&ob(a,c)}};
uca=function(a,b){if(typeof a==="string")return{buffer:Iaa(a),isImmutable:b};if(Array.isArray(a))return{buffer:new Uint8Array(a),isImmutable:b};if(a.constructor===Uint8Array)return{buffer:a,isImmutable:!1};if(a.constructor===ArrayBuffer)return{buffer:new Uint8Array(a),isImmutable:!1};if(a.constructor===ub)return{buffer:tca(a)||new Uint8Array(0),isImmutable:!0};if(a instanceof Uint8Array)return{buffer:new Uint8Array(a.buffer,a.byteOffset,a.byteLength),isImmutable:!1};throw Error("ba");};
_.Sc=function(){var a=function(){throw Error();};
Object.setPrototypeOf(a,a.prototype);return a};
wca=function(a,b){var c=c===void 0?vca:c;return new Tc(a,b,c)};
Aca=function(a,b,c,d,e){b=xca(b,d);b!=null&&(c=_.yca(a,c),e(b,a),_.zca(a,c))};
Wc=function(a,b,c,d){var e=d[a];if(e)return e;e={};e.binaryFields=d;e.messageMetadata=bca(d[0]);var g=d[1],k=1;g&&g.constructor===Object&&(e.extensions=g,g=d[++k],typeof g==="function"&&(e.isMessageSet=!0,Bca!=null||(Bca=g),Cca!=null||(Cca=d[k+1]),g=d[k+=2]));for(var m={};g&&Array.isArray(g)&&g.length&&typeof g[0]==="number"&&g[0]>0;){for(var n=0;n<g.length;n++)m[g[n]]=g;g=d[++k]}for(n=1;g!==void 0;){typeof g==="number"&&(n+=g,g=d[++k]);var r=void 0;if(g instanceof Tc)var t=g;else t=Dca,k--;g=void 0;
if((g=t)==null?0:g.$$isMsg){g=d[++k];r=d;var u=k;typeof g==="function"&&(g=g(),r[u]=g);r=g}g=d[++k];u=n+1;typeof g==="number"&&g<0&&(u-=g,g=d[++k]);for(;n<u;n++){var w=m[n];r?c(e,n,t,r,w):b(e,n,t,w)}}return d[a]=e};
Fca=function(a){return Array.isArray(a)?a[0]instanceof Tc?a:[Eca,a]:[a,void 0]};
xca=function(a,b){if(a instanceof _.Xc)return a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(a))return Bc(a,b,!1)};
Gca=function(a,b,c,d){var e=c.$$binaryReaderFn;a[b]=d?function(g,k,m){return e(g,k,m,d)}:e};
Ica=function(a,b,c,d,e){var g=c.$$binaryReaderFn,k,m;a[b]=function(n,r,t){return g(n,r,t,m||(m=Wc(Hca,Gca,Ica,d).messageMetadata),k||(k=Jca(d)),e)}};
Jca=function(a){var b=a[Kca];if(b!=null)return b;var c=Wc(Hca,Gca,Ica,a);b=c.isMessageSet?function(d,e){return Bca(d,e,c)}:function(d,e){for(var g=d[_.lb]|0;Lca(e)&&e.nextWireType_!=4;){var k=e.nextField_,m=c[k];
if(m==null){var n=c.extensions;n&&(n=n[k])&&(n=Mca(n),n!=null&&(m=c[k]=n))}if(m==null||!m(e,d,k)){n=e;m=n.fieldCursor_;Nca(n);if(n.discardUnknownFields)var r=void 0;else{var t=n.decoder_.cursor_-m;n.decoder_.cursor_=m;r=Oca(n.decoder_,t)}t=n=m=void 0;var u=d;r&&((m=(n=(t=u[tc])!=null?t:u[tc]=new Tba)[k])!=null?m:n[k]=[]).push(r)}}if(e=Pba(d))e.reviveUnknownFields=c.binaryFields[Pca];g&8192&&rb(d);return!0};
a[Kca]=b;a[Pca]=Qca.bind(a);return b};
Qca=function(a,b,c){var d=this[Hca],e=this[Kca],g=Bc(void 0,d.messageMetadata,!1),k=Pba(a);if(k){var m=!1,n=d.extensions;if(n&&(k==null||Rca(k,function(u,w,A){if(A.length!==0)if(n[w])for(u=_.h(A),w=u.next();!w.done;w=u.next()){w=Sca(w.value);try{m=!0,e(g,w)}finally{w.free()}}else c==null||c(a,w,A)}),m)){var r=a[_.lb]|0;
if(r&2&&r&16384)throw Error();var t=Cb(r);Uaa(g,g[_.lb]|0,function(u,w){if(_.Nc(a,u,t)!=null)switch(b==null?void 0:b.resolutionBehavior){case 1:return;default:throw Error();}r=Gc(a,r,u,w,t);delete k[u]})}}};
Mca=function(a){a=Fca(a);var b=a[0].$$binaryReaderFn;if(a=a[1]){var c=Jca(a),d=Wc(Hca,Gca,Ica,a).messageMetadata;return function(e,g,k){return b(e,g,k,d,c)}}return b};
Tca=function(a,b,c){a[b]=c.$$binaryWriterFn};
Vca=function(a,b,c,d){var e,g,k=c.$$binaryWriterFn;a[b]=function(m,n,r){return k(m,n,r,g||(g=Wc(Uca,Tca,Vca,d).messageMetadata),e||(e=Wca(d)))}};
Wca=function(a){var b=a[Xca];if(!b){var c=Wc(Uca,Tca,Vca,a);b=function(d,e){return Yca(d,e,c)};
a[Xca]=b}return b};
Yca=function(a,b,c){Uaa(a,a[_.lb]|0|(c.messageMetadata[1]?512:0),function(d,e){if(e!=null){var g=Zca(c,d);g&&g(b,e,d)}});
(a=Pba(a))&&Rca(a,function(d,e,g){Zc(b,b.encoder_.end());for(d=0;d<g.length;d++)Zc(b,tca(g[d])||new Uint8Array(0))})};
Zca=function(a,b){var c=a[b];if(c)return c;if(c=a.extensions)if(c=c[b]){c=Fca(c);var d=c[0].$$binaryWriterFn;if(c=c[1]){var e=Wca(c),g=Wc(Uca,Tca,Vca,c).messageMetadata;c=a.isMessageSet?Cca(g,e):function(k,m,n){return d(k,m,n,g,e)}}else c=d;
return a[b]=c}};
_.$ca=function(a,b,c){if(Array.isArray(b)){var d=b[_.lb]|0;if(d&4)return b;for(var e=0,g=0;e<b.length;e++){var k=a(b[e]);k!=null&&(b[g++]=k)}g<e&&(b.length=g);c&&(ob(b,(d|21)&-6145),d&2&&Object.freeze(b));return b}};
_.$c=function(a,b,c){return new Tc(a,b,c)};
_.ada=function(a,b,c){return new Tc(a,b,c)};
_.ad=function(a,b,c){Gc(a,a[_.lb]|0,b,c,Cb(a[_.lb]|0))};
cda=function(a,b,c){b=iba(b);b!=null&&(_.bd(a,c,1),a=a.encoder_,c=bda||(bda=new DataView(new ArrayBuffer(8))),c.setFloat64(0,+b,!0),_.Jb=c.getUint32(0,!0),_.Kb=c.getUint32(4,!0),_.cd(a,_.Jb),_.cd(a,_.Kb))};
_.ed=function(a,b,c){b=Bba(b);if(b!=null){switch(typeof b){case "string":dda(b)}if(b!=null)switch(_.bd(a,c,0),typeof b){case "number":a=a.encoder_;_.Lb(b);eda(a,_.Jb,_.Kb);break;case "bigint":c=BigInt.asUintN(64,b);c=new fda(Number(c&BigInt(4294967295)),Number(c>>BigInt(32)));eda(a.encoder_,c.JSC$6721_lo,c.JSC$6721_hi);break;default:c=dda(b),eda(a.encoder_,c.JSC$6721_lo,c.JSC$6721_hi)}}};
hda=function(a,b,c){b=_.bc(b);b!=null&&b!=null&&(_.bd(a,c,0),_.gda(a.encoder_,b))};
_.jda=function(a,b,c){ida(a,c,Cba(b))};
_.kda=function(a,b,c){b=lba(b);b!=null&&(_.bd(a,c,0),a.encoder_.JSC$6723_buffer_.push(b?1:0))};
_.mda=function(a,b,c){b=_.oc(b);b!=null&&lda(a,c,eaa(b))};
nda=function(a,b,c,d,e){b=xca(b,d);b!=null&&(c=_.yca(a,c),e(b,a),_.zca(a,c))};
_.oda=function(a,b,c){b=b==null||typeof b=="string"||b instanceof ub?b:void 0;b!=null&&lda(a,c,uca(b,!0).buffer)};
_.pda=function(a,b,c){b=_.bc(b);b!=null&&(b=parseInt(b,10),_.bd(a,c,0),_.gda(a.encoder_,b))};
_.gd=function(a,b){return function(c,d){var e={treatNewDataAsImmutable:!0};d&&Object.assign(e,d);c=Sca(c,void 0,void 0,e);try{var g=new a,k=g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Jca(b)(k,c);var m=g}finally{c.free()}return m}};
_.hd=function(a){return function(b){return qda(b,a)}};
rda=function(a){return function(){return qda(this,a)}};
_.sda=function(a){return Hb(function(b){return b instanceof a&&!sb(b)})};
_.kd=function(a){return function(b){return tda(a,b)}};
xda=function(a,b){return uda({child:a,origin:b||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:vda,getPayloadCase:function(c){return c.getPayloadCase()},
createInitMessage:function(c){var d=new md,e=new wda;c=_.pd(e,1,c);return _.qd(d,5,rd,c)}})};
td=function(a){return{valueOf:a}.valueOf()};
zda=function(){var a=null;if(!yda)return a;try{var b=function(c){return c};
a=yda.createPolicy("goog#html",{createHTML:b,createScript:b,createScriptURL:b})}catch(c){}return a};
Bda=function(){Ada===void 0&&(Ada=zda());return Ada};
_.vd=function(a){var b=Bda();a=b?b.createScriptURL(a):a;return new ud(a)};
_.xd=function(a){if(a instanceof ud)return a.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("ga");};
Cda=function(a){return a.toString().indexOf("`")===-1};
Ad=function(a){return new _.yd(Dda,a)};
Bd=function(a){return a instanceof _.yd};
_.Cd=function(a){if(Bd(a))return a.privateDoNotAccessOrElseWrappedUrl;throw Error("ga");};
Dd=function(a){return new Eda(function(b){return b.substr(0,a.length+1).toLowerCase()===a+":"})};
Ed=function(a,b){b=b===void 0?Fda:b;if(Bd(a))return a;for(var c=0;c<b.length;++c){var d=b[c];if(d instanceof Eda&&d.isValid(a))return Ad(a)}};
_.Gd=function(a,b){b=b===void 0?Fda:b;return Ed(a,b)||Fd};
Hd=function(a){var b=window;if(typeof MediaSource!=="undefined"&&a instanceof MediaSource||typeof b.ManagedMediaSource!=="undefined"&&a instanceof b.ManagedMediaSource)return Ad(URL.createObjectURL(a));b=a.type;b.toLowerCase()==="application/octet-stream"?b=!0:(b=b.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),b=(b==null?void 0:b.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(b[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(b[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(b[1])||/^font\/[\w-]+$/i.test(b[1])));if(!b)throw Error("ga");return Ad(URL.createObjectURL(a))};
_.Jd=function(a){for(var b=_.Id.apply(1,arguments),c=[a[0]],d=0;d<b.length;d++)c.push(String(b[d])),c.push(a[d+1]);return Ad(c.join(""))};
_.Hda=function(a){if(!Gda){a:{var b=document.createElement("a");try{b.href=a}catch(c){a=void 0;break a}a=b.protocol;a=a===":"||a===""?"https:":a}return a}try{b=new URL(a)}catch(c){return"https:"}return b.protocol};
_.Kd=function(a){a instanceof _.yd?a=_.Cd(a):a=Ida.test(a)?a:void 0;return a};
Ld=function(a,b){b=_.Kd(b);b!==void 0&&(a.href=b)};
Nd=function(a){var b=Bda();a=b?b.createHTML(a):a;return new Md(a)};
Pd=function(a){if(a instanceof Md)return a.privateDoNotAccessOrElseWrappedHtml;throw Error("ga");};
_.Qd=function(a,b){a.src=_.xd(b).toString()};
Jda=function(a,b){a.setAttribute("sandbox","");for(var c=0;c<b.length;c++)a.sandbox.supports&&!a.sandbox.supports(b[c])||a.sandbox.add(b[c])};
_.Lda=function(a,b,c){a.removeAttribute("srcdoc");switch(b){case 0:if(c instanceof ud)throw new Kda("TrustedResourceUrl",0);Jda(a,[]);b=_.Kd(c);b!==void 0&&(a.src=b);break;case 1:if(!(c instanceof ud))throw new Kda(typeof c,1);Jda(a,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.Qd(a,c);break;case 2:if(c instanceof ud)throw new Kda("TrustedResourceUrl",2);Jda(a,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
b=_.Kd(c);b!==void 0&&(a.src=b);break;default:_.Sb(b)}};
_.Rd=function(a,b,c,d){b=_.Kd(b);return b!==void 0?a.open(b,c,d):null};
_.Sd=function(a){a=a===void 0?document:a;var b,c;a=(c=(b=a).querySelector)==null?void 0:c.call(b,"script[nonce]");return a==null?"":a.nonce||a.getAttribute("nonce")||""};
_.Ud=function(a){var b=Bda();a=b?b.createScript(a):a;return new _.Td(a)};
Mda=function(a){if(a instanceof _.Td)return a.privateDoNotAccessOrElseWrappedScript;throw Error("ga");};
Nda=function(a){var b=_.Sd(a.ownerDocument);b&&a.setAttribute("nonce",b)};
_.Wd=function(a,b){a.textContent=Mda(b);Nda(a)};
_.Xd=function(a,b){a.src=_.xd(b);Nda(a)};
_.Yd=function(a,b){if(a.nodeType===1&&/^(script|style)$/i.test(a.tagName))throw Error("ga");a.innerHTML=Pd(b)};
_.Zd=function(a,b,c,d){if(a.length===0)throw Error("ga");a=a.map(function(g){if(g instanceof Oda)g=g.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("ga");return g});
var e=c.toLowerCase();if(a.every(function(g){return e.indexOf(g)!==0}))throw Error("ha`"+c);
b.setAttribute(c,d)};
_.$d=function(a,b,c){if(b instanceof ud)a.href=_.xd(b).toString(),a.rel=c;else{if(Pda.indexOf(c)===-1)throw Error("ia`"+c);b=_.Kd(b);b!==void 0&&(a.href=b,a.rel=c)}};
Qda=function(a){return"function"==typeof _.ae&&a instanceof _.ae};
_.Rda=function(a){if(Qda(a))return a.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("ga");};
_.Sda=function(a,b){b=_.Kd(b);b!==void 0&&(a.href=b)};
Tda=function(a,b){a&&(b=a.indexOf(b),0<=b&&a.splice(b,1))};
ce=function(a){return typeof a==="function"};
Uda=function(a){return a instanceof de||a&&"closed"in a&&ce(a.remove)&&ce(a.add)&&ce(a.unsubscribe)};
ee=function(){};
fe=function(a){Vda(function(){throw a;})};
ge=function(a){return a};
he=function(){return Wda(_.Id.apply(0,arguments))};
Wda=function(a){return a.length===0?ge:a.length===1?a[0]:function(b){return a.reduce(function(c,d){return d(c)},b)}};
Xda=function(a){var b;return(b=a!=null?a:void 0)!=null?b:Promise};
Yda=function(a,b){return new ie(function(c){var d=0;return b.schedule(function(){d===a.length?c.complete():(c.next(a[d++]),c.closed||this.schedule())})})};
Zda=function(a,b){if(!a)throw Error("ja");return new ie(function(c){var d=new de;d.add(b.schedule(function(){var e=a[Symbol.asyncIterator]();d.add(b.schedule(function(){var g=this;e.next().then(function(k){k.done?c.complete():(c.next(k.value),g.schedule())})}))}));
return d})};
$da=function(a,b,c){b=b.schedule(function(){try{c.call(this)}catch(d){a.error(d)}},0);
a.add(b)};
bea=function(a,b){return new ie(function(c){var d;c.add(b.schedule(function(){d=a[aea]();$da(c,b,function(){var e=d.next(),g=e.value;e.done?c.complete():(c.next(g),this.schedule())})}));
return function(){var e;return ce((e=d)==null?void 0:e.return)&&d.return()}})};
cea=function(a,b){return new ie(function(c){var d=new de;d.add(b.schedule(function(){var e=a[je]();d.add(e.subscribe({next:function(g){d.add(b.schedule(function(){return c.next(g)}))},
error:function(g){d.add(b.schedule(function(){return c.error(g)}))},
complete:function(){d.add(b.schedule(function(){return c.complete()}))}}))}));
return d})};
dea=function(a,b){return new ie(function(c){return b.schedule(function(){return a.then(function(d){c.add(b.schedule(function(){c.next(d);c.add(b.schedule(function(){return c.complete()}))}))},function(d){c.add(b.schedule(function(){return c.error(d)}))})})})};
eea=function(a){return new TypeError("ka`"+(a!==null&&typeof a==="object"?"an invalid object":"'"+a+"'"))};
gea=function(a,b){if(a!=null){if(ce(a[je]))return cea(a,b);if(fea(a))return Yda(a,b);if(ce(a==null?void 0:a.then))return dea(a,b);if(Symbol.asyncIterator&&ce(a==null?void 0:a[Symbol.asyncIterator]))return Zda(a,b);if(ce(a==null?void 0:a[aea]))return bea(a,b)}throw eea(a);};
le=function(a,b){return b?gea(a,b):ke(a)};
ke=function(a){if(a instanceof ie)return a;if(a!=null){if(ce(a[je]))return hea(a);if(fea(a))return iea(a);if(ce(a==null?void 0:a.then))return jea(a);if(Symbol.asyncIterator&&ce(a==null?void 0:a[Symbol.asyncIterator]))return kea(a);if(ce(a==null?void 0:a[aea]))return lea(a)}throw eea(a);};
hea=function(a){return new ie(function(b){var c=a[je]();if(ce(c.subscribe))return c.subscribe(b);throw new TypeError("la");})};
iea=function(a){return new ie(function(b){for(var c=0;c<a.length&&!b.closed;c++)b.next(a[c]);b.complete()})};
jea=function(a){return new ie(function(b){a.then(function(c){b.closed||(b.next(c),b.complete())},function(c){return b.error(c)}).then(null,fe)})};
lea=function(a){return new ie(function(b){for(var c=a[aea]();!b.closed;){var d=c.next(),e=d.value;d.done?b.complete():b.next(e)}return function(){return ce(c==null?void 0:c.return)&&c.return()}})};
kea=function(a){return new ie(function(b){mea(a,b).catch(function(c){return b.error(c)})})};
mea=function(a,b){var c,d,e,g,k,m;return _.l(function(n){switch(n.nextAddress){case 1:_.me(n,2,3);var r=a[Symbol.asyncIterator];g=r!==void 0?r.call(a):new nea(_.h(a));case 5:return _.p(n,g.next(),8);case 8:d=n.yieldResult;if(d.done){n.jumpTo(3);break}k=d.value;b.next(k);n.jumpTo(5);break;case 3:_.oe(n);_.pe(n,9);if(!d||d.done||!(e=g.return)){n.jumpTo(9);break}return _.p(n,e.call(g),9);case 9:_.oe(n,0,0,1);if(c)throw c.error;_.qe(n,10,1);break;case 10:_.qe(n,4);break;case 2:m=_.re(n);c={error:m};n.jumpTo(3);
break;case 4:b.complete(),_.se(n)}})};
oea=function(a,b){return b?Yda(a,b):iea(a)};
pea=function(a){return ce(a[a.length-1])?a.pop():void 0};
te=function(a){var b=a[a.length-1];return b&&ce(b.schedule)?a.pop():void 0};
ue=function(){var a=_.Id.apply(0,arguments),b=te(a);return b?Yda(a,b):oea(a)};
ve=function(a){var b=ce(a)?a:function(){return a};
return new ie(function(c){return c.error(b())})};
we=function(a){return function(b){if(ce(b==null?void 0:b.lift))return b.lift(function(c){try{return a(c,this)}catch(d){this.error(d)}});
throw new TypeError("ma");}};
ze=function(){return we(function(a,b){var c=null;a._refCount++;var d=new xe(b,void 0,void 0,void 0,function(){if(!a||a._refCount<=0||0<--a._refCount)c=null;else{var e=a._connection,g=c;c=null;!e||g&&e!==g||e.unsubscribe();b.unsubscribe()}});
a.subscribe(d);d.closed||(c=a.connect())})};
rea=function(){var a=qea;var b=b===void 0?0:b;return we(function(c,d){d.add(a.schedule(function(){return c.subscribe(d)},b))})};
Ae=function(a){return we(function(b,c){var d=0;b.subscribe(new xe(c,function(e){c.next(a.call(void 0,e,d++))}))})};
tea=function(a){return Ae(function(b){return sea(b)?a.apply(null,_.Be(b)):a(b)})};
yea=function(a){if(a.length===1){var b=a[0];if(uea(b))return{args:b,keys:null};if(b&&typeof b==="object"&&vea(b)===wea)return a=xea(b),{args:a.map(function(c){return b[c]}),
keys:a}}return{args:a,keys:null}};
Ce=function(){var a=_.Id.apply(0,arguments),b=te(a),c=pea(a);a=yea(a);var d=a.args,e=a.keys;if(d.length===0)return le([],b);b=new ie(zea(d,b,e?function(g){for(var k={},m=0;m<g.length;m++)k[e[m]]=g[m];return k}:ge));
return c?b.pipe(tea(c)):b};
zea=function(a,b,c){c=c===void 0?ge:c;return function(d){Aea(b,function(){for(var e=a.length,g=Array(e),k=e,m=a.map(function(){return!1}),n=!0,r={i$jscomp$258:0};r.i$jscomp$258<e;r={i$jscomp$258:r.i$jscomp$258},r.i$jscomp$258++)Aea(b,function(t){return function(){le(a[t.i$jscomp$258],b).subscribe(new De(d,function(u){g[t.i$jscomp$258]=u;
n&&(m[t.i$jscomp$258]=!0,n=!m.every(ge));n||d.next(c(g.slice()))},function(){return--k===0}))}}(r),d)},d)}};
Aea=function(a,b,c){a?c.add(a.schedule(b)):b()};
Bea=function(a,b,c,d){var e=[],g=0,k=0,m=!1,n=function(r){g++;ke(c(r,k++)).subscribe(new xe(b,function(t){b.next(t)},void 0,function(){g--;
for(var t={};e.length&&g<d;t={bufferedValue:void 0})t.bufferedValue=e.shift(),n(t.bufferedValue);!m||e.length||g||b.complete()}))};
a.subscribe(new xe(b,function(r){return g<d?n(r):e.push(r)},void 0,function(){m=!0;
!m||e.length||g||b.complete()}));
return function(){e=null}};
Ee=function(a,b){var c=c===void 0?Infinity:c;if(ce(b))return Ee(function(d,e){return Ae(function(g,k){return b(d,g,e,k)})(ke(a(d,e)))},c);
typeof b==="number"&&(c=b);return we(function(d,e){return Bea(d,e,a,c)})};
Cea=function(a){a=a===void 0?Infinity:a;return Ee(ge,a)};
Dea=function(){var a=_.Id.apply(0,arguments);return Cea(1)(oea(a,te(a)))};
Eea=function(a){return new ie(function(b){ke(a()).subscribe(b)})};
Fe=function(a,b,c){if(ce(c)){var d=c;c=void 0}if(d)return Fe(a,b,c).pipe(tea(d));d=_.h(ce(a.addEventListener)&&ce(a.removeEventListener)?Fea.map(function(k){return function(m){return a[k](b,m,c)}}):ce(a.addListener)&&ce(a.removeListener)?Gea.map(Hea(a,b)):ce(a.on)&&ce(a.off)?Iea.map(Hea(a,b)):[]);
var e=d.next().value,g=d.next().value;return!e&&fea(a)?Ee(function(k){return Fe(k,b,c)})(oea(a)):new ie(function(k){if(!e)throw new TypeError("na");
var m=function(){var n=_.Id.apply(0,arguments);return k.next(1<n.length?n:n[0])};
e(m);return function(){return g(m)}})};
Hea=function(a,b){return function(c){return function(d){return a[c](b,d)}}};
He=function(){var a=_.Id.apply(0,arguments),b=te(a);var c=typeof a[a.length-1]==="number"?a.pop():Infinity;return a.length?a.length===1?ke(a[0]):Cea(c)(oea(a,b)):Ge};
Kea=function(a){return a.length===1&&Jea(a[0])?a[0]:a};
Lea=function(){var a=Kea(_.Id.apply(0,arguments));return we(function(b,c){var d=[b].concat(_.Be(a)),e=function(){if(!c.closed)if(d.length>0){try{var g=ke(d.shift())}catch(m){e();return}var k=new xe(c,void 0,ee,ee);c.add(g.subscribe(k));k.add(e)}else c.complete()};
e()})};
Ie=function(a){return we(function(b,c){var d=0;b.subscribe(new xe(c,function(e){return a.call(void 0,e,d++)&&c.next(e)}))})};
Nea=function(){var a=_.Id.apply(0,arguments);a=Kea(a);return a.length===1?ke(a[0]):new ie(Mea(a))};
Mea=function(a){return function(b){for(var c=[],d={i$jscomp$261:0};c&&!b.closed&&d.i$jscomp$261<a.length;d={i$jscomp$261:d.i$jscomp$261},d.i$jscomp$261++)c.push(ke(a[d.i$jscomp$261]).subscribe(new xe(b,function(e){return function(g){if(c){for(var k=0;k<c.length;k++)k!==e.i$jscomp$261&&c[k].unsubscribe();c=null}b.next(g)}}(d))))}};
Oea=function(){var a=_.Id.apply(0,arguments),b=pea(a),c=Kea(a);return c.length?new ie(function(d){var e=c.map(function(){return[]}),g=c.map(function(){return!1});
d.add(function(){e=g=null});
for(var k={sourceIndex$jscomp$1:0};!d.closed&&k.sourceIndex$jscomp$1<c.length;k={sourceIndex$jscomp$1:k.sourceIndex$jscomp$1},k.sourceIndex$jscomp$1++)ke(c[k.sourceIndex$jscomp$1]).subscribe(new xe(d,function(m){return function(n){e[m.sourceIndex$jscomp$1].push(n);e.every(function(r){return r.length})&&(n=e.map(function(r){return r.shift()}),d.next(b?b.apply(null,_.Be(n)):n),e.some(function(r,t){return!r.length&&g[t]})&&d.complete())}}(k),void 0,function(m){return function(){g[m.sourceIndex$jscomp$1]=
!0;
!e[m.sourceIndex$jscomp$1].length&&d.complete()}}(k)));
return function(){e=g=null}}):Ge};
Pea=function(a){var b,c,d;return!!a&&typeof a.active==="boolean"&&typeof((b=a.clock)==null?void 0:b.now)==="function"&&((c=a.clock)==null?void 0:c.timeline)!==void 0&&!((d=a.lastMeasurement)==null||!d.timestamp)&&typeof a.equivalentTo==="function"&&typeof a.extrapolateToNow==="function"&&typeof a.extrapolateToTime==="function"&&typeof a.map==="function"&&typeof a.joinWith==="function"};
Qea=function(a){function b(c){return typeof c==="boolean"||typeof c==="string"||typeof c==="number"||c===void 0||c===null}
return b(a)?!0:Array.isArray(a)?a.every(b):typeof a==="object"?Object.keys(a).every(function(c){return typeof c==="string"})&&Object.values(a).every(function(c){return Array.isArray(c)?c.every(b):b(c)}):!1};
Rea=function(a){if(Qea(a))return a;if(Pea(a))return{lastMeasurement:{value:Rea(a.lastMeasurement.value),timestamp:Je(a.lastMeasurement.timestamp,new Le(0,a.lastMeasurement.timestamp.timeline))},active:a.active};try{return JSON.parse(JSON.stringify(a))}catch(b){}return String(a)};
Me=function(a,b){return function(c){return new ie(function(d){return c.subscribe(function(e){a.timeExecution(b,function(){d.next(e)})()},function(e){a.timeExecution(b,function(){d.error(e)})()},function(){a.timeExecution(b,function(){d.complete()})()})})}};
Sea=function(a,b){var c=!1;return new ie(function(d){var e=a.setTimeout(function(){c=!0;d.next(!0);d.complete()},b);
return function(){c||a.clearTimeout(e)}})};
Tea=function(a){a=a.global;if(a.fetchLater)return a.fetchLater.bind(a)};
Ne=function(a){return we(function(b,c){var d=null,e=!1,g;d=b.subscribe(new xe(c,void 0,function(k){g=ke(a(k,Ne(a)(b)));d?(d.unsubscribe(),d=null,g.subscribe(c)):e=!0}));
e&&(d.unsubscribe(),d=null,g.subscribe(c))})};
Uea=function(a,b,c){return function(d,e){var g=c,k=b,m=0;d.subscribe(new xe(e,function(n){var r=m++;k=g?a(k,n,r):(g=!0,n);e.next(k)},void 0,void 0))}};
Vea=function(a){a=a===void 0?null:a;return we(function(b,c){var d=!1;b.subscribe(new xe(c,function(e){d=!0;c.next(e)},void 0,function(){d||c.next(a);
c.complete()}))})};
Oe=function(){return we(function(a,b){a.subscribe(new xe(b,ee))})};
Pe=function(a){return we(function(b,c){b.subscribe(new xe(c,function(){return c.next(a)}))})};
Qe=function(a){return a<=0?function(){return Ge}:we(function(b,c){var d=0;
b.subscribe(new xe(c,function(e){++d<=a&&(c.next(e),a<=d&&c.complete())}))})};
Re=function(a){var b=b===void 0?ge:b;var c;a=(c=a)!=null?c:Wea;return we(function(d,e){var g,k=!0;d.subscribe(new xe(e,function(m){var n=b(m);if(k||!a(g,n))k=!1,g=n,e.next(m)}))})};
Wea=function(a,b){return a===b};
Yea=function(a){a=a===void 0?Xea:a;return we(function(b,c){var d=!1;b.subscribe(new xe(c,function(e){d=!0;c.next(e)},void 0,function(){return d?c.complete():c.error(a())}))})};
Xea=function(){return new Zea};
Se=function(){var a=_.Id.apply(0,arguments);return function(b){return Dea(b,ue.apply(null,_.Be(a)))}};
$ea=function(a){return we(function(b,c){var d=0;b.subscribe(new xe(c,function(e){a.call(void 0,e,d++,b)||(c.next(!1),c.complete())},void 0,function(){c.next(!0);
c.complete()}))})};
afa=function(){return we(function(a,b){var c=[];a.subscribe(new xe(b,function(d){c.push(d);1<c.length&&c.shift()},void 0,function(){for(var d=_.h(c),e=d.next();!e.done;e=d.next())b.next(e.value);
b.complete()},function(){c=null}))})};
bfa=function(a,b){var c=arguments.length>=2;return function(d){return d.pipe(a?Ie(function(e,g){return a(e,g,d)}):ge,afa(),c?Vea(b):Yea(function(){return new Zea}))}};
Ue=function(a){var b=ce(a)?a:function(){return a};
return ce()?we(function(c,d){var e=b();(void 0)(e).subscribe(d).add(c.subscribe(e))}):function(c){var d=new Te(c,b);
ce(c==null?void 0:c.lift)&&(d.lift=c.lift);d.source=c;d.subjectFactory=b;return d}};
Xe=function(a){var b=new We(a,void 0,void 0);return function(c){return Ue(function(){return b})(c)}};
Ze=function(a,b){return we(Uea(a,b,arguments.length>=2))};
$e=function(){var a=_.Id.apply(0,arguments),b=te(a);return we(function(c,d){(b?Dea(a,c,b):Dea(a,c)).subscribe(d)})};
af=function(a){return we(function(b,c){var d=null,e=0,g=!1;b.subscribe(new xe(c,function(k){var m;(m=d)==null||m.unsubscribe();m=e++;ke(a(k,m)).subscribe(d=new xe(c,function(n){return c.next(n)},void 0,function(){d=null;
g&&!d&&c.complete()}))},void 0,function(){(g=!0,!d)&&c.complete()}))})};
bf=function(a,b){b=b===void 0?!1:b;return we(function(c,d){var e=0;c.subscribe(new xe(d,function(g){var k=a(g,e++);(k||b)&&d.next(g);!k&&d.complete()}))})};
cfa=function(a,b,c){var d=ce(a)||b||c?{next:a,error:b,complete:c}:a;return d?we(function(e,g){e.subscribe(new xe(g,function(k){var m;(m=d.next)==null||m.call(d,k);g.next(k)},function(k){var m;
(m=d.error)==null||m.call(d,k);g.error(k)},function(){var k;
(k=d.complete)==null||k.call(d);g.complete()}))}):ge};
dfa=function(){var a=_.Id.apply(0,arguments),b=pea(a);return we(function(c,d){for(var e=a.length,g=Array(e),k=a.map(function(){return!1}),m=!1,n={i$jscomp$271:0};n.i$jscomp$271<e;n={i$jscomp$271:n.i$jscomp$271},n.i$jscomp$271++)ke(a[n.i$jscomp$271]).subscribe(new xe(d,function(r){return function(t){g[r.i$jscomp$271]=t;
m||k[r.i$jscomp$271]||(k[r.i$jscomp$271]=!0,(m=k.every(ge))&&(k=null))}}(n),void 0,ee));
c.subscribe(new xe(d,function(r){m&&(r=[r].concat(_.Be(g)),d.next(b?b.apply(null,_.Be(r)):r))}))})};
efa=function(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b};
ffa=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};
gfa=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d};
hfa=function(a){if(!a||typeof a!=="object")return a;if(typeof a.clone==="function")return a.clone();if(typeof Map!=="undefined"&&a instanceof Map)return new Map(a);if(typeof Set!=="undefined"&&a instanceof Set)return new Set(a);if(a instanceof Date)return new Date(a.getTime());var b=Array.isArray(a)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(a)||a instanceof DataView?{}:new a.constructor(a.length),c;for(c in a)b[c]=hfa(a[c]);return b};
ifa=function(a){var b=arguments.length;if(b==1&&Array.isArray(arguments[0]))return ifa.apply(null,arguments[0]);if(b%2)throw Error("ra");for(var c={},d=0;d<b;d+=2)c[arguments[d]]=arguments[d+1];return c};
jfa=function(a){var b=arguments.length;if(b==1&&Array.isArray(arguments[0]))return jfa.apply(null,arguments[0]);for(var c={},d=0;d<b;d++)c[arguments[d]]=!0;return c};
_.cf=function(a){return new Oda(a[0].toLowerCase())};
kfa=function(a){try{return new URL(a,window.document.baseURI)}catch(b){return new URL("about:invalid")}};
lfa=function(a,b){var c=b.createRange();c.selectNode(b.body);a=Nd(a);return c.createContextualFragment(Pd(a))};
mfa=function(a){a=a.nodeName;return typeof a==="string"?a:"FORM"};
nfa=function(a){a=a.nodeType;return a===1||typeof a!=="number"};
df=function(a,b,c){a.setAttribute(b,c)};
ofa=function(a){return a.parts.map(function(b){var c=b.descriptor;return""+b.url+(c?" "+c:"")}).join(" , ")};
_.ef=function(a){var b=_.Id.apply(1,arguments);if(b.length===0)return _.vd(a[0]);for(var c=a[0],d=0;d<b.length;d++)c+=encodeURIComponent(b[d])+a[d+1];return _.vd(c)};
_.ff=function(a,b){a=_.xd(a).toString();var c=a.split(/[?#]/),d=/[?]/.test(a)?"?"+c[1]:"";return pfa(c[0],d,/[#]/.test(a)?"#"+(d?c[2]:c[1]):"",b)};
pfa=function(a,b,c,d){function e(k,m){k!=null&&(Array.isArray(k)?k.forEach(function(n){return e(n,m)}):(b+=g+encodeURIComponent(m)+"="+encodeURIComponent(k),g="&"))}
var g=b.length?"&":"?";d.constructor===Object&&(d=Object.entries(d));Array.isArray(d)?d.forEach(function(k){return e(k[1],k[0])}):d.forEach(e);
return _.vd(a+b+c)};
qfa=function(a){a=a.global;if(a.PendingGetBeacon)return a.PendingGetBeacon};
hf=function(a){return function(b){return b.pipe(rfa(a,Ue(new gf)))}};
jf=function(a){return function(b){return b.pipe(rfa(a,Xe(1)))}};
rfa=function(a,b){function c(d){return new ie(function(e){return d.subscribe(function(g){kf(a,function(){return void e.next(g)},3)},function(g){kf(a,function(){return void e.error(g)},3)},function(){kf(a,function(){return void e.complete()},3)})})}
return he(c,rea(),b,ze(),c)};
ufa=function(a){var b=sfa(a);return b===null?new lf(null):b.pipe(Ae(function(c){c=c.serialize();if(tfa)c=_.ja.btoa(c);else{for(var d=[],e=0,g=0;g<c.length;g++){var k=c.charCodeAt(g);k>255&&(d[e++]=k&255,k>>=8);d[e++]=k}c=_.wc(d)}return c}),Qe(1),jf(a.queue))};
vfa=function(a){var b=b===void 0?{}:b;if(typeof Event==="function")return new Event(a,b);if(typeof document!=="undefined"){var c=document.createEvent("CustomEvent");c.initCustomEvent(a,b.bubbles||!1,b.cancelable||!1,b.detail);return c}throw Error();};
wfa=function(a){return typeof a==="string"?document.getElementById(a):a};
yfa=function(a){var b=!1;b=b===void 0?!1:b;if(a.tagName==="IMG"){if(a.complete&&(!a.naturalWidth||!a.naturalHeight))return!0;var c;if(b&&((c=a.style)==null?void 0:c.display)==="none")return!0}var d,e;return xfa.test((d=a.getAttribute("width"))!=null?d:"")&&xfa.test((e=a.getAttribute("height"))!=null?e:"")};
zfa=function(a,b){if(a.tagName==="IMG")return a.naturalWidth&&a.naturalHeight?!0:!1;try{if(a.readyState)var c=a.readyState;else{var d,e;c=(d=a.contentWindow)==null?void 0:(e=d.document)==null?void 0:e.readyState}return c==="complete"}catch(g){return b===void 0?!1:b}};
Afa=function(a){a||(a=function(b,c,d){b.addEventListener(c,d)});
return a};
Efa=function(a,b){var c=Bfa();c=c===void 0?new Cfa:c;if(a=wfa(a)){var d=Afa(d);for(var e=!1,g=function(J){e||(e=!0,b(J))},k,m=2,n=0;n<Dfa.length;++n)if(Dfa[n]===a.tagName){m=3;
k=[a];break}k||(k=a.querySelectorAll(Dfa.join(",")));var r=0,t=0,u=!0,w=a=!1;n={};for(var A=0;A<k.length;n={isImg:void 0},A++){var C=k[A];if(!yfa(C))if(n.isImg=C.tagName==="IMG",zfa(C,c.crossDomainLoadedDefault))a=!0,n.isImg&&(u=!0);else{r++;var G=function(J){return function(I){r--;!r&&u&&g(m);J.isImg&&(I=I&&I.type==="error",t--,I||(u=!0),!t&&w&&u&&g(m))}}(n);
d(C,"load",G);n.isImg&&(t++,d(C,"error",G))}}t===0&&(u=!0);k=null;k=_.ja.document.readyState==="complete";if(r===0&&!a&&k)m=5;else if(r||!a){d(_.ja,"load",function(){!c.pendingImagesBlockLoad||!t&&u?g(4):w=!0});
return}g(m)}};
Ffa=function(a,b,c){if(a)for(var d=0;a!=null&&d<500&&!c(a);++d)a=b(a)};
Gfa=function(a,b){Ffa(a,function(c){try{return c===c.parent?null:c.parent}catch(d){}return null},b)};
Hfa=function(a,b){if(a.tagName=="IFRAME")b(a);else{a=a.querySelectorAll("IFRAME");for(var c=0;c<a.length&&!b(a[c]);++c);}};
Ifa=function(a){return(a=a.ownerDocument)&&(a.parentWindow||a.defaultView)||null};
Jfa=function(a,b,c){try{var d=JSON.parse(c.data)}catch(k){}if(typeof d==="object"&&d&&d.type==="creativeLoad"){var e=Ifa(a);if(c.source&&e){var g;Gfa(c.source,function(k){try{if(k.parent===e)return g=k,!0}catch(m){}});
g&&Hfa(a,function(k){if(k.contentWindow===g)return b(d),!0})}}};
Kfa=function(a){return typeof a==="string"?document.getElementById(a):a};
Ofa=function(){var a={};return a[0]=_.ef(Lfa,"current"),a[1]=_.ef(Mfa),a[2]=_.ef(Nfa),a};
mf=function(a,b){return a.left===b.left&&a.top===b.top&&a.width===b.width&&a.height===b.height};
Pfa=function(a,b){return{left:Math.max(a.left,b.left),top:Math.max(a.top,b.top),width:Math.max(0,Math.min(a.left+a.width,b.left+b.width)-Math.max(a.left,b.left)),height:Math.max(0,Math.min(a.top+a.height,b.top+b.height)-Math.max(a.top,b.top))}};
Qfa=function(a,b){return{left:Math.round(a.left+b.x),top:Math.round(a.top+b.y),width:a.width,height:a.height}};
nf=function(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d};
Rfa=function(a,b,c){if(a&&b!==null&&b!=b.top){if(!b.top)return new _.of(-12245933,-12245933);b=b.top}try{return(c===void 0?0:c)?(new _.of(b.innerWidth,b.innerHeight)).round():_.pf(b).round()}catch(d){return new _.of(-12245933,-12245933)}};
Sfa=function(a,b,c){try{if(a){if(!b.top)return new nf(-12245933,-12245933,-12245933,-12245933);b=b.top}var d=Rfa(a,b,c),e=d.height,g=d.width;if(g===-12245933)return new nf(g,g,g,g);var k=qf(rf(b.document)),m=k.x,n=k.y;return new nf(n,m+g,n+e,m)}catch(r){return new nf(-12245933,-12245933,-12245933,-12245933)}};
Tfa=function(a){var b;return(b=a.google_tag_data)!=null?b:a.google_tag_data={}};
Ufa=function(a){var b,c;return typeof((b=a.navigator)==null?void 0:(c=b.userAgentData)==null?void 0:c.getHighEntropyValues)==="function"};
Wfa=function(a){if(!Ufa(a))return null;var b=Tfa(a);if(b.uach_promise)return b.uach_promise;a=a.navigator.userAgentData.getHighEntropyValues(Vfa).then(function(c){b.uach!=null||(b.uach=c);return c});
return b.uach_promise=a};
hga=function(a){var b;return Xfa(Yfa(Zfa($fa(aga(bga(cga(dga(ega(new fga,a.architecture||""),a.bitness||""),a.mobile||!1),a.model||""),a.platform||""),a.platformVersion||""),a.uaFullVersion||""),((b=a.fullVersionList)==null?void 0:b.map(function(c){var d=new gga;d=_.sf(d,1,c.brand);return _.sf(d,2,c.version)}))||[]),a.wow64||!1)};
iga=function(a){var b,c;return(c=(b=Wfa(a))==null?void 0:b.then(function(d){return hga(d)}))!=null?c:null};
jga=function(a,b){return new ie(function(c){var d=!1,e=Array(b.length);e.fill(void 0);var g=new Set,k=new Set,m=function(u,w){a.running?(e[w]=u,g.add(w),d||(d=!0,kf(a,function(){d=!1;c.next(_.Ra(e))},1))):c.error(new tf(w))},n=function(u,w){k.add(w);
g.add(w);kf(a,function(){c.error(u)},1)},r=function(u){k.add(u);
kf(a,function(){k.size===b.length&&c.complete()},1)},t=b.map(function(u,w){return u.subscribe(function(A){return void m(A,w)},function(A){return void n(A,w)},function(){return void r(w)})});
return function(){t.forEach(function(u){return void u.unsubscribe()})}})};
mga=function(a,b,c){function d(){if(b.debugChannel){var J=b.debugChannel,I=J.next;var R={creativeId:b.debugNames.getName(c),requiredSignals:e,signals:Object.assign({},g),hasPrematurelyCompleted:k,errorMessage:m,erroredSignalKey:n};R={specMajor:2,specMinor:0,specPatch:0,timestamp:Je(b.timeProvider.now(),new Le(0,b.timeProvider.timeline)),instanceId:b.debugNames.getName(b.symbol),creativeState:R};I.call(J,R)}}
for(var e=Object.keys(a),g={},k=!1,m=null,n=null,r={},t=new Set,u=[],w=[],A=_.h(e),C=A.next(),G={};!C.done;G={key$jscomp$372:void 0},C=A.next())G.key$jscomp$372=C.value,C=a[G.key$jscomp$372],C instanceof lf?(r[G.key$jscomp$372]=C.value,t.add(G.key$jscomp$372),b.debugChannel&&(g[String(G.key$jscomp$372)]=Rea(C.value))):(C=C.pipe(Re(function(J,I){return Pea(J)||Pea(I)?!1:J===I}),Ae(function(J){return function(I){b.debugChannel&&(g[String(J.key$jscomp$372)]=Rea(I),d());
var R={};return R[J.key$jscomp$372]=I,R}}(G)),Ne(function(J){return function(I){if(I instanceof tf)throw new kga(String(J.key$jscomp$372));
throw I;}}(G)),cfa(function(J){return function(){t.add(J.key$jscomp$372)}}(G),function(J){return function(I){n=String(J.key$jscomp$372);
m=String(I);d()}}(G),function(J){return function(){t.has(J.key$jscomp$372)||(k=!0,d())}}(G))),w.push(G.key$jscomp$372),u.push(C));
(a=Object.keys(g).length>0)&&d();A=jga(b.queue,u).pipe(Ne(function(J){if(J instanceof tf)throw new lga(String(w[J.inputObservableIndex]));throw J;}),Ae(function(J){return Object.freeze(Object.assign.apply(Object,[{},
r].concat(_.Be(J))))}));
return(u=u.length>0)&&a?He(ue(Object.freeze(r)),A):u?A:ue(Object.freeze(r))};
nga=function(a,b,c,d,e){return a.performanceMonitor.timeExecution.bind(a.performanceMonitor)(733,function(){var g={};try{return b.pipe(Ne(function(k){d(Object.assign({},g,{error:k}));return Ge}),Ee(function(k){try{var m=c(a,k)}catch(r){return d(Object.assign({},g,{error:r instanceof Error?r:String(r)})),Ge}var n={};
return mga(m,a,k.symbol).pipe(cfa(function(r){n=r}),Xe(1),ze()).pipe(e,Ne(function(r){d(Object.assign({},n,{error:r}));
return Ge}),Se(void 0),Ae(function(){return!0}))})).pipe(Ze(function(k){return k+1},0),Ne(function(k){d(Object.assign({},g,{error:k}));
return Ge}))}catch(k){return d(Object.assign({},g,{error:k})),Ge}})()};
uf=function(a){var b=new Map;if(typeof a!=="object"||a===null)return b;Object.values(a).forEach(function(c){c&&typeof c.extrapolateToNow==="function"&&(b.has(c.clock.timeline)||b.set(c.clock.timeline,c.clock.now()))});
return b};
oga=function(a,b){return typeof a==="string"?encodeURIComponent(a):typeof a==="number"?String(a):Array.isArray(a)?a.map(function(c){return oga(c,b)}).join(","):a instanceof Le?a.toString():a&&typeof a.extrapolateToNow==="function"?oga(a.extrapolateUsingTimestampMap(b).value,b):a===!0?"1":a===!1?"0":a===void 0||a===null?null:a instanceof pga?qga(a):[a.top,
a.left,a.top+a.height,a.left+a.width].join()};
rga=function(a,b){a=Object.entries(a).map(function(c){var d=_.h(c);c=d.next().value;d=d.next().value;d=oga(d,b);return d===null?"":c+"="+d}).filter(function(c){return c!==""});
return a.length?a.join("&"):""};
uga=function(a,b){var c=sga,d=tga;b=b===void 0?.01:b;return function(e){b>0&&Math.random()<=b&&(a.global.HTMLFencedFrameElement&&a.global.fence&&typeof a.global.fence.reportEvent==="function"&&a.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),e=Object.assign({},e,{errorMessage:e.error instanceof Error&&e.error.message?e.error.message:String(e.error),errorStack:e.error instanceof Error&&e.error.stack?String(e.error.stack):null,errorName:e.error instanceof
Error&&e.error.name?String(e.error.name):null,errorContext:String(a.performanceMonitor.timedFunctionContext),errorEscapedQueryId:e.escapedQueryId}),c(Object.assign({},e,{payloadMapper:function(){return function(g){try{return d(Object.assign({},g))}catch(k){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),uf(e)).forEach(function(g){a.beaconFactory.makeBeacon(g).sendNow()}))}};
vga=function(){var a=_.Id.apply(0,arguments);return function(b){var c=b.pipe(Xe(1),ze());b=a.map(function(d){return c.pipe(d,Se(!0))});
return Ce(b).pipe(Qe(1),Oe())}};
wga=function(){var a=_.Id.apply(0,arguments);return function(b){var c=b.pipe(Xe(1),ze());b=a.map(function(d){return c.pipe(d,Se(!0))});
return He.apply(null,_.Be(b)).pipe(Qe(1),Oe())}};
xga=function(a,b){return function(c){var d=c.pipe(Xe(1),ze());c=d.pipe(a,Se(!0));d=d.pipe(he(b,Xe(),ze()),Se(!0));c=Ce([c,d]);return Nea(c,d).pipe(Qe(1),Oe())}};
yga=function(a,b,c){c(!0)};
zga=function(a,b){return he(af(function(c){var d=a(c),e=b(c),g={};return d&&e&&g?new ie(function(k){e(d,g,function(m){k.next(Object.assign({},c,{canEmit:m}));k.complete()});
return function(){}}):vf}),Ie(function(c){return c.canEmit}))};
Aga=function(a){var b={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(c){return c.pipe(af(function(d){return new ie(function(e){function g(){m.disconnect();n.unsubscribe()}
var k=a.MutationObserver;if(k&&d.ref!==void 0){var m=new k(function(r){e.next(r)});
m.observe(d.ref,b);var n=d.JSC$7192_released.subscribe(g);return g}})}))}};
Bga=function(a){if(a.measurementDeferralState===3)return null;if(a.timeOnScreenReason!==void 0){var b=a.creativeFound===!1?"n":null;if(b!==null)return b}return a.geometricMeasurementErrors instanceof wf?"msf":a.contextValidationErrors instanceof xf?"c":a.contextVisibilityKnown===!1?"pv":a.geometricMeasurementErrors||a.contextValidationErrors?"x":null};
Dga=function(a,b){return a.replace(Cga,function(c,d){try{var e=_.yf.get(b,d);if(e==null||e.toString()==null)return c;e=e.toString();if(e==""||!_.qa(e==null?"":String(e)))return encodeURIComponent(e).replace(/%2C/g,",")}catch(g){}return c})};
Ega=function(a,b){var c=Object.assign({},a),d=a.userAgentClientHints;c=(delete c.userAgentClientHints,c);c=a.payloadMapper(c);var e=rga(c,b);return _.zf(a.urlPrefixes,function(g){var k="";typeof d==="string"&&(k="&"+rga({uach:d},b));var m={};return Dga(g,(m.VIEWABILITY=e,m))+k})};
sga=function(a,b){var c=a.payloadMapper(a),d=rga(c,b);return d?_.zf(a.urlPrefixes,function(e){e=e.indexOf("?")>=0?e:e+"?";e="?&".indexOf(e.slice(-1))>=0?e:e+"&";return e+d}):a.urlPrefixes};
Fga=function(){return he(Ie(function(a){return a!==void 0}),Ae(function(a){return a}))};
Gga=function(a){return he(Ae(function(){return!0}),$e(!1),jf(a))};
Hga=function(a){return a.length<=0?Ge:Ce(a.map(function(b){var c=0;return b.pipe(Ae(function(d){return{index:c++,value:d}}))})).pipe(Ie(function(b){return b.every(function(c){return c.index===b[0].index})}),Ae(function(b){return b.map(function(c){return c.value})}))};
Iga=function(a,b){a.currentState&&(a.previousState=a.currentState);a.currentState=b;a.previousState&&a.previousState.value?(b=Math.max(0,Je(b.timestamp,a.previousState.timestamp)),a.totalTime+=b,a.consecutiveTime+=b):a.consecutiveTime=0;return a};
Jga=function(){return he(Ze(Iga,{totalTime:0,consecutiveTime:0}),Ae(function(a){return a.totalTime}))};
Kga=function(){return he(Ze(Iga,{totalTime:0,consecutiveTime:0}),Ae(function(a){return a.consecutiveTime}))};
Lga=function(a,b){return function(c){return Hga(b.map(function(d){return c.pipe(a(d))}))}};
Mga=function(){var a;return he(cfa(function(b){return void(a=b.timestamp)}),Kga(),Ae(function(b){return{timestamp:a,
value:Math.round(b)}}))};
Nga=function(a,b){return mf(a.topWindowViewportExternalGeometry,b.topWindowViewportExternalGeometry)&&mf(a.elementGeometry,b.elementGeometry)&&mf(a.exposedViewportLocalGeometry,b.exposedViewportLocalGeometry)&&mf(a.intersectionGeometry,b.intersectionGeometry)&&a.elementGeometrySourceName===b.elementGeometrySourceName&&a.measurementRequests===b.measurementRequests&&a.viewportGeometrySourceName===b.viewportGeometrySourceName&&a.viewportLocalAppOffset.x===b.viewportLocalAppOffset.x&&a.viewportLocalAppOffset.y===
b.viewportLocalAppOffset.y};
Sga=function(a,b){return function(c){return function(d){var e=d.pipe(Ue(new gf),ze());d=c.element.pipe(Re());e=e.pipe(Ae(function(g){return g.value}));
return Ce([d,e,b]).pipe(Ae(function(g){var k=_.h(g);g=k.next().value;var m=k.next().value;k=k.next().value;if(g.ref===void 0)var n={top:0,left:0,width:0,height:0};else{n=g.ref.getBoundingClientRect();var r=g.ref,t=a.global,u=new _.Af(0,0),w=Bf(_.Cf(r));if(Oga(w,"parent")){do{if(w==t)var A=_.Df(r);else A=Pga(r),A=new _.Af(A.left,A.top);u.x+=A.x;u.y+=A.y}while(w&&w!=t&&w!=w.parent&&(r=w.frameElement)&&(w=w.parent))}n={top:u.y,left:u.x,width:n.width,height:n.height}}n=Qfa(n,m.viewportLocalAppOffset);
t=Pfa(n,m.exposedViewportLocalGeometry);u=a.timeProvider.now();w=Object;r=w.assign;if(k!==2||a.inCrossDomainIframe||t.width<=0||t.height<=0)var C=!1;else try{var G=a.document.elementFromPoint(t.left+t.width/2,t.top+t.height/2);C=G?!Qga(G,g):!1}catch(J){C=!1}return{timestamp:u,value:r.call(w,{},m,{elementGeometrySourceName:"geo",intersectionGeometry:C?Rga.intersectionGeometry:t,elementGeometry:n})}}),hf(a.queue))}}};
Qga=function(a,b,c){c=c===void 0?0:c;return a.ref===void 0||b.ref===void 0?!1:a.ref===b.ref||_.Ef(b.ref,function(d){return d===a.ref})?!0:b.ref.ownerDocument&&b.ref.ownerDocument.defaultView&&b.ref.ownerDocument.defaultView===b.ref.ownerDocument.defaultView.top?!1:c<10&&b.ref.ownerDocument&&b.ref.ownerDocument.defaultView&&b.ref.ownerDocument.defaultView.frameElement?Qga(a,new Ff(b.ref.ownerDocument.defaultView.frameElement),c+1):!0};
Vga=function(a){return function(b){return b.pipe(a.ResizeObserver?Tga(a):Uga(a),Xe(1),ze())}};
Tga=function(a){return function(b){return b.pipe(af(function(c){var d=a.ResizeObserver;if(!d||c.ref===void 0)return ue(Rga.elementGeometry);var e=(new ie(function(g){function k(){c.ref!==void 0&&m.unobserve(c.ref);m.disconnect();n.unsubscribe()}
if(c.ref===void 0)return g.complete(),function(){};
var m=new d(function(r){r.forEach(function(t){g.next(t)})});
m.observe(c.ref);var n=c.JSC$7192_released.subscribe(k);return k})).pipe(Me(a.performanceMonitor,736),Ae(function(g){return g.contentRect}));
return He(ue(c.ref.getBoundingClientRect()),e)}),Re(mf))}};
Uga=function(a){return function(b){var c=b.pipe(Aga(a)),d=a.onResize;c=He(b.pipe(Ae(function(){return vfa("resize")})),c,d);
return Ce(b,c).pipe(Me(a.performanceMonitor,737),Ae(function(e){e=_.h(e).next().value;return e.ref===void 0?void 0:e.ref.getBoundingClientRect()}),Fga(),Re(mf))}};
Yga=function(a,b){var c=Wga(a,b).pipe(Xe(1),ze());return function(d){return function(e){e=e.pipe(af(function(g){return g.element}),Re());
return Ce([c,e]).pipe(af(function(g){var k=_.h(g);g=k.next().value;k=k.next().value;return Xga(a,g.intersectionObserver,Vga(a),g.observations,d,g.flushRecords,k)}),hf(a.queue))}}};
Zga=function(a){return Ae(function(b){return b.value.viewportGeometrySourceName!=="nio"?b:Object.assign({},b,{value:Object.assign({},b.value,{exposedViewportLocalGeometry:Gf(a,!0),topWindowViewportExternalGeometry:Gf(a,!0)})})})};
$ga=function(a,b){return ue(b).pipe(a,Ae(function(){return b}))};
Wga=function(a,b){return a.timeProvider.timeline!==aha?ve(new wf(2)):a.MutationObserver?typeof IntersectionObserver==="undefined"?ve(new wf(0)):(new ie(function(c){var d=new gf,e=new Hf(d.next.bind(d),{threshold:[].concat(_.Be(b))});c.next({observations:d.pipe(Me(a.performanceMonitor,735)),intersectionObserver:e,flushRecords:function(g){g=e.takeRecords(g);g.length>0&&d.next(g)}})})).pipe(Qe(1),Xe(1),ze()):ve(new wf(1))};
bha=function(a){return gea(a.sort(function(b,c){return b.time-c.time}),qea)};
Xga=function(a,b,c,d,e,g,k){return new ie(function(m){function n(){C||(C=!0,k.ref!==void 0&&b.unobserve(e,k.ref),t.unsubscribe(),A.unsubscribe(),w.unsubscribe(),G.unsubscribe())}
if(k.ref!==void 0){cha(b,e);b.observe(e,k.ref);var r=new If({timestamp:a.timeProvider.now(),value:Object.assign({},Rga,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),t=d.pipe(Ee(function(J){return bha(J)}),Ie(function(J){return J.target===k.ref}),Ae(function(J){return{timestamp:new Le(J.time,aha),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:J.rootBounds||Jf,topWindowViewportExternalGeometry:J.rootBounds||Gf(a,!0),measurementRequests:u,elementGeometrySourceName:"nio",intersectionGeometry:J.intersectionRect,elementGeometry:J.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:J.isIntersecting,isV2Visible:J.isVisible}}}),Ue(r),ze()).subscribe(m),u=new gf,w=u.subscribe(function(){g(e);
m.next({timestamp:a.timeProvider.now(),value:r.value.value});k.ref!==void 0&&(b.unobserve(e,k.ref),b.observe(e,k.ref))}),A=$ga(c,k).subscribe(function(){u.next()}),C=!1,G=k.JSC$7192_released.subscribe(function(){return n()});
return n}})};
dha=function(a,b){var c=a.getOnBackgrounded().pipe(Ae(function(){return"b"}));
return Nea(b,c).pipe(Qe(1),jf(a.queue))};
Kf=function(a){return function(b){var c;return b.pipe(cfa(function(d){return void(c=d.timestamp)}),Ae(function(d){return d.value}),a,Ae(function(d){return{timestamp:c,
value:d}}))}};
Lf=function(a,b,c){c=c===void 0?function(d,e){return d===e}:c;
return a.timestamp.equals(b.timestamp)&&c(a.value,b.value)};
Of=function(a,b){return b.pipe(Ae(function(c){return new Nf(a.timeProvider,{timestamp:a.timeProvider.now(),value:c})}))};
eha=function(a){return function(b){return b.pipe(dfa(a),Ae(function(c){var d=_.h(c);c=d.next().value;d=d.next().value;var e=c.value;return{timestamp:c.timestamp,value:e>=1?!0:e<=0?!1:e>=d}}))}};
gha=function(){return he(Ie(function(a,b){return b>0}),fha,$e(-1),Re())};
hha=function(a,b,c){return a?Ce([b,c]).pipe(Ie(function(d){var e=_.h(d);d=e.next().value;e=e.next().value;return d.timestamp.equals(e.timestamp)}),Ae(function(d){var e=_.h(d);
d=e.next().value;e=e.next().value;return d.value>e.value?d:e})):b};
kha=function(a){return function(b){var c=b.pipe(iha),d=b.pipe(jha);return a instanceof ie?a.pipe(af(function(e){return hha(e,c,d)})):hha(a.value,c,d)}};
uha=function(a,b,c,d){var e=d.geometryIsOccluded,g=d.exposureThreshold,k=d.wasLargeAdAtRender,m=d.allowLargeAdThreshold,n=d.largeAdExposureThreshold,r=d.mayUseViewportShareExposure,t=d.hasMeasurementStarted;d=d.useIntersectionObserverV2;b=lha(a,c,b);c=mha(a,c);d=nha(b,d);var u=oha(a,e,r,b),w=u.pipe(Ae(function(fa){return fa.value}),Re(),jf(a),Ze(function(fa,aa){return Math.max(fa,aa)},0)),A=u.pipe(Ae(function(fa){return fa.value}),gha(),jf(a)),C=b.pipe(pha,Ae(function(fa){return fa.value}),Qe(2),
Re(),jf(a));
k=qha(a,b,k,m);var G=k.pipe($e(!1),Re(),Ae(function(fa){return fa?n:g}));
m=u.pipe(eha(G),Re(),jf(a));var J=Ce([m,b]).pipe(Ie(function(fa){var aa=_.h(fa);fa=aa.next().value;aa=aa.next().value;return fa.timestamp.equals(aa.timestamp)}),Ae(function(fa){var aa=_.h(fa);
fa=aa.next().value;aa=aa.next().value;return{visible:fa.value,geometry:aa.value.elementGeometry}}),Ze(function(fa,aa){return!aa.visible&&fa.visible?fa:aa},{visible:!1,
geometry:Jf}),Ae(function(fa){return fa.geometry}),$e(Jf),jf(a),Re(mf));
r=r instanceof ie?r.pipe(Re(),Pe()):vf;G=Ce([r,G]).pipe(Pe());var I=b.pipe(Ie(function(fa){return fa.value.viewportGeometrySourceName!=="ns"&&fa.value.elementGeometrySourceName!=="ns"}),Ze(function(fa){return fa+1},0),$e(0),jf(a)),R=c.pipe(Pe(!0),$e(!1),jf(a));
R=Ce([t,R]).pipe(Ae(function(fa){var aa=_.h(fa);fa=aa.next().value;aa=aa.next().value;return fa&&!aa}),jf(a));
var ca=b.pipe(rha,Re()),V=ca.pipe(Ae(function(fa){return fa.value}),Ze(function(fa,aa){return Math.max(fa,aa)},0),Re(),jf(a));
a=ca.pipe(Ae(function(fa){return fa.value}),gha(),jf(a));
return{shouldResetExposureSignals:r,shouldResetViewabilitySignals:G,geometrySignals:{readyGeometryWithDefault:b,measurementStrategy:b.pipe(sha),creativePosition:J.pipe(Re(mf)),visible:m.pipe(Re(Lf)),timestampedExposure:u.pipe(Re(Lf)),maximumExposure:w,minimumExposure:A,browserSize:b.pipe(tha,Re(_.cb)),timestampedScreenShare:ca,maxScreenShare:V,minScreenShare:a,geometricMeasurementErrors:c,measurementRequests:b.pipe(Ae(function(fa){return fa.value.measurementRequests})),
isLargeAd:k,geometryIsOccluded:e,hasMeasurementStarted:t,geometryMeasurable:R,validMeasurementCount:I,loadTimeExposure:C,v2VisibilityBitVector:d}}};
mha=function(a,b){return b.pipe(Ie(function(){return!1}),Ae(function(c){return c}),Ne(function(c){return Pf(new lf(c),a)}))};
lha=function(a,b,c){return b.pipe(Lea(vf),jf(a)).pipe(Re(function(d,e){return Lf(d,e,Nga)}),$e({timestamp:c.now(),
value:Rga}),jf(a))};
oha=function(a,b,c,d){c=d.pipe(kha(c),Kf(Ae(function(e){return Math.round(e*100)/100})),jf(a));
return b instanceof lf?c:Ce([c,b]).pipe(Ae(function(e){var g=_.h(e);e=g.next().value;g=g.next().value;return{timestamp:g.timestamp.maximum(e.timestamp),value:g.value?0:e.value}}),Re(Lf),jf(a))};
qha=function(a,b,c,d){b=[b.pipe(Ae(function(e){return e.value.elementGeometry.width*e.value.elementGeometry.height>=242500}))];
c instanceof ie&&b.push(c.pipe(Ae(function(e){return!!e})));
c=Ce(b);return d?c.pipe(Ae(function(e){return e.some(function(g){return g})}),$e(!1),Re(),jf(a)):Pf(new lf(!1),a)};
nha=function(a,b){a=Ce([a,b]).pipe(Ae(function(e){var g=_.h(e);e=g.next().value;if(g.next().value&&e.value.isIntersecting)return e.value.isV2Visible}),Re());
var c=a.pipe(Ae(function(e){return e===void 0?!0:e}),Ze(function(e,g){return e||!g},!1)),d=a.pipe(Ze(function(e,g){return g===void 0?e:g?!1:e!=null?e:!0},void 0),Ae(function(e){return!!e}));
return Ce([b,Oea(a,c,d)]).pipe(Ae(function(e){var g=_.h(e);e=g.next().value;var k=_.h(g.next().value);g=k.next().value;var m=k.next().value;k=k.next().value;var n=0;if(!e)return 0;if(g===void 0)return 16;g&&(n|=1);g||(n|=2);m&&(n|=4);k&&(n|=8);return n}))};
Aha=function(a,b,c,d,e){var g=vha.timeThresholdMs;var k=k===void 0?new wha(b,d):k;return(new ie(function(m){var n=c.pipe($e(void 0),af(function(){return xha(e)})).pipe(Ae(function(r){var t=r.value;
r=r.timestamp;var u=t.visible;t=t.consecutiveViewTime;var w=t>=g;w||!u?yha(k):(r=Math.max(0,Je(b.now(),r)),zha(k,Math.max(0,g-t-r)));return w}),Ze(function(r,t){return t||r},!1),Re()).subscribe(m);
return function(){k.dispose();n.unsubscribe()}})).pipe(bf(function(m){return!m},!0),jf(a))};
xha=function(a){return Hga([a,a.pipe(Mga())]).pipe(Ae(function(b){var c=_.h(b);b=c.next().value;c=c.next().value;return{timestamp:b.timestamp,value:{visible:b.value,consecutiveViewTime:c.value}}}),Re(function(b,c){return Lf(b,c,function(d,e){return d.consecutiveViewTime===e.consecutiveViewTime&&d.visible===e.visible})}))};
Bha=function(){return he(Kga(),Ze(function(a,b){return Math.max(a,b)},0),Ae(function(a){return Math.round(a)}))};
Cha=function(a){return he(eha(ue(a)),Bha())};
Dha=function(a,b){return b instanceof ie?b.pipe(af(function(c){return(c=c?15:null)?ve(new wf(c)):a})):(b=b.value?15:null)?ve(new wf(b)):a};
Eha=function(a){var b=new wf(13);if(a.length<1)return{chain:Ge,capturedErrors:Ge};var c=new gf,d=a[0];return{chain:a.slice(1).reduce(function(e,g){return e.pipe(Ne(function(k){c.next(k);return g}))},d).pipe(Ne(function(e){c.next(e);
return ve(b)}),Ue(new gf),ze()),
capturedErrors:c}};
Fha=function(a,b){var c=a.pipe(Ue(new gf),ze());return af(function(d){return c.pipe(b(d))})};
Hha=function(a,b){if(a.inCrossDomainIframe)return ve(new wf(6));var c=new gf;return He(ue({}),b,c).pipe(Ae(function(){return{timestamp:a.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:Gha(a),topWindowViewportExternalGeometry:Gf(a,!0),measurementRequests:c,viewportLocalAppOffset:{x:0,y:0}}}}),hf(a.queue))};
Gha=function(a){var b=Gf(a,!1);if(!a.inIframe||!Iha(a.global.parent)||a.global.parent===a.global)return b;var c=new Qf(a.global.parent,a.debugChannel);c.beaconFactory=a.beaconFactory;c=Gha(c);a=a.global.frameElement.getBoundingClientRect();return Pfa(Qfa(Pfa(c,a),{x:b.left-a.left,y:b.top-a.top}),b)};
Jha=function(a){if(a.prerendering)return 3;var b;return(b={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[a.visibilityState||a.webkitVisibilityState||a.mozVisibilityState||""])!=null?b:0};
Kha=function(a){return a.document.JSC$7203_onVisibilityChange.pipe(Ae(function(b){return b==="visible"}),Re(),jf(a.queue))};
Lha=function(a,b,c){var d;return b.pipe(Re(),af(function(e){return c.pipe(Ae(function(){if(!d){d=!0;try{e.next()}finally{d=!1}}return!0}))}),$e(!1),jf(a.queue))};
Mha=function(a){return he(Kf(Ae(function(b){return b>=1?!0:b<=0?!1:b>=a})),Jga(),Ae(function(b){return Math.round(b)}))};
Oha=function(a,b,c,d,e){var g=Nha;if(g.length>1)for(var k=0;k<g.length-1;k++)if(g[k]<g[k+1])throw Error();k=e.pipe($e(void 0),af(function(){return c.pipe(Mga())}),Re(),jf(a));
e=e.pipe($e(void 0),af(function(){return c.pipe(Bha())}),Re(),jf(a));
return{totalMeasurementTime:d.pipe($e(void 0),af(function(){return b.pipe(Ae(function(m){return{timestamp:m.timestamp,value:!0}}),Jga())}),Re(),jf(a)),
totalUnviewedTime:d.pipe($e(void 0),af(function(){return b.pipe(Ae(function(m){return{timestamp:m.timestamp,value:m.value===0}}),Jga())}),Re(),jf(a)),
maxTimeOnScreen:d.pipe($e(void 0),af(function(){return b.pipe(Lga(Cha,g))}),Re(_.cb),jf(a)),
timeOnScreen:d.pipe($e(void 0),af(function(){return b.pipe(Lga(Mha,g),Ae(function(m){return m.map(function(n,r){return r>0?n-m[r-1]:n})}))}),Re(_.cb),jf(a)),
maxConsecutiveViewTime:e,consecutiveViewTime:k.pipe(Re(Lf),jf(a))}};
Qha=function(a){var b=!0;b=b===void 0?!1:b;return he(af(function(c){return Pha(a.document,c,b)}),jf(a.queue))};
Rha=function(a,b,c){var d=c.pipe(Ae(function(e){return{value:e,timestamp:a.timeProvider.now()}}),Re(Lf));
return b instanceof ie?b.pipe(Re(),af(function(e){return e?Pf(new lf({value:!1,timestamp:a.timeProvider.now()}),a.queue):d})):b.value===!1?d:new lf(!1)};
Sha=function(a,b,c,d,e,g,k){var m=vha;b=b instanceof ie?b.pipe($e(!1),Re()):b;var n=!a.isMobile();c=Rha(a,c,d);a=k.measurableCreative.pipe(Gga(a.queue));return Object.assign({},m,{geometryIsOccluded:c,wasLargeAdAtRender:e,allowLargeAdThreshold:n,mayUseViewportShareExposure:b,hasMeasurementStarted:a,useIntersectionObserverV2:g})};
Uha=function(a,b,c,d,e,g){var k=1;g=g===void 0?!0:g;k=k===void 0?.01:k;var m=m===void 0?a.timeProvider.intervalObservable(100).pipe(jf(a.queue)):m;return a.performanceMonitor.timeExecution(916,function(){return Tha(a,b.pipe(hf(a.queue)),c.pipe(hf(a.queue)),d,e,g,k,m)})()};
Tha=function(a,b,c,d,e,g,k,m){var n=Kha(a).pipe(Ae(function(t){return!t})),r=new Vha(a,[new Wha(a,Nha),
new Xha(a,m)]);m=vga(Yha,Zha);return nga(a,b,function(t,u){var w=Pf(new lf(u.element),t.queue).pipe(Qha(t),jf(t.queue)),A={loadedElement:w,shouldMeasure:w.pipe(Pe(!0)),measurableCreative:w.pipe(Ae(function(fa){var aa=aa===void 0?Symbol():aa;return Object.freeze({symbol:aa,element:Pf(new lf(fa),t.queue)})})),
creativeSearchResult:Pf(new lf("mue"),t.queue)},C=new lf(!1),G=new lf(!1),J=new lf(17),I=new lf(!1),R=new lf(!1),ca=Pf(Rf,t.queue);C=r.buildGeometrySource(A,{inApp:C,useV2:!1,requestSource:Pf(J,t.queue)}).geometrySource;A=Sha(t,I,G,n,R,ca,A);G=uha(t.queue,t.timeProvider,C,A);A=G.geometrySignals;I=G.shouldResetViewabilitySignals;G=Oha(t.queue,A.timestampedExposure,A.visible,G.shouldResetExposureSignals,I);I=Aha(t.queue,t.timeProvider,I,A.measurementRequests,A.visible);R=c.pipe(Ie(function(fa){return fa===
u.element.ref}),Ae(function(){return"ur"}));
ca=Sea(t.timeProvider,e).pipe(Pe("t"));R=dha(t,He(R,ca));ca=Lha(t,A.measurementRequests,R.pipe(Ie(function(fa){return fa!==null})));
C=R.pipe(Ie(function(fa){return fa!==null}),Ae(function(){return Jha(t.global.document)===1}));
var V=$ha(t.document);return Object.assign({},{beaconFactory:new lf(t.beaconFactory),context:new lf(t),inferredPingId:new lf("lidar2"),timeOnScreenPingId:new lf("lidartos"),binaryContext:new lf(17),binaryVersion:new lf(d),requestSource:J,contextValidationErrors:new lf(t.validate()?null:new xf),contextVisibilityKnown:new lf(V),payloadMapper:new lf(tga),endOfSessionReason:R,timeOnScreenReason:R,requestMeasurementOnEndOfSession:ca,hasImpressionFired:aia,crossDomainIframeState:new lf(t.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:Rf,inFetchLaterBeaconExperiment:Rf,isTurtlex:Rf,turtlexReportEventData:new lf(""),reportFencedFrameEvent:vf,isViewableAttributionEnabled:Rf,inViewableAttributionExperiment:new lf(0),fetchBeaconFactory:vf,supportsPendingBeacon:Rf,supportsFetchLater:Rf,emit:new lf(yga),beginToRenderEvent:new lf(Symbol()),activeViewUnmeasurableEvent:new lf(Symbol()),activeViewViewableEvent:new lf(Symbol()),creativeFound:aia,immediateUrlPrefixes:new lf(u.immediateUrls),timeOnScreenUrlPrefixes:new lf(u.timeOnScreenUrls),
cpmavUrls:vf,viewableRelayUrls:vf,measurementDeferralState:new lf(2),urlSerializer:new lf(Ega),viewUrlSerializer:new lf(bia),isCreativeLoaded:w.pipe(Gga(t.queue)),pageVisible:n.pipe(Ae(function(fa){return!fa})),
eosPageVisible:C,timestampedExposureHistory:A.timestampedExposure.pipe(Ze(function(fa,aa){fa.push(aa);return fa},[]))},A,{viewable:Of(t,I),
maxTimeOnScreen:Of(t,G.maxTimeOnScreen),timeOnScreen:Of(t,G.timeOnScreen),maxConsecutiveViewTime:Of(t,G.maxConsecutiveViewTime),consecutiveViewTime:G.consecutiveViewTime.pipe(Ae(function(fa){return new Nf(t.timeProvider,fa)})),
totalMeasurementTime:Of(t,G.totalMeasurementTime),totalUnviewedTime:Of(t,G.totalUnviewedTime),userAgentClientHints:ufa(t),clientOrderPingCounter:new lf(new pga)})},uga(a,k),wga(g?xga(m,cia):xga(m,dia),eia))};
fia=function(a,b){return(a=(new RegExp("[^#]*[?&]"+b+"=([^&#]*)")).exec(a))?a[1]:null};
gia=function(a){var b=_.Id.apply(1,arguments).filter(Boolean).join("&");if(!b)return a;var c=a.match(/[?&]adurl=/);return c?a.slice(0,c.index+1)+b+"&"+a.slice(c.index+1):a+(a.indexOf("?")<0?"?":"&")+b};
Sf=function(a,b){return b?"&"+a+"="+encodeURIComponent(b):""};
hia=function(){try{var a,b;return!!((a=window)==null?0:(b=a.top)==null?0:b.location.href)&&!1}catch(c){return!0}};
_.Tf=function(a){a&&typeof a.dispose=="function"&&a.dispose()};
_.iia=function(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];_.Sa(d)?_.iia.apply(null,d):_.Tf(d)}};
kia=function(){var a=jia();a=a===void 0?"bevasrsg":a;return new Promise(function(b){var c=window===window.top?window:hia()?window:window.top,d=c[a],e;((e=d)==null?0:e.bevasrs)?b(new Uf(d.bevasrs)):(d||(d={},d=(d.nqfbel=[],d),c[a]=d),d.nqfbel.push(function(g){b(new Uf(g))}))})};
lia=function(a){var b={c:a.aw,e:a.dEa,mc:a.jfb,me:a.kfb};a.vN&&(b.co={c:a.vN.f2a,a:a.vN.uIb,s:a.vN.obc});return b};
mia=function(a){var b,c,d={aw:a.c,dEa:a.e,jfb:(b=a.mc)!=null?b:!1,kfb:(c=a.me)!=null?c:!1};a.co&&(d.vN={f2a:a.co.c,uIb:a.co.a,obc:a.co.s});return d};
nia=function(a){return function(){var b;return _.l(function(c){if(c.nextAddress==1)return _.p(c,a(),2);b=c.yieldResult;return c.return({f:function(){return b.d7a()},
c:function(d){return b.cNb(d)},
m:function(d){return b.gK(mia(d))},
mws:function(d){return b.v8(mia(d))}})})}};
oia=function(a,b){var c=jia();c=c===void 0?"bevasrsg":c;b={s:function(g){var k;return a.snapshot(Object.assign({},g.c&&{aw:g.c},g.s&&{rPa:g.s},{nDe:(k=g.p)!=null?k:!0}))},
e:function(g){var k;return void((k=a.ppa)==null?void 0:k.call(a,g))},
c:function(g,k){return a.jBa(g,k)},
p:a.gba,l:function(){return a.esa()},
wpc:b?nia(b):void 0};var d=window===window.top?window:hia()?window:window.top,e=d[c];if(e){e.bevasrs=b;if(e.nqfbel!==void 0)for(c=_.h(e.nqfbel),d=c.next();!d.done;d=c.next())d=d.value,d(b);e.nqfbel=void 0}else e={},e=(e.bevasrs=b,e.nqfbel=void 0,e),d[c]=e};
qia=function(a){var b=b===void 0?49:b;var c=[];_.Vf(a,pia,6,_.Wf()).forEach(function(d){_.Xf(d,2)<=b&&c.push(_.Xf(d,1))});
return c};
ria=function(a){var b=b===void 0?49:b;var c=[];_.Vf(a,pia,6,_.Wf()).forEach(function(d){_.Xf(d,2)>b&&c.push(_.Xf(d,1))});
return c};
sia=function(a){a.then(function(){},function(){})};
_.Zf=function(a){return{fieldType:1,fieldName:a}};
ag=function(a){return{fieldType:2,fieldName:a}};
_.bg=function(a){return{fieldType:3,fieldName:a}};
tia=function(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;t=r=0}
function b(u){for(var w=k,A=0;A<64;A+=4)w[A/4]=u[A]<<24|u[A+1]<<16|u[A+2]<<8|u[A+3];for(A=16;A<80;A++)u=w[A-3]^w[A-8]^w[A-14]^w[A-16],w[A]=(u<<1|u>>>31)&4294967295;u=e[0];var C=e[1],G=e[2],J=e[3],I=e[4];for(A=0;A<80;A++){if(A<40)if(A<20){var R=J^C&(G^J);var ca=1518500249}else R=C^G^J,ca=1859775393;else A<60?(R=C&G|J&(C|G),ca=2400959708):(R=C^G^J,ca=3395469782);R=((u<<5|u>>>27)&4294967295)+R+I+ca+w[A]&4294967295;I=J;J=G;G=(C<<30|C>>>2)&4294967295;C=u;u=R}e[0]=e[0]+u&4294967295;e[1]=e[1]+C&4294967295;
e[2]=e[2]+G&4294967295;e[3]=e[3]+J&4294967295;e[4]=e[4]+I&4294967295}
function c(u,w){if(typeof u==="string"){u=unescape(encodeURIComponent(u));for(var A=[],C=0,G=u.length;C<G;++C)A.push(u.charCodeAt(C));u=A}w||(w=u.length);A=0;if(r==0)for(;A+64<w;)b(u.slice(A,A+64)),A+=64,t+=64;for(;A<w;)if(g[r++]=u[A++],t++,r==64)for(r=0,b(g);A+64<w;)b(u.slice(A,A+64)),A+=64,t+=64}
function d(){var u=[],w=t*8;r<56?c(m,56-r):c(m,64-(r-56));for(var A=63;A>=56;A--)g[A]=w&255,w>>>=8;b(g);for(A=w=0;A<5;A++)for(var C=24;C>=0;C-=8)u[w++]=e[A]>>C&255;return u}
for(var e=[],g=[],k=[],m=[128],n=1;n<64;++n)m[n]=0;var r,t;a();return{reset:a,update:c,digest:d,digestString:function(){for(var u=d(),w="",A=0;A<u.length;A++)w+="0123456789ABCDEF".charAt(Math.floor(u[A]/16))+"0123456789ABCDEF".charAt(u[A]%16);return w}}};
zia=function(a,b){b=b===void 0?uia:b;if(!via){var c;a=(c=a.navigator)==null?void 0:c.userAgentData;if(!a||typeof a.getHighEntropyValues!=="function"||a.brands&&typeof a.brands.map!=="function")return Promise.reject(Error("Ba"));c=(a.brands||[]).map(function(e){var g=new wia;g=_.sf(g,1,e.brand);return _.sf(g,2,e.version)});
xia(_.cg(yia,2,a.mobile),c);via=a.getHighEntropyValues(b)}var d=new Set(b);return via.then(function(e){var g=yia.clone();d.has("platform")&&_.sf(g,3,e.platform);d.has("platformVersion")&&_.sf(g,4,e.platformVersion);d.has("architecture")&&_.sf(g,5,e.architecture);d.has("model")&&_.sf(g,6,e.model);d.has("uaFullVersion")&&_.sf(g,7,e.uaFullVersion);return g.serialize()}).catch(function(){return yia.serialize()})};
dg=function(a,b,c,d){this.initialValue_=a;this.maxValue_=b;this.currBaseValue_=this.currValue_=a;this.randomFactor_=c||0;this.backoffFactor_=d||2};
eg=function(a){this.src=a;this.listeners={};this.typeCount_=0};
Dia=function(){for(var a;a=Aia.remove();){try{a.fn.call(a.scope)}catch(b){ka(b)}Bia.put(a)}Cia=!1};
_.Eia=function(a){switch(a){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}};
Fia=function(a){switch(a){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""}};
_.Gia=function(){};
Pia=function(a){return{vcd:new Hia(a),errorCount:new Iia(a),eventCount:new Jia(a),pIc:new Kia(a),aGe:new Lia(a),vjd:new Mia(a),fAc:new Nia(a),ujd:new Oia(a)}};
Yia=function(a,b,c,d){a=Qia(Ria(Sia(new _.fg(1828,"0"),a),new Tia));b.length&&Uia(a,Via(new Wia,b));d!==void 0&&(a.destinationUrl=d);var e=new Xia(1828,"","",!1,"",a.build());_.gg(e,a);var g=new ig({flush:function(k){try{e.flush(k)}catch(m){c(m)}}});
g.addOnDisposeCallback(function(){setTimeout(function(){try{g.snapshotAndFlush()}finally{e.dispose()}})});
g.invocationLimit=1E5;g.flushInterval=3E4;g.JSC$7639_flushTimer.setInterval(3E4);return g};
jg=function(){var a,b,c;return(c=(a=globalThis.performance)==null?void 0:(b=a.now)==null?void 0:b.call(a))!=null?c:Date.now()};
aja=function(a,b,c){if(a.disable)return new Zia;b=b?qia(b):[];if(c)return c.hRa(b),c.share();a={ou:a.ou,lka:a.cJc,pIa:a.dXc,destinationUrl:a.destinationUrl,uKa:a.uKa,sba:a.sba};c=b;c=c===void 0?[]:c;return new $ia(a,c)};
_.bja=function(a){if(!a)return null;a=_.kg(a,4);return a===null||a===void 0?null:_.vd(a)};
eja=function(a,b){return b?cja(b):a?dja(a):Promise.resolve()};
cja=function(a){return new Promise(function(b,c){var d=_.lg("SCRIPT"),e=_.bja(a);_.Xd(d,e);d.onload=function(){_.mg(d);b()};
d.onerror=function(){_.mg(d);c(Error("Ma"))};
(og("HEAD")[0]||document.documentElement).appendChild(d)})};
dja=function(a){return new Promise(function(b){var c=_.lg("SCRIPT");if(a){var d=_.kg(a,6);d=d===null||d===void 0?null:_.Ud(d)}else d=null;_.Wd(c,d);(og("HEAD")[0]||document.documentElement).appendChild(c);_.mg(c);b()})};
pg=function(a,b,c){var d,e=new Promise(function(g){d=setTimeout(g,b)});
return Promise.race([a.finally(function(){return void clearTimeout(d)}),
e.then(c)])};
fja=function(a,b){try{return globalThis.sessionStorage.setItem(a,b),!0}catch(c){return!1}};
gja=function(a,b,c,d){b=b===void 0?0:b;c=c===void 0?a.length:c;var e=0;for(d&&(e=gja(d));b<c;b++)d=typeof a==="string"?a.charCodeAt(b):a[b],e=hja(31,e)+d|0;return e};
ija=function(a,b){return[gja(a,0,a.length>>1,b),gja(a,a.length>>1)]};
jja=function(a){var b=_.h(ija(a,qg));a=b.next().value;b=b.next().value;return a.toString(16)+b.toString(16)};
kja=function(a,b){var c=ija(b);a=new Uint32Array(a.buffer);b=a[0];var d=_.h(c);c=d.next().value;d=d.next().value;for(var e=1;e<a.length;e+=2){for(var g=b,k=e,m=c,n=d,r=0;r<22;r++)k=k>>>8|k<<24,k+=g|0,k^=m+38293,g=g<<3|g>>>29,g^=k,n=n>>>8|n<<24,n+=m|0,n^=r+38293,m=m<<3|m>>>29,m^=n;g=[g,k];a[e]^=g[0];e+1<a.length&&(a[e+1]^=g[1])}};
lja=function(a,b,c,d,e){var g=(4-(qg.length+c.length)%4)%4,k=new Uint8Array(4+g+qg.length+4+c.length),m=new DataView(k.buffer),n=0;m.setUint32(n,Math.random()*4294967295);n=n+4+g;k.set(qg,n);n+=qg.length;m.setUint32(n,e);k.set(c,n+4);kja(k,d);return a.insert(b,function(r){return void globalThis.sessionStorage.removeItem(r)})?fja(b,_.wc(k))?"s":"t":"i"};
mja=function(a,b){var c=globalThis.sessionStorage.getItem(a);if(!c)return["m"];try{var d=_.db(c);kja(d,b)}catch(e){return globalThis.sessionStorage.removeItem(a),["c"]}for(b=4;b<7&&d[b]===0;)b++;for(c=0;c<qg.length;c++)if(d[b++]!==qg[c])return globalThis.sessionStorage.removeItem(a),["d"];c=(new DataView(d.buffer)).getUint32(b);return Math.floor(Date.now()/1E3)>=c?(globalThis.sessionStorage.removeItem(a),["e"]):["a",new Uint8Array(d.buffer,b+4)]};
nja=function(a){return globalThis.TextEncoder?(new TextEncoder).encode(a):_.rg(a)};
oja=function(a){var b=a,c;return function(){if(b){var d=b;b=void 0;c=d.apply(this,arguments)}return c}};
qja=function(a){return Hb(function(b){if(b instanceof a)return!0;var c,d,e=b==null?void 0:(c=b.ownerDocument)==null?void 0:(d=c.defaultView)==null?void 0:d[a.name];return pja(e)&&b instanceof e})};
_.vg=function(a,b,c){_.tg.call(this);this.JSC$7848_listener_=a;this.JSC$7848_interval_=b||0;this.handler_=c;this.callback_=(0,_.ug)(this.JSC$7850_doAction_,this)};
_.wg=function(a){a=rja(a);return _.vd(a)};
rja=function(a){return a===null?"null":a===void 0?"undefined":a};
tja=function(a){if(_.xg)a(_.xg);else{var b;((b=sja)!=null?b:sja=[]).push(a)}};
zg=function(){!_.xg&&_.yg&&_.uja(_.yg());return _.xg};
_.uja=function(a){_.xg=a;var b;(b=sja)==null||b.forEach(tja);sja=void 0};
_.Ag=function(a){_.xg&&_.xg.beforeLoadModuleCode(a)};
_.Bg=function(){_.xg&&_.xg.JSC$8773_setLoaded()};
vja=function(a){return vc(a)?Number(a):String(a)};
wja=function(a){this.action=a;this.wfv=!1};
xja=function(a,b){wja.call(this,"set-drive-options");this.appId=a;this.appOrigin=b};
yja=function(a){wja.call(this,"visibility");this.visible=a};
zja=function(a,b,c){Cg.call(this,a,b,c)};
Aja=function(a){Dg.call(this,a)};
Bja=function(a){a=a&&a.getWindow()||window;return a.gadgets&&a.gadgets.rpc};
Dja=function(a,b){var c=b&&b.getWindow()||window;if(Bja(b))a();else if(Cja)Cja.push(a);else var d=Cja=[a],e=c.setInterval(function(){if(Bja(b)){c.clearInterval(e);for(var g=0;g<d.length;g++)d[g]();Cja=null}},100)};
Fja=function(a,b){var c=new Eg(a);_.gg(b,c);var d={passive:!1};b.listen(c,"mousewheel",function(e){return void Eja(a,e)},d).listen(a,"scroll",function(e){return void Eja(a,e)},d)};
Eja=function(a,b){var c;a:{for(c=b.target;c;){if(c.nodeType==1){var d=_.Fg(c,"overflowY");if(d=="auto"||d=="scroll")break a}c=c.parentNode}c=null}if(!c||!_.Gg(a,c)||c.scrollHeight==c.clientHeight||b.deltaY>0&&Math.abs(c.scrollTop-(c.scrollHeight-c.clientHeight))<=1||b.deltaY<0&&c.scrollTop==0)b.preventDefault(),b.stopPropagation()};
Ng=function(a,b,c,d,e,g,k,m,n){m=m===void 0?!1:m;n=n===void 0?!1:n;Cg.call(this,void 0,void 0,void 0);Cg.call(this,g?g+" picker modal-dialog":"picker modal-dialog",!0,c);_.Hg(a,"protocol");this.iframeManager_=new Gja;this.targetId_=Ig();this.rpcToken_=Ig();a=_.Jg(a);_.Kg(a,"hostId");c=_.Kg(a,"parent");this.useGapi_=!n&&!0||(c==null?void 0:c.includes("onepick.corp.google.com"));m&&_.Lg(a,"fv2","true");this.setUrl(a.toString());this.preferredDialogWidth_=d;this.preferredDialogHeight_=e;d!==void 0||
e!==void 0?d=!0:(d=_.Kg(_.Jg(a.toString()),"hostId"),Hja||(Hja=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),d=!Hja.has(d));this.autoSizeDialog_=d;this.JSC$8041_gadgetsDomHelper_=k||this.JSC$7992_dom_;b&&(k=this.JSC$8041_gadgetsDomHelper_,b=_.Kg(_.Jg(this.JSC$8043_url_),"grugl")=="true"?Ija:Jja,Bja(k)||(k=k||rf(document),d=k.createElement("SCRIPT"),_.Xd(d,b),d.type="text/javascript",k.JSC$7221_document_.body.appendChild(d)));
a=a.toString();b=null;k=a.indexOf("/picker?");k>-1?b=a.substring(0,k+8-1):oa(a,"/picker")&&(b=a);b&&this.setRelayUrl(b+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(a=this.buttons_,a.JSC$8026_element_=this.buttonEl_,a.render()):_.Yd(this.buttonEl_,Kja),_.Mg(this.buttonEl_,!!this.buttons_))};
_.Oja=function(a){var b=b===void 0?Lja:b;var c=_.ab(a),d=function(g){g=_.h(g);g.next();g=Og(g);return b(c,g)},e=function(g){var k=_.h(g);
g=k.next().value;k=Og(k);return a.apply(g,k)};
return function(){var g=_.Id.apply(0,arguments),k=this||_.ja,m=Mja.get(k);m||(m={},Mja.set(k,m));return _.Nja(m,[this].concat(_.Be(g)),e,d)}};
Pg=function(a){var b={};a=a.replace(/\r/g,"").split("\n");for(var c=0;c<a.length;c++){var d=a[c],e=d.indexOf(":");e<0||(b[d.substring(0,e)]=d.substring(e+2,d.length))}return b};
Pja=function(a,b,c){c=c===void 0?function(){}:c;
b=_.h(b);for(var d=b.next();!d.done;d=b.next()){var e=_.h(d.value);d=e.next().value;e=e.next().value;if(d instanceof Array&&d.includes(a)||d===a)return e()}return c()};
_.Qg=function(a,b,c){c=c===void 0?function(){}:c;
return a?b():c()};
_.Rja=function(a){var b;return((b=Qja.documentOverride)!=null?b:a).__wizdispatcher};
Sg=function(a){var b=_.Rg;_.Rg=a;return b};
Tja=function(a,b){var c;if((c=a)==null?0:c.isDisposed)throw Error("qb`"+String(a.debugName));for(;a!==void 0;){c=a;if(c.retrieve)return c.retrieve(b,{optional:!0});a=a.parent}return Sja};
Tg=function(a){return{"\u0275prov":{providedIn:"root",token:Symbol(a),factory:void 0,value:void 0}}};
_.Ug=function(a){var b=Sg(a);a={};return a[Symbol.dispose]=function(){Sg(b)},a};
Vg=function(a){return a};
Uja=function(a,b){a.disposables||(a.disposables=[]);a.disposables.push(b)};
Wg=function(a){var b=_.Rg;b&&!b.isDisposed&&(Uja(b,function(){return void Vja(a)}),a.parent=b)};
Wja=function(a){if(a.disposables){for(var b=_.h(a.disposables),c=b.next();!c.done;c=b.next())c=c.value,c();a.disposables.length=0}};
Vja=function(a){if(!a.isDisposed){a.isDisposed=!0;var b;(b=a[Symbol.dispose])==null||b.call(a);delete a.parent;Wja(a)}};
dka=function(a){var b={};a.appContext&&(b[Xja.\u0275prov.token]=a.appContext);a.dispatcher&&(b[Yja.\u0275prov.token]=a.dispatcher);a.rootElement&&(b[Zja.\u0275prov.token]=a.rootElement);a.modelRootElement&&(b[$ja.\u0275prov.token]=a.modelRootElement);a.rendererData&&(b[aka.\u0275prov.token]=a.rendererData);a.injectingConstructor&&(b[bka.\u0275prov.token]=a.injectingConstructor);var c={retrieve:function(d){var e=b[d.\u0275prov.token];if(e!==void 0)return e;for(e=c.parent;e;){var g=e;if(g.retrieve)return g.retrieve(d);
e=e.parent}e=d.\u0275prov.token;g=cka[e];g!==void 0?d=g:(g=d.\u0275prov.providedIn,d.\u0275prov.factory?(d=d.\u0275prov.factory(),e&&g==="root"&&(cka[e]=d)):d=Sja);return d}};
Wg(c);return c};
eka=function(a,b,c){var d;return a&&b?a+"__"+b:(d=a!=null?a:b)!=null?d:c};
gka=function(){var a=Object.assign({},fka);Object.getOwnPropertyNames(fka).forEach(function(b){Xg[b]!==void 0&&(a[b]=Xg[b])});
return a};
hka=function(a,b){if(Xg.enablePerformanceTiming){var c,d;(d=(c=performance).mark)==null||d.call(c,a+"Start__"+b)}};
ika=function(a,b){if(Xg.enablePerformanceTiming){var c,d;(d=(c=performance).measure)==null||d.call(c,a+"__"+b,a+"Start__"+b)}};
kka=function(a,b){var c=Object.create(jka);c.debugName=b;!_.Rg||Wg(c);b=Sg(c);try{b=Vg(b),a(c)}finally{Sg(b)}return function(){return void Vja(c)}};
nka=function(a){return lka(a)&&mka in a};
oka=function(a,b){return Object.is(a,b)};
$g=function(a){var b=Zg;Zg=a;return b};
ska=function(a){if(ah)throw Error("ga");if(Zg!==null){var b=Zg.nextProducerIndex++;pka(Zg);b<Zg.producerNode.length&&Zg.producerNode[b]!==a&&bh(Zg)&&qka(Zg.producerNode[b],Zg.producerIndexOfThis[b]);Zg.producerNode[b]!==a&&(Zg.producerNode[b]=a,Zg.producerIndexOfThis[b]=bh(Zg)?rka(a,Zg,b):0);Zg.producerLastReadVersion[b]=a.version}};
vka=function(a){if(!bh(a)||a.dirty)if(a.dirty||a.lastCleanEpoch!==tka)(a.producerMustRecompute(a)||uka(a))&&a.producerRecomputeValue(a),a.dirty=!1,a.lastCleanEpoch=tka};
wka=function(a){if(a.liveConsumerNode!==void 0){var b=ah;ah=!0;try{for(var c=_.h(a.liveConsumerNode),d=c.next();!d.done;d=c.next()){var e=d.value;e.dirty||(a=void 0,e.dirty=!0,wka(e),(a=e.consumerMarkedDirty)==null||a.call(e,e))}}finally{ah=b}}};
xka=function(){var a;return((a=Zg)==null?void 0:a.consumerAllowSignalWrites)!==!1};
yka=function(a){a&&(a.nextProducerIndex=0);return $g(a)};
zka=function(a,b){$g(b);if(a&&a.producerNode!==void 0&&a.producerIndexOfThis!==void 0&&a.producerLastReadVersion!==void 0){if(bh(a))for(b=a.nextProducerIndex;b<a.producerNode.length;b++)qka(a.producerNode[b],a.producerIndexOfThis[b]);for(;a.producerNode.length>a.nextProducerIndex;)a.producerNode.pop(),a.producerLastReadVersion.pop(),a.producerIndexOfThis.pop()}};
uka=function(a){pka(a);for(var b=0;b<a.producerNode.length;b++){var c=a.producerNode[b],d=a.producerLastReadVersion[b];if(d!==c.version)return!0;vka(c);if(d!==c.version)return!0}return!1};
rka=function(a,b,c){Aka(a);if(a.liveConsumerNode.length===0&&a.producerNode!==void 0)for(var d=0;d<a.producerNode.length;d++)a.producerIndexOfThis[d]=rka(a.producerNode[d],a,d);a.liveConsumerIndexOfThis.push(c);return a.liveConsumerNode.push(b)-1};
qka=function(a,b){Aka(a);if(a.liveConsumerNode.length===1&&a.producerNode!==void 0)for(var c=0;c<a.producerNode.length;c++)qka(a.producerNode[c],a.producerIndexOfThis[c]);c=a.liveConsumerNode.length-1;a.liveConsumerNode[b]=a.liveConsumerNode[c];a.liveConsumerIndexOfThis[b]=a.liveConsumerIndexOfThis[c];a.liveConsumerNode.length--;a.liveConsumerIndexOfThis.length--;b<a.liveConsumerNode.length&&(c=a.liveConsumerIndexOfThis[b],a=a.liveConsumerNode[b],pka(a),a.producerIndexOfThis[c]=b)};
bh=function(a){var b,c;return a.consumerIsAlwaysLive||((c=a==null?void 0:(b=a.liveConsumerNode)==null?void 0:b.length)!=null?c:0)>0};
pka=function(a){a.producerNode!=null||(a.producerNode=[]);a.producerIndexOfThis!=null||(a.producerIndexOfThis=[]);a.producerLastReadVersion!=null||(a.producerLastReadVersion=[])};
Aka=function(a){a.liveConsumerNode!=null||(a.liveConsumerNode=[]);a.liveConsumerIndexOfThis!=null||(a.liveConsumerIndexOfThis=[])};
Cka=function(a){var b=Object.create(Bka);b.computation=a;a=function(){vka(b);ska(b);if(b.value===ch)throw b.error;return b.value};
a[dh]=b;return a};
Eka=function(a){var b=Object.create(Dka);b.value=a;a=function(){ska(b);return b.value};
a[dh]=b;return a};
Hka=function(a,b){xka()||Fka(a);if(!a.equal(a.value,b)){a.value=b;a.version++;tka++;wka(a);var c;(c=Gka)==null||c(a)}};
eh=function(a){var b=$g(null);try{return a()}finally{$g(b)}};
Jka=function(a){var b={};return b[Ika]=a,b};
_.fh=function(a,b){b=b===void 0?"":b;a=Eka(a);var c=a[dh];c.debugName=eka(void 0,b,"[signal]");return[a,function(d){hka("signalSet",c.debugName);try{if(d&&d[Ika]){var e=d[Ika];xka()||Fka(c);Hka(c,e(c.value))}else Hka(c,d)}finally{ika("signalSet",c.debugName)}}]};
Lka=function(a,b){var c=_.h(_.fh(a,"cPpJzc"));a=c.next().value;c=c.next().value;a[Kka]=c;a[gh]=b;return a};
Mka=function(a){return!!a&&typeof a==="object"&&Object.getPrototypeOf(a)===Object.prototype};
Nka=function(a){return typeof a==="function"&&Kka in a&&typeof a[Kka]==="function"};
Oka=function(a,b){Object.defineProperty(a,gh,{get:function(){return b}})};
ih=function(a,b){if(hh(a)){var c=a.map(function(g){return ih(g,b)});
Oka(c,b);return c}if(Mka(a)){c={};a=_.h(Object.entries(a));for(var d=a.next();!d.done;d=a.next()){var e=_.h(d.value);d=e.next().value;e=e.next().value;c[d]=ih(e,b)}Oka(c,b);return c}return Lka(a,b)};
Pka=function(a){if(hh(a))return a.map(function(e){return Pka(e)});
if(Mka(a)){var b={};a=_.h(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.h(c.value);c=d.next().value;d=d.next().value;b[c]=Pka(d)}return b}return Nka(a)?a():a};
Rka=function(){var a={height:0,width:0};if(!Mka(a))throw Error("Hb");var b=Symbol("Ib");return[ih(a,b),function(c,d){if(c[gh]===b)if(typeof d==="function"){var e=[].concat(_.Be(Pka(c)));d=d(e)||e;Qka(c,[].concat(_.Be(d)))}else Qka(c,d);else throw Error("Jb");}]};
Qka=function(a,b){if(Nka(a))a[Kka](b);else if(hh(a)&&hh(b))b=ih(b,a[gh]),a.length=0,a.push.apply(a,_.Be(b));else if((Mka(a)||hh(a))&&(hh(b)||typeof b==="object"&&b!==null)){b=_.h(Object.entries(b));for(var c=b.next();!c.done;c=b.next()){var d=_.h(c.value);c=d.next().value;d=d.next().value;var e=a,g=e[c];Object.hasOwn(a,c)?Qka(g,d):e[c]=ih(d,a[gh])}}else throw Error("Kb");};
Ska=function(a){return Object.create(Object.assign({},jh,a))};
Uka=function(){var a;return(a=Tka)!=null?a:Tka=Ska({consumerAllowSignalWrites:!0})};
_.kh=function(a,b,c){c=c===void 0?"":c;a=Cka(a);var d=a[dh];d.debugName=eka(b==null?void 0:b.debugName,c,"[computed]");(b==null?void 0:b.equals)!=null&&(d.equal=b.equals);return a};
lh=function(a){var b=$g(Vka);try{a()}finally{$g(b)}};
Xka=function(a){Wka.push(a);return function(){var b=Wka.indexOf(a);b!==-1&&Wka.splice(b,1)}};
Zka=function(){for(var a=_.h(Yka),b=a.next();!b.done;b=a.next())b.value.flush()};
rla=function(a){for(var b=_.h(a),c=b.next();!c.done;c=b.next()){var d=c.value;for(c=[d];d.parent!==void 0;)d=d.parent,qla(d)&&a.has(d)&&c.push(d);for(;c.length>0;){d=_.Gb(c.pop());try{d.run()}finally{a.delete(d)}}}};
wla=function(a){if(!a.isDisposed){switch(a.effectType){case sla:tla.schedule(a);break;case ula:vla.schedule(a);break;default:_.Sb(a.effectType)}a.hasRun||Zka()}};
xla=function(a){var b=a.component;var c=a.debugInstance;a=a.fn;var d,e=(d=b.debugName)!=null?d:b.name;mh.push({name:c?e+" ("+c+")":e,isReactive:b.componentType!==oh});b=a();mh.pop();return b};
ph=function(){return mh[mh.length-1]};
qh=function(){var a=mh[mh.length-1];return a?a.isReactive:!1};
rh=function(a,b){b=b===void 0?{}:b;var c=mh.length;b.stack&&(mh=[].concat(_.Be(b.stack)));try{return a()}catch(g){a=g;yla(a);if(a!==zla){Ala=mh.slice();b=[];for(var d=_.Rg;d;){var e=void 0;b.push((e=d.debugName)!=null?e:"[context]");e=void 0;d=(e=d.parent)!=null?e:null}Bla=b.reverse()}zla=a;throw a;}finally{c=mh.length-c,c>0&&mh.splice(-c)}};
yla=function(a){var b=mh;if(b.length!==0&&!a.componentStack){var c=b.slice(-20).reverse().map(function(d){return d.name}).join(" > ");
c=a.message+"\n\nComponent stack: "+c;try{a.componentStack=b.slice(),Xg.enableComponentStacksInErrorMessages&&(a.stack&&(a.stack=a.stack.replace(a.message,c)),a.message=c)}catch(d){}}};
Cla=function(a,b,c){b=Object.create(b);b.componentStack=mh.slice();b.reactionFn=a;c&&(b.debugName=c);Wg(b);return b};
uh=function(a,b,c){c=c===void 0?3:c;var d,e;var g=(e=(d=Ala)==null?void 0:d.slice())!=null?e:[];var k,m;d=(m=(k=Bla)==null?void 0:k.slice())!=null?m:[];b={componentStack:g,contextTrace:d,errorSeverity:c,featureFlags:gka(),tagName:b};return[a,b]};
_.vh=function(a,b){a=Cla(a,Dla,b);b=Zg;if(qla(b)&&b.effectType===ula){var c;(c=Xg.handleError)==null||c.call.apply(c,[Xg].concat(_.Be(uh(Error("tb")))))}wla(a)};
_.wh=function(a){var b=_.Rg;if(b){var c=mh.slice();Uja(b,function(){var d=$g(Uka());try{rh(function(){return void a()},{stack:c})}finally{$g(d)}})}};
xh=function(a,b){var c={};(b===void 0||b)&&Wg(c);b=Sg(c);try{b=Vg(b),a(c)}finally{Sg(b)}return function(){return void Vja(c)}};
_.yh=function(a,b){a=Cla(a,Ela,b);wla(a)};
_.zh=function(a){return typeof a==="function"?a():(a==null?0:a[Fla])?a.get():a};
Gla=function(a){if(_.Rg)throw Error("rb");xh(a,!1)};
Ah=function(a,b){a=Sg(a);try{return a=Vg(a),eh(b)}finally{Sg(a)}};
Jla=function(a,b,c){if(Object.hasOwnProperty.call(Hla,a)&&(a=Hla[a],Object.hasOwnProperty.call(a,b)&&(a=a[b],a instanceof Array))){for(var d=null,e=!1,g=0,k=a.length;g<k;++g){var m=a[g],n=m.contingentAttribute;if(!n)return m.contract;d===null&&(d={});n=Object.hasOwnProperty.call(d,n)?d[n]:d[n]=c(n);if(n===m.requiredValue)return m.contract;n==null&&(e=!0)}if(e)return null}b=Ila[b];return typeof b==="number"?b:null};
Mla=function(a,b,c){var d=null;(a=Kla[a])&&(d=a[b]);return typeof d!=="number"&&((a=Kla["*"])&&(d=a[b]),typeof d!=="number")?!1:!0===Lla[d][String(c).toLowerCase()]};
Ola=function(a,b){b=Jla(a.toLowerCase(),b,function(){var d;(d=Xg.handleError)==null||d.call.apply(d,[Xg].concat(_.Be(uh(Error("Pb"),a.toLowerCase()))))});
if(b===null)return null;var c;return(c=Nla[b])!=null?c:null};
Pla=function(a,b,c){if(c===null||c===void 0)return c;a=Ola(a,b);return a===null?c:a(b,c)};
Qla=function(){};
Bh=function(a,b){for(;a.length>b;)a.pop()};
Rla=function(a){a=Array(a);Bh(a,0);return a};
Sla=function(a,b,c){if(c==null)a.removeAttribute(b);else{var d;(d=b.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":b.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?a.setAttributeNS(d,b,c):a.setAttribute(b,c)}};
Tla=function(a,b,c){a[b]=c};
Vla=function(a,b,c){a=a.style;if(typeof c==="string")a.cssText=c;else{a.cssText="";for(var d in c)if(Ula.call(c,d)){b=a;var e=d,g=c[d];e.indexOf("-")>=0?b.setProperty(e,g):b[e]=g}}};
Wla=function(a,b,c){var d=typeof c;d==="object"||d==="function"?a[b]=c:Sla(a,b,c)};
Xla=function(){var a=new Qla;a[Ch.default]=Wla;a.style=Vla;return a};
Yla=function(a,b,c,d){(d[b]||d[Ch.default])(a,b,c)};
$la=function(a,b,c){b=new Zla(b,c);return a.__incrementalDOMData=b};
Dh=function(a,b){if(a.__incrementalDOMData)return a.__incrementalDOMData;var c=a.nodeType===1?a.localName:a.nodeName,d=a.nodeType===1?a.getAttribute("key"):null;b=$la(a,c,a.nodeType===1?d||b:null);if(a.nodeType===1&&(a=a.attributes,c=a.length)){d=b._attrsArr||(b._attrsArr=Rla(c*2));for(var e=0,g=0;e<c;e+=1,g+=2){var k=a[e],m=k.value;d[g]=k.name;d[g+1]=m}}return b};
ama=function(a,b,c,d,e){return b==c&&d==e};
bma=function(a){for(var b=Eh,c=Fh();c!==a;){var d=c.nextSibling;b.removeChild(c);Hh.deleted.push(c);c=d}};
Fh=function(){return Ih?Ih.nextSibling:Eh.firstChild};
Jh=function(){Ih=Fh()};
ema=function(a,b,c){Jh();var d;a:{if(d=Ih){do{var e=d,g=a,k=b,m=Dh(e,k);if(cma(e,g,m.nameOrCtor,k,m.key))break a}while(b&&(d=d.nextSibling))}d=null}d||(a==="#text"?(c=Kh.createTextNode(""),$la(c,"#text",null),a=c):(d=Kh,e=Eh,typeof a==="function"?d=new a:d=(e=a==="svg"?"http://www.w3.org/2000/svg":a==="math"?"http://www.w3.org/1998/Math/MathML":e==null||Dh(e).nameOrCtor==="foreignObject"?null:e.namespaceURI)?d.createElementNS(e,a):d.createElement(a),$la(d,a,b),a=d,c&&a.setAttribute("nonce",c)),Hh.created.push(a),
d=a);c=d;if(c!==Ih){if(dma.indexOf(c)>=0)for(a=Eh,b=c.nextSibling,d=Ih;d!==null&&d!==c;)e=d.nextSibling,a.insertBefore(d,b),d=e;else Eh.insertBefore(c,Ih);Ih=c}};
fma=function(a,b,c){ema(a,b,c);Eh=Ih;Ih=null;return Eh};
gma=function(){bma(null);Ih=Eh;Eh=Eh.parentNode};
Mh=function(){Ih=Eh.lastChild};
jma=function(a,b){b=b===void 0?{}:b;var c=b.matches===void 0?ama:b.matches;return function(d,e,g){var k=Hh,m=Kh,n=dma,r=Nh,t=Oh,u=Ih,w=Eh,A=cma;Kh=d.ownerDocument;Hh=new hma(d);cma=c;Nh=[];Oh=[];Ih=null;var C=Eh=d.parentNode,G,J=ima.call(d);if((G=J.nodeType===11||J.nodeType===9?J.activeElement:null)&&d.contains(G)){for(J=[];G!==C;)J.push(G),G=G.parentNode||(C?G.host:null);C=J}else C=[];dma=C;try{return a(d,e,g)}finally{d=Hh,Ph&&d.deleted.length>0&&Ph(d.deleted),Kh=m,Hh=k,cma=A,Nh=r,Oh=t,Ih=u,Eh=w,
dma=n}}};
kma=function(a,b,c,d){Qh.push(Yla);Qh.push(a);Qh.push(b);Qh.push(c);Qh.push(d)};
mma=function(a,b,c){var d=Oh;b=b._attrsArr||(b._attrsArr=Rla(d.length));for(var e=!b.length||!1,g=0;g<d.length;g+=2){var k=d[g];if(e)b[g]=k;else if(b[g]!==k)break;var m=d[g+1];if(e||b[g+1]!==m)b[g+1]=m,kma(a,k,m,c)}if(g<d.length||g<b.length){for(g=e=g;g<b.length;g+=2)Rh[b[g]]=b[g+1];for(g=e;g<d.length;g+=2)e=d[g],k=d[g+1],Rh[e]!==k&&kma(a,e,k,c),b[g]=e,b[g+1]=k,delete Rh[e];Bh(b,d.length);for(var n in Rh)kma(a,n,void 0,c),delete Rh[n]}a=lma;lma=c=Qh.length;for(n=a;n<c;n+=5)(0,Qh[n])(Qh[n+1],Qh[n+
2],Qh[n+3],Qh[n+4]);lma=a;Bh(Qh,a);Bh(d,0)};
Sh=function(a){ema("#text",null);var b=Ih;var c=Dh(b);if(c.text!==a){c=c.text=a;for(var d=1;d<arguments.length;d+=1)c=(0,arguments[d])(c);b.data!==c&&(b.data=c)}return b};
sma=function(a,b,c){if(c===!1&&nma.has(b))Sla(a,b,null);else if(b!=="idomKey"&&b!=="skip"&&b!=="skipchildren"&&b!=="children"&&b!=="el"){if(b.startsWith("on"))if(b[2]===":"){if(c===void 0||c===null){var d;(d=Xg.handleError)==null||d.call.apply(d,[Xg].concat(_.Be(uh(Error("Tb`"+b),a.tagName))));a[b]=void 0;return}if(typeof c!=="object"||c===null)throw Error("Ub`"+b+"`"+typeof c);if(typeof c.getFn!=="function")throw Error("Vb`"+b+"`"+Object.keys(c));var e=c.getFn(0),g=b.slice(3);if((d=qh())&&a["on"+
g]===void 0)a.addEventListener(g,e),_.wh(function(){return void a.removeEventListener(g,e)});
else if(d||!oma.includes(g))a["on"+g]=e}else{pma(a,b,c);return}else if(b.startsWith("data-")&&typeof c==="string")try{c=qma(c)}catch(k){c="zSoyz"}typeof c!=="function"||a._disposeEffects!=null?(Xg.enableAttributeSanitization&&(c=Pla(a.tagName,b,c)),b==="style"?rma(a,b,c):b.startsWith("prop:")?(b=b.slice(5),a[b]=c):pma(a,b,c)):(a._signalProps||(a._signalProps=[]),a._signalValues||(a._signalValues=[]),a._signalProps.push(b))}};
tma=function(a,b,c){c=(c===void 0?{}:c).isReactive;if(b==null?0:b.el){var d=b.el;if(typeof d==="function")d(a);else{var e;(e=d.onRender)==null||e.call(d,a);a._disposeRef||(a._disposeRef=function(){var g;(g=d.onUnmount)==null||g.call(d);delete a._disposeRef},c&&_.wh(function(){var g;
return void((g=a._disposeRef)==null?void 0:g.call(a))}))}}};
uma=function(a){return lka(a)&&Th in a};
vma=function(a){return uma(a)?a[Th].flattened:a};
wma=function(a,b){var c=_.Id.apply(2,arguments),d;b=(d=b)!=null?d:{};d={};return d.type=a,d.props=b,d.children=c,d[Uh]=!0,d};
_.Vh=function(a){return a.children};
Wh=function(a){var b=xma!==wma;xma=a?yma:wma;return b};
Cma=function(a){zma--;if(a)Ama.length=0;else if(!(zma>0))for(;Ama.length>0;){a=Ama.shift();if(!a)throw Error("Yb");try{a()}catch(b){Bma(b)}}};
Xh=function(a){return _.$a(a)?"nodeType"in a:!1};
Yh=function(){return document.createTextNode("")};
Zh=function(a){a=document.createTextNode(String(a));a._isSignalTextNode=!0;return a};
Dma=function(a){var b=document.createElement("div");if(!(a instanceof Md)){if(a.contentKind!==$h)throw Error("Sb");a=Nd(a.toString())}_.Yd(b,a);a=_.h(b.childNodes);for(var c=a.next();!c.done;c=a.next())c.value._isSafeOrSanitizedHtmlNode=!0;return b};
ai=function(a){a=typeof a;return a==="string"||a==="number"||a==="boolean"};
Ema=function(a){return a instanceof ud||Bd(a)||"function"==typeof _.ae&&a instanceof _.ae||!1};
Fma=function(a,b){var c=a.parentElement;if(!c)return b;c.replaceChild(b,a);return b};
Gma=function(a,b){var c=a[0].parentElement;if(c)if(a[0].previousSibling||a[a.length-1].nextSibling){c.insertBefore(b,a[0]);for(var d=a.length-1;d>=0;d--)c.removeChild(a[d])}else c.textContent="",c.appendChild(b);return b};
Hma=function(a,b){if(a[0].parentElement)for(var c=a[0].parentElement,d=b.length,e=a.length,g=d,k=0,m=0,n=a[e-1].nextSibling,r=null;k<e||m<g;)if(a[k]===b[m])k++,m++;else{for(;a[e-1]===b[g-1];)e--,g--;if(e===k)for(var t=g<d?m?b[m-1].nextSibling:b[g-m]:n;m<g;){var u=b[m++];c.insertBefore(u,t)}else if(g===m)for(;k<e;)t=a[k],r&&r.has(t)||c.removeChild(t),k++;else if(a[k]===b[g-1]&&b[m]===a[e-1])t=a[--e].nextSibling,c.insertBefore(b[m++],a[k++].nextSibling),c.insertBefore(b[--g],t),a[e]=b[g];else{if(!r)for(r=
new Map,t=m;t<g;)r.set(b[t],t++);t=r.get(a[k]);if(t==null)c.removeChild(a[k]),k++;else if(m<t&&t<g){u=k;for(var w=1,A=void 0;++u<e&&u<g&&(A=r.get(a[u]))!=null&&A===t+w;)w++;if(w>t-m)for(u=a[k];m<t;)c.insertBefore(b[m++],u);else c.replaceChild(b[m++],a[k++])}else k++}}return b};
Jma=function(a){if(Array.isArray(a)){if(a.length>1)throw Error("ec`"+a.length+"`"+a.map(Ima).join(", "));a=a[0]}if(a==null)return null;if(!(a instanceof _.Td)){var b,c;if((b=window)==null?0:(c=b.trustedTypes)==null?0:c.isScript(a))throw Error("dc");if(String(a).trim().length===0)return null;throw Error("fc`"+Ima(a));}return a};
Kma=function(a){if(Array.isArray(a)){if(a.length>1)throw Error("gc`"+a.length+"`"+a.map(Ima).join(", "));a=a[0]}if(a==null)return null;if(!Qda(a)){if(String(a).trim().length===0)return null;throw Error("hc`"+Ima(a));}return a};
Ima=function(a){return"("+typeof a+") "+(a!=null&&typeof a==="object"?a.constructor.name:typeof a)+" "+a};
Mma=function(a,b){return Lma(a,b)};
Lma=function(a,b){function c(){e=!1;zma++;var g=d[0],k=d[Th].flattened,m=Wh(!0);try{var n=a(),r=Nma(g,n,d);Array.isArray(r)||(d[Th].flattened=[r]);var t=d[Th].flattened;if(k&&(!Array.isArray(k)||k.length!==0)){var u=Array.isArray(k)?k[0]:k,w=u[bi],A=u._disposeEffects;u._disposeEffects=void 0;u=Array.isArray(t)?t[0]:t;u[bi]=w;u[bi]&&(u[bi].numNodes=u===t?1:t.length);u._disposeEffects=A}d[0]=r;Cma(!1)}catch(C){throw Cma(!0),C;}finally{Wh(m)}}
var d=Oma(),e=!0;_.vh(function(){(Pma==null?0:Pma.logger)&&!e?Pma.logger.logGraft(d[0],c):c()},b);
return d};
Nma=function(a,b,c){for(;typeof b==="function";)b=b();if(b!=null&&b[Uh]){var d,e,g;(g=Xg.handleError)==null||g.call.apply(g,[Xg].concat(_.Be(uh(Error("ic`"+((d=b.type)==null?void 0:d.TAG_NAME)),(e=b.type)==null?void 0:e.TAG_NAME))))}if(a==null)return b==null?Yh():ai(b)?Zh(b):Ema(b)?Zh(b.toString()):Xh(b)?b:b.length===0?Yh():Qma(b,c);if(Xh(a)){if(b==null)return Fma(a,Yh());if(ai(b))return Rma(a,b);if(Ema(b))return Rma(a,b.toString());if(Xh(b))return Fma(a,b);if(b.length===0)return Fma(a,Yh());b=Qma(b,
c);Hma([a],c[Th].flattened);return b}a=ci(a);if(b==null)return Gma(a,Yh());if(ai(b))return Gma(a,Zh(b));if(Ema(b))return Gma(a,Zh(b.toString()));if(Xh(b))return Hma(a,[b])[0];if(b.length===0)return Gma(a,Yh());b=Qma(b,c);Hma(a,c[Th].flattened);return b};
Rma=function(a,b){a.nodeType===Node.TEXT_NODE?a.textContent!==String(b)&&(a.textContent=String(b)):a=Fma(a,Zh(b));return a};
ci=function(a,b,c){return Sma(a,b!=null?b:[],c===void 0?!1:c)};
Qma=function(a,b){var c=ci(a,void 0,!0);if(c.length===0)return Yh();b[Th].flattened=c;return a};
Sma=function(a,b,c,d,e){b=b===void 0?[]:b;c=c===void 0?!1:c;e=e===void 0?-1:e;if(a==null)return b;if(a instanceof ei)return a=a.render(),Sma(a,b,c,d,e);if(Xh(b)&&b.nodeType===Node.ELEMENT_NODE)switch(b.tagName){case "SCRIPT":c=Jma(a);c!==null&&_.Wd(b,c);return;case "STYLE":c=Kma(a);c!==null&&(b.textContent=_.Rda(c));return}ai(a)&&(a=Zh(a),d&&c&&(d[e]=a));if(a!=null&&a.contentKind===$h||a instanceof Md){c=Dma(a);c=Array.from(c.childNodes);c=_.h(c);for(a=c.next();!a.done;a=c.next())Tma(b,a.value);return b}Ema(a)&&
(a=Zh(a.toString()),d&&c&&(d[e]=a));if(Xh(a))return Tma(b,a);if(Array.isArray(a)){for(var g=0;g<a.length;g++)Sma(a[g],b,c,a,g);return b}if(typeof a==="function"){a=Lma(a,"qmF2ne")[0];if(Array.isArray(a)){c=_.h(a);for(a=c.next();!a.done;a=c.next())Tma(b,a.value);return b}d&&c&&(d[e]=a);return Tma(b,a)}if(a!=null&&a[Uh]){d=Wh(!0);e=xma;try{g=e.apply(null,[a.type,a.props].concat(_.Be(a.children)))}finally{Wh(d)}return Sma(g,b,c)}var k;(k=Xg.handleError)==null||k.call.apply(k,[Xg].concat(_.Be(uh(Error("jc")))));
return b};
Oma=function(a){var b={};b=Object.assign([],(b[Th]={flattened:[]},b));if(!a)return b;b[0]=Qma(a,b);return b};
Tma=function(a,b){Array.isArray(a)?a.push(b):a.appendChild(b);return a};
fi=function(a){if(!Xg.enableSinkLazyTsx)return a;if(Array.isArray(a)){for(var b=0;b<a.length;b++)a[b]=fi(a[b]);return a}return a instanceof ei?(a=a.render(),fi(a)):a};
Wma=function(a,b){var c,d,e=Uma(a),g=function(A){d=A;A=Wh(!0);var C=$g(gi);hka("render",e);try{c=fi(a(b))}finally{ika("render",e),$g(C),Wh(A)}};
g=Xg.enableContextPerComponent?kka(g,e):xh(g,Xg.alwaysTrackContexts||!!_.Rg);nka(d);if(!b.renderedFromIdom){var k=Sg(d);try{return Vma(a,b,c),c}finally{Sg(k)}}!uma(c)&&Array.isArray(c)&&(c=Oma(c));var m=vma(c);k=Array.isArray(m)?m[0]:m;var n=!1;if(k){var r,t=(r=b==null?void 0:b.idomKey)!=null?r:a;r=m!==k;k._disposeEffects=g;var u=k[bi]||{},w=uma(c)?c:u.sourceDynamicRange;Object.assign(u,{key:t,numNodes:r?m.length:1,context:d,higherOrder:!!k[bi],sourceDynamicRange:w});k[bi]=u}else n=!0;(function(){var A=
Sg(d);try{A=Vg(A),Vma(a,b,m)}finally{Sg(A)}})();
n&&g();return c};
Uma=function(a){var b,c;return(c=(b=a.debugName)!=null?b:a.name)!=null?c:"[component]"};
Xma=function(a){var b={},c;for(c in a)b={prev$jscomp$24:void 0,next$jscomp$25:void 0},b.prev$jscomp$24=hi[c],b.next$jscomp$25=a[c],hi[c]=function(d){return function(){var e=_.Id.apply(0,arguments);d.prev$jscomp$24.apply(null,_.Be(e));d.next$jscomp$25.apply(null,_.Be(e))}}(b)};
Yma=function(){if(qh())throw Error("kc");return ii};
Zma=function(a,b){if(!a.__unmounted&&b){a.__unmounted=!0;try{a.didUnmount()}catch(e){var c,d;(d=Xg.handleError)==null||d.call.apply(d,[Xg].concat(_.Be(uh(e,(c=a.JSC$8109___type)==null?void 0:c.TAG_NAME))))}hi.didUnmount(a);a.el=null;b.__instance&&delete b.__instance}};
ana=function(a,b,c){a._signalProps!=null&&a._disposeEffects==null&&((c===void 0?0:c)?a._disposeEffects=xh(function(){return void $ma(a,b)},Xg.alwaysTrackContexts||!!_.Rg):$ma(a,b))};
$ma=function(a,b){_.vh(function(){for(var c=a._signalProps,d=a._signalValues,e=0;e<c.length;e++){var g=c[e],k=b[g]();d[e]!==k&&(d[e]=k,sma(a,g,k))}},"e3YVbb")};
bna=function(a,b,c){var d,e=[];a._disposeEffects=xh(function(){_.vh(function(){var g=c();if(g===null||g===void 0)g="";if(ai(g)||g===null)d!=null||(d=document.createTextNode("")),d.parentNode!==a&&(d._isSignalTextNode=!0,a.insertBefore(d,b)),d.textContent=String(g);else if(g!=null&&g.contentKind===$h||g instanceof Md){for(var k=e.length>0?e[e.length-1].nextSibling:b,m=_.h(e),n=m.next();!n.done;n=m.next())a.removeChild(n.value);g=Dma(g);e=Array.from(g.childNodes);g=_.h(e);for(m=g.next();!m.done;m=g.next())a.insertBefore(m.value,
k)}else throw n=(m=(k=ph())==null?void 0:k.name)!=null?m:"unknown",Error("$b`"+n+"`"+typeof g);},"VvDgC")},Xg.alwaysTrackContexts||!!_.Rg)};
ena=function(a,b){var c=_.Id.apply(2,arguments);b!=null||(b={});return!Xg.enableSinkLazyTsx||ph()!=null&&!qh()?cna(a,b,c):new dna(a,b,c)};
cna=function(a,b,c){if(a===_.Vh)return c;if(typeof a==="function")return ph()&&!qh()&&(b.renderedFromIdom=!0),xla({component:a,debugInstance:b.debugInstance,fn:function(){var g=fna(a,b,c);if(g)return g;c.length>0&&(b.children=c.length===1?c[0]:c);g=b;if(a.componentType!==oh)var k=!1;else{g||(g={});var m=new li(g,a),n=$g(gi);try{k=m.render(g)}finally{$g(n)}k instanceof HTMLElement&&(k.__instance=m,m.el=k,m.JSC$8109___type=a,a.TAG_NAME=k.tagName.toLowerCase(),hi.didPatch(m))}return k===!1?Wma(a,b):
k}});
var d=gna(a,b),e;for(e in b)sma(d,e,b[e]);ana(d,b);ci(c,d);tma(d,b,{isReactive:!0});hna(d,b);return d};
gna=function(a,b){a=(ina.has(a.toLowerCase())?0:jna.has(a.startsWith("svg:")?a.replace("svg:",""):a))?document.createElementNS("http://www.w3.org/2000/svg",a.startsWith("svg:")?a.replace("svg:",""):a):kna(a,b)||document.createElement(a);a[lna]=!0;return a};
mna=function(a){if(a){var b;(b=a._disposeRef)==null||b.call(a);var c;(c=a._disposeEffects)==null||c.call(a);a.__instance&&a.__instance instanceof mi&&(b=a.__instance,Zma(b,a),b instanceof li&&b.disposeEffects());for(b=0;b<a.childNodes.length;b++)mna(a.childNodes[b])}};
ona=function(a){nna.push(a)===1&&requestAnimationFrame(function(){setTimeout(function(){var b=[].concat(_.Be(nna));nna=[];b=_.h(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;try{for(var d=0;d<c.length;d++)mna(c[d])}catch(e){d=c=void 0,(d=(c=Xg).handleError)==null||d.call.apply(d,[c].concat(_.Be(uh(e))))}}})})};
_.q=function(a,b){return xma.apply(null,[a,b].concat(_.Be(_.Id.apply(2,arguments))))};
qna=function(){var a=document.body.firstElementChild;a.__ngContext__={};a.setAttribute("ng-version","20.0.0-PLACEHOLDER");window.ng=pna};
_.ni=function(a){return a.keyBy==="INDEX"?rna(a):sna(a)};
tna=function(a){a=_.h(a);for(var b=a.next();!b.done;b=a.next()){var c=void 0;(c=b.value)==null||c()}};
sna=function(a){var b=a.keyBy===void 0||a.keyBy==="REFERENCE",c=b?function(t){return t}:a.keyBy,d=[],e=[],g=[],k=[],m=[],n=[],r=!0;
_.wh(function(){tna(k)});
return Mma(function(){var t=a.each(),u=t.length;if(u===0){if(d.length===0&&!r)return g;tna(k);d=t;e=[];for(t=0;t<d.length;t++)e.push(c(d[t]));g=[];k=[];m=[];n=[];a.fallback&&(k[0]=una(function(){g[0]=fi(a.fallback())}));
r=!1;return g}for(var w=new vna,A=d.length-1;A>=0;A--)w.push(e[A],A);A=Array(u);for(var C=Array(u),G=Array(u),J=Array(u),I=Array(b?0:u),R={i$jscomp$483:0};R.i$jscomp$483<u;R={i$jscomp$483:R.i$jscomp$483,item$jscomp$102:void 0,key$jscomp$516:void 0},R.i$jscomp$483++){R.item$jscomp$102=t[R.i$jscomp$483];R.key$jscomp$516=c(R.item$jscomp$102);var ca=w.pop(R.key$jscomp$516);ca!=null?(G[R.i$jscomp$483]=g[ca],C[R.i$jscomp$483]=e[ca],A[R.i$jscomp$483]=k[ca],J[R.i$jscomp$483]=m[ca],b||(I[R.i$jscomp$483]=n[ca]),
lh(function(V){return function(){J[V.i$jscomp$483](V.i$jscomp$483);if(!b)I[V.i$jscomp$483](V.item$jscomp$102)}}(R)),delete k[ca]):A[R.i$jscomp$483]=una(function(V){return function(){var fa=_.h(_.fh(V.i$jscomp$483,"g4fKif")),aa=fa.next().value;
fa=fa.next().value;J[V.i$jscomp$483]=fa;C[V.i$jscomp$483]=V.key$jscomp$516;if(b)G[V.i$jscomp$483]=fi(a.children(V.item$jscomp$102,aa));else{var ma=_.h(_.fh(V.item$jscomp$102,"Ile0Kc"));fa=ma.next().value;ma=ma.next().value;I[V.i$jscomp$483]=ma;G[V.i$jscomp$483]=fi(a.children(fa,aa))}}}(R))}tna(k);
d=t;e=C;g=G;k=A;m=J;n=I;r=!1;return G},a.debugInstance)};
rna=function(a){var b=[],c=[],d=[],e=[],g=!1;_.wh(function(){for(var k=_.h(e),m=k.next();!m.done;m=k.next())m=m.value,m()});
return Mma(function(){var k=a.each();g&&k.length>0&&(e.pop()(),b.pop(),g=!1);for(var m=Array(k.length),n={i$jscomp$484:0};n.i$jscomp$484<k.length;n={i$jscomp$484:n.i$jscomp$484},n.i$jscomp$484++)if(n.i$jscomp$484<b.length)b[n.i$jscomp$484]!==k[n.i$jscomp$484]&&(lh(function(t){return function(){return void c[t.i$jscomp$484](k[t.i$jscomp$484])}}(n)),b[n.i$jscomp$484]=k[n.i$jscomp$484]),m[n.i$jscomp$484]=d[n.i$jscomp$484];
else{var r=una(function(t){return function(){b[t.i$jscomp$484]=k[t.i$jscomp$484];var u=_.h(_.fh(k[t.i$jscomp$484],"C53T8b")),w=u.next().value;u=u.next().value;c[t.i$jscomp$484]=u;m[t.i$jscomp$484]=fi(a.children(w,t.i$jscomp$484))}}(n));
e[n.i$jscomp$484]=r}for(;b.length>k.length;)b.pop(),e.pop()(),c.pop();k.length===0&&!g&&a.fallback&&(n=una(function(){m[0]=fi(a.fallback())}),e[0]=n,g=!0);
return d=m},a.debugInstance)};
una=function(a){var b=_.Rg;return xh(function(c){var d=$g(gi);try{c.parent=b,a(c)}finally{$g(d)}},!1)};
_.oi=function(a){var b=a.cond;if(b===void 0)return a.else&&a.else();var c=_.kh(function(){return!!b()},void 0,"y0Xknf"),d=function(){var e=b();
if(!e){var g;(g=Xg.handleError)==null||g.call.apply(g,[Xg].concat(_.Be(uh(Error("nc")))))}return e};
return Mma(function(){var e=c(),g;xh(function(){var k=$g(gi);try{g=fi(e?a.then(d):a.else&&a.else())}finally{$g(k)}},!0);
return g},a.debugInstance)};
_.pi=function(a){return a};
_.wna=function(a){return{isDefault:!0,children:a.children}};
_.qi=function(a){var b=xna(a),c=_.kh(function(){return yna(b)},void 0,"BHmkEe");
return Mma(function(){var d=c(),e;xh(function(){var g=$g(gi);try{e=fi(d())}finally{$g(g)}});
return e},a.debugInstance)};
xna=function(a){a=a.children;return Array.isArray(a)?a:[a]};
zna=function(a){var b=a.props;a=a.getChildren()[0];return b.when?{when:b.when,children:a}:{isDefault:!0,children:a}};
yna=function(a){var b=function(){return null};
a=_.h(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c!=null&&c[Uh]&&(c=c.type===_.wna?{isDefault:!0,children:c.children[0]}:{when:c.props.when,children:c.children[0]}),c instanceof ei&&(c=zna(c)),c.isDefault)b=c.children;else if(c.when())return c.children;return b};
Ana=function(a){var b=null,c;return{value:null,onRender:function(d){if(c&&d!==c){var e;(e=b)==null||e();c._disposeRef=void 0}c=d;b=a(d)||null},
onUnmount:function(){var d;(d=b)==null||d();b=null}}};
Cna=function(a){var b=Yma();if(b==null)throw Bna.PRIMITIVE_INVALID_HOOK_CALL();var c=b.hookCounter++;b.hooks||(b.hooks=[]);var d=b.hooks;d[c]||(d[c]={key:a,host:b});if(a!==d[c].key){var e,g;a=((e=b.JSC$8109___type)==null?void 0:e.name)||((g=b.functionComponent)==null?void 0:g.name);throw Bna.OUT_OF_ORDER_HOOK_CALL(a);}return d[c]};
Dna=function(a,b){return!a||a.length!==(b==null?void 0:b.length)||a.some(function(c,d){return c!==b[d]})};
ri=function(a,b){var c=Cna("onChange"),d=Yma();Dna(c.deps,b)&&(c.deps=b,c.pendingEffect=a,d.__syncEffects||(d.__syncEffects=[]),d.__syncEffects.push(c))};
Hna=function(a,b){var c;b!=null?c=b:c=_.Rja(document).getAppContext();c.get(Ena).JSC$25139_getEventTarget().dispatchEvent(new Fna(Gna,a,$h))};
_.si=function(a,b){var c=c===void 0?{}:c;var d=rh(function(){var e=$g(gi);try{return xh(function(){var g=_.Rja(_.Cf(a)),k;var m=dka({appContext:c.appContext||(g==null?void 0:(k=g.getOptionalAppContext)==null?void 0:k.call(g)),dispatcher:g});g=Sg(m);m=Wh(!0);zma++;try{g=Vg(g),ci(b(),a),Cma(!1)}catch(n){throw Cma(!0),n;}finally{Wh(m),Sg(g)}},!1)}finally{$g(e)}});
a[Ina]=!0;c.legacyTriggerSoyRendererEvents&&Hna(a,c.appContext);return function(){a.textContent="";d();a[Ina]=!1}};
_.ti=function(a){if(qla(Zg)){var b;(b=Xg.handleError)==null||b.call.apply(b,[Xg].concat(_.Be(uh(Error("Zb")))))}var c=_.Rg,d=mh.slice();Promise.resolve().then(function(){c&&!c.isDisposed&&rh(function(){var e=Sg(c);try{e=Vg(e),a()}finally{Sg(e)}},{stack:d})})};
ui=function(a,b){ri(function(){return eh(a)},b)};
_.vi=function(a){qh()?_.ti(function(){eh(a)}):ri(function(){return eh(a)},[])};
Kna=function(a){var b=[].concat(_.Be(a));a.length=0;a=_.h(b);for(b=a.next();!b.done;b=a.next()){b=b.value;Jna(b);var c=b.pendingEffect;b.pendingEffect=null;if(c=c==null?void 0:c())b.pendingCleanup=c}};
Jna=function(a){var b=a.pendingCleanup;a.pendingCleanup=null;b==null||b()};
Lna=function(a,b){if(qh())return a();var c=Cna("useMemoInternal");Dna(c.deps,b)&&(c.deps=b,c.value=a());return c.value};
wi=function(a,b){return Lna(a,b)};
xi=function(a){return Lna(a,[])};
Mna=function(){var a=_.Id.apply(0,arguments),b=xi(function(){return a.map(function(c){return _.fh(c,"iAOe9b")})});
ui(function(){for(var c=0;c<a.length;c++)(0,b[c][1])(a[c])},a);
return b.map(function(c){return _.h(c).next().value})};
yi=function(a){return xi(function(){return{value:a}})};
_.zi=function(a,b){if(!a)return null;a=Object.keys(a);a=_.h(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.toLowerCase();if(d.indexOf(b,d.length-b.length)>-1)return c}return null};
_.Bi=function(){var a=arguments,b=_.Ai;a.length>1?b[a[0]]=a[1]:a.length===1&&Object.assign(b,a[0])};
_.Ei=function(a,b){return a in _.Ai?_.Ai[a]:b};
_.Gi=function(a,b){return!!_.Ei(a,b)};
Nna=function(a){var b=_.Ai.EXPERIMENT_FLAGS;return b?b[a]:void 0};
Pna=function(a){Ona.forEach(function(b){return b(a)})};
_.Ii=function(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){_.Hi(b)}}:a};
_.Hi=function(a){var b=_.Ji("yt.logging.errors.log");b?b(a,"ERROR",void 0,void 0,void 0,void 0,void 0):(b=_.Ei("ERRORS",[]),b.push([a,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.Bi("ERRORS",b));Pna(a)};
_.Ki=function(a,b,c,d,e){var g=_.Ji("yt.logging.errors.log");g?g(a,"WARNING",b,c,d,void 0,e):(g=_.Ei("ERRORS",[]),g.push([a,"WARNING",b,c,d,void 0,e]),_.Bi("ERRORS",g))};
Rna=function(a,b){b=a.split(b);for(var c={},d=0,e=b.length;d<e;d++){var g=b[d].split("=");if(g.length===1&&g[0]||g.length===2)try{var k=Qna(g[0]||""),m=Qna(g[1]||"");if(k in c){var n=c[k];Array.isArray(n)?_.Wa(n,m):c[k]=[n,m]}else c[k]=m}catch(w){var r=w,t=g[0],u=String(Rna);r.args=[{key:t,value:g[1],query:a,method:Sna===u?"unchanged":u}];Tna.hasOwnProperty(t)||_.Ki(r)}}return c};
Una=function(a){var b=[];_.yf.forEach(a,function(c,d){var e=_.Li(d);_.Mi(Array.isArray(c)?c:[c],function(g){g==""?b.push(e):b.push(e+"="+_.Li(g))})});
return b.join("&")};
_.Ni=function(a){a.charAt(0)==="?"&&(a=a.substring(1));return Rna(a,"&")};
_.Oi=function(a){return a.indexOf("?")!==-1?(a=(a||"").split("#")[0],a=a.split("?",2),_.Ni(a.length>1?a[1]:a[0])):{}};
_.Pi=function(a,b){return Vna(a,b||{},!0)};
Wna=function(a,b){return Vna(a,b||{},!1)};
Vna=function(a,b,c){var d=a.split("#",2);a=d[0];d=d.length>1?"#"+d[1]:"";var e=a.split("?",2);a=e[0];e=_.Ni(e[1]||"");for(var g in b)if(c||!_.yf.containsKey(e,g))e[g]=b[g];return _.Qi(a,e)+d};
Ui=function(a){if(!b)var b=window.location.href;var c=_.Ri(a)[1]||null,d=_.Si(a);return c&&d?Ti(a,b):d?_.Si(b)===d&&(Number(_.Ri(b)[4]||null)||null)===(Number(_.Ri(a)[4]||null)||null):!0};
_.Yna=function(a){a=Xna(a);return a===null?!1:a[0]==="com"&&a[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
Xna=function(a){a=_.Si(a);return a!==null?a.split(".").reverse():null};
Qna=function(a){return a&&a.match(Zna)?a:Vi(a)};
_.Wi=function(a){return new $na(a)};
_.v=function(){aoa||(aoa=new boa);return aoa};
doa=function(a){var b=_.Xi,c,d;_.l(function(e){c=_.v();return(d=c.resolve(_.Wi(b)))?(a(d),e.return(Promise.resolve(d))):e.return(c.resolve(new coa(b)).then(function(g){a(g);return g}))})};
_.x=function(a){a=Yi(a);return typeof a==="string"&&a==="false"?!1:!!a};
_.$i=function(a,b){a=Yi(a);return a===void 0&&b!==void 0?b:Number(a||0)};
eoa=function(a){a=Yi(a);return Array.isArray(a)?_.zf(a,function(b){return Number(b||0)}):[Number(a||0)]};
_.aj=function(a){a=Yi(a);return a!==void 0?String(a):""};
_.bj=function(a){a=Yi(a);return Array.isArray(a)?_.zf(a,function(b){return String(b||"")}):[String(a||"")]};
foa=function(){return _.Ei("EXPERIMENTS_TOKEN","")};
Yi=function(a){return _.Ei("EXPERIMENT_FLAGS",{})[a]};
goa=function(){for(var a=[],b=_.Ei("EXPERIMENTS_FORCED_FLAGS",{}),c=_.h(Object.keys(b)),d=c.next();!d.done;d=c.next())d=d.value,a.push({key:d,value:String(b[d])});c=_.Ei("EXPERIMENT_FLAGS",{});d=_.h(Object.keys(c));for(var e=d.next();!e.done;e=d.next())e=e.value,e.startsWith("force_")&&b[e]===void 0&&a.push({key:e,value:String(c[e])});return a};
ioa=function(){if(!hoa)return null;var a=hoa();return"open"in a?a:null};
joa=function(a){switch(cj(a)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
cj=function(a){return a&&"status"in a?a.status:-1};
_.dj=function(a,b){typeof a==="function"&&(a=_.Ii(a));return window.setTimeout(a,b)};
_.ej=function(a,b){typeof a==="function"&&(a=_.Ii(a));return window.setInterval(a,b)};
_.fj=function(a){window.clearTimeout(a)};
loa=function(a){a=_.Oi(a);for(var b=_.h(koa),c=b.next();!c.done;c=b.next())if(a[c.value]!==void 0)return!0;return!1};
ooa=function(a,b,c,d,e,g,k,m){c=c===void 0?"GET":c;d=d===void 0?"":d;m=m===void 0?!1:m;var n=ioa();if(!n)return null;var r=function(){(n&&"readyState"in n?n.readyState:0)===4&&b&&_.Ii(b)(n)};
"onloadend"in n?n.addEventListener("loadend",r,!1):n.onreadystatechange=r;_.x("debug_forward_web_query_parameters")&&(a=moa(a,window.location.search));n.open(c,a,!0);g&&(n.responseType=g);k&&(n.withCredentials=!0);c=c==="POST"&&(window.FormData===void 0||!(d instanceof FormData));if(e=noa(a,e))for(var t in e)n.setRequestHeader(t,e[t]),"content-type"===t.toLowerCase()&&(c=!1);c&&n.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(m&&"setAttributionReporting"in XMLHttpRequest.prototype){a=
{eventSourceEligible:!0,triggerEligible:!1};try{n.setAttributionReporting(a)}catch(u){_.Ki(u)}}n.send(d);return n};
noa=function(a,b){b=b===void 0?{}:b;var c=Ui(a),d=_.Ei("INNERTUBE_CLIENT_NAME"),e=_.x("web_ajax_ignore_global_headers_if_set"),g;for(g in poa){var k=_.Ei(poa[g]),m=g==="X-Goog-AuthUser"||g==="X-Goog-PageId";g!=="X-Goog-Visitor-Id"||k||(k=_.Ei("VISITOR_DATA"));var n;if(!(n=!k)){if(!(n=c||(_.Si(a)?!1:!0))){n=a;var r;if(r=_.x("add_auth_headers_to_remarketing_google_dot_com_ping")&&g==="Authorization"&&(d==="TVHTML5"||d==="TVHTML5_UNPLUGGED"||d==="TVHTML5_SIMPLY"))r=Xna(n),r=r===null?!1:r[1]==="google"?
!0:r[2]==="google"?r[0]==="au"&&r[1]==="com"?!0:r[0]==="uk"&&r[1]==="co"?!0:!1:!1;r&&(n=_.gj(n)||"",n=n.split("/"),n="/"+(n.length>1?n[1]:""),r=n==="/pagead");n=r?!0:!1}n=!n}n||e&&b[g]!==void 0||d==="TVHTML5_UNPLUGGED"&&m||(b[g]=k)}"X-Goog-EOM-Visitor-Id"in b&&"X-Goog-Visitor-Id"in b&&delete b["X-Goog-Visitor-Id"];if(c||!_.Si(a))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(c||!_.Si(a)){try{var t=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(u){}t&&(b["X-YouTube-Time-Zone"]=
t)}document.location.hostname.endsWith("youtubeeducation.com")||!c&&_.Si(a)||(b["X-YouTube-Ad-Signals"]=Una(qoa()));return b};
_.roa=function(a,b){var c=_.Si(a);_.x("debug_handle_relative_url_for_query_forward_killswitch")||!c&&Ui(a)&&(c=document.location.hostname);var d=_.gj(a);d=(c=c&&(c.endsWith("youtube.com")||c.endsWith("youtube-nocookie.com")))&&d&&d.startsWith("/api/");if(!c||d)return a;var e=_.Ni(b),g={};_.Mi(koa,function(k){e[k]&&(g[k]=e[k])});
return Wna(a,g)};
soa=function(a,b){b.method="POST";b.postParams||(b.postParams={});return _.hj(a,b)};
toa=function(a,b){var c=_.Ei("XSRF_FIELD_NAME"),d;b.headers&&(d=b.headers["Content-Type"]);return!b.excludeXsrf&&(!_.Si(a)||b.withCredentials||_.Si(a)===document.location.hostname)&&b.method==="POST"&&(!d||d==="application/x-www-form-urlencoded")&&!(b.postParams&&b.postParams[c])};
_.hj=function(a,b){var c=b.format||"JSON";a=uoa(a,b);var d=voa(a,b),e=!1,g=woa(a,function(n){if(!e){e=!0;m&&_.fj(m);var r=joa(n),t=null,u=400<=n.status&&n.status<500,w=500<=n.status&&n.status<600;if(r||u||w)t=xoa(a,c,n,b.convertToSafeHtml);r&&(r=yoa(c,n,t));t=t||{};u=b.context||_.ja;r?b.onSuccess&&b.onSuccess.call(u,n,t):b.onError&&b.onError.call(u,n,t);b.onFinish&&b.onFinish.call(u,n,t)}},b.method,d,b.headers,b.responseType,b.withCredentials);
d=b.timeout||0;if(b.onTimeout&&d>0){var k=b.onTimeout;var m=_.dj(function(){e||(e=!0,g.abort(),_.fj(m),k.call(b.context||_.ja,g))},d)}return g};
uoa=function(a,b){b.includeDomain&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var c=_.Ei("XSRF_FIELD_NAME");if(b=b.urlParams)b[c]&&delete b[c],a=_.Pi(a,b);return a};
voa=function(a,b){var c=_.Ei("XSRF_FIELD_NAME"),d=_.Ei("XSRF_TOKEN"),e=b.postBody||"",g=b.postParams;toa(a,b)&&(g||(g={}),g[c]=d);(_.x("ajax_parse_query_data_only_when_filled")&&g&&Object.keys(g).length>0||g)&&typeof e==="string"&&(e=_.Ni(e),_.yf.extend(e,g),e=b.postBodyFormat&&b.postBodyFormat==="JSON"?JSON.stringify(e):_.ij(e));g=e||g&&!_.yf.isEmpty(g);!zoa&&g&&b.method!=="POST"&&(zoa=!0,_.Hi(Error("Bc")));return e};
xoa=function(a,b,c,d){var e=null;switch(b){case "JSON":try{var g=c.responseText}catch(k){throw d=Error("Cc"),d.params=a,_.Ki(d),k;}a=c.getResponseHeader("Content-Type")||"";g&&a.indexOf("json")>=0&&(g.substring(0,5)===")]}'\n"&&(g=g.substring(5)),e=JSON.parse(g));break;case "XML":if(a=(a=c.responseXML)?Aoa(a):null)e={},_.Mi(a.getElementsByTagName("*"),function(k){e[k.tagName]=Boa(k)})}d&&Coa(e);
return e};
Coa=function(a){if(_.$a(a))for(var b in a)b==="html_content"||oa(b,"_html")?a[b]=Nd(a[b]):Coa(a[b])};
yoa=function(a,b,c){if(b&&b.status===204)return!0;switch(a){case "JSON":return!!c;case "XML":return Number(c&&c.return_code)===0;case "RAW":return!0;default:return!!c}};
Aoa=function(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&a.length>0?a[0]:null:null};
Boa=function(a){var b="";_.Mi(a.childNodes,function(c){b+=c.nodeValue});
return b};
Doa=function(a){if(a.name==="JavaException")return!0;a=a.stack;return a.includes("chrome://")||a.includes("chrome-extension://")||a.includes("moz-extension://")};
_.jj=function(a){_.tg.call(this);this.JSC$8264_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!a};
Foa=function(a,b){var c=a.length,d=0,e=function(){return a.charCodeAt(d++)};
do{var g=Eoa(e);if(g===Infinity)break;var k=g>>3;switch(g&7){case 0:g=Eoa(e);if(k===b)return g;break;case 1:if(k===b)return;d+=8;break;case 2:g=Eoa(e);if(k===b)return a.substr(d,g);d+=g;break;case 5:if(k===b)return;d+=4;break;default:return}}while(d<c)};
Eoa=function(a){var b=a(),c=b&127;if(b<128)return c;b=a();c|=(b&127)<<7;if(b<128)return c;b=a();c|=(b&127)<<14;if(b<128)return c;b=a();return b<128?c|(b&127)<<21:Infinity};
Hoa=function(a,b,c,d){if(a)if(Array.isArray(a)){var e=d;for(d=0;d<a.length&&!(a[d]&&(e+=Goa(d,a[d],b,c),e>500));d++);d=e}else if(typeof a==="object")for(e in a){if(a[e]){var g=e;var k=a[e],m=b,n=c;g=typeof k!=="string"||g!=="clickTrackingParams"&&g!=="trackingParams"?0:(k=Foa(atob(k.replace(/-/g,"+").replace(/_/g,"/")),2))?Goa(g+".ve",k,m,n):0;d+=g;d+=Goa(e,a[e],b,c);if(d>500)break}}else c[b]=kj(a),d+=c[b].length;else c[b]=kj(a),d+=c[b].length;return d};
Goa=function(a,b,c,d){c+="."+a;a=kj(b);d[c]=a;return c.length+a.length};
kj=function(a){try{return(typeof a==="string"?a:String(JSON.stringify(a))).substr(0,500)}catch(b){return"unable to serialize "+typeof a+" ("+b.message+")"}};
Ioa=function(a){switch(a){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}};
_.mj=function(a,b,c,d,e){_.lj.set(a,b,{maxAge:c,path:"/",domain:d===void 0?"youtube.com":d,secure:e===void 0?!1:e})};
_.Joa=function(a,b,c){_.lj.remove(a,b===void 0?"/":b,c===void 0?"youtube.com":c)};
_.nj=function(){if(_.x("embeds_web_enable_cookie_detection_fix")){if(!_.ja.navigator.cookieEnabled)return!1}else if(!_.lj.isEnabled())return!1;if(!_.lj.isEmpty())return!0;_.x("embeds_web_enable_cookie_detection_fix")?_.lj.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.lj.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.lj.get("TESTCOOKIESENABLED")!=="1")return!1;_.lj.remove("TESTCOOKIESENABLED");return!0};
Koa=function(){var a=_.ja.navigator;return a?a.connection:void 0};
Loa=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(a){}};
_.Noa=function(){var a=Koa();if(a){var b=Moa[a.type||"unknown"]||"CONN_UNKNOWN";a=Moa[a.effectiveType||"unknown"]||"CONN_UNKNOWN";b==="CONN_CELLULAR_UNKNOWN"&&a!=="CONN_UNKNOWN"&&(b=a);if(b!=="CONN_UNKNOWN")return b;if(a!=="CONN_UNKNOWN")return a}};
Poa=function(){var a=Koa();if(a!=null&&a.effectiveType)return Ooa.hasOwnProperty(a.effectiveType)?Ooa[a.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.pj=function(){try{return _.oj(),!0}catch(a){return!1}};
_.oj=function(a){if(_.Ei("DATASYNC_ID")!==void 0)return _.Ei("DATASYNC_ID");throw new _.qj("Datasync ID not set",a===void 0?"unknown":a);};
_.rj=function(a){this.mechanism=a};
sj=function(a){this.mechanism=a};
tj=function(a){this.storage_=a;this.cachedIsStorageAvailable_=null};
Qoa=function(){var a=null;try{a=_.ja.localStorage||null}catch(b){}tj.call(this,a)};
Roa=function(){var a=null;try{a=_.ja.sessionStorage||null}catch(b){}tj.call(this,a)};
uj=function(a,b){this.mechanism_=a;this.JSC$8366_prefix_=b+"::"};
_.Soa=function(a){var b=new Qoa;return b.isAvailable()?a?new uj(b,a):b:null};
_.Toa=function(a){var b=new Roa;return b.isAvailable()?a?new uj(b,a):b:null};
Voa=function(){var a;return(a=Uoa())==null?void 0:a.get("LAST_RESULT_ENTRY_KEY",!0)};
_.xj=function(a){Woa||(_.vj?_.vj.logError(a):(_.wj.push({type:"ERROR",payload:a}),_.wj.length>10&&_.wj.shift()))};
yj=function(a,b){Woa||(_.vj?_.vj.logEvent(a,b):(_.wj.push({type:"EVENT",eventType:a,payload:b}),_.wj.length>10&&_.wj.shift()))};
zj=function(a){if(a.indexOf(":")>=0)throw Error("Jc");};
Aj=function(a){return a.substr(0,a.indexOf(":"))||a};
Zoa=function(){return(Xoa||Yoa)&&Bj("applewebkit")&&!Bj("version")&&(!Bj("safari")||Bj("gsa/"))};
Bj=function(a){var b=_.ua();return b?b.toLowerCase().indexOf(a)>=0:!1};
bpa=function(a,b,c,d){b=Aj(b);var e=a instanceof Error?a:Error("Kc`"+a);if(e instanceof Cj)return e;a={objectStoreNames:c,dbName:b,dbVersion:d};if(e.name==="QuotaExceededError")return new Cj("QUOTA_EXCEEDED",a);if(_.Dj&&e.name==="UnknownError")return new Cj("QUOTA_MAYBE_EXCEEDED",a);if(e instanceof $oa)return new Cj("MISSING_INDEX",Object.assign({},a,{objectStore:e.objectStore,index:e.index}));if(e.name==="InvalidStateError"&&apa.some(function(g){return e.message.includes(g)}))return new Cj("EXECUTE_TRANSACTION_ON_CLOSED_DB",
a);
if(e.name==="AbortError")return new Cj("UNKNOWN_ABORT",a,e.message);e.args=[Object.assign({},a,{name:"IdbError",originalName:e.name})];e.level="WARNING";return e};
Ej=function(a,b,c){var d=Voa();return new Cj("IDB_NOT_SUPPORTED",{context:{caller:a,publicName:b,version:c,hasSucceededOnce:d==null?void 0:d.hasSucceededOnce}})};
cpa=function(a){if(!a)throw Error();throw a;};
dpa=function(a){return a};
epa=function(a,b,c){var d=function(){try{a.removeEventListener("success",e),a.removeEventListener("error",g)}catch(k){}},e=function(){b(a.result);
d()},g=function(){c(a.error);
d()};
a.addEventListener("success",e);a.addEventListener("error",g)};
fpa=function(a){return new Promise(function(b,c){epa(a,b,c)})};
Hj=function(a){return new Fj(new Gj(function(b,c){epa(a,b,c)}))};
gpa=function(a,b){return new Fj(new Gj(function(c,d){var e=function(){var g=a?b(a):null;g?g.then(function(k){a=k;e()},d):c()};
e()}))};
ipa=function(a,b,c){return new Promise(function(d,e){var g=b!==void 0?self.indexedDB.open(a,b):self.indexedDB.open(a);var k=c.blocked,m=c.blocking,n=c.terminated,r=c.upgrade,t=c.closed,u,w=function(){u||(u=new Ij(g.result,{closed:t}));return u};
g.addEventListener("upgradeneeded",function(A){try{if(A.newVersion===null)throw Error("Pc");if(g.transaction===null)throw Error("Qc");A.dataLoss&&A.dataLoss!=="none"&&yj("IDB_DATA_CORRUPTED",{reason:A.dataLossMessage||"unknown reason",dbName:Aj(a)});var C=w(),G=new hpa(g.transaction);r&&r(C,function(J){return A.oldVersion<J&&A.newVersion>=J},G);
G.done.catch(function(J){e(J)})}catch(J){e(J)}});
g.addEventListener("success",function(){var A=g.result;m&&A.addEventListener("versionchange",function(){m(w())});
A.addEventListener("close",function(){yj("IDB_UNEXPECTEDLY_CLOSED",{dbName:Aj(a),dbVersion:A.version});n&&n()});
d(w())});
g.addEventListener("error",function(){e(g.error)});
k&&g.addEventListener("blocked",function(){k()})})};
jpa=function(a,b,c){c=c===void 0?{}:c;return ipa(a,b,c)};
_.Kj=function(a,b){b=b===void 0?{}:b;var c,d,e,g;return _.l(function(k){if(k.nextAddress==1)return _.me(k,2),c=self.indexedDB.deleteDatabase(a),d=b,(e=d.blocked)&&c.addEventListener("blocked",function(){e()}),_.p(k,fpa(c),4);
if(k.nextAddress!=2)return _.Jj(k,0);g=_.re(k);throw bpa(g,a,"",-1);})};
lpa=function(a,b){var c;return _.l(function(d){if(d.nextAddress==1)return _.p(d,_.Lj(kpa,b),2);c=d.yieldResult;return d.return(_.Mj(c,["databases"],{enableRetries:!0,mode:"readwrite"},function(e){var g=e.objectStore("databases");return g.get(a.actualName).then(function(k){if(k?a.actualName!==k.actualName||a.publicName!==k.publicName||a.userIdentifier!==k.userIdentifier:1)return g.put(a).then(function(){})})}))})};
_.Nj=function(a,b){var c;return _.l(function(d){if(d.nextAddress==1)return a?_.p(d,_.Lj(kpa,b),2):d.return();c=d.yieldResult;return d.return(c.delete("databases",a))})};
_.mpa=function(a,b){var c,d;return _.l(function(e){return e.nextAddress==1?(c=[],_.p(e,_.Lj(kpa,b),2)):e.nextAddress!=3?(d=e.yieldResult,_.p(e,_.Mj(d,["databases"],{enableRetries:!0,mode:"readonly"},function(g){c.length=0;return Oj(g.objectStore("databases"),{},function(k){a(k.getValue())&&c.push(k.getValue());return k.continue()})}),3)):e.return(c)})};
npa=function(a,b){return _.mpa(function(c){return c.publicName===a&&c.userIdentifier!==void 0},b)};
qpa=function(){var a,b,c,d;return _.l(function(e){switch(e.nextAddress){case 1:a=Voa();if((b=a)==null?0:b.hasSucceededOnce)return e.return(!0);var g;if(g=opa)g=/WebKit\/([0-9]+)/.exec(_.ua()),g=!!(g&&parseInt(g[1],10)>=600);g&&(g=/WebKit\/([0-9]+)/.exec(_.ua()),g=!(g&&parseInt(g[1],10)>=602));if(g||_.Pj)return e.return(!1);try{if(c=self,!(c.indexedDB&&c.IDBIndex&&c.IDBKeyRange&&c.IDBObjectStore))return e.return(!1)}catch(k){return e.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return e.return(!1);
_.me(e,2);d={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return _.p(e,lpa(d,ppa),4);case 4:return _.p(e,_.Nj("yt-idb-test-do-not-use",ppa),5);case 5:return e.return(!0);case 2:return _.re(e),e.return(!1)}})};
spa=function(){if(rpa!==void 0)return rpa;Woa=!0;return rpa=qpa().then(function(a){Woa=!1;var b;if((b=Uoa())!=null&&b.expiringStorage_){var c;b={hasSucceededOnce:((c=Voa())==null?void 0:c.hasSucceededOnce)||a};var d;(d=Uoa())==null||d.set("LAST_RESULT_ENTRY_KEY",b,2592E3,!0)}return a})};
Qj=function(){return _.Ji("ytglobal.idbToken_")||void 0};
_.Sj=function(){var a=Qj();return a?Promise.resolve(a):spa().then(function(b){(b=b?ppa:void 0)&&_.Rj("ytglobal.idbToken_",b);return b})};
tpa=function(a){if(!_.pj())throw a=new Cj("AUTH_INVALID",{dbName:a}),_.xj(a),a;var b=_.oj();return{actualName:a+":"+b,publicName:a,userIdentifier:b}};
upa=function(a,b,c,d){var e,g,k,m,n,r;return _.l(function(t){switch(t.nextAddress){case 1:return g=(e=Error().stack)!=null?e:"",_.p(t,_.Sj(),2);case 2:k=t.yieldResult;if(!k)throw m=Ej("openDbImpl",a,b),_.x("ytidb_async_stack_killswitch")||(m.stack=m.stack+"\n"+g.substring(g.indexOf("\n")+1)),_.xj(m),m;zj(a);n=c?{actualName:a,publicName:a,userIdentifier:void 0}:tpa(a);_.me(t,3);return _.p(t,lpa(n,k),5);case 5:return _.p(t,jpa(n.actualName,b,d),6);case 6:return t.return(t.yieldResult);case 3:return r=
_.re(t),_.me(t,7),_.p(t,_.Nj(n.actualName,k),9);case 9:_.Jj(t,8);break;case 7:_.re(t);case 8:throw r;}})};
vpa=function(a,b,c){c=c===void 0?{}:c;return upa(a,b,!1,c)};
wpa=function(a,b,c){c=c===void 0?{}:c;return upa(a,b,!0,c)};
xpa=function(a,b){b=b===void 0?{}:b;var c,d;return _.l(function(e){if(e.nextAddress==1)return _.p(e,_.Sj(),2);if(e.nextAddress!=3){c=e.yieldResult;if(!c)return e.return();zj(a);d=tpa(a);return _.p(e,_.Kj(d.actualName,b),3)}return _.p(e,_.Nj(d.actualName,c),0)})};
ypa=function(a,b,c){a=a.map(function(d){return _.l(function(e){return e.nextAddress==1?_.p(e,_.Kj(d.actualName,b),2):_.p(e,_.Nj(d.actualName,c),0)})});
return Promise.all(a).then(function(){})};
zpa=function(a){var b=b===void 0?{}:b;var c,d;return _.l(function(e){if(e.nextAddress==1)return _.p(e,_.Sj(),2);if(e.nextAddress!=3){c=e.yieldResult;if(!c)return e.return();zj(a);return _.p(e,npa(a,c),3)}d=e.yieldResult;return _.p(e,ypa(d,b,c),0)})};
Apa=function(a,b){b=b===void 0?{}:b;var c;return _.l(function(d){if(d.nextAddress==1)return _.p(d,_.Sj(),2);if(d.nextAddress!=3){c=d.yieldResult;if(!c)return d.return();zj(a);return _.p(d,_.Kj(a,b),3)}return _.p(d,_.Nj(a,c),0)})};
Tj=function(a,b){return Bpa(a,b)};
Dpa=function(a){return _.Lj(Cpa(),a)};
Epa=function(a,b,c,d){var e,g,k;return _.l(function(m){switch(m.nextAddress){case 1:return e={config:a,hashData:b,timestamp:d!==void 0?d:(0,_.Uj)()},_.p(m,Dpa(c),2);case 2:return g=m.yieldResult,_.p(m,g.clear("hotConfigStore"),3);case 3:return _.p(m,g.put("hotConfigStore",e),4);case 4:return k=m.yieldResult,m.return(k)}})};
Fpa=function(a,b,c,d,e){var g,k,m;return _.l(function(n){switch(n.nextAddress){case 1:return g={config:a,hashData:b,configData:c,timestamp:e!==void 0?e:(0,_.Uj)()},_.p(n,Dpa(d),2);case 2:return k=n.yieldResult,_.p(n,k.clear("coldConfigStore"),3);case 3:return _.p(n,k.put("coldConfigStore",g),4);case 4:return m=n.yieldResult,n.return(m)}})};
Gpa=function(a){var b,c;return _.l(function(d){return d.nextAddress==1?_.p(d,Dpa(a),2):d.nextAddress!=3?(b=d.yieldResult,c=void 0,_.p(d,_.Mj(b,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(e){return _.Vj(e.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(g){c=g.getValue()})}),3)):d.return(c)})};
Hpa=function(a){var b,c;return _.l(function(d){return d.nextAddress==1?_.p(d,Dpa(a),2):d.nextAddress!=3?(b=d.yieldResult,c=void 0,_.p(d,_.Mj(b,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(e){return _.Vj(e.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(g){c=g.getValue()})}),3)):d.return(c)})};
Ipa=function(){return _.l(function(a){return _.p(a,zpa("ytGcfConfig"),0)})};
Jpa=function(){return"INNERTUBE_API_KEY"in _.Ai&&"INNERTUBE_API_VERSION"in _.Ai};
_.Wj=function(){return{innertubeApiKey:_.Ei("INNERTUBE_API_KEY"),innertubeApiVersion:_.Ei("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.Ei("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.Ei("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.Ei("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.Ei("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.Ei("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.Ei("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.Ei("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.Gi("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.Gi("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.Ei("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.Qpa=function(a){var b={client:{hl:a.innertubeContextHostLanguage,gl:a.innertubeContextGeoLocation,clientName:a.innertubeContextClientName,clientVersion:a.innertubeContextClientVersion,configInfo:a.innertubeContextClientConfigInfo}};navigator.userAgent&&(b.client.userAgent=String(navigator.userAgent));var c=_.ja.devicePixelRatio;c&&c!=1&&(b.client.screenDensityFloat=String(c));c=foa();c!==""&&(b.client.experimentsToken=c);c=goa();c.length>0&&(b.request={internalExperimentFlags:c});Kpa(a,void 0,b);
Lpa(void 0,b);Mpa(void 0,b);Npa(a,void 0,b);Opa(void 0,b);_.x("start_client_gcf")&&Ppa(void 0,b);_.Ei("DELEGATED_SESSION_ID")&&!_.x("pageid_as_header_web")&&(b.user={onBehalfOfUser:_.Ei("DELEGATED_SESSION_ID")});!_.x("fill_delegate_context_in_gel_killswitch")&&(a=_.Ei("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(b.user=Object.assign({},b.user,{serializedDelegationContext:a}));a=_.Ei("INNERTUBE_CONTEXT");var d;if(_.x("enable_persistent_device_token")&&(a==null?0:(d=a.client)==null?0:d.rolloutToken)){var e;
b.client.rolloutToken=a==null?void 0:(e=a.client)==null?void 0:e.rolloutToken}d=Object;e=d.assign;a=b.client;c={};for(var g=_.h(Object.entries(_.Ni(_.Ei("DEVICE","")))),k=g.next();!k.done;k=g.next()){var m=_.h(k.value);k=m.next().value;m=m.next().value;k==="cbrand"?c.deviceMake=m:k==="cmodel"?c.deviceModel=m:k==="cbr"?c.browserName=m:k==="cbrver"?c.browserVersion=m:k==="cos"?c.osName=m:k==="cosver"?c.osVersion=m:k==="cplatform"&&(c.platform=m)}b.client=e.call(d,a,c);return b};
Kpa=function(a,b,c){a=a.innertubeContextClientName;if(a==="WEB"||a==="MWEB"||a===1||a===2)if(b){c=_.Xj(b,Rpa,96)||new Rpa;var d=Spa();d=Object.keys(Tpa).indexOf(d);d=d===-1?null:d;d!==null&&_.Yj(c,3,d);_.pd(b,96,c)}else c&&(c.client.mainAppWebInfo=(d=c.client.mainAppWebInfo)!=null?d:{},c.client.mainAppWebInfo.webDisplayMode=Spa())};
Lpa=function(a,b){var c=_.Ji("yt.embedded_player.embed_url");c&&(a?(b=_.Xj(a,Upa,7)||new Upa,_.sf(b,4,c),_.pd(a,7,b)):b&&(b.thirdParty={embedUrl:c}))};
Mpa=function(a,b){var c;if(_.x("web_log_memory_total_kbytes")&&((c=_.ja.navigator)==null?0:c.deviceMemory)){var d;c=(d=_.ja.navigator)==null?void 0:d.deviceMemory;a?_.Zj(a,95,hc(c*1E6)):b&&(b.client.memoryTotalKbytes=""+c*1E6)}};
Npa=function(a,b,c){if(a.appInstallData)if(b){var d;c=(d=_.Xj(b,ak,62))!=null?d:new ak;_.sf(c,6,a.appInstallData);_.pd(b,62,c)}else c&&(c.client.configInfo=c.client.configInfo||{},c.client.configInfo.appInstallData=a.appInstallData)};
Opa=function(a,b){var c=_.Noa();c&&(a?_.Yj(a,61,Vpa[c]):b&&(b.client.connectionType=c));_.x("web_log_effective_connection_type")&&(c=Poa())&&(a?_.Yj(a,94,Wpa[c]):b&&(b.client.effectiveConnectionType=c))};
_.Zpa=function(a,b,c){c=c===void 0?{}:c;var d={};_.Ei("EOM_VISITOR_DATA")?d={"X-Goog-EOM-Visitor-Id":_.Ei("EOM_VISITOR_DATA")}:d={"X-Goog-Visitor-Id":c.visitorData||_.Ei("VISITOR_DATA","")};if(b&&b.includes("www.youtube-nocookie.com"))return d;b=c.authorization||_.Ei("AUTHORIZATION");b||(a?b="Bearer "+_.Ji("gapi.auth.getToken")().access_token:(Xpa.instance||(Xpa.instance=new Xpa),a=Ypa(),_.x("pageid_as_header_web")||delete a["X-Goog-PageId"],d=Object.assign({},d,a)));b&&(d.Authorization=b);return d};
Ppa=function(a,b){var c=$pa();if(c){var d=c.coldConfigData,e=c.coldHashData;c=c.hotHashData;if(a){var g;b=(g=_.Xj(a,ak,62))!=null?g:new ak;d=_.sf(b,1,d);_.sf(d,3,e).setHotHashData(c);_.pd(a,62,b)}else b&&(b.client.configInfo=b.client.configInfo||{},d&&(b.client.configInfo.coldConfigData=d),e&&(b.client.configInfo.coldHashData=e),c&&(b.client.configInfo.hotHashData=c))}};
bk=function(a){for(var b=a.length;--b>=0;)a[b]=0};
aqa=function(a,b,c,d,e){this.static_tree=a;this.extra_bits=b;this.extra_base=c;this.elems=d;this.max_length=e;this.has_stree=a&&a.length};
bqa=function(a,b){this.dyn_tree=a;this.max_code=0;this.stat_desc=b};
ck=function(a,b){a.pending_buf[a.pending++]=b&255;a.pending_buf[a.pending++]=b>>>8&255};
dk=function(a,b,c){a.bi_valid>16-c?(a.bi_buf|=b<<a.bi_valid&65535,ck(a,a.bi_buf),a.bi_buf=b>>16-a.bi_valid,a.bi_valid+=c-16):(a.bi_buf|=b<<a.bi_valid&65535,a.bi_valid+=c)};
ek=function(a,b,c){dk(a,c[b*2],c[b*2+1])};
cqa=function(a,b){var c=0;do c|=a&1,a>>>=1,c<<=1;while(--b>0);return c>>>1};
dqa=function(a,b,c){var d=Array(16),e=0,g;for(g=1;g<=15;g++)d[g]=e=e+c[g-1]<<1;for(c=0;c<=b;c++)e=a[c*2+1],e!==0&&(a[c*2]=cqa(d[e]++,e))};
eqa=function(a){var b;for(b=0;b<286;b++)a.dyn_ltree[b*2]=0;for(b=0;b<30;b++)a.dyn_dtree[b*2]=0;for(b=0;b<19;b++)a.bl_tree[b*2]=0;a.dyn_ltree[512]=1;a.opt_len=a.static_len=0;a.last_lit=a.matches=0};
fqa=function(a){a.bi_valid>8?ck(a,a.bi_buf):a.bi_valid>0&&(a.pending_buf[a.pending++]=a.bi_buf);a.bi_buf=0;a.bi_valid=0};
gqa=function(a,b,c){fqa(a);ck(a,c);ck(a,~c);fk.arraySet(a.pending_buf,a.window,b,c,a.pending);a.pending+=c};
hqa=function(a,b,c,d){var e=b*2,g=c*2;return a[e]<a[g]||a[e]===a[g]&&d[b]<=d[c]};
iqa=function(a,b,c){for(var d=a.heap[c],e=c<<1;e<=a.heap_len;){e<a.heap_len&&hqa(b,a.heap[e+1],a.heap[e],a.depth)&&e++;if(hqa(b,d,a.heap[e],a.depth))break;a.heap[c]=a.heap[e];c=e;e<<=1}a.heap[c]=d};
nqa=function(a,b,c){var d=0;if(a.last_lit!==0){do{var e=a.pending_buf[a.d_buf+d*2]<<8|a.pending_buf[a.d_buf+d*2+1];var g=a.pending_buf[a.l_buf+d];d++;if(e===0)ek(a,g,b);else{var k=gk[g];ek(a,k+256+1,b);var m=jqa[k];m!==0&&(g-=kqa[k],dk(a,g,m));e--;k=e<256?hk[e]:hk[256+(e>>>7)];ek(a,k,c);m=lqa[k];m!==0&&(e-=mqa[k],dk(a,e,m))}}while(d<a.last_lit)}ek(a,256,b)};
oqa=function(a,b){var c=b.dyn_tree,d=b.stat_desc.static_tree,e=b.stat_desc.has_stree,g=b.stat_desc.elems,k,m=-1;a.heap_len=0;a.heap_max=573;for(k=0;k<g;k++)c[k*2]!==0?(a.heap[++a.heap_len]=m=k,a.depth[k]=0):c[k*2+1]=0;for(;a.heap_len<2;){var n=a.heap[++a.heap_len]=m<2?++m:0;c[n*2]=1;a.depth[n]=0;a.opt_len--;e&&(a.static_len-=d[n*2+1])}b.max_code=m;for(k=a.heap_len>>1;k>=1;k--)iqa(a,c,k);n=g;do k=a.heap[1],a.heap[1]=a.heap[a.heap_len--],iqa(a,c,1),d=a.heap[1],a.heap[--a.heap_max]=k,a.heap[--a.heap_max]=
d,c[n*2]=c[k*2]+c[d*2],a.depth[n]=(a.depth[k]>=a.depth[d]?a.depth[k]:a.depth[d])+1,c[k*2+1]=c[d*2+1]=n,a.heap[1]=n++,iqa(a,c,1);while(a.heap_len>=2);a.heap[--a.heap_max]=a.heap[1];k=b.dyn_tree;n=b.max_code;d=b.stat_desc.static_tree;e=b.stat_desc.has_stree;g=b.stat_desc.extra_bits;var r=b.stat_desc.extra_base,t=b.stat_desc.max_length,u,w=0;for(u=0;u<=15;u++)a.bl_count[u]=0;k[a.heap[a.heap_max]*2+1]=0;for(b=a.heap_max+1;b<573;b++){var A=a.heap[b];u=k[k[A*2+1]*2+1]+1;u>t&&(u=t,w++);k[A*2+1]=u;if(!(A>
n)){a.bl_count[u]++;var C=0;A>=r&&(C=g[A-r]);var G=k[A*2];a.opt_len+=G*(u+C);e&&(a.static_len+=G*(d[A*2+1]+C))}}if(w!==0){do{for(u=t-1;a.bl_count[u]===0;)u--;a.bl_count[u]--;a.bl_count[u+1]+=2;a.bl_count[t]--;w-=2}while(w>0);for(u=t;u!==0;u--)for(A=a.bl_count[u];A!==0;)d=a.heap[--b],d>n||(k[d*2+1]!==u&&(a.opt_len+=(u-k[d*2+1])*k[d*2],k[d*2+1]=u),A--)}dqa(c,m,a.bl_count)};
pqa=function(a,b,c){var d,e=-1,g=b[1],k=0,m=7,n=4;g===0&&(m=138,n=3);b[(c+1)*2+1]=65535;for(d=0;d<=c;d++){var r=g;g=b[(d+1)*2+1];++k<m&&r===g||(k<n?a.bl_tree[r*2]+=k:r!==0?(r!==e&&a.bl_tree[r*2]++,a.bl_tree[32]++):k<=10?a.bl_tree[34]++:a.bl_tree[36]++,k=0,e=r,g===0?(m=138,n=3):r===g?(m=6,n=3):(m=7,n=4))}};
qqa=function(a,b,c){var d,e=-1,g=b[1],k=0,m=7,n=4;g===0&&(m=138,n=3);for(d=0;d<=c;d++){var r=g;g=b[(d+1)*2+1];if(!(++k<m&&r===g)){if(k<n){do ek(a,r,a.bl_tree);while(--k!==0)}else r!==0?(r!==e&&(ek(a,r,a.bl_tree),k--),ek(a,16,a.bl_tree),dk(a,k-3,2)):k<=10?(ek(a,17,a.bl_tree),dk(a,k-3,3)):(ek(a,18,a.bl_tree),dk(a,k-11,7));k=0;e=r;g===0?(m=138,n=3):r===g?(m=6,n=3):(m=7,n=4)}}};
rqa=function(a){var b=4093624447,c;for(c=0;c<=31;c++,b>>>=1)if(b&1&&a.dyn_ltree[c*2]!==0)return 0;if(a.dyn_ltree[18]!==0||a.dyn_ltree[20]!==0||a.dyn_ltree[26]!==0)return 1;for(c=32;c<256;c++)if(a.dyn_ltree[c*2]!==0)return 1;return 0};
ik=function(a,b,c){a.pending_buf[a.d_buf+a.last_lit*2]=b>>>8&255;a.pending_buf[a.d_buf+a.last_lit*2+1]=b&255;a.pending_buf[a.l_buf+a.last_lit]=c&255;a.last_lit++;b===0?a.dyn_ltree[c*2]++:(a.matches++,b--,a.dyn_ltree[(gk[c]+256+1)*2]++,a.dyn_dtree[(b<256?hk[b]:hk[256+(b>>>7)])*2]++);return a.last_lit===a.lit_bufsize-1};
kk=function(a,b){a.msg=jk[b];return b};
lk=function(a){for(var b=a.length;--b>=0;)a[b]=0};
mk=function(a){var b=a.state,c=b.pending;c>a.avail_out&&(c=a.avail_out);c!==0&&(fk.arraySet(a.output,b.pending_buf,b.pending_out,c,a.next_out),a.next_out+=c,b.pending_out+=c,a.total_out+=c,a.avail_out-=c,b.pending-=c,b.pending===0&&(b.pending_out=0))};
qk=function(a,b){var c=a.block_start>=0?a.block_start:-1,d=a.strstart-a.block_start,e=0;if(a.level>0){a.strm.data_type===2&&(a.strm.data_type=rqa(a));oqa(a,a.l_desc);oqa(a,a.d_desc);pqa(a,a.dyn_ltree,a.l_desc.max_code);pqa(a,a.dyn_dtree,a.d_desc.max_code);oqa(a,a.bl_desc);for(e=18;e>=3&&a.bl_tree[sqa[e]*2+1]===0;e--);a.opt_len+=3*(e+1)+5+5+4;var g=a.opt_len+3+7>>>3;var k=a.static_len+3+7>>>3;k<=g&&(g=k)}else g=k=d+5;if(d+4<=g&&c!==-1)dk(a,b?1:0,3),gqa(a,c,d);else if(a.strategy===4||k===g)dk(a,2+(b?
1:0),3),nqa(a,nk,ok);else{dk(a,4+(b?1:0),3);c=a.l_desc.max_code+1;d=a.d_desc.max_code+1;e+=1;dk(a,c-257,5);dk(a,d-1,5);dk(a,e-4,4);for(g=0;g<e;g++)dk(a,a.bl_tree[sqa[g]*2+1],3);qqa(a,a.dyn_ltree,c-1);qqa(a,a.dyn_dtree,d-1);nqa(a,a.dyn_ltree,a.dyn_dtree)}eqa(a);b&&fqa(a);a.block_start=a.strstart;mk(a.strm)};
rk=function(a,b){a.pending_buf[a.pending++]=b};
tk=function(a,b){a.pending_buf[a.pending++]=b>>>8&255;a.pending_buf[a.pending++]=b&255};
tqa=function(a,b){var c=a.max_chain_length,d=a.strstart,e=a.prev_length,g=a.nice_match,k=a.strstart>a.w_size-262?a.strstart-(a.w_size-262):0,m=a.window,n=a.w_mask,r=a.prev,t=a.strstart+258,u=m[d+e-1],w=m[d+e];a.prev_length>=a.good_match&&(c>>=2);g>a.lookahead&&(g=a.lookahead);do{var A=b;if(m[A+e]===w&&m[A+e-1]===u&&m[A]===m[d]&&m[++A]===m[d+1]){d+=2;for(A++;m[++d]===m[++A]&&m[++d]===m[++A]&&m[++d]===m[++A]&&m[++d]===m[++A]&&m[++d]===m[++A]&&m[++d]===m[++A]&&m[++d]===m[++A]&&m[++d]===m[++A]&&d<t;);
A=258-(t-d);d=t-258;if(A>e){a.match_start=b;e=A;if(A>=g)break;u=m[d+e-1];w=m[d+e]}}}while((b=r[b&n])>k&&--c!==0);return e<=a.lookahead?e:a.lookahead};
vk=function(a){var b=a.w_size,c;do{var d=a.window_size-a.lookahead-a.strstart;if(a.strstart>=b+(b-262)){fk.arraySet(a.window,a.window,b,b,0);a.match_start-=b;a.strstart-=b;a.block_start-=b;var e=c=a.hash_size;do{var g=a.head[--e];a.head[e]=g>=b?g-b:0}while(--c);e=c=b;do g=a.prev[--e],a.prev[e]=g>=b?g-b:0;while(--c);d+=b}if(a.strm.avail_in===0)break;e=a.strm;c=a.window;g=a.strstart+a.lookahead;var k=e.avail_in;k>d&&(k=d);k===0?c=0:(e.avail_in-=k,fk.arraySet(c,e.input,e.next_in,k,g),e.state.wrap===
1?e.adler=uqa(e.adler,c,k,g):e.state.wrap===2&&(e.adler=uk(e.adler,c,k,g)),e.next_in+=k,e.total_in+=k,c=k);a.lookahead+=c;if(a.lookahead+a.insert>=3)for(d=a.strstart-a.insert,a.ins_h=a.window[d],a.ins_h=(a.ins_h<<a.hash_shift^a.window[d+1])&a.hash_mask;a.insert&&!(a.ins_h=(a.ins_h<<a.hash_shift^a.window[d+3-1])&a.hash_mask,a.prev[d&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=d,d++,a.insert--,a.lookahead+a.insert<3););}while(a.lookahead<262&&a.strm.avail_in!==0)};
vqa=function(a,b){for(var c;;){if(a.lookahead<262){vk(a);if(a.lookahead<262&&b===0)return 1;if(a.lookahead===0)break}c=0;a.lookahead>=3&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+3-1])&a.hash_mask,c=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart);c!==0&&a.strstart-c<=a.w_size-262&&(a.match_length=tqa(a,c));if(a.match_length>=3)if(c=ik(a,a.strstart-a.match_start,a.match_length-3),a.lookahead-=a.match_length,a.match_length<=a.max_lazy_match&&a.lookahead>=3){a.match_length--;
do a.strstart++,a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+3-1])&a.hash_mask,a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart;while(--a.match_length!==0);a.strstart++}else a.strstart+=a.match_length,a.match_length=0,a.ins_h=a.window[a.strstart],a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+1])&a.hash_mask;else c=ik(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++;if(c&&(qk(a,!1),a.strm.avail_out===0))return 1}a.insert=a.strstart<2?a.strstart:2;return b===4?(qk(a,
!0),a.strm.avail_out===0?3:4):a.last_lit&&(qk(a,!1),a.strm.avail_out===0)?1:2};
wk=function(a,b){for(var c,d;;){if(a.lookahead<262){vk(a);if(a.lookahead<262&&b===0)return 1;if(a.lookahead===0)break}c=0;a.lookahead>=3&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+3-1])&a.hash_mask,c=a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart);a.prev_length=a.match_length;a.prev_match=a.match_start;a.match_length=2;c!==0&&a.prev_length<a.max_lazy_match&&a.strstart-c<=a.w_size-262&&(a.match_length=tqa(a,c),a.match_length<=5&&(a.strategy===1||a.match_length===3&&
a.strstart-a.match_start>4096)&&(a.match_length=2));if(a.prev_length>=3&&a.match_length<=a.prev_length){d=a.strstart+a.lookahead-3;c=ik(a,a.strstart-1-a.prev_match,a.prev_length-3);a.lookahead-=a.prev_length-1;a.prev_length-=2;do++a.strstart<=d&&(a.ins_h=(a.ins_h<<a.hash_shift^a.window[a.strstart+3-1])&a.hash_mask,a.prev[a.strstart&a.w_mask]=a.head[a.ins_h],a.head[a.ins_h]=a.strstart);while(--a.prev_length!==0);a.match_available=0;a.match_length=2;a.strstart++;if(c&&(qk(a,!1),a.strm.avail_out===0))return 1}else if(a.match_available){if((c=
ik(a,0,a.window[a.strstart-1]))&&qk(a,!1),a.strstart++,a.lookahead--,a.strm.avail_out===0)return 1}else a.match_available=1,a.strstart++,a.lookahead--}a.match_available&&(ik(a,0,a.window[a.strstart-1]),a.match_available=0);a.insert=a.strstart<2?a.strstart:2;return b===4?(qk(a,!0),a.strm.avail_out===0?3:4):a.last_lit&&(qk(a,!1),a.strm.avail_out===0)?1:2};
wqa=function(a,b){for(var c,d,e,g=a.window;;){if(a.lookahead<=258){vk(a);if(a.lookahead<=258&&b===0)return 1;if(a.lookahead===0)break}a.match_length=0;if(a.lookahead>=3&&a.strstart>0&&(d=a.strstart-1,c=g[d],c===g[++d]&&c===g[++d]&&c===g[++d])){for(e=a.strstart+258;c===g[++d]&&c===g[++d]&&c===g[++d]&&c===g[++d]&&c===g[++d]&&c===g[++d]&&c===g[++d]&&c===g[++d]&&d<e;);a.match_length=258-(e-d);a.match_length>a.lookahead&&(a.match_length=a.lookahead)}a.match_length>=3?(c=ik(a,1,a.match_length-3),a.lookahead-=
a.match_length,a.strstart+=a.match_length,a.match_length=0):(c=ik(a,0,a.window[a.strstart]),a.lookahead--,a.strstart++);if(c&&(qk(a,!1),a.strm.avail_out===0))return 1}a.insert=0;return b===4?(qk(a,!0),a.strm.avail_out===0?3:4):a.last_lit&&(qk(a,!1),a.strm.avail_out===0)?1:2};
xqa=function(a,b){for(var c;;){if(a.lookahead===0&&(vk(a),a.lookahead===0)){if(b===0)return 1;break}a.match_length=0;c=ik(a,0,a.window[a.strstart]);a.lookahead--;a.strstart++;if(c&&(qk(a,!1),a.strm.avail_out===0))return 1}a.insert=0;return b===4?(qk(a,!0),a.strm.avail_out===0?3:4):a.last_lit&&(qk(a,!1),a.strm.avail_out===0)?1:2};
xk=function(a,b,c,d,e){this.good_length=a;this.max_lazy=b;this.nice_length=c;this.max_chain=d;this.func=e};
yqa=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 fk.Buf16(1146);this.dyn_dtree=new fk.Buf16(122);this.bl_tree=new fk.Buf16(78);lk(this.dyn_ltree);lk(this.dyn_dtree);lk(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new fk.Buf16(16);this.heap=new fk.Buf16(573);lk(this.heap);this.heap_max=this.heap_len=0;this.depth=new fk.Buf16(573);lk(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};
zqa=function(a,b){if(!a||!a.state||b>5||b<0)return a?kk(a,-2):-2;var c=a.state;if(!a.output||!a.input&&a.avail_in!==0||c.status===666&&b!==4)return kk(a,a.avail_out===0?-5:-2);c.strm=a;var d=c.last_flush;c.last_flush=b;if(c.status===42)if(c.wrap===2)a.adler=0,rk(c,31),rk(c,139),rk(c,8),c.gzhead?(rk(c,(c.gzhead.text?1:0)+(c.gzhead.hcrc?2:0)+(c.gzhead.extra?4:0)+(c.gzhead.name?8:0)+(c.gzhead.comment?16:0)),rk(c,c.gzhead.time&255),rk(c,c.gzhead.time>>8&255),rk(c,c.gzhead.time>>16&255),rk(c,c.gzhead.time>>
24&255),rk(c,c.level===9?2:c.strategy>=2||c.level<2?4:0),rk(c,c.gzhead.os&255),c.gzhead.extra&&c.gzhead.extra.length&&(rk(c,c.gzhead.extra.length&255),rk(c,c.gzhead.extra.length>>8&255)),c.gzhead.hcrc&&(a.adler=uk(a.adler,c.pending_buf,c.pending,0)),c.gzindex=0,c.status=69):(rk(c,0),rk(c,0),rk(c,0),rk(c,0),rk(c,0),rk(c,c.level===9?2:c.strategy>=2||c.level<2?4:0),rk(c,3),c.status=113);else{var e=8+(c.w_bits-8<<4)<<8;e|=(c.strategy>=2||c.level<2?0:c.level<6?1:c.level===6?2:3)<<6;c.strstart!==0&&(e|=
32);c.status=113;tk(c,e+(31-e%31));c.strstart!==0&&(tk(c,a.adler>>>16),tk(c,a.adler&65535));a.adler=1}if(c.status===69)if(c.gzhead.extra){for(e=c.pending;c.gzindex<(c.gzhead.extra.length&65535)&&(c.pending!==c.pending_buf_size||(c.gzhead.hcrc&&c.pending>e&&(a.adler=uk(a.adler,c.pending_buf,c.pending-e,e)),mk(a),e=c.pending,c.pending!==c.pending_buf_size));)rk(c,c.gzhead.extra[c.gzindex]&255),c.gzindex++;c.gzhead.hcrc&&c.pending>e&&(a.adler=uk(a.adler,c.pending_buf,c.pending-e,e));c.gzindex===c.gzhead.extra.length&&
(c.gzindex=0,c.status=73)}else c.status=73;if(c.status===73)if(c.gzhead.name){e=c.pending;do{if(c.pending===c.pending_buf_size&&(c.gzhead.hcrc&&c.pending>e&&(a.adler=uk(a.adler,c.pending_buf,c.pending-e,e)),mk(a),e=c.pending,c.pending===c.pending_buf_size)){var g=1;break}g=c.gzindex<c.gzhead.name.length?c.gzhead.name.charCodeAt(c.gzindex++)&255:0;rk(c,g)}while(g!==0);c.gzhead.hcrc&&c.pending>e&&(a.adler=uk(a.adler,c.pending_buf,c.pending-e,e));g===0&&(c.gzindex=0,c.status=91)}else c.status=91;if(c.status===
91)if(c.gzhead.comment){e=c.pending;do{if(c.pending===c.pending_buf_size&&(c.gzhead.hcrc&&c.pending>e&&(a.adler=uk(a.adler,c.pending_buf,c.pending-e,e)),mk(a),e=c.pending,c.pending===c.pending_buf_size)){g=1;break}g=c.gzindex<c.gzhead.comment.length?c.gzhead.comment.charCodeAt(c.gzindex++)&255:0;rk(c,g)}while(g!==0);c.gzhead.hcrc&&c.pending>e&&(a.adler=uk(a.adler,c.pending_buf,c.pending-e,e));g===0&&(c.status=103)}else c.status=103;c.status===103&&(c.gzhead.hcrc?(c.pending+2>c.pending_buf_size&&mk(a),
c.pending+2<=c.pending_buf_size&&(rk(c,a.adler&255),rk(c,a.adler>>8&255),a.adler=0,c.status=113)):c.status=113);if(c.pending!==0){if(mk(a),a.avail_out===0)return c.last_flush=-1,0}else if(a.avail_in===0&&(b<<1)-(b>4?9:0)<=(d<<1)-(d>4?9:0)&&b!==4)return kk(a,-5);if(c.status===666&&a.avail_in!==0)return kk(a,-5);if(a.avail_in!==0||c.lookahead!==0||b!==0&&c.status!==666){d=c.strategy===2?xqa(c,b):c.strategy===3?wqa(c,b):yk[c.level].func(c,b);if(d===3||d===4)c.status=666;if(d===1||d===3)return a.avail_out===
0&&(c.last_flush=-1),0;if(d===2&&(b===1?(dk(c,2,3),ek(c,256,nk),c.bi_valid===16?(ck(c,c.bi_buf),c.bi_buf=0,c.bi_valid=0):c.bi_valid>=8&&(c.pending_buf[c.pending++]=c.bi_buf&255,c.bi_buf>>=8,c.bi_valid-=8)):b!==5&&(dk(c,0,3),gqa(c,0,0),b===3&&(lk(c.head),c.lookahead===0&&(c.strstart=0,c.block_start=0,c.insert=0))),mk(a),a.avail_out===0))return c.last_flush=-1,0}if(b!==4)return 0;if(c.wrap<=0)return 1;c.wrap===2?(rk(c,a.adler&255),rk(c,a.adler>>8&255),rk(c,a.adler>>16&255),rk(c,a.adler>>24&255),rk(c,
a.total_in&255),rk(c,a.total_in>>8&255),rk(c,a.total_in>>16&255),rk(c,a.total_in>>24&255)):(tk(c,a.adler>>>16),tk(c,a.adler&65535));mk(a);c.wrap>0&&(c.wrap=-c.wrap);return c.pending!==0?0:1};
Aqa=function(a){if(!(this instanceof Aqa))return new Aqa(a);a=this.options=fk.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},a||{});a.raw&&a.windowBits>0?a.windowBits=-a.windowBits:a.gzip&&a.windowBits>0&&a.windowBits<16&&(a.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new Bqa;this.strm.avail_out=0;var b=this.strm;var c=a.level,d=a.method,e=a.windowBits,g=a.memLevel,k=a.strategy;if(b){var m=1;c===-1&&(c=6);e<0?(m=0,e=-e):e>15&&
(m=2,e-=16);if(g<1||g>9||d!==8||e<8||e>15||c<0||c>9||k<0||k>4)b=kk(b,-2);else{e===8&&(e=9);var n=new yqa;b.state=n;n.strm=b;n.wrap=m;n.gzhead=null;n.w_bits=e;n.w_size=1<<n.w_bits;n.w_mask=n.w_size-1;n.hash_bits=g+7;n.hash_size=1<<n.hash_bits;n.hash_mask=n.hash_size-1;n.hash_shift=~~((n.hash_bits+3-1)/3);n.window=new fk.Buf8(n.w_size*2);n.head=new fk.Buf16(n.hash_size);n.prev=new fk.Buf16(n.w_size);n.lit_bufsize=1<<g+6;n.pending_buf_size=n.lit_bufsize*4;n.pending_buf=new fk.Buf8(n.pending_buf_size);
n.d_buf=n.lit_bufsize;n.l_buf=3*n.lit_bufsize;n.level=c;n.strategy=k;n.method=d;if(b&&b.state){b.total_in=b.total_out=0;b.data_type=2;c=b.state;c.pending=0;c.pending_out=0;c.wrap<0&&(c.wrap=-c.wrap);c.status=c.wrap?42:113;b.adler=c.wrap===2?0:1;c.last_flush=0;if(!Cqa){d=Array(16);for(g=k=0;g<28;g++)for(kqa[g]=k,e=0;e<1<<jqa[g];e++)gk[k++]=g;gk[k-1]=g;for(g=k=0;g<16;g++)for(mqa[g]=k,e=0;e<1<<lqa[g];e++)hk[k++]=g;for(k>>=7;g<30;g++)for(mqa[g]=k<<7,e=0;e<1<<lqa[g]-7;e++)hk[256+k++]=g;for(e=0;e<=15;e++)d[e]=
0;for(e=0;e<=143;)nk[e*2+1]=8,e++,d[8]++;for(;e<=255;)nk[e*2+1]=9,e++,d[9]++;for(;e<=279;)nk[e*2+1]=7,e++,d[7]++;for(;e<=287;)nk[e*2+1]=8,e++,d[8]++;dqa(nk,287,d);for(e=0;e<30;e++)ok[e*2+1]=5,ok[e*2]=cqa(e,5);Dqa=new aqa(nk,jqa,257,286,15);Eqa=new aqa(ok,lqa,0,30,15);Fqa=new aqa([],Gqa,0,19,7);Cqa=!0}c.l_desc=new bqa(c.dyn_ltree,Dqa);c.d_desc=new bqa(c.dyn_dtree,Eqa);c.bl_desc=new bqa(c.bl_tree,Fqa);c.bi_buf=0;c.bi_valid=0;eqa(c);c=0}else c=kk(b,-2);c===0&&(b=b.state,b.window_size=2*b.w_size,lk(b.head),
b.max_lazy_match=yk[b.level].max_lazy,b.good_match=yk[b.level].good_length,b.nice_match=yk[b.level].nice_length,b.max_chain_length=yk[b.level].max_chain,b.strstart=0,b.block_start=0,b.lookahead=0,b.insert=0,b.match_length=b.prev_length=2,b.match_available=0,b.ins_h=0);b=c}}else b=-2;if(b!==0)throw Error(jk[b]);a.header&&(b=this.strm)&&b.state&&b.state.wrap===2&&(b.state.gzhead=a.header);if(a.dictionary){var r;typeof a.dictionary==="string"?r=Hqa(a.dictionary):Iqa.call(a.dictionary)==="[object ArrayBuffer]"?
r=new Uint8Array(a.dictionary):r=a.dictionary;a=this.strm;g=r;k=g.length;if(a&&a.state)if(r=a.state,b=r.wrap,b===2||b===1&&r.status!==42||r.lookahead)b=-2;else{b===1&&(a.adler=uqa(a.adler,g,k,0));r.wrap=0;k>=r.w_size&&(b===0&&(lk(r.head),r.strstart=0,r.block_start=0,r.insert=0),c=new fk.Buf8(r.w_size),fk.arraySet(c,g,k-r.w_size,r.w_size,0),g=c,k=r.w_size);c=a.avail_in;d=a.next_in;e=a.input;a.avail_in=k;a.next_in=0;a.input=g;for(vk(r);r.lookahead>=3;){g=r.strstart;k=r.lookahead-2;do r.ins_h=(r.ins_h<<
r.hash_shift^r.window[g+3-1])&r.hash_mask,r.prev[g&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=g,g++;while(--k);r.strstart=g;r.lookahead=2;vk(r)}r.strstart+=r.lookahead;r.block_start=r.strstart;r.insert=r.lookahead;r.lookahead=0;r.match_length=r.prev_length=2;r.match_available=0;a.next_in=d;a.input=e;a.avail_in=c;r.wrap=b;b=0}else b=-2;if(b!==0)throw Error(jk[b]);this._dict_set=!0}};
Jqa=function(a,b){b=b||{};b.gzip=!0;b=new Aqa(b);b.push(a,!0);if(b.err)throw b.msg||jk[b.err];return b.result};
Lqa=function(a,b){var c=Kqa();c&&c.publish.call(c,a.toString(),a,b)};
Qqa=function(a,b,c){var d=Kqa();if(!d)return 0;var e=d.subscribe(a.toString(),function(g,k){var m=_.Ji("ytPubsub2Pubsub2SkipSubKey");m&&m==e||(m=function(){if(Mqa[e])try{if(k&&a instanceof Nqa&&a!=g)try{var n=a.dataClass,r=k;if(!r.args||!r.version)throw Error("Sc");try{if(!n.version_){var t=new n;n.version_=t.version}var u=n.version_}catch(w){}if(!u||r.version!=u)throw Error("Tc");try{k=Reflect.construct(n,_.Ra(r.args))}catch(w){throw w.message="yt.pubsub2.Data.deserialize(): "+w.message,w;}}catch(w){throw w.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+a.toString()+": "+w.message,w;}b.call(c||window,k)}catch(w){_.Hi(w)}},Oqa[a.toString()]?_.Ji("yt.scheduler.instance")?_.zk.addLowPriorityJob(m):_.dj(m,0):m())});
Mqa[e]=!0;Pqa[a.toString()]||(Pqa[a.toString()]=[]);Pqa[a.toString()].push(e);return e};
Uqa=function(){var a=Rqa,b=Qqa(Sqa,function(c){a.apply(void 0,arguments);Tqa(b)});
return b};
Tqa=function(a){var b=Kqa();b&&(typeof a==="number"&&(a=[a]),_.Mi(a,function(c){b.unsubscribeByKey(c);delete Mqa[c]}))};
Kqa=function(){return _.Ji("ytPubsub2Pubsub2Instance")};
Vqa=function(a,b,c){c=c===void 0?{sampleRate:.1}:c;Math.random()<Math.min(.02,c.sampleRate/100)&&Lqa("meta_logging_csi_event",{timerName:a,timelineData:b})};
_.Wqa=function(a){return a?(a=a.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.Ud(a):null:null};
_.Ak=function(a){return a?(a=a.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.vd(a):null:null};
Yqa=function(){Xqa||(Xqa=_.Ak(_.Ei("WORKER_SERIALIZATION_URL")));return Xqa||void 0};
_.$qa=function(){var a=Yqa();Zqa||a===void 0||(Zqa=new Worker(_.xd(a),void 0));return Zqa};
_.ara=function(){return typeof Worker==="function"&&Yqa()?!0:!1};
_.era=function(){if(_.ara()&&!bra){var a=function(c){c=c.data;if(c.op==="gzippedGelBatch"){var d=cra.get(c.key);d&&(dra(c.gzippedBatch,d.latencyPayload,d.url,d.options,d.sendFn),cra.delete(c.key))}},b=_.$qa();
b&&(b.addEventListener("message",a),b.onerror=function(){cra.clear()},bra=!0)}};
lra=function(a,b,c,d,e){e=e===void 0?!1:e;var g={startTime:(0,_.Uj)(),ticks:{},infos:{}};if(Bk)try{var k=fra(b);if(k!=null&&(k>gra||k<hra))d(a,c);else{if(_.x("gzip_gel_with_worker")&&(_.x("initial_gzip_use_main_thread")&&!ira||!_.x("initial_gzip_use_main_thread"))){bra||_.era();var m=_.$qa();if(m&&!e){cra.set(jra,{latencyPayload:g,url:a,options:c,sendFn:d});m.postMessage({op:"gelBatchToGzip",serializedBatch:b,key:jra});jra++;return}}var n=Jqa(kra(b));dra(n,g,a,c,d)}}catch(r){_.Ki(r),d(a,c)}else d(a,
c)};
dra=function(a,b,c,d,e){ira=!1;var g=(0,_.Uj)();b.ticks.gelc=g;Ck++;_.x("disable_compression_due_to_performance_degredation")&&g-b.startTime>=mra&&(nra++,_.x("abandon_compression_after_N_slow_zips")?Ck===_.$i("compression_disable_point")&&nra>ora&&(Bk=!1):Bk=!1);pra(b);d.headers||(d.headers={});d.headers["Content-Encoding"]="gzip";d.postBody=a;d.postParams=void 0;e(c,d)};
qra=function(a){var b=b===void 0?!1:b;var c=c===void 0?!1:c;var d=(0,_.Uj)(),e={startTime:d,ticks:{},infos:{}},g=b?_.Ji("yt.logging.gzipForFetch",!1):!0;if(Bk&&g){if(!a.body)return a;try{var k=c?a.body:typeof a.body==="string"?a.body:JSON.stringify(a.body);g=k;if(!c&&typeof k==="string"){var m=fra(k);if(m!=null&&(m>gra||m<hra))return a;c=b?{level:1}:void 0;g=Jqa(kra(k),c);var n=(0,_.Uj)();e.ticks.gelc=n;if(b){Ck++;if((_.x("disable_compression_due_to_performance_degredation")||_.x("disable_compression_due_to_performance_degradation_lr"))&&
n-d>=mra)if(nra++,_.x("abandon_compression_after_N_slow_zips")||_.x("abandon_compression_after_N_slow_zips_lr")){b=nra/Ck;var r=ora/_.$i("compression_disable_point");Ck>0&&Ck%_.$i("compression_disable_point")===0&&b>=r&&(Bk=!1)}else Bk=!1;pra(e)}}a.headers=Object.assign({},{"Content-Encoding":"gzip"},a.headers||{});a.body=g;return a}catch(t){return _.Ki(t),a}}else return a};
fra=function(a){try{return(new Blob(a.split(""))).size}catch(b){return _.Ki(b),null}};
pra=function(a){_.x("gel_compression_csi_killswitch")||!_.x("log_gel_compression_latency")&&!_.x("log_gel_compression_latency_lr")||Vqa("gel_compression",a,{sampleRate:.1})};
rra=function(){this.blockSize=-1};
Dk=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var a=1;a<this.blockSize;++a)this.pad_[a]=0;this.total_=this.inbuf_=0;this.reset()};
tra=function(a){a=Object.assign({},a);delete a.Authorization;var b=sra();if(b){var c=new Dk;c.update(_.Ei("INNERTUBE_API_KEY"));c.update(b);a.hash=_.wc(c.digest(),3)}return a};
Fk=function(){ura||(ura=new _.Ek("yt.innertube"));return ura};
vra=function(a,b,c,d){if(d)return null;d=Fk().get("nextId",!0)||1;var e=Fk().get("requests",!0)||{};e[d]={method:a,request:b,authState:tra(c),requestTime:Math.round((0,_.Uj)())};Fk().set("nextId",d+1,86400,!0);Fk().set("requests",e,86400,!0);return d};
wra=function(a){var b=Fk().get("requests",!0)||{};delete b[a];Fk().set("requests",b,86400,!0)};
yra=function(a){var b=Fk().get("requests",!0);if(b){for(var c in b){var d=b[c];if(!(Math.round((0,_.Uj)())-d.requestTime<6E4)){var e=d.authState,g=tra(_.Zpa(!1));_.yf.equals(e,g)&&(e=d.request,"requestTimeMs"in e&&(e.requestTimeMs=Math.round((0,_.Uj)())),xra(a,d.method,e,{}));delete b[c]}}Fk().set("requests",b,86400,!0)}};
zra=function(a){var b;return(a=a==null?void 0:(b=a.error)==null?void 0:b.code)&&a>=400&&a<=599?!1:!0};
Ara=function(a){var b;a=a==null?void 0:(b=a.error)==null?void 0:b.code;return!(a!==400&&a!==415)};
Cra=function(){if(Bra)return Bra();var a={};Bra=Tj("LogsDatabaseV2",{objectStores:(a.LogsRequestsStore={addedAtVersion:2},a),shared:!1,upgrade:function(b,c,d){c(2)&&Gk(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});c(3);c(5)&&(d=d.objectStore("LogsRequestsStore"),d.JSC$8425_wrapped.indexNames.contains("newRequest")&&d.JSC$8425_wrapped.deleteIndex("newRequest"),Hk(d,"newRequestV2",["status","interface","timestamp"]));c(7)&&b.JSC$8410_wrapped.objectStoreNames.contains("sapisid")&&b.JSC$8410_wrapped.deleteObjectStore("sapisid");
c(9)&&b.JSC$8410_wrapped.objectStoreNames.contains("SWHealthLog")&&b.JSC$8410_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return Bra()};
Ik=function(a){return _.Lj(Cra(),a)};
Era=function(a,b){var c,d,e,g;return _.l(function(k){if(k.nextAddress==1)return c={startTime:(0,_.Uj)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},_.p(k,Ik(b),2);if(k.nextAddress!=3)return d=k.yieldResult,e=Object.assign({},a,{options:JSON.parse(JSON.stringify(a.options)),interface:_.Ei("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),_.p(k,d.put("LogsRequestsStore",e),3);g=k.yieldResult;c.ticks.tc=(0,_.Uj)();Dra(c);return k.return(g)})};
Fra=function(a,b){var c,d,e,g,k,m,n,r;return _.l(function(t){if(t.nextAddress==1)return c={startTime:(0,_.Uj)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},_.p(t,Ik(b),2);if(t.nextAddress!=3)return d=t.yieldResult,e=_.Ei("INNERTUBE_CONTEXT_CLIENT_NAME",0),g=[a,e,0],k=[a,e,(0,_.Uj)()],m=IDBKeyRange.bound(g,k),n="prev",_.x("use_fifo_for_networkless")&&(n="next"),r=void 0,_.p(t,_.Mj(d,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(u){return _.Vj(u.objectStore("LogsRequestsStore").index("newRequestV2"),
{query:m,direction:n},function(w){w.getValue()&&(r=w.getValue(),a==="NEW"&&(r.status="QUEUED",w.update(r)))})}),3);
c.ticks.tc=(0,_.Uj)();Dra(c);return t.return(r)})};
Gra=function(a,b){var c;return _.l(function(d){if(d.nextAddress==1)return _.p(d,Ik(b),2);c=d.yieldResult;return d.return(_.Mj(c,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(e){var g=e.objectStore("LogsRequestsStore");return g.get(a).then(function(k){if(k)return k.status="QUEUED",g.put(k).then(function(){return k})})}))})};
Hra=function(a,b,c,d){c=c===void 0?!0:c;var e;return _.l(function(g){if(g.nextAddress==1)return _.p(g,Ik(b),2);e=g.yieldResult;return g.return(_.Mj(e,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(k){var m=k.objectStore("LogsRequestsStore");return m.get(a).then(function(n){return n?(n.status="NEW",c&&(n.sendCount+=1),d!==void 0&&(n.options.compress=d),m.put(n).then(function(){return n})):Fj.resolve(void 0)})}))})};
Ira=function(a,b){var c;return _.l(function(d){if(d.nextAddress==1)return _.p(d,Ik(b),2);c=d.yieldResult;return d.return(c.delete("LogsRequestsStore",a))})};
Jra=function(a){var b,c;return _.l(function(d){if(d.nextAddress==1)return _.p(d,Ik(a),2);b=d.yieldResult;c=(0,_.Uj)()-2592E6;return _.p(d,_.Mj(b,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(e){return Oj(e.objectStore("LogsRequestsStore"),{},function(g){if(g.getValue().timestamp<=c)return g.delete().then(function(){return g.continue()})})}),0)})};
Kra=function(){_.l(function(a){return _.p(a,zpa("LogsDatabaseV2"),0)})};
Dra=function(a){_.x("nwl_csi_killswitch")||Vqa("networkless_performance",a,{sampleRate:1})};
_.Mra=function(a){return _.Lj(Lra(),a)};
Nra=function(a){var b,c;_.l(function(d){if(d.nextAddress==1)return _.p(d,_.Mra(a),2);b=d.yieldResult;c=(0,_.Uj)()-2592E6;return _.p(d,_.Mj(b,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(e){return Oj(e.objectStore("SWHealthLog"),{},function(g){if(g.getValue().timestamp<=c)return g.delete().then(function(){return g.continue()})})}),0)})};
Ora=function(a){var b;return _.l(function(c){if(c.nextAddress==1)return _.p(c,_.Mra(a),2);b=c.yieldResult;return _.p(c,b.clear("SWHealthLog"),0)})};
_.Jk=function(a,b,c,d,e,g,k){e=e===void 0?"":e;g=g===void 0?!1:g;k=k===void 0?!1:k;if(a)if(c&&!Bj("cobalt"))_.Ki(new _.qj("Legacy referrer-scrubbed ping detected")),a&&Pra(a,void 0,{scrubReferrer:!0});else if(e)ooa(a,b,"POST",e,d);else if(_.Ei("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||d||k)ooa(a,b,"GET","",d,void 0,g,k);else{b:{try{c:{var m=new Qra({url:a});if(fia(m.JSC$7332_url_,"dsh")==="1")var n=null;else{var r=fia(m.JSC$7332_url_,"ae");if(r==="1"){var t=fia(m.JSC$7332_url_,"adurl");if(t)try{n={version:3,
directUrl:decodeURIComponent(t),asyncUrl:gia(m.JSC$7332_url_,"act=1","ri=1",Rra(m))};break c}catch(C){}}n=r==="2"?{version:4,directUrl:gia(m.JSC$7332_url_,"dct=1","suid="+m.suid_,""),asyncUrl:gia(m.JSC$7332_url_,"act=1","ri=1","suid="+m.suid_)}:null}}if(n){var u=_.gj(a);var w=!(!u||!u.endsWith("/aclk")||_.Hg(a,"ri")!=="1");break b}}catch(C){}w=!1}if(w){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,"")){var A=!0;break b}}catch(C){}A=!1}A?(b&&b(),c=!0):c=!1}else c=
!1;c||Pra(a,b)}};
Pra=function(a,b,c){c=c===void 0?{}:c;var d=new Image,e=""+Sra++;Tra[e]=d;d.onload=d.onerror=function(){b&&Tra[e]&&b();delete Tra[e]};
c.scrubReferrer&&(d.referrerPolicy="no-referrer");d.src=a};
Kk=function(a,b){Ura(a,b==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
Vra=function(a){var b;return((b=document.featurePolicy)==null?0:b.allowedFeatures().includes("attribution-reporting"))?a+"&nis=6":a+"&nis=5"};
Wra=function(a){if(!a)return!1;try{var b;if(((b=_.Ni(a))==null?void 0:b.asm)==="4")return!0}catch(c){_.Hi(c)}return!1};
Ura=function(a,b){b?(a=Vra(a),_.Jk(a,void 0,void 0,void 0,"",!0,!0)):_.Jk(a)};
Yra=function(){Xra||(Xra=new _.Ek("yt.offline"));return Xra};
Zra=function(a){if(_.x("offline_error_handling")){var b=Yra().get("errors",!0)||{};b[a.message]={name:a.name,stack:a.stack};a.level&&(b[a.message].level=a.level);Yra().set("errors",b,2592E3,!0)}};
asa=function(a,b,c,d){d=d===void 0?!1:d;b=_.x("web_fp_via_jspb")?Object.assign({},b):b;_.x("use_cfr_monitor")&&$ra(a,b);if(_.x("use_request_time_ms_header"))b.headers&&Ui(a)&&(b.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.Uj)())));else{var e;if((e=b.postParams)==null?0:e.requestTimeMs)b.postParams.requestTimeMs=Math.round((0,_.Uj)())}c&&Object.keys(b).length===0?_.Jk(a):b.compress?b.postBody?(typeof b.postBody!=="string"&&(b.postBody=JSON.stringify(b.postBody)),lra(a,b.postBody,
b,_.hj,d)):lra(a,JSON.stringify(b.postParams),b,soa,d):_.hj(a,b)};
bsa=function(a,b){_.x("use_event_time_ms_header")&&Ui(a)&&(b.headers||(b.headers={}),b.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.Uj)())));return b};
_.dsa=function(){csa||(csa=new _.Lk({logOfflineErrors:!0,enablePolling:!0}));return csa};
$ra=function(a,b){var c=b.onError?b.onError:function(){};
b.onError=function(e,g){Mk().requestComplete(a,!1);c(e,g)};
var d=b.onSuccess?b.onSuccess:function(){};
b.onSuccess=function(e,g){Mk().requestComplete(a,!0);d(e,g)}};
_.esa=function(){return _.Si(document.location.toString())!=="www.youtube-nocookie.com"};
_.hsa=function(){return _.Ji("ytNetworklessLoggingInitializationOptions")?_.fsa.isNwlInitialized:_.gsa};
isa=function(a,b){if(_.x("polymer_on_demand_shady_dom")){var c;var d=(c=a.__shady_native_firstElementChild)!=null?c:a.firstElementChild}else d=a.firstElementChild;for(;d;){if(a=b(d)?d:isa(d,b))return a;d=d.nextElementSibling}return null};
ksa=function(){var a=document;if("visibilityState"in a)return a.visibilityState;var b=jsa+"VisibilityState";if(b in a)return a[b]};
_.lsa=function(a,b){var c;Nk(a,function(d){c=b[d];return!!c});
return c};
_.Pk=function(a){var b=msa(a);b?b.focus():_.Ok(a)};
msa=function(a){return(a=isa(a,function(b){return _.Sk(b)?nsa(b)&&!!b.offsetParent:!1}))?a:null};
_.Ok=function(a,b){a.hasAttribute("tabindex")||a.setAttribute("tabindex","-1");a.focus(b)};
osa=function(a,b,c,d){d=d===void 0?{}:d;a.addEventListener&&(b!="mouseenter"||"onmouseenter"in document?b!="mouseleave"||"onmouseenter"in document?b=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"):b="mouseout":b="mouseover");return _.yf.findKey(Tk,function(e){var g=typeof e[4]==="boolean"&&e[4]==!!d,k=_.$a(e[4])&&_.$a(d)&&_.yf.equals(e[4],d);return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&(g||k)})};
_.Vk=function(a,b,c,d){d=d===void 0?{}:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=osa(a,b,c,d);if(e)return e;e=++psa.count+"";var g=!(b!="mouseenter"&&b!="mouseleave"||!a.addEventListener||"onmouseenter"in document);var k=g?function(m){m=new Uk(m);if(!_.Ef(m.relatedTarget,function(n){return n==a},!0))return m.currentTarget=a,m.type=b,c.call(a,m)}:function(m){m=new Uk(m);
m.currentTarget=a;return c.call(a,m)};
k=_.Ii(k);a.addEventListener?(b=="mouseenter"&&g?b="mouseover":b=="mouseleave"&&g?b="mouseout":b=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),qsa()||typeof d==="boolean"?a.addEventListener(b,k,d):a.addEventListener(b,k,!!d.capture)):a.attachEvent("on"+b,k);Tk[e]=[a,b,c,k,d];return e};
_.ssa=function(a,b,c){var d=d===void 0?{}:d;var e=_.Vk(a,b,function(){_.rsa(e);c.apply(a,arguments)},d)};
_.rsa=function(a){a&&(typeof a=="string"&&(a=[a]),_.Mi(a,function(b){if(b in Tk){var c=Tk[b],d=c[0],e=c[1],g=c[3];c=c[4];d.removeEventListener?qsa()||typeof c==="boolean"?d.removeEventListener(e,g,c):d.removeEventListener(e,g,!!c.capture):d.detachEvent&&d.detachEvent("on"+e,g);delete Tk[b]}}))};
Wk=function(a){this.callback_=a;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(a=0;a<4;a++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.Vk(window,"mousemove",(0,_.ug)(this.onMouseMove_,this));this.timerId_=_.ej((0,_.ug)(this.checkPosition_,this),25)};
usa=function(){var a={};var b=a.preferMobileEvents===void 0?!1:a.preferMobileEvents;a=a.enableScrollEventListener===void 0?!0:a.enableScrollEventListener;if(_.Ji("_lact",window)==null){var c=parseInt(_.Ei("LACT"),10);c=isFinite(c)?Date.now()-Math.max(c,0):-1;_.Rj("_lact",c,window);_.Rj("_fact",c,window);c==-1&&_.Zk();_.Vk(document,"keydown",_.Zk);_.Vk(document,"keyup",_.Zk);_.Vk(document,"mousedown",_.Zk);_.Vk(document,"mouseup",_.Zk);b?_.Vk(window,"touchmove",function(){tsa("touchmove",200)},{passive:!0}):
(_.Vk(window,"resize",function(){tsa("resize",200)}),a&&_.Vk(window,"scroll",function(){tsa("scroll",200)}));
new Wk(function(){tsa("mouse",100)});
_.Vk(document,"touchstart",_.Zk,{passive:!0});_.Vk(document,"touchend",_.Zk,{passive:!0})}};
tsa=function(a,b){vsa[a]||(vsa[a]=!0,_.zk.addLowPriorityJob(function(){_.Zk();vsa[a]=!1},b))};
_.Zk=function(){_.Ji("_lact",window)==null&&usa();var a=Date.now();_.Rj("_lact",a,window);_.Ji("_fact",window)==-1&&_.Rj("_fact",a,window);(a=_.Ji("ytglobal.ytUtilActivityCallback_"))&&a()};
_.$k=function(){var a=_.Ji("_lact",window);return a==null?-1:Math.max(Date.now()-a,0)};
_.dl=function(a,b,c){var d=_.al();if(d&&b){var e=d.subscribe(a,function(){var g=arguments,k=function(){bl[e]&&b.apply&&typeof b.apply=="function"&&b.apply(c||window,g)};
try{_.wsa[a]?k():_.dj(k,0)}catch(m){_.Hi(m)}},c);
bl[e]=!0;cl[a]||(cl[a]=[]);cl[a].push(e);return e}return 0};
_.xsa=function(a){var b=_.al();b&&(typeof a==="number"?a=[a]:typeof a==="string"&&(a=[parseInt(a,10)]),_.Mi(a,function(c){b.unsubscribeByKey(c);delete bl[c]}))};
_.ysa=function(a,b){var c=_.al();c&&c.publish.apply(c,arguments)};
_.Asa=function(a){var b=_.al();if(b)if(b.clear(a),a)zsa(a);else for(var c in cl)zsa(c)};
_.al=function(){return _.ja.ytPubsubPubsubInstance};
zsa=function(a){cl[a]&&(a=cl[a],_.Mi(a,function(b){bl[b]&&delete bl[b]}),a.length=0)};
Bsa=function(){var a,b;return"h5vcc"in el&&((a=el.h5vcc.traceEvent)==null?0:a.traceBegin)&&((b=el.h5vcc.traceEvent)==null?0:b.traceEnd)?1:"performance"in el&&el.performance.mark&&el.performance.measure?2:0};
Csa=function(a){var b=Bsa();switch(b){case 1:el.h5vcc.traceEvent.traceBegin("YTLR",a);break;case 2:el.performance.mark(a+"-start");break;case 0:break;default:_.Sb(b,"unknown trace type")}};
Dsa=function(a){var b=Bsa();switch(b){case 1:el.h5vcc.traceEvent.traceEnd("YTLR",a);break;case 2:b=a+"-start";var c=a+"-end";el.performance.mark(c);el.performance.measure(a,b,c);break;case 0:break;default:_.Sb(b,"unknown trace type")}};
Esa=function(a){var b,c;(c=(b=window).onerror)==null||c.call(b,a.message,"",0,0,a)};
Fsa=function(a){if(_.x("web_lifecycle_error_handling_killswitch"))return a();try{return a()}catch(b){Esa(b)}};
Gsa=function(a){return[a.auth===void 0?"undefined":a.auth,a.isJspb===void 0?"undefined":a.isJspb,a.cttAuthInfo===void 0?"undefined":a.cttAuthInfo,a.tier===void 0?"undefined":a.tier].join("/")};
_.y=function(a,b){if(a)return a[b.name]};
_.fl=function(a){return a};
hl=function(){var a=_.Ji("yt.logging.ims");a||(a=new gl,_.Rj("yt.logging.ims",a));return a};
Psa=function(a,b){if(a.endpoint==="log_event"){Hsa(a);var c=Isa(a),d=Jsa(a.payload)||"",e=Ksa(d),g=200;if(e){if(e.enabled===!1&&!_.x("web_payload_policy_disabled_killswitch"))return;g=Lsa(e.tier);if(g===400){Msa(a,b);return}}il[c]=!0;c={cttAuthInfo:c,isJspb:!1,tier:g};hl().storePayload(c,a.payload);Nsa(b,!1,c,Osa(d))}};
Rsa=function(a,b,c){if(b.endpoint==="log_event"){Hsa(void 0,b);var d=Isa(b,!0),e=Ksa(a),g=200;if(e){if(e.enabled===!1&&!_.x("web_payload_policy_disabled_killswitch"))return;g=Lsa(e.tier);if(g===400){Qsa(a,b,c);return}}il[d]=!0;d={cttAuthInfo:d,isJspb:!0,tier:g};hl().storePayload(d,zc(b.payload));Nsa(c,!0,d,Osa(a))}};
Nsa=function(a,b,c,d){b=b===void 0?!1:b;d=d===void 0?!1:d;a&&(jl=new a);a=_.$i("tvhtml5_logging_max_batch_ads_fork")||_.$i("tvhtml5_logging_max_batch")||_.$i("web_logging_max_batch")||100;var e=(0,_.Uj)(),g=Ssa(b,c.tier),k=g.lastDebounceQueueFromLogTimeMs;d&&(g.useVideoStatsEndPoint=!0);d=0;c&&(d=hl().getSequenceCount(c));var m=function(){Tsa({writeThenSend:!0},b,c.tier)};
d>=1E3?m():d>=a?Usa||(Usa=Vsa(function(){m();Usa=void 0},0)):e-k>=10&&(Wsa(b,c.tier),g.lastDebounceQueueFromLogTimeMs=e)};
Msa=function(a,b){if(a.endpoint==="log_event"){_.x("more_accurate_gel_parser")&&hl().storePayload({isJspb:!1},a.payload);Hsa(a);var c=Isa(a),d=new Map;d.set(c,[a.payload]);var e=Jsa(a.payload)||"";b&&(jl=new b);return new _.kl(function(g,k){jl&&jl.isReady()?Xsa(d,jl,g,k,{bypassNetworkless:!0},!0,Osa(e)):g()})}};
Qsa=function(a,b,c){if(b.endpoint==="log_event"){Hsa(void 0,b);var d=Isa(b,!0),e=new Map;e.set(d,[zc(b.payload)]);c&&(jl=new c);return new _.kl(function(g){jl&&jl.isReady()?Ysa(e,jl,g,{bypassNetworkless:!0},!0,Osa(a)):g()})}};
Isa=function(a,b){var c="";if(a.dangerousLogToVisitorSession)c="visitorOnlyApprovedKey";else if(a.cttAuthInfo){if(b===void 0?0:b){b=a.cttAuthInfo.token;c=a.cttAuthInfo;var d=new Zsa;c.videoId?d.setVideoId(c.videoId):c.playlistId&&ll(d,2,$sa,mc(c.playlistId));ata[b]=d}else b=a.cttAuthInfo,c={},b.videoId?c.videoId=b.videoId:b.playlistId&&(c.playlistId=b.playlistId),bta[a.cttAuthInfo.token]=c;c=a.cttAuthInfo.token}return c};
Tsa=function(a,b,c){a=a===void 0?{}:a;b=b===void 0?!1:b;new _.kl(function(d,e){var g=Ssa(b,c),k=g.useVideoStatsEndPoint;g.useVideoStatsEndPoint=!1;cta(g.queueTimer);cta(g.queueMaxTimer);g.queueMaxTimer=0;jl&&jl.isReady()?c===void 0&&_.x("enable_web_tiered_gel")?dta(d,e,a,b,300,k):dta(d,e,a,b,c,k):(Wsa(b,c),d())})};
dta=function(a,b,c,d,e,g){var k=jl;c=c===void 0?{}:c;d=d===void 0?!1:d;e=e===void 0?200:e;g=g===void 0?!1:g;var m=new Map,n=new Map,r={isJspb:d,cttAuthInfo:void 0,tier:e},t={isJspb:d,cttAuthInfo:void 0};if(d){b=_.h(Object.keys(il));for(e=b.next();!e.done;e=b.next())e=e.value,n=_.x("enable_web_tiered_gel")?hl().smartExtractMatchingEntries({keys:[r,t],sizeLimit:1E3}):hl().extractMatchingEntries({isJspb:!0,cttAuthInfo:e}),n.length>0&&m.set(e,n),(_.x("web_fp_via_jspb_and_json")&&c.writeThenSend||!_.x("web_fp_via_jspb_and_json"))&&
delete il[e];Ysa(m,k,a,c,!1,g)}else{m=_.h(Object.keys(il));for(r=m.next();!r.done;r=m.next())r=r.value,t=_.x("enable_web_tiered_gel")?hl().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:r,tier:e},{isJspb:!1,cttAuthInfo:r}],sizeLimit:1E3}):hl().extractMatchingEntries({isJspb:!1,cttAuthInfo:r}),t.length>0&&n.set(r,t),(_.x("web_fp_via_jspb_and_json")&&c.writeThenSend||!_.x("web_fp_via_jspb_and_json"))&&delete il[r];Xsa(n,k,a,b,c,!1,g)}};
Wsa=function(a,b){a=a===void 0?!1:a;b=b===void 0?200:b;var c=function(){Tsa({writeThenSend:!0},a,b)},d=Ssa(a,b),e=d===eta||d===fta?5E3:gta;
_.x("web_gel_timeout_cap")&&!d.queueMaxTimer&&(e=Vsa(function(){c()},e),d.queueMaxTimer=e);
cta(d.queueTimer);e=_.Ei("LOGGING_BATCH_TIMEOUT",_.$i("web_gel_debounce_ms",1E4));_.x("shorten_initial_gel_batch_timeout")&&hta&&(e=ita);e=Vsa(function(){_.$i("gel_min_batch_size")>0?hl().getSequenceCount({cttAuthInfo:void 0,isJspb:a,tier:b})>=jta&&c():c()},e);
d.queueTimer=e};
Xsa=function(a,b,c,d,e,g,k){e=e===void 0?{}:e;var m=Math.round((0,_.Uj)()),n=a.size,r=kta(k);a=_.h(a);var t=a.next();for(k={};!t.done;k={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},t=a.next()){var u=_.h(t.value);t=u.next().value;u=u.next().value;k.batchRequest=_.yf.unsafeClone({context:_.Qpa(b.config_||_.Wj())});if(!_.Sa(u)&&!_.x("throw_err_when_logevent_malformed_killswitch")){d();break}k.batchRequest.events=u;
(u=bta[t])&&lta(k.batchRequest,t,u);delete bta[t];k.dangerousLogToVisitorSession=t==="visitorOnlyApprovedKey";mta(k.batchRequest,m,k.dangerousLogToVisitorSession);nta(e);k.onSuccess$jscomp$3=function(w){_.x("start_client_gcf")&&_.zk.addLowPriorityJob(function(){return _.l(function(A){return _.p(A,ota(w),0)})});
n--;n||c()};
k.networkFailures=0;k.onError$jscomp$5=function(w){return function(){w.networkFailures++;if(e.bypassNetworkless&&w.networkFailures===1)try{xra(b,r,w.batchRequest,pta({writeThenSend:!0},w.dangerousLogToVisitorSession,w.onSuccess$jscomp$3,w.onError$jscomp$5,g)),hta=!1}catch(A){_.Hi(A),d()}n--;n||c()}}(k);
try{xra(b,r,k.batchRequest,pta(e,k.dangerousLogToVisitorSession,k.onSuccess$jscomp$3,k.onError$jscomp$5,g)),hta=!1}catch(w){_.Hi(w),d()}}};
Ysa=function(a,b,c,d,e,g){d=d===void 0?{}:d;var k=Math.round((0,_.Uj)()),m={value:a.size},n=new Map([].concat(_.Be(a)));n=_.h(n);for(var r=n.next();!r.done;r=n.next()){var t=_.h(r.value).next().value,u=a.get(t);r=new qta;var w=b.config_||_.Wj(),A=new ml,C=new rta;_.sf(C,1,w.innertubeContextHostLanguage);_.sf(C,2,w.innertubeContextGeoLocation);_.Yj(C,16,w.innertubeContextClientNameFieldNumber);_.sf(C,17,w.innertubeContextClientVersion);if(w.innertubeContextClientConfigInfo){var G=w.innertubeContextClientConfigInfo,
J=new ak;G.coldConfigData&&_.sf(J,1,G.coldConfigData);G.appInstallData&&_.sf(J,6,G.appInstallData);G.coldHashData&&_.sf(J,3,G.coldHashData);G.hotHashData&&J.setHotHashData(G.hotHashData);_.pd(C,62,J)}(G=_.ja.devicePixelRatio)&&G!=1&&_.Zj(C,65,_.Ub(G));G=foa();G!==""&&_.sf(C,54,G);G=goa();if(G.length>0){J=new sta;for(var I=0;I<G.length;I++){var R=new nl;R.setKey(G[I].key);ll(R,2,tta,mc(G[I].value));ol(J,15,nl,R)}_.pd(A,5,J)}Kpa(w,C);Lpa(A);Mpa(C);Npa(w,C);Opa(C);_.x("start_client_gcf")&&Ppa(C);_.Ei("DELEGATED_SESSION_ID")&&
!_.x("pageid_as_header_web")&&(w=new pl,_.sf(w,3,_.Ei("DELEGATED_SESSION_ID")));!_.x("fill_delegate_context_in_gel_killswitch")&&(G=_.Ei("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(J=_.Xj(A,pl,3)||new pl,w=A,G=_.sf(J,18,G),_.pd(w,3,G));w=C;G=_.h(Object.entries(_.Ni(_.Ei("DEVICE",""))));for(J=G.next();!J.done;J=G.next())I=_.h(J.value),J=I.next().value,I=I.next().value,J==="cbrand"?_.sf(w,12,I):J==="cmodel"?_.sf(w,13,I):J==="cbr"?_.sf(w,87,I):J==="cbrver"?_.sf(w,88,I):J==="cos"?_.sf(w,18,
I):J==="cosver"?_.sf(w,19,I):J==="cplatform"&&_.Yj(w,42,Ioa(I));A.setClient(C);_.pd(r,1,A);if(C=ata[t])a:{if(_.kg(C,ql(C,$sa,1)))A=1;else if(C.getPlaylistId())A=2;else break a;_.pd(r,4,C);C=r.getContext()||new ml;w=_.Xj(C,pl,3)||new pl;G=new rl;G.setToken(t);_.Yj(G,1,A);ol(w,12,rl,G);_.pd(C,3,w)}delete ata[t];t=t==="visitorOnlyApprovedKey";uta()||_.sl(r,2,k);!t&&(A=_.Ei("EVENT_ID"))&&(C=vta(),w=new wta,_.sf(w,1,A),_.sl(w,2,C),_.pd(r,5,w));nta(d);if(_.x("jspb_serialize_with_worker")&&(A=_.$qa())&&
d.writeThenSend){_.xta.set(yta,{client:b,resolve:c,networklessOptions:d,isIsolated:e,useVSSEndpoint:g,dangerousLogToVisitorSession:t,requestsOutstanding:m});A.postMessage({op:"gelBatchToSerialize",batchRequest:zc(r),clientEvents:u,key:yta});yta++;break}if(u){A=[];for(C=0;C<u.length;C++)try{A.push(new tl(u[C]))}catch(ca){_.Hi(new _.qj("Transport failed to deserialize "+String(u[C])))}u=A}else u=[];u=_.h(u);for(A=u.next();!A.done;A=u.next())ol(r,3,tl,A.value);u={startTime:(0,_.Uj)(),ticks:{},infos:{}};
r=r.serialize();u.ticks.geljspc=(0,_.Uj)();_.x("log_jspb_serialize_latency")&&Vqa("gel_jspb_serialize",u,{sampleRate:.1});_.zta(r,b,c,d,e,g,t,m)}};
_.zta=function(a,b,c,d,e,g,k,m){d=d===void 0?{}:d;m=m===void 0?{value:0}:m;g=kta(g);d=pta(d,k,function(n){_.x("start_client_gcf")&&_.zk.addLowPriorityJob(function(){return _.l(function(r){return _.p(r,ota(n),0)})});
m.value--;m.value||c()},function(){m.value--;
m.value||c()},e);
d.headers["Content-Type"]="application/json+protobuf";d.postBodyFormat="JSPB";d.postBody=a;xra(b,g,"",d);hta=!1};
nta=function(a){_.x("always_send_and_write")&&(a.writeThenSend=!1)};
pta=function(a,b,c,d,e){a={retry:!0,onSuccess:c,onError:d,networklessOptions:a,dangerousLogToVisitorSession:b,bypassMonitoring:!!e,headers:{},postBodyFormat:"",postBody:"",compress:_.x("compress_gel")||_.x("compress_gel_lr")};uta()&&(a.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.Uj)())));return a};
mta=function(a,b,c){uta()||(a.requestTimeMs=String(b));_.x("unsplit_gel_payloads_in_logs")&&(a.unsplitGelPayloadsInLogs=!0);!c&&(b=_.Ei("EVENT_ID"))&&(c=vta(),a.serializedClientEventId={serializedEventId:b,clientCounter:String(c)})};
vta=function(){var a=_.Ei("BATCH_CLIENT_COUNTER")||0;a||(a=Math.floor(Math.random()*65535/2));a++;a>65535&&(a=1);_.Bi("BATCH_CLIENT_COUNTER",a);return a};
lta=function(a,b,c){if(c.videoId)var d="VIDEO";else if(c.playlistId)d="PLAYLIST";else return;a.credentialTransferTokenTargetId=c;a.context=a.context||{};a.context.user=a.context.user||{};a.context.user.credentialTransferTokens=[{token:b,scope:d}]};
Hsa=function(a,b){var c=_.aj("il_payload_scraping")==="enable_il_payload_scraping";if(!_.Ji("yt.logging.transport.enableScrapingForTest"))if(c)Ata=[],_.Rj("yt.logging.transport.enableScrapingForTest",!0),_.Rj("yt.logging.transport.scrapedPayloadsForTesting",Ata),_.Rj("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.Rj("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.Rj("yt.logging.transport.scrapeClientEvent",!0);else return;c=_.Ji("yt.logging.transport.scrapedPayloadsForTesting");var d=_.Ji("yt.logging.transport.payloadToScrape");b&&(b=_.Ji("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(b.payload)())&&c.push(b);b=_.Ji("yt.logging.transport.scrapeClientEvent");if(d&&d.length>=1)for(var e=0;e<d.length;e++)if(a&&a.payload[d[e]])if(b)c.push(a.payload);else{var g=void 0;c.push(((g=a)==null?void 0:g.payload)[d[e]])}_.Rj("yt.logging.transport.scrapedPayloadsForTesting",
c)};
uta=function(){return _.x("use_request_time_ms_header")||_.x("lr_use_request_time_ms_header")};
Vsa=function(a,b){return _.x("transport_use_scheduler")===!1?_.dj(a,b):_.x("logging_avoid_blocking_during_navigation")||_.x("lr_logging_avoid_blocking_during_navigation")?_.ul(_.zk,function(){if(_.Bta().currentState==="none")a();else{var c={};_.Bta().install((c.none={callback:a},c))}},b):_.ul(_.zk,a,b)};
cta=function(a){_.x("transport_use_scheduler")?_.zk.cancelJob(a):_.fj(a)};
ota=function(a){var b,c,d,e,g,k,m,n,r,t;return _.l(function(u){return u.nextAddress==1?(d=(b=a)==null?void 0:(c=b.responseContext)==null?void 0:c.globalConfigGroup,e=_.y(d,Cta),k=(g=d)==null?void 0:g.hotHashData,m=_.y(d,Dta),r=(n=d)==null?void 0:n.coldHashData,(t=_.v().resolve(_.Wi(vl)))?k?e?_.p(u,Eta(t,k,e),2):_.p(u,Eta(t,k),2):u.jumpTo(2):u.return()):r?m?_.p(u,Fta(t,r,m),0):_.p(u,Fta(t,r),0):u.jumpTo(0)})};
Ssa=function(a,b){b=b===void 0?200:b;return a?b===300?eta:Gta:b===300?fta:Hta};
Ksa=function(a){if(_.x("enable_web_tiered_gel")){a=Ita[a||""];var b,c,d,e=_.v().resolve(_.Wi(vl))==null?void 0:(b=Jta())==null?void 0:(c=b.loggingHotConfig)==null?void 0:(d=c.eventLoggingConfig)==null?void 0:d.payloadPolicies;if(e)for(b=0;b<e.length;b++)if(e[b].payloadNumber===a)return e[b]}};
Jsa=function(a){a=Object.keys(a);a=_.h(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,Ita[b])return b};
Lsa=function(a){switch(a){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}};
Osa=function(a){return a==="gelDebuggingEvent"};
kta=function(a){return(a===void 0?0:a)&&_.x("vss_through_gel_video_stats")?"video_stats":"log_event"};
xl=function(a,b,c,d){d=d===void 0?{}:d;var e={},g=Math.round(d.timestamp||(0,_.Uj)());e.eventTimeMs=g<Number.MAX_SAFE_INTEGER?g:0;e[a]=b;a=_.$k();e.context={lastActivityMs:String(d.timestamp||!isFinite(a)?-1:a)};d.sequenceGroup&&!_.x("web_gel_sequence_info_killswitch")&&(a=e.context,b=d.sequenceGroup,b={index:Kta(b),groupKey:b},a.sequence=b,d.endOfSequence&&delete wl[d.sequenceGroup]);(d.sendIsolatedPayload?Msa:Psa)({endpoint:"log_event",payload:e,cttAuthInfo:d.cttAuthInfo,dangerousLogToVisitorSession:d.dangerousLogToVisitorSession},
c)};
Kta=function(a){wl[a]=a in wl?wl[a]+1:0;return wl[a]};
_.zl=function(a,b,c){c=c===void 0?{}:c;var d=yl;_.Gi("ytLoggingEventsDefaultDisabled",!1)&&yl===yl&&(d=null);xl(a,b,d,c)};
_.Al=function(){if(_.x("web_fp_via_jspb")){var a=!0;a=a===void 0?!1:a;var b=Lta;Lta=[];if(b){b=_.h(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a?xl(c.payloadName,c.payload,yl,c.options):_.zl(c.payloadName,c.payload,c.options)}Tsa(void 0,!0);if(!_.x("web_fp_via_jspb_and_json"))return}Tsa(void 0,!1)};
Nta=function(a,b){var c;if((c=b)==null?0:c.componentStack)return b;if(a=a.componentStack)b||(b={}),b.componentStack=Mta(a);return b};
Mta=function(a){return a.slice(0,void 0).map(function(b){return b.name}).join(" > ")};
Ota=function(){_.Mi(_.Ei("ERRORS")||[],function(a){_.Bl.apply(null,a)});
_.Bi("ERRORS",[])};
_.Cl=function(a){_.Bl(a)};
_.Dl=function(a){_.Bl(a,"WARNING")};
Pta=function(a){a instanceof Error?_.Bl(a):(a=_.$a(a)?JSON.stringify(a):String(a),a=new _.qj(a),a.name="RejectedPromiseError",_.Dl(a))};
Qta=function(a,b,c,d,e,g){b=b===void 0?"Unknown file":b;c=c===void 0?0:c;var k=!1,m=Nna("log_window_onerror_fraction");if(m&&Math.random()<m)k=!0;else{m=document.getElementsByTagName("script");for(var n=0,r=m.length;n<r;n++)if(m[n].src.indexOf("/debug-")>0){k=!0;break}}k&&(k=!1,e?k=!0:(typeof a==="string"?m=a:ErrorEvent&&a instanceof ErrorEvent?(k=!0,m=a.message,b=a.filename,c=a.lineno,d=a.colno):(m="Unknown error",b="Unknown file",c=0),e=new _.qj(m),e.name="UnhandledWindowError",e.message=m,e.fileName=
b,e.lineNumber=c,isNaN(d)?delete e.columnNumber:e.columnNumber=d),_.x("wiz_enable_component_stack_propagation_killswitch")||(g=Nta(e,g)),g&&_.El(e,g),k?_.Bl(e):_.Dl(e))};
_.Bl=function(a,b,c,d,e,g,k,m){g=g===void 0?{}:g;g.name=c||_.Ei("INNERTUBE_CONTEXT_CLIENT_NAME",1);g.version=d||_.Ei("INNERTUBE_CONTEXT_CLIENT_VERSION");c=g;b=b===void 0?"ERROR":b;k=k===void 0?!1:k;b=b===void 0?"ERROR":b;k=k===void 0?!1:k;if(a&&(a.hasOwnProperty("level")&&a.level&&(b=a.level),_.x("console_log_js_exceptions")&&(d=[],d.push("Name: "+a.name),d.push("Message: "+a.message),a.hasOwnProperty("params")&&d.push("Error Params: "+JSON.stringify(a.params)),a.hasOwnProperty("args")&&d.push("Error args: "+
JSON.stringify(a.args)),d.push("File name: "+a.fileName),d.push("Stacktrace: "+a.stack),d=d.join("\n"),window.console.log(d,a)),!(Rta>=5))){d=[];e=_.h(Sta);for(g=e.next();!g.done;g=e.next()){g=g.value;try{g()&&d.push(g())}catch(J){}}d=[].concat(_.Be(Tta),_.Be(d));var n=Uta(a);e=n.message||"Unknown Error";g=n.name||"UnknownError";var r=n.stack||a.stacktrace||"Not available";if(r.startsWith(g+": "+e)){var t=r.split("\n");t.shift();r=t.join("\n")}t=n.lineNumber||"Not available";n=n.fileName||"Not available";
var u=0;if(a.hasOwnProperty("args")&&a.args&&a.args.length)for(var w=0;w<a.args.length&&!(u=Hoa(a.args[w],"params."+w,c,u),u>=500);w++);else if(a.hasOwnProperty("params")&&a.params){var A=a.params;if(typeof a.params==="object")for(w in A){if(A[w]){var C="params."+w,G=kj(A[w]);c[C]=G;u+=C.length+G.length;if(u>500)break}}else c.params=kj(A)}if(d.length)for(w=0;w<d.length&&!(u=Hoa(d[w],"params.context."+w,c,u),u>=500);w++);navigator.vendor&&!c.hasOwnProperty("vendor")&&(c["device.vendor"]=navigator.vendor);
w={message:e,name:g,lineNumber:t,fileName:n,stack:r,params:c,sampleWeight:1};c=Number(a.columnNumber);isNaN(c)||(w.lineNumber=w.lineNumber+":"+c);if(a.level==="IGNORED")a=0;else a:{a=Vta();c=_.h(a.messageWeights);for(d=c.next();!d.done;d=c.next())if(d=d.value,w.message&&w.message.match(d.messageRegExp)){a=d.weight;break a}a=_.h(a.callbackWeights);for(c=a.next();!c.done;c=a.next())if(c=c.value,c.callback(w)){a=c.weight;break a}a=1}w.sampleWeight=a;a=_.h(Wta);for(c=a.next();!c.done;c=a.next())if(c=
c.value,c.patternsForType[w.name])for(e=_.h(c.patternsForType[w.name]),d=e.next();!d.done;d=e.next())if(g=d.value,d=w.message.match(g.regexp)){w.params["params.error.original"]=d[0];e=g.groups;g={};for(t=0;t<e.length;t++)g[e[t]]=d[t+1],w.params["params.error."+e[t]]=d[t+1];w.message=c.messageFn(g);break}w.params||(w.params={});a=Vta();w.params["params.errorServiceSignature"]="msg="+a.messageWeights.length+"&cb="+a.callbackWeights.length;w.params["params.serviceWorker"]="false";_.ja.document&&_.ja.document.querySelectorAll&&
(w.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new Fl(Xta,"sample")).constructor!==Fl&&(w.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(w);if(w.sampleWeight!==0&&!Yta.has(w.message)){if(k&&_.x("web_enable_error_204"))Zta(b===void 0?"ERROR":b,w);else{b=b===void 0?"ERROR":b;b==="ERROR"?($ta.publish("handleError",w),_.x("record_app_crashed_web")&&aua===0&&w.sampleWeight===1&&(aua++,k={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.x("report_client_error_with_app_crash_ks")||(k.systemHealth={crashData:{clientError:{logMessage:{message:w.message}}}}),_.zl("appCrashed",k)),bua++):b==="WARNING"&&$ta.publish("handleWarning",w);if(_.x("kevlar_gel_error_routing")){k=b;m=m===void 0?{}:m;b:{a=_.h(cua);for(c=a.next();!c.done;c=a.next())if(Bj(c.value.toLowerCase())){a=!0;break b}a=!1}if(a)m=void 0;else{c={stackTrace:w.stack};w.fileName&&(c.filename=w.fileName);a=w.lineNumber&&w.lineNumber.split?w.lineNumber.split(":"):[];a.length!==
0&&(a.length!==1||isNaN(Number(a[0]))?a.length!==2||isNaN(Number(a[0]))||isNaN(Number(a[1]))||(c.lineNumber=Number(a[0]),c.columnNumber=Number(a[1])):c.lineNumber=Number(a[0]));a={level:"ERROR_LEVEL_UNKNOWN",message:w.message,errorClassName:w.name,sampleWeight:w.sampleWeight};k==="ERROR"?a.level="ERROR_LEVEL_ERROR":k==="WARNING"&&(a.level="ERROR_LEVEL_WARNNING");c={isObfuscated:!0,browserStackInfo:c};m.pageUrl=window.location.href;m.kvPairs=[];_.Ei("FEXP_EXPERIMENTS")&&(m.experimentIds=_.Ei("FEXP_EXPERIMENTS"));
d=_.Ei("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!Nna("web_disable_gel_stp_ecatcher_killswitch")&&d)for(e=_.h(Object.keys(d)),g=e.next();!g.done;g=e.next())g=g.value,m.kvPairs.push({key:g,value:String(d[g])});if(d=w.params)for(e=_.h(Object.keys(d)),g=e.next();!g.done;g=e.next())g=g.value,m.kvPairs.push({key:"client."+g,value:String(d[g])});d=_.Ei("SERVER_NAME");e=_.Ei("SERVER_VERSION");d&&e&&(m.kvPairs.push({key:"server.name",value:d}),m.kvPairs.push({key:"server.version",value:e}));m={errorMetadata:m,
stackTrace:c,logMessage:a}}m&&(_.zl("clientError",m),(k==="ERROR"||_.x("errors_flush_gel_always_killswitch"))&&_.Al())}_.x("suppress_error_204_logging")||Zta(b,w)}try{Yta.add(w.message)}catch(J){}Rta++}}};
Zta=function(a,b){var c=b.params||{};a={urlParams:{a:"logerror",t:"jserror",type:b.name,msg:b.message.substr(0,250),line:b.lineNumber,level:a,"client.name":c.name},postParams:{url:_.Ei("PAGE_NAME",window.location.href),file:b.fileName},method:"POST"};c.version&&(a["client.version"]=c.version);if(a.postParams){b.stack&&(a.postParams.stack=b.stack);b=_.h(Object.keys(c));for(var d=b.next();!d.done;d=b.next())d=d.value,a.postParams["client."+d]=c[d];if(c=_.Ei("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(b=
_.h(Object.keys(c)),d=b.next();!d.done;d=b.next())d=d.value,a.postParams[d]=c[d];(c=_.Ei("LAVA_VERSION"))&&(a.postParams["lava.version"]=c);c=_.Ei("SERVER_NAME");b=_.Ei("SERVER_VERSION");c&&b&&(a.postParams["server.name"]=c,a.postParams["server.version"]=b)}_.hj(_.Ei("ECATCHER_REPORT_HOST","")+"/error_204",a)};
_.dua=function(a,b){b=b===void 0?"ERROR":b;var c=c===void 0?{}:c;var d=_.Ji("ytbin.polymer.shared.lib.tampering.info");d&&(d=d())&&(c["params.tamperingInfo"]=d.sort().join(","));_.Bl(a,b,void 0,void 0,!0,c)};
_.El=function(a){var b=_.Id.apply(1,arguments);a.args||(a.args=[]);Array.isArray(a.args)&&a.args.push.apply(a.args,_.Be(b))};
eua=function(a){a.level="IGNORED"};
fua=function(a,b){Tta.push(a);b();Tta.pop()};
Jl=function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a=_.Il(a,c,b[c]));return a};
_.gua=function(a,b,c){c=c===void 0?!1:c;if(!a)return null;if(a.adInfoDialogEndpoint||a.backstageImageUploadEndpoint||a.confirmDialogEndpoint||a.clientActionEndpoint||a.createBackstagePostDialogEndpoint||a.createCommentReplyDialogEndpoint||a.flowEndpoint||a.guideBuilderEndpoint||a.liveChatDialogEndpoint||a.modalEndpoint||a.openPopupAction||a.shareEndpoint||a.shareEntityEndpoint||a.showLiveChatItemEndpoint||a.subscriptionManagerEndpoint||a.unlimitedCreateFamilyEndpoint||a.unlimitedFamilyFlowEndpoint||
a.updateCommentDialogEndpoint||a.updateCommentReplyDialogEndpoint||a.userFeedbackEndpoint||a.videoEditorEndpoint||a.ypcCancelSurveyEndpoint)return b=_.$i("polymer_report_client_url_requested_rate"),!c&&Math.random()<b&&_.Dl(new _.qj("urlForEndpoint used on client endpoint",a)),null;var d=_.$i("polymer_report_missing_web_navigation_endpoint_rate");if(a.liveChatEndpoint||a.liveChatReplayEndpoint)d=0;if(!a.commandMetadata&&!a.clickTrackingParams&&Math.random()<d){var e={},g;for(g in a)e[g]="1";_.Dl(new _.qj("Missing navigation data",
e))}e="";if(a.commandMetadata&&a.commandMetadata.webCommandMetadata&&a.commandMetadata.webCommandMetadata.url)e=a.commandMetadata.webCommandMetadata.url;else if(a.searchEndpoint)Math.random()<d&&_.Dl(new _.qj("Should not manually handle search",a)),e="/results?search_query="+encodeURIComponent(a.searchEndpoint.query).replace(/%20/g,"+"),a.searchEndpoint.params&&(e+="&sp="+a.searchEndpoint.params);else if(a.watchEndpoint)Math.random()<d&&_.Dl(new _.qj("Should not manually handle watch",a)),e="/watch?v="+
a.watchEndpoint.videoId,a.watchEndpoint.playlistId&&(e+="&list="+a.watchEndpoint.playlistId),a.watchEndpoint.index&&(e+="&index="+a.watchEndpoint.index),a.watchEndpoint.startTimeSeconds&&(e+="&t="+a.watchEndpoint.startTimeSeconds);else if(a.browseEndpoint)d=a.browseEndpoint.browseId,(g=a.browseEndpoint.canonicalBaseUrl)?e=g:d&&(e=d.substr(0,2),e=e==="FE"?d==="FEwhat_to_watch"?"/":d==="FEmy_videos"?"/my_videos":"/feed/"+d.substr(2):e==="VL"?"/playlist?list="+d.substr(2):"/channel/"+d),e&&a.browseEndpoint.query&&
(e=Jl(e+"/search",{query:a.browseEndpoint.query})),e&&a.browseEndpoint.params&&(e=Jl(e,{params:a.browseEndpoint.params}));else{if(a.urlEndpoint)return a.urlEndpoint.url;a.signInEndpoint?(e="https://accounts.google.com/ServiceLogin",d={},_.yf.extend(d,b||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),b=d):a.uploadEndpoint?e="//www.youtube.com/upload":a.liveChatEndpoint?(e=a.liveChatEndpoint,d=_.yf.clone(e),_.$a(e.continuation)&&(g=Object.keys(e.continuation)[0],
d.continuation=e.continuation[g].continuation),e=Jl("/youtubei/v1/live_chat/get_live_chat",d)):a.liveChatReplayEndpoint?(e=_.yf.clone(a.liveChatReplayEndpoint),e.currentPlayerState&&(_.yf.extend(e,e.currentPlayerState),delete e.currentPlayerState),e=Jl("/youtubei/v1/live_chat/get_live_chat_replay",e)):a.liveChatItemContextMenuEndpoint?e=Jl("/youtubei/v1/live_chat/get_item_context_menu",a.liveChatItemContextMenuEndpoint):a.liveChatPurchaseMessageEndpoint?e=Jl("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
a.liveChatPurchaseMessageEndpoint):a.openSuperStickerBuyFlowCommand?e=Jl("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",a.openSuperStickerBuyFlowCommand):a.videoEditEndpoint?e=Jl("/edit",{video_id:a.videoEditEndpoint.videoId}):a.liveDashboardEndpoint?e=a.liveDashboardEndpoint.videoId?Jl("/live_dashboard",{v:a.liveDashboardEndpoint.videoId}):"/live_dashboard":a.signalNavigationEndpoint&&a.signalNavigationEndpoint.signal&&a.signalNavigationEndpoint.signal==="WEBCAM"?e="/webcam":a.getPdgBuyFlowCommand&&
(e=Jl(a.getPdgBuyFlowCommand.buyflowApiPath,{params:a.getPdgBuyFlowCommand.params}))}return e||c?Jl(e,b||{}):(_.Dl(new _.qj("Error: Can't construct url for endpoint","keys:"+Object.keys(a).sort().join(","),a)),null)};
hua=function(a){if(a){if(a.browseEndpoint)return!!a.browseEndpoint.nofollow;if(a.watchEndpoint)return!!a.watchEndpoint.nofollow;if(a.urlEndpoint)return!!a.urlEndpoint.nofollow}return!1};
_.jua=function(a,b){var c=b+a,d=iua.get(c);if(d)return d;a=b+"-"+a.replace(/([A-Z])/g,"-$1").toLowerCase();iua.set(c,a);return a};
kua=function(a){var b=_.zi(a,"action")||_.zi(a,"command")||_.zi(a,"endpoint");if(!b)return null;b=_.jua(b,"yt");_.y(a,_.Kl)&&(b+="-"+_.y(a,_.Kl).signal.toLowerCase().replace(/_/g,"-"));return b};
oua=function(a){try{var b=Object.keys(a)}catch(e){return[]}for(var c=0;c<b.length;c++){var d=b[c];if(lua.test(d)||mua.test(d))return nua(a[d])}return[]};
nua=function(a){return a.command?[a.command]:a.onExecutionAction?[a.onExecutionAction]:a.onResponseReceivedCommand?[a.onResponseReceivedCommand]:a.updateFlowCommand?[a.updateFlowCommand]:a.clientActions?a.clientActions:a.action?[a.action]:a.actions||a.commands||a.onResponseReceivedActions||a.onResponseReceivedCommands||a.onResponseReceivedEndpoints||[]};
qua=function(a,b){b=b===void 0?!1:b;var c=_.v().resolve(_.Wi(Ll));c||(c=new pua,_.v().addProvider({provide:Ll,useValue:c}));return c&&a&&!_.yf.isEmpty(a)?c.getUrl(a,b):""};
rua=function(a,b,c){c=c===void 0?"":c;if(b){a.data=b;var d=qua(b);d?(Ld(a,d),hua(b)||!Ui(d)?a.rel="nofollow":a.removeAttribute("rel"),_.y(b,_.Ml)&&_.y(b,_.Ml).target==="TARGET_NEW_WINDOW"?a.target="_blank":c?a.target=c:a.removeAttribute("target")):(a.removeAttribute("href"),a.removeAttribute("rel"),a.removeAttribute("target"))}};
_.Ql=function(a,b){var c=_.Rg;if(qh())sua(a,function(){var g=_.Id.apply(0,arguments);Ah(c,function(){b.apply(null,_.Be(g))})});
else{var d=_.Nl.getInstance(),e=yi(b);ri(function(){e.value=b});
_.vi(function(){var g={},k=_.Ol(d,(g[a]=function(){var m=_.Id.apply(0,arguments);Ah(c,function(){e.value.apply(e,_.Be(m))})},g));
return function(){var m={};_.Pl(d,(m[a]="",m),k)}})}};
_.Rl=function(a){return qh()?tua(a):uua(a)};
_.Sl=function(a){return qh()?tua(a):uua(a)};
uua=function(a){return xi(function(){return tua(a)})};
tua=function(a){var b=Ana(function(c){b.value&&b.value===c||(b.__count=b.__count?b.__count+1:1);b.value=c;var d=function(){var e=$g(null);try{return a==null?void 0:a(c)}finally{$g(e)}}();
return function(){d==null||d();b.value=null}});
return b};
vua=function(a){var b=_.Rg,c=mh.slice();return{getFn:function(){return function(d){b.isDisposed||rh(function(){return eh(function(){return a(d)})},{stack:c})!==!0&&d.stopPropagation()}}}};
_.Tl=function(a,b,c){if(qh())wua(a,b,function(e){var g=$g(null);try{c(e)}finally{$g(g)}});
else{var d=yi(c);ri(function(){d.value=c});
_.vi(function(){var e=a.value;if(e){var g=function(k){d.value(k)};
e.addEventListener(b,g,void 0);return function(){e?e.removeEventListener(b,g,void 0):xua(a)}}xua(a)})}};
xua=function(a){var b;(b=Xg.handleError)==null||b.call.apply(b,[Xg].concat(_.Be(uh(Bna.LOG_NULL_EL_REF_VALUE(),a.__expectedTagName,2))))};
Ul=function(a){if(typeof a.children==="function")return a.children(),null;a=_.h(a.children);for(var b=a.next();!b.done;b=a.next())b=b.value,b();return null};
yua=function(a){var b;return((b=a.prototype)==null?void 0:b.render)===void 0};
zua=function(a){a=a.items.map(a.children);return a.length>0&&typeof a[0]==="string"?a.join(""):a};
Bua=function(a,b,c){c=c===void 0?!1:c;rh(function(){return Aua(a,b,c)})};
Aua=function(a,b,c){c=((c===void 0?0:c)?Cua:Vl)(a,function(){Wl(b)});
return c===null?a:c};
Wl=function(a){if(a!==void 0&&a!==null)if(a instanceof ei)for(var b=Eh;Fh()!=null&&lna in Fh()&&b.contains(Fh());)Jh();else if(Array.isArray(a))for(b=_.h(a),a=b.next();!a.done;a=b.next())Wl(a.value);else if(a instanceof ud||"function"==typeof _.ae&&a instanceof _.ae)Sh(a.toString());else if(Xh(a)){if(Fh()!==a){var c,d;b=(d=(c=ph())==null?void 0:c.name)!=null?d:"unknown";throw Error("cc`"+a.tagName+"`"+b);}Jh()}else if(a!=null&&a.contentKind===$h||a instanceof Md)for(b=Dma(a),b=Array.from(b.childNodes),
b=_.h(b),a=b.next();!a.done;a=b.next())Eh.appendChild(a.value),Jh();else if(Bd(a)&&(a=a.toString()),c=typeof a,c==="boolean"||c==="number"||c==="string")Sh(a);else if(typeof a==="function"){b=Eh;var e=Fh();e&&(e._isSignalTextNode||e._isSafeOrSanitizedHtmlNode)||bna(b,e,a);Jh()}else if(a.type===zua)Wl(a.type(Object.assign({},a.props,{children:a.children[0]})));else{hi.beforeVisit(a);if(typeof a.type==="string"){a:{a.__open||fma(a.type,a.props.idomKey);e=Eh;for(b in a.props)if(a.props[b]!==Dua){var g=
a.props[b];c=Oh;c.push(b);c.push(g)}b=Xg.attributes;b=b===void 0?Xl:b;g=Eh;c=Dh(g);mma(g,c,b);ana(e,a.props,!0);if((a.props.skip||a.props.skipchildren)&&Eh.hasChildNodes())Mh();else{if(a.type==="style"&&Kma(a.children)===null){Mh();b=void 0;break a}Wl(a.children)}gma();a.__open&&(a.__open=!1);tma(e,a.props);b=e}return b}if(a.type===_.Vh)Wl(a.children);else if(!Eua(a)){b=a;try{Fua(b)}catch(k){a=k,(g=Xg.handleError)==null||g.call.apply(g,[Xg].concat(_.Be(uh(a,(e=b.type)==null?void 0:e.TAG_NAME))))}b.__open&&
(gma(),b.__open=!1)}}};
Gua=function(a,b){var c;yua(a)?c=new li(b,a):c=new a(b);c.JSC$8109___type=a;c.__updateContext={nextState:c.state,isForced:!1};return c};
Fua=function(a){var b=a.type,c=b.TAG_NAME;if(b===Ul)a.props.children=a.children,b(a.props);else{a.children.length>0&&(a.props.children=a.children);var d;(d=a.props).idomKey||(d.idomKey=b);if(c){var e=fma(c,a.props.idomKey);a.__open=!0;var g=e.__instance}g||(g=Gua(b,a.props),g.props=null,e&&(e.__instance=g,g.el=e));var k;c=((k=g.__updateContext)!=null?k:{nextState:g.state,isForced:!1}).nextState;g.__updateContext=void 0;b.getDerivedStateFromProps&&(c=b.getDerivedStateFromProps(a.props,c));g.props=
a.props;g.state=c;k=function(){var m=g;hi.beforeRender(m);var n=m.render(m.props);hi.afterRender(m,n);n?(m.props.idomKey&&(n.props.idomKey=m.props.idomKey),m=n):m=void 0;if(n=m)if(n.__open=a.__open,m=Wl(n),a.__open=n.__open,!b.TAG_NAME)if(m)b.TAG_NAME=m.tagName.toLowerCase(),m.__instance=g,g.el=m;else{var r;if((r=g.hooks)==null?0:r.length){var t;(t=Xg.handleError)==null||t.call.apply(t,[Xg].concat(_.Be(uh(Error("fd")))))}}g.didPatch();hi.didPatch(g)};
(c=g.functionComponent)?xla({component:c,debugInstance:g.props.debugInstance,fn:k}):k()}};
Eua=function(a){var b=a.type;if(!yua(b)||b===Ul||b.componentType===oh)return!1;a.props.children=a.children.length>1?a.children:a.children[0];var c,d=(c=a.props.idomKey)!=null?c:a.type,e;if(Fh()&&((e=Fh()[bi])==null?void 0:e.key)===d){var g=Fh(),k=g[bi];if(!k)throw Error("bc`"+g.tagName);var m;(m=k.updateSignalsFromIdomProps)==null||m.call(k,a.props);Hua(k);return!0}if(Iua.has(b.name))throw m=b.name,b=(k=(g=ph())==null?void 0:g.name)!=null?k:"unknown",Error("ac`"+m+"`"+b);fna(a.type,a.props,a.children);
a.props.renderedFromIdom=!0;(m=xla({component:a.type,debugInstance:a.props.debugInstance,fn:function(){return Wma(a.type,a.props)}}))&&Jua(m);
return!0};
Kua=function(a){for(var b=0;b<ci(a).length;b++)Jh()};
Hua=function(a){var b=Lua();if(b)Kua(b);else for(var c=0;c<a.numNodes;c++)(b=Lua())?Kua(b):Jh()};
Lua=function(){var a;return(a=Fh()[bi])==null?void 0:a.sourceDynamicRange};
Jua=function(a){a=vma(a);a=Array.isArray(a)?a:[a];a=_.h(a);for(var b=a.next();!b.done;b=a.next())Eh.insertBefore(b.value,Fh()),Jh()};
Mua=function(a){var b=Yma(),c=xi(function(){return{value:typeof a==="function"?a():a}});
return[c.value,function(d){if(ii!==null){var e;(e=Xg.handleError)==null||e.call.apply(e,[Xg].concat(_.Be(uh(Error("gd")))))}c.value=typeof d==="function"?d(c.value):d;b.__updateContext={nextState:b.state,isForced:!0};d=Sg(b.effectContext);e=Wh(!1);try{if(d=Vg(d),b.el){var g,k={},m=(k.props=b.props,k.type=b.JSC$8109___type,k.children=(g=b.props.children)!=null?g:[],k[Uh]=!0,k);try{Bua(b.el,m,!0)}catch(t){var n,r;(r=Xg.handleError)==null||r.call.apply(r,[Xg].concat(_.Be(uh(t,(n=b.JSC$8109___type)==
null?void 0:n.TAG_NAME))))}}}finally{Wh(e),Sg(d)}}]};
Yl=function(a,b){var c=_.Rg,d=function(e){Ah(c,function(){b(e)})};
window.addEventListener(a,d,void 0);_.wh(function(){window.removeEventListener(a,d,void 0)})};
_.$l=function(a,b){var c=_.Rg;_.vi(function(){var d,e=(d=b.observer)!=null?d:_.v().resolve(Zl);if(d=a.value){var g=Nua(d),k=[];b.showOption&&k.push(e.observe(d,function(){Ah(c,function(){b.visibilityCallback(!0)})},b.showOption));
b.hideOption&&k.push(e.observe(d,function(){Ah(c,function(){b.visibilityCallback(!1)})},b.hideOption));
b.prescanOption&&b.prescanCallback&&k.push(e.observe(d,function(){Ah(c,function(){b.prescanCallback()})},b.prescanOption));
var m;g.visibilityMonitorKeys=((m=g.visibilityMonitorKeys)!=null?m:[]).concat(k)}})};
Nua=function(a){var b;return(b=a.polymerController)!=null?b:a};
_.am=function(a){a.componentType=oh};
Rua=function(a,b){var c=Oua;return _.q(_.Vh,null,_.Qg(Xg.enableSinkLazyTsx,function(){return _.q(Pua,{id:c,value:a,children:b})},function(){var d=Qua(c,a);
Wg(d);d=Sg(d);try{return d=Vg(d),b()}finally{Sg(d)}}))};
Pua=function(a){var b=a.children;a=Qua(a.id,a.value);Wg(a);a=Sg(a);try{return a=Vg(a),_.q(_.Vh,null,fi(b()))}finally{Sg(a)}};
Qua=function(a,b){return Object.assign(Object.create(Sua),{id:a,contextValue:b})};
Tua=function(a){var b,c=_.Rg;_.vh(function(){var d=Sg(c),e=Wh(!b);try{if(d=Vg(d),b)Bua(b,a.children(),!0);else if(b=fi(a.children()),!(b instanceof Element))throw Error("hd");}finally{Wh(e),Sg(d)}});
return b};
Uua=function(a){var b,c=xh(function(){var d=Wh(!0);try{b=ci(a())}finally{Wh(d)}},!1);
return[b,c]};
Wua=function(a){a=a.buf.charCodeAt(a.pos++);Vua[a]||a===65||a.toString(16);return Vua[a]};
bm=function(a){var b=0,c=0;do{var d=Wua(a);b|=(d&31)<<c;c+=5}while(d&32);return b<0?b+4294967296:b};
Zua=function(a,b,c){Xua(a,b);a[b][Yua].unshift(c)};
Xua=function(a,b){if(!a[b]||!a[b][Yua]){var c=a[b],d=c?[c]:[];a[b]=function(){for(var e=_.h(d),g=e.next();!g.done;g=e.next())g.value.apply(this,arguments)};
a[b][Yua]=d}};
$ua=function(a){if(!a)return[];var b=[];a=_.h(a);for(var c=a.next();!c.done;c=a.next())c=c.value,Array.isArray(c)?b.push.apply(b,_.Be($ua(c))):b.push(c);return b};
_.dm=function(a,b){if(a&&ava.test(a)||a==="//")return a;if(bva===void 0){bva=!1;try{var c=new URL("b","http://a");c.pathname="c%20d";bva=c.href==="http://a/c%20d"}catch(d){}}b||(b=document.baseURI||window.location.href);if(bva)try{return(new URL(a,b)).href}catch(d){return a}cm||(cm=document.implementation.createHTMLDocument("temp"),cm.base=cm.createElement("base"),cm.head.appendChild(cm.base),cm.anchor=cm.createElement("a"),cm.body.appendChild(cm.anchor));cm.base.href=b;cm.anchor.href=a;return cm.anchor.href||
a};
dva=function(a,b){return a.replace(cva,function(c,d,e,g){return d+"'"+_.dm(e.replace(/["']/g,""),b)+"'"+g})};
eva=function(a){return a.substring(0,a.lastIndexOf("/")+1)};
hva=function(){fva=!1;for(var a=em.length,b=0;b<a;b++){var c=em[b];if(c)try{c()}catch(d){setTimeout(function(){throw d;})}}em.splice(0,a);
gva+=a};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(a){console.log("["+a.is+"]: registered")};
jva=function(a){iva.push(a)};
fm=function(a){return kva[a]||(kva[a]=a.indexOf("-")<0?a:a.replace(lva,function(b){return b[1].toUpperCase()}))};
gm=function(a){return kva[a]||(kva[a]=a.replace(mva,"-$1").toLowerCase())};
nva=function(a,b){var c=b.parentInfo&&nva(a,b.parentInfo);if(c)for(a=c.firstChild,c=0;a;a=a.nextSibling){if(b.parentIndex===c++)return a}else return a};
ova=function(a,b){a=a._methodHost||a;return function(c){if(a[b])a[b](c,c.detail);else console.warn("listener method `"+b+"` not defined")}};
hm=function(a){return a.indexOf(".")>=0};
im=function(a){var b=a.indexOf(".");return b===-1?a:a.slice(0,b)};
pva=function(a,b){return a.indexOf(b+".")===0};
jm=function(a,b){return b.indexOf(a+".")===0};
km=function(a,b,c){return b+c.slice(a.length)};
qva=function(a,b){return a===b||pva(a,b)||jm(a,b)};
lm=function(a){if(Array.isArray(a)){for(var b=[],c=0;c<a.length;c++)for(var d=a[c].toString().split("."),e=0;e<d.length;e++)b.push(d[e]);return b.join(".")}return a};
rva=function(a){return Array.isArray(a)?lm(a).split("."):a.toString().split(".")};
mm=function(a,b,c){b=rva(b);for(var d=0;d<b.length;d++){if(!a)return;a=a[b[d]]}c&&(c.path=b.join("."));return a};
sva=function(a,b,c){var d=rva(b),e=d[d.length-1];if(d.length>1){for(b=0;b<d.length-1;b++)if(a=a[d[b]],!a)return;a[e]=c}else a[b]=c;return d.join(".")};
tva=function(a,b,c){var d=a[b];if(!d)d=a[b]={};else if(!a.hasOwnProperty(b)&&(d=a[b]=Object.create(a[b]),c))for(var e in d)for(a=d[e],b=d[e]=Array(a.length),c=0;c<a.length;c++)b[c]=a[c];return d};
om=function(a,b,c,d,e,g){if(b){var k=!1,m=nm++,n;for(n in c){var r=e?im(n):n;if(r=b[r])for(var t=0,u=r.length,w=void 0;t<u&&(w=r[t]);t++)w.info&&w.info.lastRun===m||e&&!uva(n,w.trigger)||(w.info&&(w.info.lastRun=m),w.fn(a,n,c,d,w.info,e,g),k=!0)}return k}return!1};
uva=function(a,b){if(b){var c=b.name;return c==a||!(!b.structured||!pva(c,a))||!(!b.wildcard||!jm(c,a))}return!0};
vva=function(a,b,c,d,e){b=typeof e.method==="string"?a[e.method]:e.method;c=e.property;b?b.call(a,a.__data[c],d[c]):e.dynamicFn||console.warn("observer method `"+e.method+"` not defined")};
wva=function(a,b,c,d){c={value:c,queueProperty:!0};d&&(c.path=d);(0,_.qm)(a).dispatchEvent(new CustomEvent(b,{detail:c}))};
xva=function(a,b,c,d,e,g){g=(d=(g?im(b):b)!=b?b:null)?mm(a,d):a.__data[b];d&&g===void 0&&(g=c[b]);wva(a,e.eventName,g,d)};
yva=function(a,b,c,d,e){c=a.__data[b];rm&&(c=rm(c,e.attrName,"attribute",a));a._propertyToAttribute(b,e.attrName,c)};
Ava=function(a){var b=a.constructor.__orderedComputedDeps;if(!b){b=new Map;for(var c=a.__computeEffects,d=zva(a),e=d.counts,g=d.ready,k=d.total;d=g.shift();)b.set(d,b.size),(d=c[d])&&d.forEach(function(m){m=m.info.methodInfo;--k;--e[m]===0&&g.push(m)});
k!==0&&console.warn("Computed graph for "+a.localName+" incomplete; circular?");a.constructor.__orderedComputedDeps=b}return b};
zva=function(a){var b=a.__computeInfo,c={};a=a.__computeEffects;var d=[],e=0,g;for(g in b){var k=b[g];e+=c[g]=k.args.filter(function(n){return!n.literal}).length+(k.dynamicFn?1:0)}for(var m in a)b[m]||d.push(m);
return{counts:c,ready:d,total:e}};
Cva=function(a,b,c,d,e){b=Bva(a,b,c,d,e);if(b===sm)return!1;e=e.methodInfo;if(a.__dataHasAccessor&&a.__dataHasAccessor[e])return a._setPendingProperty(e,b,!0);a[e]=b;return!1};
Fva=function(a,b,c,d,e,g,k){c.bindings=c.bindings||[];d={kind:d,target:e,parts:g,literal:k,isCompound:g.length!==1};c.bindings.push(d);d.target&&d.kind!="attribute"&&d.kind!="text"&&!d.isCompound&&d.parts[0].mode==="{"&&(c=d.parts[0],g=c.negate,d.listenerEvent=c.event||gm(e)+"-changed",d.listenerNegate=g);e=b.nodeInfoList.length;for(c=0;c<d.parts.length;c++){var m=d.parts[c];m.compoundIndex=c;g=a;k=b;var n=d,r=m,t=e;if(!r.literal)if(n.kind==="attribute"&&n.target[0]==="-")console.warn("Cannot set attribute "+
n.target+' because "-" is not a valid attribute starting character');else for(m=r.dependencies,n={index:t,binding:n,part:r,evaluator:g},r=0;r<m.length;r++)t=m[r],typeof t=="string"&&(t=Dva(t),t.wildcard=!0),g._addTemplatePropertyEffect(k,t.rootProperty,{fn:Eva,info:n,trigger:t})}};
Eva=function(a,b,c,d,e,g,k){k=k[e.index];var m=e.binding,n=e.part;g&&n.source&&b.length>n.source.length&&m.kind=="property"&&!m.isCompound&&k.__isPropertyEffectsClient&&k.__dataHasAccessor&&k.__dataHasAccessor[m.target]?(c=c[b],b=km(n.source,m.target,b),k._setPendingPropertyOrPath(b,c,!1,!0)&&a._enqueueClient(k)):(b=e.evaluator._evaluateBinding(a,n,b,c,d,g),b!==sm&&(m.isCompound&&(c=k.__dataCompoundStorage[m.target],c[n.compoundIndex]=b,b=c.join("")),m.kind==="attribute"||m.target!=="textContent"&&
(m.target!=="value"||k.localName!=="input"&&k.localName!=="textarea")||(b=b==void 0?"":b),n=b,rm&&(n=rm(n,m.target,m.kind,k)),m.kind=="attribute"?a._valueToNodeAttribute(k,n,m.target):(m=m.target,k.__isPropertyEffectsClient&&k.__dataHasAccessor&&k.__dataHasAccessor[m]?k.__readOnly&&k.__readOnly[m]||k._setPendingProperty(m,n)&&a._enqueueClient(k):a._setUnmanagedPropertyToNode(k,m,n))))};
Gva=function(a,b,c){if(c.listenerEvent){var d=c.parts[0];a.addEventListener(c.listenerEvent,function(e){var g=c.target,k=d.source,m=d.negate,n=e.detail,r=n&&n.path;r?(k=km(g,k,r),e=n&&n.value):e=e.currentTarget[g];b.__readOnly&&b.__readOnly[k]||!b._setPendingPropertyOrPath(k,m?!e:e,!0,!!r)||n&&n.queueProperty||b._invalidateProperties()})}};
Hva=function(a,b,c,d,e,g){g=b.static||g&&(typeof g!=="object"||g[b.methodName]);e={methodName:b.methodName,args:b.args,methodInfo:e,dynamicFn:g};for(var k=0,m=void 0;k<b.args.length&&(m=b.args[k]);k++)m.literal||a._addPropertyEffect(m.rootProperty,c,{fn:d,info:e,trigger:m});g&&a._addPropertyEffect(b.methodName,c,{fn:d,info:e});return e};
Bva=function(a,b,c,d,e){d=a._methodHost||a;var g=d[e.methodName];if(g)return a=a._marshalArgs(e.args,b,c),a===sm?sm:g.apply(d,a);e.dynamicFn||console.warn("method `"+e.methodName+"` not defined")};
Iva=function(a){for(var b="",c=0;c<a.length;c++)b+=a[c].literal||"";return b};
Lva=function(a){if(a=a.match(/([^\s]+?)\(([\s\S]*)\)/)){var b={methodName:a[1],static:!0,args:Jva};return a[2].trim()?Kva(a[2].replace(/\\,/g,"&comma;").split(","),b):b}return null};
Kva=function(a,b){b.args=a.map(function(c){c=Dva(c);c.literal||(b.static=!1);return c},this);
return b};
Dva=function(a){a=a.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var b={name:a,value:"",literal:!1},c=a[0];c==="-"&&(c=a[1]);c>="0"&&c<="9"&&(c="#");switch(c){case "'":case '"':b.value=a.slice(1,-1);b.literal=!0;break;case "#":b.value=Number(a),b.literal=!0}b.literal||(b.rootProperty=im(a),b.structured=hm(a),b.structured&&(b.wildcard=a.slice(-2)==".*",b.wildcard&&(b.name=a.slice(0,-2))));return b};
Mva=function(a,b,c){a=mm(a,c);a===void 0&&(a=b[c]);return a};
Nva=function(a,b,c,d){d={indexSplices:d};tm&&!a._overrideLegacyUndefined&&(b.splices=d);a.notifyPath(c+".splices",d);a.notifyPath(c+".length",b.length);tm&&!a._overrideLegacyUndefined&&(d.indexSplices=[])};
um=function(a,b,c,d,e,g){Nva(a,b,c,[{index:d,addedCount:e,removed:g,object:b,type:"splice"}])};
Ova=function(a){a=dva((a.body?a.body:a).textContent,a.baseURI);var b=document.createElement("style");b.textContent=a;return b};
Qva=function(a){a=a.trim().split(/\s+/);for(var b=[],c=0;c<a.length;c++)b.push.apply(b,_.Be(Pva(a[c])));return b};
Pva=function(a){var b=vm.import(a);if(!b)return console.warn("Could not find style data in module named",a),[];if(b._styles===void 0){a=[];a.push.apply(a,_.Be(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(b)));var c=b.querySelector("template");c&&a.push.apply(a,_.Be(Rva(c,b.assetpath)));b._styles=a}return b._styles};
Rva=function(a,b){if(!a._styles){for(var c=[],d=a.content.querySelectorAll("style"),e=0;e<d.length;e++){var g=d[e],k=g.getAttribute("include");k&&c.push.apply(c,_.Be(Qva(k).filter(function(m,n,r){return r.indexOf(m)===n})));
b&&(g.textContent=dva(g.textContent,b));c.push(g)}a._styles=c}return a._styles};
Sva=function(a){return(a=vm.import(a))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(a):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(a){var b=[];a=a.querySelectorAll("link[rel=import][type~=css]");for(var c=0;c<a.length;c++){var d=a[c];if(d.import){var e=d.import;if((d=d.hasAttribute("shady-unscoped"))&&!e._unscopedStyle){var g=Ova(e);g.setAttribute("shady-unscoped","");e._unscopedStyle=g}else e._style||(e._style=Ova(e));b.push(d?e._unscopedStyle:e._style)}}return b};
Uva=function(a){a=a.trim().split(/\s+/);for(var b="",c=0;c<a.length;c++)b+=Tva(a[c]);return b};
Tva=function(a){var b=vm.import(a);if(b&&b._cssText===void 0){var c=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(b),d=b.querySelector("template");d&&(c+=Vva(d,b.assetpath));b._cssText=c||null}b||console.warn("Could not find style data in module named",a);return b&&b._cssText||""};
Vva=function(a,b){var c="";a=Rva(a,b);for(b=0;b<a.length;b++){var d=a[b];d.parentNode&&d.parentNode.removeChild(d);c+=d.textContent}return c};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(a){var b="";a=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(a);for(var c=0;c<a.length;c++)b+=a[c].textContent;return b};
wm=function(a,b){return{index:a,removed:[],addedCount:b}};
Xva=function(a,b,c,d){var e=0,g=0,k=0,m=0,n=Math.min(b-e,d-g);if(e==0&&g==0)a:{for(k=0;k<n;k++)if(a[k]!==c[k])break a;k=n}if(b==a.length&&d==c.length){m=a.length;for(var r=c.length,t=0;t<n-k&&Wva(a[--m],c[--r]);)t++;m=t}e+=k;g+=k;b-=m;d-=m;if(b-e==0&&d-g==0)return[];if(e==b){for(b=wm(e,0);g<d;)b.removed.push(c[g++]);return[b]}if(g==d)return[wm(e,b-e)];n=e;k=g;d=d-k+1;m=b-n+1;b=Array(d);for(r=0;r<d;r++)b[r]=Array(m),b[r][0]=r;for(r=0;r<m;r++)b[0][r]=r;for(r=1;r<d;r++)for(t=1;t<m;t++)if(a[n+t-1]===
c[k+r-1])b[r][t]=b[r-1][t-1];else{var u=b[r-1][t]+1,w=b[r][t-1]+1;b[r][t]=u<w?u:w}n=b.length-1;k=b[0].length-1;d=b[n][k];for(a=[];n>0||k>0;)n==0?(a.push(2),k--):k==0?(a.push(3),n--):(m=b[n-1][k-1],r=b[n-1][k],t=b[n][k-1],u=r<t?r<m?r:m:t<m?t:m,u==m?(m==d?a.push(0):(a.push(1),d=m),n--,k--):u==r?(a.push(3),n--,d=r):(a.push(2),k--,d=t));a.reverse();b=void 0;n=[];for(k=0;k<a.length;k++)switch(a[k]){case 0:b&&(n.push(b),b=void 0);e++;g++;break;case 1:b||(b=wm(e,0));b.addedCount++;e++;b.removed.push(c[g]);
g++;break;case 2:b||(b=wm(e,0));b.addedCount++;e++;break;case 3:b||(b=wm(e,0)),b.removed.push(c[g]),g++}b&&n.push(b);return n};
Yva=function(a,b){return Xva(a,a.length,b,b.length)};
Wva=function(a,b){return a===b};
$va=function(a){if(a instanceof Zva)return a.value;throw Error("Ad`"+a);};
awa=function(a,b){for(var c in b)c===null?a.style.removeProperty(c):a.style.setProperty(c,b[c])};
bwa=function(a,b){return(a=window.getComputedStyle(a).getPropertyValue(b))?a.trim():""};
fwa=function(a){requestAnimationFrame(function(){cwa?cwa(a):(dwa||(dwa=new Promise(function(b){ewa=b}),document.readyState==="complete"?ewa():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&ewa()})),dwa.then(function(){a&&a()}))})};
iwa=function(a){gwa=a&&a.shimcssproperties?!1:hwa||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
nwa=function(a){if(!(jwa.indexOf(a)>-1)&&a!=="touchend"&&kwa&&lwa&&mwa)return{passive:!0}};
rwa=function(a){for(var b=owa?["click"]:jwa,c=0,d;c<b.length;c++)d=b[c],a?(pwa.length=0,document.addEventListener(d,qwa,!0)):document.removeEventListener(d,qwa,!0)};
xm=function(a){var b=a.type;return jwa.indexOf(b)>-1?b==="mousemove"?(b=a.buttons===void 0?1:a.buttons,a instanceof window.MouseEvent&&!swa&&(b=twa[a.which]||0),!!(b&1)):(a.button===void 0?0:a.button)===0:!1};
uwa=function(a){if(a.type==="click"){if(a.detail===0)return!0;var b=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a);if(!b.nodeType||b.nodeType!==Node.ELEMENT_NODE)return!0;b=b.getBoundingClientRect();var c=a.pageX;a=a.pageY;return!(c>=b.left&&c<=b.right&&a>=b.top&&a<=b.bottom)}return!1};
vwa=function(a,b,c){a.movefn=b;a.upfn=c;document.addEventListener("mousemove",b);document.addEventListener("mouseup",c)};
ym=function(a){document.removeEventListener("mousemove",a.movefn);document.removeEventListener("mouseup",a.upfn);a.movefn=null;a.upfn=null};
wwa=function(a,b){for(var c=document.elementFromPoint(a,b),d=c;d&&d.shadowRoot&&!window.ShadyDOM;){var e=d;d=d.shadowRoot.elementFromPoint(a,b);if(e===d)break;d&&(c=d)}return c};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(a){var b=xwa(a);return b.length>0?b[0]:a.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(a){var b=a.type,c=a.currentTarget.__polymerGestures;if(c&&(c=c[b])){if(!a.__polymerGesturesHandled&&(a.__polymerGesturesHandled={},b.slice(0,5)==="touch")){var d=a.changedTouches[0];b==="touchstart"&&a.touches.length===1&&(ywa=d.identifier);if(ywa!==d.identifier)return;kwa||(b==="touchstart"||b==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a)}d=
a.__polymerGesturesHandled;if(!d.skip){for(var e=0,g;e<zm.length;e++)g=zm[e],c[g.name]&&!d[g.name]&&g.flow&&g.flow.start.indexOf(a.type)>-1&&g.reset&&g.reset();for(e=0;e<zm.length;e++)g=zm[e],c[g.name]&&!d[g.name]&&(d[g.name]=!0,g[b](a))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(a){var b=a.changedTouches[0],c=a.type;if(c==="touchstart")zwa=b.clientX,Awa=b.clientY,Bwa=!1;else if(c==="touchmove"&&!Bwa){Bwa=!0;c="auto";for(var d=xwa(a),e=0,g;e<d.length;e++)if(g=d[e],g.__polymerGesturesTouchAction){c=g.__polymerGesturesTouchAction;break}d=!1;e=Math.abs(zwa-b.clientX);b=Math.abs(Awa-b.clientY);a.cancelable&&(c==="none"?d=!0:c==="pan-x"?d=b>e:c==="pan-y"&&(d=e>b));d?a.preventDefault():
Am("track")}};
Cm=function(a,b,c){return Bm[b]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a,b,c),!0):!1};
Dm=function(a,b,c){return Bm[b]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a,b,c),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(a,b,c){var d=Bm[b],e=d.deps,g=d.name,k=a.__polymerGestures;k||(a.__polymerGestures=k={});for(var m=0,n,r;m<e.length;m++)n=e[m],owa&&jwa.indexOf(n)>-1&&n!=="click"||((r=k[n])||(k[n]=r={_count:0}),r._count===0&&a.addEventListener(n,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,nwa(n)),r[g]=(r[g]||0)+1,r._count=(r._count||0)+1);a.addEventListener(b,c);d.touchAction&&_.Em(a,d.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(a,b,c){var d=Bm[b],e=d.deps;d=d.name;var g=a.__polymerGestures;if(g)for(var k=0,m,n;k<e.length;k++)m=e[k],(n=g[m])&&n[d]&&(n[d]=(n[d]||1)-1,n._count=(n._count||1)-1,n._count===0&&a.removeEventListener(m,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,nwa(m)));a.removeEventListener(b,c)};
Cwa=function(a){zm.push(a);for(var b=0;b<a.emits.length;b++)Bm[a.emits[b]]=a};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(a){for(var b=0,c;b<zm.length;b++){c=zm[b];for(var d=0,e;d<c.emits.length;d++)if(e=c.emits[d],e===a)return c}return null};
_.Em=function(a,b){kwa&&a instanceof HTMLElement&&Fm.run(function(){a.style.touchAction=b});
a.__polymerGesturesTouchAction=b};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(a,b,c){b=new Event(b,{bubbles:!0,cancelable:!0,composed:!0});b.detail=c;(0,_.qm)(a).dispatchEvent(b);b.defaultPrevented&&(a=c.preventer||c.sourceEvent)&&a.preventDefault&&a.preventDefault()};
Am=function(a){a=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a);a.info&&(a.info.prevent=!0)};
Gm=function(a,b,c,d){b&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(b,a,{x:c.clientX,y:c.clientY,sourceEvent:c,preventer:d,prevent:function(e){return Am(e)}})};
Dwa=function(a,b,c){if(a.prevent)return!1;if(a.started)return!0;c=Math.abs(a.y-c);return Math.abs(a.x-b)>=5||c>=5};
Ewa=function(a,b,c){if(b){var d=a.moves[a.moves.length-2],e=a.moves[a.moves.length-1],g=e.x-a.x,k=e.y-a.y,m=0;if(d){var n=e.x-d.x;m=e.y-d.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(b,"track",{state:a.state,x:c.clientX,y:c.clientY,dx:g,dy:k,ddx:n,ddy:m,sourceEvent:c,hover:function(){return wwa(c.clientX,c.clientY)}})}};
Gwa=function(a,b,c){var d=Math.abs(b.clientX-a.x),e=Math.abs(b.clientY-a.y),g=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(c||b);!g||Fwa[g.localName]&&g.hasAttribute("disabled")||!(isNaN(d)||isNaN(e)||d<=25&&e<=25||uwa(b))||a.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(g,"tap",{x:b.clientX,y:b.clientY,sourceEvent:b,preventer:c})};
Hwa=function(a,b,c,d,e){var g;e&&(g=typeof c==="object"&&c!==null)&&(d=a.__dataTemp[b]);d=d!==c&&(d===d||c===c);g&&d&&(a.__dataTemp[b]=c);return d};
Jwa=function(){if(Hm&&!Im){if(!Iwa){Iwa=!0;var a=document.createElement("style");a.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(a)}return!0}return!1};
Lwa=function(){return Kwa};
Mwa=function(a,b){Kwa=a;Object.setPrototypeOf(a,b.prototype);new b;Kwa=null};
Nwa=function(a,b){for(var c=0;c<b.length;c++){var d=b[c];if(!!a!=!!d.__hideTemplateChildren__)if(d.nodeType===Node.TEXT_NODE)a?(d.__polymerTextContent__=d.textContent,d.textContent=""):d.textContent=d.__polymerTextContent__;else if(d.localName==="slot")if(a)d.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.qm)((0,_.qm)(d).parentNode).replaceChild(d.__polymerReplaced__,d);else{var e=d.__polymerReplaced__;e&&(0,_.qm)((0,_.qm)(e).parentNode).replaceChild(d,e)}else d.style&&(a?(d.__polymerDisplay__=
d.style.display,d.style.display="none"):d.style.display=d.__polymerDisplay__);d.__hideTemplateChildren__=a;d._showHideChildren&&d._showHideChildren(a)}};
Owa=function(a){return(a=a.__dataHost)&&a._methodHost||a};
Rwa=function(a,b,c){var d=c.mutableData?Pwa:Jm;Km.mixin&&(d=Km.mixin(d));var e=function(){return d.apply(this,arguments)||this};
_.z(e,d);e.prototype.__templatizeOptions=c;e.prototype._bindTemplate(a);Qwa(e,a,b,c);return e};
Wwa=function(a,b,c,d){var e=c.forwardHostProp;if(e&&b.hasHostProps){var g=a.localName=="template",k=b.templatizeTemplateClass;if(!k){if(g){var m=c.mutableData?Swa:Twa;k=function(){return m.apply(this,arguments)||this};
_.z(k,m);k=b.templatizeTemplateClass=k}else{var n=a.constructor;k=function(){return n.apply(this,arguments)||this};
_.z(k,n);k=b.templatizeTemplateClass=k}var r=b.hostProps,t;for(t in r)k.prototype._addPropertyEffect("_host_"+t,k.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:Uwa(e)}),k.prototype._createNotifyingProperty("_host_"+t);Lm&&d&&Vwa(b,c,d)}a.__dataProto&&Object.assign(a.__data,a.__dataProto);if(g)Mwa(a,k),a.__dataTemp={},a.__dataPending=null,a.__dataOld=null,a._enableProperties();else{Object.setPrototypeOf(a,k.prototype);b=b.hostProps;for(var u in b)u="_host_"+u,u in a&&(b=a[u],delete a[u],a.__data[u]=
b)}}};
Uwa=function(a){return function(b,c,d){a.call(b.__templatizeOwner,c.substring(6),d[c])}};
Qwa=function(a,b,c,d){var e=c.hostProps||{},g;for(g in d.instanceProps){delete e[g];var k=d.notifyInstanceProp;k&&a.prototype._addPropertyEffect(g,a.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Xwa(k)})}if(d.forwardHostProp&&b.__dataHost)for(var m in e)c.hasHostProps||(c.hasHostProps=!0),a.prototype._addPropertyEffect(m,a.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Ywa()})};
Xwa=function(a){return function(b,c,d){a.call(b.__templatizeOwner,b,c,d[c])}};
Ywa=function(){return function(a,b,c){a.__dataHost._setPendingPropertyOrPath("_host_"+b,c[b],!0,!0)}};
Km=function(a,b,c){if(Mm&&!Owa(a))throw Error("Gd");c=c||{};if(a.__templatizeOwner)throw Error("Hd");a.__templatizeOwner=b;var d=(b?b.constructor:Jm)._parseTemplate(a),e=d.templatizeInstanceClass;e||(e=Rwa(a,d,c),d.templatizeInstanceClass=e);var g=Owa(a);Wwa(a,d,c,g);c=function(){return e.apply(this,arguments)||this};
_.z(c,e);c.prototype._methodHost=g;c.prototype.__dataHost=a;c.prototype.__templatizeOwner=b;c.prototype.__hostProps=d.hostProps;return c};
Vwa=function(a,b,c){c=c.constructor._properties;a=a.propertyEffects;b=b.instanceProps;for(var d in a)if(!(c[d]||b&&b[d]))for(var e=a[d],g=0;g<e.length;g++){var k=e[g].info.part;if(!k.signature||!k.signature.static){console.warn("Property '"+d+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
Zwa=function(a,b){for(var c;b;)if(c=b.__dataHost?b:b.__templatizeInstance)if(c.__dataHost!=a)b=c.__dataHost;else return c;else b=(0,_.qm)(b).parentNode;return null};
Nm=function(a){return a.localName==="slot"};
$wa=function(){for(var a=Om.prototype,b="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),c={},d=0;d<b.length;c={method$jscomp$32:void 0},d++)c.method$jscomp$32=b[d],a[c.method$jscomp$32]=function(e){return function(){return this.node[e.method$jscomp$32].apply(this.node,arguments)}}(c)};
axa=function(a,b){for(var c={},d=0;d<b.length;c={name$jscomp$375:void 0},d++)c.name$jscomp$375=b[d],Object.defineProperty(a,c.name$jscomp$375,{get:function(e){return function(){return this.node[e.name$jscomp$375]}}(c),
configurable:!0})};
bxa=function(){for(var a=Om.prototype,b=["textContent","innerHTML","className"],c={},d=0;d<b.length;c={name$jscomp$376:void 0},d++)c.name$jscomp$376=b[d],Object.defineProperty(a,c.name$jscomp$376,{get:function(e){return function(){return this.node[e.name$jscomp$376]}}(c),
set:function(e){return function(g){this.node[e.name$jscomp$376]=g}}(c),
configurable:!0})};
cxa=function(){Pm=document.documentElement.getAttribute("dir");Pm=document.documentElement.getAttribute("dir");for(var a=0;a<Qm.length;a++){var b=Qm[a];b.__autoDirOptOut||b.setAttribute("dir",Pm)}};
gxa=function(){Rm=!0;requestAnimationFrame(function(){Rm=!1;dxa(exa);setTimeout(function(){for(var a=0,b=Sm.length;a<b;a++)fxa(Sm.shift())})})};
dxa=function(a){for(;a.length;)fxa(a.shift())};
fxa=function(a){var b=a[0],c=a[1];a=a[2];try{c.apply(b,a)}catch(d){setTimeout(function(){throw d;})}};
_.hxa=function(a,b,c){Rm||gxa();exa.push([a,b,c])};
_.Tm=function(a,b,c){Rm||gxa();Sm.push([a,b,c])};
kxa=function(a,b){b=b===void 0?!1:b;if(!ixa||!jxa||!ixa.handlesDynamicScoping)return null;var c=jxa.ScopingShim;if(!c)return null;var d=c.scopeForNode(a),e=(0,_.qm)(a).getRootNode(),g=function(k){if((0,_.qm)(k).getRootNode()===e){var m=Array.from(ixa.nativeMethods.querySelectorAll.call(k,"*"));m.push(k);for(k=0;k<m.length;k++){var n=m[k];if((0,_.qm)(n).getRootNode()===e){var r=c.currentScopeForNode(n);r!==d&&(r!==""&&c.unscopeNode(n,r),c.scopeNode(n,d))}}}};
g(a);return b?(b=new MutationObserver(function(k){for(var m=0;m<k.length;m++)for(var n=k[m],r=0;r<n.addedNodes.length;r++){var t=n.addedNodes[r];t.nodeType===Node.ELEMENT_NODE&&g(t)}}),b.observe(a,{childList:!0,
subtree:!0}),b):null};
lxa=function(){document.body.removeAttribute("unresolved")};
qxa=function(a){var b=a=a.replace(mxa,"").replace(nxa,""),c=new oxa;c.start=0;c.end=b.length;for(var d=c,e=0,g=b.length;e<g;e++)if(b[e]==="{"){d.rules||(d.rules=[]);var k=d,m=k.rules[k.rules.length-1]||null;d=new oxa;d.start=e+1;d.parent=k;d.previous=m;k.rules.push(d)}else b[e]==="}"&&(d.end=e+1,d=d.parent||c);return pxa(c,a)};
pxa=function(a,b){var c=b.substring(a.start,a.end-1);a.parsedCssText=a.cssText=c.trim();a.parent&&(c=b.substring(a.previous?a.previous.end:a.parent.start,a.start-1),c=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(c),c=c.replace(rxa," "),c=c.substring(c.lastIndexOf(";")+1),c=a.parsedSelector=a.selector=c.trim(),a.atRule=c.indexOf("@")===0,a.atRule?c.indexOf("@media")===0?a.type=4:c.match(sxa)&&(a.type=7,a.keyframesName=a.selector.split(rxa).pop()):c.indexOf("--")===
0?a.type=1E3:a.type=1);if(c=a.rules)for(var d=0,e=c.length,g=void 0;d<e&&(g=c[d]);d++)pxa(g,b);return a};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(a){return a.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var b=arguments[1],c=6-b.length;c--;)b="0"+b;return"\\"+b})};
txa=function(a,b,c){c=c===void 0?"":c;var d="";if(a.cssText||a.rules){var e=a.rules;if(e&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(e))for(var g=0,k=e.length,m=void 0;g<k&&(m=e[g]);g++)d=txa(m,b,d);else b?b=a.cssText:(b=a.cssText,b=b.replace(uxa,"").replace(vxa,""),b=b.replace(wxa,"").replace(xxa,"")),(d=b.trim())&&(d="  "+d+"\n")}d&&(a.selector&&(c+=a.selector+" {\n"),c+=d,a.selector&&(c+="}\n\n"));return c};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(a){a=a[0];return!!a&&!!a.selector&&a.selector.indexOf("--")===0};
zxa=function(a){if(a=yxa[a])a._applyShimCurrentVersion=a._applyShimCurrentVersion||0,a._applyShimValidatingVersion=a._applyShimValidatingVersion||0,a._applyShimNextVersion=(a._applyShimNextVersion||0)+1};
Axa=function(a){return a._applyShimCurrentVersion===a._applyShimNextVersion};
Cxa=function(a){a._applyShimValidatingVersion=a._applyShimNextVersion;a._validating||(a._validating=!0,Bxa.then(function(){a._applyShimCurrentVersion=a._applyShimNextVersion;a._validating=!1}))};
Exa=function(a){if(!a)return"";typeof a==="string"&&(a=qxa(a));return txa(a,Dxa)};
Fxa=function(a){!a.__cssRules&&a.textContent&&(a.__cssRules=qxa(a.textContent));return a.__cssRules||null};
Hxa=function(a,b,c,d){if(a){var e=!1,g=a.type;if(d&&g===4){var k=a.selector.match(Gxa);k&&(window.matchMedia(k[1]).matches||(e=!0))}g===1?b(a):c&&g===7?c(a):g===1E3&&(e=!0);if((a=a.rules)&&!e)for(e=0,g=a.length,k=void 0;e<g&&(k=a[e]);e++)Hxa(k,b,c,d)}};
Ixa=function(a,b){var c=a.indexOf("var(");if(c===-1)return b(a,"","","");a:{var d=0;var e=c+3;for(var g=a.length;e<g;e++)if(a[e]==="(")d++;else if(a[e]===")"&&--d===0)break a;e=-1}d=a.substring(c+4,e);c=a.substring(0,c);a=Ixa(a.substring(e+1),b);g=d.indexOf(",");if(g===-1)return b(c,d.trim(),"",a);e=d.substring(0,g).trim();d=d.substring(g+1).trim();return b(c,e,d,a)};
Jxa=function(a){if(Um!==void 0)return Um;if(a.__cssBuild===void 0){var b=a.getAttribute("css-build");if(b)a.__cssBuild=b;else{a:{b=a.localName==="template"?a.content.firstChild:a.firstChild;if(b instanceof Comment&&(b=b.textContent.trim().split(":"),b[0]==="css-build")){b=b[1];break a}b=""}if(b!==""){var c=a.localName==="template"?a.content.firstChild:a.firstChild;c.parentNode.removeChild(c)}a.__cssBuild=b}}return a.__cssBuild||""};
Lxa=function(a,b,c,d){for(var e=b._noAccessors,g=Object.getOwnPropertyNames(b),k=0;k<g.length;k++){var m=g[k];if(!(m in d))if(e)a[m]=b[m];else{var n=Object.getOwnPropertyDescriptor(b,m);n&&(n.configurable=!0,Object.defineProperty(a,m,n))}}for(var r in Kxa)b[r]&&(c[r]=c[r]||[],c[r].push(b[r]))};
Mxa=function(a,b,c){b=b||[];for(var d=a.length-1;d>=0;d--){var e=a[d];e?Array.isArray(e)?Mxa(e,b):b.indexOf(e)<0&&(!c||c.indexOf(e)<0)&&b.unshift(e):console.warn("behavior is null, check for missing or 404 import")}return b};
Nxa=function(a,b){for(var c in b){var d=a[c],e=b[c];a[c]=!("value"in e)&&d&&"value"in d?Object.assign({value:d.value},e):e}};
Qxa=function(a,b,c){var d={},e=function(){return b.apply(this,arguments)||this};
_.z(e,b);e._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(k)for(var n=0,r;n<k.length;n++)r=k[n],r.properties&&this.createProperties(r.properties),r.observers&&this.createObservers(r.observers,r.properties);a.properties&&this.createProperties(a.properties);a.observers&&this.createObservers(a.observers,a.properties);this._prepareTemplate()}else b._finalizeClass.call(this)};
e.prototype.created=function(){b.prototype.created.call(this);var n=d.created;if(n)for(var r=0;r<n.length;r++)n[r].call(this)};
e.prototype._registered=function(){var n=e.prototype;if(!n.hasOwnProperty("__hasRegisterFinished")){n.__hasRegisterFinished=!0;b.prototype._registered.call(this);Hm&&m(n);n=Object.getPrototypeOf(this);var r=d.beforeRegister;if(r)for(var t=0;t<r.length;t++)r[t].call(n);if(r=d.registered)for(t=0;t<r.length;t++)r[t].call(n)}};
e.prototype._applyListeners=function(){b.prototype._applyListeners.call(this);var n=d.listeners;if(n)for(var r=0;r<n.length;r++){var t=n[r];if(t)for(var u in t)this._addMethodEventListenerToNode(this,u,t[u])}};
e.prototype._ensureAttributes=function(){var n=d.hostAttributes;if(n)for(var r=n.length-1;r>=0;r--){var t=n[r],u;for(u in t)this._ensureAttribute(u,t[u])}b.prototype._ensureAttributes.call(this)};
e.prototype.ready=function(){b.prototype.ready.call(this);var n=d.ready;if(n)for(var r=0;r<n.length;r++)n[r].call(this)};
e.prototype.attached=function(){b.prototype.attached.call(this);var n=d.attached;if(n)for(var r=0;r<n.length;r++)n[r].call(this)};
e.prototype.detached=function(){b.prototype.detached.call(this);var n=d.detached;if(n)for(var r=0;r<n.length;r++)n[r].call(this)};
e.prototype.attributeChanged=function(n,r,t){b.prototype.attributeChanged.call(this);var u=d.attributeChanged;if(u)for(var w=0;w<u.length;w++)u[w].call(this,n,r,t)};
_.Vm.Object.defineProperties(e,{properties:{configurable:!0,enumerable:!0,get:function(){var n={};if(k)for(var r=0;r<k.length;r++)Nxa(n,k[r].properties);Nxa(n,a.properties);return n}},
observers:{configurable:!0,enumerable:!0,get:function(){var n=[];if(k)for(var r=0,t;r<k.length;r++)t=k[r],t.observers&&(n=n.concat(t.observers));a.observers&&(n=n.concat(a.observers));return n}}});
if(c){Array.isArray(c)||(c=[c]);var g=b.prototype.behaviors;var k=Mxa(c,null,g);e.prototype.behaviors=g?g.concat(c):k}var m=function(n){if(k)for(var r=k,t=0;t<r.length;t++)Lxa(n,r[t],d,Oxa);Lxa(n,a,d,Pxa)};
Hm||m(e.prototype);e.generatedFrom=a;return e};
Uxa=function(a){var b=typeof a!=="string"?a:{is:a,notifyObserversOnUndefined:!0};b.fastInit===void 0&&(b.fastInit=!0);return function(c){if(!b.disableInheritanceCheck&&Object.getPrototypeOf(c.prototype).constructor!==_.Wm)throw Error("Ld");var d=c.prototype;d.is=b.is;Zua(d,"created",function(){this.hostElement=this;this.polymerController=this});
Rxa(d,c,b.fastInit);b.notifyObserversOnUndefined&&(d._overrideLegacyUndefined=!0);if(Sxa)for(var e=_.h(Object.getOwnPropertyNames(d)),g=e.next();!g.done;g=e.next()){g=g.value;var k=Object.getOwnPropertyDescriptor(d,g);k.enumerable===!1&&(k.enumerable=!0,Object.defineProperty(d,g,k))}if("template"in c)var m=function(){return c.template};
else b.template!==void 0&&(m=b.template);if(m!==void 0){var n;Object.defineProperty(d,"_template",{get:function(){n===void 0&&(n=m());return n},
set:function(r){n=r},
configurable:!0,enumerable:!0})}Polymer(d);c[Txa]=d}};
Vxa=function(a){a=a===void 0?{}:a;a.fastInit===void 0&&(a.fastInit=!0);return function(b){if(!a.disableInheritanceCheck&&Object.getPrototypeOf(b.prototype).constructor!==Xm)throw Error("Md");Rxa(b.prototype,b,a.fastInit)}};
Rxa=function(a,b,c){c=c===void 0?!1:c;Wxa(b);c?Zua(a,"created",function(){this.disableEnforceFastDefaultValuesCheck||Xxa(b,this)}):Zua(a,"ready",function(){for(var d={},e=_.h($ua(this.behaviors)),g=e.next();!g.done;g=e.next())g=g.value,g.properties&&Object.assign(d,Yxa(this,g.properties));
Object.assign(d,Yxa(this,this.properties));Xxa(b,this);e=_.h(Object.keys(d));for(g=e.next();!g.done;g=e.next())g=g.value,this[g]=d[g]})};
Xxa=function(a,b){if(Sxa){a=new a;for(var c=_.h(Object.getOwnPropertyNames(a)),d=c.next();!d.done;d=c.next())d=d.value,b[d]=a[d];for(c=b;c&&c!==Object.prototype;c=Object.getPrototypeOf(c)){d=_.h(Object.getOwnPropertyNames(c));for(var e=d.next();!e.done;e=d.next())e=e.value,a.hasOwnProperty(e)||Object.defineProperty(a,e,Zxa(b,e))}}else a.apply(b)};
Zxa=function(a,b){return{get:function(){var c=a[b];return c instanceof Function?c.bind(a):c},
set:function(c){a[b]=c}}};
Yxa=function(a,b){if(!b)return{};for(var c={},d=_.h(Object.keys(b)),e=d.next();!e.done;e=d.next())if(e=e.value,!b[e].readOnly){var g=a[e];g!==void 0&&(c[e]=g)}return c};
Wxa=function(a){var b=new a;a=a.prototype.properties||{};for(var c=_.h(Object.keys(a)),d=c.next();!d.done;d=c.next())if(d=d.value,b.hasOwnProperty(d)){var e=a[d];typeof e==="function"&&(a[d]=e={type:e});b[d]!=null&&e.type===Object&&(e.type=$xa(b[d].constructor))}};
$xa=function(a){for(var b=_.h(aya),c=b.next();!c.done;c=b.next())if(c=c.value,a===c)return c;return Object};
bya=function(a){return function(b,c){b.behaviors=b.behaviors||[];b.behaviors.push(a||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",b,c).prototype:void 0));Object.defineProperty(b,c,{get:function(){return this},
enumerable:!0,configurable:!0})}};
cya=function(a){a=a===void 0?{}:a;return function(b,c){b.properties=b.properties||{};a.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?a.type=$xa(Reflect.getMetadata("design:type",b,c)):a.type=String);var d=a,e=b.properties[c];b.properties[c]=e?Object.assign({},e,d):d}};
dya=function(a){return function(b,c){b.listeners=b.listeners||{};b.listeners[a]=c}};
eya=function(){var a=_.Id.apply(0,arguments);if(a.length===0)throw Error("Nd");return function(b,c){b.observers=b.observers||[];b.observers.push(c+"("+a.join(",")+")")}};
fya=function(){var a=_.Id.apply(0,arguments);return function(b,c,d){var e=Object.getOwnPropertyDescriptor(b,c).get,g="__compute__"+c;Object.defineProperty(b,g,{value:e,enumerable:!0});b.properties=b.properties||{};e=b.properties[c];e||(e={},b.properties[c]=e);e.computed=g+"("+a.join(",")+")";d.get=void 0}};
_.Ym=function(a,b,c){_.tg.call(this);this.JSC$9040_id_=null;this.usingListeners_=!1;this.JSC$9040_listener_=a;this.handler_=c;this.JSC$9040_win_=b||window;this.callback_=(0,_.ug)(this.JSC$9042_doAction_,this)};
Zm=function(a){this.range_=a};
$m=function(a){this.range_=a};
cn=function(a,b,c){_.tg.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=a;this.scrollTimer_=new _.an(50);this.JSC$9119_eventHandler_=new _.bn(this);this.scrollDelta_=new _.Af;this.containerIsActuallyContent_=a.tagName==="BODY"||a.tagName==="HTML";this.containerBounds_=gya(a);this.containerIsActuallyContent_&&(a=_.pf(),this.containerBounds_.height=a.height,this.containerBounds_.width=a.width);this.margin_=b||0;if(b){if(b=this.containerBounds_.clone(),a=this.margin_){var d=
Math.min(a,b.height*.25);b.top+=d;b.height-=2*d;a=Math.min(a,b.width*.25);b.left+=a;b.width-=2*a}}else b=this.containerBounds_;this.scrollBounds_=b;c||this.JSC$9119_eventHandler_.listen(_.Cf(this.containerNode_),"mousemove",this.JSC$9121_onMouseMove);this.JSC$9119_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$9121_onTick_)};
_.dn=function(a){this.mechanism=a};
fn=function(a,b){this.JSC$9217_key_=a;this.JSC$9217_value_=b};
iya=function(a){if(a>=55296&&a<=57343||a>1114111)return"\ufffd";a in hya&&(a=hya[a]);var b="";a>65535&&(a-=65536,b+=String.fromCharCode(a>>>10&1023|55296),a=56320|a&1023);return b+=String.fromCharCode(a)};
jya=function(a,b){return a<b?1:-1};
lya=function(){return function(a){return a.charAt(1)==="#"?a.charAt(2)==="X"||a.charAt(2)==="x"?iya(parseInt(a.substr(3),16)):iya(parseInt(a.substr(2),10)):kya[a.slice(1,-1)]}};
oya=function(a){return a.slice(1,a.length-1).trim().replace(mya,function(b){return nya[b]||" "})};
gn=function(a){return a===32||a===9};
hn=function(a,b){return b<a.length?a.charCodeAt(b):-1};
pya=function(a){for(;a;){if(a._lastLineBlank)return!0;var b=a.type;if(b==="list"||b==="item")a=a._lastChild;else break}return!1};
jn=function(a){if(qya.test(a)){var b=1,c=0,d=0;for(a[c]=="|"&&c++;c<a.length;){switch(a[c]){case "|":d=1;break;case " ":break;case "\t":break;default:d&&(d=0,b++)}c++}return rya.test(a)?-b:b}return 0};
sya=function(a){return a=="table"||a=="row"||a=="cell"};
tya=function(){return new kn("document",[[1,1],[0,0]])};
uya=function(){};
ln=function(){var a={safe:!1};a=a||{};a.softbreak=a.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=a};
zya=function(a,b){var c="";if(a)if(a=a.toLowerCase(),a===" "||vya.test(a))c="space";else if(wya.test(a))c="esc";else if(a.length==1){if(!b||xya.test(a))c=a}else c=yya.test(a)?a.replace("arrow",""):a=="multiply"?"*":a;return c};
Dya=function(a,b){var c=a.hasModifiers;if(b.key)c=zya(b.key,c);else if(b.detail&&b.detail.key)c=zya(b.detail.key,c);else{c=b.keyIdentifier;var d="";c&&(c in Aya?d=Aya[c]:Bya.test(c)?(c=parseInt(c.replace("U+","0x"),16),d=String.fromCharCode(c).toLowerCase()):d=c.toLowerCase());(c=d)||(c=b.keyCode,d="",Number(c)&&(c>=65&&c<=90?d=String.fromCharCode(32+c):c>=112&&c<=123?d="f"+(c-112+1):c>=48&&c<=57?d=String(c-48):c>=96&&c<=105?d=String(c-96):d=Cya[c]),c=d);c=c||""}return c===a.key&&(!a.hasModifiers||
!!b.shiftKey===!!a.shiftKey&&!!b.ctrlKey===!!a.ctrlKey&&!!b.altKey===!!a.altKey&&!!b.metaKey===!!a.metaKey)};
Fya=function(a){return a.length===1?{combo:a,key:a,event:"keydown"}:a.split("+").reduce(function(b,c){var d=c.split(":");c=d[0];d=d[1];c in Eya?(b[Eya[c]]=!0,b.hasModifiers=!0):(b.key=c,b.event=d||"keydown");return b},{combo:a.split(":").shift()})};
Gya=function(a){return a.trim().split(" ").map(function(b){return Fya(b)})};
Hya=function(a,b){if(a&&a.fn){var c=a.fn;a.fn=function(){try{c.apply(this,arguments)}catch(d){if(d instanceof mn)console.warn("Argument '"+d.arg+"'"+(b?" for method '"+b+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw d;}}}return a};
Iya=function(){var a=_.Id.apply(0,arguments);return a.length===0?function(b){return b}:a.length===1?a[0]:a.reduce(function(b,c){return function(){return b(c.apply(null,_.Be(_.Id.apply(0,arguments))))}})};
Jya=function(){var a=_.Id.apply(0,arguments);return function(b){return function(c,d){c=b(c,d);var e=function(){throw Error("xe");},g={getState:c.getState,
dispatch:function(k){return e.apply(null,[k].concat(_.Be(_.Id.apply(1,arguments))))}};
d=a.map(function(k){return k(g)});
e=Iya.apply(null,_.Be(d))(c.dispatch);return Object.assign({},c,{dispatch:e})}}};
Mya=function(a){Object.keys(a).forEach(function(b){var c=a[b];if(typeof c(void 0,{type:Kya})==="undefined")throw Error("ye`"+b);if(typeof c(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+Lya()})==="undefined")throw Error("ze`"+b+"`"+Kya);})};
nn=function(a){for(var b=Object.keys(a),c={},d=0;d<b.length;d++){var e=b[d];typeof a[e]==="function"&&(c[e]=a[e])}var g=Object.keys(c);try{Mya(c)}catch(m){var k=m}return function(m,n){m=m===void 0?{}:m;if(k)throw k;for(var r=!1,t={},u=0;u<g.length;u++){var w=g[u],A=m[w],C=(0,c[w])(A,n);if(typeof C==="undefined")throw m=n&&n.type,Error("Ae`"+(m?'"'+String(m)+'"':"(unknown type)")+"`"+w);t[w]=C;r=r||C!==A}return(r=r||g.length!==Object.keys(m).length)?t:m}};
Nya=function(a,b,c){function d(){if(t)throw Error("Be");return m}
function e(A){if(typeof A!=="function")throw Error("Ce`"+typeof A);if(t)throw Error("De");var C=!0;r===n&&(r=n.slice());r.push(A);return function(){if(C){if(t)throw Error("Ee");C=!1;r===n&&(r=n.slice());var G=r.indexOf(A);r.splice(G,1);n=null}}}
function g(A){if(typeof A!=="object"||A===null)var C=!1;else{for(C=A;Object.getPrototypeOf(C)!==null;)C=Object.getPrototypeOf(C);C=Object.getPrototypeOf(A)===C}if(!C)throw Error("Fe`"+typeof A);if(typeof A.type==="undefined")throw Error("Ge");if(t)throw Error("He");try{t=!0,m=k(m,A)}finally{t=!1}C=n=r;for(var G=0;G<C.length;G++)(0,C[G])();return A}
if(typeof b==="function"&&typeof c==="function"||typeof c==="function"&&typeof arguments[3]==="function")throw Error("Ie");typeof b==="function"&&typeof c==="undefined"&&(c=b,b=void 0);if(typeof c!=="undefined"){if(typeof c!=="function")throw Error("Je`"+typeof c);return c(Nya)(a,b)}if(typeof a!=="function")throw Error("Ke`"+typeof a);var k=a,m=b,n=[],r=n,t=!1;g({type:Kya});var u={},w=(u.dispatch=g,u.subscribe=e,u.getState=d,u.replaceReducer=function(A){if(typeof A!=="function")throw Error("Le`"+
typeof A);k=A;g({type:Oya});return w},u[Pya]=function(){var A={};
return A.subscribe=function(C){function G(){C.next&&C.next(d())}
if(typeof C!=="object"||C===null)throw new TypeError("Me`"+typeof C);G();return{unsubscribe:e(G)}},A[Pya]=function(){return this},A},u);
return w};
Qya=function(a){function b(){e&&(e=!1,a());g&&d()}
function c(){requestAnimationFrame(b)}
function d(){var m=Date.now();if(e){if(m-k<2)return;g=!0}else e=!0,g=!1,setTimeout(c,20);k=m}
var e=!1,g=!1,k=0;return d};
on=function(a){return typeof a==="number"?a:parseFloat(a)||0};
Rya=function(a){return _.Id.apply(1,arguments).reduce(function(b,c){return b+on(a["border-"+c+"-width"])},0)};
_.B=function(a,b){b=Pd(Nd(b));a.innerHTML=b};
Uya=function(a){var b=Sya;b||(b=Tya(),b=Sya=_.yf.transpose(b));b=b[a];return typeof b==="string"?b:_.pn(a)};
Vya=function(a){a=String(a).toLowerCase();var b=Tya()[a];return typeof b==="string"?b:_.qn(a)};
Wya=function(a){a=a.toLowerCase();a=Tya()[a];return typeof a==="string"?a:null};
Tya=function(){if(!Xya){for(var a=Object.assign({},Yya),b=_.h(Zya),c=b.next();!c.done;c=b.next())c=c.value,a[c.toLowerCase()]=c;Xya=a}return Xya};
bza=function(a,b){var c=window.customElements;return c&&c.get(a)||$ya[a]===!0?2:b.name==="HTMLUnknownElement"?1:b.name==="HTMLElement"&&aza.test(a)?3:0};
eza=function(a,b){switch(b){case "innerHTML":return cza(a)===1?2:null;case "textContent":return a=cza(a),a===1||a===6?1:null;default:var c,d;return(d=(c=dza[a.localName])==null?void 0:c[b])!=null?d:null}};
cza=function(a){var b=a.localName,c=bza(b,a.constructor);switch(c){case 0:case 1:return fza(b,a);case 3:case 2:return 1;default:_.Sb(c,"got an unknown element classification")}};
fza=function(a,b){var c=Object.hasOwnProperty.call(gza,a)?gza[a]:null;return c!==null?c:Object.hasOwnProperty.call(hza,a)&&b instanceof SVGElement?hza[a]:null};
iza=function(a,b){return b};
kza=function(a){return(a=a.split(jza,2))?{url:a[0],metadata:a[1]}:null};
mza=function(a){var b=String(a.url).replace(lza,encodeURIComponent);if(a=a.metadata){lza.lastIndex=0;if(lza.test(a))return null;b+=" "+a}return b};
qza=function(a){function b(r){var t=r.localName;if(!r.getAttribute("is")&&bza(t,r.constructor)===2){var u;return(u=n)!=null?u:n=document.createElement("polyresinuncustomized")}(r=m[t])||(r=m[t]=document.createElement(t));return r}
var c=a.reportHandler||void 0,d=a.safeTypesBridge||nza,e=/^$/;if(a=a.allowedIdentifierPrefixes){a=_.h(a);for(var g=a.next();!g.done;g=a.next())e=new RegExp(e.source+"|^"+_.oza(g.value))}c&&c(!1,"initResin",null);var k=pza(e,d,c),m={},n=null;return function(r,t,u){var w=r.nodeType;if(w!==Node.ELEMENT_NODE){if(w===Node.TEXT_NODE){t=r.parentElement;u=!t;if(t&&t.nodeType===Node.ELEMENT_NODE){w=t.localName;var A=bza(w,t.constructor);switch(A){case 0:case 1:t=fza(w,t);u=t===1||t===6;break;case 3:case 2:u=
!0;break;default:_.Sb(A,"got an unknown element classification")}}if(u)return function(I){return""+d(I,"STRING",I)}}return function(I){if(!I&&I!==document.all)return I;
c&&c(!0,"Failed to sanitize "+(r.parentElement&&r.parentElement.nodeName)+" #text node to value "+I,r.parentElement);return rn}}var C=r.localName;
w=b(r);var G=null;switch(u){case "attribute":if(Vya(t)in w)break;return function(I){return I};
case "property":if(t in w){G=eza(w,t);break}if((A=Wya(t))&&A in w)break;return function(I){return I};
default:_.Sb(u,"got an unknown resin type, expected either 'property' or 'attribute'")}var J=u==="attribute"?t.toLowerCase():Uya(t);G||(G=Jla(C,J,function(I){var R=r.getAttribute(I);return!R||/[\[\{]/.test(I)?null:R}));
return function(I){var R=sn,ca=null;if(!I&&I!==document.all)return I;if(G!=null){var V=k[G],fa=V.safeType;ca=V.safeReplacement;fa&&(R=d(I,fa,sn));R===sn&&(V.filterString?(R=String(d(I,"STRING",I)),R=V.filterString(C,J,R)):V.filterRaw&&(R=V.filterRaw(C,J,I,r)),R===ca&&(R=sn))}R===sn&&(R=ca||rn,c&&c(!0,"Failed to sanitize attribute of <"+C+">: <"+C+" "+J+'="'+I+'">',r));return R}}};
pza=function(a,b,c){return[,{filterRaw:function(d,e,g){return g},
filterString:void 0,safeReplacement:void 0,safeType:void 0},{filterRaw:void 0,filterString:void 0,safeReplacement:void 0,safeType:"HTML"},{filterRaw:void 0,filterString:void 0,safeReplacement:rza,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:rza,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:rn,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:sza,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(d,e,g){g=
String(g).toLowerCase();return Mla(d,e,g)?g:rn},
safeReplacement:rn,safeType:void 0},,{filterRaw:void 0,filterString:function(d,e,g){return a.test(g)?g:rn},
safeReplacement:rn,safeType:"CONSTANT"},{filterRaw:function(d,e,g,k){if(typeof g==="string")var m=(m=g.match(tza))?m.map(kza).filter(Boolean):[];else if(Array.isArray(g))m=g;else return rza;var n=m;m=[];var r=[],t={};if(Array.isArray(n))for(var u=0,w=n.length;u<w;++u){var A=n[u],C=A&&A.url;if(C){var G=b(C,"URL",t);if(G){var J=G!==t;(J?m:r).push({url:J?G:C,metadata:A.metadata})}}}else r.push(n);n=r.length?JSON.stringify(r):null;r=sn;if(m.length){if(!Array.isArray(m))throw Error();r=m.map(mza).filter(Boolean).join(" , ")||
sn}n&&c&&c(!0,"Failed to sanitize attribute value of <"+d+">: <"+d+" "+e+'="'+g+'">: '+n,k);return r===sn?rza:r},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
uza=function(a){var b=qza(a);return function(c,d,e,g){return g||g===document.all?b(c,d,e)(g):g}};
tn=function(a,b){function c(){function e(m,n,r){for(n=Reflect.getMetadata("parameters",m)||[];n.length<=r;)n.push(null);n[r]=n[r]||[];n[r].push(k);Reflect.defineMetadata(n,m);return m}
var g=_.Id.apply(0,arguments);if(this instanceof c)return d.apply(this,g),this;var k=new (Function.prototype.bind.apply(c,[null].concat(_.Be(g))));e.annotation=k;return e}
var d=vza(b);c.prototype.toString=function(){return"@"+a};
return c.annotationCls=c};
vza=function(a){return function(){var b=_.Id.apply(0,arguments),c=this;a.forEach(function(d,e){e=b[e];if(Array.isArray(d))c[d[0]]=e&&e!==void 0?e:d[1];else for(var g in d)c[g]=e&&e[g]!==void 0?e[g]:d[g]})}};
wza=function(a){return a!==void 0&&a!==null};
un=function(a){if(typeof a==="string")return a;if(a===void 0||a===null)return""+a;if(a.overriddenName)return a.overriddenName;if(a.name)return a.name;a=a.toString();var b=a.indexOf("\n");return b===-1?a:a.substring(0,b)};
xza=function(a){a.__forward_ref__=xza;a.toString=function(){return un(this())};
return a};
vn=function(a){return typeof a==="function"&&a.hasOwnProperty("__forward_ref__")&&a.__forward_ref__===xza?a():a};
yza=function(a){return a?a.map(function(b){return new (Function.prototype.bind.apply(b.type.annotationCls,[null].concat(_.Be(b.args?b.args:[]))))}):[]};
zza=function(a){for(var b=[],c=0;c<a.length;++c){if(b.indexOf(a[c])>-1){b.push(a[c]);break}b.push(a[c])}return b};
Aza=function(a){return a.length>1?" ("+zza(a.slice().reverse()).map(function(b){return un(b.token)}).join(" -> ")+")":""};
Cza=function(a,b,c,d){if(d){var e=Error("Te``"+(d instanceof Error?d.message:d));e.ngOriginalError=d}else e=Error();e.addKey=Bza;e.keys=[b];e.injectors=[a];e.constructResolvingMessage=c;e.message=e.constructResolvingMessage();e.ngOriginalError=d;return e};
Bza=function(a,b){this.injectors.push(a);this.keys.push(b);this.message=this.constructResolvingMessage()};
Dza=function(a,b){return Cza(a,b,function(){return"No provider for "+un(this.keys[0].token)+"!"+Aza(this.keys)})};
Eza=function(a,b){return Cza(a,b,function(){return"Cannot instantiate cyclic dependency!"+Aza(this.keys)})};
Fza=function(a,b,c){return Cza(a,c,function(){var d=un(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+d+"!"+Aza(this.keys)+"."},b)};
Gza=function(a,b){for(var c=[],d=0,e=b.length;d<e;d++){var g=b[d];g&&g.length!=0?c.push(g.map(un).join(" ")):c.push("?")}return Error("Xe`"+un(a)+"`"+c.join(", ")+"`"+un(a))};
Nza=function(a){var b=void 0,c=void 0;if(a&&a.useClass!==void 0){b=a.useClass;var d=vn(a.useClass);var e=Hza.factory(d);d=Iza(d)}else a&&a.useExisting!==void 0?(e=function(g){return g},d=[Jza(wn.get(vn(a.useExisting)))]):a&&a.useFactory!==void 0?(e=a.useFactory,d=Kza(a.useFactory,a.deps)):(c=a.useValue,e=function(){return a.useValue},d=Lza);
return new Mza(e,d,b,c)};
Pza=function(a){return new Oza(wn.get(vn(a.provide)),[Nza(a)],a.multi)};
Rza=function(a){a=Qza(a,[]).map(Pza);for(var b=new Map,c=0;c<a.length;c++){var d=a[c],e=b.get(d.key.id);if(e){if(d.multiProvider!==e.multiProvider)throw Error("Ze`"+e+"`"+d);if(d.multiProvider)for(var g=0;g<d.resolvedFactories.length;g++)e.resolvedFactories.push(d.resolvedFactories[g]);else b.set(d.key.id,d)}else e=void 0,d.multiProvider?e=new Oza(d.key,d.resolvedFactories.slice(),d.multiProvider):e=d,b.set(d.key.id,e)}return Array.from(b.values())};
Qza=function(a,b){a.forEach(function(c){if(c instanceof Sza)b.push({provide:c,useClass:c});else if(c&&typeof c=="object"&&c.provide!==void 0)b.push(c);else if(c instanceof Array)Qza(c,b);else throw Error("We`"+c);});
return b};
Kza=function(a,b){if(b){var c=b.map(function(d){return[d]});
return b.map(function(d){return Tza(a,d,c)})}return Iza(a)};
Iza=function(a){var b=Hza.parameters(a);if(!b)return[];if(b.some(function(c){return c==null}))throw Gza(a,b);
return b.map(function(c){return Tza(a,c,b)})};
Tza=function(a,b,c){var d=null,e=!1;if(!Array.isArray(b))return b instanceof Uza?Vza(b.token,e,null):Vza(b,e,null);for(var g=null,k=0;k<b.length;++k){var m=b[k];if(m instanceof Sza)d=m;else if(m instanceof Uza)d=m.token;else if(m instanceof Wza)e=!0;else if(m instanceof Xza||m instanceof Yza)g=m}d=vn(d);if(d!=null)return Vza(d,e,g);throw Gza(a,c);};
Vza=function(a,b,c){return new Zza(wn.get(vn(a)),b,c)};
$za=function(a,b){for(var c=Array(a.providers.length),d=0;d<a.providers.length;++d){var e=d;if(d<0||d>=a.providers.length)throw Error("Ye`"+d);c[e]=b(a.providers[d])}return c};
aAa=function(a){return typeof a==="function"&&Hza.parameters(a).every(function(b){return!!b})};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(a){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(a)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(a){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(a)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(a,b){var c,d;if(a.contains(b))return!0;a=_.xn(a).querySelectorAll("content,slot");for(c=0;c<a.length;++c){var e=_.xn(a[c]).getDistributedNodes();for(d=0;d<e.length;++d)if(e[d].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(e[d],b))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(a){a.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(a)&&a.preventDefault();a.targetTouches&&(a=a.targetTouches[0],bAa=a.pageX,cAa=a.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 a=0,b=yn.length;a<b;a++)document.addEventListener(yn[a],_._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 a=0,b=yn.length;a<b;a++)document.removeEventListener(yn[a],_._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(a){var b=_.xn(a).rootTarget;a.type!=="touchmove"&&dAa!==b&&(dAa=b,eAa=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.xn(a).path));if(!eAa.length)return!0;if(a.type==="touchstart")return!1;a=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(a);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(eAa,a.deltaX,a.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(a){for(var b=[],c=a.indexOf(fAa),d=0;d<=c;d++)if(a[d].nodeType===Node.ELEMENT_NODE){var e=a[d],g=e.style;g.overflow!=="scroll"&&g.overflow!=="auto"&&(g=window.getComputedStyle(e));g.overflow!=="scroll"&&g.overflow!=="auto"||b.push(e)}return b};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(a,b,c){if(b||c)for(var d=Math.abs(c)>=Math.abs(b),e=0;e<a.length;e++){var g=a[e];if(d?c<0?g.scrollTop>0:g.scrollTop<g.scrollHeight-g.clientHeight:b<0?g.scrollLeft>0:g.scrollLeft<g.scrollWidth-g.clientWidth)return g}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(a){var b={deltaX:a.deltaX,deltaY:a.deltaY};"deltaX"in a||("wheelDeltaX"in a&&"wheelDeltaY"in a?(b.deltaX=-a.wheelDeltaX,b.deltaY=-a.wheelDeltaY):"wheelDelta"in a?(b.deltaX=0,b.deltaY=-a.wheelDelta):"axis"in a?(b.deltaX=a.axis===1?a.detail:0,b.deltaY=a.axis===2?a.detail:0):a.targetTouches&&(a=a.targetTouches[0],b.deltaX=bAa-a.pageX,b.deltaY=cAa-a.pageY));return b};
gAa=function(a){this.element=a;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
iAa=function(a){this.element=a;this.color=window.getComputedStyle(a).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");_.xn(this.waveContainer).appendChild(this.wave);hAa(this)};
zn=function(a,b){for(var c in a)if(c.toLowerCase()===b.toLowerCase())return a[c]};
jAa=function(a,b){for(var c in a)if(c.toLowerCase()===b.toLowerCase()){delete a[c];break}};
lAa=function(a){a=_.yf.clone(a);for(var b=0;b<kAa.length;++b){var c=kAa[b],d=zn(a,c);d&&(a["X-Goog-Upload-Header-"+c]=d,jAa(a,c))}return a};
mAa=function(a){a=_.yf.clone(a);jAa(a,"X-Goog-Upload-Status")};
oAa=function(a){return nAa.some(function(b){return b.test(a)})};
sAa=function(a,b){var c;var d=(c=a.formContent)==null?void 0:c.locale;c=d==null?void 0:d.split("-")[0];d=d&&pAa.includes(d)?d:c&&pAa.includes(c)?c:void 0;d=(d!=null?d:"en").replaceAll("-","_").toLowerCase();var e;a=((e=a.initializationData)==null?0:e.useNightlyRelease)?"nightly":"live";var g;return(b==null?0:(g=b.getEnableAlohaBinarySplit)==null?0:g.call(b))?_.ef(qAa,a):_.ef(rAa,a,d)};
uAa=function(a,b,c,d){if(tAa)return tAa;var e=sAa(a,d);return tAa=b.feedbackV2GlobalObject?Promise.resolve(b.feedbackV2GlobalObject):new Promise(function(g,k){var m=_.lg("SCRIPT");_.Xd(m,e);m.onload=function(){b.feedbackV2GlobalObject?g(b.feedbackV2GlobalObject):k(Error("bf"))};
m.onerror=function(){k(Error("cf`"+e.toString()))};
c.body.appendChild(m)})};
wAa=function(a,b,c,d){if(vAa)return vAa;var e=sAa(a,d);return vAa=b.feedbackV2GlobalObject?Promise.resolve(b.feedbackV2GlobalObject):new Promise(function(g,k){var m=_.lg("SCRIPT");_.Xd(m,e);m.onload=function(){b.feedbackV2GlobalObject?g(b.feedbackV2GlobalObject):k(Error("bf"))};
m.onerror=function(){k(Error("cf`"+e.toString()))};
c.body.appendChild(m)})};
xAa=function(a,b,c,d,e){e=e===void 0?!0:e;var g,k,m,n,r;return _.l(function(t){switch(t.nextAddress){case 1:return g=Date.now(),_.p(t,uAa(a,c,d,b),2);case 2:k=t.yieldResult;if(!(e||((n=a.initializationData)==null?0:n.useNightlyRelease)||((r=a.initializationData)==null?0:r.isLocalServer))){m=k.initializeFeedbackClient(a,g,b);t.jumpTo(3);break}return _.p(t,k.initializeFeedbackClientAsync(a,g,b),4);case 4:m=t.yieldResult;case 3:return m.initiateAloha(),t.return(m)}})};
yAa=function(a,b,c,d){var e,g,k;return _.l(function(m){if(m.nextAddress==1)return e=Date.now(),_.p(m,wAa(a,c,d.document,b),2);if(m.nextAddress!=3)return g=m.yieldResult,_.p(m,g.initializeFeedbackClientAsync(a,e,b,d),3);k=m.yieldResult;k.initiateAloha();return m.return(k)})};
zAa=function(a,b,c){var d=!0;d=d===void 0?!0:d;var e,g,k,m,n,r,t,u,w,A;return _.l(function(C){e=c||_.ja;if((g=b)==null?0:(m=(k=g).getEnableAlohaBinarySplit)==null?0:m.call(k)){n=e;if(n.isFormOpened)throw r=Error("df"),r.name="DuplicateFormError",r;n.isFormOpened=!0;a.callbacks=a.callbacks||{};t=a.callbacks.onClose||function(){};
a.callbacks.onClose=function(G){n.isFormOpened=!1;t(G)};
try{return C.return(yAa(a,b,n,e))}catch(G){throw n.isFormOpened=!1,G;}}else{u=e;if(u.isFormOpened)throw w=Error("df"),w.name="DuplicateFormError",w;u.isFormOpened=!0;a.callbacks=a.callbacks||{};A=a.callbacks.onClose||function(){};
a.callbacks.onClose=function(G){u.isFormOpened=!1;A(G)};
try{return C.return(xAa(a,b,u,e.document,d))}catch(G){throw u.isFormOpened=!1,G;}}_.se(C)})};
EAa=function(a,b){return _.l(function(c){return c.return(new Promise(function(d){var e=AAa(b!=null?b:"")+"/aloha_form_properties?productId="+a;BAa(e,function(g){g=g.target;var k=null;try{var m=JSON,n=m.stringify;if(g.JSC$7648_xhr_){var r=g.JSC$7648_xhr_.responseText;r.indexOf(")]}'\n")==0&&(r=r.substring(5));var t=(0,_.An)(r)}else t=void 0;k=tda(CAa,n.call(m,t))}catch(u){n=new CAa,t=DAa(),t=_.Bn(t,13,!1),t=_.Bn(t,14,!0),t=_.Bn(t,15,!0),t=_.Bn(t,20,!1),k=_.pd(n,1,t)}d(k)},"GET","",{},2E3,!0)}))})};
AAa=function(a){return oAa(a)?a:"https://www.google.com/tools/feedback"};
IAa=function(a){a=a.match(new RegExp(FAa,"gi"))||[];a=_.h(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;a:{var c=_.h(GAa);for(var d=c.next();!d.done;d=c.next())if(d.value.test(b)){c=!1;break a}c=!0}if(!c)a:{c=_.h(HAa);for(d=c.next();!d.done;d=c.next())if(d.value.test(b)){c=!0;break a}c=!1}if(c)return!0}return!1};
JAa=function(a){switch(a){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"}};
LAa=function(a){if(window.crypto&&window.crypto.getRandomValues)try{var b=Array(a),c=new Uint8Array(a);window.crypto.getRandomValues(c);for(var d=0;d<b.length;d++)b[d]=c[d];return b}catch(g){}b=Array(a);for(c=0;c<a;c++){d=Date.now();for(var e=0;e<d%23;e++)b[c]=Math.random();b[c]=Math.floor(Math.random()*256)}if(KAa)for(c=1,d=0;d<KAa.length;d++)b[c%a]^=b[(c-1)%a]/4^KAa.charCodeAt(d),c++;return b};
Cn=function(a){a=LAa(a);for(var b=[],c=0;c<a.length;c++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[c]&63));return b.join("")};
NAa=function(a){a&&_.zl("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:MAa,clientScreenNonce:a})};
OAa=function(a){return _.Ei("client-screen-nonce-store",{})[a===void 0?0:a]};
PAa=function(a,b){b=b===void 0?0:b;var c=_.Ei("client-screen-nonce-store");c||(c={},_.Bi("client-screen-nonce-store",c));c[b]=a};
QAa=function(a){a=a===void 0?0:a;return a===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+a};
RAa=function(a){return _.Ei(QAa(a===void 0?0:a))};
_.En=function(a){return(a=RAa(a===void 0?0:a))?new _.Dn({veType:a,youtubeData:void 0,jspbYoutubeData:void 0}):null};
SAa=function(){var a=_.Ei("csn-to-ctt-auth-info");a||(a={},_.Bi("csn-to-ctt-auth-info",a));return a};
TAa=function(){return Object.values(_.Ei("client-screen-nonce-store",{})).filter(function(a){return a!==void 0})};
_.Fn=function(a){a=OAa(a===void 0?0:a);if(!a&&!_.Gi("USE_CSN_FALLBACK",!0))return null;a||(a="UNDEFINED_CSN");return a?a:null};
VAa=function(a){for(var b=_.h(Object.values(UAa)),c=b.next();!c.done;c=b.next())if(_.Fn(c.value)===a)return!0;return!1};
WAa=function(a,b,c){var d=SAa();(c=_.Fn(c))&&delete d[c];b&&(d[a]=b)};
Gn=function(a){return SAa()[a]};
_.XAa=function(a,b,c,d){c=c===void 0?0:c;if(a!==OAa(c)||b!==_.Ei(QAa(c)))if(WAa(a,d,c),PAa(a,c),_.Bi(QAa(c),b),b=function(){setTimeout(function(){NAa(a)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(b)}catch(e){b()}else b()};
YAa=function(a,b){b=b===void 0?"":b;var c=[],d;for(d in a)if(a.hasOwnProperty(d)){var e=b!==""?b+"."+d:d;typeof a[d]==="object"?c.push.apply(c,_.Be(YAa(a[d],e))):c.push([e,a[d]])}c.sort();return c};
_.In=function(a){var b=_.Id.apply(1,arguments);if(!Hn(a)||b.some(function(d){return!Hn(d)}))throw Error("ef");
b=_.h(b);for(var c=b.next();!c.done;c=b.next())ZAa(a,c.value)};
ZAa=function(a,b){for(var c in b)if(Hn(b[c])){if(c in a&&!Hn(a[c]))throw Error("ff");c in a||(a[c]={});ZAa(a[c],b[c])}else if($Aa(b[c])){if(c in a&&!$Aa(a[c]))throw Error("gf");c in a||(a[c]=[]);aBa(a[c],b[c])}else a[c]=b[c];return a};
aBa=function(a,b){b=_.h(b);for(var c=b.next();!c.done;c=b.next())c=c.value,Hn(c)?a.push(ZAa({},c)):$Aa(c)?a.push(aBa([],c)):a.push(c);return a};
Hn=function(a){return typeof a==="object"&&!Array.isArray(a)};
$Aa=function(a){return typeof a==="object"&&Array.isArray(a)};
cBa=function(a){for(var b=_.h(Object.entries(bBa)),c=b.next();!c.done;c=b.next())if(c=_.h(c.value),c.next(),c=c.next().value,c==="SLI_STATUS_"+a)return c;return"SLI_STATUS_UNKNOWN"};
_.Jn=function(a,b,c,d){return dBa(a,b,function(){return new _.eBa(a,b,c,d)})};
_.fBa=function(){return _.Jn("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
gBa=function(){return _.Jn("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
Kn=function(){return _.Jn("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
hBa=function(){return _.Jn("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
iBa=function(){return _.Jn("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
jBa=function(){return _.Jn("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
mBa=function(a){a&&(a.dataset?a.dataset[kBa()]="true":_.Zd([_.cf(lBa)],a,"data-loaded","true".toString()))};
nBa=function(a){return a?a.dataset?a.dataset[kBa()]:a.getAttribute("data-loaded"):null};
kBa=function(){return oBa.loaded||(oBa.loaded="loaded".replace(/\-([a-z])/g,function(a,b){return b.toUpperCase()}))};
_.Ln=function(a,b,c){pBa(a,b,c===void 0?null:c)};
_.rBa=function(a,b){a&&b&&(a=""+_.ab(b),(a=qBa[a])&&_.xsa(a))};
pBa=function(a,b,c){c=c===void 0?null:c;var d=_.sBa(a),e=document.getElementById(d),g=e&&nBa(e),k=e&&!g;g?b&&b():(b&&(g=_.dl(d,b),b=""+_.ab(b),qBa[b]=g),k||(e=tBa(a,d,function(){nBa(e)||(mBa(e),_.ysa(d),_.dj(function(){_.Asa(d)},0))},c)))};
tBa=function(a,b,c,d){d=d===void 0?null:d;var e=_.lg("SCRIPT");e.id=b;e.onload=function(){c&&setTimeout(c,0)};
e.onreadystatechange=function(){switch(e.readyState){case "loaded":case "complete":e.onload()}};
d&&e.setAttribute("nonce",d);_.Xd(e,_.wg(a));a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(e,a.firstChild);return e};
_.sBa=function(a){var b=document.createElement("a");Ld(b,a);return"js-"+Mn(b.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.wBa=function(){var a=_.yf.clone(uBa),b;return(new _.kl(function(c,d){a.onSuccess=function(e){joa(e)?c(new vBa(e)):d(new _.Nn("Request failed, status="+cj(e),"net.badstatus",e))};
a.onError=function(e){d(new _.Nn("Unknown request error","net.unknown",e))};
a.onTimeout=function(e){d(new _.Nn("Request timed out","net.timeout",e))};
b=_.hj("//googleads.g.doubleclick.net/pagead/id",a)})).thenCatch(function(c){if(c instanceof _.On){var d;
(d=b)==null||d.abort()}return _.Pn(c)})};
xBa=function(a){var b=_.Ei("INNERTUBE_HOST_OVERRIDE");b&&(a=String(b)+String(_.Qn(a)));return a};
yBa=function(a){var b={};_.x("json_condensed_response")&&(b.prettyPrint="false");return a=Wna(a,b)};
_.Rn=function(a){return Ui(a)?"same-origin":"include"};
_.Sn=function(a){return Ui(a)?"same-origin":"cors"};
Tn=function(a,b,c){c=c===void 0?{}:c;a={method:b===void 0?"POST":b,mode:_.Sn(a),credentials:_.Rn(a)};b={};for(var d=_.h(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,c[e]&&(b[e]=c[e]);Object.keys(b).length>0&&(a.headers=b);return a};
_.Un=function(a,b){b=b===void 0?{}:b;return"service:"+a+"/"+Object.keys(b).sort().map(function(c){return c+":"+b[c]}).join("/")};
zBa=function(a){var b,c,d,e;a=(b=_.y(a,_.Vn))==null?void 0:(c=b.watchEndpointSupportedOnesieConfig)==null?void 0:(d=c.html5PlaybackOnesieConfig)==null?void 0:(e=d.commonConfig)==null?void 0:e.url;if(!a)return[];b=new _.Wn(a);return b.JSC$7879_domain_?["https://"+b.JSC$7879_domain_+"/generate_204"]:[]};
_.CBa=function(){return ABa()||Zoa()||BBa&&Bj("version/")?!0:_.Ei("EOM_VISITOR_DATA")?!1:!0};
DBa=function(a){var b=a.docid||a.video_id||a.videoId||a.id;if(b)return b;b=a.raw_player_response;b||(a=a.player_response)&&(b=JSON.parse(a));return b&&b.videoDetails&&b.videoDetails.videoId||null};
_.FBa=function(a){a:{var b="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(b="EMBEDDED_PLAYER_MODE_PFL");var c=a.raw_embedded_player_response;if(!c&&(a=a.embedded_player_response))try{c=JSON.parse(a)}catch(e){break a}if(c)b:for(var d in EBa)if(EBa[d]==c.embeddedPlayerMode){b=EBa[d];break b}}return b==="EMBEDDED_PLAYER_MODE_PFL"};
_.GBa=function(){if(_.x("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("lf");if(!_.CBa())return Error("mf");var a=_.Ei("PLAYER_VARS",{});if(_.yf.get(a,"privembed",!1)=="1")return Error("nf");if(_.FBa(a))return Error("of")};
HBa=function(a){return a.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
Xn=function(a){return!isNaN(Number(a))&&!_.qa(a)};
_.Zn=function(a,b,c,d){d=d===void 0?!0:d;var e=_.Ei("VALID_SESSION_TEMPDATA_DOMAINS",[]),g=_.Si(window.location.href);g&&e.push(g);g=_.Si(a);if(_.Pa(e,g)||!g&&_.na(a,"/"))if(e=document.createElement("a"),Ld(e,a),a=e.href)if(a=_.Qn(a),a=_.Yn(a))d&&!b.csn&&(b.itct||b.ved)&&(b=Object.assign({csn:_.Fn()},b)),c?(c=parseInt(c,10),isFinite(c)&&c>0&&IBa(a,b,c)):IBa(a,b)};
KBa=function(a){var b=_.Ei("VALID_SESSION_TEMPDATA_DOMAINS",[]),c=_.Si(window.location.href);c&&b.push(c);c=_.Si(a);if(!(_.Pa(b,c)||!c&&_.na(a,"/")))return null;a=_.Qn(a);(a=_.Yn(a))?(a=JBa(a),a=(a=_.lj.get(a,void 0)||null)?_.Ni(a):{}):a=null;return a};
IBa=function(a,b,c){a=JBa(a);b=b?_.ij(b):"";c=c||5;_.CBa()&&_.mj(a,b,c)};
JBa=function(a){for(var b=_.h(LBa),c=b.next();!c.done;c=b.next())a=_.$n(a,c.value);return"ST-"+Mn(a).toString(36)};
MBa=function(a,b){a.commandMetadata&&_.y(a.commandMetadata,_.ao)&&_.y(a.commandMetadata,_.ao).url&&(a=_.Oi(_.y(a.commandMetadata,_.ao).url).adurl)&&_.Yna(a)&&_.Zn(_.Qn(a),{encoded_ad_playback_context:b})};
_.NBa=function(a){if(a.requestFullscreen)a=a.requestFullscreen(void 0);else if(a.webkitRequestFullscreen)a=a.webkitRequestFullscreen();else if(a.mozRequestFullScreen)a=a.mozRequestFullScreen();else if(a.msRequestFullscreen)a=a.msRequestFullscreen();else if(a.webkitEnterFullscreen)a=a.webkitEnterFullscreen();else return Promise.reject(Error("qf"));return a instanceof Promise?a:Promise.resolve()};
_.co=function(a){var b;_.lsa(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.bo()==a&&(b=document):b=a;if(b&&(a=_.lsa(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],b))){a.call(b)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.bo=function(){var a=a===void 0?!1:a;var b=_.lsa(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(a)for(;b&&b.shadowRoot;)b=b.shadowRoot.fullscreenElement;return b?b:null};
_.eo=function(a,b){b=b===void 0?!0:b;a.addEventListener("wheel",OBa);a.overscrollConfig={cooldown:b}};
_.fo=function(a){a.overscrollConfig=void 0;a.removeEventListener("wheel",OBa)};
OBa=function(a){var b=a.deltaY,c=a.target,d=null;if(window.Polymer&&window.Polymer.Element){if(c=a.path||a.composedPath&&a.composedPath()){c=_.h(c);for(var e=c.next();!e.done&&(e=e.value,!PBa(e,b));e=c.next())if(e.overscrollConfig){d=e;break}}}else for(;c&&!PBa(c,b);){if(c.overscrollConfig){d=c;break}c=c.parentElement}d&&(b=d.overscrollConfig,b.cooldown?(d=a.deltaY,c=b.lastDeltaY||0,b.lastDeltaY=d,e=b.lastStopped||0,c&&e&&c>0==d>0?Math.abs(c)>=Math.abs(d)?(d=e+1200,c=!1):(d=e+600,c=!0):(d=Date.now()+
600,c=!0),d>Date.now()&&(a.preventDefault(),c&&(b.lastStopped=Date.now()))):a.preventDefault())};
PBa=function(a,b){return b<0&&a.scrollTop>0||b>0&&a.scrollTop<a.scrollHeight-a.clientHeight-1?(a=getComputedStyle(a).overflowY,a=="auto"||a=="scroll"):!1};
_.go=function(a,b,c,d){d||(d={bubbles:!0,cancelable:!1,composed:!0});c!==null&&c!==void 0&&(d.detail=c);b=new CustomEvent(b,d);a.dispatchEvent(b);return b};
_.ho=function(a,b,c,d){b=new QBa(b,!(d===void 0||!d),c);_.go(a,"yt-action",b);return b.returnValue};
_.ko=function(a,b,c){return _.ho(a,b,c,!0)};
_.lo=function(a,b,c){return _.ho(a,b,c)[0]};
_.no=function(a,b,c,d){b&&b.length&&b.forEach(function(e){var g=kua(e);g&&(_.x("handle_service_request_actions")&&e.commandMetadata&&e.commandMetadata.webCommandMetadata&&e.commandMetadata.webCommandMetadata.sendPost?_.mo(c?c:a,[e]):_.ko(a,g,[e,c,d]))})};
_.mo=function(a,b){var c=[a];b&&c.push.apply(c,b);b=_.ho(a,"yt-service-request",c);return b.length>0&&(b=b[0],_.go(a,"yt-service-request-sent",b),b&&b.ajaxPromise)?(b.ajaxPromise.then(function(d){_.go(a,"yt-service-request-completed",d)},function(d){_.go(a,"yt-service-request-error",{error:d,
params:c})},a),b.ajaxPromise):_.oo()};
_.qo=function(a,b){if(_.x("handle_service_request_actions"))_.no(b,a,b);else{a=_.h(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=void 0;((d=_.y(c,_.po))==null?0:d.commands)?_.qo(_.y(c,_.po).commands,b):(d=void 0,((d=_.y(c,_.ro))==null?0:d.actions)?_.qo(_.y(c,_.ro).actions,b):(d=void 0,((d=_.y(c.commandMetadata,_.ao))==null?0:d.sendPost)?_.mo(b,[c]):_.no(b,[c],b)))}}};
_.SBa=function(a,b,c){b=b===void 0?{}:b;typeof b==="function"&&(b={callback:b});c||b._c&&b._c.jsl&&b._c.jsl.h||_.yf.extend(b,{_c:{jsl:{h:_.Ei("GAPI_HINT_PARAMS")}}});(b.gapiHintOverride||_.Ei("GAPI_HINT_OVERRIDE"))&&(c=_.Oi(document.location.href).gapi_jsh)&&_.yf.extend(b,{_c:{jsl:{h:c}}});RBa(a,b)};
_.to=function(a,b,c){b=b===void 0?{}:b;a=(a=a in so?so[a]:c)||"";c={};for(var d in b){c={key$jscomp$781:c.key$jscomp$781};c.key$jscomp$781=d;var e=function(g){return function(){return String(b[g.key$jscomp$781])}}(c);
a=a.replace(new RegExp("\\$\\{"+c.key$jscomp$781+"\\}","gi"),e);a=a.replace(new RegExp("\\$"+c.key$jscomp$781,"gi"),e)}return a};
_.uo=function(a,b){return TBa(a in so?so[a]:{},b)};
TBa=function(a,b){var c=_.Ei("I18N_PLURAL_RULES");c||(c=function(d){return d==1?"one":"other"});
return(a=a["case"+b]||a[c(b)])?a.replace("#",b.toString()):b+""};
WBa=function(a){var b=UBa(a),c=document.getElementById(b),d=c&&nBa(c);d||c&&!d||(c=VBa(a,b,function(){if(!nBa(c)){mBa(c);_.ysa(b);var e=_.vo(_.Asa,b);_.dj(e,0)}}))};
VBa=function(a,b,c){var d=document.createElement("link");d.id=b;d.onload=function(){c&&setTimeout(c,0)};
a=_.wg(a);_.$d(d,a,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(d);return d};
UBa=function(a){var b=_.lg("A");Ld(b,Ad(a));return"css-"+Mn(b.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.YBa=function(a){var b=XBa();a!==b&&(b=_.wo(),!_.x("web_autonav_allow_off_by_default")&&a||_.xo(0,141,!0),_.xo(0,140,!a),b.save())};
XBa=function(){var a=_.wo();return _.x("web_autonav_allow_off_by_default")&&!a.getFlag(141)&&_.Ei("AUTONAV_OFF_BY_DEFAULT")?!1:!a.getFlag(140)};
ZBa=function(a,b){var c,d;a=((c=a.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(d=c.videoAuthorizationToken)==null?void 0:d.credentialTransferTokens)||[];for(c=0;c<a.length;++c)if(a[c].scope===b)return a[c].token||void 0};
$Ba=function(a){for(var b=0,c=0;c<a.length;c++)b=b*31+a.charCodeAt(c),c<a.length-1&&(b%=0x800000000000);return b%1E5};
_.yo=function(a){return _.Ji("ytcsi."+(a||"")+"data_")||aCa(a)};
_.bCa=function(a){a=_.yo(a);a.metadata||(a.metadata={});return a.metadata};
_.cCa=function(a){a=_.yo(a);a.tick||(a.tick={});return a.tick};
_.zo=function(a){a=_.yo(a);if(a.gel){var b=a.gel;b.gelInfos||(b.gelInfos={});b.gelTicks||(b.gelTicks={})}else a.gel={gelTicks:{},gelInfos:{}};return a.gel};
_.dCa=function(a){a=_.zo(a);a.gelInfos||(a.gelInfos={});return a.gelInfos};
eCa=function(a){var b=_.yo(a).nonce;b||(b=Cn(16),_.yo(a).nonce=b);return b};
aCa=function(a){var b={tick:{},info:{}};_.Rj("ytcsi."+(a||"")+"data_",b);return b};
fCa=function(){var a=_.Ji("ytcsi.debug");a||(a=[],_.Rj("ytcsi.debug",a),_.Rj("ytcsi.reference",{}));return a};
_.Ao=function(a){a=a||"";var b=gCa();if(b[a])return b[a];var c=fCa(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);return b[a]=d};
hCa=function(a){a=a||"";var b=gCa();b[a]&&delete b[a];var c=fCa(),d={timerName:a,info:{},tick:{},span:{},jspbInfo:[]};c.push(d);b[a]=d};
gCa=function(){var a=_.Ji("ytcsi.reference");if(a)return a;fCa();return _.Ji("ytcsi.reference")};
_.jCa=function(a){return iCa[a]||"LATENCY_ACTION_UNKNOWN"};
nCa=function(a,b,c){c=c===void 0?{}:c;var d=!1;_.Gi("ytLoggingEventsDefaultDisabled",!1)&&(d=!0);d=d?null:yl;c=c===void 0?{}:c;var e=Math.round(c.timestamp||(0,_.Uj)());_.sl(b,1,e<Number.MAX_SAFE_INTEGER?e:0);e=new kCa;if(c.lact)_.sl(e,1,isFinite(c.lact)?c.lact:-1);else if(c.timestamp)_.sl(e,1,-1);else{var g=_.$k();_.sl(e,1,isFinite(g)?g:-1)}if(c.sequenceGroup&&!_.x("web_gel_sequence_info_killswitch")){g=c.sequenceGroup;var k=Kta(g),m=new lCa;m.setIndex(k);_.sf(m,1,g);_.pd(e,3,m);c.endOfSequence&&
delete mCa[c.sequenceGroup]}_.pd(b,33,e);(c.sendIsolatedPayload?Qsa:Rsa)(a,{endpoint:"log_event",payload:b,cttAuthInfo:c.cttAuthInfo,dangerousLogToVisitorSession:c.dangerousLogToVisitorSession},d)};
_.Co=function(){return(_.x("csi_use_time_origin")||_.x("csi_use_time_origin_tvhtml5"))&&_.Bo.timeOrigin?Math.floor(_.Bo.timeOrigin):_.Bo.timing.navigationStart};
_.oCa=function(a,b){_.Do("_start",a,b)};
_.Eo=function(a,b){if(!_.x("web_csi_action_sampling_enabled")||!_.yo(b).actionDisabled){var c=_.Ao(b||"");_.In(c.info,a);a.loadType&&(c=a.loadType,_.bCa(b).loadType=c);_.In(_.dCa(b),a);c=eCa(b);b=_.yo(b).cttAuthInfo;pCa().info(a,c,b)}};
qCa=function(){var a,b,c,d;return((d=_.v().resolve(_.Wi(vl))==null?void 0:(a=Jta())==null?void 0:(b=a.loggingHotConfig)==null?void 0:(c=b.csiConfig)==null?void 0:c.debugTicks)!=null?d:[]).map(function(e){return Object.values(e)[0]})};
_.Do=function(a,b,c){if(!_.x("web_csi_action_sampling_enabled")||!_.yo(c).actionDisabled){var d=eCa(c),e;if(e=_.x("web_csi_debug_sample_enabled")&&d){(_.v().resolve(_.Wi(vl))==null?0:Jta())&&!rCa&&(rCa=!0,_.Do("gcfl",(0,_.Uj)(),c));var g,k,m;e=(_.v().resolve(_.Wi(vl))==null?void 0:(g=Jta())==null?void 0:(k=g.loggingHotConfig)==null?void 0:(m=k.csiConfig)==null?void 0:m.debugSampleWeight)||0;if(g=e!==0)b:{g=qCa();if(g.length>0)for(k=0;k<g.length;k++)if(a===g[k]){g=!0;break b}g=!1}g?(e=$Ba(d)%e!==0,
_.yo(c).debugTicksExcludedLogged||(g={},g.debugTicksExcluded=e,_.Eo(g,c)),_.yo(c).debugTicksExcludedLogged=!0):e=!1}if(!e){a[0]!=="_"&&sCa(a,c,b);e=_.Ao(c||"");e.tick[a]=b||(0,_.Uj)();if(e.callback&&e.callback[a])for(e=_.h(e.callback[a]),g=e.next();!g.done;g=e.next())g=g.value,g();e=_.zo(c);e.gelTicks&&(e.gelTicks[a]=!0);g=_.cCa(c);e=b||(0,_.Uj)();_.x("log_repeated_ytcsi_ticks")?a in g||(g[a]=e):g[a]=e;g=_.yo(c).cttAuthInfo;a==="_start"?pCa().baseline(d,b,g):pCa().tick(a,d,b,g);_.tCa(c);return e}}};
sCa=function(a,b,c){if(_.Bo.mark)if(a.startsWith("mark_")||(a="mark_"+a),b&&(a+=" ("+b+")"),c===void 0||_.x("web_csi_disable_alt_time_performance_mark"))_.Bo.mark(a);else{c=_.x("csi_use_performance_navigation_timing")||_.x("csi_use_performance_navigation_timing_tvhtml5")?c-_.Bo.timeOrigin:c-(_.Bo.timeOrigin||_.Bo.timing.navigationStart);try{_.Bo.mark(a,{startTime:c})}catch(d){}}};
uCa=function(){var a,b=(a=_.Bo.getEntriesByType)==null?void 0:a.call(_.Bo,"mark");b&&b.forEach(function(c){if(c.name.startsWith("mark_")){var d;(d=_.Bo.clearMarks)==null||d.call(_.Bo,c.name)}})};
_.vCa=function(){switch(ksa()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.wCa=function(a){var b={},c=function(g,k,m){k=k.match("_rid")?k.split("_rid")[0]:k;typeof m==="number"&&(m=JSON.stringify(m));g.requestIds?g.requestIds.push({endpoint:k,id:m}):g.requestIds=[{endpoint:k,id:m}]};
a=_.h(Object.entries(a));for(var d=a.next();!d.done;d=a.next()){var e=_.h(d.value);d=e.next().value;e=e.next().value;switch(d){case "GetBrowse_rid":c(b,d,e);break;case "GetGuide_rid":c(b,d,e);break;case "GetHome_rid":c(b,d,e);break;case "GetPlayer_rid":c(b,d,e);break;case "GetSearch_rid":c(b,d,e);break;case "GetSettings_rid":c(b,d,e);break;case "GetTrending_rid":c(b,d,e);break;case "GetWatchNext_rid":c(b,d,e);break;case "yt_red":b.isRedSubscriber=!!e;break;case "yt_ad":b.isMonetized=!!e}}return b};
yCa=function(a,b,c,d,e,g){if(!_.x("web_csi_action_sampling_enabled")||!_.yo(g).actionDisabled){var k=_.zo(g);if(k.gelSpans)k.gelSpans[a]=!0;else{var m={};k.gelSpans=(m[a]=!0,m)}xCa++;a={spanName:a,spanLengthUsec:String(Math.round(b*1E3)),spanNonce:xCa};d&&(a.spanInfo=d);e&&(a.parentSpanNonce=e);c&&(a.spanStartTimeUsec=String(Math.round(c*1E3)));_.Ao(g||"").span[String(a.spanName)]=a;c=_.zo(g);c.gelSpans||(c.gelSpans={});_.In(c.gelSpans,a);c=eCa(g);g=_.yo(g).cttAuthInfo;pCa().span(a,c,g);return a.spanNonce}};
_.zCa=function(a){var b=_.Fo("aft",a);if(b)return b;b=_.Ei((a||"")+"TIMING_AFT_KEYS",["ol"]);for(var c=b.length,d=0;d<c;d++){var e=_.Fo(b[d],a);if(e)return e}return NaN};
_.ACa=function(a,b){_.Rj("ytglobal.timing"+(b||"")+"ready_",a)};
_.Fo=function(a,b){if(a=_.cCa(b)[a])return typeof a==="number"?a:a[a.length-1]};
_.tCa=function(a){var b=_.Fo("_start",a),c=_.zCa(a),d=!BCa;b&&c&&d&&(Lqa(CCa,new DCa(Math.round(c-b),a)),BCa=!0)};
FCa=function(a){aCa(a);ECa();uCa();a||(_.Ei("TIMING_ACTION")&&_.Bi("PREVIOUS_ACTION",_.Ei("TIMING_ACTION")),_.Bi("TIMING_ACTION",""))};
_.GCa=function(a){a=a===void 0?{}:a;_.Ii(function(){Go();hCa();FCa();_.ACa(!1);a.cttAuthInfo&&(_.yo().cttAuthInfo=a.cttAuthInfo);_.Bi("TIMING_AFT_KEYS",[]);a.isHot?_.Ho({loadType:"hot"}):_.Ho({loadType:"warm"});_.Bi("TIMING_ACTION","");delete _.Ei("TIMING_INFO",{}).yt_lt;_.Ii(_.oCa)(a.startTime,void 0)})()};
_.Io=function(a,b,c,d){b=b===void 0?{}:b;_.Ii(function(){var e=c?c:a;HCa(e);var g=b.sampleRate;if(!_.x("web_csi_action_sampling_enabled")||g===void 0||g<=1)g=!1;else{var k=eCa(e);g=$Ba(k)%g!==0}g&&(_.yo(e).actionDisabled=!0);_.Ao(e||"").info.actionType=a;b.cttAuthInfo&&(_.yo(e).cttAuthInfo=b.cttAuthInfo);_.Bi(e+"TIMING_ACTION",a);_.Ii(_.oCa)(b.startTime,e);g={actionType:d||_.jCa(a)};b.logPreviousAction&&(g.previousAction=_.jCa(_.Ei("TIMING_ACTION")));(k=_.Fn())&&k!=="UNDEFINED_CSN"&&(g.clientScreenNonce=
k);_.Ho(g,e);_.ACa(!0,e)})()};
HCa=function(a){_.Ii(function(){Go(a);hCa(a);FCa(a)})()};
ICa=function(){_.Ii(function(){var a=[],b;for(b in _.Ji("ytcsi.".slice(0,-1)))b.endsWith("data_")&&a.push(b.slice(0,-5));a=_.h(a);for(b=a.next();!b.done;b=a.next())HCa(b.value);Go()})()};
_.KCa=function(a){return _.Ii(function(){return _.JCa("_start",a)})()};
_.Ho=function(a,b,c){_.Ii(_.Eo)(a,b,c===void 0?!1:c)};
_.Jo=function(a,b,c){return _.Ii(_.Do)(a,b,c)};
LCa=function(a,b,c,d){var e=(0,_.Uj)();return function(g,k){var m=void 0;b&&g?m=Object.assign({},b,g):b?m=b:g&&(m=g);g=(0,_.Uj)()-e;_.Ii(yCa)(a,g,e,m,k||c,d)}};
_.JCa=function(a,b){return _.Ii(function(){var c=_.cCa(b);return a in c})()};
NCa=function(a){if(!_.x("universal_csi_network_ticks"))return"";a=_.gj(a)||"";for(var b=Object.keys(MCa),c=0;c<b.length;c++){var d=b[c];if(a.includes(d))return d}return""};
PCa=function(a){if(!_.x("universal_csi_network_ticks"))return function(){};
var b=MCa[a];return b?(_.Ko(b),function(){var c=_.x("universal_csi_network_ticks")?(c=OCa[a])?_.Ko(c):!1:!1;return c}):function(){}};
_.Ko=function(a,b,c){return _.Ii(function(){if(_.JCa(a,c))return!1;_.Jo(a,b,c);return!0})()};
_.Lo=function(a,b,c){_.Ii(function(){if(!_.KCa(c)||_.JCa(a,c))return!1;_.Jo(a,b,c);return!0})()};
_.Mo=function(a){return _.Ii(_.Fo)(a,void 0)};
Go=function(a){_.KCa(a)&&_.Jo("aa",void 0,a)};
_.UCa=function(a,b,c,d,e,g,k,m,n){var r=QCa();m=new _.Dn({veType:b,youtubeData:g,jspbYoutubeData:m});g=No({},r);e&&(g.cttAuthInfo=e);e={csn:r,pageVe:m.getAsJson()};_.x("expectation_logging")&&n&&n.screenCreatedLoggingExpectations&&(e.screenCreatedLoggingExpectations=n.screenCreatedLoggingExpectations);c&&c.visualElement?(e.implicitGesture={parentCsn:c.clientScreenNonce,gesturedVe:c.visualElement.getAsJson()},k&&(e.implicitGesture.gestureType=k)):c&&_.Dl(new _.qj("newScreen() parent element does not have a VE - rootVe",
b));d&&(e.cloneCsn=d);a?xl("screenCreated",e,a,g):_.zl("screenCreated",e,g);Lqa(Sqa,new RCa(r));Oo.clear();SCa.clear();TCa.clear();return r};
Po=function(a,b,c,d,e){_.VCa(a,b,c,[d],e===void 0?!1:e)};
_.VCa=function(a,b,c,d,e){e=e===void 0?!1:e;for(var g=No({cttAuthInfo:Gn(b)||void 0},b),k=_.h(d),m=k.next();!m.done;m=k.next()){m=m.value;var n=m.getAsJson();(_.yf.isEmpty(n)||!n.trackingParams&&!n.veType)&&_.Dl(Error("rf"));if(_.x("no_client_ve_attach_unless_shown")){var r=WCa(m,b);if(n.veType&&!SCa.has(r)&&!TCa.has(r)&&!e){if(!_.x("il_attach_cache_limit")||Oo.size<1E3){Oo.set(r,[a,b,c,m]);return}_.x("il_attach_cache_limit")&&Oo.size>1E3&&_.Dl(new _.qj("IL Attach cache exceeded limit"))}m=WCa(c,
b);Oo.has(m)?XCa(c,b):TCa.set(m,!0)}}d=d.filter(function(t){t.csn!==b?(t.csn=b,t=!0):t=!1;return t});
c={csn:b,parentVe:c.getAsJson(),childVes:_.zf(d,function(t){return t.getAsJson()})};
b==="UNDEFINED_CSN"?Qo("visualElementAttached",g,c):a?xl("visualElementAttached",c,a,g):_.zl("visualElementAttached",c,g)};
ZCa=function(a,b,c,d,e){YCa(a,b,c,e)};
YCa=function(a,b,c,d){$Ca(c,b);var e=No({cttAuthInfo:Gn(b)||void 0},b);c={csn:b,ve:c.getAsJson(),eventType:1};d&&(c.clientData=d);b==="UNDEFINED_CSN"?Qo("visualElementShown",e,c):a?xl("visualElementShown",c,a,e):_.zl("visualElementShown",c,e)};
aDa=function(a,b,c,d){$Ca(c,b);var e=No({cttAuthInfo:Gn(b)||void 0},b);c={csn:b,ve:c.getAsJson(),eventType:4};d&&(c.clientData=d);b==="UNDEFINED_CSN"?Qo("visualElementShown",e,c):a?xl("visualElementShown",c,a,e):_.zl("visualElementShown",c,e)};
bDa=function(a,b,c,d,e){var g=(d=d===void 0?!1:d)?16:8;d=No({cttAuthInfo:Gn(b)||void 0,endOfSequence:d},b);c={csn:b,ve:c.getAsJson(),eventType:g};e&&(c.clientData=e);b==="UNDEFINED_CSN"?Qo("visualElementHidden",d,c):a?xl("visualElementHidden",c,a,d):_.zl("visualElementHidden",c,d)};
dDa=function(a,b,c,d,e){cDa(a,b,c,void 0,d,e)};
cDa=function(a,b,c,d,e){$Ca(c,b);d=d||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var g=No({cttAuthInfo:Gn(b)||void 0},b);c={csn:b,ve:c.getAsJson(),gestureType:d};e&&(c.clientData=e);b==="UNDEFINED_CSN"?Qo("visualElementGestured",g,c):a?xl("visualElementGestured",c,a,g):_.zl("visualElementGestured",c,g)};
eDa=function(a,b,c,d){var e=No({cttAuthInfo:Gn(b)||void 0},b);c={csn:b,ve:c.getAsJson(),clientData:d};b==="UNDEFINED_CSN"?Qo("visualElementStateChanged",e,c):a?xl("visualElementStateChanged",c,a,e):_.zl("visualElementStateChanged",c,e)};
fDa=function(){var a=LAa(16);for(var b=[],c=0;c<a.length;c++)b.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(a[c]&63));return b.join("")};
Qo=function(a,b,c){gDa.push({payloadName:a,payload:c,jspbPayload:void 0,options:b});hDa||(hDa=Uqa())};
Rqa=function(a){if(gDa){for(var b=_.h(gDa),c=b.next();!c.done;c=b.next())c=c.value,c.payload&&(c.payload.csn=a.csn,_.zl(c.payloadName,c.payload,c.options));gDa.length=0}hDa=0};
WCa=function(a,b){return""+a.getAsJson().veType+a.getAsJson().veCounter+b};
$Ca=function(a,b){if(_.x("no_client_ve_attach_unless_shown")){var c=WCa(a,b);SCa.set(c,!0);XCa(a,b)}};
XCa=function(a,b){a=WCa(a,b);Oo.has(a)&&(b=Oo.get(a)||[],Po(b[0],b[1],b[2],b[3],!0),Oo.delete(a))};
No=function(a,b){_.x("log_sequence_info_on_gel_web")&&(a.sequenceGroup=b);return a};
_.Ro=function(a,b,c){_.Ii(Po)(void 0,a,b,c)};
_.So=function(a,b){_.Ii(ZCa)(void 0,a,b,void 0,void 0,void 0)};
_.To=function(a,b,c){_.Ii(function(){_.Mi(b,function(d){aDa(void 0,a,d,c)})})()};
_.Uo=function(a,b,c,d){_.Ii(function(){_.Mi(b,function(e){bDa(void 0,a,e,c,d)})})()};
_.Vo=function(a,b,c){_.Ii(dDa)(void 0,a,b,c,void 0)};
_.Wo=function(a,b,c,d){_.Ii(cDa)(void 0,a,b,c,d,void 0)};
_.Xo=function(a,b,c){_.Ii(eDa)(void 0,a,b,c,void 0)};
iDa=function(a,b){Yo.set(a,b)};
jDa=function(a,b){var c=Object.keys(a);a=new _.qj("[Command Handler] "+b,{filteredCommandNames:c,originalCommand:a});_.Bl(a)};
kDa=function(a,b){jDa(a,b+" was called but not set")};
mDa=function(a){return function(){return new a}};
Zo=function(a){return function(){return _.v().resolve(a)}};
nDa=function(a,b){var c=_.y(a,_.Kl);if(c&&(c=b[c.signal]))return c();a=_.h(Object.keys(a));for(c=a.next();!c.done;c=a.next())if(c=c.value,b[c]&&(c=b[c]))return c()};
bp=function(a,b,c,d){return{browseEndpoint:{browseId:a},commandMetadata:{webCommandMetadata:{url:b,rootVe:c,webPageType:d===void 0?"WEB_PAGE_TYPE_BROWSE":d}}}};
oDa=function(a,b,c){var d=b=b===void 0?0:b;c=c===void 0?0:c;var e=c-d;return _.cp(a,"PPSV",void 0,void 0,(e>600?0:e<60||c<=0||d/c>.9)?0:b)};
_.cp=function(a,b,c,d,e){var g="/watch?v="+a;a={videoId:a};b&&(a.playlistId=b,g+="&list="+b);d&&(g+="&pp="+d);e&&(a.startTimeSeconds=e,g+="&t="+e+"s");b={watchEndpoint:a,commandMetadata:{webCommandMetadata:{url:g,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};c&&(b.clickTrackingParams=c);d&&(_.y(b,_.Vn).playerParams=d);return b};
pDa=function(a){return{browseEndpoint:{browseId:"VL"+a},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+a,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
qDa=function(a){if(a){var b;if(a){var c=(b=_.y(a.commandMetadata,_.ao))==null?void 0:b.url;b=!(!c||c==="/service_ajax")}else b=!1;if(b)return a;var d;if(a=(d=_.y(a,_.po))==null?void 0:d.commands)for(d=_.h(a),a=d.next();!a.done;a=d.next())if(a=qDa(a.value))return a}};
_.dp=function(a){return{runs:[{text:a}]}};
rDa=function(a,b){return a&&b?{runs:[{text:a,navigationEndpoint:b}]}:void 0};
ep=function(a){return a?_.dp(a):void 0};
_.fp=function(a){return a?{simpleText:a}:void 0};
_.gp=function(a){var b=a.type;a=a.payload;b={type:b};a!==void 0&&(b.payload=a);return b};
sDa=function(a,b,c){for(var d=Object.assign({},a),e=_.h(Object.keys(b)),g=e.next();!g.done;g=e.next()){g=g.value;var k=a[g],m=b[g];if(m===void 0)delete d[g];else if(k===void 0)d[g]=m;else if(Array.isArray(m)&&Array.isArray(k))d[g]=c?[].concat(_.Be(k),_.Be(m)):m;else if(!Array.isArray(m)&&_.$a(m)&&!Array.isArray(k)&&_.$a(k))d[g]=sDa(k,m,c);else if(typeof m===typeof k)d[g]=m;else return b=new _.qj("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:g,originalValue:k,updateValue:m}),
_.Bl(b),a}return d};
vDa=function(a){if(!a.length)return"";try{if(tDa)return tDa.decode(a);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(a)}catch(k){}for(var b=0,c=[],d=a.length;b<d;){for(var e=0;e<1024&&b<d;){var g=a[b++];if(g<128)uDa[e++]=g;else{if(g<224)g=(g&31)<<6|a[b++]&63;else if(g<240)g=(g&15)<<12|(a[b++]&63)<<6|a[b++]&63;else{if(e+1===1024){--b;break}g=(g&7)<<18|(a[b++]&63)<<12|(a[b++]&63)<<6|a[b++]&63;g-=65536;uDa[e++]=55296|g>>10;g=56320|g&1023}uDa[e++]=g}}g=String.fromCharCode.apply(String,
uDa);e<1024&&(g=g.substring(0,e));c.push(g)}return c.join("")};
xDa=function(a,b){var c;if((c=wDa)==null?0:c.encodeInto)return b=wDa.encodeInto(a,b),b.read<a.length?a.length*4:b.written;for(var d=c=0;d<a.length;d++){var e=a.charCodeAt(d);e<128?b[c++]=e:(e<2048?b[c++]=e>>6|192:((e&64512)===55296&&d+1<a.length&&(a.charCodeAt(d+1)&64512)===56320?(e=65536+((e&1023)<<10)+(a.charCodeAt(++d)&1023),b[c++]=e>>18|240,b[c++]=e>>12&63|128):b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}return c};
yDa=function(a,b){a=new Uint8Array(a);b&&a.set(b);return a};
_.ip=function(a){a=new zDa(new ADa([_.db(decodeURIComponent(a))]));if(BDa(a,2)){var b=hp(a);var c=a.pos;c=a.arrayView.getDataView(c===void 0?0:c,b===void 0?-1:b);c=new Uint8Array(c.buffer,c.byteOffset,c.byteLength);a.pos+=b;b=c}else b=void 0;b=b?vDa(b):void 0;a=BDa(a,4)?hp(a):void 0;c=CDa[a];if(typeof c==="undefined")throw a=new _.qj("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:a}),_.Bl(a),a;return{entityTypeFieldNumber:a,entityType:c,entityId:b}};
_.lp=function(a,b,c){c=c===void 0?0:c;var d=new DDa;if(wDa)a=wDa.encode(a);else{var e=new Uint8Array(Math.ceil(a.length*1.2)),g=xDa(a,e);e.length<g&&(e=new Uint8Array(g),g=xDa(a,e));e.length>g&&(e=e.subarray(0,g));a=e}a!==void 0&&(jp(d,18),e=a.length,jp(d,e),kp(d,e),d.buf.set(a,d.pos),d.pos+=e);a=EDa[b];if(typeof a==="undefined")throw c=new _.qj("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:b}),_.Bl(c),c;a!==void 0&&(jp(d,32),jp(d,a));jp(d,40);jp(d,1);b=new Uint8Array(d.buf.buffer,
d.buf.byteOffset,d.pos);return encodeURIComponent(_.wc(b,c))};
FDa=function(a){a=a.key||a.id;if(!a)throw Error("uf");return a};
HDa=function(a,b){a=a===void 0?{}:a;return GDa(a,b)};
IDa=function(a,b,c,d){if(d===void 0)return d=Object.assign({},a[b]||{}),c=(delete d[c],d),d={},Object.assign({},a,(d[b]=c,d));var e={},g={};return Object.assign({},a,(g[b]=Object.assign({},a[b],(e[c]=d,e)),g))};
JDa=function(a,b,c,d,e){var g=a[b];if(g==null||!g[c])return a;d=sDa(g[c],d,e==="REPEATED_FIELDS_MERGE_OPTION_APPEND");e={};g={};return Object.assign({},a,(g[b]=Object.assign({},a[b],(e[c]=d,e)),g))};
_.mp=function(a,b,c){return a[b]?a[b][c]||null:null};
LDa=function(){if(KDa)return KDa();var a={};KDa=Tj("PersistentEntityStoreDb",{objectStores:(a.EntityStore={addedAtVersion:1},a.EntityAssociationStore={addedAtVersion:2},a),shared:!1,upgrade:function(b,c){c(1)&&Hk(Gk(b,"EntityStore",{keyPath:"key"}),"entityType","entityType");c(2)&&(b=Gk(b,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),Hk(b,"byParentEntityKey","parentEntityKey"),Hk(b,"byChildEntityKey","childEntityKey"))},
version:3});return KDa()};
MDa=function(a){return _.Lj(LDa(),a)};
np=function(a){return window.Int32Array?new Int32Array(a):Array(a)};
ODa=function(a){return _.Lj(NDa(),a)};
PDa=function(a){return new op("WRONG_DATA_TYPE",{encoderVersion:a})};
QDa=function(a){return a instanceof Error?new op("UNKNOWN_ENCODE_ERROR",{originalMessage:a.message}):new op("UNKNOWN_ENCODE_ERROR")};
RDa=function(a){return a instanceof Error?new op("UNKNOWN_DECODE_ERROR",{originalMessage:a.message}):new op("UNKNOWN_DECODE_ERROR")};
SDa=function(a,b){a=a instanceof op?a:b(a);_.Bl(a);throw a;};
TDa=function(a){a=(new TextEncoder).encode(a).subarray(0,16);var b=new Uint8Array(16);b.set(a);return b};
VDa=function(a){var b=UDa[a];if(b)return b;_.Dl(new _.qj("Entity model not found.",{entityType:a}))};
_.qp=function(){WDa||(WDa=XDa());return WDa};
XDa=function(){var a,b,c;return _.l(function(d){if(d.nextAddress==1)return _.me(d,2),_.p(d,_.Sj(),4);if(d.nextAddress!=2){a=d.yieldResult;if(!a||!_.pj()||typeof _.ja.BroadcastChannel==="undefined")return d.return();b=new YDa;return d.return(new rp(a,b))}c=_.re(d);c instanceof Error&&_.Bl(c);return d.return()})};
_.sp=function(a,b){var c;return _.l(function(d){if(d.nextAddress==1){c=a.mutations;if(!c||c.length<=0)return d.return();b&&b.dispatch(_.gp({type:"ENTITY_LOADED",payload:c}));return _.p(d,ZDa(c),2)}c.length=0;_.se(d)})};
ZDa=function(a){var b;return _.l(function(c){return c.nextAddress==1?_.p(c,_.qp(),2):(b=c.yieldResult)?_.p(c,_.tp(b,"readwrite",function(d){for(var e={},g=_.h(a),k=g.next(),m={};!k.done;m={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},k=g.next())m.mutation$jscomp$4=k.value,m.mutation$jscomp$4.entityKey&&$Da(m.mutation$jscomp$4)&&(m.mutationEntityType$jscomp$3=(0,_.yf.getAnyKey)(m.mutation$jscomp$4.payload),k=void 0,m.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(k=function(n){return function(){return _.aEa(d,
n.mutation$jscomp$4.payload[n.mutationEntityType$jscomp$3],n.mutationEntityType$jscomp$3)}}(m)),m.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(k=function(n){return function(){return bEa(d,n.mutation$jscomp$4.entityKey)}}(m)),m.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(k=function(n){return function(){return cEa(d,n.mutation$jscomp$4.entityKey,n.mutation$jscomp$4.payload[n.mutationEntityType$jscomp$3],n.mutationEntityType$jscomp$3)}}(m)),k&&(e[m.mutation$jscomp$4.entityKey]=
e[m.mutation$jscomp$4.entityKey]?e[m.mutation$jscomp$4.entityKey].then(k):k()));
return Fj.all(Object.values(e))}),0):c.return()})};
$Da=function(a){var b;a=(b=a.options)==null?void 0:b.persistenceOption;return a==="ENTITY_PERSISTENCE_OPTION_PERSIST"||a==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
fEa=function(a,b){var c,d;_.l(function(e){if(e.nextAddress==1)return _.p(e,_.qp(),2);if(e.nextAddress!=3)return(c=e.yieldResult)?_.p(e,_.tp(c,"readonly",function(g){var k={},m=Object.keys(b).map(function(n){var r=b[n]?[].concat(_.Be(b[n])):[];return dEa(g,n,r,k)});
return Fj.all(m).then(function(){return k})}),3):e.return();
d=e.yieldResult;Object.keys(d).length>0&&a.dispatch(eEa(d));_.se(e)})};
dEa=function(a,b,c,d){return up(a,b,c).then(function(e){d[b]=gEa(c,e)})};
gEa=function(a,b){if(b.length!==a.length)throw Error("xf");return b.reduce(function(c,d,e){c[a[e]]=d;return c},{})};
jEa=function(a){var b=a.filter(function(e){var g;return(e==null?void 0:(g=e.transferEntity)==null?void 0:g.transferState)==="TRANSFER_STATE_COMPLETE"}).length,c=a.filter(function(e){var g;
return(e==null?void 0:(g=e.transferEntity)==null?void 0:g.transferState)==="TRANSFER_STATE_FAILED"}).length,d=a.filter(function(e){var g;
return(e==null?void 0:(g=e.transferEntity)==null?void 0:g.transferState)&&hEa.includes(e.transferEntity.transferState)});
if(!(b||d!=null&&d.length))return 0;b=_.iEa(d)+b;a=a.length-c;return a===0?0:Math.round(b*100/a)/100};
_.iEa=function(a){var b=[];b=b.concat.apply(b,_.Be(a.filter(function(g){return g.streamEntity}).map(function(g){var k=Object.assign({},g.streamEntity),m,n=(m=g.transferEntity)==null?void 0:m.transferState;
k.streamsProgress=k.streamsProgress||[];k.streamsProgress=k.streamsProgress.map(function(r){var t=Object.assign({},r);t.numBytesDownloaded=n==="TRANSFER_STATE_COMPLETE"?r.numTotalBytes:r.numBytesDownloaded;return t});
return k}).map(function(g){return g.streamsProgress})));
var c=a=0;b=_.h(b);for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=Number(e.numBytesDownloaded);e=Number(e.numTotalBytes);c+=isNaN(d)?0:d;a+=isNaN(e)?0:e}return a===0?0:Math.round(c*100/a)/100};
kEa=function(a){if(!a||!a.expirationTimestamp||!a.action)return!1;var b=(0,_.Uj)()/1E3;return Number(a.expirationTimestamp)>=b};
vp=function(a){return a&&a.expirationTimestamp&&a.action?kEa(a)&&a.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.wp=function(a){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(a||"TRANSFER_STATE_UNKNOWN")};
lEa=function(a){var b=new DDa;if(a!==void 0){var c=Math.ceil(Math.log2(a.length*4+2)/7);c=c===void 0?2:c;jp(b,10);b.submessagePosStack.push(b.pos);b.submessagePosStack.push(c);b.pos+=c;kp(b,a.length*1.2);c=xDa(a,b.buf.subarray(b.pos));b.pos+c>b.buf.length&&(kp(b,c),c=xDa(a,b.buf.subarray(b.pos)));b.pos+=c;a=b.submessagePosStack.pop();c=b.submessagePosStack.pop();for(var d=b.pos-c-a;a--;){var e=a?128:0;b.view.setUint8(c++,d&127|e);d>>=7}}b=new Uint8Array(b.buf.buffer,b.buf.byteOffset,b.pos);return(new TextDecoder("utf-8")).decode(b)};
_.mEa=function(a){var b=0;a=_.h(a);for(var c=a.next(),d={};!c.done;d={transferState$jscomp$3:void 0},c=a.next()){var e=c.value,g=void 0;c=(g=e.streamEntity)!=null?g:{};g=void 0;d.transferState$jscomp$3=(g=e.transferEntity)==null?void 0:g.transferState;g=e=void 0;((e=c)==null?0:(g=e.streamsProgress)==null?0:g.length)&&c.streamsProgress.forEach(function(k){return function(m){m=Number(k.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?m.numTotalBytes:m.numBytesDownloaded);isFinite(m)&&(b+=m)}}(d))}return b};
nEa=function(a){return a.some(function(b){var c;if(!(b==null?0:(c=b.transferEntity)==null?0:c.transferState)){var d;return!(b==null?0:(d=b.policyEntity)==null?0:d.action)||b.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return hEa.includes(b.transferEntity.transferState)})};
oEa=function(a,b){if(!b)return!1;if(_.x("of_pb_en_po_ks"))return!0;var c;a=(c=_.mp(a,"offlineVideoPolicy",_.lp(b,"offlineVideoPolicy")))!=null?c:void 0;return!!a&&vp(a)};
_.qEa=function(a){var b=["TRANSFER_STATE_COMPLETE"];b=b===void 0?pEa:b;return a.filter(function(c){var d,e;return b.includes((e=(d=c.transferEntity)==null?void 0:d.transferState)!=null?e:"TRANSFER_STATE_UNKNOWN")})};
rEa=function(a,b){if(b){var c,d=(c=_.mp(a,"playbackData",_.lp(b,"playbackData")))!=null?c:null,e;c=(e=_.mp(a,"transfer",_.lp(b,"transfer")))!=null?e:null;var g;e=(g=_.mp(a,"offlineVideoStreams",_.lp(b,"offlineVideoStreams")))!=null?g:null;var k;a=(k=_.mp(a,"offlineVideoPolicy",_.lp(b,"offlineVideoPolicy")))!=null?k:null;if(d||c||e||a)return{playbackDataEntity:d,transferEntity:c,streamEntity:e,policyEntity:a}}};
_.xp=function(a){var b=a.playbackData;if(!b)return[];var c=[];b=_.h(Object.keys(b));for(var d=b.next();!d.done;d=b.next()){var e=d.value;if(!sEa(a,_.ip(e).entityId)&&(d=rEa(a,_.ip(e).entityId))){var g=void 0,k=void 0;e=(k=Number((g=_.mp(a,"playbackData",e))==null?void 0:g.streamDownloadTimestampSeconds))!=null?k:(0,_.Uj)();c.push({entity:d,streamDownloadTimestamp:e})}}return c.sort(function(m,n){var r=m.streamDownloadTimestamp,t=n.streamDownloadTimestamp;return t===r?m.entity.streamEntity&&!n.entity.streamEntity?
1:-1:t-r}).map(function(m){return m.entity})};
tEa=function(a){return _.qEa(_.xp(a))};
_.uEa=function(a){return _.xp(a).filter(function(b){var c;if(((c=b.policyEntity)==null?0:c.action)&&b.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var d;if((d=b.transferEntity)==null?0:d.transferState){var e;return hEa.includes((e=b.transferEntity)==null?void 0:e.transferState)}return!0})};
sEa=function(a,b){var c;return((c=_.mp(a,"downloadStatusEntity",_.lp(b,"downloadStatusEntity")))==null?void 0:c.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
vEa=function(a){var b;if(a==null?0:(b=a.playbackDataEntity)==null?0:b.key)return _.ip(a.playbackDataEntity.key).entityId;var c;if(a==null?0:(c=a.transferEntity)==null?0:c.key)return _.ip(a.transferEntity.key).entityId;var d;if(a==null?0:(d=a.streamEntity)==null?0:d.key)return _.ip(a.streamEntity.key).entityId;var e;if(a==null?0:(e=a.policyEntity)==null?0:e.key)return _.ip(a.policyEntity.key).entityId};
xEa=function(a){var b=new Set,c;a=(c=a.mainDownloadsListEntity)==null?void 0:c[wEa];var d;if(!(a==null?0:(d=a.downloads)==null?0:d.length))return b;var e;a==null||(e=a.downloads)==null||e.forEach(function(g){(g==null?0:g.videoItem)&&b.add(g.videoItem)});
return b};
yp=function(a,b){if(b){var c=_.mp(a,"mainVideoEntity",_.lp(b,"mainVideoEntity")),d=_.mp(a,"downloadStatusEntity",_.lp(b,"downloadStatusEntity")),e=_.mp(a,"ytMainChannelEntity",_.lp(b,"ytMainChannelEntity")),g={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};a=rEa(a,b);d=(d==null?void 0:d.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.x("woffle_render_failed_download_state_ks")&&(d==null?void 0:d.downloadState)==="DOWNLOAD_STATE_FAILED";!a&&d&&(a=g);if(a&&c&&
e)return Object.assign({},{videoEntity:c,channelEntity:e},a)}};
zp=function(a,b){return yEa(a,b)==="TRANSFER_STATE_COMPLETE"&&oEa(a,b)};
zEa=function(a,b){if(!b)return!1;var c;a=(c=_.mp(a,"playbackData",_.lp(b,"playbackData")))!=null?c:void 0;return!!a&&!!a.playerResponseJson};
yEa=function(a,b){if(!b)return"TRANSFER_STATE_UNKNOWN";var c=_.mp(a,"transfer",_.lp(b,"transfer"));if(c){var d;return(d=c.transferState)!=null?d:"TRANSFER_STATE_UNKNOWN"}c=_.mp(a,"offlineOrchestrationActionWrapperEntity",_.lp(b,"offlineOrchestrationActionWrapperEntity"));a=_.mp(a,"mainVideoEntity",_.lp(b,"mainVideoEntity"));return c||a?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
AEa=function(a,b){if(!b)return"TRANSFER_STATE_UNKNOWN";if(a=_.mp(a,"transfer",_.lp(b,"transfer"))){var c;return(c=a.transferState)!=null?c:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
BEa=function(a,b){return b&&(a=_.mp(a,"videoPlaybackPositionEntity",_.lp(b,"videoPlaybackPositionEntity")),a==null?0:a.lastPlaybackPositionSeconds)?Number(a.lastPlaybackPositionSeconds):0};
DEa=function(a,b){return CEa(a).some(function(c){var d;return(c==null?void 0:(d=c.mainPlaylistEntity)==null?void 0:d.playlistId)===b})};
FEa=function(a,b,c){var d=EEa(a,b);if(!d.length)return[];b=[];d=_.h(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;var g=yp(a,e);c&&yEa(a,e)!=="TRANSFER_STATE_COMPLETE"||g&&b.push(g)}return b};
EEa=function(a,b){if(!b)return[];var c=_.lp(b,"mainPlaylistEntity"),d;b=(d=a.mainPlaylistEntity)==null?void 0:d[c];d=[];if(b==null||!b.videos)return d;b=_.h(b.videos);for(c=b.next();!c.done;c=b.next()){c=c.value;var e=void 0,g=void 0,k=void 0,m=(e=a)==null?void 0:(g=e.mainPlaylistVideoEntity)==null?void 0:(k=g[c])==null?void 0:k.video;m&&(c=_.ip(m).entityId)&&d.push(c)}return d};
GEa=function(a,b){if(b){var c=_.mp(a,"mainPlaylistEntity",_.lp(b,"mainPlaylistEntity")),d=_.mp(a,"mainPlaylistDownloadStateEntity",_.lp(b,"mainPlaylistDownloadStateEntity"));a=_.mp(a,"ytMainChannelEntity",_.lp(b,"ytMainChannelEntity"));if(d&&c)return Object.assign({},{mainPlaylistEntity:c,mainPlaylistDownloadStateEntity:d},!!a&&{channelEntity:a})}};
CEa=function(a){return HEa(a).sort(function(b,c){return c.addedTimestampMillis-b.addedTimestampMillis}).map(function(b){return b.downloadedPlaylistEntities})};
HEa=function(a){var b=a.mainPlaylistDownloadStateEntity,c=[];if(!b)return c;for(var d=_.h(Object.keys(b)),e=d.next();!e.done;e=d.next()){var g=e.value;e=GEa(a,_.ip(g).entityId);var k=void 0;g=Number((k=b[g])==null?void 0:k.addedTimestampMillis);k=isNaN(g)?(0,_.Uj)():g;e!==void 0&&c.push({downloadedPlaylistEntities:e,addedTimestampMillis:k})}return c};
IEa=function(a){var b,c=(b=a.mainPlaylistVideoEntity)!=null?b:{};return new Set(CEa(a).reduce(function(d,e){d=d===void 0?[]:d;var g,k;e==null||(g=e.mainPlaylistEntity)==null||(k=g.videos)==null||k.forEach(function(m){var n;(m=(n=c[m])==null?void 0:n.video)&&d.push(m)});
return d},[]))};
JEa=function(a){return"downloadedMusicPlaylistEntities"in a};
KEa=function(a){return"mainPlaylistEntity"in a&&"mainPlaylistDownloadStateEntity"in a};
LEa=function(a){return"videoEntity"in a&&"channelEntity"in a};
MEa=function(a){var b=a.musicPlaylistDownloadMetadataEntity,c=[];if(!b)return c;for(var d=_.h(Object.keys(b)),e=d.next();!e.done;e=d.next()){e=e.value;a:{var g=a,k=_.ip(e).entityId;if(k){var m=_.mp(g,"musicPlaylist",_.lp(k,"musicPlaylist"));g=_.mp(g,"musicPlaylistDownloadMetadataEntity",_.lp(k,"musicPlaylistDownloadMetadataEntity"));if(m&&g){m={musicPlaylistEntity:m,musicPlaylistDownloadStateEntity:g};break a}}m=void 0}g=void 0;e=Number((g=b[e])==null?void 0:g.addedTimestampMillis);e=isNaN(e)?(0,_.Uj)():
e;m!==void 0&&c.push({downloadedMusicPlaylistEntities:m,addedTimestampMillis:e})}return c};
NEa=function(a){var b=new Set;a=_.h(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,"musicPlaylistEntity"in c&&"musicPlaylistDownloadStateEntity"in c){c=_.h(c.musicPlaylistEntity.tracks);for(var d=c.next();!d.done;d=c.next())b.add(d.value)}return b};
OEa=function(a,b){if(b){var c=_.mp(a,"musicTrack",_.lp(b,"musicTrack")),d=_.mp(a,"musicArtist",_.lp(b,"musicArtist"))||{};if((a=rEa(a,b))&&c&&d)return Object.assign({},{musicTrackEntity:c,musicArtistEntity:d},a)}};
PEa=function(a){var b=a.musicTrackDownloadMetadataEntity,c=[];if(!b)return[];b=_.h(Object.keys(b));for(var d=b.next();!d.done;d=b.next()){var e=d.value;d=OEa(a,_.ip(e).entityId);var g=void 0;e=Number((g=_.mp(a,"musicTrackDownloadMetadataEntity",e))==null?void 0:g.addedTimestampMillis);g=isNaN(e)?(0,_.Uj)():e;d!==void 0&&c.push({downloadedMusicEntities:d,addedTimestampMillis:g})}return c};
SEa=function(a,b){if(!b)return[];if(Object.values(QEa).includes(b))return REa(a,b);b=_.lp(b,"musicPlaylist");var c;a=(c=a.musicPlaylist)==null?void 0:c[b];c=[];if(a==null||!a.tracks)return c;a=_.h(a.tracks);for(b=a.next();!b.done;b=a.next())(b=_.ip(b.value).entityId)&&c.push(b);return c};
REa=function(a,b){var c=new Set,d=MEa(a).map(function(g){return g.downloadedMusicPlaylistEntities});
d=NEa(d);d=_.h(d);for(var e=d.next();!e.done;e=d.next())(e=_.ip(e.value).entityId)&&c.add(e);return TEa(a).downloadedMusicEntities.filter(function(g){var k;if((k=g.musicTrackEntity)!=null&&k.videoId){g=g.musicTrackEntity;if(k=b==="PPOM"?!0:!c.has(g.videoId))b:switch(g=g.musicVideoType,b){case "PPSE":k=g==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:k=g!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}g=k}else g=!1;return g}).map(function(g){var k;
return(k=g.musicTrackEntity)==null?void 0:k.videoId})};
TEa=function(a){var b=PEa(a).sort(function(c,d){return d.addedTimestampMillis-c.addedTimestampMillis}).map(function(c){return"downloadedMusicEntities"in c?c.downloadedMusicEntities:JEa(c)?c.downloadedMusicPlaylistEntities:{}});
a=MEa(a).sort(function(c,d){return d.addedTimestampMillis-c.addedTimestampMillis}).map(function(c){return"downloadedMusicEntities"in c?c.downloadedMusicEntities:JEa(c)?c.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:b,downloadedMusicPlaylistEntities:a}};
VEa=function(a,b){b=_.Ei("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?SEa(a,b):EEa(a,b);if(!b.length)return"TRANSFER_STATE_UNKNOWN";b=b.map(function(c){return AEa(a,c)});
return UEa(b)};
UEa=function(a){var b=new Set(a);if(b.has("TRANSFER_STATE_FAILED")&&b.size===1)return"TRANSFER_STATE_FAILED";b.delete("TRANSFER_STATE_FAILED");if(b.has("TRANSFER_STATE_UNKNOWN")&&b.size===1)return"TRANSFER_STATE_PRE_TRANSFER";b.delete("TRANSFER_STATE_UNKNOWN");if(b.has("TRANSFER_STATE_PRE_TRANSFER")&&b.size===1||b.size===0)return"TRANSFER_STATE_PRE_TRANSFER";a=b.has("TRANSFER_STATE_TRANSFERRING");b=b.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return a||b?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
Ap=function(a){var b=a.mainVideoDownloadStateEntity,c=[];if(!b)return[];b=_.h(Object.keys(b));for(var d=b.next();!d.done;d=b.next()){var e=d.value;if(!sEa(a,_.ip(e).entityId)){d=yp(a,_.ip(e).entityId);var g=void 0,k=void 0;e=(k=Number((g=_.mp(a,"mainVideoDownloadStateEntity",e))==null?void 0:g.addedTimestampMillis))!=null?k:(0,_.Uj)();d!==void 0&&c.push({downloadedVideoEntities:d,addedTimestampMillis:e})}}return c};
WEa=function(a){return Ap(a).sort(function(b,c){return c.addedTimestampMillis-b.addedTimestampMillis}).map(function(b){return b.downloadedVideoEntities})};
_.YEa=function(a){var b=IEa(a),c=_.Bp(a),d=xEa(a),e=Ap(a).filter(function(k){var m,n;if((k==null?void 0:(m=k.downloadedVideoEntities)==null?void 0:(n=m.transferEntity)==null?void 0:n.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var r,t;k=k==null?void 0:(r=k.downloadedVideoEntities)==null?void 0:(t=r.videoEntity)==null?void 0:t.key;return _.x("kevlar_use_library_entity")?k&&(d.has(k)||c[k]):k&&!b.has(k)}),g=HEa(a).filter(function(k){return VEa(a,k.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.Be(e),_.Be(g)).sort(function(k,m){return m.addedTimestampMillis-k.addedTimestampMillis}).map(function(k){return XEa(k)})};
ZEa=function(a,b){if(b&&oEa(a,b)){var c,d,e=(d=(c=_.mp(a,"playbackData",_.lp(b,"playbackData")))!=null?c:void 0)==null?void 0:d.playerResponseJson;if(e){try{var g=JSON.parse(e);var k=_.mp(a,"transfer",_.lp(b,"transfer")),m=BEa(a,b);m&&(g=Object.assign({},g,{playerConfig:Object.assign({},g.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+m*1E3}}})}));g.cotn=k==null?void 0:k.cotn}catch(n){}return g}}};
_.bFa=function(a){var b,c,d;a=(d=(c=((b=a.downloadsPageViewConfigurationEntity)!=null?b:{})[$Ea])==null?void 0:c.smartDownloadsOptInBannerVisibility)!=null?d:{};var e;return(e=_.y(a,aFa))!=null?e:{}};
_.Bp=function(a){var b,c,d;a=(d=(c=((b=a.mainDownloadsListEntity)!=null?b:{})[_.cFa])==null?void 0:c.downloads)!=null?d:[];b={};c=_.h(a);for(d=c.next();!d.done;d=c.next())a=void 0,b[(a=d.value.videoItem)!=null?a:""]=!0;return b};
dFa=function(a){var b=_.Bp(a);if(Object.keys(b).length===0)return!1;var c=a.mainVideoEntity;if(!c)return!0;c=_.h(Object.keys(c));for(var d=c.next();!d.done;d=c.next()){d=d.value;var e=_.ip(d).entityId;if(b[d]&&!sEa(a,e))return!1}return!0};
_.Cp=function(a){var b=_.Bp(a);return Ap(a).sort(function(c,d){return c.addedTimestampMillis-d.addedTimestampMillis}).map(function(c){return c.downloadedVideoEntities}).filter(function(c){var d;
return(c=c==null?void 0:(d=c.videoEntity)==null?void 0:d.key)&&!!b[c]})};
XEa=function(a){return"downloadedVideoEntities"in a?a.downloadedVideoEntities:"downloadedPlaylistEntities"in a?a.downloadedPlaylistEntities:{}};
eFa=function(a){var b=_.Bp(a),c=IEa(a),d=Ap(a).filter(function(e){var g,k;return(e=e==null?void 0:(g=e.downloadedVideoEntities)==null?void 0:(k=g.videoEntity)==null?void 0:k.key)&&!b[e]&&!c.has(e)});
a=HEa(a);return[].concat(_.Be(d),_.Be(a)).sort(function(e,g){return g.addedTimestampMillis-e.addedTimestampMillis}).map(function(e){return XEa(e)})};
_.fFa=function(a){if(!_.x("kevlar_use_library_entity"))return eFa(a);var b=Ap(a).filter(function(d){var e,g;if(e=d=d==null?void 0:(e=d.downloadedVideoEntities)==null?void 0:(g=e.videoEntity)==null?void 0:g.key){var k,m,n;e=((m=(k=a.mainDownloadsListEntity)==null?void 0:k[wEa])==null?0:(n=m.downloads)==null?0:n.length)?xEa(a).has(d):!1}return e}),c=HEa(a);
return[].concat(_.Be(b),_.Be(c)).sort(function(d,e){return e.addedTimestampMillis-d.addedTimestampMillis}).map(function(d){return XEa(d)})};
gFa=function(a){var b=_.Bp(a),c=IEa(a);return WEa(a).filter(function(d){var e;return(d=d==null?void 0:(e=d.videoEntity)==null?void 0:e.key)&&!b[d]&&!c.has(d)})};
hFa=function(a){if(!_.x("kevlar_use_library_entity"))return gFa(a);var b=_.Bp(a),c=xEa(a);return WEa(a).filter(function(d){var e;return(d=d==null?void 0:(e=d.videoEntity)==null?void 0:e.key)&&!b[d]&&c.has(d)})};
iFa=function(a,b){b=_.lp(b,"settingEntity");var c,d,e;return!!((e=(d=((c=a.settingEntity)!=null?c:{})[b])==null?void 0:d.settingOptionValue)!=null?e:{}).boolValue};
_.Dp=function(a){var b=_.Cp(a);if(nEa(b))return 0;var c=[];b=_.h(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=void 0,g=void 0;if((e=d)==null?0:(g=e.videoEntity)==null?0:g.key)e=_.ip(d.videoEntity.key).entityId,d=a,e=_.lp(e,"mainVideoDownloadStateEntity"),d=_.mp(d,"mainVideoDownloadStateEntity",e),(d=Number(d==null?void 0:d.addedTimestampMillis))&&c.push(d)}return Math.max.apply(Math,_.Be(c))};
_.Ep=function(a){return a.ui.richGridMiniMode};
_.Fp=function(a){return a.ui.richGridItemsPerRow};
_.jFa=function(a){return a.ui.richGridSlimItemsPerRow};
_.kFa=function(a){return a.ui.guideIsExpanded};
_.Gp=function(a){return a.ui.miniplayerIsActive};
_.lFa=function(a){return a.ui.singleOptionSurveyIsActive};
_.Hp=function(a){return a.ui.currentPageType==="WEB_PAGE_TYPE_WATCH"};
_.mFa=function(a){return a.ui.currentPageType==="WEB_PAGE_TYPE_SHORTS"};
_.nFa=function(a){return a.ui.inlinePreviewIsActive};
_.oFa=function(a){return a.ui.inlinePreviewIsEnabled};
_.pFa=function(a){return a.ui.miniplayerPlaybackState};
Ip=function(a){return a.ui.isOnline};
_.qFa=function(a){return a.ui.frostedGlassMode};
_.Jp=function(a,b){return yEa(a.entities,b)};
_.Kp=function(a,b){return VEa(a.entities,b)};
rFa=function(a,b){var c;if(b){var d;a=(d=_.mp(a.entities,"offlineVideoPolicy",_.lp(b,"offlineVideoPolicy")))==null?void 0:d.action}else a=void 0;return(c=a)!=null?c:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
sFa=function(a,b){var c;b?(a=_.mp(a.entities,"offlineVideoPolicy",_.lp(b,"offlineVideoPolicy")),a=Number(a==null?void 0:a.expirationTimestamp)):a=void 0;return(c=a)!=null?c:0};
_.tFa=function(a){return _.xp(a.entities).length};
uFa=function(a,b){return yp(a.entities,b)};
vFa=function(a,b){return GEa(a.entities,b)};
Lp=function(a,b){return(a=yp(a.entities,b))?_.iEa([a]):0};
_.wFa=function(a,b){var c=_.Ei("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(c){var d=a.entities;var e=SEa(d,b);if(e.length){var g=[];e=_.h(e);for(var k=e.next();!k.done;k=e.next())(k=OEa(d,k.value))&&g.push(k);d=g}else d=[]}else d=FEa(a.entities,b);var m;if(c){var n=a.entities;b?(b=_.lp(b,"musicPlaylist"),n=(m=n.musicPlaylist)==null?void 0:m[b],m=n!=null&&n.tracks?n.tracks.length:0):m=0}else m=a.entities,b?(b=_.lp(b,"mainPlaylistEntity"),m=(n=m.mainPlaylistEntity)==null?void 0:n[b],m=m!=null&&m.videos?
m.videos.length:0):m=0;return d.length!==m?0:d?jEa(d):0};
_.xFa=function(a){return a.download.isLeaderTab};
_.yFa=function(a,b,c){if(!b&&c){var d=a.entities;if(c){var e=lEa(c),g,k;b=(k=(g=_.mp(d,"offlineabilityEntity",_.lp(e,"offlineabilityEntity")))==null?void 0:g.addToOfflineButtonState)!=null?k:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else b="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else g=a.entities,b?(k=lEa(b),b=(e=(d=_.mp(g,"offlineabilityEntity",_.lp(k,"offlineabilityEntity")))==null?void 0:d.addToOfflineButtonState)!=null?e:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):b="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return b};
zFa=function(a,b){a=a.entities;if(b){b=lEa(b);var c,d;b=(d=(c=_.mp(a,"offlineabilityEntity",_.lp(b,"offlineabilityEntity")))==null?void 0:c.addToOfflineButtonState)!=null?d:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else b="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return b};
_.AFa=function(a){var b=a.entities;a=Ip(a);var c=iFa(b,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.x("kevlar_modern_downloads_page")&&c)var d=!1;else{var e,g;b=(g=(e=((d=b.downloadsPageViewConfigurationEntity)!=null?d:{})[$Ea])==null?void 0:e.smartDownloadsOptInBannerVisibility)!=null?g:{};d=a?!!b.visibleWithConnection:!!b.visibleWithoutConnection}return d};
_.BFa=function(a){return iFa(a.entities,"SMART_DOWNLOADS_ENABLED")};
_.CFa=function(a){return dFa(a.entities)};
_.DFa=function(a,b){return sEa(a.entities,b)};
EFa=function(a,b){if(b){var c,d;a=(d=(c=_.mp(a.entities,"downloadStatusEntity",_.lp(b,"downloadStatusEntity")))==null?void 0:c.downloadState)!=null?d:"DOWNLOAD_STATE_UNKNOWN"}else a="DOWNLOAD_STATE_UNKNOWN";return a};
Mp=function(a,b){return BEa(a.entities,b)};
IFa=function(a){a=_.FFa(a);var b=a.hours===void 0?0:a.hours,c=a.minutes===void 0?0:a.minutes,d=a.seconds===void 0?0:a.seconds,e=b>0;a=[];e&&(b=_.GFa(b),a.push(b));b=e;b=b===void 0?!1:b;c=(["af","be","lt"].includes(_.Np)||b)&&c<10?HFa().format(c):(new Intl.NumberFormat("en-u-nu-latn")).format(c);a.push(c);c=HFa().format(d);a.push(c);c=":";"da fi id si sr sr-Latn".split(" ").includes(_.Np)&&(c=".");return a.join(c)};
_.FFa=function(a){var b=a.hours||0,c=a.minutes||0,d=a.seconds||0;b=d+c*60+b*3600+(a.days||0)*86400+(a.weeks||0)*604800+(a.months||0)*2629800+(a.years||0)*31557600;if(b<=0)return{hours:0,minutes:0,seconds:0};a=b;b=Math.floor(a/3600);a%=3600;c=Math.floor(a/60);d=Math.floor(a%60);return{hours:b,minutes:c,seconds:d}};
_.GFa=function(a){a=(new Intl.NumberFormat("en-u-nu-latn")).format(a);var b=["fr"],c="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(_.Np)?a.replace(",","\u00a0"):b.includes(_.Np)?a.replace(",","\u202f"):c.includes(_.Np)?a.replace(",","."):a};
HFa=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
JFa=function(a){try{return(new _.Op(5)).format(a)}catch(b){}};
Pp=function(a){return{thumbnailOverlayDownloadingRenderer:{state:a}}};
KFa=function(a){if(a=JFa(a))return{thumbnailOverlaySidePanelRenderer:{text:_.dp(a),icon:{iconType:"PLAYLISTS"}}}};
LFa=function(){var a=_.to("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.dp(a),icon:{iconType:"PLAY_ALL"}}}};
MFa=function(a){a=_.Qp(a,2);return _.Np!=="ru"&&_.Np!=="es_419"&&_.Np!=="es-419"&&_.Np!=="es"&&_.Np!=="es_US"&&_.Np!=="es-US"&&_.Np!=="fr"&&_.Np!=="pl"&&_.Np!=="it"&&_.Np!=="nl"&&_.Np!=="uk"&&_.Np!=="fr_CA"&&_.Np!=="fr-CA"||a===""?a:a[0].toLocaleUpperCase()+a.substring(1)};
OFa=function(a){return function(b){var c=a(),d=_.Qp(b,c.dateFormat);b=_.Qp(b,c.timeFormat);var e=NFa.DATETIMEFORMATS[c.joinerStyle];e=e.replace(/'(?!')/g,"");e=e.replace("{0}",b);e=e.replace("{1}",d);return c.capitalize(e)}};
PFa=function(a){return a?typeof a.seconds==="string"&&(a.nanos===void 0||typeof a.nanos==="number"):!1};
QFa=function(a){return new Date(Number(a.seconds)*1E3+(a.nanos||0)*1E-6)};
_.Qp=function(a,b){if(typeof a.getTime==="function")a={date:a};else if(PFa(a))a={date:QFa(a)};else if(typeof PFa(a.timestamp)&&typeof a.i18nInternalSecondsEastOfUtc==="number")a={date:QFa(a.timestamp),timeZone:Rp(-a.i18nInternalSecondsEastOfUtc/60)};else throw Error("yf`"+JSON.stringify(a));var c=a;a=c.date;c=c.timeZone;b=RFa(b).format(a,c);_.Np==="zh-TW"&&(a=c?Number(RFa("H").format(a,c)):a.getHours(),b=a<5?b.replace("\u4e0a\u5348","\u51cc\u6668"):a<8?b.replace("\u4e0a\u5348","\u65e9\u4e0a"):a<12?
b.replace("\u4e0a\u5348","\u4e0a\u5348"):a<13?b.replace("\u4e0b\u5348","\u4e2d\u5348"):a<19?b.replace("\u4e0b\u5348","\u4e0b\u5348"):b.replace("\u4e0b\u5348","\u665a\u4e0a"));return b};
RFa=function(a){if(SFa.has(a))return SFa.get(a);var b=TFa(a);b=UFa(b);VFa!==!0&&(VFa=!0);WFa=!0;WFa=!1;b=new Sp(b,NFa);SFa.set(a,b);return b};
TFa=function(a){return(new Sp(a,NFa)).patternParts_.map(function(b){return b.type===0?"'"+b.text+"'":b.text}).join("")};
UFa=function(a){return _.Np==="en"||_.Np==="es_US"||_.Np==="es-US"?a:a.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(b,c,d){return"H".repeat(c.length)+d})};
dGa=function(a,b){XFa||(_.Tp=_.YFa,XFa=new ZFa);var c=XFa;a:if(a=$Fa(a),b=$Fa(b||new Date),a>b)c=a.getTime()-b.getTime()>6048E5?_.Qp(a,1):aGa(a);else{for(var d=0;bGa(a,12*(d+1))<b;)++d;if(d>0)c=c.format(-d,0);else{for(d=0;bGa(a,d+1)<b;)++d;if(d>0)c=c.format(-d,2);else{a=b.getTime()-a.getTime();b=_.h(cGa);for(d=b.next();!d.done;d=b.next()){d=d.value;var e=d.unit,g=Math.floor(a/d.unitDuration);if(g>=(d.threshold===void 0?1:d.threshold)){c=c.format(-g,e);break a}}c=c.format(-0,7)}}}return c};
$Fa=function(a){if(typeof a.getTime==="function")return a;if(PFa(a))return QFa(a);throw Error("zf`"+JSON.stringify(a));};
bGa=function(a,b){for(var c=0,d;;++c)if(d=new Date(a.getFullYear(),a.getMonth()+b,a.getDate()-c,a.getHours(),a.getMinutes(),a.getSeconds()),d.getMonth()===(a.getMonth()+b)%12)return d};
_.Up=function(a){return{runs:[{text:a}]}};
_.Vp=function(a){if(a&&a.simpleText)return a.simpleText;var b="";if(a&&a.runs)for(var c=0;c<a.runs.length;c++)a.runs[c].text&&(b+=a.runs[c].text);return b};
fGa=function(a,b,c,d){return a.videoEntity&&!a.policyEntity&&c!=="DOWNLOAD_STATE_FAILED"?[Pp("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:vp(a.policyEntity)&&b!=="TRANSFER_STATE_FAILED"&&b!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?b==="TRANSFER_STATE_PAUSED_BY_USER"?[Pp("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.wp(b)?[Pp("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:a.videoEntity.lengthSeconds?eGa(a.videoEntity.lengthSeconds,d):[]:
[Pp("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
eGa=function(a,b){var c=[{thumbnailOverlayTimeStatusRenderer:{text:_.dp(IFa({seconds:a})),style:"DEFAULT"}}];b&&(a=b<=0||a<=0?0:b>=a?100:Math.ceil(b*100/a),a>0&&c.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:a}}));return c};
gGa=function(a,b,c,d,e){if(b==="TRANSFER_STATE_UNKNOWN"||!a)return{};if(_.wp(b)||b==="TRANSFER_STATE_PRE_TRANSFER")var g=[Pp("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var k,m;if(b==="TRANSFER_STATE_COMPLETE"&&((k=a.mainPlaylistEntity)==null?0:(m=k.videos)==null?0:m.length)){if(_.x("web_modern_collections_v2")){var n;var r=(g=a.mainPlaylistEntity)==null?void 0:(n=g.videos)==null?void 0:n.length;g=(g=JFa(r))?{thumbnailOverlayBottomPanelRenderer:{text:_.dp(g),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var t;g=KFa((r=a.mainPlaylistEntity)==null?void 0:(t=r.videos)==null?void 0:t.length)}var u;g=[LFa(),Object.assign({},(u=g)!=null?u:{})]}else g=[]}u=g;a:if(b==="TRANSFER_STATE_PRE_TRANSFER")c=ep(_.to("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(b==="TRANSFER_STATE_TRANSFER_IN_QUEUE")c=ep(_.to("WAITING_TO_DOWNLOAD"));else if(_.wp(b))c=Math.floor(c*100).toString(),c=ep(_.to("DOWNLOADING_PERCENT",{percent:c},"Downloading... "+c+"%"));else{if(d&&(_.x("playlist_is_offline_selector_killswitch")&&
(e=_.v().resolve(_.Lk).isNetworkAvailable()),e)){c=rDa(_.to("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),pDa(d));break a}c=void 0}b=b==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.to("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},u.length?{thumbnailOverlays:u}:{},c?{viewPlaylistText:c}:{viewPlaylistText:_.Up("")},b.length?{badges:b}:{})};
hGa=function(a,b,c,d,e,g){if(b==="TRANSFER_STATE_UNKNOWN"||!a)return{};if(d==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var k=fGa(a,b,d);if(a.videoEntity&&!a.policyEntity&&d!=="DOWNLOAD_STATE_FAILED"){var m=_.to("WAITING_TO_DOWNLOAD");if(m)return{shortViewCountText:_.Up(m),publishedTimeText:void 0,thumbnailOverlays:k}}if(!vp(a.policyEntity)){g=a.policyEntity&&!kEa(a.policyEntity)?_.to("DOWNLOAD_EXPIRED",{},"Download expired"):
_.to("TRANSFER_FAILED",{},"Download failed");var n;if((n=a.policyEntity)==null?0:n.shortMessageForDisabledAction)g=a.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:ep(g),publishedTimeText:void 0,thumbnailOverlays:k}}if(b==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.Up(_.to("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:k};if(b==="TRANSFER_STATE_FAILED"||b==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.Up(_.to("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:k};if(b==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(n=_.to("WAITING_TO_DOWNLOAD"),d==="DOWNLOAD_STATE_PAUSED"&&(n=_.to("DOWNLOAD_PAUSED",{},"Download paused")),n))return{shortViewCountText:_.Up(n),publishedTimeText:void 0,thumbnailOverlays:k};if(_.wp(b))return a=Math.floor(c*100).toString(),{shortViewCountText:_.Up(_.to("DOWNLOADING_PERCENT",{percent:a},"Downloading... "+a+"%")),publishedTimeText:void 0,thumbnailOverlays:k};b=void 0;a.videoEntity.publishedTimestampMillis&&
(b=new Date,e&&(b=new Date(e)),b=ep(dGa(new Date(Number(a.videoEntity.publishedTimestampMillis)),b)));e=[];_.x("kevlar_woffle_badge_killswitch")||(e=[{metadataBadgeRenderer:{label:_.to("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var r;a=ep((r=a.videoEntity.localizedStrings)==null?void 0:r.viewCount);return Object.assign({},g?{shortViewCountText:void 0}:{shortViewCountText:a},g?{}:{publishedTimeText:b},{badges:e,thumbnailOverlays:k})};
jGa=function(a,b){a=a===void 0?iGa:a;switch(b.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:b.payload.playlistId,inviteLinkURL:b.payload.inviteLinkUrl};default:return a}};
lGa=function(a,b){a=a===void 0?kGa:a;switch(b.type){case "SET_CURRENT_FORM_ID":return b=b.payload.formId,a.currentFormId===b?a:{currentFormId:b,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var c=b.payload;b=c.groupId;c=c.command;if(a.currentFormId){var d=Object.assign({},a.commandsMap);d[b]=c;a=Object.assign({},a,{commandsMap:d})}return a;case "RESET_COMMAND_MAP":return Object.assign({},a,{commandsMap:{}});default:return a}};
nGa=function(a,b){a=a===void 0?mGa:a;switch(b.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},a,{guideIsExpanded:b.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},a,{scrollAtTop:b.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},a,{guideIsVisibleButNotPersistent:b.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},a,{miniplayerIsActive:b.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},a,{singleOptionSurveyIsActive:b.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},a,{slimlineSurveyRatingSelectedIndex:b.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},a,{richGridMiniMode:b.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},a,{richGridItemsPerRow:b.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},a,{richGridSlimItemsPerRow:b.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},a,{richGridContainerWidth:b.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},a,{richGridStyle:b.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},a,{currentPageType:b.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},a,{inlinePreviewIsActive:b.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},a,{inlinePreviewIsEnabled:b.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},a,{darkModeIsEnabled:b.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
a,{miniplayerPlaybackState:b.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},a,{tabGesturesIsActive:b.payload});case "SET_ONLINE_STATUS":return Object.assign({},a,{isOnline:b.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},a,{chipBarIsSticky:b.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},a,{frostedGlassMode:b.payload});default:return a}};
pGa=function(a,b){a=a===void 0?oGa:a;switch(b.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},a,{transcription:b.payload});case "SET_OVERLAY_STATE":return Object.assign({},a,{overlay:b.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return a}};
zGa=function(){return nn(Object.assign({},{continuation:qGa,entities:HDa,download:rGa,reportChannelAbuse:sGa,share:tGa,talkToRecs:uGa,ui:nGa,voiceSearch:pGa,watch:vGa,ypc:wGa,shorts:xGa,radioButtonGroup:lGa,collabInviteLink:jGa},yGa))};
CGa=function(){return _.x("web_player_entities_middleware")?new Wp(zGa(),[AGa,BGa]):new Wp(zGa(),[AGa])};
_.Yp=function(){DGa||(DGa=CGa());return DGa};
EGa=function(a,b,c){if(a.length)return{titleText:_.dp(b!=null?b:_.to("DOWNLOADS",void 0,"Downloads")),contents:a.map(function(d){var e=d.videoEntity;d={videoId:e.videoId,title:ep(e.title),shortBylineText:ep(d.channelEntity.title),thumbnail:e.thumbnail};var g=e.videoId?Mp(_.Yp().getState(),e.videoId):0;e.videoId&&c?d.navigationEndpoint=_.cp(e.videoId,c,void 0,void 0,g):e.videoId&&(d.navigationEndpoint=oDa(e.videoId,g,e.lengthSeconds));e.lengthSeconds&&(d.thumbnailOverlays=eGa(e.lengthSeconds,g));return{playlistPanelVideoRenderer:d}}),
totalVideos:a.length}};
FGa=function(a){return(a=(0,_.yf.getValueByKeys)(a,"playlistId"))?{playlistId:a}:null};
GGa=function(){return{}};
HGa=function(a,b){return new _.kl(function(c,d){a.then(function(e){if(e){if(e=b(e))return c(e);d()}},d)})};
IGa=function(a){var b,c,d,e=(b=a.contents)==null?void 0:(c=b.twoColumnWatchNextResults)==null?void 0:(d=c.autoplay)==null?void 0:d.autoplay,g,k,m;b=(g=a.contents)==null?void 0:(k=g.twoColumnWatchNextResults)==null?void 0:(m=k.playlist)==null?void 0:m.playlist;return e&&b&&b.playlistId?{rawResponse:a,autoplayRenderer:e,playlistPanelRenderer:b,playlistId:b.playlistId}:null};
KGa=function(a){var b=b===void 0?"UNKNOWN_INTERFACE":b;if(a.length===1)return a[0];var c=JGa[b];if(c){c=new RegExp(c);for(var d=_.h(a),e=d.next();!e.done;e=d.next())if(e=e.value,c.exec(e))return e}var g=[];Object.entries(JGa).forEach(function(k){var m=_.h(k);k=m.next().value;m=m.next().value;b!==k&&g.push(m)});
c=new RegExp(g.join("|"));a.sort(function(k,m){return k.length-m.length});
d=_.h(a);for(e=d.next();!e.done;e=d.next())if(e=e.value,!c.exec(e))return e;return a[0]};
_.Zp=function(a){return"/youtubei/v1/"+KGa(a)};
_.$p=function(a){return{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:a}}}}};
_.aq=function(a){return _.$p(_.Up(a))};
LGa=function(a,b){var c={mode:"NORMAL"};a&&(c.autoplayVideo=a.navigationEndpoint,c.nextButtonVideo=a.navigationEndpoint);b&&(c.previousButtonVideo=b.navigationEndpoint);return c};
OGa=function(a,b,c){if(!c||!c.sets)return{sets:[LGa(a,b)]};var d=c.sets.find(function(k){return k.mode==="NORMAL"}),e=(0,_.yf.unsafeClone)(c);
if(!d)return e.sets.push(LGa(a,b)),e;if(!a)return c;d=_.yf.getValueByKeys.apply(null,[d].concat(_.Be(MGa)));var g=_.yf.getValueByKeys.apply(null,[a].concat(_.Be(NGa)));if(d===g)return c;e.sets=e.sets.filter(function(k){return k.mode!=="NORMAL"});
e.sets.push(LGa(a,b));return e};
PGa=function(a){return!!a.playlistPanelVideoRenderer&&!a.playlistPanelVideoRenderer.unplayableText};
QGa=function(a){return!!a.playlistPanelVideoRenderer&&!!a.playlistPanelVideoRenderer.title};
RGa=function(a,b){if(b.contents&&!(a>=b.contents.length)&&(a=b.contents.slice(a).find(PGa)))return a.playlistPanelVideoRenderer};
SGa=function(a,b){if(b.contents)return(b=b.contents.find(function(c){return!!c.playlistPanelVideoRenderer&&c.playlistPanelVideoRenderer.videoId===a}))?b.playlistPanelVideoRenderer:void 0};
TGa=function(a,b){return b.contents?b.contents.findIndex(function(c){return!!c.playlistPanelVideoRenderer&&c.playlistPanelVideoRenderer.videoId===a}):-1};
UGa=function(a,b){return b.contents?b.contents.findIndex(function(c){return!!c.playlistPanelVideoRenderer&&c.playlistPanelVideoRenderer.playlistSetVideoId===a}):-1};
VGa=function(a,b){a.contents&&b!==-1&&a.contents.splice(b,1).length===1&&a.totalVideos!==void 0&&(--a.totalVideos,delete a.videoCountText)};
_.WGa=function(a){var b=[];if(!a||!a.contents)return b;a=_.h(a.contents);for(var c=a.next();!c.done;c=a.next())c=c.value,c.playlistPanelVideoRenderer&&c.playlistPanelVideoRenderer.videoId&&b.push(c.playlistPanelVideoRenderer.videoId);return b};
_.XGa=function(a){if(a&&a.contents)return(a=a.contents.find(function(b){return!!b.playlistPanelVideoRenderer&&!!b.playlistPanelVideoRenderer.selected})||a.contents[a.currentIndex])?a.playlistPanelVideoRenderer:void 0};
YGa=function(a,b,c,d,e,g,k){e=e===void 0?!1:e;g=g===void 0?!1:g;k=k===void 0?!1:k;if(a.contents&&a.contents.length!==0){d&&(a.contents=a.contents.filter(d));d=a.contents.length;for(var m=0;m<d;m++){var n=a.contents[m].playlistPanelVideoRenderer;n&&(m===b?(g&&delete n.menu,n.indexText=_.Up("\u25b6")):e||a.isInfinite||n.indexText===void 0?delete n.indexText:n.indexText=_.Up((m+1+c).toString()))}a.currentIndex=b+c;k&&(delete a.videoCountText,a.totalVideos=d)}};
ZGa=function(a,b){for(var c="",d=0;d<b;d++)c+=a.charAt(Math.floor(Math.random()*a.length));return c};
bq=function(a){return ZGa("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",a)};
cq=function(a){return ZGa("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",a)};
dq=function(a){return ZGa("0123456789",a)};
eq=function(){var a=performance.now(),b=new Date;var c="2."+b.getFullYear()+String(b.getMonth()+1).padStart(2,"0")+String(b.getDate()).padStart(2,"0");for(var d,e=Math.floor(Math.random()*11)+15,g=[],k=0;k<e;k++)g.push(Math.floor(Math.random()*26476865)+24547720);d=g.join(",");var m=bq(10),n=bq(100),r=bq(102),t=bq(106),u=bq(108),w=bq(11),A=bq(1140),C=bq(123),G=bq(14),J=bq(16),I=bq(1900),R=bq(23),ca=bq(26),V=bq(34),fa=bq(397),aa=bq(44),ma=bq(5),Ba=bq(72),Da=bq(74),za=bq(75),Fa=bq(88),bb=bq(91),kb=
"rr2---sn-5hne6nz6 rr3---sn-q4fl6n66 rr1---sn-q4fl6ns6 rr5---sn-q4fzen7s rr4---sn-5hne6nsy rr4---sn-ntqe6n7r rr2---sn-q4fl6n6z rr4---sn-ntq7yney rr4---sn-q4fl6nds rr5---sn-q4fl6nzy rr5---sn-aigl6nzl rr4---sn-q4flrnld rr4---sn-hgn7rn7y rr1---sn-q4fl6nlz rr4---sn-5hnednss rr1---sn-5hne6nsr rr4---sn-5hne6n6l rr5---sn-q4flrnss rr2---sn-t0a7lnee rr2---sn-ntq7yney".split(" ");var Ua=kb[Math.floor(Math.random()*kb.length)];var Fc=(new Date("2010-01-01")).getTime();var id=(new Date(Fc+Math.random()*((new Date).getTime()-
Fc))).toISOString().split("T")[0];for(var Mb,wd=[],Tb=0;Tb<4;Tb++)wd.push(Math.floor(Math.random()*100));Mb=wd.join(".");var tb=Number(dq(5)),Fb=Number(dq(6)),dd=Number(dq(7)),be=Number(dq(9)),ia=dq(1),gc=dq(10),Pb=dq(16),Lc=dq(19),qb=dq(2),Ab=dq(20),Ya=dq(21),Oa=dq(3),pb=dq(4),Yb=dq(5),Pc=dq(6),Db=dq(7),Vc=dq(8),zd=dq(9);var pm=ZGa("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",27352);var jd=[cq(5),cq(5),cq(5)].join("%2C"),Mf=[dq(3),dq(5),dq(5)].join("%2C"),$o=cq(0),Ye=cq(1),
Yg=cq(10),Ci=cq(108),nd=cq(11),Xp=cq(12),Qk=cq(13),Zi=cq(14),Di=cq(15),Ke=cq(16),ap=cq(17),sa=cq(18),Ga=cq(19),La=cq(2),mb=cq(20),fc=cq(22),fb=cq(23),ib=cq(24),Qb=cq(266),xb=cq(3),sd=cq(30),Yf=cq(34),zb=cq(35),pk=cq(36),Hs=cq(4),Vd=cq(40),nh=cq(43),Rk=cq(47),Gh=cq(5),sg=cq(6),cr=cq(7),Za=cq(75),$b=cq(8),Uc=cq(80),od=cq(9),Jc="https://www."+cq(12)+".com",hg={},di={},Is={},dy={},WI={},B0={},C0={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:d}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:c},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+cq(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",
value:c},{key:"client.name",value:"WEB"},{key:"client.fexp",value:d}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:Ya+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+cq(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:Vd,ypcGetOfflineUpsellEndpoint:{params:Uc}},trackingParams:zb+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},contextParams:"Q0FFU0FnZ0M="},
streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+Ua+".googlevideo.com/videoplayback?expire="+gc+"&ei="+R+"&ip="+Mb+"&id=o-AF"+nh+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+Mf+"&mn="+jd+"&ms="+jd+"&mv="+Ye+"&mvi="+ia+"&pl="+qb+"&initcwndbps="+Db+"&siu="+ia+"&spc="+aa+"&vprv="+ia+"&svpuc="+ia+"&mime=video%2Fmp4&ns="+ib+"&cnr="+qb+"&ratebypass=yes&dur="+Vc+"&lmt="+Pb+"&mt="+gc+"&fvip=3&c=WEB&txp="+Db+"&n="+J+"&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:Fb,width:640,height:360,lastModified:Pb,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Db,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+Ua+".googlevideo.com/videoplayback?expire="+gc+"&ei="+R+"&ip="+Mb+"&id=o-AF"+nh+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+Mf+"&mn="+
jd+"&ms="+jd+"&mv="+Ye+"&mvi="+ia+"&pl="+qb+"&initcwndbps="+Db+"&siu="+ia+"&spc="+aa+"&vprv="+ia+"&svpuc="+ia+"&mime=video%2Fmp4&ns="+ib+"&cnr="+qb+"&ratebypass=yes&dur="+Vc+"&lmt="+Pb+"&mt="+gc+"&fvip=3&c=WEB&txp="+Db+"&n="+J+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+Ci+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:Fb,width:1280,
height:720,lastModified:Pb,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Db,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+Ua+".googlevideo.com/videoplayback?expire="+gc+"&ei="+R+"&ip="+Mb+"&id=o-AF"+nh+"&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="+Mf+"&mn="+jd+"&ms="+
jd+"&mv="+Ye+"&mvi="+ia+"&pl="+qb+"&initcwndbps="+Db+"&siu="+ia+"&spc="+aa+"&vprv="+ia+"&svpuc="+ia+"&mime=video%2Fmp4&ns="+ib+"&gir="+xb+"&clen="+zd+"&dur="+Vc+"&lmt="+Pb+"&mt="+gc+"&fvip=3&keepalive="+xb+"&c=WEB&txp="+Db+"&n="+Ke+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+n+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:dd,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:Oa,end:pb},lastModified:Pb,contentLength:zd,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:dd,approxDurationMs:Db},{itag:248,url:"https://"+Ua+".googlevideo.com/videoplayback?expire="+gc+"&ei="+R+"&ip="+Mb+"&id=o-AF"+nh+"&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="+Mf+"&mn="+jd+"&ms="+jd+"&mv="+
Ye+"&mvi="+ia+"&pl="+qb+"&initcwndbps="+Db+"&siu="+ia+"&spc="+aa+"&vprv="+ia+"&svpuc="+ia+"&mime=video%2Fwebm&ns="+ib+"&gir="+xb+"&clen="+zd+"&dur="+Vc+"&lmt="+Pb+"&mt="+gc+"&fvip=3&keepalive="+xb+"&c=WEB&txp="+Db+"&n="+Ke+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'video/webm; codecs="vp9"',bitrate:dd,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:Oa,end:pb},lastModified:Pb,contentLength:zd,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:dd,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Db},{itag:399,url:"https://"+Ua+".googlevideo.com/videoplayback?expire="+gc+"&ei="+R+"&ip="+Mb+"&id=o-AF"+nh+"&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="+
Mf+"&mn="+jd+"&ms="+jd+"&mv="+Ye+"&mvi="+ia+"&pl="+qb+"&initcwndbps="+Db+"&siu="+ia+"&spc="+aa+"&vprv="+ia+"&svpuc="+ia+"&mime=video%2Fmp4&ns="+ib+"&gir="+xb+"&clen="+zd+"&dur="+Vc+"&lmt="+Pb+"&mt="+gc+"&fvip=3&keepalive="+xb+"&c=WEB&txp="+Db+"&n="+Ke+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+n+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:dd,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:Oa,end:pb},lastModified:Pb,contentLength:zd,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:dd,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Db},{itag:136,url:"https://"+Ua+".googlevideo.com/videoplayback?expire="+gc+"&ei="+R+"&ip="+Mb+"&id=o-AF"+nh+"&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="+
Mf+"&mn="+jd+"&ms="+jd+"&mv="+Ye+"&mvi="+ia+"&pl="+qb+"&initcwndbps="+Db+"&siu="+ia+"&spc="+aa+"&vprv="+ia+"&svpuc="+ia+"&mime=video%2Fmp4&ns="+ib+"&gir="+xb+"&clen="+zd+"&dur="+Vc+"&lmt="+Pb+"&mt="+gc+"&fvip=3&keepalive="+xb+"&c=WEB&txp="+Db+"&n="+Ke+"&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:dd,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:Oa,end:pb},lastModified:Pb,contentLength:zd,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:Fb,approxDurationMs:Db},{itag:247,url:"https://"+Ua+".googlevideo.com/videoplayback?expire="+gc+"&ei="+R+"&ip="+Mb+"&id=o-AF"+nh+"&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="+Mf+"&mn="+
jd+"&ms="+jd+"&mv="+Ye+"&mvi="+ia+"&pl="+qb+"&initcwndbps="+Db+"&siu="+ia+"&spc="+aa+"&vprv="+ia+"&svpuc="+ia+"&mime=video%2Fwebm&ns="+ib+"&gir="+xb+"&clen="+zd+"&dur="+Vc+"&lmt="+Pb+"&mt="+gc+"&fvip=3&keepalive="+xb+"&c=WEB&txp="+Db+"&n="+Ke+"&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:dd,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:Oa,end:pb},lastModified:Pb,contentLength:zd,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:Fb,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Db},{itag:398,url:"https://"+Ua+".googlevideo.com/videoplayback?expire="+gc+"&ei="+R+"&ip="+Mb+"&id=o-AF"+nh+"&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="+
Mf+"&mn="+jd+"&ms="+jd+"&mv="+Ye+"&mvi="+ia+"&pl="+qb+"&initcwndbps="+Db+"&siu="+ia+"&spc="+aa+"&vprv="+ia+"&svpuc="+ia+"&mime=video%2Fmp4&ns="+ib+"&gir="+xb+"&clen="+zd+"&dur="+Vc+"&lmt="+Pb+"&mt="+gc+"&fvip=3&keepalive="+xb+"&c=WEB&txp="+Db+"&n="+Ke+"&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:dd,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:Oa,end:pb},lastModified:Pb,contentLength:zd,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:Fb,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Db},{itag:135,url:"https://"+Ua+".googlevideo.com/videoplayback?expire="+gc+"&ei="+R+"&ip="+Mb+"&id=o-AF"+nh+"&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="+
Mf+"&mn="+jd+"&ms="+jd+"&mv="+Ye+"&mvi="+ia+"&pl="+qb+"&initcwndbps="+Db+"&siu="+ia+"&spc="+aa+"&vprv="+ia+"&svpuc="+ia+"&mime=video%2Fmp4&ns="+ib+"&gir="+xb+"&clen="+Vc+"&dur="+Vc+"&lmt="+Pb+"&mt="+gc+"&fvip=3&keepalive="+xb+"&c=WEB&txp="+Db+"&n="+Ke+"&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:Fb,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:Oa,end:pb},lastModified:Pb,contentLength:Vc,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:Fb,approxDurationMs:Db},{itag:244,url:"https://"+Ua+".googlevideo.com/videoplayback?expire="+gc+"&ei="+R+"&ip="+Mb+"&id=o-AF"+nh+"&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="+Mf+"&mn="+
jd+"&ms="+jd+"&mv="+Ye+"&mvi="+ia+"&pl="+qb+"&initcwndbps="+Db+"&siu="+ia+"&spc="+aa+"&vprv="+ia+"&svpuc="+ia+"&mime=video%2Fwebm&ns="+ib+"&gir="+xb+"&clen="+Vc+"&dur="+Vc+"&lmt="+Pb+"&mt="+gc+"&fvip=3&keepalive="+xb+"&c=WEB&txp="+Db+"&n="+Ke+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Ci+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'video/webm; codecs="vp9"',bitrate:Fb,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:Oa,end:pb},lastModified:Pb,contentLength:Vc,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:Fb,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Db},{itag:397,url:"https://"+Ua+".googlevideo.com/videoplayback?expire="+gc+"&ei="+R+"&ip="+Mb+"&id=o-AF"+nh+"&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="+
Mf+"&mn="+jd+"&ms="+jd+"&mv="+Ye+"&mvi="+ia+"&pl="+qb+"&initcwndbps="+Db+"&siu="+ia+"&spc="+aa+"&vprv="+ia+"&svpuc="+ia+"&mime=video%2Fmp4&ns="+ib+"&gir="+xb+"&clen="+Vc+"&dur="+Vc+"&lmt="+Pb+"&mt="+gc+"&fvip=3&keepalive="+xb+"&c=WEB&txp="+Db+"&n="+Ke+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+n+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:Fb,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:Oa,end:pb},lastModified:Pb,contentLength:Vc,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:Fb,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Db},{itag:134,url:"https://"+Ua+".googlevideo.com/videoplayback?expire="+gc+"&ei="+R+"&ip="+Mb+"&id=o-AF"+nh+"&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="+
Mf+"&mn="+jd+"&ms="+jd+"&mv="+Ye+"&mvi="+ia+"&pl="+qb+"&initcwndbps="+Db+"&siu="+ia+"&spc="+aa+"&vprv="+ia+"&svpuc="+ia+"&mime=video%2Fmp4&ns="+ib+"&gir="+xb+"&clen="+Vc+"&dur="+Vc+"&lmt="+Pb+"&mt="+gc+"&fvip=3&keepalive="+xb+"&c=WEB&txp="+Db+"&n="+Ke+"&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:Fb,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:Oa,end:pb},lastModified:Pb,contentLength:Vc,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:Fb,highReplication:!0,approxDurationMs:Db},{itag:243,url:"https://"+Ua+".googlevideo.com/videoplayback?expire="+gc+"&ei="+R+"&ip="+Mb+"&id=o-AF"+nh+"&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="+
Mf+"&mn="+jd+"&ms="+jd+"&mv="+Ye+"&mvi="+ia+"&pl="+qb+"&initcwndbps="+Db+"&siu="+ia+"&spc="+aa+"&vprv="+ia+"&svpuc="+ia+"&mime=video%2Fwebm&ns="+ib+"&gir="+xb+"&clen="+Vc+"&dur="+Vc+"&lmt="+Pb+"&mt="+gc+"&fvip=3&keepalive="+xb+"&c=WEB&txp="+Db+"&n="+Ke+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'video/webm; codecs="vp9"',bitrate:Fb,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:Oa,end:pb},lastModified:Pb,contentLength:Vc,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:Fb,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Db},{itag:396,url:"https://"+Ua+".googlevideo.com/videoplayback?expire="+gc+"&ei="+R+"&ip="+Mb+"&id=o-AF"+nh+"&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="+
Mf+"&mn="+jd+"&ms="+jd+"&mv="+Ye+"&mvi="+ia+"&pl="+qb+"&initcwndbps="+Db+"&siu="+ia+"&spc="+aa+"&vprv="+ia+"&svpuc="+ia+"&mime=video%2Fmp4&ns="+ib+"&gir="+xb+"&clen="+Vc+"&dur="+Vc+"&lmt="+Pb+"&mt="+gc+"&fvip=3&keepalive="+xb+"&c=WEB&txp="+Db+"&n="+Ke+"&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:Fb,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:Oa,end:pb},lastModified:Pb,contentLength:Vc,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:Fb,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Db},{itag:133,url:"https://"+Ua+".googlevideo.com/videoplayback?expire="+gc+"&ei="+R+"&ip="+Mb+"&id=o-AF"+nh+"&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="+
Mf+"&mn="+jd+"&ms="+jd+"&mv="+Ye+"&mvi="+ia+"&pl="+qb+"&initcwndbps="+Db+"&siu="+ia+"&spc="+aa+"&vprv="+ia+"&svpuc="+ia+"&mime=video%2Fmp4&ns="+ib+"&gir="+xb+"&clen="+Vc+"&dur="+Vc+"&lmt="+Pb+"&mt="+gc+"&fvip=3&keepalive="+xb+"&c=WEB&txp="+Db+"&n="+Ke+"&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:Fb,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:Oa,end:pb},lastModified:Pb,contentLength:Vc,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:Fb,approxDurationMs:Db},{itag:242,url:"https://"+Ua+".googlevideo.com/videoplayback?expire="+gc+"&ei="+R+"&ip="+Mb+"&id=o-AF"+nh+"&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="+Mf+"&mn="+
jd+"&ms="+jd+"&mv="+Ye+"&mvi="+ia+"&pl="+qb+"&initcwndbps="+Db+"&siu="+ia+"&spc="+aa+"&vprv="+ia+"&svpuc="+ia+"&mime=video%2Fwebm&ns="+ib+"&gir="+xb+"&clen="+Vc+"&dur="+Vc+"&lmt="+Pb+"&mt="+gc+"&fvip=3&keepalive="+xb+"&c=WEB&txp="+Db+"&n="+Ke+"&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:Fb,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:Oa,end:pb},lastModified:Pb,contentLength:Vc,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:Fb,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Db},{itag:395,url:"https://"+Ua+".googlevideo.com/videoplayback?expire="+gc+"&ei="+R+"&ip="+Mb+"&id=o-AF"+nh+"&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="+
Mf+"&mn="+jd+"&ms="+jd+"&mv="+Ye+"&mvi="+ia+"&pl="+qb+"&initcwndbps="+Db+"&siu="+ia+"&spc="+aa+"&vprv="+ia+"&svpuc="+ia+"&mime=video%2Fmp4&ns="+ib+"&gir="+xb+"&clen="+Vc+"&dur="+Vc+"&lmt="+Pb+"&mt="+gc+"&fvip=3&keepalive="+xb+"&c=WEB&txp="+Db+"&n="+Ke+"&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:Fb,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:Oa,end:pb},lastModified:Pb,contentLength:Vc,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:Fb,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Db},{itag:160,url:"https://"+Ua+".googlevideo.com/videoplayback?expire="+gc+"&ei="+R+"&ip="+Mb+"&id=o-AF"+nh+"&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="+
Mf+"&mn="+jd+"&ms="+jd+"&mv="+Ye+"&mvi="+ia+"&pl="+qb+"&initcwndbps="+Db+"&siu="+ia+"&spc="+aa+"&vprv="+ia+"&svpuc="+ia+"&mime=video%2Fmp4&ns="+ib+"&gir="+xb+"&clen="+Vc+"&dur="+Vc+"&lmt="+Pb+"&mt="+gc+"&fvip=3&keepalive="+xb+"&c=WEB&txp="+Db+"&n="+Ke+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:Fb,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:Oa,end:pb},lastModified:Pb,contentLength:Vc,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:tb,approxDurationMs:Db},{itag:278,url:"https://"+Ua+".googlevideo.com/videoplayback?expire="+gc+"&ei="+R+"&ip="+Mb+"&id=o-AF"+nh+"&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="+Mf+"&mn="+
jd+"&ms="+jd+"&mv="+Ye+"&mvi="+ia+"&pl="+qb+"&initcwndbps="+Db+"&siu="+ia+"&spc="+aa+"&vprv="+ia+"&svpuc="+ia+"&mime=video%2Fwebm&ns="+ib+"&gir="+xb+"&clen="+Vc+"&dur="+Vc+"&lmt="+Pb+"&mt="+gc+"&fvip=3&keepalive="+xb+"&c=WEB&txp="+Db+"&n="+Ke+"&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:Fb,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:Oa,end:pb},lastModified:Pb,contentLength:Vc,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:tb,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Db},{itag:394,url:"https://"+Ua+".googlevideo.com/videoplayback?expire="+gc+"&ei="+R+"&ip="+Mb+"&id=o-AF"+nh+"&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="+
Mf+"&mn="+jd+"&ms="+jd+"&mv="+Ye+"&mvi="+ia+"&pl="+qb+"&initcwndbps="+Db+"&siu="+ia+"&spc="+aa+"&vprv="+ia+"&svpuc="+ia+"&mime=video%2Fmp4&ns="+ib+"&gir="+xb+"&clen="+Vc+"&dur="+Vc+"&lmt="+Pb+"&mt="+gc+"&fvip=3&keepalive="+xb+"&c=WEB&txp="+Db+"&n="+Ke+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+n+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:tb,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:Oa,end:pb},lastModified:Pb,contentLength:Vc,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:tb,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Db},{itag:140,url:"https://"+Ua+".googlevideo.com/videoplayback?expire="+gc+"&ei="+R+"&ip="+Mb+"&id=o-AF"+nh+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
Mf+"&mn="+jd+"&ms="+jd+"&mv="+Ye+"&mvi="+ia+"&pl="+qb+"&initcwndbps="+Db+"&siu="+ia+"&spc="+aa+"&vprv="+ia+"&svpuc="+ia+"&mime=audio%2Fmp4&ns="+ib+"&gir="+xb+"&clen="+Vc+"&dur="+Vc+"&lmt="+Pb+"&mt="+gc+"&fvip=3&keepalive="+xb+"&c=WEB&txp="+Db+"&n="+Ke+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:Fb,
initRange:{start:"0",end:"631"},indexRange:{start:Oa,end:pb},lastModified:Pb,contentLength:Vc,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Fb,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Db,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+Ua+".googlevideo.com/videoplayback?expire="+gc+"&ei="+R+"&ip="+Mb+"&id=o-AF"+nh+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+Mf+"&mn="+jd+"&ms="+jd+"&mv="+Ye+"&mvi="+ia+"&pl="+
qb+"&initcwndbps="+Db+"&siu="+ia+"&spc="+aa+"&vprv="+ia+"&svpuc="+ia+"&mime=audio%2Fwebm&ns="+ib+"&gir="+xb+"&clen="+Db+"&dur="+Vc+"&lmt="+Pb+"&mt="+gc+"&fvip=3&keepalive="+xb+"&c=WEB&txp="+Db+"&n="+Ke+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'audio/webm; codecs="opus"',bitrate:tb,initRange:{start:"0",end:"265"},indexRange:{start:Oa,
end:pb},lastModified:Pb,contentLength:Db,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:tb,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Db,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+Ua+".googlevideo.com/videoplayback?expire="+gc+"&ei="+R+"&ip="+Mb+"&id=o-AF"+nh+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+Mf+"&mn="+jd+"&ms="+jd+"&mv="+Ye+"&mvi="+ia+"&pl="+qb+"&initcwndbps="+Db+"&siu="+ia+"&spc="+aa+"&vprv="+ia+"&svpuc="+ia+"&mime=audio%2Fwebm&ns="+
ib+"&gir="+xb+"&clen="+Db+"&dur="+Vc+"&lmt="+Pb+"&mt="+gc+"&fvip=3&keepalive="+xb+"&c=WEB&txp="+Db+"&n="+Ke+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+t+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'audio/webm; codecs="opus"',bitrate:tb,initRange:{start:"0",end:"265"},indexRange:{start:Oa,end:pb},lastModified:Pb,contentLength:Db,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:tb,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Db,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+Ua+".googlevideo.com/videoplayback?expire="+gc+"&ei="+R+"&ip="+Mb+"&id=o-AF"+nh+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+Mf+"&mn="+jd+"&ms="+jd+"&mv="+Ye+"&mvi="+ia+"&pl="+qb+"&initcwndbps="+Db+"&siu="+ia+"&spc="+aa+"&vprv="+ia+"&svpuc="+ia+"&mime=audio%2Fwebm&ns="+ib+"&gir="+xb+"&clen="+Vc+"&dur="+Vc+"&lmt="+Pb+"&mt="+gc+"&fvip=3&keepalive="+xb+"&c=WEB&txp="+
Db+"&n="+Ke+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+n+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+u,mimeType:'audio/webm; codecs="opus"',bitrate:Fb,initRange:{start:"0",end:"265"},indexRange:{start:Oa,end:pb},lastModified:Pb,contentLength:Vc,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Fb,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Db,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="+zd+"&docid="+w+"&ei="+R+"&feature="+m+"&fexp="+$o+"&ns="+La+"&plid="+J+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Ye+"&el="+Yg+"&len="+pb+"&of="+fc+
"&uga="+qb+"&vm="+Qb},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+zd+"&docid="+w+"&ei="+R+"&feature="+m+"&fexp="+$o+"&ns="+La+"&plid="+J+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Ye+"&el="+Yg+"&len="+pb+"&of="+fc+"&uga="+qb+"&vm="+Qb},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+zd+"&docid="+w+"&ei="+R+"&feature="+m+"&fexp="+$o+"&ns="+La+"&plid="+J+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
Ye+"&el="+Yg+"&len="+pb+"&of="+fc+"&uga="+qb+"&vm="+Qb},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+R+"&m="+Fa+"&oid="+fc+"&plid="+J+"&pltype="+cr+"&ptchn="+fc+"&ptk="+G+"&video_id="+w},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+zd+"&docid="+w+"&ei="+R+"&event="+Zi+"&feature="+m+"&fexp="+$o+"&ns="+La+"&plid="+J+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Ye},atrUrl:{baseUrl:"https://s.youtube.com/api/stats/atr?docid="+w+"&ei="+R+"&feature="+
m+"&len="+pb+"&ns="+La+"&plid="+J+"&ver="+ia,elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+w+"&caps="+xb+"&opi="+zd+"&xoaf="+ia+"&hl="+La+"&ip="+Mb+"&ipbits="+ia+"&expire="+gc+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+Mb+"&key="+xb+"&lang="+ma,name:{simpleText:nd},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,
trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+w+"&caps="+xb+"&opi="+zd+"&xoaf="+ia+"&hl="+La+"&ip="+Mb+"&ipbits="+ia+"&expire="+gc+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+Mb+"&key="+xb+"&kind="+xb+"&lang="+La,name:{simpleText:Di},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:nd,title:nd,lengthSeconds:"1155",keywords:[$b,Qk,Yg,sa],
channelId:ib,isOwnerViewing:!1,shortDescription:Ke,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+w+"/hqdefault.jpg?sqp=-oaymwE"+pk+"G&rs="+Yf,width:168,height:94},{url:"https://i.ytimg.com/vi/"+w+"/hqdefault.jpg?sqp=-oaymwE"+pk+"G&rs="+Yf,width:196,height:110},{url:"https://i.ytimg.com/vi/"+w+"/hqdefault.jpg?sqp=-oaymwE"+pk+"G&rs="+V,width:246,height:138},{url:"https://i.ytimg.com/vi/"+w+"/hqdefault.jpg?sqp=-oaymwE"+pk+"G&rs="+V,width:336,height:188},{url:"https://i.ytimg.com/vi/"+
w+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:Db,author:Qk,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:Db,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+fc+"/featured_channel.jpg?v="+$b,width:40,height:40}]},trackingParams:zb+"=",navigationEndpoint:{clickTrackingParams:Vd,commandMetadata:{webCommandMetadata:{url:"/channel/"+ib,webPageType:"WEB_PAGE_TYPE_CHANNEL",
rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:ib}},channelName:Qk,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:cr}]},subscribed:!1,enabled:!0,type:"FREE",channelId:ib,showPreferences:!1,subscribedButtonText:{runs:[{text:nd}]},unsubscribedButtonText:{runs:[{text:ap}]},trackingParams:zb+"=",unsubscribeButtonText:{runs:[{text:Qk}]},serviceEndpoints:[{clickTrackingParams:Vd,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},
subscribeEndpoint:{channelIds:[ib],params:$b}},{clickTrackingParams:Vd,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:Vd,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:zb+"=",dialogMessages:[{runs:[{text:Gh},{text:Ga},{text:sa}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Qk}]},serviceEndpoint:{clickTrackingParams:Vd,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[ib],params:$b}},accessibility:{label:od},trackingParams:zb+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Qk}]},accessibility:{label:Zi},trackingParams:zb+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:$b}},unsubscribeAccessibility:{accessibilityData:{label:mb}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],
playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:Vc},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:Vd,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},
subscribeCommand:{clickTrackingParams:Vd,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[ib],params:$b}},unsubscribeCommand:{clickTrackingParams:Vd,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[ib],params:$b}},addToWatchLaterCommand:{clickTrackingParams:Vd,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},
playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:nd,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:Vd,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:nd}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+w+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+pk+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+
w+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+nd,width:1280,height:720},title:{simpleText:cr},description:{simpleText:cr},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+Gh,externalChannelId:ib,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:Db,category:"Travel & Events",publishDate:id,ownerChannelName:Qk,uploadDate:id}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:Gh},trackingParams:zb+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:Vd,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:zb+"="}}],headerText:{simpleText:Xp},icon:{infoCardIconRenderer:{trackingParams:zb+"="}},closeButton:{infoCardIconRenderer:{trackingParams:zb+"="}},trackingParams:zb+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:zb+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+nd+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:pm,interpreterSafeUrl:(hg.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+sd+".js",hg),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:mb},{text:sa,bold:!0}]},endpoint:{clickTrackingParams:Vd,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:zb+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:$b}]},actionButton:{buttonRenderer:{text:{runs:[{text:Di}]},navigationEndpoint:{clickTrackingParams:Vd,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+w,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
w,target:"TARGET_NEW_WINDOW"}},trackingParams:zb+"="}},trackingParams:zb+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+Ba+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+Ba+"=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:Db,endMs:Db,title:{accessibility:{accessibilityData:{label:cr}},simpleText:Hs},metadata:{simpleText:mb},callToAction:{simpleText:Zi},dismiss:{simpleText:mb},endpoint:{clickTrackingParams:Vd,commandMetadata:{webCommandMetadata:{url:"/channel/"+ib,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:ib}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:Zi}]},subscribed:!1,enabled:!0,type:"FREE",channelId:ib,showPreferences:!1,
subscribedButtonText:{runs:[{text:cr}]},unsubscribedButtonText:{runs:[{text:Qk}]},trackingParams:zb+"=",unsubscribeButtonText:{runs:[{text:Zi}]},serviceEndpoints:[{clickTrackingParams:Vd,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[ib],params:$b}},{clickTrackingParams:Vd,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:Vd,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:zb+
"=",dialogMessages:[{runs:[{text:Ke},{text:Yg},{text:sg}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Hs}]},serviceEndpoint:{clickTrackingParams:Vd,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[ib],params:$b}},accessibility:{label:Ga},trackingParams:zb+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Di}]},
accessibility:{label:Xp},trackingParams:zb+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:nd}},unsubscribeAccessibility:{accessibilityData:{label:cr}}}},trackingParams:zb+"=",isSubscribe:!0,id:Ab}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+w+"/hqdefault.jpg?sqp=-oaymwE"+pk+"G&rs="+V,width:168,height:94},{url:"https://i.ytimg.com/vi/"+w+"/hqdefault.jpg?sqp=-oaymwE"+pk+"G&rs="+Yf,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+w+"/hqdefault.jpg?sqp=-oaymwE"+pk+"G&rs="+V,width:246,height:138},{url:"https://i.ytimg.com/vi/"+w+"/hqdefault.jpg?sqp=-oaymwE"+pk+"G&rs="+V,width:336,height:188},{url:"https://i.ytimg.com/vi/"+w+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:Db,endMs:Db,title:{accessibility:{accessibilityData:{label:sa}},simpleText:nd},metadata:{simpleText:sa},endpoint:{clickTrackingParams:Vd,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
nd,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:nd,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+Ua+".googlevideo.com/videoplayback?source=youtube&oeis="+ia+"&c=WEB&oad="+pb+"&ovd="+pb+"&oaad="+Yb+"&oavd="+Yb+"&ocs="+Oa+"&oewis="+ia+"&oputc="+ia+"&ofpcc="+ia+"&siu="+ia+"&msp="+ia+"&odepv="+ia+
"&id=o-AF"+nh+"&ip="+Mb+"&initcwndbps="+Db+"&mt="+gc+"&oweuc="+$o}}}}},trackingParams:zb+"=",id:Ab,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:sg}},simpleText:Zi},style:"DEFAULT"}}]}}],startMs:Db,trackingParams:zb+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:ia,offsetEndMilliseconds:Yb},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+zd+";dc_trk_cid="+zd+";dc_dbm_token="+u+";ord="+gc+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+ia+";dc_rui="+ia+";dc_exteid="+Ab+";dc_av="+Oa+";dc_sk="+ia+";dc_ctype="+qb+";dc_ref=http://www.youtube.com/video/"+nd+";dc_pubid="+ia+";dc_btype=23?gclid="+bb+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
A+"____________"+C+"AxAA&sigh="+nd+"&cid="+ca+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+ia+"&ns="+ia+"&event="+ia+"&device="+ia+"&content_v="+w+"&el="+Yg+"&ei="+R+"&devicever="+c+"&bti="+Db+"&format="+Pc+"&break_type="+ia+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+ia+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+Mb+"&slot_pos="+ia+"&slot_len="+ia+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+Mf+"&ad_len="+Yb+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
nd+"&aqi="+R+"&ad_rmp="+ia+"&sli="+ia}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+w+"&cid="+ca+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+w+"&cid="+ca+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ia+";dc_exteid="+Ab+";met="+ia+";ecn"+ia+"="+
ia+";etm1="+ia+";eid1="+qb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+w+"&cid="+ca+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ia+";dc_exteid="+Ab+";met="+ia+";ecn"+ia+"="+ia+";etm1="+ia+";eid1="+Pc+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
A+"____________"+C+"AxAA&sigh="+w+"&cid="+ca+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ia+";dc_exteid="+Ab+";met="+ia+";ecn"+ia+"="+ia+";etm1="+ia+";eid1="+qb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+w+"&cid="+ca+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+w+"&cid="+ca+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ia+";dc_exteid="+Ab+";met="+ia+";ecn"+ia+"="+ia+";etm1="+ia+";eid1="+qb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+w+"&cid="+ca+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ia+";dc_exteid="+Ab+";met="+ia+";ecn"+ia+"="+ia+";etm1="+ia+";eid1="+Db+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+w+"&cid="+ca+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
A+"____________"+C+"AxAA&sigh="+w+"&cid="+ca+"&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"+A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+ca+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Jc+"&ctype="+Oa+"&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"+
A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+ca+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Jc+"&label=video_engaged_view&ctype="+Oa+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ia+";dc_exteid="+Ab+";met="+ia+";ecn"+ia+"="+ia+";etm1="+ia+";eid1="+Pc+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
zd+";dc_trk_cid="+zd+";dc_dbm_token="+u+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+ia+";ord="+zd+";dc_rui="+ia+";dc_exteid="+Lc+";dc_av="+ia+";dc_sk="+ia+";dc_ctype="+qb+";dc_pubid="+ia+";dc_btype=3?gclid="+bb+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+w+"&cid="+ca+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ia+";dc_exteid="+Ab+";met="+ia+";ecn"+ia+"="+ia+";etm1="+ia+";eid1="+qb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+r+"&sig="+fb+"&ad_cpn=[AD_CPN]&id="+sg+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+sg+"&dc_pubid="+ia+"&dc_exteid="+Ab+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+w+"&cid="+ca+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+r+"&sig="+fb+"&ad_cpn=[AD_CPN]&id="+sg+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+ia},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+sg+"&avm="+ia+"&dc_pubid="+ia+"&dc_exteid="+
Ab+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+w+"&cid="+ca+"&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="+ia+";dc_exteid="+Ab+";met="+ia+";ecn"+ia+"="+ia+";etm1="+ia+";eid1="+qb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
r+"&sig="+fb+"&ad_cpn=[AD_CPN]&id="+sg+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+ia},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+sg+"&dc_pubid="+ia+"&dc_exteid="+Ab+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ia+";dc_exteid="+Ab+";met="+ia+";ecn"+ia+"="+ia+";etm1="+ia+";eid1="+qb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
ia+";dc_exteid="+Ab+";met="+ia+";ecn"+ia+"="+ia+";etm1="+ia+";eid1="+Pc+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ia+";dc_exteid="+Ab+";met="+ia+";ecn"+ia+"="+ia+";etm1="+ia+";eid1="+qb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ia+";dc_exteid="+Ab+";met="+ia+";ecn"+ia+"="+ia+";etm1="+ia+";eid1="+Pc+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+w+"&cid="+ca+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ia+";dc_exteid="+Ab+";met="+ia+";ecn"+ia+"="+ia+";etm1="+ia+";eid1="+qb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:Vd,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+ca+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Jc+"&label=video_click_to_advertiser_site&ctype="+Oa+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+ca+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Jc+"&label=video_click_to_advertiser_site&ctype="+
Oa+"&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/"+w+"/mqdefault.jpg",width:320,height:180}]},trackingParams:zb+"="},trackingParams:zb+
"=",templatedCountdown:{templatedAdText:{text:Di,isTemplated:!0,trackingParams:zb+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:sg,isTemplated:!1,trackingParams:zb+"="},trackingParams:zb+"="}},trackingParams:zb+"=",skipOffsetMilliseconds:5E3}},trackingParams:zb+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:Ga},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:Vd,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+ca+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Jc+"&label=video_click_to_advertiser_site&ctype="+Oa+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+ca+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Jc+"&label=video_click_to_advertiser_site&ctype="+Oa+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:zb+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:$b,isTemplated:!1,trackingParams:zb+"="},trackingParams:zb+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:Yg,isTemplated:!0,trackingParams:zb+"="}},trackingParams:zb+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:Vd,openPopupAction:{popup:{aboutThisAdRenderer:{url:(di.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+I+"&hl="+La+"&origin=www.youtube.com&ata_theme="+Hs,di),trackingParams:zb+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:zb+"="}},hoverText:{runs:[{text:Ke}]},trackingParams:zb+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Rk+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:zb+"="},headline:{text:ap,isTemplated:!1,trackingParams:zb+"="},description:{text:cr,
trackingParams:zb+"="},actionButton:{buttonRenderer:{text:{simpleText:Ke},navigationEndpoint:{clickTrackingParams:Vd,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+zd+";dc_trk_cid="+zd+";dc_dbm_token="+u+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+ia+";ord="+zd+";dc_rui="+ia+";dc_exteid="+Ab+";dc_av="+ia+";dc_sk="+ia+";dc_ctype="+qb+";dc_pubid="+ia+";dc_btype=3?gclid="+bb+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+ca+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Jc+"&label=video_click_to_advertiser_site&ctype="+Oa+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+ca+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Jc+"&label=video_click_to_advertiser_site&ctype="+Oa+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:zb+"="}},startMs:ia,trackingParams:zb+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Ke},elementId:sg}},elementId:Zi,trackingParams:zb+"=",legacyInfoCardVastExtension:Gh,sodarExtensionData:{siub:Hs,bgub:nd,scs:sa,bgp:Ke},externalVideoId:nd,adLayoutLoggingData:{serializedAdServingDataEntry:Gh},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Rk+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:zb+"="},
headline:{text:sg,isTemplated:!1,trackingParams:zb+"="},description:{text:mb,isTemplated:!1,trackingParams:zb+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:Di},navigationEndpoint:{clickTrackingParams:Vd,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+zd+";dc_trk_cid="+zd+";dc_dbm_token="+u+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+ia+";ord="+zd+";dc_rui="+ia+";dc_exteid="+
Ab+";dc_av="+ia+";dc_sk="+ia+";dc_ctype="+qb+";dc_pubid="+ia+";dc_btype=3?gclid="+bb+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+ca+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Jc+"&label=video_click_to_advertiser_site&ctype="+Oa+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+A+"____________"+C+"AxAA&ase=2&num="+
ia+"&cid="+ca+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Jc+"&label=video_click_to_advertiser_site&ctype="+Oa+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:zb+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:zb+"="}},navigationEndpoint:{clickTrackingParams:Vd,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+zd+";dc_trk_cid="+
zd+";dc_dbm_token="+u+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+ia+";ord="+zd+";dc_rui="+ia+";dc_exteid="+Ab+";dc_av="+ia+";dc_sk="+ia+";dc_ctype="+qb+";dc_pubid="+ia+";dc_btype=3?gclid="+bb+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+w+"&cid="+ca+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+A+"____________"+
C+"AxAA&ase=2&num="+ia+"&cid="+ca+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Jc+"&label=video_click_to_advertiser_site&ctype="+Oa+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+ca+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Jc+"&label=video_click_to_advertiser_site&ctype="+Oa+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:zb+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:zb+"="},abandonCommands:{commands:[{clickTrackingParams:Vd,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+w+"&cid="+ca+"&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="+ia+";dc_exteid="+Ab+";met="+ia+";ecn"+
ia+"="+ia+";etm1="+ia+";eid1="+qb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:Vd,commandExecutorCommand:{commands:[{clickTrackingParams:Vd,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+w+"&cid="+ca+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:Qk,isTemplated:!1,trackingParams:zb+
"="},trackingParams:zb+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Zi},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+w+"&cid="+ca+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ia+";dc_exteid="+Ab+";met="+ia+";ecn"+ia+"="+ia+";etm1="+ia+";eid1="+Db+";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="+zd+";dc_trk_cid="+zd+";ord="+gc+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+ia+";dc_rui="+ia+";dc_exteid="+Ab+";dc_av="+Oa+";dc_sk="+ia+";dc_ctype="+qb+";dc_ref=http://www.youtube.com/video/"+nd+";dc_pubid="+ia+";dc_btype=23?gclid="+bb+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+A+"____________"+C+"AxAA&sigh="+nd+"&cid="+ca+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+ia+"&ns="+ia+"&event="+ia+"&device="+ia+"&content_v="+w+"&el="+Yg+"&ei="+R+"&devicever="+c+"&bti="+Db+"&format="+Pc+"&break_type="+ia+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+ia+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+Mb+"&slot_pos="+ia+"&slot_len="+ia+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
Mf+"&ad_len="+Yb+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+nd+"&aqi="+R+"&ad_rmp="+ia+"&sli="+ia}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+nd+"&cid="+ca+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+nd+"&cid="+ca+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
ia+";dc_exteid="+Ab+";met="+ia+";ecn"+ia+"="+ia+";etm1="+ia+";eid1="+qb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+nd+"&cid="+ca+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ia+";dc_exteid="+Ab+";met="+ia+";ecn"+ia+"="+ia+";etm1="+ia+";eid1="+Pc+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+nd+"&cid="+ca+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ia+";dc_exteid="+Ab+";met="+ia+";ecn"+ia+"="+ia+";etm1="+ia+";eid1="+qb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+nd+"&cid="+
ca+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+nd+"&cid="+ca+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ia+";dc_exteid="+Ab+";met="+ia+";ecn"+ia+"="+ia+";etm1="+ia+";eid1="+qb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
A+"____________"+C+"AxAA&sigh="+nd+"&cid="+ca+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ia+";dc_exteid="+Ab+";met="+ia+";ecn"+ia+"="+ia+";etm1="+ia+";eid1="+Db+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+nd+"&cid="+ca+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+nd+"&cid="+ca+"&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"+A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+ca+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Jc+"&ctype="+Oa+"&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"+A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+ca+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Jc+"&label=video_engaged_view&ctype="+Oa+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ia+";dc_exteid="+Ab+";met="+ia+";ecn"+ia+"="+ia+";etm1="+ia+";eid1="+Pc+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+nd+"&cid="+ca+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ia+";dc_exteid="+Ab+";met="+ia+";ecn"+ia+"="+ia+";etm1="+ia+";eid1="+qb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+r+"&sig="+fb+"&ad_cpn=[AD_CPN]&id="+
sg+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+sg+"&dc_pubid="+ia+"&dc_exteid="+Ab+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+nd+"&cid="+ca+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+r+
"&sig="+fb+"&ad_cpn=[AD_CPN]&id="+sg+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+ia},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+sg+"&avm="+ia+"&dc_pubid="+ia+"&dc_exteid="+Ab+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+nd+"&cid="+ca+"&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="+ia+";dc_exteid="+Ab+";met="+ia+";ecn"+ia+"="+ia+";etm1="+ia+";eid1="+qb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+r+"&sig="+fb+"&ad_cpn=[AD_CPN]&id="+sg+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+ia},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+sg+"&dc_pubid="+ia+"&dc_exteid="+Ab+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ia+";dc_exteid="+Ab+";met="+ia+";ecn"+ia+"="+ia+";etm1="+ia+";eid1="+qb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ia+";dc_exteid="+Ab+";met="+ia+";ecn"+ia+"="+ia+";etm1="+ia+";eid1="+Pc+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
ia+";dc_exteid="+Ab+";met="+ia+";ecn"+ia+"="+ia+";etm1="+ia+";eid1="+qb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ia+";dc_exteid="+Ab+";met="+ia+";ecn"+ia+"="+ia+";etm1="+ia+";eid1="+Pc+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+nd+"&cid="+ca+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ia+";dc_exteid="+Ab+";met="+ia+";ecn"+ia+"="+ia+";etm1="+ia+";eid1="+qb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:Vd,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+ca+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Jc+"&label=video_click_to_advertiser_site&ctype="+
Oa+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+ca+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Jc+"&label=video_click_to_advertiser_site&ctype="+Oa+"&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/"+w+"/mqdefault.jpg",width:320,height:180}]},trackingParams:zb+"="},trackingParams:zb+"=",templatedCountdown:{templatedAdText:{text:nd,isTemplated:!0,trackingParams:zb+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:mb,isTemplated:!1,trackingParams:zb+"="},trackingParams:zb+"="}},
trackingParams:zb+"=",skipOffsetMilliseconds:5E3}},trackingParams:zb+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:sg},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:Vd,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+ca+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Jc+"&label=video_click_to_advertiser_site&ctype="+Oa+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+ca+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Jc+"&label=video_click_to_advertiser_site&ctype="+Oa+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:zb+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:Gh,isTemplated:!1,trackingParams:zb+"="},trackingParams:zb+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:Xp,
isTemplated:!0,trackingParams:zb+"="}},trackingParams:zb+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:Vd,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Is.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+I+"&hl="+La+"&origin=www.youtube.com&ata_theme="+Hs,Is),trackingParams:zb+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:zb+"="}},hoverText:{runs:[{text:ap}]},trackingParams:zb+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Da+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:zb+"="},headline:{text:Zi,isTemplated:!1,trackingParams:zb+"="},description:{text:Qk,trackingParams:zb+"="},actionButton:{buttonRenderer:{text:{simpleText:Yg},navigationEndpoint:{clickTrackingParams:Vd,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+ca+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Jc+"&label=video_click_to_advertiser_site&ctype="+Oa+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+ca+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Jc+"&label=video_click_to_advertiser_site&ctype="+Oa+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:zb+"="}},startMs:ia,trackingParams:zb+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:sg},elementId:$b}},elementId:$b,trackingParams:zb+"=",legacyInfoCardVastExtension:nd,sodarExtensionData:{siub:Gh,bgub:sg,scs:mb,bgp:Qk},externalVideoId:nd,adLayoutLoggingData:{serializedAdServingDataEntry:Gh},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Da+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:zb+"="},headline:{text:Gh,
isTemplated:!1,trackingParams:zb+"="},description:{text:Zi,isTemplated:!1,trackingParams:zb+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:nd},navigationEndpoint:{clickTrackingParams:Vd,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+ca+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Jc+"&label=video_click_to_advertiser_site&ctype="+Oa+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+ca+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Jc+"&label=video_click_to_advertiser_site&ctype="+Oa+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:zb+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:zb+"="}},navigationEndpoint:{clickTrackingParams:Vd,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
A+"____________"+C+"AxAA&sigh="+nd+"&cid="+ca+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+ca+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Jc+"&label=video_click_to_advertiser_site&ctype="+Oa+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+A+"____________"+C+"AxAA&ase=2&num="+
ia+"&cid="+ca+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Jc+"&label=video_click_to_advertiser_site&ctype="+Oa+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:zb+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:zb+"="},abandonCommands:{commands:[{clickTrackingParams:Vd,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+nd+"&cid="+ca+"&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="+ia+";dc_exteid="+Ab+";met="+ia+";ecn"+ia+"="+ia+";etm1="+ia+";eid1="+qb+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:Vd,commandExecutorCommand:{commands:[{clickTrackingParams:Vd,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+nd+"&cid="+ca+"&label=video_card_endcap_impression"}],
pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:Ke,isTemplated:!1,trackingParams:zb+"="},trackingParams:zb+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Gh},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+nd+"&cid="+ca+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ia+";dc_exteid="+Ab+";met="+ia+";ecn"+
ia+"="+ia+";etm1="+ia+";eid1="+Db+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:cr}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Zi}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Yb,offsetEndMilliseconds:Pc},hideCueRangeMarker:!0}},
renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+R+"&m_pos="+qb+"&token=ALHj"+fa+"&index="+ia+"&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="+c+"&m_pos_ms="+Yb}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Di}}},
{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Pc,offsetEndMilliseconds:Pc},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+R+"&m_pos="+Oa+"&token=ALHj"+fa+"&index="+ia+"&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="+
c+"&m_pos_ms="+Pc}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Ke}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Pc,offsetEndMilliseconds:Pc},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+R+"&m_pos="+Oa+"&token=ALHj"+fa+"&index="+ia+"&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="+
c+"&m_pos_ms="+Pc}},adSlotLoggingData:{serializedSlotAdServingDataEntry:$b}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Pc,offsetEndMilliseconds:Pc},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+R+"&m_pos="+Oa+"&token=ALHj"+fa+"&index="+ia+"&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="+
c+"&m_pos_ms="+Pc}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Hs}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Pc,offsetEndMilliseconds:qb},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+R+"&m_pos="+Oa+"&token=ALHj"+fa+"&index="+ia+"&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="+
c+"&m_pos_ms="+Pc}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Yg}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:qb,offsetEndMilliseconds:qb},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+R+"&m_pos="+qb+"&token=ALHj"+fa+"&index="+ia+"&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="+
c+"&m_pos_ms="+qb}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Gh}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:Xp,isTemplated:!1,trackingParams:zb+"="},description:{text:Ke,isTemplated:!1,trackingParams:zb+"="},actionButton:{buttonRenderer:{text:{simpleText:Xp},navigationEndpoint:{clickTrackingParams:Vd,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
zd+";dc_trk_cid="+zd+";dc_dbm_token="+u+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+ia+";ord="+zd+";dc_rui="+ia+";dc_exteid="+Ab+";dc_av="+ia+";dc_sk="+ia+";dc_ctype="+qb+";dc_pubid="+ia+";dc_btype=3?gclid="+bb+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+ca+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Jc+"&label=video_click_to_advertiser_site&ctype="+Oa+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+ca+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Jc+"&label=video_click_to_advertiser_site&ctype="+Oa+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:zb+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Rk+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:zb+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+za+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:zb+"="},navigationEndpoint:{clickTrackingParams:Vd,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+zd+";dc_trk_cid="+zd+";dc_dbm_token="+u+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+ia+";ord="+zd+
";dc_rui="+ia+";dc_exteid="+Ab+";dc_av="+ia+";dc_sk="+ia+";dc_ctype="+qb+";dc_pubid="+ia+";dc_btype=3?gclid="+bb+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+ca+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Jc+"&label=video_click_to_advertiser_site&ctype="+Oa+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+ca+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Jc+"&label=video_click_to_advertiser_site&ctype="+Oa+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:zb+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Vd,openPopupAction:{popup:{aboutThisAdRenderer:{url:(dy.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+I+"&hl="+La+"&origin=www.youtube.com&ata_theme="+Hs,dy),trackingParams:zb+"="}},popupType:"DIALOG"}},trackingParams:zb+"="}},hoverText:{runs:[{text:Yg}]},trackingParams:zb+"="}},adVideoId:nd,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+w+"&cid="+ca+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Di},associatedCompositePlayerBytesLayoutId:Ke}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:ap}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:sg,isTemplated:!1,trackingParams:zb+"="},description:{text:Ga,isTemplated:!1,trackingParams:zb+"="},actionButton:{buttonRenderer:{text:{simpleText:Xp},navigationEndpoint:{clickTrackingParams:Vd,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+A+"____________"+
C+"AxAA&ase=2&num="+ia+"&cid="+ca+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Jc+"&label=video_click_to_advertiser_site&ctype="+Oa+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+ca+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Jc+"&label=video_click_to_advertiser_site&ctype="+Oa+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:zb+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Da+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:zb+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Za+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:zb+"="},navigationEndpoint:{clickTrackingParams:Vd,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+A+"____________"+C+"AxAA&ase=2&num="+
ia+"&cid="+ca+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Jc+"&label=video_click_to_advertiser_site&ctype="+Oa+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+ca+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Jc+"&label=video_click_to_advertiser_site&ctype="+Oa+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:zb+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Vd,openPopupAction:{popup:{aboutThisAdRenderer:{url:(WI.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+I+"&hl="+La+"&origin=www.youtube.com&ata_theme="+Hs,WI),trackingParams:zb+"="}},popupType:"DIALOG"}},trackingParams:zb+"="}},
hoverText:{runs:[{text:$b}]},trackingParams:zb+"="}},adVideoId:nd,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+nd+"&cid="+ca+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Zi},associatedCompositePlayerBytesLayoutId:Ke}},adSlotLoggingData:{serializedSlotAdServingDataEntry:nd}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:sa,
isTemplated:!1,trackingParams:zb+"="},description:{text:Di,isTemplated:!1,trackingParams:zb+"="},actionButton:{buttonRenderer:{text:{simpleText:ap},navigationEndpoint:{clickTrackingParams:Vd,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+zd+";dc_trk_cid="+zd+";dc_dbm_token="+u+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+ia+";ord="+zd+";dc_rui="+ia+";dc_exteid="+Ab+";dc_av="+ia+";dc_sk="+ia+";dc_ctype="+
qb+";dc_pubid="+ia+";dc_btype=3?gclid="+bb+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+ca+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Jc+"&label=video_click_to_advertiser_site&ctype="+Oa+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+ca+"&ad_cpn=%5BAD_CPN%5D&sig="+
V+"&adurl="+Jc+"&label=video_click_to_advertiser_site&ctype="+Oa+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:zb+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Rk+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:zb+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+za+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:zb+
"="},navigationEndpoint:{clickTrackingParams:Vd,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+zd+";dc_trk_cid="+zd+";dc_dbm_token="+u+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+ia+";ord="+zd+";dc_rui="+ia+";dc_exteid="+Ab+";dc_av="+ia+";dc_sk="+ia+";dc_ctype="+qb+";dc_pubid="+ia+";dc_btype=3?gclid="+bb+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+ca+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Jc+"&label=video_click_to_advertiser_site&ctype="+Oa+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+A+"____________"+C+"AxAA&ase=2&num="+ia+"&cid="+ca+"&ad_cpn=%5BAD_CPN%5D&sig="+V+"&adurl="+Jc+"&label=video_click_to_advertiser_site&ctype="+Oa+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:zb+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:Vd,openPopupAction:{popup:{aboutThisAdRenderer:{url:(B0.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+I+"&hl="+La+"&origin=www.youtube.com&ata_theme="+Hs,B0),trackingParams:zb+"="}},popupType:"DIALOG"}},trackingParams:zb+
"="}},hoverText:{runs:[{text:Di}]},trackingParams:zb+"="}},adVideoId:nd,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+A+"____________"+C+"AxAA&sigh="+w+"&cid="+ca+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:od},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:Ke}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Yg}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:sd,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:sd,command:{innertubeCommand:{clickTrackingParams:Vd,ypcGetOfflineUpsellEndpoint:{params:Uc}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:zb+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:gc,nanos:be}}}},lDa=JSON.stringify(C0),D0=performance.now()-a;return{objectRepresentation:C0,jsonRepresentation:lDa,generationTime:D0}};
$Ga=function(a,b){if(a===b)return!0;if(!a||!b||typeof a!==typeof b)return!1;if(a instanceof Array&&b instanceof Array){if(a.length!==b.length)return!1;for(var c=0;c<a.length;c++)if(!$Ga(a[c],b[c]))return!1;return!0}if(typeof a==="object"&&typeof b==="object"&&a&&b){for(c in a)if(!(c in b&&$Ga(a[c],b[c])))return!1;for(var d in b)if(!(d in a))return!1;return!0}return!1};
fq=function(a,b,c,d){if(a===b)return!0;if(Array.isArray(a)&&Array.isArray(b)){if(a.length!==b.length)return!1;for(var e=0;e<a.length;e++)if(!fq(a[e],b[e],c,d))return!1;return!0}if(a instanceof Set||b instanceof Set){if(a instanceof Set&&b instanceof Set){if(a.size!==b.size)return!1;d=_.h(a.values());for(e=d.next();!e.done;e=d.next())if(!b.has(e.value))return!1;return!0}return!1}if(a instanceof Function){if(d)return!0;a.name===""&&_.Bl(Error("Df"),"ERROR");return!1}if(a instanceof Date&&b instanceof
Date)return a.getTime()===b.getTime();if(a instanceof Object&&b instanceof Object){if(aHa(a)&&aHa(b))try{return a.equals(b)}catch(k){_.Bl(Error("Ef`"+k),"ERROR")}e=Object.getOwnPropertyNames(a).filter(function(k){return c?a[k]!==void 0:!0});
var g=Object.getOwnPropertyNames(b).filter(function(k){return c?b[k]!==void 0:!0});
if(e.length!==g.length)return!1;e=_.h(e);for(g=e.next();!g.done;g=e.next())if(g=g.value,!fq(a[g],b[g],c,d))return!1;return!0}return!1};
aHa=function(a){a=Object.getPrototypeOf(a).equals;return a instanceof Function&&a.length===1};
dHa=function(){return _.l(function(a){if(a.nextAddress==1)return bHa!==2?a.jumpTo(2):_.p(a,cHa(),3);a.nextAddress!=2&&(bHa=a.yieldResult);return a.return(bHa)})};
gHa=function(){return _.l(function(a){if(a.nextAddress==1)return _.x("ab_pl_man")?eHa!==2?a.jumpTo(2):_.p(a,fHa(),3):a.return(1);a.nextAddress!=2&&(eHa=a.yieldResult);return a.return(eHa)})};
jHa=function(){return _.l(function(a){if(a.nextAddress==1)return _.x("ab_fk_sk_cl")?hHa!==2?a.jumpTo(2):_.p(a,iHa(),3):a.return(1);a.nextAddress!=2&&(hHa=a.yieldResult);return a.return(hHa)})};
mHa=function(){return _.l(function(a){if(a.nextAddress==1)return _.x("ab_det_apb_b")?kHa!==2?a.jumpTo(2):_.p(a,lHa(),3):a.return(1);a.nextAddress!=2&&(kHa=a.yieldResult);return a.return(kHa)})};
pHa=function(){var a;return _.l(function(b){if(b.nextAddress==1)return _.p(b,Promise.all([dHa(),mHa(),gHa(),jHa()]),2);if(b.nextAddress!=3)return nHa()?b.return(!0):_.p(b,oHa(),3);a=b.yieldResult;return b.return(a===0)})};
nHa=function(){var a=[];a.push(qHa());_.x("disable_enf_isd")||a.push(rHa());a.push(bHa);a.push(kHa);a.push(eHa);a.push(hHa);if(_.x("ab_det_el_h")){var b=a.push;sHa===2&&(sHa=tHa());b.call(a,sHa)}_.x("ks_det_gpbl")||a.push(uHa());_.x("ks_get_o_pp")||a.push(vHa());_.x("ab_deg_unex_thr")||a.push(wHa());a.push(xHa);_.x("ab_det_sc_inj_enf")&&a.push(yHa());a.push(zHa);_.x("ab_det_pp_ov")&&a.push(AHa(BHa));return _.x("debug_sk_em_precheck")?!0:a.includes(0)};
DHa=function(){var a=[].concat(_.Be(CHa));try{var b=eq();a.push({jsonRepresentation:b.jsonRepresentation,objectRepresentation:b.objectRepresentation})}catch(c){a=[].concat(_.Be(CHa))}return a};
EHa=function(){var a=["adPlacements","adSlots"];try{return a.filter(function(){return!0}).length!==a.length?0:1}catch(b){return 0}};
vHa=function(){if(EHa()===0)return 0;var a=eq(),b=a.objectRepresentation,c=(0,_.yf.unsafeClone)(b),d=[];if(b&&typeof b==="object")for(var e in b)d.push(e);else return 4;a=a.objectRepresentation.adPlacements;if(!(a&&a.length>0))return 4;try{if(!$Ga(d,Object.getOwnPropertyNames(b)))return 0}catch(g){return 0}return $Ga(c,b)?1:0};
AHa=function(a){var b=Object.getOwnPropertyNames(Object.prototype);a=_.h(a);for(var c=a.next();!c.done;c=a.next()){c=FHa(c.value);for(var d=_.h(b),e=d.next();!e.done;e=d.next())if(c===e.value)return 0}return 1};
qHa=function(){for(var a=_.h(DHa()),b=a.next();!b.done;b=a.next()){var c=b.value;b=c.jsonRepresentation;c=c.objectRepresentation;try{var d=JSON.parse(b);if(!fq(d,c,!1,!1))return 0}catch(e){return 0}}return 1};
yHa=function(){try{var a=_.bj("ab_det_sc_inj_val");a.length===1&&a[0]===""&&(a=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var b=document.querySelectorAll("script"),c=_.h(b),d=c.next();!d.done;d=c.next())for(var e=d.value,g=_.h(a),k=g.next();!k.done;k=g.next()){var m=k.value;b=void 0;if((b=e.textContent)==null?0:b.includes(m))return 0}}catch(n){return 4}return 1};
oHa=function(){var a,b,c,d,e,g,k;return _.l(function(m){switch(m.nextAddress){case 1:_.me(m,2),a=_.h(CHa),b=a.next();case 4:if(b.done)return m.return(1);d=c=b.value;e=d.jsonRepresentation;g=d.objectRepresentation;return _.p(m,(new Response(e,{status:200})).json(),7);case 7:k=m.yieldResult;if(!fq(k,g,!1,!1))return m.return(0);b=a.next();m.jumpTo(4);break;case 2:return _.re(m),m.return(4)}})};
wHa=function(){try{btoa("abc")}catch(a){return 0}return 1};
cHa=function(){var a,b,c,d,e,g,k,m,n,r,t;return _.l(function(u){switch(u.nextAddress){case 1:_.me(u,2),a=_.h(DHa()),b=a.next();case 4:if(b.done)return u.return(1);d=c=b.value;e=d.jsonRepresentation;g=d.objectRepresentation;k=btoa(e);m="data:application/json;base64,"+k;n=new Request(m);Object.defineProperty(n,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(n,"method",{get:function(){return"POST"}});
Object.defineProperty(n,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(n,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(n,"body",{get:function(){return new ReadableStream}});
return _.p(u,fetch(n),7);case 7:return r=u.yieldResult,_.p(u,r.json(),8);case 8:t=u.yieldResult;if(!fq(t,g,!1,!1))return u.return(0);b=a.next();u.jumpTo(4);break;case 2:return _.re(u),u.return(4)}})};
GHa=function(a){var b=document.body,c,d=null;a=_.h(a);for(c=a.next();!c.done;c=a.next()){var e=c.value;c=document.createElement("div");d||(d=c);e.id&&(c.id=e.id);if(e.classes){e=_.h(e.classes);for(var g=e.next();!g.done;g=e.next())c.classList.add(g.value)}b.appendChild(c);b=c}return[d,b]};
tHa=function(){return HHa(GHa([{id:"primary"},{classes:["ytd-two-column-browse-results-renderer","style-scope"]},{id:"masthead-ad",classes:["ytd-rich-grid-renderer"]},{classes:["ytd-rich-grid-renderer","style-scope"]},{classes:["ytd-banner-promo-renderer","style-scope"]},{classes:["ytd-ad-slot-renderer"]}]))};
HHa=function(a){var b=_.h(a);a=b.next().value;b=b.next().value;try{var c=document.createElement("div");document.body.appendChild(c);var d=getComputedStyle(c).display;document.body.removeChild(c);if(d==="none")return 4;var e=getComputedStyle(b).display==="none"?0:1;document.body.removeChild(a);return e}catch(g){return 4}};
iHa=function(){var a,b,c;return _.l(function(d){a=new _.gq;b=document.createElement("button");b.classList.add("ytp-ad-skip-button");b.style.opacity="0";b.style.height="0px";b.style.width="0px";b.style.padding="0px";b.style.border="none";c=function(){b.parentElement&&b.parentElement.removeChild(b)};
b.onclick=function(){a.resolve(0);c()};
document.body.appendChild(b);setTimeout(function(){c();a.resolve(1)},50);
return d.return(a.promise)})};
fHa=function(){var a,b,c,d,e,g,k;return _.l(function(m){a=new _.gq;b=document.createElement("ytd-player");try{document.body.prepend(b)}catch(n){return m.return(4)}c=function(){b.parentElement&&b.parentElement.removeChild(b)};
b.getElementsByTagName("div").length>0?d=b.getElementsByTagName("div")[0]:(d=document.createElement("div"),b.appendChild(d));e=document.createElement("div");d.appendChild(e);g=document.createElement("video");k=new Blob([new Uint8Array([26,69,223,163,159,66,134,129,1,66,247,129,1,66,242,129,4,66,243,129,8,66,130,132,119,101,98,109,66,135,129,4,66,133,129,2,24,83,128,103,1,255,255,255,255,255,255,255,21,73,169,102,153,42,215,177,131,15,66,64,77,128,134,67,104,114,111,109,101,87,65,134,67,104,114,111,
109,101,22,84,174,107,169,174,167,215,129,1,115,197,135,207,96,156,234,24,157,175,131,129,1,85,238,129,1,134,133,86,95,86,80,56,224,138,176,129,1,186,129,1,83,192,129,1,31,67,182,117,1,255,255,255,255,255,255,255,231,129,0,160,204,161,162,129,0,0,0,16,2,0,157,1,42,1,0,1,0,11,199,8,133,133,136,153,132,136,63,130,0,12,13,96,0,254,229,106,0,117,161,165,166,163,238,129,1,165,158,16,2,0,157,1,42,1,0,1,0,11,199,8,133,133,136,153,132,136,63,130,0,12,13,96,0,254,232,120,0,160,187,161,152,129,3,233,0,177,
1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,229,106,0,117,161,155,166,153,238,129,1,165,148,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,232,120,0,251,129,0,160,188,161,152,129,7,208,0,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,229,106,0,117,161,155,166,153,238,129,1,165,148,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,232,120,0,251,130,3,233])],{type:"video/webm"});g.src=_.Cd(Hd(k));g.ontimeupdate=function(){c();a.resolve(0)};
e.appendChild(g);g.classList.add("html5-main-video");setTimeout(function(){e.classList.add("ad-interrupting")},200);
setTimeout(function(){c();a.resolve(1)},5E3);
return m.return(a.promise)})};
IHa=function(a,b){var c,d;return _.l(function(e){switch(e.nextAddress){case 1:c=[],d=0;case 2:if(!(d<3)){e.jumpTo(4);break}return _.p(e,fetch(a,{cache:"no-store",method:b}).then(function(g){c.push(g.status)}).catch(function(){c.push(-1)}),3);
case 3:d++;e.jumpTo(2);break;case 4:return e.return(c)}})};
JHa=function(a){return a.domainLookupStart===0&&a.domainLookupEnd===0&&a.connectStart===0&&a.connectEnd===0};
KHa=function(a,b,c){c=c===void 0?"GET":c;var d,e,g,k,m,n,r,t,u,w;return _.l(function(A){if(A.nextAddress==1)return _.p(A,Promise.all([IHa(a,c),IHa(b,c)]),2);d=A.yieldResult;e=_.h(d);g=e.next().value;k=e.next().value;m=g;n=k;if(Math.min.apply(Math,_.Be(n))!==Math.max.apply(Math,_.Be(n))||Math.min.apply(Math,_.Be(m))!==Math.max.apply(Math,_.Be(m)))return A.return(2);if(Math.min.apply(Math,_.Be(n))===Math.min.apply(Math,_.Be(m)))return A.return(1);t=(r=performance.getEntriesByName(a))==null?void 0:r[0];
w=(u=performance.getEntriesByName(b))==null?void 0:u[0];return t&&w?JHa(w)?A.return(1):JHa(t)?A.return(0):A.return(1):A.return(2)})};
lHa=function(){var a;return _.l(function(b){var c=[];var d;var e,g,k;(e=d=(e=eq().objectRepresentation.streamingData)==null?void 0:(g=e.formats)==null?void 0:(k=g[0])==null?void 0:k.url)&&e&&!d.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(e=e.replace("initcwndbps","ctier=L&initcwndbps"),d={testUrl:e,baseUrl:d,method:"GET"}):d=void 0;d&&c.push(d);_.x("ab_net_tp_e")&&c.push({testUrl:_.ja.location.origin+"/ad_companion",baseUrl:_.ja.location.origin+"/generate_204",method:"OPTIONS"});if(_.x("ad_net_pb_ab")){var m;
b:{d=/api\/stats\/ads/;var n,r,t,u;e=(m=eq().objectRepresentation.adPlacements)==null?void 0:(n=m[0])==null?void 0:(r=n.adPlacementRenderer)==null?void 0:(t=r.renderer)==null?void 0:(u=t.linearAdSequenceRenderer)==null?void 0:u.linearAds;if(e!=null&&e.length&&(m=_.y(e[0],LHa))&&(m=m.pings,m!=null&&m.impressionPings))for(n=[].concat(_.Be(m.impressionPings)),m.progressPings&&(n=[].concat(_.Be(n),_.Be(m.progressPings))),m=_.h(n),n=m.next();!n.done;n=m.next())if(n=n.value,n.baseUrl&&d.test(n.baseUrl)){m=
n.baseUrl.replace("https://www.youtube.com","");break b}m=void 0}m&&c.push({testUrl:_.ja.location.origin+m,baseUrl:_.ja.location.origin+"/feed/download",method:"GET"})}if(_.x("ad_net_pb_pbp")){var w;b:{m=/api\/stats\/qoe/;if(n=eq().objectRepresentation.playbackTracking){r=[];r.push(n==null?void 0:(w=n.videostatsPlaybackUrl)==null?void 0:w.baseUrl);var A;r.push(n==null?void 0:(A=n.videostatsDelayplayUrl)==null?void 0:A.baseUrl);var C;r.push(n==null?void 0:(C=n.videostatsWatchtimeUrl)==null?void 0:
C.baseUrl);var G;r.push(n==null?void 0:(G=n.ptrackingUrl)==null?void 0:G.baseUrl);var J;r.push(n==null?void 0:(J=n.qoeUrl)==null?void 0:J.baseUrl);var I;r.push(n==null?void 0:(I=n.atrUrl)==null?void 0:I.baseUrl);w=_.h(r);for(A=w.next();!A.done;A=w.next())if((A=A.value)&&m.test(A)){w=A.replace("https://www.youtube.com","").replace("https://s.youtube.com","");break b}}w=void 0}w&&c.push({testUrl:_.ja.location.origin+w,baseUrl:_.ja.location.origin+"/feed/download",method:"GET"})}c=c.length!==0?c[Math.floor(Math.random()*
c.length)]:void 0;return(a=c)?b.return(KHa(a.testUrl,a.baseUrl,a.method)):b.return(4)})};
rHa=function(){return _.Ei("ISDSTAT",2)};
uHa=function(){if(_.ja.ytGetPkBl===void 0||_.ja.ytGetPkBl===null||typeof _.ja.ytGetPkBl!=="function")return 2;try{return _.ja.ytGetPkBl()===!0?0:1}catch(a){return 0}};
MHa=function(a){switch(a){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.Sb(a,"unknown result type")}};
_.NHa=function(a,b){var c=Number(_.Ei("CATSTAT",0));if(b.attestationOffset===void 0)return c;b=b.attestationOffset;a=MHa(a);return c&~(3<<b)|a<<b};
OHa=function(a){var b,c;if((a=(b=a.auxiliaryUi)==null?void 0:(c=b.messageRenderers)==null?void 0:c.bkaEnforcementMessageViewModel)&&a.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return a};
QHa=function(){for(var a=_.h(Object.values(_.PHa)),b=a.next();!b.done;b=a.next())b=b.value,b.isAsync&&b.attestationOffset&&_.Bi("CATSTAT",_.NHa(2,b))};
_.kq=function(a,b){a=_.hq("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",a);(b===void 0?0:b)?_.RHa(a,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.iq(_.jq(),a,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
_.oq=function(){if(!nq){nq=new ig(new SHa);var a=_.$i("client_streamz_web_flush_count",-1);a!==-1&&(nq.invocationLimit=a)}return nq};
UHa=function(){if(!THa){if(Polymer.Base){var a=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{a.apply(this,arguments)}catch(u){_.Hi(u)}};
var b=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{b.apply(this,arguments)}catch(u){_.Hi(u)}};
var c=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{c.apply(this,arguments)}catch(u){_.Hi(u)}};
var d=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{d.apply(this,arguments)}catch(u){_.Hi(u)}};
var e=Polymer.Base._listen,g=new WeakMap;Polymer.Base._listen=function(u,w,A){var C=function(){try{A.apply(this,arguments)}catch(G){_.Hi(G)}};
g.set(A,C);e.call(this,u,w,C)};
var k=Polymer.Base._unlisten;Polymer.Base._unlisten=function(u,w,A){k.call(this,u,w,g.get(A))}}if(Polymer.Async){var m=Polymer.Async,n=m._atEndOfMicrotask;
m._atEndOfMicrotask=function(){try{n.apply(m,arguments)}catch(u){_.Hi(u)}}}if(Polymer.RenderStatus){var r=Polymer.RenderStatus,t=r.afterNextRender;
r.afterNextRender=function(u,w,A){t.call(r,u,function(){try{w.apply(this,arguments)}catch(C){_.Hi(C)}},A)}}THa=!0}};
_.WHa=function(a){var b=a?_.gj(a):"";if(b){if(b.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(b.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(b.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(b.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(b.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return"learning";if(b.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===0)return"music";b=b.toLowerCase();if(b==="/")return"home";if(b===
"/channel_memberships")return"channel-memberships-shopfront";if(b.indexOf("/feed/trending")===0)return"trending";if(b.indexOf("/feed/explore")===0)return"explore";if(b.indexOf("/live")===0)return"live";if(b.indexOf("/results")===0)return"search";if(b.indexOf("/sports")===0)return"sports";if(b.indexOf("/fashion")===0||b.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(b))return"news";if(/^\/(learning)|(@learning)(\/.*)?$/.test(b))return"learning";
if(b.indexOf("/channel/")===0||b.indexOf("/user/")===0||b.indexOf("/gaming")===0||b.indexOf("/post/")===0)return"channel";if(VHa(a))return"show";if(b==="/playlist"||b.indexOf("/playlist/")===0||b==="/view_play_list"||b.indexOf("/view_play_list/")===0||b.indexOf("/show/")===0)return"playlist";if(b==="/feed/history"||b.indexOf("/feed/history/")===0)return"history";if(b==="/new")return"labs";if(b==="/feed/subscriptions")return"subscriptions";if(b.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";
if(b==="/history_controls")return"standalone";if(b.indexOf("/account")===0||b==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(b.indexOf("/paid_memberships")===0||b.indexOf("/refund")===0||b.indexOf("/purchases")===0||b.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(b.indexOf("/product")===0)return"yts-products";if(b.indexOf("/premium")===0||b.indexOf("/musicpremium")===0)return b.indexOf("/premium/offers")===0||b.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(b===
"/cart/checkout"||b==="/cart")return"ypc-checkout";if(b.indexOf("/feed/downloads")===0||b.indexOf("/redeem")===0||b.indexOf("/reporthistory")===0)return"browse";if(b.indexOf("/hashtag")===0)return"hashtag-landing-page";if(b.indexOf("/handle")===0)return"handle";if(b.indexOf("/source")===0)return"audio-pivot";if(b.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";if(b.indexOf("/playables")===0)return"playables";if(b.indexOf("/create/live/join")===0)return"open-in-app";if(b.indexOf("/shorts")===
0)return"shorts";if(b.indexOf("/feed/channels")===0)return"subscriptions-channels";(b=a?_.gj(a):"")&&b.indexOf("/watch")===0&&_.x("web_watch_enable_learning_journey")?(a=_.Oi(a),a=!!a.list&&a.list.indexOf("LJPP")===0):a=!1;if(a)return"learning-journey-watch"}};
VHa=function(a){var b=a?_.gj(a):"";if(!b)return!1;b=b.toLowerCase();return b.indexOf("/show/")===0||b.indexOf("/playlist")===0&&(a=_.Oi(a),a.list&&a.list.indexOf("EL")===0)?!0:!1};
rq=function(a){var b="unknown",c;var d=((c=_.y(a==null?void 0:a.commandMetadata,_.ao))==null?void 0:c.webPageType)||"";d?(c=d.toLowerCase(),c.startsWith("web_page_type_")&&(c=c.slice(14))):c=d;c&&XHa[c.toUpperCase()]?b=XHa[c.toUpperCase()]:_.y(a,_.pq)||_.y(a,YHa)?b="browse":_.y(a,_.qq)?b="search":_.y(a,_.Vn)&&(b="watch");b==="unknown"&&_.Dl(Error("Gf`"+JSON.stringify({clickTrackingParams:a==null?void 0:a.clickTrackingParams,commandMetadata:a==null?void 0:a.commandMetadata,allEndpointKeys:Object.keys(a||
[])})));return b};
_.sq=function(a){if(!_.ZHa||a)_.ZHa=_.pf();return _.ZHa};
_.$Ha=function(a){return!!_.y(a,_.Vn)||!!_.y(a,_.tq)&&_.x("kevlar_enable_shorts_prefetch")};
_.aIa=function(a,b){a=_.y(a,_.Vn)||_.y(a,_.tq);return"v"+a.videoId+(a.playlistId?"-pl"+a.playlistId:"")+(b?"-an1":"")+(a.params?"-pr"+a.params:"")};
cIa=function(a){var b=_.$i("web_pbj_log_warning_rate",0);b=b>0&&Math.random()<b;if(!_.y(a,_.tq))return b&&_.Dl(Error("Jf")),!1;var c;return _.x("shorts_controller_retrieve_seedless_sequence_v2")&&((c=_.y(a,_.tq))==null?void 0:c.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:bIa(a)?!0:(b&&_.Dl(Error("Kf")),!1)};
bIa=function(a){var b=(_.y(a,_.Vn)||_.y(a,_.tq)).videoId;if(!b||!dIa.test(b))return!1;var c;return(a=(c=_.y(a.commandMetadata,_.ao))==null?void 0:c.url)&&(a.includes(b)||a.startsWith("/clip"))?!0:!1};
_.fIa=function(){var a=_.wo();return a.getFlag(192)?a.getFlag(190):!(_.x("web_watch_cinematics_disabled_by_default")||_.x("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&eIa())};
_.uq=function(a,b,c){var d={};d.currentUrl=b;d.vis=a.vis!==void 0?a.vis:0;d.splay=!1;b=_.wo();d.autoCaptionsDefaultOn=b.getFlag(66);b.getFlag(141)?b.getFlag(140)?d.autonavState="STATE_OFF":d.autonavState="STATE_ON":d.autonavState="STATE_NONE";d.html5Preference="HTML5_PREF_WANTS";isNaN(_.Ei("STS"))||(d.signatureTimestamp=_.Ei("STS"));a.autonav&&(d.autoplay=!0,d.autonav=!0);a.mutedAutoplay&&(d.autoplay=!0,d.mutedAutoplay=!0);a.inlinePlayback&&(d.autoplay=!0,d.autonav=!1,d.isInlineUnmutedPlayback=!!a.inlineUnmuted);
d.referer=c;d.lactMilliseconds=a.lact!==void 0?a.lact.toString():"-1";_.x("enable_unknown_lact_fix_on_html5")&&d.lactMilliseconds==="-1"&&_.Dl(new _.qj("Unknown LACT is set in playbackContext.",{"lact in tempData":a.lact||"undefined",autonav:a.autonav||"undefined"}));a={};b.getFlag(194)&&(a.hasShownAmbientMode=!0);b.getFlag(192)&&(a.hasToggledOffAmbientMode=!0);_.fIa()&&(a.watchAmbientModeEnabled=!0);d.watchAmbientModeContext=a;return d};
gIa=function(a){var b={},c=a.pbis||0;c&&(b.playbackBeginsInSeconds=c);a.prefetch_reason&&a.prefetch_reason==="hc_pbis"&&(b.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return b};
_.hIa=function(a){var b=new vq(_.Ei("ONE_PICK_URL",""));b.urlParamMap_.set("hostId",a);(a=_.Ei("GAPI_LOCALE"))&&b.urlParamMap_.set("hl",a);(a=_.Ei("SESSION_INDEX"))&&b.urlParamMap_.set("authuser",a);(a=_.Ei("DELEGATED_SESSION_ID"))&&b.urlParamMap_.set("groupId",a);return b};
jIa=function(){var a=_.v(),b=a.resolve(_.wq);a=a.resolve(_.xq);return new iIa(b,a)};
lIa=function(a){if(window.IntersectionObserver)return new kIa(a,400);throw new TypeError("Tf");};
nIa=function(){var a=Hammer.TouchAction,b=a.prototype.preventDefaults;a.prototype.preventDefaults=function(c){var d=this.actions.indexOf("pan-down")>-1;if(!d)return b.call(this,c);if(!mIa){var e=c.srcEvent;c=c.direction;var g;if((g=this.manager)==null?0:g.session.prevented)e.preventDefault();else if(d&&c&Hammer.DIRECTION_DOWN)return this.preventSrc(e)}}};
oIa=function(a){if(!a||a.size===0)return Hammer.DIRECTION_ALL;if(a.size===2){if(a.has("up")&&a.has("down"))return Hammer.DIRECTION_VERTICAL;if(a.has("right")&&a.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(a.size===1){if(a.has("up"))return Hammer.DIRECTION_UP;if(a.has("down"))return Hammer.DIRECTION_DOWN;if(a.has("right"))return Hammer.DIRECTION_RIGHT;if(a.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.qIa=function(){return pIa?Promise.resolve(pIa):new Promise(function(a,b){var c=self.indexedDB.open("swpushnotificationsdb");c.onerror=b;c.onsuccess=function(){var d=c.result;if(d.objectStoreNames.contains("swpushnotificationsstore"))pIa=d,a(pIa);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.qIa()};
c.onupgradeneeded=rIa})};
rIa=function(a){a=a.target.result;a.objectStoreNames.contains("swpushnotificationsstore")&&a.deleteObjectStore("swpushnotificationsstore");a.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
tIa=function(a){var b=sIa(),c;return _.l(function(d){switch(d.nextAddress){case 1:return _.me(d,2),_.p(d,a.match(b,{cacheName:"yt-appshell-assets"}),4);case 4:c=d.yieldResult;_.Jj(d,3);break;case 2:_.re(d);case 3:return d.return(c)}})};
sIa=function(){var a=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?uIa.registration.scope:vIa;a.endsWith("/")&&(a=a.slice(0,-1));return a+"/app_shell_home"};
wIa=function(a){a.map(function(b){return b.source}).join("|")};
_.xIa=function(a){return _.l(function(b){return b.return(tIa(a))})};
yIa=function(){var a=window.caches,b;return _.l(function(c){if(c.nextAddress==1)return _.p(c,_.xIa(a),2);b=c.yieldResult;return c.return(!!b)})};
FIa=function(){_.l(function(a){if(a.nextAddress==1){if(zIa)return a.jumpTo(0);zIa=!0;if(_.x("enable_system_health_primes_monitoring"))return _.ej(AIa,3E4),BIa(),a.return();if(!(Math.random()<_.$i("web_system_health_fraction")))return a.jumpTo(0);CIa={heightPixels:screen.height,widthPixels:screen.width};yq&&!isNaN(yq.jsHeapSizeLimit)&&(CIa.memoryTotalKbytes=String(Math.round(yq.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(CIa.devicePixelRatio=window.devicePixelRatio);return _.p(a,DIa(),4)}_.ej(AIa,
3E4);return _.p(a,EIa(),0)})};
DIa=function(){return _.l(function(a){if(a.nextAddress==1)return zq.intersectionObserverPresent="IntersectionObserver"in window,zq.serviceWorkerPresent="serviceWorker"in navigator,zq.webSharePresent="share"in navigator,zq.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,zq.cacheStoragePresent="caches"in window,zq.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,zq.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
zq.webkitTemporaryStoragePresent="webkitTemporaryStorage"in Aq&&Aq.webkitTemporaryStorage&&"queryUsageAndQuota"in Aq.webkitTemporaryStorage,zq.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",_.p(a,spa(),2);zq.indexedDbPresent=a.yieldResult;zq.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;zq.broadcastChannelPresent="BroadcastChannel"in window;zq.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(zq.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,zq.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.se(a)})};
AIa=function(){var a=9E4+Math.random()*2E3;_.$k()>a||(_.x("enable_system_health_primes_monitoring")?BIa():EIa())};
EIa=function(){var a;return _.l(function(b){if(b.nextAddress==1)return _.p(b,GIa(),2);a=b.yieldResult;_.zl("systemHealthCaptured",a);_.se(b)})};
BIa=function(){var a={metric:{}},b=HIa();b.networkEvents.length&&(a.metric.networkEvents=IIa(b));_.zl("systemHealthCaptured",a)};
GIa=function(){var a,b,c,d,e,g,k,m,n,r;return _.l(function(t){switch(t.nextAddress){case 1:a={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)};b=window.screen;_.x("enable_is_extended_monitoring")&&b&&"isExtended"in b&&(a.isExtended=!!b.isExtended);c={metric:{staticContext:CIa,dynamicContext:a,webMetric:JIa,webApiSupport:zq}};
if(d=_.Fn())c.csn=d;yq&&(c.metric.webMetric.currentHeapKbytes=Math.round(yq.usedJSHeapSize/1E3));window.matchMedia&&(c.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,c.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,c.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in Aq&&typeof Aq.getBattery==="function")){t.jumpTo(2);break}return _.p(t,Aq.getBattery(),3);case 3:if(e=
t.yieldResult)c.metric.dynamicContext.chargingStatus=e.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(c.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(zq.storageEstimatePresent)return _.p(t,navigator.storage.estimate(),8);if(!zq.webkitTemporaryStoragePresent){t.jumpTo(5);break}return _.p(t,KIa(),7);case 7:g=t.yieldResult;t.jumpTo(5);break;case 8:g=t.yieldResult;case 5:return c.metric.dynamicContext.deviceStorageQuotaMbytes=((k=g)==null?0:k.quota)?String(Math.round(g.quota/
1048576/10)*10):"-1",c.metric.dynamicContext.deviceStorageUsageMbytes=((m=g)==null?0:m.usage)?String(Math.round(g.usage/1048576/10)*10):"-1",n=c.metric.dynamicContext,_.p(t,yIa(),9);case 9:return n.hasAppShell=t.yieldResult,r=HIa(),r.networkEvents.length&&(c.metric.networkEvents=IIa(r)),t.return(c)}})};
KIa=function(){return new Promise(function(a){var b;zq.webkitTemporaryStoragePresent&&(b=Aq.webkitTemporaryStorage)!=null&&b.queryUsageAndQuota?Aq.webkitTemporaryStorage.queryUsageAndQuota(function(c,d){a({usage:c,quota:d})}):a(void 0)})};
_.Bq=function(a){a&=16777215;a=[(a&16711680)>>16,(a&65280)>>8,a&255];return LIa(a[0],a[1],a[2])};
_.Cq=function(a){a=[(a&16711680)>>>16,(a&65280)>>>8,a&255,(a&4278190080)>>>24];var b=_.MIa(a,function(c){return c==(c&255)});
a[3]=(a[3]/255).toFixed(3);if(!b)throw Error("Uf`"+a.join(","));return"rgba("+a.join(",")+")"};
_.NIa=function(a){return[(a&16711680)>>>16,(a&65280)>>>8,a&255]};
_.OIa=function(a){a=a.map(function(b){b/=255;return b<=.03928?b/12.92:Math.pow((b+.05)/1.05,2.4)});
return a[0]*.2126+a[1]*.7152+a[2]*.0722};
Dq=function(a,b){a=_.NIa(a);return"rgba("+a[0]+", "+a[1]+", "+a[2]+", "+b+")"};
_.PIa=function(){try{return!!self.localStorage}catch(a){return!1}};
TIa=function(){if(QIa())_.Dl(Error("Vf"));else{var a=document.createElement("iframe");a.style.display="none";var b=b===void 0?window.location.href:b;var c=_.Ak(_.Ei("PERSIST_IDENTITY_IFRAME_URL"));b=c?c:(new URL(b)).host.indexOf("studio")===0?_.ef(RIa,"persist_identity"):_.ef(SIa,"persist_identity");_.Lda(a,1,b);a.id="persist_identity";var d;(d=document.body)==null||d.appendChild(a)}};
QIa=function(){var a=UIa;a||(a=document.querySelector("#persist_identity"));return a};
VIa=function(){var a=!1;try{a=!!window.sessionStorage.getItem("session_logininfo")}catch(b){a=!0}return(_.Ei("INNERTUBE_CLIENT_NAME")==="WEB"||_.Ei("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&a};
WIa=function(a,b){if(!VIa())return!1;b||(b=_.Ei("LOGIN_INFO"));return b?(a.session_logininfo=b,!0):!1};
YIa=function(a,b){a=a===void 0?!1:a;if((b===void 0||!b)&&XIa!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.Gi("LOG_STICKINESS",!1)){b=_.Fn();var c=_.En(),d={identityStickinessData:{initialState:XIa}};b&&c&&_.Xo(b,c,d)}if(b=QIa())if(c=b.src?(new URL(b.src)).origin:"*",a){var e;(e=b.contentWindow)==null||e.postMessage({action:"clear"},c)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(a=window.sessionStorage.getItem("session_logininfo"))){var g;(g=b.contentWindow)==null||g.postMessage({loginInfo:a},c)}};
_.ZIa=function(a){a=a===void 0?!0:a;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.Bi("LOGIN_INFO",""),a&&window.sessionStorage.setItem("from_switch_account","1"),YIa(!0,a)}catch(b){}};
Eq=function(a,b){if(_.Gi("LOGGED_IN",!0)&&VIa()){var c=KBa(a);c==null&&(c={});WIa(c,b)&&_.Zn(a,c)}};
$Ia=function(){function a(b){for(b=b.target;b&&b.nodeName!=="A";)if(b=b.parentNode,!(b&&b instanceof HTMLElement))return;if(b&&!b.hasAttribute("download")&&b.getAttribute("rel")!=="external"&&b.href)return b.href}
document.addEventListener("mousedown",function(b){b.button!==0&&(b=a(b))&&Eq(b)});
document.addEventListener("click",function(b){(b=a(b))&&Eq(b)})};
cJa=function(){var a=new aJa;try{if(_.Gi("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(m){a.increment(5,!1);return}if(_.Ei("LOGIN_INFO")){var b=bJa?bJa:window.location;_.Ei("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&TIa();var c=KBa(b.href);c==null&&(c={});var d=c.session_logininfo,e=Number(window.sessionStorage.getItem("stickiness_reload")),g=d===_.Ei("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
e>=2||g)e>=2?a.increment(2,g):g?a.increment(7,g):window.sessionStorage.getItem("session_logininfo")||(a.increment(3,g),XIa="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.Ei("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.Ei("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))a.increment(4,g),window.sessionStorage.removeItem("stickiness_reload");
else if(e<2){window.sessionStorage.setItem("stickiness_reload",String(e+1));var k=b.href;k=_.$n(k,"sttick");Eq(k,window.sessionStorage.getItem("session_logininfo"));k=_.Pi(k,{sttick:e});a.increment(e,g);_.Sda(b,k)}}else a.increment(6,!1)}else _.ZIa(!1)}catch(m){}};
_.Fq=function(a,b,c,d,e){b=b===void 0?{}:b;c=c===void 0?"":c;d=d===void 0?window:d;a=_.Qi(a,b);Eq(a);c=_.Gd(a+c,e);_.Sda(d.location,c)};
dJa=function(a){if(a.urlEndpoint){if(a=_.Oi(a.urlEndpoint.url),a.adurl)return Vi(a.adurl)}else if(a.watchEndpoint)return"//www.youtube.com/watch?v="+a.watchEndpoint.videoId;return null};
eJa=function(a){if(!a||!a.reportingPings)return null;var b={};a.reportingPings.forEach(function(c){c.pingType in b?b[c.pingType].push(c.url):b[c.pingType]=[c.url]});
return{adpings:Una(b)}};
_.Hq=function(a){a=a===void 0?!1:a;var b=_.wo(),c="USER_INTERFACE_THEME_LIGHT";b.getFlag(165)?c="USER_INTERFACE_THEME_DARK":b.getFlag(174)?c="USER_INTERFACE_THEME_LIGHT":_.Gq()&&(c="USER_INTERFACE_THEME_DARK");return a?c:fJa()||c};
_.gJa=function(){return!_.x("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.Gq=function(){return _.gJa()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.Iq=function(){var a=_.wo();return _.gJa()&&!a.getFlag(165)&&!a.getFlag(174)};
fJa=function(){var a=a===void 0?window.location.href:a;if(_.x("kevlar_disable_theme_param"))return null;var b=_.gj(a);if(_.hJa(b))return"USER_INTERFACE_THEME_DARK";try{var c=_.Oi(a).theme;return iJa.get(c)||null}catch(d){}return null};
_.hJa=function(a){return _.x("enable_dark_theme_only_on_shorts")?!(a==null||!a.startsWith("/shorts/")):!1};
_.lJa=function(a,b,c,d,e){b=b===void 0?!1:b;c=c===void 0?!1:c;var g=_.Ei("INNERTUBE_CONTEXT");if(!g)return _.Bl(Error("Zf")),{};g=(0,_.yf.unsafeClone)(g);_.x("web_no_tracking_params_in_shell_killswitch")||delete g.clickTracking;g.client||(g.client={});var k=g.client;k.clientName==="MWEB"&&k.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(k.clientFormFactor=_.Ei("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");k.screenWidthPoints=window.innerWidth;k.screenHeightPoints=window.innerHeight;k.screenPixelDensity=
Math.round(window.devicePixelRatio||1);k.screenDensityFloat=window.devicePixelRatio||1;k.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());k.userInterfaceTheme=_.Hq();if(!b){var m=_.Noa();m&&(k.connectionType=m);_.x("web_log_effective_connection_type")&&(m=Poa())&&(g.client.effectiveConnectionType=m)}var n;if(_.x("web_log_memory_total_kbytes")&&((n=_.ja.navigator)==null?0:n.deviceMemory)){var r;n=(r=_.ja.navigator)==null?void 0:r.deviceMemory;g.client.memoryTotalKbytes=""+n*1E6}b&&d&&!_.x("web_it_context_set_original_url_ks")&&
(k.originalUrl=jJa(_.ja.location.href,d).toString());_.x("web_gcf_hashes_innertube")&&(m=$pa())&&(r=m.coldConfigData,n=m.coldHashData,m=m.hotHashData,g.client.configInfo=g.client.configInfo||{},r&&(g.client.configInfo.coldConfigData=r),n&&(g.client.configInfo.coldHashData=n),m&&(g.client.configInfo.hotHashData=m));r=_.Oi(_.ja.location.href);!_.x("web_populate_internal_geo_killswitch")&&r.internalcountrycode&&(k.internalGeo=r.internalcountrycode);!_.x("web_populate_client_screen_killswitch")&&e&&(k.clientScreen=
e);k.clientName==="MWEB"||k.clientName==="WEB"?(k.mainAppWebInfo={graftUrl:d||_.ja.location.href},_.x("kevlar_woffle")&&_.Jq.instance&&(d=_.Jq.instance,k.mainAppWebInfo.pwaInstallabilityStatus=!d.appInstalledEventFired&&d.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),k.mainAppWebInfo.webDisplayMode=Spa(),k.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):k.clientName==="TVHTML5"&&(!_.x("web_lr_app_quality_killswitch")&&
(d=_.Ei("LIVING_ROOM_APP_QUALITY"))&&(k.tvAppInfo=Object.assign(k.tvAppInfo||{},{appQuality:d})),d=_.Ei("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(k.tvAppInfo=Object.assign(k.tvAppInfo||{},{certificationScope:d}));!_.x("web_populate_time_zone_itc_killswitch")&&(d=Loa())&&(k.timeZone=d);(d=foa())?k.experimentsToken=d:delete k.experimentsToken;k=goa();d=_.kJa();d=(0,_.yf.getValues)(d.tokenJars);g.request=Object.assign({},g.request,{internalExperimentFlags:k,consistencyTokenJars:d});!_.x("web_prequest_context_killswitch")&&
(k=_.Ei("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(g.request.externalPrequestContext=k);d=_.wo();k=d.getFlag(58);d=d.get("gsml","");g.user=Object.assign({},g.user);k&&(g.user.enableSafetyMode=k);d&&(g.user.lockedSafetyMode=!0);_.x("warm_op_csn_cleanup")?c&&(b=_.Fn())&&(g.clientScreenNonce=b):!b&&(b=_.Fn())&&(g.clientScreenNonce=b);a&&(g.clickTracking={clickTrackingParams:a});if(a=_.Ji("yt.mdx.remote.remoteClient_"))g.remoteClient=a;_.Kq.getInstance().setLocationOnInnerTubeContext(g);try{var t=qoa(),
u=t.bid;delete t.bid;g.adSignalsInfo={params:[],bid:u};for(var w=_.h(Object.entries(t)),A=w.next();!A.done;A=w.next()){var C=_.h(A.value),G=C.next().value,J=C.next().value;t=G;u=J;a=void 0;(a=g.adSignalsInfo.params)==null||a.push({key:t,value:""+u})}var I,R;if(((I=g.client)==null?void 0:I.clientName)==="TVHTML5"||((R=g.client)==null?void 0:R.clientName)==="TVHTML5_UNPLUGGED"){var ca=_.Ei("INNERTUBE_CONTEXT");ca.adSignalsInfo&&(g.adSignalsInfo.advertisingId=ca.adSignalsInfo.advertisingId,g.adSignalsInfo.advertisingIdSignalType=
"DEVICE_ID_TYPE_CONNECTED_TV_IFA",g.adSignalsInfo.limitAdTracking=ca.adSignalsInfo.limitAdTracking)}}catch(V){_.Bl(V)}return g};
_.Lq=function(){return{isShellLoad:_.Gi("IS_SHELL_LOAD",!1)}};
nJa=function(){navigator.serviceWorker.getRegistrations().then(function(a){a.forEach(mJa)})};
mJa=function(a){a&&_.oJa(pJa,a.scope)};
_.oJa=function(a,b){b={scope:b||_.aj("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.xd(a),b)};
Mq=function(a,b,c,d){if(b&&b.serializedYpcCujLoggingParams){if(c){var e={};e.transactionErrorType=c;d&&(e.errorMessage=d);b.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:e}}}c={};c.ypcCujContext=b;a=_.hq("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",a,c);_.iq(_.jq(),a,"FLOW_TYPE_YPC_ACQUISITION")}};
_.qJa=function(a,b,c,d){var e={};e.serializedTransactionFlowLoggingParams=b;c&&(e.errorType=c);d&&(e.errorMessage=d);_.zl(a,e);_.Al()};
_.rJa=function(a){a&&_.qJa("transactionFlowStarted",a)};
_.sJa=function(a){a&&_.qJa("transactionFlowCancelled",a)};
_.Nq=function(a,b,c){b&&_.qJa("transactionFlowFailed",b,a,c)};
_.Oq=function(){this.megabloxUrl_=null};
_.Pq=function(a){try{var b=tJa==null?void 0:tJa.composedPath(a)}catch(c){b=a.composedPath?a.composedPath():[]}return b&&b.length>0?b:a.composedPath?a.composedPath():[]};
_.Qq=function(a){return _.Pq(a)[0]};
_.Rq=function(a){if(!(a instanceof Element))return null;a=a.classList?Array.from(a.classList):void 0;if(!a)return null;var b=a.indexOf("style-scope");return b>-1&&b+1<a.length?a[b+1]:null};
Sq=function(a){if(!(a instanceof HTMLElement))return null;var b=a&&(a.$$||a.polymerController)?a.tagName.toLowerCase():null;return b?b:_.Rq(a)};
uJa=function(a,b){return a.replace(/[^a-z]*[^\s]+/g,function(c){return c+".style-scope."+b})};
vJa=function(a,b){return b?a.split(",").map(function(c){return uJa(c.trim(),b)}).join(", "):a};
_.Tq=function(a){var b,c,d,e;return(e=(d=(c=(b=a.root)!=null?b:a.shadowRoot)!=null?c:a.__shady_native_shadowRoot)!=null?d:a.__shady_shadowRoot)!=null?e:a};
Uq=function(a){return a instanceof ShadowRoot?ShadowRoot:a instanceof DocumentFragment?DocumentFragment:a instanceof Document?Document:HTMLElement};
wJa=function(a){var b,c,d;return(d=(c=(b=a.parentElement)!=null?b:a.__shady_native_parentElement)!=null?c:a.__shady_parentElement)!=null?d:null};
xJa=function(a){var b,c,d;return(d=(c=(b=a.parentNode)!=null?b:a.__shady_native_parentNode)!=null?c:a.__shady_parentNode)!=null?d:null};
yJa=function(a){var b,c,d;return(d=(c=(b=a.__shady_parentNode)!=null?b:a.__shady_native_parentNode)!=null?c:a.parentNode)!=null?d:null};
zJa=function(a){var b,c;return(c=(b=xJa(a))!=null?b:a.host)!=null?c:null};
AJa=function(a){var b,c,d;return(d=(c=(b=a.nextSibling)!=null?b:a.__shady_native_nextSibling)!=null?c:a.__shady_nextSibling)!=null?d:null};
BJa=function(a){var b,c,d;return(d=(c=(b=a.previousSibling)!=null?b:a.__shady_native_previousSibling)!=null?c:a.__shady_previousSibling)!=null?d:null};
CJa=function(a){var b,c,d;return(d=(c=(b=a.nextElementSibling)!=null?b:a.__shady_native_nextElementSibling)!=null?c:a.__shady_nextElementSibling)!=null?d:null};
DJa=function(a){var b,c,d;return(d=(c=(b=a.previousElementSibling)!=null?b:a.__shady_native_previousElementSibling)!=null?c:a.__shady_previousElementSibling)!=null?d:null};
EJa=function(a){var b,c,d;return new Set([].concat(_.Be((b=a.children)!=null?b:[]),_.Be((c=a.__shady_native_children)!=null?c:[]),_.Be((d=a.__shady_children)!=null?d:[])))};
FJa=function(a){var b,c,d;return new Set([].concat(_.Be((b=a.childNodes)!=null?b:[]),_.Be((c=a.__shady_native_childNodes)!=null?c:[]),_.Be((d=a.__shady_childNodes)!=null?d:[])))};
GJa=function(a){if(!a)return null;var b=_.Rq(a);if(!b){var c;return(c=Node.prototype.getRootNode)==null?void 0:c.call(a)}b=b.toUpperCase();for(a=wJa(a);a&&a.tagName!==b;)a=wJa(a);return a?_.Tq(a):null};
HJa=function(a){for(;a&&!(a instanceof HTMLElement);)a=zJa(a);return a};
IJa=function(a){var b=HJa(a);return a===b?_.Rq(a):b?Sq(b):null};
JJa=function(a){return(a=HJa(a))?Sq(a):null};
KJa=function(a){if(a instanceof Comment)return!1;if(a instanceof Text){var b,c;if(((c=(b=a.textContent)==null?void 0:b.trim())!=null?c:"")==="")return!1}return!0};
Vq=function(a,b,c){var d=b(a);for(c=c===void 0?JJa(a):c;d&&(IJa(d)!==c||!KJa(d));)a=d,d=b(a);return d};
LJa=function(a,b,c){if(!b)return null;a=JJa(a);return IJa(b)===a&&KJa(b)?b:Vq(b,c,a)};
MJa=function(a){return Vq(a,yJa,_.Rq(a))};
NJa=function(a){return Vq(a,CJa)};
OJa=function(a){return Vq(a,AJa)};
PJa=function(a){return Vq(a,DJa)};
QJa=function(a){return Vq(a,BJa)};
RJa=function(a){return LJa(a,a.firstChild||a.__shady_native_firstChild||a.__shady_firstChild||null,AJa)};
SJa=function(a){var b,c,d;var e=(d=(c=(b=a.firstElementChild)!=null?b:a.__shady_native_firstElementChild)!=null?c:a.__shady_firstElementChild)!=null?d:null;return LJa(a,e,CJa)};
TJa=function(a){var b,c,d;var e=(d=(c=(b=a.lastChild)!=null?b:a.__shady_native_lastChild)!=null?c:a.__shady_lastChild)!=null?d:null;return LJa(a,e,BJa)};
UJa=function(a){var b,c,d;var e=(d=(c=(b=a.lastElementChild)!=null?b:a.__shady_native_lastElementChild)!=null?c:a.__shady_lastElementChild)!=null?d:null;return LJa(a,e,DJa)};
VJa=function(a){var b=JJa(a);return Array.from(FJa(a)).filter(function(c){return IJa(c)===b})};
WJa=function(a){var b=Sq(a);return Array.from(EJa(a)).filter(function(c){return _.Rq(c)===b})};
_.Wq=function(a,b,c){if(a instanceof HTMLElement&&_.Rq(a)===c){var d=Array.from(a.classList).indexOf("style-scope");if(d===-1)a.classList.add("style-scope"),a.classList.add(b);else if(!(d+1>=a.classList.length)){d=a.classList[d+1];var e,g;a==null||(e=a.classList)==null||(g=e.replace)==null||g.call(e,d,b)}}if(a instanceof HTMLElement||a instanceof DocumentFragment)for(e=_.h(EJa(a)),g=e.next();!g.done;g=e.next())_.Wq(g.value,b,c);return a};
Xq=function(a,b){if(a instanceof HTMLElement&&_.Rq(a)===b){var c=Array.from(a.classList).indexOf("style-scope");c===-1||c+1>=a.classList.length||a.classList.remove("style-scope",a.classList[c+1])}if(a instanceof HTMLElement||a instanceof DocumentFragment){c=_.h(a.children);for(var d=c.next();!d.done;d=c.next())Xq(d.value,b)}return a};
_.XJa=function(a,b){return Uq(a).prototype.appendChild.call(a,b)};
YJa=function(a,b){if(a===b)return!0;a=FJa(a);return Array.from(a).some(function(c){return YJa(c,b)})};
_.E=function(a,b){if(a instanceof Yq)return a;(b==null?0:b.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(a,"ownerDocument")&&Object.defineProperty(a,"ownerDocument",{get:function(){return window.document}});
return new Yq(a)};
$Ja=function(){var a=Yq.prototype,b=[].concat(_.Be(ZJa?[]:["getRootNode"]),["setAttribute","removeAttribute"]);b=_.h(b);for(var c=b.next(),d={};!c.done;d={method$jscomp$48:void 0},c=b.next())d.method$jscomp$48=c.value,a[d.method$jscomp$48]=function(e){return function(){return this.host[e.method$jscomp$48].apply(this.host,arguments)}}(d)};
bKa=function(){var a=Yq.prototype,b=[].concat(_.Be(ZJa?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.Be(aKa?[]:["querySelector","querySelectorAll"]));b=_.h(b);for(var c=b.next(),d={};!c.done;d={method$jscomp$49:void 0},c=b.next())d.method$jscomp$49=c.value,a[d.method$jscomp$49]=function(e){return function(){return this.root[e.method$jscomp$49].apply(this.root,arguments)}}(d)};
eKa=function(){var a=Yq.prototype,b=[].concat(_.Be(cKa?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.Be(dKa?[]:["parentNode"]));b=_.h(b);for(var c=b.next(),d={};!c.done;d={prop$jscomp$62:void 0},c=b.next())d.prop$jscomp$62=c.value,Object.defineProperty(a,d.prop$jscomp$62,{get:function(e){return function(){return this.host[e.prop$jscomp$62]}}(d),
configurable:!0})};
hKa=function(){var a=Yq.prototype,b=["activeElement"].concat(_.Be(cKa?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.Be(fKa?[]:["children"]),_.Be(gKa?[]:["lastChild"]));b=_.h(b);for(var c=b.next(),d={};!c.done;d={prop$jscomp$63:void 0},c=b.next())d.prop$jscomp$63=c.value,Object.defineProperty(a,d.prop$jscomp$63,{get:function(e){return function(){return this.root[e.prop$jscomp$63]}}(d),
configurable:!0})};
iKa=function(){for(var a=Yq.prototype,b=_.h(["innerHTML","textContent"]),c=b.next(),d={};!c.done;d={prop$jscomp$64:void 0},c=b.next())d.prop$jscomp$64=c.value,Object.defineProperty(a,d.prop$jscomp$64,{get:function(e){return function(){return this.root[e.prop$jscomp$64]}}(d),
set:function(e){return function(g){this.root[e.prop$jscomp$64]=g}}(d),
configurable:!0})};
jKa=function(a){var b=Yq.prototype;a=_.h(Object.entries(a));for(var c=a.next(),d={};!c.done;d={fn$jscomp$356:void 0},c=a.next()){var e=_.h(c.value);c=e.next().value;e=e.next().value;d.fn$jscomp$356=e;b[c]=function(g){return function(){return g.fn$jscomp$356.apply(null,[this.host.node||this.host].concat(_.Be(arguments)))}}(d)}};
lKa=function(){for(var a=Yq.prototype,b=_.h(Object.entries(kKa)),c=b.next(),d={};!c.done;d={fn$jscomp$357:void 0},c=b.next()){var e=_.h(c.value);c=e.next().value;e=e.next().value;d.fn$jscomp$357=e;Object.defineProperty(a,c,{get:function(g){return function(){return g.fn$jscomp$357.apply(null,[this.host.node||this.host].concat(_.Be(arguments)))}}(d),
configurable:!0})}};
_.Zq=function(a){return a instanceof mKa||a instanceof Document?a:new mKa(a)};
nKa=function(){for(var a=mKa.prototype,b=_.h("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),c=b.next(),d={};!c.done;d={method$jscomp$50:void 0},c=b.next())d.method$jscomp$50=c.value,a[d.method$jscomp$50]=function(e){return function(){return HTMLElement.prototype[e.method$jscomp$50].call.apply(HTMLElement.prototype[e.method$jscomp$50],[this.node].concat(_.Be(arguments)))}}(d)};
oKa=function(){for(var a=mKa.prototype,b=_.h("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),c=b.next(),d={};!c.done;d={prop$jscomp$65:void 0},c=b.next())d.prop$jscomp$65=c.value,Object.defineProperty(a,d.prop$jscomp$65,{get:function(e){return function(){var g;return(g=this.node["__shady_native_"+e.prop$jscomp$65])!=null?g:this.node[e.prop$jscomp$65]}}(d),
configurable:!0})};
_.$q=function(a,b,c){c===void 0&&(c=!a.classList.contains(b));c?a.classList.add(b):a.classList.remove(b)};
_.ar=function(a,b,c){c===void 0&&(c=!a.hasAttribute(b));if(b==="class")throw Error("cg");c?_.Zq(a).setAttribute(b,""):_.Zq(a).removeAttribute(b)};
pKa=function(a){return(a.localName!=="slot"?[]:(0,_.br)(a).assignedNodes({flatten:!0})).filter(function(b){return b.nodeType===Node.ELEMENT_NODE})};
_.qKa=function(a){return(a=_.E(a).querySelector("slot"))&&a.localName==="slot"?pKa(a):[]};
_.dr=function(a,b){window.ShadyCSS&&window.ShadyCSS.styleSubtree(a,b)};
rKa=function(a,b){var c=b.bind(a);return function(d){c(d,d.detail)}};
_.er=function(a,b){var c=sKa.get(a);c||(c=new WeakMap,sKa.set(a,c));if(c.has(b))return c.get(b);if(_.x("web_fi_listen_disable_bound_fn_helper")){var d=b.bind(a);a=function(e){d(e,e==null?void 0:e.detail)}}else a=rKa(a,b);
c.set(b,a);return a};
vKa=function(a,b){tKa(a);a.created[uKa].push(b)};
tKa=function(a){if(!a.created||!a.created[uKa]){var b=a.created,c=b?[b]:[];a.created=function(){for(var d=_.h(c),e=d.next();!e.done;e=d.next())e.value.apply(this)};
a.created[uKa]=c}};
wKa=function(a){return function(){var b=_.Id.apply(0,arguments);return function(c,d,e){a.apply(null,_.Be(b))(c,d,e)}}};
xKa=function(){return function(){var a=_.Id.apply(0,arguments);return function(b,c,d){bya.apply(null,_.Be(a))(b,c,d)}}};
_.H=function(a){return xKa()(a)};
_.K=function(){return wKa(fya).apply(null,_.Be(_.Id.apply(0,arguments)))};
_.M=function(a){return _.x("pbcm_fi_listen_decorators")?yKa(a):wKa(dya)(a)};
yKa=function(a){return function(b,c){vKa(b,function(){var d=this[c],e=_.x("web_fi_listen_disable_bound_fn_helper")?function(g){d(g,g.detail)}.bind(this):rKa(this,d);
zKa.has(a)?Cm(this.hostElement,a,e):this.hostElement.addEventListener(a,e)})}};
_.N=function(){return wKa(eya).apply(null,_.Be(_.Id.apply(0,arguments)))};
_.O=function(a){a=a===void 0?{}:a;return wKa(cya)(a)};
_.fr=function(a){if(a.hostElement&&a!==a.hostElement){var b=_.xn(a.hostElement);b=a.renderIdom?b:b.shadowRoot}b||(a=a.root,b=a instanceof Node?_.xn(a):null);return b};
_.gr=function(a){return AKa?BKa(a):function(b,c){Object.defineProperty(b,c,{get:function(){var d;return(d=_.fr(this))==null?void 0:d.querySelector(a)},
enumerable:!0,configurable:!0})}};
BKa=function(a){return function(b,c){Object.defineProperty(b,c,{get:function(){var d,e=(d=_.E(this.hostElement))==null?void 0:d.querySelector(a);if(e)return e;var g;d=(g=this.is)!=null?g:"yt-undefined-target";CKa!=null||(CKa=Date.now());(Mn(d)+CKa)%100>_.$i("pbcm_fi_query_decorators_fallback_logging_pct")||(DKa!=null||(DKa=new EKa),FKa.has(d)||(FKa.add(d),DKa.increment(d)));var k;return(k=_.fr(this))==null?void 0:k.querySelector(a)},
enumerable:!0,configurable:!0})}};
_.hr=function(a){return AKa?GKa(a):function(b,c){Object.defineProperty(b,c,{get:function(){var d;return(d=_.fr(this))==null?void 0:d.querySelectorAll(a)},
enumerable:!0,configurable:!0})}};
GKa=function(a){return function(b,c){Object.defineProperty(b,c,{get:function(){var d,e=(d=_.E(this.hostElement))==null?void 0:d.querySelectorAll(a);if(e==null?0:e.length)return e;var g;return(g=_.fr(this))==null?void 0:g.querySelectorAll(a)},
enumerable:!0,configurable:!0})}};
HKa=function(a){return function(b){if(![_.Wm,_.P].includes(Object.getPrototypeOf(b.prototype).constructor))throw Error("dg");Uxa(Object.assign({},typeof a!=="string"?a:{is:a,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(b)}};
_.jr=function(){var a=a===void 0?{}:a;return function(b){if(![Xm,_.ir].includes(Object.getPrototypeOf(b.prototype).constructor))throw Error("eg");Vxa(Object.assign({},a,{disableInheritanceCheck:!0}))(b)}};
JKa=function(a,b){IKa[a]!=null||(IKa[a]=new Set);IKa[a].add(b)};
_.kr=function(){var a=_.N.apply(null,_.Be(_.Id.apply(0,arguments)));return function(b,c){JKa(b.is,c);a(b,c)}};
nr=function(a,b,c){if(lr(a)&&!KKa.has(b)){b=b.replace(/^JSC\$[\d]+_/,"");b=b.replace(/\.\d+(\.|$)/g,function(g,k){return".#"+k});
mr[a]!=null||(mr[a]={});var d,e;(d=mr[a])[e=b]!=null||(d[e]=new Set);mr[a][b].has(c)||(mr[a][b].add(c),_.zl("polymerPropertyAccessEvent",{componentName:a,propertyName:b,accessType:c}))}};
LKa=function(){return _.x("polymer_property_access_logging_debug")||_.x("polymer_enable_property_access_logging")};
lr=function(a){if(_.x("polymer_property_access_logging_debug"))return!0;if(!_.x("polymer_enable_property_access_logging"))return!1;MKa||(MKa=Date.now());return(Mn(a)+MKa)%100<_.$i("polymer_property_access_logging_percent")};
NKa=function(a,b){return lr(b)&&a.hostElement.loggingStatus?new Proxy(a,{get:function(c,d,e){if(c.hostElement.loggingStatus.bypassProxyController)return c[d];c.hostElement.loggingStatus.isExternalGet=!0;var g=c[d];c.hostElement.loggingStatus.isExternalGet=!1;if(g instanceof Function)return function(){var k=_.Id.apply(0,arguments);try{return c.hostElement.loggingStatus.currentExternalCall=d,nr(b,d,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),g.apply(this===e?c:this,k)}finally{c.hostElement.loggingStatus.currentExternalCall=
void 0}};
nr(b,d,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return g},
set:function(c,d,e){if(c.hostElement.loggingStatus.bypassProxyController)return c[d]=e,!0;c.hostElement.loggingStatus.isRendererStamper?nr(b,d,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):c.hostElement.loggingStatus.isDeclarativeExternal||nr(b,d,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{c.hostElement.loggingStatus.currentExternalSet=d,c[d]=e}finally{c.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):a};
OKa=function(a,b){a&&a.loggingStatus&&!a.loggingStatus.isDeclarativeExternal&&!a.loggingStatus.isExternalGet&&a.loggingStatus.currentExternalSet!==b&&nr(a.tagName.toLowerCase(),b,"PROPERTY_ACCESS_GET_INTERNAL")};
or=function(a,b,c){a&&(c||a.loggingStatus&&!a.loggingStatus.isInitializing&&!a.loggingStatus.isDefiningPropertyAccessor&&a.loggingStatus.currentExternalSet!==b)&&nr(a.tagName.toLowerCase(),b,"PROPERTY_ACCESS_SET_INTERNAL")};
PKa=function(){return{_definePropertyAccessor:function(a,b){var c=this,d=c.hostElement.loggingStatus;d&&(d.isDefiningPropertyAccessor=!0);var e=c[a];e!==void 0&&(c.__data?c._setPendingProperty(a,e):(c.__dataProto!=null||(c.__dataProto={}),c.__dataProto[a]=e));d&&(d.isDefiningPropertyAccessor=!1);Object.defineProperty(this,a,{get:function(){OKa(c.hostElement,a);return this.__data[a]},
set:function(g){b||this._setPendingProperty(a,g,!0)&&this._invalidateProperties()}})},
created:function(){var a=this._setPendingProperty.bind(this);this._setPendingProperty=function(b,c,d){or(this.hostElement,b);return a.apply(this,[b,c,d])}}}};
RKa=function(a){LKa()&&_.H(QKa.prototype)(a.prototype,"__templateBindingLoggingBehavior")};
SKa=function(a,b){if(b.resolvedFactories.length!==a.resolvedFactories.length)return!0;b=_.h(b.resolvedFactories.entries());for(var c=b.next();!c.done;c=b.next()){var d=_.h(c.value);c=d.next().value;d=d.next().value;if(d.providerClass){if(d.providerClass!==a.resolvedFactories[c].providerClass)return!0}else if(d.providerValue){if(d.providerValue!==a.resolvedFactories[c].providerValue)return!0}else if(d.factory!==a.resolvedFactories[c].factory)return!0}return!1};
TKa=function(a,b){a=_.h(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.constructor===Array)TKa(c,b);else{var d=b;d.has(c)||(c.inject&&d.add(c),c.behaviors&&TKa(c.behaviors,d))}};
pr=function(a,b){var c=a[b];a[b]=function(){var d=_.Id.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(c)return c.apply(this,d)}};
XKa=function(){_.qr.Class=function(c,d){c=UKa(c,d);pr(c.prototype,"created");return c};
pr(rr.prototype,"_initializeProperties");pr(_.sr.prototype,"_initializeProperties");if(VKa)pr(WKa,"created");else{var a=function(){pr(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))a();else{var b=customElements.define;customElements.define=function(c,d,e){b.call(customElements,c,d,e);c==="tp-yt-iron-list"&&(a(),customElements.define=b)}}}};
ZKa=function(a,b){a.prototype.behaviors=a.prototype.behaviors||[];a.prototype.behaviors.unshift(YKa.InjectBehavior);a.prototype.provide=b};
_.ur=function(a){return function(b){if(!a.disableElementRegistration){a.noInjection||ZKa(b,a.providers);var c=b.prototype;c.__templateHelpers||bya(tr.prototype)(c,"__templateHelpers");c=a.is;$Ka||($Ka=Date.now());(Mn(c)+$Ka)%100<_.$i("polymer_log_prop_change_observer_percent")&&bya(aLa.prototype)(b.prototype,"__propertyObserverObserver");b.prototype.behaviors=b.prototype.behaviors||[];b.prototype.behaviors.unshift(_.bLa.YtHostElementBehavior);RKa(b);HKa({is:a.is,notifyObserversOnUndefined:a.notifyObserversOnUndefined!==
!1,fastInit:a.fastInit,template:a.template,disableEnforceFastDefaultValuesCheck:!0})(b)}}};
_.Q=function(a){return _.ur({is:a.is,template:a.template,disableElementRegistration:a.disableElementRegistration,cssBuildOptOut:a.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
eLa=function(a,b){if(cLa){a=new a;for(var c=_.h(Object.getOwnPropertyNames(a)),d=c.next();!d.done;d=c.next())d=d.value,b[d]=a[d];for(c=b;c&&c!==Object.prototype;c=Object.getPrototypeOf(c)){d=_.h(Object.getOwnPropertyNames(c));for(var e=d.next();!e.done;e=d.next())e=e.value,a.hasOwnProperty(e)||Object.defineProperty(a,e,dLa(b,e))}}else a.apply(b)};
dLa=function(a,b){return{get:function(){var c=a[b];return c instanceof Function?c.bind(a):c},
set:function(c){a[b]=c}}};
gLa=function(a,b){for(var c=a._noAccessors,d=_.h(Object.getOwnPropertyNames(a)),e=d.next();!e.done;e=d.next())if(e=e.value,!fLa.has(e))if(c)b[e]=a[e];else{var g=Object.getOwnPropertyDescriptor(a,e);g&&(g.configurable=!0,Object.defineProperty(b,e,g))}};
hLa=function(a,b,c){return function(d){if(c){var e=c();d.model=e}if(a[b])a[b](d,d.detail)}};
vr=function(a){var b=[];if(typeof a==="string")a.length>0&&b.push.apply(b,_.Be(a.split(".")));else{a=_.h(a);for(var c=a.next();!c.done;c=a.next())c=c.value,typeof c==="string"?b.push.apply(b,_.Be(c.split("."))):b.push(c)}return b};
wr=function(a,b){if(b[b.length-1]!=="*"&&b[b.length-1]!=="splices"){for(var c=0;c<b.length;c++){if(!a)return;a=a[b[c]]}return a}};
iLa=function(a,b){if(a.length>b.length)return!1;for(var c=0;c<a.length;c++)if(a[c]!==b[c])return!1;return!0};
kLa=function(a,b,c){if(b.type==="compute"){var d=b.getter.bind(c);var e=b.args}else d=function(){return c[b.method.methodName].apply(c,_.Be(_.Id.apply(0,arguments)))},e=b.method.args;
jLa(a,b.propertyKey,d,e,b.value)};
mLa=function(a,b){if(b.readOnly){var c=Object.getOwnPropertyDescriptor(a.model,b.propertyKey);Object.defineProperty(a.model,b.propertyKey,{get:c.get,set:function(){}});
a.model[lLa(b.propertyKey)]=c.set}};
nLa=function(a,b,c){if(c){var d=b.propertyKey,e=b.selector;b=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.Be(b.selectorArgs.map(function(g){return{type:"path",path:g}})));
jLa(a,d,function(g){var k=_.Id.apply(1,arguments);return e.apply(null,[c.getState()].concat(_.Be(k)))},b)}};
pLa=function(a,b,c){var d=_.pn(b.propertyKey)+"-changed";oLa(a,function(e){var g={value:e.value,queueProperty:!0};e.path.split(".").length>1&&(g.path=e.path);c.dispatchEvent(new CustomEvent(d,{detail:g}))},[{type:"wildcard",
path:b.propertyKey}])};
qLa=function(a,b,c){oLa(a,function(){c[b.method.methodName].apply(c,_.Be(_.Id.apply(0,arguments)))},b.method.args)};
lLa=function(a){return"_set"+(a.charAt(0).toUpperCase()+a.slice(1))};
rLa=function(){var a,b=xh(function(c){a=c},!1);
return[a,b]};
wLa=function(a){a=a.trim().replace(sLa,",").replace(tLa,"$1");var b=a[0];b==="-"&&(b=a[1]);if(b>="0"&&b<="9")return{type:"literal",value:Number(a)};if(b==="'"||b==='"')return{type:"literal",value:a.slice(1,-1)};if(b=a.match(uLa)){b=b[1];var c=vLa[b];if(c)return{type:c,path:a.slice(0,-(b.length+1))}}return{type:"path",path:a}};
ALa=function(a){var b=a.match(xLa);if(b)return a={methodName:b[1],args:yLa},b[2].trim()&&(b=b[2].replace(zLa,"&comma;").split(","),a.args=b.map(wLa)),a};
BLa=function(a,b,c){b=_.pn(b);var d=rm;d&&(c=d(c,b,"attribute",a));xr(a,c,b)};
xr=function(a,b,c){b=CLa(b);b===void 0?a.removeAttribute(c):a.setAttribute(c,b)};
CLa=function(a){switch(typeof a){case "object":if(a instanceof Date)return a.toString();if(a){var b=window.trustedTypes?window.trustedTypes.isHTML(a)||window.trustedTypes.isScript(a)||window.trustedTypes.isScriptURL(a):void 0;if(b)return a;try{return JSON.stringify(a)}catch(c){_.Dl(Error("Ag`"+a))}}break;case "boolean":return a?"":void 0;default:return a!==null&&a!==void 0?a.toString():void 0}};
DLa=function(a){if(a===void 0)throw Error("Bg");return a};
ILa=function(a,b,c,d){var e=ELa(d);if(e.length){d=c;var g="property";FLa.test(c)?g="attribute":c[c.length-1]==="$"&&(c=c.slice(0,-1),g="attribute");var k=GLa(e);k&&g==="attribute"&&(c==="class"&&a.hasAttribute("class")&&(k+=" "+a.getAttribute(c)),xr(a,k,c));g==="attribute"&&d==="disable-upgrade$"&&a.setAttribute("disable-upgrade","");a.localName==="input"&&d==="value"&&a.setAttribute("value","");a.removeAttribute(d);g==="property"&&(c=_.qn(c));b=DLa(b);HLa(b,g,c,e);return!0}return c.slice(0,3)===
"on-"?(a.removeAttribute(c),(g=b).events!=null||(g.events=[]),b.events.push({name:c.slice(3),value:d}),!0):c==="id"?(b.id=d,!0):!1};
ELa=function(a){for(var b=[],c=0,d;(d=JLa.exec(a))!==null;){d.index>c&&b.push({type:"literal",value:a.slice(c,d.index)});var e=d[1][0];c=!!d[2];d=d[3].trim();if(e==="{")throw Error("Cg");(e=ALa(d))?b.push({type:"method",negate:c,signature:e}):b.push({type:"path",negate:c,path:d});c=JLa.lastIndex}c&&c<a.length&&(a=a.substring(c))&&b.push({type:"literal",value:a});return b};
GLa=function(a){for(var b="",c=0;c<a.length;c++){var d=a[c];d.type==="literal"&&(b+=d.value)}return b};
HLa=function(a,b,c,d){a.bindings!=null||(a.bindings=[]);a.bindings.push({kind:b,target:c,parts:d})};
OLa=function(a,b,c){var d=!1;if(a.localName==="template"){d=c;var e=b.stripWhitespace;e=KLa(a,e===void 0?!1:e);var g=a.content.ownerDocument.createDocumentFragment();e.content=g;g.appendChild(a.content);d&&(d.templateInfo=e);d=!0}else a.localName==="slot"&&(b.hasInsertionPoint=!0);if(a.firstChild&&(e=c,a.localName!=="script"&&a.localName!=="style")){g=0;for(var k=a.firstChild;k;){var m=k;if(m.localName==="template"){var n=m.getAttribute("is");if((k=n==="dom-if")||n==="dom-repeat"){m.removeAttribute("is");
n=m.ownerDocument.createElement("ps-"+n);m.parentNode.replaceChild(n,m);n.appendChild(m);var r=Array.from(m.attributes);r=_.h(r);for(var t=r.next();!t.done;t=r.next())t=t.value,k?LLa.has(t.name)&&xr(n,t.value,t.name):MLa.has(t.name)?xr(n,t.value,t.name):NLa.has(t.name),m.removeAttribute(t.name);k=n}else k=m}if(k.nodeType===Node.TEXT_NODE){m=void 0;n=a;for(r=k;((m=r.nextSibling)==null?void 0:m.nodeType)===Node.TEXT_NODE;)t=void 0,(t=r).textContent!=null||(t.textContent=""),r.nextSibling.textContent&&
(r.textContent+=r.nextSibling.textContent),n.removeChild(r.nextSibling);if(b.stripWhitespace&&k.textContent&&!k.textContent.trim()){a.removeChild(k);k=k.nextSibling;continue}}OLa(k,b,{parentIndex:g,parentInfo:e});k.parentNode&&g++;k=k.nextSibling}}var u;if((u=a.hasAttributes)==null?0:u.call(a)){u=c=DLa(c);e=!1;g=Array.from(a.attributes);g=_.h(g);for(m=g.next();!m.done;m=g.next())m=m.value,e=ILa(a,u,m.name,m.value)||e;d=e||d}a.nodeType===Node.TEXT_NODE&&(u=ELa(a.textContent),u.length&&(a.textContent=
GLa(u)||" ",c=DLa(c),HLa(c,"text","textContent",u),d=!0));c&&d&&(c.infoIndex=b.nodeInfoList.push(c)-1)};
KLa=function(a,b){b={nodeInfoList:[],stripWhitespace:(b===void 0?!1:b)||a.hasAttribute("strip-whitespace")};OLa(a.content,b);return b};
PLa=function(a){Object.assign(a,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
QLa=function(a,b){for(;a;){var c=a.signals[b];if(c)return c;a=a.parentScope}};
RLa=function(a,b,c,d){b.signalCache!=null||(b.signalCache={});var e=b.signalCache[c];if(!e){var g=c.split("."),k=QLa(d,g[0]);if((k==null?void 0:k.type)==="signal")e=function(){var w=k.type==="mutable"?k.signal.getWithPath([]):k.getter();return{rootWasDefined:w!==void 0,value:wr(w,g.slice(1))}};
else if((k==null?void 0:k.type)==="mutable"){var m=k.signal,n=k.signal.getPathMutationSignal(g.slice(1));e=function(){var w=Ah(a.owner,function(){return m.getWithPath([])}),A,C=(A=n())==null?void 0:A.value;
return{rootWasDefined:w!==void 0,value:C}}}else{var r,t;
d=!((r=a.options)==null?0:(t=r.immutableProps)==null?0:t.has(g[0]));if(g.length>1&&d){var u=a.getPathMutationSignal(g);e=function(){var w=Ah(a.owner,function(){return a.getWithPath([g[0]])}),A,C=(A=u())==null?void 0:A.value;
return{rootWasDefined:w!==void 0,value:C}}}else e=function(){var w=a.getWithPath(g);
return{rootWasDefined:w!==void 0,value:w}}}b.signalCache[c]=e}return e()};
wMa=function(a,b,c,d,e,g){b=b.parts.map(function(m,n){if(m.type==="literal"){c.partWasDefined!=null||(c.partWasDefined=[]);var r;(r=c.partWasDefined)[n]||(r[n]=m.value!==void 0);return m.value}var t;if(m.type==="method"){var u,w=(u=(t=c.partWasDefined)==null?void 0:t[n])!=null?u:!1;w||(w=m.signature.args.every(function(G){return G.type==="literal"}));
var A=!1,C=!0;t=m.signature.args.map(function(G){if(G.type==="literal")return G.value;if(G.type!=="path")throw Error("Dg`"+G.type);var J=RLa(a,c,G.path,e);G=J.value;J=J.rootWasDefined;A||(A=J);C&&(C=J);return G});
w||(w=g===1?C:A);c.partWasDefined!=null||(c.partWasDefined={});c.partWasDefined[n]=w;if(!w)return;t=(n=RLa(a,c,m.signature.methodName,e).value)&&typeof n==="function"?n.apply(d,t):void 0}else u=RLa(a,c,m.path,e),t=u.value,c.partWasDefined!=null||(c.partWasDefined={}),(w=c.partWasDefined)[n]||(w[n]=t!==void 0||u.rootWasDefined);m.negate&&(t=!t);return t});
if(b.length===1){var k;return((k=c.partWasDefined)==null?0:k[0])?b[0]:vMa}return b.join("")};
xMa=function(a){return typeof a==="object"&&!!a&&"notifyPath"in a&&"canNotifyPath"in a};
yMa=function(a){return typeof a==="object"&&!!a&&"notifyPath"in a};
zMa=function(a){return"polymerController"in a};
AMa=function(a,b){b=""+vr(b)[0];if(xMa(a))return a.canNotifyPath(b);if(zMa(a)&&xMa(a.polymerController))return a.polymerController.canNotifyPath(b);if(yMa(a)){var c;return!((c=a.properties)==null||!c[b])}if(zMa(a)&&yMa(a.polymerController)){var d;return!((d=a.polymerController.properties)==null||!d[b])}return!1};
BMa=function(a,b,c){xMa(a)||yMa(a)?a.notifyPath(b,c):zMa(a)&&(xMa(a.polymerController)||yMa(a.polymerController))&&a.polymerController.notifyPath(b,c)};
DMa=function(a,b,c){if(c!==vMa){a.kind==="attribute"||a.target!=="textContent"&&(a.target!=="value"||b.localName!=="input"&&b.localName!=="textarea")||(c=c===void 0?"":c);var d,e=(d=CMa.Polymer)==null?void 0:d.sanitizeDOMValue;e&&(c=e(c,a.target,a.kind,b));if(a.kind==="attribute"){a=a.target;if(a==="class"||a==="name"||a==="slot")b=(0,_.br)(b);xr(b,c,a)}else if(a=a.target,c!==b[a]||typeof c==="object")b.loggingStatus&&(b.loggingStatus.isDeclarativeExternal=!0,nr(b.localName,a,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
b[a]=c,b.loggingStatus&&(b.loggingStatus.isDeclarativeExternal=!1)}};
FMa=function(a,b,c,d,e){var g=b.parts[0];if(b.parts.length!==1||g.type!=="path"||!AMa(c,b.target))return!1;var k=_.h(g.path.split(".")),m=k.next().value,n=Og(k);if(!_.x("web_polysi_immutable_root_fix_killswitch")&&EMa(a,m))return!1;k=QLa(e,m);if((k==null?void 0:k.type)==="signal")return!1;d.signalCache!=null||(d.signalCache={});e=d.signalCache[g.path];var r;e=(r=e)==null?void 0:r().value;if((e==null?void 0:e.path)!==void 0){d=vr(e.path);var t=vr(g.path);d=[b.target].concat(_.Be(d.slice(t.length-1)));
BMa(c,d,g.negate?!e.value:e.value);return!0}var u;k?u=k.signal:u=yr(a,m);var w=u.getChangeRecordSignal(n),A=!1;e=function(){if(!A){var G=Ah(a.owner,function(){return u.getWithPath([])});
A||(A=G!==void 0)}return{value:w(),rootWasDefined:A}};
d.signalCache[g.path]=e;d.partWasDefined!=null||(d.partWasDefined={});m=e();(t=d.partWasDefined)[0]||(t[0]=m.rootWasDefined);var C=Ah(a.owner,function(){return u.getWithPath(n)});
d.partWasDefined[0]&&Ah(a.owner,function(){return void DMa(b,c,g.negate?!C:C)});
return!0};
GMa=function(a,b,c,d,e,g,k){if(!FMa(a,b,c,d,g)){var m=wMa(a,b,d,e,g,k);Ah(a.owner,function(){return void DMa(b,c,m)})}};
HMa=function(a,b,c,d,e,g,k){c=_.h(c);for(var m=c.next(),n={};!m.done;n={infoIndex:void 0},m=c.next()){m=m.value;var r=m.bindings;n.infoIndex=m.infoIndex;m=m.parentInfo;if(r){r=_.h(r);for(var t=r.next(),u={};!t.done;u={b$jscomp$254:void 0,bindingCtx$jscomp$4:void 0},t=r.next()){u.b$jscomp$254=t.value;if(n.infoIndex===void 0)throw Error("Eg");u.bindingCtx$jscomp$4={};a.effect(function(w,A){return function(){e&&!e()||GMa(a,w.b$jscomp$254,b[A.infoIndex],w.bindingCtx$jscomp$4,d,g,k)}}(u,n))}}m&&HMa(a,
b,[m],d,e,g,k)}};
IMa=function(a,b){a=(b.parentInfo?IMa(a,b.parentInfo):a).firstChild;for(var c=0;a;a=a.nextSibling)if(b.parentIndex===c++)return a;throw Error("Fg");};
KMa=function(a,b,c,d){a=document.importNode(a.content,!0);a.__noInsertionPoint=!(d==null?0:d.hasInsertionPoint);for(var e=Array(b.length),g={},k=0;k<b.length;k++){var m=b[k],n=IMa(a,m);e[k]=n;m.id&&(g[m.id]=n);if(m.templateInfo){var r=n.parentElement;r&&(r.templateInfo=m.templateInfo,r.parentSignalProxy=c,r.eventListenerHost=d.eventListenerHost,r.stampingEnabled=d.enabledSignal,r.parentScope=d.scope)}r=void 0;if((r=m.events)==null?0:r.length)for(r=0;r<m.events.length;r++){var t=m.events[r];JMa(d.eventListenerHost,
n,t.name,t.value,d.getModel)}}HMa(c,e,b,d.thisCtx,d.enabledSignal,d.scope,d.methodInvocationRequirement);return{root:a,nodes:e,nodesById:g}};
MMa=function(a,b){a=a();var c;(c=LMa.ShadyCSS)==null||c.prepareTemplate(a,b);b=KLa(a);return{template:a,nodeInfoList:b.nodeInfoList,hasInsertionPoint:b.hasInsertionPoint}};
PMa=function(){NMa=!1;for(var a=zr.length,b=0;b<a;b++){var c=zr[b];if(c)try{c()}catch(d){Promise.resolve().then(function(){throw d;})}}zr.splice(0,a);
OMa+=a};
TMa=function(a){NMa||(NMa=!0,QMa.textContent=(RMa++).toString());zr.push(a);return SMa++};
_.Cr=function(a,b,c){Ar++;a=b?new UMa(Ar,a,b,c):new VMa(Ar,a);Br.set(Ar,a);return Ar};
WMa=function(a){(a=Br.get(a))&&a.cancel()};
YMa=function(a,b){a=XMa.get(a);return a?(b=a.get(b))?b:null:null};
_.Dr=function(a,b,c,d){var e=YMa(a,b);if(!e){e=new ZMa;var g=XMa.get(a);g||(g=new Map,XMa.set(a,g));g.set(b,e)}a=c.bind(a);e.run(a,d,void 0)};
_.$Ma=function(a,b){var c;(c=YMa(a,b))==null||c.cancel()};
aNa=function(a){var b;(b=YMa(a,"doRender"))==null||b.flush()};
Er=function(a){var b;return(b=a.hostElement)!=null?b:a};
bNa=function(a){var b=a.indexOf(".");return b===-1?a:a.slice(0,b)};
cNa=function(a,b,c,d,e,g){g=(e=(d=g?bNa(b):b)?b:null)?a.get(e):a.__data[b];e&&g===void 0&&(g=c[b]);_.go(a.hostElement,HBa(d)+"-changed",{value:g,queueProperty:!0,path:e!=null?e:void 0},{bubbles:!1,composed:!1})};
dNa=function(a,b){a.__isReflecting=!0;BLa(a.hostElement,b,a.__data[b]);a.__isReflecting=!1};
eNa=function(a){if(a._onIronRequestResizeNotifications){var b=a._onIronRequestResizeNotifications.bind(a);a._onIronRequestResizeNotifications=function(c){_.Qq(c)!==a.hostElement&&b(c)}}a._ariaActiveAttributeChanged&&(a._ariaActiveAttributeChanged=a._ariaActiveAttributeChanged.bind(a.hostElement));
a._activeChanged&&(a._activeChanged=function(c){a.toggles?xr(a.hostElement,c?"true":"false",a.ariaActiveAttribute):a.hostElement.removeAttribute(a.ariaActiveAttribute);a._changedButtonState()});
a._asyncClick&&(a._asyncClick=function(){_.Cr(function(){a.hostElement.click()},1)});
!a.keyEventTarget||a.keyEventTarget instanceof EventTarget||(a.keyEventTarget=Er(a.keyEventTarget));a._disabledChanged&&(a._disabledChanged=a._disabledChanged.bind(a.hostElement));a._observeItems&&(a._observeItems=function(c){var d=Er(c);return _.xn(d).observeNodes(function(e){a._updateItems();a._updateSelected();_.go(d,"iron-items-changed",e,{bubbles:!1,cancelable:!1})})});
a._updateItems&&a._updateItems===_.Fr._updateItems&&(a._updateItems=function(){var c=_.xn(a.hostElement).queryDistributedElements(a.selectable||"*");c=Array.prototype.filter.call(c,a._bindFilterItem);a._setItems(c)});
a._computeKeyboardClass&&(a._computeKeyboardClass=function(c){_.$q(a.hostElement,"keyboard-focus",c)});
a.ensureRipple&&(a.ensureRipple=function(c){if(a.hasRipple&&!a.hasRipple()){if(!a._createRipple)return;a._ripple=a._createRipple();a._ripple.noink=a.noink;var d=a._rippleContainer||a.hostElement;d&&_.E(d).appendChild(a._ripple)}var e;if(c&&((e=a._ripple)==null?0:e.uiDownAction)){d=_.E(a._rippleContainer||a.hostElement);var g;e=(g=c.composedPath())==null?void 0:g[0];d.contains(e)&&a._ripple.uiDownAction(c)}});
a._updateMultiselectable&&(a._updateMultiselectable=function(c){c?a.hostElement.setAttribute("aria-multiselectable","true"):a.hostElement.removeAttribute("aria-multiselectable")})};
fNa=function(a,b,c){c=_.h(c);for(var d=c.next();!d.done;d=c.next())eLa(d.value.constructor,a);eLa(b.constructor,a)};
hNa=function(a,b){a=_.h(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.type==="signal"){var d=c.propertyKey;if(b.hasOwnProperty(d)&&b[d]!=null&&c.attributeType===Object){a:{d=b[d].constructor;for(var e=_.h(gNa),g=e.next();!g.done;g=e.next())if(g=g.value,d===g){d=g;break a}d=Object}c.attributeType=d}}};
iNa=function(){};
jNa=function(a){var b;return(b=a.hostElement)!=null?b:a};
kNa=function(){throw Error("Jg");};
lNa=function(a,b){a.constructor.prototype.useSignals=!0;var c=new a.constructor;fNa(c,a,b.behaviors);hNa(b.reactiveSchemas,c);c={};for(var d=_.h(b.reactiveSchemas),e=d.next();!e.done;e=d.next())e=e.value,e.type==="signal"&&(c[e.propertyKey]=e.attributeType);var g={copyPropertiesToProto:kNa,didRegister:!1,typesForSignals:c},k=["disable-upgrade"].concat(_.Be(b.observedAttributes)),m=function(n){Gr.call(this,a,b,g,n)};
_.z(m,Gr);_.Vm.Object.defineProperties(m,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return k}}});
g.copyPropertiesToProto=function(){for(var n=0;n<b.behaviors.length;n++)gLa(b.behaviors[n],m.prototype);gLa(a,m.prototype)};
b.legacyOptimizations||g.copyPropertiesToProto();m.prototype.is=a.is;return m};
mNa=function(a,b){if(Object.getPrototypeOf(b.prototype).constructor!==_.P)throw Error("Kg");b.prototype.is=a.is;return lNa(b.prototype,a)};
nNa=function(a){return a.type==="compute"||a.type==="computeWithMethod"};
oNa=function(a){for(var b=a.reactiveSchemas.filter(nNa),c=new Map,d=new Map,e=new Map,g=_.h(b),k=g.next();!k.done;k=g.next())k=k.value,c.set(k.propertyKey,k),d.set(k.propertyKey,[]),e.set(k.propertyKey,0);g=0;b=_.h(b);for(k=b.next();!k.done;k=b.next()){k=k.value;for(var m=_.h(k.type==="computeWithMethod"?k.method.args:k.args),n=m.next();!n.done;n=m.next())n=n.value,n.type!=="literal"&&(n=n.path.split(".")[0],d.has(n)&&(d.get(n).push(k.propertyKey),e.set(k.propertyKey,e.get(k.propertyKey)+1),g++))}k=
[].concat(_.Be(d.keys())).filter(function(r){return e.get(r)===0});
for(b=[];k.length;)for(m=k.shift(),b.push(c.get(m)),m=_.h(d.get(m)),n=m.next();!n.done;n=m.next())n=n.value,e.set(n,e.get(n)-1),g--,e.get(n)===0&&k.push(n);c=a.reactiveSchemas.filter(function(r){return!nNa(r)});
a.reactiveSchemas=[].concat(_.Be(c),_.Be(b))};
pNa=function(a,b){if(b.properties)for(var c=_.h(Object.entries(b.properties)),d=c.next();!d.done;d=c.next()){var e=_.h(d.value);d=e.next().value;e=e.next().value;a.properties[d]=typeof e==="function"?{type:e}:e}b.observers&&a.observers.push.apply(a.observers,_.Be(b.observers));b.disabledPolySiReactions&&a.disabledPolySiReactions.push.apply(a.disabledPolySiReactions,_.Be(b.disabledPolySiReactions))};
qNa=function(a,b){for(var c=b.length-1;c>=0;c--){var d=b[c];Array.isArray(d)?qNa(a,d):a.indexOf(d)<0&&a.unshift(d)}};
rNa=function(a,b){a.reactiveSchemas=a.reactiveSchemas.filter(function(c){return c.type==="observe"&&b.includes(c.method.methodName)||nNa(c)&&b.includes(c.propertyKey)?!1:!0})};
tNa=function(a,b){var c=b.prototype,d,e,g={is:a.is,reactiveSchemas:[],observedAttributes:[],behaviors:[YKa.InjectBehavior,tr.prototype],disableElementRegistration:a.disableElementRegistration,provide:(d=a.providers)!=null?d:[],reactivityMode:a.reactivityMode,signalProperties:(e=c.signalProperties)!=null?e:[]};"template"in b?g.templateGetter=function(){return b.template}:a.getTemplate&&(g.templateGetter=a.getTemplate);
c.behaviors&&qNa(g.behaviors,c.behaviors);sNa(g,b);return g};
sNa=function(a,b){for(var c=b.prototype,d={properties:{},observers:[],disabledPolySiReactions:[]},e=_.h(a.behaviors),g=e.next();!g.done;g=e.next())pNa(d,g.value);pNa(d,c);if(a.signalProperties)for(c=_.h(a.signalProperties),e=c.next();!e.done;e=c.next())delete d.properties[e.value];c=_.h(Object.entries(d.properties));for(e=c.next();!e.done;e=c.next()){g=_.h(e.value);e=g.next().value;g=g.next().value;var k=void 0;if((k=a.signalProperties)==null||!k.includes(e)){k=void 0;var m=a,n=g.type;if(!n)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{n=Reflect.getMetadata("design:type",b,e);for(var r=_.h(uNa),t=r.next();!t.done;t=r.next())if(t=t.value,n===t){n=t;break a}n=Object}else n=String;g.computed||g.selector||(m.reactiveSchemas.push({type:"signal",propertyKey:e,value:g.value,attributeType:n,readOnly:g.readOnly}),m.observedAttributes.push(_.pn(e)));g.reflectToAttribute&&m.reactiveSchemas.push({type:"reflect",propertyKey:e});if(g.computed){n=ALa(g.computed);if(!n)throw Error("Lg");m.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:e,method:n,value:g.value})}g.observer&&m.reactiveSchemas.push({type:"observe",method:{methodName:g.observer,args:[{type:"path",path:e}]}});g.notify&&m.reactiveSchemas.push({type:"notify",propertyKey:e});g.selector&&m.reactiveSchemas.push({type:"redux",propertyKey:e,selector:g.selector,selectorArgs:(k=g.selectorArgs)!=null?k:[]})}}vNa&&oNa(a);b=_.h(d.observers);for(e=b.next();!e.done;e=b.next())c=a,e=e.value,(g=ALa(e))?c.reactiveSchemas.push({type:"observe",method:g}):console.log('Warning: unable to parse observe declaration: "'+
e+'"');rNa(a,d.disabledPolySiReactions)};
wNa=function(a,b){for(var c=0;c<b.length;c++){var d=b[c],e=void 0;(e=d).showHideApi!=null||(e.showHideApi={});e=void 0;!!a!==!((e=d.showHideApi)==null||!e.hideTemplateChildren)&&(d.nodeType===Node.TEXT_NODE?a?(d.showHideApi.polymerTextContent=d.textContent,d.textContent=""):(e=void 0,d.textContent=(e=d.showHideApi.polymerTextContent)!=null?e:null):d instanceof Element&&d.localName==="slot"?a?(d.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.br)((0,_.br)(d).parentNode).replaceChild(d.showHideApi.polymerReplaced,
d)):(e=d.showHideApi.polymerReplaced)&&(0,_.br)((0,_.br)(e).parentNode).replaceChild(d,e):d instanceof HTMLElement&&d.style&&(a?(d.showHideApi.polymerDisplay=d.style.display,d.style.display="none"):d.style.display=d.showHideApi.polymerDisplay));d.showHideApi.hideTemplateChildren=a;d.showHideChildren&&d.showHideChildren(a)}};
yNa=function(){if(!xNa){var a=document.createElement("style");a.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(a);xNa=!0}};
zNa=function(a,b){return Ah(a,function(){for(var c={},d=b,e=new Set;d;){for(var g=_.h(Object.entries(d.signals)),k=g.next();!k.done;k=g.next()){var m=_.h(k.value);k=m.next().value;m=m.next().value;e.has(k)||(e.add(k),c[k]=m.type==="mutable"?m.signal.getWithPath([]):m.getter())}d=d.parentScope}return c})};
Hr=function(){return _.x("disable_hidden_dom_if_using_stamper")||_.x("creator_disable_hidden_dom_if_using_stamper")};
ANa=function(){var a=!1,b=_.h(_.fh(!0,"UQbJQc")),c=b.next().value,d=b.next().value;return[function(){return a?!1:c()},
function(){a=!0;d(!1)}]};
BNa=function(a,b){var c=_.Ir().getState();return b?a.apply(null,[c].concat(_.Be(b))):a(c)};
ENa=function(){if(CNa)return CNa;var a=_.h(_.fh(0,"lnJfId")),b=a.next().value,c=a.next().value;_.Ir().subscribe(function(){DNa(c)});
return CNa=b};
DNa=function(a){_.x("delay_redux_signal_update_killswitch")?a(Jka(function(b){return b+1})):FNa||(FNa=!0,Promise.resolve().then(function(){a(Jka(function(b){return b+1}));
FNa=!1}))};
_.Ir=function(){return GNa.getAppStore()};
Jr=function(a,b){return GNa.getSelectFn()(a,b)};
_.Kr=function(a){GNa.getDispatchFn()(a)};
KNa=function(a){var b=HNa;INa.push(a);JNa||(b(function(){for(var c=_.h(INa),d=c.next();!d.done;d=c.next())d=d.value,d();INa.length=0;JNa=!1}),JNa=!0)};
HNa=function(a){Promise.resolve().then(a)};
Lr=function(a){a=_.h(Mua(a));var b=a.next().value,c=a.next().value,d=!1;_.vi(function(){return function(){d=!0}});
return[b,function(e){KNa(function(){d&&!_.x("cow_prevent_state_setter_after_cleanup_killswitch")||c(e)})}]};
LNa=function(){var a=_.h(Lr(!1)),b=a.next().value,c=a.next().value;return function(){c(!b)}};
MNa=function(a){return xi(function(){return{value:a}})};
NNa=function(a,b){var c=MNa(a),d=MNa(b);ui(function(){c.value=a},[a]);
ui(function(){d.value=b},b&&b.length>=1?b:[void 0]);
var e=xi(function(){return{value:void 0}});
if(a!==c.value||d.value!==b||e.value===void 0)e.value=Jr(a,b);var g=LNa();_.vi(function(){function k(){var n=Jr(c.value,b);n!==e.value&&(e.value=n,g())}
var m=_.Ir().subscribe(k);k();return m});
return e.value};
_.Mr=function(a){return _.kh(function(){ENa()();return Jr(a)},void 0,"Icv7j")};
ONa=function(a,b){var c={},d;for(d in a)c[d]=b(a[d],d);return c};
_.Nr=function(a,b){return function(){var c;return(c=_.zh(a))!=null?c:b}};
_.Or=function(a,b){var c=Object.assign({},a),d;for(d in b)b.hasOwnProperty(d)&&(c[d]=_.Nr(a[d],b[d]));return c};
PNa=function(a,b,c){a instanceof Element&&(c.debugName||(c.debugName="<"+a.tagName.toLowerCase()+(a.tagName.includes("-")?">":"."+a.className+">")),_.x("ytwiz_enable_debug_component_props")&&(a.debugProps||(a.debugProps=ONa(b,function(d){return function(){return d()}}))))};
_.Rr=function(a){var b=function(c){var d={stack:[],error:void 0,hasError:!1};try{var e=QNa={};var g=_.Pr(d),k;if(((k=b)==null?0:k.idomCompat)&&c.renderedFromIdom){g==null||g.attr("idomCompat",!0);var m,n=typeof b.idomCompat==="object"?(m=b)==null?void 0:m.idomCompat.callbacks:{},r=_.h(RNa(c,n)),t=r.next().value;r.next();var u=r.next().value,w=fi(a(t));e.privateValue=w;QNa=void 0;PNa(w,t,b);g==null||g.attr("debugName",b.debugName);var A=vma(w),C=Array.isArray(A)?A[0]:A;C[bi]||(C[bi]={});C[bi].updateSignalsFromIdomProps=
u;return w}var G=ONa(c,SNa);var J=a(G);e.privateValue=J;QNa=void 0;PNa(J,G,b);g==null||g.attr("debugName",b.debugName);return J}catch(I){d.error=I,d.hasError=!0}finally{_.Qr(d)}};
b.debugName="";return b};
TNa=function(a,b){a[b]||(a=new _.qj("IDOM interop setter undefined. Key:",b),_.Bl(a))};
SNa=function(a,b){return b==="children"||typeof a==="function"||a===void 0?a:function(){return _.zh(a)}};
RNa=function(a,b){var c={},d={},e={},g={},k;for(k in a){g={key$jscomp$879:g.key$jscomp$879};g.key$jscomp$879=k;var m=a[g.key$jscomp$879];if(g.key$jscomp$879==="children")c[g.key$jscomp$879]=m;else if(typeof m==="function")g.key$jscomp$879 in b||m.length>0?(e[g.key$jscomp$879]=m,c[g.key$jscomp$879]=function(r){return function(){return e[r.key$jscomp$879].apply(e,_.Be(_.Id.apply(0,arguments)))}}(g)):c[g.key$jscomp$879]=m;
else if(!(a[g.key$jscomp$879]===void 0&&g.key$jscomp$879 in b)){var n=_.h(_.fh(a[g.key$jscomp$879],"FDP8pe"));m=n.next().value;n=n.next().value;c[g.key$jscomp$879]=m;d[g.key$jscomp$879]=n}}return[c,d,function(r){var t={},u;for(u in r)t={key$jscomp$880:t.key$jscomp$880,val$jscomp$121:void 0},t.key$jscomp$880=u,t.val$jscomp$121=r[t.key$jscomp$880],t.key$jscomp$880!=="children"&&(typeof t.val$jscomp$121==="function"?t.key$jscomp$880 in b?e[t.key$jscomp$880]=t.val$jscomp$121:t.val$jscomp$121.length>0&&
(e[t.key$jscomp$880]=t.val$jscomp$121,_.Dl(new _.qj("Callback detected that was not set in the idomCompat callbacks map. Key:",t.key$jscomp$880))):t.key$jscomp$880 in b&&t.val$jscomp$121===void 0||(TNa(d,t.key$jscomp$880),lh(function(w){return function(){d[w.key$jscomp$880](w.val$jscomp$121)}}(t))))}]};
WNa=function(a,b,c){var d=Qxa(a.prototype,UNa,a.prototype.behaviors);d.prototype.is=b;d.prototype.localName=b;c&&VNa(d,c);return function(e){e&&(d.prototype.hostElement=e);var g=new d;g.root=g;g.hostElement=e;return g}};
VNa=function(a,b){var c;Object.defineProperty(a.prototype,"_template",{get:function(){c===void 0&&(c=b());return c},
set:function(d){c=d},
configurable:!0,enumerable:!0})};
aOa=function(a,b,c,d){function e(){if(!A){for(var C=new Set,G=_.h(t),J=G.next();!J.done;J=G.next()){J=J.value;for(var I=_.h(Object.getOwnPropertyNames(J)),R=I.next();!R.done;R=I.next()){R=R.value;var ca=void 0,V=(ca=Object.getOwnPropertyDescriptor(J,R))==null?void 0:ca.value;V&&V instanceof Function&&!Sr(R)&&C.add(R)}}G=_.h(Object.entries(Object.getOwnPropertyDescriptors(a.prototype)));for(J=G.next();!J.done;J=G.next())I=_.h(J.value),J=I.next().value,I=I.next().value,I.value instanceof Function&&
!Sr(J)&&C.add(J);A=C}return A}
XNa(a,b,d==null?void 0:d.providers);Rxa(a.prototype,a,!0);var g=WNa(a,b,c),k,m=(k=a.prototype.properties)!=null?k:{},n,r,t=(r=(n=a.prototype.behaviors)==null?void 0:n.flat(Infinity))!=null?r:[];c=_.h(t);for(k=c.next();!k.done;k=c.next())m=Object.assign({},k.value.properties,m);var u=[].concat(_.Be(YNa),_.Be(Object.keys(m).map(function(C){return _.pn(C)}))),w=!1,A;
return{ctor:function(C,G){var J=g(C),I,R;C=[].concat(_.Be((I=d==null?void 0:d.allowedProps)!=null?I:[]),_.Be((R=d==null?void 0:d.allowedPropsFromBehaviors)!=null?R:[]));J.allowedProps=C.length>0?C:void 0;I={};R=_.h(u);for(C=R.next();!C.done;C=R.next())C=C.value,I[C]=_.qn(C);J.__dataAttributes=I;var ca=J.ready.bind(J);J.ready=function(){G.beforeReady();ca();if(lr(b)&&!w){var V=J.__templateInfo;if(V==null?0:V.hostProps){V=_.h(Object.keys(V.hostProps));for(var fa=V.next();!fa.done;fa=V.next())nr(b,fa.value,
"PROPERTY_ACCESS_GET_INTERNAL")}w=!0}};
J._overrideLegacyUndefined=!0;return J},
props:m,observedAttributes:u,getInitialMethods:e,getPropsToForwardBeforeRegister:function(){for(var C=[],G=new Set,J=_.h(Object.keys(m)),I=J.next();!I.done;I=J.next())I=I.value,C.push([I,m[I].readOnly]),G.add(I);J=e();I=_.h(Object.keys(Object.getOwnPropertyDescriptors(a.prototype)));for(var R=I.next();!R.done;R=I.next())R=R.value,!ZNa(R)||J.has(R)||G.has(R)||(C.push([R,!1]),G.add(R));G=_.h($Na);for(J=G.next();!J.done;J=G.next())C.push([J.value,!0]);return C},
getPropsToForwardBeforeReady:function(C){for(var G=[],J=_.h(Object.entries(C)),I=J.next();!I.done;I=J.next()){var R=_.h(I.value);I=R.next().value;R=R.next().value;if(ZNa(I)&&!(R instanceof Function)&&(G.push([I,!1]),lr(b))){var ca=R=void 0;(ca=(R=C)._createPropertyAccessor)==null||ca.call(R,I)}}return G},
shouldForwardProp:ZNa,shouldLog:lr}};
XNa=function(a,b,c){ZKa(a,c);a.prototype.behaviors.unshift(bOa);if(LKa()){if(lr(b)){var d;(d=a.prototype).behaviors!=null||(d.behaviors=[]);a.prototype.behaviors.unshift(PKa())}RKa(a)}_.H(tr.prototype)(a.prototype,"__templateHelpers")};
Sr=function(a){return cOa.has(a)||a.startsWith("__compute__")};
ZNa=function(a){return!Sr(a)&&!a.startsWith("_")&&!a.endsWith("_")};
hOa=function(a,b){function c(){var w=n();w=_.h(w);for(var A=w.next();!A.done;A=w.next()){var C=_.h(A.value);A=C.next().value;C=C.next().value;dOa(u.prototype,A,C)}d=!0}
var d=!1,e=a.ctor,g=a.getInitialMethods,k=a.observedAttributes,m=a.getPropsToForwardBeforeReady,n=a.getPropsToForwardBeforeRegister,r=a.shouldForwardProp,t=a.shouldLog,u=function(){var w=HTMLElement.call(this)||this;w.didForwardDynamicProps=!1;w.loggingStatus={};d||c();w.inst=e(w,{beforeReady:function(){w.didForwardDynamicProps||(w.forwardDynamicProps(),w.didForwardDynamicProps=!0)}});
w.controllerProxy=NKa(w.inst,b);w.forwardMethods();return w};
_.z(u,HTMLElement);u.prototype.forwardMethods=function(){for(var w=this,A=_.h(this.inst.getExtraMethodsToForward()),C=A.next(),G={};!C.done;G={method$jscomp$60:void 0},C=A.next()){var J=_.h(C.value);C=J.next().value;J=J.next().value;G.method$jscomp$60=J;this[C]=function(I){return function(){return I.method$jscomp$60.call.apply(I.method$jscomp$60,[w.inst].concat(_.Be(_.Id.apply(0,arguments))))}}(G)}A=_.h(g());
for(G=A.next();!G.done;G=A.next())G=G.value,r(G)&&eOa(this,G),t(b)&&!Sr(G)&&fOa(this.inst,G)};
u.prototype.forwardDynamicProps=function(){var w=m(this.inst);w=_.h(w);for(var A=w.next();!A.done;A=w.next()){var C=_.h(A.value);A=C.next().value;C=C.next().value;dOa(this,A,C);t(b)&&!Sr(A)&&gOa(this.inst,A)}};
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(w,A,C){this.inst.attributeChangedCallbackWrapper(w,A,C)};
_.Vm.Object.defineProperties(u.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return b}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.Vm.Object.defineProperties(u,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return k}}});
customElements.define(b,u)};
dOa=function(a,b,c){a.hasOwnProperty(b)||Object.defineProperty(a,b,{get:function(){var d,e=((d=a.is)!=null?d:a.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||nr(e,b,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,d=this.polymerController[b],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,d},
set:function(d){if(!c){var e,g=((e=a.is)!=null?e:a.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||nr(g,b,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=b,this.loggingStatus.bypassProxyController=!0,this.polymerController[b]!==d&&(e={},this.polymerController.setProperties((e[b]=d,e)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
eOa=function(a,b,c){var d=a.polymerController;a[b]=function(){var e=_.Id.apply(0,arguments);a.loggingStatus.currentExternalCall=b;a.loggingStatus.bypassProxyController=!0;var g,k=((g=a.is)!=null?g:a.tagName).toLowerCase();nr(k,b,"PROPERTY_ACCESS_CALL_EXTERNAL");var m;g=(m=c!=null?c:d[b])==null?void 0:m.call.apply(m,[d].concat(_.Be(e)));a.loggingStatus.currentExternalCall=void 0;a.loggingStatus.bypassProxyController=!1;return g}};
fOa=function(a,b){var c=a.hostElement,d=a[b];a[b]=function(){var e=_.Id.apply(0,arguments);if(c.loggingStatus.currentExternalCall!==b){var g,k=((g=c.is)!=null?g:c.tagName).toLowerCase();nr(k,b,"PROPERTY_ACCESS_CALL_INTERNAL")}return d==null?void 0:d.apply(a,e)}};
gOa=function(a,b){var c=Object.getOwnPropertyDescriptor(a,b);c&&!c.get&&Object.defineProperty(a,b,{get:function(){OKa(a.hostElement,b);return c.value},
set:function(d){or(a.hostElement,b);c.value=d}})};
iOa=function(a){return _.x("poly_si_dom_repeat_detached_fix_killswitch")||a.tagName!=="PS-DOM-REPEAT"?a.tagName==="DOM-REPEAT":!0};
kOa=function(a,b){var c=jOa(a);a instanceof Element&&c.unshift(a);a=_.h(c.filter(iOa));for(var d=a.next();!d.done;d=a.next()){d=_.h(d.value.__instances);for(var e=d.next();!e.done;e=d.next())if(e=e.value,e.root){e=Array.from(e.root.children);e=_.h(e);for(var g=e.next();!g.done;g=e.next())c.push.apply(c,_.Be(kOa(g.value,b)))}}return c.filter(function(k){return k.usePatchedLifecycles&&k.lifecycleIsConnected===b})};
jOa=function(a){var b=null;a instanceof Element?b=Element.prototype.querySelectorAll:a instanceof DocumentFragment&&(b=DocumentFragment.prototype.querySelectorAll);return b?Array.from(b.call(a,"*")):[]};
Tr=function(a){eh(function(){for(var b=_.h(kOa(a,!1)),c=b.next();!c.done;c=b.next()){c=c.value;c.lifecycleIsConnected=!0;try{var d=void 0,e=void 0,g=void 0,k=void 0;(d=(k=c.polymerController)!=null?k:c)==null||(g=(e=d).connectedCallback)==null||g.call(e)}catch(m){_.Bl(m)}}})};
Ur=function(a){eh(function(){for(var b=_.h(kOa(a,!0)),c=b.next();!c.done;c=b.next()){c=c.value;c.lifecycleIsConnected=!1;try{var d=void 0,e=void 0,g=void 0,k=void 0;(d=(k=c.polymerController)!=null?k:c)==null||(g=(e=d).disconnectedCallback)==null||g.call(e)}catch(m){_.Bl(m)}}})};
rOa=function(){if(!lOa){lOa=!0;var a=[Node];Vr&&a.push(Vr.Wrapper);var b=Node.prototype.insertBefore,c=Node.prototype.removeChild;a=_.h(a);for(var d=a.next(),e={};!d.done;e={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},d=a.next())d=d.value,e.nativeInsertBefore=d.prototype.insertBefore,d.prototype.insertBefore=function(k){return function(m,n){if(m instanceof DocumentFragment){var r=Array.from(m.children);m=k.nativeInsertBefore.call(this,m,n);
if(this.isConnected&&k.nativeInsertBefore===b)for(n=_.h(r),r=n.next();!r.done;r=n.next())Tr(r.value);return m}r=m instanceof Element&&m.isConnected;n=k.nativeInsertBefore.call(this,m,n);r&&Ur(m);this.isConnected&&Tr(m);return n}}(e),e.nativeAppendChild=d.prototype.appendChild,d.prototype.appendChild=function(k){return function(m){if(m instanceof DocumentFragment){var n=Array.from(m.children);
m=k.nativeAppendChild.call(this,m);if(this.isConnected){n=_.h(n);for(var r=n.next();!r.done;r=n.next())Tr(r.value)}return m}n=m instanceof Element&&m.isConnected;r=k.nativeAppendChild.call(this,m);n&&Ur(m);this.isConnected&&Tr(m);return r}}(e),e.nativeRemoveChild=d.prototype.removeChild,d.prototype.removeChild=function(k){return function(m){var n=m instanceof Element&&m.isConnected,r=k.nativeRemoveChild.call(this,m);
n&&c===k.nativeRemoveChild&&Ur(m);return r}}(e),e.nativeReplaceChild=d.prototype.replaceChild,d.prototype.replaceChild=function(k){return function(m,n){if(m instanceof DocumentFragment){var r=Array.from(m.children);
m=k.nativeReplaceChild.call(this,m,n);if(this.isConnected)for(Ur(n),n=_.h(r),r=n.next();!r.done;r=n.next())Tr(r.value);return m}r=m instanceof Element&&m.isConnected;var t=this.isConnected,u=k.nativeReplaceChild.call(this,m,n);t&&Ur(n);r&&Ur(m);t&&Tr(m);return u}}(e);
a=[Element];Vr&&a.push(Vr.Wrapper);a=_.h(a);d=a.next();for(e={};!d.done;e={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},d=a.next())d=d.value,d.prototype.before=mOa(d.prototype.before),d.prototype.after=mOa(d.prototype.after),e.nativeReplaceWith=d.prototype.replaceWith,d.prototype.replaceWith=function(k){return function(){var m=_.Id.apply(0,arguments),n=_.h(nOa(m)),r=n.next().value,
t=n.next().value;n=this.isConnected;k.nativeReplaceWith.apply(this,m);m=_.h(t);for(t=m.next();!t.done;t=m.next())Ur(t.value);if(n)for(Ur(this),r=_.h(r),n=r.next();!n.done;n=r.next())n=n.value,n instanceof Element&&Tr(n)}}(e),e.nativeRemove=d.prototype.remove,d.prototype.remove=function(k){return function(){var m=this.isConnected;
k.nativeRemove.call(this);m&&Ur(this)}}(e),e.nativeInsertAdjacentElement=d.prototype.insertAdjacentElement,d.prototype.insertAdjacentElement=function(k){return function(m,n){var r=n.isConnected;
m=k.nativeInsertAdjacentElement.call(this,m,n);r&&Ur(n);m.isConnected&&Tr(m);return m}}(e),e.nativeSetAttribute=d.prototype.setAttribute,d.prototype.setAttribute=function(k){return function(m,n){var r=oOa(this);
if(!r.usePatchedLifecycles)return k.nativeSetAttribute.call(this,m,n);var t=this.getAttribute(m);k.nativeSetAttribute.call(this,m,n);n=this.getAttribute(m);pOa(r,m,t,n)}}(e),e.nativeRemoveAttribute=d.prototype.removeAttribute,d.prototype.removeAttribute=function(k){return function(m){var n=oOa(this);
if(!n.usePatchedLifecycles)return k.nativeRemoveAttribute.call(this,m);var r=this.getAttribute(m);k.nativeRemoveAttribute.call(this,m);r!==null&&pOa(n,m,r,null)}}(e),e.nativeToggleAttribute=d.prototype.toggleAttribute,d.prototype.toggleAttribute=function(k){return function(m,n){var r=oOa(this);
if(!this.usePatchedLifecycles)return k.nativeToggleAttribute.call(this,m,n);var t=this.getAttribute(m),u=t!==null;n=k.nativeToggleAttribute.call(this,m,n);n!==u&&pOa(r,m,t,n?"":null);return n}}(e);
a=[Document,DocumentFragment,Element,ShadowRoot];Vr&&a.push(Vr.Wrapper);a=_.h(a);for(e=a.next();!e.done;e=a.next())e=e.value,e.prototype.prepend=mOa(e.prototype.prepend),e.prototype.append=mOa(e.prototype.append);(Vr==null?void 0:Vr.noPatch)===!0&&qOa();document.readyState==="complete"?Tr(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&Tr(document.body)});
var g=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");g&&g.get&&g.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:g.enumerable,configurable:!0,get:g.get,set:function(k){k||Ur(this);g.set.call(this,k);return k}})}};
mOa=function(a){return function(){var b=_.Id.apply(0,arguments),c=_.h(nOa(b)),d=c.next().value;c=c.next().value;a.apply(this,b);b=_.h(c);for(c=b.next();!c.done;c=b.next())Ur(c.value);if(this.isConnected)for(d=_.h(d),b=d.next();!b.done;b=d.next())b=b.value,b instanceof Element&&Tr(b)}};
qOa=function(){for(var a=_.h(sOa),b=a.next();!b.done;b=a.next()){b=b.value.prototype;for(var c=_.h(tOa),d=c.next();!d.done;d=c.next()){d=d.value;var e=Object.getOwnPropertyDescriptor(b,d);e&&Object.defineProperty(b,"__shady_native_"+d,e)}}};
pOa=function(a,b,c,d){var e,g;if((e=a.polymerController)==null?0:(g=e.observedAttributes)==null?0:g.includes(b))if(a=a.polymerController,a.attributeChangedCallbackWrapper)a.attributeChangedCallbackWrapper.call(a,b,c,d);else{var k;(k=a.attributeChangedCallback)==null||k.call(a,b,c,d)}};
nOa=function(a){var b=[],c=[];a=_.h(a);for(var d=a.next();!d.done;d=a.next())d=d.value,d instanceof Element&&d.isConnected&&c.push(d),d instanceof DocumentFragment?b.push.apply(b,_.Be(Array.from(d.children))):b.push(d);return[b,c]};
oOa=function(a){return!(a instanceof Element)&&a.node instanceof Element?a.node:a};
uOa=function(a,b){var c=b?["children"].concat(_.Be(b)):["children"];b=[];c=_.h(c);for(var d=c.next();!d.done;d=c.next()){var e=d.value;if(a.hasOwnProperty(e)){d=a[e];d=typeof d==="function"?d():d;d=fi(Array.isArray(d)?d:[d]).flat();if(e!=="children"){e=HBa(e);for(var g=_.h(d),k=g.next();!k.done;k=g.next())k=k.value,k instanceof Element&&k.setAttribute("slot",e)}b.push(d)}}b.length===0?a=[]:(a=fi(_.q("div",null,b)),a=Array.from(a.childNodes));return a};
vOa=function(a,b,c){var d={};_.vh(function(){var e={},g;for(g in b)if(b.hasOwnProperty(g)){var k=void 0,m=void 0;if(!(((k=c.slotProps)==null?0:k.includes(g))||g==="children"||((m=c.callbackProps)==null?0:m.includes(g))||g==="ref")&&(k=_.zh(b[g]),d[g]!==k)){d[g]=k;m=void 0;var n=(m=a.hostElement)!=null?m:a;if(g==="className"||g==="id")n[g]=k;e[g]=k}}lh(function(){if(a.setProperties)a.setProperties(e);else for(var r=_.h(Object.entries(e)),t=r.next();!t.done;t=r.next()){var u=_.h(t.value);t=u.next().value;
u=u.next().value;a[t]=u}})},"GxazDb")};
xOa=function(a,b,c,d){var e=uOa(c,d.slotProps),g=_.x("web_wcw_disable_slot_host_shady_dom_wrap")?a:(0,_.br)(a);e=_.h(e);for(var k=e.next();!k.done;k=e.next())g.appendChild(k.value);vOa(b,c,d);d=_.h(d.callbackProps||[]);for(g=d.next();!g.done;g=d.next())e=g=g.value,String(g).substring(0,2)==="on"&&c[e]?_.Tl({value:a},HBa(String(g).substring(2)),c[e]):b[e]=c[e];if(c.ref){c=_.h(wOa(c.ref));var m=c.next().value,n=c.next().value,r=b.attached.bind(b);b.attached=function(){m(a);r()};
_.wh(function(){n()})}};
wOa=function(a){if(typeof a==="function"){var b;return[function(c){b=a(c)},
function(){var c;(c=b)==null||c()}]}if(!a.onRender||!a.onUnmount)throw Error("Pg");
return[a.onRender,a.onUnmount]};
BOa=function(a,b,c,d,e){d=d===void 0?{}:d;var g=yOa,k=!1;g?(k=!0,yOa=void 0):(zOa=b,g=document.createElement(b),zOa=void 0);var m=g;m.usePatchedLifecycles=!0;m.lifecycleIsConnected=!1;g.loggingStatus={};var n=AOa(a,b,g,d,e);_.wh(function(){m.lifecycleIsConnected&&(m.lifecycleIsConnected=!1,n.disconnectedCallback())});
k||xOa(g,n,c,d);return g};
AOa=function(a,b,c,d,e){e=e===void 0?aOa:e;COa[b]!=null||(COa[b]=e(a,b,d==null?void 0:d.getTemplate,d));var g=COa[b],k=g.ctor;e=g.getInitialMethods;var m=g.getPropsToForwardBeforeReady;a=g.getPropsToForwardBeforeRegister;d=g.shouldForwardProp;var n=g.observedAttributes,r=g.shouldLog,t=k(c,{beforeReady:function(){var u=t;u._takeAttributes?u._takeAttributes():u.setPropertiesFromInitialAttributeValues&&u.setPropertiesFromInitialAttributeValues();u=_.h(m(c.polymerController));for(var w=u.next();!w.done;w=
u.next()){var A=_.h(w.value);w=A.next().value;A=A.next().value;dOa(c,w,A);r(b)&&!Sr(w)&&gOa(c.polymerController,w)}c.polymerController=NKa(t,b)}});
c.polymerController=t;c.polymerController.observedAttributes=n;g=_.h(t.getExtraMethodsToForward());for(k=g.next();!k.done;k=g.next())n=_.h(k.value),k=n.next().value,n=n.next().value,eOa(c,k,n);e=_.h(e());for(g=e.next();!g.done;g=e.next())g=g.value,d(g)&&eOa(c,g),r(b)&&!Sr(g)&&fOa(t,g);a=_.h(a());for(d=a.next();!d.done;d=a.next())e=_.h(d.value),d=e.next().value,e=e.next().value,dOa(c,d,e);return t};
EOa=function(a,b){return Wr===b?(a.isInert=!0,Wr="",!0):DOa===b?(a.isInert=!0,DOa="",!0):!1};
FOa=function(a){var b=Xr;Xr=a;return b};
HOa=function(a){if(Yr.has(a))DOa=a;else if(Zr.has(a)&&Xr&&GOa(Xr)===a){var b;(b=Xr)._numRenders!=null||(b._numRenders=0);Xr._numRenders++;if(Xr._numRenders>1)throw Error("Qg");return Xr}};
IOa=function(a){Yr.has(GOa(a))?DOa=GOa(a):Zr.has(GOa(a))&&Xr!==a&&(a._isInert=!0)};
GOa=function(a){var b;return(b=a==null?void 0:a.tagName.toLowerCase())!=null?b:""};
JOa=function(a,b){if(a.componentType===oh)throw Error("Rg");Zr.add(b);var c=function(){var d=HTMLElement.call(this)||this;d.is=b;if(zOa===b)return d.isInert=!0,d;d.createElement();return d};
_.z(c,HTMLElement);c.prototype.createElement=function(){if(!this.isInert){yOa=this;var d=_.h(Uua(function(){return _.q(a,null)})).next().value;
yOa=void 0;PLa(this);return d}};
customElements.define(b,c)};
LOa=function(a,b,c,d,e){a.prototype.is=b;(d==null?0:d.useSink)?KOa(a,b,c,d,e):(c=aOa(a,b,c,d),hOa(c,b));return a};
KOa=function(a,b,c,d,e){rOa();var g=_.Rr(function(k){return BOa(a,b,k,Object.assign({},d,{getTemplate:c}),e)});
JOa(g,b);return g};
NOa=function(a){return!MOa.has(a)};
QOa=function(a,b,c,d){function e(){if(!u){for(var w=new Set(OOa),A=_.h(g.behaviors),C=A.next();!C.done;C=A.next()){C=C.value;for(var G=_.h(Object.getOwnPropertyNames(C)),J=G.next();!J.done;J=G.next()){J=J.value;var I=void 0,R=(I=Object.getOwnPropertyDescriptor(C,J))==null?void 0:I.value;R&&R instanceof Function&&w.add(J)}}A=_.h(Object.entries(Object.getOwnPropertyDescriptors(a.prototype)));for(C=A.next();!C.done;C=A.next())G=_.h(C.value),C=G.next().value,G=G.next().value,G.value instanceof Function&&
w.add(C);u=w}return u}
var g=tNa({is:b,disableElementRegistration:!1,getTemplate:c,providers:d==null?void 0:d.providers,reactivityMode:d==null?void 0:d.reactivityMode},a);if((d==null?0:d.allowedProps)||(d==null?0:d.allowedPropsFromBehaviors)){var k,m;g.allowedProps=[].concat(_.Be((k=d.allowedProps)!=null?k:[]),_.Be((m=d.allowedPropsFromBehaviors)!=null?m:[]))}var n=mNa(g,a);b=n.observedAttributes;var r={};c=_.h(g.reactiveSchemas);for(d=c.next();!d.done;d=c.next())if(d=d.value,d.type==="signal")r[d.propertyKey]={readOnly:d.readOnly},
d.readOnly&&(r[lLa(d.propertyKey)]={readOnly:!0});else if(d.type==="compute"||d.type==="computeWithMethod"||d.type==="redux")r[d.propertyKey]={readOnly:!0};var t=g.reactiveSchemas.length,u;return{ctor:function(w,A){w=new n(w);w.beforeReady=A.beforeReady;return w},
props:r,observedAttributes:b,getInitialMethods:e,getPropsToForwardBeforeRegister:function(){for(var w=[],A=new Set,C=_.h(POa),G=C.next();!G.done;G=C.next())G=G.value,w.push([G,G!=="observers"&&G!=="properties"]),A.add(G);C=_.h(Object.keys(r));for(G=C.next();!G.done;G=C.next())G=G.value,w.push([G,r[G].readOnly]),A.add(G);C=e();G=_.h(Object.keys(Object.getOwnPropertyDescriptors(a.prototype)));for(var J=G.next();!J.done;J=G.next())J=J.value,!NOa(J)||C.has(J)||A.has(J)||(w.push([J,!1]),A.add(J));w.push(["allowedProps",
!0]);return w},
getPropsToForwardBeforeReady:function(w){var A=[];w=_.h(Object.keys(w));for(var C=w.next();!C.done;C=w.next()){C=C.value;var G=e();NOa(C)&&!G.has(C)&&A.push([C,!1])}w=_.h(g.reactiveSchemas.slice(t));for(C=w.next();!C.done;C=w.next())C=C.value,C.type!=="compute"&&C.type!=="computeWithMethod"&&C.type!=="redux"&&C.type!=="signal"||A.push([C.propertyKey,C.type==="signal"?C.readOnly:!0]);return A},
shouldForwardProp:NOa,shouldLog:lr}};
_.S=function(a,b,c,d){var e,g,k=(g=(e=d)==null?void 0:e.mode)!=null?g:0;d!=null||(d={});var m;(m=d).reactivityMode!=null||(m.reactivityMode=0);k===1&&_.bj("creator_poly_si_disable_list").includes(b)&&(k=2);return k===1?LOa(a,b,c,Object.assign({},d,{useSink:!0}),QOa):LOa(a,b,c,Object.assign({},d,{useSink:k===2}))};
_.$r=function(){return function(a,b,c,d){var e,g,k=(g=(e=d)==null?void 0:e.mode)!=null?g:2;d!=null||(d={});var m;(m=d).reactivityMode!=null||(m.reactivityMode=0);if(k===0)throw Error("Sg`"+k);return KOa(a,b,c,d,k===1?QOa:void 0)}};
_.as=function(a){return _.x("creator_poly_si_killswitch")?!1:_.x("force_all_poly_si_batches")&&(a==="poly_si_all_on_test_check"||a==="creator_poly_si_batch_050"?0:a)||document.documentElement.hasAttribute("use-signals")?!0:!a||_.x(a+"_holdback_enabled")&&_.x("kevlar_polysi_holdback")?!1:_.x(a)};
bs=function(a){return a?a.icon?a.icon.iconType.toLowerCase():a.customThumbnail?"member":"":""};
ROa=function(a){if(!a)return"";a=_.h(a);for(var b=a.next();!b.done;b=a.next())if((b=b.value)&&b.liveChatAuthorBadgeRenderer&&(b=bs(b.liveChatAuthorBadgeRenderer))&&b!=="verified")return b;return""};
SOa=function(a,b){if(!a)return null;var c;return((c=a.find(function(d){return d&&d.liveChatAuthorBadgeRenderer?bs(d.liveChatAuthorBadgeRenderer)===b:!1}))==null?void 0:c.liveChatAuthorBadgeRenderer)||null};
_.YOa=function(a){var b=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;a=TOa(a);b=TOa(b);var c=UOa(a.hex);b=UOa(b.hex);var d=b[0]/255;var e=b[1]/255,g=b[2]/255,k=Math.max(d,e,g),m=Math.min(d,e,g),n=0,r=0,t=.5*(k+m);k!=m&&(k==d?n=60*(e-g)/(k-m):k==e?n=60*(g-d)/(k-m)+120:k==g&&(n=60*(d-e)/(k-m)+240),r=0<t&&t<=.5?(k-m)/(2*t):(k-m)/(2-2*t));d=[Math.round(n+360)%360,r,t];c=VOa(c,b);for(a=WOa(a.hex);c<4.5;){a=d[2]>=.5?a.darker((4.5-c)/2):a.brighter((4.5-c)/2);c=a.toString();
e=XOa(c);if(!e.length)throw Error("Pd`"+c);c=e;c=VOa(c,b)}return a.hex()};
VOa=function(a,b){a=_.OIa(a);b=_.OIa(b);return(Math.max(a,b)+.05)/(Math.min(a,b)+.05)};
_.cs=function(a){return"#"+("000000"+(a&16777215).toString(16)).slice(-6)};
_.ZOa=function(a){for(var b=0,c=0;c<a.length;c++)b=a.charCodeAt(c)+((b<<5)-b);a="#";for(c=0;c<3;c++)a+=("00"+(b>>c*8&255).toString(16)).slice(-2);return a};
$Oa=function(a,b){return _.mp(a.entities,"engagementToolbarStateEntityPayload",b)};
ds=function(a,b){return _.mp(a.entities,"likeStatusEntity",b)};
aPa=function(a,b){return _.mp(a.entities,"likeCountEntity",b)};
_.bPa=function(a,b){return _.mp(a.entities,"stringEntity",b)};
cPa=function(a){a=(a||"").split(":");a.length===1&&a.unshift("yt-icons");a[1]=a[1].toLowerCase();return a};
iPa=function(a,b){var c=(b=b===void 0?!1:b)?dPa:ePa,d=b?fPa:gPa;a.getIconNames().forEach(function(e){e=b?e:e.substring(e.indexOf(":")+1);a.name==="yt-icons"?hPa.add(e):e.includes("-filled")?c.add(e):d.add(e)})};
es=function(a,b,c,d){c=c===void 0?!1:c;d=d===void 0?!1:d;var e,g,k;return _.l(function(m){if(m.nextAddress==1)return _.p(m,jPa,2);if(d)return m.return(hPa.has(a));e=c?dPa:ePa;g=c?fPa:gPa;return b?(k=a.includes("-filled")?a:a.concat("-filled"),m.return(e.has(k))):m.return(g.has(a))})};
_.mPa=function(a){if(kPa(a))return a;var b=a=a.toLowerCase();(a=lPa.get(a))&&(b=a);return b};
_.fs=function(a){if(kPa(a))return a.toString();var b=nPa.get(a);if(b)return b;b=a.toLowerCase();var c="yt-icons",d=b.replace(/_/g,"-");switch(a){case "MY_CHANNEL":b="account_circle";break;case "ADD_TO_LIBRARY":b="add";break;case "ALERT_WARN_RED":b="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":b="person_music";break;case "BLOCK_USER":b="block";break;case "CAPTIONS":b="closed_caption";break;case "CLOSED_CAPTION":c="av";b="closed-caption";break;case "COLLECTION":c="maps";b="layers";break;case "CONTACT":c=
"icons";b="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":c="ytcp-icons";b=d.split("creator-studio-")[1];break;case "DISMISSAL":b="close";break;case "DO_NOT_DISTURB":b="block";break;case "DOGFOOD":c="icons";b="pets";break;case "DRAFT":b="paper_corner_folded";break;
case "EMPTY_LIKE":b="like_outline";break;case "EXIT_APP":b="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":b=d;break;case "GAMES":c="ytg";b="my-games";break;case "GO_TO_PAGE":b="arrow-forward";break;case "GROUP":c="social";break;case "HIDE":b="not_interested";break;case "INPUT_COMPONENT":c="icons";b="settings-input-component";break;case "KIDS_BLOCK":b="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":c="ytg";b="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":c=
"ytg";b="membership-post-purchase";break;case "MULTIVIEW":b="screen_multi_view";break;case "MY_LOCATION":c="maps";b=d;break;case "NOTIFICATIONS_INBOX":b="NOTIFICATIONS";break;case "NEXT":b="chevron_right";break;case "OFFLINE":b="power-settings-new";break;case "PAUSE":c="miniplayer";break;case "PAYMENT":c="icons";break;case "PHONE_DOWNLOAD":b="phone_download";break;case "PREMIUM_STANDALONE":c="yt-logos";b="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":c="yt-logos";b="premium_standalone_cairo";
break;case "QUESTION_ANSWER":b="question_answer";break;case "REDEEM":c="icons";b="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":b="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":b="library_add";break;case "SCHOOL":c="yt-sys-icons";b="creator_academy";break;case "SETTINGS_LIGHT":b="settings_applications";break;case "SETTINGS_MATERIAL":b="settings";break;case "SEARCH_HISTORY":b="watch_history";break;case "SHOPPING_BAG":b="bag";break;case "SOCIAL":case "PEOPLE":c=
"yt-icons";b="people";break;case "STAFF_PICK":c="ytg";b="spotlight";break;case "START_DVR":b="add";break;case "STOP_DVR":c="av";b="stop";break;case "TAB_LIKED":b="like";break;case "TAB_INBOX":b="mail";break;case "TERMS_OF_SERVICE":c="icons";b="description";break;case "TRENDING":b="fire";break;case "UNBLOCK_USER":b="remove";break;case "UNPLUGGED_DARK_THEME":c="image";b="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":b="live";break;case "UNPLUGGED_SPORTS":c="ytu";b="visibility-off";break;
case "VIDEOS":c="av";b="play-circle-filled";break;case "YOUTUBE":c="yt-logos";b="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":c="yt-logos-ext";b="yt-logo-red-updated";break;case "YOUTUBE_LOGO":c="yt-logos-ext";b="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":c="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":c="shorts";b=d;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":c="yt-sys-icons";b="youtube_improve_tv";break;case "OUTLINE_BAG":c=
"yt-sys-icons";b="bag";break;case "QUEUE_PLAY_LAST":c="yt-sys-icons";b="list_queue_last";break;case "SLASH_CIRCLE_LEFT":b="slash_circle_left";break;case "SPEED_1_POINT_2X":b="1_point_2x";break;case "SPEED_1_POINT_5X":b="1_point_5x";break;case "SPEED_1_POINT_8X":b="1_point_8x";break;case "SPEED_POINT_2X":b="point_2x";break;case "SPEED_POINT_5X":b="point_5x";break;case "SPEED_POINT_8X":b="point_8x";break;case "SPEED_1X":b="1x";break;case "SPEED_2X":b="2x";break;case "OUTLINE_CLOCK_HALF_CIRCLE":c="yt-sys-icons";
b="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":c="yt-sys-icons";b="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":c="yt-sys-icons",b="tic_tac_toe"}b=c+":"+b;nPa.set(a,b);return b};
kPa=function(a){var b;_.x("kevlar_use_wil_icons")?b=!!_.v().resolve(_.gs).resolveIcon({iconName:a.toString()}):b=!1;return b};
_.is=function(a,b,c,d){c=c===void 0?{}:c;d=d===void 0?!1:d;c===null&&(c={});var e=_.bj("kevlar_command_handler_command_banlist");e=_.h(e);for(var g=e.next();!g.done;g=e.next())if(g=a?a.hasOwnProperty(g.value):void 0,g)return!1;e=_.y(a.commandMetadata,_.ao);return d&&e!=null&&e.url?!1:!b.disableCommandHandlerOverride&&_.hs.instance?(d=_.hs.instance,c.form||(c.form={element:b}),c.form.element||(c.form.element=b),!c.clickedVisualElement&&b.visualElement&&(c.clickedVisualElement=b.visualElement),d.resolveCommand(a,
c),!0):!1};
oPa=function(a,b){a=js(a);for(var c=_.h(a.visibilityMonitorKeys||[]),d=c.next();!d.done;d=c.next())b.unobserveByKey(d.value);a.visibilityMonitorKeys=void 0};
sPa=function(a,b){if(_.Fn()){if(_.x("kevlar_vimio_use_shared_monitor"))pPa(a,b.data);else if(!pPa(a,b.data))return;var c=b.data,d=qPa(c);if(_.x("enable_client_ve_spec_logging"))oPa(a,b.observer);else{var e=js(a);e.trackedParams&&e.trackedParams!==d&&oPa(a,b.observer)}e=js(a);!c||e.data&&e.data===c||(e.data=c);rPa(a,b);e.trackedParams=d}};
rPa=function(a,b){var c=b.observer;if(!c&&_.x("web_skip_missing_vimio_observer")){var d,e;_.Dl(new _.qj("VisibilityObserver is not defined.",a.tagName,a.trackedParams,(d=b.data)==null?void 0:d.trackingParams,(e=b.data)==null?void 0:e.loggingDirectives))}else{var g=b.layer,k=b.visibilityCallback||function(){},m=b.prescanCallback,n=js(a);
d=[];b.showOption&&d.push(c.observe(a,function(){b.skipLogging&&b.skipLogging()||_.ks().reportShown(n,void 0,g);k(!0)},b.showOption));
b.hideOption&&d.push(c.observe(a,function(){_.ks().reportHidden(n,void 0,g);k(!1)},b.hideOption));
b.prescanOption&&m&&d.push(c.observe(a,function(){m()},b.prescanOption));
n.visibilityMonitorKeys=d}};
pPa=function(a,b){a=js(a);if(a.visualElement&&!b)return!0;if(!b)return!1;var c=!1;if(_.x("enable_client_ve_spec_logging")){var d,e;c=!!((d=b.loggingDirectives)==null?0:(e=d.clientVeSpec)==null?0:e.uiType)}d=qPa(b);if(!d&&!c)return!1;_.x("mweb_component_visibility_logging")&&(a.veContainer||(a.veContainer={}),a.veContainer.trackingParams=d);if(a.trackedParams&&a.trackedParams===d)return!1;var g;if(_.x("enable_client_ve_spec_logging")&&((g=a.visualElement)==null?0:g.isClientVe())){var k;g=(k=a.visualElement)==
null?void 0:k.getAsJspb();var m,n,r,t;if(_.Xf(g,2)===((m=b.loggingDirectives)==null?void 0:(n=m.clientVeSpec)==null?void 0:n.uiType)&&_.Xf(g,3,-1)===((r=b.loggingDirectives)==null?void 0:(t=r.clientVeSpec)==null?void 0:t.elementIndex))return!1}if(_.x("enable_client_ve_spec_logging")){var u,w;!a.visualElement&&((u=b.loggingDirectives)==null?0:(w=u.clientVeSpec)==null?0:w.uiType)&&(m=b.loggingDirectives.clientVeSpec,b=m.uiType,k=m.elementIndex,m=m.clientYoutubeData,a.visualElement=_.ls(_.ms(),{veType:b,
elementIndex:k,clientYouTubeData:m}))}return!0};
qPa=function(a){if(a==null?0:a.rendererContext){var b=_.y(a.rendererContext,_.tPa);if(b==null?0:b.loggingDirectives)return b.loggingDirectives.trackingParams}return(a==null?0:a.loggingDirectives)?a.loggingDirectives.trackingParams:a==null?void 0:a.trackingParams};
js=function(a){var b;return(b=a.polymerController)!=null?b:a};
xPa=function(a){_.ks();if(_.Ii(ns().JSC$10279_elementShouldLogGesture).bind(ns())(a,4)){uPa(a);var b=vPa(a);wPa.set(a,b)}};
uPa=function(a){wPa.has(a)&&(wPa.get(a).cancel("untrack hover element"),wPa.delete(a))};
vPa=function(a){var b,c=[],d=!1,e=new _.kl(function(g,k){os(a,"mouseenter",_.Ii(function(){var m,n,r;return _.l(function(t){if(t.nextAddress==1)return b=(0,_.Uj)(),m=yPa(a),c.push(m),n=zPa(a,function(){d=!0;k(Error("Tg"))}),_.p(t,m,2);
if(t.nextAddress!=3)return n&&ps(n),r=APa(a),c.push(r),_.p(t,r,3);g();_.se(t)})}))});
e.then(function(){var g=(0,_.Uj)()-b;g=Math.round(g);if(!(500>g||6E5<=g)){var k=a.getScreenLayer?a.getScreenLayer():void 0;k=_.Fn(k)||"";var m=BPa(_.ks(),a);_.Wo(k,a.visualElement?a.visualElement:_.qs(m),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:g}})}xPa(a)},function(){rs&&(rs(),rs=null);
d&&(uPa(a),xPa(a))});
return e};
yPa=function(a){var b;return(new _.kl(function(c,d){rs=function(){d(Error("Ug"))};
b=_.zk.debounce(_.Ii(function(){ps(e);c()}),1,100);
var e=_.ss(a,"mousemove",b)})).thenCatch(function(){var c=_.zk.cancelDebouncedJobMap.get(b);
c&&_.zk.cancelJob(c)})};
APa=function(a){var b;return(new _.kl(function(c,d){rs=function(){d(Error("Vg"))};
b=os(a,"mouseleave",_.Ii(function(){c()}))})).thenCatch(function(){ps(b)})};
zPa=function(a,b){return os(a,"mouseleave",_.Ii(b))};
DPa=function(a){CPa&&_.ts.cancel(CPa);CPa=_.ts.run(function(){_.go(a,"yt-visibility-refresh");CPa=0})};
EPa=function(a){a=Number(a);return"rgba("+[a>>16&255,a>>8&255,a&255,(a>>24&255)/255].join()+")"};
GPa=function(a){if(!a)return!1;if(_.y(a,_.FPa))return!0;var b;if(a=(b=_.y(a,_.po))==null?void 0:b.commands)for(b=_.h(a),a=b.next();!a.done;a=b.next())if(_.y(a.value,_.FPa))return!0;return!1};
HPa=function(a){var b=!0;b=b===void 0?!0:b;if(!a.useSignals&&!a.experimentalPropertiesChanged||_.x("experimental_templating_behavior_nopatch_killswitch")){var c=a._propertiesChanged;a._propertiesChanged=function(d,e,g){b?a.debounceRender():a.doRender();c&&c.call(a,d,e,g)}}};
IPa=function(a,b){if(a.useSignals||a.experimentalPropertiesChanged)if(_.x("experimental_templating_behavior_nopatch_killswitch"))a.experimentalPropertiesChanged=function(){};
else return;var c=new Set,d=[a].concat(_.Be(a.behaviors));d=_.h(d);for(var e=d.next();!e.done;e=d.next()){e=e.value;for(var g in e.properties)c.has(g)||(a._addPropertyEffect(g,"function",b),c.add(g))}};
JPa=function(){var a=Polymer.Element,b=a._prepareTemplate;a._prepareTemplate=function(){b.call(this);var c=this.prototype;if(c.experimentalTemplatingInUse&&c.experimentalTemplatingInUse()&&c.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.Bl(Error("Wg"));else{c=this.template.content.childNodes;for(var d=c.length-1;d>=0;d--){var e=c[d];e.nodeName!=="STYLE"&&e.nodeName!=="LINK"&&e.nodeName!=="SCRIPT"&&e.nodeName!=="#comment"&&e.remove()}}}};
KPa=function(a){var b=!0;b=b===void 0?!0:b;JPa();var c=a.ready;a.ready=function(){this._template=null;c.call(this)};
IPa(a,b?a.debounceRender:a.doRender)};
MPa=function(a,b,c){if(c===null||c===void 0)return c;var d=Jla(a.tagName.toLowerCase(),b,function(){throw Error("Pb");});
if(d===null)return c;d=LPa[d];var e;if((e=d.isUnwrappable)==null?0:e.call(d,c)){if(d.unwrap)return d.unwrap(c);throw Error("Zg");}return d.filterString?d.filterString(a.tagName,b,String(c)):c};
NPa=function(a,b,c){var d=b[b.length-1]!=="$",e=MPa(a,b,c);if(d)if(typeof e==="function"&&b.startsWith("reactiveon")&&b===b.toLowerCase()){var g=_.Rg;Tla(a,b.slice(8),function(k){Ah(g,function(){e(k)})})}else a[b]=e;
else c=e==null?null:String(e),Sla(a,b.slice(0,-1),c)};
us=function(a){OPa.length===0&&requestAnimationFrame(function(){setTimeout(function(){var b=OPa.slice();OPa.length=0;b=_.h(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;try{c()}catch(d){_.Pn(d)}}})});
OPa.push(a)};
PPa=function(a){if(a){var b=a.component;if(b){var c;b==null||(c=b.events)==null||c.publish("DISCONNECTED");var d;b==null||(d=b.onDisconnected)==null||d.call(b)}var e,g;(e=a.__spec)==null||(g=e.didUnmount)==null||g.call(e);for(b=0;b<a.childNodes.length;b++)PPa(a.childNodes[b])}};
ws=function(a,b,c){var d=b&&b.key,e=Nh;e[0]=a;e[1]=d;e[2]=void 0;for(var g in b)b.hasOwnProperty(g)&&(a=b[g],d=Oh,d.push(g),d.push(a));b=Nh;a:{if(g=Nh[2])for(a=0;a<g.length;a+=2)if(g[a]==="nonce"){g=g[a+1];break a}g=""}g=fma(b[0],b[1],g);a=Dh(g);d=b[2];if(!a.staticsApplied&&(a.staticsApplied=!0,d&&d.length))if((e=a._attrsArr)&&e.length){for(e=0;e<d.length;e+=2)vs[d[e]]=e+1;e=a._attrsArr||(a._attrsArr=Rla(0));for(var k=0,m=0;m<e.length;m+=2){var n=e[m],r=e[m+1],t=vs[n];t?d[t]===r&&delete vs[n]:(e[k]=
n,e[k+1]=r,k+=2)}Bh(e,k);for(var u in vs)Yla(g,u,d[vs[u]],Xl),delete vs[u]}else for(u=0;u<d.length;u+=2)Yla(g,d[u],d[u+1],Xl);mma(g,a,Xl);Bh(b,0);c&&c(Eh);gma()};
xs=function(a){var b=a.toString().toLowerCase();return function(c,d){ws(b,c,d)}};
QPa=function(a){var b=ys,c,d=(c=a.hostProps)!=null?c:a.config;b.getHostProps&&(d=b.getHostProps(a));ws(b.tagName,d,function(e){var g=!1;a.ref&&(a.ref.value=e);if(!e.component){var k=new b(e,a);g=!0;e.component=k;k.events.publish("CONNECTED")}e.component.willReceiveProps&&a!==e.component.props&&e.component.willReceiveProps(a);e.component.props=a;if(e.data!==a.data||a)e.data=a.data||a;if(g){k=e.component;var m={stack:[],error:void 0,hasError:!1};try{_.Pr(m,_.Ug(k.owner));var n=$g(gi);try{k.render()}finally{$g(n)}}catch(u){m.error=
u,m.hasError=!0}finally{_.Qr(m)}}else e.component.patchInternal();e.component.events.publish("UPDATED");if(g){var r,t;(t=(r=e.component).onMounted)==null||t.call(r)}})};
_.zs=function(a,b,c){c===void 0?delete a[b.name]:a[b.name]=c};
_.As=function(a){var b={androidIncludeFontPadding:!1},c=0,d=[],e=[],g=[];if(a.simpleText)return b.content=a.simpleText,b;if(a.runs===void 0)return b.content="",b;a=_.h(a.runs);for(var k=a.next();!k.done;k=a.next()){k=k.value;var m=k.text,n=void 0,r=(n=m)==null?void 0:n.length;if(m&&r){d.push(m);if(k.bold||k.italics||k.strikethrough||k.underline||k.textColor!=null&&k.textColor!==0||k.deemphasize){m=e;n=m.push;var t={startIndex:c,length:r};k.bold&&(t.weightLabel="FONT_WEIGHT_MEDIUM");k.italics&&(t.italic=
!0);k.strikethrough&&(t.strikethrough="LINE_STYLE_SINGLE");k.underline&&(t.underline="LINE_STYLE_SINGLE");k.textColor!=null&&k.textColor!==0?document.documentElement.hasAttribute("dark")?t.fontColor=k.darkModeTextColor||k.textColor:t.fontColor=k.textColor:k.deemphasize&&(document.documentElement.hasAttribute("dark")?t.fontColor=parseInt("ff"+RPa("#aaa").substring(1),16):t.fontColor=parseInt("ff"+RPa("#606060").substring(1),16));n.call(m,t)}k.navigationEndpoint&&(m=g,n=m.push,t={startIndex:c,length:r,
onTap:{innertubeCommand:k.navigationEndpoint}},k.loggingDirectives&&_.zs(t,SPa,k.loggingDirectives),n.call(m,t));c+=r}}b.content=d.join("");b.styleRuns=e.length?e:void 0;b.commandRuns=g.length?g:void 0;return b};
UPa=function(a){if(a==null||!a.runs)return!0;a=_.h(a.runs);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.bracket||b.errorUnderline||b.deemphasize||_.y(b,Bs)||_.y(b,TPa))return!1;return!0};
VPa=function(a,b){return function(c){var d=b.unit;if(d!==c)throw Error("bh`"+a+"`"+d+"`"+c);return b}};
Cs=function(a){if(!((a==null?0:a.value)&&(a==null?0:a.unit)))return"";switch(a.unit){case "DIMENSION_UNIT_FRACTION":var b="%";break;default:b="px"}a=a.value;b==="%"&&(a*=100);return""+a+b};
WPa=function(a){try{return a()}catch(b){_.Dl(b)}};
_.Es=function(a){var b=_.y(a,_.Ds);if(b)return b;if((b=_.y(a,XPa))&&b.commands)return YPa(b.commands);if((b=_.y(a,ZPa))&&b.commands)return YPa(b.commands);if((a=_.y(a,$Pa))&&a.identifier&&a.command&&(aQa||(aQa=[]),!aQa.includes(a.identifier)))return aQa.push(a.identifier),_.y(a.command,_.Ds)};
YPa=function(a){if(a.length!==0){var b=[];a=_.h(a);for(var c=a.next();!c.done;c=a.next())(c=_.Es(c.value))&&b.push(c);return{commandExecutorCommand:{commands:b}}}};
_.Gs=function(a){var b=a.defaultTarget,c=a.elementConfig,d=a.elementsCommand,e=a.skipOnClick,g=a.forceNewState,k=a.additionalCommandArgs,m=a.innertubeCommand||_.Es(d);if(m){a={};var n=bQa(m);d=n.navigatingCommand;n=n.href;d&&n?(a.href$=n,cQa(a,d,n,b),_.x("web_atagconfig_pointerdown")&&dQa(a,d),g&&(a["force-new-state$"]=!0)):(a.role$="button",a.href$="javascript:void(0);");_.y(m,eQa)&&(a["aria-haspopup$"]=!0);e||(a.onclick=function(r){if(fQa(r)){var t=Object.assign({},{form:{element:r.target,event:r}},
k);r.preventDefault();_.Fs(m,t)}});
return Object.assign({},c,a)}};
gQa=function(a){if(a.length){if(a.length===1)return a[0];var b={};_.zs(b,_.po,{commands:a});return b}};
hQa=function(a){return a&&a.href$!=="javascript:void(0);"};
bQa=function(a){var b,c=((b=_.y(a,_.po))==null?void 0:b.commands)||[a];a=_.h(c);for(b=a.next();!b.done;b=a.next()){b=b.value;var d=void 0,e=void 0;c=(e=_.y((d=b)==null?void 0:d.commandMetadata,_.ao))==null?void 0:e.url;_.x("web_remove_web_navigation_endpoint_data")||(d=void 0,c=c||((d=_.y(b,iQa))==null?void 0:d.url));if(c&&c!=="/service_ajax"){if(d=Ed(c,jQa))return a=_.Cd(d),{navigatingCommand:b,href:a};_.Dl(new _.qj("AttributedString URL could not be sanitized",c))}}return{}};
fQa=function(a){return a.button!==void 0?a.button===0&&!(a.shiftKey||a.altKey||a.metaKey||a.ctrlKey):!(a.shiftKey||a.altKey||a.metaKey||a.ctrlKey)};
cQa=function(a,b,c,d){c=!Ui(c);var e,g,k;if((e=_.y(b,_.pq))!=null&&e.nofollow||(g=_.y(b,_.Vn))!=null&&g.nofollow||(k=_.y(b,_.Ml))!=null&&k.nofollow||c)a.rel$="nofollow";var m;b=((m=_.y(b,_.Ml))==null?void 0:m.target)==="TARGET_NEW_WINDOW"?"_blank":d===void 0?"":d;a.target$=b};
dQa=function(a,b){b.clickTrackingParams&&(a.params={itct:b.clickTrackingParams});a.onpointerdown=function(c){kQa(c)};
a._data=b};
lQa=function(a){(a.loggingUrls||[]).forEach(function(b){Kk(b.baseUrl,b.attributionSrcMode)})};
mQa=function(a){a.currentTarget._data&&lQa(a.currentTarget._data)};
kQa=function(a){var b=a.currentTarget;a=WPa(function(){return b.href});
var c=b.params;a&&_.Zn(a,c||{},8,!0)};
nQa=function(a,b){if(b=_.y(b,_.Ml))(b==null?void 0:b.target)==="TARGET_NEW_WINDOW"&&(a.target="_blank"),b.nofollow&&(a.rel="nofollow")};
oQa=function(a){a=_.y(a==null?void 0:a.commandMetadata,_.ao);return(a==null?0:a.url)?a.url:null};
_.Js=function(a,b){(a=_.Es(a))&&_.Fs(a,b)};
_.Fs=function(a,b){doa(function(c){b?c.resolveCommand(a,b):c.resolveCommand(a)})};
sQa=function(a,b){var c=["yt-core-attributed-string__link"];b!=null&&b.noLinkColor||((b==null?0:b.isOverlay)?c.push("yt-core-attributed-string__link--overlay-call-to-action-color"):c.push("yt-core-attributed-string__link--call-to-action-color"),(b==null?0:b.linkInheritColor)&&c.push("yt-core-attributed-string--link-inherit-color"));c={className:c.join(" "),tabindex$:"0"};var d=a.onTap||a.onLongPress;if(!d)return c;var e=pQa(a);e&&(c["aria-label$"]=e);b=_.Gs({elementsCommand:d,elementConfig:c,skipOnClick:!(b==
null||!b.skipOnClick),forceNewState:!0});a.onLongPress&&(d=new qQa(function(){var g=_.Es(a.onLongPress);g&&_.v().resolve(_.Xi).resolveCommand(g)}),b&&rQa(d,b));
return b||c};
pQa=function(a){var b,c;return(b=a.onTapOptions)==null?void 0:(c=b.accessibilityInfo)==null?void 0:c.accessibilityLabel};
tQa=function(a){var b=a;a<=16777215&&(b+=parseInt("ff000000",16));return _.Cq(b)};
uQa=function(a){var b=a.isDarkTheme;var c=a.extension;a=a.runColor;var d=void 0;if(c=c==null?void 0:c.colorMap){b=b?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";c=_.h(c);for(var e=c.next();!e.done;e=c.next())if(e=e.value,b===e.key){d=e.value;break}}d==null&&a&&(d=a);if(d)return tQa(d)};
Ks=function(a){var b=a.config;var c=a.image;var d=a.imageConfig;var e=a.imageWrapperConfig;var g=a.run;var k=a.tag;var m=a.textLength;var n=a.startIndex===void 0?0:a.startIndex;a=a.length;n===void 0&&(n=0);g={run:g,startIndex:n,endIndex:a!==void 0?n+a:m,tag:k};c&&(g.image=c);d&&(g.imageConfig=d);e&&(g.imageWrapperConfig=e);b&&(g.config=b);return g};
wQa=function(a,b){var c=[];c.push("yt-core-attributed-string");(b==null?0:b.className)&&c.push(b==null?void 0:b.className);(b==null?0:b.ellipsisTruncate)?c.push("yt-core-attributed-string--ellipsis-truncate"):(b==null?0:b.noWrap)?c.push("yt-core-attributed-string--white-space-no-wrap"):(b==null?0:b.noPreWrap)||c.push("yt-core-attributed-string--white-space-pre-wrap");(b==null?0:b.linkInheritColor)&&c.push("yt-core-attributed-string--link-inherit-color");a.alignment&&c.push(vQa(a.alignment));a.lineBreakMode&&
c.push("yt-core-attributed-string--word-wrapping");return c.join(" ")};
xQa=function(a){if(a.weight)return a.weight;switch(a.weightLabel){case "FONT_WEIGHT_THIN":return 100;case "FONT_WEIGHT_EXTRA_LIGHT":return 200;case "FONT_WEIGHT_LIGHT":return 300;case "FONT_WEIGHT_MEDIUM":return 500;case "FONT_WEIGHT_SEMI_BOLD":return 600;case "FONT_WEIGHT_BOLD":return 700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
yQa=function(a){switch(a){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"}};
vQa=function(a){switch(a){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"}};
AQa=function(a,b,c){var d=b;a.content&&c&&(c=a.content.indexOf("\n"),c!==-1&&(d=Math.min(b,c)));if(!a.content||a.content.length<=d)b=a;else if(a.attachmentRuns||a.commandRuns||a.decorationRuns||a.styleRuns||a.paragraphStyleRuns){b=Ls(a.content,d);c=d;var e=a.attachmentRuns;if(e){var g=[];e=_.h(e);for(var k=e.next();!k.done;k=e.next())k=Object.assign({},k.value),k.startIndex===void 0||k.startIndex>=c||(k.length||(k.length=0),k.length+k.startIndex>c&&(k.length=c-k.startIndex),g.push(k));c=g}else c=
void 0;g=zQa(d,a.commandRuns);e=d;var m=a.decorationRuns;if(m){k=[];m=_.h(m);for(var n=m.next();!n.done;n=m.next()){n=n.value;var r=_.y(n.textDecorator,Ms);if(r&&r.startIndex!==void 0&&!(r.startIndex>=e)){n=Object.assign({},n,{textDecorator:{highlightTextDecorator:Object.assign({},r)}});r=_.y(n.textDecorator,Ms);if(!r.length||r.length+r.startIndex>e)r.length=e-r.startIndex;k.push(n)}}e=k}else e=void 0;k=zQa(d,a.styleRuns);if(m=a.paragraphStyleRuns)for(a=[],m=_.h(m),n=m.next();!n.done;n=m.next()){var t=
n.value;n=Object.assign({},t);if(!(n.startIndex===void 0||n.startIndex>=d)){if(!n.length||n.length+n.startIndex>d)n.length=d-n.startIndex;r=[];var u=void 0,w=void 0;if((u=t)==null?0:(w=u.listGroup)==null?0:w.listItems)for(t=_.h(t.listGroup.listItems),u=t.next();!u.done;u=t.next())if(u=Object.assign({},u.value),!(u.startIndex===void 0||u.startIndex>=d)){if(!u.length||u.length+u.startIndex>d)u.length=d-u.startIndex;r.push(u)}r.length>0&&(n.listGroup||(n.listGroup={}),n.listGroup=Object.assign({},n.listGroup,
{listItems:r}));a.push(n)}}else a=void 0;b={content:b,attachmentRuns:c,commandRuns:g,decorationRuns:e,styleRuns:k,paragraphStyleRuns:a}}else b=Object.assign({},a,{content:Ls(a.content,d)});return b};
zQa=function(a,b){if(b){var c=[];b=_.h(b);for(var d=b.next();!d.done;d=b.next())if(d=Object.assign({},d.value),!(d.startIndex===void 0||d.startIndex>=a)){if(!d.length||d.length+d.startIndex>a)d.length=a-d.startIndex;c.push(d)}return c}};
Ls=function(a,b){var c=b,d;if(d=c>0)d=a.charCodeAt(c-1),d=d>=55296&&d<=56319;d&&(c=a.charCodeAt(c),d=c>=56320&&c<=57343);d&&--b;return a.substring(0,b)};
EQa=function(a,b,c){c=c===void 0?BQa:c;if(a){var d=_.v().resolve(Zl);d||_.x("mweb_no_observer_killswitch")?sPa(a,{data:b,observer:d,visibilityCallback:c,hideOption:CQa,showOption:DQa,layer:a.layer}):_.Dl(new _.qj("Warning: monitorVisibility called with null observer",a.tagName,b==null?void 0:b.loggingDirectives,b==null?void 0:b.trackingParams))}else _.Dl(new _.qj("Warning: monitorVisibility called with null element",b==null?void 0:b.loggingDirectives,b==null?void 0:b.trackingParams,b==null?void 0:
b.rendererContext))};
LQa=function(a,b){var c=[],d=a.content.length,e,g=(e=_.v().resolve(_.Wi(_.Ns)))==null?void 0:e();if(a.paragraphStyleRuns){e=_.h(a.paragraphStyleRuns);for(var k=e.next();!k.done;k=e.next()){var m=c.push,n=m.apply;var r=void 0;k=k.value;if((r=k.listGroup)!=null&&r.listItems){r=[];b:switch(k.listGroup.listType){case "LIST_TYPE_BULLET":var t="ul";break b;default:t="span"}r.push(Ks({run:k,textLength:d,tag:t,config:{className:"yt-core-attributed-string__list-group"},startIndex:k.startIndex,length:k.length}));
t=_.h(k.listGroup.listItems);for(var u=t.next();!u.done;u=t.next()){u=u.value;b:switch(k.listGroup.listType){case "LIST_TYPE_BULLET":var w="li";break b;default:w="span"}r.push(Ks({run:k,textLength:d,tag:w,startIndex:u.startIndex,length:u.length}))}k=r}else k=[];n.call(m,c,_.Be(k))}}if(a.styleRuns&&(b==null||!b.noStyleRuns))for(e=_.h(a.styleRuns),m=e.next();!m.done;m=e.next()){m=m.value;n=uQa({extension:_.y(m.styleRunExtensions,FQa),isDarkTheme:g===void 0?!1:g,runColor:m.fontColor});r=[];n&&r.push("yt-core-attributed-string--link-inherit-color");
m.italic&&r.push("yt-core-attributed-string--italicized");m.underline&&m.strikethrough?r.push("yt-core-attributed-string--underline-strikethrough",yQa(m.underline)):m.underline?r.push("yt-core-attributed-string--underlined",yQa(m.underline)):m.strikethrough&&r.push("yt-core-attributed-string--strikethrough",yQa(m.strikethrough));if(m.baselineOffset){a:switch(m.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":k="yt-core-attributed-string--baseline-offset-subscript";break a;case "BASELINE_OFFSET_SUPERSCRIPT":k=
"yt-core-attributed-string--baseline-offset-superscript";break a;default:k="yt-core-attributed-string--baseline-offset-unknown"}r.push(k)}k=r.join(" ");r=m;t={};if(r.weight||r.weightLabel)t.fontWeight=xQa(r).toString();n&&(t.color=n);c.push(Ks({run:m,textLength:d,tag:"span",config:{className:k,style:t},startIndex:m.startIndex,length:m.length}))}if(a.decorationRuns)for(e=_.h(a.decorationRuns),m=e.next();!m.done;m=e.next())m=m.value,n={},m.textDecorator&&(t=m.textDecorator,k=g===void 0?!1:g,u=[],r=
_.y(t,Ms),t=_.y(t,GQa),r?(t=u,u=t.concat,w=[],(k=uQa({extension:_.y(r.highlightTextDecoratorExtensions,HQa),isDarkTheme:k,runColor:r.backgroundColor}))&&w.push("background-color: "+k+";"),r.backgroundCornerRadius!==void 0&&w.push("border-radius: "+r.backgroundCornerRadius+"px;"),r.leftPadding!==void 0&&w.push("padding-left: "+r.leftPadding+"px;"),r.rightPadding!==void 0&&w.push("padding-right: "+r.rightPadding+"px;"),r.topPadding!==void 0&&w.push("padding-top: "+r.topPadding+"px;"),r.bottomPadding!==
void 0&&w.push("padding-bottom: "+r.bottomPadding+"px;"),u=u.call(t,w)):t&&(r=u,u=r.concat,k=k?"#2ba640":"#107516",k=t.color?tQa(t.color):k,k=["padding: 2px;","border-top: solid "+k+" 2px;","border-bottom: solid "+k+" 2px;","background: linear-gradient(135deg, "+k+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+k+" 3px, rgba(0, 0, 0, 0) 3px);"],u=u.call(r,k)),k=u.join(" "),n.style$=k,k=m.textDecorator,r=[],t=_.y(k,GQa),_.y(k,Ms)?r.push("yt-core-attributed-string--highlight-text-decorator"):
t&&r.push("yt-core-attributed-string--bracket-text-decorator"),k=r.join(" "),n.className=k,n.dir="auto"),k=_.y(m.textDecorator,Ms),r=_.y(m.textDecorator,GQa),t=_.y(m.textDecorator,Ms),u=_.y(m.textDecorator,GQa),c.push(Ks({run:m,textLength:d,tag:"span",config:n,startIndex:(k==null?void 0:k.startIndex)||(r==null?void 0:r.startIndex)||0,length:(t==null?void 0:t.length)||(u==null?void 0:u.length)||0}));if(a.commandRuns&&(b==null||!b.noEndpoints))for(g=_.h(a.commandRuns),e=g.next();!e.done;e=g.next())e=
e.value,m=sQa(e,b),c.push(Ks({run:e,textLength:d,tag:"a",config:m,startIndex:e.startIndex,length:e.length}));if(a.attachmentRuns)for(a=_.h(a.attachmentRuns),g=a.next();!g.done;g=a.next()){g=g.value;n=m=void 0;e={className:"yt-core-attributed-string--inline-block-mod"};if((n=g.element)==null?0:n.properties){n=(m=g.element)==null?void 0:m.properties;m=[];n=_.y(n,IQa);if(n==null?0:n.margin)n=n.margin,n.left&&m.push("margin-left: "+Cs(n.left)+";"),n.right&&m.push("margin-right: "+Cs(n.right)+";"),n.top&&
m.push("margin-top: "+Cs(n.top)+";"),n.bottom&&m.push("margin-bottom: "+Cs(n.bottom)+";");m=m.length!==0?m.join(" "):void 0;e.style$=m}k=void 0;m={alt:"",preserveHeight:!0,preserveWidth:!0};n=["yt-core-attributed-string__image-element"];if(g.alignment){a:switch(g.alignment){case "ALIGNMENT_BASELINE":r="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":r="yt-core-attributed-string__image-element--image-alignment-vertical-center";break a;default:r=
"yt-core-attributed-string__image-element--image-alignment-bottom"}n.push(r)}if((k=g.element)==null?0:k.properties)k=[],r=_.y(g.element.properties,IQa),(r==null?0:r.height)&&k.push("height: "+Cs(r.height)+";"),(r==null?0:r.width)&&k.push("width: "+Cs(r.width)+";"),k=k.length!==0?k.join(" "):void 0,m.style$=k,r=void 0,k=((r=_.y(g.element.properties,JQa))==null?void 0:r.label)||"",m.alt=k;m.className=n.join(" ");n=void 0;t=r=void 0;k=((t=g.element)==null?0:t.type)?(r=_.y(g.element.type,KQa))==null?
void 0:r.image:void 0;c.push(Ks({run:g,textLength:d,tag:"img",image:k,imageConfig:m,imageWrapperConfig:e,startIndex:g.startIndex,length:(n=g.length)!=null?n:0}))}if(b==null?0:b.headerRuns)for(b=_.h(b.headerRuns),a=b.next();!a.done;a=b.next())if(a=a.value,a.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(a.headerMapping)){a:{switch(a.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":g=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":g="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":g="yt-core-attributed-string--heading-3";break a}g=void 0}c.push(Ks({run:a,textLength:d,tag:"span",config:g?{className:g}:void 0,startIndex:a.startIndex,length:a.length}))}return c};
_.Os=function(a){return(a==null?void 0:a.content)!==void 0};
MQa=function(a){return _.Os(a)?a:_.As(a)};
NQa=function(a){return a.image!==void 0&&a.imageConfig!==void 0};
OQa=function(a,b){if(b==null?0:b.userInput)for(a=_.h(a),b=a.next();!b.done;b=a.next())if(b=b.value,b.tag!=="a"&&b.tag!=="li"){var c=void 0;(c=b).config||(c.config={});b.config.dir=b.tag==="ul"?_.v().resolve(_.Ps):"auto"}};
PQa=function(a){return function(b){var c=a.run;(c.onTap!==void 0||c.onLongPress!==void 0)&&_.y(c,SPa)&&EQa(b,{loggingDirectives:_.y(c,SPa)})}};
QQa=function(a){return function(b){for(var c in a)(Xl[c]||Xl[Ch["default"]])(b,c,a[c])}};
UQa=function(a,b){RQa(b);var c={data:null,start:0,end:a.length,parts:[]};b=_.h(b);for(var d=b.next();!d.done;d=b.next())d=d.value,SQa(c,d.startIndex,d.endIndex,d);TQa(a,c);return c};
SQa=function(a,b,c,d){for(var e=_.h(a.parts),g=e.next();!g.done;g=e.next()){g=g.value;if(typeof g==="string")throw Error("dh");if(g.start<=b&&c<=g.end){SQa(g,b,c,d);return}}a.parts.push({data:d,parts:[],start:b,end:c})};
TQa=function(a,b){for(var c=b.parts.length;c>=0;c--){var d=b.parts[c],e=b.parts[c-1],g=c===b.parts.length?b.end:d.start;e=c===0?b.start:e.end;g!==e&&b.parts.splice(c,0,a.slice(e,g));d&&TQa(a,d)}};
RQa=function(a){a.sort(function(b,c){if(b.startIndex<c.startIndex)return-1;if(c.startIndex<b.startIndex)return 1;b=b.endIndex-b.startIndex;c=c.endIndex-c.startIndex;return b>c?-1:c>b?1:0})};
_.VQa=function(a){var b=a.thumbnails;if(b){a={sources:[]};b=_.h(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d={};d.url=c.url;d.width=c.width;d.height=c.height;a.sources.push(d)}return a}};
WQa=function(a,b,c,d){if(!b)return a.length>=1?a[a.length-1]:null;if(d)for(var e=_.h(a),g=e.next();!g.done;g=e.next()){g=g.value;var k=void 0,m=(k=g.url)==null?void 0:k.indexOf(d);if(m!==void 0&&m>=0)return g}d=_.h(a);for(e=d.next();!e.done;e=d.next())if(e=e.value,e.width&&e.height&&(c&&e.width>=b||!c&&e.height>=b))return e;for(b=a.length-1;b>=0;b--)if(c&&a[b].width||!c&&a[b].height)return a[b];return a[0]};
_.XQa=function(a){var b;return(a=(b=a.sources)==null?void 0:b[0])?a.width/a.height:0};
YQa=function(a){if(a.sources){a=_.h(a.sources);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=void 0;if((c=b.clientResource)==null?0:c.imageName)return b}}};
ZQa=function(a){var b;if((b=a.clientResource)!=null&&b.imageColor)return _.Cq(a.clientResource.imageColor)};
_.aRa=function(a,b,c,d,e,g,k){if(!b||b.length===0||b[0].clientResource)return null;if(c&&b[0].url)return b[0].url;d===void 0&&(d=!0);if(d){var m;a=$Qa*(e||(a==null?void 0:(m=a.getBoundingClientRect())==null?void 0:m.width)||0)}else{var n;a=$Qa*(g||(a==null?void 0:(n=a.getBoundingClientRect())==null?void 0:n.height)||0)}b=WQa(b,a,d,k);return(b==null?0:b.url)?b.url:(b==null?0:b.imageData)?b.imageData:null};
bRa=function(a,b,c){c=c?[c]:[];a.opacity&&c.push("opacity: "+a.opacity+";");b&&a.placeholderColor?(a=_.Cq(a.placeholderColor),c.push("background-color: "+a+";")):c.push("background-color: transparent;");return c.join(" ")};
cRa=function(a,b,c,d,e){var g=["yt-core-image"];b&&g.push(b);c||g.push("yt-core-image--fill-parent-height");d||g.push("yt-core-image--fill-parent-width");switch(a.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":g.push("yt-core-image--content-mode-scale-aspect-fit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":g.push("yt-core-image--content-mode-scale-aspect-fill");break;case "CONTENT_MODE_CENTER":g.push("yt-core-image--content-mode-center");break;default:g.push("yt-core-image--content-mode-scale-to-fill")}a.flipForRtlLayout&&
g.push("yt-core-image--flip-rtl");switch(e){case "TOP_START":var k;g.push(((k=document.body)==null?void 0:k.getAttribute("dir"))==="rtl"?"yt-core-image--object-position-top-right":"yt-core-image--object-position-top-left")}return g.join(" ")};
eRa=function(a){var b;if(a==null?0:(b=a.clientResource)==null?0:b.imageName){var c;a=(c=a.clientResource)==null?void 0:c.imageName;a:{switch(a){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":c="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":c="yt-logos-ext:yt-logo-updated";break a}c=void 0}return c||dRa.get(a)||a}};
Qs=function(a){return _.x("mweb_wiz_skip_render")?fRa(a):gRa(a)};
fRa=function(a){return function(b){var c=fma("wink-root");Mh();gma();Bua(c,_.q(a,b))}};
gRa=function(a){var b=b===void 0?!1:b;return function(c){if(!b||!_.x("mweb_skip_keto_to_c3_if_no_data")||c.data!==void 0){var d=Wh(!1);try{var e=c.children;_.x("mweb_render_outside_patch_killswitch")||Eh?e?Wl(_.q(a,c,e)):Wl(_.q(a,c)):_.Dl(new _.qj("ketoToC3 called outside of a patch",{tagName:a.TAG_NAME}))}finally{Wh(d)}}}};
hRa=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
jRa=function(a,b){a.onViewportEntered=b;iRa.observe(a)};
kRa=function(){var a={rootMargin:"10%",threshold:.01};_.x("mweb_enable_set_io_root_to_null_safari")?a.root=null:_.x("mweb_enable_set_io_root_to_body_safari")&&(a.root=document.body);return new IntersectionObserver(function(b,c){b.filter(function(d){return d.intersectionRect.height>0}).forEach(function(d){d=d.target;
if(!_.x("mweb_enable_only_update_image_when_connected")||d.isConnected!==!1){var e;(e=d.onViewportEntered)==null||e.call(d);c.unobserve(d)}})},a)};
lRa=function(a,b,c,d,e){function g(){if(d){var m=d.loadedClass,n=d.notifyOnUnloaded;m&&_.Rs(a,m);n&&a.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function k(){var m=c(b,a);m&&a.getAttribute("src")!==m&&(_.x("mweb_enable_only_update_image_when_connected")&&a.isConnected===!1||m===a.src||(a.src=m),g())}
e=e===void 0?!0:e;a.removeAttribute("src");g();b&&(e?jRa(a,k):k())};
mRa=function(a,b){for(var c in b)c==="className"?a.className=b[c]:(Xl[c]||Xl[Ch.default])(a,c,b[c])};
nRa=function(a,b,c,d){Qs(_.Ss)({contentMode:b.contentMode,loadedClass:b.loadedClass,isPreloaded:b.isPreloaded,notifyOnLoaded:b.notifyOnLoaded,notifyOnUnloaded:b.notifyOnUnloaded,preferredThumbnail:b.preferredThumbnail,preserveHeight:b.preserveHeight,preserveWidth:b.preserveWidth,objectPosition:b.objectPosition,targetWidth:b.targetWidth,targetHeight:b.targetHeight,shouldShowPlaceholder:b.shouldShowPlaceholder,useWidth:b.useWidth,alt:b.alt,className:b.className,onerror:b.onerror,onload:b.onload,style$:b.style$,
color:b.color,width:b.width,height:b.height,"aria-hidden$":b["aria-hidden$"],draggable:b.draggable,"data-disabled$":b["data-disabled$"],data:a,callback:c,renderLazy:d===void 0?!0:d,hideOn404:!1})};
pRa=function(a,b,c){c=c===void 0?!1:c;var d=a.sources!==void 0?a:_.VQa(a);if(d){var e=b.onload;b.onload=function(n){var r=n.target;c&&r.naturalWidth===120||_.Ts(r,"yt-core-image--loaded");b.notifyOnLoaded&&r.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));e==null||e(n)};
b.targetWidth&&b.preserveWidth&&(b.width=b.targetWidth);b.targetHeight&&b.preserveHeight&&(b.height=b.targetHeight);var g=YQa(d),k=g&&eRa(g);if(k)return(a=ZQa(g))&&(b.color=a),{type:"icon",iconName:k,config:Object.assign({},b,b.alt?{}:{"aria-hidden$":"true"},{"aria-label$":b.alt,role:"img"})};if(a.sources===void 0){b.alt=a.accessibility&&a.accessibility.accessibilityData&&a.accessibility.accessibilityData.label||b.alt;b.style$=bRa(a,b.shouldShowPlaceholder,b.style$);var m;b.isPreloaded=!((m=_.y(a,
oRa))==null||!m.isPreloaded)}b.contentMode&&!d.contentMode&&(d.contentMode=b.contentMode);b.className=cRa(d,b.className,b.preserveHeight,b.preserveWidth,b.objectPosition);b.loadedClass="yt-core-image--loaded";return{type:"image",image:d,config:b}}};
_.qRa=function(){var a=_.Id.apply(0,arguments);return _.Sl(function(b){var c=a.map(function(d){return d(b)});
return function(){return void c.forEach(function(d){return void(d==null?void 0:d())})}})};
rRa=function(a,b){var c=b==null?void 0:b.initial;return _.kh(function(){_.zh(!0);return c=a(c)},{equals:b==null?void 0:b.isEqual},"rSlKsc")};
sRa=function(a,b){if(a===b)return!0;if(a===void 0||b===void 0)return!1;var c,d,e,g,k,m,n,r;return a.content===b.content&&((c=a.styleRuns)==null?void 0:c.length)===((d=b.styleRuns)==null?void 0:d.length)&&((e=a.commandRuns)==null?void 0:e.length)===((g=b.commandRuns)==null?void 0:g.length)&&((k=a.attachmentRuns)==null?void 0:k.length)===((m=b.attachmentRuns)==null?void 0:m.length)&&((n=a.decorationRuns)==null?void 0:n.length)===((r=b.decorationRuns)==null?void 0:r.length)};
vRa=function(a,b){if(a){var c=MQa(a);if(c!=null&&c.content)if(_.x("attr_string_reactive"))Qs(tRa)({text:a,config:b});else{var d=!(b==null||!b.ariaLabel)||!(c.commandRuns&&c.commandRuns.length!==0||c.paragraphStyleRuns&&c.paragraphStyleRuns.length!==0);a=d?b==null?void 0:b.ariaLabel:null;d=d?"text":null;ws("span",{className:wQa(c,b),dir$:(b==null?0:b.userInput)?"auto":void 0,"aria-label$":a,role$:d},function(){if(c.styleRuns||c.commandRuns||c.attachmentRuns||c.decorationRuns){var e=LQa(c,b);OQa(e,
b);e=UQa(c.content,e);e=_.h(e.parts);for(var g=e.next();!g.done;g=e.next())uRa(g.value)}else Sh(c.content)})}}};
uRa=function(a){typeof a==="string"?Sh(a):NQa(a.data)?ws("span",a.data.imageWrapperConfig,function(){nRa(a.data.image,a.data.imageConfig)}):ws(a.data.tag,a.data.config,function(b){PQa(a.data)(b);
b=_.h(a.parts);for(var c=b.next();!c.done;c=b.next())uRa(c.value)})};
xRa=function(a){return a.parts.map(wRa)};
wRa=function(a){if(typeof a==="string")return a;a=NQa(a.data)?_.q("span",{el:_.qRa(QQa(a.data.imageWrapperConfig))},_.q(_.Ss,Object.assign({},{data:a.data.image},a.data.imageConfig))):_.q(a.data.tag,{el:_.qRa(PQa(a.data),QQa(a.data.config))},a.parts.map(wRa));return fi(a)};
yRa=function(a,b){return a===b?!0:a===void 0||b===void 0?!1:a.noStyleRuns===b.noStyleRuns&&a.noLinkColor===b.noLinkColor&&a.noEndpoints===b.noEndpoints&&a.headerRuns===b.headerRuns&&a.isOverlay===b.isOverlay&&a.linkInheritColor===b.linkInheritColor&&a.userInput===b.userInput};
zRa=function(a){return function(){var b,c,d,e,g,k,m,n,r,t,u,w,A,C;return{ariaLabel:(b=a.ariaLabel)==null?void 0:b.call(a),className:(c=a.className)==null?void 0:c.call(a),ellipsisTruncate:(d=a.ellipsisTruncate)==null?void 0:d.call(a),isOverlay:(e=a.isOverlay)==null?void 0:e.call(a),linkInheritColor:(g=a.linkInheritColor)==null?void 0:g.call(a),noEndpoints:(k=a.noEndpoints)==null?void 0:k.call(a),noStyleRuns:(m=a.noStyleRuns)==null?void 0:m.call(a),noLinkColor:(n=a.noLinkColor)==null?void 0:n.call(a),
noPreWrap:(r=a.noPreWrap)==null?void 0:r.call(a),noWrap:(t=a.noWrap)==null?void 0:t.call(a),skipOnClick:(u=a.skipOnClick)==null?void 0:u.call(a),stopPropagation:(w=a.stopPropagation)==null?void 0:w.call(a),userInput:(A=a.userInput)==null?void 0:A.call(a),headerRuns:(C=a.headerRuns)==null?void 0:C.call(a)}}};
ARa=function(a){return a.value===""||a.value==="true"?!0:a.value==="false"?!1:isNaN(Number(a.value))?a.value:Number(a.value)};
Us=function(a,b){a=new BRa(a,b);_.Bl(a);throw a;};
CRa=function(a,b,c){var d=FOa(a);a._numRenders=0;try{var e=Uua(function(){return _.q(b,Object.assign({},c))})}catch(k){var g=function(m){m.args||(m.args=[]);
m.args.push("Error in web component wrapper");m.args.push(a.tagName.toLowerCase());return m};
_.Cl(k instanceof Error?g(k):new BRa("Wiz rendering error",a.tagName.toLowerCase()));throw k;}finally{FOa(d)}return e};
_.Ws=function(a,b,c){function d(r){var t={};r=_.h(r);for(var u=r.next();!u.done;u=r.next()){u=u.value;var w=void 0,A=void 0,C=void 0,G=_.qn((C=(A=(w=u).getAttribute)==null?void 0:A.call(w,"slot"))!=null?C:"children");if(w=t[G])w.push(u);else if(G in g||G==="children")t[G]=[u]}if(DRa)for(r=_.h(Object.keys(t)),G=r.next(),u={};!G.done;u={content$jscomp$52:void 0},G=r.next())G=G.value,G!=="children"&&(u.content$jscomp$52=t[G],t[G]=function(J){return function(){return J.content$jscomp$52}}(u));
return t}
c=c===void 0?{}:c;a.componentType!==oh||Us("Components must be marked reactive to be used from web component wrapper.",b);Yr.has(b)&&Us("Do not register a Wiz component to be rendered with boththe deprecated wrapper and the signals based wrapper.",b);var e,g=(e=c.props)!=null?e:{};Zr.add(b);var k=ERa();c=function(){var r=k.apply(this,arguments)||this;r.rawProps={};r.queuingRender=!1;r.dispose=function(){};
r.isWebComponentWrapper=!0;r.hasAttached=!1;return r};
_.z(c,k);c.prototype.render=function(){this.hasAttached=!0;for(var r=_.h([].concat(_.Be(this.attributes))),t=r.next();!t.done;t=r.next())t=t.value,t.name!=="slot"&&this.removeAttribute(t.name);r=Object.assign({},this.componentProps,this.slotProps);t=_.h(CRa(this,a,r));r=t.next().value;t=t.next().value;!(r[0]instanceof Element)||r.length>1?Us("Wrapped Wiz components must return a single root element.",b):(r=r[0].tagName.toLowerCase(),r!==b&&Us("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(r+" !== '"+b),b),this.dispose=t)};
c.prototype.setUpProps=function(){for(var r=this.rawProps,t=this.attributes,u=_.h(Object.keys(g)),w=u.next();!w.done;w=u.next()){w=w.value;var A=void 0;((A=this)==null?0:A[w])&&this[w]!==FRa&&r[w]===void 0&&(r[w]=this[w],(A=Object.getOwnPropertyDescriptor(this.constructor.prototype,w))&&Object.defineProperty(this,w,A))}u=_.h(t);for(w=u.next();!w.done;w=u.next()){A=w.value;w=_.qn(A.name);var C=w==="class"&&!t.getNamedItem("class-name");if(w in g||C)A=ARa(A),w!=="class"||r.className?r[w]=A:r.className=
A}t={};for(var G in g)g[G]===_.Vs||DRa&&g[G]===GRa||(r[G]instanceof Function&&Us("Function props must be configured as STATIC, not SIGNAL.",b),w=_.h(_.fh(r[G],"AjDFab")),u=w.next().value,w=w.next().value,t[G]=w,r[G]=u);r=_.h([r,t]);this.componentProps=r.next().value;this.setters=r.next().value;this.slotProps=d(this.childNodes)};
c.prototype.connectedCallback=function(){Wr===b&&(this._isInert=!0);this._isInert||(this.queuingRender="data"in g&&!this.rawProps.data&&!this.getAttribute("data"),this.hasAttached||this.queuingRender||this.setUpProps(),this.queuingRender&&!this.hasAttached||this.render())};
c.prototype.disconnectedCallback=function(){if(!this._isInert){this.dispose();if(!this.queuingRender)for(var r=_.h([].concat(_.Be(this.attributes))),t=r.next();!t.done;t=r.next())t=t.value,t.name!=="slot"&&this.removeAttribute(t.name);this.innerText="";PLa(this)}};
c.prototype._setPendingPropertyOrPath=function(){};
c.prototype.notifyPath=function(){};
_.Vm.Object.defineProperties(c.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
e=_.h(Object.keys(g));for(var m=e.next(),n={};!m.done;n={prop$jscomp$103:void 0},m=e.next())n.prop$jscomp$103=m.value,Object.defineProperty(c.prototype,n.prop$jscomp$103,{set:function(r){return function(t){var u=this;this._isInert||(this.setters?lh(function(){var w,A;return void((A=(w=u.setters)[r.prop$jscomp$103])==null?void 0:A.call(w,t))}):(this.rawProps[r.prop$jscomp$103]=t,this.queuingRender&&r.prop$jscomp$103==="data"&&t!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(n),
get:HRa.has(n.prop$jscomp$103)?void 0:function(){return FRa}});
customElements.define(b,c)};
_.IRa=function(a,b){return(a=_.Xs(a,b))?_.Cd(_.Gd(a)):null};
_.Ys=function(a){if(a=_.Xs(a,Number.MAX_VALUE,void 0,"width"))return _.Gd(a)};
_.Xs=function(a,b,c,d){d=d===void 0?"width":d;if(!a||!a.length)return null;if(_.x("kevlar_tuner_should_always_use_device_pixel_ratio")){var e=window.devicePixelRatio;_.x("kevlar_tuner_should_clamp_device_pixel_ratio")?e=Math.min(e,_.$i("kevlar_tuner_clamp_device_pixel_ratio")):_.x("kevlar_tuner_should_use_thumbnail_factor")&&(e=_.$i("kevlar_tuner_thumbnail_factor"));JRa=e}else JRa||(JRa=window.devicePixelRatio);e=JRa;_.x("kevlar_tuner_should_always_use_device_pixel_ratio")?b*=e:e>1&&(b*=e);if(_.x("kevlar_tuner_min_thumbnail_quality"))return a[0].url||
null;e=a.length;if(_.x("kevlar_tuner_max_thumbnail_quality"))return a[e-1].url||null;if(c)for(var g=0;g<e;g++)if(a[g].url.indexOf(c)>=0)return a[g].url||null;for(c=0;c<e;c++)if(a[c][d]>=b)return a[c].url||null;for(b=e-1;b>0;b--)if(a[b][d])return a[b].url||null;return a[0].url||null};
MRa=function(){Zs.size?setTimeout(function(){$s(KRa)},0):LRa=0};
KRa=function(){var a=(0,_.Uj)(),b=null,c=!1;Zs.forEach(function(e){e.loaded=!0;e.loadTime=a;e.pendingPaint=!1;var g=NRa.get(e);g&&g.resolve(a);b=e;c||!e.ftlEligible&&e.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(c=!0)});
var d;((d=b)==null?0:d.markDirty)&&b.markDirty();Zs.clear();LRa=0;c&&ORa(a)};
PRa=function(a){Zs.add(a);a.pendingPaint=!0;LRa||(LRa=_.at(_.zk,MRa))};
QRa=function(a){a.loaded=!1;a.loadTime=Infinity;var b=NRa.get(a);b&&(b.reject(Error("jh")),NRa.delete(a));a.pendingPaint&&(Zs.delete(a),a.pendingPaint=!1)};
_.RRa=function(a){var b=a.indexOf(":");return b===-1?{originalName:a}:{originalName:a.substring(0,b),datasyncId:a.substring(b+1)}};
_.TRa=function(){return _.l(function(a){if(SRa!==void 0)return a.return(SRa);SRa=new Promise(function(b){var c;return _.l(function(d){switch(d.nextAddress){case 1:return _.me(d,2),_.p(d,_.bt.open("test-only"),4);case 4:return _.p(d,_.bt.delete("test-only"),5);case 5:_.Jj(d,3);break;case 2:if(c=_.re(d),c instanceof Error&&c.name==="SecurityError")return b(!1),d.return();case 3:b("caches"in window),_.se(d)}})});
return a.return(SRa)})};
WRa=function(){return _.l(function(a){if(a.nextAddress==1)return _.p(a,_.TRa(),2);if(!a.yieldResult)return a.return(void 0);URa||(URa=new VRa);return a.return(URa)})};
XRa=function(a){var b,c,d,e;return _.l(function(g){switch(g.nextAddress){case 1:return _.p(g,WRa(),2);case 2:b=g.yieldResult;if(!b)throw Error("lh");return _.p(g,b.open("yt-player-local-img"),3);case 3:return c=g.yieldResult,_.p(g,c.match(a),4);case 4:d=g.yieldResult;if(!d)throw Error("mh");return _.p(g,d.blob(),5);case 5:return e=g.yieldResult,g.return(e)}})};
YRa=function(a,b){for(var c in a)if(a.hasOwnProperty(c)&&b[c])return c;return null};
ZRa=function(a){return"stamp"+a.replace("-","_")+"_"};
$Ra=function(a){var b=a.match(/\[\[([\w\.]+)\]\]/);if(b&&b.length>1)return b[1];_.Bl(Error("oh`"+a));return null};
aSa=function(a){return a===void 0?_.Gi("REUSE_COMPONENTS",!1):a||!1};
dSa=function(a,b,c){c&&(b.is?(bSa.has(b)&&(a=bSa.get(b),c=a.listener,delete b[a.property],c.type==="element"&&b.removeEventListener(c.eventName,c.handler),bSa.delete(b)),cSa(b)):b.__proto__==HTMLElement.prototype&&(b=new _.qj("Rendererstamper removed a non custom element","Stamper: "+a+" element: "+(b&&b.nodeName)),_.Dl(b)))};
eSa=function(a,b,c,d){var e=b.node?b.node:b;_.E(c).parentNode===e&&(b.removeChild(c),dSa(a,c,d));if(a=ct.get(c))ct.delete(c),_.zk.cancelJob(a);c.hidden=!1};
fSa=function(a,b,c,d){if(b&&b.children&&(c=b.children[c]))if(_.Gi("DEFERRED_DETACH"))for(;c&&!ct.has(c);){var e=a,g=b,k=c,m=d;k.hidden=!0;e=_.ul(_.zk,eSa.bind(null,e,g,k,m),0);ct.set(k,e);c=c.nextElementSibling}else for(;(k=b.lastElementChild)&&(b.removeChild(k),dSa(a,k,d),k!=c););};
gSa=function(a){var b=_.Rl();_.vi(function(){for(var c=_.h(a.slotContent),d=c.next();!d.done;d=c.next())b.value.appendChild(d.value)});
return _.q("__slot-el",{el:b,skip:!0})};
_.dt=function(a,b,c){c=c===void 0?hSa:c;Yr.add(b);var d;(d=c).propNames!=null||(d.propNames=[]);var e=new Set(c.propNames),g=ERa();d=function(){var r=g.call(this)||this;r.props={};r.isUpdating=!1;r.hasAttached=!1;r.isInert=!1;r.updateQueued=!1;r.initialClasses=[];EOa(r,b);return r};
_.z(d,g);d.prototype.forwardKebabCaseProp=function(r,t){r=_.qn(r);if(e.has(r)||r==="children")this.props[r]=t};
d.prototype.afterFirstPatch=function(){this.isUpdating=!0;for(var r=_.h(this.initialClasses),t=r.next();!t.done;t=r.next())(t=t.value)&&this.classList.add(t);this.initialClasses.length>0&&(this.initialClasses.length=0);this.isUpdating=!1};
d.prototype.handleSlottedContent=function(){for(var r=new Map,t=_.h(this.children),u=t.next();!u.done;u=t.next()){u=u.value;var w=void 0,A=(w=u.getAttribute("slot"))!=null?w:"children";(w=r.get(A))?w.push(u):r.set(A,[u]);if(!u.getAttribute("key")){var C=void 0,G=void 0;u.setAttribute("key",A+"_"+((G=(C=w)==null?void 0:C.length)!=null?G:0))}}r=_.h(r);for(t=r.next();!t.done;t=r.next())u=_.h(t.value),t=u.next().value,u=u.next().value,this.forwardKebabCaseProp(t,_.q(gSa,{slotContent:u}))};
d.prototype.connectedCallback=function(){var r=this;if(!EOa(this,b)&&!this.isInert)if(this.hasAttached)this.enqueueUpdate();else{for(var t=_.h(this.attributes),u=t.next();!u.done;u=t.next())u=u.value,this.forwardKebabCaseProp(u.name,ARa(u));this.handleSlottedContent();c.synchronous?(this.update(),this.afterFirstPatch()):this.enqueueUpdate().then(function(){r.afterFirstPatch()});
this.hasAttached=!0}};
d.prototype.attributeChangedCallback=function(r,t,u){this.isInert||this.isUpdating||this.isConnected||r!=="class"||this.initialClasses.push.apply(this.initialClasses,_.Be(u.split(" ")))};
d.prototype.disconnectedCallback=function(){mna(this)};
d.prototype.update=function(){if(!this.isInert){this.isUpdating=!0;try{var r,t;Bua(this,_.q(a,Object.assign({},this.props,{idomKey:(t=(r=this.__incrementalDOMData)==null?void 0:r.key)!=null?t:b})),!0)}catch(w){var u=w instanceof Error?w:new _.qj("Wiz rendering error");u.args||(u.args=[]);u.args.push("Error in deprecated web component wrapper");u.args.push(b.toLowerCase());_.Bl(u);throw w;}finally{this.updateQueued=this.isUpdating=!1}}};
d.prototype.enqueueUpdate=function(){var r=this;return _.l(function(t){if(c.synchronous)return r.update(),t.return();if(r.updateQueued)return t.return();r.updateQueued=!0;return t.return(Promise.resolve().then(function(){r.update()}))})};
d.prototype.notifyPath=function(){c.enableUnsafeRenderOnNotifyPath&&this.enqueueUpdate()};
_.Vm.Object.defineProperties(d,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["class"]}}});
for(var k=_.h(c.propNames),m=k.next(),n={};!m.done;n={prop$jscomp$105:void 0},m=k.next())n.prop$jscomp$105=m.value,Object.defineProperty(d.prototype,n.prop$jscomp$105,{set:function(r){return function(t){this.isInert||t===this.props[r.prop$jscomp$105]||(this.props[r.prop$jscomp$105]=t,this.hasAttached&&!this.isUpdating&&this.enqueueUpdate())}}(n)});
customElements.define(b,d)};
_.iSa=function(a,b){return _.mp(a.entities,"markersEngagementPanelSyncEntity",b)};
jSa=function(a,b){return _.mp(a.entities,"fantasyWinProbabilityEntity",b)};
kSa=function(a,b){return _.mp(a.entities,"fantasyTeamEntity",b)};
lSa=function(a,b){return _.mp(a.entities,"fantasyPlayerEntity",b)};
mSa=function(a,b){return _.mp(a.entities,"booleanEntity",b)};
nSa=function(a,b){return _.mp(a.entities,"qrCodeEntity",b)};
oSa=function(a){return _.mp(a.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
qSa=function(){if(et)return et;if(window.lottie)return et=Promise.resolve(window.lottie);var a=_.Ak(_.Ei("LOTTIE_URL"));a||(a=pSa,_.Dl(Error("ph")));return et=new Promise(function(b,c){var d=document.createElement("script");d.addEventListener("load",function(){b(lottie)});
d.addEventListener("error",function(e){var g="Lottie library failed to load.";e?e.message&&(g+=" Original description: "+e.message,_.El(e,g)):e=Error(g);_.Dl(e);c(e)});
d.setAttribute("async","");_.Xd(d,a);document.head.appendChild(d)})};
rSa=function(){return et?et:qSa()};
sSa=function(){var a=oSa(_.Yp().getState());if(a&&a.animationStyle)switch(a.animationStyle){case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_DELHI":return gt.get("LIKE_VALENTINES25_HEART");case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_BROKEN_HEART_DELHI":return gt.get("LIKE_VALENTINES25_BROKEN_HEART");case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_YOUTUBE_BIRTHDAY_DELHI":return gt.get("LIKE_YOUTUBE_20TH_BIRTHDAY")}};
tSa=function(a){if(a)switch(a){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.x("kevlar_use_wil_icons"))return(a=sSa())?a:gt.get("LIKE")}};
uSa=function(a){var b=tSa(a);if(b)return b;switch(a){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return gt.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return gt.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return gt.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return gt.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return gt.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return gt.get("NOTIFICATION_BELL")}};
wSa=function(a,b){if(!a||vSa)b=!1;else{if(a.closest){var c=!!tSa(b);c=_.Ei("ID_TOKEN")&&c?!!a.closest("segmented-like-dislike-button-view-model"):!1}else c=!1;if(!c)if(a.closest)if(c=!_.Ei("ID_TOKEN"),a=a.closest("ytd-subscription-notification-toggle-button-renderer-next"),c||!a)c=!1;else{var d;c=((d=a.data)==null?void 0:d.targetId)==="notification-bell"&&b!=="EXPAND_MORE"}else c=!1;b=c}return b};
xSa=function(a){var b,c;return _.l(function(d){switch(d.nextAddress){case 1:return _.me(d,2),_.p(d,fetch(a),4);case 4:return b=d.yieldResult,_.p(d,b.json(),5);case 5:return d.return(d.yieldResult);case 2:c=_.re(d),_.Dl(c),_.se(d)}})};
ySa=function(a,b){var c,d,e;return _.l(function(g){if(g.nextAddress==1)return(c=b?a.pathDarkTheme:a.path)?_.p(g,Promise.all([xSa(c),qSa()]),2):g.return();d=g.yieldResult;e=d[0];ht.set(c,e);_.se(g)})};
_.jt=function(){var a=_.Id.apply(0,arguments);return function(){for(var b="",c=_.h(a),d=c.next();!d.done;d=c.next())if(d=d.value,typeof d==="function"&&(d=d()),d)if(typeof d==="string")b+=" "+d;else for(var e in d)if(d.hasOwnProperty(e)){var g=d[e];typeof g==="function"&&(g=g());g&&(b+=" "+e)}b=b.trim()||void 0;return _.zh(b)}};
_.kt=function(a){var b;var c=a.data;var d=a.className;var e=a.animationName;var g=a.animationRef;var k=(b=a.elRefForInterop)||_.Rl(),m;_.wh(function(){var t;return void((t=m)==null?void 0:t.destroy())});
var n;_.yh(function(){if(e()!==n){n=e();var t=Object.assign({},{animationName:e(),animationRef:_.zh(g)},_.zh(c));try{var u=_.v().resolve(_.Wi(zSa));(u?u:rSa)().then(function(C){var G;(G=m)==null||G.destroy();G=t.animationRef;var J=t.listeners;C=C.loadAnimation(Object.assign({},{container:k.value},t.animationConfig));G&&(G.lottieEl=C);if(J)for(G=_.h(Object.entries(J)),J=G.next();!J.done;J=G.next()){var I=_.h(J.value);J=I.next().value;(I=I.next().value)&&C.addEventListener(J,I)}m=C})}catch(C){u=C;
var w="LottieComponent error.";u.message&&(w+=" Original description: "+u.message);_.El(u,w);_.Dl(u);var A;((A=t.listeners)==null?0:A.error)&&t.listeners.error(u)}}},"b06VMc");
var r=_.jt("ytLottieComponentHost",d);return _.q(_.oi,{cond:function(){return!b},
then:function(){return _.q("lottie-component",{class:r,el:k})}})};
ASa=function(a){var b=_.Rl(),c=_.h(Mna(a.data.animationConfig.name||"",a.className)),d=c.next().value;c=c.next().value;var e=xi(function(){return a.data.animationRef});
ui(function(){a.data.animationRef&&(a.data.animationRef.lottieEl=e==null?void 0:e.lottieEl)},[a.data.animationRef]);
return _.q("lottie-component",{skip:!0,class:_.jt(c,"ytLottieComponentHost"),el:b},_.q(_.kt,{data:a.data,animationRef:e,animationName:d,elRefForInterop:b}))};
CSa=function(a,b,c,d,e){function g(n,r){if(b.value===r&&a!=null&&a.value){for(;a.value.firstChild;)a.value.removeChild(a.value.firstChild);a.value.classList.add("yt-spec-icon-shape");n(a.value,d)}}
var k;e=(k=e)!=null?k:_.v().resolve(_.gs);c=_.BSa(e,c);if(typeof c==="function")b.value=null,g(c,null);else{var m=new _.kl(c.then,c);b.value=m;m.then(function(n){g(n,m)})}};
ESa=function(a,b){var c=document.createElement("div"),d=_.si(c,function(){return _.q(_.oi,{cond:a,then:function(e){return _.q(DSa,{data:e,options:b})}})});
return[c,d]};
_.lt=function(){for(var a=[],b=_.h(_.Id.apply(0,arguments)),c=b.next();!c.done;c=b.next())if(c=c.value)if(typeof c==="string")a.push(c);else{c=_.h(Object.entries(c));for(var d=c.next();!d.done;d=c.next()){var e=_.h(d.value);d=e.next().value;(e=e.next().value)&&a.push(d)}}return a.join(" ")};
ISa=function(a){var b=_.Rl(),c=yi(),d=Xn(a.character)||Xn(a.previousCharacter);ri(function(){if(a.marginMultiplier){var e;(e=c.value)==null||e.cancel();d?(e=a.previousCharacter?Number(a.previousCharacter)+10:a.rollUp?0:30,a.shouldAnimate||(e-=FSa(a,e))):(e=a.rollUp?0:2,a.shouldAnimate||(e-=a.rollUp?-1:1));b.value.style.marginTop="-"+e*a.marginMultiplier+"px";a.shouldAnimate?c.value=GSa(b.value,a,e,d):b.value.style.display=a.character?"":"none"}});
return _.q("animated-rolling-character",{el:b,class:"animated-rolling-character-wiz"},_.Qg(d,function(){for(var e=[],g=1;g<30;g++)e.push(_.q("div",null,g%10));return _.q(_.Vh,null,_.q("div",null,"\u00a0"),e,_.q("div",null,"\u00a0"))},function(){return HSa(a.character)}))};
HSa=function(a){return _.q(_.Vh,null,_.q("div",null,"\u00a0"),_.q(_.Vh,null,_.Qg(!a||_.qa(a),function(){return _.q("div",null,"\u00a0")},function(){return _.q("div",null,a)})),_.q("div",null,"\u00a0"))};
GSa=function(a,b,c,d){c=new Animation(new KeyframeEffect(a,[{transform:"translateY(0px)"},{transform:"translateY("+(d?FSa(b,c):b.rollUp?-1:1)*b.marginMultiplier+"px)"}],JSa),document.timeline);b.character?(a.style.display="",c.onfinish=null):c.onfinish=function(){a.style.display="none"};
c.play();return c};
FSa=function(a,b){var c=Number(a.character)+10;if(a.previousCharacter)if(a.character){var d=Number(a.character),e=Number(a.previousCharacter);a=a.rollUp?e<d?c:c+10:e<d?c-10:c}else a=a.rollUp?30:0;else a=a.character==="0"?c:a.rollUp?c-10:c+10;return b-a};
_.mt=function(a,b){return function(c){var d={},e;for(e in c){var g=void 0,k=void 0;((g=b)==null?0:(k=g.callbacks)==null?0:k[e])||(d[e]=c[e])}return _.q(Tua,null,function(){for(var m in d)c[m]=_.zh(d[m]);c.disableReactiveLogging=!0;return _.q(a,Object.assign({},c))})}};
_.nt=function(a){var b=yi(),c=yi();ui(function(){b.value=a.numberText;c.value=a.numberValue},[a.numberText]);
var d=a.fontSizeMultiplier?a.heightPx*a.fontSizeMultiplier:a.heightPx,e=wi(function(){if(a.numberText){var k=a.numberText;var m=a.forceRollUp||!c.value||!a.numberValue||c.value<a.numberValue;var n=!!a.shouldAnimate,r=b.value,t=[],u=0,w=0,A=(r?r.replace(/\D/g,"").length:0)-(k?k.replace(/\D/g,"").length:0);r=r?r.split(/(\d)/).filter(Boolean):[];for(k=k.split(/(\d)/).filter(Boolean);A<0;){var C=k[w];t.push({character:C,rollUp:m,marginMultiplier:d,shouldAnimate:n});w++;Xn(C)&&A++}for(;u<A;)C=r[u],t.push({previousCharacter:C,
rollUp:m,marginMultiplier:d,shouldAnimate:n}),u++,Xn(C)||A++;for(;w<k.length;)A=k[w],C=r[u],Xn(A)===Xn(C)?(w++,u++):Xn(A)?(u++,A=void 0):Xn(C)&&(w++,C=void 0),t.push({character:A,previousCharacter:C,rollUp:m,marginMultiplier:d,shouldAnimate:n});m=t}else m=[];return m},[a.numberText]),g=a.numberText?["height: "+d+"px;",
"line-height: "+a.heightPx+"px;"].join(" "):"";return _.q("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:g,dir:"ltr","aria-hidden":"true"},e.map(function(k){return _.q(ISa,Object.assign({},k))}))};
_.ot=function(a){return vua(function(b){b=a==null?void 0:a(b);return typeof b==="boolean"?b:!0})};
pt=function(a){return function(){return a()?a():void 0}};
KSa=function(a){return new KeyframeEffect(a,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
LSa=function(a){return new KeyframeEffect(a,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
MSa=function(a){var b=_.h(_.fh(a,"Clci1e")),c=b.next().value,d=b.next().value;c.current=a;return[c,function(e){return void d(c.current=e)}]};
_.qt=function(a){var b=rRa(function(){return MSa(a())},{isEqual:function(c,d){return c[0].current===d[0].current}});
return[function(){return b()[0]()},
function(c){return void b()[1](c)}]};
_.rt=function(a){return function(){var b="",c;for(c in a){for(var d=a[c];typeof d==="function";)d=d();d!==void 0&&d!==null&&(b+="; "+c+": "+d)}return b.length>0?_.zh(b.slice(2)):_.zh()}};
NSa=function(a){switch(a){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"}};
QSa=function(a,b,c,d,e,g){var k=OSa(a),m=k.disabled,n=k.iconPosition,r=k.style,t=k.focused,u=function(){return!!C()&&n()==="icon-only"},w=function(){return!!C()&&n()==="icon-only-40"},A=function(){return!!C()&&n()==="icon-with-label"},C=function(){return!!b||!(d==null||!d())};
return{type:function(){return r()==="call-to-action-inverse"?"text":r()==="overlay-dark"&&a().type!=="filled"&&a().type!=="tonal"?"tonal":a().type},
shouldFocus:function(){return(t()||(g==null?void 0:g()))&&!m()},
hasIconLeading:function(){return!!C()&&n()==="leading"},
hasIconTrailing:function(){return!!C()&&n()==="trailing"},
hasIconLeadingTrailing:function(){return!!C()&&!!(c||e!=null&&e())&&n()==="leading-trailing"},
hasIconOnly:u,hasIconOnly40:w,hasIconWithLabel:A,iconButton:function(){return u()||w()||A()},
visiblyDisabled:function(){return(m()?"disabled":a().state)==="disabled"||m()},
overrideSmallSizeIcon:function(){return st(a(),C())},
iconToRender:b?b:function(){return _.q(_.tt,{icon:d,size:function(){return PSa(a())},
active:function(){return a().toggled}})},
secondaryIconToRender:c?c:function(){return _.q(_.tt,{icon:e,size:function(){return PSa(a())},
active:function(){return a().toggled}})}}};
OSa=function(a){return{size:function(){return a().size},
style:function(){return a().style},
focused:function(){return a().focused},
disabled:function(){return a().disabled},
onTap:function(b){var c,d;return(d=(c=a()).onTap)==null?void 0:d.call(c,b)},
alignByText:function(){return a().alignByText},
aTagConfig:function(){return a().aTagConfig},
customColors:function(){return a().customColors},
segmentedPosition:function(){return a().segmentedPosition},
toggled:function(){return a().toggled},
toggleable:function(){return a().toggleable},
accessibilityLabel:function(){return a().accessibilityLabel},
onToggle:function(b){var c,d;return(d=(c=a()).onToggle)==null?void 0:d.call(c,b)},
iconPosition:function(){return a().iconPosition},
oneOffCustomTextWrap:function(){return a().oneOffCustomTextWrap},
disableTextEllipsis:function(){return a().disableTextEllipsis},
tooltipText:function(){return a().tooltipText},
ariaHidden:function(){return a().ariaHidden},
tabIndex:function(){return a().tabIndex},
buttonText:function(){return a().buttonText},
formattedButtonText:function(){return a().formattedButtonText},
animatedTextProps:function(){return a().animatedTextProps}}};
RSa=function(a){return a.style==="overlay-dark"?4:a.style==="overlay"?a.type==="filled"?4:3:a.type==="filled"||a.style==="call-to-action-inverse"||a.style==="mono-inverse"?2:1};
st=function(a,b){b=(a.iconPosition==="icon-only"||a.iconPosition==="icon-only-40"||a.iconPosition==="icon-with-label")&&b;return!a.segmentedPosition&&b&&a.size==="S"};
SSa=function(){return!_.x("web_disable_backdrop_filter")};
PSa=function(a){switch(a.size){case "XS":return 16;case "S":return st(a,!0)?24:16;default:return 24}};
TSa=function(a,b){if(!_.Rg){var c;Gla(function(){return c=Rua(a,b)});
return c}return Rua(a,b)};
USa=function(){var a=Tja(_.Rg||void 0,Oua);return a===Sja||(a==null?void 0:a.name)==="\u0275NotFound"?void 0:a};
VSa=function(a){switch(a){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"}};
WSa=function(a){switch(a){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"}};
XSa=function(a){switch(a){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"}};
YSa=function(a){if(!a)return{};var b=a.color,c=a.backgroundColor;a=a.borderColor;var d="";b&&(d+="color: "+b+";");c&&(d+="background-color: "+c+";");a&&(d+="border-color: "+a+";");return{style:d}};
vt=function(a){var b=a.data;var c=a.icon;var d=a.secondaryIcon;var e=a.iconName;var g=a.secondaryIconName;USa();var k=b.size;a=b.style;var m=b.focused,n=b.disabled,r=b.onTap,t=b.alignByText,u=b.aTagConfig,w=b.customColors,A=b.segmentedPosition,C=b.toggled,G=b.toggleable,J=b.accessibilityLabel,I=b.onToggle,R=b.iconPosition,ca=b.oneOffCustomTextWrap,V=b.disableTextEllipsis,fa=b.tooltipText,aa=b.ariaHidden,ma=b.tabIndex,Ba=!!c||!!e,Da=c,za=d;if(e){var Fa=PSa(b);Da=function(){return _.q(_.tt,{icon:e,
size:Fa,active:b.toggled})}}if(g){var bb=PSa(b);
za=function(){return _.q(_.tt,{icon:g,size:bb,active:b.toggled})}}var kb=b.state;
c=b.type;a==="call-to-action-inverse"&&(c="text");a==="overlay-dark"&&c!=="filled"&&c!=="tonal"&&(c="tonal");var Ua=Ba&&R==="leading",Fc=Ba&&R==="trailing",id=Ba&&(!!d||!!g)&&R==="leading-trailing";d=Ba&&R==="icon-only";var Mb=Ba&&R==="icon-only-40";R=Ba&&R==="icon-with-label";var wd=d||Mb||R;n&&(kb="disabled");var Tb=kb==="disabled"||n;Ba=st(b,Ba);kb={};var tb=_.lt((kb["yt-spec-button-shape-next"]=!0,kb[VSa(c)]=!0,kb[WSa(a)]=!Tb,kb["yt-spec-button-shape-next--disabled"]=!!Tb,kb[XSa(k)]=!0,kb["yt-spec-button-shape-next--focused"]=
!!m&&!n,kb["yt-spec-button-shape-next--icon-trailing"]=Fc,kb["yt-spec-button-shape-next--icon-leading"]=Ua,kb["yt-spec-button-shape-next--icon-leading-trailing"]=id,kb["yt-spec-button-shape-next--icon-button"]=d||R,kb["yt-spec-button-shape-next--icon-only-default"]=Mb,kb["yt-spec-button-shape-next--align-by-text"]=!!t,kb["yt-spec-button-shape-next--segmented-start"]=A==="start",kb["yt-spec-button-shape-next--segmented-end"]=A==="end",kb["yt-spec-button-shape-next--override-small-size-icon"]=Ba,kb["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=
!!ca,kb["yt-spec-button-shape-next--disable-text-ellipsis"]=!!V,kb["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=SSa(),kb)),Fb=_.ot(function(dd){r==null||r(dd);G&&(I==null||I(dd))});
k=function(){return u?_.q(_.ut,{aTagConfig:u,disabled:n,className:tb,style:YSa(w).style,title:fa!=null?fa:"",ariaLabel:J,ariaCurrent:G&&C},_.q(_.Vh,null,ZSa(b,Ua,id,Fc,wd,Da,za))):_.q("button",{"on:click":Fb,class:tb,title:fa!=null?fa:"",style:n&&u?"pointer-events:none":YSa(w).style,disabled:n,"aria-pressed":G?!!C:void 0,"aria-label":J?J:void 0,"aria-disabled":Tb,"aria-hidden":aa,tabindex:ma},_.q(_.Vh,null,ZSa(b,Ua,id,Fc,wd,Da,za)))};
m={};a=(m["yt-spec-button-shape-with-label"]=!0,m["yt-spec-button-shape-with-label--is-overlay"]=a==="overlay"||a==="overlay-dark",m);return _.q("yt-button-shape",{class:"yt-spec-button-shape-next__button-shape-wiz-class"},R?_.q("label",{class:_.lt(a)},k(),_.q("div",{class:"yt-spec-button-shape-with-label__label","aria-hidden":!0},$Sa(b))):k())};
$Sa=function(a){var b=a.formattedButtonText,c=a.animatedTextProps,d=a.buttonText,e=a.oneOffCustomTextWrap;a=a.iconPosition;return c?_.q(_.nt,{numberText:c.numberText,numberValue:c.numberValue,heightPx:c.heightPx,fontSizeMultiplier:c.fontSizeMultiplier,shouldAnimate:c.shouldAnimate,forceRollUp:c.forceRollUp}):b?(c=a==="icon-with-label"||e,_.q(_.wt,{text:Object.assign({},b,c?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:{}),noLinkColor:!0,noWrap:!c})):d};
ZSa=function(a,b,c,d,e,g,k){return _.q(_.Vh,null,_.Qg(g&&(b||c||e),function(){return _.q(_.Vh,null,_.q("div",{class:"yt-spec-button-shape-next__icon","aria-hidden":"true"},g==null?void 0:g()))}),_.Qg((a.buttonText||a.formattedButtonText||a.animatedTextProps)&&!e,function(){return _.q(_.Vh,null,_.q("div",{class:"yt-spec-button-shape-next__button-text-content"},$Sa(a)))}),_.Qg(d,function(){return _.q(_.Vh,null,_.q("div",{class:"yt-spec-button-shape-next__icon"},g==null?void 0:g()))}),_.Qg(c,function(){return _.q(_.Vh,
null,_.q("div",{class:"yt-spec-button-shape-next__secondary-icon"},k==null?void 0:k()))}),_.Qg(!a.disabled&&!0,function(){return _.q(_.xt,{model:{color:RSa(a)}})}))};
_.zt=function(a){var b=_.$i("web_generic_client_event_wait_period ",0);b||(b=3E5);var c=aTa.get(a);!_.x("enable_web_client_experiment_event_timeout_killswitch")&&c&&(0,_.Uj)()-c<b||(aTa.set(a,(0,_.Uj)()),_.zl("genericClientExperimentEvent",{eventType:a}))};
bTa=function(a){switch(a){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"}};
dTa=function(a){if(_.x("web_enable_wiz_tfbs"))Qs(_.xt)({model:a});else{a={model:a};var b=ys,c;(b==null?0:(c=b.prototype)==null?0:c.render)?QPa(a):typeof ys==="function"&&ys(a)}c=_.x("web_enable_wiz_tfbs_log");_.x("mweb_wiz_migration_event_killswitch")||_.x("kevlar_wiz_migration_event_killswitch")||!c||cTa||(_.zt("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT"),cTa=!0)};
At=function(a,b){switch(a.size){case "XS":return 16;case "S":return st(a,b)?24:16;default:return 24}};
eTa=function(a){if(a.style==="overlay-dark"&&a.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
iTa=function(a,b,c){var d=a.buttonText,e=a.formattedButtonText,g=a.formattedButtonTextLegacy,k=a.animatedTextProps,m=a.style,n=a.size,r=a.focused,t=a.disabled,u=a.onTap,w=a.alignByText,A=a.aTagConfig,C=a.customColors,G=a.segmentedPosition,J=a.toggled,I=a.toggleable,R=a.accessibilityLabel,ca=a.onToggle,V=a.iconPosition,fa=a.oneOffCustomTextWrap,aa=a.disableTextEllipsis,ma=a.tooltipText,Ba=a.ariaHidden,Da=a.tabIndex,za=a.state,Fa=a.type;m==="call-to-action-inverse"&&(Fa="text");m==="overlay-dark"&&
Fa!=="filled"&&Fa!=="tonal"&&(Fa="tonal");var bb=!!b&&V==="leading",kb=!!b&&V==="trailing",Ua=!!b&&!!c&&V==="leading-trailing",Fc=!!b&&V==="icon-only",id=!!b&&V==="icon-only-40",Mb=!!b&&V==="icon-with-label",wd=Fc||id||Mb;t&&(za="disabled");var Tb=za==="disabled"||t;za=st(a,!!b);var tb={},Fb=(tb["yt-spec-button-shape-next"]=!0,tb[VSa(Fa)]=!0,tb[WSa(m)]=!Tb,tb["yt-spec-button-shape-next--disabled"]=!!Tb,tb[XSa(n)]=!0,tb["yt-spec-button-shape-next--focused"]=!!r&&!t,tb["yt-spec-button-shape-next--icon-trailing"]=
kb,tb["yt-spec-button-shape-next--icon-leading"]=bb,tb["yt-spec-button-shape-next--icon-leading-trailing"]=Ua,tb["yt-spec-button-shape-next--icon-button"]=Fc||Mb,tb["yt-spec-button-shape-next--icon-only-default"]=id,tb["yt-spec-button-shape-next--align-by-text"]=!!w,tb["yt-spec-button-shape-next--segmented-start"]=G==="start",tb["yt-spec-button-shape-next--segmented-end"]=G==="end",tb["yt-spec-button-shape-next--override-small-size-icon"]=za,tb["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=
!!fa,tb["yt-spec-button-shape-next--disable-text-ellipsis"]=!!aa,tb["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=SSa(),tb),dd=function(){if(k)Qs(_.nt)(k);else if(g)g(V==="icon-with-label"||fa?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",textAlignment:"TEXT_ALIGNMENT_CENTER"}:{});else if(e){var qb=V==="icon-with-label"||fa;vRa(Object.assign({},e,qb?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:{}),{noLinkColor:!0,noWrap:!qb})}else d&&Sh(d)},
be=function(qb){u==null||u(qb);
I&&(ca==null||ca(qb))},ia=A?fTa:gTa,gc=A?"aria-current$":"aria-pressed$",Pb=function(){b&&(bb||Ua||wd)&&function(){Bt({className:"yt-spec-button-shape-next__icon",
"aria-hidden$":!0},function(){b()})}();
(d||e||g||k)&&!wd&&function(){Bt({className:"yt-spec-button-shape-next__button-text-content"},function(){dd()})}();
kb&&function(){Bt({className:"yt-spec-button-shape-next__icon"},function(){b()})}();
Ua&&function(){Bt({className:"yt-spec-button-shape-next__secondary-icon"},function(){c()})}();
t||dTa({color:RSa(a)})},Lc=function(){var qb={};
ia(Object.assign({},(qb.className=_.lt(Fb),qb.onclick=A?void 0:be,qb.disabled=t,qb["aria-disabled$"]=Tb,qb.style=t&&A?"pointer-events:none":void 0,qb[gc]=I?!!J:void 0,qb["aria-label$"]=R,qb.title$=ma!=null?ma:"",qb["aria-hidden$"]=Ba,qb.tabindex$=Da,qb),A,YSa(C)),function(){Pb()})};
Mb?(n={},m=(n["yt-spec-button-shape-with-label"]=!0,n["yt-spec-button-shape-with-label--is-overlay"]=m==="overlay"||m==="overlay-dark",n),hTa({className:_.lt(m)},function(){Lc();Bt({"aria-hidden$":!0,className:"yt-spec-button-shape-with-label__label"},dd)})):Lc()};
Ct=function(a,b,c){_.x("web_wiz_button_shape")?Qs(vt)({data:a,icon:b?function(){return _.q(Ul,null,b)}:void 0,
secondaryIcon:c?function(){return _.q(Ul,null,c)}:void 0}):iTa(a,b,c)};
Dt=function(a,b){_.Fs(a,Object.assign({},b,{forceClickLogging:!0}))};
jTa=function(a,b,c,d){var e=void 0;return function(g){var k=_.Es(c?a==null?void 0:a.onDisabledTap:a==null?void 0:a.onTap);if(k){var m;e=(m=e)!=null?m:b==null?void 0:b.value;k&&Dt(k,{form:{element:e,event:g}})}d&&d(g)}};
kTa=function(a){switch(a){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"}};
lTa=function(a){switch(a){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"}};
mTa=function(a){switch(a){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"}};
nTa=function(a){switch(a){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"}};
pTa=function(a){(a=_.qs(a))&&_.oTa(a)};
_.oTa=function(a){var b=_.Fn();b&&_.So(b,a)};
qTa=function(a,b,c){_.ho(a,"yt-open-popup-action",[b,c||a])};
rTa=function(a,b){var c=_.zi(a,"endpoint"),d=_.zi(a,"action");return(c=d?d:c)&&b&&(c=b.navigationEndpointPopupMap[c])&&(a=_.Ji(c,a),(c=_.zi(a,"renderer"))&&b.supportedPopups.hasOwnProperty(c))?{openPopupAction:{popupType:b.popupTypeMap[c],popup:a}}:null};
sTa=function(a,b,c,d){if(d){var e;c=c==null?void 0:(e=c.data)==null?void 0:e.contents;(e=c instanceof Array&&c.length?c[0]:c)&&(c=_.zi(e,"renderer"))&&d.supportedPopups.hasOwnProperty(c)&&(b.stopPropagation(),qTa(a,{openPopupAction:{popupType:d.popupTypeMap[c],popup:e}}))}};
vTa=function(a,b,c,d){d=d===void 0?!1:d;var e=tTa(b);if(e){e.href&&Eq(e.href);var g=b.button;g=g!==void 0?g===0&&!Et(b):!Et(b);e.data&&g&&uTa(a,e,b,c,d)}};
uTa=function(a,b,c,d,e){e=e===void 0?!1:e;var g=_.$i("pbj_navigate_limit",-1)===0;wTa(b);_.v().resolve(_.Wi(Ll));var k=b.data;if(Object.keys(k).length!==0)if(!_.x("unplugged_web_disable_actions_for_cec_endpoint")&&_.y(k,_.po))_.x("endpoint_behavior_command_executor_fix_killswitch")||(c.preventDefault(),c.stopPropagation()),_.no(a,[k],a);else if(d=rTa(k,d))k.loggingUrls&&k.loggingUrls.forEach(function(n){n.baseUrl&&_.Jk(n.baseUrl)}),c.preventDefault(),c.stopPropagation(),qTa(a,d,b);
else{var m=xTa(0,b.data,c);if(a=b.getForm)a=a(),m.tempData=m.tempData||{},m.tempData=Object.assign({},m.tempData,a);a=_.Pq(c);if(d=a.find(function(n){return!!n.visualElement}))m.createScreenConfig=m.createScreenConfig||{},m.createScreenConfig.clickedVisualElement=d.visualElement;
if(!g)if(c.preventDefault(),c.stopPropagation(),_.y(k,_.yTa)&&!e&&_.hs.instance)_.hs.instance.resolveCommand(k,m);else if(_.x("kevlar_command_handler_formatted_string")&&!e&&_.hs.instance&&zTa(k))e=a.find(function(n){return!!n.is})||c.target,c={form:Object.assign({},m,{event:c,
element:e,originatingNode:b})},_.hs.instance.resolveCommand(k,c);else{k=_.Pq(c);c=[];for(e=0;e<k.length;e++)(g=k[e].is)&&c.push(g);fua({parents:c.join(","),text:b.innerText},function(){_.go(b,"yt-navigate",m)})}}};
ATa=function(a){if(a=tTa(a))wTa(a),(a=a.href)&&a.startsWith("https://accounts.google.com/AddSession")&&_.ZIa()};
tTa=function(a){a=_.Pq(a);for(var b,c=0;c<a.length;c++)if(b=a[c],b.tagName==="A"&&b.classList.contains("yt-simple-endpoint")){if(!b.data)break;return b}return null};
Et=function(a){return a.shiftKey||a.altKey||a.metaKey||a.ctrlKey};
BTa=function(a,b){var c={itct:b.clickTrackingParams};_.x("kevlar_client_side_screens")&&(!_.y(b,_.tq)||_.x("kevlar_exclude_endpoint_killswitch"))&&(c.endpoint=JSON.stringify(b));_.x("enable_unknown_lact_fix_on_html5")&&_.v().resolve(_.Wi(_.Ft))&&(c.lact=_.$k());WIa(c);_.Zn(a,c)};
wTa=function(a){a.href&&Object.keys(a.data).length!==0&&BTa(a.href,a.data)};
zTa=function(a){for(var b=_.h(CTa),c=b.next();!c.done;c=b.next())if(a[c.value])return!1;return!0};
_.Gt=function(a,b){if(b){var c={};DTa.forEach(function(d){d=ETa(b,d,"--yt-lightsource-");Object.assign(c,d)});
FTa.forEach(function(d){d=ETa(b,d,"--yt-basic-");Object.assign(c,d)});
_.dr(a,c)}};
ETa=function(a,b,c){var d={};d[c+_.pn(b)]=a&&a[b]?_.Cq(a[b]):"";return d};
_.It=function(a,b,c){Ht[a]||(Ht[a]={});Ht[a][b]=c};
_.Jt=function(a){Ht[a]||(Ht[a]={});return Ht[a]};
GTa=function(a){if(!a)return{};var b=a.foregroundTitleColor,c=a.backgroundColor;a=a.borderColor;var d="text";a?d="outline":c&&(d="filled");return{type:d,customColors:{color:b?_.Cq(b):void 0,backgroundColor:c?_.Cq(c):void 0,borderColor:a?_.Cq(a):void 0}}};
LTa=function(a){var b=a.renderer;var c=a.element;var d=a.commandController;var e=a.onTapCallback;var g=a.skipCommandHandling;var k=a.overrides;var m=a.forceIcon;var n=a.forceModernIconButton;var r=a.forceDisabled;var t=a.isSubscribe===void 0?!1:a.isSubscribe;var u=a.isPressed===void 0?!1:a.isPressed;var w=a.useButtonSize===void 0?!1:a.useButtonSize;a=HTa(b);t&&(a.style="mono",a.type="filled");m=!b.icon||!m&&b.text?b.icon?b.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:n?"icon-only":"icon-only-40";m==="icon-only-40"&&(a.type="text");var A;n=Object;t=n.assign;w=ITa(b,w);u=!!b.isSelected||!_.x("web_propagate_is_pressed_killswitch")&&!!u;var C=b.isSelected!==void 0;r=r===void 0?b.isDisabled:r;var G=b.text?_.As(b.text):void 0;var J,I,R,ca=((J=b.accessibilityData)==null?void 0:(I=J.accessibilityData)==null?void 0:I.label)||((R=b.accessibility)==null?void 0:R.label);J=ca?ca:_.Vp(b.text);c=JTa(b,c,d,e,g);d=KTa(b);d!=null&&d.length?(d=_.Gs({innertubeCommand:gQa(d),
forceNewState:!0}),d=hQa(d)?d:void 0):d=void 0;return t.call(n,{},a,w,{iconPosition:m},k,{focused:!1,toggled:u,toggleable:C,disabled:r,formattedButtonText:G,accessibilityLabel:J,onTap:c,aTagConfig:d},GTa((A=b.colorData)==null?void 0:A.basicColorPaletteData),{oneOffCustomTextWrap:b.oneOffCustomTextWrap})};
JTa=function(a,b,c,d,e){return function(g){var k=KTa(a);d(k,g);if(!e){k=_.h(k);for(var m=k.next();!m.done;m=k.next())Dt(m.value,{form:{element:b,event:g},commandController:c})}}};
KTa=function(a){var b=[];a.command&&b.push(a.command);a.serviceEndpoint&&b.push(a.serviceEndpoint);a.navigationEndpoint&&b.push(a.navigationEndpoint);return b};
ITa=function(a,b){if(b)switch(a.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(a.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
HTa=function(a){switch(a.style){case "STYLE_VISIBLY_DISABLED":return{style:"call-to-action",type:"text",state:"disabled"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":case "STYLE_CALL_TO_ACTION_FILLED":return{style:"call-to-action",type:"filled",state:"active"};case "STYLE_OUTLINE":case "STYLE_SUGGESTIVE":case "STYLE_SUGGESTED_ACTION":return{style:"call-to-action",type:"outline",state:"active"};case "STYLE_BLUE_TEXT":case "STYLE_ALERT_INFO":return{style:"call-to-action",type:"text",state:"active"};case "STYLE_OVERLAY":return{style:"overlay",
type:"filled",state:"active"};case "STYLE_WHITE_WITH_BORDER":return{style:"overlay",type:"outline",state:"active"};case "STYLE_LIGHT_TEXT":return{style:"overlay",type:"text",state:"active"};case "STYLE_MONO_FILLED_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_MONO_TONAL_OVERLAY":case "STYLE_DARK_ON_BLACK":return{style:"overlay",type:"tonal",state:"active"};case "STYLE_OVERLAY_PROTECTED":return{style:"overlay-dark",type:"tonal",state:"active"};case "STYLE_MONO_FILLED":case "STYLE_DESTRUCTIVE":return{style:"mono",
type:"filled",state:"active"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":case "STYLE_MONO_TONAL":return{style:"mono",type:"tonal",state:"active"};case "STYLE_INACTIVE_OUTLINE":case "STYLE_MONO_OUTLINE":return{style:"mono",type:"outline",state:"active"};case "STYLE_BLUE_TEXT_WITH_INVERSE_THEME":return{style:"call-to-action-inverse",type:"text",state:"active"};case "STYLE_BRAND_GRADIENT":return{style:"brand-gradient",type:"filled",state:"active"};case "STYLE_GENERATIVE_GRADIENT":return{style:"gen-ai-gradient",
type:"filled",state:"active"};default:return{style:"mono",type:"text",state:"active"}}};
MTa=function(a,b){if(!a)return!1;var c,d=(c=_.y(a,_.ro))==null?void 0:c.signal;if(d&&b.signalEndpointMap)return!!b.signalEndpointMap[d];var e;if((c=(e=_.y(a,_.Kt))==null?void 0:e.request)&&b.continuationEndpointMap)return!!b.continuationEndpointMap[c];for(var g in a)if(b.commandEndpointMap[g])return!0;return!1};
NTa=function(a,b){if(b.streamingEndpointMap)for(var c in a)if(b.streamingEndpointMap[c]&&(a=b.streamingEndpointMap[c]))return a()};
OTa=function(a,b){var c,d=(c=_.y(a,_.ro))==null?void 0:c.signal;if(d&&b.signalEndpointMap&&(c=b.signalEndpointMap[d]))return c();var e;if((c=(e=_.y(a,_.Kt))==null?void 0:e.request)&&b.continuationEndpointMap&&(e=b.continuationEndpointMap[c]))return e();for(var g in a)if(b.commandEndpointMap[g]&&(a=b.commandEndpointMap[g]))return a()};
PTa=function(a){var b={"Content-Type":"application/json"};_.Ei("EOM_VISITOR_DATA")?b["X-Goog-EOM-Visitor-Id"]=_.Ei("EOM_VISITOR_DATA"):_.Ei("VISITOR_DATA")&&(b["X-Goog-Visitor-Id"]=_.Ei("VISITOR_DATA"));b["X-Youtube-Bootstrap-Logged-In"]=_.Ei("LOGGED_IN",!1);_.Ei("DEBUG_SETTINGS_METADATA")&&(b["X-Debug-Settings-Metadata"]=_.Ei("DEBUG_SETTINGS_METADATA"));a!=="cors"&&((a=_.Ei("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(b["X-Youtube-Client-Name"]=a),(a=_.Ei("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(b["X-Youtube-Client-Version"]=
a),(a=_.Ei("CHROME_CONNECTED_HEADER"))&&(b["X-Youtube-Chrome-Connected"]=a),(a=_.Ei("DOMAIN_ADMIN_STATE"))&&(b["X-Youtube-Domain-Admin-State"]=a),_.Gi("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(a=_.Ei("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(b["X-YouTube-Lava-Device-Context"]=a));return b};
QTa=function(a,b){b.watchNextResponse||b.reelItemWatchResponse?b.watchNextResponse?a.content=b.watchNextResponse:a.content=b.reelItemWatchResponse:b.playerResponse?a.player=b.playerResponse:b.reelWatchSequenceResponse&&(a.reelSequence=b.reelWatchSequenceResponse)};
Lt=function(a){return function(){return new a}};
Mt=function(a){var b=_.v();return function(){return b.resolve(a)}};
_.Nt=function(a){if(!a)return null;for(var b=[],c=0;c<a.textSegments.length;c++){var d=a.textSegments[c];d.text?b.push(d):d.emojiId&&b.push({emoji_id:d.emojiId})}return{text_segments:b}};
VTa=function(a,b,c,d,e,g,k){g=g===void 0?[]:g;var m=new _.Ot;m.endpoint=c;if(!c)return _.Cl(new _.qj("handle undefined endpoint",b.tagName)),m;var n=oua(c);n.length&&(_.no(a,n,b,d),m.actions=n);c.loggingUrls&&c.loggingUrls.forEach(function(t){t.baseUrl&&Kk(t.baseUrl,t.attributionSrcMode)});
n=!_.x("web_skip_impression_click_killswitch")&&d&&d.impression;if(c.clickTrackingParams&&!RTa(c)&&!STa(b)&&!n&&(n=_.ms(),!_.Pt(n,b))){var r=b.getScreenLayer&&b.getScreenLayer();r?n.clickCommand(c,null,r):n.clickCommand(c,null)}n=!1;for(r=0;r<g.length;r++)if((0,g[r])(b,c,d)){n=!0;break}!n&&TTa(c)&&(m.ajaxPromise=UTa(a,b,c,d,e,k));return m};
STa=function(a){var b;return(a=(b=a.data)==null?void 0:b.navigationEndpoint)&&!!a.clickTrackingParams};
RTa=function(a){var b=_.y(a,_.ro);if(b&&(b=b.signal)&&WTa.indexOf(b)>=0)return!0;for(var c in a)if(XTa.indexOf(c)>=0)return!0;return!1};
TTa=function(a){var b;if(((b=_.y(a,_.ro))==null?void 0:b.signal)==="CLIENT_SIGNAL")return!1;for(var c in a)if(YTa.indexOf(c)>=0)return!1;a=Object.keys(a);return a.length===1&&a[0]==="loggingUrls"?!1:!0};
fUa=function(a,b,c,d,e,g,k){var m=_.Qt.instance;if(m&&_.Rt(m,d))var n=_.St(m,d,e).then(function(t){return(t==null?0:t.data)?t:{data:t}});
else n=a.requestDataForServiceEndpoint(d,e),_.y(d,ZTa)||_.y(d,$Ta)||_.y(d,_.aUa)||_.y(d,bUa)||_.Dl(new _.qj("No RequestBuilder for endpoint",d));var r=_.Tt();r.promise.thenCatch(function(){var t=_.zi(d,"action")||_.zi(d,"command")||_.zi(d,"endpoint");t&&(t=d[t],t.hasOwnProperty("onFailureAction")?_.no(b,[t.onFailureAction],c):t.hasOwnProperty("onFailureCommand")&&_.no(b,t.onFailureCommand,c));n.cancel("Resolver promise rejected")});
n.then(function(t){if(t){var u=t.error;if(u){if(g&&g.onServerError)g.onServerError(d,t);r.reject(new _.qj("Response error",d,u))}else if(t=t.data)if(u=t.error){if(g&&g.onServerError)g.onServerError(d,t);r.reject(new _.qj("Returned error",d,u))}else{cUa(b,c,t,d);dUa(t);if(u=nua(t))for(var w=_.h(u),A=w.next();!A.done;A=w.next()){A=A.value;var C=_.v().resolve(_.Wi(eUa))||Ut;if(!_.Qt.instance||!C.some(function(J){return!!_.y(d,J)})||_.x("kevlar_response_processor_allowlist_killswitch")){var G=C=void 0;
((G=_.y((C=A)==null?void 0:C.commandMetadata,_.ao))==null?0:G.sendPost)?_.mo(b,[A]):_.no(b,[A],c)}}(w=_.y(t==null?void 0:t.frameworkUpdates,Vt))&&k&&k(w);if(g&&g.onSuccess)g.onSuccess(d,t);r.resolve(new _.Wt(t,u))}}else r.reject(new _.qj("Invalid service endpoint provided",d))},function(t){r.reject(t)});
return r.promise};
dUa=function(a){var b;(a=(b=_.y(a==null?void 0:a.onResponseReceivedCommand,_.gUa))==null?void 0:b.continuationItems)&&(a==null?void 0:a.length)===1&&_.y(a[0],hUa)&&_.Jo("so_r",void 0,"search_overview_answer")};
UTa=function(a,b,c,d,e,g){var k;return(k=b.getNetworkManager&&b.getNetworkManager()?b.getNetworkManager():_.v().resolve(_.Wi(_.wq)))?fUa(k,a,b,c,d,e,g):_.Pn("No network manager.")};
cUa=function(a,b,c,d){if(c=c.trackingParams||c.loggingDirectives&&c.loggingDirectives.trackingParams){var e;(_.y(d,iUa)||_.y(d,jUa)||_.y(d,kUa))&&d.clickTrackingParams?e=_.qs(d.clickTrackingParams):_.x("web_graft_to_parent_command")&&d.clickTrackingParams&&(e=_.qs(d.clickTrackingParams));var g;d=(g=b.getScreenLayer)==null?void 0:g.call(b);b=_.ms().graftServerVe(c,e,d);_.ko(a,"yt-store-grafted-ve-action",[b])}};
_.lUa=function(a){var b=new Image;return new _.kl(function(c,d){b.addEventListener("load",function(){c()});
b.addEventListener("error",function(){d()});
b.src=a})};
mUa=function(a){return!!a};
nUa=function(a){return!!a};
oUa=function(a,b,c){var d=a.rowIndex;d!==void 0&&_.ko(a.hostElement,"yt-section-reactive-dismissal",[d,b,c])};
_.Xt=function(a,b,c){a=_.h(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;if(d===b)break;for(var e=_.h(c),g=e.next();!g.done;g=e.next())if(g=g.value,d.tagName===g||!_.x("web_event_button_role_check_killswitch")&&d.role==="button"&&g==="BUTTON")return!0}return!1};
_.Yt=function(a,b,c){a=_.h(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;if(d===b)break;for(var e=_.h(c),g=e.next();!g.done;g=e.next())if(d.id===g.value)return!0}return!1};
Zt=function(a,b){if(!a&&!b)return"medium";a=Math.max(a||0,b||0);return a>=256?"large":a>=96?"medium":"small"};
pUa=function(a){switch(a){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
_.bu=function(){var a=_.v().resolve(_.Wi(_.$t));return a?(a=a.getCurrentPage())?_.au(a):null:null};
_.cu=function(){var a=_.bu();if(!a){var b=_.v().resolve(_.Wi(_.$t)),c=b?typeof b:"no page manager";b=b?b.getCurrentPage():null;c=new _.qj("Player is missing when requested.",c,b?b.tagName:"no page");_.Bl(c)}return a};
_.au=function(a){return a&&a.getPlayer?a.getPlayer():null};
qUa=function(a,b){a={args:{raw_player_response:a}};b&&(a.args=Object.assign({},a.args,b));return a};
rUa=function(a){if(a.args){if(a.args.raw_player_response)return a.args.raw_player_response;if(a.args.player_response)return JSON.parse(a.args.player_response)}};
_.sUa=function(a,b){var c={url:"/watch?v="+a.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};a.playlistId&&(c.url+="&list="+a.playlistId);a.playerParams&&(c.url+="&pp="+a.playerParams);a={watchEndpoint:a,commandMetadata:{webCommandMetadata:c}};b&&(a.clickTrackingParams=b);return a};
uUa=function(){return tUa||!!_.Ji("yt.player.Application")};
wUa=function(){return vUa||!!document.querySelector("link#player-css")};
yUa=function(){function a(){tUa=!0;xUa.resolve()}
var b,c;return _.l(function(d){xUa||(xUa=new _.gq,uUa()?a():(b=document.createElement("script"),b.addEventListener("load",a),c=_.wg(_.Ei("PLAYER_JS_URL")),_.Xd(b,c),document.head.appendChild(b)));return d.return(xUa.promise)})};
AUa=function(){function a(){vUa=!0;zUa.resolve()}
if(!zUa)if(zUa=new _.gq,wUa())a();else{var b=document.createElement("link");b.id="player-css";b.addEventListener("load",a);var c=_.wg(_.Ei("PLAYER_CSS_URL"));_.$d(b,c,"stylesheet");document.head.appendChild(b)}return zUa.promise};
BUa=function(){return uUa()&&wUa()?Promise.resolve([]):Promise.all([yUa(),AUa()])};
CUa=function(a,b,c){var d={args:{}};a&&(d.args.raw_player_response=a);b&&(d.args.raw_watch_next_response=b);c&&(d.args=Object.assign({},d.args,c));return d};
GUa=function(a,b,c){var d=!1;d=d===void 0?!0:d;a=typeof a==="string"?_.du(document,a):a;var e=DUa+"_"+_.ab(a),g=EUa[e];if(g&&d)return FUa(b,c)?g.api.loadVideoByPlayerVars(b.args||null):g.loadNewVideoConfig(b),g.api;g=new eu(a,e,b,c,void 0);EUa[e]=g;g.addOnDisposeCallback(function(){delete EUa[g.getId()]});
return g.api};
FUa=function(a,b){return b&&b.serializedExperimentFlags?b.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):a&&a.args&&a.args.fflags?a.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
HUa=function(){var a=new _.gq;a.resolved=!1;var b=a.resolve;a.resolve=function(c){a.resolved=!0;b(c)};
return a};
JUa=function(a){var b={};IUa().install((b.document_disposed={callback:a},b))};
fu=function(a,b){if(!a&&Math.random()<=_.$i("kevlar_unified_player_logging_threshold")){a=Error("rh`"+(b?b:"Unspecified error"));if(_.x("kevlar_unified_player_throw_errors"))throw a;_.Dl(a)}};
_.KUa=function(){var a=_.Ji("ytDebugData.callbacks");a||(a={},_.Rj("ytDebugData.callbacks",a));return a};
MUa=function(a,b){var c=_.KUa();if(_.x("web_dd_iu")||LUa.includes(a))c[a]=b};
NUa=function(){return _.l(function(a){return a.return({isLeader:_.xFa(_.Yp().getState()),c:_.Ei("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.Ei("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
OUa=function(){var a;_.l(function(b){if(b.nextAddress==1)return MUa("APP_STATE",NUa),_.p(b,_.v().resolve(_.gu),2);a=b.yieldResult;MUa("PI",function(){return _.l(function(c){return c.return(a.getVideoStats())})});
_.se(b)})};
PUa=function(a){var b=_.Yn(_.Qn(_.ja.location.href));a=_.Yn(_.Qn(a));return _.x("kevlar_clear_non_displayable_url_params")?b==hu(a):hu(b)==hu(a)};
hu=function(a){var b=_.QUa(a);a=a.slice(0);var c=["frags"];_.x("kevlar_hide_pp_url_param")&&c.push("pp");_.x("kevlar_hide_time_continue_url_param")&&c.push("time_continue");c=_.h(c);for(var d=c.next();!d.done;d=c.next())d=d.value,a=_.$n(_.Yn(a),d);return _.Yn(a)+(b?"#"+b:"")};
iu=function(a,b){b=Number(b)*1E3;var c=Math.round((0,_.Uj)()),d=c.toString();a={innertubeResponse:a,serverDateTimestampMs:d,lastModifiedTimestampMs:d,expireTimestampMs:(c+b).toString()};if(b=_.Ei("INNERTUBE_CONTEXT_CLIENT_NAME"))a.clientName=b;return a};
SUa=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++RUa};
_.TUa=function(){var a=_.En(),b=_.Fn();b&&a&&_.Uo(b,[a],!0)};
VUa=function(a){return a&&UUa.some(function(b){return a.includes(b)})};
aVa=function(a){var b=_.y(a,_.Ml);if(!b)return!1;var c=b.url,d=b.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!c)return _.Bl(Error("wh")),!1;if(b.target==="TARGET_NEW_WINDOW"){var e={};_.x("resolve_url_parent_tracking_params")&&(!_.Si(c)||Ti(window.location.href,c))&&(e={endpoint:a,itct:a.clickTrackingParams});WIa(e);a=null;try{if(d){a:{var g=c,k=e;d=d===void 0?!1:d;k&&_.Zn(g,k);var m=_.Gd(g),n=_.Cd(m);g!=n&&_.Ki(Error("Wf`"+g));g=n;try{if(d){n=g;n=Vra(n);Eq(n);a=_.Rd(window,n,"_blank",
"attributionsrc");break a}}catch(w){_.Hi(w)}Eq(g);a=_.Rd(window,m,"_blank")}WUa(_.v().resolve(XUa),a,c);return!0}}catch(w){_.Bl(w)}_.Zn(c,e);e={target:"_blank",noopener:!b.allowOpener};b=window;m=Bd(c)?c:_.Gd(typeof c.href!="undefined"?c.href:String(c));a=self.crossOriginIsolated!==void 0;g="strict-origin-when-cross-origin";window.Request&&(g=(new Request("/")).referrerPolicy);n=e.noreferrer;if(a&&n&&g==="unsafe-url")throw Error("ne");g=n&&!a;n=e.target||c.target;d=[];k=[];var r=!1;for(u in e){var t=
e[u];switch(u){case "width":case "height":case "top":case "left":d.push(u+"="+t);break;case "target":break;case "noopener":case "noreferrer":t?k.push(u):(r=!0,k.push(u+"=false"));break;case "attributionsrc":d.push(u+(t?"="+t:""));break;default:d.push(u+"="+(t?1:0))}}var u=n!==void 0&&!["_blank","_self","_top","_parent",""].includes(n);u=Ca()&&u;YUa&&a&&d.length===0&&k.length>0&&!u&&!r?(k.length===2&&(k=["noreferrer"]),_.Rd(b,m,n,k[0]),a=ZUa()):(u=d.join(","),_.Ia()&&b.navigator&&b.navigator.standalone&&
n&&n!="_self"?(u=_.lg("A"),Ld(u,m),u.target=n,g&&(u.rel="noreferrer"),((e=e.attributionsrc)||e==="")&&u.setAttribute("attributionsrc",e),e=document.createEvent("MouseEvent"),e.initMouseEvent("click",!0,!0,b,1),u.dispatchEvent(e),u=ZUa()):g?(u=_.Rd(b,"",n,u),b=_.Cd(m),u&&(u.opener=null,b===""&&(b="javascript:''"),b='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+ju(b)+'">',b=Nd(b),(e=u.document)&&e.write&&(e.write(Pd(b)),e.close()))):((u=_.Rd(b,m,n,u))&&e.noopener&&
(u.opener=null),u&&e.noreferrer&&(u.opener=null)),a=u);WUa(_.v().resolve(XUa),a,c);return!0}u=_.gj(c);u=VUa(u)||c==="https://studio.youtube.com/";b=!(!_.Si(c)||Ti(window.location.href,c));e=c.indexOf("disable_polymer=1")>=0;if(b||e||u)Eq(c),Go(),_.Fq(c,void 0,void 0,window.top,$Ua);else return _.Dl(new _.qj("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",a)),!1;return!0};
_.dVa=function(a,b){b=b===void 0?0:b;if(!(_.y(a,bVa)||_.y(a,cVa)||_.y(a,_.Ml)&&_.y(a,_.Ml).url))return!1;var c,d=(c=_.y(a,_.Ml))==null?void 0:c.url;c=d?{externalLinkData:{url:d}}:null;return _.ms().clickCommand(a,c,b)};
_.ku=function(a,b){return _.mp(a.entities,"subscriptionStateEntity",b)};
eVa=function(a,b){return _.mp(a.entities,"subscriptionNotificationStateEntity",b)};
fVa=function(a,b){return _.mp(a.entities,"upcomingEventReminderStateEntity",b)};
gVa=function(a,b){return _.mp(a.entities,"engagementToolbarSurfaceEntityPayload",b)};
hVa=function(a,b){return _.mp(a.entities,"triStateButtonStateEntityPayload",b)};
iVa=function(a,b){return _.mp(a.entities,"commerceCartCheckoutButtonEntity",b)};
_.jVa=function(a,b){return _.mp(a.entities,"playlistLoopStateEntity",b)};
kVa=function(a,b){return _.mp(a.entities,"commandEntity",b)};
mVa=function(a,b,c,d,e){e=e===void 0?{}:e;return function(g){var k,m;var n=((k=a.loggingDirectives)==null?0:(m=k.clientVeSpec)==null?0:m.uiType)?_.lu(a.loggingDirectives.clientVeSpec.uiType):void 0;e.clickedVisualElement||(e.clickedVisualElement=n);n=lVa(a,b);c(n,g);n=_.h(n);for(k=n.next();!k.done;k=n.next()){k=k.value;m=d;var r=g,t=e;t.form?t.form.event=r:t.form={element:m,event:r};Dt(k,t)}}};
lVa=function(a,b){var c=[];b?(a.toggledCommand&&c.push(a.toggledCommand),a.toggledServiceEndpoint&&c.push(a.toggledServiceEndpoint)):(a.defaultCommand&&c.push(a.defaultCommand),a.defaultServiceEndpoint&&c.push(a.defaultServiceEndpoint),a.defaultNavigationEndpoint&&c.push(a.defaultNavigationEndpoint));return c};
nVa=function(a,b){var c=a.toggledStyle||a.style,d;switch((d=b?c:a.style)==null?void 0:d.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"}}};
_.nu=function(){return _.l(function(a){return a.nextAddress==1?_.p(a,_.v().resolve(_.gu),2):a.return(_.v().resolve(_.mu)())})};
_.ou=function(){return xi(function(){return{lottieEl:void 0}})};
oVa=function(a){var b,c;_.l(function(d){if(d.nextAddress==1)return _.p(d,_.nu(),2);b=d.yieldResult;if((c=b)==null||!c.addEventListener)return pu(),d.return();b.addEventListener("onCueRangeEnter",a);_.se(d)})};
pVa=function(a){var b,c;_.l(function(d){if(d.nextAddress==1)return _.p(d,_.nu(),2);b=d.yieldResult;if((c=b)==null||!c.removeEventListener)return pu(),d.return();b.removeEventListener("onCueRangeEnter",a);_.se(d)})};
qVa=function(a){var b,c,d,e,g;_.l(function(k){if(k.nextAddress==1)return _.p(k,_.nu(),2);b=k.yieldResult;if((c=b)==null||!c.addCueRange)return pu(),k.return();d=_.h(a.timings);for(e=d.next();!e.done;e=d.next())g=e.value,b.addCueRange(a.uniqueId+"-"+g,g/1E3,(g+100)/1E3);_.se(k)})};
rVa=function(a){var b,c,d,e,g;_.l(function(k){if(k.nextAddress==1)return _.p(k,_.nu(),2);b=k.yieldResult;if((c=b)==null||!c.removeCueRange)return pu(),k.return();d=_.h(a.timings);for(e=d.next();!e.done;e=d.next())g=e.value,b.removeCueRange(a.uniqueId+"-"+g);_.se(k)})};
sVa=function(){var a,b,c;return _.l(function(d){if(d.nextAddress==1)return _.p(d,_.nu(),2);a=d.yieldResult;if((b=a)==null||!b.getPlayerState)return pu(),d.return();c=a.getPlayerState();return d.return(c===2)})};
pu=function(){_.Dl(new _.qj("Smartimation player does not exist or is corrupted"))};
_.uVa=function(a){function b(n){var r;return _.l(function(t){if(t.nextAddress==1)return(r=!n.startsWith(d.uniqueId)||!d.enabled)?t.jumpTo(2):_.p(t,sVa(),3);t.nextAddress!=2&&(r=t.yieldResult);if(r)return t.return();c();setTimeout(function(){m(!1)},1500);
_.se(t)})}
function c(){setTimeout(function(){m(!0);var n;(n=e.lottieEl)==null||n.goToAndPlay(0)},150)}
var d=a.settings;a=a.children;var e=_.ou(),g=_.h(Lr(!1)),k=g.next().value,m=g.next().value;d||(d={uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]},_.Dl(new _.qj("Smartimation Settings is undefined")));ui(function(){if(d.experimentEnabled)return d.enabled?oVa(b):(m(!1),pVa(b)),function(){pVa(b)}},[d.enabled,
d.experimentEnabled]);ui(function(){if(d.experimentEnabled)return qVa(d),function(){rVa(d)}},[d.timings.join("")]);
return _.q("yt-smartimation",{class:tVa(k,d)},_.Qg(d.experimentEnabled,function(){var n=d.uniqueId+"-border",r,t;var u="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((t=(r=_.v().resolve(_.Wi(_.Ns)))==null?void 0:r())!=null&&t?"dark":"light")+"_v2.json";return _.q("div",{class:"smartimation__border"},_.q(ASa,{className:"smartimation__border-gradient",data:{animationRef:e,animationConfig:{name:n,autoplay:!1,loop:!1,path:u}}}))}),_.q("div",{class:"smartimation__content"},
a))};
tVa=function(a,b){var c=["smartimation"];b.experimentEnabled&&c.push("smartimation--experiment-enabled");a&&c.push("smartimation--active-border");try{var d;var e=(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(g){_.Dl(new _.qj("Smartimation CSS.supports threw an error")),e=!1}e&&c.push("smartimation--enable-masking");
return c.join(" ")};
BVa=function(a,b,c,d,e){var g=a.playlistId?vVa:wVa;b=b();c=c();e=!!a.videoId&&e()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.wp(b))return xVa({data:a,actionType:g,disabled:e},c);if(a.videoId&&d())return yVa({data:a,actionType:g,disabled:e});switch(b){case "TRANSFER_STATE_UNKNOWN":return yVa({data:a,actionType:g,disabled:e});case "TRANSFER_STATE_FAILED":return a.videoId?zVa({data:a,actionType:g,disabled:e}):AVa({data:a,actionType:g,disabled:e});case "TRANSFER_STATE_COMPLETE":return AVa({data:a,
actionType:g,disabled:e});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return xVa({data:a,actionType:g,disabled:e},c);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return a.videoId?zVa({data:a,actionType:g,disabled:e}):yVa({data:a,actionType:g,disabled:e});default:return yVa({data:a,actionType:g,disabled:e})}};
CVa=function(a,b){var c=a.onTapCommand,d=_.Es(c);if(a.videoId&&_.y(d,_.qu))return _.y(d,_.qu).action=b,c;a.playlistId&&_.y(d,_.ru)&&(_.y(d,_.ru).action=b);return c};
yVa=function(a){var b=a.data;var c=a.actionType;a=a.disabled;return{text:DVa,iconType:"OFFLINE_DOWNLOAD",onTap:CVa(b,c.ACTION_ADD),disabled:a}};
xVa=function(a,b){var c=a.data;var d=a.actionType;a=a.disabled;var e="OFFLINE_DOWNLOAD";b>=0&&b<=.1?e="OFFLINE_DOWNLOADING_ZERO":b>.1&&b<=.3?e="OFFLINE_DOWNLOADING_TWENTY":b>.3&&b<=.5?e="OFFLINE_DOWNLOADING_FORTY":b>.5&&b<=.7?e="OFFLINE_DOWNLOADING_SIXTY":b>.7&&b<1?e="OFFLINE_DOWNLOADING_EIGHTY":b===1&&(e="OFFLINE_PIN");return{text:EVa,iconType:e,onTap:CVa(c,d.ACTION_REMOVE_WITH_PROMPT),disabled:a}};
AVa=function(a){var b=a.data;var c=a.actionType;a=a.disabled;return{text:FVa,iconType:"OFFLINE_PIN",onTap:CVa(b,c.ACTION_REMOVE_WITH_PROMPT),disabled:a}};
zVa=function(a){var b=a.data;var c=a.actionType;a=a.disabled;return{text:GVa,iconType:"OFFLINE_DOWNLOAD",onTap:CVa(b,c.ACTION_RETRY),disabled:a}};
_.su=function(a,b){return NNa(a,[b])};
_.tu=function(a,b){var c=ENa();return _.kh(function(){c();return Jr(a,[_.zh(b)||""])},void 0,"HaeHEc")};
HVa=function(a){var b=_.tu(_.Jp,function(){return a().videoId}),c=_.tu(_.Kp,function(){return a().playlistId});
return function(){return a().videoId?b:a().playlistId?c:_.h(_.fh("TRANSFER_STATE_UNKNOWN","Qibycf")).next().value}};
IVa=function(a){var b=_.tu(Lp,function(){return a().videoId}),c=_.tu(_.wFa,function(){return a().playlistId});
return function(){return a().videoId?b:a().playlistId?c:_.h(_.fh(0,"K4tgOc")).next().value}};
JVa=function(a){var b=_.tu(_.DFa,function(){return a().videoId});
return function(){return a().videoId?b:_.h(_.fh(!1,"Oaxwcf")).next().value}};
KVa=function(a){var b=_.tu(zFa,function(){return a().videoId});
return function(){return a().videoId?b:_.h(_.fh("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN","MsSpJc")).next().value}};
LVa=function(){return{}};
OVa=function(a){var b=a.backgroundLottieRef;var c=a.foregroundLottieRef;var d=a.children;var e=a.wrapperClass;a=a.disableAnimation;a=(_.x("web_animated_actions")||_.x("web_animated_actions_v2"))&&!a;return _.q("yt-animated-action",{class:_.jt("animated-action__container",e)},_.q("div",{class:"animated-action__content-with-background"},_.Qg(a,function(){return _.q(MVa,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:{animationRef:b,animationConfig:{name:"animated-actions-background",
autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+(NVa()?"dark":"light")+"_v5.json"}}})}),d),_.Qg(a,function(){return _.q(MVa,{lottiePlayerProps:{animationRef:c,
animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(NVa()?"dark":"light")+"_v4.json"}}})}))};
MVa=function(a){var b=a.wrapperClass;var c=a.lottieClass;a=a.lottiePlayerProps;return _.q("div",{class:_.lt("animated-action__lottie",b),"aria-hidden":"true"},_.q(ASa,{className:c,data:a}))};
NVa=function(){var a,b;return(b=(a=_.v().resolve(_.Wi(_.Ns)))==null?void 0:a())!=null?b:!1};
QVa=function(a,b){a=a===void 0?PVa:a;switch(b.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},a,{isOpen:b.payload});default:return a}};
SVa=function(a,b){a=a===void 0?RVa:a;switch(b.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},a,{isAllowed:b.payload});default:return a}};
UVa=function(a,b){a=a===void 0?TVa:a;switch(b.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},a,{errorMessage:b.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},a,{title:b.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},a,{privacy:b.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},a,{isDisabled:b.payload});default:return a}};
WVa=function(a,b){a=a===void 0?VVa:a;switch(b.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},a,{isOpen:b.payload});default:return a}};
YVa=function(a,b){a=a===void 0?XVa:a;switch(b.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},a,{isFullscreen:b.payload});case "SET_NAVIGATION_BUTTON":var c=b.payload.targetId,d=Object.assign({},a.navigationButtons);d[c]=b.payload.button;return Object.assign({},a,{navigationButtons:d});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},a,{topPanelId:b.payload});case "SET_SECONDARY_HEADER":return c=b.payload.panelId,d=Object.assign({},a.secondaryHeader),d[c]=b.payload.secondaryHeader,
Object.assign({},a,{secondaryHeader:d});default:return a}};
bWa=function(){return nn(Object.assign({},{entities:HDa,voiceSearch:pGa,engagementPanel:YVa,bottomSheet:QVa,cinematicSetting:SVa,shorts:xGa,drawerLayout:WVa,createPlaylist:UVa,locationCollection:ZVa,reportChannel:$Va,reportForm:aWa},yGa))};
cWa=function(a,b){return"https://www.gstatic.com/youtube/img/lottie/"+a+"/"+b+".json"};
dWa=function(a){return{lottiePlayerProps:{animationConfig:{name:a.name,path:cWa("custom_animated_like_icon",a.path),loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},totalFrames:a.totalFrames,lazyLoad:!0}};
eWa=function(a,b){_.zk.addLowPriorityJob(function(){var c,d,e;return _.l(function(g){switch(g.nextAddress){case 1:return _.me(g,2),_.p(g,qSa(),4);case 4:return _.p(g,fetch(a),5);case 5:return c=g.yieldResult,_.p(g,c.json(),6);case 6:d=g.yieldResult;ht.set(a,d);requestAnimationFrame(function(){b(d)});
_.Jj(g,0);break;case 2:e=_.re(g),_.Dl(e),_.se(g)}})})};
fWa=function(a){var b={animationConfig:{},listeners:{}},c=function(){a(!0)};
b.listeners.data_failed=c;b.listeners.error=c;b.listeners.data_ready=function(){a(!1)};
return b};
iWa=function(a){var b=a.model;var c=a.subscribed;var d=a.isOverlay;var e=a.element;var g=a.commandController;var k=a.notificationState;if(c){var m,n;var r=(b==null?void 0:(m=b.buttonStyle)==null?void 0:m.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:b==null?void 0:(n=b.unsubscribeButtonContent)==null?void 0:n.buttonText}else{var t;r=b==null?void 0:(t=b.subscribeButtonContent)==null?void 0:t.buttonText}a:{var u;switch(b==null?void 0:(u=b.buttonStyle)==
null?void 0:u.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":m="S";break a;default:m="M"}}a:if(d)d="overlay";else switch(b.backgroundStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_FULLSCREEN_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY_RED":d="overlay";break a;default:d="mono"}a:if(c)var w="tonal";else switch((w=b.buttonStyle)==
null?void 0:w.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":w="tonal";break a;default:w="filled"}return{style:d,type:w,state:b.disableSubscribeButton?"disabled":"active",size:m,focused:a.focused,toggled:c,accessibilityLabel:gWa(b,c,k),buttonText:r,iconPosition:b.disableNotificationBell?"none":"leading-trailing",onTap:hWa(b,c,e,g),disableTextEllipsis:!!a.disableTextEllipsis}};
hWa=function(a,b,c,d){return function(e){if(b){var g;var k=a.disableNotificationBell?_.Es(a==null?void 0:(g=a.unsubscribeButtonContent)==null?void 0:g.onTapCommand):_.Es(a==null?void 0:a.onShowSubscriptionOptions)}else{var m;k=_.Es(a==null?void 0:(m=a.subscribeButtonContent)==null?void 0:m.onTapCommand)}k&&Dt(k,{form:{element:c},commandController:d});e.stopPropagation()}};
gWa=function(a,b,c){if(b){if(a==null?0:a.disableNotificationBell){var d;return a==null?void 0:(d=a.unsubscribeButtonContent)==null?void 0:d.accessibilityText}switch(c){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var e;return a==null?void 0:(e=a.bellAccessibilityData)==null?void 0:e.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var g;return a==null?void 0:(g=a.bellAccessibilityData)==null?void 0:g.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var k;return a==null?void 0:(k=
a.bellAccessibilityData)==null?void 0:k.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var m;return a==null?void 0:(m=a.bellAccessibilityData)==null?void 0:m.disabledLabel;default:var n;return a==null?void 0:(n=a.unsubscribeButtonContent)==null?void 0:n.accessibilityText}}else{var r;return a==null?void 0:(r=a.subscribeButtonContent)==null?void 0:r.accessibilityText}};
uu=function(a){if(!a)return null;switch(a){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":a="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":a="NOTIFICATIONS_OFF";break;default:a="NOTIFICATIONS_NONE"}return a};
jWa=function(a,b,c){c.subscribed!==b&&((c=c.key)&&_.Kr(_.vu("subscriptionStateEntity",c,{key:c,subscribed:b})),a.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:b})),b||_.ho(a,"yt-unsubscribe-action"))};
mWa=function(a){a=_.y(_.Es(a),_.kWa);var b,c,d,e;return(e=_.y(a==null?void 0:(b=a.panelLoadingStrategy)==null?void 0:(c=b.inlineContent)==null?void 0:(d=c.sheetViewModel)==null?void 0:d.content,lWa))==null?void 0:e.listItems};
oWa=function(a,b){if(a.onShowSubscriptionOptions&&b&&(a=mWa(a.onShowSubscriptionOptions),a!=null&&a.length)){var c=uu(b);a.forEach(function(d){d=_.y(d,_.nWa);var e,g,k,m,n=d==null?void 0:(e=d.leadingImage)==null?void 0:(g=e.sources)==null?void 0:(k=g[0])==null?void 0:(m=k.clientResource)==null?void 0:m.imageName;d&&n&&(d.isSelected=n===c)})}};
pWa=function(a,b,c,d){b&&c?a.style.width=c+"px":!b&&d&&(a.style.width=d+"px")};
qWa=function(a,b,c){var d;(d=a.lottieEl)==null||d.goToAndPlay(0);var e;(e=b.lottieEl)==null||e.goToAndPlay(0);_.wu(_.zk,function(){var g;(g=c.lottieEl)==null||g.goToAndPlay(0)},300)};
_.tWa=function(a){var b=_.Rl(),c=_.Rl(),d=_.Rl(),e=_.ou(),g=_.ou(),k=_.ou(),m=_.v().resolve(xu),n,r=(n=_.su(_.ku,a.data.stateEntityStoreKey))!=null?n:void 0,t,u,w,A=(w=_.su(eVa,(u=(t=a.data.notificationStateEntityStoreKeys)==null?void 0:t.subsNotificationStateKey)!=null?u:""))!=null?w:void 0;n=!!a.data.disableNotificationBell;var C=!a.data.enableSubscribeButtonPostClickAnimation;t=_.h(Lr(0));var G=t.next().value,J=t.next().value;t=_.h(Lr(0));var I=t.next().value,R=t.next().value;t=_.h(Lr(!1));var ca=
t.next().value,V=t.next().value;t=_.h(Lr(!1));var fa=t.next().value,aa=t.next().value,ma=yi(!1),Ba=yi("");t=_.h(Lr(!1));var Da=t.next().value,za=t.next().value,Fa=function(){aa(!0);_.wu(_.zk,function(){aa(!1)},1500)};
ui(function(){fa&&!C&&r&&qWa(e,g,k)},[fa]);
ui(function(){!C&&r&&(a.animateWidth&&pWa(b.value,!!r.subscribed,G,I),r.subscribed&&r.key===Ba.value&&Fa(),r.key&&(Ba.value=r.key))},[r==null?void 0:r.subscribed,
r==null?void 0:r.key]);var bb=wi(function(){var tb=a.data,Fb=!(r==null||!r.subscribed),dd=a.isOverlay,be=ca?b.value:void 0,ia=A==null?void 0:A.state;oWa(tb,ia);return iWa({model:tb,subscribed:Fb,isOverlay:dd,element:be,notificationState:ia,disableTextEllipsis:!0,focused:Da})},[r,
A,Da,a.isOverlay,ca]),kb=function(){var tb=_.v().resolve(_.Wi(_.yu));tb&&za(tb.isKeyBoardInUse())},Ua=function(){za(!1)};
_.Tl(b,"yt-service-request-sent",function(tb){Fc();r&&(tb.detail.endpoint.subscribeEndpoint||tb.detail.endpoint.unsubscribeEndpoint)&&jWa(b.value,!r.subscribed,r)});
_.Ql("yt-player-subscribe",function(tb){r&&tb===a.data.channelId&&jWa(b.value,!0,r)});
_.Ql("yt-player-unsubscribe",function(tb){r&&tb===a.data.channelId&&jWa(b.value,!1,r)});
_.Ql("yt-update-subscribe-button-action",function(tb){tb=_.y(tb,rWa);r&&tb&&tb.channelId===a.data.channelId&&jWa(b.value,!!tb.subscribed,r)});
_.vi(function(){b.value&&(b.value.addEventListener("focusin",kb),b.value.addEventListener("focusout",Ua));_.ul(_.zk,function(){Fc()});
V(!0);return function(){b.value&&(b.value.removeEventListener("focusin",kb),b.value.removeEventListener("focusout",Ua))}});
var Fc=function(){if(!C&&a.animateWidth&&(c==null?0:c.value)&&(d==null?0:d.value)&&!ma.value){var tb=_.h((r==null?0:r.subscribed)?[c,d]:[d,c]),Fb=tb.next().value;tb=tb.next().value;Fb=Math.ceil(Fb.value.getBoundingClientRect().width);tb=Math.ceil(tb.value.getBoundingClientRect().width);J(Fb);R(tb);pWa(b.value,!(r==null||!r.subscribed),Fb,tb);ma.value=!0}},id=function(){var tb=uu(A==null?void 0:A.state);
return C||tb!=="NOTIFICATIONS_NONE"?function(){return m(tb)}:function(){Qs(sWa)({animatedIconType:"NOTIFICATION_BELL",
active:!1,animationRef:k})}};
t=function(){var tb=uu(A==null?void 0:A.state);return C||tb!=="NOTIFICATIONS_NONE"?function(){return _.q(_.tt,{icon:tb!=null?tb:void 0})}:function(){return _.q(sWa,{animatedIconType:"NOTIFICATION_BELL",
active:!1,animationRef:k})}};
var Mb=!(r==null||!r.subscribed)&&!n&&!(A==null||!A.state),wd=!(r==null?0:r.subscribed),Tb=wd&&!n&&!(A==null||!A.state);n={};u={};return _.q("yt-subscribe-button-view-model",{class:_.lt("yt-subscribe-button-view-model-wiz",(n["yt-subscribe-button-view-model-wiz__can-animate-width"]=!(r==null||!r.subscribed)&&a.animateWidth&&fa,n["yt-subscribe-button-view-model-wiz--hidden"]=!(r==null?0:r.subscribed)&&a.data.hideWhenUnsubscribed,n)),el:b},_.q(OVa,{backgroundLottieRef:e,foregroundLottieRef:g,wrapperClass:_.lt("yt-subscribe-button-view-model-wiz__animated-action-wrapper",
(u["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=a.animateWidth&&fa,u["yt-subscribe-button-view-model-wiz__static-width"]=!a.animateWidth,u)),disableAnimation:C},_.q("div",{el:c,class:_.lt("yt-subscribe-button-view-model-wiz__container"),idomKey:a.data.channelId},_.x("web_wiz_button_shape")?_.q(vt,{data:bb,icon:Mb?t():void 0,secondaryIcon:Mb?function(){return _.q(_.tt,{icon:"EXPAND"})}:void 0}):_.q(Ul,null,function(){Ct(bb,Mb?id():void 0,Mb?function(){return m("EXPAND")}:
void 0)}))),_.q("div",{el:d,
class:"yt-subscribe-button-view-model-wiz__invisible"},!a.animateWidth||C||ma.value?null:_.x("web_wiz_button_shape")?_.q(vt,{data:iWa({model:a.data,subscribed:wd,isOverlay:a.isOverlay,element:b.value,disableTextEllipsis:!0}),icon:Tb?function(){var tb;return _.q(_.tt,{icon:(tb=uu(A==null?void 0:A.state))!=null?tb:void 0})}:void 0,
secondaryIcon:Tb?function(){return _.q(_.tt,{icon:"EXPAND"})}:void 0}):_.q(Ul,null,function(){Ct(iWa({model:a.data,
subscribed:wd,isOverlay:a.isOverlay,element:b.value,disableTextEllipsis:!0}),Tb?function(){return m(uu(A==null?void 0:A.state))}:function(){},Tb?function(){return m("EXPAND")}:void 0)})))};
zu=function(){return _.v().resolve(_.Wi(uWa))||{}};
vWa=function(a){return typeof a==="function"};
_.Au=function(a){Object.keys(a);var b=function(c,d){var e=b.mapping||a;if(!c)return _.q(_.Vh,null);if(Array.isArray(c)&&(c=wWa(e,b,c),Array.isArray(c))){if(!c.length)return _.q(_.Vh,null);if(c.length>1){for(var g=!1,k=!1,m=[],n={},r=0;r<c.length;n={data$jscomp$1810:void 0},r++)if(n.data$jscomp$1810=c[r],n.data$jscomp$1810){var t=xWa(n.data$jscomp$1810,e),u=t.mappingEntry;t=t.rendererName;u&&t&&(u&&(!vWa(u)&&yWa(u)&&(k=!0),!vWa(u)&&u.asyncId||(g=!0)),m.push(zWa(n.data$jscomp$1810,u,t,b,d)))}return k&&
!g?_.q(_.Vh,null,AWa()):_.q(_.Vh,null,m)}c=c[0]}if(!c)return _.q(_.Vh,null);c=wWa(e,b,[c])[0];if(!c)return _.q(_.Vh,null);g=xWa(c,e);e=g.mappingEntry;g=g.rendererName;return e&&g?_.q(_.Vh,null,zWa(c,e,g,b,d)):_.q(_.Vh,null)};
b.mapping=a;return b};
_.BWa=function(a){var b=void 0,c;for(c in a)if(a.hasOwnProperty(c)){b=c;break}return b};
wWa=function(a,b,c){var d,e=(d=zu().preProcessOptions)==null?void 0:d.idomOptions;if(!e)return c;zu();return e.preProcessPropsIdom(a,c,b.triggerRerender)};
xWa=function(a,b){return(a=_.BWa(a))?{mappingEntry:b[a],rendererName:a}:{mappingEntry:void 0,rendererName:void 0}};
zWa=function(a,b,c,d,e){if(!b)return _.q(_.Vh,null);var g={};e&&e[c]&&(g=Object.assign({},e[c]));a[c]!==void 0&&(g.data=a[c]);if(vWa(b))return b.debugName||(b.debugName=c),_.q(b,g);b.asyncId&&(d.pendingIdsMap=d.pendingIdsMap||{},d.pendingIdsMap[c]=b.asyncId);return b.templateFn?b.templateFn(g):yWa(b)?AWa():_.q(_.Vh,null)};
yWa=function(a){var b;return(b=a.showPlaceholder)!=null?b:zu().defaultShowPlaceholder};
AWa=function(){var a=zu().placeholder;return a()};
CWa=function(a,b){b=b===void 0?{shouldPersist:!0}:b;return{useUpdatableData:function(c,d){var e=[],g=_.h(_.qt(function(){var r=c();if(d!=null&&d.length&&e){var t=e.length>0;for(var u=!1,w=0;w<d.length;w++){var A=d[w]();t&&A!==e[w]&&(u=!0);e[w]=A}t=u}else t=!1;if(t)_.Bu.remove(n());else if(t=_.Bu.get(n()))return t;return r})),k=g.next().value,m=g.next().value,n=_.kh(function(){return a(c())},void 0,"VFraLb");
_.yh(function(){if(n()!=null){Cu.set(n(),[k,m,!1]);var r=n();_.wh(function(){Cu.delete(r)})}},"PFf2Xb");
return[k,function(r){m(r);b.shouldPersist&&_.Bu.set(n(),r)}]},
getData:function(c){var d;return(d=Cu.get(a(c)))==null?void 0:d[0]()},
updateData:function(c,d){c=a(c);var e=Cu.get(c);if(!e)return!1;var g=_.h(e);e=g.next().value;g=g.next().value;d=d(e());g(d);b.shouldPersist&&_.Bu.set(c,d);return!0},
useUpdatableDataIdom:function(c,d){var e=a(c),g=_.Bu.get(e),k=_.h(Lr(g!=null?g:c)),m=k.next().value,n=k.next().value,r=yi(g!=null?g:c);ui(function(){if(e!=null)return Cu.set(e,[function(){return r.value},
function(t){n(t);r.value=t},
Cu.has(e)]),_.zk.addJob(function(){_.Du(_.zk,function(){var t=Cu.get(e);t&&(t[2]=!1)},0)},8),function(){var t;
((t=Cu.get(e))==null?0:t[2])||Cu.delete(e)}},[e]);
ui(function(){m!==c&&(n(c),r.value=c)},d?[].concat(_.Be(d),[e]):[e]);
return[m,n]}}};
GWa=function(a){return DWa.includes(a)||EWa.includes(a)||FWa.includes(a)};
HWa=function(a){var b=_.h(_.fh(!0,"bKtO6d")),c=b.next().value;b.next();return function(){var d=fi(a.children());return _.q(_.oi,{cond:c,then:function(){return d},
else:a.fallback})}()};
_.Eu=function(a){var b=IWa(a),c=b.data,d=b.mapping,e=b.wrapper;b=b.pendingFallback;var g=function(){return JWa(_.zh(c))},k=function(){var m=g(),n=[];
m=_.h(m);for(var r=m.next();!r.done;r=m.next()){var t=void 0;r=r.value;var u=void 0;for(t in r)if(!(!r).hasOwnProperty(t)){u=t;break}(t=u)&&n.push(t)}return n};
return a.data?_.q(HWa,{fallback:b},function(){return _.q(_.ni,{each:k},function(m,n){var r=e?function(u){return e(function(){return d[m](u,n)},t,n)}:function(u){return d[m](u,n)};
r.debugName||(r.debugName=String(m));if(!d[String(m)])return document.createComment("");var t=KWa(g,m,n);return _.q(r,{data:t})})}):_.q(_.Vh,null)};
IWa=function(a){var b=a.targetId||LWa(a.children);if(!a.data||!b||_.x("mweb_new_replaceables_killswitch"))return Object.assign({},a,{mapping:a.children,wrapper:void 0});var c="stamper-"+MWa++,d=function(){var m;return(m=_.zh(a.targetId))!=null?m:c};
b=_.h(NWa(function(){var m=JWa(a.data());m.targetId=d;return m})).next().value;
var e=Object.assign({},zu().replaceableMapping,a.children);if(a.replacementWrapper){var g=e.notificationTextRenderer,k=e.notificationMultiActionRenderer;g&&(e.notificationTextRenderer=function(m,n){return a.replacementWrapper(g({data:m.data},n))});
k&&(e.notificationMultiActionRenderer=function(m,n){return a.replacementWrapper(k({data:m.data},n))})}return Object.assign({},a,{data:b,
mapping:e,wrapper:function(m,n,r){return TSa({targetId:d,stamperIndex:r},m)}})};
KWa=function(a,b,c){var d;return _.kh(function(){var e=a()[c()];if(e)d=e[b];else return _.Dl(new _.qj("Stamper failed to find "+String(b)+" at index "+c()+" of data array of length "+(a().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),d;return e[b]},void 0,"WRX0He")};
LWa=function(a){a=_.h(Object.keys(a));for(var b=a.next();!b.done;b=a.next())if(GWa(b.value))return!0;return!1};
JWa=function(a){return a?Array.isArray(a)?a:[a]:[]};
OWa=function(a){a=_.y(a,_.Fu);return(a==null?void 0:a.iconName)&&!(a==null?0:a.title)};
RWa=function(a,b){var c;return _.q(_.Vh,null,a==null?void 0:(c=a.actions)==null?void 0:c.map(function(d){return _.q("div",{class:function(){var e={"yt-flexible-actions-view-model-wiz__action":!0};e["yt-flexible-actions-view-model-wiz__action--row-action"]=b;e["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1;if(OWa(d))var g=!0;else if(g=_.y(d,_.Gu),(g==null?0:g.isToggled)&&OWa(g==null?void 0:g.toggledButtonViewModel)||(g==null||!g.isToggled)&&OWa(g==null?void 0:g.defaultButtonViewModel))g=
!0;else{var k;g=((k=_.y(d,PWa))==null?0:k.playlistId)?!0:!1}e=(e["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=g,e);return _.lt(e)}},QWa([d],{subscribeButtonViewModel:{isOverlay:!1,
animateWidth:!b}}))}))};
SWa=function(a){var b=a.layout===1,c,d=((c=a.data)==null?void 0:c.style)==="FLEXIBLE_ACTIONS_STYLE_SCROLLING";c={};d=(c["yt-flexible-actions-view-model-wiz"]=!0,c["yt-flexible-actions-view-model-wiz--inline"]=!b,c["yt-flexible-actions-view-model-wiz--scrollable"]=d,c);var e,g;return _.q("yt-flexible-actions-view-model",{class:_.lt(a.className,d)},(e=a.data)==null?void 0:(g=e.actionsRows)==null?void 0:g.map(function(k){return b?_.q("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},RWa(k,
b)):RWa(k,b)}))};
TWa=function(a){var b=_.y(a.data.toggleButtonViewModel,_.Gu),c,d=(c=a.data.dislikeEntityKey)!=null?c:"",e=_.su(ds,d);b=Object.assign({},b,{isToggled:e?e.likeStatus==="DISLIKE":b.isToggled});return _.q("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.q(_.Hu,{data:b,buttonShapeOverrides:a.buttonShapeOverrideables,onToggle:function(g){e&&g!==(e.likeStatus==="DISLIKE")&&e.key&&_.Kr(_.Iu("likeStatusEntity",e.key,{likeStatus:g?"DISLIKE":"INDIFFERENT",hadUserInteraction:g}))}}))};
VWa=function(a){var b=_.x("web_supports_animations_api"),c=_.y(a.data.toggleButtonViewModel,_.Gu),d,e,g,k,m=_.h(Lr({numberText:(k=(d=a.likeCountEntity)==null?void 0:(e=d.likeCountIfIndifferent)==null?void 0:e.content)!=null?k:"",numberValue:Number((g=a.likeCountEntity)==null?void 0:g.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1})),n=m.next().value,r=m.next().value,t,u,w,A;d=_.h(Lr({numberText:(A=(t=a.likeCountEntity)==null?void 0:(u=t.likeCountIfLiked)==null?void 0:u.content)!=null?
A:"",numberValue:Number((w=a.likeCountEntity)==null?void 0:w.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}));t=d.next().value;var C=d.next().value;u=_.h(Lr());var G=u.next().value,J=u.next().value,I;u=(I=a.data.likeStatusEntityKey)!=null?I:"";var R,ca;I=(ca=(R=a.likeCountEntity)==null?void 0:R.key)!=null?ca:"";var V=_.su(ds,u),fa=_.su(aPa,I);R=wi(function(){return(V==null?void 0:V.likeStatus)==="LIKE"},[V]);
ui(function(){var aa,ma=fa&&((aa=fa.likeCountIfIndifferent)==null?void 0:aa.content)!==n.numberText;if(!G&&ma){var Ba,Da;r({numberText:(Da=fa==null?void 0:(Ba=fa.likeCountIfIndifferent)==null?void 0:Ba.content)!=null?Da:"",numberValue:Number(fa==null?void 0:fa.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!0});var za,Fa;C({numberText:(Fa=fa==null?void 0:(za=fa.likeCountIfLiked)==null?void 0:za.content)!=null?Fa:"",numberValue:Number(fa==null?void 0:fa.likeCountIfLikedNumber),heightPx:36,
shouldAnimate:!0})}},[fa]);
c=Object.assign({},c,{isToggled:R});b=b&&a.likeCountEntity;return _.q("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.q(_.Hu,{data:c,buttonShapeOverrides:a.buttonShapeOverrideables,animatedTextPropsDefault:b?n:void 0,animatedTextPropsToggled:b?t:void 0,onToggle:function(aa){UWa(aa,V,G,J)},
style:function(){return a.disableIconAnimation?void 0:{animateIcon:"true"}}}))};
UWa=function(a,b,c,d){c&&_.zk.cancelJob(c);c=_.zk.addLowPriorityJob(function(){d(void 0)},5E3);
d(c);b&&a!==(b.likeStatus==="LIKE")&&b.key&&_.Kr(_.vu("likeStatusEntity",b.key,{key:b.key,likeStatus:a?"LIKE":"INDIFFERENT",hadUserInteraction:a}))};
YWa=function(a){var b,c=_.y((b=a.data)==null?void 0:b.likeButtonViewModel,WWa),d;b=_.y((d=a.data)==null?void 0:d.dislikeButtonViewModel,XWa);var e,g=(e=_.su(ds,(c==null?void 0:c.likeStatusEntityKey)||""))!=null?e:c==null?void 0:c.likeStatusEntity;d=wi(function(){var k=a.data,m;k=(k==null?void 0:(m=k.timedAnimationData)==null?void 0:m.animationTiming)||[];return{uniqueId:"like-dislike",timings:k,enabled:(g==null?void 0:g.likeStatus)==="INDIFFERENT"&&k.length>0,experimentEnabled:k.length>0}},[a.data,
g]);return _.q("segmented-like-dislike-button-view-model",{class:_.lt(a.className,"ytSegmentedLikeDislikeButtonViewModelHost"),"button-renderer":!0},_.q(_.uVa,{settings:d},_.q("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},c?_.q(VWa,{data:c,likeCountEntity:a.data.likeCountEntity,buttonShapeOverrideables:{segmentedPosition:"start"}}):null,b?_.q(TWa,{data:b,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}}):null)))};
_.ZWa=function(a,b){return _.mp(a.entities,"accountLinkStatusEntity",b)};
$Wa=function(a,b){return _.mp(a.entities,"hatsSurveyEntity",b)};
aXa=function(a,b){return _.mp(a.entities,"hatsSurveyStateEntity",b)};
bXa=function(a,b){return _.mp(a.entities,"quantityIncrementerEntity",b)};
gXa=function(a){var b=a.data;var c=a.className===void 0?"":a.className;var d=a.setMinWidth;a=a.forceIconOnly;var e=_.Rl();d=d?"ytwAccountLinkButtonViewModelHostMinWidth":"";var g=_.tu(_.ZWa,function(){var u;return(u=_.zh(b).accountLinkStatusEntityKey)!=null?u:""}),k=_.tu(_.ZWa,function(){var u;
return(u=_.zh(b).accountLinkStatusSecondaryEntityKey)!=null?u:""}),m=function(){if(!_.x("web_account_link_secondary_killswitch")){var u,w;
return((u=g())==null?void 0:u.linked)||((w=k())==null?void 0:w.linked)}var A;return(A=g())==null?void 0:A.linked};
_.yh(function(){var u=g();if(u){var w=cXa(new dXa,eXa(new fXa,!!u.linked));_.nu().then(function(A){A&&(A.setAccountLinkState(_.wc(w.JSC$9886_serializeBinary(),4)),A.updateAccountLinkingConfig(!!u.linked))})}},"Gt7MUb");
var n=function(){return _.y(_.zh(b).toggleButtonViewModel,_.Gu)};
_.Ql("yt-signal-action-show-account-link-dialog",function(){if(n()){var u=m()?n().toggledButtonViewModel:n().defaultButtonViewModel;u=_.y(u,_.Fu);var w;if((w=g())==null?0:w.isWarning){w=_.y(_.zh(b).warningButtonViewModel,_.Fu);if(!w){_.Ki(Error("xh"));return}u=w}var A;(w=_.Es((A=u)==null?void 0:A.onTap))&&_.qo([w],e.value)}else _.Ki(Error("yh"))});
var r=function(){var u=n();return Object.assign({},u,{isToggled:m()})},t=a?{iconPosition:"icon-only"}:{};
return _.q("account-link-button-view-model",{class:_.lt("ytwAccountLinkButtonViewModelHost",c,d),el:e,"button-renderer":!0},_.q("div",null,_.q(_.oi,{cond:function(){var u;if((u=g())==null?0:u.isWarning)return(u=_.y(_.zh(b).warningButtonViewModel,_.Fu))||_.Ki(Error("xh")),u},
then:function(u){return _.q(_.Ju,{data:u,buttonOverrides:t})},
else:function(){return _.q(_.Hu,{data:r,buttonShapeOverrides:t})}})))};
hXa=function(a){switch(a){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_PREMIUM":return 5;case "BADGE_STYLE_TYPE_SIMPLE":return 0;case "BADGE_STYLE_TYPE_AD":return 2;default:return 0}};
iXa=function(a){switch(a){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}};
jXa=function(a){switch(a){case 16:case 17:case 18:return!0;default:return!1}};
kXa=function(a){switch(a){case 2:return"badge-shape-wiz--ad";case 1:return"badge-shape-wiz--media";case 3:return"badge-shape-wiz--promoted";case 4:return"badge-shape-wiz--timely";case 5:return"badge-shape-wiz--premium";case 6:return"badge-shape-wiz--sale";case 7:return"badge-shape-wiz--membership";case 8:return"badge-shape-wiz--commerce";case 10:return"badge-shape-wiz--live";case 11:return"badge-shape-wiz--status-new";case 12:return"badge-shape-wiz--status-complete";case 13:return"badge-shape-wiz--status-warning";
case 14:return"badge-shape-wiz--status-error";case 15:return"badge-shape-wiz--status-default";case 16:return"badge-shape-wiz--thumbnail-default";case 17:return"badge-shape-wiz--thumbnail-live";case 18:return"badge-shape-wiz--thumbnail-special";default:return"badge-shape-wiz--default"}};
nXa=function(a){var b=a.data;var c=a.children;var d=lXa(b),e=(b==null?0:b.thumbnailSize)?b.thumbnailSize:"medium";a=!(b==null||!b.doubleStack);var g=!(b==null||!b.experimentEnabled),k={},m=(k["collections-stack-wiz__collection-stack1"]=!0,k[mXa(e)]=!0,k);if(b==null?0:b.customClassName1stStack)m[b.customClassName1stStack]=!0;e={};var n=(e["collections-stack-wiz__collection-stack2"]=a,e["collections-stack-wiz__collection-stack2--responsive-mode"]=b==null?void 0:b.enableResponsiveMode,e);if(b==null?
0:b.customClassName2ndStack)n[b.customClassName2ndStack]=!0;return _.q("yt-collections-stack",{class:"collections-stack-wiz",hidden:!g},_.Qg(b,function(){return _.q("div",null,_.Qg(b.doubleStack,function(){return _.q("div",{class:_.lt(n),style:"background-color:"+d})}),_.q("div",{class:_.lt(m),
style:"background-color:"+d}),c)}))};
mXa=function(a){switch(a){case "small":return"collections-stack-wiz__collection-stack1--small";case "medium":return"collections-stack-wiz__collection-stack1--medium";case "large":return"collections-stack-wiz__collection-stack1--large";default:return""}};
lXa=function(a){if(!a)return"";var b,c=(b=_.v().resolve(_.Wi(_.Ns)))==null?void 0:b(),d;if(!c&&((d=a.vibrantColorPalette)==null?0:d.iconInactiveColor))return Dq(a.vibrantColorPalette.iconInactiveColor,"1");var e;return c&&((e=a.darkColorPalette)==null?0:e.iconInactiveColor)?Dq(a.darkColorPalette.iconInactiveColor,"1"):a.color?Dq(a.color,"1"):a.sampledThumbnailColor?(a=a.sampledThumbnailColor,"rgba("+a.red+","+a.green+","+a.blue+");"):""};
_.Ku=function(a,b){if(!a.includes("DATE_PLACEHOLDER"))return a;var c=new Date(0);c.setUTCSeconds(b);return a.replace("DATE_PLACEHOLDER",oXa(c))};
_.Lu=function(a){a=_.pXa(a);return _.x("web_watch_enable_single_column_grid_view")?a:!1};
_.pXa=function(a){return a.watch.isWatchNarrowWidth};
qXa=function(a,b,c){return function(d){var e=a.command;e&&(Dt(e,{form:{element:c}}),b([e],d))}};
sXa=function(a,b,c,d,e){return function(g){var k=rXa(a,c);k&&Dt(k,{form:{element:d},commandController:e});b&&b.stopPropagation&&g.stopPropagation()}};
rXa=function(a,b){if(a.signInEndpoint&&!_.x("web_subscribe_sign_in_endpoint_killswitch"))return a.signInEndpoint;if(b){if(a.serviceEndpoints)return a.serviceEndpoints[1];if(a.onUnsubscribeEndpoints)return a.onUnsubscribeEndpoints[0]}else{if(a.serviceEndpoints)return a.serviceEndpoints[0];if(a.onSubscribeEndpoints)return a.onSubscribeEndpoints[0]}};
Mu=function(a,b){return b||(a==null?0:a.isChannelDelegate)?"disabled":"active"};
tXa=function(a,b){var c;switch((c=a.style)==null?void 0:c.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:Mu(a)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:Mu(a)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:Mu(a,!0)};case "OVERLAY":return b?{style:"overlay",type:"tonal",state:Mu(a)}:{style:"overlay",type:"filled",state:Mu(a)};default:return b?{style:"mono",type:"tonal",state:Mu(a)}:{style:"mono",type:"filled",state:Mu(a)}}};
uXa=function(a,b){var c=a.map(function(d){return d.toString()});
return _.ot(function(d){if(c.includes(d.key)){b&&d.preventDefault();var e;(e=d.currentTarget)==null||e.click()}})};
_.Nu=function(){return uXa(["Enter"])};
_.vXa=function(){return uXa(["Enter"," "],!0)};
_.Ou=function(a){if(a.composedPath)return a.composedPath();if(!a.__composedPath){for(var b=[],c=a.target;c;)b.push(c),c=c.parentNode;b.push(window);a.__composedPath=b}return a.__composedPath};
_.wXa=function(a,b,c){a=_.h(a);for(var d=a.next();!d.done;d=a.next()){d=d.value;if(d===b)break;for(var e=_.h(c),g=e.next();!g.done;g=e.next())if(g=g.value,d.tagName===g||d.role==="button"&&g==="BUTTON")return!0}return!1};
yXa=function(a,b){var c,d=(c=b.observer)!=null?c:_.v().resolve(Zl);if(a){c=xXa(a);var e=[];b.showOption&&e.push(d.observe(a,function(){b.visibilityCallback(!0)},b.showOption));
b.hideOption&&e.push(d.observe(a,function(){b.visibilityCallback(!1)},b.hideOption));
b.prescanOption&&b.prescanCallback&&e.push(d.observe(a,function(){b.prescanCallback()},b.prescanOption));
var g;c.visibilityMonitorKeys=((g=c.visibilityMonitorKeys)!=null?g:[]).concat(e)}};
xXa=function(a){var b;return(b=a.polymerController)!=null?b:a};
_.Qu=function(a){return!!_.Pu(a)};
_.Uu=function(a,b){var c=USa();ui(function(){var d=a.value;if(d)return zXa(d,b),AXa(d,b,void 0,void 0,void 0,c)},[b])};
_.Vu=function(a,b,c,d,e,g){var k=USa();_.yh(function(){var m=a.value;m&&(zXa(m,b(),g),m=AXa(m,b(),c,d,e,k),_.wh(m))},"Ec2swe")};
zXa=function(a,b,c){var d=BXa(b),e=CXa(b);b=d&&DXa;var g=e&&EXa;(d||e)&&yXa(a,{visibilityCallback:function(k){var m=_.v().resolve(_.Xi);k&&d?m.resolveCommand(d,{form:{element:c?a:void 0},disableClickTracking:!0}):!k&&e&&m.resolveCommand(e,{form:{element:c?a:void 0},disableClickTracking:!0})},
showOption:b,hideOption:g})};
AXa=function(a,b,c,d,e,g){var k=new Map;if(b=_.Pu(b)){var m;a=(d==null?void 0:(m=d.onTap)==null?void 0:m.value)||a;c=FXa(b,a,c==null?void 0:c.onTap,e,g);a.addEventListener("click",c);k.set("click",c)}return function(){for(var n=_.h(k),r=n.next();!r.done;r=n.next()){var t=_.h(r.value);r=t.next().value;t=t.next().value;a.removeEventListener(r,t)}}};
_.Pu=function(a){var b;return(a=(b=_.y(a,GXa))==null?void 0:b.onTap)&&_.Es(a)};
BXa=function(a){var b;return(a=(b=_.y(a,GXa))==null?void 0:b.onVisible)&&_.Es(a)};
CXa=function(a){var b;return(a=(b=_.y(a,GXa))==null?void 0:b.onHidden)&&_.Es(a)};
FXa=function(a,b,c,d,e){var g=function(m){_.v().resolve(_.Xi).resolveCommand(a,m)},k=function(m){d&&_.wXa(_.Ou(m),b,d)||g(m.target?{form:{element:m.target,
sourceData:a,mutationContext:e}}:void 0)};
c&&(k=function(m){c(m,g)});
return k};
HXa=function(a){var b=a.data;var c=a.className;a=a.alwaysShow;var d=_.Rl();_.Uu(d,b.rendererContext);a:switch(b.style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var e="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:e="ytThumbnailHoverOverlayViewModelStyleCover"}e=_.lt("ytThumbnailHoverOverlayViewModelScrim",e);var g,k=(g=_.y(b==null?void 0:b.rendererContext,_.Wu))==null?void 0:g.label,m=_.Pu(b.rendererContext)!==void 0;g=m?"button":void 0;m=m?0:void 0;var n=_.vXa(),r={};return _.q("thumbnail-hover-overlay-view-model",
{el:d,class:_.lt("ytThumbnailHoverOverlayViewModelHost",c,(r.ytThumbnailHoverOverlayViewModelHostForceHover=a,r)),"aria-label":k,role:g,tabindex:m,"on:keypress":n},_.q("div",{class:e},b.icon?_.q(_.Ss,{data:b.icon,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"}):null,b.text?_.q(_.wt,{text:b.text,className:"ytThumbnailHoverOverlayViewModelText"}):null))};
IXa=function(a){switch(a){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}};
JXa=function(a){switch(a){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""}};
KXa=function(a){switch(a){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""}};
LXa=function(a){switch(a){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}};
MXa=function(a){return a==="medium"||a==="48"||a==="large"||a==="extra-large"||a==="extra-extra-large"||a==="giant"};
NXa=function(a){return!!((a==null?0:a.includes(3))||(a==null?0:a.includes(5)))};
PXa=function(a){return{size:OXa(a.data.avatarImageSize),onTap:a.onTap,decorations:a.decorations||[],badgeText:a.badgeText,accessibilityText:a.accessibilityText,avatarButtonCustomClassName:a.avatarButtonCustomClassName}};
OXa=function(a){switch(a){case "AVATAR_SIZE_XXS":return"tiny";case "AVATAR_SIZE_XS":return"extra-small";case "AVATAR_SIZE_S":return"small";case "AVATAR_SIZE_M":return"medium";case "AVATAR_SIZE_L":return"large";case "AVATAR_SIZE_XL":return"extra-large";case "AVATAR_SIZE_XXL":return"extra-extra-large";case "AVATAR_SIZE_XXXL":return"giant";case "AVATAR_SIZE_RESPONSIVE":return"responsive";case "AVATAR_SIZE_48":return"48";default:return"medium"}};
QXa=function(a){function b(){c.endpoint&&_.Js(c.endpoint)}
var c=a.data;var d=a.decorations;var e=a.avatarButtonCustomClassName;a=a.isOverlay;return _.q("avatar-view-model",null,c.image?_.q(Xu,{data:PXa({data:c,onTap:c.endpoint?b:void 0,decorations:d,badgeText:void 0,accessibilityText:c.accessibilityText,avatarButtonCustomClassName:e}),image:c.image,iconType:"RADAR_LIVE",overlays:function(){return _.q(Yu,{data:c})},
isOverlay:a}):null)};
SXa=function(a){var b=a.data;var c=a.avatar;var d=a.onTap;var e=a.element;a=a.commandController;d=d?RXa(d,e,a):void 0;e=[];b.liveData&&e.push(0);var g;a=(g=b.liveData)==null?void 0:g.liveBadgeText;var k;g=(k=_.y(b.rendererContext,_.Wu))==null?void 0:k.label;return PXa({data:c,onTap:d,decorations:e,badgeText:a,accessibilityText:g?g:b.a11yLabel})};
RXa=function(a,b,c){return function(){Dt(a,{form:{element:b},commandController:c})}};
TXa=function(a){var b=a.data;a=a.className;var c=_.Rl(),d=_.y(b.avatar,_.Zu),e=_.Pu(b.rendererContext),g=d?SXa({data:b,avatar:d,onTap:e,element:c.value}):{size:"medium"};return _.q("yt-decorated-avatar-view-model",{class:_.lt("yt-decorated-avatar-view-model-wiz",a),el:c},_.Qg(d==null?void 0:d.image,function(){var k,m,n;return _.q(Xu,{data:g,image:d.image,iconType:"RADAR_LIVE",overlays:function(){return _.q(Yu,{data:d})},
idomKey:d==null?void 0:(k=d.image)==null?void 0:(m=k.sources)==null?void 0:(n=m.at(0))==null?void 0:n.url})}))};
UXa=function(a){switch(a){case "AVATAR_SIZE_XXS":return 16;case "AVATAR_SIZE_XS":return 24;case "AVATAR_SIZE_S":return 32;case "AVATAR_SIZE_M":return 36;case "AVATAR_SIZE_48":return 48;case "AVATAR_SIZE_L":return 56;case "AVATAR_SIZE_XL":return 72;case "AVATAR_SIZE_XXL":return 120;case "AVATAR_SIZE_XXXL":return 160;default:return 0}};
VXa=function(a){switch(a){case "AVATAR_SIZE_XS":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-small";case "AVATAR_SIZE_S":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-small";case "AVATAR_SIZE_M":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-medium";case "AVATAR_SIZE_48":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-48";case "AVATAR_SIZE_L":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-large";case "AVATAR_SIZE_XL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-large";
case "AVATAR_SIZE_XXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-extra-large";case "AVATAR_SIZE_XXXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-giant";default:return""}};
WXa=function(a){var b=0;a.avatars&&(b+=a.avatars.length);a.decoratedText&&(b+=1);return b};
YXa=function(a){var b=a.data,c=b.avatars,d=b.text,e=b.rendererContext,g=b.decoratedText,k=(b=_.Rl())&&_.Qu(e);_.Uu(b,e);var m=WXa(a.data)>1,n,r=c&&c.length>0?UXa((n=_.y(c[0],_.Zu))==null?void 0:n.avatarImageSize):0,t,u=c&&c.length>0?(t=_.y(c[0],_.Zu))==null?void 0:t.avatarImageSize:"AVATAR_SIZE_UNKNOWN",w,A;n={};return _.q("yt-avatar-stack-view-model",{el:b,class:_.lt("yt-avatar-stack-view-model-wiz",a.className,(n["yt-avatar-stack-view-model-wiz--tappable"]=k,n["yt-avatar-stack-view-model-wiz--is-overlay"]=
a.isOverlay,n["yt-avatar-stack-view-model-wiz--medium-text"]=a.useMediumText,n)),tabindex:k?0:void 0,role:k?"link":void 0,"aria-label":(A=(w=_.y(e,_.Wu))==null?void 0:w.label)!=null?A:""},_.Qg(c&&!a.hideAvatar,function(){return _.q("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.Qg(g,function(){var C={};return _.q("div",{class:_.lt("yt-avatar-stack-view-model-wiz__text-container",(C["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=u==="AVATAR_SIZE_XXS"||u==="AVATAR_SIZE_XS",
C["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=a.isOverlay&&(u==="AVATAR_SIZE_XXS"||u==="AVATAR_SIZE_XS"),C)),style:"width: "+r+"px; height: "+r+"px"},_.q(_.wt,{text:g,className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}),c.slice().reverse().map(function(C){return _.q("div",{class:VXa(u)},XXa(C,{avatarViewModel:{decorations:a.decorations?a.decorations:m?[3]:[],
avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button",isOverlay:a.isOverlay}}))}))}),_.Qg(d,function(){return _.q(_.wt,{text:d,
className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}))};
ZXa=function(a){switch(a){case "AVATAR_SIZE_XXS":return 16;case "AVATAR_SIZE_XS":return 24;case "AVATAR_SIZE_S":return 32;case "AVATAR_SIZE_M":return 36;case "AVATAR_SIZE_48":return 48;case "AVATAR_SIZE_L":return 56;case "AVATAR_SIZE_XL":return 72;case "AVATAR_SIZE_XXL":return 120;case "AVATAR_SIZE_XXXL":return 160;default:return 0}};
$Xa=function(a){switch(a){case "AVATAR_SIZE_XS":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-small";case "AVATAR_SIZE_S":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-small";case "AVATAR_SIZE_M":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-medium";case "AVATAR_SIZE_48":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-48";case "AVATAR_SIZE_L":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-large";case "AVATAR_SIZE_XL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-large";
case "AVATAR_SIZE_XXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-extra-large";case "AVATAR_SIZE_XXXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-giant";default:return""}};
aYa=function(a){switch(a){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
bYa=function(a){var b=a.data;return _.q("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:a.hidden===void 0?!1:a.hidden},_.q(_.wt,{text:b.title,className:"yt-thumbnail-overlay-title-view-model__title"}),b.subtitle?_.q(_.wt,{text:b.subtitle,className:"yt-thumbnail-overlay-title-view-model__subtitle"}):null)};
cYa=function(a){switch(a){case "small":return"yt-thumbnail-overlay-badge-view-model-wiz--small";case "medium":return"yt-thumbnail-overlay-badge-view-model-wiz--medium";case "large":return"yt-thumbnail-overlay-badge-view-model-wiz--large";default:return"yt-thumbnail-overlay-badge-view-model-wiz--medium"}};
dYa=function(a){var b=a.data;a=a.hidden===void 0?!1:a.hidden;var c={};a={class:_.lt("yt-page-indicator-view-model",(c["yt-page-indicator-view-model__indicator--hidden"]=!b.indicatorCount,c)),hidden:a};if(b.indicatorCount){c=[];for(var d=0;d<b.indicatorCount;d++){var e={};e=_.lt("yt-page-indicator-view-model__indicator",(e["yt-page-indicator-view-model__indicator--selected"]=b.selectedIndex===d,e));c.push(_.q("div",{class:e}))}b=_.q(_.Vh,null,c)}else b=_.q(_.Vh,null);return _.q("yt-page-indicator-view-model",
a,b)};
fYa=function(a){a&&(eYa(a)?delete a.inlinePlayerData:"inlinePlaybackEndpoint"in a&&delete a.inlinePlaybackEndpoint)};
gYa=function(a){if("accessibilityText"in a)return a.accessibilityText||"";if("title"in a){var b,c,d;return((b=a.title)==null?void 0:(c=b.accessibility)==null?void 0:(d=c.accessibilityData)==null?void 0:d.label)||""}if("accessibility"in a){var e,g;return((e=a.accessibility)==null?void 0:(g=e.accessibilityData)==null?void 0:g.label)||""}return""};
eYa=function(a){return"inlinePlayerData"in a};
$u=function(a){return new hYa(a)};
iYa=function(a,b){if(b(a))return[a];if(a===null||typeof a!=="object")return null;for(var c=_.h(_.yf.getValues(a)),d=c.next();!d.done;d=c.next())if(d=d.value)if(d=iYa(d,b))return[a].concat(_.Be(d));return null};
jYa=function(a){return iYa(av,function(b){return b===a})};
mYa=function(a,b,c,d){a=a[b];b=_.h(Object.keys(a));for(var e=b.next();!e.done;e=b.next())GWa(e.value)&&!d.has(a)&&(kYa.subscribe(a,function(g){if(g.replacement){var k;g=_.h(Object.entries((k=g.replacement)==null?void 0:k.rendererMappingC3));for(k=g.next();!k.done;k=g.next()){var m=_.h(k.value);k=m.next().value;m=m.next().value;c[k]||(c[k]=m)}}window.dispatchEvent(new CustomEvent("updateui",{detail:void 0}))}),d.add(a),lYa(d,a));
return kYa.getData(a)};
lYa=function(a,b){if(a.has(b)){var c=Eh;c&&(nYa(),oYa(c,a,b))}};
nYa=function(){var a=window.MutationObserver;a&&!pYa&&(pYa=new a(function(b){b=_.h(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.type==="childList"&&c.removedNodes.length){for(var d=0;d<c.removedNodes.length;d++)qYa(c.removedNodes[d]);rYa()}}),pYa.observe(document.body,{childList:!0,
subtree:!0}))};
qYa=function(a){if(a.childNodes)for(var b=0;b<a.childNodes.length;b++)qYa(a.childNodes[b]);(b=sYa.get(a))&&!jYa(b[0])&&(bv.push.apply(bv,_.Be(b[1])),sYa.delete(a))};
rYa=function(){tYa!==void 0&&(_.zk.cancelJob(tYa),tYa=void 0);tYa=_.ul(_.zk,function(){if(bv.length)for(;bv.length;){var a=bv.pop();a&&a()}},100)};
oYa=function(a,b,c){var d=function(){kYa.unsubscribeByKey(c);b.delete(c)},e=sYa.get(a);
e&&e[1]?e[1].push(d):sYa.set(a,[c,[d]])};
wYa=function(a,b){b=b===void 0?!1:b;var c,d;if(a==null?0:(c=a.responseText)==null?0:(d=c.runs)==null?0:d.length){var e=a.responseText.runs[0].text;c={};b=_.lt((c["yt-mini-game-card-view-model__dismissed-portrait-card"]=!b,c["yt-mini-game-card-view-model--dismissed-square-card"]=b,c["yt-mini-game-card-view-model__dismissed-card"]=!0,c));Bt({className:b},function(){Bt({className:"yt-mini-game-card-view-model__dismissed-mini-app-content"},function(){e&&uYa({className:"yt-mini-game-card-view-model__dismissed-text",
title:e},function(){return Sh(e)});
var g;((g=a.buttons)==null?0:g.length)&&vYa(a.buttons[0])})})}};
_.xYa=function(a,b,c,d,e,g){var k=function(r){r.preventDefault()},m=function(){var r=a.value;
if(r)return(r._data=b)?(r.addEventListener("touchstart",kQa,{passive:!0}),r.addEventListener("click",mQa),b.clickTrackingParams&&(r.params={itct:b.clickTrackingParams}),nQa(r,b),Ld(r,oQa(b)||"")):r.addEventListener("click",k),function(){b?(r.removeEventListener("touchstart",kQa,{passive:!0}),r.removeEventListener("click",mQa)):r.removeEventListener("click",k)}},n=function(){var r=a.value;
if(r){var t=_.Gs({innertubeCommand:b,elementsCommand:c,forceNewState:d,stopPropagation:g});if(t)return r._data=t._data,t["aria-haspopup$"]&&r.setAttribute("aria-haspopup",t["aria-haspopup$"].toString()),t["force-new-state$"]&&r.setAttribute("force-new-state",t["force-new-state$"].toString()),t.href$&&Ld(r,t.href$),t.rel$&&(r.rel=t.rel$),t.role$&&r.setAttribute("role",t.role$),t.target$&&(r.target=t.target$),r.params=t.params,t.onclick&&r.addEventListener("click",t.onclick),t.onpointerdown&&r.addEventListener("onpointerdown",
t.onpointerdown),function(){t.onclick&&r.removeEventListener("click",t.onclick);t.onpointerdown&&r.removeEventListener("onpointerdown",t.onpointerdown)}}};
ui(e?n:m,[b,c])};
yYa=function(a){var b=a.children;var c=a.className;var d=a.dir;var e=a.style;var g=a.role;var k=a.ariaSelected;var m=a.ariaLabel;var n=a.ariaHidden;var r=a.ariaLabelledby;var t=a.ariaDescribedby;var u=a.command;var w=a.elementsCommand;var A=a.forceNewState;var C=a.isPlaceholder;var G=a.tabIdentifier;var J=a.target;var I=a.tabIndex;var R=a.useATagConfig;var ca=a.stopPropagation;a=_.Rl();_.xYa(a,u,w,A,R,ca);w=_.ot(function(){return ca===!1});
return _.q("a",{el:a,"on:click":w,class:c,style:e,dir:d,role:g?g:u?void 0:"group","aria-hidden":n?!0:void 0,"aria-label":m,"aria-labelledby":r,"aria-describedby":t,"aria-selected":k,tabindex:I!==void 0?I:void 0,target:J,"tab-identifier":G,"force-new-state":A?!0:void 0,"is-placeholder":C?!0:void 0},b)};
AYa=function(a){var b=a.data;a=_.ot(function(){var e=_.y(b.onTap,_.Ds);e&&_.v().resolve(_.Xi).resolveCommand(e);return!1});
var c={sources:[{url:b.thumbnailUrl,width:120,height:90}]},d=b.rating&&b.ratingA11yLabel&&b.reviewsCount&&b.reviewsCountA11yLabel;return _.q("place-data-view-model",null,b.placeName&&b.placeCategory?_.q("div",{class:"yt-spec-place-data-view-model-shape","on:click":a},_.q(_.Ss,{data:c,alt:"",targetWidth:120,targetHeight:90,className:"yt-spec-place-data-view-model-shape__thumbnail "+zYa}),_.q(yYa,{className:"yt-spec-place-data-view-model-shape__place-link",command:_.y(b.onTap,_.Ds),forceNewState:!0,
useATagConfig:!0},_.q("h3",{class:"yt-spec-place-data-view-model-shape__name",title:b.placeName},b.placeName)),_.q("div",{class:"yt-spec-place-data-view-model-shape__metadata"},d?_.q("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"},_.q("span",{class:"score",title:b.ratingA11yLabel},b.rating),_.q("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-star-icon"},_.q(_.tt,{icon:"STAR",active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),
_.q("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-reviews",title:b.reviewsCountA11yLabel},b.reviewsCount)):_.q("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"}),_.q("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-categories"},_.q("span",{class:"category",title:b.placeCategory},b.placeCategory)))):null)};
BYa=function(a){var b;return(b=a.sharedUi)==null?void 0:b.animatedThumbnailEnabled};
CYa=function(a){var b;return(b=a.sharedUi)==null?void 0:b.inlinePreviewEnabled};
_.DYa=function(a){var b;return(b=a.sharedUi)==null?void 0:b.currentPageSubType};
EYa=function(){return _.q("div",{class:"yt-pinking"},_.q("svg",{class:"yt-pinking__pinking-left"},_.q("defs",null,_.q("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.q("polygon",{class:"yt-pinking__pinking",points:"0,0 4,4 0,8"}))),_.q("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.q("svg",{class:"yt-pinking__pinking-right"},_.q("defs",null,_.q("pattern",{id:"right-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.q("polygon",{class:"yt-pinking__pinking",
points:"4,0 0,4 4,8"}))),_.q("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))};
FYa=function(a){switch(a){case 1:return"yt-thumbnail-view-model--aspect-ratio-2-by-3";case 4:return"yt-thumbnail-view-model--shorts-aspect-ratio-9-by-16";case 3:return"yt-thumbnail-view-model--aspect-ratio-1-by-1";default:return"yt-thumbnail-view-model--aspect-ratio-16-by-9"}};
KYa=function(a){var b=[],c=a.data,d=Zt(a.width,a.height),e=_.v().resolve(_.Wi(GYa)),g=_.Rl(function(){b.push("elRef.value set")});
_.vi(function(){b.push("onInit");return function(){b.push("onCleanup")}});
_.vi(function(){var G;(G=a.playbackRef)==null||G.call(a,{thumbnailElRef:g,thumbnail:c.image,thumbnailOverlays:c.overlays,thumbnailSize:d})});
var k=NNa(BYa),m,n=(m=a.aspectRatio)!=null?m:0,r=(m=(c.image?_.XQa(c.image):n)<=1&&n===0)?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL",t=function(){g.value||_.Dl(new _.qj("Thumbnail elRef.value is null",b.join("\n")));e&&g.value&&e(g.value)},u={};
a:{if(!a.disableRounding&&!a.isClip)switch(d){case "large":var w="yt-thumbnail-view-model--large";break a;case "small":w="yt-thumbnail-view-model--small";break a;default:w="yt-thumbnail-view-model--medium";break a}w=void 0}n=_.lt("yt-thumbnail-view-model",a.className,FYa(n),w,(u["yt-thumbnail-view-model--cinematic"]=m,u));u=void 0;var A,C;(w=m?(A=a.data)==null?void 0:(C=A.backgroundColor)==null?void 0:C.lightTheme:void 0)&&(u="background-color:"+Dq(w,"1")+";");return _.q("yt-thumbnail-view-model",
{class:n,style:u,el:g},_.Qg(m,function(){return _.q("div",{class:"yt-thumbnail-view-model__blurred-image"},_.q(_.Ss,{data:c.image,alt:"",contentMode:r,targetWidth:a.width,onload:t}))}),_.q("div",{class:"yt-thumbnail-view-model__image"},_.q(_.Ss,{data:c.image,
alt:"",contentMode:r,targetWidth:a.width,onload:t}),null),HYa(c.overlays,{thumbnailOverlayBadgeViewModel:{thumbnailSize:d,isClip:a.isClip},thumbnailOverlayButtonViewModel:{lockupExperiments:a.lockupExperiments}}),_.Qg(a.hovered,function(){return IYa(c.overlays,{thumbnailHoverOverlayViewModel:{alwaysShow:!0}})}),_.Qg(a.hovered&&k,function(){return JYa(c.overlays)}),_.Qg(a.isClip,function(){return EYa()}))};
LYa=function(a){switch(a){case 1:return"yt-thumbnail-view-model--aspect-ratio-2-by-3";case 4:return"yt-thumbnail-view-model--shorts-aspect-ratio-9-by-16";case 3:return"yt-thumbnail-view-model--aspect-ratio-1-by-1";default:return"yt-thumbnail-view-model--aspect-ratio-16-by-9"}};
QYa=function(a){var b=_.h(Lr(-1)),c=b.next().value,d=b.next().value,e=xi(function(){return new MYa(d)});
_.vi(function(){NYa(e,a.data.thumbnails.length);return function(){OYa(e)}});
var g;return _.q("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},(g=a.data.thumbnails)==null?void 0:g.map(function(k,m){var n=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];!a.data.primaryThumbnail&&m===0&&n.push("yt-collection-thumbnail-slideshow--first-slide");m<=c&&n.push("yt-collection-thumbnail-slideshow--show-slide");m=n.join(" ");return _.q("div",{class:m},PYa(k,{thumbnailViewModel:{disableRounding:a.disableRounding}}))}))};
SYa=function(a){var b=_.h(Lr(!1)),c=b.next().value,d=b.next().value;_.vi(function(){if(a){var e=_.v().resolve(_.Wi(RYa));if(e){var g={triggeringElement:a,onDwellTriggeredFn:function(){d(!0)},
onDwellEndFn:function(){d(!1)}};
e.registerElement(g);return function(){e.unregisterElement(g)}}}});
return c};
TYa=function(a){var b=_.h(_.fh(!1,"RIOonf")),c=b.next().value,d=b.next().value;_.vi(function(){var e=a==null?void 0:a();if(e){var g=_.v().resolve(_.Wi(RYa));if(g){var k={triggeringElement:e,onDwellTriggeredFn:function(){d(!0)},
onDwellEndFn:function(){d(!1)}};
g.registerElement(k);_.wh(function(){g.unregisterElement(k)})}}});
return c};
WYa=function(a){var b,c=(b=_.v().resolve(_.Wi(_.Ns)))==null?void 0:b(),d=SYa(a.triggeringElement),e=!!a.data.primaryThumbnail,g=function(){var m;return _.q("div",null,UYa(a.data.primaryThumbnail,{thumbnailViewModel:{width:a.width,height:a.height,aspectRatio:a.aspectRatio,disableRounding:a.disableRounding,className:e?"yt-collection-thumbnail-view-model--has-stacks":void 0,hovered:a.hovered,playbackRef:a.playbackRef}}),_.Qg(d&&((m=a.data.thumbnails)==null?void 0:m.length),function(){return _.q("div",
{class:"yt-collection-thumbnail-view-model__slideshow"},_.q(VYa,{data:a.data,disableRounding:!e}))}))};
b=a.data.stackColor;var k={experimentEnabled:e,thumbnailSize:Zt(a.width,a.height),doubleStack:a.doubleStack,color:c?b==null?void 0:b.darkTheme:b==null?void 0:b.lightTheme,enableResponsiveMode:!1};return _.q("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true"},_.Qg(e,function(){return _.q(nXa,{data:k},g())}),_.Qg(!e,g))};
XYa=function(a,b,c){c?c(b):_.Js(b,a.target?{form:{element:a.target}}:void 0)};
_.cv=function(a,b,c,d){_.yh(function(){var e=a.value;if(e){var g=new Map,k,m=(k=b())==null?void 0:k.onTap;m&&(k=function(n){a:{var r=n.composedPath();r=_.h(r);for(var t=r.next();!t.done;t=r.next()){t=t.value;if(t===e)break;if(t.className.indexOf("HostIsClickableAdComponent")>=0||t.tagName==="A".toString()||t.tagName==="BUTTON".toString()){r=!0;break a}}r=!1}r||(_.x("enable_square_image_components_ui_web_with_float_button")?_.go(a.value,"yt-navigate",{endpoint:_.Es(m)}):XYa(n,m,c))},(d==null?0:d())||
_.x("enable_web_home_top_landscape_image_layout_level_click")?(e.addEventListener("tap",k),g.set("tap",k)):(e.addEventListener("click",k),g.set("click",k)));
_.wh(function(){for(var n=_.h(g),r=n.next();!r.done;r=n.next()){var t=_.h(r.value);r=t.next().value;t=t.next().value;e.removeEventListener(r,t)}})}},"gbNRQb")};
YYa=function(a,b){var c,d=(c=a.interaction)==null?void 0:c.onTap;if(a=_.Gs({elementsCommand:d,forceNewState:!0,skipOnClick:!0}))return a.onclick=function(e){fQa(e)&&(e.preventDefault(),d&&XYa(e,d,b))},hQa(a)?a:void 0};
ZYa=function(a){switch(a){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
$Ya=function(a){switch(a){case "AD_BUTTON_STYLE_OVERLAY_TONAL":case "AD_BUTTON_STYLE_OVERLAY_TEXT":return"overlay";case "AD_BUTTON_STYLE_TRANSPARENT":return"mono";case "AD_BUTTON_STYLE_OVERLAY_FILLED":return"call-to-action-overlay";default:return"call-to-action"}};
aZa=function(a){switch(a){case "AD_BUTTON_STYLE_OUTLINE":return"outline";case "AD_BUTTON_STYLE_TONAL":case "AD_BUTTON_STYLE_OVERLAY_TONAL":return"tonal";case "AD_BUTTON_STYLE_OVERLAY_TEXT":case "AD_BUTTON_STYLE_TRANSPARENT":return"text";default:return"filled"}};
_.bZa=function(a){return _.x("rich_grid_enable_dynamic_offset")&&a?Math.max(Math.round((a-_.$i("rich_grid_dynamic_offset_anchor_width",1300))/100*_.$i("rich_grid_dynamic_offset_offset_per_100",10)),_.$i("rich_grid_dynamic_offset_lower_bound",-60)):0};
cZa=function(a,b){switch(b){case 4:return 16;case 1:return a<528?16:a<1024?32:48;case 2:return(a>=528?16:8)/2;case 3:return(a<528?16:a<1024?32:48)+(a>=528?16:8)/2;default:return 0}};
dZa=function(a){var b=a.originalContainerWidth;var c=a.sizing;var d=a.standardUnit;if(a.isCompactList&&b<528)return 1;switch(c){case "STANDARD":return d;case "COMPACT":return d+1;case "EXTRA_COMPACT":return _.x("web_responsive_extra_compact_2x")?d*2:_.x("web_responsive_current")?d===1?2:d%2===0?d/2*3:d+2:d<4?d*2:Math.ceil(d*3/2);case "MINI":return d>1?d*2:3;default:return d}};
fZa=function(a){var b=a.containerWidth;var c=a.peek;var d=a.gutter;var e=a.numItems;a=a.ignoreMaxWidthLimit;b=c?Math.max((b-c-d*e)/e,0):Math.max((b-d*(e-1))/e,0);return a?b:Math.min(b,eZa)};
_.dv=function(a){var b=a.containerWidth;var c=a.hasPeek;var d=a.sizing;var e=a.marginSettings;var g=a.isCompactList;var k=a.enableFullBleedForSingleCol;var m=a.standardUnitMinWidth;d=d||"STANDARD";c=!!c;a=b>=528?16:8;var n=c?b>=528?48:24:0;e=cZa(b,e);var r=Math.max(b-e*2,0);m=_.x("kevlar_disable_min_width_override")?void 0:m;m=Math.min(Math.max(Math.floor((r-n+a)/((m!=null?m:gZa)+_.bZa(b)+a)),1),6);var t=(k=!!k&&m===1)||m===1&&d!=="STANDARD";c=c||t?r:Math.min(r,(eZa+a)*m-a);d=dZa({originalContainerWidth:b,
sizing:d,standardUnit:m,isCompactList:g});return{itemWidth:fZa({containerWidth:c,peek:n,gutter:a,numItems:d,ignoreMaxWidthLimit:t}),gutter:a,maxContainerWidth:c,numItems:d,margin:k?0:e,contentMargin:cZa(b,1),typographyBump:fZa({containerWidth:c,peek:n,gutter:a,numItems:m,ignoreMaxWidthLimit:t})>400&&!(g&&b<528),standardUnit:m}};
hZa=function(a){switch(a){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.iZa=function(a){if(a){var b;if((b=a.responsiveContainerConfiguration)==null?0:b.responsiveSize)return hZa(a.responsiveContainerConfiguration.responsiveSize);if(a.layoutSizing)switch(a.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"}}};
jZa=function(a){if(a.fullbleed)return 1;switch(a.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
nZa=function(a,b,c,d,e,g,k,m){a:switch(a){case 4:g=!!(g&&g<100);break a;default:g=!1}a:switch(a){case 3:case 4:var n=d==="LOCKUP_CONTENT_TYPE_CHANNEL"||d==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:n=!1}a:switch(a){case 5:var r=!0;break a;case 4:r=!1;break a;default:r=!1}a:if(a===4&&d==="LOCKUP_CONTENT_TYPE_SOURCE")var t=1;else switch(a){case 3:t=1;break a;default:t=0}return{isOverlay:r,isCard:kZa(d,k),sizing:b!=null?b:"STANDARD",typographyBump:c!=null?c:!1,isTiny:g,isCentered:n,isCollection:lZa(d),
arrangement:t,addMarginForFullbleed:a===1&&d!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:a===1&&d==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:mZa(d,e,m),disableRounding:a===5||kZa(d,k)||a===1&&d==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:lZa(d)?2:0,useLegacyTypography:!(m==null||!m.useLegacyTypography),useRichGridLegacyTypography:!(m==null||!m.useRichGridLegacyTypography)}};
lZa=function(a){switch(a){case "LOCKUP_CONTENT_TYPE_PLAYLIST":case "LOCKUP_CONTENT_TYPE_ALBUM":case "LOCKUP_CONTENT_TYPE_PODCAST":case "LOCKUP_CONTENT_TYPE_SHOPPING_COLLECTION":return!0;default:return!1}};
kZa=function(a,b){if(b&&a==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(a){case "LOCKUP_CONTENT_TYPE_SOURCE":return!0;default:return!1}};
mZa=function(a,b,c){if(b&&(c==null||!c.alwaysRespectPodcastShowAspectRatio||a!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(a){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}};
oZa=function(a){switch(a){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"}};
rZa=function(a,b,c){a:switch(a.badgeStyle){case "BADGE_OVERLAY":var d=!0;break a;default:d=!1}return{type:b?16:pZa(a.badgeStyle),brNzRatingBadgeType:qZa(a.badgeStyle),text:a.badgeText,icon:a.iconName,isOverlay:d,modern:c||_.x("web_modern_badge_view_model")}};
pZa=function(a){switch(a){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 8;case "BADGE_STATUS_NEW":return 11;case "BADGE_PREMIUM":return 5;default:return 0}};
qZa=function(a){switch(a){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}};
tZa=function(a){var b=a.data?rZa(a.data,!!a.workaroundShortsIsThumbnailBadge,a.modern):void 0;return _.q("yt-badge-view-model",{class:_.lt("yt-badge-view-model-wiz",a.class)},_.Qg(b==null?void 0:b.brNzRatingBadgeType,function(){return _.q(sZa,{data:b})}),_.Qg(b&&!b.brNzRatingBadgeType,function(){return _.q(_.ev,{data:b})}))};
_.fv=function(a){if(a){var b;return((b=_.v().resolve(_.Wi(_.Ns)))==null?0:b())?a.darkThemeImage:a.image}};
wZa=function(a,b,c,d,e,g){if(!c)return e&&g&&b==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING"?"width: "+e+"px; height: "+g+"px;":"";e=c.size;c=c.allowFullWidth;if(b==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&c)return"width: 100%;";if(e===void 0)return"";switch(a){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return"width: "+e+"px; height: "+e+"px;";case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return"width: "+e+"px; height: "+1/uZa*
e+"px;";case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return"width: "+e*vZa+"px; height: "+e+"px;";default:return(d==null?0:d.height)&&(d==null?0:d.width)?d.width/d.height>1?"max-width: "+e*vZa+"px;":"max-width: "+e+"px;":"max-width: "+e+"px;"}};
xZa=function(a){var b;return a&&((b=_.fv(a.themedImage))!=null?b:a.image)};
yZa=function(a){var b;return a==null?void 0:(b=a.sources)==null?void 0:b[0]};
AZa=function(a,b){var c,d;return!!((a==null?0:(c=a.byline)==null?0:c.hideAvatar)&&((d=_.y(b,zZa))==null?void 0:d.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
BZa=function(a,b){var c,d;return!!((a==null?0:(c=a.byline)==null?0:c.addPadding)&&((d=_.y(b,zZa))==null?void 0:d.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
CZa=function(a,b,c,d){var e={},g=(e["yt-content-metadata-view-model-wiz__delimiter"]=!0,e["yt-content-metadata-view-model-wiz__delimiter--standalone"]=d,e);return _.Qg(b-1>c,function(){return _.q("span",{class:_.lt(g),"aria-hidden":!0},a)})};
EZa=function(a,b){return _.q(_.wt,{text:a.text,linkInheritColor:!0,className:DZa(b),userInput:!0})};
GZa=function(a){var b=a.metadataPart;var c=a.isOverlay;var d=a.useMediumText;var e=a.hideAvatar;var g=1;b.maxLines!==void 0&&(g=b.maxLines);return _.q(_.Vh,null,_.Qg(b.avatarStack,function(){return FZa(b.avatarStack,{avatarStackViewModel:{isOverlay:c,useMediumText:d,hideAvatar:e}})}),_.Qg(b.text,function(){var k=g;
return _.q(_.Vh,null,b.tooltip?_.q("span",{title:b.tooltip,role:"tooltip"},EZa(b,k)):EZa(b,k))}))};
DZa=function(a){switch(a){case 0:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model-wiz__metadata-text";case 2:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-4"}};
HZa=function(a){var b=a.metadataRow;var c=a.isInline;var d=a.delimiter;var e=a.isOverlay;var g=a.useMediumText;a=a.extensions;var k=AZa(a==null?void 0:a.lockupMetadata,b);a=BZa(a==null?void 0:a.lockupMetadata,b);var m={};a=(m["yt-content-metadata-view-model-wiz__metadata-row"]=!0,m["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=c,m["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=a,m);var n,r;return _.q("div",{class:_.lt(a)},(n=b.badges)==null?void 0:
n.map(function(t){return _.q("div",{class:"yt-content-metadata-view-model-wiz__badge"},FZa(t))}),(r=b.metadataParts)==null?void 0:r.map(function(t,u){return _.q(_.Vh,null,GZa({metadataPart:t,
isOverlay:e,useMediumText:g,hideAvatar:k}),CZa(d,b.metadataParts.length,u,!1))}),_.Qg(b.isSpacerRow&&!c,function(){return _.q("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}))};
IZa=function(a){var b=a.className;var c=a.data;var d=a.layout===void 0?0:a.layout;var e=a.isOverlay===void 0?!1:a.isOverlay;var g=a.useMediumText;var k=a.extensions;a=_.Rl();var m=d===0;d={};d=(d["yt-content-metadata-view-model-wiz"]=!0,d["yt-content-metadata-view-model-wiz--inline"]=m,d["yt-content-metadata-view-model-wiz--tappable"]=_.Qu(c.rendererContext),d["yt-content-metadata-view-model-wiz--medium-text"]=g,d);_.Uu(a,c.rendererContext);return _.q("yt-content-metadata-view-model",{class:_.lt(b,
d),el:a},_.Qg(c.metadataRows,function(){return c.metadataRows.map(function(n,r){return _.q(_.Vh,null,HZa({metadataRow:n,isInline:m,delimiter:c.delimiter,isOverlay:e,useMediumText:g,extensions:k}),_.Qg(m&&!n.isSpacerRow,function(){return CZa(c.delimiter,c.metadataRows.length,r,!0)}))})}))};
JZa=function(a){switch(a){case 0:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model-wiz__metadata-text";case 2:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-4"}};
KZa=function(a){if(a==null?0:a.isOverlay)return"yt-lockup-metadata-view-model-wiz--overlay";switch(a==null?void 0:a.arrangement){case 1:return"yt-lockup-metadata-view-model-wiz--horizontal";default:return"yt-lockup-metadata-view-model-wiz--vertical"}};
LZa=function(a){if(a==null?0:a.isTiny)return"yt-lockup-metadata-view-model-wiz--tiny";switch(a==null?void 0:a.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":return"yt-lockup-metadata-view-model-wiz--compact";default:return"yt-lockup-metadata-view-model-wiz--standard"}};
MZa=function(a){var b,c,d,e,g,k,m={},n=_.lt(KZa(a.lockupStyle),LZa(a.lockupStyle),(m["yt-lockup-metadata-view-model-wiz"]=!0,m["yt-lockup-metadata-view-model-wiz--overlay"]=(b=a.lockupStyle)==null?void 0:b.isOverlay,m["yt-lockup-metadata-view-model-wiz--card"]=(c=a.lockupStyle)==null?void 0:c.isCard,m["yt-lockup-metadata-view-model-wiz--centered"]=(d=a.lockupStyle)==null?void 0:d.isCentered,m["yt-lockup-metadata-view-model-wiz--typography-bump"]=(e=a.lockupStyle)==null?void 0:e.typographyBump,m["yt-lockup-metadata-view-model-wiz--legacy-typography"]=
(g=a.lockupStyle)==null?void 0:g.useLegacyTypography,m["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=(k=a.lockupStyle)==null?void 0:k.useRichGridLegacyTypography,m)),r,t,u,w,A,C;return _.q("yt-lockup-metadata-view-model",{class:n},_.Qg(a.data.image,function(){return _.q("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},gv(a.data.image))}),_.q("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.q("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:(r=a.data.title)==null?void 0:r.content},_.Qg(a.data.title,function(){return _.q(_.ut,{command:a.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:a.lockupAccessibilityLabel},_.q(_.wt,{text:a.data.title}))})),_.q("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},gv(a.data.metadata,{contentMetadataViewModel:{layout:1,
useMediumText:((t=a.lockupStyle)==null?void 0:t.typographyBump)||((u=a.lockupStyle)==null?void 0:u.useRichGridLegacyTypography),extensions:{lockupMetadata:{byline:{hideAvatar:((w=a.lockupStyle)==null?void 0:w.arrangement)===0,addPadding:((A=a.lockupStyle)==null?void 0:A.arrangement)===1}}}}})),_.Qg(a.data.attribution,function(){return _.q("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},gv(a.data.attribution,{attributionViewModel:{useSmallLayout:!0}}))}),_.q("div",null,gv(a.data.attachmentSlot,
{lockupAttachmentsViewModel:{lockupStyle:a.lockupStyle}}))),_.q("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},gv(a.data.menuButton,((C=a.lockupStyle)==null?0:C.isOverlay)?{buttonViewModel:{buttonOverrides:{style:"overlay"}}}:void 0)))};
NZa=function(a){switch(a.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"}}};
OZa=function(a){var b=_.DYa(_.Ir().getState())||"";return a?a+b:""};
PZa=function(a){switch(a){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
RZa=function(a){var b=_.h(_.fh(void 0,"BIquNb")),c=b.next().value,d=b.next().value,e=_.h(_.fh(void 0,"eR0GH"));b=e.next().value;var g=e.next().value,k=_.h(_.fh(void 0,"UmkP0"));e=k.next().value;var m=k.next().value;k=_.ot(function(r){if(QZa(_.Ou(r)))return!1;d(r);g(void 0);m(void 0);return!0});
var n=_.ot(function(r){a==null||a(r);if(QZa(_.Ou(r)))return!1;g(r);d(void 0);m(void 0);return!0});
return{touchFeedbackEvents:{pointerUpEvent:c,pointerDownEvent:b,pointerLeaveEvent:e},touchFeedbackOnPointerUp:k,touchFeedbackOnPointerDown:n,touchFeedbackOnPointerLeave:function(r){QZa(_.Ou(r))||(m(r),g(void 0),d(void 0))}}};
QZa=function(a){var b=["BUTTON".toString()];a=_.h(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;for(var d=_.h(b),e=d.next();!e.done;e=d.next())if(c.tagName===e.value)return!0}return!1};
SZa=function(a){switch(a){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_L":return"large";case "AD_AVATAR_SIZE_XL":return"extra-large";default:return"medium"}};
TZa=function(a){var b;return AQa(a,((b=a.content)==null?void 0:b.length)||0,!0)};
UZa=function(a){var b=TZa(a),c,d;return(((c=a.content)==null?void 0:c.length)||0)>(((d=b.content)==null?void 0:d.length)||0)};
VZa=function(a){var b=a.isTruncated;var c=a.isAbsoluteButton;var d=a.lineHeight;var e=a.contentRef.value,g=a.placeholderTruncationTextRef.value,k=a.truncationTextRef.value;a=a.appDirection==="rtl";if(e&&g){var m=g.offsetLeft;a&&(m=e.offsetWidth-g.offsetWidth-g.offsetLeft);if(b){b=g.offsetWidth;g=e.offsetWidth;var n=c?g-b-70:m-70;d="linear-gradient(\n      to top, transparent 0%,\n      transparent "+d+"px,\n      #000 "+d+"px,\n      #000 100%), linear-gradient(\n      to "+((a?"left":"right")+",\n      #000 0px,\n      #000 "+
n+"px,\n      transparent "+(c?g-b:n+70)+"px)");e.style.setProperty("-webkit-mask-image",d);e.style.setProperty("mask-image",d)}else e.style.setProperty("-webkit-mask-image",""),e.style.setProperty("mask-image","");c?a?(k.style.setProperty("left","0"),k.style.setProperty("right","unset")):(k.style.setProperty("left",""),k.style.setProperty("right","0")):a?(k.style.setProperty("left","unset"),k.style.setProperty("right",m+"px")):(k.style.setProperty("left",m+"px"),k.style.setProperty("right","unset"))}};
WZa=function(a,b,c,d,e){var g=_.Rl(),k=_.Rl(),m=_.Rl(),n=TZa(a),r=_.v().resolve(_.Ps),t=_.h(Lr(UZa(a))),u=t.next().value,w=t.next().value,A=yi(null);ui(function(){function C(){if(g.value&&k.value&&m.value){var I=g.value;I.scrollHeight-I.offsetHeight>1?(w(!0),d||VZa({isTruncated:!0,isAbsoluteButton:!0,lineHeight:c,contentRef:g,placeholderTruncationTextRef:k,truncationTextRef:m,appDirection:r})):(I=UZa(a),w(I),d||VZa({isTruncated:I,isAbsoluteButton:!1,lineHeight:c,contentRef:g,placeholderTruncationTextRef:k,
truncationTextRef:m,appDirection:r}))}}
var G,J;(G=A.value)==null||(J=G.stop)==null||J.call(G);G=new _.hv(C,17);C();A.value=G},[a.content,
b,c,r,d,e]);_.vi(function(){var C=function(){var J,I;(J=A.value)==null||(I=J.fire)==null||I.call(J)};
if(window.ResizeObserver){var G=new ResizeObserver(C);G.observe(g.value);return function(){var J,I;(J=A.value)==null||(I=J.stop)==null||I.call(J);G.disconnect()}}window.addEventListener("resize",C);
return function(){var J,I;(J=A.value)==null||(I=J.stop)==null||I.call(J);window.removeEventListener("resize",C)}});
return{isTruncated:u,displayText:n,contentRef:g,placeholderTruncationTextRef:k,truncationTextRef:m}};
XZa=function(a){return _.q("button",{"aria-disabled":!0,disabled:!0,class:a.className,el:a.elRef,style:"line-height: "+a.lineHeight+"px;"},_.q(_.wt,{text:a.text}))};
YZa=function(a){var b=a.text;var c=a.alwaysShowTruncationText;var d=a.truncationText;var e=a.onExpandClick;var g=a.lineHeight===void 0?16:a.lineHeight;var k=a.maxLines===void 0?2:a.maxLines;var m=a.disableTextMask===void 0?!1:a.disableTextMask;var n=a.isOverlay===void 0?!1:a.isOverlay;var r=a.accessibilityLabel===void 0?"":a.accessibilityLabel;var t=a.useMediumText===void 0?!1:a.useMediumText;a=_.ot(function(){return void(e==null?void 0:e())});
var u=WZa(b,k,g,m,t),w=u.isTruncated;b=u.displayText;var A=u.contentRef,C=u.placeholderTruncationTextRef;u=u.truncationTextRef;var G={};c=_.lt((G["truncated-text-wiz__absolute-button"]=!m,G["truncated-text-wiz__bottom-button"]=m,G["truncated-text-wiz--hidden"]=!(c||w),G));m={};n=_.lt((m["truncated-text-wiz"]=!0,m["truncated-text-wiz--overlay"]=n,m["truncated-text-wiz--medium-text"]=t,m));return _.q("truncated-text",{class:n,"on:click":a,style:"line-height: "+g+"px;"},_.q("truncated-text-content",
{class:"truncated-text-wiz__truncated-text-content",el:A,style:"max-height: "+k*g+"px;"},_.q(_.wt,{text:b}),_.q(XZa,{text:d,lineHeight:g,elRef:C,className:"truncated-text-wiz__inline-button"})),_.q("button",{"aria-label":r,class:c,el:u,style:"line-height: "+g+"px;"},_.q(_.wt,{text:d})))};
ZZa=function(a){return{content:a!=null?a:""}};
b_a=function(a){var b=a.data;var c;a={class:a.className};a:switch(b.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var d="yt-video-attribute-view-model--vertical";break a;default:d="yt-video-attribute-view-model--horizontal"}a:switch(b.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var e="yt-video-attribute-view-model--image-small";break a;default:e="yt-video-attribute-view-model--image-large"}a:switch(b.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var g="yt-video-attribute-view-model--image-square";
break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":g="yt-video-attribute-view-model--image-avatar";break a;default:g=""}a:switch(b.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var k="yt-video-attribute-view-model--metadata-header";break a;default:k=""}a:switch(b.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var m="yt-video-attribute-view-model--container-card";break a;default:m=""}var n=_.Es(b.onTap)||_.Pu(b.rendererContext)?"yt-video-attribute-view-model--clickable":"";
d=["yt-video-attribute-view-model",d,e,g,k,m,n].join(" ");if(b.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var r="";else e=b.lightColorPalette,g=b.darkColorPalette,k=((r=_.v().resolve(_.Wi(_.Ns)))==null?0:r())&&g?g:e,r=(r=k==null?void 0:k.section2Color)?_.Cq(r):"";return _.q("yt-video-attribute-view-model",a,_.q("div",{class:d,style:_.rt({"background-color":r})},_.q(yYa,{className:"yt-video-attribute-view-model__link-container",useATagConfig:!0,stopPropagation:!1,command:(c=_.Es(b.onTap))!=
null?c:_.Pu(b.rendererContext),role:"group",forceNewState:!0},b.heroText||b.image?_.q($Za,{data:b}):null,_.q(a_a,{data:b,sizeSmall:b.imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}))))};
c_a=function(a){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:a.overflowMenuA11yLabel,onTap:function(b){b.preventDefault();b.stopPropagation();if(a.overflowMenuOnTap){var c=_.Gs({elementsCommand:a.overflowMenuOnTap,forceNewState:!0});if(c==null?0:c.onclick)c.onclick(b)}}}};
d_a=function(a){return function(){_.v().resolve(xu)("MORE_VERT",{iconSize:a})}};
$Za=function(a){a=a.data;var b,c=((b=_.v().resolve(_.Wi(_.Ns)))==null?0:b())&&a.darkThemeImage?a.darkThemeImage:a.image,d=c_a(a),e=At(d,!0);return _.q("div",{class:"yt-video-attribute-view-model__hero-section"},c?_.q(_.Ss,{data:c,className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}):a.heroText?_.q("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.q("span",{class:"yt-video-attribute-view-model__hero-text"},a.heroText)):null,a.overflowMenuOnTap?
_.q("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.x("web_wiz_button_shape")?_.q(vt,{data:d,iconName:"MORE_VERT"}):_.q(Ul,null,function(){Ct(d,d_a(e))})):null)};
a_a=function(a){var b=a.data;var c=b.containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD",d={};a={class:_.lt("yt-video-attribute-view-model__metadata",(d["yt-video-attribute-view-model--small-font"]=a.sizeSmall,d)),role:"link"};d=_.q("h1",{class:"yt-video-attribute-view-model__title"},b.title);c=b.subtitle?_.q("h4",{class:"yt-video-attribute-view-model__subtitle"},c?_.q(YZa,{text:ZZa(b.subtitle),truncationText:ZZa(b.subtitleTruncationText),maxLines:2}):_.q("span",null,b.subtitle)):null;if(b.secondarySubtitle){var e=
b.secondarySubtitle;if(e!=null&&e.attachmentRuns){for(var g=[],k=_.h(e.attachmentRuns),m=k.next();!m.done;m=k.next())m=m.value,m.element&&g.push(Object.assign({},m,{element:Object.assign({},m.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));e=Object.assign({},e,{attachmentRuns:g})}e=_.q("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.q(_.wt,{text:e}))}else e=null;return _.q("div",a,d,c,e,b.buttonViewModel?
e_a(b.buttonViewModel,{buttonViewModel:{className:"yt-video-attribute-view-model__button"}}):null)};
g_a=function(a){var b={};b=_.lt("video-summary-content-view-model-wiz",a.className,(b["video-summary-content-view-model-wiz--is-search"]=!!a.isSearch,b));var c=_.y(a.data.likeButtonViewModel,WWa),d=_.y(a.data.dislikeButtonViewModel,XWa),e=wi(function(){var g=[],k,m=(k=a.data)==null?void 0:k.paragraphs;if(m==null||!m.length)return[];for(k=0;k<m.length;k++){var n=_.y(m[k],f_a),r=void 0;k>0&&(r=_.y(m[k-1],f_a));r&&!!r.marker===!!n.marker?g[g.length-1].paragraphs.push(n):g.push({isList:!!n.marker,paragraphs:[n]})}return g},
[a.data]);
return _.q("video-summary-content-view-model",{class:b},e.map(function(g){return g.isList?_.q("ul",{class:"video-summary-content-view-model-wiz__list"},g.paragraphs.map(function(k){return _.q("li",{class:"video-summary-content-view-model-wiz__list-item"},_.q(_.wt,{text:k.text}))})):g.paragraphs.map(function(k){return _.q("p",{class:"video-summary-content-view-model-wiz__paragraph"},_.q(_.wt,{text:k.text}))})}),_.Qg(!!c&&!!d,function(){return _.q("div",{class:"video-summary-content-view-model-wiz__bottomButtonsContainer"},
_.q("div",{class:"video-summary-content-view-model-wiz__likeButton"},_.q(VWa,{data:c,
disableIconAnimation:!0})),_.q(TWa,{data:d}))}))};
i_a=function(a,b,c){return _.l(function(d){return d.return(new Promise(function(e){var g=new Image;g.onload=function(){e(new h_a(a,b,c,g.naturalWidth,g.naturalHeight))};
g.src=c.toString()}))})};
j_a=function(a,b){return Math.round(a/1E-5)===Math.round(b/1E-5)};
k_a=function(a,b){return Math.round(a/1E-5)===Math.round(b/1E-5)};
l_a=function(a,b){return a.year===b.year&&a.month===b.month&&a.day===b.day};
m_a=function(a,b){return a.year!==b.year?a.year<b.year:a.month!==b.month?a.month<b.month:a.day<b.day};
o_a=function(a){return a.day===n_a(a.year,a.month)?a.month===11?{year:a.year+1,month:0,day:1}:{year:a.year,month:a.month+1,day:1}:{year:a.year,month:a.month,day:a.day+1}};
p_a=function(){var a=new Date,b={year:a.getFullYear(),month:a.getMonth(),day:a.getDate()};return{start:b,end:{year:a.getFullYear()+2,month:a.getMonth(),day:a.getDate()},selectedDate:o_a(b)}};
q_a=function(a){return(new Sp(2)).format(new Date(a.year,a.month,a.day))};
r_a=function(a){return{year:a.getFullYear(),month:a.getMonth(),day:a.getDate()}};
s_a=function(a,b){a=(a+(Number(b.utcOffsetSec)+(new Date(a*1E3)).getTimezoneOffset()*60))*1E3;b=r_a(new Date(a));return{date:b,secondsSinceMidnight:Math.floor((a-(new Date(b.year,b.month,b.day)).getTime())/1E3)}};
t_a=function(a,b){b=b.months.findIndex(function(c){return c.year===a.year&&c.month===a.month});
return b>=0?b:void 0};
u_a=function(a){if(!a)return!1;try{if(a.host&&a.host.tagName==="YT-FORMATTED-STRING"&&a.host.id==="contenteditable-textarea"||a.nodeType===Node.ELEMENT_NODE&&a.tagName==="YTD-COMMENTBOX")return!0}catch(b){return!1}return u_a(a.parentNode)};
iv=function(a){return a?!(a.tagName!=="A"||!a.href||!a.classList.contains("yt-simple-endpoint")):!1};
v_a=function(a){return a?a.tagName==="IMG"&&a.classList.contains("emoji"):!1};
w_a=function(a,b,c){if(!a)return null;var d=iv(a);if(d&&c)return b=a.pathname.substring(a.pathname.indexOf("/channel/")+9),document.createTextNode("@"+b);if(d&&!c)return document.createTextNode("");if(v_a(a))return c=a.alt,a=a.dataset.emojiId,!a&&b&&(b=_.jv(b,c))&&b.isCustomEmoji&&(a=b.emojiId),a?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+a+">"):document.createTextNode(c);d=a.cloneNode(!1);for(var e=0;e<a.childNodes.length;++e){var g=w_a(a.childNodes[e],b,c);g&&d.appendChild(g)}return d};
kv=function(a){return a?iv(a)?a:kv(a.lastChild):null};
x_a=function(a){return a?iv(a)?a:x_a(a.firstChild):null};
y_a=function(a){if(!a)return null;for(var b=a.previousSibling;b;)if(b.nodeType===Node.ELEMENT_NODE&&b.nodeName==="BR")b=b.previousSibling;else if(b.nodeType===Node.TEXT_NODE&&/\s+/.test(b.textContent))b=b.previousSibling;else break;(b=kv(b))?a=b:a=(a=a.parentNode)?kv(a.previousElementSibling):null;return a};
z_a=function(a){if(!a)return null;for(var b=a.nextSibling;b;)if(b.nodeType===Node.ELEMENT_NODE&&b.nodeName==="BR")b=b.nextSibling;else if(b.nodeType===Node.TEXT_NODE&&/\s+/.test(b.textContent))b=b.nextSibling;else break;return(b=x_a(b))?b:z_a(a.parentNode)};
A_a=function(a){var b=_.lv(),c=b.JSC$9073_getStartNode();if(!u_a(c.parentNode))return null;b=b.JSC$9073_getStartOffset();if(c.nodeType===Node.TEXT_NODE){var d=_.Ef(c,iv);if(d){if(a&&b===0||!a&&b===c.length)return d}else{if(a&&b===c.length)return!c||c.nodeName==="BR"||c.nextElementSibling&&_.mv(c.nextElementSibling,"display")==="block"?null:x_a(c.nextElementSibling);if(!a&&b===0)return c?kv(c.previousElementSibling):null}}if(c.nodeType===Node.ELEMENT_NODE)if(a){if(0<=b&&b<c.childNodes.length)return x_a(c.childNodes[b])}else if(0<
b&&b<=c.childNodes.length)return kv(c.childNodes[b-1]);return null};
B_a=function(a,b,c){if(!a)return null;if(a.nodeType===Node.TEXT_NODE)if(c){var d=y_a(a);if(d&&!/^\s+\S/.test(a.wholeText.substr(0,b)))return d}else if((d=z_a(a))&&!/\S\s+/.test(a.wholeText.substr(b,a.wholeText.length)))return d;return a.nodeType===Node.ELEMENT_NODE?c?y_a(a.childNodes[b]):z_a(a.childNodes[b]):B_a(a.parentNode,b,c)};
C_a=function(a){if(a.hasChildNodes())switch(a.tagName){case "DIV":case "A":case "SPAN":var b="";for(a=a.firstChild;a;a=a.nextSibling)b+=C_a(a);return b;default:return""}else switch(a.nodeType){case 3:return a.textContent;default:return""}};
_.nv=function(a,b,c,d,e){d=d===void 0?{}:d;if(!e||Math.random()<5E-4){b=b||null;c=c||null;a=a instanceof Error?a:new _.qj(a);if(a.args)for(var g=_.h(a.args),k=g.next();!k.done;k=g.next())k=k.value,k instanceof Object&&(d=Object.assign({},k,d));d.category="H5 Ads Control Flow";b&&(d.slot=b?"slot:  "+b.slotType:"");c&&(d.layout=c?"layout:  "+c.layoutType:"",d.layoutId=c.layoutId);e&&(d.known_error_aggressively_sampled=!0);a.args=[d];_.Dl(a)}};
_.D_a=function(a,b){_.ho(a,"yt-open-popup-action",[_.$p(b),a])};
F_a=function(a){if(!a)return"";if(E_a[a])return E_a[a];ov||(ov=_.lg("A"));ov.href!==a&&Ld(ov,a);var b=ov.pathname;E_a[a]=b.startsWith("/")?b:"/"+b;return E_a[a]};
G_a=function(){var a=F_a(window.location.href);if(a==="/")return"home";if(a.startsWith("/results"))return"search";if(a.startsWith("/watch"))return"watch";if(a.startsWith("/shorts"))return"shorts";if(a.startsWith("/hashtag"))return"hashtag";if(a.startsWith("/create_channel"))return"create_channel";if(a.startsWith("/@")||a.startsWith("/user/")||a.startsWith("/channel/"))return"channel";if(a.startsWith("/experiments"))return"experiments";if(a.startsWith("/sponsor_channel"))return"sponsorship";if(a.startsWith("/select_site"))return"settings";
if(a.startsWith("/locate"))return"locate";if(a.startsWith("/redeem"))return"redeem";if(a.startsWith("/musicpremium")||a.startsWith("/premium")||a.startsWith("/red"))return"premium";if(a.startsWith("/paid_memberships"))return"paid_memberships";if(a.startsWith("/oops"))return"oops";if(a.startsWith("/clip"))return"clip";var b;return(av==null?void 0:(b=av.response)==null?void 0:b.page)==="404"?"404":a.startsWith("/feed/history")?"history":a.startsWith("/feed/library")?"library":a.startsWith("/feed/subscriptions")?
"subscriptions":a.startsWith("/feed/trending")?"trending":a.startsWith("/feed/news_destination")?"news":a.startsWith("/playlist")?"playlist":a.startsWith("/minor_moment")?"minor_moment":a.startsWith("/playable/")||a.match("^/playables/(?!saved).")?"mini_app":a.startsWith("/playables")?"playables":a.startsWith("/create/live/join")?"open_in_app":a.startsWith("/feed/explore")?"explore":"browse"};
_.K_a=function(){var a=av==null?void 0:av.response,b=a==null?void 0:a.endpoint;if(!b)return(a==null?void 0:a.page)==="watch"?"watch":G_a();var c;a=(c=_.y(b==null?void 0:b.commandMetadata,_.ao))==null?void 0:c.webPageType;c=!1;if(a&&!H_a.includes(a))switch(a){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 d;return((d=_.y(b==null?void 0:b.commandMetadata,_.ao))==null?0:d.url)&&F_a(_.y(b.commandMetadata,_.ao).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var e;return(b=(e=_.y(b,_.pq))==null?void 0:e.browseId)?I_a[b]||"browse":"browse";default:c=!0}if(_.y(b,_.pv)||_.y(b,J_a))return"sponsorship";e=F_a(window.location.href);if(e.startsWith("/experiments"))return"experiments";if(e.startsWith("/create_channel"))return"create_channel";
if(_.y(b,_.Ml)&&e.startsWith("/shorts"))return"shorts";if(_.y(b,_.Ml)&&e.startsWith("/watch"))return"watch";c&&(b=new _.qj("Unsupported mWeb page type",{pathname:e,webPageType:a}),_.Bl(b));return"browse"};
R_a=function(a){var b=a.data;var c=a.inlineMetadata;var d=a.aspectRatio;var e=a.scrimStyle;var g=a.useDefaultStyle;var k=a.className;var m=yi(new L_a);a=_.x("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";a=g?a==="SHORTS_LOCKUP_STYLE_SLIM":b.style==="SHORTS_LOCKUP_STYLE_SLIM";c=c||a||!1;e=e!==void 0?e:1;var n=_.Rl(function(J){m.value&&(m.value.hostElement=J,G())});
_.$l(n,{visibilityCallback:function(J){J&&b.onFirstVisible&&_.Js(b.onFirstVisible)},
showOption:{calledOnce:!0,state:"visible"}});k=_.lt("shortsLockupViewModelHost",k);var r=_.Gs({elementsCommand:b.onTap}),t=_.Rl();_.xYa(t,_.Es(b.onTap));var u=_.ot(function(J){if(r==null?0:r.onclick)r.onclick(J);return!1}),w=_.Rl(),A=[];
A.push("shortsLockupViewModelHostThumbnailContainer");d===1?A.push("shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree"):d===2&&A.push("shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour");a||A.push("shortsLockupViewModelHostThumbnailContainerRounded");_.x("web_shorts_2_by_3_lockups_study")||A.push("shortsLockupViewModelHostThumbnailContainerCustomDimensions");var C,G=function(){if(m.value){var J;(J=C)==null||qv(J);J=m.value;var I;J.hostElement&&((I=J.data)==null?0:I.inlinePlayerData)&&
(C=$u({mediaRenderer:J,lockupElement:J.hostElement,thumbnailElement:w.value,videoPreviewOpts:M_a}))}};
ui(function(){m.value&&(m.value.data=b,G())},[b]);
return _.q("ytm-shorts-lockup-view-model",{el:n,class:k},_.q("a",{el:t,"on:click":u,class:"shortsLockupViewModelHostEndpoint reel-item-endpoint "},_.q("div",{el:w,class:A.join(" ")},_.Qg(b.thumbnail,function(){return _.q(_.Vh,null,_.q(_.Ss,{data:b.thumbnail,alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),null)})),c?_.q(N_a,{data:b,
scrimStyle:e,useDefaultStyle:g}):null,O_a(b.badge,{badgeViewModel:{class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0}})),c&&b.menuOnTap?_.q(P_a,{data:b,inlineMetadata:c}):null,c?null:_.q(Q_a,{useDefaultStyle:g,data:b}))};
N_a=function(a){var b=a.data;var c=a.scrimStyle;var d=a.useDefaultStyle;var e=_.x("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";a=d&&_.x("web_hide_primary_text_for_pivot_panel");var g={};d=_.lt("shortsLockupViewModelHostInlineMetadata",(g.shortsLockupViewModelHostMetadataRounded=!(d?e==="SHORTS_LOCKUP_STYLE_SLIM":b.style==="SHORTS_LOCKUP_STYLE_SLIM"),g.shortsLockupViewModelHostInlineMetadataShortScrim=c===3&&!_.x("enable_shorts_lockup_new_scrim"),
g.shortsLockupViewModelHostInlineMetadataShortScrimNew=c===3&&_.x("enable_shorts_lockup_new_scrim"),g.shortsLockupViewModelHostInlineMetadataMediumScrim=c===2||c===4,g.shortsLockupViewModelHostShowOverPlayer=!0,g));var k,m;e={};return _.q("div",{class:d+" image-overlay-text"},_.q("h3",{class:_.jt("shortsLockupViewModelHostMetadataTitle",(e.shortsLockupViewModelHostMetadataTitleTextShadow=c===4,e)),"aria-label":b.accessibilityText},_.Qg(((k=b.overlayMetadata)==null?void 0:k.primaryText)&&!a,function(){return _.q(_.wt,
{text:b.overlayMetadata.primaryText,noEndpoints:!0,noStyleRuns:!0})})),((m=b.overlayMetadata)==null?0:m.secondaryText)?_.q(S_a,{data:b,
scrimStyle:c}):null)};
Q_a=function(a){var b=a.data;var c=_.x("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";a=(a.useDefaultStyle?c==="SHORTS_LOCKUP_STYLE_SLIM":b.style==="SHORTS_LOCKUP_STYLE_SLIM")?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded";var d=_.Gs({elementsCommand:b.onTap});c=_.Rl();_.xYa(c,_.Es(b.onTap));var e=_.ot(function(u){if(d==null?0:d.onclick)d.onclick(u);return!1}),g,k,
m,n,r,t={};
return _.q("div",{class:a+" image-overlay-text","on:click":e},_.q("h3",{class:_.jt("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(t.shortsLockupViewModelHostOutsideMetadataMissingTitle=!((g=b.overlayMetadata)==null?0:(k=g.primaryText)==null?0:k.content),t)),"aria-label":b.accessibilityText},_.q("a",{el:c,"on:click":e,class:"shortsLockupViewModelHostEndpoint shortsLockupViewModelHostOutsideMetadataEndpoint",title:(m=b.overlayMetadata)==null?void 0:(n=m.primaryText)==
null?void 0:n.content},_.Qg(b.overlayMetadata,function(){return _.q(_.wt,{text:b.overlayMetadata.primaryText,noEndpoints:!0,noStyleRuns:!0})}))),((r=b.overlayMetadata)==null?0:r.secondaryText)?_.q(S_a,{data:b,
className:"shortsLockupViewModelHostOutsideMetadataSubhead"}):null,b.menuOnTap?_.q(P_a,{data:b,inlineMetadata:!1}):null)};
S_a=function(a){var b=a.data;var c=a.scrimStyle;a=a.className;var d,e,g,k={};return _.q("div",{class:_.jt((k.shortsLockupViewModelHostMetadataSubhead=c!==4,k.shortsLockupViewModelHostMetadataSubheadNew=_.x("enable_shorts_lockup_new_scrim"),k.shortsLockupViewModelHostMetadataSubheadTextShadow=c===4,k),a),"aria-label":_.x("disable_extra_shorts_aria_label_ks")?(d=b.overlayMetadata)==null?void 0:(e=d.secondaryText)==null?void 0:e.content:void 0},_.q(_.wt,{text:(g=b.overlayMetadata)==null?void 0:g.secondaryText,
noStyleRuns:!0}))};
P_a=function(a){var b={};b=_.lt((b.shortsLockupViewModelHostInlineMetadataMenu=a.inlineMetadata,b.shortsLockupViewModelHostOutsideMetadataMenu=!a.inlineMetadata,b.shortsLockupViewModelHostShowOverPlayer=!0,b));var c={style:a.inlineMetadata?"overlay":"mono",accessibilityLabel:a.data.menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(g){g.preventDefault();g.stopPropagation();var k=_.Gs({elementsCommand:a.data.menuOnTap,forceNewState:!0});if(k==null?0:k.onclick)k.onclick(g)}},
d=At(c,!0),e=function(){_.v().resolve(xu)("MORE_VERT",{iconSize:d})};
return _.q("div",{class:b},_.x("web_wiz_button_shape")?_.q(rv,{data:c,iconName:"MORE_VERT"}):_.q(Ul,null,function(){Ct(c,e)}))};
sv=function(a,b,c,d){return a&&b?a!==c||b!==d?(_.nv(Error("Eh"),void 0,void 0,{"stored-slot":a,"stored-layout":b,"latest-slot":c,"latest-layout":d}),!1):!0:!1};
T_a=function(a,b,c){return a({targetId:b},function(d){return c.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},d,{header:c.continuationItems?c.continuationItems[0]:void 0}):Object.assign({},d,{contents:c.continuationItems?c.continuationItems:[]})})};
U_a=function(a,b,c,d){if(b=b.trackingParams){var e,g=(e=c.getScreenLayer)==null?void 0:e.call(c);c=_.Fn(g);e=_.En(g);if(c&&e){var k=_.qs(b);_.x("combine_ve_grafts")?a.graftServerVe(b,e,g):_.Ro(c,e,k);d==null||d(k)}}};
W_a=function(a){var b;return((b=V_a.get(a))==null?void 0:b.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
Z_a=function(a,b){var c={type:b.slotType,controlFlowManagerLayer:X_a.get(b.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};b.slotEntryTrigger&&(c.entryTriggerType=b.slotEntryTrigger.triggerType);b.slotPhysicalPosition!==1&&(c.slotPhysicalPosition=b.slotPhysicalPosition);if(a){c.debugData={slotId:b.slotId};if(a=b.slotEntryTrigger)c.debugData.slotEntryTriggerData=Y_a(a);a=b.slotFulfillmentTriggers;c.debugData.fulfillmentTriggerData=[];a=_.h(a);for(var d=a.next();!d.done;d=a.next())c.debugData.fulfillmentTriggerData.push(Y_a(d.value));
b=b.slotExpirationTriggers;c.debugData.expirationTriggerData=[];b=_.h(b);for(a=b.next();!a.done;a=b.next())c.debugData.expirationTriggerData.push(Y_a(a.value))}return c};
Y_a=function(a,b){var c={type:a.triggerType};b!=null&&(c.category=b);a.triggeringSlotId!=null&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedSlotId=a.triggeringSlotId);a.triggeringLayoutId!=null&&(c.triggerSourceData||(c.triggerSourceData={}),c.triggerSourceData.associatedLayoutId=a.triggeringLayoutId);return c};
$_a=function(a,b,c,d){b={opportunityType:b};a&&(d||c)&&(d=_.zf(d||[],function(e){return Z_a(a,e)}),b.debugData=Object.assign({},c&&c.length>0?{associatedSlotId:c}:{},d.length>0?{slots:d}:{}));
return b};
a0a=function(a){return tv(a.opportunityAdapterMap).concat(tv(a.triggerAdapterMap)).concat(tv(a.fulfillmentAdapterFactoryMap)).concat(tv(a.slotAdapterFactoryMap)).concat(tv(a.layoutRenderingAdapterFactoryMap))};
tv=function(a){var b=[];a=_.h(a.values());for(var c=a.next();!c.done;c=a.next())c=c.value,c.isAdsControlFlowEventListener&&b.push(c);return b};
vv=function(a){var b=a.slotId,c=a.slotType,d=a.slotPhysicalPosition;return b===void 0?new uv("Cannot construct a slot due to the missing id.",{adSlotMetadata:a}):c===void 0?new uv("Cannot construct a slot due to the missing type.",{adSlotMetadata:a}):d===void 0?new uv("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:a}):{slotId:b,slotType:c,slotPhysicalPosition:d,managerLayer:"external",adSlotLoggingData:a.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new b0a}};
c0a=function(a){var b=a.layoutId,c=a.layoutType;return b===void 0?new wv("Cannot construct a layout due to the missing id.",{adLayoutMetadata:a}):c===void 0?new wv("Cannot construct a layout due to the missing type.",{adLayoutMetadata:a}):{layoutId:b,layoutType:c,managerLayer:"external",adLayoutLoggingData:a.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new b0a,interactionLoggingAdsClientData:{}}};
d0a=function(a){if((a=a.value)&&a.querySelector("img")){var b=a.querySelector("img");b.addEventListener("error",function(){XRa(b.src).then(function(c){(c=Hd(c).toString())?b.src=c:b.removeAttribute("src")}).catch(function(){b.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
yv=function(a,b){if(b&&(e0a(b.viewableCommand)||e0a(b.endOfSessionCommand))){a=a.value;var c=f0a(b==null?void 0:b.viewableCommand);b=f0a(b==null?void 0:b.endOfSessionCommand);if(!xv){var d=_.Ei("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);xv=new g0a((d==null?void 0:d.length)===2?d[1]:null)}h0a(xv,a);i0a(xv,a,c,b)}};
zv=function(a){xv&&h0a(xv,a.value)};
e0a=function(a){a=_.Es(a);return!(a==null||!a.loggingUrls)&&a.loggingUrls.length>0};
f0a=function(a){if(!a)return[];var b=[],c,d;((d=(c=_.Es(a))==null?void 0:c.loggingUrls)!=null?d:[]).forEach(function(e){e.baseUrl&&b.push(e.baseUrl)});
return b};
j0a=function(a){return a.shorts.isDesktopSmallWidth};
_.k0a=function(a){return a.shorts.isWatchWhileMode};
_.Av=function(a){return a.shorts.isFullscreen};
_.Bv=function(a){return a.shorts.isShortsPipActive};
m0a=function(a){var b,c;if(a=(b=_.y(a.reelsAdCardButtoned,l0a))==null?void 0:(c=b.animatedRenderingConfig)==null?void 0:c.easeOutSeconds)return a+"s"};
Cv=function(a,b){return a.year===b.year&&a.month===b.month&&a.day===b.day};
Dv=function(a,b){return a.year!==b.year?a.year<b.year:a.month!==b.month?a.month<b.month:a.day<b.day};
n0a=function(a){return{year:a.getFullYear(),month:a.getMonth(),day:a.getDate()}};
o0a=function(a){var b=MFa;b=b===void 0?MFa:b;b(new Date(a.year,a.month,a.day))};
Ev=function(a){return n0a(new Date(Number(a.seconds)*1E3))};
p0a=function(a){return a.year!==void 0&&a.month!==void 0&&a.day!==void 0};
q0a=function(a){return a.start!==void 0&&a.end!==void 0};
r0a=function(a){return q0a(a)?a.start:a};
s0a=function(a){return q0a(a)?a.end:void 0};
u0a=function(a,b){for(var c=[],d=new Date(a.start.year,a.start.month);d.getFullYear()<a.end.year||d.getFullYear()===a.end.year&&d.getMonth()<=a.end.month;){var e=c,g=e.push,k=d.getFullYear(),m=d.getMonth(),n=a,r=b,t=void 0,u=[],w=Object.freeze({extraCssClass:"invisible"}),A=new Date(k,m),C=n0a(A);A=A.getDay();for(var G=n0a(new Date);C.month===m;){A!==t0a&&t||(t=Array.from({length:7}).fill(w),u.push(t));var J={date:{year:k,month:m,day:C.day},extraCssClass:"",debugClass:""};J.extraCssClass=r(J.date,
C,G,n).trim();t[(A-t0a+7)%7]=J;C=C.day===n_a(C.year,C.month)?C.month===11?{year:C.year+1,month:0,day:1}:{year:C.year,month:C.month+1,day:1}:{year:C.year,month:C.month,day:C.day+1};A=(A+1)%7}g.call(e,{weeks:u,monthLabel:Fv.SHORTMONTHS[m]+" "+k,year:k,month:m,monthLabelExtraCssClass:u[0][2]===w?"shift-down-label":""});d.setMonth(d.getMonth()+1)}return c};
v0a=function(a,b){b=b.months.findIndex(function(c){return c.year===a.year&&c.month===a.month});
return b>=0?b:void 0};
x0a=function(a,b){a:{var c=c===void 0?[2,3]:c;c=_.h(c);for(var d=c.next();!d.done;d=c.next()){var e=new Date;if((new w0a(d.value)).parse(b,e,{validate:!0})){e.setHours(0,0,0,0);b=e;break a}}b=null}if(!b)return{isValid:!1,value:void 0};b=n0a(b);c=a.end;return Dv(b,a.start)||Dv(c,b)?{isValid:!1,value:void 0}:{isValid:!0,value:b}};
C0a=function(a){var b=y0a;b=b===void 0?z0a:b;var c=a.columnsToShow||[],d=A0a(a.columnDimensions,a.columnsToShow,a.leftFloatingColumns,b);return c.map(function(e,g){var k=a.columns[e];if(k===void 0)throw Error("Kh");var m=d?d[g]:"";var n=a.getCustomTooltip?a.getCustomTooltip(e,k.headerTooltipParagraphs):k.headerTooltipParagraphs;var r=B0a(a,e);return{type:e,index:g,style:m,classes:r,headerName:k.headerName||"",headerIcon:k.headerIcon,headerTooltipParagraphs:n||[],headerTooltipHelpContext:k.headerTooltipHelpContext,
sortOrders:k.sortOrders||[],selectionState:k.isSelectionCheckbox?a.selectionState:void 0}})};
B0a=function(a,b){var c=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],d=a.columns[b];if(d===void 0)return"";var e=c.includes("DEFAULTS")&&d.cssClass?[d.cssClass]:[];if(c.includes("SORTING")){d.sortOrders&&d.sortOrders.length&&e.push("sortable");if(a.sorting&&a.sorting.columnType===b)a:switch(a.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var g="column-sorted";break a;default:g=""}else g="";g&&e.push(g)}c.includes("FLOATING")&&(b=a.columnsToShow.indexOf(b),a.leftFloatingColumns&&b<a.leftFloatingColumns&&
e.push("floating-column"),a.leftFloatingColumns&&b===a.leftFloatingColumns-1&&e.push("last-floating-column"));c.includes("RIGHT_ALIGN")&&d.rightAlignHeader&&e.push("right-align");return e.filter(function(k){return k}).join(" ")};
A0a=function(a,b,c,d){c=c===void 0?0:c;d=d===void 0?z0a:d;if(a){var e=[],g=0;D0a(a,b,d).forEach(function(k,m){var n="min-width:"+k.minWidth+"px;padding-left:"+k.paddingLeft+"px;padding-right:"+k.paddingRight+"px;flex:"+k.flexGrow+" 0 "+k.minWidth+"px;";k.maxWidth!==Infinity&&(n=[n,"max-width:"+k.maxWidth+"px;"].join(""));g>0&&m<c&&(n=[n,"left:"+g+"px;"].join(""));e.push(n);g+=k.minWidth+k.paddingLeft+k.paddingRight});
return e}};
D0a=function(a,b,c){c=c===void 0?z0a:c;return b.map(function(d,e){d=a&&a[d]||{};var g=e===0?c.paddingLeftFirstColumn:c.padding;d.paddingLeft!==void 0&&(g=d.paddingLeft);e=e===b.length-1?c.paddingRightLastColumn:c.padding;d.paddingRight!==void 0&&(e=d.paddingRight);return{paddingLeft:g,paddingRight:e,minWidth:d.minWidth!==void 0?d.minWidth:c.minWidth,maxWidth:d.maxWidth!==void 0?d.maxWidth:c.maxWidth,flexGrow:d.flexGrow!==void 0?d.flexGrow:c.flexGrow}})};
E0a=function(a){var b=a.reduce(function(d,e){var g=e.columnId,k={};e.headerText&&(k.headerName=_.Vp(e.headerText));e.rightAlignHeader&&(k.rightAlignHeader=e.rightAlignHeader);var m;if((m=e.headerIcon)==null?0:m.iconType)k.headerIcon=_.fs(e.headerIcon.iconType);d[g]=k;return d},{}),c=a.filter(function(d){return!d.hideColumn}).map(function(d){return d.columnId});
a=a.filter(function(d){return!!d.dimensions}).reduce(function(d,e){d[e.columnId]=e.dimensions;
return d},{});
return{columns:b,columnsToShow:c,columnDimensions:a}};
_.F0a=function(a){return a?a.simpleText?a.simpleText:a.runs?a.runs.map(function(b){return b.text}).join(""):"":""};
G0a=function(a,b){if(!b)return a.text?_.F0a(a.text):void 0};
H0a=function(a,b){return function(c){b==null||b(c,a)}};
_.I0a=function(a,b){var c=hZa(a.responsiveSize),d;a=!((d=a.responsiveMap)==null||!d.some(function(e){return e.containerSize==="CONTAINER_SIZE_NARROW"&&e.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:b,sizing:c,enableFullBleedForSingleCol:!1,isCompactList:c==="COMPACT"&&a}};
J0a=function(a,b){return _.mp(a.entities,"votingEntity",b)};
K0a=function(a){if(a){var b;return((b=_.v().resolve(_.Wi(_.Ns)))==null?0:b())?a.darkTheme:a.lightTheme}};
L0a=function(a,b,c){return _.q(_.Vh,null,Pja(c,[[0,function(){return _.q("h2",{class:b},a)}],
[1,function(){return _.q("h3",{class:b},a)}],
[2,function(){return _.q("h4",{class:b},a)}]],function(){return _.q("h2",{class:b},a)}))};
M0a=function(a){var b=["shelf-header-layout-wiz"];a.disableHorizontalPadding&&b.push("shelf-header-layout-wiz--disable-horizontal-padding");a.disableVerticalPadding&&b.push("shelf-header-layout-wiz--disable-vertical-padding");a.useResponsiveLayout&&(b.push("shelf-header-layout-wiz--responsive"),a.forceSmallLayout&&b.push("shelf-header-layout-wiz--narrow"));a.isOverlay&&b.push("shelf-header-layout-wiz--is-overlay");a.onClick&&b.push("shelf-header-layout-wiz--tappable");var c=["shelf-header-layout-wiz__title"];
a.forceSmallLayout&&c.push("shelf-header-layout-wiz__title--small-title");var d=["shelf-header-layout-wiz__leading-image"];a.circularImage&&d.push("shelf-header-layout-wiz__leading-image--circular-image");var e=_.ot(function(g){var k;(k=a.onClick)==null||k.call(a,g)});
return _.q("yt-shelf-header-layout",{class:b.join(" "),"on:click":e,tabindex:a.onClick?0:void 0},a.leadingIcon?_.q("div",{class:"shelf-header-layout-wiz__leading-icon"},_.q(_.tt,{icon:a.leadingIcon})):a.leadingImage?_.q("div",{class:d.join(" ")},a.leadingImage()):_.q(_.Vh,null),_.q("div",{class:"shelf-header-layout-wiz__label-container"},a.superlabel?_.q("div",{class:"shelf-header-layout-wiz__superlabel"},a.superlabel()):_.q(_.Vh,null),_.q("div",{class:"shelf-header-layout-wiz__title-row"},L0a(a.title(),
c.join(" "),a.tagLevel),_.Qg(a.detail,function(){return _.q("div",{class:"shelf-header-layout-wiz__detail"},a.detail())})),a.sublabel?_.q("div",{class:"shelf-header-layout-wiz__sublabel"},a.sublabel()):_.q(_.Vh,null)),a.trailingActions?_.q("div",{class:"shelf-header-layout-wiz__trailing-actions"},a.trailingActions()):_.q(_.Vh,null))};
N0a=function(a){var b=_.y(a==null?void 0:a.avatar,_.Zu),c,d=(c=a==null?void 0:a.image)!=null?c:_.fv(a==null?void 0:a.themedImage);return _.q(_.Vh,null,_.Qg(d,function(){return _.q(_.Ss,{data:d,alt:"",preserveWidth:!0,preserveHeight:!0})}),_.Qg(b,function(){return _.q(_.Gv,{data:b})}))};
Q0a=function(a){var b=_.y(a.bottomBadge,O0a),c=b&&a.sublabel?"ytSectionHeaderViewModelBadgeWithLabel":void 0;return _.q(_.Vh,null,_.Qg(b,function(){return b&&_.q(P0a,{data:b,class:c})}),_.Qg(a.sublabel,function(){return _.q(_.wt,{text:a.sublabel})}))};
R0a=function(a){var b=_.y(a.topBadge,O0a),c=b&&a.superlabel?"ytSectionHeaderViewModelBadgeWithLabel":void 0;return _.q(_.Vh,null,_.Qg(b,function(){return b&&_.q(P0a,{data:b,class:c})}),_.Qg(a.superlabel,function(){return _.q(_.wt,{text:a.superlabel})}))};
T0a=function(a){var b=a.data;var c=a.disableHorizontalPadding;var d=a.disableVerticalPadding;var e=a.forceSmallLayout;var g=a.useResponsiveLayout;a=a.isOverlay;var k=b.sublabel||b.bottomBadge,m=b.superlabel||b.topBadge,n=_.Qu(b.rendererContext);c={title:function(){return _.q(_.wt,{text:b.headline})},
sublabel:k&&function(){return Q0a(b)},
superlabel:m&&function(){return R0a(b)},
leadingImage:b.leadingAccessory&&function(){return N0a(b.leadingAccessory)},
trailingActions:b.trailingActions&&function(){return _.q(_.Vh,null,S0a(b.trailingActions))},
disableHorizontalPadding:c,disableVerticalPadding:d,forceSmallLayout:e,useResponsiveLayout:g,isOverlay:a,onClick:n?function(r){var t=_.Pu(b.rendererContext);t&&_.Fs(t,{form:{element:r.target,event:r}})}:void 0};
d=(d=K0a(b==null?void 0:b.backgroundColor))?"background-color: "+_.Cq(d)+";":void 0;return _.q("yt-section-header-view-model",{class:"ytSectionHeaderViewModelHost",style:d},_.q(M0a,Object.assign({},c)))};
U0a=function(a,b){if(a.simpleText)return Object.assign({},a,{simpleText:Ls(a.simpleText,b)});if(!a.runs)return a;for(var c=Object.assign({},a,{runs:[]}),d=0,e=_.h(a.runs),g=e.next();!g.done;g=e.next())if(g=g.value,g.text)if(d+g.text.length<=b)c.runs.push(g),d+=g.text.length;else return c.runs.push(Object.assign({},g,{text:Ls(g.text,b-d)})),c;return a};
V0a=function(a,b){return _.mp(a.entities,"chipBarStateEntity",b)};
W0a=function(a,b){return _.mp(a.entities,"chipEntity",b)};
Y0a=function(a,b,c,d){return function(){var e=X0a.has(a.displayType)&&a.selected,g=e&&a.deselectCommand?a.deselectCommand:a.tapCommand;!g||e&&d||_.Js(g,{form:{element:b==null?void 0:b.value}});c==null||c()}};
Z0a=function(a,b){return{triggeringElement:a,onDwellTriggeredFn:function(){var c={triggeringElement:a,loadVideoPreviewEventData:b},d=document.querySelector(".video-preview");d&&d.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:c}))},
onDwellEndFn:function(){var c=document.querySelector(".video-preview");c&&c.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
$0a=function(a,b){var c=_.v().resolve(_.Wi(RYa)),d=function(){var e=b();return c&&e?Z0a(a.value,e):null};
_.yh(function(){var e=d();c&&e&&Promise.resolve().then(function(){c.registerElement(e)});
_.wh(function(){c&&e&&Promise.resolve().then(function(){c.unregisterElement(e)})})},"b8bYLd")};
b1a=function(a){var b=a.dataset.resizeObserverId;if(b)return b;b=""+a1a++;return a.dataset.resizeObserverId=b};
c1a=function(a,b){var c=b1a(a);Hv.has(c)||Hv.set(c,new Set);Hv.get(c).add(b);Iv.has(c)&&b(Object.assign({},{target:a},Iv.get(c)))};
d1a=function(a){a=_.h(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=b1a(b.target),d=Object.assign({},{target:b.target},Iv.get(c));if(d!=null&&d.contentRect?d.contentRect.width!==b.contentRect.width||d.contentRect.height!==b.contentRect.height:1)for(Iv.set(c,{borderBoxSize:b.borderBoxSize,contentBoxSize:b.contentBoxSize,contentRect:b.contentRect,devicePixelContentBoxSize:b.devicePixelContentBoxSize}),c=_.h(Hv.get(c)||[]),d=c.next();!d.done;d=c.next())d=d.value,d(b)}};
f1a=function(){return Jv?Jv:Jv=new e1a(d1a)};
g1a=function(a,b){var c=b1a(a);Hv.has(c)&&(Hv.get(c).delete(b),Hv.get(c).size===0&&(Hv.delete(c),Iv.delete(c),Jv.unobserve(a),delete a.dataset.resizeObserverId));Hv.size===0&&Jv&&(Jv.disconnect(),Jv=void 0)};
i1a=function(a,b){var c=_.v().resolve(Zl);return h1a.map(function(d){return c.observe(a,b,d)})};
j1a=function(a){var b=_.v().resolve(Zl);a.forEach(function(c){b.unobserveByKey(c)})};
m1a=function(a){var b=Object.assign({},k1a,{canHaveZeroSize:!1}),c=_.h(Rka()),d=c.next().value,e=c.next().value,g=function(k){var m=k.contentRect.height;if((k=k.contentRect.width)||m||b.canHaveZeroSize)d.width()===k&&d.height()===m||e(d,{height:m,width:k})};
_.vi(function(){var k=a instanceof HTMLElement?a:a.value,m=l1a(g,b.throttleMs),n=[];b.useVisibilityObserver&&(n=i1a(k,function(r,t){requestAnimationFrame(function(){t==="visible"?(c1a(k,m),f1a().observe(k)):g1a(k,m)})}));
n.length||(c1a(k,m),f1a().observe(k));_.wh(function(){n.length&&(j1a(n),n.length=0);g1a(k,m)})});
return d};
o1a=function(a){var b=a.data;var c=a.callback;var d=a.enableSingleChipSelection;a={};a=_.h(Lr(b.autoselectedChipIndex!=null?(a[b.autoselectedChipIndex]=!0,a):{}));var e=a.next().value,g=a.next().value,k=b.isHorizontallyScrollable;a={};return _.q("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},(b==null?void 0:b.title)&&_.q("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},b.title),_.q("div",{class:"ytChipsShelfViewModelChipsShelfContent"},n1a(b.previousButton,{buttonViewModel:{className:"ytChipsShelfViewModelLeftArrow"}}),
_.q("div",{class:_.jt("ytChipsShelfViewModelChipsScrollContainer",(a.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=function(){return!!k},a))},(b.contents||[]).map(function(m,n){return _.q("div",{class:"ytChipsShelfViewModelChipWrapper"},n1a(m,{chipViewModel:{callback:function(r,t){if(d){var u={};
g((u[n]=t,u));b!=null&&t&&(b==null?void 0:b.autoselectedChipIndex)!==n&&(b.autoselectedChipIndex=n)}else u={},g(Object.assign({},e,(u[n]=t,u)));c==null||c(r,t,n)},
disableDeselection:d,selected:!!e[n]}}))})),n1a(b.nextButton,{buttonViewModel:{className:"ytChipsShelfViewModelRightArrow"}})))};
q1a=function(a,b,c,d,e){a=b?a.switchOffCommand:a.switchOnCommand;if(d&&e)p1a(a,c,e);else{var g,k;(g=_.Gs({elementsCommand:a}))==null||(k=g.onclick)==null||k.call(g,c)}};
p1a=function(a,b,c){a=_.Gs({elementsCommand:a,additionalCommandArgs:{commandController:{onSuccess:function(){c(!1)},
onServerError:function(){c(!1)}}}});
if(a==null?0:a.onclick)a.onclick(b),c(!0)};
s1a=function(a){if(a)return _.y(a,r1a)};
t1a=function(a){a=a.selectElementClass;var b={};a=_.lt("checkbox-shape-wiz__checkbox",a,(b["checkbox-shape-wiz__checkbox--checkbox-default-style"]=!a,b));return _.q("div",{class:a,"aria-hidden":"true"},_.q(_.tt,{icon:"BOX_EMPTY"}),_.q(_.tt,{icon:"BOX_CHECK",active:!0}))};
u1a=function(a){var b=a.name;var c=a.onChange;var d=a.onClick;var e=a.checked===void 0?!1:a.checked;var g=a.labelRenderable;var k=a.hasLeadingLabel;var m=a.labelClass;var n=a.isCompact;var r=a.selectElementClass;var t=a.disableHorizontalPadding;a="checkbox"+_.Kv(_.Lv);var u=_.Rl(),w=_.ot(function(G){d==null||d(G);return!1}),A=_.ot(function(G){u.value.checked=e;
c==null||c(G);return!1}),C={};
m=_.lt("checkbox-shape-wiz",m,(C["checkbox-shape-wiz--compact"]=!!n,C["checkbox-shape-wiz--disable-horizontal-padding"]=!!t,C));return _.q("checkbox-shape",null,_.q("label",{class:m},_.q("input",{el:u,class:"checkbox-shape-wiz__input",id:a,checked:e,name:b,type:"checkbox","on:change":A,"on:click":w}),_.Qg(!k,function(){return t1a({isLeading:!0,selectElementClass:r})}),_.Qg(g,function(){return _.q("div",{class:"checkbox-shape-wiz__label"},g==null?void 0:g())}),_.Qg(k,function(){return t1a({isLeading:!1,
selectElementClass:r})})))};
v1a=function(a){var b=a.useCheckIcon===void 0?!1:a.useCheckIcon;var c=a.selectElementClass;a=b?"CHECK":"CIRCLE";var d=b?"CHECK":"CIRCLE_FILLED",e={};c=_.lt("radio-shape-wiz__radio",c,(e["radio-shape-wiz__radio--check-icon"]=!!b,e["radio-shape-wiz__radio--radio-default-style"]=!c,e));return _.q("div",{class:c,"aria-hidden":"true"},_.q(_.tt,{icon:a}),_.q(_.tt,{icon:d,active:!b}))};
w1a=function(a){function b(){var V;((V=_.v().resolve(_.Wi(_.yu)))==null?0:V.isKeyBoardInUse())&&J.value.classList.add("radio-shape-wiz__label-container--keyboard-focused")}
function c(){J.value.classList.remove("radio-shape-wiz__label-container--keyboard-focused")}
var d=a.name;var e=a.onChange;var g=a.onClick;var k=a.checked===void 0?!1:a.checked;var m=a.labelRenderable;var n=a.useCheckIcon;var r=a.hasLeadingLabel;var t=a.labelClass;var u=a.isCompact;var w=a.selectElementClass;var A=a.ariaLabel;var C=a.className;a=xi(function(){return"radio"+_.Kv(_.Lv)});
var G=_.Rl(),J=_.Rl(),I=_.ot(function(V){G.value.checked=k;e==null||e(V);return!1}),R=_.ot(function(V){g==null||g(V);
return!1}),ca=["radio-shape-wiz"];
C&&ca.push(C);C={};t=_.lt("radio-shape-wiz__label-container",t,(C["radio-shape-wiz--compact"]=!!u,C));ri(function(){document.activeElement===G.value&&b()});
_.vi(function(){var V=G.value;V.addEventListener("focusin",b);V.addEventListener("focusout",c);return function(){V.removeEventListener("focusin",b);V.removeEventListener("focusout",c)}});
return _.q("radio-shape",{class:ca.join(" ")},_.q("input",{el:G,class:"radio-shape-wiz__input",id:a,"prop:checked":k,name:d,type:"radio","on:change":I,"on:click":R,"aria-label":A}),_.q("label",{class:t,for:a,el:J},_.Qg(!r,function(){return v1a({checked:k,useCheckIcon:n,isLeading:!0,selectElementClass:w})}),_.Qg(m,function(){return _.q("div",{class:"radio-shape-wiz__label",
"aria-hidden":A?"true":"false"},m==null?void 0:m())}),_.Qg(r,function(){return v1a({checked:k,
useCheckIcon:n,isLeading:!1,selectElementClass:w})})))};
y1a=function(a){var b=a.data;var c=a.isLeading;var d=a.hideSelectionTextChevron;if(c&&(b.leadingImage||b.leadingAccessory)||!c&&(b.trailingImage||b.trailingButton||b.trailingButtons||b.selectionText)){var e=_.lt("yt-list-item-view-model-wiz__button-container");a={};var g=_.lt("yt-list-item-view-model-wiz__image-container",(a["yt-list-item-view-model-wiz__leading"]=c,a["yt-list-item-view-model-wiz__trailing"]=!c,a)),k=c?b.leadingImage:b.trailingImage,m=_.lt("yt-list-item-view-model-wiz__accessory",
"yt-list-item-view-model-wiz__image");a={};var n=_.lt("yt-list-item-view-model-wiz__accessory",(a["yt-list-item-view-model-wiz__leading"]=c,a["yt-list-item-view-model-wiz__trailing"]=!c,a)),r=!!b.selectionText;a:switch(b.listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":a="expand_more";break a;default:a="chevron_right"}var t=a;return function(){var u;return _.q(_.Vh,null,_.Qg(k,function(){return _.q("div",{class:g,"aria-hidden":"true"},_.q(_.Ss,{data:k,alt:"",
preserveWidth:!0,preserveHeight:!0,className:m}))}),_.Qg(c&&b.leadingAccessory,function(){return _.q("div",{class:g},x1a(b.leadingAccessory,{avatarViewModel:{avatarButtonCustomClassName:m}}))}),_.Qg(!c&&b.trailingButton,function(){return _.q("div",{class:e},x1a(b.trailingButton,{buttonViewModel:{className:n}}))}),_.Qg(!c&&((u=b.trailingButtons)==null?void 0:u.buttons),function(){var w;
return _.q("div",{class:e},x1a((w=b.trailingButtons)==null?void 0:w.buttons,{buttonViewModel:{className:n},accountLinkButtonViewModel:{className:n},switchButtonViewModel:{className:n}}))}),_.Qg(!c&&r,function(){return _.q(_.Vh,null,_.q(_.wt,{text:b.selectionText,
className:_.lt("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),_.Qg(!d,function(){return _.q(_.tt,{icon:t,className:"yt-list-item-view-model-wiz__chevron-icon"})}))}))}}};
z1a=function(a){return a.title||a.subtitle?function(){return _.q("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.q("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},_.Qg(a.title,function(){return _.q(_.wt,{text:a.title,className:"yt-list-item-view-model-wiz__title"})})),_.Qg(a.subtitle,function(){return _.q(_.wt,{text:a.subtitle,
className:"yt-list-item-view-model-wiz__subtitle"})}))}:function(){return _.q(_.Vh,null)}};
A1a=function(a){function b(){var Fa;((Fa=_.v().resolve(_.Wi(_.yu)))==null?0:Fa.isKeyBoardInUse())&&fa.value.classList.add("yt-list-item-view-model-wiz--keyboard-focused")}
function c(){fa.value.classList.remove("yt-list-item-view-model-wiz--keyboard-focused")}
var d=a.data;var e=a.isMenuItem;var g=a.isCompact;var k=a.onTap;var m=a.trailingAccessory;var n=a.hideSelectionTextChevron;var r=a.disabled;var t=a.inPopup;var u=a.disableHorizontalPadding;var w=a.isOverlay;a=NNa(function(Fa){a:if((d==null?0:d.entitySelectorType)&&(d==null?0:d.entityKey))switch(d.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":Fa=_.bPa(Fa,d.entityKey);Fa=Fa==null?void 0:Fa.value;var bb=!1;Fa==="CAPTIONS_UNAVAILABLE"&&(bb=!0,Fa=
"");Fa=Object.assign({},!!Fa&&{selectionText:{content:Fa}},{isSelected:!!Fa},!!Fa&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:bb});break a;default:Fa={}}else Fa={};return Fa});
var A=_.x("enable_web_shorts_captions_language_command")?Object.assign({},d,a):d;a=!(A.isSelected===void 0||!A.selectionStyle||A.selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED");var C=(_.Qu(A.rendererContext)||k)&&!a,G=_.Qu(A.rendererContext)||a;r=!!A.isDisabled||!!r;var J={};w=_.lt("yt-list-item-view-model-wiz",(J["yt-list-item-view-model-wiz--is-overlay"]=!!w,J));J={};var I=_.lt("yt-list-item-view-model-wiz__label",(J["yt-list-item-view-model-wiz__container"]=!a,J["yt-list-item-view-model-wiz__container--disabled"]=
r,J["yt-list-item-view-model-wiz__container--has-subtitle"]=!!A.subtitle,J["yt-list-item-view-model-wiz__container--compact"]=!!g,J["yt-list-item-view-model-wiz__container--tappable"]=C,J["yt-list-item-view-model-wiz__container--in-popup"]=!!t,J));r={};r=_.lt("yt-list-item-view-model-wiz__container",(r["yt-list-item-view-model-wiz__container--tappable"]=G,r["yt-list-item-view-model-wiz__container--compact"]=!!g,r["yt-list-item-view-model-wiz__container--in-popup"]=!!t,r["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=
!!u,r));J=A.leadingImage||A.leadingAccessory;var R=_.lt("yt-list-item-view-model-wiz__image-container",J?"yt-list-item-view-model-wiz__trailing":"yt-list-item-view-model-wiz__leading"),ca=_.x("apply_button_role_to_list_item");t=_.Rl();var V=_.Rl(),fa=ca?V:t,aa=function(){var Fa,bb,kb;return _.q(_.Vh,null,(Fa=y1a({data:A,isLeading:!0,hideSelectionTextChevron:!!n}))==null?void 0:Fa(),(bb=z1a(A))==null?void 0:bb(),m?_.q("div",{class:"yt-list-item-view-model-wiz__trailing"},m):(kb=y1a({data:A,isLeading:!1,
hideSelectionTextChevron:!!n}))==null?void 0:kb())},ma=function(){return ca?_.q("div",{class:I,
el:V,role:G||C?"button":void 0,tabindex:k||C?0:void 0,"on:keydown":za,"on:click":Da},aa()):_.q("div",{class:I,el:V},aa())},Ba={labelRenderable:ma,
isCompact:g,checked:A.isSelected,hasLeadingLabel:!!J,labelClass:r,selectElementClass:R,disableHorizontalPadding:!!u};_.Uu(t,A.rendererContext);var Da=_.ot(function(Fa){return void(k==null?void 0:k(Fa))}),za=_.Nu();
_.vi(function(){C&&(fa.value.addEventListener("focusin",b),fa.value.addEventListener("focusout",c));return function(){fa.value&&C&&(fa.value.removeEventListener("focusin",b),fa.value.removeEventListener("focusout",c))}});
g=_.ot(function(){return!1});
return _.q("yt-list-item-view-model",{el:t,class:w,role:e?"menuitem":"listitem",tabindex:ca?void 0:k||C?0:void 0,"on:keydown":ca?g:za,"on:click":ca?g:Da},_.Qg(a,function(){return Pja(A.selectionStyle,[["LIST_ITEM_SELECTION_STYLE_CHECKBOX",function(){return _.q(u1a,Object.assign({},Ba))}],
["LIST_ITEM_SELECTION_STYLE_RADIO",function(){return _.q(w1a,Object.assign({},Ba))}],
["LIST_ITEM_SELECTION_STYLE_DEFAULT",function(){return _.q(w1a,Object.assign({},Ba,{useCheckIcon:!0}))}]],function(){return ma()})},function(){return ma()}))};
F1a=function(a,b,c){if(b)return[B1a];switch(a){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[Mv];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return c?[Mv]:[C1a,Mv];case "TRANSFER_STATE_PAUSED_BY_USER":return[D1a,Mv];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[E1a,Mv];default:return[B1a]}};
G1a=function(a,b,c,d){return F1a(a,b,d).map(function(e){var g=e.text,k=e.iconType,m=e.videoAction;e=e.playlistAction;g=g?{content:g}:void 0;k=k&&{sources:[{clientResource:{imageName:k}}]};var n=(0,_.yf.unsafeClone)(c);if(n){var r=_.y(n,_.qu),t=_.y(n,_.ru);r&&m?r.action=m:t&&e&&(t.action=e)}return{title:g,leadingImage:k,rendererContext:n&&{commandContext:{onTap:{innertubeCommand:n}}}}})};
H1a=function(a){a=_.Pu(a.rendererContext);var b;return(b=_.y(a,_.ru))==null?void 0:b.playlistId};
I1a=function(a){var b;return(b=a.listItems)==null?void 0:b.some(function(c){var d;return _.Qu((d=_.y(c,_.nWa))==null?void 0:d.rendererContext)})};
_.K1a=function(a){var b=a.data;var c=a.isCompact;var d=a.hideSelectionTextChevron;var e=a.inPopup;a=a.isOverlay;var g=I1a(b)&&e;return _.q("yt-list-view-model",{class:"yt-list-view-model-wiz",role:g?"menu":"list"},J1a(b.listItems,{listItemViewModel:{isMenuItem:g,isCompact:c,hideSelectionTextChevron:d,inPopup:e,isOverlay:a},downloadListItemViewModel:{isMenuItem:g,isCompact:c,inPopup:e}}))};
Nv=function(a){var b=_.v().resolve(_.Wi(_.Ns));return b!=null&&b()?a.darkThemeColorPalette:a.lightThemeColorPalette};
Pv=function(a){return{primaryTextColor:Ov(a,0),secondaryTextColor:Ov(a,1),optionColor:Ov(a,2),backgroundColor:Ov(a,3),videoBackgroundColor:Ov(a,4)}};
Ov=function(a,b){if(a){switch(b){case 0:a=a.primaryTitleColor;break;case 1:a=a.secondaryTitleColor;break;case 2:a=a.surgeColor;break;case 3:a=a.section2Color;break;case 4:a=a.section3Color;break;default:return}if(a)return _.Bq(a)}};
L1a=function(a){return a?_.Cq(a):""};
M1a=function(a){return(a==null?void 0:a.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
N1a=function(a,b){var c;return"linear-gradient(to bottom, "+((c=b==null?void 0:b.map(function(d){var e=a?d.darkThemeColor:d.lightThemeColor;return e?_.Cq(e)+" "+((d==null?void 0:d.startLocation)||0)*100+"%":"transparent"}))==null?void 0:c.join(", "))+")"};
O1a=function(a){var b=a.className;var c=a.data;var d=a.isOverlay;var e=a.maxLinesOverride;var g=a.useMediumText;a=_.Rl();var k=c.description,m=c.alwaysShowTruncationText,n=c.truncationText,r=c.maxLines,t,u=!((t=_.y(c.rendererContext,GXa))==null||!t.onTap),w,A,C=(A=(w=_.y(c.rendererContext,_.Wu))==null?void 0:w.label)!=null?A:"";t=_.h(Lr(!1));var G=t.next().value,J=t.next().value;_.Uu(a,c.rendererContext);t=_.ot(function(){c.expandOnTap&&J(!G);return!1});
w={};return _.q("yt-description-preview-view-model",{el:a,class:_.lt("yt-description-preview-view-model-wiz",b,(w["yt-description-preview-view-model-wiz--clickable"]=u,w["yt-description-preview-view-model-wiz--is-overlay"]=d,w)),"on:click":t},_.Qg(k,function(){var I={};return G?_.q("div",{class:_.lt("yt-description-preview-view-model-wiz__description",(I["yt-description-preview-view-model-wiz__description--medium-text"]=g,I))},_.q(_.wt,{text:k})):_.q(YZa,{text:k,alwaysShowTruncationText:m,truncationText:n,
maxLines:e!=null?e:r,isOverlay:d,accessibilityLabel:C,useMediumText:g})}))};
R1a=function(a,b,c,d,e){var g=!a.metadata;var k=b?_.y(a.heroImage,P1a):_.y(a.animatedImage||a.image,P1a);if(!k)return{size:0};a=k.style;var m=k.layoutMode;k=yZa(xZa(k));if(b)b=Q1a(c,a,m,k,e);else a:if(g)b=c===1?{size:48}:{size:72};else switch(c){case 1:b={size:72};break a;case 2:b={size:120};break a;default:b=d<4?{size:120}:{size:160}}return b};
Q1a=function(a,b,c,d,e){if(!((d==null?0:d.height)&&(d==null?0:d.width)))return{size:0};var g=d.width;d=d.height;if(e)return b==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||b==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&g>d?{size:312/vZa}:b==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(c!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||a!==1&&a!==2||b!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&b!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&b!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(b==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||b==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||d===g)switch(a){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(b==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||d>g)switch(a){case 1:case 3:return{size:240*uZa};default:return{size:360*uZa}}switch(a){case 1:case 2:return{size:1/vZa*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.S1a=function(a){if(!("matchMedia"in window))return _.Ki(Error("Lh")),function(){return!1};
var b=window.matchMedia(a);a=_.h(_.fh(b.matches,"jLJc8e"));var c=a.next().value,d=a.next().value,e=function(g){d(g.matches)};
b.addEventListener?(b.addEventListener("change",e),_.wh(function(){b.removeEventListener("change",e)})):b.addListener&&(b.addListener(e),_.wh(function(){b.removeListener(e)}));
return c};
T1a=function(a){return a==="IMAGE_BANNER_STYLE_INSET"||a==="IMAGE_BANNER_STYLE_UNKNOWN"};
U1a=function(){if(!("matchMedia"in window))return _.Ki(Error("Lh")),0;var a=xi(function(){return window.matchMedia("(max-width: 527.9px)")}),b=xi(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),c=xi(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),d=xi(function(){return window.matchMedia("(min-width: 1024px)")}),e=_.h(Lr(a.matches)),g=e.next().value,k=e.next().value,m=_.h(Lr(b.matches));
e=m.next().value;var n=m.next().value,r=_.h(Lr(c.matches));m=r.next().value;var t=r.next().value;r=_.h(Lr(d.matches));var u=r.next().value,w=r.next().value,A=xi(function(){return function(I){k(I.matches)}}),C=xi(function(){return function(I){n(I.matches)}}),G=xi(function(){return function(I){t(I.matches)}}),J=xi(function(){return function(I){w(I.matches)}});
_.vi(function(){a.addEventListener?(a.addEventListener("change",A),b.addEventListener("change",C),c.addEventListener("change",G),d.addEventListener("change",J)):a.addListener&&(a.addListener(A),b.addListener(C),c.addListener(G),d.addListener(J));return function(){a.removeEventListener?(a.removeEventListener("change",A),b.removeEventListener("change",C),c.removeEventListener("change",G),d.removeEventListener("change",J)):a.removeListener&&(a.removeListener(A),b.removeListener(C),c.removeListener(G),
d.removeListener(J))}});
return g?1:e?2:m?3:u?4:0};
V1a=function(a){var b=0;a=_.h([a.title,a.metadata,a.actions,a.description,a.attribution]);for(var c=a.next();!c.done;c=a.next())c.value&&b++;return b};
X1a=function(a,b,c){var d;if(a=_.y((d=_.y(a.image,W1a))==null?void 0:d.avatar,_.Zu))switch(b){case 1:a.avatarImageSize="AVATAR_SIZE_XL";break;case 2:a.avatarImageSize="AVATAR_SIZE_XXL";break;default:c<4?a.avatarImageSize="AVATAR_SIZE_XXL":a.avatarImageSize="AVATAR_SIZE_XXXL"}};
_.Z1a=function(a){var b=a.data;var c=a.noPadding;var d=a.enableBanner;var e=a.cinematicContainerTopbarOffset;var g=a.allowCinematicContainerOverflow;var k=a.displayAsSidebar;var m=a.displayAsPanel;a=V1a(b);var n=!!b.heroImage,r=!!b.image||!!b.animatedImage,t=!!b.background,u=k||m?1:U1a(),w=u===1,A=u===2,C=w||A,G=u===4,J=R1a(b,n,u,a,k),I={};c=_.lt((I["page-header-view-model-wiz"]=!0,I["page-header-view-model-wiz--no-padding"]=!!c,I["page-header-view-model-wiz--small-top-padding"]=w&&!b.actions||A&&
!(r||n),I["page-header-view-model-wiz--small-bottom-padding"]=C&&!b.actions,I["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=!g,I["page-header-view-model-wiz--display-as-sidebar"]=k,I["page-header-view-model-wiz--display-as-panel"]=m,I));g={};g=_.lt((g["page-header-view-model-wiz__page-header-headline"]=!0,g["page-header-view-model-wiz__page-header-headline--page-header-headline-full-width-hero"]=J.allowFullWidth,g));k=C&&!J.allowFullWidth;m=(A=w&&(n||r)&&a>0)&&m;I={};m=(I["page-header-view-model-wiz__page-header-title"]=
!0,I["page-header-view-model-wiz__page-header-title--page-header-title-large"]=!A,I["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=A&&!m,I["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=m,I["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=t,I);A={};A=(A["page-header-view-model-wiz__page-header-headline-image"]=!0,A["page-header-view-model-wiz__page-header-headline-image--page-header-headline-image-hero"]=
n&&C,A);var R;I={};var ca=(I["page-header-view-model-wiz__page-header-banner-container"]=d,I["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=d&&((R=_.y(b.banner,_.Y1a))==null?void 0:R.style)==="IMAGE_BANNER_STYLE_FULL_BLEED",I);R={};R=(R["page-header-view-model-wiz__page-header-content-metadata"]=!0,R["page-header-view-model-wiz__page-header-content-metadata--page-header-content-metadata-overlay"]=t,R);I={};I=(I["page-header-view-model-wiz__page-header-flexible-actions"]=!0,
I["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=!!b.metadata||C,I["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=!C,I);var V={};V=(V["page-header-view-model-wiz__page-header-attribution"]=!0,V["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=t,V);var fa={descriptionPreviewViewModel:{className:"page-header-view-model-wiz__page-header-description",isOverlay:t,
maxLinesOverride:w?void 0:1,useMediumText:G},dynamicTextViewModel:{className:_.lt(m)},contentPreviewImageViewModel:{className:_.lt(A),imageSizeConfig:J},contentMetadataViewModel:{layout:w?1:0,className:_.lt(R),isOverlay:t,useMediumText:G},flexibleActionsViewModel:{layout:u===1||u===2?1:0,className:_.lt(I)},attributionViewModel:{className:_.lt(V),useMediumText:G},decoratedAvatarViewModel:{className:_.lt(A)},cinematicContainerViewModel:{topbarOffset:e},flexibleContainer:{isOverlay:t}};r&&X1a(b,u,a);
return _.q("yt-page-header-view-model",{class:c},_.Qg(t,function(){return _.q("div",{class:"page-header-view-model-wiz__page-header-background"},Qv(b.background,fa))}),_.q("div",{class:"page-header-view-model-wiz__page-header-content"},_.Qg(d&&(b==null?void 0:b.banner),function(){return _.q("div",{class:_.lt(ca)},Qv(b==null?void 0:b.banner,fa))}),_.q("div",{class:g},_.Qg(r,function(){return Qv((b==null?void 0:b.animatedImage)||(b==null?void 0:b.image),fa)}),_.Qg(n&&!k,function(){return Qv(b==null?
void 0:b.heroImage,fa)}),_.q("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.Qg(n&&k,function(){return _.q("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},Qv(b==null?void 0:b.heroImage,fa))}),_.Qg(b==null?void 0:b.title,function(){return Qv(b==null?void 0:b.title,fa)}),_.Qg(b.metadata,function(){return Qv(b.metadata,fa)}),_.Qg(b.description&&!w,function(){return Qv(b.description,fa)}),_.Qg(b.attribution&&!C,function(){return Qv(b.attribution,
fa)}),_.Qg(b.actions&&!C,function(){return Qv(b.actions,fa)}))),_.q("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.Qg(b.description&&w,function(){return Qv(b.description,fa)}),_.Qg(b.attribution&&C,function(){return Qv(b.attribution,fa)}),_.Qg(b.actions&&C,function(){return Qv(b.actions,fa)})),_.q("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.Qg(b.bottomMetadataFlexibleContainer,function(){return Qv(b.bottomMetadataFlexibleContainer,fa)}))))};
a2a=function(a){var b,c=((b=_.v().resolve(_.Wi(_.Ns)))==null?0:b())&&a.data.darkThemeImage?a.data.darkThemeImage:a.data.image;b=_.q("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.q("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},c?_.q(_.Ss,{data:c,alt:"",className:"ytwSearchFrictionViewModelHostImage"}):null),$1a(a.data.overflowMenuButton,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostMenuButton"}}));c=_.q(_.wt,{text:a.data.title,className:"ytwSearchFrictionViewModelHostTitle"});
var d=a.data;if(d.bodyText){var e=[];d=_.h(d.bodyText);for(var g=d.next();!g.done;g=d.next())e.push(_.q(_.wt,{text:g.value,className:"ytwSearchFrictionViewModelHostBodyText"}))}else e=_.q(_.Vh,null);return _.q("ytw-search-friction-view-model",{class:"ytwSearchFrictionViewModelHost"},b,c,e,$1a(a.data.actions,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostButton"}}),_.q(_.wt,{text:a.data.disclaimer,className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.q(_.wt,{text:a.data.attribution,
className:"ytwSearchFrictionViewModelHostAttribution"}))};
c2a=function(a){a=(new b2a).parse(a);return(new ln).render(a).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(b){var c=b.split(":").map(Number),d=0,e=0;if(c.length===3)c=_.h(c),d=c.next().value,e=c.next().value,c=c.next().value;else if(c.length===2)c=_.h(c),e=c.next().value,c=c.next().value;else if(c.length===1)c=_.h(c).next().value;else throw Error("Mh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(d*3600+e*60+c)+'" role="button">'+b+"</span>"})};
d2a=function(a){a=_.h(a.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var b=a.next(),c={};!b.done;c={clickHandler$jscomp$4:void 0},b=a.next()){b=b.value;c.clickHandler$jscomp$4=function(e){e=Number(e.target.getAttribute("data-time"));if(isNaN(e))throw Error("Nh");var g=document.querySelector("video");g&&(g.currentTime=e)};
var d=function(e){return function(g){g.key!=="Enter"&&g.key!=="Space"||(0,e.clickHandler$jscomp$4)(g)}}(c);
b.setAttribute("tabindex","0");b.removeEventListener("click",c.clickHandler$jscomp$4);b.removeEventListener("keydown",d);b.addEventListener("click",c.clickHandler$jscomp$4);b.addEventListener("keydown",d)}};
e2a=function(){return _.q("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.q(Rv,{percentWidth:100}),_.q(Rv,{animationDelay:200}),_.q(Rv,{animationDelay:400}),_.q(Rv,{animationDelay:600}),_.q(Rv,{animationDelay:800,percentWidth:60}),_.q("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.q(Rv,{percentWidth:100}),_.q(Rv,{animationDelay:200}),_.q(Rv,{animationDelay:400}),_.q(Rv,{animationDelay:600,percentWidth:50}))};
Rv=function(a){return _.q("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(a.percentWidth===void 0?100:a.percentWidth)+"%"},_.q("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(a.animationDelay===void 0?0:a.animationDelay)+"ms"}))};
f2a=function(){var a=_.h(_.fh(function(){return""},"v2wS5e")),b=a.next().value;
return[function(){return b()()},
a.next().value]};
Sv=function(a){return{signalAction:{signal:a}}};
i2a=function(){return _.Ei("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?g2a:_.h2a};
j2a=function(a,b){a=a===void 0?"SOFT_RELOAD_PAGE":a;b=b===void 0?49504:b;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.dp(_.to("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:b}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:a}}]}}}};
k2a=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.dp(_.to("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:i2a()}};
l2a=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.dp(_.to("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:i2a()}};
m2a=function(a,b){var c=_.dp(_.to("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),d=_.dp(_.to("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),e={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.dp(_.to("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};e.serviceEndpoint=a?a:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[Sv("SOFT_RELOAD_PAGE")]}};return{title:c,bodyText:d,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:e},
style:{value:b!=null?b:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
n2a=function(){return{title:_.dp(_.to("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:k2a()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}}};
p2a=function(a){a=a===void 0?{}:a;return{title:_.dp(a.localizedZeroStateTitleText===void 0?"":a.localizedZeroStateTitleText),bodyText:_.dp(a.localizedZeroStateMessage===void 0?"":a.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.dp(a.localizedZeroStateButtonText===void 0?"":a.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[o2a]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
r2a=function(a){a=a===void 0?{}:a;return{title:_.dp(a.localizedOptInBannerTitleText===void 0?"":a.localizedOptInBannerTitleText),titleLength:19,subtitle:_.dp(a.localizedOptInMessage===void 0?"":a.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.dp(_.to("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:_.dp(_.to("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:[q2a]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
t2a=function(a,b){a=a?s2a(a):"";b!==void 0&&isFinite(b)?b===0?b=_.to("UPDATING",void 0,"Updating..."):(b=dGa(new Date(b),new Date),b=_.to("UPDATED_TIME",{relative_time:b},"Updated "+b)):b="";var c="";a&&b&&(c=" \u2022 ");return _.dp(a+c+b)};
w2a=function(a,b,c,d,e,g){b=b===void 0?0:b;var k=u2a[b],m=k.title,n=k.iconType,r=k.topButtonRenderer,t=k.sectionClientVE;k=k.videoClientVE;var u;if(b!==1||a.length){c=[];a=_.h(a);for(d=a.next();!d.done;d=a.next()){var w=d.value;if(LEa(w))c.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:w.videoEntity.videoId,title:ep(w.videoEntity.title),shortBylineText:ep(w.channelEntity.title),thumbnail:w.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:w.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.to("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:k}}}}}});else if(KEa(w)){d=c;var A=d.push;var C=void 0,G=void 0,J=void 0,I=void 0,R=void 0,ca=void 0,V=void 0,fa=void 0,aa=w.mainPlaylistEntity.playlistId,ma=w==null?void 0:(fa=w.mainPlaylistEntity)==null?void 0:(V=fa.thumbnailStyleData)==null?void 0:(ca=V[0])==null?void 0:(R=ca.value)==null?void 0:(I=R.collageThumbnail)==null?void 0:I.coverThumbnail;I=pDa(aa);if(!_.x("enable_offline_playlist_page")&&
(w==null?0:(J=w.mainPlaylistEntity)==null?0:J.videos)){b:{J=w==null?void 0:(G=w.mainPlaylistEntity)==null?void 0:G.videos;G=_.Yp().getState().entities;if(J!=null&&J.length&&G)for(J=_.h(J),R=J.next();!R.done;R=J.next())if(R=_.ip(R.value).entityId,(R=JSON.parse(R).videoId)&&AEa(G,R)==="TRANSFER_STATE_COMPLETE"){G=R;break b}G=""}G!==void 0&&(I=Mp(_.Yp().getState(),G),I=_.cp(G,aa,void 0,void 0,I))}G=rDa(_.to("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),pDa(aa));w=aa&&ma&&G?{playlistId:aa,navigationEndpoint:I,
viewPlaylistText:G,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:ma}},title:ep(w.mainPlaylistEntity.title),shortBylineText:ep(w==null?void 0:(C=w.channelEntity)==null?void 0:C.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:v2a,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:aa,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.to("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:k}}}:
void 0;A.call(d,{gridPlaylistRenderer:w})}}k={gridRenderer:{items:c}};b===1&&(u=t2a(e,g))}else if(d){var Ba=_.dp((A=c==null?void 0:c.localizedPromptMessage)!=null?A:"");k={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.dp(_.to("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.cFa}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.dp(_.to("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=t2a(e,g)}else Ba=_.dp(_.to("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
k={};return{contents:[{shelfRenderer:{title:m,titleAnnotation:u,icon:{iconType:n},subtitle:Ba,content:k,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:r}]}}}}],loggingDirectives:{clientVeSpec:{uiType:t}}}};
x2a=function(a,b,c,d,e,g,k,m){c=c===void 0?{}:c;d=d===void 0?!1:d;e=e===void 0?!1:e;g=g===void 0?!1:g;k=k===void 0?0:k;m=m===void 0?-Infinity:m;if(!b.length&&!a.length&&!d)return e?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:p2a(c)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.dp(_.to("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 n=[];a.length&&n.push(w2a(a,0));d?n.push(w2a(b,1,c,g,k,m)):e&&n.push({contents:[{statementBannerRenderer:r2a(c)}]});(d&&b.length||a.length)&&n.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.dp(_.to("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 n.map(function(r){return{itemSectionRenderer:r}})};
_.y2a=function(a){return CEa(a.entities).length};
Tv=function(a,b){if(typeof a!=="object")return null;a=_.h(Object.entries(a));for(var c=a.next();!c.done;c=a.next()){var d=_.h(c.value);c=d.next().value;d=d.next().value;if(c===b)return c;if(d=Tv(d,b))return c+"."+d}return null};
Uv=function(a){var b=a.content;return(a=a.styleRuns)&&b?{runs:a.map(function(c){var d={text:b.slice(c.startIndex,c.startIndex+c.length)};c.fontColor&&(d.textColor=c.fontColor);return d})}:{simpleText:b}};
B2a=function(a,b,c,d){var e=z2a;d&&(a.quantity=d);if(!a.quantity||!a.maxQuantity)return{};d=a.minusButton;var g=a.plusButton,k,m,n,r;return{value:a.quantity,maxValue:a.maxQuantity,onChangeCallback:function(t){e(a,t)},
minusLabel:(k=_.y(d,A2a))==null?void 0:k.label,minimumReachedLabel:(m=_.y(d,A2a))==null?void 0:m.limitReachedLabel,plusLabel:(n=_.y(g,A2a))==null?void 0:n.label,maximumReachedLabel:(r=_.y(g,A2a))==null?void 0:r.limitReachedLabel,disabled:b,onRemoveCommand:c}};
z2a=function(a,b){var c=a.quantityIncrementerEntityKey;if(c){var d={};d.quantity=b;_.Kr(_.Iu("quantityIncrementerEntity",c,d));a.onChangeCommand&&_.Js(a.onChangeCommand)}};
Vv=function(a){return _.x("kevlar_comments_clone_data_killswitch")?a:_.yf.unsafeClone(a)};
E2a=function(a,b){(a=C2a(a))&&(b?D2a.push({command:a,sourceData:{},commandContext:void 0}):_.v().resolve(_.Xi).resolveCommand(a))};
C2a=function(a){return _.y(a,_.Ds)};
F2a=function(){var a=window.performance.timeOrigin+window.performance.now(),b=(new _.Wv).setSeconds(a/1E9);return _.Qc(b,2,_.ac(a%1E9),0)};
Xv=function(a,b){var c=_.y(_.y(a,_.Ds),G2a);c&&(b&&(c.serializedAdditionalMetadata=_.wc(b)),E2a(a,!0))};
H2a=function(a){switch(a){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"}};
I2a=function(a){switch(a){case 2:return 1;case 3:return 3;case 1:return 2;default:return 0}};
J2a=function(){return!!_.Ei("ID_TOKEN")};
M2a=function(a){return a instanceof Error&&a.cause instanceof K2a&&a.cause.rpcErrorCode!==void 0?!L2a.includes(a.cause.rpcErrorCode):!0};
O2a=function(){return _.Qi(N2a,{authuser:""+(_.Ei("SESSION_INDEX")||0)})};
Yv=function(a,b,c,d){c=c===void 0?"MINI_APP_SDK_API_UNSPECIFIED":c;d=d===void 0?"":d;var e=new _.qj;c={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:d,sdkApi:c};a instanceof Error&&(e.message=a.message,e.name=a.name,a.cause instanceof K2a&&a.cause.rpcErrorCode!==void 0&&(c.rpcErrorCode=a.cause.rpcErrorCode));var g;(g=b.onError)==null||g.call(b,{loggingError:e,metadata:c})};
Q2a=function(a,b,c,d){switch(a){case "MINI_APP_SOURCE_GAMESNACKS":return new Zv(b,c,d);default:return new P2a(b,c,d)}};
R2a=function(a){switch(a){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"}};
S2a=function(a){switch(a){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"}};
T2a=function(a){switch(a){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"}};
U2a=function(){return Math.floor(Math.random()*4)+1};
V2a=function(a,b,c,d){a=_.h(Object.entries(a));for(var e=a.next(),g={};!e.done;g={message$jscomp$937:void 0},e=a.next()){var k=_.h(e.value);e=k.next().value;k=k.next().value;g.message$jscomp$937=k;b.push(setTimeout(function(m){return function(){d(!1);c(m.message$jscomp$937.text)}}(g),g.message$jscomp$937.delayMs));
Number(e)>0&&b.push(setTimeout(function(){d(!0)},g.message$jscomp$937.delayMs-400))}};
W2a=function(a,b){var c=c===void 0?BQa:c;_.x("mweb_fix_monitor_visibility_after_render")?a&&us(function(){EQa(a,b,c)}):us(function(){EQa(a,b,c)})};
$2a=function(a){X2a||(X2a=Y2a(new _.Op(1,void 0,void 0,Z2a),0));var b=X2a.format(Math.floor(a));b=_.Np==="be"||_.Np==="bg"||_.Np==="es"||_.Np==="et"||_.Np==="hu"||_.Np==="ka"||_.Np==="lv"||_.Np==="pl"||_.Np==="pt-PT"||_.Np==="sq"?b.replace(new RegExp("^(\\d)"+Z2a.GROUP_SEP.replace(".","\\.")+"(\\d+("+Z2a.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):b;return a>=1E3&&a<=9999&&b[1]==="."&&(_.Np==="sl"||_.Np==="it")?b.replace(".",""):b};
a3a=function(a,b){ws("ytd-button-renderer",{data:a,className:b?b.className:"",overrides:b==null?void 0:b.buttonOverrides},Mh)};
d3a=function(a,b,c,d){if(a)return d=d||a.likeStatus,b?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:d==="LIKE",isDisabled:!a.likesAllowed,defaultIcon:{iconType:c},defaultText:d==="LIKE"?a.likeCountWithUnlikeText:a.likeCountText,toggledText:d==="LIKE"?a.likeCountText:a.likeCountWithLikeText,defaultNavigationEndpoint:b3a(a,"LIKE"),defaultServiceEndpoint:c3a(a,"LIKE"),toggledServiceEndpoint:c3a(a,"INDIFFERENT"),defaultTooltip:_.Vp(a.likeCountTooltipText),toggledTooltip:_.Vp(a.likeCountTooltipText),
targetId:a.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:d==="DISLIKE",isDisabled:!a.likesAllowed,defaultIcon:{iconType:c},defaultText:d==="DISLIKE"?a.dislikeCountWithUndislikeText:a.dislikeCountText,toggledText:d==="DISLIKE"?a.dislikeCountText:a.dislikeCountWithDislikeText,defaultNavigationEndpoint:b3a(a,"DISLIKE"),defaultServiceEndpoint:c3a(a,"DISLIKE"),toggledServiceEndpoint:c3a(a,"INDIFFERENT"),defaultTooltip:_.Vp(a.dislikeCountTooltipText),
toggledTooltip:_.Vp(a.dislikeCountTooltipText)}};
b3a=function(a,b){if(b==="LIKE")return a.likeCommand;if(b==="DISLIKE")return a.dislikeNavigationEndpoint};
c3a=function(a,b){var c;return(c=a.serviceEndpoints)==null?void 0:c.find(function(d){var e;return((e=_.y(d,_.$v))==null?void 0:e.status)===b})};
e3a=function(a,b){b=b===void 0?{}:b;if(a){var c=!!b.activeState,d=b.iconSize,e=b.className,g=b["aria-hidden$"],k=b["aria-label$"],m=b.role;b=b.style$+";width: "+((b.width||d)+"px;height: ")+((b.height||d)+"px;color: ")+(b.color+";");a={icon:a};c!==void 0&&(a.active=c);d!==void 0&&(a.size=d);b!==void 0&&(a.style=b);e!==void 0&&(a.className=e);g!==void 0&&(a.ariaHidden=g);k!==void 0&&(a.ariaLabel=k);m!==void 0&&(a.role=m);ws("yt-icon",a,Mh)}};
_.h3a=function(a,b,c){return window.spf&&!_.x("web_disable_spfjs_client")?f3a(a,b,c):g3a(a,b)};
f3a=function(a,b,c){var d=null,e=(new _.kl(function(g,k){var m={};if(b){m.method=b.method;var n=b.postParams||{};toa(a,b)&&(n[_.Ei("XSRF_FIELD_NAME")]=_.Ei("XSRF_TOKEN"));m.postData=_.ij(n);b.type&&(m.type=b.type);n=b.headers}m.headers=noa(a,n);_.x("debug_forward_web_query_parameters")&&(a=_.roa(a,window.location.search));m.experimental_headers=m.headers;m.onError=function(r){r.err&&r.xhr&&(r.err.params={url:r.xhr.responseURL,response:r.xhr.responseText.substr(0,64)});k(r.err)};
m.onPartDone=function(r){c&&c.call(null,r.part)};
m.onDone=function(r){var t=i3a(r.response,"xsrf_token");Ti(window.location.href,a)&&t&&_.Bi("XSRF_TOKEN",t);if(t=i3a(r.response,"service_worker_killswitch"))_.Bi("SERVICE_WORKER_KILLSWITCH",t),nJa();g(r.response)};
d=spf.request(a,m)})).then(j3a);
e.thenCatch(function(g){var k=g instanceof _.On,m=g&&g.hasOwnProperty("params")&&g.params.response?g.params.response:"";g instanceof Error&&(m?k?eua(g):m===')]}\'\n{"reload":"now"}'?eua(g):(k3a(g,a,m),l3a(g,m)?_.Dl(g):_.Bl(g)):eua(g));d&&d.abort()});
return e};
j3a=function(a){if(a.type==="multipart"){var b=a.timing;a=a.parts.reduce(function(c,d){Object.assign(c,d);return c},{});
a.timing=a.timing||{};Object.assign(a.timing,b);a.type="reduced"}return a};
g3a=function(a,b){b=b===void 0?{}:b;var c=null,d=new _.kl(function(e,g){b.onFinish=function(k){if(k.readyState===XMLHttpRequest.DONE)if(k.status===200){if(k.responseType!=="json"){var m=k.response;m.substring(0,5)===")]}'\n"&&(m=m.substring(5));try{var n=JSON.parse(m)}catch(r){n=r}}else n=k.response;n instanceof Error?g(n):(m=i3a(n,"xsrf_token"),Ti(window.location.href,a)&&m&&_.Bi("XSRF_TOKEN",m),k=k.responseURL,window.performance&&window.performance.getEntriesByName?(m=window.performance.getEntriesByName(k).pop())?
k={responseStart:(0,_.Uj)()-(m.responseEnd-m.responseStart)}:(Math.random()<.01&&(m=Error("Zh"),m.params=k,_.Dl(m)),k={responseStart:-1}):k={responseStart:0},n.timing=n.timing||{},Object.assign(n.timing,k),e(n))}else g(Error("Yh`"+k.status))};
(c=_.hj(a,b))||g(Error("Yh`"+c.status))});
d.thenCatch(function(e){e instanceof Error&&(k3a(e,a),l3a(e)&&(e.level="WARNING"))});
_.x("cancel_pending_navs")&&d.thenCatch(function(){c.abort()});
return d};
i3a=function(a,b){var c=a[b],d=a.parts;a.type==="multipart"&&d&&(c=(a=d.find(function(e){return b in e}))&&a[b]);
return c};
k3a=function(a,b,c){var d=a.message||"";b={original:d,url:b};if(c)if(d=d.match(/position:?\s*(\d+)/)){d=d&&Number(d[1])?Number(d[1]):0;var e=Math.max(d-25,0);b.position=d;b.response=c.substring(e,d+25)}else b.response=c.substring(0,50);_.El(a,b);try{a.message="JSON parse error"}catch(g){}};
l3a=function(a,b){a=a.message||"";a=!!(a.indexOf("<")>=0||a.indexOf("end of ")>=0||a.indexOf("Unterminated string")>=0||a.indexOf("Unexpected EOF"));if(!a&&b)for(var c=b.length,d=!1,e=0;e<c;e++)if(d&&b[e]==="\\")e++;else if(b[e]==='"')d=!d;else if(b[e]==="<"&&!d){a=!0;break}return a};
m3a=function(){return document.documentElement.hasAttribute("dark")};
_.n3a=function(a,b){if(a!=="GFEEDBACK"&&a!=="GUIDED_HELP")_.Hi(Error("$h`"+a));else{var c=_.v().resolve(_.Wi(_.$t));if(c&&(c=c.getCurrentPage())&&c.getServiceTrackingParams&&(c=c.getServiceTrackingParams()))for(var d=0,e;e=c[d++];)if(e.service===a){if(a=e.params)for(c=0;d=a[c++];)b[d.key]=d.value;break}}};
_.o3a=function(a){var b=_.bu();b&&(b=b.getPlayer())&&(b.pauseVideo(),a.playback_id=b.getVideoData().cpn,a.eid=b.getVideoData().eventId,Object.assign(a,b.getFeedbackProductData()))};
p3a=function(){var a={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.Ei("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(a.enableAnonymousFeedback=!0);_.Ei("SESSION_INDEX")&&(a.authuser=String(_.Ei("SESSION_INDEX")));_.x("enable_pageid_for_feedback")&&_.Ei("DELEGATED_SESSION_ID")&&(a.pageId=String(_.Ei("DELEGATED_SESSION_ID")));return a};
_.aw=function(a){_.x("enable_ypc_spinners")&&_.ho(a,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},a])};
_.bw=function(a){_.x("enable_ypc_spinners")&&_.ho(a,"yt-close-popup-action",["yt-loading-renderer"])};
q3a=function(a){return new Promise(function(b,c){_.Fs({verifyCommand:{recaptchaToken:a.recaptchaResponse}},{commandController:{onSuccess:function(d,e){e||c("ChallengeService did not return a response.");var g;b({challengeCompleted:(g=e.verified)!=null?g:!1})},
onServerError:function(d,e){c(e)}}})})};
r3a=function(a,b,c,d){b({recaptchaResponse:d}).then(function(e){e.challengeCompleted?_.nj()?(c(3),_.v().resolve(_.Xi).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:a}})):c(2):c(4)},function(){c(4)})};
s3a=function(a,b,c){_.Ln("https://www.google.com/recaptcha/api.js?trustedtypes=true&hl="+_.Ei("HL"),function(){var d;(d=window.grecaptcha)==null||d.ready(function(){var e=window.grecaptcha;e?(c(e.render(a,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:r3a.bind(null,a,q3a,b)})),b(1)):b(4)})})};
t3a=function(a,b){return function(){switch(b()){case 0:return a().captchaLoadingMessage;case 1:return a().challengeReason;case 3:return a().captchaSuccessfulMessage;case 2:return a().captchaCookieSetFailureMessage;case 4:return a().captchaFailedMessage;default:return a().challengeReason}}()};
_.cw=function(){if(!u3a){var a=document.querySelector("#player.skeleton");a&&(_.mg(a),u3a=!0)}};
_.w3a=function(){return v3a=nHa()};
z3a=function(){return _.l(function(a){return x3a!==void 0?a.return():_.p(a,y3a(),0)})};
y3a=function(){return _.l(function(a){if(a.nextAddress==1)return _.p(a,pHa(),2);v3a=a.yieldResult;x3a=_.zk.addLowPriorityJob(y3a,5E3);_.se(a)})};
F3a=function(a){var b=b===void 0?A3a:b;var c,d,e=(c=a.responseContext)==null?void 0:(d=c.mainAppWebResponseContext)==null?void 0:d.trackingParam;if(!e){b.increment("MISSING");var g,k,m,n,r,t;_.Dl(new _.qj("282054944_a",{uso:!!((g=a.responseContext)==null?0:(k=g.mainAppWebResponseContext)==null?0:k.loggedOut),nmawrp:((m=a.responseContext)==null?void 0:m.mainAppWebResponseContext)===void 0,nrc:a.responseContext===void 0,cp:(n=a.playabilityStatus)==null?void 0:n.contextParams,sdf:(((r=a.streamingData)==
null?void 0:r.formats)||[]).length>0,sdaf:(((t=a.streamingData)==null?void 0:t.adaptiveFormats)||[]).length>0,os:!!a.offlineState,cotn:a.cotn}));return 2}c="";try{c=B3a(e)}catch(A){return b.increment("C_ERROR"),_.Bl(A),2}try{var u=_.C3a(c);var w=D3a(u)}catch(A){return b.increment("P_ERROR"),_.Bl(A),2}w=_.Vf(w,E3a,1,_.Wf());e=[];w=_.h(w);for(u=w.next();!u.done;u=w.next())d=u.value,u=d.getPath(),c=(0,_.yf.getValueByKeys)(a,u.split(".")),c=String(c===void 0||c===null?"":c),d=d.getValue()||"",g=/[+\-\/_]/g,
c.replace(g,"")!==d.replace(g,"")&&(b.increment("MISMATCH"),_.x("ab_mis_log_err")&&(c=new _.qj("282054944_p",{fp:u,g:String(c),e:String(d)}),_.Bl(c)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(u)||(u.match(/enforcementMessageViewModel/i)?e.push(3):e.push(2)));if(e.length>0)return Math.max.apply(Math,_.Be(e));b.increment("SUCCESS");return 1};
I3a=function(a){var b=new dw;if(a.interpreterJavascript){var c=_.Wqa(a.interpreterJavascript);c=Mda(c).toString();var d=new G3a;_.sf(d,6,c);_.pd(b,1,d,Bb)}else a.interpreterUrl&&(c=_.Ak(a.interpreterUrl),c=_.xd(c).toString(),d=new _.H3a,_.sf(d,4,c),_.pd(b,2,d,Bb));a.interpreterHash&&_.ew(b,3,a.interpreterHash,Bb);a.program&&_.ew(b,4,a.program,Bb);a.globalName&&_.ew(b,5,a.globalName,Bb);a.clientExperimentsStateBlob&&_.ew(b,7,a.clientExperimentsStateBlob,Bb);return b};
fw=function(a){var b={};a=_.h(a.split("&"));for(var c=a.next();!c.done;c=a.next())c=c.value.split("="),c.length===2&&(b[c[0]]=c[1]);return b};
J3a=function(a){return Number(a.t)||7200};
jia=function(){if(_.x("bg_st_hr"))return"havuokmhhs-0";var a,b=((a=performance)==null?void 0:a.timeOrigin)||0;return"havuokmhhs-"+Math.floor(b)};
K3a=function(){return new Promise(function(a){var b=window.top;b.ntpevasrs!==void 0?a(new gw(b.ntpevasrs)):(b.ntpqfbel===void 0&&(b.ntpqfbel=[]),b.ntpqfbel.push(function(c){a(new gw(c))}))})};
L3a=function(a){var b=a.k1a.bind(a);_.Rj("yt.aba.att",b);a=a.bSc.bind(a);_.Rj("yt.aba.att2",a)};
N3a=function(a){switch(_.gj(a.input)){case _.Zp(M3a):var b={};return b.encryptedVideoId=a.innerTubeRequest.externalVideoId,b}return{}};
P3a=function(a){switch(_.gj(a.input)){case _.Zp(M3a):if(_.x("enable_att_for_transcript_request_on_web_client"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.Zp(hw):if(_.x("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&a.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.Zp(O3a):var b,c;if(_.x("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&((c=_.y((b=a.config)==null?void 0:b.command,
iUa))==null?0:c.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.R3a=function(a){var b;if(a.playlistVideoRenderer&&((b=a.playlistVideoRenderer)==null?0:b.engagementBar))return Q3a(a.playlistVideoRenderer.engagementBar);if(_.y(a,iw)){var c;if(a=(c=_.y(a,iw))==null?void 0:c.engagementBar)return Q3a(a)}return""};
Q3a=function(a){if(!a)return"";a=_.y(a,_.S3a);if(a==null||!a.actions)return"";a=_.h(a.actions);for(a=a.next();!a.done;a=a.next()){a=_.y(a.value,_.T3a);var b=void 0;if((b=a)==null||!b.itemId)break;return a.itemId}return""};
_.U3a=function(a){var b;if(a.playlistVideoRenderer&&((b=a.playlistVideoRenderer)==null?0:b.videoId))return a.playlistVideoRenderer.videoId;if(_.y(a,iw)){var c,d;if(a=(c=_.y(a,iw))==null?void 0:(d=c.playlistItemData)==null?void 0:d.videoId)return a}return""};
_.V3a=function(a){var b;if(a.playlistVideoRenderer&&((b=a.playlistVideoRenderer)==null?0:b.voteCount))return a.playlistVideoRenderer.voteCount;if(_.y(a,iw)){var c,d;if(a=(c=_.y(a,iw))==null?void 0:(d=c.playlistItemData)==null?void 0:d.voteCount)return a}return 0};
_.jw=function(a,b){return _.mp(a.entities,"flowStateEntity",b)};
X3a=function(a,b,c,d){var e=void 0;a=_.h(a[b.iconName]||[]);for(var g=a.next();!g.done;g=a.next()){g=g.value;var k=b.iconSize;var m=b.iconStyle;k=!k||k===g[2];var n=W3a[g[0]];d&&d!==g[1]||!k||m&&m!==n?m=!1:e?(m=W3a[g[0]],m=!!b.iconStyle||m==="youtube_outline",k=e.version<=g[1],m=(!!b.iconSize||g[2]===24)&&m&&k):m=!0;m&&(e={name:b.iconName,style:W3a[g[0]],size:g[2],version:g[1],allowMirroring:!!g[3],url:c(b.iconName,g)})}return e};
Y3a=function(a,b,c,d){return a+(""+W3a[c[0]]+((d===void 0?0:d)?"_experimental":"")+"/"+b+"/v"+c[1]+"/")+(c[2]+"px.svg")};
kw=function(a){return _.x("web_bookmark_playlist_save_icon")?"bookmark":a};
Z3a=function(a,b){return Y3a("https://fonts.gstatic.com/s/i/",a,b)};
$3a=function(a,b){return Y3a("https://fonts.gstatic.com/s/i/",a,b,!0)};
a4a=function(a,b){return Y3a("https://www.gstatic.com/youtube/img/icons/web/",a,b)};
b4a=function(a){var b=a.enabled;var c=a.itemPlaybackModel;var d=a.thumbnailElRef;var e=a.containerElRef;var g=a.options;var k;_.yh(function(){var m=e==null?void 0:e.value;var n,r=(n=d())==null?void 0:n.value;n=c();var t=g();if(b&&n&&m&&r&&(t==null?0:t.thumbnail)){var u,w;m={mediaRenderer:{data:n,hostElement:m},lockupElement:m,thumbnailElement:r,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.Es((u=n.inlinePlayerData)==null?void 0:u.onVisible),navigationEndpoint:_.Es((w=n.inlinePlayerData)==
null?void 0:w.onSelect),thumbnail:t.thumbnail,thumbnailOverlays:t.thumbnailOverlays||[],accessibilityText:t.accessibilityText||""},thumbnailSize:t.thumbnailSize,enableRounding:t.enableRounding}}}else m=void 0;if(u=m){var A;(A=k)==null||qv(A);k=$u(u)}},"rkAKGe");
_.wh(function(){var m;(m=k)==null||qv(m)})};
c4a=function(a){a=atob(a);for(var b=[],c=0;c<a.length;c++)b.push(a.charCodeAt(c));return new Blob([new Uint8Array(b)],{type:"image/png"})};
e4a=function(a,b,c,d){d=d===void 0?"INSERTION_POSITION_UNSPECIFIED":d;return a({targetId:b},function(e){var g,k=(g=e.contents)!=null?g:[];g=c!=null?c:[];var m=d4a(k);switch(d){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},e,{contents:[].concat(_.Be(k.slice(0,m)),_.Be(g),_.Be(k.slice(m+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},e,{contents:[].concat(_.Be(g),_.Be(k))});case "INSERTION_POSITION_LAST":return Object.assign({},e,{contents:[].concat(_.Be(k),_.Be(g))});
default:return e}})};
g4a=function(a,b,c,d,e){e=e===void 0?"RELATIVE_INSERTION_POSITION_AFTER":e;return a({targetId:b},function(g){var k,m=(k=g.contents)!=null?k:[];k=f4a(m,c);if(k<0)return g;k=e==="RELATIVE_INSERTION_POSITION_BEFORE"?k:k+1;return Object.assign({},g,{contents:[].concat(_.Be(m.slice(0,k)),_.Be(d),_.Be(m.slice(k)))})})};
d4a=function(a){var b=a.findIndex(function(c){return _.y(c,_.lw)});
return b>=0?b:a.length};
f4a=function(a,b){return a.map(function(c){return _.y(c,_.h4a)}).findIndex(function(c){return(c==null?void 0:c.targetId)===b})};
j4a=function(a,b,c){return a({targetId:b},function(d){var e,g=(e=d.contents)!=null?e:[];return Object.assign({},d,{contents:i4a(g,c)})})};
i4a=function(a,b){return a.filter(function(c){var d=b.includes;a:{c=_.h(Object.values(c));for(var e=c.next();!e.done;e=c.next())if((e=e.value)&&e.targetId){c=e.targetId;break a}c=""}return!d.call(b,c||"")})};
_.k4a=function(a,b){return{engagementPanelSectionListRenderer:{panelIdentifier:a,identifier:b,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
l4a=function(a){return a.getOption("captions","tracklist",{includeAsr:!0})};
m4a=function(a){var b=l4a(a);if(b==null?0:b.length)return b;a.loadModule("captions");return l4a(a)};
n4a=function(a,b,c){if(a.getVideoData){var d,e=(d=m4a(a))==null?void 0:d.find(function(g){return g.languageCode===c});
d=_.lp("/youtube/app/player_caption_language_entity_key","stringEntity",2);b.dispatch(_.vu("stringEntity",d,{key:d,value:(e==null?void 0:e.displayName)||""}));e?a.setOption("captions","track",e):(a.setOption("captions","stickyLoading",{}),a.setOption("captions","track",{}))}};
o4a=function(a){return a.getOption("captions","tracklist",{includeAsr:!0})};
p4a=function(a){return a.getOption("captions","tracklist",{includeAsr:!0})};
q4a=function(a){var b=p4a(a);if(b==null?0:b.length)return b;a.loadModule("captions");return p4a(a)};
r4a=function(a){var b=a.getOption("captions","track");if(b)return b;a.loadModule("captions");return a.getOption("captions","track")};
s4a=function(a){var b=q4a(a);if(b!=null&&b.length){var c=r4a(a);return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[_.fl({listItemViewModel:{title:{content:_.to("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(c==null?0:c.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}})].concat(_.Be(b.map(function(d){return{listItemViewModel:{title:{content:d.displayName},
isSelected:d.languageCode===(c==null?void 0:c.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:d.languageCode}}]}}}}}}}})))}}}}}}}}};
w4a=function(a){return new Promise(function(b,c){if(a===void 0)_.Bl(Error("Ai"),"ERROR"),c(Error("Ai"));else{c=new _.t4a;var d=_.u4a();c=c.init();var e=_.v4a(_.Ei("YPC_MB_URL"),!0);Promise.all([c,e]).then(function(){var g=payments.business.integration.ClientTokenFactory.createClientToken(a,d);b(g)})}})};
z4a=function(a,b,c,d,e,g,k){var m=_.Tt();c=c.replace(/-/g,"+").replace(/_/g,"/");var n=_.wo().get("hl"),r=_.mw(_.Oq),t=b==null?void 0:b.element;t&&_.aw(t);x4a(b,!0);_.y4a(r,c,m.resolve,function(){t&&_.bw(t)},function(u){t&&_.bw(t);
m.reject(u)},n,d?function(u){d&&_.St(a,d,{backend_analytics:u})}:void 0,m.resolve,e,g,k);
return m.promise};
x4a=function(a,b){!(a=a==null?void 0:a.element)||a.tagName!=="YT-BUTTON-RENDERER"&&a.tagName!=="YTD-BUTTON-RENDERER"||(a.disabled=b)};
A4a=function(){var a=_.to("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.dp(a),actionButton:{buttonRenderer:l2a()}}},popupType:"TOAST"}};
B4a=function(){var a=_.to("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.dp(a),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
_.E4a=function(a,b,c,d,e,g,k,m){d=d===void 0?!1:d;e=e===void 0?!1:e;g=g===void 0?0:g;k=k===void 0?-Infinity:k;m=m===void 0?!1:m;var n=[],r=_.dp(_.to("SMART_DOWNLOADS",void 0,"Smart downloads"));k=_.dp(C4a(g,k));g=void 0;d?(a.length>0?c=D4a(a,!1,r,k):m?(e={content:c.localizedOptInBannerTitleText===void 0?"":c.localizedOptInBannerTitleText},c={content:c.localizedPromptMessage===void 0?"":c.localizedPromptMessage},m={buttonViewModel:{title:_.to("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.to("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:_.cFa}]}}}}},c={alertBannerViewModel:{heading:e,body:c,type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:m,rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}):
c={backgroundPromoRenderer:{bodyText:_.dp(_.to("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"}}},g=c):e&&(e={content:c.localizedOptInBannerTitleText===void 0?"":c.localizedOptInBannerTitleText},c={content:c.localizedOptInMessage===void 0?"":c.localizedOptInMessage},m={buttonViewModel:{title:_.to("TURN_ON",void 0,"Turn on"),accessibilityText:_.to("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}}}}},g={alertBannerViewModel:{heading:e,body:c,type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:m,rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:127982}}}}}});
c=_.dp(_.to("YOUR_DOWNLOADS",void 0,"Your downloads"));e=void 0;b.length>0?e=D4a(b,!0,c):d||a.length||(e={backgroundPromoRenderer:{bodyText:_.dp(_.to("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&&n.push({richSectionRenderer:{content:g,loggingDirectives:{clientVeSpec:{uiType:139572}}}});
e&&n.push({richSectionRenderer:{content:e,loggingDirectives:{clientVeSpec:{uiType:51721}}}});if(b.length>0||d&&a.length>0)a=n.push,b={richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.dp(_.to("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}}}}}},a.call(n,b);return{contents:n}};
_.F4a=function(a){var b=[];a=D4a(a,!0);b.push({richSectionRenderer:{content:a}});return{contents:b}};
D4a=function(a,b,c,d){b=b===void 0?!1:b;a={isExpanded:b,contents:G4a(a)};c&&(a.title=c);d&&(a.subtitle=d);b||(b={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.to("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}}}},a.previousButton=b,b={buttonViewModel:{iconName:"CHEVRON_RIGHT",
accessibilityText:_.to("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}}}},a.nextButton=b,b={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.to("VIEW_ALL",void 0,"View all"),accessibilityText:_.to("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:bp("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}},a.menu=b);return{richShelfRenderer:a}};
G4a=function(a){var b=[];a=_.h(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,LEa(c)){var d=b,e=d.push;var g=void 0;if(c==null?0:(g=c.videoEntity)==null?0:g.videoId){g=Mp(_.Yp().getState(),c.videoEntity.videoId);var k=_.Yp().getState();var m=_.lp(c.videoEntity.videoId,"mainVideoEntity");k=!!_.Bp(k.entities)[m];k={videoId:c.videoEntity.videoId,title:ep(c.videoEntity.title),shortBylineText:ep(c.channelEntity.title),thumbnail:c.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:k&&
_.x("kevlar_modern_downloads_page")?129218:42356}},navigationEndpoint:oDa(c.videoEntity.videoId,g,c.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.to("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};c.videoEntity.lengthSeconds&&(k.thumbnailOverlays=eGa(c.videoEntity.lengthSeconds,g));k.isWatched=g>0;_.x("kevlar_modern_downloads_page")&&(k.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:c.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.to("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},k.badges=void 0);c=k}else c={};e.call(d,{richItemRenderer:{content:{videoRenderer:c},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(KEa(c)){d=b;e=d.push;var n=m=g=void 0,r=void 0,t=void 0,u=void 0,w=void 0,A=void 0,C=void 0,G=void 0,J=void 0,I=void 0;k=c.mainPlaylistEntity.playlistId;var R=c==null?void 0:(I=c.mainPlaylistEntity)==null?void 0:(J=I.thumbnailStyleData)==null?void 0:(G=J[0])==
null?void 0:(C=G.value)==null?void 0:(A=C.collageThumbnail)==null?void 0:A.coverThumbnail;if(k&&R){A=pDa(k);!_.x("enable_offline_playlist_page")&&(c==null?0:(w=c.mainPlaylistEntity)==null?0:w.videos)&&(w=c==null?void 0:(u=c.mainPlaylistEntity)==null?void 0:(t=u.videos)==null?void 0:t[0],t=_.ip(w).entityId,t=JSON.parse(t).videoId,t!==void 0&&(u=Mp(_.Yp().getState(),t),A=_.cp(t,k,void 0,void 0,u)));t=[];if(c==null?0:(r=c.mainPlaylistEntity)==null?0:(n=r.videos)==null?0:n.length)t=[LFa(),Object.assign({},
(m=KFa(c==null?void 0:c.mainPlaylistEntity.videos.length))!=null?m:{})];c={playlistId:k,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:R}},navigationEndpoint:A,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:t,title:ep(c.mainPlaylistEntity.title),shortBylineText:ep(c==null?void 0:(g=c.channelEntity)==null?void 0:g.title),badges:[{metadataBadgeRenderer:{label:_.to("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.x("kevlar_modern_downloads_page")&&
(c.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:H4a,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:k,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.to("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},c.badges=void 0)}else c=void 0;e.call(d,{richItemRenderer:{content:{playlistRenderer:c},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return b};
C4a=function(a,b){a=a?s2a(a):"";b!==void 0&&isFinite(b)?b===0?b=_.to("UPDATING",void 0,"Updating..."):(b=dGa(new Date(b),new Date),b=_.to("UPDATED_TIME",{relative_time:b},"Updated "+b)):b="";var c="";a&&b&&(c=" \u2022 ");return a+c+b};
nw=function(a){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:a}]}}};
I4a=function(a){var b=a.videoEntity;var c,d,e={title:ep(b.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.fp((c=b.localizedStrings)==null?void 0:c.viewCount),viewCount:_.fp((d=b.localizedStrings)==null?void 0:d.viewCount)}}};b.publishedTimestampMillis&&(e.dateText=_.fp(MFa(new Date(Number(b.publishedTimestampMillis)))));b={videoPrimaryInfoRenderer:e};c=a.videoEntity;a=a.channelEntity;a={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:ep(_.to("SHOW_MORE",
void 0,"Show more")),showLessText:ep(_.to("SHOW_LESS",void 0,"Show less")),description:c.formattedDescription,owner:{videoOwnerRenderer:{title:ep(a.title),thumbnail:a.avatar}}}};return{twoColumnWatchNextResults:{results:{results:{contents:[b,a]}}}}};
ow=function(a,b,c,d){var e;return _.l(function(g){if(g.nextAddress==1)return _.me(g,2),_.p(g,a,4);if(g.nextAddress!=2)return(e=_.xp(b.getState().entities).length>0)?g.return({title:_.dp(_.to("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.dp(_.to("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:k2a()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
g.return(m2a(c,d));_.re(g);return g.return(m2a(c,d))})};
J4a=function(a,b){return b?b==="PPSV"||DEa(a,b):!1};
K4a=function(a){a.responseContext||(a.responseContext={});a.responseContext.maxAgeSeconds=0;return a};
qw=function(a){var b;return _.l(function(c){return c.nextAddress==1?_.p(c,L4a(a,"service:topbar:fallback"),2):(b=c.yieldResult)&&_.pw(b)?c.return(K4a(_.pw(b))):c.return()})};
M4a=function(a){var b;return _.l(function(c){return c.nextAddress==1?_.p(c,L4a(a,"service:downloads_settings:fallback"),2):(b=c.yieldResult)&&_.pw(b)?c.return(b):c.return()})};
L4a=function(a,b){var c;return _.l(function(d){if(d.nextAddress==1)return a?_.p(d,a.get(b),2):d.return();c=d.yieldResult;return!c||!_.pw(c)||!isNaN(Number(c.data.expireTimestampMs))&&c.isExpired()?d.return():d.return(c)})};
N4a=function(a){var b=_.v().resolve(sw).getState().entities;return a.playlistId?J4a(b,a.playlistId):!1};
O4a=function(a,b){var c;if(b==null?0:(c=b.requestTemplate)==null?0:c.panelId)a.panelId=b.requestTemplate.panelId;var d;if(b==null?0:(d=b.requestTemplate)==null?0:d.params)a.params=b.requestTemplate.params};
Q4a=function(){if(P4a)return P4a();var a=!_.x("idb_response_store_auth_killswitch"),b={};P4a=Tj("yt-it-response-store",{objectStores:(b.ResponseStore={addedAtVersion:1},b),shared:!a,upgrade:function(c,d){d(1)&&(c=Gk(c,"ResponseStore",{keyPath:["key","clientName"]}),Hk(c,"byExpiration","expireTimestampMs"),Hk(c,"byInterface","clientName"))},
version:1});return P4a()};
R4a=function(a){return _.Lj(Q4a(),a)};
T4a=function(a,b){var c;return _.l(function(d){return d.nextAddress==1?_.p(d,_.Sj(),2):(c=d.yieldResult)?d.return(new S4a(a,b,c)):d.return()})};
U4a=function(a){var b=Object.keys(a)[0];if(b)return a.screenExit&&(b=b+";"+a.screenExit.screen),b};
V4a=function(a){var b=new Map;a=_.h(a);for(var c=a.next();!c.done;c=a.next())c=c.value,c!=null&&(b.has(c.taskType)||b.set(c.taskType,[]),b.get(c.taskType).push(c));return b};
W4a=function(a){return!isNaN(a)&&a>0};
X4a=function(a){a=[].concat(_.Be(a)).sort(function(c,d){return c-d});
var b=Math.floor(a.length/2);return a.length%2?a[b]:(a[b-1]+a[b])/2};
Z4a=function(){Y4a||(Object.assign(Xg,{handleError:function(a,b){var c={errorSeverity:b.errorSeverity.toString(),wizFeatureFlags:Object.entries(b.featureFlags).join("\n")};Nta(b,c);b=b.errorSeverity;b===3?_.Bl(a,"ERROR",void 0,void 0,void 0,c):b===2&&_.Bl(a,"WARNING",void 0,void 0,void 0,c);_.x("cow_if_errors_in_popup")&&b===3&&a.message.indexOf("<If>")!==-1&&window.alert(a.message)},
enableComponentStacksInErrorMessages:!1}),Y4a=!0)};
b5a=function(a,b){_.Rj("yt.logging.errors.log",_.Bl);Ota();$4a(Vta(),b);window.onerror=a;_.x("wiz_next_error_handler_killswitch")||Z4a();a5a=Pta;window.addEventListener("unhandledrejection",function(c){if(c.reason instanceof Error){var d=c.reason;_.El(d,{source:"unhandledrejection"});d.name==="AbortError"&&(d.level="WARNING")}Pta(c.reason);c.preventDefault()})};
_.c5a=function(a){return a.a11y.ephemeralAction||null};
_.d5a=function(a){var b,c,d,e,g,k,m,n,r,t,u,w,A,C,G,J,I,R,ca,V,fa,aa,ma,Ba,Da,za,Fa,bb,kb,Ua,Fc,id,Mb,wd,Tb,tb,Fb,dd,be,ia;return _.l(function(gc){if(gc.nextAddress==1)return _.p(gc,_.tp(a,{mode:"readonly",enableRetries:!0},function(Pb){return up(Pb,"playbackData").then(function(Lc){var qb=Lc.map(function(pb){return pb.transfer}).filter(function(pb){return!!pb}),Ab=Lc.map(function(pb){return pb.offlineVideoPolicy}).filter(function(pb){return!!pb}),Ya=Lc.filter(function(pb){return!!pb.key}).map(function(pb){return _.lp(_.ip(pb.key).entityId,
"downloadStatusEntity")});
qb=up(Pb,"transfer",qb);Ab=up(Pb,"offlineVideoPolicy",Ab);Ya=up(Pb,"downloadStatusEntity",Ya);var Oa=qb.then(function(pb){pb=pb.reduce(function(Yb,Pc){(Pc==null?0:Pc.offlineVideoStreams)&&Yb.push.apply(Yb,_.Be(Pc.offlineVideoStreams));return Yb},[]).filter(function(Yb){return!!Yb});
return up(Pb,"offlineVideoStreams",pb)});
return Fj.all([qb,Ab,Oa,Ya]).then(function(pb){var Yb=_.h(pb);pb=Yb.next().value;var Pc=Yb.next().value;var Db=Yb.next().value;Yb=Yb.next().value;return[Lc,pb,Pc,Db,Yb]})})}),2);
if(gc.nextAddress!=3)return b=gc.yieldResult,_.p(gc,_.tp(a,{mode:"readonly",enableRetries:!0},function(Pb){return up(Pb,"mainDownloadsListEntity").then(function(Lc){var qb,Ab;return(Ab=(qb=Lc[0])==null?void 0:qb.downloads)!=null?Ab:[]})}),3);
c=gc.yieldResult;d=_.h(b);e=d.next().value;g=d.next().value;k=d.next().value;m=d.next().value;n=d.next().value;r=e;t=g;u=k;w=m;A=n;C={};G={};J={};I={};R={};ca=[];V=_.h(t);for(fa=V.next();!fa.done;fa=V.next())(aa=fa.value)&&(C[aa.key]=aa);ma=_.h(u);for(Ba=ma.next();!Ba.done;Ba=ma.next())(Da=Ba.value)&&(G[Da.key]=Da);za=_.h(A);for(Fa=za.next();!Fa.done;Fa=za.next())(bb=Fa.value)&&(J[bb.key]=bb);kb=_.h(w);for(Ua=kb.next();!Ua.done;Ua=kb.next())(Fc=Ua.value)&&(I[Fc.key]=Fc);id=_.h(c);for(Mb=id.next();!Mb.done;Mb=
id.next())wd=Mb.value,Tb=void 0,R[(Tb=wd.videoItem)!=null?Tb:""]=!0,wd.videoItem&&(Fb=tb=void 0,dd=(Fb=(tb=_.ip(wd.videoItem))==null?void 0:tb.entityId)!=null?Fb:"",ca.push({externalVideoId:dd}));be=r.filter(function(Pb){if(!Pb||!Pb.key||!Pb.offlineVideoPolicy)return!1;Pb=_.ip(Pb.key).entityId;Pb=_.lp(Pb,"downloadStatusEntity");var Lc;return!(Pb&&((Lc=J[Pb])==null?void 0:Lc.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
ia=be.map(function(Pb){var Lc=C[Pb.transfer],qb=[];if(Lc==null?0:Lc.offlineVideoStreams)for(var Ab=_.h(Lc.offlineVideoStreams),Ya=Ab.next();!Ya.done;Ya=Ab.next())(Ya=I[Ya.value])&&qb.push(Ya);Ab=G[Pb.offlineVideoPolicy];Ya=R;var Oa=Pb==null?void 0:Pb.playerResponseTimestamp,pb=_.ip(Ab.key).entityId;Pb=_.lp(pb,"mainVideoEntity");if(Ab.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var Yb="OFFLINE_VIDEO_STATE_DISABLED";Ab.expirationTimestamp&&Number(Ab.expirationTimestamp)<Date.now()/1E3&&(Yb="OFFLINE_VIDEO_STATE_EXPIRED")}else if(Ab.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")Yb="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(Lc==null?void 0:Lc.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":Yb="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":Yb="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":Yb="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":Yb="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":Yb="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":Yb="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:Yb="OFFLINE_VIDEO_STATE_UNKNOWN"}if(Yb==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(Lc==null?void 0:Lc.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":Yb="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":Yb="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":Yb=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}pb={id:pb,videoState:Yb};if(Lc==null?0:Lc.cotn)pb.cotn=Lc.cotn;if(Lc==null?0:Lc.maximumDownloadQuality)pb.selectedVideoQuality=Lc==null?void 0:Lc.maximumDownloadQuality;if(Lc==null?0:Lc.lastProgressTimeMs)pb.lastProgressTimeMs=Lc.lastProgressTimeMs;Oa&&(pb.playerResponseSavedTimeMs=String(Number(Oa)*1E3));Lc=String;Oa=0;qb=_.h(qb);for(Yb=qb.next();!Yb.done;Yb=qb.next())if(Yb=Yb.value,Yb.streamsProgress){Yb=_.h(Yb.streamsProgress);for(var Pc=Yb.next();!Pc.done;Pc=
Yb.next()){var Db=void 0;Oa+=Number((Db=Pc.value.numBytesDownloaded)!=null?Db:0)}}pb.downloadedBytes=Lc(Oa);pb.selectedOfflineMode=Ya[Pb]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";Ab.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(pb.offlinePlaybackDisabledReason=Ab.offlinePlaybackDisabledReason);return pb});
return gc.return({offlineVideos:ia,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:ca}}})})};
e5a=function(){var a;return _.l(function(b){return b.nextAddress==1?_.p(b,_.qp(),2):(a=b.yieldResult)?b.return(_.d5a(a)):b.return({state:"PES Unavailable"})})};
h5a=function(){var a,b,c,d;return _.l(function(e){if(e.nextAddress==1)return _.p(e,_.qp(),2);if(e.nextAddress!=3)return(a=e.yieldResult)?_.p(e,f5a(a),3):e.return({state:"PES Unavailable"});b=e.yieldResult;c={};d=b.reduce(function(g,k){g[k.key]=k;return g},c);
return e.return(g5a(d))})};
g5a=function(a){for(var b={},c=[],d=_.h(Object.keys(a)),e=d.next();!e.done;e=d.next()){var g=e.value;e=a[g];var k=void 0;if(((k=e)==null?void 0:k.entityType)==="mainVideoEntity"){delete a[g];var m=e.data;e={};if(m){var n=void 0;k=(n=m.videoId)!=null?n:"vid-"+g;g=a;e.video=m;delete e.video.formattedDescription;delete e.video.thumbnail;m.owner&&(n=g[m.owner],n==null?0:n.data)&&(delete g[n.key],e.video.owner=n.data,delete e.video.owner.avatar);if(m=m.downloadState)if(n=g[m],n==null?0:n.data)if(delete g[m],
m=n.data.playbackData)if(n=g[m],n!=null&&n.data){delete g[m];m=n.data;delete m.playerResponseJson;e.playbackData=m;if(m.transfer&&(n=g[m.transfer],n==null?0:n.data)){delete g[n.key];var r=n.data;e.transfer=r;n=[];r=_.h(r.offlineVideoStreams||[]);for(var t=r.next();!t.done;t=r.next())if(t=g[t.value])delete g[t.key],n.push(t.data);n&&(e.streams=n)}(m=m.offlineVideoPolicy)&&(m=g[m])&&m.data&&(delete g[m.key],e.offlineVideoPolicy=m.data)}b[k]=e}}else e&&e.entityType==="offlineOrchestrationActionWrapperEntity"&&
e.data&&(delete a[e.key],k=e.data,g=void 0,c.push({id:k.rootActionId,type:((g=k.actionProto)==null?void 0:g.actionType)||"",entity:e}))}b.wrapperEntities=c;Object.keys(a).length>0&&(b.unknownKeys=a);return b};
i5a=function(){var a,b,c,d,e,g,k,m,n;return _.l(function(r){if(r.nextAddress==1)return a=!!(new _.Ek("")).expiringStorage_,d=!!((b=_.ja.crypto)==null?0:(c=b.subtle)==null?0:c.importKey),e=!!_.ja.BroadcastChannel,g=!!_.ja.navigator.locks,_.p(r,spa(),2);k=r.yieldResult;m=a&&d&&e&&g&&k;n={isSupported:m};if(m)return r.return(n);n.missingBrowserFeatures=[];k||n.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");a||n.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
d||n.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");e||n.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");g||n.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return r.return(n)})};
j5a=function(){var a;return!((a=tw?tw:null)==null||!a.window)};
_.l5a=function(a){if(_.Ea()&&_.naa("Chromium")>=120){var b=_.k5a().mediaSession;try{b.setActionHandler("enterpictureinpicture",function(){a()})}catch(c){}}};
m5a=function(a){for(var b=[],c=_.h(document.styleSheets),d=c.next(),e={};!d.done;e={node$jscomp$711:void 0},d=c.next())e.node$jscomp$711=d.value.ownerNode,e.node$jscomp$711&&(e.node$jscomp$711 instanceof HTMLStyleElement||e.node$jscomp$711 instanceof HTMLLinkElement)&&b.push(new Promise(function(g){return function(k){var m=g.node$jscomp$711.cloneNode(!0);m.onload=function(){k()};
m.onerror=function(){_.Dl(Error("cj"));k()};
a.document.head.appendChild(m)}}(e)));
return Promise.all(b)};
w5a=function(a){var b=[_.cf(n5a),_.cf(o5a),_.cf(p5a)];q5a(window.document.documentElement,a.document.documentElement,[_.cf(r5a),_.cf(s5a),_.cf(t5a),_.cf(u5a),_.cf(v5a)]);q5a(window.document.body,a.document.body,b)};
q5a=function(a,b,c){a=_.h(a.attributes);for(var d=a.next();!d.done;d=a.next())if(d=d.value)try{_.Zd(c,b,d.name,d.value)}catch(e){}};
y5a=function(a,b){a=new _.uw(a.document.documentElement);a.start(x5a,b);return a};
z5a=function(a){var b=a.document.documentElement;b.addEventListener("click",function(c){vTa(b,c)});
b.addEventListener("touchstart",function(c){ATa(c)});
b.addEventListener("mousedown",function(c){ATa(c)})};
B5a=function(a,b,c,d){d=d===void 0?!1:d;b=new A5a(b||a,c||a);return{x:a.x+((d===void 0?0:d)?b.lengthX*-1:b.lengthX)*.2,y:a.y+((d===void 0?0:d)?b.lengthY*-1:b.lengthY)*.2}};
C5a=function(a){if(!a)return!1;var b=a.status==="OK"||a.status==="LIVE_STREAM_OFFLINE",c,d,e,g=(e=(c=a.errorScreen)==null?void 0:c.playerLegacyDesktopYpcTrailerRenderer)!=null?e:(d=a.errorScreen)==null?void 0:d.ypcTrailerRenderer;return!!b||!!g};
_.D5a=function(a,b){if(!a)return!1;var c,d=(c=a.errorScreen)==null?void 0:c.playerLegacyDesktopYpcOfferRenderer,e;b=!!(b==null?0:(e=b.playerOverlayRenderer)==null?0:e.gatedActionsOverlayRenderer);return!!C5a(a)||!!d||!!b};
E5a=function(a){return a.includes("gclid")||a.includes("gad_source")};
F5a=function(a){return new Promise(function(b){window.setTimeout(b,a)})};
G5a=function(a){var b={bicf:function(g){a.sab=g},
blc:function(){return a.getLatestChallengeResponse()},
bcr:function(g){a.j2b.push(g)}},c=window.top;
c.ntpevasrs=b;if(c.ntpqfbel!==void 0)for(var d=_.h(c.ntpqfbel),e=d.next();!e.done;e=d.next())e=e.value,e(b);c.ntpqfbel=void 0};
H5a=function(a){return _.l(function(b){if(b.nextAddress==1)return _.me(b,2),_.p(b,a.d7a(),4);if(b.nextAddress!=2)return _.Jj(b,0);_.re(b);_.se(b)})};
I5a=function(a){var b,c;(b=a.ytcsi)==null||(c=b.tick)==null||c.call(b,"pot_ist")};
J5a=function(a){if(a instanceof Error){var b=_.Ji("yt.logging.errors.log");b&&b(a,"WARNING")}};
K5a=function(a){try{var b=JSON.parse(a);if(b.bgChallenge)return b}catch(c){}};
M5a=function(){var a=window,b={networkStatusManagerPromise:_.v().resolve(new coa(_.Lk)),initialChallengeSli:_.x("wpo_att_sli")?new _.eBa("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};a=a===void 0?window:a;var c=a.ytAtR,d;b==null||(d=b.initialChallengeSli)==null||_.vw(d);if(c){if(c=K5a(c)){var e;b==null||(e=b.initialChallengeSli)==null||_.ww(e,"SUCCESS");L5a(c,b)}a.ytAtR=void 0}else a.ytAtRC=function(g){if(g=K5a(g)){var k;b==null||(k=b.initialChallengeSli)==null||_.ww(k,
"SUCCESS");L5a(g,b);a.ytAtRC=void 0}}};
P5a=function(){if(N5a)return N5a;try{var a=_.lg("IFRAME");_.Qd(a,_.ef(O5a));a.sandbox.add("allow-same-origin");a.style.display="none";document.body.appendChild(a);return N5a=a}catch(b){a=new _.qj("Failed to create sandbox iframe"),_.Bl(a)}};
Q5a=function(a){var b,c;return(c=a==null?void 0:(b=a.contentWindow)==null?void 0:b.fetch)!=null?c:window.fetch};
R5a=function(a){var b,c;return(c=a==null?void 0:(b=a.contentWindow)==null?void 0:b.JSON.parse)!=null?c:JSON.parse};
S5a=function(a){var b,c;return(c=a==null?void 0:(b=a.contentWindow)==null?void 0:b.Request)!=null?c:window.Request};
V5a=function(){if(ksa()==="hidden")var a="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else ksa()==="visible"&&(a="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",T5a=null);a&&U5a(a)};
U5a=function(a){if(a==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||a==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(W5a===a)return;W5a=a}var b=9E4+Math.random()*2E3;if(a!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.$k()>b)&&ksa()==="visible"){b=-1;T5a&&(b=Math.round((0,_.Uj)()-T5a));var c=String;var d=_.Ji("_fact",window);d=d==null||d==-1?-1:Math.max(Date.now()-d,0);_.zl("foregroundHeartbeat",{firstActivityMs:c(d),clientDocumentNonce:MAa,index:String(X5a),lastEventDeltaMs:String(b),trigger:a});
_.Rj("_fact",-1,window);X5a++;T5a=(0,_.Uj)()}};
_.Y5a=function(){try{return!!self.sessionStorage}catch(a){return!1}};
Z5a=function(){var a=navigator;return new Promise(function(b,c){var d;(d=a.webkitTemporaryStorage)!=null&&d.queryUsageAndQuota?a.webkitTemporaryStorage.queryUsageAndQuota(function(e,g){b({usage:e,quota:g})},function(e){c(e)}):c(Error("kj"))})};
$5a=function(a,b){var c=Yo.get(a)||{layerNode:b};c.layerNode=b;iDa(a,c);a.getScreenLayer=function(){return xw(c.layerNode)}};
a6a=function(a){var b;a=a.parentNode;for(var c;a&&((b=Yo.get(a))==null||!b.isRenderer)&&!((c=a.polymerController)!=null?c:a).isRenderer_;)a=a.parentNode||a.host;if(b=a)return Yo.get(b)};
b6a=function(a){if(a){Yo.delete(a);var b=_.v().resolve(Zl);oPa(a,b)}};
d6a=function(a,b,c){if(c===void 0?0:c){if(c=a.getAttribute("client-ve-type"),b.data&&!b.disableReactiveLogging||c)_.vh(function(){c6a(a,_.zh(b.data))},"czdkCe"),_.wh(function(){return void b6a(a)})}else typeof b.data!=="function"&&c6a(a,b.data)};
c6a=function(a,b){e6a++;f6a(a,b)&&_.zk.addJob(function(){_.Du(_.zk,function(){if(f6a(a,b)&&a.ownerDocument.documentElement===document.documentElement&&a){var c;if(a.getAttribute("layer")){var d=c=Number(a.getAttribute("layer")),e=Yo.get(a);e?e.layerNode.layer=d:$5a(a,new g6a(d));(d=a6a(a))&&(e=Yo.get(a))!=null&&(e.layerNode.parent=d.layerNode)}else if(c=Yo.get(a))c=xw(c.layerNode);else{c=xw;d=new g6a;if(e=a6a(a))d.parent=e.layerNode;$5a(a,d);c=c(d)}c!=null||(c=0);d=a.getAttribute("client-ve-type");
e=Number(d);var g=!1;d=!1;var k=Yo.get(a),m;if((m=k)&&!(m=k[h6a]!==b)&&(m=e)){var n;m=((n=Yo.get(a))==null?void 0:n.clientVeType)===void 0}m&&(k[h6a]=b,g=d=k.isRenderer=!0);Yo.has(a)&&(Yo.get(a).clientVeType=e);a.visualElement&&(d=!0);(n=b==null?void 0:b.loggingDirectives)&&n.clientVeSpec&&(k=i6a(_.ks(),a),n=_.j6a(_.ms(),n,k||void 0,c))&&(a.visualElement=n);!a.visualElement&&e&&g&&(a.veType=e,n=void 0,_.x("wiz_next_client_ve_parent_fix")&&(n=i6a(_.ks(),a)),n=_.ls(_.ms(),a,n,c),a.visualElement=n);
d&&(n=_.v().resolve(Zl),sPa(a,{data:b,observer:n,layer:c,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
f6a=function(a,b){return(b==null?0:b.trackingParams)||(b==null?0:b.loggingDirectives)||_.y(b==null?void 0:b.rendererContext,_.tPa)||a.getAttribute("client-ve-type")?!0:!1};
k6a=function(a,b,c){a.componentType!==oh&&c instanceof HTMLElement&&b&&d6a(c,b,!0)};
l6a=function(a,b,c){b=b===void 0?{}:b;var d,e=(d=_.y(a.commandMetadata,_.ao))==null?void 0:d.url;d=b.form||{};!c||d.element||d.skipDefaultElement||(b.form=b.form||{},b.form.element=c);if(e&&e!=="/service_ajax")return{type:0,command:a,form:b.form};if(_.x("kevlar_service_command_check")){if(_.Rt(_.v().resolve(_.xq),a))return Object.assign({},{type:1,command:a},b)}else{var g;if((g=_.y(a.commandMetadata,_.ao))==null?0:g.apiUrl)return Object.assign({},{type:1,command:a},b)}return{type:2,command:a,form:b.form}};
m6a=function(a){if(a.form){var b=a.form,c=Object.assign({},b);b=b.element;c=(delete c.element,c);if(b)return[_.mo(b,[a.command,c,a.commandController])]}return[]};
n6a=function(a){if(a.form){var b=a.form,c=Object.assign({},b);b=b.element;c=(delete c.element,c);b&&_.no(b,[a.command],b,c)}};
o6a=function(a,b,c){var d=new yw(a,b),e=new zw(a,b,c);a={"/youtubei/v1/browse":new Aw(a,b,c),"/youtubei/v1/player":d,"/youtubei/v1/navigation/resolve_url":new Bw,"/youtubei/v1/next":e,"/youtubei/v1/guide":new Cw(c),"/youtubei/v1/search":new Dw(a,b,c),"/youtubei/v1/reel/reel_item_watch":new Ew(a,b,c),"/youtubei/v1/get_watch":new Fw(d,e)};a["/youtubei/v1/account/account_menu"]=new Gw;a["/youtubei/v1/notification/get_notification_menu"]=new Hw;return a};
Jw=function(){var a=_.v().resolve(Iw);return Promise.resolve(p6a(a,_.ja.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
q6a=function(a){return a&&(a=_.Kw(_.QUa(a)))?(new URLSearchParams(a)).get("service"):null};
Nw=function(a,b){_.at(_.Lw(),function(){_.Jo("adl")});
_.v().resolve(r6a)(b);a=a.root;a.loadData&&a.loadData(b);(b==null?0:b.response)?_.ww(hBa(),"SUCCESS"):_.Dl(new _.qj("Lifecycle: No response in data",_.Gi("IS_SHELL_LOAD"),b?b.page:"NO_PAGE",b?b.endpoint:"NO_ENDPOINT"));a.polymerController.$["page-manager"].lazyPrepareCriticalPages((b==null?void 0:b.page)||"",b.endpoint);var c,d;((d=_.y(b==null?void 0:(c=b.endpoint)==null?void 0:c.commandMetadata,_.ao))==null?0:d.webPageType)&&_.Yp().dispatch(_.Mw(_.y(b.endpoint.commandMetadata,_.ao).webPageType))};
s6a=function(){var a,b;return _.l(function(c){switch(c.nextAddress){case 1:a=window;if(!a.getDataPromise){c.jumpTo(2);break}_.me(c,3);return _.p(c,a.getDataPromise(),5);case 5:return c.return(c.yieldResult);case 3:return _.re(c),_.p(c,Jw(),6);case 6:return c.return(c.yieldResult);case 2:if(a.getInitialData)return b=a.getInitialData(),a.getInitialData=void 0,c.return(b);throw Error("mj`"+_.ja.location.href);}})};
u6a=function(){_.Bi("CSI_SERVICE_NAME","youtube");_.Ho({loadType:"cold"});_.x("kevlar_log_lcp")&&t6a(function(a){_.Jo("lcp",a.value)})};
v6a=function(){var a=_.Hg(document.location.href,"enable");a&&a.indexOf("scraper")>-1&&_.Bi("ADD_SCRAPER_ATTRIBUTES",!0)};
A6a=function(a){var b=a.root;a=[w6a,x6a,_.Ow];_.x("web_feedback_endpoint_autolog_allowlist_killswitch")&&a.push(_.Pw,y6a);z6a(function(c,d){return l6a(c,d,b)},function(c){if(!c.command)return[];
var d;((d=c.form)==null?0:d.element)?c.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},c.form,{endpoint:c.command})})):b.handleNavigate(c);return[]},a);
_.v().addProvider({provide:_.Xi,useValue:_.hs.instance})};
C6a=function(){var a={},b={},c;for(c in B6a){var d=_.h(_.fh(B6a[c],"UAX5pb"));a[c]=d.next().value;b[c]=d.next().value}return[a,function(e){for(var g in e){var k=void 0;(k=b[g])==null||k(e[g])}}]};
_.F6a=function(a,b){var c=_.yf.getValueByKeys(a,"contents","twoColumnWatchNextResults","results","results","contents"),d=_.yf.getValueByKeys(a,"contents","twoColumnWatchNextResults","playlist","playlist")||null,e=null,g=null;if(d)e=_.yf.getValueByKeys(d,"titleText"),g=_.yf.unsafeClone(_.yf.getValueByKeys(d,"longBylineText")),c="",g&&(c=_.Vp(g)),g=_.Up(c);else if(c){c=_.h(c);for(var k=c.next();!k.done;k=c.next())k=k.value,k.videoPrimaryInfoRenderer&&(e=_.yf.getValueByKeys.apply(_.yf,[k].concat(_.Be(D6a)))),
k.videoSecondaryInfoRenderer&&(g=_.yf.getValueByKeys.apply(_.yf,[k].concat(_.Be(E6a))))}else _.Ki(Error("rj"));var m;a.currentVideoEndpoint?m=a.currentVideoEndpoint:_.Ki(Error("sj"));var n;b&&(n=_.yf.getValueByKeys(b,"playabilityStatus","miniplayer","miniplayerRenderer"));a={miniplayerTitle:e,miniplayerSubtitle:g,watchEndpoint:m,playlistData:d};n&&(a.miniplayerRenderer=n);return a};
G6a=function(a){if(a)return _.As(a)};
_.H6a=function(){return{isFullscreen:function(){throw Error("tj");},
toggleFullscreen:function(){throw Error("uj");},
exitFullscreen:function(){throw Error("vj");},
isAutonavEnabled:function(){throw Error("wj");},
setAutonavEnabled:function(){throw Error("xj");},
isAutoplaySetExplicitly:function(){throw Error("yj");}}};
I6a=function(a){return a.videoDuration?a.numTaps>1&&a.tapDirection!==0?_.Qw(a.draggedTime/a.videoDuration,0,1):_.Qw((a.playedTime||0)/a.videoDuration,0,1):0};
J6a=function(a){return a.videoDuration?a.isDragging||a.numTaps>1&&a.tapDirection!==0?_.Qw(a.draggedTime/a.videoDuration,0,1):_.Qw((a.playedTime||0)/a.videoDuration,0,1):0};
L6a=function(a){var b,c,d;return _.y(a==null?void 0:(b=a.markersMap)==null?void 0:(c=b.find(function(e){return e.key==="HEATSEEKER"}))==null?void 0:(d=c.value)==null?void 0:d.heatmap,K6a)};
M6a=function(a){var b,c;return(c=(b=L6a(a))==null?void 0:b.heatMarkersDecorations)!=null?c:[]};
N6a=function(a){if(_.x("mweb_supported_chapters_killswitch"))return!0;var b;return!!(a==null?0:(b=a.markersMap)==null?0:b.find(function(c){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(c.key)}))};
_.O6a=function(a){var b=Object,c=b.assign,d;a={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(d=a==null?void 0:a.getPlayerState())!=null?d:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return c.call(b,{},{isLive:!1,isPlaylist:!1,playerType:1,isProbablyAScreenreaderUser:!1,videoId:void 0,captionsEnabled:!1,captionsAvailable:!1,volume:0,volumeMuted:!0,draggedYDistance:0,isLooping:!1,isLongPressSpeedup:!1},{enabledFullscreenControlsGesture:!1,expandedFullscreenControls:!1,
isFullscreen:!1,numTaps:0,tapDirection:0},{autonavCanceled:!1,autonavEnabled:!1,autonavPaused:!1,autonavCountdown:0,showAutonavMessage:!1},a,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
P6a=function(a){return function(b){var c=a(),d,e=(d=c.playerApi)==null?void 0:d.getPlayerState();b&&b!==c.playerState&&(b===1||b===2)&&c.setState({playerState:e})}};
R6a=function(a){return function(b){var c=a(),d=c.playerApi;d&&(b==null?void 0:b.type)==="newdata"&&(Q6a&&(clearTimeout(Q6a),Q6a=void 0),_.x("web_shorts_use_progress_state_for_gapless")?(b=d==null?void 0:d.getProgressState(b==null?void 0:b.playertype),b=b.seekableEnd-b.seekableStart):b=d==null?void 0:d.getDuration(b==null?void 0:b.playertype),c.setState({playedTime:0,videoDuration:b}))}};
S6a=function(a){return function(b){var c=a(),d=c.playerApi;if(d){var e=d.getPresentingPlayerType();_.x("web_shorts_use_progress_state_for_gapless")?(d=d.getProgressState(e),d=d.seekableEnd-d.seekableStart):d=d.getDuration(e);c.setState({playedTime:b,videoDuration:d})}}};
V6a=function(a){var b=a.element;var c=a.veType;var d=a.storedVisualElement===void 0?null:a.storedVisualElement;var e=a.elementIndex===void 0?0:a.elementIndex;a=a.clientYouTubeData;var g=_.Fn();g!==T6a&&(U6a.clear(),T6a=g);if(b.visualElement&&U6a.has(b.visualElement))return null;if(d&&U6a.has(d))return b.visualElement=d,null;c=_.ls(_.ms(),{veType:c,elementIndex:e,clientYouTubeData:a});if(!c)return null;b.visualElement=c;U6a.add(c);return c};
_.Rw=function(a,b,c,d){c=c===void 0?null:c;d=d===void 0?BQa:d;var e=e===void 0?null:e;us(function(){if(b){c instanceof Function&&(c=c());var g=V6a({element:b,veType:a,storedVisualElement:c,clientYouTubeData:void 0});g&&(EQa(b,e),d(g))}})};
X6a=function(a){_.Rw(112394,a,function(){return W6a},function(b){W6a=b})};
$6a=function(a,b){if(!a)return[];var c,d,e;a=((c=a.markersMap)==null?void 0:(d=c.find(function(g){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(g.key)}))==null?void 0:(e=d.value)==null?void 0:e.chapters)||[];
!Y6a(a)||(b==null?0:b.ignoreStub)||(a=[Z6a()].concat(_.Be(a)));return a};
Z6a=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
Y6a=function(a){if(a.length===0)return!1;var b;return((b=_.y(a[0],Sw))==null?void 0:b.timeRangeStartMillis)!==0};
Tw=function(a){return a?a.timeRangeStartMillis||0:0};
b7a=function(a,b){if(a.isDragging&&b)return a=a7a(a,b),a===-1?Z6a():$6a(b)[a]};
a7a=function(a,b){return a.isDragging&&b?$6a(b,{ignoreStub:!0}).findIndex(function(c,d,e){c=c7a(a);return d7a(c,e,d).scrubberHovering}):-1};
c7a=function(a){return Object.assign({},a,{videoDuration:a.videoDuration*1E3,playedTime:a.playedTime*1E3,draggedTime:a.draggedTime*1E3})};
d7a=function(a,b,c){var d=Tw(_.y(b[c],Sw));b=Tw(_.y(b[c+1],Sw))||a.videoDuration;c=a.isDragging;var e;if(e=a.isDragging)e=a.draggedTime,e=e!==null&&e>=d&&e<b;var g=a.playedTime;return g!==null&&g>=d&&g<b?{videoPosition:"active",isScrubbing:c,scrubberHovering:e}:a.playedTime<d?{videoPosition:"pending",isScrubbing:c,scrubberHovering:e}:{videoPosition:"seen",isScrubbing:c,scrubberHovering:e}};
e7a=function(a,b){return a.videoPosition==="seen"||(b===void 0?0:b)>0};
f7a=function(a,b,c){b=a/b.storyboardInterval;var d=$6a(c);if(!d.length)return-b*72;c=0;d=_.h(d);for(var e=d.next();!e.done;e=d.next())if(Tw(_.y(e.value,Sw))/1E3<a)c++;else break;return-(b*72)-c*56};
g7a=function(a){return a?a.width/a.columns:0};
h7a=function(a){return a.isHovering?a.hoveredTime:a.draggedTime};
i7a=function(a,b){a=a.draggedTime*1E3;return a>=b.visibleTimeRangeStartMillis&&a<=b.visibleTimeRangeEndMillis};
_.j7a=function(a){if(a===void 0||Number.isNaN(a))return"--:--";var b=Math.abs(Math.floor(a)),c=Math.floor(b/86400),d=Math.floor(b%86400/3600),e=Math.floor(b%3600/60);b=Math.floor(b%60);var g="";c>0&&(g+=c+":",d<10&&(g+="0"));if(c>0||d>0)g+=d+":",e<10&&(g+="0");g+=e+":";b<10&&(g+="0");g+=b;return a>=0?g:"-"+g};
k7a=function(a,b){return function(){var c=h7a(a());var d=b();var e=a().playerApi;if(e&&e.getNumberOfStoryboardLevels()!==0){var g=e.getStoryboardFrameIndex(c,1);g!==-1?d=e.getStoryboardFrame(g,1):(c=e.getStoryboardFrameIndex(c,0),e=e.getStoryboardFrame(c,0),d&&e&&(e.height*=3,e.width*=3),d=e)}else d=null;if(!d)return null;b()&&(d.width=90*d.columns,d.height=160*d.rows);return d}};
_.Uw=function(a){if(!a||a.getVideoData)return a};
l7a=function(){var a;return{playerApi:(a=_.v().resolve(_.mu)())!=null?a:void 0}};
_.q7a=function(a){function b(I){I!==0||t?I>50&&(t||!w)?(u(!1),A(!0)):I<=50&&(t||w)&&(u(!1),A(!1)):u(!0)}
function c(){var I;return _.l(function(R){if(R.nextAddress==1)return _.p(R,_.nu(),2);(I=R.yieldResult)&&(I.isMuted()?u(!0):u(!1));_.se(R)})}
var d=a.noSlider;a=_.Rl();var e=_.Rl(),g=_.Sl(),k=_.h(Lr(!1)),m=k.next().value,n=k.next().value,r=_.h(Lr(!1));k=r.next().value;r=r.next().value;var t=k,u=r;r=_.h(Lr(!0));k=r.next().value;r=r.next().value;var w=k,A=r;_.vi(function(){function I(){n(!0)}
function R(){n(!1)}
d?(c(),b(t?0:100)):g&&g.value&&(g.value.addEventListener("focus",I),g.value.addEventListener("focusout",R),m7a(g.value).then(function(){b(Number(n7a(g.value)))}));
e&&e.value&&(e.value.addEventListener("focus",I),e.value.addEventListener("focusout",R));return function(){var ca;g==null||(ca=g.value)==null||ca.removeEventListener("focus",I);var V;g==null||(V=g.value)==null||V.removeEventListener("focusout",R);e.value.removeEventListener("focus",I);e.value.removeEventListener("focusout",R)}});
var C=_.ot(function(){if(g&&g.value){var I=Number(n7a(g.value));o7a(I);g.value.style.setProperty("--gradient-percent",I+"%");b(I)}return!1});
k={};var G=(k.ytdDesktopShortsVolumeControlsSliderContainer=!0,k.ytdDesktopShortsVolumeControlsSliderContainerExpanded=m,k);k={};m=(k.ytdDesktopShortsVolumeControlsBackgroundScrim=!0,k.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=d?!1:m,k);_.Tl(e,"pointerenter",function(){n(!0)});
_.Tl(a,"pointerleave",function(){n(!1)});
k=_.ot(function(){if(g&&g.value||d)p7a(g.value,t,d),u(!t);return!1});
r=_.x("web_shorts_keyboard_enable_mute_shortcut")?t?_.to("PLAYER_LABEL_UNMUTE",void 0,"Unmute (m)"):_.to("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):t?_.to("UNMUTE_VOLUME",void 0,"Unmute"):_.to("MUTE_VOLUME",void 0,"Mute");var J={sources:[{clientResource:{imageName:t?"VOLUME_OFF_FILLED":w?"VOLUME_UP_FILLED":"VOLUME_DOWN_FILLED"}}]};return _.q("desktop-shorts-volume-controls",{class:"ytdDesktopShortsVolumeControlsHost",el:a},_.q("div",{class:_.lt(m)}),_.q("button",{"aria-label":r,title:r,el:e,"on:click":k,
class:"ytdDesktopShortsVolumeControlsMuteIconButton"},J?_.q(_.Ss,{data:J,alt:r,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null),_.Qg(!d,function(){return _.q("div",{class:_.lt(G)},_.q("input",{"aria-label":_.to("VOLUME"),title:_.to("VOLUME"),el:g,"on:input":C,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input"}))}))};
m7a=function(a){var b,c;return _.l(function(d){if(d.nextAddress==1)return _.p(d,_.nu(),2);b=d.yieldResult;c=50;b&&(c=b.getVolume(),b.isMuted()?r7a(a,0):r7a(a,c));_.se(d)})};
o7a=function(a){var b;_.l(function(c){if(c.nextAddress==1)return _.p(c,_.nu(),2);if(b=c.yieldResult)b.unMute(!0),b.setVolume(a,!0);_.se(c)})};
r7a=function(a,b){a&&(a.value=""+b,a.style.setProperty("--gradient-percent",b+"%"))};
n7a=function(a){var b;return(b=a==null?void 0:a.value)!=null?b:0};
p7a=function(a,b,c){var d;_.l(function(e){if(e.nextAddress==1)return _.p(e,_.nu(),2);d=e.yieldResult;b&&d?(d.unMute(!0),!c&&a&&r7a(a,d.getVolume())):d&&(d.mute(!0),!c&&a&&r7a(a,0));_.se(e)})};
s7a=function(){var a;_.l(function(b){if(b.nextAddress==1)return _.p(b,_.nu(),2);a=b.yieldResult;if(!a)return b.return();a.isMuted()?a.unMute(!0):a.mute(!0);_.se(b)})};
t7a=function(a){var b=_.v().resolve(_.Vw).getPlayerElement();b&&a&&(a===1?b.pause():b.play())};
u7a=function(a){_.ko(a,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
v7a=function(a){_.ko(a,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
x7a=function(a){return _.si(a.document.body,function(){return _.q(w7a,null)})};
y7a=function(){var a=window.performance.getEntriesByType("navigation");return a?a.map(function(b){return b.type}).includes("reload"):!1};
G7a=function(){Ww(Ww(Ww(Ww(Ww(Ww(Ww(_.v().resolve(_.Xw),_.z7a),_.A7a),_.B7a),_.C7a),_.D7a),_.E7a),_.F7a)};
H7a=function(a,b){b=b===void 0?!1:b;var c,d,e,g;return _.l(function(k){if(k.nextAddress==1)return b||!_.x("kevlar_shorts_seedless_retry_initial_load")||(c=window,d=!(!c.getDataPromise&&!c.getInitialData),d)?_.p(k,s6a(),2):(setTimeout(H7a.bind(window,a,!0),1E3),k.return());if(k.nextAddress!=3)return e=k.yieldResult,_.p(k,I7a(e),3);g=k.yieldResult;Nw(a,g);_.se(k)})};
I7a=function(a){var b;if((b=a.response)==null||!b.replacementEndpoint)return _.oo(a);b=_.v().resolve(Iw);a=a.response;_.y(a.replacementEndpoint,_.tq)&&a.sequenceContinuation&&(_.y(a.replacementEndpoint,_.tq).sequenceParams=a.sequenceContinuation);return Yw(b,a.replacementEndpoint,{},_.ja.location.href,"shorts",function(){},function(){return!1})};
J7a=function(a){var b=_.Yp(),c,d=_.y((c=a.response)==null?void 0:c.frameworkUpdates,Vt),e;c=_.y((e=a.playerResponse)==null?void 0:e.frameworkUpdates,Vt);var g;a=_.y((g=a.reelWatchSequenceResponse)==null?void 0:g.frameworkUpdates,Vt);d&&_.sp(d,b);c&&_.sp(c,b);a&&_.sp(a,b)};
K7a=function(a){var b;_.x("enable_redirect_linking_for_desktop_web_client")&&((b=window.location.hash)==null?0:b.includes("redirect_state"))&&a.url&&(a.url=a.url.toString()+window.location.hash)};
N7a=function(a){var b=_.v(),c=b.resolve(Iw);b=b.resolve(_.L7a);a.endpoint&&(c=M7a(c,a.endpoint),c.content&&a.response&&_.Zw(b,a.response,c.content),c.player&&a.playerResponse&&_.Zw(b,a.playerResponse,c.player),c.reelSequence&&a.reelWatchSequenceResponse&&_.Zw(b,a.reelWatchSequenceResponse,c.reelSequence))};
$w=function(a,b){J7a(b);var c;(b==null?0:b.url)&&((c=window.location.hash)==null?0:c.includes("redirect_state"))&&(K7a(b),(c=q6a(b.url))&&_.ho(a.root,"yt-initialize-third-party",[c,b]));N7a(b);c=_.v();var d=c.resolve(O7a);b.playerResponse&&c.resolve(P7a).handleResponse(b.playerResponse);if(b.playerResponse){c=void 0;if(_.x("ab_v_vid_sig")&&b.endpoint){var e,g=(e=_.y(b.endpoint,_.Vn))!=null?e:_.y(b.endpoint,_.tq);g&&(c=g.videoId)}Q7a(d,b.playerResponse,c)}b.playerResponse&&OHa(b.playerResponse)&&_.x("web_enable_ab_rsp_cl")?
z3a().then(function(){R7a(d,b.playerResponse);Nw(a,b)}):Nw(a,b)};
T7a=function(a){if(a=a.root.data){var b=_.v().resolve(S7a);a.endpoint&&(a.response&&b.handleResponse(a.response,void 0,document.querySelector("ytd-app")),a.playerResponse&&b.handleResponse(a.playerResponse),a.reelWatchSequenceResponse&&b.handleResponse(a.reelWatchSequenceResponse))}};
U7a=function(a){var b,c,d,e,g,k;return _.l(function(m){switch(m.nextAddress){case 1:b=window;if(!b.getDataPromise){m.jumpTo(2);break}_.me(m,3);return _.p(m,b.getDataPromise(),5);case 5:c=m.yieldResult;$w(a,c);_.Jj(m,4);break;case 3:return _.re(m),_.p(m,Jw(),6);case 6:d=m.yieldResult,Nw(a,d);case 4:return m.return();case 2:if(!_.x("sw_nav_preload_pbj")){m.jumpTo(7);break}b.fetchInitialData=function(){var n;return _.l(function(r){if(r.nextAddress==1)return _.p(r,Jw(),2);n=r.yieldResult;Nw(a,n);_.se(r)})};
if(b.getInitialData){b.loadInitialData=function(n){$w(a,n)};
e=b.getInitialData();b.getInitialData=void 0;$w(a,e);m.jumpTo(8);break}b.fetchInitialData=void 0;return _.p(m,Jw(),9);case 9:g=m.yieldResult,Nw(a,g);case 8:return m.return();case 7:b.getInitialData?(k=b.getInitialData(),b.getInitialData=void 0,$w(a,k)):b.loadInitialData=function(n){$w(a,n)},_.se(m)}})};
V7a=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};
W7a=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};
X7a=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("a");};
_.Vm=X7a(this);ax=function(a,b){if(b)a:{var c=_.Vm;a=a.split(".");for(var d=0;d<a.length-1;d++){var e=a[d];if(!(e in c))break a;c=c[e]}a=a[a.length-1];d=c[a];b=b(d);b!=d&&b!=null&&W7a(c,a,{configurable:!0,writable:!0,value:b})}};
ax("Symbol",function(a){if(a)return a;var b=function(g,k){this.$jscomp$symbol$id_=g;W7a(this,"description",{configurable:!0,writable:!0,value:k})};
b.prototype.toString=function(){return this.$jscomp$symbol$id_};
var c="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",d=0,e=function(g){if(this instanceof e)throw new TypeError("b");return new b(c+(g||"")+"_"+d++,g)};
return e});
ax("Symbol.iterator",function(a){if(a)return a;a=Symbol("c");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c<b.length;c++){var d=_.Vm[b[c]];typeof d==="function"&&typeof d.prototype[a]!="function"&&W7a(d.prototype,a,{configurable:!0,writable:!0,value:function(){return Y7a(V7a(this))}})}return a});
ax("Symbol.asyncIterator",function(a){return a?a:Symbol("d")});
var Y7a=function(a){a={next:a};a[Symbol.iterator]=function(){return this};
return a},Z7a=typeof Object.create=="function"?Object.create:function(a){var b=function(){};
b.prototype=a;return new b},$7a=function(){function a(){function c(){}
new c;Reflect.construct(c,[],function(){});
return new c instanceof c}
if(typeof Reflect!="undefined"&&Reflect.construct){if(a())return Reflect.construct;var b=Reflect.construct;return function(c,d,e){c=b(c,d);e&&Reflect.setPrototypeOf(c,e.prototype);return c}}return function(c,d,e){e===void 0&&(e=c);
e=Z7a(e.prototype||Object.prototype);return Function.prototype.apply.call(c,e,d)||e}}(),a8a;
if(typeof Object.setPrototypeOf=="function")a8a=Object.setPrototypeOf;else{var b8a;a:{var c8a={a:!0},d8a={};try{d8a.__proto__=c8a;b8a=d8a.a;break a}catch(a){}b8a=!1}a8a=b8a?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError("e`"+a);return a}:null}_.bx=a8a;
_.z=function(a,b){a.prototype=Z7a(b.prototype);a.prototype.constructor=a;if(_.bx)(0,_.bx)(a,b);else for(var c in b)if(c!="prototype")if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c];a.superClass_=b.prototype};
_.h=function(a){var b=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];if(b)return b.call(a);if(typeof a.length=="number")return{next:V7a(a)};throw Error("f`"+String(a));};
Og=function(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c};
_.Be=function(a){return a instanceof Array?a:Og(_.h(a))};
_.cx=function(a){return e8a(a,a)};
e8a=function(a,b){a.raw=b;Object.freeze&&(Object.freeze(a),Object.freeze(b));return a};
dx=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};
f8a=typeof Object.assign=="function"?Object.assign:function(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(d)for(var e in d)dx(d,e)&&(a[e]=d[e])}return a};
ax("Object.assign",function(a){return a||f8a});
var g8a=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},h8a=function(a){if(a.isRunning_)throw new TypeError("h");
a.isRunning_=!0};
g8a.prototype.JSC$6584_next_=function(a){this.yieldResult=a};
var i8a=function(a,b){a.abruptCompletion_={exception:b,isException:!0};a.nextAddress=a.catchAddress_||a.finallyAddress_};
g8a.prototype.return=function(a){this.abruptCompletion_={return:a};this.nextAddress=this.finallyAddress_};
_.p=function(a,b,c){a.nextAddress=c;return{value:b}};
g8a.prototype.jumpTo=function(a){this.nextAddress=a};
_.se=function(a){a.nextAddress=0};
_.me=function(a,b,c){a.catchAddress_=b;c!=void 0&&(a.finallyAddress_=c)};
_.pe=function(a,b){a.catchAddress_=0;a.finallyAddress_=b||0};
_.Jj=function(a,b,c){a.nextAddress=b;a.catchAddress_=c||0};
_.re=function(a,b){a.catchAddress_=b||0;b=a.abruptCompletion_.exception;a.abruptCompletion_=null;return b};
_.oe=function(a,b,c,d){d?a.finallyContexts_[d]=a.abruptCompletion_:a.finallyContexts_=[a.abruptCompletion_];a.catchAddress_=b||0;a.finallyAddress_=c||0};
_.qe=function(a,b,c){c=a.finallyContexts_.splice(c||0)[0];(c=a.abruptCompletion_=a.abruptCompletion_||c)?c.isException?a.nextAddress=a.catchAddress_||a.finallyAddress_:c.jumpTo!=void 0&&a.finallyAddress_<c.jumpTo?(a.nextAddress=c.jumpTo,a.abruptCompletion_=null):a.nextAddress=a.finallyAddress_:a.nextAddress=b};
_.j8a=function(a){this.JSC$6589_context_=new g8a;this.program_=a};
l8a=function(a,b){h8a(a.JSC$6589_context_);var c=a.JSC$6589_context_.yieldAllIterator_;if(c)return k8a(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.JSC$6589_context_.return);
a.JSC$6589_context_.return(b);return ex(a)};
k8a=function(a,b,c,d){try{var e=b.call(a.JSC$6589_context_.yieldAllIterator_,c);if(!(e instanceof Object))throw new TypeError("g`"+e);if(!e.done)return a.JSC$6589_context_.isRunning_=!1,e;var g=e.value}catch(k){return a.JSC$6589_context_.yieldAllIterator_=null,i8a(a.JSC$6589_context_,k),ex(a)}a.JSC$6589_context_.yieldAllIterator_=null;d.call(a.JSC$6589_context_,g);return ex(a)};
ex=function(a){for(;a.JSC$6589_context_.nextAddress;)try{var b=a.program_(a.JSC$6589_context_);if(b)return a.JSC$6589_context_.isRunning_=!1,{value:b.value,done:!1}}catch(c){a.JSC$6589_context_.yieldResult=void 0,i8a(a.JSC$6589_context_,c)}a.JSC$6589_context_.isRunning_=!1;if(a.JSC$6589_context_.abruptCompletion_){b=a.JSC$6589_context_.abruptCompletion_;a.JSC$6589_context_.abruptCompletion_=null;if(b.isException)throw b.exception;return{value:b.return,done:!0}}return{value:void 0,done:!0}};
_.m8a=function(a){this.next=function(b){h8a(a.JSC$6589_context_);a.JSC$6589_context_.yieldAllIterator_?b=k8a(a,a.JSC$6589_context_.yieldAllIterator_.next,b,a.JSC$6589_context_.JSC$6584_next_):(a.JSC$6589_context_.JSC$6584_next_(b),b=ex(a));return b};
this.throw=function(b){h8a(a.JSC$6589_context_);a.JSC$6589_context_.yieldAllIterator_?b=k8a(a,a.JSC$6589_context_.yieldAllIterator_["throw"],b,a.JSC$6589_context_.JSC$6584_next_):(i8a(a.JSC$6589_context_,b),b=ex(a));return b};
this.return=function(b){return l8a(a,b)};
this[Symbol.iterator]=function(){return this}};
n8a=function(a){function b(d){return a.next(d)}
function c(d){return a.throw(d)}
return new Promise(function(d,e){function g(k){k.done?d(k.value):Promise.resolve(k.value).then(b,c).then(g,e)}
g(a.next())})};
_.l=function(a){return n8a(new _.m8a(new _.j8a(a)))};
nea=function(a){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return a};
this.next=function(b){return Promise.resolve(a.next(b))};
this["throw"]=function(b){return new Promise(function(c,d){var e=a["throw"];e!==void 0?c(e.call(a,b)):(c=a["return"],c!==void 0&&c.call(a),d(new TypeError("i")))})};
a["return"]!==void 0&&(this["return"]=function(b){return Promise.resolve(a["return"](b))})};
_.Id=function(){for(var a=Number(this),b=[],c=a;c<arguments.length;c++)b[c-a]=arguments[c];return b};
ax("globalThis",function(a){return a||_.Vm});
ax("Reflect",function(a){return a?a:{}});
ax("Reflect.construct",function(){return $7a});
ax("Reflect.setPrototypeOf",function(a){return a?a:_.bx?function(b,c){try{return(0,_.bx)(b,c),!0}catch(d){return!1}}:null});
ax("Promise",function(a){function b(){this.batch_=null}
function c(k){return k instanceof e?k:new e(function(m){m(k)})}
if(a&&(typeof _.Vm.PromiseRejectionEvent!=="undefined"||!_.Vm.Promise||_.Vm.Promise.toString().indexOf("[native code]")===-1))return a;b.prototype.asyncExecute=function(k){if(this.batch_==null){this.batch_=[];var m=this;this.asyncExecuteFunction(function(){m.executeBatch_()})}this.batch_.push(k)};
var d=_.Vm.setTimeout;b.prototype.asyncExecuteFunction=function(k){d(k,0)};
b.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var k=this.batch_;this.batch_=[];for(var m=0;m<k.length;++m){var n=k[m];k[m]=null;try{n()}catch(r){this.asyncThrow_(r)}}}this.batch_=null};
b.prototype.asyncThrow_=function(k){this.asyncExecuteFunction(function(){throw k;})};
var e=function(k){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var m=this.createResolveAndReject_();try{k(m.resolve,m.reject)}catch(n){m.reject(n)}};
e.prototype.createResolveAndReject_=function(){function k(r){return function(t){n||(n=!0,r.call(m,t))}}
var m=this,n=!1;return{resolve:k(this.resolveTo_),reject:k(this.JSC$6605_reject_)}};
e.prototype.resolveTo_=function(k){if(k===this)this.JSC$6605_reject_(new TypeError("j"));else if(k instanceof e)this.settleSameAsPromise_(k);else{a:switch(typeof k){case "object":var m=k!=null;break a;case "function":m=!0;break a;default:m=!1}m?this.resolveToNonPromiseObj_(k):this.fulfill_(k)}};
e.prototype.resolveToNonPromiseObj_=function(k){var m=void 0;try{m=k.then}catch(n){this.JSC$6605_reject_(n);return}typeof m=="function"?this.settleSameAsThenable_(m,k):this.fulfill_(k)};
e.prototype.JSC$6605_reject_=function(k){this.settle_(2,k)};
e.prototype.fulfill_=function(k){this.settle_(1,k)};
e.prototype.settle_=function(k,m){if(this.state_!=0)throw Error("k`"+k+"`"+m+"`"+this.state_);this.state_=k;this.result_=m;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
e.prototype.scheduleUnhandledRejectionCheck_=function(){var k=this;d(function(){if(k.notifyUnhandledRejection_()){var m=_.Vm.console;typeof m!=="undefined"&&m.error(k.result_)}},1)};
e.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var k=_.Vm.CustomEvent,m=_.Vm.Event,n=_.Vm.dispatchEvent;if(typeof n==="undefined")return!0;typeof k==="function"?k=new k("unhandledrejection",{cancelable:!0}):typeof m==="function"?k=new m("unhandledrejection",{cancelable:!0}):(k=_.Vm.document.createEvent("CustomEvent"),k.initCustomEvent("unhandledrejection",!1,!0,k));k.promise=this;k.reason=this.result_;return n(k)};
e.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var k=0;k<this.onSettledCallbacks_.length;++k)g.asyncExecute(this.onSettledCallbacks_[k]);this.onSettledCallbacks_=null}};
var g=new b;e.prototype.settleSameAsPromise_=function(k){var m=this.createResolveAndReject_();k.callWhenSettled_(m.resolve,m.reject)};
e.prototype.settleSameAsThenable_=function(k,m){var n=this.createResolveAndReject_();try{k.call(m,n.resolve,n.reject)}catch(r){n.reject(r)}};
e.prototype.then=function(k,m){function n(w,A){return typeof w=="function"?function(C){try{r(w(C))}catch(G){t(G)}}:A}
var r,t,u=new e(function(w,A){r=w;t=A});
this.callWhenSettled_(n(k,r),n(m,t));return u};
e.prototype.catch=function(k){return this.then(void 0,k)};
e.prototype.callWhenSettled_=function(k,m){function n(){switch(r.state_){case 1:k(r.result_);break;case 2:m(r.result_);break;default:throw Error("l`"+r.state_);}}
var r=this;this.onSettledCallbacks_==null?g.asyncExecute(n):this.onSettledCallbacks_.push(n);this.isRejectionHandled_=!0};
e.resolve=c;e.reject=function(k){return new e(function(m,n){n(k)})};
e.race=function(k){return new e(function(m,n){for(var r=_.h(k),t=r.next();!t.done;t=r.next())c(t.value).callWhenSettled_(m,n)})};
e.all=function(k){var m=_.h(k),n=m.next();return n.done?c([]):new e(function(r,t){function u(C){return function(G){w[C]=G;A--;A==0&&r(w)}}
var w=[],A=0;do w.push(void 0),A++,c(n.value).callWhenSettled_(u(w.length-1),t),n=m.next();while(!n.done)})};
return e});
var fx=function(a,b,c){if(a==null)throw new TypeError("m`"+c);if(b instanceof RegExp)throw new TypeError("n`"+c);return a+""};
ax("String.prototype.startsWith",function(a){return a?a:function(b,c){var d=fx(this,b,"startsWith"),e=d.length,g=b.length;c=Math.max(0,Math.min(c|0,d.length));for(var k=0;k<g&&c<e;)if(d[c++]!=b[k++])return!1;return k>=g}});
ax("Object.setPrototypeOf",function(a){return a||_.bx});
ax("Symbol.dispose",function(a){return a?a:Symbol("o")});
ax("SuppressedError",function(a){function b(c,d,e){if(!(this instanceof b))return new b(c,d,e);e=Error(e);"stack"in e&&(this.stack=e.stack);this.message=e.message;this.error=c;this.suppressed=d}
if(a)return a;_.z(b,Error);b.prototype.name="SuppressedError";return b});
var o8a=function(a,b,c){a instanceof String&&(a=String(a));for(var d=a.length,e=0;e<d;e++){var g=a[e];if(b.call(c,g,e,a))return{i:e,v:g}}return{i:-1,v:void 0}};
ax("Array.prototype.find",function(a){return a?a:function(b,c){return o8a(this,b,c).v}});
ax("WeakMap",function(a){function b(){}
function c(n){var r=typeof n;return r==="object"&&n!==null||r==="function"}
function d(n){if(!dx(n,g)){var r=new b;W7a(n,g,{value:r})}}
function e(n){var r=Object[n];r&&(Object[n]=function(t){if(t instanceof b)return t;Object.isExtensible(t)&&d(t);return r(t)})}
if(function(){if(!a||!Object.seal)return!1;try{var n=Object.seal({}),r=Object.seal({}),t=new a([[n,2],[r,3]]);if(t.get(n)!=2||t.get(r)!=3)return!1;t.delete(n);t.set(r,4);return!t.has(n)&&t.get(r)==4}catch(u){return!1}}())return a;
var g="$jscomp_hidden_"+Math.random();e("freeze");e("preventExtensions");e("seal");var k=0,m=function(n){this.JSC$6612_id_=(k+=Math.random()+1).toString();if(n){n=_.h(n);for(var r;!(r=n.next()).done;)r=r.value,this.set(r[0],r[1])}};
m.prototype.set=function(n,r){if(!c(n))throw Error("p");d(n);if(!dx(n,g))throw Error("q`"+n);n[g][this.JSC$6612_id_]=r;return this};
m.prototype.get=function(n){return c(n)&&dx(n,g)?n[g][this.JSC$6612_id_]:void 0};
m.prototype.has=function(n){return c(n)&&dx(n,g)&&dx(n[g],this.JSC$6612_id_)};
m.prototype.delete=function(n){return c(n)&&dx(n,g)&&dx(n[g],this.JSC$6612_id_)?delete n[g][this.JSC$6612_id_]:!1};
return m});
ax("Map",function(a){if(function(){if(!a||typeof a!="function"||!a.prototype.entries||typeof Object.seal!="function")return!1;try{var m=Object.seal({x:4}),n=new a(_.h([[m,"s"]]));if(n.get(m)!="s"||n.size!=1||n.get({x:4})||n.set({x:4},"t")!=n||n.size!=2)return!1;var r=n.entries(),t=r.next();if(t.done||t.value[0]!=m||t.value[1]!="s")return!1;t=r.next();return t.done||t.value[0].x!=4||t.value[1]!="t"||!r.next().done?!1:!0}catch(u){return!1}}())return a;
var b=new WeakMap,c=function(m){this[0]={};this[1]=g();this.size=0;if(m){m=_.h(m);for(var n;!(n=m.next()).done;)n=n.value,this.set(n[0],n[1])}};
c.prototype.set=function(m,n){m=m===0?0:m;var r=d(this,m);r.list||(r.list=this[0][r.id]=[]);r.entry?r.entry.value=n:(r.entry={next:this[1],previous:this[1].previous,head:this[1],key:m,value:n},r.list.push(r.entry),this[1].previous.next=r.entry,this[1].previous=r.entry,this.size++);return this};
c.prototype.delete=function(m){m=d(this,m);return m.entry&&m.list?(m.list.splice(m.index,1),m.list.length||delete this[0][m.id],m.entry.previous.next=m.entry.next,m.entry.next.previous=m.entry.previous,m.entry.head=null,this.size--,!0):!1};
c.prototype.clear=function(){this[0]={};this[1]=this[1].previous=g();this.size=0};
c.prototype.has=function(m){return!!d(this,m).entry};
c.prototype.get=function(m){return(m=d(this,m).entry)&&m.value};
c.prototype.entries=function(){return e(this,function(m){return[m.key,m.value]})};
c.prototype.keys=function(){return e(this,function(m){return m.key})};
c.prototype.values=function(){return e(this,function(m){return m.value})};
c.prototype.forEach=function(m,n){for(var r=this.entries(),t;!(t=r.next()).done;)t=t.value,m.call(n,t[1],t[0],this)};
c.prototype[Symbol.iterator]=c.prototype.entries;var d=function(m,n){var r=n&&typeof n;r=="object"||r=="function"?b.has(n)?r=b.get(n):(r=""+ ++k,b.set(n,r)):r="p_"+n;var t=m[0][r];if(t&&dx(m[0],r))for(m=0;m<t.length;m++){var u=t[m];if(n!==n&&u.key!==u.key||n===u.key)return{id:r,list:t,index:m,entry:u}}return{id:r,list:t,index:-1,entry:void 0}},e=function(m,n){var r=m[1];
return Y7a(function(){if(r){for(;r.head!=m[1];)r=r.previous;for(;r.next!=r.head;)return r=r.next,{done:!1,value:n(r)};r=null}return{done:!0,value:void 0}})},g=function(){var m={};
return m.previous=m.next=m.head=m},k=0;
return c});
ax("Set",function(a){if(function(){if(!a||typeof a!="function"||!a.prototype.entries||typeof Object.seal!="function")return!1;try{var c=Object.seal({x:4}),d=new a(_.h([c]));if(!d.has(c)||d.size!=1||d.add(c)!=d||d.size!=1||d.add({x:4})!=d||d.size!=2)return!1;var e=d.entries(),g=e.next();if(g.done||g.value[0]!=c||g.value[1]!=c)return!1;g=e.next();return g.done||g.value[0]==c||g.value[0].x!=4||g.value[1]!=g.value[0]?!1:e.next().done}catch(k){return!1}}())return a;
var b=function(c){this.JSC$6626_map_=new Map;if(c){c=_.h(c);for(var d;!(d=c.next()).done;)this.add(d.value)}this.size=this.JSC$6626_map_.size};
b.prototype.add=function(c){c=c===0?0:c;this.JSC$6626_map_.set(c,c);this.size=this.JSC$6626_map_.size;return this};
b.prototype.delete=function(c){c=this.JSC$6626_map_.delete(c);this.size=this.JSC$6626_map_.size;return c};
b.prototype.clear=function(){this.JSC$6626_map_.clear();this.size=0};
b.prototype.has=function(c){return this.JSC$6626_map_.has(c)};
b.prototype.entries=function(){return this.JSC$6626_map_.entries()};
b.prototype.values=function(){return this.JSC$6626_map_.values()};
b.prototype.keys=b.prototype.values;b.prototype[Symbol.iterator]=b.prototype.values;b.prototype.forEach=function(c,d){var e=this;this.JSC$6626_map_.forEach(function(g){return c.call(d,g,g,e)})};
return b});
ax("Math.log2",function(a){return a?a:function(b){return Math.log(b)/Math.LN2}});
ax("Object.values",function(a){return a?a:function(b){var c=[],d;for(d in b)dx(b,d)&&c.push(b[d]);return c}});
ax("Object.is",function(a){return a?a:function(b,c){return b===c?b!==0||1/b===1/c:b!==b&&c!==c}});
ax("Array.prototype.includes",function(a){return a?a:function(b,c){var d=this;d instanceof String&&(d=String(d));var e=d.length;c=c||0;for(c<0&&(c=Math.max(c+e,0));c<e;c++){var g=d[c];if(g===b||Object.is(g,b))return!0}return!1}});
ax("String.prototype.includes",function(a){return a?a:function(b,c){return fx(this,b,"includes").indexOf(b,c||0)!==-1}});
ax("Array.from",function(a){return a?a:function(b,c,d){c=c!=null?c:function(m){return m};
var e=[],g=typeof Symbol!="undefined"&&Symbol.iterator&&b[Symbol.iterator];if(typeof g=="function"){b=g.call(b);for(var k=0;!(g=b.next()).done;)e.push(c.call(d,g.value,k++))}else for(g=b.length,k=0;k<g;k++)e.push(c.call(d,b[k],k));return e}});
ax("Object.entries",function(a){return a?a:function(b){var c=[],d;for(d in b)dx(b,d)&&c.push([d,b[d]]);return c}});
ax("Number.isFinite",function(a){return a?a:function(b){return typeof b!=="number"?!1:!isNaN(b)&&b!==Infinity&&b!==-Infinity}});
ax("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
ax("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
ax("Number.isInteger",function(a){return a?a:function(b){return Number.isFinite(b)?b===Math.floor(b):!1}});
ax("Number.isSafeInteger",function(a){return a?a:function(b){return Number.isInteger(b)&&Math.abs(b)<=Number.MAX_SAFE_INTEGER}});
ax("String.prototype.endsWith",function(a){return a?a:function(b,c){var d=fx(this,b,"endsWith");c===void 0&&(c=d.length);c=Math.max(0,Math.min(c|0,d.length));for(var e=b.length;e>0&&c>0;)if(d[--c]!=b[--e])return!1;return e<=0}});
var p8a=function(a,b){a instanceof String&&(a+="");var c=0,d=!1,e={next:function(){if(!d&&c<a.length){var g=c++;return{value:b(g,a[g]),done:!1}}d=!0;return{done:!0,value:void 0}}};
e[Symbol.iterator]=function(){return e};
return e};
ax("Array.prototype.entries",function(a){return a?a:function(){return p8a(this,function(b,c){return[b,c]})}});
ax("Math.imul",function(a){return a?a:function(b,c){b=Number(b);c=Number(c);var d=b&65535,e=c&65535;return d*e+((b>>>16&65535)*e+d*(c>>>16&65535)<<16>>>0)|0}});
ax("Math.trunc",function(a){return a?a:function(b){b=Number(b);if(isNaN(b)||b===Infinity||b===-Infinity||b===0)return b;var c=Math.floor(Math.abs(b));return b<0?-c:c}});
ax("Number.isNaN",function(a){return a?a:function(b){return typeof b==="number"&&isNaN(b)}});
ax("Array.prototype.keys",function(a){return a?a:function(){return p8a(this,function(b){return b})}});
ax("Array.prototype.values",function(a){return a?a:function(){return p8a(this,function(b,c){return c})}});
ax("Array.prototype.fill",function(a){return a?a:function(b,c,d){var e=this.length||0;c<0&&(c=Math.max(0,e+c));if(d==null||d>e)d=e;d=Number(d);d<0&&(d=Math.max(0,e+d));for(c=Number(c||0);c<d;c++)this[c]=b;return this}});
var gx=function(a){return a?a:Array.prototype.fill};
ax("Int8Array.prototype.fill",gx);ax("Uint8Array.prototype.fill",gx);ax("Uint8ClampedArray.prototype.fill",gx);ax("Int16Array.prototype.fill",gx);ax("Uint16Array.prototype.fill",gx);ax("Int32Array.prototype.fill",gx);ax("Uint32Array.prototype.fill",gx);ax("Float32Array.prototype.fill",gx);ax("Float64Array.prototype.fill",gx);
ax("Object.fromEntries",function(a){return a?a:function(b){var c={};if(!(Symbol.iterator in b))throw new TypeError("r`"+b);b=b[Symbol.iterator].call(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;if(Object(d)!==d)throw new TypeError("s");c[d[0]]=d[1]}return c}});
ax("String.prototype.replaceAll",function(a){return a?a:function(b,c){if(b instanceof RegExp&&!b.global)throw new TypeError("t");return b instanceof RegExp?this.replace(b,c):this.replace(new RegExp(String(b).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),c)}});
ax("Object.getOwnPropertySymbols",function(a){return a?a:function(){return[]}});
ax("String.prototype.repeat",function(a){return a?a:function(b){var c=fx(this,null,"repeat");if(b<0||b>1342177279)throw new RangeError("u");b|=0;for(var d="";b;)if(b&1&&(d+=c),b>>>=1)c+=c;return d}});
ax("Array.prototype.findIndex",function(a){return a?a:function(b,c){return o8a(this,b,c).i}});
ax("Array.prototype.flatMap",function(a){return a?a:function(b,c){var d=[];Array.prototype.forEach.call(this,function(e,g){e=b.call(c,e,g,this);Array.isArray(e)?d.push.apply(d,e):d.push(e)});
return d}});
ax("String.prototype.codePointAt",function(a){return a?a:function(b){var c=fx(this,null,"codePointAt"),d=c.length;b=Number(b)||0;if(b>=0&&b<d){b|=0;var e=c.charCodeAt(b);if(e<55296||e>56319||b+1===d)return e;b=c.charCodeAt(b+1);return b<56320||b>57343?e:(e-55296)*1024+b+9216}}});
ax("String.fromCodePoint",function(a){return a?a:function(b){for(var c="",d=0;d<arguments.length;d++){var e=Number(arguments[d]);if(e<0||e>1114111||e!==Math.floor(e))throw new RangeError("v`"+e);e<=65535?c+=String.fromCharCode(e):(e-=65536,c+=String.fromCharCode(e>>>10&1023|55296),c+=String.fromCharCode(e&1023|56320))}return c}});
ax("String.prototype.padStart",function(a){return a?a:function(b,c){var d=fx(this,null,"padStart");b-=d.length;c=c!==void 0?String(c):" ";return(b>0&&c?c.repeat(Math.ceil(b/c.length)).substring(0,b):"")+d}});
ax("Promise.prototype.finally",function(a){return a?a:function(b){return this.then(function(c){return Promise.resolve(b()).then(function(){return c})},function(c){return Promise.resolve(b()).then(function(){throw c;
})})}});
ax("Object.hasOwn",function(a){return a?a:function(b,c){return Object.prototype.hasOwnProperty.call(b,c)}});
var q8a=function(a){a=Math.trunc(a)||0;a<0&&(a+=this.length);if(!(a<0||a>=this.length))return this[a]};
ax("Array.prototype.at",function(a){return a?a:q8a});
var hx=function(a){return a?a:q8a};
ax("Int8Array.prototype.at",hx);ax("Uint8Array.prototype.at",hx);ax("Uint8ClampedArray.prototype.at",hx);ax("Int16Array.prototype.at",hx);ax("Uint16Array.prototype.at",hx);ax("Int32Array.prototype.at",hx);ax("Uint32Array.prototype.at",hx);ax("Float32Array.prototype.at",hx);ax("Float64Array.prototype.at",hx);ax("String.prototype.at",function(a){return a?a:q8a});
ax("Math.sign",function(a){return a?a:function(b){b=Number(b);return b===0||isNaN(b)?b:b>0?1:-1}});
ax("Array.prototype.flat",function(a){return a?a:function(b){b=b===void 0?1:b;var c=[];Array.prototype.forEach.call(this,function(d){Array.isArray(d)&&b>0?(d=Array.prototype.flat.call(d,b-1),c.push.apply(c,d)):c.push(d)});
return c}});
ax("String.raw",function(a){return a?a:function(b,c){if(b==null)throw new TypeError("w");for(var d=b.raw,e=d.length,g="",k=0;k<e;++k)g+=d[k],k+1<e&&k+1<arguments.length&&(g+=String(arguments[k+1]));return g}});
ax("Reflect.ownKeys",function(a){return a?a:function(b){var c=[],d=Object.getOwnPropertyNames(b);b=Object.getOwnPropertySymbols(b);for(var e=0;e<d.length;e++)(d[e].substring(0,14)=="jscomp_symbol_"?b:c).push(d[e]);return c.concat(b)}});
ax("Object.getOwnPropertyDescriptors",function(a){return a?a:function(b){for(var c={},d=Reflect.ownKeys(b),e=0;e<d.length;e++)c[d[e]]=Object.getOwnPropertyDescriptor(b,d[e]);return c}});
ax("WeakSet",function(a){if(function(){if(!a||!Object.seal)return!1;try{var c=Object.seal({}),d=Object.seal({}),e=new a([c]);if(!e.has(c)||e.has(d))return!1;e.delete(c);e.add(d);return!e.has(c)&&e.has(d)}catch(g){return!1}}())return a;
var b=function(c){this.JSC$6632_map_=new WeakMap;if(c){c=_.h(c);for(var d;!(d=c.next()).done;)this.add(d.value)}};
b.prototype.add=function(c){this.JSC$6632_map_.set(c,!0);return this};
b.prototype.has=function(c){return this.JSC$6632_map_.has(c)};
b.prototype.delete=function(c){return this.JSC$6632_map_.delete(c)};
return b});
ax("Promise.allSettled",function(a){function b(d){return{status:"fulfilled",value:d}}
function c(d){return{status:"rejected",reason:d}}
return a?a:function(d){var e=this;d=Array.from(d,function(g){return e.resolve(g).then(b,c)});
return e.all(d)}});
ax("Number.parseInt",function(a){return a||parseInt});
_._DumpException=window._DumpException||function(a){throw a;};
window._DumpException=_._DumpException;var r8a,ix,jx,kx,s8a,t8a,u8a,v8a,Oba,w8a;r8a=r8a||{};_.ja=this||self;_.Rj=function(a,b,c){a=a.split(".");c=c||_.ja;for(var d;a.length&&(d=a.shift());)a.length||b===void 0?c[d]&&c[d]!==Object.prototype[d]?c=c[d]:c=c[d]={}:c[d]=b};
ix=function(a){var b=_.Ji("WIZ_global_data.oxN3nb");a=b&&b[a];return a!=null?a:!1};
jx=_.ja._F_toggles||[];kx=function(){};
kx.get=function(){return null};
_.Ji=function(a,b){a=a.split(".");b=b||_.ja;for(var c=0;c<a.length;c++)if(b=b[a[c]],b==null)return null;return b};
_.lx=function(a){a.instance_=void 0;a.getInstance=function(){return a.instance_?a.instance_:a.instance_=new a}};
_.jba=function(a){var b=typeof a;return b!="object"?b:a?Array.isArray(a)?"array":b:"null"};
_.Sa=function(a){var b=_.jba(a);return b=="array"||b=="object"&&typeof a.length=="number"};
_.$a=function(a){var b=typeof a;return b=="object"&&a!=null||b=="function"};
_.ab=function(a){return Object.prototype.hasOwnProperty.call(a,s8a)&&a[s8a]||(a[s8a]=++t8a)};
s8a="closure_uid_"+(Math.random()*1E9>>>0);t8a=0;u8a=function(a,b,c){return a.call.apply(a.bind,arguments)};
v8a=function(a,b,c){if(!a)throw Error();if(arguments.length>2){var d=Array.prototype.slice.call(arguments,2);return function(){var e=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(e,d);return a.apply(b,e)}}return function(){return a.apply(b,arguments)}};
_.ug=function(a,b,c){_.ug=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?u8a:v8a;return _.ug.apply(null,arguments)};
_.vo=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var d=c.slice();d.push.apply(d,arguments);return a.apply(this,d)}};
_.mx=function(){return Date.now()};
Oba=function(a){return a};
_.nx=function(a,b){function c(){}
c.prototype=b.prototype;a.superClass_=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.base=function(d,e,g){for(var k=Array(arguments.length-2),m=2;m<arguments.length;m++)k[m-2]=arguments[m];return b.prototype[e].apply(d,k)}};
w8a=function(a){return a};_.U=function(a,b,c,d){var e=arguments.length,g=e<3?b:d===null?d=Object.getOwnPropertyDescriptor(b,c):d,k;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")g=Reflect.decorate(a,b,c,d);else for(var m=a.length-1;m>=0;m--)if(k=a[m])g=(e<3?k(g):e>3?k(b,c,g):k(b,c))||g;return e>3&&g&&Object.defineProperty(b,c,g),g};
_.W=function(a,b){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(a,b)};
_.Pr=function(a,b){if(b!==null&&b!==void 0){if(typeof b!=="object"&&typeof b!=="function")throw new TypeError("x");if(c===void 0){if(!Symbol.dispose)throw new TypeError("z");var c=b[Symbol.dispose]}if(typeof c!=="function")throw new TypeError("A");a.stack.push({value:b,dispose:c,async:!1})}return b};
_.Qr=function(a){function b(g){a.error=a.hasError?new SuppressedError(g,a.error,"An error was suppressed during disposal."):g;a.hasError=!0}
function c(){for(;d=a.stack.pop();)try{if(!d.async&&e===1)return e=0,a.stack.push(d),Promise.resolve().then(c);if(d.dispose){var g=d.dispose.call(d.value);if(d.async)return e|=2,Promise.resolve(g).then(c,function(k){b(k);return c()})}else e|=1}catch(k){b(k)}if(e===1)return a.hasError?Promise.reject(a.error):Promise.resolve();
if(a.hasError)throw a.error;}
var d,e=0;c()};_.nx(_.da,Error);_.da.prototype.name="CustomError";var x8a;var y8a=void 0,z8a,A8a=typeof TextDecoder!=="undefined",daa,caa=typeof String.prototype.isWellFormed==="function",baa=typeof TextEncoder!=="undefined";var B8a;_.rg=function(a){for(var b=[],c=0,d=0;d<a.length;d++){var e=a.charCodeAt(d);e<128?b[c++]=e:(e<2048?b[c++]=e>>6|192:((e&64512)==55296&&d+1<a.length&&(a.charCodeAt(d+1)&64512)==56320?(e=65536+((e&1023)<<10)+(a.charCodeAt(++d)&1023),b[c++]=e>>18|240,b[c++]=e>>12&63|128):b[c++]=e>>12|224,b[c++]=e>>6&63|128),b[c++]=e&63|128)}return b};
B8a=function(a){for(var b=[],c=0,d=0;c<a.length;){var e=a[c++];if(e<128)b[d++]=String.fromCharCode(e);else if(e>191&&e<224){var g=a[c++];b[d++]=String.fromCharCode((e&31)<<6|g&63)}else if(e>239&&e<365){g=a[c++];var k=a[c++],m=a[c++];e=((e&7)<<18|(g&63)<<12|(k&63)<<6|m&63)-65536;b[d++]=String.fromCharCode(55296+(e>>10));b[d++]=String.fromCharCode(56320+(e&1023))}else g=a[c++],k=a[c++],b[d++]=String.fromCharCode((e&15)<<12|(g&63)<<6|k&63)}return b.join("")};var C8a,D8a,E8a,F8a,G8a,H8a,I8a;_.ox=String.prototype.trim?function(a){return a.trim()}:function(a){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(a)[1]};
C8a=/&/g;D8a=/</g;E8a=/>/g;F8a=/"/g;G8a=/'/g;H8a=/\x00/g;I8a=/[\x00&<>"']/;var px=!!(jx[0]&2048),J8a=!!(jx[0]&4096),K8a=!!(jx[0]&2),L8a=!!(jx[0]&4),M8a=!!(jx[0]&16),N8a=!!(jx[0]&8192);var va=px?J8a:ix(610401301),O8a=px?K8a:ix(513659523),P8a=px?L8a:ix(568333945),YUa=px?M8a:ix(1331761403),Q8a=px?N8a:ix(1981196515);var wa,R8a=_.ja.navigator;wa=R8a?R8a.userAgentData||null:null;var Nk;_.Na=function(a,b){return Array.prototype.indexOf.call(a,b,void 0)};
_.Mi=function(a,b,c){Array.prototype.forEach.call(a,b,c)};
_.qx=function(a,b,c){return Array.prototype.filter.call(a,b,c)};
_.zf=function(a,b,c){return Array.prototype.map.call(a,b,c)};
Nk=function(a,b,c){return Array.prototype.some.call(a,b,c)};
_.MIa=function(a,b,c){return Array.prototype.every.call(a,b,c)};var rx=function(a){rx[" "](a);return a},Oga;
rx[" "]=function(){};
Oga=function(a,b){try{return rx(a[b]),!0}catch(c){}return!1};
_.Nja=function(a,b,c,d){d=d?d(b):b;return Object.prototype.hasOwnProperty.call(a,d)?a[d]:a[d]=c(b)};var S8a,T8a,U8a,W8a,X8a,BBa,Y8a,Z8a,$8a,b9a,c9a,d9a,i9a;_.k5a=function(){return _.ja.navigator||null};
S8a=gaa();_.sx=haa();_.Pj=xa("Edge");T8a=_.Pj||_.sx;_.tx=xa("Gecko")&&!(_.ta(_.ua(),"WebKit")&&!xa("Edge"))&&!(xa("Trident")||xa("MSIE"))&&!xa("Edge");_.ux=_.ta(_.ua(),"WebKit")&&!xa("Edge");U8a=_.ux&&xa("Mobile");_.V8a=_.qaa();W8a=_.raa();X8a=(Ha()?wa.platform==="Linux":xa("Linux"))||_.saa();BBa=_.oaa();Y8a=paa();Z8a=xa("iPad");$8a=xa("iPod");_.a9a=_.Ia();b9a=_.ta(_.ua(),"KaiOS");c9a=function(){var a=_.ja.document;return a?a.documentMode:void 0};
a:{var e9a="",f9a=function(){var a=_.ua();if(_.tx)return/rv:([^\);]+)(\)|;)/.exec(a);if(_.Pj)return/Edge\/([\d\.]+)/.exec(a);if(_.sx)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(_.ux)return/WebKit\/(\S+)/.exec(a);if(S8a)return/(?:Version)[ \/]?(\S+)/.exec(a)}();
f9a&&(e9a=f9a?f9a[1]:"");if(_.sx){var g9a=c9a();if(g9a!=null&&g9a>parseFloat(e9a)){d9a=String(g9a);break a}}d9a=e9a}_.h9a=d9a;if(_.ja.document&&_.sx){var j9a=c9a();i9a=j9a?j9a:parseInt(_.h9a,10)||void 0}else i9a=void 0;_.k9a=i9a;var Xoa,Yoa,l9a;_.vx=Ca();Xoa=paa()||xa("iPod");Yoa=xa("iPad");l9a=_.kaa();_.wx=_.Ea();_.Dj=_.jaa()&&!_.Ia();var m9a,xx,n9a,tfa,o9a,FHa,q9a,p9a;m9a={};xx=null;n9a=_.tx||_.ux;tfa=n9a||typeof _.ja.btoa=="function";o9a=n9a||!_.Dj&&typeof _.ja.atob=="function";_.wc=function(a,b){b===void 0&&(b=0);p9a();b=m9a[b];for(var c=Array(Math.floor(a.length/3)),d=b[64]||"",e=0,g=0;e<a.length-2;e+=3){var k=a[e],m=a[e+1],n=a[e+2],r=b[k>>2];k=b[(k&3)<<4|m>>4];m=b[(m&15)<<2|n>>6];n=b[n&63];c[g++]=r+k+m+n}r=0;n=d;switch(a.length-e){case 2:r=a[e+1],n=b[(r&15)<<2]||d;case 1:a=a[e],c[g]=b[a>>2]+b[(a&3)<<4|r>>4]+n+d}return c.join("")};
FHa=function(a){if(o9a)return _.ja.atob(a);var b="";q9a(a,function(c){b+=String.fromCharCode(c)});
return b};
_.C3a=function(a){var b=[];q9a(a,function(c){b.push(c)});
return b};
_.db=function(a){var b=a.length,c=b*3/4;c%3?c=Math.floor(c):_.ra("=.",a[b-1])&&(c=_.ra("=.",a[b-2])?c-2:c-1);var d=new Uint8Array(c),e=0;q9a(a,function(g){d[e++]=g});
return e!==c?d.subarray(0,e):d};
q9a=function(a,b){function c(n){for(;d<a.length;){var r=a.charAt(d++),t=xx[r];if(t!=null)return t;if(!_.qa(r))throw Error("E`"+r);}return n}
p9a();for(var d=0;;){var e=c(-1),g=c(0),k=c(64),m=c(64);if(m===64&&e===-1)break;b(e<<2|g>>4);k!=64&&(b(g<<4&240|k>>2),m!=64&&b(k<<6&192|m))}};
p9a=function(){if(!xx){xx={};for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],c=0;c<5;c++){var d=a.concat(b[c].split(""));m9a[c]=d;for(var e=0;e<d.length;e++){var g=d[e];xx[g]===void 0&&(xx[g]=e)}}}};var Saa=typeof Uint8Array!=="undefined",Gaa=!_.sx&&typeof btoa==="function",Haa=/[-_.]/g,Eaa={"-":"+",_:"/",".":"="},vb={};var ub,s9a;ub=function(a,b){if(b!==vb)throw Error("G");this.JSC$6663_value_=a;if(a!=null&&a.length===0)throw Error("F");};
_.wb=function(){return r9a||(r9a=new ub(null,vb))};
s9a=function(a){return new Uint8Array(tca(a)||0)};
ub.prototype.isEmpty=function(){return this.JSC$6663_value_==null};
ub.prototype.sizeBytes=function(){var a=tca(this);return a?a.length:0};
var tca=function(a){if(vb!==vb)throw Error("G");var b=a.JSC$6663_value_;b=b==null||Saa&&b!=null&&b instanceof Uint8Array?b:typeof b==="string"?Iaa(b):null;return b==null?b:a.JSC$6663_value_=b},r9a;var Kaa=void 0;var jb=typeof Symbol==="function"&&typeof Symbol()==="symbol",t9a=hb("jas",void 0,!0),Dba=hb(void 0,"0di"),Rc=hb(void 0,"1oa"),tc=hb(void 0,Symbol()),Qba=hb(void 0,"0ub"),dca=hb(void 0,"0actk"),qc=hb("m_m","messagePrototypeMarker",!0),Yba=hb(void 0,"vps");var Naa,Maa,hca,u9a;Naa={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};Maa=Object.defineProperties;_.lb=jb?t9a:"internalArrayState";u9a=[];ob(u9a,55);hca=Object.freeze(u9a);var rc={},Raa={},v9a=function(a,b,c){this.iterable=a;this.mapper=b;this.thisArg=c};
v9a.prototype.next=function(){var a=this.iterable.next();a.done||(a.value=this.mapper.call(this.thisArg,a.value));return a};
v9a.prototype[Symbol.iterator]=function(){return this};
var w9a=Object.freeze({}),Bb={};_.x9a=Hb(function(a){return a!==null&&a!==void 0});var Yaa=Hb(function(a){return typeof a==="number"}),Xaa=Hb(function(a){return typeof a==="string"}),$aa=Hb(function(a){return typeof a==="boolean"}),y9a=Hb(function(a){return a!=null&&typeof a==="object"&&typeof a.then==="function"}),pja=Hb(function(a){return typeof a==="function"}),lka=Hb(function(a){return!!a&&(typeof a==="object"||typeof a==="function")});var Zaa=typeof _.ja.BigInt==="function"&&typeof _.ja.BigInt(0)==="bigint";var vc=Hb(function(a){return Zaa?a>=z9a&&a<=A9a:a[0]==="-"?aba(a,B9a):aba(a,C9a)}),B9a=Number.MIN_SAFE_INTEGER.toString(),z9a=Zaa?BigInt(Number.MIN_SAFE_INTEGER):void 0,C9a=Number.MAX_SAFE_INTEGER.toString(),A9a=Zaa?BigInt(Number.MAX_SAFE_INTEGER):void 0;var D9a,bda;D9a=typeof Uint8Array.prototype.slice==="function";_.Jb=0;_.Kb=0;var dc,Vb,mba;dc=typeof BigInt==="function"?BigInt.asIntN:void 0;_.kc=typeof BigInt==="function"?BigInt.asUintN:void 0;_.ic=Number.isSafeInteger;Vb=Number.isFinite;_.jc=Math.trunc;mba=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var Zba={};var Mba={},E9a=function(){try{var a=function(){return $7a(Map,[],this.constructor)};
_.z(a,Map);rx(new a);return!1}catch(b){return!0}}(),yx=function(){this.JSC$6691_map_=new Map};
_.f=yx.prototype;_.f.get=function(a){return this.JSC$6691_map_.get(a)};
_.f.set=function(a,b){this.JSC$6691_map_.set(a,b);this.size=this.JSC$6691_map_.size;return this};
_.f.delete=function(a){a=this.JSC$6691_map_.delete(a);this.size=this.JSC$6691_map_.size;return a};
_.f.clear=function(){this.JSC$6691_map_.clear();this.size=this.JSC$6691_map_.size};
_.f.has=function(a){return this.JSC$6691_map_.has(a)};
_.f.entries=function(){return this.JSC$6691_map_.entries()};
_.f.keys=function(){return this.JSC$6691_map_.keys()};
_.f.values=function(){return this.JSC$6691_map_.values()};
_.f.forEach=function(a,b){return this.JSC$6691_map_.forEach(a,b)};
yx.prototype[Symbol.iterator]=function(){return this.entries()};
var xc=function(){if(E9a)return Object.setPrototypeOf(yx.prototype,Map.prototype),Object.defineProperties(yx.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),yx;var a=function(){return $7a(Map,[],this.constructor)};
_.z(a,Map);return a}(),sc=function(a,b,c,d){c=c===void 0?Hba:c;
d=d===void 0?Hba:d;var e=xc.call(this)||this;e.arrayState=a[_.lb]|0;e.valueCtor=b;e.keyToApi=c;e.valueToApi=e.valueCtor?Jba:d;for(var g=0;g<a.length;g++){var k=a[g],m=c(k[0],!1,!0),n=k[1];b?n===void 0&&(n=null):n=d(k[1],!1,!0,void 0,void 0,e.arrayState);xc.prototype.set.call(e,m,n)}return e};
_.z(sc,xc);var F9a=function(a){if(a.arrayState&2)throw Error("K");};
_.f=sc.prototype;_.f.clear=function(){F9a(this);xc.prototype.clear.call(this)};
_.f.delete=function(a){F9a(this);return xc.prototype.delete.call(this,this.keyToApi(a,!0,!1))};
_.f.entries=function(){if(this.valueCtor){var a=xc.prototype.keys.call(this);a=new v9a(a,Kba,this)}else a=xc.prototype.entries.call(this);return a};
_.f.values=function(){if(this.valueCtor){var a=xc.prototype.keys.call(this);a=new v9a(a,sc.prototype.get,this)}else a=xc.prototype.values.call(this);return a};
_.f.forEach=function(a,b){this.valueCtor?xc.prototype.forEach.call(this,function(c,d,e){a.call(b,e.get(d),d,e)}):xc.prototype.forEach.call(this,a,b)};
_.f.set=function(a,b){F9a(this);a=this.keyToApi(a,!0,!1);return a==null?this:b==null?(xc.prototype.delete.call(this,a),this):xc.prototype.set.call(this,a,this.valueToApi(b,!0,!0,this.valueCtor,!1,this.arrayState))};
_.f.has=function(a){return xc.prototype.has.call(this,this.keyToApi(a,!1,!1))};
_.f.get=function(a){a=this.keyToApi(a,!1,!1);var b=xc.prototype.get.call(this,a);if(b!==void 0){var c=this.valueCtor;return c?(c=this.valueToApi(b,!1,!0,c,this.callToMutableOnAccess,this.arrayState),c!==b&&xc.prototype.set.call(this,a,c),c):b}};
sc.prototype[Symbol.iterator]=function(){return this.entries()};
sc.prototype.toJSON=void 0;var Lba;var Tba=function(){},Rca=function(a,b){for(var c in a)!isNaN(c)&&b(a,+c,a[c])},Uba=function(a){var b=new Tba;
Rca(a,function(c,d,e){b[d]=Rb(e)});
b.reviveUnknownFields=a.reviveUnknownFields;return b};var Sba;var $ba,aca;var G9a,ll,ql,H9a,Fx,ol,I9a,J9a,K9a,L9a,Mx,Nx,Qx,Rx;G9a=_.Ib(0);_.Nc=function(a,b,c,d){if(b===-1)return null;var e=b+(c?0:-1),g=a.length-1;if(!(g<1+(c?0:-1))){if(e>=g){var k=a[g];if(k!=null&&typeof k==="object"&&k.constructor===Object){c=k[b];var m=!0}else if(e===g)c=k;else return}else c=a[e];if(d&&c!=null){d=d(c);if(d==null)return d;if(!Object.is(d,c))return m?k[b]=d:a[e]=d,d}return c}};
_.Zj=function(a,b,c,d){Ec(a);var e=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Gc(e,e[_.lb]|0,b,c,d);return a};
_.zx=function(a,b,c){a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return oca(a,a[_.lb]|0,b,c)!==void 0};
_.Ax=function(a,b,c,d){var e=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return oca(e,e[_.lb]|0,b,ql(a,d,c))!==void 0};
_.Bx=function(a,b){return _.Nc(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b,void 0,iba)};
_.Wf=function(a){return a===w9a?2:4};
_.Cx=function(a,b){a=_.Nc(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b,void 0,ica);return a==null?_.wb():a};
ll=function(a,b,c,d){Ec(a);var e=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,g=e[_.lb]|0;if(d==null){var k=lca(e);if(mca(k,e,g,c)===b)k.set(c,0);else return a}else g=nca(e,g,c,b);Gc(e,g,b,d);return a};
_.Dx=function(a,b,c,d){var e=a[_.lb]|0,g=Cb(e);e=nca(a,e,c,b,g);Gc(a,e,b,d,g)};
ql=function(a,b,c){return _.Ex(a,b)===c?c:-1};
_.Ex=function(a,b,c){a=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return mca(lca(a),a,void 0,b,c)};
H9a=function(a,b,c){var d=a[_.lb]|0,e=Cb(d),g=_.Nc(a,c,e);if(g!=null&&g[qc]===rc)return b=Iba(g),b!==g&&Gc(a,d,c,b,e),Dc(b),b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(g)){var k=g[_.lb]|0;if(k&2){var m=Bc(uc(g,k,Cc,!0,!0),b,!0);Oaa(m)}else k&64?m=g:m=Bc(m,b,!0)}else m=Bc(void 0,b,!0);m!==g&&Gc(a,d,c,m,e);return m};
_.Xj=function(a,b,c,d){var e=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,g=e[_.lb]|0;b=oca(e,g,b,c,d);if(b==null)return b;g=e[_.lb]|0;if(!sb(a,g)){var k=Iba(b);k!==b&&(Dc(a)&&(e=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,g=e[_.lb]|0),b=k,Gc(e,g,c,b,d))}return b};
_.Vf=function(a,b,c,d){var e=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return pca(a,e,e[_.lb]|0,b,c,d,!1,!0)};
_.pd=function(a,b,c,d){c=qca(c);_.Zj(a,b,c,d);return a};
_.qd=function(a,b,c,d){d=qca(d);ll(a,b,c,d);return a};
Fx=function(a,b,c){Ec(a);var d=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,e=d[_.lb]|0;if(c==null)return Gc(d,e,b),a;for(var g=c[_.lb]|0,k=g,m=Ic(g),n=m||Object.isFrozen(c),r=!0,t=!0,u=0;u<c.length;u++){var w=c[u];m||(w=sb(w),r&&(r=!w),t&&(t=w))}m||(g=r?13:5,g=t?g|16:g&-17);n&&g===k||(c=Rb(c),k=0,g=Hc(g,e),g=Kc(g,e,!0));g!==k&&ob(c,g);Gc(d,e,b,c);return a};
ol=function(a,b,c,d){sca(a,b,c,d);return a};
I9a=function(a,b,c){sca(a,b,Gx,void 0,c,1,!0);return a};
_.Hx=function(a,b){a=_.Nc(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b);a!=null&&(typeof a==="bigint"?vc(a)?a=Number(a):(a=dc(64,a),a=vc(a)?Number(a):String(a)):a=_.Wb(a)?typeof a==="number"?ec(a):cc(a):void 0);return a};
_.Ix=function(a,b){a=_.Nc(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b);a!=null&&(typeof a==="bigint"?a>=0&&vc(a)?a=Number(a):(a=(0,_.kc)(64,a),a=vc(a)?Number(a):String(a)):a=_.Wb(a)?typeof a==="number"?_.yba(a):_.zba(a):void 0);return a};
_.Jx=function(a,b){return lba(_.Nc(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b))};
_.Kx=function(a,b){return _.bc(_.Nc(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b))};
_.kg=function(a,b,c){return _.oc(_.Nc(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b,c))};
_.Lx=function(a,b){var c=c===void 0?!1:c;var d;return(d=_.Jx(a,b))!=null?d:c};
_.Xf=function(a,b,c){c=c===void 0?0:c;var d;return(d=_.Kx(a,b))!=null?d:c};
J9a=function(a,b){var c=c===void 0?0:c;var d;return(d=_.oba(_.Nc(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b)))!=null?d:c};
K9a=function(a,b){var c=c===void 0?0:c;var d;return(d=_.Hx(a,b))!=null?d:c};
L9a=function(a){var b=b===void 0?0:b;var c;return(c=_.Ix(a,23))!=null?c:b};
Mx=function(a,b,c){c=c===void 0?G9a:c;a=_.Nc(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b);b=typeof a;a=a==null?a:b==="bigint"?_.Ib(dc(64,a)):_.Wb(a)?b==="string"?qba(a):rba(a):void 0;return a!=null?a:c};
Nx=function(a,b){var c=c===void 0?0:c;var d;return(d=_.Bx(a,b))!=null?d:c};
_.Ox=function(a,b,c,d){c=c===void 0?"":c;var e;return(e=_.kg(a,b,d))!=null?e:c};
_.Px=function(a,b){var c=c===void 0?0:c;var d;return(d=_.Zb(_.Nc(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b)))!=null?d:c};
Qx=function(a,b){var c=c===void 0?"0":c;var d;return(d=Aba(_.Nc(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b),!0))!=null?d:c};
Rx=function(a,b,c){return _.Ox(a,ql(a,c,b))};
_.Sx=function(a,b,c,d){return _.Xj(a,b,ql(a,d,c),void 0)};
_.cg=function(a,b,c){return _.Zj(a,b,kba(c))};
_.Bn=function(a,b,c){return _.Qc(a,b,kba(c),!1)};
_.Tx=function(a,b,c){return _.Zj(a,b,_.ac(c))};
_.sl=function(a,b,c){return _.Zj(a,b,hc(c))};
_.sf=function(a,b,c){return _.Zj(a,b,mc(c))};
_.ew=function(a,b,c,d){return _.Qc(a,b,mc(c),"",d)};
_.Yj=function(a,b,c){return _.Zj(a,b,c==null?c:_.Xb(c))};
_.Ux=function(a,b,c){return _.Qc(a,b,c==null?c:_.Xb(c),0)};var M9a=function(a,b,c,d){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6706_start_=0;this.init(a,b,c,d)},Vx,O9a,P9a,R9a,Oca;
_.f=M9a.prototype;_.f.init=function(a,b,c,d){var e=d===void 0?{}:d;d=e.aliasBytesFields===void 0?!1:e.aliasBytesFields;e=e.treatNewDataAsImmutable===void 0?!1:e.treatNewDataAsImmutable;this.aliasBytesFields=d;this.treatNewDataAsImmutable=e;a&&(a=uca(a,this.treatNewDataAsImmutable),this.bytes_=a.buffer,this.bytesAreImmutable_=a.isImmutable,this.JSC$6706_start_=b||0,this.end_=c!==void 0?this.JSC$6706_start_+c:this.bytes_.length,this.cursor_=this.JSC$6706_start_)};
_.f.free=function(){this.clear();N9a.length<100&&N9a.push(this)};
_.f.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6706_start_=0;this.aliasBytesFields=!1};
_.f.reset=function(){this.cursor_=this.JSC$6706_start_};
_.f.atEnd=function(){return this.cursor_==this.end_};
_.Wx=function(a,b){var c=0,d=0,e=0,g=a.bytes_,k=a.cursor_;do{var m=g[k++];c|=(m&127)<<e;e+=7}while(e<32&&m&128);e>32&&(d|=(m&127)>>4);for(e=3;e<32&&m&128;e+=7)m=g[k++],d|=(m&127)<<e;Vx(a,k);if(m<128)return b(c>>>0,d>>>0);throw Error("Z");};
Vx=function(a,b){a.cursor_=b;if(b>a.end_)throw Error("$`"+b+"`"+a.end_);};
_.Xx=function(a){var b=a.bytes_,c=a.cursor_,d=b[c++],e=d&127;if(d&128&&(d=b[c++],e|=(d&127)<<7,d&128&&(d=b[c++],e|=(d&127)<<14,d&128&&(d=b[c++],e|=(d&127)<<21,d&128&&(d=b[c++],e|=d<<28,d&128&&b[c++]&128&&b[c++]&128&&b[c++]&128&&b[c++]&128&&b[c++]&128)))))throw Error("Z");Vx(a,c);return e};
_.Yx=function(a){var b=a.bytes_,c=a.cursor_,d=b[c],e=b[c+1],g=b[c+2];b=b[c+3];Vx(a,a.cursor_+4);return(d<<0|e<<8|g<<16|b<<24)>>>0};
O9a=function(a){var b=_.Yx(a);a=_.Yx(a);return dba(b,a)};
P9a=function(a){var b=_.Yx(a),c=_.Yx(a);a=(c>>31)*2+1;var d=c>>>20&2047;b=4294967296*(c&1048575)+b;return d==2047?b?NaN:a*Infinity:d==0?a*4.9E-324*b:a*Math.pow(2,d-1075)*(b+4503599627370496)};
_.Q9a=function(a){for(var b=0,c=a.cursor_,d=c+10,e=a.bytes_;c<d;){var g=e[c++];b|=g;if((g&128)===0)return Vx(a,c),!!(b&127)}throw Error("Z");};
R9a=function(a,b){if(b<0)throw Error("aa`"+b);var c=a.cursor_,d=c+b;if(d>a.end_)throw Error("$`"+(a.end_-c)+"`"+b);a.cursor_=d;return c};
Oca=function(a,b){if(b==0)return _.wb();var c=R9a(a,b);a.aliasBytesFields&&a.bytesAreImmutable_?c=a.bytes_.subarray(c,c+b):(a=a.bytes_,b=c+b,c=c===b?new Uint8Array(0):D9a?a.slice(c,b):new Uint8Array(a.subarray(c,b)));return c.length==0?_.wb():new ub(c,vb)};
M9a.prototype.getDataView=function(){var a=this.dataView_;a||(a=this.bytes_,a=this.dataView_=new DataView(a.buffer,a.byteOffset,a.byteLength));return a};
var N9a=[];var T9a=function(a,b,c,d){if(N9a.length){var e=N9a.pop();e.init(a,b,c,d);a=e}else a=new M9a(a,b,c,d);this.decoder_=a;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;S9a(this,d)},S9a=function(a,b){b=b===void 0?{}:b;
a.discardUnknownFields=b.discardUnknownFields===void 0?!1:b.discardUnknownFields},Sca=function(a,b,c,d){if(U9a.length){var e=U9a.pop();
S9a(e,d);e.decoder_.init(a,b,c,d);return e}return new T9a(a,b,c,d)},Lca,Nca,V9a,U9a;
T9a.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;U9a.length<100&&U9a.push(this)};
T9a.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
Lca=function(a){if(a.decoder_.atEnd())return!1;a.fieldCursor_=a.decoder_.cursor_;var b=_.Xx(a.decoder_)>>>0,c=b>>>3;b&=7;if(!(b>=0&&b<=5))throw Error("V`"+b+"`"+a.fieldCursor_);if(c<1)throw Error("W`"+c+"`"+a.fieldCursor_);a.nextField_=c;a.nextWireType_=b;return!0};
Nca=function(a){switch(a.nextWireType_){case 0:a.nextWireType_!=0?Nca(a):_.Q9a(a.decoder_);break;case 1:a=a.decoder_;Vx(a,a.cursor_+8);break;case 2:if(a.nextWireType_!=2)Nca(a);else{var b=_.Xx(a.decoder_)>>>0;a=a.decoder_;Vx(a,a.cursor_+b)}break;case 5:a=a.decoder_;Vx(a,a.cursor_+4);break;case 3:b=a.nextField_;do{if(!Lca(a))throw Error("X");if(a.nextWireType_==4){if(a.nextField_!=b)throw Error("Y");break}Nca(a)}while(1);break;default:throw Error("V`"+a.nextWireType_+"`"+a.fieldCursor_);}};
V9a=function(a,b,c){var d=a.decoder_.end_,e=_.Xx(a.decoder_)>>>0,g=a.decoder_.cursor_+e,k=g-d;k<=0&&(a.decoder_.end_=g,c(b,a,void 0,void 0,void 0),k=g-a.decoder_.cursor_);if(k)throw Error("U`"+e+"`"+(e-k));a.decoder_.cursor_=g;a.decoder_.end_=d};
_.W9a=function(a){var b=_.Xx(a.decoder_)>>>0;a=a.decoder_;var c=R9a(a,b);a=a.bytes_;if(A8a){var d=a,e;(e=z8a)||(e=z8a=new TextDecoder("utf-8",{fatal:!0}));b=c+b;d=c===0&&b===d.length?d:d.subarray(c,b);try{var g=e.decode(d)}catch(r){if(y8a===void 0){try{e.decode(new Uint8Array([128]))}catch(t){}try{e.decode(new Uint8Array([97])),y8a=!0}catch(t){y8a=!1}}!y8a&&(z8a=void 0);throw r;}}else{g=c;b=g+b;c=[];for(var k=null,m,n;g<b;)m=a[g++],m<128?c.push(m):m<224?g>=b?ha():(n=a[g++],m<194||ea(n)?(g--,ha()):
c.push((m&31)<<6|n&63)):m<240?g>=b-1?ha():(n=a[g++],ea(n)||m===224&&n<160||m===237&&n>=160||ea(e=a[g++])?(g--,ha()):c.push((m&15)<<12|(n&63)<<6|e&63)):m<=244?g>=b-2?ha():(n=a[g++],ea(n)||(m<<28)+(n-144)>>30!==0||ea(e=a[g++])||ea(d=a[g++])?(g--,ha()):(m=(m&7)<<18|(n&63)<<12|(e&63)<<6|d&63,m-=65536,c.push((m>>10&1023)+55296,(m&1023)+56320))):ha(),c.length>=8192&&(k=aaa(k,c),c.length=0);g=aaa(k,c)}return g};
_.X9a=function(a){var b=_.Xx(a.decoder_)>>>0;return Oca(a.decoder_,b)};
_.Y9a=function(a,b,c){var d=_.Xx(a.decoder_)>>>0;for(d=a.decoder_.cursor_+d;a.decoder_.cursor_<d;)c.push(b(a.decoder_))};
U9a=[];_.Xc=function(a,b,c){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,b,c,3)};
_.Xc.prototype.toJSON=function(){return zc(this)};
_.Xc.prototype.serialize=function(a){return JSON.stringify(zc(this,a))};
var tda=function(a,b){if(b==null||b=="")return new a;b=JSON.parse(b);if(!Array.isArray(b))throw Error("ca");return new a(Qaa(b))};
_.Xc.prototype.getExtension=function(a){Rba(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return a.ctor?a.isRepeated?a.getExtensionFn(this,a.ctor,175237375,_.Wf(),a.JSC$6717_hasMessageId):a.getExtensionFn(this,a.ctor,175237375,a.JSC$6717_hasMessageId):a.isRepeated?a.getExtensionFn(this,175237375,_.Wf(),a.JSC$6717_hasMessageId):a.getExtensionFn(this,175237375,a.defaultValue,a.JSC$6717_hasMessageId)};
_.Xc.prototype.clone=function(){var a=this,b=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;a=new a.constructor(uc(b,b[_.lb]|0,Cc,!0,!0));Oaa(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return a};
_.Xc.prototype.isImmutable=function(){return sb(this)};
_.Xc.prototype[qc]=rc;_.Xc.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var Z9a=function(a,b){this.JSC$6719_lo=a>>>0;this.JSC$6719_hi=b>>>0},a$a=function(a){if(!a)return $9a||($9a=new Z9a(0,0));
if(!/^\d+$/.test(a))return null;hba(a);return new Z9a(_.Jb,_.Kb)},$9a,fda=function(a,b){this.JSC$6721_lo=a>>>0;
this.JSC$6721_hi=b>>>0},dda=function(a){if(!a)return b$a||(b$a=new fda(0,0));
if(!/^-?\d+$/.test(a))return null;hba(a);return new fda(_.Jb,_.Kb)},b$a;var c$a=function(){this.JSC$6723_buffer_=[]},eda,d$a;
c$a.prototype.length=function(){return this.JSC$6723_buffer_.length};
c$a.prototype.end=function(){var a=this.JSC$6723_buffer_;this.JSC$6723_buffer_=[];return a};
eda=function(a,b,c){for(;c>0||b>127;)a.JSC$6723_buffer_.push(b&127|128),b=(b>>>7|c<<25)>>>0,c>>>=7;a.JSC$6723_buffer_.push(b)};
d$a=function(a,b){for(;b>127;)a.JSC$6723_buffer_.push(b&127|128),b>>>=7;a.JSC$6723_buffer_.push(b)};
_.gda=function(a,b){if(b>=0)d$a(a,b);else{for(var c=0;c<9;c++)a.JSC$6723_buffer_.push(b&127|128),b>>=7;a.JSC$6723_buffer_.push(1)}};
_.cd=function(a,b){a.JSC$6723_buffer_.push(b>>>0&255);a.JSC$6723_buffer_.push(b>>>8&255);a.JSC$6723_buffer_.push(b>>>16&255);a.JSC$6723_buffer_.push(b>>>24&255)};var e$a,Zc,ida,lda;e$a=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new c$a};
Zc=function(a,b){b.length!==0&&(a.blocks_.push(b),a.totalLength_+=b.length)};
_.yca=function(a,b){_.bd(a,b,2);b=a.encoder_.end();Zc(a,b);b.push(a.totalLength_);return b};
_.zca=function(a,b){var c=b.pop();for(c=a.totalLength_+a.encoder_.length()-c;c>127;)b.push(c&127|128),c>>>=7,a.totalLength_++;b.push(c);a.totalLength_++};
_.bd=function(a,b,c){d$a(a.encoder_,b*8+c)};
ida=function(a,b,c){if(c!=null){switch(typeof c){case "string":a$a(c)}_.bd(a,b,1);switch(typeof c){case "number":a=a.encoder_;bba(c);_.cd(a,_.Jb);_.cd(a,_.Kb);break;case "bigint":c=BigInt.asUintN(64,c);c=new Z9a(Number(c&BigInt(4294967295)),Number(c>>BigInt(32)));a=a.encoder_;b=c.JSC$6719_hi;_.cd(a,c.JSC$6719_lo);_.cd(a,b);break;default:c=a$a(c),a=a.encoder_,b=c.JSC$6719_hi,_.cd(a,c.JSC$6719_lo),_.cd(a,b)}}};
lda=function(a,b,c){_.bd(a,b,2);d$a(a.encoder_,c.length);Zc(a,a.encoder_.end());Zc(a,c)};var vca,h$a,j$a;vca=_.Sc();_.f$a=_.Sc();_.g$a=_.Sc();h$a=_.Sc();_.Zx=_.Sc();_.i$a=_.Sc();j$a=_.Sc();_.k$a=_.Sc();_.l$a=_.Sc();var Tc=function(a,b,c){this.$$binaryReaderFn=a;this.$$binaryWriterFn=b;a=Oba(vca);this.$$isMsg=!!a&&c===a||!1},Dca=wca(function(a,b,c,d,e){if(a.nextWireType_!==2)return!1;
V9a(a,H9a(b,d,c),e);return!0},Aca),Eca=wca(function(a,b,c,d,e){if(a.nextWireType_!==2)return!1;
V9a(a,H9a(b,d,c),e);return!0},Aca),Uca=Symbol(),Hca=Symbol(),Kca=Symbol(),Xca=Symbol(),Pca=Symbol(),Bca,Cca;var qda,m$a,n$a,o$a,p$a,q$a,r$a,s$a,t$a,u$a,v$a,x$a,y$a,A$a,B$a;qda=function(a,b){var c=new e$a;Yca(a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c,Wc(Uca,Tca,Vca,b));Zc(c,c.encoder_.end());a=new Uint8Array(c.totalLength_);b=c.blocks_;for(var d=b.length,e=0,g=0;g<d;g++){var k=b[g];a.set(k,e);e+=k.length}c.blocks_=[a];return a};
m$a=_.$c(function(a,b,c){if(a.nextWireType_!==1)return!1;_.ad(b,c,P9a(a.decoder_));return!0},cda,j$a);
n$a=_.$c(function(a,b,c,d){if(a.nextWireType_!==1)return!1;_.Dx(b,c,d,P9a(a.decoder_));return!0},cda,j$a);
o$a=_.$c(function(a,b,c,d){if(a.nextWireType_!==5)return!1;var e=_.Yx(a.decoder_);a=(e>>31)*2+1;var g=e>>>23&255;e&=8388607;_.Dx(b,c,d,g==255?e?NaN:a*Infinity:g==0?a*1.401298464324817E-45*e:a*Math.pow(2,g-150)*(e+8388608));return!0},function(a,b,c){b=iba(b);
b!=null&&(_.bd(a,c,5),a=a.encoder_,c=bda||(bda=new DataView(new ArrayBuffer(8))),c.setFloat32(0,+b,!0),_.Kb=0,_.Jb=c.getUint32(0,!0),_.cd(a,_.Jb))},_.Sc());
_.$x=_.$c(function(a,b,c){if(a.nextWireType_!==0)return!1;_.ad(b,c,_.Wx(a.decoder_,eba));return!0},_.ed,_.Zx);
p$a=_.$c(function(a,b,c){if(a.nextWireType_!==0)return!1;a=_.Wx(a.decoder_,eba);_.ad(b,c,a===0?void 0:a);return!0},_.ed,_.Zx);
q$a=_.$c(function(a,b,c,d){if(a.nextWireType_!==0)return!1;_.Dx(b,c,d,_.Wx(a.decoder_,eba));return!0},_.ed,_.Zx);
_.ay=_.$c(function(a,b,c){if(a.nextWireType_!==0)return!1;_.ad(b,c,_.Xx(a.decoder_));return!0},hda,h$a);
r$a=_.$c(function(a,b,c){if(a.nextWireType_!==0)return!1;a=_.Xx(a.decoder_);_.ad(b,c,a===0?void 0:a);return!0},hda,h$a);
s$a=_.$c(function(a,b,c,d){if(a.nextWireType_!==0)return!1;_.Dx(b,c,d,_.Xx(a.decoder_));return!0},hda,h$a);
t$a=_.$c(function(a,b,c){if(a.nextWireType_!==1)return!1;_.ad(b,c,O9a(a.decoder_));return!0},_.jda,_.i$a);
u$a=_.ada(function(a,b,c){if(a.nextWireType_!==1&&a.nextWireType_!==2)return!1;b=_.kca(b,b[_.lb]|0,c);a.nextWireType_==2?_.Y9a(a,O9a,b):b.push(O9a(a.decoder_));return!0},function(a,b,c){b=_.$ca(Cba,b,!1);
if(b!=null)for(var d=0;d<b.length;d++)ida(a,c,b[d])},_.i$a);
_.by=_.$c(function(a,b,c){if(a.nextWireType_!==0)return!1;_.ad(b,c,_.Q9a(a.decoder_));return!0},_.kda,_.f$a);
v$a=_.$c(function(a,b,c,d){if(a.nextWireType_!==0)return!1;_.Dx(b,c,d,_.Q9a(a.decoder_));return!0},_.kda,_.f$a);
_.cy=_.$c(function(a,b,c){if(a.nextWireType_!==2)return!1;_.ad(b,c,_.W9a(a));return!0},_.mda,_.g$a);
_.w$a=_.$c(function(a,b,c,d){if(a.nextWireType_!==2)return!1;_.Dx(b,c,d,_.W9a(a));return!0},_.mda,_.g$a);
x$a=_.ada(function(a,b,c){if(a.nextWireType_!==2)return!1;a=_.W9a(a);_.kca(b,b[_.lb]|0,c).push(a);return!0},function(a,b,c){b=_.$ca(_.oc,b,!0);
if(b!=null)for(var d=0;d<b.length;d++){var e=a,g=c,k=b[d];k!=null&&lda(e,g,eaa(k))}},_.g$a);
y$a=void 0;y$a=y$a===void 0?vca:y$a;_.ey=new Tc(function(a,b,c,d,e){if(a.nextWireType_!==2)return!1;d=Bc(void 0,d,!0);_.kca(b,b[_.lb]|0,c).push(d);V9a(a,d,e);return!0},function(a,b,c,d,e){if(Array.isArray(b))for(var g=0;g<b.length;g++)nda(a,b[g],c,d,e)},y$a);
_.fy=wca(function(a,b,c,d,e,g){if(a.nextWireType_!==2)return!1;var k=b[_.lb]|0;nca(b,k,g,c,Cb(k));b=H9a(b,d,c);V9a(a,b,e);return!0},nda);
_.z$a=_.$c(function(a,b,c){if(a.nextWireType_!==2)return!1;_.ad(b,c,_.X9a(a));return!0},_.oda,_.k$a);
A$a=_.$c(function(a,b,c,d){if(a.nextWireType_!==2)return!1;_.Dx(b,c,d,_.X9a(a));return!0},_.oda,_.k$a);
B$a=_.$c(function(a,b,c,d){if(a.nextWireType_!==0)return!1;_.Dx(b,c,d,_.Xx(a.decoder_)>>>0);return!0},function(a,b,c){b=_.oba(b);
b!=null&&b!=null&&(_.bd(a,c,0),d$a(a.encoder_,b))},_.Sc());
_.gy=_.$c(function(a,b,c){if(a.nextWireType_!==0)return!1;_.ad(b,c,_.Xx(a.decoder_));return!0},_.pda,_.l$a);var E$a=function(){var a=C$a;this.ctor=D$a;this.isRepeated=0;this.getExtensionFn=_.Xj;this.defaultValue=void 0;this.JSC$6717_hasMessageId=a.messageId!=null?Bb:void 0};
E$a.prototype.register=function(){rx(this)};var F$a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(F$a,_.Xc);var G$a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(G$a,_.Xc);var wda=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(wda,_.Xc);var H$a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(H$a,_.Xc);var I$a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(I$a,_.Xc);var J$a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(J$a,_.Xc);var K$a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(K$a,_.Xc);K$a.prototype.getData=function(){return _.Cx(this,2)};var L$a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(L$a,_.Xc);var M$a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(M$a,_.Xc);M$a.prototype.getStyle=function(){return _.Xj(this,F$a,1)};var md=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(md,_.Xc);md.prototype.getPayloadCase=function(){return _.Ex(this,rd)};
md.prototype.getStyle=function(){return _.Sx(this,M$a,6,rd)};
var N$a=function(){var a=new md,b=new I$a;return _.qd(a,7,rd,b)},O$a=function(){var a=new md,b=new J$a;
return _.qd(a,8,rd,b)},rd=[1,
2,3,4,5,6,7,8];var P$a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(P$a,_.Xc);var Q$a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(Q$a,_.Xc);var R$a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(R$a,_.Xc);var S$a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(S$a,_.Xc);var T$a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(T$a,_.Xc);var U$a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(U$a,_.Xc);var V$a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(V$a,_.Xc);var W$a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(W$a,_.Xc);W$a.prototype.getData=function(){return _.Cx(this,2)};var X$a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(X$a,_.Xc);var vda=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(vda,_.Xc);vda.prototype.getPayloadCase=function(){return _.Ex(this,hy)};
var hy=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var iy=function(a,b){a=Error.call(this,a);this.message=a.message;"stack"in a&&(this.stack=a.stack);this.code=b===void 0?2:b};
_.z(iy,Error);var Y$a=Promise;var Z$a=function(a){this.channelPromise=a};
Z$a.prototype.send=function(a,b,c){this.channelPromise.then(function(d){d.send(a,b,c)})};var $$a=function(a,b){this.data=a;this.channel=b};
$$a.prototype.reply=function(a,b,c){this.channel.send(a,b,c)};var aab=function(a){this.JSC$6795_port_=a};
aab.prototype.send=function(a,b,c){c=c===void 0?[]:c;var d=new MessageChannel;bab(d.port1,b);this.JSC$6795_port_.postMessage(a,[d.port2].concat(c))};
var cab=function(a,b){bab(a,b);return new aab(a)},bab=function(a,b){b&&(a.onmessage=function(c){b(new $$a(c.data,cab(c.ports[0])))})};var dab=function(a){this.verifier_=a},eab=function(a){var b=Object.create(null);
(typeof a==="string"?[a]:a).forEach(function(c){if(c==="null")throw Error("ea");b[c]=!0});
return function(c){return b[c]===!0}};_.fab=function(){if(!_.ja.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}});
try{var c=function(){};
_.ja.addEventListener("test",c,b);_.ja.removeEventListener("test",c,b)}catch(d){}return a}();var gab;_.jy=function(a){var b=a.destination;var c=a.iframe;var d=a.origin;var e=a.channelName===void 0?"ZNWN1d":a.channelName;var g=a.onMessage===void 0?void 0:a.onMessage;a=a.onEstablished===void 0?void 0:a.onEstablished;return gab({destination:b,getSource:function(){return c.contentWindow},
originVerifier:d instanceof dab?d:typeof d==="function"?new dab(d):new dab(eab(d)),channelName:e,onMessage:g,onEstablished:a})};
gab=function(a){var b=a.destination;var c=a.getSource;var d=a.originVerifier;var e=a.token===void 0?void 0:a.token;var g=a.channelName;var k=a.onMessage===void 0?void 0:a.onMessage;var m=a.onEstablished===void 0?void 0:a.onEstablished;return new Z$a(new Y$a(function(n,r){var t=function(u){u.source&&u.source===c()&&d.verifier_(u.origin)&&(u.data.n||u.data)===g&&(b.removeEventListener("message",t,!1),e&&u.data.t!==e?r(Error("fa`"+g+"`"+e+"`"+u.data.t)):(n(cab(u.ports[0],k)),m&&m(u)))};
b.addEventListener("message",t,!1)}))};var hab=function(a){try{a()}catch(b){ka(b)}};var jab=function(a){var b=this;var c=a.getMessageType;var d=a.onUnregisteredMessage===void 0?function(){}:a.onUnregisteredMessage;
var e=a.onBeforeRegisteredMessage===void 0?function(){}:a.onBeforeRegisteredMessage;
a=a.onAfterRegisteredMessage===void 0?function(){}:a.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=c;this.onUnregisteredMessage_=d;this.onBeforeRegisteredMessage_=e;this.onAfterRegisteredMessage_=a;this.onMessage=function(g){return iab(b,g)}};
jab.prototype.register=function(a,b){this.registry_.set(a,b);return this};
var iab=function(a,b){var c=a.getMessageType_(b.data),d=a.registry_.get(c);d?(hab(function(){return a.onBeforeRegisteredMessage_(b,c)}),hab(function(){return d(b)}),hab(function(){return a.onAfterRegisteredMessage_(b,c)})):hab(function(){return a.onUnregisteredMessage_(b,c)})};var kab=function(a){this.JSC$6812_channel_=a},mab,nab;
kab.prototype.send=function(a,b,c){this.JSC$6812_channel_.send(zc(a),b,c)};
_.lab=function(a,b){return function(c){var d=new a(c.data);return b(new $$a(d,c.channel))}};
mab=function(a){return function(b){return a(new $$a(b.data,new kab(b.channel)))}};
nab=function(a,b){return mab(_.lab(a,b))};var oab=function(a,b,c,d){this.registry=a;this.delegate=b;this.receiveMessageConstructor=c;this.createInitMessage=d;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},uda=function(a){var b=new jab({getMessageType:a.getPayloadCase});
return new oab(b,new kab(_.jy({iframe:a.child,destination:window,origin:a.origin,channelName:a.channelName,onMessage:nab(a.receiveMessageConstructor,b.onMessage)})),a.receiveMessageConstructor,a.createInitMessage)},pab=function(a,b){a.createInitMessage=b};
oab.prototype.send=function(a){if(!this.initialised)throw new iy("Attempted to send a message before initialisation.");this.delegate.send(a)};
var qab=function(a,b){return _.l(function(c){if(!a.initialised)throw new iy("Attempted to send a message before initialisation.");return c.return(new Promise(function(d){a.delegate.send(b,nab(a.receiveMessageConstructor,d))}))})};
oab.prototype.init=function(){var a=this;return _.l(function(b){if(a.initialised)throw new iy("Attempted to initialise twice. The SDK can only be initialised once.");if(a.createInitMessage!==void 0){var c=a.delegate,d=c.send,e=a.createInitMessage;var g=new G$a;var k=[].concat(_.Be(a.features));g=_.Oc(g,1,k,_.Xb);d.call(c,e.call(a,g))}a.initialised=!0;_.se(b)})};
var ky=function(a,b){if(a.initialised)throw new iy("Attempted to use a new API after initialisation. All APIs must be set up before initialising the SDK.");a.features.add(b);return a.registry};
_.Vm.Object.defineProperties(oab.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var rab=function(a){this.channel=a;this.registered=!1};
rab.prototype.update=function(a){if(this.channel.isInitialised){if(!this.registered)throw new iy("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var b=new md;var c=new H$a;c=_.cg(c,1,a);b=_.qd(b,2,rd,c);this.channel.send(b)}else this.register();this.JSC$6826_audioEnabled=a};
rab.prototype.register=function(){ky(this.channel,1);this.registered=!0};
rab.prototype.isAudioEnabled=function(){return this.JSC$6826_audioEnabled};var sab=function(a){this.channel=a};
_.f=sab.prototype;_.f.onFirstFrameReady=function(a){ky(this.channel,2).register(11,function(b){b=_.Sx(b.data,P$a,11,hy);if(!b)throw new iy("Unexpectedly nonexistent GameFirstFrameReadyEvent");a(_.Ox(b,1))})};
_.f.onReady=function(a){ky(this.channel,2).register(4,function(b){b=_.Sx(b.data,R$a,4,hy);if(!b)throw new iy("Unexpectedly nonexistent GameReadyEvent");a(_.Ox(b,1))})};
_.f.onLevelComplete=function(a){ky(this.channel,2).register(5,function(b){b=_.Sx(b.data,S$a,5,hy);if(!b)throw new iy("Unexpectedly nonexistent LevelCompleteEvent");a(_.Ox(b,1),_.Xf(b,2))})};
_.f.onGameOver=function(a){ky(this.channel,2).register(6,function(b){b=_.Sx(b.data,Q$a,6,hy);if(!b)throw new iy("Unexpectedly nonexistent GameOverEvent");a(_.Ox(b,1))})};
_.f.pause=function(){var a=this;if(!this.channel.isInitialised)return ky(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new iy("Using unregistered Game Feature: pause.");var b=N$a();return new Promise(function(c){return _.l(function(d){if(d.nextAddress==1)return _.p(d,qab(a.channel,b),2);c();_.se(d)})})};
_.f.resume=function(){var a=this;if(!this.channel.isInitialised)return ky(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new iy("Using unregistered Game Feature: resume.");var b=O$a();return new Promise(function(c){return _.l(function(d){if(d.nextAddress==1)return _.p(d,qab(a.channel,b),2);c();_.se(d)})})};var tab=function(a){this.channel=a};
tab.prototype.onReady=function(a){ky(this.channel,5).register(8,function(b){if(!_.Sx(b.data,T$a,8,hy))throw new iy("Unexpectedly nonexistent PageReadyEvent");a()})};var uab=function(a){this.channel=a};
uab.prototype.onChange=function(a){ky(this.channel,3).register(7,function(b){b=_.Sx(b.data,U$a,7,hy);if(!b)throw new iy("Unexpectedly nonexistent ScoreEvent");a(_.Ox(b,1),_.Xf(b,2))})};var vab={load:function(){throw new iy("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new iy("Storage used, but storage.onSave() listener not set!");}},wab=function(a){this.channel=a;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},xab=function(a){ky(a.channel,4).register(2,vab.load).register(3,vab.save);
a.initialSetupDone=!0};
wab.prototype.onLoad=function(a){this.initialSetupDone||xab(this);this.loadRegistered||(this.loadRegistered=!0,ky(this.channel,4).register(2,function(b){var c,d,e;return _.l(function(g){if(g.nextAddress==1){c=_.Sx(b.data,V$a,2,hy);if(!c)throw new iy("Unexpectedly nonexistent StorageLoad");d=_.Ox(c,1);return _.p(g,a(d),2)}e=g.yieldResult;var k=b.reply,m=new md;var n=new K$a;n=_.sf(n,1,d);n=_.Zj(n,2,_.yb(e,!1));m=_.qd(m,3,rd,n);k.call(b,m);_.se(g)})}))};
wab.prototype.onSave=function(a){this.initialSetupDone||xab(this);this.saveRegistered||(this.saveRegistered=!0,ky(this.channel,4).register(3,function(b){var c,d,e;return _.l(function(g){if(g.nextAddress==1){c=_.Sx(b.data,W$a,3,hy);if(!c)throw new iy("Unexpectedly nonexistent StorageSave");d=_.Ox(c,1);e=s9a(c.getData());return _.p(g,a(d,e),2)}var k=b.reply,m=new md;var n=new L$a;n=_.sf(n,1,d);m=_.qd(m,4,rd,n);k.call(b,m);_.se(g)})}))};var yab=function(a){this.channel=a};
yab.prototype.update=function(a){if(!this.channel.features.has(6))throw new iy("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var b=new md,c=new M$a;a=_.pd(c,1,a);b=_.qd(b,6,rd,a);this.channel.send(b)};
yab.prototype.register=function(){ky(this.channel,6)};var zab=function(a){this.channel=a;this.userActivityLoggingIntervalMs=0};
zab.prototype.onUserActivity=function(a,b){this.userActivityLoggingIntervalMs=b;ky(this.channel,7).register(9,function(c){if(!_.Sx(c.data,X$a,9,hy))throw new iy("Unexpectedly nonexistent ClickEvent");a()})};var Aab=function(a){var b=this;this.channel=a;this.init=this.channel.init.bind(this.channel);this.page=new tab(this.channel);this.game=new sab(this.channel);this.audio=new rab(this.channel);this.score=new uab(this.channel);this.storage=new wab(this.channel);this.style=new yab(this.channel);this.userActivity=new zab(this.channel);pab(this.channel,function(c){var d=new wda;c=_.pd(d,1,c);c=_.Tx(c,3,b.userActivity.userActivityLoggingIntervalMs);d=b.audio.isAudioEnabled();d!==void 0&&_.cg(c,2,d);d=new md;
return _.qd(d,5,rd,c)})};var Bab=function(){this.timedFunctionContext=0};
Bab.prototype.timeExecution=function(a,b){var c=this;return function(){var d=_.Id.apply(0,arguments);c.timedFunctionContext=a;return b.apply(null,_.Be(d))}};var Cab=function(){var a={};this.priorityTasks=(a[3]=[],a[2]=[],a[1]=[],a);this.isFlushing=!1},kf=function(a,b,c){var d=Dab(a,c);
a.priorityTasks[c].push(b);d&&a.priorityTasks[c].length===1&&a.flush()},Dab=function(a,b){return Object.keys(a.priorityTasks).map(function(c){return Number(c)}).filter(function(c){return!isNaN(c)&&c>b}).every(function(c){return a.priorityTasks[c].length===0})};
Cab.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(a){return a.length>0});)Eab(this,3),Eab(this,2),Eab(this,1)}catch(a){throw Object.values(this.priorityTasks).forEach(function(b){return void b.splice(0,b.length)}),a;
}finally{this.isFlushing=!1}}};
var Eab=function(a,b){for(;Dab(a,b)&&a.priorityTasks[b].length>0;)a.priorityTasks[b][0](),a.priorityTasks[b].shift()};
_.Vm.Object.defineProperties(Cab.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(a){return a.length>0})}}});var Dda={};var Fab=globalThis.trustedTypes,yda=Fab,Ada;var ud=function(a){this.privateDoNotAccessOrElseWrappedResourceUrl=a};
ud.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var Gab=_.cx([""]),Hab=e8a(["\x00"],["\\0"]),Iab=e8a(["\n"],["\\n"]),Jab=e8a(["\x00"],["\\u0000"]);Cda(function(a){return a(Gab)})||Cda(function(a){return a(Hab)})||Cda(function(a){return a(Iab)})||Cda(function(a){return a(Jab)});var Fd;_.yd=function(a,b){this.privateDoNotAccessOrElseWrappedUrl=b};
_.yd.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.Kab=Ad("about:blank");Fd=Ad("about:invalid#zClosurez");var Eda=function(a){this.isValid=a},Lab=new Eda(function(a){return/^[^:]*([/?#]|$)/.test(a)}),Mab=Dd("data"),Nab=Dd("http"),Oab=Dd("https"),Pab=Dd("ftp"),Qab=Dd("mailto"),Rab=Dd("intent"),Sab=Dd("vnd.youtube"),Fda=[Mab,
Nab,Oab,Qab,Pab,Lab],Gda=td(function(){return typeof URL==="function"}),Uab=["data:",
"http:","https:","mailto:","ftp:"],Ida=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var Md=function(a){this.privateDoNotAccessOrElseWrappedHtml=a};
Md.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var Kja=td(function(){return new Md(Fab?Fab.emptyHTML:"")});var Vab={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"},Kda=function(a,b){var c=Error.call(this,a+" cannot be used with intent "+Vab[b]);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.type=a;this.intent=b;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.z(Kda,Error);_.Td=function(a){this.privateDoNotAccessOrElseWrappedScript=a};
_.Td.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var Oda=function(a){this.privateDoNotAccessOrElseWrappedAttributePrefix=a};
Oda.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var Pda="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var Uta=function(a){var b=_.Ji("window.location.href");a==null&&(a='Unknown Error of type "null/undefined"');if(typeof a==="string")return{message:a,name:"Unknown error",lineNumber:"Not available",fileName:b,stack:"Not available"};var c=!1;try{var d=a.lineNumber||a.line||"Not available"}catch(k){d="Not available",c=!0}try{var e=a.fileName||a.filename||a.sourceURL||_.ja.$googDebugFname||b}catch(k){e="Not available",c=!0}b=Wab(a);if(!(!c&&a.lineNumber&&a.fileName&&a.stack&&a.message&&a.name)){c=a.message;
if(c==null){if(a.constructor&&a.constructor instanceof Function){if(a.constructor.name)c=a.constructor.name;else if(c=a.constructor,ly[c])c=ly[c];else{c=String(c);if(!ly[c]){var g=/function\s+([^\(]+)/m.exec(c);ly[c]=g?g[1]:"[Anonymous]"}c=ly[c]}c='Unknown Error of type "'+c+'"'}else c="Unknown Error of unknown type";typeof a.toString==="function"&&Object.prototype.toString!==a.toString&&(c+=": "+a.toString())}return{message:c,name:a.name||"UnknownError",lineNumber:d,fileName:e,stack:b||"Not available"}}return{message:a.message,
name:a.name,lineNumber:a.lineNumber,fileName:a.fileName,stack:b}},Wab=function(a,b){b||(b={});
b[Xab(a)]=!0;var c=a.stack||"",d=a.cause;d&&!b[Xab(d)]&&(c+="\nCaused by: ",d.stack&&d.stack.indexOf(d.toString())==0||(c+=typeof d==="string"?d:d.message+"\n"),c+=Wab(d,b));a=a.errors;if(Array.isArray(a)){d=1;var e;for(e=0;e<a.length&&!(d>4);e++)b[Xab(a[e])]||(c+="\nInner error "+d++ +": ",a[e].stack&&a[e].stack.indexOf(a[e].toString())==0||(c+=typeof a[e]==="string"?a[e]:a[e].message+"\n"),c+=Wab(a[e],b));e<a.length&&(c+="\n... "+(a.length-e)+" more inner errors")}return c},Xab=function(a){var b=
"";
typeof a.toString==="function"&&(b=""+a);return b+a.stack},ly={};var Yab,Vi,ju,$ab,abb,Zab,Ig,Mn,cbb;Yab=function(a,b){for(var c=a.split("%s"),d="",e=Array.prototype.slice.call(arguments,1);e.length&&c.length>1;)d+=c.shift()+e.shift();return d+c.join("%s")};
_.Li=function(a){return encodeURIComponent(String(a))};
Vi=function(a){return decodeURIComponent(a.replace(/\+/g," "))};
ju=function(a){I8a.test(a)&&(a.indexOf("&")!=-1&&(a=a.replace(C8a,"&amp;")),a.indexOf("<")!=-1&&(a=a.replace(D8a,"&lt;")),a.indexOf(">")!=-1&&(a=a.replace(E8a,"&gt;")),a.indexOf('"')!=-1&&(a=a.replace(F8a,"&quot;")),a.indexOf("'")!=-1&&(a=a.replace(G8a,"&#39;")),a.indexOf("\x00")!=-1&&(a=a.replace(H8a,"&#0;")));return a};
$ab=function(a){var b={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var c=_.ja.document.createElement("div");return a.replace(Zab,function(d,e){var g=b[d];if(g)return g;e.charAt(0)=="#"&&(e=Number("0"+e.slice(1)),isNaN(e)||(g=String.fromCharCode(e)));g||(_.Yd(c,Nd(d+" ")),g=c.firstChild.nodeValue.slice(0,-1));return b[d]=g})};
abb=function(a){return a.replace(/&([^;]+);/g,function(b,c){switch(c){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return c.charAt(0)!="#"||(c=Number("0"+c.slice(1)),isNaN(c))?b:String.fromCharCode(c)}})};
Zab=/&([^;\s<&]+);?/g;_.oza=function(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.bbb=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)};
_.my=function(a,b){if(!Number.isFinite(a))return String(a);a=String(a);var c=a.indexOf(".");c===-1&&(c=a.length);var d=a[0]==="-"?"-":"";d&&(a=a.substring(1));return d+(0,_.bbb)("0",Math.max(0,b-c))+a};
Ig=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.mx()).toString(36)};
Mn=function(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b};
_.qn=function(a){return String(a).replace(/\-([a-z])/g,function(b,c){return c.toUpperCase()})};
_.pn=function(a){return String(a).replace(/([A-Z])/g,"-$1").toLowerCase()};
cbb=function(a){return a.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,c,d){return c+d.toUpperCase()})};var dbb=function(){this.names=new Map};
dbb.prototype.getName=function(a){var b=this.names.get(a);if(b)return b;var c;b=(c=a.description)!=null?c:Ig();this.names.set(a,b);return b};var ebb=function(a){var b=Error.call(this,a?a.length+" errors occurred during unsubscription:\n"+a.map(function(c,d){return d+1+") "+c.toString()}).join("\n  "):"");
this.message=b.message;"stack"in b&&(this.stack=b.stack);this.errors=a;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.z(ebb,Error);var de=function(a){this.initialTeardown=a;this.closed=!1;this._teardowns=this._parentage=null};
_.f=de.prototype;
_.f.unsubscribe=function(){if(!this.closed){this.closed=!0;var a=this._parentage;if(Array.isArray(a))for(var b=_.h(a),c=b.next();!c.done;c=b.next())c.value.remove(this);else a==null||a.remove(this);b=this.initialTeardown;if(ce(b))try{b()}catch(g){var d=g instanceof ebb?g.errors:[g]}var e=this._teardowns;if(e)for(this._teardowns=null,b=_.h(e),c=b.next();!c.done;c=b.next()){c=c.value;try{ce(c)?c():c.unsubscribe()}catch(g){c=void 0,d=(c=d)!=null?c:[],g instanceof ebb?d=[].concat(_.Be(d),_.Be(g.errors)):
d.push(g)}}if(d)throw new ebb(d);}};
_.f.add=function(a){if(a&&a!==this)if(this.closed)ce(a)?a():a.unsubscribe();else{if(a instanceof de){if(a.closed||a._hasParent(this))return;a._addParent(this)}var b;(this._teardowns=(b=this._teardowns)!=null?b:[]).push(a)}};
_.f._hasParent=function(a){var b=this._parentage;return b===a||Array.isArray(b)&&b.includes(a)};
_.f._addParent=function(a){var b=this._parentage;this._parentage=Array.isArray(b)?(b.push(a),b):b?[b,a]:a};
_.f._removeParent=function(a){var b=this._parentage;b===a?this._parentage=null:Array.isArray(b)&&Tda(b,a)};
_.f.remove=function(a){var b=this._teardowns;b&&Tda(b,a);a instanceof de&&a._removeParent(this)};
var fbb=new de;fbb.closed=!0;de.JSC$6925_EMPTY=fbb;var Vda=function(){setTimeout.apply(null,_.Be(_.Id.apply(0,arguments)))};var ny=function(a){de.call(this);this.JSC$6930_isStopped=!1;this.destination=a instanceof ny?a:new oy(!a||ce(a)?{next:a!=null?a:void 0}:a);Uda(a)&&a.add(this)};
_.z(ny,de);ny.JSC$6925_EMPTY=de.JSC$6925_EMPTY;ny.create=function(a,b,c){return new py(a,b,c)};
_.f=ny.prototype;_.f.next=function(a){this.JSC$6930_isStopped||this._next(a)};
_.f.error=function(a){this.JSC$6930_isStopped||(this.JSC$6930_isStopped=!0,this._error(a))};
_.f.complete=function(){this.JSC$6930_isStopped||(this.JSC$6930_isStopped=!0,this._complete())};
_.f.unsubscribe=function(){this.closed||(this.JSC$6930_isStopped=!0,de.prototype.unsubscribe.call(this))};
_.f._next=function(a){this.destination.next(a)};
_.f._error=function(a){this.destination.error(a);this.unsubscribe()};
_.f._complete=function(){this.destination.complete();this.unsubscribe()};
var oy=function(a){this.partialObserver=a};
oy.prototype.next=function(a){var b=this.partialObserver;if(b.next)try{b.next(a)}catch(c){fe(c)}};
oy.prototype.error=function(a){var b=this.partialObserver;if(b.error)try{b.error(a)}catch(c){fe(c)}else fe(a)};
oy.prototype.complete=function(){var a=this.partialObserver;if(a.complete)try{a.complete()}catch(b){fe(b)}};
var py=function(a,b,c){ny.call(this);var d;ce(a)||!a?d={next:a!=null?a:void 0,error:b!=null?b:void 0,complete:c!=null?c:void 0}:d=a;this.destination=new oy(d)};
_.z(py,ny);py.JSC$6925_EMPTY=ny.JSC$6925_EMPTY;py.create=ny.create;var je=typeof Symbol==="function"&&Symbol.observable||"@@observable";var ie=function(a){a&&(this._subscribe=a)};
_.f=ie.prototype;_.f.lift=function(a){var b=new ie;b.source=this;b.operator=a;return b};
_.f.subscribe=function(a,b,c){a=a&&a instanceof ny||a&&ce(a.next)&&ce(a.error)&&ce(a.complete)&&Uda(a)?a:new py(a,b,c);b=this.operator;c=this.source;a.add(b?b.call(a,c):c?this._subscribe(a):this._trySubscribe(a));return a};
_.f._trySubscribe=function(a){try{return this._subscribe(a)}catch(b){a.error(b)}};
_.f.forEach=function(a,b){var c=this;b=Xda(b);return new b(function(d,e){var g=c.subscribe(function(k){try{a(k)}catch(m){e(m),g==null||g.unsubscribe()}},e,d)})};
_.f._subscribe=function(a){var b;return(b=this.source)==null?void 0:b.subscribe(a)};
ie.prototype[je]=function(){return this};
ie.prototype.pipe=function(){var a=_.Id.apply(0,arguments);return a.length?Wda(a)(this):this};
ie.create=function(a){return new ie(a)};var gbb=function(){var a=Error.call(this,"object unsubscribed");this.message=a.message;"stack"in a&&(this.stack=a.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.z(gbb,Error);var gf=function(){this.observers=[];this.hasError=this.JSC$6946_isStopped=this.closed=!1;this.thrownError=null};
_.z(gf,ie);_.f=gf.prototype;_.f.lift=function(a){var b=new qy(this,this);b.operator=a;return b};
_.f._throwIfClosed=function(){if(this.closed)throw new gbb;};
_.f.next=function(a){this._throwIfClosed();if(!this.JSC$6946_isStopped){var b=this.observers.slice();b=_.h(b);for(var c=b.next();!c.done;c=b.next())c.value.next(a)}};
_.f.error=function(a){this._throwIfClosed();if(!this.JSC$6946_isStopped){this.hasError=this.JSC$6946_isStopped=!0;this.thrownError=a;for(var b=this.observers;b.length;)b.shift().error(a)}};
_.f.complete=function(){this._throwIfClosed();if(!this.JSC$6946_isStopped){this.JSC$6946_isStopped=!0;for(var a=this.observers;a.length;)a.shift().complete()}};
_.f.unsubscribe=function(){this.JSC$6946_isStopped=this.closed=!0;this.observers=null};
_.f._trySubscribe=function(a){this._throwIfClosed();return ie.prototype._trySubscribe.call(this,a)};
_.f._subscribe=function(a){this._throwIfClosed();this._checkFinalizedStatuses(a);return this._innerSubscribe(a)};
_.f._innerSubscribe=function(a){var b=this,c=this.JSC$6946_isStopped,d=this.observers;return this.hasError||c?de.JSC$6925_EMPTY:(d.push(a),new de(function(){return Tda(b.observers,a)}))};
_.f._checkFinalizedStatuses=function(a){var b=this.thrownError,c=this.JSC$6946_isStopped;this.hasError?a.error(b):c&&a.complete()};
gf.create=function(a,b){return new qy(a,b)};
var qy=function(a,b){gf.call(this);this.destination=a;this.source=b};
_.z(qy,gf);qy.create=gf.create;qy.prototype.next=function(a){var b,c;(b=this.destination)==null||(c=b.next)==null||c.call(b,a)};
qy.prototype.error=function(a){var b,c;(b=this.destination)==null||(c=b.error)==null||c.call(b,a)};
qy.prototype.complete=function(){var a,b;(a=this.destination)==null||(b=a.complete)==null||b.call(a)};
qy.prototype._subscribe=function(a){var b,c;return(c=(b=this.source)==null?void 0:b.subscribe(a))!=null?c:de.JSC$6925_EMPTY};var If=function(a){gf.call(this);this._value=a};
_.z(If,gf);If.create=gf.create;If.prototype._subscribe=function(a){var b=gf.prototype._subscribe.call(this,a);!b.closed&&a.next(this._value);return b};
If.prototype.getValue=function(){var a=this.thrownError,b=this._value;if(this.hasError)throw a;this._throwIfClosed();return b};
If.prototype.next=function(a){gf.prototype.next.call(this,this._value=a)};
_.Vm.Object.defineProperties(If.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var Ge=new ie(function(a){return a.complete()});var aea=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var fea=function(a){return a&&typeof a.length==="number"&&typeof a!=="function"};var hbb={now:function(){return(hbb.delegate||Date).now()},
delegate:void 0};var We=function(a,b,c){a=a===void 0?Infinity:a;b=b===void 0?Infinity:b;c=c===void 0?hbb:c;gf.call(this);this.JSC$6968_bufferSize=a;this.windowTime=b;this.timestampProvider=c;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=b===Infinity;this.JSC$6968_bufferSize=Math.max(1,a);this.windowTime=Math.max(1,b)};
_.z(We,gf);We.create=gf.create;We.prototype.next=function(a){var b=this.buffer,c=this.infiniteTimeWindow,d=this.timestampProvider,e=this.windowTime;this.JSC$6946_isStopped||(b.push(a),!c&&b.push(d.now()+e));ibb(this);gf.prototype.next.call(this,a)};
We.prototype._subscribe=function(a){this._throwIfClosed();ibb(this);for(var b=this._innerSubscribe(a),c=this.infiniteTimeWindow,d=this.buffer.slice(),e=0;e<d.length&&!a.closed;e+=c?1:2)a.next(d[e]);this._checkFinalizedStatuses(a);return b};
var ibb=function(a){var b=a.JSC$6968_bufferSize,c=a.timestampProvider,d=a.buffer;a=a.infiniteTimeWindow;var e=(a?1:2)*b;b<Infinity&&e<d.length&&d.splice(0,d.length-e);if(!a){b=c.now();c=0;for(a=1;a<d.length&&d[a]<=b;a+=2)c=a;c&&d.splice(0,c+1)}};var kbb=function(a,b){b=b===void 0?jbb:b;this.schedulerActionCtor=a;this.now=b};
kbb.prototype.schedule=function(a,b,c){b=b===void 0?0:b;return(new this.schedulerActionCtor(this,a)).schedule(c,b)};
var jbb=hbb.now;var Zea=function(){var a=Error.call(this,"no elements in sequence");this.message=a.message;"stack"in a&&(this.stack=a.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.z(Zea,Error);var xe=function(a,b,c,d,e){ny.call(this,a);this.onUnsubscribe=e;b&&(this._next=function(g){try{b(g)}catch(k){this.destination.error(k)}});
c&&(this._error=function(g){try{c(g)}catch(k){this.destination.error(k)}this.unsubscribe()});
d&&(this._complete=function(){try{d()}catch(g){this.destination.error(g)}this.unsubscribe()})};
_.z(xe,ny);xe.JSC$6925_EMPTY=ny.JSC$6925_EMPTY;xe.create=ny.create;xe.prototype.unsubscribe=function(){var a;this.closed||(a=this.onUnsubscribe)!=null&&a.call(this);ny.prototype.unsubscribe.call(this)};var Te=function(a,b){this.source=a;this.subjectFactory=b;this._subject=null;this._refCount=0;this._connection=null};
_.z(Te,ie);Te.create=ie.create;Te.prototype._subscribe=function(a){return lbb(this).subscribe(a)};
var lbb=function(a){var b=a._subject;if(!b||b.JSC$6946_isStopped)a._subject=a.subjectFactory();return a._subject};
Te.prototype._teardown=function(){this._refCount=0;var a=this._connection;this._subject=this._connection=null;a==null||a.unsubscribe()};
Te.prototype.connect=function(){var a=this,b=this._connection;if(!b){b=this._connection=new de;var c=lbb(this);b.add(this.source.subscribe(new xe(c,void 0,function(d){a._teardown();c.error(d)},function(){a._teardown();
c.complete()},function(){return a._teardown()})));
b.closed&&(this._connection=null,b=de.JSC$6925_EMPTY)}return b};var sea=Array.isArray;var uea=Array.isArray,mbb=Object,vea=mbb.getPrototypeOf,wea=mbb.prototype,xea=mbb.keys;var De=function(a,b,c){ny.call(this,a);this._next=b;this.shouldComplete=c};
_.z(De,ny);De.JSC$6925_EMPTY=ny.JSC$6925_EMPTY;De.create=ny.create;De.prototype._complete=function(){this.shouldComplete()?ny.prototype._complete.call(this):this.unsubscribe()};var Gea=["addListener","removeListener"],Fea=["addEventListener","removeEventListener"],Iea=["on","off"];var ry=function(){de.call(this)};
_.z(ry,de);ry.JSC$6925_EMPTY=de.JSC$6925_EMPTY;ry.prototype.schedule=function(){return this};var nbb=function(a,b){return setInterval.apply(null,[a,b].concat(_.Be(_.Id.apply(2,arguments))))};var sy=function(a,b){de.call(this);this.scheduler=a;this.work=b;this.pending=!1};
_.z(sy,ry);sy.JSC$6925_EMPTY=ry.JSC$6925_EMPTY;sy.prototype.schedule=function(a,b){b=b===void 0?0:b;if(this.closed)return this;this.state=a;a=this.id;var c=this.scheduler;a!=null&&(this.id=obb(this,a,b));this.pending=!0;this.delay=b;this.id=this.id||this.requestAsyncId(c,this.id,b);return this};
sy.prototype.requestAsyncId=function(a,b,c){c=c===void 0?0:c;return nbb(a.flush.bind(a,this),c)};
var obb=function(a,b,c){c=c===void 0?0:c;if(c!=null&&a.delay===c&&a.pending===!1)return b;clearInterval(b)};
sy.prototype.execute=function(a,b){if(this.closed)return Error("oa");this.pending=!1;if(a=this._execute(a,b))return a;this.pending===!1&&this.id!=null&&(this.id=obb(this,this.id,null))};
sy.prototype._execute=function(a){var b=!1;try{this.work(a)}catch(d){b=!0;var c=!!d&&d||Error(d)}if(b)return this.unsubscribe(),c};
sy.prototype.unsubscribe=function(){if(!this.closed){var a=this.id,b=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;Tda(b,this);a!=null&&(this.id=obb(this,a,null));this.delay=null;ry.prototype.unsubscribe.call(this)}};var pbb=function(a,b){b=b===void 0?jbb:b;kbb.call(this,a,b);this.actions=[];this.active=!1;this.scheduled=void 0};
_.z(pbb,kbb);pbb.prototype.flush=function(a){var b=this.actions;if(this.active)b.push(a);else{var c;this.active=!0;do if(c=a.execute(a.state,a.delay))break;while(a=b.shift());this.active=!1;if(c){for(;a=b.shift();)a.unsubscribe();throw c;}}};var vf=new ie(ee);var Jea=Array.isArray;var ty=function(a,b){sy.call(this,a,b);this.scheduler=a;this.work=b};
_.z(ty,sy);ty.JSC$6925_EMPTY=sy.JSC$6925_EMPTY;ty.prototype.schedule=function(a,b){b=b===void 0?0:b;if(b>0)return sy.prototype.schedule.call(this,a,b);this.delay=b;this.state=a;this.scheduler.flush(this);return this};
ty.prototype.execute=function(a,b){return b>0||this.closed?sy.prototype.execute.call(this,a,b):this._execute(a,b)};
ty.prototype.requestAsyncId=function(a,b,c){c=c===void 0?0:c;return c!=null&&c>0||c==null&&this.delay>0?sy.prototype.requestAsyncId.call(this,a,b,c):a.flush(this)};var qbb=function(){pbb.apply(this,arguments)};
_.z(qbb,pbb);var qea=new qbb(ty);var rbb=function(){this.performanceMonitor=new Bab;this.queue=new Cab;this.internalSymbol=Symbol();this.debugNames=new dbb};
rbb.prototype.getOnBackgrounded=function(){return vf};
_.Vm.Object.defineProperties(rbb.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var uy=function(a,b){b=Error.call(this,b?a+": "+b:String(a));this.message=b.message;"stack"in b&&(this.stack=b.stack);this.code=a;this.__proto__=uy.prototype;this.name=String(a)};
_.z(uy,Error);var wf=function(a){uy.call(this,1E3,'sfr:"'+a+'"');this.measurementStrategyFailureReason=a;this.__proto__=wf.prototype};
_.z(wf,uy);var xf=function(){uy.call(this,1003);this.__proto__=xf.prototype};
_.z(xf,uy);var vy=function(){uy.call(this,1009);this.__proto__=vy.prototype};
_.z(vy,uy);var sbb=function(){uy.call(this,1011);this.__proto__=sbb.prototype};
_.z(sbb,uy);var tbb=function(){uy.call(this,1007);this.__proto__=xf.prototype};
_.z(tbb,uy);var tf=function(a){uy.call(this,1004,String(a));this.inputObservableIndex=a;this.__proto__=tf.prototype};
_.z(tf,uy);var kga=function(a){uy.call(this,1010,a);this.__proto__=lga.prototype};
_.z(kga,uy);var lga=function(a){uy.call(this,1005,a);this.__proto__=lga.prototype};
_.z(lga,uy);var ubb=function(a){var b=_.Id.apply(1,arguments),c=this;this.orderedFactories=[];this.orderedFactories.push(a);b.forEach(function(d){c.orderedFactories.push(d)})};
ubb.prototype.isSupported=function(a){return this.orderedFactories.some(function(b){return b.isSupported(a)})};
ubb.prototype.makeBeacon=function(a,b){for(var c=0;c<this.orderedFactories.length;c++)if(this.orderedFactories[c].isSupported(b))return this.orderedFactories[c].makeBeacon(a,b);throw new vy;};var aha=Symbol("pa"),vbb=Symbol("qa"),Le=function(a,b){this.value=a;this.timeline=b},Je=function(a,b){if(b.timeline!==a.timeline)throw new tbb;
return a.value-b.value};
_.f=Le.prototype;_.f.equals=function(a){return Je(this,a)===0};
_.f.maximum=function(a){if(a.timeline!==this.timeline)throw new tbb;return this.value>=a.value?this:a};
_.f.round=function(){return new Le(Math.round(this.value),this.timeline)};
_.f.add=function(a){return new Le(this.value+a,this.timeline)};
_.f.toString=function(){return String(this.value)};var wy=function(a,b){this.context=a;this.JSC$7052_pinger=b};
wy.prototype.isSupported=function(a){return this.JSC$7052_pinger.isSupported(a)};
wy.prototype.makeBeacon=function(a,b){if(!this.isSupported(b))throw new vy;return new xy(this.context,this.JSC$7052_pinger,b!=null?b:void 0,a)};
var xy=function(a,b,c,d){var e=this;this.JSC$7058_pinger=b;this.properties=c;this.url=d;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var g;this.method=(g=c==null?void 0:c.beaconMethod)!=null?g:"GET";this.backgroundedSubscription=a.getOnBackgrounded().subscribe(function(){e.sendNow()})};
xy.prototype.deactivate=function(){this.internalIsPending=!1};
xy.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$7058_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var a,b;this.JSC$7058_pinger.pingWithHeadersAndBody((a=this.properties)!=null?a:{},this.customHeaders,(b=this.body)!=null?b:"",this.url)}else this.JSC$7058_pinger.ping(this.url);this.internalIsPending=!1}catch(c){}else this.internalIsPending=!1};
xy.prototype.setHeader=function(a){this.customHeaders.set(a,void 0)};
_.Vm.Object.defineProperties(xy.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var xbb=function(){for(var a=_.h(_.Id.apply(0,arguments)),b=a.next();!b.done;b=a.next())if(b=b.value,b.available()){this.timeProvider=b;return}this.timeProvider=new wbb};
_.f=xbb.prototype;_.f.available=function(){return this.timeProvider.available()};
_.f.now=function(){return this.timeProvider.now()};
_.f.setTimeout=function(a,b){return this.timeProvider.setTimeout(a,b)};
_.f.clearTimeout=function(a){this.timeProvider.clearTimeout(a)};
_.f.interval=function(a,b){var c=this.intervalObservable(a).subscribe(b);return function(){return void c.unsubscribe()}};
_.f.intervalObservable=function(a){return this.timeProvider.intervalObservable(a)};
_.Vm.Object.defineProperties(xbb.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var wbb=function(){this.timeline=Symbol()};
_.f=wbb.prototype;_.f.available=function(){return!1};
_.f.now=function(){return new Le(0,this.timeline)};
_.f.setTimeout=function(){return 0};
_.f.clearTimeout=function(){};
_.f.interval=function(){return function(){}};
_.f.intervalObservable=function(){return vf};var yy=function(a,b){this.intrinsicFunctionNamespace=a;this.performanceMonitor=b};
_.f=yy.prototype;_.f.setTimeout=function(a,b){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,a),b)};
_.f.clearTimeout=function(a){this.intrinsicFunctionNamespace.clearTimeout(a)};
_.f.interval=function(a,b){var c=this.intervalObservable(a).subscribe(b);return function(){return void c.unsubscribe()}};
_.f.intervalObservable=function(a){var b=this;return new ie(function(c){var d=0,e=b.intrinsicFunctionNamespace.setInterval(function(){c.next(d++)},a);
return function(){b.intrinsicFunctionNamespace.clearInterval(e)}})};
_.f.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var ybb=function(a,b){yy.call(this,a,b);this.timeline=vbb};
_.z(ybb,yy);ybb.prototype.now=function(){return new Le(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
ybb.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&yy.prototype.available.call(this)};var zbb=function(a,b){yy.call(this,a,b);this.timeline=aha};
_.z(zbb,yy);zbb.prototype.now=function(){return new Le(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
zbb.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&yy.prototype.available.call(this)};var Bbb=function(a){this.context=a;if(Abb===void 0)a:{var b,c,d=(b=a.global)==null?void 0:(c=b.document)==null?void 0:c.createElement("meta");if(d)try{d.httpEquiv="origin-trial";d.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";a.global.document.head.append(d);Abb=d;break a}catch(e){}Abb=void 0}},
Abb;
Bbb.prototype.isSupported=function(a){return Tea(this.context)!==void 0&&!(a==null||!a.endOfSession)&&!zy(this.context)&&!(a==null?0:a.attributionEnabled)&&!(a==null?0:a.customHeaders)&&!(a==null?0:a.customBody)};
Bbb.prototype.makeBeacon=function(a,b){if(!this.isSupported(b))throw new vy;return new Ay(this.context,a,b)};
var Ay=function(a,b,c){this.context=a;this.properties=c;this.JSC$7085_urlWithoutToken=b;var d;this.beaconMethod=(d=c==null?void 0:c.beaconMethod)!=null?d:"GET";a=Tea(this.context);if(a===void 0)throw Error();this.fetchLater=a;Cbb(this,Dbb(this))},Cbb=function(a,b){a.beaconResult&&a.beaconResult.activated||(a.beaconAbort=new AbortController,a.beaconResult=a.fetchLater(b,{method:a.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:a.beaconAbort.signal,activateAfter:96E4}))},Dbb=function(a){a=a.JSC$7085_urlWithoutToken;
return(a.slice(-1)[0]==="&"?a:a+"&")+"flapi=1"};
Ay.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
Ay.prototype.sendNow=function(){};
Ay.prototype.setHeader=function(){};
_.Vm.Object.defineProperties(Ay.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7085_urlWithoutToken},
set:function(a){this.JSC$7085_urlWithoutToken=a;a=Dbb(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);Cbb(this,a)}},
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 Ebb=function(a){this.context=a};
Ebb.prototype.isSupported=function(){return!zy(this.context)&&!!this.context.global.fetch};
Ebb.prototype.ping=function(){var a=this;return He.apply(null,_.Be(_.Id.apply(0,arguments).map(function(b){return le(a.context.global.fetch(b,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(Ae(function(c){return c.status===200}))}))).pipe($ea(function(b){return b}),bfa())};
Ebb.prototype.pingWithHeadersAndBody=function(a,b,c){for(var d=_.Id.apply(3,arguments),e=this,g=new Headers,k=_.h(b.entries()),m=k.next();!m.done;m=k.next()){var n=_.h(m.value);m=n.next().value;n=n.next().value;g.set(m,n)}var r,t=(r=a.keepAlive)!=null?r:!1;He.apply(null,_.Be(d.map(function(u){return le(e.context.global.fetch(u,Object.assign({},{method:String(a.beaconMethod),cache:"no-cache"},t?{keepalive:!0}:{},{mode:"no-cors",headers:g,body:c}))).pipe(Ae(function(w){return w.status===200}))}))).pipe($ea(function(u){return u}),
bfa())};var Fbb,l1a;_.By=function(){};
_.Ma=function(a){return a};
Fbb=function(a){var b=b||0;return function(){return a.apply(this,Array.prototype.slice.call(arguments,0,b))}};
_.Cy=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}};
_.Dy=function(a,b){var c=0;return function(d){_.ja.clearTimeout(c);var e=arguments;c=_.ja.setTimeout(function(){a.apply(void 0,e)},b)}};
l1a=function(a,b){var c=0,d=!1,e=[],g=function(){c=0;d&&(d=!1,k())},k=function(){c=_.ja.setTimeout(g,b);
var m=e;e=[];a.apply(void 0,m)};
return function(m){e=arguments;c?d=!0:k()}};var Hbb=function(){return va&&wa?wa.mobile:!Gbb()&&(xa("iPod")||xa("iPhone")||xa("Android")||xa("IEMobile"))},Gbb=function(){return va&&wa?!wa.mobile&&(xa("iPad")||xa("Android")||xa("Silk")):xa("iPad")||xa("Android")&&!xa("Mobile")||xa("Silk")};var Ey;_.Qw=function(a,b,c){return Math.min(Math.max(a,b),c)};
Ey=function(a,b,c){return a+c*(b-a)};var Ibb;_.yf={};Ibb="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.yf.add=function(a,b,c){if(a!==null&&b in a)throw Error("sa`"+b);a[b]=c};
_.yf.clear=function(a){for(var b in a)delete a[b]};
_.yf.clone=function(a){var b={},c;for(c in a)b[c]=a[c];return b};
_.yf.contains=function(a,b){return ffa(a,b)};
_.yf.containsKey=function(a,b){return a!==null&&b in a};
_.yf.containsValue=ffa;_.yf.create=ifa;_.yf.createImmutableView=function(a){var b=a;Object.isFrozen&&!Object.isFrozen(a)&&(b=Object.create(a),Object.freeze(b));return b};
_.yf.createSet=jfa;_.yf.equals=function(a,b){for(var c in a)if(!(c in b)||a[c]!==b[c])return!1;for(var d in b)if(!(d in a))return!1;return!0};
_.yf.every=function(a,b,c){for(var d in a)if(!b.call(c,a[d],d,a))return!1;return!0};
_.yf.extend=function(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var g=0;g<Ibb.length;g++)c=Ibb[g],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};
_.yf.filter=function(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d};
_.yf.findKey=gfa;_.yf.findValue=function(a,b,c){return(b=gfa(a,b,c))&&a[b]};
_.yf.forEach=function(a,b,c){for(var d in a)b.call(c,a[d],d,a)};
_.yf.get=function(a,b,c){return a!==null&&b in a?a[b]:c};
_.yf.getAllPropertyNames=function(a,b,c){if(!a)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return efa(a);for(var d={};a&&(a!==Object.prototype||b)&&(a!==Function.prototype||c);){for(var e=Object.getOwnPropertyNames(a),g=0;g<e.length;g++)d[e[g]]=!0;a=Object.getPrototypeOf(a)}return efa(d)};
_.yf.getAnyKey=function(a){for(var b in a)return b};
_.yf.getAnyValue=function(a){for(var b in a)return a[b]};
_.yf.getCount=function(a){var b=0,c;for(c in a)b++;return b};
_.yf.getKeys=efa;_.yf.getSuperClass=function(a){return(a=Object.getPrototypeOf(a.prototype))&&a.constructor};
_.yf.getValueByKeys=function(a,b){var c=_.Sa(b),d=c?b:arguments;for(c=c?0:1;c<d.length;c++){if(a==null)return;a=a[d[c]]}return a};
_.yf.getValues=function(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b};
_.yf.isEmpty=function(a){for(var b in a)return!1;return!0};
_.yf.isImmutableView=function(a){return!!Object.isFrozen&&Object.isFrozen(a)};
_.yf.map=function(a,b,c){var d={},e;for(e in a)d[e]=b.call(c,a[e],e,a);return d};
_.yf.remove=function(a,b){var c;(c=b in a)&&delete a[b];return c};
_.yf.set=function(a,b,c){a[b]=c};
_.yf.setIfUndefined=function(a,b,c){return b in a?a[b]:a[b]=c};
_.yf.setWithReturnValueIfNotSet=function(a,b,c){if(b in a)return a[b];c=c();return a[b]=c};
_.yf.some=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1};
_.yf.transpose=function(a){var b={},c;for(c in a)b[a[c]]=c;return b};
_.yf.unsafeClone=hfa;var Jbb,Kbb,Lbb,Mbb,Ti,Obb,Tbb,Ubb,Vbb;Jbb=function(a,b,c,d,e,g,k){var m="";a&&(m+=a+":");c&&(m+="//",b&&(m+=b+"@"),m+=c,d&&(m+=":"+d));e&&(m+=e);g&&(m+="?"+g);k&&(m+="#"+k);return m};
Kbb=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.Ri=function(a){return a.match(Kbb)};
_.Kw=function(a,b){return a?b?decodeURI(a):decodeURIComponent(a):a};
Lbb=function(a){a=_.Ri(a)[1]||null;!a&&_.ja.self&&_.ja.self.location&&(a=_.ja.self.location.protocol.slice(0,-1));return a?a.toLowerCase():""};
_.Si=function(a){return _.Kw(_.Ri(a)[3]||null,!0)};
_.gj=function(a){return _.Kw(_.Ri(a)[5]||null,!0)};
_.QUa=function(a){var b=a.indexOf("#");return b<0?null:a.slice(b+1)};
Mbb=function(a){a=_.Ri(a);return Jbb(a[1],a[2],a[3],a[4])};
_.Nbb=function(a){a=_.Ri(a);return Jbb(a[1],null,a[3],a[4])};
_.Qn=function(a){a=_.Ri(a);return Jbb(null,null,null,null,a[5],a[6],a[7])};
_.Yn=function(a){var b=a.indexOf("#");return b<0?a:a.slice(0,b)};
Ti=function(a,b){a=_.Ri(a);b=_.Ri(b);return a[3]==b[3]&&a[1]==b[1]&&a[4]==b[4]};
Obb=function(a,b){if(a){a=a.split("&");for(var c=0;c<a.length;c++){var d=a[c].indexOf("="),e=null;if(d>=0){var g=a[c].substring(0,d);e=a[c].substring(d+1)}else g=a[c];b(g,e?Vi(e):"")}}};
_.Pbb=function(a){var b=a.indexOf("#");b<0&&(b=a.length);var c=a.indexOf("?");if(c<0||c>b){c=b;var d=""}else d=a.substring(c+1,b);return[a.slice(0,c),d,a.slice(b)]};
_.Qbb=function(a,b){return b?a?a+"&"+b:b:a};
_.Rbb=function(a,b){if(!b)return a;a=_.Pbb(a);a[1]=_.Qbb(a[1],b);return a[0]+(a[1]?"?"+a[1]:"")+a[2]};
_.Sbb=function(a,b,c){if(Array.isArray(b))for(var d=0;d<b.length;d++)_.Sbb(a,String(b[d]),c);else b!=null&&c.push(a+(b===""?"":"="+_.Li(b)))};
_.ij=function(a){var b=[],c;for(c in a)_.Sbb(c,a[c],b);return b.join("&")};
_.Qi=function(a,b){b=_.ij(b);return _.Rbb(a,b)};
_.Fy=function(a,b,c){c=c!=null?"="+_.Li(c):"";return _.Rbb(a,b+c)};
Tbb=function(a,b,c,d){for(var e=c.length;(b=a.indexOf(c,b))>=0&&b<d;){var g=a.charCodeAt(b-1);if(g==38||g==63)if(g=a.charCodeAt(b+e),!g||g==61||g==38||g==35)return b;b+=e+1}return-1};
Ubb=/#|$/;_.Hg=function(a,b){var c=a.search(Ubb),d=Tbb(a,0,b,c);if(d<0)return null;var e=a.indexOf("&",d);if(e<0||e>c)e=c;d+=b.length+1;return Vi(a.slice(d,e!==-1?e:0))};
Vbb=/[?&]($|#)/;_.$n=function(a,b){for(var c=a.search(Ubb),d=0,e,g=[];(e=Tbb(a,d,b,c))>=0;)g.push(a.substring(d,e)),d=Math.min(a.indexOf("&",e)+1||c,c);g.push(a.slice(d));return g.join("").replace(Vbb,"$1")};
_.Il=function(a,b,c){return _.Fy(_.$n(a,b),b,c)};var Gy=function(a,b,c,d,e){this.allowedElements=a;this.elementPolicies=b;this.allowedGlobalAttributes=c;this.globalAttributePolicies=d;this.globallyAllowedAttributePrefixes=e},Wbb=function(a,b,c){c=a.elementPolicies.get(c);
return(c==null?0:c.has(b))?c.get(b):a.allowedGlobalAttributes.has(b)?{policyAction:1}:(c=a.globalAttributePolicies.get(b))?c:a.globallyAllowedAttributePrefixes&&[].concat(_.Be(a.globallyAllowedAttributePrefixes)).some(function(d){return b.indexOf(d)===0})?{policyAction:1}:{policyAction:0}};var Xbb="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(" "),
Ybb=[["A",new Map([["href",{policyAction:2}]])],["AREA",new Map([["href",{policyAction:2}]])],["LINK",new Map([["href",{policyAction:5,conditions:new Map([["rel",new Set("alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "))]])}]])],["SOURCE",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["IMG",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["VIDEO",new Map([["src",
{policyAction:5}]])],["AUDIO",new Map([["src",{policyAction:5}]])]],Zbb="title aria-atomic aria-autocomplete aria-busy aria-checked aria-current aria-disabled aria-dropeffect aria-expanded aria-haspopup aria-hidden aria-invalid aria-label aria-level aria-live aria-multiline aria-multiselectable aria-orientation aria-posinset aria-pressed aria-readonly aria-relevant aria-required aria-selected aria-setsize aria-sort aria-valuemax aria-valuemin aria-valuenow aria-valuetext alt align autocapitalize autocomplete autocorrect autofocus autoplay bgcolor border cellpadding cellspacing checked cite color cols colspan controls controlslist crossorigin datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden ismap label lang loop max maxlength media minlength min multiple muted nonce open placeholder poster preload rel required reversed role rows rowspan selected shape size sizes slot span spellcheck start step summary translate type valign value width wrap itemscope itemtype itemid itemprop itemref".split(" "),
$bb=[["dir",{policyAction:3,conditions:td(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:td(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:td(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:td(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],acb=new Gy(new Set(Xbb),new Map(Ybb),new Set(Zbb),new Map($bb)),bcb=new Gy(new Set(Xbb.concat(["BUTTON",
"INPUT"])),new Map(Ybb),new Set(td(function(){return Zbb.concat(["class","id","name"])})),new Map(td(function(){return $bb.concat([["style",
{policyAction:1}]])})));var ccb,dcb,fcb;ccb=function(a,b,c,d){this.JSC$7147_sanitizerTable=a;this.styleElementSanitizer=b;this.styleAttributeSanitizer=c;this.JSC$7147_resourceUrlPolicy=d;this.changes=[]};
_.ecb=function(a,b){var c=document.implementation.createHTMLDocument("");a=dcb(a,b,c);c=c.body;c.appendChild(a);c=(new XMLSerializer).serializeToString(c);c=c.slice(c.indexOf(">")+1,c.lastIndexOf("</"));return Nd(c)};
dcb=function(a,b,c){b=lfa(b,c);b=document.createTreeWalker(b,5,function(m){if(m.nodeType===3)m=1;else if(nfa(m))if(m=mfa(m),m===null)m=2;else{var n=a.JSC$7147_sanitizerTable;m=m!=="FORM"&&(n.allowedElements.has(m)||n.elementPolicies.has(m))?1:2}else m=2;return m});
for(var d=b.nextNode(),e=c.createDocumentFragment(),g=e;d!==null;){var k=void 0;if(d.nodeType===3)a.styleElementSanitizer&&g.nodeName==="STYLE"?(d=a.styleElementSanitizer(d.data),k=a.createTextNode(d)):k=a.createTextNode(d.data);else if(nfa(d))k=fcb(a,d,c);else throw Error("ga");g.appendChild(k);if(d=b.firstChild())g=k;else for(;!(d=b.nextSibling())&&(d=b.parentNode());)g=g.parentNode}return e};
ccb.prototype.createTextNode=function(a){return document.createTextNode(a)};
fcb=function(a,b,c){var d,e=mfa(b);c=c.createElement(e);b=b.attributes;for(var g=_.h(b),k=g.next();!k.done;k=g.next()){var m=k.value;k=m.name;m=m.value;var n=Wbb(a.JSC$7147_sanitizerTable,k,e);a:{if(d=n.conditions){d=_.h(d);for(var r=d.next();!r.done;r=d.next()){var t=_.h(r.value);r=t.next().value;t=t.next().value;var u=void 0;if((r=(u=b.getNamedItem(r))==null?void 0:u.value)&&!t.has(r)){d=!1;break a}}}d=!0}if(d)switch(n.policyAction){case 1:df(c,k,m);break;case 2:n=_.Hda(m);m=n!==void 0&&Uab.indexOf(n.toLowerCase())!==
-1?m:"about:invalid#zClosurez";df(c,k,m);break;case 3:df(c,k,m.toLowerCase());break;case 4:a.styleAttributeSanitizer?(m=a.styleAttributeSanitizer(m),df(c,k,m)):df(c,k,m);break;case 5:a.JSC$7147_resourceUrlPolicy?(n={type:2,attributeName:k,elementName:e},m=kfa(m),(m=a.JSC$7147_resourceUrlPolicy(m,n))&&df(c,k,m.toString())):df(c,k,m);break;case 6:if(a.JSC$7147_resourceUrlPolicy){n={type:2,attributeName:k,elementName:e};d=[];m=_.h(m.split(","));for(r=m.next();!r.done;r=m.next())t=_.h(r.value.trim().split(/\s+/,
2)),r=t.next().value,t=t.next().value,d.push({url:r,descriptor:t});m={parts:[]};d=_.h(d);for(r=d.next();!r.done;r=d.next())r=r.value,t=kfa(r.url),(t=a.JSC$7147_resourceUrlPolicy(t,n))&&m.parts.push({url:t.toString(),descriptor:r.descriptor});df(c,k,ofa(m))}else df(c,k,m)}}return c};
_.gcb=td(function(){return new ccb(acb)});
_.hcb=td(function(){return new ccb(bcb)});var icb=function(){this.calledBuild=!1;this.JSC$7159_sanitizerTable=acb},jcb=function(){icb.apply(this,arguments)};
_.z(jcb,icb);jcb.prototype.build=function(){if(this.calledBuild)throw Error("ua");this.calledBuild=!0;return new ccb(this.JSC$7159_sanitizerTable,void 0,void 0,this.JSC$7159_resourceUrlPolicy)};var kcb=/[^#]*/;var Iha=function(a){try{return!!a&&a.location.href!=null&&Oga(a,"foo")}catch(b){return!1}},mcb=function(a){var b=lcb;
if(b)for(var c in b)Object.prototype.hasOwnProperty.call(b,c)&&a(b[c],c,b)},ncb=function(){var a=[];
mcb(function(b){a.push(b)});
return a},lcb={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"},ocb=_.Cy(function(){return ncb()}),qcb=function(){var a=pcb("IFRAME"),
b={};
_.Mi(ocb(),function(c){a.sandbox&&a.sandbox.supports&&a.sandbox.supports(c)&&(b[c]=!0)});
return b},pcb=function(a,b){b=b===void 0?document:b;
return b.createElement(String(a).toLowerCase())};var Iy=function(a){this.context=a};
Iy.prototype.isSupported=function(a){return(a==null?0:a.attributionEnabled)||(a==null?void 0:a.beaconMethod)==="POST"||(a==null?0:a.customHeaders)||(a==null?0:a.customBody)||(a==null?0:a.keepAlive)?!1:!zy(this.context)};
Iy.prototype.ping=function(){var a=this;return ue(_.Id.apply(0,arguments).map(function(b){try{var c=a.context.global,d=!1;d=d===void 0?!1:d;c.google_image_requests||(c.google_image_requests=[]);var e=pcb("IMG",c.document);d&&(e.attributionSrc="");e.src=b;c.google_image_requests.push(e);return!0}catch(g){return!1}}).every(function(b){return b}))};
Iy.prototype.pingWithHeadersAndBody=function(a,b,c){this.ping.apply(this,_.Be(_.Id.apply(3,arguments)))};var rcb=function(a){this.context=a};
rcb.prototype.isSupported=function(a){return scb&&!zy(this.context)&&qfa(this.context)!==void 0&&!(a==null?0:a.attributionEnabled)&&(a==null?void 0:a.beaconMethod)!=="POST"&&!(a==null?0:a.customHeaders)&&!(a==null?0:a.customBody)};
rcb.prototype.makeBeacon=function(a,b){if(!this.isSupported(b))throw new vy;return new Jy(this.context,a)};
var scb=!1,Jy=function(a,b){this.context=a;this.JSC$7179_urlWithoutToken=b;a=qfa(this.context);if(a===void 0)throw Error();this.wrappedBeacon=new a(tcb(this),{})},tcb=function(a){a=a.JSC$7179_urlWithoutToken;
return(a.slice(-1)[0]==="&"?a:a+"&")+"pbapi=1"};
Jy.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
Jy.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
Jy.prototype.setHeader=function(){};
_.Vm.Object.defineProperties(Jy.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7179_urlWithoutToken},
set:function(a){this.JSC$7179_urlWithoutToken=a;this.wrappedBeacon.setURL(tcb(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(a){if(a!=="GET")throw new vy;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var ucb=function(a){this.context=a};
ucb.prototype.isSupported=function(a){if((a==null?0:a.attributionEnabled)||(a==null?void 0:a.beaconMethod)==="GET"||(a==null?0:a.customHeaders)||(a==null?0:a.customBody)||(a==null?0:a.keepAlive))return!1;var b;return!zy(this.context)&&((b=this.context.global.navigator)==null?void 0:b.sendBeacon)!==void 0};
ucb.prototype.ping=function(){var a=this;return ue(_.Id.apply(0,arguments).map(function(b){var c;return(c=a.context.global.navigator)==null?void 0:c.sendBeacon(b)}).every(function(b){return b}))};
ucb.prototype.pingWithHeadersAndBody=function(a,b,c){this.ping.apply(this,_.Be(_.Id.apply(3,arguments)))};var lf=function(a){this.value=a},Pf=function(a,b){return ue(a.value).pipe(jf(b))},Rf=new lf(!1),aia=new lf(!0);var Ff=function(a){this.value=a;this.releasedSubject=new gf};
Ff.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.Vm.Object.defineProperties(Ff.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$7192_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var Dfa=["FRAME","IMG","IFRAME"],xfa=/^[01](px)?$/,Cfa=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},Bfa=function(){var a=new Cfa;
a.crossDomainLoadedDefault=!0;a.pendingImagesBlockLoad=!0;return a};var vcb=function(a,b){var c=Kfa(a);if(c)if(c.onCreativeLoad)c.onCreativeLoad(b);else{var d=b?[b]:[],e=function(g){for(var k=0;k<d.length;++k)try{d[k](1,g)}catch(m){}d={push:function(m){m(1,g)}}};
c.onCreativeLoad=function(g){d.push(g)};
c.setAttribute("data-creative-load-listener","");c.addEventListener("creativeLoad",function(g){e(g.detail)});
_.ja.addEventListener("message",function(g){Jfa(c,e,g)})}};var Ky=function(a,b){var c=this;this.global=a;this.parentContext=b;this.JSC$7203_onVisibilityChange=this.document?He(ue(!0),Fe(this.document,"visibilitychange")).pipe(Me(this.parentContext.performanceMonitor,748),Ae(function(){return c.getVisibilityState()}),Re()):ue("visible");
this.document?Fe(this.document,"DOMContentLoaded").pipe(Me(this.parentContext.performanceMonitor,739),Qe(1)):ue(vfa("DOMContentLoaded"))},$ha=function(a){return a.document!==null&&a.document.visibilityState!==void 0};
Ky.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
Ky.prototype.querySelector=function(a){return this.document?this.document.querySelector(a):null};
Ky.prototype.querySelectorAll=function(a){return this.document?_.Ra(this.document.querySelectorAll(a)):[]};
Ky.prototype.elementFromPoint=function(a,b){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;a=this.document.elementFromPoint(a,b);return a===null?null:new Ff(a)};
var Pha=function(a,b,c){c=c===void 0?!1:c;if(b.ref===void 0||!a.document)return ue(b).pipe(Me(a.parentContext.performanceMonitor,749));var d=new We(1),e=function(){d.next(b)};
c||vcb(b.ref,e);Efa(b.ref,e);return d.pipe(Me(a.parentContext.performanceMonitor,749),Qe(1))};
_.Vm.Object.defineProperties(Ky.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return Oga(this.global,"document")?this.global.document||null:null}}});var Lfa=_.cx(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),Mfa=_.cx(["./reach_worklet.js"]),Nfa=_.cx(["./reach_worklet.js"]),wcb=_.cx(["./reach_worklet.html"]),xcb=_.cx(["./reach_worklet.js"]),ycb=_.cx(["./reach_worklet.js"]);_.ef(wcb);_.ef(xcb);_.ef(ycb);var Jf={left:0,top:0,width:0,height:0};_.Af=function(a,b){this.x=a!==void 0?a:0;this.y=b!==void 0?b:0};
_.f=_.Af.prototype;_.f.clone=function(){return new _.Af(this.x,this.y)};
_.f.equals=function(a){return a instanceof _.Af&&(this==a?!0:this&&a?this.x==a.x&&this.y==a.y:!1)};
_.f.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.f.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.f.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.f.translate=function(a,b){a instanceof _.Af?(this.x+=a.x,this.y+=a.y):(this.x+=Number(a),typeof b==="number"&&(this.y+=b));return this};
_.f.scale=function(a,b){this.x*=a;this.y*=typeof b==="number"?b:a;return this};_.of=function(a,b){this.width=a;this.height=b};
_.f=_.of.prototype;_.f.clone=function(){return new _.of(this.width,this.height)};
_.f.area=function(){return this.width*this.height};
_.f.aspectRatio=function(){return this.width/this.height};
_.f.isEmpty=function(){return!this.area()};
_.f.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.f.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.f.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.f.scale=function(a,b){this.width*=a;this.height*=typeof b==="number"?b:a;return this};var Fl=function(a,b){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=a===Xta&&b||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=zcb};
Fl.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var Acb=function(a){return a instanceof Fl&&a.constructor===Fl&&a.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===zcb?a.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},zcb={},Xta={};
new Fl(Xta,"");var rf,og,My,Bcb,Ecb,Dcb,Bf,Gcb,Icb,Hcb,Qy,Jcb,Qcb,Pcb,Ocb,Rcb,Scb,Tcb,Ucb,nsa,Vcb,Xcb,Ycb,Wcb,Ly,$cb;rf=function(a){return a?new Ly(_.Cf(a)):x8a||(x8a=new Ly)};
_.du=function(a,b){return typeof b==="string"?a.getElementById(b):b};
og=function(a,b){return(b||document).getElementsByTagName(String(a))};
_.Ccb=function(a){return Bcb("yt-formatted-string","paper-input-input",a)};
My=function(a,b,c,d){a=d||a;return(b=b&&b!="*"?String(b).toUpperCase():"")||c?a.querySelectorAll(b+(c?"."+c:"")):a.getElementsByTagName("*")};
Bcb=function(a,b,c){var d=document,e=a&&a!="*"?String(a).toUpperCase():"";return e||b?(c||d).querySelector(e+(b?"."+b:"")):My(d,a,b,c)[0]||null};
Ecb=function(a,b){_.yf.forEach(b,function(c,d){d=="style"?a.style.cssText=c:d=="class"?a.className=c:d=="for"?a.htmlFor=c:Dcb.hasOwnProperty(d)?a.setAttribute(Dcb[d],c):_.na(d,"aria-")||_.na(d,"data-")?a.setAttribute(d,c):a[d]=c})};
Dcb={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"};_.pf=function(a){a=(a||window).document;a=a.compatMode=="CSS1Compat"?a.documentElement:a.body;return new _.of(a.clientWidth,a.clientHeight)};
_.Fcb=function(a){var b=_.Ny(a);a=a.defaultView;return new _.Af(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)};
_.Ny=function(a){return a.scrollingElement?a.scrollingElement:_.ux||a.compatMode!="CSS1Compat"?a.body||a.documentElement:a.documentElement};
Bf=function(a){return a?a.defaultView:window};
_.Oy=function(a,b,c){return Gcb(document,arguments)};
Gcb=function(a,b){var c=b[1],d=Hcb(a,String(b[0]));c&&(typeof c==="string"?d.className=c:Array.isArray(c)?d.className=c.join(" "):Ecb(d,c));b.length>2&&Icb(a,d,b,2);return d};
Icb=function(a,b,c,d){function e(m){m&&b.appendChild(typeof m==="string"?a.createTextNode(m):m)}
for(;d<c.length;d++){var g=c[d];if(!_.Sa(g)||_.$a(g)&&g.nodeType>0)e(g);else{a:{if(g&&typeof g.length=="number"){if(_.$a(g)){var k=typeof g.item=="function"||typeof g.item=="string";break a}if(typeof g==="function"){k=typeof g.item=="function";break a}}k=!1}_.Mi(k?_.Ra(g):g,e)}}};
_.lg=function(a){return Hcb(document,a)};
Hcb=function(a,b){b=String(b);a.contentType==="application/xhtml+xml"&&(b=b.toLowerCase());return a.createElement(b)};
_.Py=function(){return document.createTextNode("\n")};
Qy=function(a){if(a.nodeType!=1)return!1;switch(a.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};
Jcb=function(a,b){Icb(_.Cf(a),a,arguments,1)};
_.Ry=function(a){for(var b;b=a.firstChild;)a.removeChild(b)};
_.Sy=function(a,b){b.parentNode&&b.parentNode.insertBefore(a,b)};
_.Ty=function(a,b){b.parentNode&&b.parentNode.insertBefore(a,b.nextSibling)};
_.mg=function(a){return a&&a.parentNode?a.parentNode.removeChild(a):null};
_.Kcb=function(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)};
_.Lcb=function(a){var b,c=a.parentNode;if(c&&c.nodeType!=11)if(a.removeNode)a.removeNode(!1);else{for(;b=a.firstChild;)c.insertBefore(b,a);_.mg(a)}};
_.Uy=function(a){return a.children!=void 0?a.children:Array.prototype.filter.call(a.childNodes,function(b){return b.nodeType==1})};
_.Ncb=function(a){return a.nextElementSibling!==void 0?a.nextElementSibling:_.Mcb(a.nextSibling,!0)};
_.Mcb=function(a,b){for(;a&&a.nodeType!=1;)a=b?a.nextSibling:a.previousSibling;return a};
_.Sk=function(a){return _.$a(a)&&a.nodeType==1};
_.Gg=function(a,b){if(!a||!b)return!1;if(a.contains&&b.nodeType==1)return a==b||a.contains(b);if(typeof a.compareDocumentPosition!="undefined")return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a};
Qcb=function(a,b){if(a==b)return 0;if(a.compareDocumentPosition)return a.compareDocumentPosition(b)&2?1:-1;if("sourceIndex"in a||a.parentNode&&"sourceIndex"in a.parentNode){var c=a.nodeType==1,d=b.nodeType==1;if(c&&d)return a.sourceIndex-b.sourceIndex;var e=a.parentNode,g=b.parentNode;return e==g?Ocb(a,b):!c&&_.Gg(e,b)?-1*Pcb(a,b):!d&&_.Gg(g,a)?Pcb(b,a):(c?a.sourceIndex:e.sourceIndex)-(d?b.sourceIndex:g.sourceIndex)}d=_.Cf(a);c=d.createRange();c.selectNode(a);c.collapse(!0);a=d.createRange();a.selectNode(b);
a.collapse(!0);return c.compareBoundaryPoints(_.ja.Range.START_TO_END,a)};
Pcb=function(a,b){var c=a.parentNode;if(c==b)return-1;for(;b.parentNode!=c;)b=b.parentNode;return Ocb(b,a)};
Ocb=function(a,b){for(;b=b.previousSibling;)if(b==a)return-1;return 1};
Rcb=function(a){var b,c=arguments.length;if(!c)return null;if(c==1)return arguments[0];var d=[],e=Infinity;for(b=0;b<c;b++){for(var g=[],k=arguments[b];k;)g.unshift(k),k=k.parentNode;d.push(g);e=Math.min(e,g.length)}g=null;for(b=0;b<e;b++){k=d[0][b];for(var m=1;m<c;m++)if(k!=d[m][b])return g;g=k}return g};
_.Cf=function(a){return a.nodeType==9?a:a.ownerDocument||a.document};
Scb=function(a){return a.contentDocument||a.contentWindow.document};
_.Vy=function(a,b){if("textContent"in a)a.textContent=b;else if(a.nodeType==3)a.data=String(b);else if(a.firstChild&&a.firstChild.nodeType==3){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=String(b)}else _.Ry(a),a.appendChild(_.Cf(a).createTextNode(String(b)))};
Tcb={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};Ucb={IMG:" ",BR:"\n"};nsa=function(a){var b;a.tagName=="A"&&a.hasAttribute("href")||a.tagName=="INPUT"||a.tagName=="TEXTAREA"||a.tagName=="SELECT"||a.tagName=="BUTTON"?b=!a.disabled&&(!a.hasAttribute("tabindex")||Vcb(a)):b=a.hasAttribute("tabindex")&&Vcb(a);return b};
Vcb=function(a){a=a.tabIndex;return typeof a==="number"&&a>=0&&a<32768};
Xcb=function(a){var b=[];Wcb(a,b,!0);a=b.join("");a=a.replace(/ \xAD /g," ").replace(/\xAD/g,"");a=a.replace(/\u200B/g,"");a=a.replace(/ +/g," ");a!=" "&&(a=a.replace(/^\s*/,""));return a};
Ycb=function(a){var b=[];Wcb(a,b,!1);return b.join("")};
Wcb=function(a,b,c){if(!(a.nodeName in Tcb))if(a.nodeType==3)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in Ucb)b.push(Ucb[a.nodeName]);else for(a=a.firstChild;a;)Wcb(a,b,c),a=a.nextSibling};
_.Zcb=function(a,b,c){if(!b&&!c)return null;var d=b?String(b).toUpperCase():null;return _.Ef(a,function(e){return(!d||e.nodeName==d)&&(!c||typeof e.className==="string"&&_.Pa(e.className.split(/\s+/),c))},!0)};
_.Ef=function(a,b,c){a&&!c&&(a=a.parentNode);for(c=0;a;){if(b(a))return a;a=a.parentNode;c++}return null};
Ly=function(a){this.JSC$7221_document_=a||_.ja.document||document};
$cb=function(a){return a.JSC$7221_document_};
_.f=Ly.prototype;_.f.getElement=function(a){return _.du(this.JSC$7221_document_,a)};
_.f.$=Ly.prototype.getElement;_.f.getElementsByTagName=function(a,b){return(b||this.JSC$7221_document_).getElementsByTagName(String(a))};
_.f.getElementsByTagNameAndClass=function(a,b,c){return My(this.JSC$7221_document_,a,b,c)};
_.f.$$=Ly.prototype.getElementsByTagNameAndClass;_.f.setProperties=Ecb;_.f.JSC$7223_createDom=function(a,b,c){return Gcb(this.JSC$7221_document_,arguments)};
_.f.createElement=function(a){return Hcb(this.JSC$7221_document_,a)};
_.f.createTextNode=function(a){return this.JSC$7221_document_.createTextNode(String(a))};
_.f.getWindow=function(){return this.JSC$7221_document_.defaultView};
var qf=function(a){return _.Fcb(a.JSC$7221_document_)};
_.f=Ly.prototype;_.f.appendChild=function(a,b){a.appendChild(b)};
_.f.append=Jcb;_.f.canHaveChildren=Qy;_.f.removeNode=_.mg;_.f.getChildren=_.Uy;_.f.contains=_.Gg;_.f=nf.prototype;_.f.getWidth=function(){return this.right-this.left};
_.f.getHeight=function(){return this.bottom-this.top};
_.f.clone=function(){return new nf(this.top,this.right,this.bottom,this.left)};
_.f.contains=function(a){return this&&a?a instanceof nf?a.left>=this.left&&a.right<=this.right&&a.top>=this.top&&a.bottom<=this.bottom:a.x>=this.left&&a.x<=this.right&&a.y>=this.top&&a.y<=this.bottom:!1};
_.f.expand=function(a,b,c,d){_.$a(a)?(this.top-=a.top,this.right+=a.right,this.bottom+=a.bottom,this.left-=a.left):(this.top-=a,this.right+=Number(b),this.bottom+=Number(c),this.left-=Number(d));return this};
_.f.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};
_.f.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};
_.f.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};
_.f.translate=function(a,b){a instanceof _.Af?(this.left+=a.x,this.right+=a.x,this.top+=a.y,this.bottom+=a.y):(this.left+=a,this.right+=a,typeof b==="number"&&(this.top+=b,this.bottom+=b));return this};
_.f.scale=function(a,b){b=typeof b==="number"?b:a;this.left*=a;this.right*=a;this.top*=b;this.bottom*=b;return this};var gga=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(gga,_.Xc);gga.prototype.getVersion=function(){return _.Ox(this,2)};var fga=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(fga,_.Xc);var $fa=function(a,b){return _.sf(a,2,b)},ega=function(a,b){return _.sf(a,3,b)};
fga.prototype.getModel=function(){return _.Ox(this,4)};
var bga=function(a,b){return _.sf(a,4,b)},Zfa=function(a,b){return _.sf(a,5,b)},dga=function(a,b){return _.sf(a,9,b)},Yfa=function(a,b){return Fx(a,10,b)},Xfa=function(a,b){return _.cg(a,11,b)},aga=function(a,b){return _.sf(a,1,b)},cga=function(a,b){return _.cg(a,7,b)};var Vfa="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var Qf=function(a,b,c,d){a=a===void 0?window:a;b=b===void 0?null:b;c=c===void 0?new Bab:c;d=d===void 0?Ofa():d;rbb.call(this);var e=this;this.global=a;this.debugChannel=b;this.performanceMonitor=c;this.onPageHide=Eea(function(){return Fe(e.global,"pagehide")}).pipe(Me(this.performanceMonitor,941));
this.onLoad=Eea(function(){return Fe(e.global,"load")}).pipe(Me(this.performanceMonitor,738),Qe(1));
this.onResize=Eea(function(){return Fe(e.global,"resize")}).pipe(Me(this.performanceMonitor,741));
this.onMessage=Eea(function(){return Fe(e.global,"message")}).pipe(Me(this.performanceMonitor,740));
this.document=new Ky(this.global,this);this.timeProvider=new xbb(new zbb(this.intrinsicFunctionNamespace,this.performanceMonitor),new ybb(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new ubb(new Bbb(this),new rcb(this),new wy(this,new Ebb(this)),new wy(this,new ucb(this)),new wy(this,new Iy(this)))};
_.z(Qf,rbb);var zy=function(a){var b=a.global;return!!a.global.HTMLFencedFrameElement&&!!b.fence&&typeof b.fence.reportEvent==="function"};
_.f=Qf.prototype;_.f.reportFencedFrameEvent=function(a){zy(this)&&this.global.fence.reportEvent(a)};
_.f.getOnBackgrounded=function(){return this.onPageHide.pipe(Me(this.performanceMonitor,942),jf(this.queue),Ae(function(){}))};
_.f.postMessage=function(a,b,c){c=c===void 0?[]:c;this.global.postMessage(a,b,c)};
_.f.getWidth=function(){return Iha(this.global)?this.global.width:0};
_.f.getHeight=function(){return Iha(this.global)?this.global.height:0};
_.f.isMobile=function(){return Gbb()||Hbb()};
var Gf=function(a,b){try{var c=Sfa(b,a.global,a.isMobile());return{left:c.left,top:c.top,width:c.getWidth(),height:c.getHeight()}}catch(d){return Jf}};
Qf.prototype.validate=function(){var a=this.beaconFactory.isSupported()||zy(this);return this.global&&this.timeProvider.available()&&a};
var sfa=function(a){return(a=iga(a.global))?le(a):null};
_.Vm.Object.defineProperties(Qf.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(a){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!Iha(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}}});_.adb=!_.sx&&!_.jaa();var bia=function(a){return a};var dia=function(a){return a.pipe(Ie(function(b){var c=b.endOfSessionReason;var d;return((d=b.viewable)==null?void 0:d.extrapolateToNow().value)||c!=void 0}),Qe(1),Oe())};var pga=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},qga=function(a){var b=a.sequenceNumber.toString(10).padStart(2,"0");
b=""+a.startTime+b;a.sequenceNumber<99&&a.sequenceNumber++;return b};var Zha=he(bf(function(a){return a.endOfSessionReason===void 0}),Ae(function(a){return Object.assign({},a,{timestamps:uf(a)})}),Ie(function(a){var b=a.viewable;
a=a.timestamps;var c;return(c=b==null?void 0:b.extrapolateUsingTimestampMap(a).value)!=null?c:!1}),Ae(function(a){var b=a.beaconFactory;
var c=a.timestampedExposureHistory;var d=a.timeOnScreen;var e=a.binaryContext;a=a.timestamps;if(b===void 0||c===void 0||d===void 0||e===void 0)return!1;if(d.extrapolateUsingTimestampMap(a).value.every(function(g){return g>=0}))return!0;
c=c.map(function(g){return g.timestamp+":"+g.value}).join(",");
d=rga({bin:e,tos:d},a);b.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+d+("&eh="+c)).sendNow();return!0}),bf(function(a){return!a}),Oe());var tga=function(a){return{id:a.pingId,mcvt:a.maxConsecutiveViewTime,p:a.creativePosition,asp:a.adSpeedPosition,tm:a.totalMeasurementTime,tu:a.totalUnviewedTime,mtos:a.maxTimeOnScreen,tos:a.timeOnScreen,v:a.binaryVersion,bin:a.binaryContext,avms:a.measurementStrategy,bs:a.browserSize,mc:a.maximumExposure,"if":a.crossDomainIframeState,vu:a.delayedImpressionJsState,app:a.inApp,mse:a.mraidError,mtop:a.mraidSituation,itpl:a.injectedTemplateId,adk:a.adKey,exk:a.awbidKey,rs:a.requestSource,la:a.isLargeAd,
cr:a.isContentRecommendationAd,uach:a.userAgentClientHints,vs:a.viewState,r:a.reasonCode,pay:a.hasCpmavUrl,co:a.clientPingOrderCounter,rst:a.adRenderStartTime,rpt:a.adRenderPeriodTime,isd:a.initialScrollDepth,lsd:a.loadedScrollDepth,context:a.errorContext,msg:a.errorMessage,stack:a.errorStack,name:a.errorName,ec:a.hasElementChanged,sfr:a.strategyFailureReasons,met:a.creativeSearchResult,wmsd:a.webMeasurementStartDiagnostic,pv:a.pageVisible,epv:a.eosPageVisible,pbe:a.inStatefulBeaconExperiment,fle:a.inFetchLaterBeaconExperiment,
vae:a.inViewableAttributionExperiment,spb:a.supportsPendingBeacon,sfl:a.supportsFetchLater,ffslot:a.isFencedFrameSlotTurtlex,reach:a.sharedStorageReachMode,io2:a.v2VisibilityBitVector,rxdbg:a.rxDebugger,omida:a.omidAppId,omidp:a.omidPartner,omidpv:a.omidPartnerVersion,omidor:a.omidOcclusionReasons,omidv:a.omidVersion,omids:a.omidSessionType,omidam:a.omidAccessMode,omidct:a.omidCreativeType,omidia:a.omidInApp,omiddc:a.omidDeviceCategory,omidlat:a.omidLastActivity,omiddit:a.omidDeviceIdleTime,qid:a.errorEscapedQueryId}};var cia=function(a){var b=[];return a.pipe(Ae(function(c){var d=c.beaconFactory,e=c.fetchBeaconFactory,g=c.timeOnScreen,k=c.timeOnScreenUrlPrefixes,m=c.payloadMapper,n=c.timeOnScreenPingId,r=c.timeOnScreenReason,t=c.urlSerializer,u=c.viewable,w=c.hasImpressionFired,A=c.inStatefulBeaconExperiment,C=c.supportsPendingBeacon,G=c.supportsFetchLater,J=c.turtlexReportEventData;if(!c.geometryMeasurable||!w||c.maxTimeOnScreen===void 0||g===void 0||k===void 0||m===void 0||n===void 0||t===void 0||d===void 0)return!1;
if(c.isTurtlex){if(r===void 0)return!1;k=c.reportFencedFrameEvent;if(!k)return!1;k({eventType:"active-view-time-on-screen",eventData:J!=null?J:"",destination:["buyer"]});return!0}if(!(A||G||r))return!1;J=uf(c);var I;u=(I=u==null?void 0:u.extrapolateUsingTimestampMap(J).value)!=null?I:!1;I=t(Object.assign({},c,{pingId:n,viewState:u?4:3,reasonCode:r!=null?r:"u",payloadMapper:m,urlPrefixes:k}),J);if(A){for(;b.length>k.length;)c=void 0,(c=b.shift())==null||c.deactivate();I.forEach(function(ca,V){V>=b.length?
b.push(d.makeBeacon(ca)):b[V].url=ca});
return C&&e&&r!==void 0?(I.forEach(function(ca){e.makeBeacon(ca).sendNow()}),!0):r!==void 0}if(C&&e&&r!==void 0)return I.forEach(function(ca){e.makeBeacon(ca).sendNow()}),!0;
if(G&&e){for(;b.length>k.length;)C=void 0,(C=b.shift())==null||C.deactivate();var R=t(Object.assign({},c,{pingId:n,viewState:u?4:3,reasonCode:r!=null?r:"u",payloadMapper:m,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),J)[0];I.forEach(function(ca,V){V>=b.length?b.push(d.makeBeacon(R,{endOfSession:!0})):b[V].url=R});
return r!==void 0?(I.forEach(function(ca){e.makeBeacon(ca).sendNow()}),!0):r!==void 0}return r!==void 0?(I.forEach(function(ca){d.makeBeacon(ca).sendNow()}),!0):!1}),bf(function(c){return!c}),Oe())};var eia=he(Ie(function(a){return a.immediateUrlPrefixes!==void 0&&a.payloadMapper!==void 0&&a.urlSerializer!==void 0&&a.inferredPingId!==void 0&&a.beaconFactory!==void 0}),Ie(function(a){return Bga(a)!==null}),zga(function(a){return a.activeViewUnmeasurableEvent},function(a){return a.emit}),Ae(function(a){if(a.isTurtlex){var b=a.reportFencedFrameEvent;
if(b){var c;b({eventType:"active-view-unmeasurable",eventData:(c=a.turtlexReportEventData)!=null?c:"",destination:["buyer"]})}}else{c=void 0;var d=Bga(a);if(d==="x"){var e,g=(e=a.geometricMeasurementErrors)!=null?e:a.contextValidationErrors;g&&(b=g.stack,c=g.message)}a.urlSerializer(Object.assign({},a,{urlPrefixes:a.immediateUrlPrefixes,payloadMapper:a.payloadMapper,pingId:a.inferredPingId,viewState:2,reasonCode:d,errorMessage:c,errorStack:b}),uf(a)).forEach(function(k){a.beaconFactory.makeBeacon(k).sendNow()})}}),
Qe(1),Oe());var Cga=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var Yha=he(Ie(function(a){return a.payloadMapper!==void 0&&a.immediateUrlPrefixes!==void 0&&a.urlSerializer!==void 0&&a.inferredPingId!==void 0&&a.beaconFactory!==void 0}),Ae(function(a){return Object.assign({},a,{timestamps:uf(a)})}),Ie(function(a){var b=a.viewable;
var c=a.hasImpressionFired;a=a.timestamps;var d;return!!c&&((d=b==null?void 0:b.extrapolateUsingTimestampMap(a).value)!=null?d:!1)}),zga(function(a){return a.activeViewViewableEvent},function(a){return a.emit}),Ae(function(a){var b=a.beaconFactory,c=a.turtlexReportEventData;
if(a.isTurtlex){var d=a.reportFencedFrameEvent;if(!d)return!1;d({eventType:"active-view-viewable",eventData:c!=null?c:"",destination:["buyer"]});return!0}c=a.urlSerializer(Object.assign({},a,{urlPrefixes:a.immediateUrlPrefixes,payloadMapper:a.payloadMapper,pingId:a.inferredPingId,viewState:4,reasonCode:"v"}),a.timestamps);(d=a.cpmavUrls)&&d.length>0&&a.viewUrlSerializer&&a.viewUrlSerializer(d,a).forEach(function(e){b.makeBeacon(e).sendNow()});
(d=a.viewableRelayUrls)&&d.length>0&&a.viewUrlSerializer&&a.viewUrlSerializer(d,a).forEach(function(e){b.makeBeacon(e).sendNow()});
c.forEach(function(e){b.makeBeacon(e,{attributionEnabled:a.isViewableAttributionEnabled}).sendNow()});
return!0}),bf(function(a){return!a}),Oe());var tha=Ae(function(a){return[a.value.topWindowViewportExternalGeometry.width,a.value.topWindowViewportExternalGeometry.height]});var Hf=function(a,b){this.callback=a;this.options=b;this.intersectionObserverV2=this.intersectionObserverV1=null},cha=function(a,b){b?a.intersectionObserverV2||(b=Object.assign({},a.options,{delay:100,
trackVisibility:!0}),a.intersectionObserverV2=new IntersectionObserver(a.callback,b)):a.intersectionObserverV1||(a.intersectionObserverV1=new IntersectionObserver(a.callback,a.options))},bdb=function(a,b){a=b?a.intersectionObserverV2:a.intersectionObserverV1;
if(!a)throw new sbb;return a};
Hf.prototype.observe=function(a,b){bdb(this,a).observe(b)};
Hf.prototype.unobserve=function(a,b){bdb(this,a).unobserve(b)};
Hf.prototype.disconnect=function(a){bdb(this,a).disconnect()};
Hf.prototype.takeRecords=function(a){return bdb(this,a).takeRecords()};var Rga={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:Jf,topWindowViewportExternalGeometry:Jf,measurementRequests:new gf,elementGeometrySourceName:"ns",elementGeometry:Jf,intersectionGeometry:Jf,viewportLocalAppOffset:{x:0,y:0}};var Wy=function(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d};
_.f=Wy.prototype;_.f.clone=function(){return new Wy(this.left,this.top,this.width,this.height)};
_.f.boundingRect=function(a){var b=Math.max(this.left+this.width,a.left+a.width),c=Math.max(this.top+this.height,a.top+a.height);this.left=Math.min(this.left,a.left);this.top=Math.min(this.top,a.top);this.width=b-this.left;this.height=c-this.top};
_.f.contains=function(a){return a instanceof _.Af?a.x>=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height:this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height};
_.f.distance=function(a){var b=a.x<this.left?this.left-a.x:Math.max(a.x-(this.left+this.width),0);a=a.y<this.top?this.top-a.y:Math.max(a.y-(this.top+this.height),0);return Math.sqrt(b*b+a*a)};
_.f.getSize=function(){return new _.of(this.width,this.height)};
_.f.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};
_.f.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};
_.f.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};
_.f.translate=function(a,b){a instanceof _.Af?(this.left+=a.x,this.top+=a.y):(this.left+=a,typeof b==="number"&&(this.top+=b));return this};
_.f.scale=function(a,b){b=typeof b==="number"?b:a;this.left*=a;this.width*=a;this.top*=b;this.height*=b;return this};var ddb,Zy,Pga,Yy,hdb,gdb,idb,gya,jdb,ldb;_.Xy=function(a,b,c){if(typeof b==="string")(b=_.cdb(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],g=_.cdb(c,d);g&&(c.style[g]=e)}};
ddb={};_.cdb=function(a,b){var c=ddb[b];if(!c){var d=_.qn(b);c=d;a.style[d]===void 0&&(d=(_.ux?"Webkit":_.tx?"Moz":null)+cbb(d),a.style[d]!==void 0&&(c=d));ddb[b]=c}return c};
_.mv=function(a,b){var c=_.Cf(a);return c.defaultView&&c.defaultView.getComputedStyle&&(a=c.defaultView.getComputedStyle(a,null))?a[b]||a.getPropertyValue(b)||"":""};
_.Fg=function(a,b){return _.mv(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]};
_.edb=function(a){return _.Fg(a,"position")};
Zy=function(a,b,c){if(b instanceof _.Af){var d=b.x;b=b.y}else d=b,b=c;a.style.left=Yy(d,!1);a.style.top=Yy(b,!1)};
Pga=function(a){try{return a.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}};
_.Df=function(a){var b=_.Cf(a),c=new _.Af(0,0);if(a==(b?_.Cf(b):document).documentElement)return c;a=Pga(a);b=qf(rf(b));c.x=a.left+b.x;c.y=a.top+b.y;return c};
_.fdb=function(a,b,c){if(b instanceof _.of)c=b.height,b=b.width;else if(c==void 0)throw Error("va");a.style.width=Yy(b,!0);a.style.height=Yy(c,!0)};
Yy=function(a,b){typeof a=="number"&&(a=(b?Math.round(a):a)+"px");return a};
hdb=function(a){return gdb(a)};
gdb=function(a){var b=idb;if(_.Fg(a,"display")!="none")return b(a);var c=a.style,d=c.display,e=c.visibility,g=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=d;c.position=g;c.visibility=e;return a};
idb=function(a){var b=a.offsetWidth,c=a.offsetHeight,d=_.ux&&!b&&!c;return(b===void 0||d)&&a.getBoundingClientRect?(a=Pga(a),new _.of(a.right-a.left,a.bottom-a.top)):new _.of(b,c)};
gya=function(a){var b=_.Df(a);a=gdb(a);return new Wy(b.x,b.y,a.width,a.height)};
jdb=function(a,b){a=a.style;"opacity"in a?a.opacity=b:"MozOpacity"in a?a.MozOpacity=b:"filter"in a&&(a.filter=b===""?"":"alpha(opacity="+Number(b)*100+")")};
_.Mg=function(a,b){a.style.display=b?"":"none"};
_.kdb=function(a){return"rtl"==_.Fg(a,"direction")};
ldb=function(a){var b=_.mv(a,"marginLeft"),c=_.mv(a,"marginRight"),d=_.mv(a,"marginTop");a=_.mv(a,"marginBottom");return new nf(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))};
_.mdb=function(a){var b=_.mv(a,"borderLeftWidth"),c=_.mv(a,"borderRightWidth"),d=_.mv(a,"borderTopWidth");a=_.mv(a,"borderBottomWidth");return new nf(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))};var ndb=function(a){return a.intersectionGeometry.width*a.intersectionGeometry.height/(a.elementGeometry.width*a.elementGeometry.height)},iha=Kf(he(Ae(function(a){var b;
return(b=a.exposureOverride)!=null?b:ndb(a)}),Ae(function(a){return isFinite(a)?a:0}))),pha=Kf(he(Ae(function(a){var b;
return(b=a.exposureOverride)!=null?b:ndb(a)}),Ae(function(a){return isFinite(a)?a:-1})));var $y=function(a,b){this.a=a;this.b=b;if(a.clock.timeline!==b.clock.timeline)throw Error();};
$y.prototype.equivalentTo=function(a){return a instanceof $y?this.a.equivalentTo(a.a)&&this.b.equivalentTo(a.b):!1};
$y.prototype.extrapolateToTime=function(a){var b=this.a.extrapolateToTime(a).value,c=this.b.extrapolateToTime(a).value;return{timestamp:a,value:[b,c]}};
_.Vm.Object.defineProperties($y.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 a=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),b=this.a.lastMeasurement.timestamp.equals(a)?this.a.lastMeasurement.value:this.a.extrapolateToTime(a).value,c=this.b.lastMeasurement.timestamp.equals(a)?this.b.lastMeasurement.value:this.b.extrapolateToTime(a).value;return{timestamp:a,value:[b,c]}}}});var az=function(a,b){this.input=a;this.mapFunction=b;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
az.prototype.equivalentTo=function(a){return a instanceof az?this.input.equivalentTo(a.input)&&this.mapFunction===a.mapFunction:!1};
az.prototype.extrapolateToTime=function(a){a=this.input.extrapolateToTime(a);return{timestamp:a.timestamp,value:this.mapFunction(a.value)}};
_.Vm.Object.defineProperties(az.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var bz=function(){};
bz.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
bz.prototype.extrapolateUsingTimestampMap=function(a){var b=this.clock.timeline,c,d=(c=a.get(b))!=null?c:this.clock.now();a.set(b,d);return this.extrapolateToTime(d)};
bz.prototype.map=function(a){return new odb(this,a)};
bz.prototype.joinWith=function(a){return new pdb(this,a)};
var pdb=function(){$y.apply(this,arguments);this.map=bz.prototype.map;this.joinWith=bz.prototype.joinWith;this.extrapolateToNow=bz.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=bz.prototype.extrapolateUsingTimestampMap};
_.z(pdb,$y);var odb=function(){az.apply(this,arguments);this.map=bz.prototype.map;this.joinWith=bz.prototype.joinWith;this.extrapolateToNow=bz.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=bz.prototype.extrapolateUsingTimestampMap};
_.z(odb,az);var Nf=function(a,b){this.lastMeasurement=b;this.extrapolateToNow=bz.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=bz.prototype.extrapolateUsingTimestampMap;this.map=bz.prototype.map;this.joinWith=bz.prototype.joinWith;this.clock=a};
Nf.prototype.equivalentTo=function(a){return a.active};
Nf.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.Vm.Object.defineProperties(Nf.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var sha=Ae(function(a){if(a.value.viewportGeometrySourceName==="omid"){if(a.value.elementGeometrySourceName==="nio")return"omio";if(a.value.elementGeometrySourceName==="geo")return"omgeo"}return a.value.elementGeometrySourceName==="geo"||a.value.elementGeometrySourceName==="nio"?a.value.viewportGeometrySourceName:a.value.elementGeometrySourceName});var fha=he(Ie(function(a){return!isNaN(a)}),Ze(function(a,b){return isNaN(a)?b:Math.min(a,b)},NaN),Re());var jha=Kf(he(Ae(function(a){return a.intersectionGeometry.width*a.intersectionGeometry.height/(a.exposedViewportLocalGeometry.width*a.exposedViewportLocalGeometry.height)}),Ae(function(a){return isFinite(a)?Math.min(1,a):0})));var rha=he(Kf(Ae(function(a){a=a.exposureOverride?a.elementGeometry.width*a.elementGeometry.height*a.exposureOverride/(a.topWindowViewportExternalGeometry.width*a.topWindowViewportExternalGeometry.height):a.intersectionGeometry.width*a.intersectionGeometry.height/(a.topWindowViewportExternalGeometry.width*a.topWindowViewportExternalGeometry.height);return isFinite(a)?a:0})));var wha=function(a,b){var c=this;this.timeProvider=a;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=b.pipe(Re()).subscribe(function(d){yha(c);c.measurementRequestObserver=d})},zha=function(a,b){yha(a);
a.lastMeasurementRequest=a.timeProvider.setTimeout(function(){var c;return void((c=a.measurementRequestObserver)==null?void 0:c.next())},b)},yha=function(a){a.lastMeasurementRequest!==null&&a.timeProvider.clearTimeout(a.lastMeasurementRequest);
a.lastMeasurementRequest=null};
wha.prototype.dispose=function(){yha(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var qdb=function(){};var Vha=function(a,b){this.context=a;this.strategies=b};
_.z(Vha,qdb);Vha.prototype.buildGeometrySource=function(a,b){var c=this.strategies.map(function(g){return g.buildGeometrySource(a,b)}),d=Eha(c.map(function(g){return g.geometrySource})),e=d.capturedErrors.pipe(rdb());
return{geometrySource:d.chain.pipe(jf(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:e,strategyErrors:d.capturedErrors}].concat(_.Be(c.map(function(g){return g.additionalOutputs}))))}};
var rdb=function(){return Ze(function(a,b){b instanceof wf?a.push(b.measurementStrategyFailureReason):a.push(-1);return a},[])};var Xha=function(a,b){this.context=a;this.poller=b};
_.z(Xha,qdb);Xha.prototype.buildGeometrySource=function(a,b){var c=Fha(Hha(this.context,this.poller),Sga(this.context,b.requestSource));return{geometrySource:Dha(a.measurableCreative.pipe(c),b.inApp),additionalOutputs:{}}};var Wha=function(a,b,c){c=c===void 0?Yga(a,b):c;this.context=a;this.intersectionObserverStrategy=c};
_.z(Wha,qdb);Wha.prototype.buildGeometrySource=function(a,b){var c=this.intersectionObserverStrategy(b.useV2);return{geometrySource:Dha(a.measurableCreative.pipe(c,Zga(this.context)),b.inApp),additionalOutputs:{}}};var sdb=function(a,b,c){var d=d===void 0?Symbol():d;this.element=a;this.immediateUrls=b;this.timeOnScreenUrls=c;this.symbol=d};var vha=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),Nha=Object.freeze([1,.75,vha.exposureThreshold,vha.largeAdExposureThreshold,0]);var g0a=function(a){var b=b===void 0?36E5:b;var c=c===void 0?!0:c;this.creatives=new gf;this.elementsToUnregister=new gf;this.elementMap=new Map;var d=new Qf(window,null);d.beaconFactory=new wy(d,new Iy(d));Uha(d,this.creatives,this.elementsToUnregister,a,b,c).subscribe()},i0a=function(a,b,c,d){if(!a.elementMap.has(b)){var e=new Ff(b);
a.elementMap.set(b,e);a.creatives.next(new sdb(e,c,d))}},h0a=function(a,b){a.elementsToUnregister.next(b);
var c=a.elementMap.get(b);c!==void 0&&(c.release(),a.elementMap.delete(b))};var Qra=function(a){var b=a.url;a=a.uaDataValues;this.JSC$7332_url_=b;this.uaDataValues_=a;this.suid_=(new Date).getTime()-17040672E5},Rra=function(a){a=a.uaDataValues_;
if(!a)return"";var b=Sf("uap",a.platform)+Sf("uapv",a.platformVersion)+Sf("uafv",a.uaFullVersion)+Sf("uaa",a.architecture)+Sf("uam",a.model)+Sf("uab",a.bitness);a.fullVersionList&&(b+="&uafvl="+encodeURIComponent(a.fullVersionList.map(function(c){return encodeURIComponent(c.brand)+";"+encodeURIComponent(c.version)}).join("|")));
a.wow64!=null&&(b+="&uaw="+Number(a.wow64));return b.slice(1)};var tdb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(tdb,_.Xc);tdb.prototype.getId=function(){return _.Ox(this,1)};var cz=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(cz,_.Xc);cz.prototype.getSeconds=function(){return Mx(this,1)};
cz.prototype.setSeconds=function(a){return _.Qc(this,1,hc(a),"0")};_.Wv=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(_.Wv,_.Xc);_.Wv.prototype.getSeconds=function(){return Mx(this,1)};
_.Wv.prototype.setSeconds=function(a){return _.Qc(this,1,hc(a),"0")};
_.udb=function(a){var b=Number(Qx(a,1));a=_.Xf(a,2);return new Date(b*1E3+a/1E6)};var dz=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(dz,_.Xc);dz.prototype.getUrl=function(){return _.Ox(this,1)};
dz.prototype.setUrl=function(a){return _.ew(this,1,a)};
dz.prototype.getHeight=function(){return _.Xf(this,2)};
dz.prototype.getWidth=function(){return _.Xf(this,3)};var ez=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(ez,_.Xc);ez.prototype.getAspectRatio=function(){return Nx(this,1)};
ez.prototype.setAspectRatio=function(a){return _.Qc(this,1,_.Ub(a),0)};
ez.prototype.getDuration=function(){return _.Xj(this,cz,2)};var vdb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(vdb,_.Xc);var wdb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(wdb,_.Xc);var xdb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(xdb,_.Xc);var ydb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(ydb,_.Xc);var zdb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(zdb,_.Xc);var Adb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(Adb,_.Xc);var Bdb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(Bdb,_.Xc);var Cdb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(Cdb,_.Xc);var Ddb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(Ddb,_.Xc);var fz=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(fz,_.Xc);var gz=[2,4,5,6,7];var Edb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(Edb,_.Xc);var Gx=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(Gx,_.Xc);_.f=Gx.prototype;_.f.getId=function(){return _.Xj(this,tdb,1)};
_.f.getName=function(){return _.Ox(this,2)};
_.f.setDescription=function(a){return _.ew(this,3,a)};
_.f.getType=function(){return _.Px(this,6)};
_.f.getUrl=function(){return _.Ox(this,8)};
_.f.setUrl=function(a){return _.ew(this,8,a)};
var hz=function(a){return _.Vf(a,dz,10,_.Wf())};
Gx.prototype.getOwner=function(a){var b=_.Mc(this,40,_.oc,3,!0);Taa(b,a);return b[a]};
Gx.prototype.getVersion=function(){return Mx(this,45)};
var iz=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(iz,_.Xc);_.Fdb=[0,p$a,r$a];_.Gdb=[0,p$a,r$a];var Hdb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(Hdb,_.Xc);var jz=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(jz,_.Xc);jz.prototype.getStatus=function(){return _.Px(this,1)};
jz.prototype.removeItem=function(a){return I9a(this,2,a)};var Idb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(Idb,_.Xc);Idb.prototype.getName=function(){return _.Ox(this,8)};var kz=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(kz,_.Xc);kz.prototype.getCommand=function(){return _.Px(this,1)};
kz.prototype.getSource=function(){return _.Xj(this,Idb,2)};
kz.prototype.setVisible=function(a){return _.Bn(this,5,a)};
kz.prototype.removeItem=function(a){return I9a(this,7,a)};var Jdb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(Jdb,_.Xc);Jdb.prototype.getCommand=function(){return _.Px(this,1)};
Jdb.prototype.removeItem=function(a){return I9a(this,4,a)};
var Kdb=_.kd(Jdb);var lz=function(a,b,c){c=c===void 0?Error():c;var d=Error.call(this);this.message=d.message;"stack"in d&&(this.stack=d.stack);this.code=a;b+=":";c instanceof Error?(this.message=b+c.message,this.stack=c.stack||""):(this.message=b+String(c),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.z(lz,Error);_.tg=function(){this.JSC$7390_disposed_=this.JSC$7390_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.tg.prototype.JSC$7390_disposed_=!1;_.tg.prototype.isDisposed=function(){return this.JSC$7390_disposed_};
_.tg.prototype.dispose=function(){this.JSC$7390_disposed_||(this.JSC$7390_disposed_=!0,this.disposeInternal())};
_.tg.prototype[Symbol.dispose]=function(){this.dispose()};
_.gg=function(a,b){a.addOnDisposeCallback(_.vo(_.Tf,b))};
_.tg.prototype.addOnDisposeCallback=function(a,b){this.JSC$7390_disposed_?b!==void 0?a.call(b):a():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),b&&(a=a.bind(b)),this.onDisposeCallbacks_.push(a))};
_.tg.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var mz=function(a){_.tg.call(this);this.wpc=a};
_.z(mz,_.tg);mz.prototype.d7a=function(){return this.wpc.f()};
mz.prototype.cNb=function(a){return this.wpc.c(a)};
mz.prototype.gK=function(a){return this.wpc.m(lia(a))};
mz.prototype.v8=function(a){return this.wpc.mws(lia(a))};
var Uf=function(a){_.tg.call(this);var b=this;this.qc=a;this.khc="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.vcb=void 0;this.gba=this.qc.p;this.tzc=this.ppa.bind(this);this.addOnDisposeCallback(function(){return void Ldb(b)})};
_.z(Uf,_.tg);var Mdb=function(a){var b;return _.l(function(c){if(c.nextAddress==1){if(!a.qc.wpc)throw new lz(30,"NWA");return a.cXa?c.return(a.cXa):_.p(c,a.qc.wpc(),2)}b=c.yieldResult;a.cXa=new mz(b);return c.return(a.cXa)})};
Uf.prototype.snapshot=function(a){return this.qc.s(Object.assign({},a.aw&&{c:a.aw},a.rPa&&{s:a.rPa},a.vpb!==void 0&&{p:a.vpb}))};
Uf.prototype.ppa=function(a){this.qc.e(a)};
Uf.prototype.jBa=function(a,b){return this.qc.c(a,b,!1)};
var Ldb=function(a){a.vcb!==void 0&&(a.khc.forEach(function(b){var c;(c=a.vcb)==null||c.removeEventListener(b,a.tzc)}),a.vcb=void 0)};
Uf.prototype.esa=function(){return this.qc.l()};var Ndb,nz=function(){_.tg.apply(this,arguments);this.d7b=1;this[Ndb]=this.dispose};
_.z(nz,_.tg);nz.prototype.share=function(){if(this.isDisposed())throw Error("wa");this.d7b++;return this};
nz.prototype.dispose=function(){--this.d7b||_.tg.prototype.dispose.call(this)};
Ndb=Symbol.dispose;var Hia=function(a){this.yoc=a;a.addNewEventMetric("/client_streamz/bg/frs",_.bg("mk"))};
Hia.prototype.record=function(a,b){this.yoc.record("/client_streamz/bg/frs",a,b)};
var Lia=function(a){this.zoc=a;a.addNewEventMetric("/client_streamz/bg/wrl",_.bg("mn"),ag("ac"),ag("sc"),_.bg("rk"),_.bg("mk"))};
Lia.prototype.record=function(a,b,c,d,e,g){this.zoc.record("/client_streamz/bg/wrl",a,b,c,d,e,g)};
var Jia=function(a){this.apc=a;a.addNewCounter("/client_streamz/bg/ec",_.bg("en"),_.bg("mk"))};
Jia.prototype.increment=function(a,b){this.apc.JSC$7639_incrementCounter("/client_streamz/bg/ec",a,b)};
var Kia=function(a){this.bpc=a;a.addNewEventMetric("/client_streamz/bg/el",_.bg("en"),_.bg("mk"))};
Kia.prototype.record=function(a,b,c){this.bpc.record("/client_streamz/bg/el",a,b,c)};
var Iia=function(a){this.cpc=a;a.addNewCounter("/client_streamz/bg/cec",ag("ec"),_.bg("mk"))};
Iia.prototype.increment=function(a,b){this.cpc.JSC$7639_incrementCounter("/client_streamz/bg/cec",a,b)};
var Mia=function(a){this.dpc=a;a.addNewCounter("/client_streamz/bg/po/csc",ag("cs"),_.bg("mk"))};
Mia.prototype.increment=function(a,b){this.dpc.JSC$7639_incrementCounter("/client_streamz/bg/po/csc",a,b)};
var Nia=function(a){this.epc=a;a.addNewCounter("/client_streamz/bg/po/ctav",_.bg("av"),_.bg("mk"))};
Nia.prototype.increment=function(a,b){this.epc.JSC$7639_incrementCounter("/client_streamz/bg/po/ctav",a,b)};
var Oia=function(a){this.fpc=a;a.addNewCounter("/client_streamz/bg/po/cwsc",_.bg("su"),_.bg("mk"))};
Oia.prototype.increment=function(a,b){this.fpc.JSC$7639_incrementCounter("/client_streamz/bg/po/cwsc",a,b)};var Wia=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(Wia,_.Xc);var Via=function(a,b){return _.Oc(a,3,b,nba)};var Odb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(Odb,_.Xc);var Pdb=[1,2,3];var Qdb=[0,Pdb,_.w$a,s$a,v$a];var Rdb=[0,_.ey,[0,m$a,_.$x]];var Sdb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(Sdb,_.Xc);var Tdb=[1,2,3];var Udb=[0,Tdb,q$a,n$a,_.fy,Rdb];var Vdb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(Vdb,_.Xc);var Wdb=[0,_.ey,Qdb,Udb];var Xdb=[0,[1,2,3],_.fy,[0,_.cy,-1,_.by],_.fy,[0,_.cy,-1,_.ay,_.by],_.fy,[0,_.cy]];var Ydb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(Ydb,_.Xc);Ydb.prototype.JSC$7459_serializeBinary=rda([0,_.cy,Xdb,x$a,_.ey,Wdb,t$a,u$a]);var Zdb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(Zdb,_.Xc);var beb=function(a){var b=new Ydb;b=_.sf(b,1,a.JSC$7575_metricName);var c=$db(a);b=_.Oc(b,3,c,_.lc);c=[];for(var d=[],e=_.h(a.cellMap.keys()),g=e.next();!g.done;g=e.next())d.push(g.value.split(","));for(e=0;e<d.length;e++){g=d[e];for(var k=a.cellType,m=a.getCells(g)||[],n=[],r=0;r<m.length;r++){var t=m[r],u=t&&t.cellValue;t=new Sdb;switch(k){case 3:u=Number(u);Number.isFinite(u)&&ll(t,1,Tdb,hc(u));break;case 2:ll(t,2,Tdb,_.Ub(Number(u)))}n.push(t)}k=n;for(m=0;m<k.length;m++){n=k[m];r=new Vdb;n=_.pd(r,
2,n);r=[];t=aeb(a);for(u=0;u<t.length;u++){var w=t[u],A=g[u],C=new Odb;switch(w){case 3:ll(C,1,Pdb,mc(String(A)));break;case 2:w=Number(A);Number.isFinite(w)&&ll(C,2,Pdb,_.ac(w));break;case 1:ll(C,3,Pdb,kba(A==="true"))}r.push(C)}Fx(n,1,r);c.push(n)}}Fx(b,4,c);return b};var ceb=function(a){if(!a)return"";if(/^about:(?:blank|srcdoc)$/.test(a))return window.origin||"";a.indexOf("blob:")===0&&(a=a.substring(5));a=a.split("#")[0].split("?")[0];a=a.toLowerCase();a.indexOf("//")==0&&(a=window.location.protocol+a);/^[\w\-]*:\/\//.test(a)||(a=window.location.href);var b=a.substring(a.indexOf("://")+3),c=b.indexOf("/");c!=-1&&(b=b.substring(0,c));c=a.substring(0,a.indexOf("://"));if(!c)throw Error("xa`"+a);if(c!=="http"&&c!=="https"&&c!=="chrome-extension"&&c!=="moz-extension"&&
c!=="file"&&c!=="android-app"&&c!=="chrome-search"&&c!=="chrome-untrusted"&&c!=="chrome"&&c!=="app"&&c!=="devtools")throw Error("ya`"+c);a="";var d=b.indexOf(":");if(d!=-1){var e=b.substring(d+1);b=b.substring(0,d);if(c==="http"&&e!=="80"||c==="https"&&e!=="443")a=":"+e}return c+"://"+b+a};var eeb=function(a,b,c){var d=String(_.ja.location.href);return d&&a&&b?[b,deb(ceb(d),a,c||null)].join(" "):null},deb=function(a,b,c){var d=[],e=[];
if((Array.isArray(c)?2:1)==1)return e=[b,a],_.Mi(d,function(m){e.push(m)}),feb(e.join(" "));
var g=[],k=[];_.Mi(c,function(m){k.push(m.key);g.push(m.value)});
c=Math.floor((new Date).getTime()/1E3);e=g.length==0?[c,b,a]:[g.join(":"),c,b,a];_.Mi(d,function(m){e.push(m)});
a=feb(e.join(" "));a=[c,a];k.length==0||a.push(k.join(""));return a.join("_")},feb=function(a){var b=tia();
b.update(a);return b.digestString().toLowerCase()};var oz=function(a){this.JSC$7470_document_=a||{cookie:""}},geb;
_.f=oz.prototype;_.f.isEnabled=function(){if(!_.ja.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};
_.f.set=function(a,b,c){var d=!1;if(typeof c==="object"){var e=c.sameSite;d=c.secure||!1;var g=c.domain||void 0;var k=c.path||void 0;var m=c.maxAge}if(/[;=\s]/.test(a))throw Error("za`"+a);if(/[;\r\n]/.test(b))throw Error("Aa`"+b);m===void 0&&(m=-1);c=g?";domain="+g:"";k=k?";path="+k:"";d=d?";secure":"";m=m<0?"":m==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+m*1E3)).toUTCString();this.JSC$7470_document_.cookie=a+"="+b+c+k+m+d+(e!=null?";samesite="+e:"")};
_.f.get=function(a,b){for(var c=a+"=",d=(this.JSC$7470_document_.cookie||"").split(";"),e=0,g;e<d.length;e++){g=_.ox(d[e]);if(g.lastIndexOf(c,0)==0)return g.slice(c.length);if(g==a)return""}return b};
_.f.remove=function(a,b,c){var d=this.containsKey(a);this.set(a,"",{maxAge:0,path:b,domain:c});return d};
_.f.getKeys=function(){return geb(this).keys};
_.f.getValues=function(){return geb(this).values};
_.f.isEmpty=function(){return!this.JSC$7470_document_.cookie};
_.f.getCount=function(){return this.JSC$7470_document_.cookie?(this.JSC$7470_document_.cookie||"").split(";").length:0};
_.f.containsKey=function(a){return this.get(a)!==void 0};
_.f.containsValue=function(a){for(var b=geb(this).values,c=0;c<b.length;c++)if(b[c]==a)return!0;return!1};
_.f.clear=function(){for(var a=geb(this).keys,b=a.length-1;b>=0;b--)this.remove(a[b])};
geb=function(a){a=(a.JSC$7470_document_.cookie||"").split(";");for(var b=[],c=[],d,e,g=0;g<a.length;g++)e=_.ox(a[g]),d=e.indexOf("="),d==-1?(b.push(""),c.push(e)):(b.push(e.substring(0,d)),c.push(e.substring(d+1)));return{keys:b,values:c}};
_.lj=new oz(typeof document=="undefined"?null:document);var ABa=function(){var a=_.ja.__SAPISID||_.ja.__APISID||_.ja.__3PSAPISID||_.ja.__1PSAPISID||_.ja.__OVERRIDE_SID;if(a)return!0;typeof document!=="undefined"&&(a=new oz(document),a=a.get("SAPISID")||a.get("APISID")||a.get("__Secure-3PAPISID")||a.get("__Secure-1PAPISID"));return!!a},heb=function(a,b,c,d){(a=_.ja[a])||typeof document==="undefined"||(a=(new oz(document)).get(b));
return a?eeb(a,c,d):null},sra=function(a){var b=ceb(String(_.ja.location.href)),c=[];
if(ABa()){b=b.indexOf("https:")==0||b.indexOf("chrome-extension:")==0||b.indexOf("chrome-untrusted://new-tab-page")==0||b.indexOf("moz-extension:")==0;var d=b?_.ja.__SAPISID:_.ja.__APISID;d||typeof document==="undefined"||(d=new oz(document),d=d.get(b?"SAPISID":"APISID")||d.get("__Secure-3PAPISID"));(d=d?eeb(d,b?"SAPISIDHASH":"APISIDHASH",a):null)&&c.push(d);b&&((b=heb("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",a))&&c.push(b),(a=heb("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",a))&&c.push(a))}return c.length==
0?null:c.join(" ")};var ieb=function(){this.minSize=1024};
ieb.prototype.compress=function(a){var b,c,d,e;return _.l(function(g){switch(g.nextAddress){case 1:return b=new CompressionStream("gzip"),c=(new Response(b.readable)).arrayBuffer(),d=b.writable.getWriter(),_.p(g,d.write((new TextEncoder).encode(a)),2);case 2:return _.p(g,d.close(),3);case 3:return e=Uint8Array,_.p(g,c,4);case 4:return g.return(new e(g.yieldResult))}})};
ieb.prototype.isSupported=function(a){return a<this.minSize?!1:typeof CompressionStream!=="undefined"};var jeb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(jeb,_.Xc);var pz=function(a,b){this.intervalMs=a;this.callback=b;this.enabled=!1;this.nowFn=function(){return _.mx()};
this.lastTimeMs=this.nowFn()};
pz.prototype.setInterval=function(a){this.intervalMs=a;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
pz.prototype.start=function(){var a=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){a.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
pz.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
pz.prototype.tick=function(){var a=this;if(this.enabled){var b=Math.max(this.nowFn()-this.lastTimeMs,0);b<this.intervalMs*.8?this.timer=setTimeout(function(){a.tick()},this.intervalMs-b):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var keb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(keb,_.Xc);var leb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(leb,_.Xc);var meb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(meb,_.Xc);meb.prototype.getTransmissionType=function(){return _.Px(this,1)};var wia=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(wia,_.Xc);wia.prototype.getVersion=function(){return _.Ox(this,2)};var qz=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(qz,_.Xc);var xia=function(a,b){Fx(a,1,b)};
qz.prototype.getModel=function(){return _.Ox(this,6)};
var neb=_.kd(qz);var oeb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(oeb,_.Xc);var uia=["platform","platformVersion","architecture","model","uaFullVersion"],yia=new qz,via=null;var peb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(peb,_.Xc);var qeb=function(a){return _.Yj(a,1,1)};var reb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,4,void 0,3)};
_.z(reb,_.Xc);_.rz=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,36,void 0,3)};
_.z(_.rz,_.Xc);_.rz.prototype.getExperimentIds=function(){return _.Xj(this,jeb,16)};var seb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,19,void 0,3)};
_.z(seb,_.Xc);seb.prototype.setLogSource=function(a){return _.Yj(this,2,a)};
seb.prototype.setScheduler=function(a){return _.Yj(this,10,a)};var ueb=function(a,b){this.isServiceWorkerScope=b=b===void 0?!1:b;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new seb;Number.isInteger(a)&&this.logRequest.setLogSource(a);b||(this.locale=document.documentElement.getAttribute("lang"));teb(this,new peb)};
ueb.prototype.setLogSource=function(a){this.logRequest.setLogSource(a);return this};
var teb=function(a,b){_.pd(a.logRequest,1,b);_.Px(b,1)||qeb(b);a.isServiceWorkerScope||(b=sz(a),_.Ox(b,5)||_.sf(b,5,a.locale));a.uach&&(b=sz(a),_.Xj(b,qz,9)||_.pd(b,9,a.uach))},veb=function(a,b){a.transmissionType=b},web=function(a){var b=b===void 0?uia:b;
var c=a.isServiceWorkerScope?void 0:Bf();c?zia(c,b).then(function(d){a.uach=neb(d!=null?d:"[]");d=sz(a);_.pd(d,9,a.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},sz=function(a){a=_.Xj(a.logRequest,peb,1);
var b=_.Xj(a,oeb,11);b||(b=new oeb,_.pd(a,11,b));return b};
ueb.prototype.build=function(a,b,c,d,e,g){b=b===void 0?0:b;c=c===void 0?0:c;d=d===void 0?null:d;e=e===void 0?0:e;g=g===void 0?0:g;if(!this.isServiceWorkerScope){var k=sz(this);var m=new meb;m=_.Yj(m,1,this.transmissionType);m=_.cg(m,2,this.isFinal);c=_.Tx(m,3,c>0?c:void 0);c=_.Tx(c,4,e>0?e:void 0);c=_.Tx(c,5,g>0?g:void 0);e=c.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;g=e[_.lb]|0;c=sb(c,g)?c:new c.constructor(uc(e,g,Cc,!0,!0));_.pd(k,10,c)}k=this.logRequest.clone();c=Date.now().toString();
k=_.Zj(k,4,hc(c));a=a.slice();a=Fx(k,3,a);d&&(k=new keb,d=_.Tx(k,13,d),k=new leb,d=_.pd(k,2,d),k=new reb,d=_.pd(k,1,d),d=_.Yj(d,2,9),_.pd(a,18,d));b&&_.sl(a,14,b);return a};dg.prototype.currBackoffCount_=0;dg.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
dg.prototype.getValue=function(){return this.currValue_};
var xeb=function(a){a.currBaseValue_=Math.min(a.maxValue_,a.currBaseValue_*a.backoffFactor_);a.currValue_=Math.min(a.maxValue_,a.currBaseValue_+(a.randomFactor_?Math.round(a.randomFactor_*(Math.random()-.5)*2*a.currBaseValue_):0));a.currBackoffCount_++};var C$a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,8,void 0,3)};
_.z(C$a,_.Xc);var yeb=_.kd(C$a);var D$a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(D$a,_.Xc);var tz=new E$a;var uz=function(a){_.tg.call(this);var b=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$7548_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$7548_sendBeaconApiEnabled=!1;this.logSource=a.logSource;this.getAuthHeaderValue=
a.getAuthHeaderValue||function(){};
this.logRequestBuilder=new ueb(a.logSource,a.isServiceWorkerScope);this.network=a.network||null;this.productID=a.productID||null;this.clearcutUrl=a.urlOverride||null;this.sessionIndex=a.sessionIndex||null;this.disableAutomaticFlush=a.disableAutomaticFlush||!1;this.logger=null;this.withCredentials=!a.disableWithCredentials;this.isServiceWorkerScope=a.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!Bf()&&!!Bf().navigator&&Bf().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(zeb())).searchParams&&!!(new URL(zeb())).searchParams.set;var c=qeb(new peb);teb(this.logRequestBuilder,c);this.flushBackoff=new dg(1E4,3E5,.1);a=Aeb(this,a.backgroundJobDeferrer);this.JSC$7548_flushTimer=new pz(this.flushBackoff.getValue(),a);this.backupTimer=new pz(6E5,a);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){Beb(b);
var d;(d=b.metalogService)==null||d.flush()}}),document.addEventListener("pagehide",function(){Beb(b);
var d;(d=b.metalogService)==null||d.flush()}))};
_.z(uz,_.tg);var Aeb=function(a,b){return a.isBrowserSupported?b?function(){b().then(function(){a.flush()})}:function(){a.flush()}:function(){}};
uz.prototype.disposeInternal=function(){Beb(this);this.JSC$7548_flushTimer.stop();this.backupTimer.stop();_.tg.prototype.disposeInternal.call(this)};
var Ceb=function(a){a.clearcutUrl||(a.clearcutUrl=zeb());try{return(new URL(a.clearcutUrl)).toString()}catch(b){return(new URL(a.clearcutUrl,Bf().location.origin)).toString()}};
uz.prototype.dispatch=function(a){if(a instanceof _.rz)this.log(a);else try{var b=new _.rz,c=a.serialize();var d=_.sf(b,8,c);this.log(d)}catch(e){vz(this,4,1)}};
var vz=function(a,b,c){a.metalogService&&a.metalogService.increment(b,c)};
uz.prototype.log=function(a){vz(this,2,1);if(this.isBrowserSupported){a=a.clone();var b=this.sequencePosition++;a=_.sl(a,21,b);this.componentId&&_.sf(a,26,this.componentId);b=a;if(Aba(_.Nc(b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,1))==null){var c=Date.now();c=Number.isFinite(c)?c.toString():"0";_.Zj(b,1,hc(c))}_.Hx(b,15)!=null||_.sl(b,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(c=this.experimentIds.clone(),_.pd(b,16,c));vz(this,1,1);b=this.pendingEvents.length-1E3+1;
b>0&&(this.pendingEvents.splice(0,b),this.numLogsDroppedSinceLastFlush+=b,vz(this,3,b));this.pendingEvents.push(a);this.disableAutomaticFlush||this.JSC$7548_flushTimer.enabled||this.JSC$7548_flushTimer.start()}};
uz.prototype.flush=function(a,b){var c=this;if(this.pendingEvents.length===0)a&&a();else if(this.JSC$7548_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,Deb(this);else{var d=Date.now();if(this.noFlushUntilMs>d&&this.startWaitingMs<d)b&&b("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?veb(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var e=this.pendingEvents.length,
g=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),k=this.getAuthHeaderValue();if(k&&this.lastFailedAuth===k)b&&b("stale-auth-token");else{this.pendingEvents=[];this.JSC$7548_flushTimer.enabled&&this.JSC$7548_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;d=g.serialize();var m;this.JSC$7548_compressor&&this.JSC$7548_compressor.isSupported(d.length)&&
(m=this.JSC$7548_compressor.compress(d));var n=Eeb(this,d,k),r=function(w){c.flushBackoff.reset();c.JSC$7548_flushTimer.setInterval(c.flushBackoff.getValue());if(w){var A=null;try{var C=JSON.stringify(JSON.parse(w.replace(")]}'\n","")));A=yeb(C)}catch(G){}A&&(w=Number(Mx(A,1,_.Ib("-1"))),w>0&&(c.startWaitingMs=Date.now(),c.noFlushUntilMs=c.startWaitingMs+w),Rba(A.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),A=tz.ctor?tz.getExtensionFn(A,tz.ctor,175237375,tz.JSC$6717_hasMessageId):tz.getExtensionFn(A,
175237375,null,tz.JSC$6717_hasMessageId),A=A===null?void 0:A)&&(A=_.Xf(A,1,-1),A!==-1&&(c.flushBackoff=new dg(A<1?1:A,3E5,.1),c.JSC$7548_flushTimer.setInterval(c.flushBackoff.getValue())))}a&&a();c.numRetriesSinceLastSuccessfulFlush=0},t=function(w,A){var C=_.Vf(g,_.rz,3,_.Wf());
var G=Number(Mx(g,14));xeb(c.flushBackoff);c.JSC$7548_flushTimer.setInterval(c.flushBackoff.getValue());w===401&&k&&(c.lastFailedAuth=k);G&&(c.numLogsDroppedSinceLastFlush+=G);A===void 0&&(A=c.isRetryable(w));A&&(c.pendingEvents=C.concat(c.pendingEvents),c.disableAutomaticFlush||c.JSC$7548_flushTimer.enabled||c.JSC$7548_flushTimer.start());vz(c,7,1);b&&b("net-send-failed",w);++c.numRetriesSinceLastSuccessfulFlush},u=function(){c.network&&c.network.send(n,r,t)};
m?m.then(function(w){vz(c,5,e);n.requestHeaders["Content-Encoding"]="gzip";n.requestHeaders["Content-Type"]="application/binary";n.body=w;n.bodyType=2;u()},function(){vz(c,6,e);
u()}):u()}}}};
var Eeb=function(a,b,c){c=c===void 0?null:c;var d=d===void 0?a.withCredentials:d;var e={},g=new URL(Ceb(a));c&&(e.Authorization=c);a.sessionIndex&&(e["X-Goog-AuthUser"]=a.sessionIndex,g.searchParams.set("authuser",a.sessionIndex));a.pageId&&(Object.defineProperty(e,"X-Goog-PageId",{value:a.pageId}),g.searchParams.set("pageId",a.pageId));return{url:g.toString(),body:b,bodyType:1,requestHeaders:e,requestType:"POST",withCredentials:d,timeoutMillis:a.timeoutMillis}},Beb=function(a){a.logRequestBuilder.isFinal=
!0;
a.flush();a.logRequestBuilder.isFinal=!1},Deb=function(a){Feb(a,function(b,c){b=new URL(b);
b.searchParams.set("format","json");var d=!1;try{d=Bf().navigator.sendBeacon(b.toString(),c.serialize())}catch(e){}d||(a.isSendBeaconSupported=!1);return d})},Feb=function(a,b){if(a.pendingEvents.length!==0){var c=new URL(Ceb(a));
c.searchParams.delete("format");var d=a.getAuthHeaderValue();d&&c.searchParams.set("auth",d);c.searchParams.set("authuser",a.sessionIndex||"0");for(d=0;d<10&&a.pendingEvents.length;++d){var e=a.pendingEvents.slice(0,32),g=a.logRequestBuilder.build(e,a.numLogsDroppedSinceLastFlush,a.numRetriesSinceLastSuccessfulFlush,a.productID,a.persistedLogRecoveredCount,a.persistedLogExpiredCount);if(!b(c.toString(),g)){++a.numRetriesSinceLastSuccessfulFlush;break}a.numLogsDroppedSinceLastFlush=0;a.numRetriesSinceLastSuccessfulFlush=
0;a.persistedLogRecoveredCount=0;a.persistedLogExpiredCount=0;a.pendingEvents=a.pendingEvents.slice(e.length)}a.JSC$7548_flushTimer.enabled&&a.JSC$7548_flushTimer.stop()}};
uz.prototype.isRetryable=function(a){return 500<=a&&a<600||a===401||a===0};
var zeb=function(){return"https://play.google.com/log?format=json&hasfast=true"};var Geb=function(){this.abortSupported=typeof AbortController!=="undefined"};
Geb.prototype.send=function(a,b,c){var d=this,e,g,k,m,n,r,t,u,w,A;return _.l(function(C){switch(C.nextAddress){case 1:return g=(e=d.abortSupported?new AbortController:void 0)?setTimeout(function(){e.abort()},a.timeoutMillis):void 0,_.me(C,2,3),k=Object.assign({},{method:a.requestType,
headers:Object.assign({},a.requestHeaders)},a.body&&{body:a.body},a.withCredentials&&{credentials:"include"},{signal:a.timeoutMillis&&e?e.signal:null}),_.p(C,fetch(a.url,k),5);case 5:m=C.yieldResult;if(m.status!==200){(n=c)==null||n(m.status);C.jumpTo(3);break}if((r=b)==null){C.jumpTo(7);break}return _.p(C,m.text(),8);case 8:r(C.yieldResult);case 7:case 3:_.oe(C);clearTimeout(g);_.qe(C,0);break;case 2:t=_.re(C);switch((u=t)==null?void 0:u.name){case "AbortError":(w=c)==null||w(408);break;default:(A=
c)==null||A(400)}C.jumpTo(3)}})};
Geb.prototype.getTransmissionType=function(){return 4};_.fg=function(a,b){_.tg.call(this);this.logSource=a;this.sessionIndex=b;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$7566_clearExperimentIds=this.productID=null;this.JSC$7566_sendBeaconApiEnabled=!1;this.pageId=null};
_.z(_.fg,_.tg);var Sia=function(a,b){a.buildLabel=b;return a},Ria=function(a,b){a.network=b;
return a},Uia=function(a,b){a.JSC$7566_clearExperimentIds=b},Qia=function(a){a.JSC$7566_sendBeaconApiEnabled=!0;
return a};
_.fg.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.fg.prototype.build=function(){this.network||(this.network=new Geb);var a=new uz({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:sra,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.gg(this,a);if(this.buildLabel){var b=this.buildLabel,c=sz(a.logRequestBuilder);
_.sf(c,7,b)}a.JSC$7548_compressor=new ieb;this.componentId&&(a.componentId=this.componentId);this.productID&&(a.productID=this.productID);this.pageId&&(a.pageId=this.pageId);this.JSC$7566_clearExperimentIds&&((c=this.JSC$7566_clearExperimentIds)?(a.experimentIds||(a.experimentIds=new jeb),b=a.experimentIds,c=c.serialize(),_.sf(b,4,c)):a.experimentIds&&_.Zj(a.experimentIds,4));this.JSC$7566_sendBeaconApiEnabled&&(a.JSC$7548_sendBeaconApiEnabled=a.isSendBeaconSupported);web(a.logRequestBuilder);this.network.setLogSource&&
this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(a);return a};var Xia=function(a,b,c,d,e,g,k){a=a===void 0?-1:a;b=b===void 0?"":b;c=c===void 0?"":c;d=d===void 0?!1:d;e=e===void 0?"":e;_.tg.call(this);this.logSource=a;this.componentId=b;g?b=g:(a=new _.fg(a,"0"),a.componentId=b,_.gg(this,a),c!==""&&(a.destinationUrl=c),d&&(a.serviceWorkerScopeEnabled=!0),e&&Sia(a,e),k&&Ria(a,k),b=a.build());this.JSC$7570_transport=b};
_.z(Xia,_.tg);Xia.prototype.flush=function(a){a=a||[];if(a.length){for(var b=new Zdb,c=[],d=0;d<a.length;d++){var e=a[d],g=beb(e);c.push(g);e.clear()}Fx(b,1,c);this.JSC$7570_transport.dispatch(b);this.JSC$7570_transport.flush()}};var Heb=function(a){this.cellValue=a};var wz=function(a,b,c){this.JSC$7575_metricName=a;this.cellType=b;this.fields=c||[];this.cellMap=new Map},aeb=function(a){return a.fields.map(function(b){return b.fieldType})},$db=function(a){return a.fields.map(function(b){return b.fieldName})};
_.f=wz.prototype;_.f.addCell=function(a){var b=_.Id.apply(1,arguments),c=this.getCells(b);c?c.push(new Heb(a)):this.JSC$7575_setCell(a,b)};
_.f.JSC$7575_setCell=function(a){var b=this.JSC$7575_getKey(_.Id.apply(1,arguments));this.cellMap.set(b,[new Heb(a)])};
_.f.getCells=function(){var a=this.JSC$7575_getKey(_.Id.apply(0,arguments));return this.cellMap.has(a)?this.cellMap.get(a):void 0};
_.f.getCell=function(){var a=this.getCells(_.Id.apply(0,arguments));return a&&a.length?a[0]:void 0};
_.f.clear=function(){this.cellMap.clear()};
_.f.JSC$7575_getKey=function(){var a=_.Id.apply(0,arguments);return a?a.join(","):"key"};var Ieb=function(a,b){wz.call(this,a,3,b)};
_.z(Ieb,wz);Ieb.prototype.JSC$7578_incrementCounterBy=function(a){var b=_.Id.apply(1,arguments),c=0,d=this.getCell(b);d&&(c=d.cellValue);this.JSC$7575_setCell(c+a,b)};var Jeb=function(a,b){wz.call(this,a,2,b)};
_.z(Jeb,wz);Jeb.prototype.record=function(a){this.addCell(a,_.Id.apply(1,arguments))};_.xz=function(a){this.id=a};
_.xz.prototype.toString=function(){return this.id};_.yz=function(a,b){this.type=a instanceof _.xz?String(a):a;this.currentTarget=this.target=b;this.defaultPrevented=this.propagationStopped_=!1};
_.yz.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.yz.prototype.preventDefault=function(){this.defaultPrevented=!0};_.zz=function(a,b){_.yz.call(this,a?a.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;a&&this.init(a,b)};
_.nx(_.zz,_.yz);
_.zz.prototype.init=function(a,b){var c=this.type=a.type,d=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.currentTarget=b;b=a.relatedTarget;b||(c=="mouseover"?b=a.fromElement:c=="mouseout"&&(b=a.toElement));this.relatedTarget=b;d?(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.offsetX=_.ux||a.offsetX!==void 0?a.offsetX:a.layerX,
this.offsetY=_.ux||a.offsetY!==void 0?a.offsetY:a.layerY,this.clientX=a.clientX!==void 0?a.clientX:a.pageX,this.clientY=a.clientY!==void 0?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.key=a.key||"";this.charCode=a.charCode||(c=="keypress"?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pointerId=a.pointerId||0;this.pointerType=a.pointerType;this.state=a.state;
this.timeStamp=a.timeStamp;this.event_=a;a.defaultPrevented&&_.zz.superClass_.preventDefault.call(this)};
_.zz.prototype.stopPropagation=function(){_.zz.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.zz.prototype.preventDefault=function(){_.zz.superClass_.preventDefault.call(this);var a=this.event_;a.preventDefault?a.preventDefault():a.returnValue=!1};var Keb="closure_listenable_"+(Math.random()*1E6|0),Az=function(a){return!(!a||!a[Keb])};var Leb=0;var Meb=function(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!d;this.handler=e;this.key=++Leb;this.removed=this.callOnce=!1},Neb=function(a){a.removed=!0;
a.listener=null;a.proxy=null;a.src=null;a.handler=null};eg.prototype.add=function(a,b,c,d,e){var g=a.toString();a=this.listeners[g];a||(a=this.listeners[g]=[],this.typeCount_++);var k=Oeb(a,b,d,e);k>-1?(b=a[k],c||(b.callOnce=!1)):(b=new Meb(b,this.src,g,!!d,e),b.callOnce=c,a.push(b));return b};
eg.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.listeners))return!1;var e=this.listeners[a];b=Oeb(e,b,c,d);return b>-1?(Neb(e[b]),_.waa(e,b),e.length==0&&(delete this.listeners[a],this.typeCount_--),!0):!1};
var Peb=function(a,b){var c=b.type;if(!(c in a.listeners))return!1;var d=_.Qa(a.listeners[c],b);d&&(Neb(b),a.listeners[c].length==0&&(delete a.listeners[c],a.typeCount_--));return d};
eg.prototype.removeAll=function(a){a=a&&a.toString();var b=0,c;for(c in this.listeners)if(!a||c==a){for(var d=this.listeners[c],e=0;e<d.length;e++)++b,Neb(d[e]);delete this.listeners[c];this.typeCount_--}return b};
eg.prototype.getListener=function(a,b,c,d){a=this.listeners[a.toString()];var e=-1;a&&(e=Oeb(a,b,c,d));return e>-1?a[e]:null};
eg.prototype.hasListener=function(a,b){var c=a!==void 0,d=c?a.toString():"",e=b!==void 0;return _.yf.some(this.listeners,function(g){for(var k=0;k<g.length;++k)if(!(c&&g[k].type!=d||e&&g[k].capture!=b))return!0;return!1})};
var Oeb=function(a,b,c,d){for(var e=0;e<a.length;++e){var g=a[e];if(!g.removed&&g.listener==b&&g.capture==!!c&&g.handler==d)return e}return-1};var Qeb,Reb,Seb,Ueb,Veb,os,ps,Yeb,Web,Xeb,Bz,Zeb,Teb;Qeb="closure_lm_"+(Math.random()*1E6|0);Reb={};Seb=0;_.ss=function(a,b,c,d,e){if(d&&d.once)return os(a,b,c,d,e);if(Array.isArray(b)){for(var g=0;g<b.length;g++)_.ss(a,b[g],c,d,e);return null}c=Teb(c);return Az(a)?a.listen(b,c,_.$a(d)?!!d.capture:!!d,e):Ueb(a,b,c,!1,d,e)};
Ueb=function(a,b,c,d,e,g){if(!b)throw Error("Ca");var k=_.$a(e)?!!e.capture:!!e,m=Bz(a);m||(a[Qeb]=m=new eg(a));c=m.add(b,c,d,k,g);if(c.proxy)return c;d=Veb();c.proxy=d;d.src=a;d.listener=c;if(a.addEventListener)_.fab||(e=k),e===void 0&&(e=!1),a.addEventListener(b.toString(),d,e);else if(a.attachEvent)a.attachEvent(Web(b.toString()),d);else if(a.addListener&&a.removeListener)a.addListener(d);else throw Error("Da");Seb++;return c};
Veb=function(){var a=Xeb,b=function(c){return a.call(b.src,b.listener,c)};
return b};
os=function(a,b,c,d,e){if(Array.isArray(b)){for(var g=0;g<b.length;g++)os(a,b[g],c,d,e);return null}c=Teb(c);return Az(a)?a.listenOnce(b,c,_.$a(d)?!!d.capture:!!d,e):Ueb(a,b,c,!0,d,e)};
_.Cz=function(a,b,c,d,e){if(Array.isArray(b))for(var g=0;g<b.length;g++)_.Cz(a,b[g],c,d,e);else d=_.$a(d)?!!d.capture:!!d,c=Teb(c),Az(a)?a.unlisten(b,c,d,e):a&&(a=Bz(a))&&(b=a.getListener(b,c,d,e))&&ps(b)};
ps=function(a){if(typeof a==="number"||!a||a.removed)return!1;var b=a.src;if(Az(b))return Peb(b.eventTargetListeners_,a);var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.capture):b.detachEvent?b.detachEvent(Web(c),d):b.addListener&&b.removeListener&&b.removeListener(d);Seb--;(c=Bz(b))?(Peb(c,a),c.typeCount_==0&&(c.src=null,b[Qeb]=null)):Neb(a);return!0};
Yeb=function(a,b,c,d,e){c=Teb(c);d=!!d;return Az(a)?a.getListener(b,c,d,e):a?(a=Bz(a))?a.getListener(b,c,d,e):null:null};
Web=function(a){return a in Reb?Reb[a]:Reb[a]="on"+a};
Xeb=function(a,b){if(a.removed)a=!0;else{b=new _.zz(b,this);var c=a.listener,d=a.handler||a.src;a.callOnce&&ps(a);a=c.call(d,b)}return a};
Bz=function(a){a=a[Qeb];return a instanceof eg?a:null};
Zeb="__closure_events_fn_"+(Math.random()*1E9>>>0);Teb=function(a){if(typeof a==="function")return a;a[Zeb]||(a[Zeb]=function(b){return a.handleEvent(b)});
return a[Zeb]};_.Dz=function(){_.tg.call(this);this.eventTargetListeners_=new eg(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.nx(_.Dz,_.tg);_.Dz.prototype[Keb]=!0;_.f=_.Dz.prototype;_.f.setParentEventTarget=function(a){this.parentEventTarget_=a};
_.f.addEventListener=function(a,b,c,d){_.ss(this,a,b,c,d)};
_.f.removeEventListener=function(a,b,c,d){_.Cz(this,a,b,c,d)};
_.f.dispatchEvent=function(a){var b,c=this.parentEventTarget_;if(c)for(b=[];c;c=c.parentEventTarget_)b.push(c);c=this.actualEventTarget_;var d=a.type||a;if(typeof a==="string")a=new _.yz(a,c);else if(a instanceof _.yz)a.target=a.target||c;else{var e=a;a=new _.yz(d,c);_.yf.extend(a,e)}e=!0;var g;if(b)for(g=b.length-1;!a.propagationStopped_&&g>=0;g--){var k=a.currentTarget=b[g];e=$eb(k,d,!0,a)&&e}a.propagationStopped_||(k=a.currentTarget=c,e=$eb(k,d,!0,a)&&e,a.propagationStopped_||(e=$eb(k,d,!1,a)&&
e));if(b)for(g=0;!a.propagationStopped_&&g<b.length;g++)k=a.currentTarget=b[g],e=$eb(k,d,!1,a)&&e;return e};
_.f.disposeInternal=function(){_.Dz.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.f.listen=function(a,b,c,d){return this.eventTargetListeners_.add(String(a),b,!1,c,d)};
_.f.listenOnce=function(a,b,c,d){return this.eventTargetListeners_.add(String(a),b,!0,c,d)};
_.f.unlisten=function(a,b,c,d){return this.eventTargetListeners_.remove(String(a),b,c,d)};
_.f.removeAllListeners=function(a){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(a):0};
var $eb=function(a,b,c,d){b=a.eventTargetListeners_.listeners[String(b)];if(!b)return!0;b=b.concat();for(var e=!0,g=0;g<b.length;++g){var k=b[g];if(k&&!k.removed&&k.capture==c){var m=k.listener,n=k.handler||k.src;k.callOnce&&Peb(a.eventTargetListeners_,k);e=m.call(n,d)!==!1&&e}}return e&&!d.defaultPrevented};
_.Dz.prototype.getListener=function(a,b,c,d){return this.eventTargetListeners_.getListener(String(a),b,c,d)};
_.Dz.prototype.hasListener=function(a,b){return this.eventTargetListeners_.hasListener(a!==void 0?String(a):void 0,b)};var Ez=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(a){return a&&AsyncContext.Snapshot.wrap(a)}:function(a){return a};var afb=function(a,b){this.create_=a;this.reset_=b;this.occupants_=0;this.JSC$7610_head_=null};
afb.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var a=this.JSC$7610_head_;this.JSC$7610_head_=a.next;a.next=null}else a=this.create_();return a};
afb.prototype.put=function(a){this.reset_(a);this.occupants_<100&&(this.occupants_++,a.next=this.JSC$7610_head_,this.JSC$7610_head_=a)};var bfb=function(){this.workTail_=this.workHead_=null};
bfb.prototype.add=function(a,b){var c=Bia.get();c.set(a,b);this.workTail_?this.workTail_.next=c:this.workHead_=c;this.workTail_=c};
bfb.prototype.remove=function(){var a=null;this.workHead_&&(a=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),a.next=null);return a};
var Bia=new afb(function(){return new cfb},function(a){return a.reset()}),cfb=function(){this.next=this.scope=this.fn=null};
cfb.prototype.set=function(a,b){this.fn=a;this.scope=b;this.next=null};
cfb.prototype.reset=function(){this.next=this.scope=this.fn=null};var dfb,Cia,Aia,efb;Cia=!1;Aia=new bfb;_.Fz=function(a,b){dfb||efb();Cia||(dfb(),Cia=!0);Aia.add(a,b)};
efb=function(){var a=Promise.resolve(void 0);dfb=function(){a.then(Dia)}};var ffb=function(a){a.prototype.$goog_Thenable=!0},gfb=function(a){if(!a)return!1;
try{return!!a.$goog_Thenable}catch(b){return!1}};var hfb,ifb,jfb,lfb,mfb,nfb,rfb,ufb,yfb,wfb,a5a;_.kl=function(a,b){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(a!=_.By)try{var c=this;a.call(b,function(d){c.resolve_(2,d)},function(d){c.resolve_(3,d)})}catch(d){this.resolve_(3,d)}};
hfb=function(){this.next=this.context=this.JSC$7621_onRejected=this.JSC$7621_onFulfilled=this.child=null;this.always=!1};
hfb.prototype.reset=function(){this.context=this.JSC$7621_onRejected=this.JSC$7621_onFulfilled=this.child=null;this.always=!1};
ifb=new afb(function(){return new hfb},function(a){a.reset()});
jfb=function(a,b,c){var d=ifb.get();d.JSC$7621_onFulfilled=a;d.JSC$7621_onRejected=b;d.context=c;return d};
_.oo=function(a){if(a instanceof _.kl)return a;var b=new _.kl(_.By);b.resolve_(2,a);return b};
_.Pn=function(a){return new _.kl(function(b,c){c(a)})};
lfb=function(a,b,c){kfb(a,b,c,null)||_.Fz(_.vo(b,a))};
_.Gz=function(a){return new _.kl(function(b,c){var d=a.length,e=[];if(d)for(var g=function(r,t){d--;e[r]=t;d==0&&b(e)},k=function(r){c(r)},m,n=0;n<a.length;n++)m=a[n],lfb(m,_.vo(g,n),k);
else b(e)})};
mfb=function(a){return new _.kl(function(b){var c=a.length,d=[];if(c)for(var e=function(m,n,r){c--;d[m]=n?{fulfilled:!0,value:r}:{fulfilled:!1,reason:r};c==0&&b(d)},g,k=0;k<a.length;k++)g=a[k],lfb(g,_.vo(e,k,!0),_.vo(e,k,!1));
else b(d)})};
nfb=function(a){return new _.kl(function(b,c){var d=a.length,e=[];if(d)for(var g=function(r){b(r)},k=function(r,t){d--;
e[r]=t;d==0&&c(e)},m,n=0;n<a.length;n++)m=a[n],lfb(m,g,_.vo(k,n));
else b(void 0)})};
_.Tt=function(){var a,b,c=new _.kl(function(d,e){a=d;b=e});
return new ofb(c,a,b)};
_.kl.prototype.then=function(a,b,c){return pfb(this,Ez(typeof a==="function"?a:null),Ez(typeof b==="function"?b:null),c)};
ffb(_.kl);rfb=function(a,b,c,d){qfb(a,jfb(b||_.By,c||null,d))};
_.Hz=function(a,b){b=Ez(b);b=jfb(b,b);b.always=!0;qfb(a,b);return a};
_.kl.prototype.finally=function(a){var b=this;a=Ez(a);return new Promise(function(c,d){rfb(b,function(e){a();c(e)},function(e){a();
d(e)})})};
_.kl.prototype.thenCatch=function(a,b){return pfb(this,null,Ez(a),b)};
_.kl.prototype.catch=_.kl.prototype.thenCatch;_.kl.prototype.cancel=function(a){if(this.state_==0){var b=new _.On(a);_.Fz(function(){sfb(this,b)},this)}};
var sfb=function(a,b){if(a.state_==0)if(a.parent_){var c=a.parent_;if(c.callbackEntries_){for(var d=0,e=null,g=null,k=c.callbackEntries_;k&&(k.always||(d++,k.child==a&&(e=k),!(e&&d>1)));k=k.next)e||(g=k);e&&(c.state_==0&&d==1?sfb(c,b):(g?(d=g,d.next==c.callbackEntriesTail_&&(c.callbackEntriesTail_=d),d.next=d.next.next):tfb(c),ufb(c,e,3,b)))}a.parent_=null}else a.resolve_(3,b)},qfb=function(a,b){a.callbackEntries_||a.state_!=2&&a.state_!=3||vfb(a);
a.callbackEntriesTail_?a.callbackEntriesTail_.next=b:a.callbackEntries_=b;a.callbackEntriesTail_=b},pfb=function(a,b,c,d){var e=jfb(null,null,null);
e.child=new _.kl(function(g,k){e.JSC$7621_onFulfilled=b?function(m){try{var n=b.call(d,m);g(n)}catch(r){k(r)}}:g;
e.JSC$7621_onRejected=c?function(m){try{var n=c.call(d,m);n===void 0&&m instanceof _.On?k(m):g(n)}catch(r){k(r)}}:k});
e.child.parent_=a;qfb(a,e);return e.child};
_.kl.prototype.unblockAndFulfill_=function(a){this.state_=0;this.resolve_(2,a)};
_.kl.prototype.unblockAndReject_=function(a){this.state_=0;this.resolve_(3,a)};
_.kl.prototype.resolve_=function(a,b){this.state_==0&&(this===b&&(a=3,b=new TypeError("Ea")),this.state_=1,kfb(b,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=b,this.state_=a,this.parent_=null,vfb(this),a!=3||b instanceof _.On||wfb(this,b)))};
var kfb=function(a,b,c,d){if(a instanceof _.kl)return rfb(a,b,c,d),!0;if(gfb(a))return a.then(b,c,d),!0;if(_.$a(a))try{var e=a.then;if(typeof e==="function")return xfb(a,e,b,c,d),!0}catch(g){return c.call(d,g),!0}return!1},xfb=function(a,b,c,d,e){var g=!1,k=function(n){g||(g=!0,c.call(e,n))},m=function(n){g||(g=!0,d.call(e,n))};
try{b.call(a,k,m)}catch(n){m(n)}},vfb=function(a){a.executing_||(a.executing_=!0,_.Fz(a.executeCallbacks_,a))},tfb=function(a){var b=null;
a.callbackEntries_&&(b=a.callbackEntries_,a.callbackEntries_=b.next,b.next=null);a.callbackEntries_||(a.callbackEntriesTail_=null);return b};
_.kl.prototype.executeCallbacks_=function(){for(var a;a=tfb(this);)ufb(this,a,this.state_,this.result_);this.executing_=!1};
ufb=function(a,b,c,d){if(c==3&&b.JSC$7621_onRejected&&!b.always)for(;a&&a.hadUnhandledRejection_;a=a.parent_)a.hadUnhandledRejection_=!1;if(b.child)b.child.parent_=null,yfb(b,c,d);else try{b.always?b.JSC$7621_onFulfilled.call(b.context):yfb(b,c,d)}catch(e){a5a.call(null,e)}ifb.put(b)};
yfb=function(a,b,c){b==2?a.JSC$7621_onFulfilled.call(a.context,c):a.JSC$7621_onRejected&&a.JSC$7621_onRejected.call(a.context,c)};
wfb=function(a,b){a.hadUnhandledRejection_=!0;_.Fz(function(){a.hadUnhandledRejection_&&a5a.call(null,b)})};
a5a=ka;_.On=function(a){_.da.call(this,a)};
_.nx(_.On,_.da);_.On.prototype.name="cancel";var ofb=function(a,b,c){this.promise=a;this.resolve=b;this.reject=c};var Iz;_.an=function(a,b){_.Dz.call(this);this.JSC$7633_interval_=a||1;this.timerObject_=b||_.ja;this.boundTick_=(0,_.ug)(this.tick_,this);this.last_=_.mx()};
_.nx(_.an,_.Dz);_.f=_.an.prototype;_.f.enabled=!1;_.f.JSC$7635_timer_=null;_.f.setInterval=function(a){this.JSC$7633_interval_=a;this.JSC$7635_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$7635_timer_&&this.stop()};
_.f.tick_=function(){if(this.enabled){var a=_.mx()-this.last_;a>0&&a<this.JSC$7633_interval_*.8?this.JSC$7635_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7633_interval_-a):(this.JSC$7635_timer_&&(this.timerObject_.clearTimeout(this.JSC$7635_timer_),this.JSC$7635_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.f.start=function(){this.enabled=!0;this.JSC$7635_timer_||(this.JSC$7635_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7633_interval_),this.last_=_.mx())};
_.f.stop=function(){this.enabled=!1;this.JSC$7635_timer_&&(this.timerObject_.clearTimeout(this.JSC$7635_timer_),this.JSC$7635_timer_=null)};
_.f.disposeInternal=function(){_.an.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
Iz=function(a,b,c){if(typeof a==="function")c&&(a=(0,_.ug)(a,c));else if(a&&typeof a.handleEvent=="function")a=(0,_.ug)(a.handleEvent,a);else throw Error("Fa");return Number(b)>2147483647?-1:_.ja.setTimeout(a,b||0)};
_.zfb=function(a){var b=null;return(new _.kl(function(c,d){b=Iz(function(){c(void 0)},a);
b==-1&&d(Error("Ga"))})).thenCatch(function(c){_.ja.clearTimeout(b);
throw c;})};var ig=function(a){_.tg.call(this);this.streamzLogger=a;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$7639_flushTimer=new _.an(this.flushInterval);this.JSC$7639_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.gg(this,this.JSC$7639_flushTimer)};
_.z(ig,_.tg);ig.prototype.sendIsolatedPayload=function(a){this.shouldSendIsolatedPayload=a;this.invocationLimit=1};
var Afb=function(a){a.JSC$7639_flushTimer.enabled||a.JSC$7639_flushTimer.start();a.invocationCount++;a.invocationCount>=a.invocationLimit&&a.snapshotAndFlush()};
ig.prototype.snapshotAndFlush=function(){var a=this.metricMap.values();a=[].concat(_.Be(a)).filter(function(b){return b.cellMap.size});
a.length&&this.streamzLogger.flush(a,this.shouldSendIsolatedPayload);Bfb(a);this.invocationCount=0;this.JSC$7639_flushTimer.enabled&&this.JSC$7639_flushTimer.stop()};
ig.prototype.addNewCounter=function(a){var b=_.Id.apply(1,arguments);this.metricMap.has(a)||this.metricMap.set(a,new Ieb(a,b))};
ig.prototype.addNewEventMetric=function(a){var b=_.Id.apply(1,arguments);this.metricMap.has(a)||this.metricMap.set(a,new Jeb(a,b))};
var Cfb=function(a,b){return a.disabledMetrics.has(b)?void 0:a.metricMap.get(b)};
ig.prototype.JSC$7639_incrementCounter=function(a){this.JSC$7639_incrementCounterBy(a,1,_.Id.apply(1,arguments))};
ig.prototype.JSC$7639_incrementCounterBy=function(a,b){var c=_.Id.apply(2,arguments),d=Cfb(this,a);d&&d instanceof Ieb&&(d.JSC$7578_incrementCounterBy(b,c),Afb(this))};
ig.prototype.record=function(a,b){var c=_.Id.apply(2,arguments),d=Cfb(this,a);d&&d instanceof Jeb&&(d.record(b,c),Afb(this))};
var Bfb=function(a){for(var b=0;b<a.length;b++)a[b].clear()};_.Jz=function(a,b,c){c=c===void 0?{}:c;b=Error.call(this,b);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.code=a;this.metadata=c;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.z(_.Jz,Error);_.Jz.prototype.toString=function(){var a="RpcError("+(Fia(this.code)||String(this.code))+")";this.message&&(a+=": "+this.message);return a};_.Dfb=_.ja.JSON.parse;_.Kz=_.ja.JSON.stringify;_.An=_.ja.JSON.parse;_.Efb=function(a){switch(a){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 Ffb=function(a){switch(a){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var Gfb,Hfb=function(){};
_.nx(Hfb,_.Gia);Hfb.prototype.createInstance=function(){return new XMLHttpRequest};
Gfb=new Hfb;_.Lz=function(a){_.Dz.call(this);this.headers=new Map;this.JSC$7648_xmlHttpFactory_=a||null;this.JSC$7648_active_=!1;this.JSC$7648_xhr_=null;this.JSC$7648_lastUri_="";this.JSC$7648_lastErrorCode_=0;this.JSC$7648_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$7648_timeoutId_=null;this.responseType_="";this.JSC$7648_withCredentials_=!1};
_.nx(_.Lz,_.Dz);var Ifb=/^https?$/i,Jfb=["POST","PUT"],Kfb=[],BAa=function(a,b,c,d,e,g,k){var m=new _.Lz;Kfb.push(m);b&&m.listen("complete",b);m.listenOnce("ready",m.cleanupSend_);g&&(m.timeoutInterval_=Math.max(0,g));k&&(m.JSC$7648_withCredentials_=k);m.send(a,c,d,e)};
_.Lz.prototype.cleanupSend_=function(){this.dispose();_.Qa(Kfb,this)};
_.Lz.prototype.send=function(a,b,c,d){if(this.JSC$7648_xhr_)throw Error("Ha`"+this.JSC$7648_lastUri_+"`"+a);b=b?b.toUpperCase():"GET";this.JSC$7648_lastUri_=a;this.JSC$7648_lastError_="";this.JSC$7648_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$7648_active_=!0;this.JSC$7648_xhr_=this.createXhr();this.JSC$7648_xhr_.onreadystatechange=Ez((0,_.ug)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$7648_xhr_.open(b,String(a),!0),this.inOpen_=!1}catch(k){Lfb(this,k);return}a=c||"";c=new Map(this.headers);
if(d)if(Object.getPrototypeOf(d)===Object.prototype)for(var e in d)c.set(e,d[e]);else if(typeof d.keys==="function"&&typeof d.get==="function"){e=_.h(d.keys());for(var g=e.next();!g.done;g=e.next())g=g.value,c.set(g,d.get(g))}else throw Error("Ia`"+String(d));d=Array.from(c.keys()).find(function(k){return"content-type"==k.toLowerCase()});
e=_.ja.FormData&&a instanceof _.ja.FormData;!_.Pa(Jfb,b)||d||e||c.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");b=_.h(c);for(d=b.next();!d.done;d=b.next())c=_.h(d.value),d=c.next().value,c=c.next().value,this.JSC$7648_xhr_.setRequestHeader(d,c);this.responseType_&&(this.JSC$7648_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$7648_xhr_&&this.JSC$7648_xhr_.withCredentials!==this.JSC$7648_withCredentials_&&(this.JSC$7648_xhr_.withCredentials=this.JSC$7648_withCredentials_);
try{this.JSC$7648_timeoutId_&&(clearTimeout(this.JSC$7648_timeoutId_),this.JSC$7648_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$7648_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$7648_xhr_.send(a),this.inSend_=!1}catch(k){Lfb(this,k)}};
_.Lz.prototype.createXhr=function(){return this.JSC$7648_xmlHttpFactory_?this.JSC$7648_xmlHttpFactory_.createInstance():Gfb.createInstance()};
_.Lz.prototype.timeout_=function(){typeof r8a!="undefined"&&this.JSC$7648_xhr_&&(this.JSC$7648_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$7648_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var Lfb=function(a,b){a.JSC$7648_active_=!1;a.JSC$7648_xhr_&&(a.inAbort_=!0,a.JSC$7648_xhr_.abort(),a.inAbort_=!1);a.JSC$7648_lastError_=b;a.JSC$7648_lastErrorCode_=5;Mfb(a);Nfb(a)},Mfb=function(a){a.errorDispatched_||(a.errorDispatched_=!0,a.dispatchEvent("complete"),a.dispatchEvent("error"))};
_.Lz.prototype.abort=function(a){this.JSC$7648_xhr_&&this.JSC$7648_active_&&(this.JSC$7648_active_=!1,this.inAbort_=!0,this.JSC$7648_xhr_.abort(),this.inAbort_=!1,this.JSC$7648_lastErrorCode_=a||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Nfb(this))};
_.Lz.prototype.disposeInternal=function(){this.JSC$7648_xhr_&&(this.JSC$7648_active_&&(this.JSC$7648_active_=!1,this.inAbort_=!0,this.JSC$7648_xhr_.abort(),this.inAbort_=!1),Nfb(this,!0));_.Lz.superClass_.disposeInternal.call(this)};
_.Lz.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)Ofb(this);else this.onReadyStateChangeEntryPoint_()};
_.Lz.prototype.onReadyStateChangeEntryPoint_=function(){Ofb(this)};
var Ofb=function(a){if(a.JSC$7648_active_&&typeof r8a!="undefined")if(a.inSend_&&_.Mz(a)==4)setTimeout(a.onReadyStateChange_.bind(a),0);else if(a.dispatchEvent("readystatechange"),a.isComplete()){a.JSC$7648_active_=!1;try{if(a.isSuccess())a.dispatchEvent("complete"),a.dispatchEvent("success");else{a.JSC$7648_lastErrorCode_=6;try{var b=_.Mz(a)>2?a.JSC$7648_xhr_.statusText:""}catch(c){b=""}a.JSC$7648_lastError_=b+" ["+a.getStatus()+"]";Mfb(a)}}finally{Nfb(a)}}},Nfb=function(a,b){if(a.JSC$7648_xhr_){a.JSC$7648_timeoutId_&&
(clearTimeout(a.JSC$7648_timeoutId_),a.JSC$7648_timeoutId_=null);
var c=a.JSC$7648_xhr_;a.JSC$7648_xhr_=null;b||a.dispatchEvent("ready");try{c.onreadystatechange=null}catch(d){}}};
_.Lz.prototype.isActive=function(){return!!this.JSC$7648_xhr_};
_.Lz.prototype.isComplete=function(){return _.Mz(this)==4};
_.Lz.prototype.isSuccess=function(){var a=this.getStatus(),b;if(!(b=Ffb(a))){if(a=a===0)a=Lbb(String(this.JSC$7648_lastUri_)),a=!Ifb.test(a);b=a}return b};
_.Mz=function(a){return a.JSC$7648_xhr_?a.JSC$7648_xhr_.readyState:0};
_.f=_.Lz.prototype;_.f.getStatus=function(){try{return _.Mz(this)>2?this.JSC$7648_xhr_.status:-1}catch(a){return-1}};
_.f.getResponseText=function(){try{return this.JSC$7648_xhr_?this.JSC$7648_xhr_.responseText:""}catch(a){return""}};
_.f.getResponse=function(){try{if(!this.JSC$7648_xhr_)return null;if("response"in this.JSC$7648_xhr_)return this.JSC$7648_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$7648_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$7648_xhr_)return this.JSC$7648_xhr_.mozResponseArrayBuffer}return null}catch(a){return null}};
_.f.getAllResponseHeaders=function(){return this.JSC$7648_xhr_&&_.Mz(this)>=2?this.JSC$7648_xhr_.getAllResponseHeaders()||"":""};
_.f.getLastError=function(){return typeof this.JSC$7648_lastError_==="string"?this.JSC$7648_lastError_:String(this.JSC$7648_lastError_)};var Tia=function(){};
Tia.prototype.send=function(a,b,c){b=b===void 0?function(){}:b;
c=c===void 0?function(){}:c;
BAa(a.url,function(d){d=d.target;d.isSuccess()?b(d.getResponseText()):c(d.getStatus())},a.requestType,a.body,a.requestHeaders,a.timeoutMillis,a.withCredentials)};
Tia.prototype.getTransmissionType=function(){return 1};var Pfb=function(a,b){this.logger=a;this.event=b;this.startTime=jg()};
Pfb.prototype.done=function(){this.logger.zW(this.event,jg()-this.startTime)};
var Nz=function(){nz.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.z(Nz,nz);var Oz=function(a,b,c){var d=jg();b=b();a.zW(c,jg()-d);return b},Zia=function(){Nz.apply(this,arguments)};
_.z(Zia,Nz);_.f=Zia.prototype;_.f.tna=function(){};
_.f.eG=function(){};
_.f.zW=function(){};
_.f.logError=function(){};
_.f.sK=function(){};
_.f.rIa=function(){};
_.f.oIa=function(){};
_.f.qIa=function(){};
_.f.hRa=function(){};
var Qfb=function(a){Nz.call(this);var b=this;this.logger=a;this.TEST_ONLY={aue:function(){return b.logger},
getExperimentIds:function(){return b.logger.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void b.logger.dispose()})};
_.z(Qfb,Nz);_.f=Qfb.prototype;_.f.update=function(a){this.logger.dispose();this.logger=a};
_.f.eG=function(a){this.logger.eG(a)};
_.f.zW=function(a,b){this.logger.zW(a,b)};
_.f.logError=function(a){this.logger.logError(a)};
_.f.sK=function(){this.logger.sK()};
_.f.rIa=function(a){this.logger.rIa(a)};
_.f.oIa=function(a){this.logger.oIa(a)};
_.f.qIa=function(a){this.logger.qIa(a)};
_.f.hRa=function(a){this.logger.hRa(a)};
_.f.tna=function(a){this.logger.tna(a)};
var Rfb=function(a,b){_.tg.call(this);var c=this;this.callback=a;this.eXc=b;this.oYb=-b;this.addOnDisposeCallback(function(){return void clearTimeout(c.timer)})};
_.z(Rfb,_.tg);var Sfb=function(a){if(a.timer===void 0){var b=Math.max(0,a.oYb+a.eXc-jg());a.timer=setTimeout(function(){try{a.callback()}finally{a.oYb=jg(),a.timer=void 0}},b)}},Tfb=function(a,b){Nz.call(this);
this.metrics=a;this.ou=b};
_.z(Tfb,Nz);_.f=Tfb.prototype;_.f.tna=function(a){this.metrics.vcd.record(a,this.ou)};
_.f.eG=function(a){this.metrics.eventCount.increment(a,this.ou)};
_.f.zW=function(a,b){this.metrics.pIc.record(b,a,this.ou)};
_.f.logError=function(a){this.metrics.errorCount.increment(a,this.ou)};
_.f.rIa=function(a){this.metrics.vjd.increment(a,this.ou)};
_.f.oIa=function(a){this.metrics.fAc.increment(a,this.ou)};
_.f.qIa=function(a){this.metrics.ujd.increment(a,this.ou)};
var $ia=function(a,b){b=b===void 0?[]:b;var c={ou:a.ou||"_",lka:a.lka||[],pIa:a.pIa|0,destinationUrl:a.destinationUrl,uKa:a.uKa||function(){},
sba:a.sba||function(g,k){return Yia(g,k,c.uKa,c.destinationUrl)}},d=c.sba("49",c.lka.concat(b));
Tfb.call(this,Pia(d),c.ou);var e=this;this.vWb=b;this.TEST_ONLY={getExperimentIds:function(){return e.options.lka.concat(e.vWb).sort(function(g,k){return g-k})}};
this.options=c;this.service=d;this.zOb=!a.sba;this.flushDebouncer=new Rfb(function(){return void e.service.snapshotAndFlush()},c.pIa);
this.addOnDisposeCallback(function(){e.flushDebouncer.dispose();e.zOb&&e.service.dispose()})};
_.z($ia,Tfb);$ia.prototype.hRa=function(a){var b=this;this.flushDebouncer.dispose();this.zOb&&this.service.dispose();this.service=this.options.sba("49",this.options.lka.concat(a));this.flushDebouncer=new Rfb(function(){return void b.service.snapshotAndFlush()},this.options.pIa);
this.metrics=Pia(this.service);this.vWb=a};
$ia.prototype.sK=function(){Sfb(this.flushDebouncer)};var G3a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(G3a,_.Xc);_.H3a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(_.H3a,_.Xc);var dw=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,0,dw.messageId,3)};
_.z(dw,_.Xc);var Ufb=_.sda(dw);dw.messageId="bfkj";var pia=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(pia,_.Xc);var Vfb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(Vfb,_.Xc);var Wfb=_.kd(Vfb);_.gq=function(){var a=this;this.promise=new Promise(function(b,c){a.resolve=b;a.reject=c})};_.Pz=function(a){_.tg.call(this);var b=this;this.p6a=Math.floor(Math.random()*200);this.kka=new Vfb;if("challenge"in a&&Ufb(a.challenge)){var c=_.Ox(a.challenge,4,void 0,Bb);var d=_.Ox(a.challenge,5,void 0,Bb);_.Ox(a.challenge,7,void 0,Bb)&&(this.kka=Wfb(_.Ox(a.challenge,7,void 0,Bb)))}else c=a.program,d=a.globalName;this.addOnDisposeCallback(function(){var C,G,J;return _.l(function(I){if(I.nextAddress==1)return _.p(I,b.cSa,2);C=I.yieldResult;G=C.mcd;(J=G)==null||J();_.se(I)})});
this.logger=aja(a.u8||{},this.kka,a.jqe);_.gg(this,this.logger);var e=new _.gq;this.cSa=e.promise;this.logger.eG("t");var g=this.logger.share(),k=new Pfb(g,"t"),m=function(C,G,J,I){if(!b.logger.isDisposed()){var R="k";G?R="h":J&&(R="u");R!=="k"?I!==0&&(b.logger.eG(R),b.logger.zW(R,C)):b.p6a<=0?(b.logger.eG(R),b.logger.zW(R,C),b.p6a=Math.floor(Math.random()*200)):b.p6a--}},n=function(C,G,J,I){Promise.resolve().then(function(){k.done();
g.sK();g.dispose();e.resolve({jyc:C,mcd:G,h5c:J,xAc:I})})};
if(!_.ja[d])throw this.logger.logError(25),Error("Ja");if(!_.ja[d].a)throw this.logger.logError(26),Error("Ka");try{var r=_.ja[d].a;d=[];for(var t=[],u=qia(this.kka),w=0;w<u.length;w++)d.push(u[w]),t.push(1);var A=ria(this.kka);for(u=0;u<A.length;u++)d.push(A[u]),t.push(2);this.jed=_.h(r(c,n,!0,a.afc,m,[d,t],_.Ox(this.kka,5))).next().value;this.gba=e.promise.then(function(){})}catch(C){throw this.logger.logError(28),C;
}};
_.z(_.Pz,_.tg);_.Pz.prototype.snapshot=function(a){if(this.isDisposed())throw Error("La");this.logger.eG("n");var b=this.logger.share();return this.cSa.then(function(c){var d=c.jyc;return new Promise(function(e){var g=new Pfb(b,"n");d(function(k){g.done();b.tna(k.length);b.sK();b.dispose();e(k)},[a.aw,
a.rPa,a.sfc,a.vpb])})})};
_.Xfb=function(a,b){if(a.isDisposed())throw Error("La");a.logger.eG("n");var c=Oz(a.logger,function(){return a.jed([b.aw,b.rPa,b.sfc,b.vpb])},"n");
a.logger.tna(c.length);a.logger.sK();return c};
_.Pz.prototype.ppa=function(a){this.cSa.then(function(b){var c;(c=b.h5c)==null||c(a)})};
_.Pz.prototype.jBa=function(a,b){return this.cSa.then(function(c){var d;return(d=c.xAc)==null?void 0:d(a,b,!1)})};
_.Pz.prototype.esa=function(){return this.logger.share()};var Yfb=function(){this.xkb={};this.ddb=null},Zfb=function(){Yfb.instance||(Yfb.instance=new Yfb);
return Yfb.instance},agb=function(a,b){return $fb(a,_.Xj(b,G3a,1,Bb),_.Xj(b,_.H3a,2,Bb),_.Ox(b,3,void 0,Bb))},$fb=function(a,b,c,d){if(!b&&!c)return Promise.resolve();
if(!d)return eja(b,c);var e;(e=a.xkb)[d]||(e[d]=new Promise(function(g,k){eja(b,c).then(function(){a.ddb=d;g()},function(m){delete a.xkb[d];
k(m)})}));
return a.xkb[d]};var bgb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(bgb,_.Xc);var cgb=function(a,b){return _.ew(a,1,b)},dgb=function(a,b){return _.ew(a,2,b)};var Qz=function(a){_.tg.call(this);var b=this;this.options=a;this.iPa=new _.gq;this.gba=this.iPa.promise;this.rEa=new _.gq;this.yYb=1;this.qoa=new _.gq;this.iqa=[];this.bLa=a.bLa||function(){};
this.logger=new Qfb(aja(a.u8||{}));egb(this,a.nJ,a.vQc,a.nCe,a.hDe,Object.assign({},fgb,a.gta||{}));this.addOnDisposeCallback(function(){return void ggb(b)})};
_.z(Qz,_.tg);Qz.prototype.snapshot=function(a){var b=this;return _.l(function(c){switch(c.nextAddress){case 1:if(b.isDisposed())throw Error("La");if(b.vW||b.cdb){c.jumpTo(2);break}return _.p(c,b.rEa.promise,2);case 2:if(!b.vW){c.jumpTo(4);break}return _.p(c,b.vW.snapshot(a),5);case 5:return c.return(c.yieldResult);case 4:throw b.cdb;}})};
var igb=function(a){var b;return _.l(function(c){if(a.isDisposed())throw Error("La");(b=a.aZ)!=null&&(b.endTimeMs=0,b.resolver(1));return _.p(c,a.qoa.promise,0)})},ggb=function(a){a.cdb=Error("Na");
a.rEa.resolve();sia(a.iPa.promise);a.iPa.reject(Error("Na"));a.logger.dispose();Promise.all(a.iqa).then(function(){var c;return _.l(function(d){(c=a.vW)==null||c.dispose();a.vW=void 0;_.se(d)})});
a.iqa=[];var b;(b=a.aZ)!=null&&(b.endTimeMs=0,b.resolver(1));sia(a.qoa.promise);a.qoa.reject(Error("Na"))};
Qz.prototype.ppa=function(a){var b,c;(b=this.vW)==null||(c=b.ppa)==null||c.call(b,a)};
Qz.prototype.jBa=function(a,b){var c,d,e;return(e=(c=this.vW)==null?void 0:(d=c.jBa)==null?void 0:d.call(c,a,b))!=null?e:Promise.resolve()};
var jgb=function(a,b){var c=a.bLa;a.bLa=function(){c();b()}},kgb=function(a,b){a.isDisposed()||(a.vW=b,a.logger.update(b.esa()),a.rEa.resolve(),a.iPa.resolve(void 0),a.bLa())};
Qz.prototype.handleError=function(a){if(!this.isDisposed()){this.cdb=a;this.rEa.resolve();var b,c;(c=(b=this.options).i0c)==null||c.call(b,a)}};
var lgb=function(a,b){b&&(Promise.all(a.iqa).then(function(){return void b.dispose()}),a.iqa=[])},Rz=function(a,b){a.yYb=b;
var c,d;(d=(c=a.options).hAe)==null||d.call(c,b)},mgb=function(a){a.isDisposed()||(a.qoa.resolve(),a.qoa=new _.gq)},egb=function(a,b,c,d,e,g){d=d===void 0?Zfb():d;
e=e===void 0?Promise.resolve(void 0):e;var k,m,n,r,t,u,w,A,C,G,J,I;_.l(function(R){switch(R.nextAddress){case 1:return _.p(R,0,3);case 3:m=null;if(!k){R.jumpTo(6);break}Rz(a,7);_.me(R,7);return _.p(R,pg(k.snapshot({}),g.oDc,function(){return Promise.resolve("E:CTO")}),9);
case 9:m=R.yieldResult;_.Jj(R,6);break;case 7:_.re(R),m="E:UCE";case 6:n=void 0,r=k?g.iIc:g.jIc,t=new dg(r,g.kIc,g.lIc,g.hIc),u=1;case 10:if(!(u<=g.maxAttempts)){R.jumpTo(12);break}if(u===1){R.jumpTo(13);break}Rz(a,0);a.aZ=new ngb(t.getValue(),g.vcc,g.edc);return _.p(R,a.aZ.promise,14);case 14:w=R.yieldResult,a.aZ=void 0,w===1?(u=1,t.reset()):xeb(t);case 13:_.me(R,15);A=void 0;if(c){A=c;R.jumpTo(17);break}Rz(a,5);C=d.ddb;return _.p(R,pg(ogb(b,C,m),g.kJc,function(){return Promise.reject(Error("Oa"))}),
18);
case 18:A=R.yieldResult;case 17:return Rz(a,3),_.p(R,pg(agb(d,A),g.bVc,function(){return Promise.reject(Error("Pa"))}),19);
case 19:return Rz(a,8),_.p(R,e,20);case 20:return G=new _.Pz({challenge:A,u8:a.options.u8,afc:a.options.afc}),_.p(R,pg(G.gba,g.ibd,function(){return Promise.reject(Error("Qa"))}),21);
case 21:n=G;R.jumpTo(12);break;case 15:J=_.re(R),a.handleError(J),mgb(a);case 11:u++;R.jumpTo(10);break;case 12:if(a.isDisposed()){R.jumpTo(5);break}n&&(c=void 0,lgb(a,k),k=n,kgb(a,n),mgb(a));Rz(a,2);a.aZ=new ngb(g.e7b,g.vcc,g.edc);return _.p(R,a.aZ.promise,22);case 22:a.aZ=void 0;if(a.isDisposed()){R.jumpTo(5);break}R.jumpTo(3);break;case 5:(I=k)==null||I.dispose(),_.se(R)}})};
Qz.prototype.esa=function(){return this.logger.share()};
var fgb={e7b:432E5,vcc:3E5,edc:10,oDc:1E4,kJc:3E4,bVc:3E4,ibd:6E4,jIc:1E3,iIc:6E4,kIc:6E5,lIc:.25,hIc:2,maxAttempts:10},ngb=function(a,b,c){var d=this;this.endTimeMs=Date.now()+a;this.promise=new Promise(function(g){d.resolver=g});
var e=function(){var g=d.endTimeMs-Date.now();g<=c?d.resolver(0):setTimeout(e,Math.min(g,b))};
e()};var pgb,hja=(pgb=Math.imul)!=null?pgb:function(a,b){return a*b|0},qg=[196,
200,224,18],Sz=function(a,b,c){c=c===void 0?[]:c;this.maxItems=a;this.yI=b===void 0?0:b;this.uW=c},qgb=function(a){var b=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!b)return new Sz(a);var c=b.split(",");if(c.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Sz(a);b=c.slice(1);b.length===1&&b[0]===""&&(b=[]);c=Number(c[0]);return isNaN(c)||c<0||c>b.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Sz(a)):new Sz(a,c,b)};
Sz.prototype.serialize=function(){return String(this.yI)+","+this.uW.join()};
Sz.prototype.insert=function(a,b){var c=void 0;if(this.uW[this.yI]!==a){var d=this.uW.indexOf(a);d!==-1?(this.uW.splice(d,1),d<this.yI&&this.yI--,this.uW.splice(this.yI,0,a)):(c=this.uW[this.yI],this.uW[this.yI]=a)}this.yI=(this.yI+1)%this.maxItems;a=fja("iU5q-!O9@$",this.serialize());c&&a&&b(c);return a};
var rgb=function(a,b){this.logger=b;try{var c=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(d){c=!1}c&&(this.index=qgb(a))},sgb=function(a,b,c,d,e){var g=a.index?Oz(a.logger,function(){return lja(a.index,jja(b),c,d,e)},"W"):"u";
a.logger.qIa(g)},tgb=function(a,b,c){var d=_.h(a.index?Oz(a.logger,function(){return mja(jja(b),c)},"R"):["u"]),e=d.next().value;
d=d.next().value;a.logger.oIa(e);return d};var ugb={toString:function(a){var b=[],c=0;a-=-2147483648;b[c++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(a%52);for(a=Math.floor(a/52);a>0;)b[c++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(a%62),a=Math.floor(a/62);return b.join("")}};var xgb=function(a){a=vgb(a);for(var b=2654435769,c=2654435769,d=314159265,e=a.length,g=e,k=0,m=function(){b-=c;b-=d;b^=d>>>13;c-=d;c-=b;c^=b<<8;d-=b;d-=c;d^=c>>>13;b-=c;b-=d;b^=d>>>12;c-=d;c-=b;c^=b<<16;d-=b;d-=c;d^=c>>>5;b-=c;b-=d;b^=d>>>3;c-=d;c-=b;c^=b<<10;d-=b;d-=c;d^=c>>>15};g>=12;g-=12,k+=12)b+=wgb(a,k),c+=wgb(a,k+4),d+=wgb(a,k+8),m();
d+=e;switch(g){case 11:d+=a[k+10]<<24;case 10:d+=a[k+9]<<16;case 9:d+=a[k+8]<<8;case 8:c+=a[k+7]<<24;case 7:c+=a[k+6]<<16;case 6:c+=a[k+5]<<8;case 5:c+=a[k+4];case 4:b+=a[k+3]<<24;case 3:b+=a[k+2]<<16;case 2:b+=a[k+1]<<8;case 1:b+=a[k]}m();return ugb.toString(d)},vgb=function(a){for(var b=[],c=0;c<a.length;c++)b.push(a.charCodeAt(c));
return b},wgb=function(a,b){return a[b]+(a[b+1]<<8)+(a[b+2]<<16)+(a[b+3]<<24)};var ygb,Tz=function(a){_.tg.call(this);this.logger=a;this.amb=new _.gq;this[ygb]=this.dispose};
_.z(Tz,_.tg);var zgb=function(a,b){var c=setTimeout(function(){a.amb.resolve()},b);
a.addOnDisposeCallback(function(){return void clearTimeout(c)})};
Tz.prototype.v8=function(a,b){var c=this.gK(a);b==null||b(c);return Oz(this.logger,function(){return _.wc(c,2)},this.cka)};
var Agb=function(a,b,c,d){return Oz(a.logger,function(){return c?a.v8(b,d):a.gK(b,d)},a.w8)};
ygb=Symbol.dispose;var Bgb=function(a,b,c,d){Tz.call(this,a);this.gXc=b;this.iXc=c;this.w8="m";this.cka="x";this.hXc=0;zgb(this,d)};
_.z(Bgb,Tz);Bgb.prototype.gK=function(a,b){var c=this;this.logger.eG(this.w8);++this.hXc>=this.iXc&&this.amb.resolve();var d=a();a=Oz(this.logger,function(){return c.gXc(d)},"C");
if(a===void 0)throw new lz(17,"YNJ:Undefined");if(!(a instanceof Uint8Array))throw new lz(18,"ODM:Invalid");b==null||b(a);return a};
var Cgb=function(a,b,c){Tz.call(this,a);this.hJc=b;this.w8="f";this.cka="z";zgb(this,c)};
_.z(Cgb,Tz);Cgb.prototype.gK=function(){return this.hJc};
var Dgb=function(a,b,c){Tz.call(this,a);this.tfc=b;this.w8="w";this.cka="z";zgb(this,c)};
_.z(Dgb,Tz);Dgb.prototype.gK=function(){var a=this;return Oz(this.logger,function(){return _.db(a.tfc)},"d")};
Dgb.prototype.v8=function(){return this.tfc};
var Egb=function(a,b){Tz.call(this,a);this.error=b;this.w8="e";this.cka="y"};
_.z(Egb,Tz);var Fgb=function(a,b){var c=(b(a.error.message)+":"+b(a.error.stack)).substring(0,2048);b=c.length+1;c=nja(c);var d=new Uint8Array(4+c.length);d.set([42,b&127|128,b>>7,a.error.code]);d.set(c,4);return d};
Egb.prototype.gK=function(){if(this.xKb)return this.xKb;this.xKb=Fgb(this,function(a){return"_"+xgb(a)});
return Fgb(this,function(a){return a})};
var Ggb=function(a,b,c){Tz.call(this,a);this.aRc=b;this.clientState=c;this.w8="S";this.cka="q"};
_.z(Ggb,Tz);Ggb.prototype.gK=function(){var a=Math.floor(Date.now()/1E3),b=[Math.random()*255,Math.random()*255],c=b.concat([this.aRc&255,this.clientState],[a>>24&255,a>>16&255,a>>8&255,a&255]);a=new Uint8Array(2+c.length);a[0]=34;a[1]=c.length;a.set(c,2);c=a.subarray(2);for(var d=b=b.length;d<c.length;++d)c[d]^=c[d%b];this.logger.rIa(this.clientState);return a};var Hgb={mJc:3E4,wcd:2E4},Uz=function(a){_.tg.call(this);var b=this;this.oaa=new _.gq;this.n4a=0;this.oJ=void 0;this.state=2;this.qc=a.qc;this.nJ=a.nJ;this.gta=Object.assign({},Hgb,a.gta||{});this.logger=a.qc.esa();var c;this.onError=(c=a.onError)!=null?c:function(){};
this.cub=a.cub||!1;if(Igb(a)){var d=this.qc;this.xrb=function(){return igb(d).catch(function(k){k=b.reportError(new lz(b.gw?20:32,"TRG:Disposed",k));b.oJ=k;var m;(m=b.gw)==null||m.dispose();b.gw=void 0;b.oaa.reject(k)})};
jgb(d,function(){return void Jgb(b)});
d.yYb===2&&Jgb(this)}else this.xrb=a.dAe,Jgb(this);var e=this.logger.share();e.eG("o");var g=new Pfb(e,"o");this.oaa.promise.then(function(){g.done();e.sK();e.dispose()},function(){return void e.dispose()});
this.addOnDisposeCallback(function(){b.gw?(b.gw.dispose(),b.gw=void 0):b.oJ?b.logger.sK():(b.oJ=b.reportError(new lz(32,"TNP:Disposed")),b.logger.sK(),b.oaa.reject(b.oJ))});
_.gg(this,this.logger)};
_.z(Uz,_.tg);Uz.prototype.d7a=function(){return this.oaa.promise};
var Kgb=function(a,b){if(!(b instanceof lz))if(b instanceof _.Jz){var c=Error(b.toString());c.stack=b.stack;b=new lz(11,"EBH:Error",c)}else b=new lz(12,"BSO:Unknown",b);return a.reportError(b)},Jgb=function(a){var b,c,d,e,g,k,m,n,r,t,u,w,A,C,G;
return _.l(function(J){switch(J.nextAddress){case 1:b=void 0;a.n4a++;c=new _.gq;a.qc instanceof Qz&&a.qc.iqa.push(c.promise);if(!a.cub){J.jumpTo(2);break}d=new _.gq;setTimeout(function(){return void d.resolve()});
return _.p(J,d.promise,2);case 2:return e=a.logger.share(),_.me(J,4,5),a.state=5,g={},k=[],_.p(J,pg(a.qc.snapshot({aw:g,sfc:k}),a.gta.wcd,function(){return Promise.reject(new lz(15,"MDA:Timeout"))}),7);
case 7:m=J.yieldResult;if(a.isDisposed())throw new lz(a.gw?20:32,"MDA:Disposed");n=k[0];a.state=6;return _.p(J,pg(Lgb(a.nJ,m),a.gta.mJc,function(){return Promise.reject(new lz(10,"BWB:Timeout"))}),8);
case 8:r=J.yieldResult;if(a.isDisposed())throw new lz(a.gw?20:32,"BWB:Disposed");a.state=7;b=Oz(e,function(){var R=Mgb(a,r,c,n);R.amb.promise.then(function(){return void a.xrb()});
return R},"i");
case 5:_.oe(J);e.dispose();_.qe(J,6);break;case 4:t=_.re(J);(u=b)==null||u.dispose();if(!a.oJ){w=Kgb(a,t);c.resolve();var I;if(I=a.qc instanceof Qz&&a.n4a<2)a:if(t instanceof lz)I=t.code!==32&&t.code!==20&&t.code!==10;else{if(t instanceof _.Jz)switch(t.code){case 2:case 13:case 14:case 4:break;default:I=!1;break a}I=!0}if(I)return A=(1+Math.random()*.25)*(a.gw?6E4:1E3),C=setTimeout(function(){return void a.xrb()},A),a.addOnDisposeCallback(function(){return void clearTimeout(C)}),J.return();
a.oJ=w}e.logError(a.gw?13:14);a.oaa.reject(a.oJ);return J.return();case 6:a.state=8,a.n4a=0,(G=a.gw)==null||G.dispose(),a.gw=b,a.oaa.resolve(),_.se(J)}})},Mgb=function(a,b,c,d){var e=J9a(b,2)*1E3;
if(e<=0)throw new lz(31,"TTM:Invalid");if(_.Ox(b,4))return new Dgb(a.logger,_.Ox(b,4),e);if(!J9a(b,3))return new Cgb(a.logger,s9a(_.Cx(b,1)),e);if(!d)throw new lz(4,"PMD:Undefined");d=d(s9a(_.Cx(b,1)));if(!(d instanceof Function))throw new lz(16,"APF:Failed");a.nRc=Math.floor((Date.now()+e)/1E3);a=new Bgb(a.logger,d,J9a(b,3),e);a.addOnDisposeCallback(function(){return void c.resolve()});
return a};
Uz.prototype.gK=function(a){return Ngb(this,Object.assign({},a),!1)};
Uz.prototype.v8=function(a){return Ngb(this,Object.assign({},a),!0)};
Uz.prototype.cNb=function(a){if(a>150)return!1;try{return this.cache=new rgb(a,this.logger),!0}catch(b){return this.reportError(new lz(22,"GBJ:init",b)),!1}};
Uz.prototype.reportError=function(a){this.logger.logError(a.code);this.onError(a);return a};
var Ogb=function(a,b){b=b instanceof lz?b:new lz(5,"TVD:error",b);return a.reportError(b)},Ngb=function(a,b,c){try{if(a.isDisposed())throw new lz(21,"BNT:disposed");
if(!a.gw&&a.oJ)throw a.oJ;var d,e;return(e=(d=Pgb(a,b,c))!=null?d:Qgb(a,b,c))!=null?e:Rgb(a,b,c)}catch(g){if(!b.kfb)throw Ogb(a,g);return Sgb(a,c,g)}},Pgb=function(a,b,c){var d;
return(d=a.gw)==null?void 0:Agb(d,function(){return Tgb(a,b)},c,function(e){var g;
if(a.gw instanceof Bgb&&((g=b.vN)==null?0:g.obc))try{var k;(k=a.cache)==null||sgb(k,Tgb(a,b),e,b.vN.f2a,a.nRc-120)}catch(m){a.reportError(new lz(24,"ELX:write",m))}})},Qgb=function(a,b,c){var d;
if((d=b.vN)!=null&&d.uIb)try{var e,g=(e=a.cache)==null?void 0:tgb(e,Tgb(a,b),b.vN.f2a);return g?c?Oz(a.logger,function(){return _.wc(g,2)},"a"):g:void 0}catch(k){a.reportError(new lz(23,"RXO:read",k))}},Rgb=function(a,b,c){var d={stack:[],
error:void 0,hasError:!1};try{if(!b.jfb)throw new lz(29,"SDF:notready");return Agb(_.Pr(d,new Ggb(a.logger,0,a.state)),function(){return Tgb(a,b)},c)}catch(e){d.error=e,d.hasError=!0}finally{_.Qr(d)}},Sgb=function(a,b,c){var d={stack:[],
error:void 0,hasError:!1};try{var e=Ogb(a,c);return Agb(_.Pr(d,new Egb(a.logger,e)),function(){return[]},b)}catch(g){d.error=g,d.hasError=!0}finally{_.Qr(d)}},Tgb=function(a,b){return b.dEa?b.dEa:b.aw?Oz(a.logger,function(){return b.dEa=nja(b.aw)},"c"):[]},Igb=function(a){return Hb(function(b){if(!lka(b))return!1;
for(var c=_.h(Object.entries(a)),d=c.next();!d.done;d=c.next()){var e=_.h(d.value);d=e.next().value;e=e.next().value;if(!(d in b)){if(e.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!e(b[d]))return!1}return!0})}({qc:function(a){return Hb(function(b){return b instanceof a})}(Qz)},"");var aJa=function(){var a=_.oq();this.JSC$7787_streamzService=a;a.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",ag("tick"),_.Zf("from_st_cookie"))};
aJa.prototype.increment=function(a,b){this.JSC$7787_streamzService.JSC$7639_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",a,b)};
var Ugb=function(){var a=_.oq();this.JSC$7793_streamzService=a;a.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.bg("status"))};
Ugb.prototype.increment=function(a){this.JSC$7793_streamzService.JSC$7639_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",a)};
var Vgb=function(){var a=_.oq();this.JSC$7796_streamzService=a;a.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.bg("stage"),_.Zf("is_using_ytd_player"),_.Zf("has_expandable_tiles"))};
Vgb.prototype.increment=function(a,b,c){this.JSC$7796_streamzService.JSC$7639_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",a,b,c)};
var Wgb=function(){var a=_.oq();this.JSC$7799_streamzService=a;a.addNewCounter("/client_streamz/youtube/web/response_signature",_.bg("check_status"))};
Wgb.prototype.increment=function(a){this.JSC$7799_streamzService.JSC$7639_incrementCounter("/client_streamz/youtube/web/response_signature",a)};
_.Xgb=function(){var a=_.oq();this.JSC$7802_streamzService=a;a.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.bg("action"))};
_.Xgb.prototype.increment=function(a){this.JSC$7802_streamzService.JSC$7639_incrementCounter("/client_streamz/youtube/web/enforcement_intent",a)};var EKa=function(){var a=_.oq();this.JSC$7805_streamzService=a;a.addNewCounter("/client_streamz/youtube/web_creator/polymer_template_query_fallback_events",_.bg("tagname"))};
EKa.prototype.increment=function(a){this.JSC$7805_streamzService.JSC$7639_incrementCounter("/client_streamz/youtube/web_creator/polymer_template_query_fallback_events",a)};var Vz=window;var Ygb=(new Date).getTime();var Zgb=function(a){this.servicePromise_=a;a.then((0,_.ug)(function(){},this),function(){},this)},$gb=function(a,b,c){a.servicePromise_.then(function(d){var e=d[b];
if(!e)throw Error("Ra`"+b);return e.apply(d,c)})},chb=function(a,b,c){for(var d=Array(arguments.length-2),e=2;e<arguments.length;e++)d[e-2]=arguments[e];
e=ahb(a,b).then(function(g){return g.apply(null,d)},function(g){g=Error("Sa`"+b+"`"+a,{cause:g});
delete bhb[b];return _.Pn(g)});
return new Zgb(e)},bhb={},ahb=function(a,b){var c=bhb[b];
if(c)return c;c=(c=_.Ji(b))?_.oo(c):(new _.kl(function(d,e){var g=(new Ly(document)).createElement("SCRIPT");g.async=!0;_.Xd(g,_.vd(Acb(a)));g.onload=g.onreadystatechange=function(){g.readyState&&g.readyState!="loaded"&&g.readyState!="complete"||d()};
g.onerror=function(k){e(Error("Ta`"+b+"`"+a,{cause:k}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(g)})).then(function(){var d=_.Ji(b);
if(!d)throw Error("Ua`"+b+"`"+a);return d});
return bhb[b]=c};var dhb={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},fhb=function(){var a=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=oja(function(){return _.l(function(b){if(b.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?b.return(Promise.resolve()):_.p(b,ehb(a),2);a.rsaForList.length>
0&&document.addEventListener("click",a.requestAccessForHelpPanel);_.se(b)})});
this.requestAccessForHelpPanel=function(){if(!(a.rsaForPromises.length>0)){for(var b=_.h(a.rsaForList),c=b.next();!c.done;c=b.next()){c=c.value;try{a.rsaForPromises.push(document.requestStorageAccessFor(c))}catch(d){}}Promise.all(a.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){a.reset()})}}};
fhb.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var ehb=function(a){var b,c,d,e;return _.l(function(g){switch(g.nextAddress){case 1:b=_.h(Object.values(dhb)),c=b.next();case 2:if(c.done){g.jumpTo(0);break}d=c.value;_.me(g,5);return _.p(g,navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:d}),7);case 7:e=g.yieldResult;e.state!=="granted"&&a.rsaForList.push(d);_.Jj(g,3);break;case 5:_.re(g);g.jumpTo(0);break;case 3:c=b.next(),g.jumpTo(2)}})};(new fhb).initialize();var ghb=function(a){this.JSC$7819_loader_=a};
ghb.prototype.startHelp=function(a){$gb(this.JSC$7819_loader_,"startHelp",arguments)};
ghb.prototype.JSC$7821_loadChatSupport=function(a){$gb(this.JSC$7819_loader_,"loadChatSupport",arguments)};
var ihb=function(a,b){b=b||{};a=chb(hhb,"help.service.Lazy.create",a,{apiKey:b.apiKey||b.apiKey,asxUiUri:b.asxUiUri||b.asxUiUri,environment:b.environment||b.environment,flow:b.flow||b.flow,frdProductData:b.frdProductData||b.frdProductData,frdProductDataSerializedJspb:b.frdProductDataSerializedJspb||b.frdProductDataSerializedJspb,helpCenterPath:b.helpCenterPath||b.helpCenterPath,locale:b.locale||b.locale||"en-US".replace(/-/g,"_"),nonce:b.nonce||b.nonce,productData:b.productData||b.productData,receiverUri:b.receiverUri||
b.receiverUri,renderApiUri:b.renderApiUri||b.renderApiUri,theme:b.theme||b.theme,window:b.window||b.window});return new ghb(a)},hhb=new Fl(Xta,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var jhb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(jhb,_.Xc);var khb=_.kd(jhb);new Uint8Array([]);_.lhb=new function(a,b,c,d){this.configType=a;this.flagName=c;this.defaultValue=d;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 nhb=function(){this.retriever=_.v().resolve(mhb)};qja(Node);qja(Element);var ohb=qja(HTMLElement);qja(SVGElement);var phb,qhb,Yz,rhb;phb=function(a){return typeof a.className=="string"?a.className:a.getAttribute&&a.getAttribute("class")||""};
qhb=function(a){return a.classList?a.classList:phb(a).match(/\S+/g)||[]};
_.Wz=function(a,b){typeof a.className=="string"?a.className=b:a.setAttribute&&a.setAttribute("class",b)};
_.Xz=function(a,b){return a.classList?a.classList.contains(b):_.Pa(qhb(a),b)};
_.Ts=function(a,b){if(a.classList)a.classList.add(b);else if(!_.Xz(a,b)){var c=phb(a);_.Wz(a,c+(c.length>0?" "+b:b))}};
Yz=function(a,b){if(a.classList)Array.prototype.forEach.call(b,function(e){_.Ts(a,e)});
else{var c={};Array.prototype.forEach.call(qhb(a),function(e){c[e]=!0});
Array.prototype.forEach.call(b,function(e){c[e]=!0});
b="";for(var d in c)b+=b.length>0?" "+d:d;_.Wz(a,b)}};
_.Rs=function(a,b){a.classList?a.classList.remove(b):_.Xz(a,b)&&_.Wz(a,Array.prototype.filter.call(qhb(a),function(c){return c!=b}).join(" "))};
rhb=function(a,b){a.classList?Array.prototype.forEach.call(b,function(c){_.Rs(a,c)}):_.Wz(a,Array.prototype.filter.call(qhb(a),function(c){return!_.Pa(b,c)}).join(" "))};var shb=function(a){this.logger=this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=a.document},vhb=function(a,b){thb(a);
var c=document.createElement("div"),d;(d=b.parentNode)==null||d.insertBefore(c,b);c.tabIndex=0;c.id="fc-focus-trap-pre-div";c=document.createElement("div");var e;(e=b.parentNode)==null||e.insertBefore(c,b.nextSibling);c.tabIndex=0;c.id="fc-focus-trap-post-div";var g=uhb(a,b),k=uhb(a,b,!0);g&&k&&(a.focusChangeHandler=function(){var m=a.document.activeElement;if(m)if(_.Gg(b,m))a.previouslyFocusedElement=m;else if(m===a.document.activeElement)switch(a.previouslyFocusedElement){case g:k.focus();a.previouslyFocusedElement=
k;break;default:g.focus(),a.previouslyFocusedElement=g}},a.document.addEventListener("focus",a.focusChangeHandler,!0),a.document.addEventListener("focusin",a.focusChangeHandler))},thb=function(a){a.focusChangeHandler&&(document.removeEventListener("focus",a.focusChangeHandler,!0),document.removeEventListener("focusin",a.focusChangeHandler),a.focusChangeHandler=null);
var b;(b=document.getElementById("fc-focus-trap-pre-div"))==null||b.remove();var c;(c=document.getElementById("fc-focus-trap-post-div"))==null||c.remove()},whb=function(a,b,c,d,e){c=c===void 0?!0:c;
var g;e=(g=e===void 0?null:e)!=null?g:uhb(a,b,d===void 0?!1:d);e!==null&&(e.focus(),c&&vhb(a,b))};
shb.prototype.disableButton=function(a,b){b=b===void 0?null:b;a.disabled=!0;b&&_.Ts(a,b)};
var uhb=function(a,b,c){c=c===void 0?!1:c;if(nsa(b)&&!c)return b;var d=c?[].slice.call(b.children,0).reverse():b.children;d=_.h(d);for(var e=d.next();!e.done;e=d.next())if(e=e.value,ohb(e)&&(e=uhb(a,e,c)))return e;return nsa(b)&&c?b:null};var xhb=function(a){this.originalBodyOverflow="";this.JSC$7847_domHelper=rf(a)};_.nx(_.vg,_.tg);_.f=_.vg.prototype;_.f.JSC$7850_id_=0;_.f.disposeInternal=function(){_.vg.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$7848_listener_;delete this.handler_};
_.f.start=function(a){this.stop();this.JSC$7850_id_=Iz(this.callback_,a!==void 0?a:this.JSC$7848_interval_)};
_.f.stop=function(){this.isActive()&&_.ja.clearTimeout(this.JSC$7850_id_);this.JSC$7850_id_=0};
_.f.fire=function(){this.stop();this.JSC$7850_doAction_()};
_.f.isActive=function(){return this.JSC$7850_id_!=0};
_.f.JSC$7850_doAction_=function(){this.JSC$7850_id_=0;this.JSC$7848_listener_&&this.JSC$7848_listener_.call(this.handler_)};_.bn=function(a){_.tg.call(this);this.handler_=a;this.JSC$7851_keys_={}};
_.nx(_.bn,_.tg);var yhb=[];_.bn.prototype.listen=function(a,b,c,d){Array.isArray(b)||(b&&(yhb[0]=b.toString()),b=yhb);for(var e=0;e<b.length;e++){var g=_.ss(a,b[e],c||this.handleEvent,d||!1,this.handler_||this);if(!g)break;this.JSC$7851_keys_[g.key]=g}return this};
_.bn.prototype.listenOnce=function(a,b,c,d){return zhb(this,a,b,c,d)};
var zhb=function(a,b,c,d,e,g){if(Array.isArray(c))for(var k=0;k<c.length;k++)zhb(a,b,c[k],d,e,g);else{b=os(b,c,d||a.handleEvent,e,g||a.handler_||a);if(!b)return a;a.JSC$7851_keys_[b.key]=b}return a};
_.bn.prototype.unlisten=function(a,b,c,d,e){if(Array.isArray(b))for(var g=0;g<b.length;g++)this.unlisten(a,b[g],c,d,e);else if(a=Yeb(a,b,c||this.handleEvent,_.$a(d)?!!d.capture:!!d,e||this.handler_||this))ps(a),delete this.JSC$7851_keys_[a.key];return this};
_.bn.prototype.removeAll=function(){_.yf.forEach(this.JSC$7851_keys_,function(a,b){this.JSC$7851_keys_.hasOwnProperty(b)&&ps(a)},this);
this.JSC$7851_keys_={}};
_.bn.prototype.disposeInternal=function(){_.bn.superClass_.disposeInternal.call(this);this.removeAll()};
_.bn.prototype.handleEvent=function(){throw Error("Va");};var Zz=function(){_.tg.call(this);this.services_={}};
_.nx(Zz,_.tg);_.f=Zz.prototype;_.f.logger=null;_.f.connect=function(a){a&&a()};
_.f.isConnected=function(){return!0};
_.f.registerService=function(a,b,c){this.services_[a]={callback:b,objectPayload:!!c}};
_.f.getService=function(a,b){var c=this.services_[a];return c?c:this.defaultService_?{callback:_.vo(this.defaultService_,a),objectPayload:_.$a(b)}:null};
var Ahb=function(a,b){if(b&&typeof a==="string")try{return JSON.parse(a)}catch(c){return null}else if(!b&&typeof a!=="string")return(0,_.Kz)(a);return a};
Zz.prototype.disposeInternal=function(){Zz.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 $z=function(a,b){this.sequence_=[];this.onCancelFunction_=a;this.defaultScope_=b||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};
$z.prototype.cancel=function(a){if(this.fired_)this.result_ instanceof $z&&this.result_.cancel();else{if(this.parent_){var b=this.parent_;delete this.parent_;a?b.cancel(a):(b.branches_--,b.branches_<=0&&b.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new aA(this))}};
$z.prototype.continue_=function(a,b){this.blocked_=!1;Bhb(this,a,b)};
var Bhb=function(a,b,c){a.fired_=!0;a.result_=c;a.hadError_=!b;Chb(a)},Ehb=function(a){if(a.fired_){if(!a.silentlyCanceled_)throw new Dhb(a);
a.silentlyCanceled_=!1}};
$z.prototype.callback=function(a){Ehb(this);Bhb(this,!0,a)};
$z.prototype.errback=function(a){Ehb(this);Bhb(this,!1,a)};
var Fhb=function(a,b,c){bA(a,b,null,c)};
$z.prototype.finally=function(a){var b=this;return new Promise(function(c,d){bA(b,function(e){a();c(e)},function(e){a();
d(e)})})};
var bA=function(a,b,c,d){var e=a.fired_;e||(b===c?b=c=Ez(b):(b=Ez(b),c=Ez(c)));a.sequence_.push([b,c,d]);e&&Chb(a)};
$z.prototype.then=function(a,b,c){var d,e,g=new _.kl(function(k,m){e=k;d=m});
bA(this,e,function(k){k instanceof aA?g.cancel():d(k);return Ghb},this);
return g.then(a,b,c)};
ffb($z);var Hhb=function(a,b){b instanceof $z?Fhb(a,(0,_.ug)(b.branch,b)):Fhb(a,function(){return b})};
$z.prototype.branch=function(a){var b=new $z;bA(this,b.callback,b.errback,b);a&&(b.parent_=this,this.branches_++);return b};
$z.prototype.isError=function(a){return a instanceof Error};
var Ihb=function(a){return Nk(a.sequence_,function(b){return typeof b[1]==="function"})},Ghb={},Chb=function(a){if(a.unhandledErrorId_&&a.fired_&&Ihb(a)){var b=a.unhandledErrorId_,c=Jhb[b];
c&&(_.ja.clearTimeout(c.JSC$7868_id_),delete Jhb[b]);a.unhandledErrorId_=0}a.parent_&&(a.parent_.branches_--,delete a.parent_);b=a.result_;for(var d=c=!1;a.sequence_.length&&!a.blocked_;){var e=a.sequence_.shift(),g=e[0],k=e[1];e=e[2];if(g=a.hadError_?k:g)try{var m=g.call(e||a.defaultScope_,b);m===Ghb&&(m=void 0);m!==void 0&&(a.hadError_=a.hadError_&&(m==b||a.isError(m)),a.result_=b=m);if(gfb(b)||typeof _.ja.Promise==="function"&&b instanceof _.ja.Promise)d=!0,a.blocked_=!0}catch(n){b=n,a.hadError_=
!0,Ihb(a)||(c=!0)}}a.result_=b;d&&(m=(0,_.ug)(a.continue_,a,!0),d=(0,_.ug)(a.continue_,a,!1),b instanceof $z?(bA(b,m,d),b.blocking_=!0):b.then(m,d));c&&(b=new Khb(b),Jhb[b.JSC$7868_id_]=b,a.unhandledErrorId_=b.JSC$7868_id_)},Dhb=function(){_.da.call(this)};
_.nx(Dhb,_.da);Dhb.prototype.message="Deferred has already fired";Dhb.prototype.name="AlreadyCalledError";var aA=function(){_.da.call(this)};
_.nx(aA,_.da);aA.prototype.message="Deferred was canceled";aA.prototype.name="CanceledError";var Khb=function(a){this.JSC$7868_id_=_.ja.setTimeout((0,_.ug)(this.throwError,this),0);this.JSC$7868_error_=a};
Khb.prototype.throwError=function(){delete Jhb[this.JSC$7868_id_];throw this.JSC$7868_error_;};
var Jhb={};var Lhb={1:"NativeMessagingTransport"},Mhb=["pu","lru","pru","lpu","ppu"],Ohb=function(){for(var a=10,b=Nhb,c=b.length,d="";a-- >0;)d+=b.charAt(Math.floor(Math.random()*c));return d},Nhb="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var cA=function(a){_.tg.call(this);this.JSC$7871_domHelper_=a||rf()};
_.nx(cA,_.tg);cA.prototype.transportType=0;cA.prototype.getType=function(){return this.transportType};
cA.prototype.getWindow=function(){return this.JSC$7871_domHelper_.getWindow()};
cA.prototype.getName=function(){return Lhb[String(this.transportType)]||""};var dA=function(a,b,c,d,e){cA.call(this,c);this.JSC$7874_channel_=a;this.protocolVersion_=e||2;this.peerHostname_=b||"*";this.JSC$7874_eventHandler_=new _.bn(this);this.maybeAttemptToConnectTimer_=new _.an(100,this.getWindow());this.oneSidedHandshake_=!!d;this.setupAckReceived_=new $z;this.setupAckSent_=new $z;this.JSC$7874_connected_=new $z;this.endpointId_=Ohb();this.peerEndpointId_=null;this.oneSidedHandshake_?Phb(this.JSC$7874_channel_)==1?Hhb(this.JSC$7874_connected_,this.setupAckReceived_):
Hhb(this.JSC$7874_connected_,this.setupAckSent_):(Hhb(this.JSC$7874_connected_,this.setupAckReceived_),this.protocolVersion_==2&&Hhb(this.JSC$7874_connected_,this.setupAckSent_));Fhb(this.JSC$7874_connected_,this.notifyConnected_,this);this.JSC$7874_connected_.callback(!0);this.JSC$7874_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.nx(dA,cA);dA.prototype.peerProtocolVersion_=null;dA.prototype.initialized_=!1;dA.prototype.transportType=1;var Qhb={};dA.prototype.sendTimerId_=0;
var Thb=function(a){var b=a.event_.data;if(typeof b!=="string")return!1;var c=b.indexOf("|"),d=b.indexOf(":");if(c==-1||d==-1)return!1;var e=b.substring(0,c);c=b.substring(c+1,d);b=b.substring(d+1);if(d=eA[e])return d.xpcDeliver(c,b,a.event_.origin),!0;d=Rhb(b)[0];for(var g in eA){var k=eA[g];if(Phb(k)==1&&!k.isConnected()&&c=="tp"&&(d=="SETUP"||d=="SETUP_NTPV2")&&Shb(k,a.event_.origin))return delete eA[k.name],k.name=e,eA[e]=k,k.xpcDeliver(c,b),!0}return!1},Uhb=function(a){a.protocolVersion_!=2||
a.peerProtocolVersion_!=null&&a.peerProtocolVersion_!=2||a.send("tp","SETUP_NTPV2,"+a.endpointId_);
a.peerProtocolVersion_!=null&&a.peerProtocolVersion_!=1||a.send("tp","SETUP")},Vhb=function(a,b){if(a.protocolVersion_!=2||a.peerProtocolVersion_!=null&&a.peerProtocolVersion_!=2||b!=2){if(a.peerProtocolVersion_!=null&&a.peerProtocolVersion_!=1||b!=1)return;
a.send("tp","SETUP_ACK")}else a.send("tp","SETUP_ACK_NTPV2");a.setupAckSent_.fired_||a.setupAckSent_.callback(!0)},Whb=function(a,b){b>a.peerProtocolVersion_&&(a.peerProtocolVersion_=b);
a.peerProtocolVersion_==1&&(a.setupAckSent_.fired_||a.oneSidedHandshake_||a.setupAckSent_.callback(!0),a.peerEndpointId_=null)};
_.f=dA.prototype;_.f.connect=function(){var a=this.getWindow(),b=_.ab(a),c=Qhb[b];typeof c!=="number"&&(c=0);c==0&&_.ss(a.postMessage?a:a.document,"message",Thb,!1,dA);Qhb[b]=c+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.f.maybeAttemptToConnect_=function(){var a=Phb(this.JSC$7874_channel_)==0;this.oneSidedHandshake_&&a||this.JSC$7874_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),Uhb(this))};
_.f.send=function(a,b){var c=this.JSC$7874_channel_.peerWindowObject_;c&&(this.send=function(d,e){var g=this,k=this.JSC$7874_channel_.name;this.sendTimerId_=Iz(function(){g.sendTimerId_=0;try{var m=c.postMessage?c:c.document;m.postMessage&&m.postMessage(k+"|"+d+":"+e,g.peerHostname_)}catch(n){}},0)},this.send(a,b))};
_.f.notifyConnected_=function(){var a=this.JSC$7874_channel_,b=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;a.isConnected()||a.connectionDelay_&&a.connectionDelay_.isActive()||(a.state_=2,_.Tf(a.connectionDelay_),b!==void 0?(a.connectionDelay_=new _.vg(a.connectCb_,b),a.connectionDelay_.start()):(a.connectionDelay_=null,a.connectCb_()))};
_.f.disposeInternal=function(){if(this.initialized_){var a=this.getWindow(),b=_.ab(a),c=Qhb[b];Qhb[b]=c-1;c==1&&_.Cz(a.postMessage?a:a.document,"message",Thb,!1,dA)}this.sendTimerId_&&(_.ja.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.Tf(this.JSC$7874_eventHandler_);delete this.JSC$7874_eventHandler_;_.Tf(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$7874_connected_.cancel();delete this.JSC$7874_connected_;delete this.send;dA.superClass_.disposeInternal.call(this)};
var Rhb=function(a){a=a.split(",");a[1]=a[1]||null;return a};_.fA=function(a){if(a.getValues&&typeof a.getValues=="function")return a.getValues();if(typeof Map!=="undefined"&&a instanceof Map||typeof Set!=="undefined"&&a instanceof Set)return Array.from(a.values());if(typeof a==="string")return a.split("");if(_.Sa(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return _.yf.getValues(a)};
_.Xhb=function(a){if(a.getKeys&&typeof a.getKeys=="function")return a.getKeys();if(!a.getValues||typeof a.getValues!="function"){if(typeof Map!=="undefined"&&a instanceof Map)return Array.from(a.keys());if(!(typeof Set!=="undefined"&&a instanceof Set)){if(_.Sa(a)||typeof a==="string"){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return _.yf.getKeys(a)}}};
_.Yhb=function(a,b,c){if(a.forEach&&typeof a.forEach=="function")a.forEach(b,c);else if(_.Sa(a)||typeof a==="string")Array.prototype.forEach.call(a,b,c);else for(var d=_.Xhb(a),e=_.fA(a),g=e.length,k=0;k<g;k++)b.call(c,e[k],d&&d[k],a)};var jJa,mA,oA,fib,$hb,Zhb,bib,aib,eib,cib;
_.Wn=function(a,b){this.JSC$7879_domain_=this.userInfo_=this.scheme_="";this.JSC$7879_port_=null;this.fragment_=this.JSC$7879_path_="";this.JSC$7879_ignoreCase_=!1;var c;a instanceof _.Wn?(this.JSC$7879_ignoreCase_=b!==void 0?b:a.JSC$7879_ignoreCase_,_.gA(this,a.scheme_),this.userInfo_=a.userInfo_,_.hA(this,a.JSC$7879_domain_),_.iA(this,a.JSC$7879_port_),_.jA(this,a.getPath()),_.kA(this,a.JSC$7879_queryData_.clone()),_.lA(this,a.fragment_)):a&&(c=_.Ri(String(a)))?(this.JSC$7879_ignoreCase_=!!b,_.gA(this,
c[1]||"",!0),this.userInfo_=mA(c[2]||""),_.hA(this,c[3]||"",!0),_.iA(this,c[4]),_.jA(this,c[5]||"",!0),_.kA(this,c[6]||"",!0),_.lA(this,c[7]||"",!0)):(this.JSC$7879_ignoreCase_=!!b,this.JSC$7879_queryData_=new _.nA(null,this.JSC$7879_ignoreCase_))};
_.Wn.prototype.toString=function(){var a=[],b=this.scheme_;b&&a.push(oA(b,Zhb,!0),":");var c=this.JSC$7879_domain_;if(c||b=="file")a.push("//"),(b=this.userInfo_)&&a.push(oA(b,Zhb,!0),"@"),a.push($hb(_.Li(c))),c=this.JSC$7879_port_,c!=null&&a.push(":",String(c));if(c=this.getPath())this.JSC$7879_domain_&&c.charAt(0)!="/"&&a.push("/"),a.push(oA(c,c.charAt(0)=="/"?aib:bib,!0));(c=this.JSC$7879_queryData_.toString())&&a.push("?",c);(c=this.fragment_)&&a.push("#",oA(c,cib));return a.join("")};
_.Wn.prototype.resolve=function(a){var b=this.clone(),c=!!a.scheme_;c?_.gA(b,a.scheme_):c=!!a.userInfo_;c?b.userInfo_=a.userInfo_:c=!!a.JSC$7879_domain_;c?_.hA(b,a.JSC$7879_domain_):c=a.JSC$7879_port_!=null;var d=a.getPath();if(c)_.iA(b,a.JSC$7879_port_);else if(c=!!a.JSC$7879_path_){if(d.charAt(0)!="/")if(this.JSC$7879_domain_&&!this.JSC$7879_path_)d="/"+d;else{var e=b.getPath().lastIndexOf("/");e!=-1&&(d=b.getPath().slice(0,e+1)+d)}e=d;if(e==".."||e==".")d="";else if(_.ra(e,"./")||_.ra(e,"/.")){d=
_.na(e,"/");e=e.split("/");for(var g=[],k=0;k<e.length;){var m=e[k++];m=="."?d&&k==e.length&&g.push(""):m==".."?((g.length>1||g.length==1&&g[0]!="")&&g.pop(),d&&k==e.length&&g.push("")):(g.push(m),d=!0)}d=g.join("/")}else d=e}c?_.jA(b,d):c=a.JSC$7879_queryData_.toString()!=="";c?_.kA(b,a.JSC$7879_queryData_.clone()):c=!!a.fragment_;c&&_.lA(b,a.fragment_);return b};
_.Wn.prototype.clone=function(){return new _.Wn(this)};
_.gA=function(a,b,c){a.scheme_=c?mA(b,!0):b;a.scheme_&&(a.scheme_=a.scheme_.replace(/:$/,""));return a};
_.hA=function(a,b,c){a.JSC$7879_domain_=c?mA(b,!0):b;return a};
_.iA=function(a,b){if(b){b=Number(b);if(isNaN(b)||b<0)throw Error("Wa`"+b);a.JSC$7879_port_=b}else a.JSC$7879_port_=null;return a};
_.Wn.prototype.getPath=function(){return this.JSC$7879_path_};
_.jA=function(a,b,c){a.JSC$7879_path_=c?mA(b,!0):b;return a};
_.kA=function(a,b,c){b instanceof _.nA?(a.JSC$7879_queryData_=b,dib(a.JSC$7879_queryData_,a.JSC$7879_ignoreCase_)):(c||(b=oA(b,eib)),a.JSC$7879_queryData_=new _.nA(b,a.JSC$7879_ignoreCase_));return a};
_.Lg=function(a,b,c){a.JSC$7879_queryData_.set(b,c);return a};
_.Kg=function(a,b){return a.JSC$7879_queryData_.get(b)};
_.lA=function(a,b,c){a.fragment_=c?mA(b):b;return a};
_.pA=function(a){_.Lg(a,"zx",Ig());return a};
_.Jg=function(a,b){return a instanceof _.Wn?a.clone():new _.Wn(a,b)};
jJa=function(a,b){a instanceof _.Wn||(a=_.Jg(a));b instanceof _.Wn||(b=_.Jg(b));return a.resolve(b)};
mA=function(a,b){return a?b?decodeURI(a.replace(/%25/g,"%2525")):decodeURIComponent(a):""};
oA=function(a,b,c){return typeof a==="string"?(a=encodeURI(a).replace(b,fib),c&&(a=$hb(a)),a):null};
fib=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};
$hb=function(a){return a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")};
Zhb=/[#\/\?@]/g;bib=/[#\?:]/g;aib=/[#\?]/g;eib=/[#\?@]/g;cib=/#/g;_.nA=function(a,b){this.count_=this.keyMap_=null;this.encodedQuery_=a||null;this.JSC$7880_ignoreCase_=!!b};
_.qA=function(a){a.keyMap_||(a.keyMap_=new Map,a.count_=0,a.encodedQuery_&&Obb(a.encodedQuery_,function(b,c){a.add(Vi(b),c)}))};
_.f=_.nA.prototype;_.f.getCount=function(){_.qA(this);return this.count_};
_.f.add=function(a,b){_.qA(this);this.encodedQuery_=null;a=rA(this,a);var c=this.keyMap_.get(a);c||this.keyMap_.set(a,c=[]);c.push(b);this.count_+=1;return this};
_.f.remove=function(a){_.qA(this);a=rA(this,a);return this.keyMap_.has(a)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(a).length,this.keyMap_.delete(a)):!1};
_.f.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.f.isEmpty=function(){_.qA(this);return this.count_==0};
_.f.containsKey=function(a){_.qA(this);a=rA(this,a);return this.keyMap_.has(a)};
_.f.containsValue=function(a){var b=this.getValues();return _.Pa(b,a)};
_.f.forEach=function(a,b){_.qA(this);this.keyMap_.forEach(function(c,d){c.forEach(function(e){a.call(b,e,d,this)},this)},this)};
_.f.getKeys=function(){_.qA(this);for(var a=Array.from(this.keyMap_.values()),b=Array.from(this.keyMap_.keys()),c=[],d=0;d<b.length;d++)for(var e=a[d],g=0;g<e.length;g++)c.push(b[d]);return c};
_.f.getValues=function(a){_.qA(this);var b=[];if(typeof a==="string")this.containsKey(a)&&(b=b.concat(this.keyMap_.get(rA(this,a))));else{a=Array.from(this.keyMap_.values());for(var c=0;c<a.length;c++)b=b.concat(a[c])}return b};
_.f.set=function(a,b){_.qA(this);this.encodedQuery_=null;a=rA(this,a);this.containsKey(a)&&(this.count_-=this.keyMap_.get(a).length);this.keyMap_.set(a,[b]);this.count_+=1;return this};
_.f.get=function(a,b){if(!a)return b;a=this.getValues(a);return a.length>0?String(a[0]):b};
_.gib=function(a,b,c){a.remove(b);c.length>0&&(a.encodedQuery_=null,a.keyMap_.set(rA(a,b),_.Ra(c)),a.count_+=c.length)};
_.nA.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var a=[],b=Array.from(this.keyMap_.keys()),c=0;c<b.length;c++){var d=b[c],e=_.Li(d);d=this.getValues(d);for(var g=0;g<d.length;g++){var k=e;d[g]!==""&&(k+="="+_.Li(d[g]));a.push(k)}}return this.encodedQuery_=a.join("&")};
_.nA.prototype.clone=function(){var a=new _.nA;a.encodedQuery_=this.encodedQuery_;this.keyMap_&&(a.keyMap_=new Map(this.keyMap_),a.count_=this.count_);return a};
var rA=function(a,b){b=String(b);a.JSC$7880_ignoreCase_&&(b=b.toLowerCase());return b},dib=function(a,b){b&&!a.JSC$7880_ignoreCase_&&(_.qA(a),a.encodedQuery_=null,a.keyMap_.forEach(function(c,d){var e=d.toLowerCase();
d!=e&&(this.remove(d),_.gib(this,e,c))},a));
a.JSC$7880_ignoreCase_=b};
_.nA.prototype.extend=function(a){for(var b=0;b<arguments.length;b++)_.Yhb(arguments[b],function(c,d){this.add(d,c)},this)};var sA=function(a,b){Zz.call(this);for(var c=0,d;d=Mhb[c];c++)if(d in a&&!/^https?:\/\//.test(a[d]))throw Error("Ya`"+a[d]+"`"+d);this.cfg_=a;this.name=this.cfg_.cn||Ohb();this.JSC$7875_domHelper_=b||rf();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.bn(this);a.lpu=a.lpu||Mbb(this.JSC$7875_domHelper_.getWindow().location.href)+"/robots.txt";a.ppu=a.ppu||Mbb(a.pu||"")+"/robots.txt";eA[this.name]=this;Yeb(window,"unload",hib)||os(window,"unload",hib)};
_.nx(sA,Zz);var iib=RegExp("^%*tp$"),jib=RegExp("^%+tp$");_.f=sA.prototype;_.f.connectionDelay_=null;_.f.peerWindowDeferred_=null;_.f.transport_=null;_.f.state_=1;_.f.isConnected=function(){return this.state_==2};
_.f.peerWindowObject_=null;_.f.iframeElement_=null;_.f.connect=function(a){this.connectCb_=a||_.By;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?Fhb(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.f.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$7875_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var a=this.iframeElement_.contentWindow;a||(a=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=a}if(!this.peerWindowObject_){if(window==window.top)throw Error("$a");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$7875_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new dA(this,this.cfg_.ph,this.JSC$7875_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Za");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.f.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.Tf(this.transport_);this.connectCb_=this.transport_=null;_.Tf(this.connectionDelay_);this.connectionDelay_=null};
_.f.send=function(a,b){if(this.isConnected()){try{var c=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(e){c=!1}if(c){_.$a(b)&&(b=(0,_.Kz)(b));c=this.transport_;var d=c.send;iib.test(a)&&(a="%"+a);a=a.replace(/[%:|]/g,encodeURIComponent);d.call(c,a,b)}else this.close()}};
_.f.xpcDeliver=function(a,b,c){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.ug)(this.xpcDeliver,this,a,b,c));else if(Shb(this,c)&&!this.isDisposed()&&this.state_!=3)if(a&&a!="tp")this.isConnected()&&(a=a.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),a=jib.test(a)?a.substring(1):a,a=this.getService(a,b))&&(b=Ahb(b,a.objectPayload),b!=null&&a.callback(b));else switch(a=this.transport_,c=Rhb(b),b=c[1],c[0]){case "SETUP_ACK":Whb(a,1);a.setupAckReceived_.fired_||a.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":a.protocolVersion_==2&&(Whb(a,2),a.setupAckReceived_.fired_||a.setupAckReceived_.callback(!0));break;case "SETUP":Whb(a,1);Vhb(a,1);break;case "SETUP_NTPV2":a.protocolVersion_==2&&(c=a.peerProtocolVersion_,Whb(a,2),Vhb(a,2),c!=1&&a.peerEndpointId_==null||a.peerEndpointId_==b||Uhb(a),a.peerEndpointId_=b)}};
var Phb=function(a){var b=a.cfg_.role;return typeof b==="number"?b:window.parent==a.peerWindowObject_?1:0},Shb=function(a,b){var c=a.cfg_.ph;
return _.qa(b==null?"":String(b))||_.qa(c==null?"":String(c))||b==a.cfg_.ph};
sA.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete eA[this.name];_.Tf(this.peerLoadHandler_);delete this.peerLoadHandler_;sA.superClass_.disposeInternal.call(this)};
var hib=function(){for(var a in eA)_.Tf(eA[a])},eA={};var lib=function(a,b){this.JSC$7889_win=a;this.allowAdsHttpEndpoint=b;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$7889_domHelper=rf(a);this.scrollManager=new xhb(a);this.accessibilityManager=new shb(a);kib(this)},kib=function(a){var b=function(){a.allowAdsPopup&&a.allowAdsPopup.style.setProperty("display","none","important");
a.wallElement.style.setProperty("display","","important");thb(a.accessibilityManager);whb(a.accessibilityManager,a.wallElement.querySelector(".fc-dialog-container"),!1,!1,a.wallElement.querySelector(".fc-button-whitelist"));var e=a.scrollManager;e.JSC$7847_domHelper.JSC$7221_document_.body.style.overflow=e.originalBodyOverflow};
a.allowAdsPopup=a.JSC$7889_domHelper.JSC$7223_createDom("DIV",{"class":"fc-whitelist-root"});a.allowAdsPopup.style.setProperty("display","none","important");a.JSC$7889_domHelper.appendChild(a.JSC$7889_domHelper.JSC$7221_document_.body,a.allowAdsPopup);var c=a.JSC$7889_domHelper.JSC$7223_createDom("DIV",{"class":"fc-dialog-overlay"});a.JSC$7889_domHelper.appendChild(a.allowAdsPopup,c);var d=a.JSC$7889_domHelper.JSC$7223_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:b});a.JSC$7889_domHelper.appendChild(a.allowAdsPopup,
d);c=a.JSC$7889_domHelper.JSC$7223_createDom("IFRAME");c.className="fc-whitelist-dialog";c.frameBorder="0";c.id="fc-whitelist-iframe";c.tabIndex="0";_.Qd(c,a.allowAdsHttpEndpoint);a.JSC$7889_domHelper.appendChild(d,c);d={};d.pu=_.xd(a.allowAdsHttpEndpoint).toString();d.tp=1;d.cn="fc-whitelist-channel";d.ifrid=c.id;d.osh=!0;a.allowAdsCrossPageChannel=new sA(d);a.allowAdsCrossPageChannel.registerService("close",b);a.allowAdsCrossPageChannel.registerService("refresh",function(){a.JSC$7889_win.location.reload()});
a.allowAdsCrossPageChannel.registerService("resize",function(e){if(e){var g=a.allowAdsPopup.querySelector(".fc-whitelist-dialog");e.width&&g.style.setProperty("width",e.width,"important");e.height&&g.style.setProperty("height",e.height,"important")}},!0);
a.allowAdsCrossPageChannel.connect()};
lib.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$7889_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var tA=window,uA=document,mib=tA.location,nib=function(){},oib=/\[native code\]/,vA=function(a,b,c){return a[b]=a[b]||c},pib=function(a){a=a.sort();
for(var b=[],c=void 0,d=0;d<a.length;d++){var e=a[d];e!=c&&b.push(e);c=e}return b},wA=function(){var a;
if((a=Object.create)&&oib.test(a))a=a(null);else{a={};for(var b in a)a[b]=void 0}return a},xA=vA(tA,"gapi",{});var yA={};yA=vA(tA,"___jsl",wA());vA(yA,"I",0);vA(yA,"hel",10);var qib=function(){var a=mib.href;if(yA.dpo)var b=yA.h;else{b=yA.h;var c=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),d=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(a=a&&(c.exec(a)||d.exec(a)))try{b=decodeURIComponent(a[2])}catch(e){}}return b},rib=function(a){var b=vA(yA,"PQ",[]);
yA.PQ=[];var c=b.length;if(c===0)a();else for(var d=0,e=function(){++d===c&&a()},g=0;g<c;g++)b[g](e)},sib=function(a){return vA(vA(yA,"H",wA()),a,wA())};var zA=function(a){this.JSC$7891_obj_=a};
zA.prototype.value=function(){return this.JSC$7891_obj_};
zA.prototype.getWidth=function(){return this.JSC$7891_obj_.width};
zA.prototype.getHeight=function(){return this.JSC$7891_obj_.height};
zA.prototype.getStyle=function(){return this.JSC$7891_obj_.style};var tib=function(a){this.JSC$7894_obj_=a||{}};
_.f=tib.prototype;_.f.value=function(){return this.JSC$7894_obj_};
_.f.setUrl=function(a){this.JSC$7894_obj_.url=a;return this};
_.f.getUrl=function(){return this.JSC$7894_obj_.url};
_.f.getStyle=function(){return this.JSC$7894_obj_.style};
_.f.getId=function(){return this.JSC$7894_obj_.id};
_.f.getContext=function(){return this.JSC$7894_obj_.context};
var uib=function(a){a.JSC$7894_obj_.attributes=a.JSC$7894_obj_.attributes||{};return new zA(a.JSC$7894_obj_.attributes)};var vib=function(){tib.apply(this,arguments)};
_.z(vib,tib);var wib=vA(yA,"perf",wA());vA(wib,"g",wA());var xib=vA(wib,"i",wA());vA(wib,"r",[]);wA();wA();var zib=function(a,b,c){b&&b.length>0&&(b=yib(b),c&&c.length>0&&(b+="___"+yib(c)),b.length>28&&(b=b.substr(0,28)+(b.length-28)),c=b,b=vA(xib,"_p",wA()),vA(b,c,wA())[a]=(new Date).getTime(),b=wib.r,typeof b==="function"?b(a,"_p",c):b.push([a,"_p",c]))},yib=function(a){return a.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var Aib=wA(),Bib=[],AA=function(a){throw Error("ab`"+a);};
Bib.push(["jsl",function(a){for(var b in a)if(Object.prototype.hasOwnProperty.call(a,b)){var c=a[b];typeof c=="object"?yA[b]=vA(yA,b,[]).concat(c):vA(yA,b,c)}if(b=a.u)a=vA(yA,"us",[]),a.push(b),(b=/^https:(.*)$/.exec(b))&&a.push("http:"+b[1])}]);
var Cib=/^(\/[a-zA-Z0-9_\-]+)+$/,Dib=[/\/amp\//,/\/amp$/,/^\/amp$/],Eib=/^[a-zA-Z0-9\-_\.,!]+$/,Fib=/^gapi\.loaded_[0-9]+$/,Gib=/^[a-zA-Z0-9,._-]+$/,Kib=function(a,b,c,d,e){var g=a.split(";"),k=g.shift(),m=Aib[k],n=null;m?n=m(g,b,c,d):AA("no hint processor for: "+k);n||AA("failed to generate load url");b=n;c=b.match(Hib);(d=b.match(Iib))&&d.length===1&&Jib.test(b)&&c&&c.length===1||AA("failed sanity: "+a);try{a="?";if(e&&e.length>0){zaa(e);var r=e.join(",");n=n+"?le="+r;a="&"}if(yA.rol){var t=yA.ol;
t&&t.length&&(n=""+n+a+"ol="+t.length)}}catch(u){}return n},Nib=function(a,b,c,d){a=Lib(a);
Fib.test(c)||AA("invalid_callback");b=Mib(b);d=d&&d.length?Mib(d):null;var e=function(g){return encodeURIComponent(g).replace(/%2C/g,",")};
return[encodeURIComponent(a.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",e(a.version),"/m=",e(b),d?"/exm="+e(d):"","/rt=j/sv=1/d=1/ed=1",a.activeMods?"/am="+e(a.activeMods):"",a.resourceSig?"/rs="+e(a.resourceSig):"",a.zcms?"/t="+e(a.zcms):"","/cb=",e(c)].join("")},Lib=function(a){a.charAt(0)!=="/"&&AA("relative path");
for(var b=a.substring(1).split("/"),c=[];b.length;){a=b.shift();if(!a.length||a.indexOf(".")==0)AA("empty/relative directory");else if(a.indexOf("=")>0){b.unshift(a);break}c.push(a)}a={};for(var d=0,e=b.length;d<e;++d){var g=b[d].split("="),k=decodeURIComponent(g[0]),m=decodeURIComponent(g[1]);g.length==2&&k&&m&&(a[k]=a[k]||m)}b="/"+c.join("/");Cib.test(b)||AA("invalid_prefix");c=0;for(d=Dib.length;c<d;++c)Dib[c].test(b)&&AA("invalid_prefix");c=Oib(a,"k",!0);d=Oib(a,"am");e=Oib(a,"rs");a=Oib(a,"t");
return{pathPrefix:b,version:c,activeMods:d,resourceSig:e,zcms:a}},Mib=function(a){for(var b=[],c=0,d=a.length;c<d;++c){var e=a[c].replace(/\./g,"_").replace(/-/g,"_");
Gib.test(e)&&b.push(e)}return b.join(",")},Oib=function(a,b,c){a=a[b];
!a&&c&&AA("missing: "+b);if(a){if(Eib.test(a))return a;AA("invalid: "+b)}return null},Jib=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,Iib=/\/cb=/g,Hib=/\/\//g;
Aib.m=function(a,b,c,d){(a=a[0])||AA("missing_hint");return"https://apis.google.com"+Nib(a,b,c,d)};
var Pib=decodeURI("%73cript"),Qib=/^[-+_0-9\/A-Za-z]+={0,2}$/,Rib=function(a,b){for(var c=[],d=0;d<a.length;++d){var e=a[d],g;if(g=e){a:{for(g=0;g<b.length;g++)if(b[g]===e)break a;g=-1}g=g<0}g&&c.push(e)}return c},Sib=function(){var a=yA.nonce;
return a!==void 0?a&&a===String(a)&&a.match(Qib)?a:yA.nonce=null:uA.querySelector?(a=uA.querySelector("script[nonce]"))?(a=a.nonce||a.getAttribute("nonce")||"",a&&a===String(a)&&a.match(Qib)?yA.nonce=a:yA.nonce=null):null:null},Vib=function(a){if(uA.readyState!="loading")Tib(a);
else{var b=Sib(),c="";b!==null&&(c=' nonce="'+b+'"');a="<"+Pib+' src="'+encodeURI(a)+'"'+c+"></"+Pib+">";uA.write(Uib?Uib.createHTML(a):a)}},Tib=function(a){var b=uA.createElement(Pib);
b.setAttribute("src",Uib?Uib.createScriptURL(a):a);a=Sib();a!==null&&b.setAttribute("nonce",a);b.async="true";(a=uA.getElementsByTagName(Pib)[0])?a.parentNode.insertBefore(b,a):(uA.head||uA.body||uA.documentElement).appendChild(b)},Xib=function(a,b,c){Wib(function(){var d=b===qib()?vA(xA,"_",wA()):wA();
d=vA(sib(b),"_",d);a(d)},c)},RBa=function(a,b){var c=b||{};
typeof b=="function"&&(c={},c.callback=b);var d=(b=c)&&b._c;if(d)for(var e=0;e<Bib.length;e++){var g=Bib[e][0],k=Bib[e][1];k&&Object.prototype.hasOwnProperty.call(d,g)&&k(d[g],a,b)}b=[];a?b=a.split(":"):c.features&&(b=c.features);if(!(a=c.h)&&(a=qib(),!a))throw Error("bb");Yib(b||[],c,a)},Yib=function(a,b,c){a=pib(a)||[];
var d=b.callback,e=b.config,g=b.timeout,k=b.ontimeout,m=b.onerror,n=void 0;typeof m=="function"&&(n=m);var r=null,t=!1;if(g&&!k||!g&&k)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";m=vA(sib(c),"r",[]).sort();var u=vA(sib(c),"L",[]).sort(),w=yA.le||[],A=[].concat(m),C=function(ca,V){if(t)return 0;tA.clearTimeout(r);u.push.apply(u,G);var fa=((xA||{}).config||{}).update;fa?fa(e):e&&vA(yA,"cu",[]).push(e);if(V){zib("me0",ca,A);try{Xib(V,c,n)}finally{zib("me1",ca,
A)}}return 1};
g>0&&(r=tA.setTimeout(function(){t=!0;k()},g));
var G=Rib(a,u);if(G.length){G=Rib(a,m);var J=vA(yA,"CP",[]),I=J.length;J[I]=function(ca){if(!ca)return 0;zib("ml1",G,A);var V=function(aa){J[I]=null;C(G,ca)&&rib(function(){d&&d();aa()})},fa=function(){var aa=J[I+1];
aa&&aa()};
I>0&&J[I-1]?J[I]=function(){V(fa)}:V(fa)};
if(G.length){var R="loaded_"+yA.I++;xA[R]=function(ca){J[I](ca);xA[R]=null};
a=Kib(c,G,"gapi."+R,m,w);m.push.apply(m,G);zib("ml0",G,A);b.sync||tA.___gapisync?Vib(a):Tib(a)}else J[I](nib)}else C(G)&&d&&d()},Zib;
var $ib=null,ajb=_.ja.trustedTypes;if(ajb&&ajb.createPolicy){try{$ib=ajb.createPolicy("goog#gapi",{createHTML:w8a,createScript:w8a,createScriptURL:w8a})}catch(a){_.ja.console&&_.ja.console.error(a.message)}Zib=$ib}else Zib=$ib;var Uib=Zib,Wib=function(a,b){if(yA.hee&&yA.hel>0)try{return a()}catch(c){b&&b(c),yA.hel--,RBa("debug_error",function(){try{window.___jsl.hefn(c)}catch(d){throw c;}})}else try{return a()}catch(c){throw b&&b(c),c;
}},bjb=xA.load;
bjb&&vA(yA,"ol",[]).push(bjb);xA.load=function(a,b){return Wib(function(){return RBa(a,b)})};var sja;var cjb=function(a,b){this.serviceId_=a;this.moduleId_=b||null};
cjb.prototype.toString=function(){return this.serviceId_};
cjb.prototype.getModuleId=function(){return this.moduleId_};var Ena=new cjb("MpJwZc","MpJwZc");var Gna=new _.xz("a"),Fna=function(a,b,c){_.yz.call(this,a,b);this.node=b;this.kind=c};
_.z(Fna,_.yz);var djb=function(a){this.segments=a};
djb.prototype.toString=function(){return this.segments.join(".")};
djb.prototype.getVersion=function(){return this.segments[0]};
djb.prototype.getExtension=function(){return this.segments[1]};var ejb=function(){this.JSC$7910_keys_={};this.urlPrefix_="";this.JSC$7910_queryData_={}};
ejb.prototype.toString=function(){if(this.urlPrefix_.endsWith("_/r/"))var a=this.urlPrefix_+BA(this,"sc");else{a=this.urlPrefix_+fjb(this);var b=_.ij(this.JSC$7910_queryData_),c="";b!=""&&(c="?"+b);a+=c}return a};
var gjb=function(a){a=BA(a,"md");return!!a&&a!=="0"},fjb=function(a){var b=[],c=(0,_.ug)(function(d){this.JSC$7910_keys_[d]!==void 0&&b.push(d+"="+this.JSC$7910_keys_[d])},a);
gjb(a)?(c("md"),c("k"),c("ck"),c("am"),c("rs"),c("gssmodulesetproto"),c("tpc"),c("slk"),c("dti")):(c("sdch"),c("k"),c("ck"),c("am"),c("rt"),"d"in a.JSC$7910_keys_||CA(a,"d","0"),c("d"),c("exm"),c("excm"),(a.JSC$7910_keys_.excm||a.JSC$7910_keys_.exm)&&b.push("ed=1"),c("im"),c("dg"),c("sm"),BA(a,"br")!="1"&&BA(a,"br")!="0"||c("br"),c("br-d"),BA(a,"rb")=="1"&&c("rb"),BA(a,"zs")!=="0"&&c("zs"),hjb(a)!==""&&c("wt"),c("gssmodulesetproto"),c("ujg"),c("sp"),c("rs"),c("cb"),c("ee"),c("tpc"),c("slk"),c("dti"),
c("m"));return b.join("/")},BA=function(a,b){return a.JSC$7910_keys_[b]?a.JSC$7910_keys_[b]:null},CA=function(a,b,c){c?a.JSC$7910_keys_[b]=c:delete a.JSC$7910_keys_[b]},ijb=function(a,b){a.urlPrefix_=b},jjb=function(a,b){b&&b.length>0?(b.sort(),CA(a,"exm",b.join(","))):CA(a,"exm",null)},kjb=function(a,b){b&&b.length>0?(b.sort(),CA(a,"excm",b.join(","))):CA(a,"excm",null)},ljb=function(a){return(a=BA(a,"m"))?a.split(","):[]},hjb=function(a){switch(BA(a,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},mjb=function(a,b){var c=Object.keys(b).filter(function(d){return!!Object.keys(b[d]).length}).map(function(d){var e=Object.keys(b[d]);
e.length>1&&e.sort();return d+":"+e.join(",")});
c.sort();CA(a,"ee",c.join(";"))},njb=function(a){delete a.JSC$7910_keys_.m;
delete a.JSC$7910_keys_.exm;delete a.JSC$7910_keys_.ed};
ejb.prototype.clone=function(){return ojb(this.toString())};
var ojb=function(a,b){b=b===void 0?!0:b;var c=pjb(a),d=new ejb,e=_.Ri(c)[5];_.yf.forEach(qjb,function(k){var m=e.match("/"+k+"=([^/]+)");m&&CA(d,k,m[1])});
var g="";g=a.indexOf("_/ss/")!=-1?"_/ss/":a.indexOf("_/r/")!=-1?"_/r/":"_/js/";ijb(d,a.substr(0,a.indexOf(g)+g.length));if(d.urlPrefix_.endsWith("_/r/"))return a=rjb(a),CA(d,"sc",a.toString()),d;if(!b)return d;(a=_.Ri(c)[6]||null)&&Obb(a,function(k,m){d.JSC$7910_queryData_[k]=m});
return d},sjb=function(a){var b=_.gj(pjb(a)),c;
b===null?c=!1:c=RegExp("/_/r/","g").test(a)&&rjb(a)?!0:RegExp("(/_/js/)|(/_/ss/)","g").test(b)?/\/k=/.test(b):!1;return c},rjb=function(a){var b=a.lastIndexOf("_/r/")+4;
a=a.slice(b);if(a===null)return null;try{var c=a.split(".");var d=c.length!==2?null:new djb(c);if(d===null)throw new TypeError("db`"+a);return d}catch(e){return null}},pjb=function(a){return a.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?a.substr(65):a},qjb={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",TPC:"tpc",INCLUDE_COMPILE_HINTS_COMMENT:"ichc",STATIC_CONTENT_ROW_KEY:"sc",SIDELOADING_ROWKEY:"slk",DISABLE_TOGGLES_INIT:"dti"},tjb=RegExp("^loaded_(g|h)?[_\\d]+$");_.DA=function(a){this.JSC$7922_id_=a;this.opts={}};
_.DA.prototype.JSC$7924_setLabel=function(a){this.label_=a||void 0;return this};
_.DA.prototype.addUploadMetadata=function(a,b){var c=this.opts.data||{};c[a]=b;this.opts.data=c;return this};
var ujb=function(a){var b=_.yf.filter(a.opts,function(c){return c!==null});
b=_.yf.isEmpty(b)?null:b;a=[a.JSC$7922_id_,a.label_,b];b=uaa(a);return a=a.slice(0,b+1)};
_.DA.prototype.toString=function(){var a=ujb(this);return"("+_.zf(a,function(b){return JSON.stringify(b)}).join(",")+")"};
_.DA.prototype.getId=function(){return this.JSC$7922_id_};
_.DA.prototype.getOptions=function(){return _.yf.clone(this.opts)};var EA=function(){_.DA.call(this,"image-search")};
_.z(EA,_.DA);EA.prototype.setSize=function(a){this.opts.imgsz=a;return this};
EA.prototype.JSC$7924_setLabel=function(a){_.DA.prototype.JSC$7924_setLabel.call(this,a);return this};
EA.prototype.addUploadMetadata=function(a,b){_.DA.prototype.addUploadMetadata.call(this,a,b);return this};var FA=function(){_.DA.call(this,"maps")};
_.z(FA,_.DA);FA.prototype.setZoom=function(a){this.opts.zoom=a;return this};
FA.prototype.JSC$7924_setLabel=function(a){_.DA.prototype.JSC$7924_setLabel.call(this,a);return this};
FA.prototype.addUploadMetadata=function(a,b){_.DA.prototype.addUploadMetadata.call(this,a,b);return this};_.GA=function(){_.DA.call(this,"photos")};
_.z(_.GA,_.DA);_.GA.prototype.JSC$7924_setLabel=function(a){_.DA.prototype.JSC$7924_setLabel.call(this,a);return this};
_.GA.prototype.addUploadMetadata=function(a,b){_.DA.prototype.addUploadMetadata.call(this,a,b);return this};var HA=function(){_.DA.call(this,"url")};
_.z(HA,_.DA);var vjb=function(){var a=new HA;a.opts.type="video";a.opts.site="youtube.com";return a};
HA.prototype.JSC$7924_setLabel=function(a){_.DA.prototype.JSC$7924_setLabel.call(this,a);return this};
HA.prototype.addUploadMetadata=function(a,b){_.DA.prototype.addUploadMetadata.call(this,a,b);return this};var IA=function(){_.DA.call(this,"video-search")};
_.z(IA,_.DA);var wjb=function(){var a=new IA;a.opts.site="youtube.com";return a};
IA.prototype.JSC$7924_setLabel=function(a){_.DA.prototype.JSC$7924_setLabel.call(this,a);return this};
IA.prototype.addUploadMetadata=function(a,b){_.DA.prototype.addUploadMetadata.call(this,a,b);return this};var xjb=function(){_.DA.call(this,"web")};
_.z(xjb,_.DA);xjb.prototype.JSC$7924_setLabel=function(a){_.DA.prototype.JSC$7924_setLabel.call(this,a);return this};
xjb.prototype.addUploadMetadata=function(a,b){_.DA.prototype.addUploadMetadata.call(this,a,b);return this};var JA=function(){this.items_=[];this.opts={}},yjb=function(a){switch(a){case "image-search":return new EA;
case "maps":return new FA;case "photos":return new _.GA;case "url":return new HA;case "video-search":return new IA;case "web":return new xjb}return new _.DA(a)};
JA.prototype.addView=function(a){this.items_.push(typeof a==="string"?yjb(a):a);return this};
var zjb=function(a){return"("+_.zf(a.items_,function(b){return b.toString()}).join(",")+")"};
JA.prototype.toString=function(){return zjb(this)};
JA.prototype.getViews=function(a,b){b=b===void 0?[]:b;for(var c=this.items_,d=0;d<c.length;d++){var e=c[d];e instanceof JA?e.getViews(a,b):e.getId()==a&&b.push(e)}return b};
JA.prototype.getOptions=function(){return _.yf.clone(this.opts)};var Dg=function(a){this.basePickerUrl_=a||"https://docs.google.com/picker";this.nav_=new JA};
Dg.prototype.nav_=null;Dg.prototype.addView=function(a){this.nav_.addView(a);return this};
Dg.prototype.getBaseUrl=function(){return this.basePickerUrl_};
Dg.prototype.getViews=function(a){return this.nav_.getViews(a)};
_.Ajb=function(a,b){a.callback_=b;return a};var Bjb=new Map;Bjb.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");Bjb.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");Bjb.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var Cjb=new Set;Cjb.add("application/vnd.google-apps.kix");Cjb.add("application/vnd.google-apps.ritz");Cjb.add("application/vnd.google-apps.punch");var Ojb=function(a,b,c){var d=c&&_.Ox(c,1);c=Djb(c);var e=a[0].getId();switch(_.Px(e,2)){case 13:return Ejb(a,b,d,c);case 3:return Fjb(a,b,d,c);case 10:return Gjb(a,b,d,c);case 27:return Gjb(a,b,d,c);case 12:return Hjb(a,b);case 2:return Ijb(a,b,d,c);case 5:return Jjb(a,b,d,c);case 9:return Kjb(a,b,d,c);case 6:return Ljb(a,b,d,c);case 25:return Mjb(a,b,d,c);case 1:return _.zx(a[0],vdb,26)?Njb(a,b,d,c):Gjb(a,b,d,c);default:return{}}},Ljb=function(a,b,c,d){a=a.map(function(e){return{id:e.getId().getId(),
serviceId:"youtube",name:e.getName(),description:_.Ox(e,3),type:KA(e),lastEditedUtc:_.udb(_.Xj(e,_.Wv,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:e.getUrl(),embedUrl:_.Ox(e,13),thumbnails:LA(hz(e))}});
return{action:b,docs:a,viewToken:d,view:c||"youtube",v2Translated:!0}},Ijb=function(a,b,c,d){var e=a.map(function(g){var k=g.getId().getId(),m=_.Ox(g,7),n=g.getName(),r=KA(g),t=_.udb(_.Xj(g,_.Wv,12)).getTime(),u=g.getUrl(),w=L9a(g),A=_.Ox(g,3),C=_.Ox(g,11),G=LA(hz(g));
var J=_.Xj(g,iz,21);J=_.Lx(J,1);var I=_.Xj(g,iz,21);I=_.Ox(I,10);var R=_.Ox(g,13);var ca=_.Xj(g,iz,21);ca=_.Lx(ca,9);var V=_.Xj(g,iz,21);V=_.Ox(V,11);k={id:k,serviceId:"docs",mimeType:m,name:n,type:r,lastEditedUtc:t,url:u,sizeBytes:w,description:A,iconUrl:C,thumbnails:G,isShared:J,downloadUrl:I,embedUrl:R,copyable:ca,resourceKey:V};m=_.Xj(g,iz,21);_.Lx(m,12)&&(k.uploadState="success",k.isNew=!0);m=_.Xj(g,iz,21);_.zx(m,ez,3)&&(g=_.Xj(g,iz,21),g=_.Xj(g,ez,3),_.zx(g,cz,2)&&(m=g.getDuration(),m=K9a(m,
1),n=g.getDuration(),n=_.Xf(n,2),k.duration=m+n/1E9),k.aspectRatio=g.getAspectRatio());return k});
return{action:b,docs:e,viewToken:d,view:c||"all",extraUserInputs:Pjb(a),v2Translated:!0}},Jjb=function(a,b,c,d){a=a.map(function(e){var g=_.Xj(e,Edb,15);
g=_.Xj(g,dz,1);ol(e,10,dz,g);return{id:e.getId().getId(),serviceId:"web",mimeType:_.Ox(e,7),name:e.getName(),type:KA(e),url:e.getUrl(),description:_.Ox(e,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:LA(hz(e))}});
return{action:b,docs:a,viewToken:d,view:c||"image-search",v2Translated:!0}},Kjb=function(a,b,c,d){a=a.map(function(e){return{serviceId:"url",
name:hz(e)[0].getUrl().split("/").pop(),type:KA(e),mimeType:_.Ox(e,7),url:e.getUrl(),description:_.Ox(e,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:LA(hz(e))}});
return{action:b,docs:a,viewToken:d,view:c||"url",v2Translated:!0}},Njb=function(a,b,c,d){a=a.map(function(e){return{id:e.getId().getId(),
serviceId:"picasa",name:e.getName(),type:KA(e),description:_.Ox(e,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:LA(hz(e))}});
return{action:b,docs:a,viewToken:d,view:c||"webcam",v2Translated:!0}},Gjb=function(a,b,c,d){return{action:b,
docs:a.map(Qjb),viewToken:d,view:Rjb(c||"upload",a),extraUserInputs:Pjb(a),v2Translated:!0}},Rjb=function(a,b){return b.some(function(c){var d;
return((d=_.Xj(c,fz,30))==null?void 0:_.Px(d,3))===9})?a+"/gmailphotos":a},Fjb=function(a,b,c,d){var e=a.map(function(g){var k={id:g.getId().getId(),
serviceId:"picasa",mimeType:_.Ox(g,7),name:g.getName(),type:KA(g),lastEditedUtc:_.udb(_.Xj(g,_.Wv,12)).getTime(),url:g.getUrl(),sizeBytes:L9a(g),description:_.Ox(g,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:LA(hz(g)),mediaKey:g.getId().getId(),parentId:_.Ox(g,4)},m,n=(m=_.Xj(g,ydb,18))==null?void 0:_.Xj(m,xdb,3);n&&(k.latitude=Nx(n,1),k.longitude=Nx(n,2));var r;(g=(r=_.Xj(g,ydb,18))==null?void 0:K9a(r,6))&&(k.version=g);return k});
return{action:b,docs:e,viewToken:d,view:c||"photos",extraUserInputs:Pjb(a),v2Translated:!0}},Ejb=function(a,b,c,d){a=a.map(function(e){return{id:e.getId().getId(),
serviceId:"et",name:hz(e)[0].getUrl().split("/").pop(),description:_.Ox(e,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:LA(hz(e),"etjpg")}});
return{action:b,docs:a,viewToken:d,view:c||"et",v2Translated:!0}},Mjb=function(a,b,c,d){a=a.map(function(e){var g=e.getId().getId(),k=d["2"];
return{id:g,serviceId:k.type!=="gmail_themes"&&k.parent==="6226252643674576769"?"picasa":"static_themes",name:e.getName(),mimeType:_.Ox(e,7),type:KA(e),description:_.Ox(e,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:e.getUrl(),embedUrl:e.getUrl(),thumbnails:LA(hz(e))}});
return{action:b,docs:a,viewToken:d,view:c||"photos",v2Translated:!0}},Hjb=function(a,b){a=a.map(function(c){var d=_.Xj(c,wdb,27);
d=_.Mc(d,1,_.oc,_.Wf())[0];return{id:c.getId().getId(),serviceId:"contacts",mimeType:_.Ox(c,7),name:c.getName(),description:_.Ox(c,3),url:"mailto:"+d,thumbnail:[{url:_.Ox(c,11)}],email:d}});
return{action:b,docs:a,view:"contacts",v2Translated:!0}},Djb=function(a){if(!a)return{};
var b=_.Ox(a,3);b=b&&JSON.parse(b)||{};return{0:_.Ox(a,1),1:_.Ox(a,2),2:b}},LA=function(a,b){b=b===void 0?"":b;
if(!a.length)return null;b=="etjpg"&&(a=a.filter(function(c){return c.getUrl().includes("w1200-h300")}));
return a.map(function(c){return{url:c.getUrl(),height:c.getHeight(),width:c.getWidth(),type:b}})},Pjb=function(a){return{isAttachment:a.some(function(b){return _.Lx(b,31)})}},Qjb=function(a){var b,c={id:(b=a.getId())==null?void 0:b.getId(),
serviceId:Sjb(a),mimeType:_.Ox(a,7),name:a.getName(),type:KA(a),sizeBytes:L9a(a),description:_.Ox(a,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:LA(hz(a)),isNew:!0};if(b=_.Xj(a,fz,30)){c.dataUrl=_.Ox(b,1)||null;a:{var d=_.Xj(a,fz,30);switch(_.Px(d,3)){case 9:d=_.Sx(d,Cdb,2,gz);d={remoteRefs:d&&_.Ox(d,1)};break a;case 10:case 15:d=_.Sx(d,Bdb,4,gz);var e=hz(a);d={photo_id:d&&_.Ox(d,1),media_key:a.getId().getId(),media_type:a.getType()===1?1:2,image_url:e&&
e[0].getUrl(),width:e&&String(e[0].getWidth()),height:e&&String(e[0].getHeight())};break a}d=null}c.uploadMetadata=d;c.uploadId=_.Ox(b,9)||null;c.uploadState=Tjb(b)||null}(d=b&&_.Sx(b,Bdb,4,gz))&&(c.id=_.Ox(d,1));(d=b&&_.Sx(b,Ddb,5,gz))&&(c.contentId=_.Ox(d,1));(d=b&&_.Sx(b,zdb,7,gz))&&(c.contentId=_.Ox(d,1));(d=b&&_.Sx(b,Adb,6,gz))&&(c.contentId=_.Ox(d,1));(b==null?void 0:_.Px(b,3))===1&&(c.mediaKey=a.getId().getId());return c},Sjb=function(a){var b;
switch(((b=_.Xj(a,fz,30))==null?void 0:_.Px(b,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},KA=function(a){switch(a.getType()){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 _.Ox(a,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},Tjb=function(a){switch(a==null?void 0:_.Px(a,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 Xjb,Ujb,Vjb,Wjb;_.MA=function(a,b){var c=b||{};b=c.document||document;var d=_.xd(a).toString(),e=(new Ly(b)).createElement("SCRIPT"),g={script_:e,timeout_:void 0},k=new $z(Ujb,g),m=null,n=c.timeout!=null?c.timeout:5E3;n>0&&(m=window.setTimeout(function(){Vjb(e,!0);k.errback(new Wjb(1,"Timeout reached for loading script "+d))},n),g.timeout_=m);
e.onload=e.onreadystatechange=function(){e.readyState&&e.readyState!="loaded"&&e.readyState!="complete"||(Vjb(e,c.cleanupWhenDone||!1,m),k.callback(null))};
e.onerror=function(){Vjb(e,!0,m);k.errback(new Wjb(0,"Error while loading script "+d))};
g=c.attributes||{};_.yf.extend(g,{type:"text/javascript",charset:"UTF-8"});Ecb(e,g);_.Xd(e,a);Xjb(b).appendChild(e);return k};
Xjb=function(a){var b=og("HEAD",a);return b&&b.length!==0?b[0]:a.documentElement};
Ujb=function(){if(this&&this.script_){var a=this.script_;a&&a.tagName=="SCRIPT"&&Vjb(a,!0,this.timeout_)}};
Vjb=function(a,b,c){c!=null&&_.ja.clearTimeout(c);a.onload=function(){};
a.onerror=function(){};
a.onreadystatechange=function(){};
b&&window.setTimeout(function(){_.mg(a)},0)};
Wjb=function(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);_.da.call(this,c);this.code=a};
_.nx(Wjb,_.da);var Yjb=_.cx(["https://apis.google.com/js/api.js"]),Zjb=_.ef(Yjb),ckb=function(a,b){var c=!1,d=$jb(a,b).then(function(g){c=!0;return g}),e=_.zfb(5E3).then(function(){return c?$jb(a,b):akb(b).then(function(g){return bkb(g,a)})});
return nfb([d,e])},$jb=function(a,b){return dkb(b).then(function(c){return bkb(c,a)})},bkb=function(a,b){var c=_.na(b,"gapi.")?b.slice(5):b;
return a[c]?_.oo(a[c]):new _.kl(function(d,e){var g=Iz(function(){e(Error("fb"))},3E4);
a.load(b,{callback:function(){_.ja.clearTimeout(g);d(a[c])},
onerror:function(k){_.ja.clearTimeout(g);e(k)}})})},dkb=function(a){return a.gapi&&a.gapi.load?_.oo(a.gapi):akb(a)},akb=function(a){return _.MA(Zjb,{document:a.document}).then(function(){return a.gapi})},ekb=function(){};
ekb.prototype.load=function(a,b){b=b===void 0?window:b;var c=Date.now();return ckb(a,b).then(function(d){var e=Date.now();return{library:d,loadStartMs:c,loadEndMs:e}},function(d){throw d instanceof Error?d:Error(String(d));
})};var Gja=function(){_.tg.call(this);this.gapiLoader_=new ekb;this.origin_=null;this.gapiPickerIframeResolver_=_.Tt();this.gapiIframesResolver_=_.Tt();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.z(Gja,_.tg);var fkb=function(a,b){var c=_.Ji("gapi.iframes",b);return c?(a=Date.now(),_.oo({library:c,loadStartMs:a,loadEndMs:a})):a.gapiLoader_.load("gapi.iframes",b)},gkb=function(a,b,c,d,e,g){var k=!0;
k=k===void 0?!1:k;fkb(a,Bf(b.ownerDocument)).then(function(m){var n=m.library;a.gapiIframesResolver_.resolve(n);m=a.gapiPickerIframeResolver_;var r=m.resolve,t=k;t=t===void 0?!1:t;var u={};u["host-message-handler"]=c;a.hostMessageHandlerInternal_=u;var w=_.Jg(d);w=_.Jg(w);w=_.iA(_.hA(_.gA(new _.Wn,w.scheme_),w.JSC$7879_domain_),w.JSC$7879_port_).toString();a.origin_=w;w=(new vib).setUrl(d);w.JSC$7894_obj_.where=b;w.JSC$7894_obj_.allowPost=t;w.JSC$7894_obj_.messageHandlers=u;t=_.Ji("makeWhiteListIframesFilter",
n)([a.origin_]);w.JSC$7894_obj_.messageHandlersFilter=t;e!=null&&(w.JSC$7894_obj_.id=e);g!=null&&(w.JSC$7894_obj_.rpctoken=g);t=uib(w);t.JSC$7891_obj_.style={display:"block","min-width":"100%",width:"1px"};t.JSC$7891_obj_.height="100%";uib(w).value().allow="camera 'src' "+a.origin_;n=n.getContext().openChild(w.value());r.call(m,n)},function(m){a.gapiIframesResolver_.reject(m);
a.gapiPickerIframeResolver_.reject(m)});
return a.gapiPickerIframeResolver_.promise},hkb=function(a,b){return _.Gz([a.gapiIframesResolver_.promise,
a.gapiPickerIframeResolver_.promise]).then(function(c){var d=_.h(c);c=d.next().value;return(d=d.next().value)?d.send("picker-message-handler",b,void 0,_.Ji("makeWhiteListIframesFilter",c)([a.origin_])):_.Pn(Error("gb"))})};
Gja.prototype.disposeInternal=function(){ikb(this);_.tg.prototype.disposeInternal.call(this)};
var ikb=function(a){a.gapiPickerIframeResolver_.promise.then(function(b){b&&(b.unregister("host-message-handler"),delete a.hostMessageHandlerInternal_["host-message-handler"])})};var jkb=function(){this.nextId=0};var lkb=function(a,b){switch(a.action){case "select-contacts":a=kkb(a.contacts);break;case "visibility":a=a.visible;var c=new kz;a=_.Ux(c,1,7).setVisible(a);c={};c["iframe-command"]=a.serialize();a=c;break;default:a=null}return a?hkb(b,a):_.oo()},kkb=function(a){if(!a||a.length==0)return null;
var b=new kz;_.Ux(b,1,11);var c=new jkb;a.forEach(function(d){if(d.email){var e=new Gx;e=_.ew(e,2,d.name?d.name:d.email);var g=new wdb;d=_.rca(g,1,_.lc,d.email,_.oc);d=_.pd(e,27,d);e=new tdb;g=":"+(c.nextId++).toString(36);e=_.ew(e,1,g);e=_.Ux(e,2,12);d=_.pd(d,1,e)}else d=null;d&&ol(b,7,Gx,d)});
a={};a["iframe-command"]=b.serialize();return a};_.mkb=function(){if(W8a){var a=/Windows NT ([0-9.]+)/;return(a=a.exec(_.ua()))?a[1]:"0"}return _.V8a?(a=/1[0|1][_.][0-9_.]+/,(a=a.exec(_.ua()))?a[0].replace(/_/g,"."):"10"):BBa?(a=/Android\s+([^\);]+)(\)|;)/,(a=a.exec(_.ua()))?a[1]:""):Y8a||Z8a||$8a?(a=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(a=a.exec(_.ua()))?a[1].replace(/_/g,"."):""):""}();var NA;NA=function(a){return(a=a.exec(_.ua()))?a[1]:""};
_.nkb=function(){if(_.vx)return NA(/Firefox\/([0-9.]+)/);if(_.sx||_.Pj||S8a)return _.h9a;if(_.wx){if(_.Ia()||_.qaa()){var a=NA(/CriOS\/([0-9.]+)/);if(a)return a}return NA(/Chrome\/([0-9.]+)/)}if(_.Dj&&!_.Ia())return NA(/Version\/([0-9.]+)/);if(Xoa||Yoa){if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.ua()))return a[1]+"."+a[2]}else if(l9a)return(a=NA(/Android\s+([0-9.]+)/))?a:NA(/Version\/([0-9.]+)/);return""}();var okb=function(){};
_.lx(okb);okb.prototype.nextId_=0;_.Kv=function(a){return":"+(a.nextId_++).toString(36)};var OA=function(a){_.Dz.call(this);this.JSC$7992_dom_=a||rf();this.JSC$7992_id_=null;this.inDocument_=!1;this.JSC$7992_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.nx(OA,_.Dz);OA.prototype.idGenerator_=okb.getInstance();OA.prototype.getId=function(){return this.JSC$7992_id_||(this.JSC$7992_id_=_.Kv(this.idGenerator_))};
OA.prototype.getElement=function(){return this.JSC$7992_element_};
var PA=function(a){a.googUiComponentHandler_||(a.googUiComponentHandler_=new _.bn(a));return a.googUiComponentHandler_},pkb=function(a,b){if(a==b)throw Error("hb");
var c;if(c=b&&a.parent_&&a.JSC$7992_id_){c=a.parent_;var d=a.JSC$7992_id_;c=c.childIndex_&&d?_.yf.get(c.childIndex_,d)||null:null}if(c&&a.parent_!=b)throw Error("hb");a.parent_=b;OA.superClass_.setParentEventTarget.call(a,b)};
OA.prototype.setParentEventTarget=function(a){if(this.parent_&&this.parent_!=a)throw Error("ib");OA.superClass_.setParentEventTarget.call(this,a)};
OA.prototype.JSC$7994_createDom=function(){this.JSC$7992_element_=this.JSC$7992_dom_.createElement("DIV")};
OA.prototype.render=function(a){qkb(this,a)};
var qkb=function(a,b,c){if(a.inDocument_)throw Error("jb");a.JSC$7992_element_||a.JSC$7994_createDom();b?b.insertBefore(a.JSC$7992_element_,c||null):a.JSC$7992_dom_.JSC$7221_document_.body.appendChild(a.JSC$7992_element_);a.parent_&&!a.parent_.inDocument_||a.enterDocument()};
_.f=OA.prototype;_.f.decorate=function(a){if(this.inDocument_)throw Error("jb");if(a&&this.canDecorate(a)){this.wasDecorated_=!0;var b=_.Cf(a);this.JSC$7992_dom_&&this.JSC$7992_dom_.JSC$7221_document_==b||(this.JSC$7992_dom_=rf(a));this.decorateInternal(a);this.enterDocument()}else throw Error("kb");};
_.f.canDecorate=function(){return!0};
_.f.decorateInternal=function(a){this.JSC$7992_element_=a};
_.f.enterDocument=function(){this.inDocument_=!0;rkb(this,function(a){!a.inDocument_&&a.getElement()&&a.enterDocument()})};
_.f.exitDocument=function(){rkb(this,function(a){a.inDocument_&&a.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.f.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);rkb(this,function(a){a.dispose()});
!this.wasDecorated_&&this.JSC$7992_element_&&_.mg(this.JSC$7992_element_);this.parent_=this.model_=this.JSC$7992_element_=this.childIndex_=this.children_=null;OA.superClass_.disposeInternal.call(this)};
_.f.getModel=function(){return this.model_};
_.f.addChild=function(a,b){var c=this.children_?this.children_.length:0;if(a.inDocument_&&(b||!this.inDocument_))throw Error("jb");if(c<0||c>(this.children_?this.children_.length:0))throw Error("lb");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);a.parent_==this?(_.yf.set(this.childIndex_,a.getId(),a),_.Qa(this.children_,a)):_.yf.add(this.childIndex_,a.getId(),a);pkb(a,this);_.yaa(this.children_,c,0,a);a.inDocument_&&this.inDocument_&&a.parent_==this?(b=this.getContentElement(),
(b.childNodes[c]||null)!=a.getElement()&&(a.getElement().parentElement==b&&b.removeChild(a.getElement()),c=b.childNodes[c]||null,b.insertBefore(a.getElement(),c))):b?(this.JSC$7992_element_||this.JSC$7994_createDom(),c=this.children_?this.children_[c+1]||null:null,qkb(a,this.getContentElement(),c?c.JSC$7992_element_:null)):this.inDocument_&&!a.inDocument_&&a.JSC$7992_element_&&a.JSC$7992_element_.parentNode&&a.JSC$7992_element_.parentNode.nodeType==1&&a.enterDocument()};
_.f.getContentElement=function(){return this.JSC$7992_element_};
var rkb=function(a,b){a.children_&&a.children_.forEach(b,void 0)};
OA.prototype.removeChild=function(a,b){if(a){var c=typeof a==="string"?a:a.getId();a=this.childIndex_&&c?_.yf.get(this.childIndex_,c)||null:null;c&&a&&(_.yf.remove(this.childIndex_,c),_.Qa(this.children_,a),b&&(a.exitDocument(),a.JSC$7992_element_&&_.mg(a.JSC$7992_element_)),pkb(a,null))}if(!a)throw Error("mb");return a};_.nx(xja,wja);_.nx(yja,wja);var skb;var tkb=function(a,b){b?a.setAttribute("role",b):a.removeAttribute("role")},QA=function(a,b,c){Array.isArray(c)&&(c=c.join(" "));
var d="aria-"+b;c===""||c==void 0?(skb||(c={},skb=(c.atomic=!1,c.autocomplete="none",c.dropeffect="none",c.haspopup=!1,c.live="off",c.multiline=!1,c.multiselectable=!1,c.orientation="vertical",c.readonly=!1,c.relevant="additions text",c.required=!1,c.sort="none",c.busy=!1,c.disabled=!1,c.hidden=!1,c.invalid="false",c)),c=skb,b in c?a.setAttribute(d,c[b]):a.removeAttribute(d)):a.setAttribute(d,c)};var ukb;_.RA=function(a,b,c){_.Dz.call(this);this.target=a;this.handle=b||a;this.limits=c||new Wy(NaN,NaN,NaN,NaN);this.JSC$7997_document_=_.Cf(a);this.JSC$7997_eventHandler_=new _.bn(this);_.gg(this,this.JSC$7997_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;_.ss(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=ukb};
_.nx(_.RA,_.Dz);ukb=_.ja.document&&_.ja.document.documentElement&&!!_.ja.document.documentElement.setCapture&&!!_.ja.document.releaseCapture;_.vkb=function(a,b){a.hysteresisDistanceSquared_=Math.pow(b,2)};
_.f=_.RA.prototype;_.f.getEnabled=function(){return this.enabled_};
_.f.setEnabled=function(a){this.enabled_=a};
_.f.disposeInternal=function(){_.RA.superClass_.disposeInternal.call(this);_.Cz(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$7997_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$7997_document_.releaseCapture();this.handle=this.target=null};
_.f.startDrag=function(a){var b=a.type=="mousedown";if(!this.enabled_||this.dragging_||b&&(a.event_.button!=0||_.V8a&&a.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new SA("start",this,a.clientX,a.clientY,a)))this.dragging_=!0,b&&a.preventDefault();else return;else b&&a.preventDefault();b=this.JSC$7997_document_;var c=b.documentElement,d=!this.useSetCapture_;this.JSC$7997_eventHandler_.listen(b,["touchmove","mousemove"],this.handleMove_,
{capture:d,passive:!1});this.JSC$7997_eventHandler_.listen(b,["touchend","mouseup"],this.endDrag,d);this.useSetCapture_?(c.setCapture(!1),this.JSC$7997_eventHandler_.listen(c,"losecapture",this.endDrag)):this.JSC$7997_eventHandler_.listen(Bf(b),"blur",this.endDrag);this.scrollTarget_&&this.JSC$7997_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,d);this.clientX=this.startX=a.clientX;this.clientY=this.startY=a.clientY;this.screenX=a.screenX;this.screenY=a.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=qf(rf(this.JSC$7997_document_))}};
_.f.endDrag=function(a,b){this.JSC$7997_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$7997_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new SA("end",this,a.clientX,a.clientY,a,wkb(this,this.deltaX),xkb(this,this.deltaY),b||a.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.f.handleMove_=function(a){if(this.enabled_){var b=a.clientX-this.clientX,c=a.clientY-this.clientY;this.clientX=a.clientX;this.clientY=a.clientY;this.screenX=a.screenX;this.screenY=a.screenY;if(!this.dragging_){var d=this.startX-this.clientX,e=this.startY-this.clientY;if(d*d+e*e>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new SA("start",this,a.clientX,a.clientY,a)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(a);return}}c=ykb(this,b,c);b=c.x;c=c.y;this.dragging_&&this.dispatchEvent(new SA("beforedrag",
this,a.clientX,a.clientY,a,b,c))&&(zkb(this,a,b,c),a.preventDefault())}};
var ykb=function(a,b,c){var d=qf(rf(a.JSC$7997_document_));b+=d.x-a.pageScroll.x;c+=d.y-a.pageScroll.y;a.pageScroll=d;a.deltaX+=b;a.deltaY+=c;return new _.Af(wkb(a,a.deltaX),xkb(a,a.deltaY))};
_.RA.prototype.onScroll_=function(a){var b=ykb(this,0,0);a.clientX=this.clientX;a.clientY=this.clientY;zkb(this,a,b.x,b.y)};
var zkb=function(a,b,c,d){a.target.style.left=c+"px";a.target.style.top=d+"px";a.dispatchEvent(new SA("drag",a,b.clientX,b.clientY,b,c,d))},wkb=function(a,b){var c=a.limits;
a=isNaN(c.left)?null:c.left;c=isNaN(c.width)?0:c.width;return Math.min(a!=null?a+c:Infinity,Math.max(a!=null?a:-Infinity,b))},xkb=function(a,b){var c=a.limits;
a=isNaN(c.top)?null:c.top;c=isNaN(c.height)?0:c.height;return Math.min(a!=null?a+c:Infinity,Math.max(a!=null?a:-Infinity,b))};
_.RA.prototype.isDragging=function(){return this.dragging_};
var SA=function(a,b,c,d,e,g,k){_.yz.call(this,a);this.clientX=c;this.clientY=d;this.browserEvent=e;this.left=g!==void 0?g:b.deltaX;this.top=k!==void 0?k:b.deltaY};
_.nx(SA,_.yz);var TA=function(a){this.JSC$8004_map_=new Map;var b=arguments.length;if(b>1){if(b%2)throw Error("ra");for(var c=0;c<b;c+=2)this.set(arguments[c],arguments[c+1])}else a&&this.addAll(a)};
_.f=TA.prototype;_.f.getCount=function(){return this.JSC$8004_map_.size};
_.f.getValues=function(){return Array.from(this.JSC$8004_map_.values())};
_.f.getKeys=function(){return Array.from(this.JSC$8004_map_.keys())};
_.f.containsKey=function(a){return this.JSC$8004_map_.has(a)};
_.f.containsValue=function(a){return this.getValues().some(function(b){return b==a})};
_.f.equals=function(a,b){var c=this;b=b===void 0?function(d,e){return d===e}:b;
return this===a?!0:this.JSC$8004_map_.size!=a.getCount()?!1:this.getKeys().every(function(d){return b(c.JSC$8004_map_.get(d),a.get(d))})};
_.f.isEmpty=function(){return this.JSC$8004_map_.size==0};
_.f.clear=function(){this.JSC$8004_map_.clear()};
_.f.remove=function(a){return this.JSC$8004_map_.delete(a)};
_.f.get=function(a,b){return this.JSC$8004_map_.has(a)?this.JSC$8004_map_.get(a):b};
_.f.set=function(a,b){this.JSC$8004_map_.set(a,b);return this};
_.f.addAll=function(a){if(a instanceof TA){a=_.h(a.JSC$8004_map_);for(var b=a.next();!b.done;b=a.next()){var c=_.h(b.value);b=c.next().value;c=c.next().value;this.JSC$8004_map_.set(b,c)}}else if(a)for(a=_.h(Object.entries(a)),b=a.next();!b.done;b=a.next())c=_.h(b.value),b=c.next().value,c=c.next().value,this.JSC$8004_map_.set(b,c)};
_.f.forEach=function(a,b){var c=this;b=b===void 0?this:b;this.JSC$8004_map_.forEach(function(d,e){return a.call(b,d,e,c)})};
_.f.clone=function(){return new TA(this)};(function(){for(var a=["ms","moz","webkit","o"],b,c=0;b=a[c]&&!_.ja.requestAnimationFrame;++c)_.ja.requestAnimationFrame=_.ja[b+"RequestAnimationFrame"],_.ja.cancelAnimationFrame=_.ja[b+"CancelAnimationFrame"]||_.ja[b+"CancelRequestAnimationFrame"];if(!_.ja.requestAnimationFrame){var d=0;_.ja.requestAnimationFrame=function(e){var g=(new Date).getTime(),k=Math.max(0,16-(g-d));d=g+k;return _.ja.setTimeout(function(){e(g+k)},k)};
_.ja.cancelAnimationFrame||(_.ja.cancelAnimationFrame=function(e){clearTimeout(e)})}})();
var Akb=[[],[]],Bkb=0,Ckb=!1,Dkb=0,Fkb=function(a,b){var c=Dkb++,d={measureTask:{id:c,fn:a.measure,context:b},mutateTask:{id:c,fn:a.mutate,context:b},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(d.args||(d.args=[]),d.args.length=0,d.args.push.apply(d.args,arguments),d.args.push(d.state)):d.args&&d.args.length!=0?(d.args[0]=d.state,d.args.length=1):d.args=[d.state];d.isScheduled||(d.isScheduled=!0,Akb[Bkb].push(d));Ckb||(Ckb=!0,window.requestAnimationFrame(Ekb))}},Ekb=
function(){Ckb=!1;
var a=Akb[Bkb],b=a.length;Bkb=(Bkb+1)%2;for(var c,d=0;d<b;++d){c=a[d];var e=c.measureTask;c.isScheduled=!1;e.fn&&e.fn.apply(e.context,c.args)}for(d=0;d<b;++d)c=a[d],e=c.mutateTask,c.isScheduled=!1,e.fn&&e.fn.apply(e.context,c.args),c.state={};a.length=0};var Gkb=_.cx(["about:blank"]),Hkb=_.cx(["javascript:undefined"]),Ikb=_.ef(Gkb);_.xd(Ikb);var Jkb=_.ef(Hkb);_.xd(Jkb);var UA=function(a){_.Dz.call(this);this.JSC$8010_element_=a;this.listenKeyIn_=_.ss(this.JSC$8010_element_,"focus",this,!0);this.listenKeyOut_=_.ss(this.JSC$8010_element_,"blur",this,!0)};
_.nx(UA,_.Dz);UA.prototype.handleEvent=function(a){var b=new _.zz(a.event_);b.type=a.type=="focusin"||a.type=="focus"?"focusin":"focusout";this.dispatchEvent(b)};
UA.prototype.disposeInternal=function(){UA.superClass_.disposeInternal.call(this);ps(this.listenKeyIn_);ps(this.listenKeyOut_);delete this.JSC$8010_element_};var Kkb=function(a,b){this.JSC$8013_element_=a;this.JSC$8013_dom_=b};var VA=function(a,b){OA.call(this,b);this.useIframeMask_=!!a;this.lastFocus_=null;this.resizeBackgroundTask_=Fkb({mutate:this.resizeBackground_},this);Fkb({mutate:this.updateModalAndBackground_},this)};
_.nx(VA,OA);_.f=VA.prototype;_.f.focusHandler_=null;_.f.visible_=!1;_.f.bgEl_=null;_.f.bgIframeEl_=null;_.f.tabCatcherElement_=null;_.f.backwardTabWrapInProgress_=!1;_.f.getCssClass=function(){return"goog-modalpopup"};
_.f.getBackgroundElement=function(){return this.bgEl_};
_.f.JSC$7994_createDom=function(){VA.superClass_.JSC$7994_createDom.call(this);var a=this.getElement(),b=_.ox(this.getCssClass()).split(" ");Yz(a,b);a.tabIndex=0;_.Mg(a,!1);Lkb(this);Mkb(this)};
var Lkb=function(a){if(a.useIframeMask_&&!a.bgIframeEl_){var b=a.JSC$7992_dom_.JSC$7223_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.Qd(b,Ikb);a.bgIframeEl_=b;a.bgIframeEl_.className=a.getCssClass()+"-bg";_.Mg(a.bgIframeEl_,!1);jdb(a.bgIframeEl_,0)}a.bgEl_||(a.bgEl_=a.JSC$7992_dom_.JSC$7223_createDom("DIV",a.getCssClass()+"-bg"),_.Mg(a.bgEl_,!1))},Mkb=function(a){a.tabCatcherElement_||(a.tabCatcherElement_=a.JSC$7992_dom_.createElement("SPAN"),_.Mg(a.tabCatcherElement_,
!1),a.tabCatcherElement_.tabIndex=0,a.tabCatcherElement_.style.position="absolute")};
_.f=VA.prototype;_.f.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.f.canDecorate=function(a){return!!a&&a.tagName=="DIV"};
_.f.decorateInternal=function(a){VA.superClass_.decorateInternal.call(this,a);a=_.ox(this.getCssClass()).split(" ");Yz(this.getElement(),a);Lkb(this);Mkb(this);this.getElement().tabIndex=0;_.Mg(this.getElement(),!1)};
_.f.enterDocument=function(){this.bgIframeEl_&&_.Sy(this.bgIframeEl_,this.getElement());_.Sy(this.bgEl_,this.getElement());VA.superClass_.enterDocument.call(this);_.Ty(this.tabCatcherElement_,this.getElement());this.focusHandler_=new UA(this.JSC$7992_dom_.JSC$7221_document_);PA(this).listen(this.focusHandler_,"focusin",this.onFocus);Nkb(this,!1)};
_.f.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.Tf(this.focusHandler_);VA.superClass_.exitDocument.call(this);_.mg(this.bgIframeEl_);_.mg(this.bgEl_);_.mg(this.tabCatcherElement_)};
_.f.setVisible=function(a){if(a!=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_&&Nkb(this,a),a){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$7992_dom_.JSC$7221_document_.activeElement}catch(e){}this.updateModalAndBackground_();PA(this).listen(this.JSC$7992_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$7992_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);Okb(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)os(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){PA(this).unlisten(this.JSC$7992_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$7992_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)os(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var b=this.JSC$7992_dom_,c=b.JSC$7221_document_.body,d=b.JSC$7221_document_.activeElement||c;if(!this.lastFocus_||this.lastFocus_==c){this.lastFocus_=null;break a}(d==c||b.contains(this.getElement(),d))&&this.lastFocus_.focus()}catch(e){}this.lastFocus_=
null}}};
var Nkb=function(a,b){a.modalAriaVisibilityHelper_||(a.modalAriaVisibilityHelper_=new Kkb(a.JSC$7992_element_,a.JSC$7992_dom_));a=a.modalAriaVisibilityHelper_;if(b){a.hiddenElements_||(a.hiddenElements_=[]);b=a.JSC$8013_dom_.getChildren(a.JSC$8013_dom_.JSC$7221_document_.body);for(var c=0;c<b.length;c++){var d=b[c],e;if(e=d!=a.JSC$8013_element_)e=d.getAttribute("aria-hidden"),e=!(e==null||e==void 0?0:String(e));e&&(QA(d,"hidden",!0),a.hiddenElements_.push(d))}}else if(a.hiddenElements_){for(b=0;b<
a.hiddenElements_.length;b++)a.hiddenElements_[b].removeAttribute("aria-hidden");a.hiddenElements_=null}};
VA.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var Okb=function(a,b){a.bgIframeEl_&&_.Mg(a.bgIframeEl_,b);a.bgEl_&&_.Mg(a.bgEl_,b);_.Mg(a.getElement(),b);_.Mg(a.tabCatcherElement_,b)};
_.f=VA.prototype;_.f.onShow=function(){this.dispatchEvent("show")};
_.f.onHide=function(){Okb(this,!1);this.dispatchEvent("hide")};
_.f.isVisible=function(){return this.visible_};
_.f.focus=function(){this.focusElement_()};
_.f.resizeBackground_=function(){this.bgIframeEl_&&_.Mg(this.bgIframeEl_,!1);this.bgEl_&&_.Mg(this.bgEl_,!1);var a=this.JSC$7992_dom_.JSC$7221_document_;var b=_.pf(Bf(this.JSC$7992_dom_.JSC$7221_document_)||window);var c=Math.max(b.width,Math.max(a.body.scrollWidth,a.documentElement.scrollWidth));a=Math.max(b.height,Math.max(a.body.scrollHeight,a.documentElement.scrollHeight));this.bgIframeEl_&&(_.Mg(this.bgIframeEl_,!0),_.fdb(this.bgIframeEl_,c,a));this.bgEl_&&(_.Mg(this.bgEl_,!0),_.fdb(this.bgEl_,
c,a))};
_.f.reposition=function(){var a;if(_.edb(this.getElement())=="fixed")var b=a=0;else b=qf(this.JSC$7992_dom_),a=b.x,b=b.y;var c=hdb(this.getElement());var d=_.pf(Bf(this.JSC$7992_dom_.JSC$7221_document_)||window);a=Math.max(a+d.width/2-c.width/2,0);b=Math.max(b+d.height/2-c.height/2,0);Zy(this.getElement(),a,b);Zy(this.tabCatcherElement_,a,b)};
_.f.onFocus=function(a){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():a.target==this.tabCatcherElement_&&Iz(this.focusElement_,0,this)};
_.f.focusElement_=function(){try{this.getElement().focus()}catch(a){}};
_.f.disposeInternal=function(){_.Tf(this.popupShowTransition_);this.popupShowTransition_=null;_.Tf(this.popupHideTransition_);this.popupHideTransition_=null;_.Tf(this.bgShowTransition_);this.bgShowTransition_=null;_.Tf(this.bgHideTransition_);this.bgHideTransition_=null;VA.superClass_.disposeInternal.call(this)};var Cg=function(a,b,c){VA.call(this,b,c);this.JSC$8023_class_=a||"modal-dialog";this.buttons_=(new WA).addButton(Pkb,!0).addButton(Qkb,!1,!0)};
_.nx(Cg,VA);_.f=Cg.prototype;_.f.escapeToCancel_=!0;_.f.hasTitleCloseButton_=!0;_.f.modal_=!0;_.f.draggable_=!0;_.f.backgroundElementOpacity_=.5;_.f.title_="";_.f.JSC$8025_dragger_=null;_.f.JSC$8025_disposeOnHide_=!1;_.f.titleEl_=null;_.f.titleTextEl_=null;_.f.titleTextId_=null;_.f.titleCloseEl_=null;_.f.contentEl_=null;_.f.buttonEl_=null;_.f.getCssClass=function(){return this.JSC$8023_class_};
_.f.setTitle=function(a){this.title_=a;this.titleTextEl_&&_.Vy(this.titleTextEl_,a)};
_.f.getTitle=function(){return this.title_};
_.f.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var Rkb=function(a){a.getElement()||a.render();return a.getElement()};
Cg.prototype.getBackgroundElement=function(){this.getElement()||this.render();return Cg.superClass_.getBackgroundElement.call(this)};
var Skb=function(a,b){a.backgroundElementOpacity_=b;a.getElement()&&(b=a.getBackgroundElement())&&jdb(b,a.backgroundElementOpacity_)};
Cg.prototype.setDraggable=function(a){this.draggable_=a;Tkb(this,a&&this.inDocument_)};
Cg.prototype.JSC$8025_handleDrag=function(){};
var Tkb=function(a,b){var c=_.ox(a.JSC$8023_class_+"-title-draggable").split(" ");a.getElement()&&(b?Yz(a.titleEl_,c):rhb(a.titleEl_,c));b&&!a.JSC$8025_dragger_?(b=new _.RA(a.getElement(),a.titleEl_),a.JSC$8025_dragger_=b,Yz(a.titleEl_,c),_.ss(a.JSC$8025_dragger_,"start",a.setDraggerLimits_,!1,a),_.ss(a.JSC$8025_dragger_,"drag",a.JSC$8025_handleDrag,!1,a)):!b&&a.JSC$8025_dragger_&&(a.JSC$8025_dragger_.dispose(),a.JSC$8025_dragger_=null)};
_.f=Cg.prototype;
_.f.JSC$7994_createDom=function(){Cg.superClass_.JSC$7994_createDom.call(this);var a=this.getElement(),b=this.JSC$7992_dom_;this.titleTextId_=this.getId();var c=this.getId()+".contentEl";this.titleEl_=b.JSC$7223_createDom("DIV",this.JSC$8023_class_+"-title",this.titleTextEl_=b.JSC$7223_createDom("SPAN",{className:this.JSC$8023_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=b.JSC$7223_createDom("SPAN",this.JSC$8023_class_+"-title-close"));Jcb(a,this.titleEl_,this.contentEl_=
b.JSC$7223_createDom("DIV",{className:this.JSC$8023_class_+"-content",id:c}),this.buttonEl_=b.JSC$7223_createDom("DIV",this.JSC$8023_class_+"-buttons"));tkb(this.titleTextEl_,"heading");tkb(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;QA(this.titleCloseEl_,"label","Close");tkb(a,"dialog");QA(a,"labelledby",this.titleTextId_||"");_.Mg(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(a=this.buttons_,a.JSC$8026_element_=this.buttonEl_,a.render());_.Mg(this.buttonEl_,!!this.buttons_);
Skb(this,this.backgroundElementOpacity_)};
_.f.decorateInternal=function(a){Cg.superClass_.decorateInternal.call(this,a);a=this.getElement();var b=this.JSC$8023_class_+"-content";this.contentEl_=My(document,null,b,a)[0];this.contentEl_||(this.contentEl_=this.JSC$7992_dom_.JSC$7223_createDom("DIV",b),a.appendChild(this.contentEl_));b=this.JSC$8023_class_+"-title";var c=this.JSC$8023_class_+"-title-text",d=this.JSC$8023_class_+"-title-close";(this.titleEl_=My(document,null,b,a)[0])?(this.titleTextEl_=My(document,null,c,this.titleEl_)[0],this.titleCloseEl_=
My(document,null,d,this.titleEl_)[0]):(this.titleEl_=this.JSC$7992_dom_.JSC$7223_createDom("DIV",b),a.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=Xcb(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.Oy("SPAN",{className:c,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;QA(a,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=this.JSC$7992_dom_.JSC$7223_createDom("SPAN",
d),this.titleEl_.appendChild(this.titleCloseEl_));_.Mg(this.titleCloseEl_,this.hasTitleCloseButton_);b=this.JSC$8023_class_+"-buttons";(this.buttonEl_=My(document,null,b,a)[0])?(this.buttons_=new WA(this.JSC$7992_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$7992_dom_.JSC$7223_createDom("DIV",b),a.appendChild(this.buttonEl_),this.buttons_&&(a=this.buttons_,a.JSC$8026_element_=this.buttonEl_,a.render()),_.Mg(this.buttonEl_,!!this.buttons_));Skb(this,this.backgroundElementOpacity_)};
_.f.enterDocument=function(){Cg.superClass_.enterDocument.call(this);PA(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);PA(this).listen(this.buttonEl_,"click",this.onButtonClick_);Tkb(this,this.draggable_);PA(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var a=this.getElement();tkb(a,"dialog");this.titleTextEl_.id!==""&&QA(a,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){a=this.JSC$7992_dom_;
var b=this.getBackgroundElement();a.removeNode(this.bgIframeEl_);a.removeNode(b)}this.isVisible()&&Nkb(this,!1)}};
_.f.exitDocument=function(){this.isVisible()&&this.setVisible(!1);Tkb(this,!1);Cg.superClass_.exitDocument.call(this)};
_.f.setVisible=function(a){a!=this.isVisible()&&(this.inDocument_||this.render(),Cg.superClass_.setVisible.call(this,a))};
_.f.onShow=function(){Cg.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.f.onHide=function(){Cg.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$8025_disposeOnHide_&&this.dispose()};
_.f.setDraggerLimits_=function(){var a=this.JSC$7992_dom_.JSC$7221_document_,b=_.pf(Bf(a)||window),c=Math.max(a.body.scrollWidth,b.width);a=Math.max(a.body.scrollHeight,b.height);var d=hdb(this.getElement());_.edb(this.getElement())=="fixed"?this.JSC$8025_dragger_.limits=new Wy(0,0,Math.max(0,b.width-d.width),Math.max(0,b.height-d.height)):this.JSC$8025_dragger_.limits=new Wy(0,0,c-d.width,a-d.height)};
_.f.onTitleCloseClick_=function(){Ukb(this)};
var Ukb=function(a){if(a.hasTitleCloseButton_){var b=a.buttons_,c=b&&b.cancelButton_;c?(b=b.get(c),a.dispatchEvent(new XA(c,b))&&a.setVisible(!1)):a.setVisible(!1)}},Vkb=function(a){a.hasTitleCloseButton_=!1;
a.titleCloseEl_&&_.Mg(a.titleCloseEl_,a.hasTitleCloseButton_)};
Cg.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;Cg.superClass_.disposeInternal.call(this)};
Cg.prototype.onButtonClick_=function(a){a:{for(a=a.target;a!=null&&a!=this.buttonEl_;){if(a.tagName=="BUTTON")break a;a=a.parentNode}a=null}if(a&&!a.disabled){a=a.name;var b=this.buttons_.get(a);this.dispatchEvent(new XA(a,b))&&this.setVisible(!1)}};
Cg.prototype.onKey_=function(a){var b=!1,c=!1,d=this.buttons_,e=a.target;if(a.type=="keydown")if(this.escapeToCancel_&&a.keyCode==27){var g=d&&d.cancelButton_;e=e.tagName=="SELECT"&&!e.disabled;g&&!e?(c=!0,b=d.get(g),b=this.dispatchEvent(new XA(g,b))):e||(b=!0)}else{if(a.keyCode==9&&a.shiftKey&&e==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(t){}Iz(this.resetBackwardTabWrap_,0,this)}}else if(a.keyCode==13){if(e.tagName=="BUTTON"&&!e.disabled)g=e.name;
else if(e==this.titleCloseEl_)Ukb(this);else if(d){var k=d.defaultButton_,m;if(m=k)a:{m=og("BUTTON",d.JSC$8026_element_);for(var n,r=0;n=m[r];r++)if(n.name==k||n.id==k){m=n;break a}m=null}e=(e.tagName=="TEXTAREA"||e.tagName=="SELECT"||e.tagName=="A")&&!e.disabled;!m||m.disabled||e||(g=k)}g&&d&&(c=!0,b=this.dispatchEvent(new XA(g,String(d.get(g)))))}else e!=this.titleCloseEl_||a.keyCode!=32&&a.key!=" "||Ukb(this);if(b||c)a.stopPropagation(),a.preventDefault();b&&this.setVisible(!1)};
var XA=function(a,b){this.type="dialogselect";this.key=a;this.caption=b};
_.nx(XA,_.yz);var WA=function(a){TA.call(this);a||rf();this.cancelButton_=this.JSC$8026_element_=this.defaultButton_=null};
_.nx(WA,TA);_.f=WA.prototype;_.f.clear=function(){TA.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.f.set=function(a,b,c,d){TA.prototype.set.call(this,a,b);c&&(this.defaultButton_=a);d&&(this.cancelButton_=a);return this};
_.f.addButton=function(a,b,c){return this.set(a.key,a.caption,b,c)};
_.f.render=function(){if(this.JSC$8026_element_){_.Yd(this.JSC$8026_element_,Kja);var a=rf(this.JSC$8026_element_);this.forEach(function(b,c){b=a.JSC$7223_createDom("BUTTON",{name:c},b);c==this.defaultButton_&&(b.className="goog-buttonset-default");this.JSC$8026_element_.appendChild(b)},this)}};
_.f.decorate=function(a){if(a&&a.nodeType==1){this.JSC$8026_element_=a;a=og("BUTTON",this.JSC$8026_element_);for(var b,c,d,e=0;b=a[e];e++)if(c=b.name||b.id,d=Xcb(b)||b.value,c){var g=e==0;this.set(c,d,g,b.name=="cancel");g&&_.Ts(b,"goog-buttonset-default")}}};
_.f.getElement=function(){return this.JSC$8026_element_};
var Pkb={key:"ok",caption:"OK"},Qkb={key:"cancel",caption:"Cancel"},Wkb={key:"yes",caption:"Yes"},Xkb={key:"no",caption:"No"},Ykb={key:"save",caption:"Save"},Zkb={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new WA).addButton(Pkb,!0,!0),(new WA).addButton(Pkb,!0).addButton(Qkb,!1,!0),(new WA).addButton(Wkb,!0).addButton(Xkb,!1,!0),(new WA).addButton(Wkb).addButton(Xkb,!0).addButton(Qkb,!1,!0),(new WA).addButton(Zkb).addButton(Ykb).addButton(Qkb,!0,!0));_.nx(zja,Cg);_.nx(Aja,Dg);var $kb=_.cx(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),alb=_.cx(["//apis.google.com/js/rpc.js"]),Jja=_.ef($kb),Ija=_.ef(alb),Cja=null;var Eg=function(a,b){_.Dz.call(this);this.JSC$8035_element_=a;a=_.Sk(this.JSC$8035_element_)?this.JSC$8035_element_:this.JSC$8035_element_?this.JSC$8035_element_.body:null;this.isRtl_=!!a&&_.kdb(a);this.listenKey_=_.ss(this.JSC$8035_element_,_.tx?"DOMMouseScroll":"mousewheel",this,b)};
_.nx(Eg,_.Dz);Eg.prototype.handleEvent=function(a){var b=0,c=0,d=a.event_;d.type=="mousewheel"?(a=blb(-d.wheelDelta),d.wheelDeltaX!==void 0?(b=blb(-d.wheelDeltaX),c=blb(-d.wheelDeltaY)):c=a):(a=d.detail,a>100?a=3:a<-100&&(a=-3),d.axis!==void 0&&d.axis===d.HORIZONTAL_AXIS?b=a:c=a);typeof this.maxDeltaX_==="number"&&(b=_.Qw(b,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(c=_.Qw(c,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(b=-b);b=new clb(a,d,b,c);this.dispatchEvent(b)};
var blb=function(a){return _.ux&&(_.V8a||X8a)&&a%40!=0?a:a/40};
Eg.prototype.disposeInternal=function(){Eg.superClass_.disposeInternal.call(this);ps(this.listenKey_);this.listenKey_=null};
var clb=function(a,b,c,d){_.zz.call(this,b);this.type="mousewheel";this.detail=a;this.deltaX=c;this.deltaY=d};
_.nx(clb,_.zz);_.mw=function(a){var b="instance_";if(a.instance_&&a.hasOwnProperty(b))return a.instance_;b=new a;return a.instance_=b};var Hja;var dlb=_.cx(["https://about:blank"]),elb=_.cx(['javascript:""']),flb=_.cx(["about:blank"]);_.nx(Ng,zja);_.f=Ng.prototype;_.f.JSC$8043_url_="";_.f.JSC$8043_iframe_=null;_.f.iframeLoaded_=!1;_.f.loadedFired_=!1;_.f.callback_=function(){};
_.f.enterDocument=function(){Ng.superClass_.enterDocument.call(this);Fja(this.getBackgroundElement(),PA(this))};
_.f.render=function(a){var b=this;Ng.superClass_.render.call(this,a);this.useGapi_?fkb(this.iframeManager_,window).then(function(){return glb(b)}).then(null,function(){b.callback_({action:"error"})}):hlb(this)};
var glb=function(a){var b=a.JSC$7992_dom_.JSC$7223_createDom("div",["picker-dialog-content","picker-frame"]);_.Mg(b,!1);a.getContentElement().appendChild(b);return gkb(a.iframeManager_,b,function(c){var d=Kdb(c["iframe-command"]);switch(d.getCommand()){case 1:c=a.callback_;d=_.Xj(d,jz,2);var e="";switch(d.getStatus()){case 2:e="cancel";break;case 1:e="picked";break;case 3:e="error"}var g=_.Vf(d,Gx,2,_.Wf(w9a));d=g.length===0?{action:e}:Ojb(g,e,_.Xj(d,Hdb,7));c.call(a,d);a.setVisible(!1);break;case 4:Vkb(a);
a.callback_({action:"loaded"});break;case 7:case 8:c=a.callback_;a:{e=d.getCommand();g=_.Xj(d,jz,2);switch(e){case 7:e="uploadScheduled";break;case 8:e="uploadStateChange";break;default:d={};break a}d=_.Vf(g,Gx,2,_.Wf(w9a));if(d.length===0)d={action:e};else{var k=_.Xj(g,Hdb,7);g=k&&_.Ox(k,1);k=Djb(k);d=Gjb(d,e,g,k)}}c.call(a,d)}},a.JSC$8043_url_,a.targetId_,a.rpcToken_).then(function(c){a.JSC$8043_iframe_=c.getIframeEl();
ilb(a);_.Mg(a.JSC$8043_iframe_.parentElement,!0);_.Ts(a.getElement(),"picker-dialog");jlb(a);return c})},hlb=function(a){a.JSC$8043_iframe_=a.JSC$7992_dom_.JSC$7223_createDom("IFRAME",{id:a.targetId_,
name:a.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.Qd(a.JSC$8043_iframe_,klb(a));_.Ts(a.getElement(),"picker-dialog");a.getContentElement().appendChild(a.JSC$8043_iframe_);PA(a).listen(a.JSC$8043_iframe_,"load",function(){return void ilb(a)});
a.JSC$8043_iframe_.src=a.JSC$8043_url_;jlb(a)},mlb=function(a){llb(a,(0,_.ug)(function(b){b.setAuthToken(this.targetId_,this.rpcToken_)},a))},jlb=function(a){var b=_.Kg(_.Jg(a.JSC$8043_url_),"title");
b&&a.setTitle(b)},klb=function(a){return _.naa("Internet Explorer")>=7&&_.na(a.JSC$8043_url_,"https")?_.ef(dlb):_.sx?_.ef(elb):_.ef(flb)},ilb=function(a){mlb(a);
a.iframeLoaded_=!0;a.JSC$8043_iframe_.tabIndex=0;a.isVisible()&&a.focus()};
Ng.prototype.handleKeydown_=function(a){a.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),a.stopPropagation(),a.preventDefault())};
var llb=function(a,b){var c=a.JSC$8041_gadgetsDomHelper_;Dja(function(){b(c.getWindow().gadgets.rpc)},c)};
Ng.prototype.setUrl=function(a){a=_.Lg(new _.Wn(a),"rpcService",this.targetId_);_.Lg(a,"rpctoken",this.rpcToken_);_.lA(a,"rpctoken="+this.rpcToken_);_.gA(a,"https");this.JSC$8043_url_=a.toString();this.JSC$8043_iframe_&&(this.JSC$8043_iframe_.src=this.JSC$8043_url_)};
var nlb=function(a,b){a.callback_=b;llb(a,(0,_.ug)(function(c){c.register(this.targetId_,(0,_.ug)(this.handlePickerAction_,this))},a))};
Ng.prototype.handlePickerAction_=function(a){var b=a.action;b=="loaded"&&(this.loadedFired_=!0,olb(this,new yja(this.isVisible())),plb(this),Vkb(this),PA(this).unlisten(this.JSC$7992_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$8043_iframe_.tabIndex=0);b!="picked"&&b!="cancel"||this.setVisible(!1);this.callback_(a)};
var plb=function(a){a.JSC$8043_appId_&&olb(a,new xja(a.JSC$8043_appId_,window.location.protocol+"//"+window.location.host))};
Ng.prototype.setRelayUrl=function(a){llb(this,(0,_.ug)(function(b){b.setRelayUrl(this.targetId_,a)},this))};
var olb=function(a,b){a.useGapi_&&lkb(b,a.iframeManager_).then(null,function(){a.callback_({action:"error"})});
llb(a,(0,_.ug)(function(c){c.call(this.targetId_,"picker",null,b)},a))};
Ng.prototype.resizePicker_=function(){var a=Bf(this.JSC$7992_dom_.JSC$7221_document_)||window;if(_.Kg(_.Jg(this.JSC$8043_url_),"ignoreLimits")=="true")a=new _.of(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.Kg(_.Jg(this.JSC$8043_url_),"shadeDialog")=="true"){var b=Rkb(this);b=ldb(b);var c=_.pf(a);a=c.width-80;c=c.height-40;b&&(a-=b.left?b.left:0,a-=b.right?b.right:0,c-=b.top?b.top:0,c-=b.bottom?b.bottom:0);a=new _.of(a>0?a:0,c>0?c:0)}else(b=this.preferredDialogWidth_)?(b=Math.max(320,
Math.min(1051,b)),(c=this.preferredDialogHeight_)||(c=_.pf(a).height*.85),c=Math.max(480,Math.min(650,c))):(b=_.pf(a),c=b.width*.618,c=c<b.height?Math.round(Math.max(480,Math.min(650,c*.85))):Math.round(Math.max(480,Math.min(650,b.height*.85))),b=Math.round(c/.618)),a=_.pf(a),b=Math.min(b,Math.max(a.width,320)),c=Math.min(c,Math.max(a.height,480)),a=new _.of(b,c);_.fdb(this.getContentElement(),a);this.reposition()};
Ng.prototype.reposition=function(){if(_.Kg(_.Jg(this.JSC$8043_url_),"shadeDialog")=="true"){var a=hdb(this.getElement()),b=_.pf(this.JSC$7992_dom_.getWindow());a=Math.floor(b.width/2-a.width/2);b=Rkb(this);if(b=ldb(b)){var c=b.left?b.left:0;c+=b.right?b.right:0;a=Math.floor(a-c/2)}a=a>0?a:0;b=qf(this.JSC$7992_dom_).y;Zy(this.getElement(),a,b)}else Ng.superClass_.reposition.call(this)};
Ng.prototype.setVisible=function(a){if(a!=this.isVisible()&&this.autoSizeDialog_){var b=this.JSC$7992_dom_.getWindow();a?(this.resizePicker_(),PA(this).listen(b,"resize",this.resizePicker_),this.iframeLoaded_||PA(this).listen(b,"keydown",this.handleKeydown_)):(PA(this).unlisten(b,"resize",this.resizePicker_),this.iframeLoaded_||PA(this).unlisten(b,"keydown",this.handleKeydown_))}Ng.superClass_.setVisible.call(this,a);olb(this,new yja(a))};
Ng.prototype.focus=function(){Ng.superClass_.focus.call(this);if(this.JSC$8043_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$8043_iframe_.focus()}catch(a){}};var vq=function(a,b){b=b===void 0?Ng:b;Dg.call(this,a);this.pickerConstructor=b;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(a=window.location.origin)||(a=window.location.protocol+"//"+window.location.host);a&&this.urlParamMap_.set("origin",a);this.postProcessors_=[]};
_.z(vq,Aja);vq.prototype.JSC$8048_disposeOnHide_=!1;
vq.prototype.build=function(){this.JSC$7949_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$7949_appId_);this.getRelayUrl()||this.setRelayUrl(_.jA(_.lA(_.kA(_.Jg(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("nb");var a=new this.pickerConstructor(qlb(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);a.JSC$8025_disposeOnHide_=this.JSC$8048_disposeOnHide_;
a.JSC$8043_appId_=this.JSC$7949_appId_;a.loadedFired_&&plb(a);nlb(a,this.callback_);return a};
var rlb=function(a){a.urlParamMap_.set("multiselectEnabled","true");return a};
vq.prototype.getHeight=function(){return this.dialogHeight_};
vq.prototype.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
vq.prototype.getTitle=function(){return this.urlParamMap_.get("title")};
vq.prototype.getWidth=function(){return this.dialogWidth_};
var slb=function(a){a.JSC$8048_disposeOnHide_=void 0;return a};
vq.prototype.setRelayUrl=function(a){this.urlParamMap_.set("parent",a);return this};
var tlb=function(a,b){a.urlParamMap_.set("selectButtonLabel",b);return a};
vq.prototype.setSize=function(a,b){this.dialogWidth_=a;this.dialogHeight_=b;return this};
vq.prototype.setTitle=function(a){this.urlParamMap_.set("title",a);return this};
var qlb=function(a){a.postProcessors_.length&&a.urlParamMap_.set("pp",JSON.stringify(a.postProcessors_));a.urlParamMap_.set("nav",zjb(a.nav_));var b=new _.Wn(a.getBaseUrl());a.urlParamMap_.forEach(function(c,d){_.Lg(b,d,c)});
return b};var wlb=function(a,b){a.name!==void 0?(this.name=a.name,this.code=ulb[a.name]):(this.code=a=a.code,this.name=vlb(a));_.da.call(this,Yab("%s %s",this.name,b))};
_.nx(wlb,_.da);var vlb=function(a){var b=_.yf.findKey(ulb,function(c){return a==c});
if(b===void 0)throw Error("pb`"+a);return b},YA={},ulb=(YA.AbortError=3,YA.EncodingError=5,YA.InvalidModificationError=9,YA.InvalidStateError=7,YA.NotFoundError=1,YA.NotReadableError=4,YA.NoModificationAllowedError=6,YA.PathExistsError=12,YA.QuotaExceededError=10,YA.SecurityError=2,YA.SyntaxError=8,YA.TypeMismatchError=11,YA);var xlb=function(a,b){_.yz.call(this,a.type,b);this.event_=a};
_.nx(xlb,_.yz);var ylb=function(a,b,c){c===void 0&&(c=a.size);return a.slice?a.slice(b,c):null};var Mja=new WeakMap,Lja=function(a,b){a=[a];for(var c=b.length-1;c>=0;--c)a.push(typeof b[c],b[c]);return a.join("\v")};_.Oja(function(){if(!_.ja.Blob)return!1;var a=new Uint8Array(100);try{var b=new Blob([a])}catch(c){return!1}return b.size!=100?!1:!0});
var zlb=_.Oja(function(){if(!_.ja.Blob)return!1;var a=new Uint8Array(100);try{var b=new Blob([a])}catch(c){return!1}return ylb(b,0,1)===null?!1:!0});_.ja.U3bHHf!=null||(_.ja.U3bHHf=0);_.ja.U3bHHf++;var Qja={};_.Rg=void 0;var Sja=Symbol("ub");var Yja=Tg("WizInjectionContext_Dispatcher");var Zja=Tg("WizInjectionContext_RootElement");var Xja=Tg("WizInjectionContext_AppContext"),$ja=Tg("WizInjectionContext_ModelRootElement"),aka=Tg("WizInjectionContext_RendererData"),bka=Tg("WizInjectionContext_InjectingConstructor"),cka={};var Alb=Symbol("vb"),sla=Symbol("wb"),ula=Symbol("xb"),qla=Hb(function(a){return lka(a)&&Alb in a});var fka={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextPerComponent:O8a,enableSinkLazyTsx:P8a,enablePerformanceTiming:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,disableSoyJsRenderEvents:!1};var Xg=Object.assign({},{attributes:{},handleError:function(a){throw a;}},fka);var mka=Symbol("yb"),ZA={},jka=(ZA[mka]=!0,ZA.debugName="[component]",ZA.getComponentStack=function(){for(var a=[],b=this;b;)nka(b)&&a.push(b.debugName),b=b.parent;return a.reverse()},ZA.registerSignal=function(){},ZA.registerEffect=function(){},ZA);var Zg=null,ah=!1,tka=1,dh=Symbol("zb"),jh={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:function(){return!1},
producerRecomputeValue:function(){},
consumerMarkedDirty:function(){},
consumerOnSignalRead:function(){}};var $A=Symbol("Ab"),aB=Symbol("Bb"),ch=Symbol("Cb"),Bka=Object.assign({},jh,{value:$A,dirty:!0,error:null,equal:oka,kind:"computed",producerMustRecompute:function(a){return a.value===$A||a.value===aB},
producerRecomputeValue:function(a){if(a.value===aB)throw Error("Db");var b=a.value;a.value=aB;var c=yka(a),d=!1;try{var e=a.computation();$g(null);d=b!==$A&&b!==ch&&e!==ch&&a.equal(b,e)}catch(g){e=ch,a.error=g}finally{zka(a,c)}d?a.value=b:(a.value=e,a.version++)}});var Fka=function(){throw Error();};var Gka=null,Dka=Object.assign({},jh,{equal:oka,value:void 0,kind:"signal"});Object.assign({},jh,{value:$A,dirty:!0,error:null,equal:oka,kind:"linkedSignal",producerMustRecompute:function(a){return a.value===$A||a.value===aB},
producerRecomputeValue:function(a){if(a.value===aB)throw Error("Db");var b=a.value;a.value=aB;var c=yka(a);try{var d=a.source();var e=a.computation(d,b===$A||b===ch?void 0:{source:a.sourceValue,value:b});a.sourceValue=d}catch(g){e=ch,a.error=g}finally{zka(a,c)}b!==$A&&e!==ch&&a.equal(b,e)?a.value=b:(a.value=e,a.version++)}});Object.assign({},jh,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(a){a.schedule!==null&&a.schedule(a.ref)},
hasRun:!1,cleanupFn:function(){}});var Ika=Symbol("Eb");var Kka=Symbol("Fb"),gh=Symbol("Gb");var hh=Array.isArray;var Tka;var Blb={},Vka=Ska(Object.assign({},{consumerAllowSignalWrites:!0},Blb)),gi=Ska(Object.assign({},{consumerAllowSignalWrites:!0},Blb));var bB=function(){this.queue=new Set};
bB.prototype.remove=function(a){this.queue.delete(a)};
var Clb=function(){bB.apply(this,arguments)};
_.z(Clb,bB);Clb.prototype.schedule=function(a){a.hasRun?this.queue.add(a):a.run()};
Clb.prototype.flush=function(){if(this.queue.size){var a=this.queue;this.queue=new Set;rla(a)}};
var tla=new Clb,Dlb=function(){bB.apply(this,arguments)};
_.z(Dlb,bB);Dlb.prototype.schedule=function(a){var b=this;return _.l(function(c){if(c.nextAddress==1)return a.hasRun?c.jumpTo(2):_.p(c,Promise.resolve(),3);if(c.nextAddress!=2)return a.run(),c.return();b.queue.add(a);_.se(c)})};
Dlb.prototype.flush=function(){var a=this,b;return _.l(function(c){if(c.nextAddress==1){if(!a.queue.size)return c.return();b=a.queue;a.queue=new Set;return _.p(c,Promise.resolve(),2)}rla(b);_.se(c)})};
var vla=new Dlb,Yka=[tla,vla],Wka=[];Gka=function(){Zka();for(var a=_.h(Wka),b=a.next();!b.done;b=a.next())b=b.value,b()};var oh=Symbol("Lb");var mh=[],zla,Ala,Bla;var cB={},Elb=Object.assign({},jh,(cB[Alb]=!0,cB.effectType=sla,cB.isResettableContext=!0,cB.producerNode=void 0,cB.hasRun=!1,cB.reactionFn=null,cB.consumerIsAlwaysLive=!0,cB.consumerAllowSignalWrites=!0,cB.consumerMarkedDirty=wla,cB.run=function(){if(this.reactionFn!==null&&!this.isDisposed){if(ah)throw Error("Mb");this.dirty=!1;if(!this.hasRun||uka(this)){this.hasRun=!0;Wja(this);var a=Sg(this),b=yka(this);hka("reactionRun",this.debugName);try{a=Vg(a),rh(this.reactionFn,{stack:this.componentStack})}finally{ika("reactionRun",
this.debugName),zka(this,b),Sg(a)}}}},cB.componentStack=void 0,cB.debugName="[reaction]",cB[Symbol.dispose]=function(){pka(this);
if(bh(this))for(var a=0;a<this.producerNode.length;a++)qka(this.producerNode[a],this.producerIndexOfThis[a]);this.producerNode.length=this.producerLastReadVersion.length=this.producerIndexOfThis.length=0;this.liveConsumerNode&&(this.liveConsumerNode.length=this.liveConsumerIndexOfThis.length=0);a=_.h(Yka);for(var b=a.next();!b.done;b=a.next())b.value.remove(this);Vja(this)},cB));var Dla=Object.assign({},Elb,{effectType:sla});var Ela=Object.assign({},Elb,{effectType:ula});var Fla=Symbol("Nb");var nma=new Set("allowfullscreen async autofocus autoplay checked controls default defer disabled formnovalidate hidden ismap itemscope jsshadow jsslot loop multiple muted novalidate open playsinline readonly required reversed scoped seamless selected spellcheck sortable typemustmatch".split(" "));var Uh=Symbol("Ob");var ei=function(){},mi=function(a){this.props=a;
this.__unmounted=!1};
mi.prototype.didPatch=function(){};
mi.prototype.didMount=function(){};
mi.prototype.didUnmount=function(){};
mi.prototype.didUpdate=function(){};var Ila={align:1,alt:1,"aria-activedescendant":10,"aria-atomic":1,"aria-autocomplete":1,"aria-busy":1,"aria-checked":1,"aria-controls":10,"aria-current":1,"aria-describedby":10,"aria-disabled":1,"aria-dropeffect":1,"aria-expanded":1,"aria-haspopup":1,"aria-hidden":1,"aria-invalid":1,"aria-label":1,"aria-labelledby":10,"aria-level":1,"aria-live":1,"aria-multiline":1,"aria-multiselectable":1,"aria-orientation":1,"aria-owns":10,"aria-posinset":1,"aria-pressed":1,"aria-readonly":1,"aria-relevant":1,"aria-required":1,
"aria-selected":1,"aria-setsize":1,"aria-sort":1,"aria-valuemax":1,"aria-valuemin":1,"aria-valuenow":1,"aria-valuetext":1,async:8,autocapitalize:1,autocomplete:1,autocorrect:1,autofocus:1,autoplay:1,bgcolor:1,border:1,cellpadding:1,cellspacing:1,checked:1,cite:1,"class":1,color:1,cols:1,colspan:1,contenteditable:1,controls:1,controlslist:1,crossorigin:1,datetime:1,dir:8,disabled:1,download:1,draggable:1,enctype:1,face:1,"for":10,formenctype:1,frameborder:1,height:1,hidden:1,href:4,hreflang:1,id:10,
ismap:1,itemid:1,itemprop:1,itemref:1,itemscope:1,itemtype:1,label:1,lang:1,list:10,loading:8,loop:1,max:1,maxlength:1,media:1,min:1,minlength:1,multiple:1,muted:1,name:10,nonce:1,open:1,placeholder:1,poster:1,preload:1,rel:1,required:1,reversed:1,role:1,rows:1,rowspan:1,selected:1,shape:1,size:1,sizes:1,slot:1,span:1,spellcheck:1,src:4,srcset:12,start:1,step:1,style:5,summary:1,tabindex:1,target:8,title:1,translate:1,type:1,valign:1,value:1,width:1,wrap:1},Hla={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}]}},gza={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},Lla=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],Kla={"*":{async:1,dir:0,loading:2,target:3}};var Flb=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,dB={},Nla=(dB[1]=null,dB[2]=function(a,b){return b instanceof Md?Pd(b):Fd.toString()},dB[3]=function(a,b){return Bd(b)?_.Cd(b):Flb.test(String(b))?String(b):Fd.toString()},dB[4]=function(a,b){return b instanceof ud?_.xd(b):Fd.toString()},dB[5]=function(a,b){return String(b)},dB[7]=null,dB[8]=null,dB[10]=null,dB);var Dua=Symbol("Qb");var s2a=function(a){var b=Glb,c=a,d="",e="",g=1;a<0&&(a=-a);if(a===Infinity)a=(Infinity*Math.sign(c)).toString();else{for(var k=0;k<Hlb.length;k++){var m=Hlb[k];g=b[m];if(a>=g||g<=1&&a>.1*g){d=m;break}}d?(d+="B",e=" "):g=1;a=Math.round(c/g*10)/10+e+d}return a},Hlb="Y Z E P T G M K  m u n".split(" "),Glb={"":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};_.Ilb=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 $h={};RegExp.prototype.hasOwnProperty("sticky");var qma=function(a){a=String(a);for(var b=function(d,e,g){for(var k=Math.min(e.length-g,d.length),m=0;m<k;m++){var n=e[g+m];if(d[m]!==("A"<=n&&n<="Z"?n.toLowerCase():n))return!1}return!0},c=0;(c=a.indexOf("<",c))!=-1;){if(b("\x3c/script",a,c)||b("\x3c!--",a,c))return"zSoyz";
c+=1}return a};var Ch={default:"__default"};var Ula=Object.prototype.hasOwnProperty;Qla.prototype=Object.create(null);var Xl=Xla();var Ph=null;var hma=function(a){this.created=[];this.deleted=[];this.node=a};var ima=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var a=this,b=a;a;)b=a,a=a.parentNode;return b};var Zla=function(a,b){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=a;this.key=b;this.text=void 0};var Hh=null,Ih=null,Eh=null,Kh=null,dma=[],cma=ama,Nh=[],Oh=[],Vl=function(a){return jma(function(b,c,d){Eh=Ih=b;Ih=null;c(d);bma(null);Ih=Eh;Eh=Eh.parentNode;return b},a)}(),Cua=function(a){return jma(function(b,c,d){var e={nextSibling:b};
Ih=e;c(d);Eh&&bma(b.nextSibling);return e===Ih?null:Ih},a)}();var Qh=[],lma=0;var Rh=new Qla;var vs=new Qla;var Jlb=Xla(),pma=Jlb[Ch.default],rma=Jlb.style,oma=["focusin","focusout"];var fna=function(){},Vma=function(){},kna=function(){},hna=function(){};var Th=Symbol("Wb");var yma,xma=wma;var bi=Symbol("Xb");var Ama=[],zma=0,Bma=ka;var Pma={};var jna=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(" ")),
ina=new Set(["a","font","script","style","title"]);var hi={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var ii=null,li=function(a,b){mi.call(this,a);var c=this;this.functionComponent=b;this.hooks=[];this.hookCounter=0;this.disposeEffects=xh(function(d){c.effectContext=d;_.wh(function(){Zma(c,c.el)})},Xg.alwaysTrackContexts||!!_.Rg)};
_.z(li,mi);li.prototype.render=function(a){var b=ii;ii=this;this.hookCounter=0;var c=$g(gi),d=Sg(this.effectContext);try{return d=Vg(d),hka("render",this.componentName),this.functionComponent(a)}finally{ika("render",this.componentName),Sg(d),$g(c),ii=b}};
_.Vm.Object.defineProperties(li.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){var a,b;return(b=(a=this.functionComponent.debugName)!=null?a:this.functionComponent.name)!=null?b:"[component]"}}});var lna=Symbol("lc"),dna=function(a,b,c){this.kind=a;this.props=b;this.children=c};
_.z(dna,ei);dna.prototype.render=function(){return cna(this.kind,this.props,this.children)};
dna.prototype.getChildren=function(){return this.children};var nna=[];Fka=function(a){throw Error("sb`"+a.debugName);};
(function(){var a=Ph;Ph=function(b){a==null||a(b);ona(b)}})();var Klb=void 0,Llb=new WeakMap,pna={getComponent:function(a){if(!a.__wizComponent)return null;a=a.__wizComponent;Llb.set(a.propsAndState,a);return a.propsAndState},
getDirectiveMetadata:function(a){a=Llb.get(a);if(!a)throw Error("mc");return{framework:"wiz",name:a.name,props:Object.fromEntries(Object.keys(a.props).map(function(b){return[b,b]}))}},
"\u0275setProfiler":function(a){var b;(b=Klb)==null||b();Klb=Xka(function(){a(2)})},
isSignal:function(a){return typeof a==="function"&&a[dh]!==void 0}};var vna=function(){this.map=new Map};
vna.prototype.push=function(a,b){var c=this.map;c.has(a)&&(this.multi||(this.multi=new Map),this.multi.set(b,c.get(a)));c.set(a,b)};
vna.prototype.pop=function(a){var b=this.map,c=b.get(a),d;c!==void 0&&((d=this.multi)==null?0:d.has(c))?(b.set(a,this.multi.get(c)),this.multi.delete(c)):b.delete(a);return c};var Bna={LOG_NULL_EL_REF_VALUE:function(){return Error("oc")},
OUT_OF_ORDER_HOOK_CALL:function(a){return Error("pc`"+a)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("qc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("rc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("sc")},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(a,b){return Error("tc`"+a+"`"+b)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(a){return Error("uc`"+a)},
USE_ELEMENT_NOT_ASSIGNED:function(a){return Error("vc`"+String(a))}};yma=ena;var Ina=Symbol("wc");Xma({beforeRender:function(a){var b=Sg(a.effectContext);try{b=Vg(b);var c;((c=a.__syncEffects)==null?0:c.length)&&Kna(a.__syncEffects)}finally{Sg(b)}},
didPatch:function(a){var b=Sg(a.effectContext);try{b=Vg(b);var c;((c=a.__syncEffects)==null?0:c.length)&&Kna(a.__syncEffects)}finally{Sg(b)}},
didUnmount:function(a){var b;((b=a.hooks)==null?0:b.length)&&a.hooks.forEach(Jna)}});var Mlb,Nlb,Olb;Mlb=_.ja.window;_.Ai=(Mlb==null?void 0:(Nlb=Mlb.yt)==null?void 0:Nlb.config_)||(Mlb==null?void 0:(Olb=Mlb.ytcfg)==null?void 0:Olb.data_)||{};_.Rj("yt.config_",_.Ai);var Plb={},Ona=[];_.qj=function(a){var b=_.Id.apply(1,arguments);var c=Error.call(this,a);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.args=[].concat(_.Be(b));Object.setPrototypeOf(this,this.constructor.prototype)};
_.z(_.qj,Error);var QBa=function(a,b,c){this.actionName=a;this.optionalAction=b===void 0?!1:b;this.args=c===void 0?null:c;this.returnValue=[]};_.X=function(a){this.name=a};_.Kl=new _.X("signalAction");var Zna=/^[\w.]*$/,Tna={q:!0,search_query:!0},Sna=String(Rna);var eB;eB=Symbol("xc");_.fB=function(a){this.name=a};
_.fB.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var $na=function(a){this.key=a},coa=function(a){this.deferredKey=a},boa=function(){var a=this;
this.providers=new Map;this.JSC$8234_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(a.providers)}}};
boa.prototype.addProvider=function(a){this.providers.set(a.provide,a);var b=this.JSC$8234_deferred.get(a.provide);if(b)try{b.resolver(this.resolve(a.provide))}catch(c){b.rejector(c)}};
boa.prototype.resolve=function(a){return a instanceof coa?Qlb(this,a):a instanceof $na?Rlb(this,a.key,[],!0):Rlb(this,a,[])};
var Qlb=function(a,b){b=b.deferredKey;if(a.JSC$8234_deferred.has(b))return a.JSC$8234_deferred.get(b).promise;var c={};c.promise=new Promise(function(d,e){c.resolver=d;c.rejector=e});
a.JSC$8234_deferred.set(b,c);return c.promise},Rlb=function(a,b,c,d){d=d===void 0?!1:d;
if(c.indexOf(b)>-1)throw Error("yc`"+b);if(a.cachedValues.has(b))return a.cachedValues.get(b);if(!a.providers.has(b)){if(d)return;throw Error("zc`"+b);}d=a.providers.get(b);c.push(b);if(d.useValue!==void 0)var e=d.useValue;else if(d.useFactory)e=d[eB]?Slb(a,d[eB],c):[],e=d.useFactory.apply(d,_.Be(e));else if(d.useClass){e=d.useClass;var g=e[eB]?Slb(a,e[eB],c):[];e=new (Function.prototype.bind.apply(e,[null].concat(_.Be(g))))}else throw Error("Ac`"+b);c.pop();d.skipCache||a.cachedValues.set(b,e);return e},
Slb=function(a,b,c){return b?b.map(function(d){return d instanceof $na?Rlb(a,d.key,c,!0):Rlb(a,d,c)}):[]};var aoa;var Ll=new _.fB("ENDPOINT_HANDLER_TOKEN");_.Ml=new _.X("urlEndpoint");var Tlb=function(){this.data=[];this.cachedPackedInt52=-1};
Tlb.prototype.set=function(a,b){b=b===void 0?!0:b;0<=a&&a<52&&Number.isInteger(a)&&this.data[a]!==b&&(this.data[a]=b,this.cachedPackedInt52=-1)};
Tlb.prototype.get=function(a){return!!this.data[a]};
var Ulb=function(a){a.cachedPackedInt52===-1&&(a.cachedPackedInt52=a.data.reduce(function(b,c,d){return b+(c?Math.pow(2,d):0)},0));
return a.cachedPackedInt52};var qoa=function(a){var b=Vlb;a=a===void 0?_.Ji("yt.ads.biscotti.lastId_")||"":a;var c=Object,d=c.assign,e={};e.dt=Ygb;e.flash="0";a:{try{var g=b.JSC$8240_win_.top.location.href}catch(Ba){g=2;break a}g=g?g===b.doc_.location.href?0:1:2}e=(e.frm=g,e);try{e.u_tz=-(new Date).getTimezoneOffset();var k=k===void 0?Vz:k;try{var m=k.history.length}catch(Ba){m=0}e.u_his=m;var n;e.u_h=(n=Vz.screen)==null?void 0:n.height;var r;e.u_w=(r=Vz.screen)==null?void 0:r.width;var t;e.u_ah=(t=Vz.screen)==null?void 0:t.availHeight;
var u;e.u_aw=(u=Vz.screen)==null?void 0:u.availWidth;var w;e.u_cd=(w=Vz.screen)==null?void 0:w.colorDepth}catch(Ba){}m=b.JSC$8240_win_;try{var A=m.screenX;var C=m.screenY}catch(Ba){}try{var G=m.outerWidth;var J=m.outerHeight}catch(Ba){}try{var I=m.innerWidth;var R=m.innerHeight}catch(Ba){}try{var ca=m.screenLeft;var V=m.screenTop}catch(Ba){}try{I=m.innerWidth,R=m.innerHeight}catch(Ba){}try{var fa=m.screen.availWidth;var aa=m.screen.availTop}catch(Ba){}A=[ca,V,A,C,fa,aa,G,J,I,R];C=Rfa(!1,b.JSC$8240_win_.top);
G={};var ma=ma===void 0?_.ja:ma;J=new Tlb;"SVGElement"in ma&&"createElementNS"in ma.document&&J.set(0);I=qcb();I["allow-top-navigation-by-user-activation"]&&J.set(1);I["allow-popups-to-escape-sandbox"]&&J.set(2);ma.crypto&&ma.crypto.subtle&&J.set(3);"TextDecoder"in ma&&"TextEncoder"in ma&&J.set(4);ma=Ulb(J);b=(G.bc=ma,G.bih=C.height,G.biw=C.width,G.brdim=A.join(),G.vis=Jha(b.doc_),G.wgl=!!Vz.WebGLRenderingContext,G);c=d.call(c,e,b);c.ca_type="image";a&&(c.bid=a);return c},Vlb=new function(){var a=
window.document;
this.JSC$8240_win_=window;this.doc_=a};
_.Rj("yt.ads_.signals_.getAdSignalsString",function(a){return Una(qoa(a))});_.mx();navigator.userAgent.indexOf(" (CrKey ");var hoa="XMLHttpRequest"in _.ja?function(){return new XMLHttpRequest}:null;var Wlb="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),Xlb=[].concat(_.Be(Wlb),["client_dev_set_cookie"]);var poa={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"},koa="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(_.Be(Wlb)),zoa=!1,moa=_.roa,woa=ooa;var Wta=[{messageFn:function(a){return"Cannot read property '"+a.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(a){return"Cannot call '"+a.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(a){return a.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var Ylb={messageWeights:[],callbackWeights:[{callback:Doa,weight:500}]};var Zlb=function(){this.callbackWeights=[];this.messageWeights=[]},$lb,Vta=function(){if(!$lb){var a=$lb=new Zlb;
a.messageWeights.length=0;a.callbackWeights.length=0;$4a(a,Ylb)}return $lb},$4a=function(a,b){b.messageWeights&&a.messageWeights.push.apply(a.messageWeights,b.messageWeights);
b.callbackWeights&&a.callbackWeights.push.apply(a.callbackWeights,b.callbackWeights)};_.nx(_.jj,_.tg);_.jj.prototype.subscribe=function(a,b,c){var d=this.topics_[a];d||(d=this.topics_[a]=[]);var e=this.JSC$8264_key_;this.subscriptions_[e]=a;this.subscriptions_[e+1]=b;this.subscriptions_[e+2]=c;this.JSC$8264_key_=e+3;d.push(e);return e};
var amb=function(a){var b=$ta,c=!1,d=b.subscribe("handleError",function(e){c||(c=!0,this.unsubscribeByKey(d),a.apply(void 0,arguments))},b)};
_.jj.prototype.unsubscribe=function(a,b,c){if(a=this.topics_[a]){var d=this.subscriptions_;if(a=a.find(function(e){return d[e+1]==b&&d[e+2]==c}))return this.unsubscribeByKey(a)}return!1};
_.jj.prototype.unsubscribeByKey=function(a){var b=this.subscriptions_[a];if(b){var c=this.topics_[b];this.publishDepth_!=0?(this.pendingKeys_.push(a),this.subscriptions_[a+1]=function(){}):(c&&_.Qa(c,a),delete this.subscriptions_[a],delete this.subscriptions_[a+1],delete this.subscriptions_[a+2])}return!!b};
_.jj.prototype.publish=function(a,b){var c=this.topics_[a];if(c){var d=Array(arguments.length-1),e=arguments.length,g;for(g=1;g<e;g++)d[g-1]=arguments[g];if(this.async_)for(g=0;g<c.length;g++)e=c[g],bmb(this.subscriptions_[e+1],this.subscriptions_[e+2],d);else{this.publishDepth_++;try{for(g=0,e=c.length;g<e&&!this.isDisposed();g++){var k=c[g];this.subscriptions_[k+1].apply(this.subscriptions_[k+2],d)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;c=this.pendingKeys_.pop();)this.unsubscribeByKey(c)}}return g!=
0}return!1};
var bmb=function(a,b,c){_.Fz(function(){a.apply(b,c)})};
_.jj.prototype.clear=function(a){if(a){var b=this.topics_[a];b&&(b.forEach(this.unsubscribeByKey,this),delete this.topics_[a])}else this.subscriptions_.length=0,this.topics_={}};
_.jj.prototype.getCount=function(a){if(a){var b=this.topics_[a];return b?b.length:0}a=0;for(b in this.topics_)a+=this.getCount(b);return a};
_.jj.prototype.disposeInternal=function(){_.jj.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var $ta=new _.jj;var ak=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(ak,_.Xc);ak.prototype.getColdHashData=function(){return _.Ox(this,3)};
ak.prototype.getHotHashData=function(){return _.Ox(this,5)};
ak.prototype.setHotHashData=function(a){return _.sf(this,5,a)};var Rpa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(Rpa,_.Xc);var rta=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(rta,_.Xc);_.f=rta.prototype;_.f.getDeviceId=function(){return _.Ox(this,6)};
_.f.getExperimentIds=function(a){var b=_.Mc(this,9,_.bc,3,!0);Taa(b,a);return b[a]};
_.f.getPlayerType=function(){return _.Px(this,36)};
_.f.setHomeGroupInfo=function(a){return _.pd(this,81,a)};
_.f.clearLocationPlayabilityToken=function(){return _.Zj(this,89)};var nl=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(nl,_.Xc);nl.prototype.setKey=function(a){return _.sf(this,1,a)};
nl.prototype.getValue=function(){return Rx(this,2,tta)};
var tta=[2,3,4,5,6];var cmb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(cmb,_.Xc);cmb.prototype.setTrackingParams=function(a){return _.Zj(this,1,_.yb(a,!1))};var sta=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(sta,_.Xc);var Upa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(Upa,_.Xc);Upa.prototype.getExperimentIds=function(a){var b=_.Mc(this,5,_.oba,3,!0);Taa(b,a);return b[a]};var rl=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(rl,_.Xc);rl.prototype.getToken=function(){return _.kg(this,2)};
rl.prototype.setToken=function(a){return _.sf(this,2,a)};var pl=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(pl,_.Xc);pl.prototype.setSafetyMode=function(a){return _.Yj(this,5,a)};var ml=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(ml,_.Xc);ml.prototype.setClient=function(a){return _.pd(this,1,a)};var Tpa={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 Spa;_.Jq=function(){var a=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.ja.addEventListener("beforeinstallprompt",function(b){b.preventDefault();a.deferredInstallPrompt=b});
_.ja.addEventListener("appinstalled",function(){a.appInstalledEventFired=!0},{once:!0})};
Spa=function(){if(!_.ja.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.ja.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.ja.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.ja.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.ja.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(a){return"WEB_DISPLAY_MODE_UNKNOWN"}};var Xpa=function(){this.syncHeaders=!0},Ypa=function(a){var b={},c=[];
"USER_SESSION_ID"in _.Ai&&c.push({key:"u",value:_.Ei("USER_SESSION_ID")});if(c=sra(c))b.Authorization=c,c=a=a==null?void 0:a.sessionIndex,c===void 0&&(c=Number(_.Ei("SESSION_INDEX",0)),c=isNaN(c)?0:c),_.x("voice_search_auth_header_removal")||(b["X-Goog-AuthUser"]=c.toString()),"INNERTUBE_HOST_OVERRIDE"in _.Ai||(b["X-Origin"]=window.location.origin),a===void 0&&"DELEGATED_SESSION_ID"in _.Ai&&(b["X-Goog-PageId"]=_.Ei("DELEGATED_SESSION_ID"));return b};var dmb={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var gB=_.Ji("ytglobal.prefsUserPrefsPrefs_")||{},emb;_.Rj("ytglobal.prefsUserPrefsPrefs_",gB);_.hB=function(){this.cookieName=_.Ei("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.Ei("ALT_PREF_COOKIE_DOMAIN","youtube.com");var a=_.lj.get(this.cookieName,void 0);a&&this.parse(a)};
_.wo=function(){emb||(emb=new _.hB);return emb};
_.hB.prototype.get=function(a,b){fmb(a);gmb(a);a=gB[a]!==void 0?gB[a].toString():null;return a!=null?a:b?b:""};
_.hB.prototype.set=function(a,b){fmb(a);gmb(a);if(b==null)throw Error("Dc");gB[a]=b.toString()};
_.hB.prototype.getFlag=function(a){return!!((hmb("f"+(Math.floor(a/31)+1))||0)&1<<a%31)};
_.xo=function(a,b,c){a="f"+(Math.floor(b/31)+1);b=1<<b%31;var d=hmb(a)||0;d=c?d|b:d&~b;d===0?delete gB[a]:(c=d.toString(16),gB[a]=c.toString())};
_.hB.prototype.remove=function(a){fmb(a);gmb(a);delete gB[a]};
_.hB.prototype.save=function(){var a=!0;_.x("web_secure_pref_cookie_killswitch")&&(a=!1);_.mj(this.cookieName,this.dump(),63072E3,this.cookieDomain,a)};
_.hB.prototype.clear=function(){_.yf.clear(gB)};
_.hB.prototype.dump=function(){var a=[],b;for(b in gB)gB.hasOwnProperty(b)&&a.push(b+"="+encodeURIComponent(String(gB[b])));return a.join("&")};
var gmb=function(a){if(/^f([1-9][0-9]*)$/.test(a))throw Error("Ec`"+a);},fmb=function(a){if(!/^\w+$/.test(a))throw Error("Fc`"+a);
},hmb=function(a){a=gB[a]!==void 0?gB[a].toString():null;
return a!=null&&/^[A-Fa-f0-9]+$/.test(a)?parseInt(a,16):null};
_.hB.prototype.parse=function(a){a=decodeURIComponent(a).split("&");for(var b=0;b<a.length;b++){var c=a[b].split("="),d=c[0];(c=c[1])&&(gB[d]=c.toString())}};var Moa={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"},Vpa={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},Wpa={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},Ooa={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var $s;_.iB=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.ul=function(a,b,c){return a.addJob(b,0,c)};
_.iB.prototype.addLowPriorityJob=function(a,b){return this.addJob(a,1,b)};
_.wu=function(a,b,c){return a.addJob(b,2,c)};
_.Du=function(a,b,c){return a.addJob(b,3,c)};
_.at=function(a,b,c){return a.addJob(b,4,c)};
$s=function(a){var b=_.Ji("yt.scheduler.instance.addImmediateJob");b?b(a):a()};
_.iB.prototype.debounce=function(a,b,c){var d=this,e=0,g=function(){e&&d.cancelJob(e);e=d.addJob(a,b,c);d.cancelDebouncedJobMap.set(g,e)};
return g};
_.iB.prototype.cancelThrottle=function(a){(a=this.cancelThrottledJobMap.get(a))&&a()};var jB=function(){_.iB.apply(this,arguments)};
_.z(jB,_.iB);_.Lw=function(){jB.instance||(jB.instance=new jB);return jB.instance};
jB.prototype.addJob=function(a,b,c){c!==void 0&&Number.isNaN(Number(c))&&(c=void 0);var d=_.Ji("yt.scheduler.instance.addJob");return d?d(a,b,c):c===void 0?(a(),NaN):_.dj(a,c||0)};
jB.prototype.cancelJob=function(a){if(a===void 0||!Number.isNaN(Number(a))){var b=_.Ji("yt.scheduler.instance.cancelJob");b?b(a):_.fj(a)}};
jB.prototype.start=function(){var a=_.Ji("yt.scheduler.instance.start");a&&a()};
jB.prototype.pause=function(){var a=_.Ji("yt.scheduler.instance.pause");a&&a()};
_.zk=_.Lw();_.rj.prototype.set=function(a,b){b===void 0?this.mechanism.remove(a):this.mechanism.set(a,(0,_.Kz)(b))};
_.rj.prototype.get=function(a){try{var b=this.mechanism.get(a)}catch(c){return}if(b!==null)try{return JSON.parse(b)}catch(c){throw"Storage: Invalid value was encountered";}};
_.rj.prototype.remove=function(a){this.mechanism.remove(a)};var kB=function(a){this.mechanism=a};
_.nx(kB,_.rj);var imb=function(a){this.data=a},jmb=function(a){return a===void 0||a instanceof imb?a:new imb(a)};
kB.prototype.set=function(a,b){kB.superClass_.set.call(this,a,jmb(b))};
kB.prototype.getWrapper=function(a){a=kB.superClass_.get.call(this,a);if(a===void 0||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};
kB.prototype.get=function(a){if(a=this.getWrapper(a)){if(a=a.data,a===void 0)throw"Storage: Invalid value was encountered";}else a=void 0;return a};_.nx(sj,kB);_.kmb=function(a){var b=a.creation;a=a.expiration;return!!a&&a<_.mx()||!!b&&b>_.mx()};
sj.prototype.set=function(a,b,c){if(b=jmb(b)){if(c){if(c<_.mx()){sj.prototype.remove.call(this,a);return}b.expiration=c}b.creation=_.mx()}sj.superClass_.set.call(this,a,b)};
sj.prototype.getWrapper=function(a,b){var c=sj.superClass_.getWrapper.call(this,a);if(c)if(!b&&_.kmb(c))sj.prototype.remove.call(this,a);else return c};var lB=function(){};
lB.prototype.next=function(){return mB};
var mB={done:!0,value:void 0},nB=function(a){return{value:a,done:!1}};
lB.prototype.__iterator__=function(){return this};
_.lmb=function(a){if(a instanceof lB)return a;if(typeof a.__iterator__=="function")return a.__iterator__(!1);if(_.Sa(a)){var b=0,c=new lB;c.next=function(){for(;;){if(b>=a.length)return mB;if(b in a)return nB(a[b++]);b++}};
return c}throw Error("Gc");};var mmb=function(a){if(a instanceof oB||a instanceof pB||a instanceof qB)return a;if(typeof a.next=="function")return new oB(function(){return a});
if(typeof a[Symbol.iterator]=="function")return new oB(function(){return a[Symbol.iterator]()});
if(typeof a.__iterator__=="function")return new oB(function(){return a.__iterator__()});
throw Error("Hc");},oB=function(a){this.func_=a};
oB.prototype.__iterator__=function(){return new pB(this.func_())};
oB.prototype[Symbol.iterator]=function(){return new qB(this.func_())};
oB.prototype.toEs6=function(){return new qB(this.func_())};
var pB=function(a){this.JSC$8348_iter_=a};
_.z(pB,lB);pB.prototype.next=function(){return this.JSC$8348_iter_.next()};
pB.prototype[Symbol.iterator]=function(){return new qB(this.JSC$8348_iter_)};
pB.prototype.toEs6=function(){return new qB(this.JSC$8348_iter_)};
var qB=function(a){oB.call(this,function(){return a});
this.JSC$8351_iter_=a};
_.z(qB,oB);qB.prototype.next=function(){return this.JSC$8351_iter_.next()};var nmb=function(){};var rB=function(){};
_.nx(rB,nmb);rB.prototype.getCount=function(){for(var a=0,b=_.h(this),c=b.next();!c.done;c=b.next())a++;return a};
rB.prototype[Symbol.iterator]=function(){return mmb(this.__iterator__(!0)).toEs6()};
rB.prototype.clear=function(){var a=Array.from(this);a=_.h(a);for(var b=a.next();!b.done;b=a.next())this.remove(b.value)};_.nx(tj,rB);_.f=tj.prototype;_.f.isAvailable=function(){if(!Q8a||this.cachedIsStorageAvailable_===null){var a=this.storage_;if(a)try{performance.now();a.setItem("__sak","1");a.removeItem("__sak");performance.now();var b=!0}catch(c){b=c instanceof DOMException&&(c.name==="QuotaExceededError"||c.code===22||c.code===1014||c.name==="NS_ERROR_DOM_QUOTA_REACHED")&&a&&a.length!==0}else b=!1;this.cachedIsStorageAvailable_=b}return this.cachedIsStorageAvailable_};
_.f.set=function(a,b){sB(this);try{this.storage_.setItem(a,b)}catch(c){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.f.get=function(a){sB(this);a=this.storage_.getItem(a);if(typeof a!=="string"&&a!==null)throw"Storage mechanism: Invalid value was encountered";return a};
_.f.remove=function(a){sB(this);this.storage_.removeItem(a)};
_.f.getCount=function(){sB(this);return this.storage_.length};
_.f.__iterator__=function(a){sB(this);var b=0,c=this.storage_,d=new lB;d.next=function(){if(b>=c.length)return mB;var e=c.key(b++);if(a)return nB(e);e=c.getItem(e);if(typeof e!=="string")throw"Storage mechanism: Invalid value was encountered";return nB(e)};
return d};
_.f.clear=function(){sB(this);this.storage_.clear()};
_.f.key=function(a){sB(this);return this.storage_.key(a)};
var sB=function(a){if(a.storage_==null)throw Error("Ic");var b;(Q8a?a.isAvailable():(b=a.cachedIsStorageAvailable_)!=null?b:a.isAvailable())||ka(Error("Ic"))};_.nx(Qoa,tj);_.nx(Roa,tj);_.nx(uj,rB);uj.prototype.set=function(a,b){this.mechanism_.set(this.JSC$8366_prefix_+a,b)};
uj.prototype.get=function(a){return this.mechanism_.get(this.JSC$8366_prefix_+a)};
uj.prototype.remove=function(a){this.mechanism_.remove(this.JSC$8366_prefix_+a)};
uj.prototype.__iterator__=function(a){var b=this.mechanism_[Symbol.iterator](),c=this,d=new lB;d.next=function(){var e=b.next();if(e.done)return e;for(e=e.value;e.slice(0,c.JSC$8366_prefix_.length)!=c.JSC$8366_prefix_;){e=b.next();if(e.done)return e;e=e.value}return nB(a?e.slice(c.JSC$8366_prefix_.length):c.mechanism_.get(e))};
return d};_.Ek=function(a){this.expiringStorage_=(a=_.Soa(a))?new sj(a):null;this.JSC$8370_domain_=document.domain||window.location.hostname};
_.Ek.prototype.set=function(a,b,c,d){c=c||31104E3;this.remove(a);if(this.expiringStorage_)try{this.expiringStorage_.set(a,b,Date.now()+c*1E3);return}catch(g){}var e="";if(d)try{e=escape((0,_.Kz)(b))}catch(g){return}else e=escape(b);_.mj(a,e,c,this.JSC$8370_domain_)};
_.Ek.prototype.get=function(a,b){var c=void 0,d=!this.expiringStorage_;if(!d)try{c=this.expiringStorage_.get(a)}catch(e){d=!0}if(d&&(c=_.lj.get(a,void 0))&&(c=unescape(c),b))try{c=JSON.parse(c)}catch(e){this.remove(a),c=void 0}return c};
_.Ek.prototype.remove=function(a){this.expiringStorage_&&this.expiringStorage_.remove(a);_.Joa(a,"/",this.JSC$8370_domain_)};
_.Ek.prototype.getCreationTime=function(a){return this.expiringStorage_&&(a=(this.expiringStorage_.getWrapper(a)||{}).creation,typeof a==="number")?a:null};var Uoa=function(){var a;return function(){a||(a=new _.Ek("ytidb"));return a}}();var Woa;_.wj=[];Woa=!1;var opa=Xoa||Yoa;var tB={},omb=(tB.AUTH_INVALID="No user identifier specified.",tB.EXPLICIT_ABORT="Transaction was explicitly aborted.",tB.IDB_NOT_SUPPORTED="IndexedDB is not supported.",tB.MISSING_INDEX="Index not created.",tB.MISSING_OBJECT_STORES="Object stores not created.",tB.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",tB.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",tB.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",tB.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",tB.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",tB.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",tB.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",tB),uB={},pmb=(uB.AUTH_INVALID="ERROR",uB.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",uB.EXPLICIT_ABORT="IGNORED",
uB.IDB_NOT_SUPPORTED="ERROR",uB.MISSING_INDEX="WARNING",uB.MISSING_OBJECT_STORES="ERROR",uB.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",uB.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",uB.QUOTA_EXCEEDED="WARNING",uB.QUOTA_MAYBE_EXCEEDED="WARNING",uB.UNKNOWN_ABORT="WARNING",uB.INCOMPATIBLE_DB_VERSION="WARNING",uB),vB={},qmb=(vB.AUTH_INVALID=!1,vB.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,vB.EXPLICIT_ABORT=!1,vB.IDB_NOT_SUPPORTED=!1,vB.MISSING_INDEX=!1,vB.MISSING_OBJECT_STORES=!1,vB.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,vB.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,vB.QUOTA_EXCEEDED=!1,vB.QUOTA_MAYBE_EXCEEDED=!0,vB.UNKNOWN_ABORT=!0,vB.INCOMPATIBLE_DB_VERSION=!1,vB),Cj=function(a,b,c,d,e){b=b===void 0?{}:b;c=c===void 0?omb[a]:c;d=d===void 0?pmb[a]:d;e=e===void 0?qmb[a]:e;_.qj.call(this,c,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:a},b));this.type=a;this.message=c;this.level=d;this.retryable=e;Object.setPrototypeOf(this,Cj.prototype)};
_.z(Cj,_.qj);var rmb=function(a,b){Cj.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:b,foundObjectStores:a},omb.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,rmb.prototype)};
_.z(rmb,Cj);var $oa=function(a,b){var c=Error.call(this);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.index=a;this.objectStore=b;Object.setPrototypeOf(this,$oa.prototype)};
_.z($oa,Error);var apa=["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 Gj=function(a){this.executor=a},Fj=function(a){var b=this;
this.state={status:"PENDING"};this.JSC$8398_onFulfilled=[];this.JSC$8398_onRejected=[];a=a.executor;var c=function(e){if(b.state.status==="PENDING"){b.state={status:"FULFILLED",value:e};e=_.h(b.JSC$8398_onFulfilled);for(var g=e.next();!g.done;g=e.next())g=g.value,g()}},d=function(e){if(b.state.status==="PENDING"){b.state={status:"REJECTED",
reason:e};e=_.h(b.JSC$8398_onRejected);for(var g=e.next();!g.done;g=e.next())g=g.value,g()}};
try{a(c,d)}catch(e){d(e)}};
Fj.all=function(a){return new Fj(new Gj(function(b,c){var d=[],e=a.length;e===0&&b(d);for(var g={i$jscomp$502:0};g.i$jscomp$502<a.length;g={i$jscomp$502:g.i$jscomp$502},++g.i$jscomp$502)Fj.resolve(a[g.i$jscomp$502]).then(function(k){return function(m){d[k.i$jscomp$502]=m;e--;e===0&&b(d)}}(g)).catch(function(k){c(k)})}))};
Fj.resolve=function(a){return new Fj(new Gj(function(b,c){a instanceof Fj?a.then(b,c):b(a)}))};
Fj.reject=function(a){return new Fj(new Gj(function(b,c){c(a)}))};
Fj.prototype.then=function(a,b){var c=this,d=a!=null?a:dpa,e=b!=null?b:cpa;return new Fj(new Gj(function(g,k){c.state.status==="PENDING"?(c.JSC$8398_onFulfilled.push(function(){smb(c,c,d,g,k)}),c.JSC$8398_onRejected.push(function(){tmb(c,c,e,g,k)})):c.state.status==="FULFILLED"?smb(c,c,d,g,k):c.state.status==="REJECTED"&&tmb(c,c,e,g,k)}))};
Fj.prototype.catch=function(a){return this.then(void 0,a)};
var smb=function(a,b,c,d,e){try{if(a.state.status!=="FULFILLED")throw Error("Lc");var g=c(a.state.value);g instanceof Fj?umb(a,b,g,d,e):d(g)}catch(k){e(k)}},tmb=function(a,b,c,d,e){try{if(a.state.status!=="REJECTED")throw Error("Mc");
var g=c(a.state.reason);g instanceof Fj?umb(a,b,g,d,e):d(g)}catch(k){e(k)}},umb=function(a,b,c,d,e){b===c?e(new TypeError("Nc")):c.then(function(g){g instanceof Fj?umb(a,b,g,d,e):d(g)},function(g){e(g)})};var wB;wB=window;_.Uj=wB.ytcsi&&wB.ytcsi.now?wB.ytcsi.now:wB.performance&&wB.performance.timing&&wB.performance.now&&wB.performance.timing.navigationStart?function(){return wB.performance.timing.navigationStart+wB.performance.now()}:function(){return(new Date).getTime()};var Ij=function(a,b){this.JSC$8410_wrapped=a;this.options=b;this.transactionCount=0;this.startedMs=Math.round((0,_.Uj)());this.hasUnknownAbortedTransaction=!1},xmb,ymb,zB,Bmb;
Ij.prototype.add=function(a,b,c){return _.Mj(this,[a],{mode:"readwrite",enableRetries:!0},function(d){return d.objectStore(a).add(b,c)})};
Ij.prototype.clear=function(a){return _.Mj(this,[a],{mode:"readwrite",enableRetries:!0},function(b){return b.objectStore(a).clear()})};
Ij.prototype.close=function(){this.JSC$8410_wrapped.close();var a;((a=this.options)==null?0:a.closed)&&this.options.closed()};
Ij.prototype.count=function(a,b){return _.Mj(this,[a],{mode:"readonly",enableRetries:!0},function(c){return c.objectStore(a).count(b)})};
var Gk=function(a,b,c){a=a.JSC$8410_wrapped.createObjectStore(b,c);return new xB(a)};
Ij.prototype.delete=function(a,b){return _.Mj(this,[a],{mode:"readwrite",enableRetries:!0},function(c){return c.objectStore(a).delete(b)})};
var vmb=function(a,b){return _.Mj(a,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(c){return c.objectStore("ResponseStore").index("byInterface").delete(b)})};
Ij.prototype.get=function(a,b){return _.Mj(this,[a],{mode:"readonly",enableRetries:!0},function(c){return c.objectStore(a).get(b)})};
Ij.prototype.getAll=function(a,b,c){return _.Mj(this,[a],{mode:"readonly",enableRetries:!0},function(d){return d.objectStore(a).getAll(b,c)})};
Ij.prototype.put=function(a,b,c){return _.Mj(this,[a],{mode:"readwrite",enableRetries:!0},function(d){return d.objectStore(a).put(b,c)})};
Ij.prototype.objectStoreNames=function(){return Array.from(this.JSC$8410_wrapped.objectStoreNames)};
_.Mj=function(a,b,c,d){var e,g,k,m,n,r,t,u,w,A,C,G;return _.l(function(J){switch(J.nextAddress){case 1:var I={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof c==="string"?I.mode=c:Object.assign(I,c);e=I;a.transactionCount++;g=e.enableRetries?3:1;k=0;case 2:if(m){J.jumpTo(4);break}k++;n=Math.round((0,_.Uj)());_.me(J,5);r=a.JSC$8410_wrapped.transaction(b,e.mode);I=new hpa(r);I=wmb(I,d);return _.p(J,I,7);case 7:return t=J.yieldResult,u=Math.round((0,_.Uj)()),xmb(a,n,u,k,void 0,
b.join(),e),J.return(t);case 5:w=_.re(J);A=Math.round((0,_.Uj)());C=bpa(w,a.JSC$8410_wrapped.name,b.join(),a.JSC$8410_wrapped.version);if((G=C instanceof Cj&&!C.retryable)||k>=g)xmb(a,n,A,k,C,b.join(),e),m=C;J.jumpTo(2);break;case 4:return J.return(Promise.reject(m))}})};
xmb=function(a,b,c,d,e,g,k){b=c-b;e?(e instanceof Cj&&(e.type==="QUOTA_EXCEEDED"||e.type==="QUOTA_MAYBE_EXCEEDED")&&yj("QUOTA_EXCEEDED",{dbName:Aj(a.JSC$8410_wrapped.name),objectStoreNames:g,transactionCount:a.transactionCount,transactionMode:k.mode}),e instanceof Cj&&e.type==="UNKNOWN_ABORT"&&(c-=a.startedMs,c<0&&c>=2147483648&&(c=0),yj("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:g,transactionDuration:b,transactionCount:a.transactionCount,dbDuration:c}),a.hasUnknownAbortedTransaction=!0),
ymb(a,!1,d,g,b,k.tag),_.xj(e)):ymb(a,!0,d,g,b,k.tag)};
ymb=function(a,b,c,d,e,g){yj("TRANSACTION_ENDED",{objectStoreNames:d,connectionHasUnknownAbortedTransaction:a.hasUnknownAbortedTransaction,duration:e,isSuccessful:b,tryCount:c,tag:g===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":g})};
Ij.prototype.getVersion=function(){return this.JSC$8410_wrapped.version};
Ij.prototype.getName=function(){return this.JSC$8410_wrapped.name};
var xB=function(a){this.JSC$8425_wrapped=a};
xB.prototype.add=function(a,b){return Hj(this.JSC$8425_wrapped.add(a,b))};
xB.prototype.autoIncrement=function(){return this.JSC$8425_wrapped.autoIncrement};
xB.prototype.clear=function(){return Hj(this.JSC$8425_wrapped.clear()).then(function(){})};
var Hk=function(a,b,c){a.JSC$8425_wrapped.createIndex(b,c,{unique:!1})};
xB.prototype.count=function(a){return Hj(this.JSC$8425_wrapped.count(a))};
var zmb=function(a,b){return Oj(a,{query:b},function(c){return c.delete().then(function(){return c.continue()})}).then(function(){})};
xB.prototype.delete=function(a){return a instanceof IDBKeyRange?zmb(this,a):Hj(this.JSC$8425_wrapped.delete(a))};
xB.prototype.get=function(a){return Hj(this.JSC$8425_wrapped.get(a))};
xB.prototype.getAll=function(a,b){return"getAll"in IDBObjectStore.prototype?Hj(this.JSC$8425_wrapped.getAll(a,b)):Amb(this,a,b)};
var Amb=function(a,b,c){var d=[];return Oj(a,{query:b},function(e){if(!(c!==void 0&&d.length>=c))return d.push(e.getValue()),e.continue()}).then(function(){return d})};
xB.prototype.index=function(a){try{return new yB(this.JSC$8425_wrapped.index(a))}catch(b){if(b instanceof Error&&b.name==="NotFoundError")throw new $oa(a,this.JSC$8425_wrapped.name);throw b;}};
xB.prototype.getName=function(){return this.JSC$8425_wrapped.name};
xB.prototype.keyPath=function(){return this.JSC$8425_wrapped.keyPath};
xB.prototype.put=function(a,b){return Hj(this.JSC$8425_wrapped.put(a,b))};
var Oj=function(a,b,c){a=a.JSC$8425_wrapped.openCursor(b.query,b.direction);return Bmb(a).then(function(d){return gpa(d,c)})},hpa=function(a){var b=this;
this.JSC$8433_wrapped=a;this.objectStoreCache=new Map;this.JSC$8433_aborted=!1;this.done=new Promise(function(c,d){b.JSC$8433_wrapped.addEventListener("complete",function(){c()});
b.JSC$8433_wrapped.addEventListener("error",function(e){e.currentTarget===e.target&&d(b.JSC$8433_wrapped.error)});
b.JSC$8433_wrapped.addEventListener("abort",function(){var e=b.JSC$8433_wrapped.error;if(e)d(e);else if(!b.JSC$8433_aborted){e=Cj;for(var g=b.JSC$8433_wrapped.objectStoreNames,k=[],m=0;m<g.length;m++){var n=g.item(m);if(n===null)throw Error("Oc");k.push(n)}e=new e("UNKNOWN_ABORT",{objectStoreNames:k.join(),dbName:b.JSC$8433_wrapped.db.name,mode:b.JSC$8433_wrapped.mode});d(e)}})})},wmb=function(a,b){var c=new Promise(function(d,e){try{b(a).then(function(g){d(g)}).catch(e)}catch(g){e(g),a.abort()}});
return Promise.all([c,a.done]).then(function(d){return _.h(d).next().value})};
hpa.prototype.abort=function(){this.JSC$8433_wrapped.abort();this.JSC$8433_aborted=!0;throw new Cj("EXPLICIT_ABORT");};
hpa.prototype.objectStore=function(a){a=this.JSC$8433_wrapped.objectStore(a);var b=this.objectStoreCache.get(a);b||(b=new xB(a),this.objectStoreCache.set(a,b));return b};
var yB=function(a){this.JSC$8435_wrapped=a};
yB.prototype.count=function(a){return Hj(this.JSC$8435_wrapped.count(a))};
yB.prototype.delete=function(a){return _.Vj(this,{query:a},function(b){return b.delete().then(function(){return b.continue()})})};
yB.prototype.get=function(a){return Hj(this.JSC$8435_wrapped.get(a))};
yB.prototype.getAll=function(a,b){return"getAll"in IDBIndex.prototype?Hj(this.JSC$8435_wrapped.getAll(a,b)):Cmb(this,a,b)};
var Cmb=function(a,b,c){var d=[];return _.Vj(a,{query:b},function(e){if(!(c!==void 0&&d.length>=c))return d.push(e.getValue()),e.continue()}).then(function(){return d})};
yB.prototype.keyPath=function(){return this.JSC$8435_wrapped.keyPath};
yB.prototype.unique=function(){return this.JSC$8435_wrapped.unique};
_.Vj=function(a,b,c){a=a.JSC$8435_wrapped.openCursor(b.query===void 0?null:b.query,b.direction===void 0?"next":b.direction);return Bmb(a).then(function(d){return gpa(d,c)})};
zB=function(a,b){this.request=a;this.cursor=b};
Bmb=function(a){return Hj(a).then(function(b){return b?new zB(a,b):null})};
zB.prototype.continue=function(a){this.cursor.continue(a);return Bmb(this.request)};
zB.prototype.delete=function(){return Hj(this.cursor.delete()).then(function(){})};
zB.prototype.getValue=function(){return this.cursor.value};
zB.prototype.update=function(a){return Hj(this.cursor.update(a))};var AB=function(a,b){this.name=a;this.options=b;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},Dmb;
AB.prototype.openDb=function(a,b,c){c=c===void 0?{}:c;return jpa(a,b,c)};
AB.prototype.delete=function(a){a=a===void 0?{}:a;return _.Kj(this.name,a)};
Dmb=function(a,b){return new Cj("INCOMPATIBLE_DB_VERSION",{dbName:a.name,oldVersion:a.options.version,newVersion:b})};
_.Lj=function(a,b){if(!b)throw Ej("openWithToken",Aj(a.name));return a.open()};
AB.prototype.open=function(){var a=this;if(!this.isCompatible)throw Dmb(this);if(this.connectionPromise)return this.connectionPromise;var b,c=function(){a.connectionPromise===b&&(a.connectionPromise=void 0)},d={blocking:function(g){g.close()},
closed:c,terminated:c,upgrade:this.options.upgrade},e=function(){var g,k,m,n,r,t,u,w,A,C;return _.l(function(G){switch(G.nextAddress){case 1:return k=(g=Error().stack)!=null?g:"",_.me(G,2),_.p(G,a.openDb(a.name,a.options.version,d),4);case 4:for(var J=m=G.yieldResult,I=a.options,R=[],ca=_.h(Object.keys(I.objectStores)),V=ca.next();!V.done;V=ca.next()){V=V.value;var fa=I.objectStores[V],aa=fa.removedAtVersion===void 0?Number.MAX_VALUE:fa.removedAtVersion;!(J.JSC$8410_wrapped.version>=fa.addedAtVersion)||
J.JSC$8410_wrapped.version>=aa||J.JSC$8410_wrapped.objectStoreNames.contains(V)||R.push(V)}n=R;if(n.length===0){G.jumpTo(5);break}r=Object.keys(a.options.objectStores);t=m.objectStoreNames();if(a.timesReopenedToFixMissingObjectStore<_.$i("ytidb_reopen_db_retries",0))return a.timesReopenedToFixMissingObjectStore++,m.close(),_.xj(new Cj("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:a.name,expectedObjectStores:r,foundObjectStores:t})),G.return(e());if(!(a.timesDeletedToFixMissingObjectStore<_.$i("ytidb_remake_db_retries",
1))){G.jumpTo(6);break}a.timesDeletedToFixMissingObjectStore++;return _.p(G,a.delete(),7);case 7:return _.xj(new Cj("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:a.name,expectedObjectStores:r,foundObjectStores:t})),G.return(e());case 6:throw new rmb(t,r);case 5:return G.return(m);case 2:u=_.re(G);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."){G.jumpTo(8);
break}return _.p(G,a.openDb(a.name,void 0,Object.assign({},d,{upgrade:void 0})),9);case 9:w=G.yieldResult;A=w.getVersion();if(a.options.version!==void 0&&A>a.options.version+1)throw w.close(),a.isCompatible=!1,Dmb(a,A);return G.return(w);case 8:throw c(),u instanceof Error&&!_.x("ytidb_async_stack_killswitch")&&(u.stack=u.stack+"\n"+k.substring(k.indexOf("\n")+1)),bpa(u,a.name,"",(C=a.options.version)!=null?C:-1);}})};
return this.connectionPromise=b=e()};var kpa=new AB("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(a,b){b(1)&&Gk(a,"databases",{keyPath:"actualName"})}});var rpa,ppa=new function(){}(new function(){});new _.gq;var Emb=function(a,b){AB.call(this,a,b);this.options=b;zj(a)};
_.z(Emb,AB);var Bpa=function(a,b){var c;return function(){c||(c=new Emb(a,b));return c}};
Emb.prototype.openDb=function(a,b,c){c=c===void 0?{}:c;return(this.options.shared?wpa:vpa)(a,b,Object.assign({},c))};
Emb.prototype.delete=function(a){a=a===void 0?{}:a;return(this.options.shared?Apa:xpa)(this.name,a)};var Fmb={},Cpa=Tj("ytGcfConfig",{objectStores:(Fmb.coldConfigStore={addedAtVersion:1},Fmb.hotConfigStore={addedAtVersion:1},Fmb),shared:!1,upgrade:function(a,b){b(1)&&(Hk(Gk(a,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),Hk(Gk(a,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var Gmb=function(){_.tg.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var a=_.Ji("yt.gcf.config.hotUpdateCallbacks");a?(this.localHotConfigJobQueue=[].concat(_.Be(a)),this.sharedHotConfigJobQueue=a):(this.sharedHotConfigJobQueue=[],_.Rj("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.z(Gmb,_.tg);Gmb.prototype.disposeInternal=function(){for(var a=_.h(this.localHotConfigJobQueue),b=a.next();!b.done;b=a.next()){var c=this.sharedHotConfigJobQueue;b=c.indexOf(b.value);b>=0&&c.splice(b,1)}this.localHotConfigJobQueue.length=0;_.tg.prototype.disposeInternal.call(this)};var vl=function(){var a=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new Gmb;this.TEST_ONLY={initializeConfigDb:function(){a.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return a.coldGlobalConfigGroup},
setHotConfigGroup:function(b){Hmb(a,b)},
setHotHashData:function(b){a.setHotHashData(b)},
setColdConfigGroup:function(b){Imb(a,b)},
getColdHashData:function(){return a.coldHashData},
getHotHashData:function(){return a.hotHashData},
getHotConfigGroup:function(){return a.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return Jmb()},
getExportedHotConfigGroup:function(){return BB()},
getExportedColdHashData:function(){return _.Ji("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.Ji("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){Kmb(a)},
resetInstance:function(){a.setHotHashData(void 0);Lmb(a);delete vl.instance},
setDebounceTimer:function(b){a.debounceTimer=b},
getDebounceTimer:function(){return a.debounceTimer}}},Mmb=function(){if(!vl.instance){var a=new vl;
vl.instance=a}return vl.instance},Pmb=function(a){var b;
_.l(function(c){if(c.nextAddress==1)return _.x("start_client_gcf")||_.x("delete_gcf_config_db")?_.x("start_client_gcf")?_.p(c,_.Sj(),3):c.jumpTo(2):c.return();c.nextAddress!=2&&((b=c.yieldResult)&&_.pj()&&!_.x("delete_gcf_config_db")?(a.isConfigDbInitialized=!0,Kmb(a)):(Nmb(a),Omb(a)));return _.x("delete_gcf_config_db")?_.p(c,Ipa(),0):c.jumpTo(0)})},Jta=function(){var a;
return(a=BB())!=null?a:_.Ei("RAW_HOT_CONFIG_GROUP")},Qmb=function(a){var b,c,d,e,g,k;
return _.l(function(m){switch(m.nextAddress){case 1:if(a.hotGlobalConfigGroup)return m.return(BB());if(!a.isConfigDbInitialized)return b=Ej("getHotConfig IDB not initialized"),_.Ki(b),m.return(Promise.reject(b));c=Qj();d=_.Ei("TIME_CREATED_MS");if(!c){e=Ej("getHotConfig token error");_.Ki(e);m.jumpTo(2);break}return _.p(m,Hpa(c),3);case 3:if((g=m.yieldResult)&&g.timestamp>d)return Hmb(a,g.config),a.setHotHashData(g.hashData),m.return(BB());case 2:Omb(a);if(!(c&&a.hotGlobalConfigGroup&&a.hotHashData)){m.jumpTo(4);
break}return _.p(m,Epa(a.hotGlobalConfigGroup,a.hotHashData,c,d),4);case 4:return a.hotGlobalConfigGroup?m.return(BB()):(k=new _.qj("Config not available in ytConfig"),_.Ki(k),m.return(Promise.reject(k)))}})},Smb=function(a){var b,c,d,e,g,k;
return _.l(function(m){switch(m.nextAddress){case 1:if(a.coldGlobalConfigGroup)return m.return(Jmb());if(!a.isConfigDbInitialized)return b=Ej("getColdConfig IDB not initialized"),_.Ki(b),m.return(Promise.reject(b));c=Qj();d=_.Ei("TIME_CREATED_MS");if(!c){e=Ej("getColdConfig");_.Ki(e);m.jumpTo(2);break}return _.p(m,Gpa(c),3);case 3:if((g=m.yieldResult)&&g.timestamp>d)return Imb(a,g.config),Rmb(a,g.configData),Lmb(a,g.hashData),m.return(Jmb());case 2:Nmb(a);if(!(c&&a.coldGlobalConfigGroup&&a.coldHashData&&
a.configData)){m.jumpTo(4);break}return _.p(m,Fpa(a.coldGlobalConfigGroup,a.coldHashData,a.configData,c,d),4);case 4:return a.coldGlobalConfigGroup?m.return(Jmb()):(k=new _.qj("Config not available in ytConfig"),_.Ki(k),m.return(Promise.reject(k)))}})},Kmb=function(a){if(!a.hotGlobalConfigGroup||!a.coldGlobalConfigGroup){if(!Qj()){var b=Ej("scheduleGetConfigs");
_.Ki(b)}a.initJob||(a.initJob=_.zk.addLowPriorityJob(function(){return _.l(function(c){switch(c.nextAddress){case 1:return _.me(c,2),_.p(c,Qmb(a),4);case 4:_.Jj(c,3);break;case 2:_.re(c);case 3:return _.me(c,5),_.p(c,Smb(a),7);case 7:_.Jj(c,6);break;case 5:_.re(c);case 6:a.initJob&&(a.initJob=0),_.se(c)}})},100))}},Eta=function(a,b,c){var d,e,g;
return _.l(function(k){switch(k.nextAddress){case 1:if(!_.x("start_client_gcf")){k.jumpTo(0);break}c&&Hmb(a,c);a.setHotHashData(b);d=Qj();if(!d){k.jumpTo(3);break}if(c){k.jumpTo(4);break}return _.p(k,Hpa(d),5);case 5:e=k.yieldResult,c=(g=e)==null?void 0:g.config;case 4:return _.p(k,Epa(c,b,d),3);case 3:if(c)for(var m=c,n=_.h(a.configUpdateService.sharedHotConfigJobQueue),r=n.next();!r.done;r=n.next())r=r.value,r(m);_.se(k)}})},Fta=function(a,b,c){var d,e,g,k;
return _.l(function(m){if(m.nextAddress==1){if(!_.x("start_client_gcf"))return m.jumpTo(0);Lmb(a,b);return(d=Qj())?c?m.jumpTo(4):_.p(m,Gpa(d),5):m.jumpTo(0)}m.nextAddress!=4&&(e=m.yieldResult,c=(g=e)==null?void 0:g.config);if(!c)return m.jumpTo(0);k=c.configData;return _.p(m,Fpa(c,b,k,d),0)})},$pa=function(){var a=Mmb(),b=(0,_.Uj)()-a.debounceTimer;
if(!(a.debounceTimer!==0&&b<_.$i("send_config_hash_timer"))){b=_.Ji("yt.gcf.config.coldConfigData");var c=_.Ji("yt.gcf.config.hotHashData"),d=_.Ji("yt.gcf.config.coldHashData");b&&c&&d&&(a.debounceTimer=(0,_.Uj)());return{coldConfigData:b,hotHashData:c,coldHashData:d}}},Nmb=function(a){Imb(a,_.Ei("RAW_COLD_CONFIG_GROUP"));
Lmb(a,_.Ei("SERIALIZED_COLD_HASH_DATA"));var b;Rmb(a,(b=a.coldGlobalConfigGroup)==null?void 0:b.configData)},Omb=function(a){Hmb(a,_.Ei("RAW_HOT_CONFIG_GROUP"));
a.setHotHashData(_.Ei("SERIALIZED_HOT_HASH_DATA"))},Hmb=function(a,b){a.hotGlobalConfigGroup=b;
_.Rj("yt.gcf.config.hotConfigGroup",a.hotGlobalConfigGroup||null)},Imb=function(a,b){a.coldGlobalConfigGroup=b;
_.Rj("yt.gcf.config.coldConfigGroup",a.coldGlobalConfigGroup||null)};
vl.prototype.setHotHashData=function(a){this.hotHashData=a;_.Rj("yt.gcf.config.hotHashData",this.hotHashData||null)};
var Lmb=function(a,b){a.coldHashData=b;_.Rj("yt.gcf.config.coldHashData",a.coldHashData||null)},Rmb=function(a,b){a.configData=b;
_.Rj("yt.gcf.config.coldConfigData",a.configData||null)},BB=function(){return _.Ji("yt.gcf.config.hotConfigGroup")},Jmb=function(){return _.Ji("yt.gcf.config.coldConfigGroup")};var fk={},Tmb=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";fk.assign=function(a){for(var b=Array.prototype.slice.call(arguments,1);b.length;){var c=b.shift();if(c){if(typeof c!=="object")throw new TypeError("Rc`"+c);for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(a[d]=c[d])}}return a};
fk.shrinkBuf=function(a,b){if(a.length===b)return a;if(a.subarray)return a.subarray(0,b);a.length=b;return a};
var Umb={arraySet:function(a,b,c,d,e){if(b.subarray&&a.subarray)a.set(b.subarray(c,c+d),e);else for(var g=0;g<d;g++)a[e+g]=b[c+g]},
flattenChunks:function(a){var b,c;var d=c=0;for(b=a.length;d<b;d++)c+=a[d].length;var e=new Uint8Array(c);d=c=0;for(b=a.length;d<b;d++){var g=a[d];e.set(g,c);c+=g.length}return e}},Vmb={arraySet:function(a,b,c,d,e){for(var g=0;g<d;g++)a[e+g]=b[c+g]},
flattenChunks:function(a){return[].concat.apply([],a)}};
fk.setTyped=function(){Tmb?(fk.Buf8=Uint8Array,fk.Buf16=Uint16Array,fk.Buf32=Int32Array,fk.assign(fk,Umb)):(fk.Buf8=Array,fk.Buf16=Array,fk.Buf32=Array,fk.assign(fk,Vmb))};
fk.setTyped();var Wmb=!0;try{new Uint8Array(1)}catch(a){Wmb=!1}
var Hqa=function(a){var b,c,d=a.length,e=0;for(b=0;b<d;b++){var g=a.charCodeAt(b);if((g&64512)===55296&&b+1<d){var k=a.charCodeAt(b+1);(k&64512)===56320&&(g=65536+(g-55296<<10)+(k-56320),b++)}e+=g<128?1:g<2048?2:g<65536?3:4}var m=new fk.Buf8(e);for(b=c=0;c<e;b++)g=a.charCodeAt(b),(g&64512)===55296&&b+1<d&&(k=a.charCodeAt(b+1),(k&64512)===56320&&(g=65536+(g-55296<<10)+(k-56320),b++)),g<128?m[c++]=g:(g<2048?m[c++]=192|g>>>6:(g<65536?m[c++]=224|g>>>12:(m[c++]=240|g>>>18,m[c++]=128|g>>>12&63),m[c++]=
128|g>>>6&63),m[c++]=128|g&63);return m};var uqa={};uqa=function(a,b,c,d){var e=a&65535|0;a=a>>>16&65535|0;for(var g;c!==0;){g=c>2E3?2E3:c;c-=g;do e=e+b[d++]|0,a=a+e|0;while(--g);e%=65521;a%=65521}return e|a<<16|0};for(var uk={},CB,Xmb=[],Ymb=0;Ymb<256;Ymb++){CB=Ymb;for(var Zmb=0;Zmb<8;Zmb++)CB=CB&1?3988292384^CB>>>1:CB>>>1;Xmb[Ymb]=CB}uk=function(a,b,c,d){c=d+c;for(a^=-1;d<c;d++)a=a>>>8^Xmb[(a^b[d])&255];return a^-1};var jk={};jk={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 jqa=[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],lqa=[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],Gqa=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],sqa=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],nk=Array(576);bk(nk);var ok=Array(60);bk(ok);var hk=Array(512);bk(hk);var gk=Array(256);bk(gk);var kqa=Array(29);bk(kqa);var mqa=Array(30);bk(mqa);var Dqa,Eqa,Fqa,Cqa=!1;var yk;
yk=[new xk(0,0,0,0,function(a,b){var c=65535;for(c>a.pending_buf_size-5&&(c=a.pending_buf_size-5);;){if(a.lookahead<=1){vk(a);if(a.lookahead===0&&b===0)return 1;if(a.lookahead===0)break}a.strstart+=a.lookahead;a.lookahead=0;var d=a.block_start+c;if(a.strstart===0||a.strstart>=d)if(a.lookahead=a.strstart-d,a.strstart=d,qk(a,!1),a.strm.avail_out===0)return 1;if(a.strstart-a.block_start>=a.w_size-262&&(qk(a,!1),a.strm.avail_out===0))return 1}a.insert=0;if(b===4)return qk(a,!0),a.strm.avail_out===0?3:
4;a.strstart>a.block_start&&qk(a,!1);return 1}),
new xk(4,4,8,4,vqa),new xk(4,5,16,8,vqa),new xk(4,6,32,32,vqa),new xk(4,4,16,16,wk),new xk(8,16,32,32,wk),new xk(8,16,128,128,wk),new xk(8,32,128,256,wk),new xk(32,128,258,1024,wk),new xk(32,258,258,4096,wk)];var Bqa={};Bqa=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 Iqa=Object.prototype.toString;
Aqa.prototype.push=function(a,b){var c=this.strm,d=this.options.chunkSize;if(this.ended)return!1;var e=b===~~b?b:b===!0?4:0;typeof a==="string"?c.input=Hqa(a):Iqa.call(a)==="[object ArrayBuffer]"?c.input=new Uint8Array(a):c.input=a;c.next_in=0;c.avail_in=c.input.length;do{c.avail_out===0&&(c.output=new fk.Buf8(d),c.next_out=0,c.avail_out=d);a=zqa(c,e);if(a!==1&&a!==0)return $mb(this,a),this.ended=!0,!1;if(c.avail_out===0||c.avail_in===0&&(e===4||e===2))if(this.options.to==="string"){var g=fk.shrinkBuf(c.output,
c.next_out);b=g;g=g.length;if(g<65537&&(b.subarray&&Wmb||!b.subarray))b=String.fromCharCode.apply(null,fk.shrinkBuf(b,g));else{for(var k="",m=0;m<g;m++)k+=String.fromCharCode(b[m]);b=k}this.chunks.push(b)}else b=fk.shrinkBuf(c.output,c.next_out),this.chunks.push(b)}while((c.avail_in>0||c.avail_out===0)&&a!==1);if(e===4)return(c=this.strm)&&c.state?(d=c.state.status,d!==42&&d!==69&&d!==73&&d!==91&&d!==103&&d!==113&&d!==666?a=kk(c,-2):(c.state=null,a=d===113?kk(c,-3):0)):a=-2,$mb(this,a),this.ended=
!0,a===0;e===2&&($mb(this,0),c.avail_out=0);return!0};
var $mb=function(a,b){b===0&&(a.result=a.options.to==="string"?a.chunks.join(""):fk.flattenChunks(a.chunks));a.chunks=[];a.err=b;a.msg=a.strm.msg};var anb=typeof TextEncoder!=="undefined"?new TextEncoder:null,kra=anb?function(a){return anb.encode(a)}:function(a){a=_.rg(a);
for(var b=new Uint8Array(a.length),c=0;c<b.length;c++)b[c]=a[c];return b};var MCa={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},OCa={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var DB=function(a,b){this.version=a;this.args=b};
DB.prototype.serialize=function(){return{version:this.version,args:this.args}};var Nqa=function(a,b){this.topic=a;this.dataClass=b};
Nqa.prototype.toString=function(){return this.topic};var bnb=_.Ji("ytPubsub2Pubsub2Instance")||new _.jj;_.jj.prototype.subscribe=_.jj.prototype.subscribe;_.jj.prototype.unsubscribeByKey=_.jj.prototype.unsubscribeByKey;_.jj.prototype.publish=_.jj.prototype.publish;_.jj.prototype.clear=_.jj.prototype.clear;_.Rj("ytPubsub2Pubsub2Instance",bnb);var Mqa=_.Ji("ytPubsub2Pubsub2SubscribedKeys")||{};_.Rj("ytPubsub2Pubsub2SubscribedKeys",Mqa);var Pqa=_.Ji("ytPubsub2Pubsub2TopicToKeys")||{};_.Rj("ytPubsub2Pubsub2TopicToKeys",Pqa);
var Oqa=_.Ji("ytPubsub2Pubsub2IsAsync")||{};_.Rj("ytPubsub2Pubsub2IsAsync",Oqa);_.Rj("ytPubsub2Pubsub2SkipSubKey",null);var Zqa=void 0,Xqa=void 0;var gra=_.$i("max_body_size_to_compress",5E5),hra=_.$i("min_body_size_to_compress",500),Bk=!0,nra=0,Ck=0,mra=_.$i("compression_performance_threshold_lr",250),ora=_.$i("slow_compressions_before_abandon_count",4),bra=!1,cra=new Map,jra=1,ira=!0;_.nx(Dk,rra);Dk.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 cnb=function(a,b,c){c||(c=0);var d=a.W_;if(typeof b==="string")for(var e=0;e<16;e++)d[e]=b.charCodeAt(c)<<24|b.charCodeAt(c+1)<<16|b.charCodeAt(c+2)<<8|b.charCodeAt(c+3),c+=4;else for(e=0;e<16;e++)d[e]=b[c]<<24|b[c+1]<<16|b[c+2]<<8|b[c+3],c+=4;for(b=16;b<80;b++)c=d[b-3]^d[b-8]^d[b-14]^d[b-16],d[b]=(c<<1|c>>>31)&4294967295;b=a.chain_[0];c=a.chain_[1];e=a.chain_[2];for(var g=a.chain_[3],k=a.chain_[4],m,n,r=0;r<80;r++)r<40?r<20?(m=g^c&(e^g),n=1518500249):(m=c^e^g,n=1859775393):r<60?(m=c&e|g&(c|e),
n=2400959708):(m=c^e^g,n=3395469782),m=(b<<5|b>>>27)+m+k+n+d[r]&4294967295,k=g,g=e,e=(c<<30|c>>>2)&4294967295,c=b,b=m;a.chain_[0]=a.chain_[0]+b&4294967295;a.chain_[1]=a.chain_[1]+c&4294967295;a.chain_[2]=a.chain_[2]+e&4294967295;a.chain_[3]=a.chain_[3]+g&4294967295;a.chain_[4]=a.chain_[4]+k&4294967295};
Dk.prototype.update=function(a,b){if(a!=null){b===void 0&&(b=a.length);for(var c=b-this.blockSize,d=0,e=this.buf_,g=this.inbuf_;d<b;){if(g==0)for(;d<=c;)cnb(this,a,d),d+=this.blockSize;if(typeof a==="string")for(;d<b;){if(e[g]=a.charCodeAt(d),++g,++d,g==this.blockSize){cnb(this,e);g=0;break}}else for(;d<b;)if(e[g]=a[d],++g,++d,g==this.blockSize){cnb(this,e);g=0;break}}this.inbuf_=g;this.total_+=b}};
Dk.prototype.digest=function(){var a=[],b=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var c=this.blockSize-1;c>=56;c--)this.buf_[c]=b&255,b/=256;cnb(this,this.buf_);for(c=b=0;c<5;c++)for(var d=24;d>=0;d-=8)a[b]=this.chain_[c]>>d&255,++b;return a};var ura;var FB=function(a){var b=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(t){b.databaseToken=t},
triggerThrottle:function(){b.throttledSend()},
cancelThrottle:function(){b.cancelThrottledSend()},
immediateSend:function(t){return _.l(function(u){return _.p(u,b.immediateSend(t),0)})},
requestWithinAgeLimit:function(t,u){return b.requestWithinAgeLimit(t,u)},
retryQueuedRequests:function(){b.retryQueuedRequests()}};
var c;this.throttleTimeout=(c=a.throttleTimeout)!=null?c:100;var d;this.retryMaxAttempts=(d=a.retryMaxAttempts)!=null?d:1;var e;this.requestAgeLimitMs=(e=a.requestAgeLimitMs)!=null?e:2592E6;var g;this.queuedRequestAgeLimitMs=(g=a.queuedRequestAgeLimitMs)!=null?g:12E4;var k;this.retryDelayMs=(k=a.retryDelayMs)!=null?k:5E3;var m;this.databaseToken=(m=a.databaseToken)!=null?m:void 0;this.enableCleaning=!!a.enableCleaning;var n;this.cleaningRate=(n=a.cleaningRate)!=null?n:.1;var r;this.potentialEsfErrorLimit=
(r=a.potentialEsfErrorLimit)!=null?r:10;a.handleError&&(this.handleError=a.handleError);a.handleWarning&&(this.handleWarning=a.handleWarning);a.disableYtIdbTransactions&&(this.disableYtIdbTransactions=a.disableYtIdbTransactions);a.bypassDbTokenDependency&&(this.bypassDbTokenDependency=a.bypassDbTokenDependency);this.getBooleanFlag=a.getBooleanFlag;this.jobManager=a.jobManager;this.logsStore=a.logsStore;this.networkManager=a.networkManager;this.sendFn=a.sendFn;this.onlineEvent=a.onlineEvent;this.offlineEvent=
a.offlineEvent;EB(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&dnb(this)},dnb=function(a){EB(a)&&!a.disableYtIdbTransactions&&(a.initialized=!0,a.enableCleaning&&Math.random()<=a.cleaningRate&&a.logsStore.cleanLogsStore(a.databaseToken),a.retryQueuedRequests(),a.networkManager.isNetworkAvailable()&&a.throttledSend(),a.networkManager.listen(a.onlineEvent,a.throttledSend.bind(a)),a.networkManager.listen(a.offlineEvent,a.cancelThrottledSend.bind(a)))};
_.f=FB.prototype;_.f.writeThenSend=function(a,b){var c=this;b=b===void 0?{}:b;if(EB(this)&&this.initialized){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(d,this.databaseToken).then(function(e){d.id=e;c.networkManager.isNetworkAvailable()&&c.immediateSend(d)}).catch(function(e){c.immediateSend(d);
enb(c,e)})}else this.sendFn(a,b)};
_.f.sendThenWrite=function(a,b,c){var d=this;b=b===void 0?{}:b;if(EB(this)&&this.initialized){var e={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(e.skipRetry=c);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!e.skipRetry){if(!e.skipRetry){var g=b.onError?b.onError:function(){};
b.onError=function(k,m){return _.l(function(n){if(n.nextAddress==1)return _.p(n,d.logsStore.set(e,d.databaseToken).catch(function(r){enb(d,r)}),2);
g(k,m);_.se(n)})}}this.sendFn(a,b,e.skipRetry)}else this.logsStore.set(e,this.databaseToken).catch(function(k){d.sendFn(a,b,e.skipRetry);
enb(d,k)})}else this.sendFn(a,b,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&c)};
_.f.sendAndWrite=function(a,b){var c=this;b=b===void 0?{}:b;if(EB(this)&&this.initialized){var d={url:a,options:b,timestamp:this.now(),status:"NEW",sendCount:0},e=!1,g=b.onSuccess?b.onSuccess:function(){};
d.options.onSuccess=function(k,m){d.id!==void 0?c.logsStore.deleteRequest(d.id,c.databaseToken):e=!0;c.networkManager.networkStatusHint&&c.getBooleanFlag&&c.getBooleanFlag("vss_network_hint")&&c.networkManager.networkStatusHint(!0);g(k,m)};
this.sendFn(d.url,d.options,void 0,!0);this.logsStore.set(d,this.databaseToken).then(function(k){d.id=k;e&&c.logsStore.deleteRequest(d.id,c.databaseToken)}).catch(function(k){enb(c,k)})}else this.sendFn(a,b,void 0,!0)};
_.f.throttledSend=function(){var a=this;if(!EB(this))throw Error("Uc");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var b;return _.l(function(c){if(c.nextAddress==1)return _.p(c,a.logsStore.getMostRecentByStatus("NEW",a.databaseToken),2);if(c.nextAddress!=3)return b=c.yieldResult,b?_.p(c,a.immediateSend(b),3):(a.cancelThrottledSend(),c.return());a.intervalJob&&(a.intervalJob=0,a.throttledSend());_.se(c)})},this.throttleTimeout))};
_.f.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.f.immediateSend=function(a){var b=this,c;return _.l(function(d){switch(d.nextAddress){case 1:if(!EB(b))throw Error("Vc");if(a.id===void 0){d.jumpTo(2);break}return _.p(d,b.logsStore.markAsQueued(a.id,b.databaseToken),3);case 3:(c=d.yieldResult)||b.handleWarning(Error("Wc"));case 2:if(b.requestWithinAgeLimit(a,b.requestAgeLimitMs)){d.jumpTo(4);break}b.handleWarning(Error("Xc"));if(a.id===void 0){d.jumpTo(5);break}return _.p(d,b.logsStore.deleteRequest(a.id,b.databaseToken),5);case 5:return d.return();
case 4:a.skipRetry||(a=fnb(b,a));if(!a){d.jumpTo(0);break}if(!a.skipRetry||a.id===void 0){d.jumpTo(8);break}return _.p(d,b.logsStore.deleteRequest(a.id,b.databaseToken),8);case 8:b.sendFn(a.url,a.options,!!a.skipRetry),_.se(d)}})};
var fnb=function(a,b){if(!EB(a))throw Error("Yc");var c=b.options.onError?b.options.onError:function(){};
b.options.onError=function(e,g){var k,m,n,r;return _.l(function(t){switch(t.nextAddress){case 1:k=zra(g);(m=Ara(g))&&a.getBooleanFlag&&a.getBooleanFlag("web_enable_error_204")&&a.handleError(Error("Zc"),b.url,g);if(!(a.getBooleanFlag&&a.getBooleanFlag("nwl_consider_error_code")&&k||a.getBooleanFlag&&!a.getBooleanFlag("nwl_consider_error_code")&&a.potentialEsfErrorCounter<=a.potentialEsfErrorLimit)){t.jumpTo(2);break}if(!a.networkManager.sendNetworkCheckRequest){t.jumpTo(3);break}return _.p(t,a.networkManager.sendNetworkCheckRequest(),
3);case 3:if(a.networkManager.isNetworkAvailable()){t.jumpTo(2);break}c(e,g);if(!a.getBooleanFlag||!a.getBooleanFlag("nwl_consider_error_code")||((n=b)==null?void 0:n.id)===void 0){t.jumpTo(6);break}return _.p(t,a.logsStore.resetRequest(b.id,a.databaseToken,!1),6);case 6:return t.return();case 2:if(a.getBooleanFlag&&a.getBooleanFlag("nwl_consider_error_code")&&!k&&a.potentialEsfErrorCounter>a.potentialEsfErrorLimit)return t.return();a.potentialEsfErrorCounter++;if(((r=b)==null?void 0:r.id)===void 0){t.jumpTo(8);
break}return b.sendCount<a.retryMaxAttempts?_.p(t,a.logsStore.resetRequest(b.id,a.databaseToken,!0,m?!1:void 0),12):_.p(t,a.logsStore.deleteRequest(b.id,a.databaseToken),8);case 12:a.jobManager.addLowPriorityJob(function(){a.networkManager.isNetworkAvailable()&&a.throttledSend()},a.retryDelayMs);
case 8:c(e,g),_.se(t)}})};
var d=b.options.onSuccess?b.options.onSuccess:function(){};
b.options.onSuccess=function(e,g){var k;return _.l(function(m){if(m.nextAddress==1)return((k=b)==null?void 0:k.id)===void 0?m.jumpTo(2):_.p(m,a.logsStore.deleteRequest(b.id,a.databaseToken),2);a.networkManager.networkStatusHint&&a.getBooleanFlag&&a.getBooleanFlag("vss_network_hint")&&a.networkManager.networkStatusHint(!0);d(e,g);_.se(m)})};
return b};
FB.prototype.requestWithinAgeLimit=function(a,b){a=a.timestamp;return this.now()-a>=b?!1:!0};
FB.prototype.retryQueuedRequests=function(){var a=this;if(!EB(this))throw Error("$c");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(b){b&&!a.requestWithinAgeLimit(b,a.queuedRequestAgeLimitMs)?a.jobManager.addLowPriorityJob(function(){return _.l(function(c){if(c.nextAddress==1)return b.id===void 0?c.jumpTo(2):_.p(c,a.logsStore.resetRequest(b.id,a.databaseToken),2);a.retryQueuedRequests();_.se(c)})}):a.networkManager.isNetworkAvailable()&&a.throttledSend()})};
var enb=function(a,b){a.writeError&&!a.networkManager.isNetworkAvailable()?a.writeError(b):a.handleError(b)},EB=function(a){return!!a.databaseToken||a.bypassDbTokenDependency};var Bra;var Ita={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73,
visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88,
spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153,
vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136,
mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167,
kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387,
transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,
ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,
ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221,
accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245,
musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270,
yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296,
notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,
tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,
iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,
mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,
mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,
clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,
mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,
mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,
cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,
miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,
shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515};var gnb={},Lra=Tj("ServiceWorkerLogsDatabase",{objectStores:(gnb.SWHealthLog={addedAtVersion:1},gnb),shared:!0,upgrade:function(a,b){b(1)&&Hk(Gk(a,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var Tra={},Sra=0;var Xra;var GB=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},Mk=function(){if(!GB.instance){var a=_.Ji("yt.networkRequestMonitor.instance")||new GB;
_.Rj("yt.networkRequestMonitor.instance",a);GB.instance=a}return GB.instance};
GB.prototype.requestComplete=function(a,b){b&&(this.anyRequestHasSucceeded=!0);a=this.removeParams(a);this.requestMap.get(a)||this.requestMap.set(a,b)};
GB.prototype.isEndpointCFR=function(a){a=this.removeParams(a);return(a=this.requestMap.get(a))?!1:a===!1&&this.anyRequestHasSucceeded?!0:null};
GB.prototype.removeParams=function(a){return a.split("?")[0]};
GB.prototype.removeParams=GB.prototype.removeParams;GB.prototype.isEndpointCFR=GB.prototype.isEndpointCFR;GB.prototype.requestComplete=GB.prototype.requestComplete;GB.getInstance=Mk;var HB=function(a){_.Dz.call(this);var b=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=a!=null?a:{addLowPriorityJob:function(e,g){return setTimeout(e,g)},
cancelJob:function(e){clearTimeout(e)}};
var c,d;this.isOnline=(d=(c=window.navigator)==null?void 0:c.onLine)!=null?d:!0;this.onNavigatorChange=function(){return _.l(function(e){return _.p(e,hnb(b),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||inb(this)};
_.z(HB,_.Dz);HB.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete HB.instance};
HB.prototype.isNetworkAvailable=function(){return this.isOnline};
var inb=function(a){a.pollingJob=a.jobManager.addLowPriorityJob(function(){var b;return _.l(function(c){if(c.nextAddress==1)return a.isOnline?((b=window.navigator)==null?0:b.onLine)?c.jumpTo(3):_.p(c,hnb(a),3):_.p(c,hnb(a),3);inb(a);_.se(c)})},3E4)},hnb=function(a,b){return a.networkRequestPromise?a.networkRequestPromise:a.networkRequestPromise=new Promise(function(c){var d,e,g,k;
return _.l(function(m){switch(m.nextAddress){case 1:return d=window.AbortController?new window.AbortController:void 0,g=(e=d)==null?void 0:e.signal,k=!1,_.me(m,2,3),d&&(a.abortTimeoutKey=a.jobManager.addLowPriorityJob(function(){d.abort()},b||2E4)),_.p(m,fetch("/generate_204",{method:"HEAD",
signal:g}),5);case 5:k=!0;case 3:_.oe(m);a.networkRequestPromise=void 0;a.abortTimeoutKey&&(a.jobManager.cancelJob(a.abortTimeoutKey),a.abortTimeoutKey=0);k!==a.isOnline&&(a.isOnline=k,a.isOnline?a.dispatchEvent("networkstatus-online"):a.dispatchEvent("networkstatus-offline"));c(k);_.qe(m,0);break;case 2:_.re(m),k=!1,m.jumpTo(3)}})})};var IB=function(){_.Dz.call(this);var a=this;this.shouldFlushErrors=!1;HB.instance||(HB.instance=new HB(_.zk));this.sharedNetworkStatusManager=HB.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(a.shouldFlushErrors&&_.x("offline_error_handling")){var b=Yra().get("errors",!0);if(b){for(var c in b)if(b[c]){var d=new _.qj(c,"sent via offline_errors");d.name=b[c].name;d.stack=b[c].stack;d.level=b[c].level;_.Hi(d)}Yra().set("errors",{},2592E3,!0)}}})};
_.z(IB,_.Dz);var jnb=function(){if(!IB.instance){var a=_.Ji("yt.networkStatusManager.instance")||new IB;_.Rj("yt.networkStatusManager.instance",a);IB.instance=a}return IB.instance};
_.f=IB.prototype;_.f.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.f.networkStatusHint=function(a){this.sharedNetworkStatusManager.isOnline=a};
_.f.getWindowStatus=function(){var a=window.navigator.onLine;return a===void 0?!0:a};
_.f.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.f.listen=function(a,b){return this.sharedNetworkStatusManager.listen(a,b)};
_.f.sendNetworkCheckRequest=function(a){a=hnb(this.sharedNetworkStatusManager,a);a.then(function(b){_.x("use_cfr_monitor")&&Mk().requestComplete("generate_204",b)});
return a};
IB.prototype.sendNetworkCheckRequest=IB.prototype.sendNetworkCheckRequest;IB.prototype.listen=IB.prototype.listen;IB.prototype.enableErrorFlushing=IB.prototype.enableErrorFlushing;IB.prototype.getWindowStatus=IB.prototype.getWindowStatus;IB.prototype.networkStatusHint=IB.prototype.networkStatusHint;IB.prototype.isNetworkAvailable=IB.prototype.isNetworkAvailable;IB.getInstance=jnb;_.Lk=function(a){a=a===void 0?{}:a;_.Dz.call(this);var b=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=jnb();var c=_.Ji("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);c&&(a.rateLimit?(this.rateLimit=a.rateLimit,c("networkstatus-online",function(){knb(b,"publicytnetworkstatus-online")}),c("networkstatus-offline",function(){knb(b,"publicytnetworkstatus-offline")})):(c("networkstatus-online",function(){b.dispatchEvent("publicytnetworkstatus-online")}),c("networkstatus-offline",
function(){b.dispatchEvent("publicytnetworkstatus-offline")})))};
_.z(_.Lk,_.Dz);_.Lk.prototype.isNetworkAvailable=function(){var a=_.Ji("yt.networkStatusManager.instance.isNetworkAvailable");return a?a.bind(this.nsmInstance)():!0};
_.Lk.prototype.networkStatusHint=function(a){var b=_.Ji("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);b&&b(a)};
_.Lk.prototype.sendNetworkCheckRequest=function(a){var b=this,c;return _.l(function(d){c=_.Ji("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(b.nsmInstance);return _.x("skip_network_check_if_cfr")&&Mk().isEndpointCFR("generate_204")?d.return(new Promise(function(e){var g;b.networkStatusHint(((g=window.navigator)==null?void 0:g.onLine)||!0);e(b.isNetworkAvailable())})):c?d.return(c(a)):d.return(!0)})};
var knb=function(a,b){a.rateLimit?a.lastJobTime?(_.zk.cancelJob(a.schedulerJob),a.schedulerJob=_.zk.addLowPriorityJob(function(){a.lastPublicSignalSent!==b&&(a.dispatchEvent(b),a.lastPublicSignalSent=b,a.lastJobTime=(0,_.Uj)())},a.rateLimit-((0,_.Uj)()-a.lastJobTime))):(a.dispatchEvent(b),a.lastPublicSignalSent=b,a.lastJobTime=(0,_.Uj)()):a.dispatchEvent(b)};var csa,JB=function(){FB.call(this,{logsStore:{cleanLogsStore:Jra,deleteRequest:Ira,getMostRecentByStatus:Fra,markAsQueued:Gra,resetRequest:Hra,set:Era},networkManager:_.dsa(),handleError:function(a,b,c){var d,e=c==null?void 0:(d=c.error)==null?void 0:d.code;if(e===400||e===415){var g;a=new _.qj(a.message,b,c==null?void 0:(g=c.error)==null?void 0:g.code);_.Ki(a,void 0,void 0,void 0,!0)}else _.Hi(a)},
handleWarning:_.Ki,sendFn:asa,now:_.Uj,writeError:Zra,jobManager:_.Lw(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.$i("potential_esf_error_limit",10),getBooleanFlag:_.x,disableYtIdbTransactions:!(_.pj()&&_.esa())});this.initializationPromise=new _.gq;_.x("networkless_immediately_drop_all_requests")&&Kra();Apa("LogsDatabaseV2")};
_.z(JB,FB);_.mnb=function(){var a=_.Ji("yt.networklessRequestController.instance");a||(a=new JB,_.Rj("yt.networklessRequestController.instance",a),_.x("networkless_logging")&&_.Sj().then(function(b){a.databaseToken=b;dnb(a);a.initializationPromise.resolve();a.enableCleaning&&Math.random()<=a.cleaningRate&&a.databaseToken&&Nra(a.databaseToken);_.x("networkless_immediately_drop_sw_health_store")&&lnb(a)}));
return a};
JB.prototype.writeThenSend=function(a,b){b||(b={});b=bsa(a,b);_.pj()||(this.initialized=!1);FB.prototype.writeThenSend.call(this,a,b)};
JB.prototype.sendThenWrite=function(a,b,c){b||(b={});b=bsa(a,b);_.pj()||(this.initialized=!1);FB.prototype.sendThenWrite.call(this,a,b,c)};
JB.prototype.sendAndWrite=function(a,b){b||(b={});b=bsa(a,b);_.pj()||(this.initialized=!1);FB.prototype.sendAndWrite.call(this,a,b)};
JB.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var lnb=function(a){var b;_.l(function(c){if(!a.databaseToken)throw b=Ej("clearSWHealthLogsDb"),b;return c.return(Ora(a.databaseToken).catch(function(d){a.handleError(d)}))})};_.gsa=!1;_.fsa=_.ja.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.gsa};_.Rj("ytNetworklessLoggingInitializationOptions",_.fsa);var yl=function(a){var b=this;this.config_=null;a?this.config_=a:Jpa()&&(this.config_=_.Wj());_.ul(_.zk,function(){yra(b)},5E3)};
yl.prototype.isReady=function(){!this.config_&&Jpa()&&(this.config_=_.Wj());return!!this.config_};
var xra=function(a,b,c,d){!_.Ei("VISITOR_DATA")&&b!=="visitor_id"&&Math.random()<.01&&_.Ki(new _.qj("Missing VISITOR_DATA when sending innertube request.",b,c,d));if(!a.isReady()){var e=new _.qj("innertube xhrclient not ready",b,c,d);_.Hi(e);throw e;}var g={headers:d.headers||{},method:"POST",postParams:c,postBody:d.postBody,postBodyFormat:d.postBodyFormat||"JSON",onTimeout:function(){d.onTimeout()},
onFetchTimeout:d.onTimeout,onSuccess:function(u,w){if(d.onSuccess)d.onSuccess(w)},
onFetchSuccess:function(u){if(d.onSuccess)d.onSuccess(u)},
onError:function(u,w){if(d.onError)d.onError(w)},
onFetchError:function(u){if(d.onError)d.onError(u)},
timeout:d.timeout,withCredentials:!0,compress:d.compress};g.headers["Content-Type"]||(g.headers["Content-Type"]="application/json");var k="";(e=a.config_.innertubeHostOverride)&&(k=e);var m=a.config_.innertubeUseThirdPartyAuth||!1,n=_.Zpa(m,k,d);Object.assign(g.headers,n);g.headers.Authorization&&!k&&m&&(g.headers["x-origin"]=window.location.origin);var r=_.Pi(k+("/youtubei/"+a.config_.innertubeApiVersion+"/"+b),{alt:"json"}),t=function(u){u=u===void 0?!1:u;var w;if(d.retry&&k!="www.youtube-nocookie.com"&&
(u||_.x("skip_ls_gel_retry")||g.headers["Content-Type"]!=="application/json"||(w=vra(b,c,n,m)),w)){var A=g.onSuccess,C=g.onFetchSuccess;g.onSuccess=function(I,R){wra(w);A(I,R)};
c.onFetchSuccess=function(I,R){wra(w);C(I,R)}}try{if(u&&d.retry&&!d.networklessOptions.bypassNetworkless)g.method="POST",d.networklessOptions.writeThenSend?_.mnb().writeThenSend(r,g):_.mnb().sendAndWrite(r,g);
else if(d.compress){var G=!d.networklessOptions.writeThenSend;if(g.postBody){var J=g.postBody;typeof J!=="string"&&(J=JSON.stringify(g.postBody));lra(r,J,g,_.hj,G)}else lra(r,JSON.stringify(g.postParams),g,soa,G)}else _.x("web_all_payloads_via_jspb")?_.hj(r,g):soa(r,g)}catch(I){if(I.name==="InvalidAccessError")w&&(wra(w),w=0),_.Ki(Error("ad"));else throw I;}w&&_.ul(_.zk,function(){yra(a)},5E3)};
_.hsa()?spa().then(function(u){t(u)}):t(!1)};var lCa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(lCa,_.Xc);lCa.prototype.getIndex=function(){return Mx(this,2)};
lCa.prototype.setIndex=function(a){return _.sl(this,2,a)};var nnb=0,jsa=_.ux?"webkit":_.tx?"moz":_.sx?"ms":S8a?"o":"";_.Rj("ytDomDomGetNextId",_.Ji("ytDomDomGetNextId")||function(){return++nnb});var onb={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},Uk=function(a){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(a=
a||window.event){this.event=a;for(var b in a)b in onb||(this[b]=a[b]);this.scale=a.scale;this.rotation=a.rotation;var c=a.target||a.srcElement;c&&c.nodeType==3&&(c=c.parentNode);this.target=c;var d=a.relatedTarget;if(d)try{d=d.nodeName?d:null}catch(e){d=null}else this.type=="mouseover"?d=a.fromElement:this.type=="mouseout"&&(d=a.toElement);this.relatedTarget=d;this.clientX=a.clientX!=void 0?a.clientX:a.pageX;this.clientY=a.clientY!=void 0?a.clientY:a.pageY;this.keyCode=a.keyCode?a.keyCode:a.which;
this.charCode=a.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=a.altKey;this.ctrlKey=a.ctrlKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pageX_=a.pageX;this.pageY_=a.pageY}}catch(e){}},pnb=function(a){if(document.body&&document.documentElement){var b=document.body.scrollTop+document.documentElement.scrollTop;
a.pageX_=a.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);a.pageY_=a.clientY+b}};
Uk.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
Uk.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
Uk.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Tk=_.ja.ytEventsEventsListeners||{};_.Rj("ytEventsEventsListeners",Tk);var psa=_.ja.ytEventsEventsCounter||{count:0};_.Rj("ytEventsEventsCounter",psa);var qsa=_.Cy(function(){var a=!1;try{var b=Object.defineProperty({},"capture",{get:function(){a=!0}});
window.addEventListener("test",null,b)}catch(c){}return a});_.nx(Wk,_.tg);Wk.prototype.onMouseMove_=function(a){a.pageX_===void 0&&pnb(a);var b=a.pageX_;a.pageY_===void 0&&pnb(a);this.position_=new _.Af(b,a.pageY_)};
Wk.prototype.checkPosition_=function(){if(this.position_){var a=(0,_.Uj)();if(this.previousTime_!=0){var b=this.previousPosition_,c=this.position_,d=b.x-c.x;b=b.y-c.y;d=Math.sqrt(d*d+b*b)/(a-this.previousTime_);this.cycles_[this.index_]=Math.abs((d-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(c=b=0;c<4;c++)b+=this.cycles_[c]||0;b>=3&&this.callback_();this.previousVelocity_=d}this.previousTime_=a;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
Wk.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.rsa(this.mouseListenerKey_)};var vsa={};var Dta=new _.X("rawColdConfigGroup");var Cta=new _.X("rawHotConfigGroup");var qnb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(qnb,_.Xc);var kCa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(kCa,_.Xc);var tl=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,500,void 0,3)};
_.z(tl,_.Xc);tl.prototype.getPayloadCase=function(){return _.Ex(this,rnb)};
tl.prototype.getContext=function(){return _.Xj(this,kCa,33)};
var rnb=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,
354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516];var wta=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(wta,_.Xc);var Zsa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(Zsa,_.Xc);Zsa.prototype.setVideoId=function(a){return ll(this,1,$sa,mc(a))};
Zsa.prototype.getPlaylistId=function(){return _.kg(this,ql(this,$sa,2))};
var $sa=[1,2];var qta=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(qta,_.Xc);qta.prototype.getContext=function(){return _.Xj(this,ml,1)};
qta.prototype.getTier=function(){return _.Px(this,7)};var snb,bl,cl;snb=_.ja.ytPubsubPubsubInstance||new _.jj;bl=_.ja.ytPubsubPubsubSubscribedKeys||{};cl=_.ja.ytPubsubPubsubTopicToKeys||{};_.wsa=_.ja.ytPubsubPubsubIsSynchronous||{};_.jj.prototype.subscribe=_.jj.prototype.subscribe;_.jj.prototype.unsubscribeByKey=_.jj.prototype.unsubscribeByKey;_.jj.prototype.publish=_.jj.prototype.publish;_.jj.prototype.clear=_.jj.prototype.clear;_.Rj("ytPubsubPubsubInstance",snb);_.Rj("ytPubsubPubsubTopicToKeys",cl);_.Rj("ytPubsubPubsubIsSynchronous",_.wsa);
_.Rj("ytPubsubPubsubSubscribedKeys",bl);var el=window;var KB=_.x("web_enable_lifecycle_monitoring")&&Bsa()!==0,tnb=_.x("web_enable_lifecycle_monitoring");var vnb=function(a){var b=this;var c=c===void 0?0:c;var d=d===void 0?_.Lw():d;this.JSC$8632_defaultPriority=c;this.scheduler=d;this.completedResolver=new _.gq;this.scheduledPayloads=a;for(a={i$jscomp$526:0};a.i$jscomp$526<this.scheduledPayloads.length;a={payload$jscomp$18:void 0,i$jscomp$526:a.i$jscomp$526},a.i$jscomp$526++)a.payload$jscomp$18=this.scheduledPayloads[a.i$jscomp$526],c=function(e){return function(){e.payload$jscomp$18.job();b.scheduledPayloads[e.i$jscomp$526].processed=!0;b.scheduledPayloads.every(function(g){return g.processed===
!0})&&b.completedResolver.resolve()}}(a),d=this.scheduler.addJob(c,unb(this,a.payload$jscomp$18)),this.scheduledPayloads[a.i$jscomp$526]=Object.assign({},a.payload$jscomp$18,{job:c,
jobId:d})};
vnb.prototype.flushJobs=function(){var a=this,b=Array.from(this.scheduledPayloads.keys()).sort(function(d,e){return unb(a,a.scheduledPayloads[e])-unb(a,a.scheduledPayloads[d])});
b=_.h(b);for(var c=b.next();!c.done;c=b.next())c=this.scheduledPayloads[c.value],c.jobId===void 0||c.processed||(this.scheduler.cancelJob(c.jobId),this.scheduler.addJob(c.job,10))};
vnb.prototype.cancel=function(){for(var a=_.h(this.scheduledPayloads),b=a.next();!b.done;b=a.next())b=b.value,b.jobId===void 0||b.processed||this.scheduler.cancelJob(b.jobId),b.processed=!0;this.completedResolver.resolve()};
var unb=function(a,b){var c;return(c=b.priority)!=null?c:a.JSC$8632_defaultPriority};var LB=function(a){this.state=a;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};KB&&Csa(this.state)};
LB.prototype.install=function(a){this.plugins.push(a);return this};
LB.prototype.uninstall=function(){var a=this;_.Id.apply(0,arguments).forEach(function(b){b=a.plugins.indexOf(b);b>-1&&a.plugins.splice(b,1)})};
LB.prototype.transition=function(a,b){var c=this;KB&&Dsa(this.state);var d=this.transitions.find(function(g){return Array.isArray(g.from)?g.from.find(function(k){return k===c.state&&g.to===a}):g.from===c.state&&g.to===a});
if(d){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);wnb(this,a,b);this.state=a;KB&&Csa(this.state);d=d.action.bind(this);var e=this.plugins.filter(function(g){return g[a]}).map(function(g){return g[a]});
d(xnb(this,e),b)}else throw Error("bd`"+this.state+"`"+a);};
var xnb=function(a,b){var c=b.filter(function(e){return ynb(a,e)===10}),d=b.filter(function(e){return ynb(a,e)!==10});
return a.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var e=_.Id.apply(0,arguments);return _.l(function(g){if(g.nextAddress==1)return _.p(g,a.runImmediateJobsAsync.apply(a,[c].concat(_.Be(e))),2);a.setJobSetWithScheduledJobs.apply(a,[d].concat(_.Be(e)));_.se(g)})}:function(){var e=_.Id.apply(0,arguments);
a.runImmediateJobsSync.apply(a,[c].concat(_.Be(e)));a.setJobSetWithScheduledJobs.apply(a,[d].concat(_.Be(e)))}};
LB.prototype.runImmediateJobsSync=function(a){var b=_.Id.apply(1,arguments);_.Lw();for(var c=_.h(a),d=c.next(),e={};!d.done;e={lifecycle$jscomp$2:void 0},d=c.next())e.lifecycle$jscomp$2=d.value,$s(function(g){return function(){znb(g.lifecycle$jscomp$2.name);Fsa(function(){return g.lifecycle$jscomp$2.callback.apply(g.lifecycle$jscomp$2,_.Be(b))});
MB(g.lifecycle$jscomp$2.name)}}(e))};
LB.prototype.runImmediateJobsAsync=function(a){var b=_.Id.apply(1,arguments),c,d,e,g;return _.l(function(k){k.nextAddress==1&&(_.Lw(),c=_.h(a),d=c.next(),e={});if(k.nextAddress!=3){if(d.done)return k.jumpTo(0);e.lifecycle$jscomp$3=d.value;e.asyncJobCompletion=void 0;g=function(m){return function(){znb(m.lifecycle$jscomp$3.name);var n=Fsa(function(){return m.lifecycle$jscomp$3.callback.apply(m.lifecycle$jscomp$3,_.Be(b))});
y9a(n)?m.asyncJobCompletion=_.x("web_lifecycle_error_handling_killswitch")?n.then(function(){MB(m.lifecycle$jscomp$3.name)}):n.then(function(){MB(m.lifecycle$jscomp$3.name)},function(r){Esa(r);
MB(m.lifecycle$jscomp$3.name)}):MB(m.lifecycle$jscomp$3.name)}}(e);
$s(g);return e.asyncJobCompletion?_.p(k,e.asyncJobCompletion,3):k.jumpTo(3)}e={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};d=c.next();return k.jumpTo(2)})};
LB.prototype.setJobSetWithScheduledJobs=function(a){var b=_.Id.apply(1,arguments),c=this,d=a.map(function(e){return{job:function(){znb(e.name);Fsa(function(){return e.callback.apply(e,_.Be(b))});
MB(e.name)},
priority:ynb(c,e)}});
d.length&&(this.jobSet=new vnb(d))};
var ynb=function(a,b){var c,d;return(d=(c=a.overridePriority)!=null?c:b.priority)!=null?d:0},znb=function(a){KB&&a&&Csa(a)},MB=function(a){KB&&a&&Dsa(a)},wnb=function(a,b,c){tnb&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+a.constructor.name+"] '"+a.state+"' to '"+b+"'"),console.log("with message: ",c),console.groupEnd())};
_.Vm.Object.defineProperties(LB.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var Anb=function(a){LB.call(this,a===void 0?"none":a);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(){}}]},Bnb;
_.z(Anb,LB);Anb.prototype.runApplicationNavigationBegin=function(a,b){var c=this;this.navigationTimer=_.ul(_.zk,function(){c.currentState==="application_navigating"&&c.transition("none")},5E3);
a(b==null?void 0:b.event)};
Anb.prototype.runApplicationNavigationEnd=function(a,b){this.navigationTimer&&(_.zk.cancelJob(this.navigationTimer),this.navigationTimer=null);a(b==null?void 0:b.event)};
_.Bta=function(){Bnb||(Bnb=new Anb);return Bnb};var Ata=[];_.Rj("yt.logging.transport.getScrapedGelPayloads",function(){return Ata});var gl=function(){var a=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return a.totalEntries}}};
gl.prototype.storePayload=function(a,b){a=Gsa(a);this.store[a]?this.store[a].push(b):(this.memoizedKeySequences={},this.store[a]=[b]);this.totalEntries++;_.x("more_accurate_gel_parser")&&(b=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(b));return a};
gl.prototype.smartExtractMatchingEntries=function(a){if(!a.keys.length)return[];for(var b=Cnb(this,a.keys.splice(0,1)[0]),c=[],d=0;d<b.length;d++)this.store[b[d]]&&a.sizeLimit&&(this.store[b[d]].length<=a.sizeLimit?(c.push.apply(c,_.Be(this.store[b[d]])),delete this.store[b[d]]):c.push.apply(c,_.Be(this.store[b[d]].splice(0,a.sizeLimit))));this.totalEntries-=c.length;(a==null?0:a.sizeLimit)&&c.length<(a==null?void 0:a.sizeLimit)&&(a.sizeLimit-=c.length,c.push.apply(c,_.Be(this.smartExtractMatchingEntries(a))));
return c};
gl.prototype.extractMatchingEntries=function(a){a=Cnb(this,a);for(var b=[],c=0;c<a.length;c++)this.store[a[c]]&&(b.push.apply(b,_.Be(this.store[a[c]])),delete this.store[a[c]]);this.totalEntries-=b.length;return b};
gl.prototype.getSequenceCount=function(a){a=Cnb(this,a);for(var b=0,c=0;c<a.length;c++){var d=void 0;b+=((d=this.store[a[c]])==null?void 0:d.length)||0}return b};
var Cnb=function(a,b){var c=Gsa(b);if(a.memoizedKeySequences[c])return a.memoizedKeySequences[c];var d=Object.keys(a.store)||[];if(d.length<=1&&Gsa(b)===d[0])return d;for(var e=[],g=0;g<d.length;g++){var k=d[g].split("/");if(Dnb(b.auth,k[0])){var m=b.isJspb;Dnb(m===void 0?"undefined":m?"true":"false",k[1])&&Dnb(b.cttAuthInfo,k[2])&&(m=b.tier,m=m===void 0?"undefined":JSON.stringify(m),Dnb(m,k[3])&&e.push(d[g]))}}return a.memoizedKeySequences[c]=e},Dnb=function(a,b){return a===void 0||a==="undefined"?
!0:a===b};
gl.prototype.getSequenceCount=gl.prototype.getSequenceCount;gl.prototype.extractMatchingEntries=gl.prototype.extractMatchingEntries;gl.prototype.smartExtractMatchingEntries=gl.prototype.smartExtractMatchingEntries;gl.prototype.storePayload=gl.prototype.storePayload;var ita,gta,jta,jl,Enb,Hta,Gta,fta,eta,Usa,hta,yta,bta;ita=_.$i("initial_gel_batch_timeout",2E3);gta=_.$i("gel_queue_timeout_max_ms",6E4);jta=_.$i("gel_min_batch_size",5);jl=void 0;Enb=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
Hta=new Enb;Gta=new Enb;fta=new Enb;eta=new Enb;hta=!0;yta=1;_.xta=new Map;bta=_.ja.ytLoggingTransportTokensToCttTargetIds_||{};_.Rj("ytLoggingTransportTokensToCttTargetIds_",bta);var ata=_.ja.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.Rj("ytLoggingTransportTokensToJspbCttTargetIds_",ata);var il={};var wl=_.ja.ytLoggingGelSequenceIdObj_||{};_.Rj("ytLoggingGelSequenceIdObj_",wl);var Lta=[];var Yta=new Set,Rta=0,bua=0,aua=0,Tta=[],Sta=[],cua=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var pua=function(){};
pua.prototype.getUrl=function(a,b){b=b===void 0?!1:b;return a.hasOwnProperty("shareEndpoint")?null:_.gua(a,null,b)};
var xTa=function(a,b,c){a={endpoint:b,actions:[]};c=(c.path?c.path[0]:c.target).icon||"";b=c.indexOf(":");b>0&&(c=c.substr(b+1));c&&a.actions.push(c);return a};var mua=/Command$/,lua=/Endpoint$/,iua=new Map;var Fnb,Gnb;Fnb=1;_.Nl=function(){this.actionRoutingMap=new Map};
_.Nl.prototype.triggerAction=function(a){var b=new QBa(a,!1,_.Id.apply(1,arguments));this.handleAction(b);return b.returnValue};
_.Nl.prototype.triggerOptionalAction=function(a){var b=new QBa(a,!0,_.Id.apply(1,arguments));this.handleAction(b);return b.returnValue};
_.NB=function(a,b,c){b.forEach(function(d){var e=kua(d);e&&a.triggerOptionalAction(e,d,c,void 0)})};
_.Nl.prototype.handleAction=function(a){var b=this.actionRoutingMap.get(a.actionName);b&&Gnb(a,b);a.optionalAction||a.returnValue.length!==0||(a=new _.qj("Unhandled action",a.actionName),_.Ki(a))};
Gnb=function(a,b){b.forEach(function(c){var d=null;c?d=c.apply(null,a.args):(c=Error("cd"),c.params=a.actionName,_.Hi(c));a.returnValue.push(d)})};
_.Ol=function(a,b,c){c||(c=Fnb++);for(var d=_.h(Object.keys(b)),e=d.next();!e.done;e=d.next()){e=e.value;var g=a.actionRoutingMap.get(e);g||(g=new Map,a.actionRoutingMap.set(e,g));a.registerActionHandler(c,e,b[e],g)}return c};
_.Nl.prototype.registerActionHandler=function(a,b,c,d){d.set(a,_.Ii(c))};
_.Pl=function(a,b,c){b=_.h(Object.keys(b));for(var d=b.next();!d.done;d=b.next())(d=a.actionRoutingMap.get(d.value))&&d.delete(c)};
_.lx(_.Nl);var sua=function(a,b){var c=_.Nl.getInstance();_.vi(function(){var d={},e=_.Ol(c,(d[a]=b,d));_.wh(function(){var g={};_.Pl(c,(g[a]="",g),e)})})};var wua=function(a,b,c){_.vi(function(){var d=a.value;d?(d.addEventListener(b,c,void 0),_.wh(function(){d?d.removeEventListener(b,c,void 0):xua(a)})):xua(a)})};yma=ena;var Iua=new Set(["For","If","Match","Watch"]),Hnb={},Inb=(Hnb[Ch.default]=function(){return sma},Hnb.style=function(){return sma},Hnb),Jnb;
for(Jnb in Inb)Xg.attributes[Jnb]=Inb[Jnb](Xg.attributes[Jnb]);var Zl=new _.fB("VISIBILITY_OBSERVER");var Sua={retrieve:function(a){return this.id.\u0275prov.token===a.\u0275prov.token?this.contextValue:this?Tja(this,this.id):Sja}};var Knb=function(a,b,c){if(a!==Ul)return!1;a=Vl(document.createElement("div"),function(){var d=Wh(!1);try{c[0]()}finally{Wh(d)}});
a=Array.from(a.childNodes);a.length===1&&(a=a[0]);return a};var Lnb=function(a){a=a.clone();njb(a);CA(a,"dg",null);CA(a,"d","0");jjb(a,null);kjb(a,null);CA(a,"ichc","0");return a},Mnb=!0,Nnb=function(a,b,c){var d=c===void 0?{}:c;
c=d.cssRowKey===void 0?void 0:d.cssRowKey;var e=d.combinedSignature===void 0?void 0:d.combinedSignature;var g=d.extraEdges===void 0?void 0:d.extraEdges;d=d.callback===void 0?void 0:d.callback;CA(a,"m",b.join(","));g&&mjb(a,g);c&&(CA(a,"ck",c),e?CA(a,"rs",e):Mnb&&(Mnb=!1));if(d){if(d!=null&&!tjb.test(d))throw Error("eb`"+d);CA(a,"cb",d)}a=a.toString();_.na(a,"/")&&(a=Mbb(document.location.href)+a);return _.vd(a)};var Pnb=function(a){return Onb(a).then(function(b){return JSON.parse(b.responseText)})},Onb=function(a){var b={},c=b.xmlHttpFactory?b.xmlHttpFactory.createInstance():Gfb.createInstance();
return(new _.kl(function(d,e){var g;try{c.open("GET",a,!0)}catch(n){e(new OB("Error opening XHR: "+n.message,a,c))}c.onreadystatechange=function(){if(c.readyState==4){_.ja.clearTimeout(g);var n;!(n=Ffb(c.status))&&(n=c.status===0)&&(n=Lbb(a),n=!(n=="http"||n=="https"||n==""));n?d(c):e(new Qnb(c.status,a,c))}};
c.onerror=function(){e(new OB("Network error",a,c))};
if(b.headers)for(var k in b.headers){var m=b.headers[k];m!=null&&c.setRequestHeader(k,m)}b.withCredentials&&(c.withCredentials=b.withCredentials);b.responseType&&(c.responseType=b.responseType);b.mimeType&&c.overrideMimeType(b.mimeType);b.timeoutMs>0&&(g=_.ja.setTimeout(function(){c.onreadystatechange=function(){};
c.abort();e(new Rnb(a,c))},b.timeoutMs));
try{c.send(null)}catch(n){c.onreadystatechange=function(){},_.ja.clearTimeout(g),e(new OB("Error sending XHR: "+n.message,a,c))}})).thenCatch(function(d){d instanceof _.On&&c.abort();
throw d;})},OB=function(a,b,c){_.da.call(this,a+", url="+b);
this.url=b;this.xhr=c};
_.nx(OB,_.da);OB.prototype.name="XhrError";var Qnb=function(a,b,c){OB.call(this,"Request Failed, status="+a,b,c);this.status=a};
_.nx(Qnb,OB);Qnb.prototype.name="XhrHttpError";var Rnb=function(a,b){OB.call(this,"Request timed out",a,b)};
_.nx(Rnb,OB);Rnb.prototype.name="XhrTimeoutError";kx=kx||{};var PB=function(){_.tg.call(this)};
_.nx(PB,_.tg);PB.prototype.initialize=function(){};var Snb=function(a,b){this.fn_=a;this.handler_=b};
Snb.prototype.execute=function(a){this.fn_&&(this.fn_.call(this.handler_||null,a),this.fn_=this.handler_=null)};
Snb.prototype.abort=function(){this.handler_=this.fn_=null};var QB=function(a,b){_.tg.call(this);this.deps_=a;this.JSC$8760_id_=b;this.onloadCallbacks_=[];this.JSC$8760_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.nx(QB,_.tg);QB.prototype.moduleConstructor_=PB;QB.prototype.module_=null;QB.prototype.getId=function(){return this.JSC$8760_id_};
QB.prototype.registerCallback=function(a,b){return Tnb(this.onloadCallbacks_,a,b)};
var Unb=function(a,b){Tnb(a.JSC$8760_onErrorCallbacks_,b)},Tnb=function(a,b,c){b=new Snb(b,c);
a.push(b);return b};
QB.prototype.isLoaded=function(){return!!this.module_};
QB.prototype.onLoad=function(a){var b=new this.moduleConstructor_;b.initialize(a());this.module_=b;b=(b=!!Vnb(this.earlyOnloadCallbacks_,a()))||!!Vnb(this.onloadCallbacks_,a());b||(this.JSC$8760_onErrorCallbacks_.length=0);return b};
QB.prototype.onError=function(a){(a=Vnb(this.JSC$8760_onErrorCallbacks_,a))&&ka(Error("kd`"+a));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var Vnb=function(a,b){for(var c=[],d=0;d<a.length;d++)try{a[d].execute(b)}catch(e){ka(e),c.push(e)}a.length=0;return c.length?c:null};
QB.prototype.disposeInternal=function(){QB.superClass_.disposeInternal.call(this);_.Tf(this.module_)};var Wnb,bob,$nb,aob,Ynb,Znb,gob,eob,fob;
_.SB=function(a,b,c,d,e){d=d===void 0?!1:d;e=e===void 0?!1:e;var g=g===void 0?!0:g;this.scsReferenceUrl_=ojb(_.xd(a).toString(),g);this.cssRowKey_=b;this.combinedSignature_=c;this.useNegativeLoading_=d;this.requestedModuleMap_={};this.JSC$8763_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(a=BA(this.scsReferenceUrl_,"excm"))?a.split(","):[];this.shouldScanForCss_=e;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;this.logger=null;_.RB(this,ljb(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
Wnb=function(a,b){if(b.href||b.getAttribute("data-href"))if(b=b.href||b.getAttribute("data-href"),sjb(b)&&!ojb(b).urlPrefix_.endsWith("_/js/")){b=ljb(ojb(b));b=_.h(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a.loadedCssModuleList_.includes(c)||a.loadedCssModuleList_.push(c)}};
_.SB.prototype.JSC$8765_loadModules=function(a,b,c){var d=c===void 0?{}:c;c=d.extraEdges;var e=d.onError;var g=d.onSuccess;d=d.forceReload;this.JSC$8763_moduleInfoMap_=b;if(!a)throw Error("ld");if(this.shouldScanForCss_){b=_.h(document.getElementsByTagName("style"));for(var k=b.next();!k.done;k=b.next())Wnb(this,k.value);b=_.h(document.getElementsByTagName("link"));for(k=b.next();!k.done;k=b.next())Wnb(this,k.value)}Xnb(this,Ynb(this,a),c,e,g,d)};
var Xnb=function(a,b,c,d,e,g){d=d===void 0?function(){}:d;
e=e===void 0?function(){}:e;
g=g===void 0?!1:g;Znb(a,b,function(k,m,n){n=n===void 0?m:n;a.enableFallbackFetch&&g?a.loadWithFetch(k,m,d,e,n):a.load(k,m,d,e,n,c)},c)||d(-1)};
_.SB.prototype.loadWithFetch=function(){_.l(function(){throw Error("md");})};
_.SB.prototype.maybeSetAdditionalFields=function(){};
bob=function(a,b,c){if(a.useNegativeLoading_){var d=a.scsReferenceUrl_;a={cssRowKey:a.cssRowKey_,combinedSignature:a.combinedSignature_,extraEdges:c,requestedModuleIds:$nb(a),requestedCssModuleIds:aob(a)};var e=a===void 0?{}:a;a=e.requestedModuleIds===void 0?[]:e.requestedModuleIds;c=e.requestedCssModuleIds===void 0?[]:e.requestedCssModuleIds;var g=e.cssRowKey===void 0?void 0:e.cssRowKey;var k=e.combinedSignature===void 0?void 0:e.combinedSignature;var m=e.extraEdges===void 0?void 0:e.extraEdges;
e=e.callback===void 0?void 0:e.callback;d=Lnb(d);CA(d,"d","1");jjb(d,a);kjb(d,c);b=Nnb(d,b,{cssRowKey:g,combinedSignature:k,extraEdges:m,callback:e})}else d=a.scsReferenceUrl_,a={cssRowKey:a.cssRowKey_,combinedSignature:a.combinedSignature_,requestedModuleIds:$nb(a),requestedCssModuleIds:aob(a)},m=a===void 0?{}:a,a=m.requestedCssModuleIds===void 0?[]:m.requestedCssModuleIds,c=m.cssRowKey===void 0?void 0:m.cssRowKey,g=m.combinedSignature===void 0?void 0:m.combinedSignature,k=m.extraEdges===void 0?
void 0:m.extraEdges,m=m.callback===void 0?void 0:m.callback,d=Lnb(d),kjb(d,a),b=Nnb(d,b,{cssRowKey:c,combinedSignature:g,extraEdges:k,callback:m});return b};
_.RB=function(a,b){for(var c=!1,d=[],e=0;e<b.length;++e){var g=b[e];a.requestedModuleMap_[g]||(a.requestedModuleMap_[g]=!0,a.requestedModuleList_.push(g),c=!0,d.push(g))}c&&(a.requestedModuleListSorted_=!1)};
_.TB=function(a,b){for(var c=[],d=0;d<b.length;++d){var e=b[d];a.requestedModuleMap_[e]&&(delete a.requestedModuleMap_[e],_.Qa(a.requestedModuleList_,e),c.push(e))}};
_.SB.prototype.load=function(a,b,c,d,e){e=e===void 0?b:e;_.xd(a);var g=this.useCors_,k=this.corsMode_,m=this.fetchPriority,n=_.lg("SCRIPT");_.Xd(n,a);g&&(n.crossOrigin=k);n.async=!1;m&&n.setAttribute("fetchpriority",m);_.RB(this,b);_.cob(this,a,n,b,c,d,e)};
_.cob=function(a,b,c,d,e,g,k){k=k===void 0?d:k;a.lastScript_=c;a.insertPos.insertBefore(c,a.insertPos.firstChild);_.dob(c,d,function(){c.parentElement.removeChild(c);a.lastScript_==c&&(a.lastScript_=null);var m=new Set;d.map(function(r){return m.add(r)});
for(var n in a.JSC$8763_moduleInfoMap_)a.JSC$8763_moduleInfoMap_[n].isLoaded()&&m.add(n);Array.from(m);g()},function(m){c.parentElement.removeChild(c);
a.lastScript_==c&&(a.lastScript_=null);_.TB(a,m);a.pendingModuleGraphUpdate_?a.pendingModuleGraphUpdate_.then(function(){e(-1,b)}):e(-1,b)},k)};
_.dob=function(a,b,c,d,e){e=e===void 0?b:e;var g=b.length,k=function(){g=0;a.onload=null;a.onerror=null;m=function(){}},m=function(){k();
var r=e.filter(function(t){return!zg().getModuleInfo(t).isLoaded()});
r.length!==0?d(r,"Response was successful but was missing module(s) "+r+"."):c()},n=function(){g--;
g==0&&m()};
b.forEach(function(r){r=zg().getModuleInfo(r);r.isLoaded()?n():(Tnb(r.earlyOnloadCallbacks_,n),Unb(r,n))});
a.onload=function(){return m()};
a.onerror=function(){k();d(b)}};
$nb=function(a){a.requestedModuleListSorted_||(a.requestedModuleListSorted_=!0,a.requestedModuleList_.sort());return a.requestedModuleList_};
aob=function(a){a=a.loadedCssModuleList_;a.sort();return a};
Ynb=function(a,b){return b.filter(function(c){return!a.requestedModuleMap_[c]})};
Znb=function(a,b,c,d){if(a.pendingModuleGraphUpdate_)return a.pendingModuleGraphUpdate_.then(function(){Znb(a,b,c,d)}),!0;
if(!a.useNegativeLoading_){var e=[],g=Object.assign({},a.requestedModuleMap_);eob(a,b,function(t){e.push(t.getId())},d,function(t){return!t.isLoaded()},g);
b=e}for(g=0;g<b.length;){for(var k=b.length-g,m=g==0?b:b.slice(g,b.length),n=bob(a,m,d),r=_.xd(n).toString();r.length>a.urlMaxLength;)if(k>1)k-=Math.ceil((r.length-a.urlMaxLength)/6),k=Math.max(k,1),m=b.slice(g,g+k),n=bob(a,m,d),r=_.xd(n).toString();else return a.useNegativeLoading_?(a.useNegativeLoading_=!1,a.pendingModuleGraphUpdate_=fob(a).then(function(t){gob(a,t,d)}),Znb(a,b.slice(g),c,d)):!1;
g+=k;a.useNegativeLoading_?c(n,m):c(n,m,g===b.length?b:[])}return!0};
gob=function(a,b,c){zg().setAllModuleInfoString((b||{}).moduleGraph);eob(a,$nb(a),function(d){_.RB(a,[d.getId()])},c);
a.pendingModuleGraphUpdate_=null};
eob=function(a,b,c,d,e,g){g=g===void 0?{}:g;var k=zg();b=_.h(b);for(var m=b.next();!m.done;m=b.next()){m=m.value;var n=k.getModuleInfo(m);if(!(g[m]||e&&!e(n))){g[m]=!0;var r=n.deps_||[];if(d){var t=[];d[m]&&(t=Object.keys(d[m]));r=r.concat(t)}eob(a,r,c,d,e,g);c(n)}}};
fob=function(a){a=a.scsReferenceUrl_.clone();njb(a);CA(a,"dg",null);CA(a,"md","1");return Pnb(a.toString())};for(var Vua=new Uint8Array(123),hob=0;hob<64;hob++)Vua["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(hob)]=hob;var iob=[];var job=function(){this.JSC$7901_loader_=null};
_.f=job.prototype;_.f.setBatchModeEnabled=function(){};
_.f.setAllModuleInfoString=function(){};
_.f.removeExtraEdge=function(){throw Error("od");};
_.f.getModuleContext=function(){return null};
_.f.isActive=function(){return!1};
_.f.isUserActive=function(){return!1};
_.f.registerCallback=function(){};var VB=function(a,b,c,d){this.type=a;this.status=b;this.requestedModuleIds=c;this.url=d};
VB.prototype.toString=function(){return kob(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var kob=function(a){switch(a.type){case VB.JSC$8775_Type.UNAUTHORIZED:return"Unauthorized";case VB.JSC$8775_Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case VB.JSC$8775_Type.TIMEOUT:return"Timed out";case VB.JSC$8775_Type.OLD_CODE_GONE:return"Out of date module id";case VB.JSC$8775_Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+a.type}};
kx.ModuleLoadFailure=VB;kx.ModuleLoadFailure.JSC$8775_Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var WB=function(){this.moduleIds_=this.JSC$7901_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$8778_extraEdges_={};this.JSC$8778_callbackMap_={};this.JSC$8778_currentlyLoadingModule_=this.baseModuleInfo_=new QB([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new $z;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.nx(WB,job);var lob=function(a,b){_.da.call(this,"Error loading "+a+": "+b)};
_.nx(lob,_.da);_.f=WB.prototype;_.f.setBatchModeEnabled=function(a){this.batchModeEnabled_=a};
_.f.setAllModuleInfoString=function(a,b){if(!(this instanceof WB))this.setAllModuleInfoString(a,b);else if(typeof a==="string"){if(a.startsWith("d$")){a=a.substring(2);for(var c=[],d=0,e=a.indexOf("/"),g=0,k=!1,m=0;;){var n=k?a.substring(g):a.substring(g,e);if(n.length===0)d++,g="sy"+d.toString(36),n=[];else{var r=n.indexOf(":");if(r<0)g=n,n=[];else if(r===n.length-1)g=n.substring(0,r),n=Array(c[m-1]);else{g=n.substring(0,r);n=n.substring(r+1).split(",");r=m;for(var t=0;t<n.length;t++)r-=n[t].length===
0?1:Number(n[t]),n[t]=c[r]}r=0;if(g.length===0)r=1;else if(g.charAt(0)==="+"||g.charAt(0)==="-")r=Number(g);r!==0&&(d+=r,g="sy"+d.toString(36))}c.push(g);mob(this,g,n);if(k)break;g=e+1;e=a.indexOf("/",g);e===-1&&(k=!0);m++}this.moduleIds_=c}else if(a.startsWith("p$")){n=a.substring(2);d={buf:n,pos:0};bm(d);e=bm(d);m=bm(d)+1;a=Array(e);c=Array(e);k=Array(e);m=Array(m);g=r=0;t=d.pos;var u=d.buf.indexOf("|",d.pos);d.pos=u+1;for(u=0;u<e;u++){var w=bm(d),A=w&2,C=w&1;w>>>=2;C?(r+=w>>>1^-(w&1),w="sy"+r.toString(36)):
(C=t,t+=w,w=n.substring(C,t));a[u]=w;A&&(m[g++]=w)}m[g]="";t++;d.pos++;g=e&-2;n=e&1;for(r=0;r<g;r+=2)t=Wua(d),k[r]=t&7,k[r+1]=t>>>3&7;n&&(n=Wua(d),k[g]=n&7);for(g=0;g<e;g++)k[g]===7&&(k[g]=bm(d));d.pos++;for(n=g=0;n<e;n++){r=k[n];t=r===0?iob:Array(r);c[n]=t;u=g;for(A=0;A<r;A++)u-=bm(d),t[A]=m[u];m[g]===a[n]&&g++}for(d=0;d<a.length;d++)mob(this,a[d],c[d]);this.moduleIds_=a}else{a=a.split("/");c=[];for(d=0;d<a.length;d++){m=a[d].split(":");e=m[0];k=[];if(m[1])for(k=m[1].split(","),m=0;m<k.length;m++)k[m]=
c[parseInt(k[m],36)];c.push(e);mob(this,e,k)}this.moduleIds_=c}b&&b.length?(_.Wa(this.loadingModuleIds_,b),this.lastInitialModuleId_=_.Ja(b)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$8778_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$8778_currentlyLoadingModule_=null,this.baseModuleInfo_.onLoad((0,_.ug)(this.getModuleContext,this))&&nob(this,new kx.ModuleLoadFailure(kx.ModuleLoadFailure.JSC$8775_Type.INIT_ERROR)),XB(this))}};
_.f.getModuleInfo=function(a){return this.moduleInfoMap[a]};
_.f.removeExtraEdge=function(a,b){if(this.JSC$8778_extraEdges_[a]){delete this.JSC$8778_extraEdges_[a][b];for(var c in this.JSC$8778_extraEdges_[a])return;delete this.JSC$8778_extraEdges_[a]}};
_.f.isActive=function(){return this.loadingModuleIds_.length>0};
_.f.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var XB=function(a){var b=a.lastActive_,c=a.isActive();c!=b&&(a.executeCallbacks_(c?"active":"idle"),a.lastActive_=c);b=a.isUserActive();b!=a.userLastActive_&&(a.executeCallbacks_(b?"userActive":"userIdle"),a.userLastActive_=b)},mob=function(a,b,c){a.moduleInfoMap[b]?(a=a.moduleInfoMap[b].deps_,a!=c&&a.splice.apply(a,[0,
a.length].concat(_.Be(c)))):a.moduleInfoMap[b]=new QB(c,b)},pob=function(a,b,c){var d=[];
zaa(b,d);b=[];for(var e={},g=0;g<d.length;g++){var k=d[g],m=a.getModuleInfo(k);if(!m)throw Error("pd`"+k);var n=new $z;e[k]=n;m.isLoaded()?n.callback(null):(oob(a,k,m,!!c,n),a.isModuleLoading(k)||b.push(k))}b.length>0&&(a.loadingModuleIds_.length===0?a.loadModules_(b):(a.requestedModuleIdsQueue_.push(b),XB(a)));return e},oob=function(a,b,c,d,e){c.registerCallback(e.callback,e);
Unb(c,function(g){e.errback(new lob(b,g))});
a.isModuleLoading(b)?d&&(qob(a,b),XB(a)):d&&qob(a,b)};
WB.prototype.loadModules_=function(a,b,c){var d=this;b||(this.consecutiveFailures_=0);var e=rob(this,a);this.loadingModuleIds_=e;this.requestedLoadingModuleIds_=this.batchModeEnabled_?a:_.Ra(e);XB(this);if(e.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,e);if(Object.keys(this.JSC$8778_extraEdges_).length>0&&!this.JSC$7901_loader_.supportsExtraEdges)throw Error("qd");a=(0,_.ug)(this.JSC$7901_loader_.JSC$8765_loadModules,this.JSC$7901_loader_,_.Ra(e),this.moduleInfoMap,{extraEdges:this.JSC$8778_extraEdges_,
forceReload:!!c,onError:function(g,k){var m=d.requestedLoadingModuleIds_;g=g!=null?g:void 0;d.consecutiveFailures_++;var n=_.Ra(e);d.requestedLoadingModuleIds_=m;e.forEach(_.vo(_.Qa,d.requestedModuleIds_),d);g==401?(nob(d,new kx.ModuleLoadFailure(kx.ModuleLoadFailure.JSC$8775_Type.UNAUTHORIZED,g)),d.requestedModuleIdsQueue_.length=0):g==410?(sob(d,new kx.ModuleLoadFailure(kx.ModuleLoadFailure.JSC$8775_Type.OLD_CODE_GONE,g)),tob(d)):d.consecutiveFailures_>=3?(sob(d,new kx.ModuleLoadFailure(kx.ModuleLoadFailure.JSC$8775_Type.CONSECUTIVE_FAILURES,
g,n,k)),tob(d)):d.loadModules_(d.requestedLoadingModuleIds_,!0,g==8001||!1)},
onTimeout:(0,_.ug)(this.handleLoadTimeout_,this)});(b=Math.pow(this.consecutiveFailures_,2)*5E3)?_.ja.setTimeout(a,b):a()}};
var rob=function(a,b){b=b.filter(function(e){return a.moduleInfoMap[e].isLoaded()?(_.ja.setTimeout(function(){return Error("rd`"+e)},0),!1):!0});
for(var c=[],d=0;d<b.length;d++)c=c.concat(uob(a,b[d]));zaa(c);return!a.batchModeEnabled_&&c.length>1?(b=c.shift(),a.requestedModuleIdsQueue_=c.map(function(e){return[e]}).concat(a.requestedModuleIdsQueue_),[b]):c},uob=function(a,b){var c=_.yf.createSet(a.requestedModuleIds_),d=[];
c[b]||d.push(b);b=[b];for(var e=0;e<b.length;e++)for(var g=a.getModuleInfo(b[e]).deps_,k=g.length-1;k>=0;k--){var m=g[k];a.getModuleInfo(m).isLoaded()||c[m]||(d.push(m),b.push(m))}d.reverse();zaa(d);return d};
WB.prototype.JSC$8773_setLoaded=function(){if(this.JSC$8778_currentlyLoadingModule_){var a=this.JSC$8778_currentlyLoadingModule_.getId(),b=[];if(this.JSC$8778_extraEdges_[a]){for(var c=_.h(Object.keys(this.JSC$8778_extraEdges_[a])),d=c.next();!d.done;d=c.next()){d=d.value;var e=this.getModuleInfo(d);e&&!e.isLoaded()&&(this.removeExtraEdge(a,d),b.push(d))}this.loadMultiple(b)}this.isDisposed()||(this.moduleInfoMap[a].onLoad((0,_.ug)(this.getModuleContext,this))&&nob(this,new kx.ModuleLoadFailure(kx.ModuleLoadFailure.JSC$8775_Type.INIT_ERROR)),
_.Qa(this.userInitiatedLoadingModuleIds_,a),_.Qa(this.loadingModuleIds_,a),this.loadingModuleIds_.length===0&&tob(this),this.lastInitialModuleId_&&a==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),XB(this),this.JSC$8778_currentlyLoadingModule_=null)}};
WB.prototype.isModuleLoading=function(a){if(_.Pa(this.loadingModuleIds_,a))return!0;for(var b=0;b<this.requestedModuleIdsQueue_.length;b++)if(_.Pa(this.requestedModuleIdsQueue_[b],a))return!0;return!1};
WB.prototype.load=function(a,b){return pob(this,[a],b)[a]};
WB.prototype.loadMultiple=function(a){return pob(this,a)};
var qob=function(a,b){_.Pa(a.userInitiatedLoadingModuleIds_,b)||a.userInitiatedLoadingModuleIds_.push(b)};
WB.prototype.beforeLoadModuleCode=function(a){var b=this;this.JSC$8778_currentlyLoadingModule_&&this.JSC$8778_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$8773_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[a]&&vob(this,this.moduleInfoMap[a].deps_||[],function(c){c.module_=new PB;_.Qa(b.loadingModuleIds_,c.getId())},function(c){return!c.isLoaded()});
this.JSC$8778_currentlyLoadingModule_=this.getModuleInfo(a)};
WB.prototype.handleLoadTimeout_=function(){sob(this,new kx.ModuleLoadFailure(kx.ModuleLoadFailure.JSC$8775_Type.TIMEOUT));tob(this)};
var sob=function(a,b){a.requestedLoadingModuleIds_.length>1?a.requestedModuleIdsQueue_=a.requestedLoadingModuleIds_.map(function(c){return[c]}).concat(a.requestedModuleIdsQueue_):nob(a,b)},nob=function(a,b){var c=a.requestedLoadingModuleIds_;
a.loadingModuleIds_.length=0;for(var d=[],e=0;e<a.requestedModuleIdsQueue_.length;e++){var g=a.requestedModuleIdsQueue_[e].filter(function(n){var r=uob(this,n);return Nk(c,function(t){return _.Pa(r,t)})},a);
_.Wa(d,g)}for(e=0;e<c.length;e++)_.vaa(d,c[e]);for(e=0;e<d.length;e++){for(g=0;g<a.requestedModuleIdsQueue_.length;g++)_.Qa(a.requestedModuleIdsQueue_[g],d[e]);_.Qa(a.userInitiatedLoadingModuleIds_,d[e])}if(e=a.JSC$8778_callbackMap_.error)for(g=0;g<e.length;g++)for(var k=e[g],m=0;m<d.length;m++)k("error",d[m],b);for(d=0;d<c.length;d++)if(a.moduleInfoMap[c[d]])a.moduleInfoMap[c[d]].onError(b);a.requestedLoadingModuleIds_.length=0;XB(a)},tob=function(a){for(;a.requestedModuleIdsQueue_.length;){var b=
a.requestedModuleIdsQueue_.shift().filter(function(c){return!this.getModuleInfo(c).isLoaded()},a);
if(b.length>0){a.loadModules_(b);return}}XB(a)};
WB.prototype.registerCallback=function(a,b){Array.isArray(a)||(a=[a]);for(var c=0;c<a.length;c++){var d=a[c],e=b,g=this.JSC$8778_callbackMap_;g[d]||(g[d]=[]);g[d].push(e)}};
WB.prototype.executeCallbacks_=function(a){for(var b=this.JSC$8778_callbackMap_[a],c=0;b&&c<b.length;c++)b[c](a)};
var vob=function(a,b,c,d,e){d=d===void 0?function(){return!0}:d;
e=e===void 0?{}:e;b=_.h(b);for(var g=b.next();!g.done;g=b.next()){g=g.value;var k=a.getModuleInfo(g);!e[g]&&d(k)&&(e[g]=!0,vob(a,k.deps_||[],c,d,e),c(k))}};
WB.prototype.dispose=function(){_.iia(_.yf.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$8778_callbackMap_={};this.isDisposed_=!0};
WB.prototype.isDisposed=function(){return this.isDisposed_};
_.yg=function(){return new WB};var wob=[5E3,2E4],xob=function(){this.JSC$7901_loader_=null;this.JSC$8786_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$8786_queue_=[];this.JSC$8786_extraEdges_=Object.create(null);this.JSC$8786_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.z(xob,job);_.f=xob.prototype;_.f.setAllModuleInfoString=function(){this.JSC$8786_currentlyLoadingModule_&&this.JSC$8786_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$8773_setLoaded()};
_.f.getModuleInfo=function(a){var b=this.JSC$8786_moduleInfoMap_[a];b||(b=new QB([],a),this.JSC$8786_moduleInfoMap_[a]=b);return b};
_.f.removeExtraEdge=function(a,b){if(this.JSC$8786_extraEdges_[a]){delete this.JSC$8786_extraEdges_[a][b];for(var c in this.JSC$8786_extraEdges_[a])return;delete this.JSC$8786_extraEdges_[a]}};
_.f.isModuleLoading=function(a){return!!this.loadingModules_[a]};
_.f.load=function(a){yob(this,[a]);return zob(this,a)};
_.f.loadMultiple=function(a){var b=this,c=Object.create(null),d=[];a.forEach(function(e){c[e]||(c[e]=zob(b,e),d.push(e))});
yob(this,d);return c};
_.f.beforeLoadModuleCode=function(a){var b;((b=this.JSC$8786_currentlyLoadingModule_)==null?void 0:b.getId())==="synthetic_module_overhead"&&this.JSC$8773_setLoaded();var c,d;Aob(this,(d=(c=this.JSC$8786_moduleInfoMap_[a])==null?void 0:c.deps_)!=null?d:[],function(e){e.module_=new PB},function(e){return!e.isLoaded()});
this.JSC$8786_currentlyLoadingModule_=this.getModuleInfo(a)};
_.f.JSC$8773_setLoaded=function(){if(this.JSC$8786_currentlyLoadingModule_){var a=this.JSC$8786_currentlyLoadingModule_.getId(),b=[];if(this.JSC$8786_extraEdges_[a]){for(var c=_.h(Object.keys(this.JSC$8786_extraEdges_[a])),d=c.next();!d.done;d=c.next())d=d.value,this.getModuleInfo(d).isLoaded()||(this.removeExtraEdge(a,d),b.push(d));this.loadMultiple(b)}this.JSC$8786_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$8786_currentlyLoadingModule_=null;(!this.isModuleLoading(a)&&/^sy[0-9a-z]{0,4}$/.test(a)||a==="synthetic_module_overhead")&&delete this.JSC$8786_moduleInfoMap_[a];this.unsetModulesAsLoading(a)}};
_.f.setModulesAsLoading=function(){var a=this;_.Id.apply(0,arguments).forEach(function(b){a.loadingModules_[b]=!0})};
_.f.unsetModulesAsLoading=function(){var a=this;_.Id.apply(0,arguments).forEach(function(b){delete a.loadingModules_[b]})};
var zob=function(a,b){return new _.kl(function(c,d){var e=a.getModuleInfo(b);e.isLoaded()?c(null):(e.registerCallback(function(){c(null)}),Unb(e,function(g){var k="Error loading "+b+": "+g;
g instanceof kx.ModuleLoadFailure&&g.url&&(k=k+", requested url: "+g.url.toString());d(Error(k))}))})},yob=function(a,b){b=b.filter(function(c){return!a.isModuleLoading(c)&&!a.getModuleInfo(c).isLoaded()});
b.length>0&&(a.setModulesAsLoading.apply(a,_.Be(b)),a.JSC$8786_queue_.push(b),Bob(a))},Bob=function(a){for(var b={};a.activeLoads_<Infinity&&a.JSC$8786_queue_.length>0;b={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})b.ids$jscomp$36=a.JSC$8786_queue_.shift().filter(function(c){return!a.getModuleInfo(c).isLoaded()}),b.ids$jscomp$36.length>0&&(a.activeLoads_++,b.finishLoad=function(c){return function(){a.activeLoads_--;
Bob(a);c.finishLoad=function(){}}}(b),_.Gz(b.ids$jscomp$36.map(function(c){return zob(a,c)})).then(function(c){return function(){(0,c.finishLoad)()}}(b)),b.attempt$jscomp$6=0,b.load$jscomp$1=function(c){return function(){if(Object.keys(a.JSC$8786_extraEdges_).length>0&&!a.JSC$7901_loader_.supportsExtraEdges)throw Error("qd");
a.JSC$7901_loader_.JSC$8765_loadModules(c.ids$jscomp$36,a.JSC$8786_moduleInfoMap_,{extraEdges:a.JSC$8786_extraEdges_,onError:function(d,e){var g=wob[c.attempt$jscomp$6++];g!==void 0?setTimeout(function(){(0,c.load$jscomp$1)()},g):(a.unsetModulesAsLoading.apply(a,_.Be(c.ids$jscomp$36)),(0,c.finishLoad)(),c.ids$jscomp$36.forEach(function(k){k=a.getModuleInfo(k);
if(!k.isLoaded())k.onError(new kx.ModuleLoadFailure(kx.ModuleLoadFailure.JSC$8775_Type.CONSECUTIVE_FAILURES,d,c.ids$jscomp$36,e))}))}})}}(b),(0,b.load$jscomp$1)())},Aob=function(a,b,c,d,e){d=d===void 0?function(){return!0}:d;
e=e===void 0?{}:e;b=_.h(b);for(var g=b.next();!g.done;g=b.next()){g=g.value;var k=a.getModuleInfo(g);!e[g]&&d(k)&&(e[g]=!0,Aob(a,k.deps_||[],c,d,e),c(k))}};var Cob=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var Yua=Symbol("td");window.JSCompiler_renameProperty=function(a){return a};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var Dob=!Cob||HTMLElement.es5Shimmed||_.ja.Reflect===void 0||_.ja.customElements===void 0||_.ja.customElements.polyfillWrapFlushCallback||!1,Eob,ERa=function(){var a=HTMLElement;if(Dob)return a;if(Eob!==void 0)return Eob;var b=_.ja.Reflect,c=function(){return b.construct(a,[],this.constructor)};
c.prototype=a.prototype;c.prototype.constructor=c;c.es5Shimmed=!0;Object.setPrototypeOf(c,a);return Eob=c},Fob=!1;Dob||Fob||(Fob=!0,_.ja.HTMLElement=ERa());/*

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 cva=/(url\()([^)]*)(\))/g,ava=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,bva,cm;var Im=!window.ShadyDOM||!window.ShadyDOM.inUse,Gob=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),Hob=!window.customElements.polyfillWrapFlushCallback,Iob;if(Iob=Im&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var Job=new CSSStyleSheet;Job.replaceSync("");var Kob=document.createElement("div");Kob.attachShadow({mode:"open"});Kob.shadowRoot.adoptedStyleSheets=[Job];Iob=Kob.shadowRoot.adoptedStyleSheets[0]===Job}catch(a){Iob=!1}
var Lob=Iob,Mob=window.Polymer&&window.Polymer.rootPath||eva(document.baseURI||window.location.href),rm=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,mwa=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,Mm=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,Nob=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Hm=window.Polymer&&window.Polymer.legacyOptimizations||!1,Lm=window.Polymer&&window.Polymer.legacyWarnings||!1,Oob=window.Polymer&&window.Polymer.syncInitialRender||
!1,tm=window.Polymer&&window.Polymer.legacyUndefined||!1,Pob=window.Polymer&&window.Polymer.orderedComputed||!1,YB=window.Polymer&&window.Polymer.removeNestedTemplates||!1,ZB=window.Polymer&&window.Polymer.fastDomIf||!1,$B=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,Qob=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,Rob=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var aC={},Sob={},vm=function(){return HTMLElement.apply(this,arguments)||this};
_.z(vm,HTMLElement);vm.import=function(a,b){return a?(a=aC[a]||Sob[a.toLowerCase()])&&b?a.querySelector(b):a:null};
vm.prototype.attributeChangedCallback=function(a,b,c){b!==c&&this.register()};
vm.prototype.register=function(a){if(a=a||this.id){if(Mm&&(aC[a]||Sob[a.toLowerCase()])!==void 0)throw aC[a]=Sob[a.toLowerCase()]=null,Error("ud`"+a);this.id=a;aC[a]=Sob[a.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.Vm.Object.defineProperties(vm.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var a=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;a=_.dm(this.getAttribute("assetpath")||"",a.baseURI);this.__assetpath=eva(a)}return this.__assetpath}}});
_.Vm.Object.defineProperties(vm,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
vm["import"]=vm.import;vm.prototype.modules=aC;customElements.define("dom-module",vm);var Tob=0,gva=0,em=[],Uob=0,fva=!1,Vob=document.createTextNode(""),Wob,Fm;(new window.MutationObserver(hva)).observe(Vob,{characterData:!0});_.bC={after:function(a){return{run:function(b){return window.setTimeout(b,a)},
cancel:function(b){window.clearTimeout(b)}}},
run:function(a,b){return window.setTimeout(a,b)},
cancel:function(a){window.clearTimeout(a)}};
_.ts={run:function(a){return window.requestAnimationFrame(a)},
cancel:function(a){window.cancelAnimationFrame(a)}};
Wob={run:function(a){return window.requestIdleCallback?window.requestIdleCallback(a):window.setTimeout(a,16)},
cancel:function(a){window.cancelIdleCallback?window.cancelIdleCallback(a):window.clearTimeout(a)}};
Fm={run:function(a){fva||(fva=!0,Vob.textContent=Uob++);em.push(a);return Tob++},
cancel:function(a){var b=a-gva;if(b>=0){if(!em[b])throw Error("vd`"+a);em[b]=null}}};var Xob=0,cC=function(a){var b=a.__mixinApplications;b||(b=new WeakMap,a.__mixinApplications=b);var c=Xob++;return function(d){var e=d.__mixinSet;if(e&&e[c])return d;var g=b,k=g.get(d);k||(k=a(d),g.set(d,k),d=Object.create(k.__mixinSet||e||null),d[c]=!0,k.__mixinSet=d);return k}};_.qm=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(a){return ShadyDOM.patch(a)}:function(a){return a};var Yob=cC(function(a){var b=function(){var c=a.call(this)||this;c.__dataEnabled=!1;c.__dataReady=!1;c.__dataInvalid=!1;c.__data={};c.__dataPending=null;c.__dataOld=null;c.__dataInstanceProps=null;c.__dataCounter=0;c.__serializing=!1;c._initializeProperties();return c};
_.z(b,a);b.createProperties=function(c){var d=this.prototype,e;for(e in c)e in d||d._createPropertyAccessor(e)};
b.attributeNameForProperty=function(c){return c.toLowerCase()};
b.typeForProperty=function(){};
b.prototype._createPropertyAccessor=function(c,d){this._addPropertyToAttributeMap(c);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[c]||(this.__dataHasAccessor[c]=!0,this._definePropertyAccessor(c,d))};
b.prototype._addPropertyToAttributeMap=function(c){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var d=this.__dataAttributes[c];d||(d=this.constructor.attributeNameForProperty(c),this.__dataAttributes[d]=c);return d};
b.prototype._definePropertyAccessor=function(c,d){Object.defineProperty(this,c,{get:function(){return this.__data[c]},
set:d?function(){}:function(e){this._setPendingProperty(c,e,!0)&&this._invalidateProperties()}})};
b.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
b.prototype._initializeProperties=function(){for(var c in this.__dataHasAccessor)this.hasOwnProperty(c)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[c]=this[c],delete this[c])};
b.prototype._initializeInstanceProperties=function(c){Object.assign(this,c)};
b.prototype._setProperty=function(c,d){this._setPendingProperty(c,d)&&this._invalidateProperties()};
b.prototype._getProperty=function(c){return this.__data[c]};
b.prototype._setPendingProperty=function(c,d){var e=this.__data[c],g=this._shouldPropertyChange(c,d,e);g&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||c in this.__dataOld||(this.__dataOld[c]=e),this.__data[c]=d,this.__dataPending[c]=d);return g};
b.prototype._isPropertyPending=function(c){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(c))};
b.prototype._invalidateProperties=function(){var c=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Fm.run(function(){c.__dataInvalid&&(c.__dataInvalid=!1,c._flushProperties())}))};
b.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
b.prototype._flushProperties=function(){this.__dataCounter++;var c=this.__data,d=this.__dataPending,e=this.__dataOld;this._shouldPropertiesChange(c,d,e)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(c,d,e));this.__dataCounter--};
b.prototype._shouldPropertiesChange=function(c,d){return!!d};
b.prototype._propertiesChanged=function(){};
b.prototype._shouldPropertyChange=function(c,d,e){return e!==d&&(e===e||d===d)};
b.prototype.attributeChangedCallback=function(c,d,e,g){d!==e&&this._attributeToProperty(c,e);a.prototype.attributeChangedCallback&&a.prototype.attributeChangedCallback.call(this,c,d,e,g)};
b.prototype._attributeToProperty=function(c,d,e){if(!this.__serializing){var g=this.__dataAttributes;c=g&&g[c]||c;this[c]=this._deserializeValue(d,e||this.constructor.typeForProperty(c))}};
b.prototype._propertyToAttribute=function(c,d,e){this.__serializing=!0;e=arguments.length<3?this[c]:e;this._valueToNodeAttribute(this,e,d||this.constructor.attributeNameForProperty(c));this.__serializing=!1};
b.prototype._valueToNodeAttribute=function(c,d,e){d=this._serializeValue(d);if(e==="class"||e==="name"||e==="slot")c=(0,_.qm)(c);d===void 0?c.removeAttribute(e):c.setAttribute(e,d===""&&window.trustedTypes?window.trustedTypes.emptyScript:d)};
b.prototype._serializeValue=function(c){switch(typeof c){case "boolean":return c?"":void 0;default:return c!=null?c.toString():void 0}};
b.prototype._deserializeValue=function(c,d){switch(d){case Boolean:return c!==null;case Number:return Number(c);default:return c}};
return b});var Zob=0,iva=[];var $ob=cC(function(a){function b(g){g=Object.getPrototypeOf(g);return g.prototype instanceof e?g:null}
function c(g){if(!g.hasOwnProperty("__ownProperties")){var k=null;if(g.hasOwnProperty("properties")){var m=g.properties;if(m){k={};for(var n in m){var r=m[n];k[n]=typeof r==="function"?{type:r}:r}}}g.__ownProperties=k}return g.__ownProperties}
var d=Yob(a),e=function(){return d.apply(this,arguments)||this};
_.z(e,d);e.finalize=function(){if(!this.hasOwnProperty("__finalized")){var g=b(this);g&&g.finalize();this.__finalized=!0;this._finalizeClass()}};
e._finalizeClass=function(){var g=c(this);g&&this.createProperties(g)};
e.typeForProperty=function(g){return(g=this._properties[g])&&g.type};
e.prototype._initializeProperties=function(){Zob++;this.constructor.finalize();d.prototype._initializeProperties.call(this)};
e.prototype.connectedCallback=function(){d.prototype.connectedCallback&&d.prototype.connectedCallback.call(this);this._enableProperties()};
e.prototype.disconnectedCallback=function(){d.prototype.disconnectedCallback&&d.prototype.disconnectedCallback.call(this)};
_.Vm.Object.defineProperties(e,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var g=this;if(!this.hasOwnProperty("__observedAttributes")){jva(this.prototype);var k=this._properties;this.__observedAttributes=k?Object.keys(k).map(function(m){return g.prototype._addPropertyToAttributeMap(m)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var g=b(this);this.__properties=Object.assign({},g&&g._properties,c(this))}return this.__properties}}});
return e});var kva={},lva=/-[a-z]/g,mva=/([A-Z])/g;for(var apb={},bpb=HTMLElement.prototype;bpb;){for(var cpb=Object.getOwnPropertyNames(bpb),dpb=0;dpb<cpb.length;dpb++)apb[cpb[dpb]]=!0;bpb=Object.getPrototypeOf(bpb)}var epb=window.trustedTypes?function(a){return trustedTypes.isHTML(a)||trustedTypes.isScript(a)||trustedTypes.isScriptURL(a)}:function(){return!1},fpb=cC(function(a){var b=Yob(a);
a=function(){return b.apply(this,arguments)||this};
_.z(a,b);a.createPropertiesForAttributes=function(){for(var c=this.observedAttributes,d=0;d<c.length;d++)this.prototype._createPropertyAccessor(fm(c[d]))};
a.attributeNameForProperty=function(c){return gm(c)};
a.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);b.prototype._initializeProperties.call(this)};
a.prototype._initializeProtoProperties=function(c){for(var d in c)this._setProperty(d,c[d])};
a.prototype._ensureAttribute=function(c,d){this.hasAttribute(c)||this._valueToNodeAttribute(this,d,c)};
a.prototype._serializeValue=function(c){switch(typeof c){case "object":if(c instanceof Date)return c.toString();if(c){if(epb(c))return c;try{return JSON.stringify(c)}catch(d){return""}}default:return b.prototype._serializeValue.call(this,c)}};
a.prototype._deserializeValue=function(c,d){switch(d){case Object:try{var e=JSON.parse(c)}catch(g){e=c}break;case Array:try{e=JSON.parse(c)}catch(g){e=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+c)}break;case Date:e=isNaN(c)?String(c):Number(c);e=new Date(e);break;default:e=b.prototype._deserializeValue.call(this,c,d)}return e};
a.prototype._definePropertyAccessor=function(c,d){if(!apb[c]){var e=this[c];e!==void 0&&(this.__data?this._setPendingProperty(c,e):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[c]=e))}b.prototype._definePropertyAccessor.call(this,c,d)};
a.prototype._hasAccessor=function(c){return this.__dataHasAccessor&&this.__dataHasAccessor[c]};
a.prototype._isPropertyPending=function(c){return!!(this.__dataPending&&c in this.__dataPending)};
return a});var gpb={"dom-if":!0,"dom-repeat":!0},hpb=!1,ipb=!1,jpb=function(){var a=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(b){return b}});
return function(b,c,d){c=c.getAttribute(d);a&&d.startsWith("on-")?b.setAttribute(d,a.createScript(c,d)):b.setAttribute(d,c)}}(),kpb=cC(function(a){var b=function(){return a.apply(this,arguments)||this};
_.z(b,a);b._parseTemplate=function(c,d){if(!c._templateInfo){var e=c._templateInfo={};e.nodeInfoList=[];e.nestedTemplate=!!d;e.stripWhiteSpace=d&&d.stripWhiteSpace||c.hasAttribute&&c.hasAttribute("strip-whitespace");this._parseTemplateContent(c,e,{parent:null})}return c._templateInfo};
b._parseTemplateContent=function(c,d,e){return this._parseTemplateNode(c.content,d,e)};
b._parseTemplateNode=function(c,d,e){var g=!1;c.localName!="template"||c.hasAttribute("preserve-content")?c.localName==="slot"&&(d.hasInsertionPoint=!0):g=this._parseTemplateNestedTemplate(c,d,e)||g;if(!hpb){hpb=!0;var k=document.createElement("textarea");k.placeholder="a";ipb=k.placeholder===k.textContent}ipb&&c.localName==="textarea"&&c.placeholder&&c.placeholder===c.textContent&&(c.textContent=null);c.firstChild&&this._parseTemplateChildNodes(c,d,e);c.hasAttributes&&c.hasAttributes()&&(g=this._parseTemplateNodeAttributes(c,
d,e)||g);return g||e.noted};
b._parseTemplateChildNodes=function(c,d,e){if(c.localName!=="script"&&c.localName!=="style")for(var g=c.firstChild,k=0,m;g;g=m){if(g.localName=="template"){var n=g.getAttribute("is");if(n&&gpb[n])for(m=g,m.removeAttribute("is"),g=m.ownerDocument.createElement(n),m.parentNode.replaceChild(g,m),g.appendChild(m);m.attributes.length;)n=m.attributes[0].name,jpb(g,m,n),m.removeAttribute(n)}m=g.nextSibling;if(g.nodeType===Node.TEXT_NODE){for(n=m;n&&n.nodeType===Node.TEXT_NODE;)g.textContent+=n.textContent,
m=n.nextSibling,c.removeChild(n),n=m;if(d.stripWhiteSpace&&!g.textContent.trim()){c.removeChild(g);continue}}n={parentIndex:k,parentInfo:e};this._parseTemplateNode(g,d,n)&&(n.infoIndex=d.nodeInfoList.push(n)-1);g.parentNode&&k++}};
b._parseTemplateNestedTemplate=function(c,d,e){d=this._parseTemplate(c,d);(d.content=c.content.ownerDocument.createDocumentFragment()).appendChild(c.content);e.templateInfo=d;return!0};
b._parseTemplateNodeAttributes=function(c,d,e){for(var g=!1,k=Array.from(c.attributes),m=k.length-1,n;n=k[m];m--)g=this._parseTemplateNodeAttribute(c,d,e,n.name,n.value)||g;return g};
b._parseTemplateNodeAttribute=function(c,d,e,g,k){return g.slice(0,3)==="on-"?(c.removeAttribute(g),e.events=e.events||[],e.events.push({name:g.slice(3),value:k}),!0):g==="id"?(e.id=k,!0):!1};
b._contentForTemplate=function(c){var d=c._templateInfo;return d&&d.content||c.content};
b.prototype._stampTemplate=function(c,d){c&&!c.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(c);d=d||this.constructor._parseTemplate(c);var e=d.nodeInfoList;c=document.importNode(d.content||c.content,!0);c.__noInsertionPoint=!d.hasInsertionPoint;var g=c.nodeList=Array(e.length);c.$={};for(var k=0,m=e.length,n=void 0;k<m&&(n=e[k]);k++){var r=g[k]=nva(c,n);n.id&&(c.$[n.id]=r);var t=r,u=n,w=d;u.templateInfo&&(t._templateInfo=u.templateInfo,t._parentTemplateInfo=
w);if(n.events&&n.events.length)for(t=0,u=n.events,w=void 0;t<u.length&&(w=u[t]);t++)this._addMethodEventListenerToNode(r,w.name,w.value,this)}return c};
b.prototype._addMethodEventListenerToNode=function(c,d,e,g){e=ova(g||c,e);this._addEventListenerToNode(c,d,e);return e};
b.prototype._addEventListenerToNode=function(c,d,e){c.addEventListener(d,e)};
b.prototype._removeEventListenerFromNode=function(c,d,e){c.removeEventListener(d,e)};
return b});var nm=0,sm=[],lpb={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},mpb=/[A-Z]/,npb=function(a,b,c,d,e){var g=e?im(a):a;if(b=b[g])for(g=0;g<b.length;g++){var k=b[g];if(k.info.lastRun!==nm&&(!e||uva(a,k.trigger))){k.info.lastRun=nm;k=k.info;for(var m=c,n=d,r=0,t=m.length-1,u=-1;r<=t;){var w=r+t>>1,A=n.get(m[w].methodInfo)-n.get(k.methodInfo);if(A<0)r=w+1;else if(A>0)t=w-1;else{u=w;break}}u<
0&&(u=t+1);m.splice(u,0,k)}}},Jva=[],opb=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"),eC=cC(function(a){var b=kpb(fpb(a));
a=function(){var c=b.call(this)||this;c.__isPropertyEffectsClient=!0;return c};
_.z(a,b);a.prototype._initializeProperties=function(){b.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};
a.prototype._registerHost=function(){if(dC.length){var c=dC[dC.length-1];c._enqueueClient(this);this.__dataHost=c}};
a.prototype._initializeProtoProperties=function(c){this.__data=Object.create(c);this.__dataPending=Object.create(c);this.__dataOld={}};
a.prototype._initializeInstanceProperties=function(c){var d=this.__readOnly,e;for(e in c)d&&d[e]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[e]=this.__dataPending[e]=c[e])};
a.prototype._addPropertyEffect=function(c,d,e){this._createPropertyAccessor(c,d=="__readOnly");var g=tva(this,d,!0)[c];g||(g=this[d][c]=[]);g.push(e)};
a.prototype._removePropertyEffect=function(c,d,e){c=tva(this,d,!0)[c];e=c.indexOf(e);e>=0&&c.splice(e,1)};
a.prototype._hasPropertyEffect=function(c,d){d=this[d];return!(!d||!d[c])};
a.prototype._hasReadOnlyEffect=function(c){return this._hasPropertyEffect(c,"__readOnly")};
a.prototype._hasNotifyEffect=function(c){return this._hasPropertyEffect(c,"__notifyEffects")};
a.prototype._hasReflectEffect=function(c){return this._hasPropertyEffect(c,"__reflectEffects")};
a.prototype._hasComputedEffect=function(c){return this._hasPropertyEffect(c,"__computeEffects")};
a.prototype._setPendingPropertyOrPath=function(c,d,e,g){if(g||im(Array.isArray(c)?c[0]:c)!==c){if(!g&&(g=mm(this,c),c=sva(this,c,d),!c||!b.prototype._shouldPropertyChange.call(this,c,d,g)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(c,d,e)){if(e=this.__dataLinkedPaths)for(var k in e)g=e[k],jm(k,c)?(g=km(k,g,c),this._setPendingPropertyOrPath(g,d,!0,!0)):jm(g,c)&&(g=km(g,k,c),this._setPendingPropertyOrPath(g,d,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[c])return this._setPendingProperty(c,
d,e);this[c]=d}return!1};
a.prototype._setUnmanagedPropertyToNode=function(c,d,e){if(e!==c[d]||typeof e=="object")d==="className"&&(c=(0,_.qm)(c)),c[d]=e};
a.prototype._setPendingProperty=function(c,d,e){var g=this.__dataHasPaths&&hm(c);if(this._shouldPropertyChange(c,d,(g?this.__dataTemp:this.__data)[c])){this.__dataPending||(this.__dataPending={},this.__dataOld={});c in this.__dataOld||(this.__dataOld[c]=this.__data[c]);g?this.__dataTemp[c]=d:this.__data[c]=d;this.__dataPending[c]=d;if(g||this.__notifyEffects&&this.__notifyEffects[c])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[c]=e;return!0}return!1};
a.prototype._setProperty=function(c,d){this._setPendingProperty(c,d,!0)&&this._invalidateProperties()};
a.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
a.prototype._enqueueClient=function(c){this.__dataPendingClients=this.__dataPendingClients||[];c!==this&&this.__dataPendingClients.push(c)};
a.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
a.prototype.__enableOrFlushClients=function(){var c=this.__dataPendingClients;if(c){this.__dataPendingClients=null;for(var d=0;d<c.length;d++){var e=c[d];e.__dataEnabled?e.__dataPending&&e._flushProperties():e._enableProperties()}}};
a.prototype._readyClients=function(){this.__enableOrFlushClients()};
a.prototype.setProperties=function(c,d){for(var e in c)!d&&this.__readOnly&&this.__readOnly[e]||this._setPendingPropertyOrPath(e,c[e],!0);this._invalidateProperties()};
a.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
a.prototype._propertiesChanged=function(c,d,e){c=this.__dataHasPaths;this.__dataHasPaths=!1;var g;if(g=this.__computeEffects)if(Pob){nm++;var k=Ava(this),m=[],n;for(n in d)npb(n,g,m,k,c);for(;n=m.shift();)Cva(this,"",d,e,n)&&npb(n.methodInfo,g,m,k,c);Object.assign(e,this.__dataOld);Object.assign(d,this.__dataPending);this.__dataPending=null}else for(k=d;om(this,g,k,e,c);)Object.assign(e,this.__dataOld),Object.assign(d,this.__dataPending),k=this.__dataPending,this.__dataPending=null;g=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(d,e,c);this._flushClients();om(this,this.__reflectEffects,d,e,c);om(this,this.__observeEffects,d,e,c);if(g){k=this.__notifyEffects;m=nm++;for(var r in g)if(g[r]){if(n=k){var t=k;n=m;var u=r,w=d,A=e,C=c,G=!1,J=C?im(u):u;if(t=t[J]){J=0;for(var I=t.length,R=void 0;J<I&&(R=t[J]);J++)R.info&&R.info.lastRun===n||C&&!uva(u,R.trigger)||(R.info&&(R.info.lastRun=n),R.fn(this,u,w,A,R.info,C,void 0),G=!0)}n=G}if(n)var ca=!0;else{if(n=c)n=r,u=d,w=im(n),w!==
n?(w=gm(w)+"-changed",wva(this,w,u[n],n),n=!0):n=!1;n&&(ca=!0)}}var V;ca&&(V=this.__dataHost)&&V._invalidateProperties&&V._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
a.prototype._propagatePropertyChanges=function(c,d,e){this.__propagateEffects&&om(this,this.__propagateEffects,c,d,e);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,c,d,e)};
a.prototype._runEffectsForTemplate=function(c,d,e,g){var k=this,m=function(n,r){om(k,c.propertyEffects,n,e,r,c.nodeList);for(var t=c.firstChild;t;t=t.nextSibling)k._runEffectsForTemplate(t,n,e,r)};
c.runEffects?c.runEffects(m,d,g):m(d,g)};
a.prototype.linkPaths=function(c,d){c=lm(c);d=lm(d);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[c]=d};
a.prototype.unlinkPaths=function(c){c=lm(c);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[c]};
a.prototype.notifySplices=function(c,d){var e={path:""};c=mm(this,c,e);Nva(this,c,e.path,d)};
a.prototype.get=function(c,d){return mm(d||this,c)};
a.prototype.set=function(c,d,e){e?sva(e,c,d):this.__readOnly&&this.__readOnly[c]||this._setPendingPropertyOrPath(c,d,!0)&&this._invalidateProperties()};
a.prototype.push=function(c){var d=_.Id.apply(1,arguments),e={path:""},g=mm(this,c,e),k=g.length,m=g.push.apply(g,_.Be(d));d.length&&um(this,g,e.path,k,d.length,[]);return m};
a.prototype.pop=function(c){var d={path:""};c=mm(this,c,d);var e=!!c.length,g=c.pop();e&&um(this,c,d.path,c.length,0,[g]);return g};
a.prototype.splice=function(c,d,e){var g=_.Id.apply(3,arguments),k={path:""},m=mm(this,c,k);d<0?d=m.length-Math.floor(-d):d&&(d=Math.floor(d));var n=arguments.length===2?m.splice(d):m.splice.apply(m,[d,e].concat(_.Be(g)));(g.length||n.length)&&um(this,m,k.path,d,g.length,n);return n};
a.prototype.shift=function(c){var d={path:""};c=mm(this,c,d);var e=!!c.length,g=c.shift();e&&um(this,c,d.path,0,0,[g]);return g};
a.prototype.unshift=function(c){var d=_.Id.apply(1,arguments),e={path:""},g=mm(this,c,e),k=g.unshift.apply(g,_.Be(d));d.length&&um(this,g,e.path,0,d.length,[]);return k};
a.prototype.notifyPath=function(c,d){if(arguments.length==1){var e={path:""};d=mm(this,c,e);e=e.path}else e=Array.isArray(c)?lm(c):c;this._setPendingPropertyOrPath(e,d,!0,!0)&&this._invalidateProperties()};
a.prototype._createReadOnlyProperty=function(c,d){this._addPropertyEffect(c,"__readOnly");d&&(this["_set"+(c[0].toUpperCase()+c.substring(1))]=function(e){this._setProperty(c,e)})};
a.prototype._createPropertyObserver=function(c,d,e){var g={property:c,method:d,dynamicFn:!!e};this._addPropertyEffect(c,"__observeEffects",{fn:vva,info:g,trigger:{name:c}});e&&this._addPropertyEffect(d,"__observeEffects",{fn:vva,info:g,trigger:{name:d}})};
a.prototype._createMethodObserver=function(c,d){var e=Lva(c);if(!e)throw Error("wd`"+c);Hva(this,e,"__observeEffects",Bva,null,d)};
a.prototype._createNotifyingProperty=function(c){this._addPropertyEffect(c,"__notifyEffects",{fn:xva,info:{eventName:gm(c)+"-changed",property:c}})};
a.prototype._createReflectedProperty=function(c){var d=this.constructor.attributeNameForProperty(c);d[0]==="-"?console.warn("Property "+c+" cannot be reflected to attribute "+d+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(c,"__reflectEffects",{fn:yva,info:{attrName:d}})};
a.prototype._createComputedProperty=function(c,d,e){var g=Lva(d);if(!g)throw Error("xd`"+d);d=Hva(this,g,"__computeEffects",Cva,c,e);tva(this,"__computeInfo")[c]=d};
a.prototype._marshalArgs=function(c,d,e){for(var g=this.__data,k=[],m=0,n=c.length;m<n;m++){var r=c[m],t=r.name,u=r.structured,w=r.wildcard,A=r.value;r.literal||(w?(r=jm(t,d),u=Mva(g,e,r?d:t),A={path:r?d:t,value:u,base:r?mm(g,t):u}):A=u?Mva(g,e,t):g[t]);if(tm&&!this._overrideLegacyUndefined&&A===void 0&&c.length>1)return sm;k[m]=A}return k};
a.addPropertyEffect=function(c,d,e){this.prototype._addPropertyEffect(c,d,e)};
a.createPropertyObserver=function(c,d,e){this.prototype._createPropertyObserver(c,d,e)};
a.createMethodObserver=function(c,d){this.prototype._createMethodObserver(c,d)};
a.createNotifyingProperty=function(c){this.prototype._createNotifyingProperty(c)};
a.createReadOnlyProperty=function(c,d){this.prototype._createReadOnlyProperty(c,d)};
a.createReflectedProperty=function(c){this.prototype._createReflectedProperty(c)};
a.createComputedProperty=function(c,d,e){this.prototype._createComputedProperty(c,d,e)};
a.bindTemplate=function(c){return this.prototype._bindTemplate(c)};
a.prototype._bindTemplate=function(c,d){var e=this.constructor._parseTemplate(c),g=this.__preBoundTemplateInfo==e;if(!g)for(var k in e.propertyEffects)this._createPropertyAccessor(k);d?(e=Object.create(e),e.wasPreBound=g,this.__templateInfo?(c=c._parentTemplateInfo||this.__templateInfo,d=c.lastChild,e.parent=c,c.lastChild=e,(e.previousSibling=d)?d.nextSibling=e:c.firstChild=e):this.__templateInfo=e):this.__preBoundTemplateInfo=e;return e};
a._addTemplatePropertyEffect=function(c,d,e){(c.hostProps=c.hostProps||{})[d]=!0;c=c.propertyEffects=c.propertyEffects||{};(c[d]=c[d]||[]).push(e)};
a.prototype._stampTemplate=function(c,d){d=d||this._bindTemplate(c,!0);dC.push(this);c=b.prototype._stampTemplate.call(this,c,d);dC.pop();d.nodeList=c.nodeList;if(!d.wasPreBound)for(var e=d.childNodes=[],g=c.firstChild;g;g=g.nextSibling)e.push(g);c.templateInfo=d;e=d.nodeList;g=d.nodeInfoList;if(g.length)for(var k=0;k<g.length;k++){var m=e[k],n=g[k].bindings;if(n)for(var r=0;r<n.length;r++){var t=n[r],u=m,w=t;if(w.isCompound){for(var A=u.__dataCompoundStorage||(u.__dataCompoundStorage={}),C=w.parts,
G=Array(C.length),J=0;J<C.length;J++)G[J]=C[J].literal;C=w.target;A[C]=G;w.literal&&w.kind=="property"&&(C==="className"&&(u=(0,_.qm)(u)),u[C]=w.literal)}Gva(m,this,t)}m.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(d,this.__data,null,!1),this._flushClients());return c};
a.prototype._removeBoundDom=function(c){c=c.templateInfo;var d=c.previousSibling,e=c.nextSibling,g=c.parent;d?d.nextSibling=e:g&&(g.firstChild=e);e?e.previousSibling=d:g&&(g.lastChild=d);c.nextSibling=c.previousSibling=null;c=c.childNodes;for(d=0;d<c.length;d++)e=c[d],(0,_.qm)((0,_.qm)(e).parentNode).removeChild(e)};
a._parseTemplateNode=function(c,d,e){var g=b._parseTemplateNode.call(this,c,d,e);if(c.nodeType===Node.TEXT_NODE){var k=this._parseBindings(c.textContent,d);k&&(c.textContent=Iva(k)||" ",Fva(this,d,e,"text","textContent",k),g=!0)}return g};
a._parseTemplateNodeAttribute=function(c,d,e,g,k){var m=this._parseBindings(k,d);if(m){k=g;var n="property";mpb.test(g)?n="attribute":g[g.length-1]=="$"&&(g=g.slice(0,-1),n="attribute");var r=Iva(m);r&&n=="attribute"&&(g=="class"&&c.hasAttribute("class")&&(r+=" "+c.getAttribute(g)),c.setAttribute(g,r));n=="attribute"&&k=="disable-upgrade$"&&c.setAttribute(g,"");c.localName==="input"&&k==="value"&&c.setAttribute(k,"");c.removeAttribute(k);n==="property"&&(g=fm(g));Fva(this,d,e,n,g,m,r);return!0}return b._parseTemplateNodeAttribute.call(this,
c,d,e,g,k)};
a._parseTemplateNestedTemplate=function(c,d,e){var g=b._parseTemplateNestedTemplate.call(this,c,d,e),k=c.parentNode,m=e.templateInfo,n=k.localName==="dom-if",r=k.localName==="dom-repeat";YB&&(n||r)&&(k.removeChild(c),e=e.parentInfo,e.templateInfo=m,e.noted=!0,g=!1);c=m.hostProps;if(ZB&&n)c&&(d.hostProps=Object.assign(d.hostProps||{},c),YB||(e.parentInfo.noted=!0));else for(var t in c)Fva(this,d,e,"property","_host_"+t,[{mode:"{",source:t,dependencies:[t],hostProp:!0}]);return g};
a._parseBindings=function(c,d){for(var e=[],g=0,k;(k=opb.exec(c))!==null;){k.index>g&&e.push({literal:c.slice(g,k.index)});g=k[1][0];var m=!!k[2];k=k[3].trim();var n=!1,r="",t=-1;g=="{"&&(t=k.indexOf("::"))>0&&(r=k.substring(t+2),k=k.substring(0,t),n=!0);t=Lva(k);var u=[];if(t){var w=t,A=w.args;w=w.methodName;for(var C=0;C<A.length;C++){var G=A[C];G.literal||u.push(G)}if((A=d.dynamicFns)&&A[w]||t.static)u.push(w),t.dynamicFn=!0}else u.push(k);e.push({source:k,mode:g,negate:m,customEvent:n,signature:t,
dependencies:u,event:r});g=opb.lastIndex}g&&g<c.length&&(c=c.substring(g))&&e.push({literal:c});return e.length?e:null};
a._evaluateBinding=function(c,d,e,g,k,m){c=d.signature?Bva(c,e,g,k,d.signature):e!=d.source?mm(c,d.source):m&&hm(e)?mm(c,e):c.__data[e];d.negate&&(c=!c);return c};
_.Vm.Object.defineProperties(a.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return lpb}}});
return a}),dC=[];var ppb=window.ShadyCSS&&window.ShadyCSS.cssBuild,fC=cC(function(a){function b(d,e,g,k){if(!ppb){for(var m=e.content.querySelectorAll("style"),n=Rva(e),r=Sva(g),t=e.content.firstElementChild,u=0;u<r.length;u++){var w=r[u];w.textContent=d._processStyleText(w.textContent,k);e.content.insertBefore(w,t)}for(t=r=0;t<n.length;t++)u=n[t],w=m[r],w!==u?(u=u.cloneNode(!0),w.parentNode.insertBefore(u,w)):r++,u.textContent=d._processStyleText(u.textContent,k)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(e,
g);if(Rob&&ppb&&Lob&&(e=e.content.querySelectorAll("style"))){var A="";Array.from(e).forEach(function(C){A+=C.textContent;C.parentNode.removeChild(C)});
d._styleSheet=new CSSStyleSheet;d._styleSheet.replaceSync(A)}}
var c=$ob(eC(a));a=function(){return c.call(this)||this};
_.z(a,c);a._finalizeClass=function(){c._finalizeClass.call(this);var d;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(d=this.__ownObservers)&&this.createObservers(d,this._properties);this._prepareTemplate()};
a._prepareTemplate=function(){var d=this.template;d&&(typeof d==="string"?(console.error("template getter must return HTMLTemplateElement"),d=null):Hm||(d=d.cloneNode(!0)));this.prototype._template=d};
a.createProperties=function(d){for(var e in d){var g=this.prototype,k=e,m=d[e],n=d;m.computed&&(m.readOnly=!0);m.computed&&(g._hasReadOnlyEffect(k)?console.warn("Cannot redefine computed property '"+k+"'."):g._createComputedProperty(k,m.computed,n));m.readOnly&&!g._hasReadOnlyEffect(k)?g._createReadOnlyProperty(k,!m.computed):m.readOnly===!1&&g._hasReadOnlyEffect(k)&&console.warn("Cannot make readOnly property '"+k+"' non-readOnly.");m.reflectToAttribute&&!g._hasReflectEffect(k)?g._createReflectedProperty(k):
m.reflectToAttribute===!1&&g._hasReflectEffect(k)&&console.warn("Cannot make reflected property '"+k+"' non-reflected.");m.notify&&!g._hasNotifyEffect(k)?g._createNotifyingProperty(k):m.notify===!1&&g._hasNotifyEffect(k)&&console.warn("Cannot make notify property '"+k+"' non-notify.");m.observer&&g._createPropertyObserver(k,m.observer,n[m.observer]);g._addPropertyToAttributeMap(k)}};
a.createObservers=function(d,e){for(var g=this.prototype,k=0;k<d.length;k++)g._createMethodObserver(d[k],e)};
a.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);c.prototype._initializeProperties.call(this);this.rootPath=Mob;this.importPath=this.constructor.importPath;var d=this.constructor;if(!d.hasOwnProperty("__propertyDefaults")){d.__propertyDefaults=null;var e=d._properties,g;for(g in e){var k=e[g];"value"in k&&(d.__propertyDefaults=d.__propertyDefaults||{},d.__propertyDefaults[g]=k)}}if(d=d.__propertyDefaults)for(var m in d)e=d[m],
this._canApplyPropertyDefault(m)&&(e=typeof e.value=="function"?e.value.call(this):e.value,this._hasAccessor(m)?this._setPendingProperty(m,e,!0):this[m]=e)};
a.prototype._canApplyPropertyDefault=function(d){return!this.hasOwnProperty(d)};
a._processStyleText=function(d,e){return dva(d,e)};
a._finalizeTemplate=function(d){var e=this.prototype._template;if(e&&!e.__polymerFinalized){e.__polymerFinalized=!0;var g=this.importPath;g=g?_.dm(g):"";b(this,e,d,g);this.prototype._bindTemplate(e)}};
a.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);c.prototype.connectedCallback.call(this)};
a.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);c.prototype.ready.call(this)};
a.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));c.prototype._readyClients.call(this)};
a.prototype._attachDom=function(d){var e=(0,_.qm)(this);if(e.attachShadow)return d?(e.shadowRoot||(e.attachShadow({mode:"open",shadyUpgradeFragment:d}),e.shadowRoot.appendChild(d),this.constructor._styleSheet&&(e.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),Oob&&window.ShadyDOM&&window.ShadyDOM.flushInitial(e.shadowRoot),e.shadowRoot):null;throw Error("zd");};
a.prototype.updateStyles=function(d){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,d)};
a.prototype.resolveUrl=function(d,e){!e&&this.importPath&&(e=_.dm(this.importPath));return _.dm(d,e)};
a._parseTemplateContent=function(d,e,g){e.dynamicFns=e.dynamicFns||this._properties;return c._parseTemplateContent.call(this,d,e,g)};
a._addTemplatePropertyEffect=function(d,e,g){!Lm||e in this._properties||g.info.part.signature&&g.info.part.signature.static||g.info.part.hostProp||d.nestedTemplate||console.warn("Property '"+e+"' used in template but not declared in 'properties'; attribute will not be observed.");return c._addTemplatePropertyEffect.call(this,d,e,g)};
_.Vm.Object.defineProperties(a,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var d=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof d==="function"&&(d=d());if(d===void 0){if(d=this.hasOwnProperty("is")){d=this.is;var e=null;if(d&&(!Mm||Nob)&&(e=vm.import(d,"template"),Mm&&!e))throw Error("yd`"+d);d=e}d=d||Object.getPrototypeOf(this.prototype).constructor.template}this._template=d}return this._template},
set:function(d){this._template=d}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var d=this.importMeta;d?this._importPath=eva(d.url):this._importPath=(d=vm.import(this.is))&&d.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return a});var qpb=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(a){return a}}),Zva=function(a,b){rpb(a,b);
this.value=b.reduce(function(c,d,e){return c+$va(d)+a[e+1]},a[0]).toString()},rpb;
Zva.prototype.toString=function(){return this.value};
_.spb=function(a){var b=_.Id.apply(1,arguments);rpb(a,b);var c=document.createElement("template");b=b.reduce(function(d,e,g){if(e instanceof HTMLTemplateElement)e=e.innerHTML;else if(e instanceof Zva)e=$va(e);else throw Error("Bd`"+e);return d+e+a[g+1]},a[0]);
qpb&&(b=qpb.createHTML(b));c.innerHTML=b;return c};
rpb=function(a,b){if(!Array.isArray(a)||!Array.isArray(a.raw)||b.length!==a.length-1)throw new TypeError("Cd");};var gC=fC(HTMLElement);var tpb=cC(function(a){var b=fC(a);a=function(){var c=b.call(this)||this;c.__lastItems=null;c.__lastMulti=null;c.__selectedMap=null;return c};
_.z(a,b);a.prototype.__updateSelection=function(c,d){var e=d.path;e=="items"?(d=d.base||[],e=this.__lastItems,c!==this.__lastMulti&&this.clearSelection(),e&&(e=Yva(d,e),this.__applySplices(e)),this.__lastItems=d,this.__lastMulti=c):d.path=="items.splices"?this.__applySplices(d.value.indexSplices):(c=e.slice(6),d=parseInt(c,10),c.indexOf(".")<0&&c==d&&this.__deselectChangedIdx(d))};
a.prototype.__applySplices=function(c){for(var d=this,e=this.__selectedMap,g={},k=0;k<c.length;g={s$jscomp$108:void 0},k++){g.s$jscomp$108=c[k];e.forEach(function(t){return function(u,w){u<t.s$jscomp$108.index||(u>=t.s$jscomp$108.index+t.s$jscomp$108.removed.length?e.set(w,u+t.s$jscomp$108.addedCount-t.s$jscomp$108.removed.length):e.set(w,-1))}}(g));
for(var m=0;m<g.s$jscomp$108.addedCount;m++){var n=g.s$jscomp$108.index+m;e.has(this.items[n])&&e.set(this.items[n],n)}}this.__updateLinks();var r=0;e.forEach(function(t,u){t<0?(d.multi?d.splice("selected",r,1):d.selected=d.selectedItem=null,e.delete(u)):r++})};
a.prototype.__updateLinks=function(){var c=this;this.__dataLinkedPaths={};if(this.multi){var d=0;this.__selectedMap.forEach(function(e){e>=0&&c.linkPaths("items."+e,"selected."+d++)})}else this.__selectedMap.forEach(function(e){c.linkPaths("selected","items."+e);
c.linkPaths("selectedItem","items."+e)})};
a.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
a.prototype.isSelected=function(c){return this.__selectedMap.has(c)};
a.prototype.isIndexSelected=function(c){return this.isSelected(this.items[c])};
a.prototype.__deselectChangedIdx=function(c){var d=this,e=this.__selectedIndexForItemIndex(c);if(e>=0){var g=0;this.__selectedMap.forEach(function(k,m){e==g++&&d.deselect(m)})}};
a.prototype.__selectedIndexForItemIndex=function(c){if(c=this.__dataLinkedPaths["items."+c])return parseInt(c.slice(9),10)};
a.prototype.deselect=function(c){var d=this.__selectedMap.get(c);if(d>=0){this.__selectedMap.delete(c);var e;this.multi&&(e=this.__selectedIndexForItemIndex(d));this.__updateLinks();this.multi?this.splice("selected",e,1):this.selected=this.selectedItem=null}};
a.prototype.deselectIndex=function(c){this.deselect(this.items[c])};
a.prototype.select=function(c){this.selectIndex(this.items.indexOf(c))};
a.prototype.selectIndex=function(c){var d=this.items[c];this.isSelected(d)?this.toggle&&this.deselectIndex(c):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(d,c),this.__updateLinks(),this.multi?this.push("selected",d):this.selected=this.selectedItem=d)};
_.Vm.Object.defineProperties(a,{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 a}),upb=tpb(gC),hC=function(){return upb.apply(this,arguments)||this};
_.z(hC,upb);_.Vm.Object.defineProperties(hC,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(hC.is,hC);var vpb=window.Polymer;window.Polymer=function(a){return window.Polymer._polymerFn(a)};
vpb&&Object.assign(Polymer,vpb);Polymer._polymerFn=function(){throw Error("Dd");};/*

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:dva,resolveUrl:_.dm,pathFromUrl:eva};Polymer.DomModule=vm;Polymer.Async={timeOut:_.bC,animationFrame:_.ts,idlePeriod:Wob,microTask:Fm};Polymer.dedupingMixin=cC;Polymer.wrap=_.qm;Polymer.PropertiesChanged=Yob;Polymer.telemetry={instanceCount:Zob,incrementInstanceCount:function(){Zob++},
registrations:iva,register:jva,dumpRegistrations:function(){iva.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=$ob;Polymer.CaseMap={dashToCamelCase:fm,camelToDashCase:gm};Polymer.PropertyAccessors=fpb;Polymer.TemplateStamp=kpb;Polymer.Path={isPath:hm,root:im,isAncestor:pva,isDescendant:jm,translate:km,matches:qva,normalize:lm,split:rva,get:mm,set:sva,isDeep:hm};Polymer.Settings={useShadow:Im,useNativeCSSProperties:Gob,useNativeCustomElements:Hob,get rootPath(){return Mob},setRootPath:function(a){Mob=a},
get sanitizeDOMValue(){return rm},setSanitizeDOMValue:function(a){rm=a},
get passiveTouchGestures(){return mwa},setPassiveTouchGestures:function(a){mwa=a},
get strictTemplatePolicy(){return Mm},setStrictTemplatePolicy:function(a){Mm=a},
get allowTemplateFromDomModule(){return Nob},setAllowTemplateFromDomModule:function(a){Nob=a},
get legacyOptimizations(){return Hm},setLegacyOptimizations:function(a){Hm=a},
get syncInitialRender(){return Oob},setSyncInitialRender:function(a){Oob=a},
get legacyUndefined(){return tm},setLegacyUndefined:function(a){tm=a},
get legacyWarnings(){return Lm},setLegacyWarnings:function(a){Lm=a},
get orderedComputed(){return Pob},setOrderedComputed:function(a){Pob=a},
get fastDomIf(){return ZB},setFastDomIf:function(a){ZB=a},
get removeNestedTemplates(){return YB},setRemoveNestedTemplates:function(a){YB=a},
get suppressTemplateNotifications(){return $B},setSuppressTemplateNotifications:$B};Polymer.rootPath!==void 0&&(Mob=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(rm=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(mwa=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(Mm=Polymer.strictTemplatePolicy);Nob=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(Hm=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(Oob=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(tm=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(Lm=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(Pob=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(ZB=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(YB=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&($B=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return rm},
set:function(a){rm=a}});Polymer.PropertyEffects=eC;Polymer.StyleGather={stylesFromModules:Qva,stylesFromModule:Pva,stylesFromTemplate:Rva,stylesFromModuleImports:Sva,cssFromModules:Uva,cssFromModule:Tva,cssFromTemplate:Vva,cssFromModuleImports:function(a){return(a=vm.import(a))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(a):""}};Polymer.ElementMixin=fC;Polymer.updateStyles=function(a){window.ShadyCSS&&window.ShadyCSS.styleDocument(a)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:Yva};Polymer.html=_.spb;Polymer.htmlLiteral=function(a){return new Zva(a,_.Id.apply(1,arguments))};Polymer.Element=gC;Polymer.ArraySelectorMixin=tpb;Polymer.ArraySelector=hC;var wpb=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,xpb=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,Gxa=/@media\s(.*)/;var dwa=null,cwa=window.HTMLImports&&window.HTMLImports.whenReady||null,ewa;var ypb=null,iC=null,jC=function(){this.customStyles=[];this.enqueued=!1;fwa(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},zpb=function(a){!a.enqueued&&iC&&(a.enqueued=!0,fwa(iC))};
jC.prototype.addCustomStyle=function(a){a.__seenByShadyCSS||(a.__seenByShadyCSS=!0,this.customStyles.push(a),zpb(this))};
jC.prototype.getStyleForCustomStyle=function(a){if(a.__shadyCSSCachedStyle)return a.__shadyCSSCachedStyle;var b;a.getStyle?b=a.getStyle():b=a;return b};
jC.prototype.processStyles=function(){for(var a=this.customStyles,b=0;b<a.length;b++){var c=a[b];if(!c.__shadyCSSCachedStyle){var d=this.getStyleForCustomStyle(c);d&&(d=d.__appliedElement||d,ypb&&ypb(d),c.__shadyCSSCachedStyle=d)}}return a};
jC.prototype.addCustomStyle=jC.prototype.addCustomStyle;jC.prototype.getStyleForCustomStyle=jC.prototype.getStyleForCustomStyle;jC.prototype.processStyles=jC.prototype.processStyles;Object.defineProperties(jC.prototype,{transformCallback:{get:function(){return ypb},
set:function(a){ypb=a}},
validateCallback:{get:function(){return iC},
set:function(a){var b=!1;iC||(b=!0);iC=a;b&&zpb(this)}}});var hwa=!(window.ShadyDOM&&window.ShadyDOM.inUse),gwa,Um;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(Um=window.ShadyCSS.cssBuild);var Apb=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?gwa=window.ShadyCSS.nativeCss:window.ShadyCSS?(iwa(window.ShadyCSS),window.ShadyCSS=void 0):iwa(window.WebComponents&&window.WebComponents.flags);var Dxa=gwa;var Bpb=new jC;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(a,b){Bpb.processStyles();awa(a,b)},
styleElement:function(){Bpb.processStyles()},
styleDocument:function(a){Bpb.processStyles();awa(document.body,a)},
getComputedStyleValue:function(a,b){return bwa(a,b)},
flushCustomStyles:function(){},
nativeCss:Dxa,nativeShadow:hwa,cssBuild:Um,disableRuntime:Apb});window.ShadyCSS.CustomStyleInterface=Bpb;var Cpb=window.ShadyCSS.CustomStyleInterface,kC=function(){var a=HTMLElement.call(this)||this;a._style=null;Cpb.addCustomStyle(a);return a};
_.z(kC,HTMLElement);kC.prototype.getStyle=function(){if(this._style)return this._style;var a=this.querySelector("style");if(!a)return null;this._style=a;var b=a.getAttribute("include");b&&(a.removeAttribute("include"),a.textContent=Uva(b)+a.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
kC.prototype.getStyle=kC.prototype.getStyle;window.customElements.define("custom-style",kC);Polymer.CustomStyle=kC;var lC=function(){this._timer=this._callback=this._asyncModule=null},mC,Epb;
lC.prototype.setConfig=function(a,b){var c=this;this._asyncModule=a;this._callback=b;this._timer=this._asyncModule.run(function(){c._timer=null;mC.delete(c);c._callback()})};
lC.prototype.cancel=function(){this.isActive()&&(Dpb(this),mC.delete(this))};
var Dpb=function(a){a.isActive()&&(a._asyncModule.cancel(a._timer),a._timer=null)};
lC.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
lC.prototype.isActive=function(){return this._timer!=null};
_.nC=function(a,b,c){a instanceof lC?Dpb(a):a=new lC;a.setConfig(b,c);return a};
mC=new Set;_.oC=function(a){mC.add(a)};
Epb=function(){var a=!!mC.size;mC.forEach(function(b){try{b.flush()}catch(c){setTimeout(function(){throw c;})}});
return a};var kwa=typeof document.head.style.touchAction==="string",jwa=["mousedown","mousemove","mouseup","click"],twa=[0,1,4,2],Fpb;try{Fpb=(new MouseEvent("test",{buttons:1})).buttons===1}catch(a){Fpb=!1}var swa=Fpb,lwa=!1;(function(){try{var a=Object.defineProperty({},"passive",{get:function(){lwa=!0}});
window.addEventListener("test",null,a);window.removeEventListener("test",null,a)}catch(b){}})();
var owa=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),pwa=[],Gpb={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},Fwa={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},qwa=function(a){var b=a.sourceCapabilities;if(!b||b.firesTouchEvents)if(a.__polymerGesturesHandled={skip:!0},a.type==="click"){b=!1;for(var c=xwa(a),d=0;d<c.length;d++){if(c[d].nodeType===Node.ELEMENT_NODE)if(c[d].localName==="label")pwa.push(c[d]);
else if(Gpb[c[d].localName]){var e=c[d];var g=Array.prototype.slice.call(e.labels||[]);if(!g.length){g=[];try{var k=e.getRootNode();if(e.id){var m=k.querySelectorAll("label[for = '"+e.id+"']");for(e=0;e<m.length;e++)g.push(m[e])}}catch(n){}}for(e=0;e<g.length;e++)b=b||pwa.indexOf(g[e])>-1}if(c[d]===Hpb)return}b||(a.preventDefault(),a.stopPropagation())}},Hpb=null,pC=null,zwa=0,Awa=0,ywa=-1,Bwa=!1;
document.addEventListener("touchend",function(a){pC||rwa(!0);Hpb=xwa(a)[0];pC=_.nC(pC,_.bC.after(2500),function(){rwa();pC=Hpb=null})},lwa?{passive:!0}:!1);
var xwa=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(a){return a.composedPath&&a.composedPath()||[]},Bm={},zm=[];
Cwa({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){ym(this.info)},
mousedown:function(a){if(xm(a)){var b=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a),c=this;vwa(this.info,function(d){xm(d)||(Gm("up",b,d),ym(c.info))},function(d){xm(d)&&Gm("up",b,d);
ym(c.info)});
Gm("down",b,a)}},
touchstart:function(a){Gm("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a),a.changedTouches[0],a)},
touchend:function(a){Gm("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a),a.changedTouches[0],a)}});
Cwa({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(a){this.moves.length>2&&this.moves.shift();this.moves.push(a)},
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;ym(this.info)},
mousedown:function(a){if(xm(a)){var b=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a),c=this,d=function(e){var g=e.clientX,k=e.clientY;Dwa(c.info,g,k)&&(c.info.state=c.info.started?e.type==="mouseup"?"end":"track":"start",c.info.state==="start"&&Am("tap"),c.info.addMove({x:g,y:k}),xm(e)||(c.info.state="end",ym(c.info)),b&&Ewa(c.info,b,e),c.info.started=!0)};
vwa(this.info,d,function(e){c.info.started&&d(e);ym(c.info)});
this.info.x=a.clientX;this.info.y=a.clientY}},
touchstart:function(a){a=a.changedTouches[0];this.info.x=a.clientX;this.info.y=a.clientY},
touchmove:function(a){var b=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a);a=a.changedTouches[0];var c=a.clientX,d=a.clientY;Dwa(this.info,c,d)&&(this.info.state==="start"&&Am("tap"),this.info.addMove({x:c,y:d}),Ewa(this.info,b,a),this.info.state="track",this.info.started=!0)},
touchend:function(a){var b=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a);a=a.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:a.clientX,y:a.clientY}),Ewa(this.info,b,a))}});
Cwa({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(a){xm(a)&&(this.info.x=a.clientX,this.info.y=a.clientY)},
click:function(a){xm(a)&&Gwa(this.info,a)},
touchstart:function(a){a=a.changedTouches[0];this.info.x=a.clientX;this.info.y=a.clientY},
touchend:function(a){Gwa(this.info,a.changedTouches[0],a)}});var Ipb=cC(function(a){var b=function(){return a.apply(this,arguments)||this};
_.z(b,a);b.prototype._addEventListenerToNode=function(c,d,e){Cm(c,d,e)||a.prototype._addEventListenerToNode.call(this,c,d,e)};
b.prototype._removeEventListenerFromNode=function(c,d,e){Dm(c,d,e)||a.prototype._removeEventListenerFromNode.call(this,c,d,e)};
return b});var qC=cC(function(a){var b=function(){return a.apply(this,arguments)||this};
_.z(b,a);b.prototype._shouldPropertyChange=function(c,d,e){return Hwa(this,c,d,e,!0)};
return b}),Jpb=cC(function(a){var b=function(){return a.apply(this,arguments)||this};
_.z(b,a);b.prototype._shouldPropertyChange=function(c,d,e){return Hwa(this,c,d,e,this.mutableData)};
_.Vm.Object.defineProperties(b,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return b});
qC._mutablePropertyChange=Hwa;var Iwa=!1;var Kpb=Ipb(Jpb(eC(HTMLElement))),rC=function(){var a=Kpb.call(this)||this;if(Mm)throw Error("Ed");a.root=null;a.$=null;a.__children=null;return a};
_.z(rC,Kpb);_.f=rC.prototype;_.f.attributeChangedCallback=function(){this.mutableData=!0};
_.f.connectedCallback=function(){Jwa()||(this.style.display="none");this.render()};
_.f.disconnectedCallback=function(){this.__removeChildren()};
_.f.__insertChildren=function(){(0,_.qm)((0,_.qm)(this).parentNode).insertBefore(this.root,this)};
_.f.__removeChildren=function(){if(this.__children)for(var a=0;a<this.__children.length;a++)this.root.appendChild(this.__children[a])};
_.f.render=function(){var a=this;if(!this.__children){var b=b||this.querySelector("template");if(!b){var c=new MutationObserver(function(){if(b=a.querySelector("template"))c.disconnect(),a.render();else throw Error("Fd");});
c.observe(this,{childList:!0});return}this.root=this._stampTemplate(b);this.$=this.root.$;this.__children=[];for(var d=this.root.firstChild;d;d=d.nextSibling)this.__children[this.__children.length]=d;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.Vm.Object.defineProperties(rC,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",rC);Polymer.Debouncer=lC;Polymer.Gestures={gestures:Bm,recognizers:zm,deepTargetFind:wwa,addListener:Cm,removeListener:Dm,register:Cwa,setTouchAction:_.Em,prevent:Am,resetMouseCanceller:function(){pC&&pC.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:Cm,remove:Dm};Polymer.GestureEventListeners=Ipb;Polymer.MutableData=qC;Polymer.OptionalMutableData=Jpb;Polymer.DomBind=rC;_.sC=function(){do{var a=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var b=Epb()}while(a||b)};var Kwa=null;Lwa.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Lwa,writable:!0}});var Twa=eC(Lwa),Swa=qC(Twa),Lpb=eC(function(){}),Jm=function(a){var b=Lpb.call(this)||this;
b._configureProperties(a);b.root=b._stampTemplate(b.__dataHost);var c=[];b.children=c;for(var d=b.root.firstChild;d;d=d.nextSibling)c.push(d),d.__templatizeInstance=b;b.__templatizeOwner&&b.__templatizeOwner.__hideTemplateChildren__&&b._showHideChildren(!0);c=b.__templatizeOptions;(a&&c.instanceProps||!c.instanceProps)&&b._enableProperties();return b};
_.z(Jm,Lpb);_.f=Jm.prototype;_.f._configureProperties=function(a){if(this.__templatizeOptions.forwardHostProp)for(var b in this.__hostProps)this._setPendingProperty(b,this.__dataHost["_host_"+b]);for(var c in a)this._setPendingProperty(c,a[c])};
_.f.forwardHostProp=function(a,b){this._setPendingPropertyOrPath(a,b,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.f._addEventListenerToNode=function(a,b,c){var d=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(a,b,function(g){g.model=d;c(g)});
else{var e=this.__dataHost.__dataHost;e&&e._addEventListenerToNode(a,b,c)}};
_.f._showHideChildren=function(a){Nwa(a,this.children)};
_.f._setUnmanagedPropertyToNode=function(a,b,c){a.__hideTemplateChildren__&&a.nodeType==Node.TEXT_NODE&&b=="textContent"?a.__polymerTextContent__=c:Lpb.prototype._setUnmanagedPropertyToNode.call(this,a,b,c)};
_.f.dispatchEvent=function(){return!0};
_.Vm.Object.defineProperties(Jm.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var a=this.__parentModel;if(!a){var b;a=this;do a=a.__dataHost.__dataHost;while((b=a.__templatizeOptions)&&!b.parentModel);this.__parentModel=a}return a}}});
var Pwa=qC(Jm);var tC=function(){var a=gC.call(this)||this;a.__renderDebouncer=null;a._lastIf=!1;a.__hideTemplateChildren__=!1;return a};
_.z(tC,gC);_.f=tC.prototype;_.f.__debounceRender=function(){var a=this;this.__renderDebouncer=_.nC(this.__renderDebouncer,Fm,function(){return a.__render()});
_.oC(this.__renderDebouncer)};
_.f.disconnectedCallback=function(){gC.prototype.disconnectedCallback.call(this);var a=(0,_.qm)(this).parentNode;a&&(a.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.qm)(a).host)||this.__teardownInstance()};
_.f.connectedCallback=function(){gC.prototype.connectedCallback.call(this);Jwa()||(this.style.display="none");this.if&&this.__debounceRender()};
_.f.__ensureTemplate=function(){var a=this;if(!this.__template){var b=this._templateInfo?this:(0,_.qm)(this).querySelector("template");if(!b){var c=new MutationObserver(function(){if((0,_.qm)(a).querySelector("template"))c.disconnect(),a.__render();else throw Error("Id");});
c.observe(this,{childList:!0});return!1}this.__template=b}return!0};
_.f.__ensureInstance=function(){var a=(0,_.qm)(this).parentNode;if(this.__hasInstance()){var b=this.__getInstanceNodes();if(b&&b.length&&(0,_.qm)(this).previousSibling!==b[b.length-1])for(var c=0,d=void 0;c<b.length&&(d=b[c]);c++)(0,_.qm)(a).insertBefore(d,this)}else{if(!a||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(a)}return!0};
_.f.render=function(){_.sC()};
_.f.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();$B&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.f.__hasInstance=function(){};
_.f.__getInstanceNodes=function(){};
_.f.__createAndInsertInstance=function(){};
_.f.__teardownInstance=function(){};
_.f._showHideChildren=function(){};
_.Vm.Object.defineProperties(tC,{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:tC.prototype.__debounceRender},restamp:{type:Boolean,observer:tC.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var Mpb=function(){var a=tC.call(this)||this;a.__instance=null;a.__syncInfo=null;return a};
_.z(Mpb,tC);_.f=Mpb.prototype;_.f.__hasInstance=function(){return!!this.__instance};
_.f.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.f.__createAndInsertInstance=function(a){var b=this,c=this.__dataHost||this;if(Mm&&!this.__dataHost)throw Error("Gd");var d=c._bindTemplate(this.__template,!0);d.runEffects=function(e,g,k){var m=b.__syncInfo;if(b.if)m&&(b.__syncInfo=null,b._showHideChildren(),g=Object.assign(m.changedProps,g)),e(g,k);else if(b.__instance)if(m||(m=b.__syncInfo={runEffects:e,changedProps:{}}),k)for(var n in g)e=im(n),m.changedProps[e]=b.__dataHost[e];else Object.assign(m.changedProps,g)};
this.__instance=c._stampTemplate(this.__template,d);(0,_.qm)(a).insertBefore(this.__instance,this)};
_.f.__syncHostProperties=function(){var a=this.__syncInfo;a&&(this.__syncInfo=null,a.runEffects(a.changedProps,!1))};
_.f.__teardownInstance=function(){var a=this.__dataHost||this;this.__instance&&(a._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.f._showHideChildren=function(){var a=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==a&&(this.__instance.__hidden=a,Nwa(a,this.__instance.templateInfo.childNodes));a||this.__syncHostProperties()};
var Npb=function(){var a=tC.call(this)||this;a.__ctor=null;a.__instance=null;a.__invalidProps=null;return a};
_.z(Npb,tC);_.f=Npb.prototype;_.f.__hasInstance=function(){return!!this.__instance};
_.f.__getInstanceNodes=function(){return this.__instance.children};
_.f.__createAndInsertInstance=function(a){this.__ctor||(this.__ctor=Km(this.__template,this,{mutableData:!0,forwardHostProp:function(b,c){this.__instance&&(this.if?this.__instance.forwardHostProp(b,c):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[im(b)]=!0))}}));
this.__instance=new this.__ctor;(0,_.qm)(a).insertBefore(this.__instance.root,this)};
_.f.__teardownInstance=function(){if(this.__instance){var a=this.__instance.children;if(a&&a.length){var b=(0,_.qm)(a[0]).parentNode;if(b){b=(0,_.qm)(b);for(var c=0,d=void 0;c<a.length&&(d=a[c]);c++)b.removeChild(d)}}this.__instance=this.__invalidProps=null}};
_.f.__syncHostProperties=function(){var a=this.__invalidProps;if(a){this.__invalidProps=null;for(var b in a)this.__instance._setPendingProperty(b,this.__dataHost[b]);this.__instance._flushProperties()}};
_.f._showHideChildren=function(){var a=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==a&&(this.__instance.__hidden=a,this.__instance._showHideChildren(a));a||this.__syncHostProperties()};
_.sr=ZB?Mpb:Npb;customElements.define(_.sr.is,_.sr);Polymer.enqueueDebouncer=_.oC;Polymer.flush=_.sC;Polymer.Templatize={templatize:Km,modelForElement:Zwa};Polymer.TemplateInstanceBase=Jm;Polymer.DomIf=_.sr;var Opb=Jpb(gC),rr=function(){var a=Opb.call(this)||this;a.__instances=[];a.__renderDebouncer=null;a.__itemsIdxToInstIdx={};a.__chunkCount=null;a.__renderStartTime=null;a.__itemsArrayChanged=!1;a.__shouldMeasureChunk=!1;a.__shouldContinueChunking=!1;a.__chunkingId=0;a.__sortFn=null;a.__filterFn=null;a.__observePaths=null;a.__ctor=null;a.__isDetached=!0;a.template=null;return a};
_.z(rr,Opb);_.f=rr.prototype;_.f.disconnectedCallback=function(){Opb.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var a=0;a<this.__instances.length;a++)this.__detachInstance(a);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.f.connectedCallback=function(){Opb.prototype.connectedCallback.call(this);Jwa()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var a=(0,_.qm)((0,_.qm)(this).parentNode),b=0;b<this.__instances.length;b++)this.__attachInstance(b,a);this.__chunkingId&&this.__render()}};
_.f.__ensureTemplatized=function(){var a=this;if(!this.__ctor){var b=this.template=this._templateInfo?this:this.querySelector("template");if(!b){var c=new MutationObserver(function(){if(a.querySelector("template"))c.disconnect(),a.__render();else throw Error("Jd");});
c.observe(this,{childList:!0});return!1}var d={};d[this.as]=!0;d[this.indexAs]=!0;d[this.itemsIndexAs]=!0;this.__ctor=Km(b,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:d,forwardHostProp:function(e,g){for(var k=this.__instances,m=0,n=void 0;m<k.length&&(n=k[m]);m++)n.forwardHostProp(e,g)},
notifyInstanceProp:function(e,g,k){qva(this.as,g)&&(e=e[this.itemsIndexAs],g==this.as&&(this.items[e]=k),g=km(this.as,"items."+e,g),this.notifyPath(g,k))}})}return!0};
_.f.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.f.__functionFromPropertyValue=function(a){if(typeof a==="string"){var b=this.__getMethodHost();return function(){return b[a].apply(b,arguments)}}return a};
_.f.__sortChanged=function(a){this.__sortFn=this.__functionFromPropertyValue(a);this.items&&this.__debounceRender(this.__render)};
_.f.__filterChanged=function(a){this.__filterFn=this.__functionFromPropertyValue(a);this.items&&this.__debounceRender(this.__render)};
_.f.__computeFrameTime=function(a){return Math.ceil(1E3/a)};
_.f.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.f.__handleObservedPaths=function(a){if(this.__sortFn||this.__filterFn)if(!a)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var b=this.__observePaths,c=0;c<b.length;c++)a.indexOf(b[c])===0&&this.__debounceRender(this.__render,this.delay)};
_.f.__itemsChanged=function(a){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(a.path,a.value)||(a.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.f.__debounceRender=function(a,b){b=b===void 0?0:b;this.__renderDebouncer=_.nC(this.__renderDebouncer,b>0?_.bC.after(b):Fm,a.bind(this));_.oC(this.__renderDebouncer)};
_.f.render=function(){this.__debounceRender(this.__render);_.sC()};
_.f.__render=function(){var a=this;if(this.__ensureTemplatized()){var b=this.items||[],c=this.__sortAndFilterItems(b),d=this.__calculateLimit(c.length);this.__updateInstances(b,d,c);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){a.__chunkingId=null;a.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);$B&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.f.__sortAndFilterItems=function(a){for(var b=this,c=Array(a.length),d=0;d<a.length;d++)c[d]=d;this.__filterFn&&(c=c.filter(function(e,g,k){return b.__filterFn(a[e],g,k)}));
this.__sortFn&&c.sort(function(e,g){return b.__sortFn(a[e],a[g])});
return c};
_.f.__calculateLimit=function(a){var b=a,c=this.__instances.length;if(this.initialCount){var d;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(b=Math.min(a,this.initialCount),this.__chunkCount=(d=Math.max(b-c,0))||1):(d=Math.min(Math.max(a-c,0),this.__chunkCount),b=Math.min(c+d,a));this.__shouldMeasureChunk=d===this.__chunkCount;this.__shouldContinueChunking=b<a;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return b};
_.f.__continueChunking=function(){if(this.__shouldMeasureChunk){var a=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/a*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.f.__updateInstances=function(a,b,c){var d=this.__itemsIdxToInstIdx={},e;for(e=0;e<b;e++){var g=this.__instances[e],k=c[e],m=a[k];d[k]=e;g?(g._setPendingProperty(this.as,m),g._setPendingProperty(this.indexAs,e),g._setPendingProperty(this.itemsIndexAs,k),g._flushProperties()):this.__insertInstance(m,e,k)}for(a=this.__instances.length-1;a>=e;a--)this.__detachAndRemoveInstance(a)};
_.f.__detachInstance=function(a){a=this.__instances[a];for(var b=(0,_.qm)(a.root),c=0;c<a.children.length;c++)b.appendChild(a.children[c]);return a};
_.f.__attachInstance=function(a,b){b.insertBefore(this.__instances[a].root,this)};
_.f.__detachAndRemoveInstance=function(a){this.__detachInstance(a);this.__instances.splice(a,1)};
_.f.__stampInstance=function(a,b,c){var d={};d[this.as]=a;d[this.indexAs]=b;d[this.itemsIndexAs]=c;return new this.__ctor(d)};
_.f.__insertInstance=function(a,b,c){a=this.__stampInstance(a,b,c);c=(c=this.__instances[b+1])?c.children[0]:this;(0,_.qm)((0,_.qm)(this).parentNode).insertBefore(a.root,c);return this.__instances[b]=a};
_.f._showHideChildren=function(a){for(var b=0;b<this.__instances.length;b++)this.__instances[b]._showHideChildren(a)};
_.f.__handleItemPath=function(a,b){var c=a.slice(6),d=c.indexOf(".");a=d<0?c:c.substring(0,d);if(a==parseInt(a,10)){c=d<0?"":c.substring(d+1);this.__handleObservedPaths(c);if(a=this.__instances[this.__itemsIdxToInstIdx[a]])a._setPendingPropertyOrPath(this.as+(c?"."+c:""),b,!1,!0),a._flushProperties();return!0}};
_.f.itemForElement=function(a){return(a=this.modelForElement(a))&&a[this.as]};
_.f.indexForElement=function(a){return(a=this.modelForElement(a))&&a[this.indexAs]};
_.f.modelForElement=function(a){return Zwa(this.template,a)};
_.Vm.Object.defineProperties(rr,{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:rr.prototype.__sortChanged},filter:{type:Function,observer:rr.prototype.__filterChanged},observe:{type:String,observer:rr.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!$B,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.*)"]}}});
rr.prototype._setRenderedItemCount=function(){};
customElements.define(rr.is,rr);Polymer.DomRepeat=rr;var Ppb=function(a,b){var c=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=a;this.callback=b;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){c._schedule()};
this.connect();this._schedule()},Qpb=function(a){var b=(0,_.qm)(a);
if(Nm(a))return b.assignedNodes({flatten:!0});a=[];for(var c=0;c<b.childNodes.length;c++){var d=b.childNodes[c];Nm(d)?a.push.apply(a,_.Be((0,_.qm)(d).assignedNodes({flatten:!0}))):a.push(d)}return a};
_.f=Ppb.prototype;_.f.connect=function(){var a=this;Nm(this._target)?this._listenSlots([this._target]):(0,_.qm)(this._target).children&&(this._listenSlots((0,_.qm)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(b){a._processMutations(b)}):(this._nativeChildrenObserver=new MutationObserver(function(b){a._processMutations(b)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.f.disconnect=function(){Nm(this._target)?this._unlistenSlots([this._target]):(0,_.qm)(this._target).children&&(this._unlistenSlots((0,_.qm)(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};
_.f._schedule=function(){var a=this;this._scheduled||(this._scheduled=!0,Fm.run(function(){return a.flush()}))};
_.f._processMutations=function(a){this._processSlotMutations(a);this.flush()};
_.f._processSlotMutations=function(a){if(a)for(var b=0;b<a.length;b++){var c=a[b];c.addedNodes&&this._listenSlots(c.addedNodes);c.removedNodes&&this._unlistenSlots(c.removedNodes)}};
_.f.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 a={target:this._target,addedNodes:[],removedNodes:[]},b=Qpb(this._target),c=Yva(b,this._effectiveNodes),d=0,e=void 0;d<c.length&&(e=c[d]);d++)for(var g=0,k=void 0;g<e.removed.length&&(k=e.removed[g]);g++)a.removedNodes.push(k);
d=0;for(e=void 0;d<c.length&&(e=c[d]);d++)for(g=e.index;g<e.index+e.addedCount;g++)a.addedNodes.push(b[g]);this._effectiveNodes=b;b=!1;if(a.addedNodes.length||a.removedNodes.length)b=!0,this.callback.call(this._target,a);return b};
_.f._listenSlots=function(a){for(var b=0;b<a.length;b++){var c=a[b];Nm(c)&&c.addEventListener("slotchange",this._boundSchedule)}};
_.f._unlistenSlots=function(a){for(var b=0;b<a.length;b++){var c=a[b];Nm(c)&&c.removeEventListener("slotchange",this._boundSchedule)}};var uC=Element.prototype,Rpb=uC.matches||uC.matchesSelector||uC.mozMatchesSelector||uC.msMatchesSelector||uC.oMatchesSelector||uC.webkitMatchesSelector,Spb=function(a,b){return Rpb.call(a,b)},Om=function(a){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(a);
this.node=a},Wpb;
_.f=Om.prototype;_.f.observeNodes=function(a){return new Ppb(this.node,a)};
_.f.unobserveNodes=function(a){a.disconnect()};
_.f.notifyObserver=function(){};
_.f.deepContains=function(a){if((0,_.qm)(this.node).contains(a))return!0;var b=a;for(a=a.ownerDocument;b&&b!==a&&b!==this.node;)b=(0,_.qm)(b).parentNode||(0,_.qm)(b).host;return b===this.node};
_.f.getOwnerRoot=function(){return(0,_.qm)(this.node).getRootNode()};
_.f.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.qm)(this.node).assignedNodes({flatten:!0}):[]};
_.f.getDestinationInsertionPoints=function(){for(var a=[],b=(0,_.qm)(this.node).assignedSlot;b;)a.push(b),b=(0,_.qm)(b).assignedSlot;return a};
_.f.importNode=function(a,b){return(0,_.qm)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(a,b)};
_.f.getEffectiveChildNodes=function(){return Qpb(this.node)};
_.f.queryDistributedElements=function(a){for(var b=this.getEffectiveChildNodes(),c=[],d=0,e=b.length,g=void 0;d<e&&(g=b[d]);d++)g.nodeType===Node.ELEMENT_NODE&&Spb(g,a)&&c.push(g);return c};
_.Vm.Object.defineProperties(Om.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var a=this.node;return a._activeElement!==void 0?a._activeElement:a.activeElement}}});
var vC=function(a){this.event=a};
_.Vm.Object.defineProperties(vC.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 Tpb=Om;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var Upb=window.ShadyDOM.Wrapper,Vpb=function(){return Upb.apply(this,arguments)||this};
_.z(Vpb,Upb);Object.getOwnPropertyNames(Om.prototype).forEach(function(a){a!="activeElement"&&a!="constructor"&&(Vpb.prototype[a]=Om.prototype[a])});
axa(Vpb.prototype,["classList"]);Tpb=Vpb;Object.defineProperties(vC.prototype,{localTarget:{get:function(){var a=this.event.currentTarget;a=a&&_.xn(a).getOwnerRoot();for(var b=this.path,c=0;c<b.length;c++){var d=b[c];if(_.xn(d).getOwnerRoot()===a)return d}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else $wa(),axa(Om.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),bxa();Wpb=Tpb;_.xn=function(a){a=a||document;if(a instanceof Tpb)return a;if(a instanceof vC)return a;var b=a.__domApi;b||(a instanceof Event?b=new vC(a):b=new Tpb(a),a.__domApi=b);return b};var Xpb=/:host\(:dir\((ltr|rtl)\)\)/g,Ypb=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,Zpb=/:dir\((?:ltr|rtl)\)/,$pb=!(!window.ShadyDOM||!window.ShadyDOM.inUse),Qm=[],wC=null,Pm="",aqb=cC(function(a){$pb||wC||(Pm=document.documentElement.getAttribute("dir"),wC=new MutationObserver(cxa),wC.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var b=fpb(a);a=function(){var c=b.call(this)||this;c.__autoDirOptOut=!1;return c};
_.z(a,b);a._processStyleText=function(c,d){c=b._processStyleText.call(this,c,d);!$pb&&Zpb.test(c)&&(c=this._replaceDirInCssText(c),this.__activateDir=!0);return c};
a._replaceDirInCssText=function(c){c=c.replace(Xpb,':host([dir="$1"])');return c=c.replace(Ypb,':host([dir="$2"]) $1')};
a.prototype.ready=function(){b.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
a.prototype.connectedCallback=function(){b.prototype.connectedCallback&&b.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(wC&&wC.takeRecords().length&&cxa(),Qm.push(this),this.__autoDirOptOut||this.setAttribute("dir",Pm))};
a.prototype.disconnectedCallback=function(){b.prototype.disconnectedCallback&&b.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var c=Qm.indexOf(this);c>-1&&Qm.splice(c,1)}};
a.__activateDir=!1;return a});var bqb=function(a){for(;a;){var b=Object.getOwnPropertyDescriptor(a,"observedAttributes");if(b)return b.get;a=Object.getPrototypeOf(a.prototype).constructor}return function(){return[]}};
cC(function(a){var b=fC(a),c=bqb(b);a=function(){return b.call(this)||this};
_.z(a,b);a.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:b.prototype._initializeProperties.call(this)};
a.prototype._enableProperties=function(){this.__isUpgradeDisabled||b.prototype._enableProperties.call(this)};
a.prototype._canApplyPropertyDefault=function(d){return b.prototype._canApplyPropertyDefault.call(this,d)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(d))};
a.prototype.attributeChangedCallback=function(d,e,g,k){d=="disable-upgrade"?this.__isUpgradeDisabled&&g==null&&(b.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.qm)(this).isConnected&&b.prototype.connectedCallback.call(this)):b.prototype.attributeChangedCallback.call(this,d,e,g,k)};
a.prototype.connectedCallback=function(){this.__isUpgradeDisabled||b.prototype.connectedCallback.call(this)};
a.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||b.prototype.disconnectedCallback.call(this)};
_.Vm.Object.defineProperties(a,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return c.call(this).concat("disable-upgrade")}}});
return a});var Rm=!1,exa=[],Sm=[];var ixa=window.ShadyDOM,jxa=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",lxa):document.readyState==="interactive"||document.readyState==="complete"?lxa():window.addEventListener("DOMContentLoaded",lxa);var oxa=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=""},mxa=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,nxa=/@import[^;]*;/gim,uxa=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,vxa=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,wxa=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,xxa=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,sxa=/^@[^\s]*keyframes/,
rxa=/\s+/g;var yxa={};var Bxa=Promise.resolve();var cqb=new Set;var dqb=/;\s*/m,eqb=/^\s*(initial)|(inherit)\s*$/,fqb=/\s*!important/,gqb=function(){this._map={}};
gqb.prototype.set=function(a,b){a=a.trim();this._map[a]={properties:b,dependants:{}}};
gqb.prototype.get=function(a){a=a.trim();return this._map[a]||null};
var hqb=null,xC=function(){this._measureElement=this._currentElement=null;this._map=new gqb};
_.f=xC.prototype;_.f.detectMixin=function(a){a=xpb.test(a)||wpb.test(a);xpb.lastIndex=0;wpb.lastIndex=0;return a};
_.f.transformTemplate=function(a,b){if(a._gatheredStyle===void 0){var c=[];for(var d=a.content.querySelectorAll("style"),e=0;e<d.length;e++){var g=d[e];if(g.hasAttribute("shady-unscoped")){if(!hwa){var k=g.textContent;if(!cqb.has(k)){cqb.add(k);var m=document.createElement("style");m.setAttribute("shady-unscoped","");m.textContent=k;document.head.appendChild(m)}g.parentNode.removeChild(g)}}else c.push(g.textContent),g.parentNode.removeChild(g)}(c=c.join("").trim())?(d=document.createElement("style"),
d.textContent=c,a.content.insertBefore(d,a.content.firstChild),c=d):c=null;a._gatheredStyle=c}return(a=a._gatheredStyle)?this.JSC$8997_transformStyle(a,b):null};
_.f.JSC$8997_transformStyle=function(a,b){b=b===void 0?"":b;var c=Fxa(a);this.transformRules(c,b);a.textContent=Exa(c);return c};
_.f.transformCustomStyle=function(a){var b=this,c=Fxa(a);Hxa(c,function(d){d.selector===":root"&&(d.selector="html");b.transformRule(d)});
a.textContent=Exa(c);return c};
_.f.transformRules=function(a,b){var c=this;this._currentElement=b;Hxa(a,function(d){c.transformRule(d)});
this._currentElement=null};
_.f.transformRule=function(a){a.cssText=iqb(this,a.parsedCssText,a);a.selector===":root"&&(a.selector=":host > *")};
var iqb=function(a,b,c){b=b.replace(wpb,function(d,e,g,k){return a._produceCssProperties(d,e,g,k,c)});
return a._consumeCssProperties(b,c)};
_.f=xC.prototype;_.f._getInitialValueForProperty=function(a){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(a)};
_.f._fallbacksFromPreviousRules=function(a){for(var b=this,c=a;c.parent;)c=c.parent;var d={},e=!1;Hxa(c,function(g){(e=e||g===a)||g.selector===a.selector&&Object.assign(d,b._cssTextToMap(g.parsedCssText))});
return d};
_.f._consumeCssProperties=function(a,b){for(var c;c=xpb.exec(a);){var d=c[0],e=c[1];c=c.index;var g=c+d.indexOf("@apply"),k=c+d.length;d=a.slice(0,g);a=a.slice(k);g=b?this._fallbacksFromPreviousRules(b):{};Object.assign(g,this._cssTextToMap(d));e=this._atApplyToCssProperties(e,g);a=d+e+a;xpb.lastIndex=c+e.length}return a};
_.f._atApplyToCssProperties=function(a,b){a=a.replace(dqb,"");var c=[],d=this._map.get(a);d||(this._map.set(a,{}),d=this._map.get(a));if(d){this._currentElement&&(d.dependants[this._currentElement]=!0);var e,g=d.properties;for(e in g){var k=b&&b[e];d=[e,": var(",a,"_-_",e];k&&d.push(",",k.replace(fqb,""));d.push(")");fqb.test(g[e])&&d.push(" !important");c.push(d.join(""))}}return c.join("; ")};
_.f._replaceInitialOrInherit=function(a,b){var c=eqb.exec(b);c&&(b=c[1]?this._getInitialValueForProperty(a):"apply-shim-inherit");return b};
_.f._cssTextToMap=function(a,b){b=b===void 0?!1:b;a=a.split(";");for(var c,d,e={},g=0;g<a.length;g++)if(c=a[g])d=c.split(":"),d.length>1&&(c=d[0].trim(),d=d.slice(1).join(":"),b&&(d=this._replaceInitialOrInherit(c,d)),e[c]=d);return e};
_.f._invalidateMixinEntry=function(a){if(hqb)for(var b in a.dependants)b!==this._currentElement&&hqb(b)};
_.f._produceCssProperties=function(a,b,c,d,e){var g=this;c&&Ixa(c,function(C,G){G&&g._map.get(G)&&(d="@apply "+G+";")});
if(!d)return a;var k=this._consumeCssProperties(""+d,e);e=a.slice(0,a.indexOf("--"));var m=k=this._cssTextToMap(k,!0),n=this._map.get(b),r=n&&n.properties;r?m=Object.assign(Object.create(r),k):this._map.set(b,m);var t=[],u,w=!1;for(u in m){var A=k[u];A===void 0&&(A="initial");!r||u in r||(w=!0);t.push(b+"_-_"+u+": "+A)}w&&this._invalidateMixinEntry(n);n&&(n.properties=m);c&&(e=a+";"+e);return e+t.join("; ")+";"};
xC.prototype.detectMixin=xC.prototype.detectMixin;xC.prototype.transformStyle=xC.prototype.JSC$8997_transformStyle;xC.prototype.transformCustomStyle=xC.prototype.transformCustomStyle;xC.prototype.transformRules=xC.prototype.transformRules;xC.prototype.transformRule=xC.prototype.transformRule;xC.prototype.transformTemplate=xC.prototype.transformTemplate;xC.prototype._separator="_-_";Object.defineProperty(xC.prototype,"invalidCallback",{get:function(){return hqb},
set:function(a){hqb=a}});var yC=new xC,jqb=function(){this.customStyleInterface=null;yC.invalidCallback=zxa},zC=function(a){!a.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(a.customStyleInterface=window.ShadyCSS.CustomStyleInterface,a.customStyleInterface.transformCallback=function(b){yC.transformCustomStyle(b)},a.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){a.customStyleInterface.enqueued&&a.flushCustomStyles()})})};
_.f=jqb.prototype;_.f.prepareTemplate=function(a,b){zC(this);Jxa(a)===""&&(yxa[b]=a,b=yC.transformTemplate(a,b),a._styleAst=b)};
_.f.flushCustomStyles=function(){zC(this);if(this.customStyleInterface){var a=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var b=0;b<a.length;b++){var c=this.customStyleInterface.getStyleForCustomStyle(a[b]);c&&yC.transformCustomStyle(c)}this.customStyleInterface.enqueued=!1}}};
_.f.styleSubtree=function(a,b){zC(this);b&&awa(a,b);if(a.shadowRoot)for(this.styleElement(a),a=a.shadowRoot.children||a.shadowRoot.childNodes,b=0;b<a.length;b++)this.styleSubtree(a[b]);else for(a=a.children||a.childNodes,b=0;b<a.length;b++)this.styleSubtree(a[b])};
_.f.styleElement=function(a){zC(this);var b=a.localName,c;b?b.indexOf("-")>-1?c=b:c=a.getAttribute&&a.getAttribute("is")||"":c=a.is;b=yxa[c];if(!(b&&Jxa(b)!==""||!b||Axa(b))){if(Axa(b)||b._applyShimValidatingVersion!==b._applyShimNextVersion)this.prepareTemplate(b,c),Cxa(b);if(a=a.shadowRoot)if(a=a.querySelector("style"))a.__cssRules=b._styleAst,a.textContent=Exa(b._styleAst)}};
_.f.styleDocument=function(a){zC(this);this.styleSubtree(document.body,a)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var AC=new jqb,kqb=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(a,b){AC.flushCustomStyles();AC.prepareTemplate(a,b)},
prepareTemplateStyles:function(a,b,c){window.ShadyCSS.prepareTemplate(a,b,c)},
prepareTemplateDom:function(){},
styleSubtree:function(a,b){AC.flushCustomStyles();AC.styleSubtree(a,b)},
styleElement:function(a){AC.flushCustomStyles();AC.styleElement(a)},
styleDocument:function(a){AC.flushCustomStyles();AC.styleDocument(a)},
getComputedStyleValue:function(a,b){return bwa(a,b)},
flushCustomStyles:function(){AC.flushCustomStyles()},
nativeCss:Dxa,nativeShadow:hwa,cssBuild:Um,disableRuntime:Apb};kqb&&(window.ShadyCSS.CustomStyleInterface=kqb)}window.ShadyCSS.ApplyShim=yC;var lqb;lqb=window.ShadyCSS;_.BC=cC(function(a){a=Ipb(fC(a));var b=ppb?a:aqb(a),c=bqb(b),d={x:"pan-x",y:"pan-y",none:"none",all:"auto"};a=function(){return b.call(this)||this};
_.z(a,b);a.prototype.created=function(){};
a.prototype.__attributeReaction=function(e,g,k){(this.__dataAttributes&&this.__dataAttributes[e]||e==="disable-upgrade")&&this.attributeChangedCallback(e,g,k,null)};
a.prototype.setAttribute=function(e,g){if(Qob&&!this._legacyForceObservedAttributes){var k=this.getAttribute(e);b.prototype.setAttribute.call(this,e,g);this.__attributeReaction(e,k,String(g))}else b.prototype.setAttribute.call(this,e,g)};
a.prototype.removeAttribute=function(e){if(Qob&&!this._legacyForceObservedAttributes){var g=this.getAttribute(e);b.prototype.removeAttribute.call(this,e);this.__attributeReaction(e,g,null)}else b.prototype.removeAttribute.call(this,e)};
a.prototype._enableProperties=function(){this.__isUpgradeDisabled||b.prototype._enableProperties.call(this)};
a.prototype._canApplyPropertyDefault=function(e){return b.prototype._canApplyPropertyDefault.call(this,e)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(e))};
a.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(b.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
a.prototype.attached=function(){};
a.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(b.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
a.prototype.detached=function(){};
a.prototype.attributeChangedCallback=function(e,g,k,m){g!==k&&(e=="disable-upgrade"?this.__isUpgradeDisabled&&k==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.qm)(this).isConnected&&this.connectedCallback()):(b.prototype.attributeChangedCallback.call(this,e,g,k,m),this.attributeChanged(e,g,k)))};
a.prototype.attributeChanged=function(){};
a.prototype._initializeProperties=function(){if(Hm&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var e=Object.getPrototypeOf(this);e.hasOwnProperty("__hasRegisterFinished")||(this._registered(),e.__hasRegisterFinished=!0);b.prototype._initializeProperties.call(this);this.root=this;this.created();Qob&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
a.prototype._takeAttributes=function(){for(var e=this.attributes,g=0,k=e.length;g<k;g++){var m=e[g];this.__attributeReaction(m.name,null,m.value)}};
a.prototype._registered=function(){};
a.prototype.ready=function(){this._ensureAttributes();b.prototype.ready.call(this)};
a.prototype._ensureAttributes=function(){};
a.prototype._applyListeners=function(){};
a.prototype.serialize=function(e){return this._serializeValue(e)};
a.prototype.deserialize=function(e,g){return this._deserializeValue(e,g)};
a.prototype.reflectPropertyToAttribute=function(e,g,k){this._propertyToAttribute(e,g,k)};
a.prototype.serializeValueToAttribute=function(e,g,k){this._valueToNodeAttribute(k||this,e,g)};
a.prototype.extend=function(e,g){if(!e||!g)return e||g;for(var k=Object.getOwnPropertyNames(g),m=0,n=void 0;m<k.length&&(n=k[m]);m++){var r=Object.getOwnPropertyDescriptor(g,n);r&&Object.defineProperty(e,n,r)}return e};
a.prototype.mixin=function(e,g){for(var k in g)e[k]=g[k];return e};
a.prototype.chainObject=function(e,g){e&&g&&e!==g&&(e.__proto__=g);return e};
a.prototype.instanceTemplate=function(e){e=this.constructor._contentForTemplate(e);return document.importNode(e,!0)};
a.prototype.fire=function(e,g,k){k=k||{};g=g===null||g===void 0?{}:g;e=new Event(e,{bubbles:k.bubbles===void 0?!0:k.bubbles,cancelable:!!k.cancelable,composed:k.composed===void 0?!0:k.composed});e.detail=g;(0,_.qm)(k.node||this).dispatchEvent(e);return e};
a.prototype.listen=function(e,g,k){e=e||this;var m=this.__boundListeners||(this.__boundListeners=new WeakMap),n=m.get(e);n||(n={},m.set(e,n));m=g+k;n[m]||(n[m]=this._addMethodEventListenerToNode(e,g,k,this))};
a.prototype.unlisten=function(e,g,k){e=e||this;var m=this.__boundListeners&&this.__boundListeners.get(e);k=g+k;var n=m&&m[k];n&&(this._removeEventListenerFromNode(e,g,n),m[k]=null)};
a.prototype.setScrollDirection=function(e,g){_.Em(g||this,d[e]||"auto")};
a.prototype.$$=function(e){return this.root.querySelector(e)};
a.prototype.distributeContent=function(){var e=_.xn(this);window.ShadyDOM&&e.shadowRoot&&ShadyDOM.flush()};
a.prototype.getEffectiveChildNodes=function(){return _.xn(this).getEffectiveChildNodes()};
a.prototype.queryDistributedElements=function(e){return _.xn(this).queryDistributedElements(e)};
a.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(e){return e.nodeType===Node.ELEMENT_NODE})};
a.prototype.getEffectiveTextContent=function(){for(var e=this.getEffectiveChildNodes(),g=[],k=0,m;m=e[k];k++)m.nodeType!==Node.COMMENT_NODE&&g.push(m.textContent);return g.join("")};
a.prototype.queryEffectiveChildren=function(e){return(e=this.queryDistributedElements(e))&&e[0]};
a.prototype.queryAllEffectiveChildren=function(e){return this.queryDistributedElements(e)};
a.prototype.getContentChildNodes=function(e){return(e=this.root.querySelector(e||"slot"))?_.xn(e).getDistributedNodes():[]};
a.prototype.getContentChildren=function(e){return this.getContentChildNodes(e).filter(function(g){return g.nodeType===Node.ELEMENT_NODE})};
a.prototype.isLightDescendant=function(e){return this!==e&&(0,_.qm)(this).contains(e)&&(0,_.qm)(this).getRootNode()===(0,_.qm)(e).getRootNode()};
a.prototype.isLocalDescendant=function(e){return this.root===(0,_.qm)(e).getRootNode()};
a.prototype.scopeSubtree=function(e,g){return kxa(e,g===void 0?!1:g)};
a.prototype.getComputedStyleValue=function(e){return lqb.getComputedStyleValue(this,e)};
a.prototype.debounce=function(e,g,k){this._debouncers=this._debouncers||{};return this._debouncers[e]=_.nC(this._debouncers[e],k>0?_.bC.after(k):Fm,g.bind(this))};
a.prototype.isDebouncerActive=function(e){this._debouncers=this._debouncers||{};e=this._debouncers[e];return!(!e||!e.isActive())};
a.prototype.flushDebouncer=function(e){this._debouncers=this._debouncers||{};(e=this._debouncers[e])&&e.flush()};
a.prototype.cancelDebouncer=function(e){this._debouncers=this._debouncers||{};(e=this._debouncers[e])&&e.cancel()};
a.prototype.async=function(e,g){return g>0?_.bC.run(e.bind(this),g):~Fm.run(e.bind(this))};
a.prototype.cancelAsync=function(e){e<0?Fm.cancel(~e):_.bC.cancel(e)};
a.prototype.create=function(e,g){e=document.createElement(e);if(g)if(e.setProperties)e.setProperties(g);else for(var k in g)e[k]=g[k];return e};
a.prototype.elementMatches=function(e,g){return Spb(g||this,e)};
a.prototype.toggleAttribute=function(e,g){var k=this;arguments.length===3&&(k=arguments[2]);arguments.length==1&&(g=!k.hasAttribute(e));if(g)return(0,_.qm)(k).setAttribute(e,""),!0;(0,_.qm)(k).removeAttribute(e);return!1};
a.prototype.toggleClass=function(e,g,k){k=k||this;arguments.length==1&&(g=!k.classList.contains(e));g?k.classList.add(e):k.classList.remove(e)};
a.prototype.transform=function(e,g){g=g||this;g.style.webkitTransform=e;g.style.transform=e};
a.prototype.translate3d=function(e,g,k,m){this.transform("translate3d("+e+","+g+","+k+")",m||this)};
a.prototype.arrayDelete=function(e,g){if(Array.isArray(e)){if(g=e.indexOf(g),g>=0)return e.splice(g,1)}else if(g=mm(this,e).indexOf(g),g>=0)return this.splice(e,g,1);return null};
a.prototype._logger=function(e,g){Array.isArray(g)&&g.length===1&&Array.isArray(g[0])&&(g=g[0]);switch(e){case "log":case "warn":case "error":console[e].apply(console,_.Be(g))}};
a.prototype._log=function(){this._logger("log",_.Id.apply(0,arguments))};
a.prototype._warn=function(){this._logger("warn",_.Id.apply(0,arguments))};
a.prototype._error=function(){this._logger("error",_.Id.apply(0,arguments))};
a.prototype._logf=function(e){return["[%s::%s]",this.is,e].concat(_.Be(_.Id.apply(1,arguments)))};
_.Vm.Object.defineProperties(a.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var e=(0,_.qm)(this).getRootNode();return e instanceof DocumentFragment?e.host:e}}});
_.Vm.Object.defineProperties(a,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return Qob&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],jva(this.prototype)),this.__observedAttributes):c.call(this).concat("disable-upgrade")}}});
a.prototype.is="";return a});Polymer.FlattenedNodesObserver=Ppb;Polymer.DomApi=Wpb;Polymer.EventApi=vC;Polymer.dom=_.xn;Polymer.dom.matchesSelector=Spb;Polymer.dom.flush=_.sC;Polymer.dom.addDebouncer=_.oC;Polymer.DirMixin=aqb;Polymer.RenderStatus={beforeNextRender:_.hxa,afterNextRender:_.Tm,flush:function(){for(;exa.length||Sm.length;)dxa(exa),dxa(Sm);Rm=!1}};Polymer.LegacyElementMixin=_.BC;var mqb;mqb=qC._mutablePropertyChange;var nqb={properties:{mutableData:Boolean},_shouldPropertyChange:function(a,b,c){return mqb(this,a,b,c,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(a,b,c){return mqb(this,a,b,c,!0)}};
Polymer.OptionalMutableDataBehavior=nqb;var Kxa={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},Pxa={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},Oxa=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},Pxa),oqb=(0,_.BC)(HTMLElement),UKa=function(a,b){a||console.warn("Polymer.Class requires `info` argument");b=b?b(oqb):oqb;b=Qxa(a,b,a.behaviors);b.is=b.prototype.is=
a.is;return b};Polymer.Class=UKa;Polymer.mixinBehaviors=function(a,b){return Qxa({},(0,_.BC)(b),a)};
Polymer.GenerateClassFromInfo=Qxa;_.qr=function(a){var b=typeof a==="function"?a:_.qr.Class(a);a._legacyForceObservedAttributes&&(b.prototype._legacyForceObservedAttributes=a._legacyForceObservedAttributes);customElements.define(b.is,b);return b};
_.qr.Class=UKa;Polymer._polymerFn=_.qr;var pqb=window.onLegacyPolymerFunctionDefinedCallback;pqb&&pqb();var WKa={templatize:function(a,b){this._templatizerTemplate=a;this.ctor=Km(a,this,{mutableData:!!b,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(a){return new this.ctor(a)},
modelForElement:function(a){return Zwa(this._templatizerTemplate,a)}};Polymer.Templatizer=WKa;_.CC=(0,_.BC)(HTMLElement).prototype;Polymer.Base=_.CC;var Sxa=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.Wm=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.z(_.Wm,PolymerFakeBaseClass);var Xm=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.z(Xm,PolymerFakeBaseClass);var Txa=Symbol("Kd"),aya=[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 qqb=qqb||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},rqb;(function(a){function b(V,fa,aa){var ma=ca.get(V);if(!ma){if(!aa)return;ma=new I;ca.set(V,ma)}V=ma.get(fa);if(!V){if(!aa)return;V=new I;ma.set(fa,V)}return V}
function c(V,fa,aa){if(d(V,fa,aa))return!0;fa=w(fa);return fa!==null?c(V,fa,aa):!1}
function d(V,fa,aa){fa=b(fa,aa,!1);return fa===void 0?!1:!!fa.has(V)}
function e(V,fa,aa){if(d(V,fa,aa))return g(V,fa,aa);fa=w(fa);if(fa!==null)return e(V,fa,aa)}
function g(V,fa,aa){fa=b(fa,aa,!1);if(fa!==void 0)return fa.get(V)}
function k(V,fa){var aa=m(V,fa);V=w(V);if(V===null)return aa;var ma=k(V,fa);if(ma.length<=0)return aa;if(aa.length<=0)return ma;fa=new R;V=[];aa=_.h(aa);for(var Ba=aa.next();!Ba.done;Ba=aa.next())Ba=Ba.value,fa.has(Ba)||(fa.add(Ba),V.push(Ba));aa=_.h(ma);for(ma=aa.next();!ma.done;ma=aa.next())ma=ma.value,fa.has(ma)||(fa.add(ma),V.push(ma));return V}
function m(V,fa){V=b(V,fa,!1);var aa=[];V&&V.forEach(function(ma,Ba){return aa.push(Ba)});
return aa}
function n(V){return V===void 0}
function r(V){return typeof V==="object"?V!==null:typeof V==="function"}
function t(V){return typeof V==="function"}
function u(V){return typeof V==="symbol"?V:String(V)}
function w(V){var fa=Object.getPrototypeOf(V);if(typeof V!=="function"||V===J||fa!==J)return fa;var aa=Object.getPrototypeOf(V.prototype);if(aa==null||aa===Object.prototype)return fa;aa=aa.constructor;return typeof aa!=="function"||aa===V?fa:aa}
function A(){function V(){this._keys=[];this._values=[];this._cache=fa}
var fa={};V.prototype={get size(){return this._keys.length},has:function(aa){return aa===this._cache?!0:this._find(aa)>=0?(this._cache=aa,!0):!1},
get:function(aa){var ma=this._find(aa);if(ma>=0)return this._cache=aa,this._values[ma]},
set:function(aa,ma){this.delete(aa);this._keys.push(aa);this._values.push(ma);this._cache=aa;return this},
delete:function(aa){aa=this._find(aa);return aa>=0?(this._keys.splice(aa,1),this._values.splice(aa,1),this._cache=fa,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=fa},
forEach:function(aa){for(var ma=this.size,Ba=0;Ba<ma;++Ba){var Da=this._keys[Ba],za=this._values[Ba];this._cache=Da;aa.call(this,za,Da,this)}},
_find:function(aa){for(var ma=this._keys,Ba=ma.length,Da=0;Da<Ba;++Da)if(ma[Da]===aa)return Da;return-1}};
return V}
function C(){function V(){this._map=new I}
V.prototype={get size(){return this._map.length},has:function(fa){return this._map.has(fa)},
add:function(fa){this._map.set(fa,fa);return this},
delete:function(fa){return this._map.delete(fa)},
clear:function(){this._map.clear()},
forEach:function(fa,aa){this._map.forEach(fa,aa)}};
return V}
function G(){function V(){this._key=aa()}
function fa(bb,kb){for(var Ua=0;Ua<kb;++Ua)bb[Ua]=Math.random()*255|0}
function aa(){do{if(Ba)var bb=Ba.randomBytes(16);else typeof Uint8Array==="function"?(bb=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(bb):fa(bb,16)):(bb=Array(16),fa(bb,16));bb[6]=bb[6]&79|64;bb[8]=bb[8]&191|128;for(var kb="",Ua=0;Ua<16;++Ua){var Fc=bb[Ua];if(Ua===4||Ua===6||Ua===8)kb+="-";Fc<16&&(kb+="0");kb+=Fc.toString(16).toLowerCase()}bb="@@WeakMap@@"+kb}while(Da.call(za,bb));za[bb]=!0;return bb}
function ma(bb,kb){if(!Da.call(bb,Fa)){if(!kb)return;Object.defineProperty(bb,Fa,{value:Object.create(null)})}return bb[Fa]}
var Ba=typeof global!=="undefined"&&typeof qqb==="object"&&typeof require==="function"&&require("crypto"),Da=Object.prototype.hasOwnProperty,za={},Fa=aa();V.prototype={has:function(bb){return(bb=ma(bb,!1))?this._key in bb:!1},
get:function(bb){if(bb=ma(bb,!1))return bb[this._key]},
set:function(bb,kb){ma(bb,!0)[this._key]=kb;return this},
delete:function(bb){return(bb=ma(bb,!1))&&this._key in bb?delete bb[this._key]:!1},
clear:function(){this._key=aa()}};
return V}
var J=Object.getPrototypeOf(Function),I=typeof Map==="function"?Map:A(),R=typeof Set==="function"?Set:C(),ca=new (typeof WeakMap==="function"?WeakMap:G());a.decorate=function(V,fa,aa,ma){if(n(ma)){if(n(aa)){if(!Array.isArray(V))throw new TypeError;if(!t(fa))throw new TypeError;for(aa=V.length-1;aa>=0;--aa)if(ma=(0,V[aa])(fa),!n(ma)){if(!t(ma))throw new TypeError;fa=ma}return fa}if(!Array.isArray(V))throw new TypeError;if(!r(fa))throw new TypeError;aa=u(aa);for(ma=V.length-1;ma>=0;--ma)(0,V[ma])(fa,
aa)}else{if(Array.isArray(V))if(r(fa)){if(n(aa))throw new TypeError;if(!r(ma))throw new TypeError;}else throw new TypeError;else throw new TypeError;aa=u(aa);for(var Ba=V.length-1;Ba>=0;--Ba){var Da=(0,V[Ba])(fa,aa,ma);if(!n(Da)){if(!r(Da))throw new TypeError;ma=Da}}return ma}};
a.metadata=function(V,fa){return function(aa,ma){if(n(ma)){if(!t(aa))throw new TypeError;b(aa,void 0,!0).set(V,fa)}else{if(!r(aa))throw new TypeError;ma=u(ma);b(aa,ma,!0).set(V,fa)}}};
a.defineMetadata=function(V,fa){var aa;if(r(fa))n(aa)||(aa=u(aa));else throw new TypeError;b(fa,aa,!0).set("parameters",V)};
a.hasMetadata=function(V,fa,aa){if(r(fa))n(aa)||(aa=u(aa));else throw new TypeError;return c(V,fa,aa)};
a.hasOwnMetadata=function(V,fa,aa){if(r(fa))n(aa)||(aa=u(aa));else throw new TypeError;return d(V,fa,aa)};
a.getMetadata=function(V,fa,aa){if(r(fa))n(aa)||(aa=u(aa));else throw new TypeError;return e(V,fa,aa)};
a.getOwnMetadata=function(V,fa,aa){if(r(fa))n(aa)||(aa=u(aa));else throw new TypeError;return g(V,fa,aa)};
a.getMetadataKeys=function(V,fa){if(r(V))n(fa)||(fa=u(fa));else throw new TypeError;return k(V,fa)};
a.getOwnMetadataKeys=function(V,fa){if(r(V))n(fa)||(fa=u(fa));else throw new TypeError;return m(V,fa)};
a.deleteMetadata=function(V,fa,aa){if(r(fa))n(aa)||(aa=u(aa));else throw new TypeError;var ma=b(fa,aa,!1);if(!n(ma)){if(!ma.delete(V))return!1;if(ma.size>0)return!0;V=ca.get(fa);V.delete(aa);if(V.size>0)return!0;ca.delete(fa);return!0}};
(function(V){if(typeof V.Reflect!=="undefined"){if(V.Reflect!==a)for(var fa in a)V.Reflect[fa]=a[fa]}else V.Reflect=a})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(rqb||(rqb={}));var uIa=self;var sqb=[0,_.ay,_.cy,_.ay];var tqb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(tqb,_.Xc);var uqb=_.gd(tqb,[0,_.z$a,_.ey,sqb,_.cy,_.gy]);_.nx(_.Ym,_.tg);_.f=_.Ym.prototype;_.f.start=function(){this.stop();this.usingListeners_=!1;var a=vqb(this),b=wqb(this);a&&!b&&this.JSC$9040_win_.mozRequestAnimationFrame?(this.JSC$9040_id_=_.ss(this.JSC$9040_win_,"MozBeforePaint",this.callback_),this.JSC$9040_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$9040_id_=a&&b?a.call(this.JSC$9040_win_,this.callback_):this.JSC$9040_win_.setTimeout(Fbb(this.callback_),20)};
_.f.stop=function(){if(this.isActive()){var a=vqb(this),b=wqb(this);a&&!b&&this.JSC$9040_win_.mozRequestAnimationFrame?ps(this.JSC$9040_id_):a&&b?b.call(this.JSC$9040_win_,this.JSC$9040_id_):this.JSC$9040_win_.clearTimeout(this.JSC$9040_id_)}this.JSC$9040_id_=null};
_.f.fire=function(){this.stop();this.JSC$9042_doAction_()};
_.f.isActive=function(){return this.JSC$9040_id_!=null};
_.f.JSC$9042_doAction_=function(){this.usingListeners_&&this.JSC$9040_id_&&ps(this.JSC$9040_id_);this.JSC$9040_id_=null;this.JSC$9040_listener_.call(this.handler_,_.mx())};
_.f.disposeInternal=function(){this.stop();_.Ym.superClass_.disposeInternal.call(this)};
var vqb=function(a){a=a.JSC$9040_win_;return a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame||a.oRequestAnimationFrame||a.msRequestAnimationFrame||null},wqb=function(a){a=a.JSC$9040_win_;
return a.cancelAnimationFrame||a.cancelRequestAnimationFrame||a.webkitCancelRequestAnimationFrame||a.mozCancelRequestAnimationFrame||a.oCancelRequestAnimationFrame||a.msCancelRequestAnimationFrame||null};_.hv=function(a,b,c){_.tg.call(this);this.JSC$9043_listener_=c!=null?a.bind(c):a;this.JSC$9043_interval_=b;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$9043_timer_=null};
_.z(_.hv,_.tg);_.f=_.hv.prototype;_.f.fire=function(a){this.args_=arguments;this.JSC$9043_timer_||this.pauseCount_?this.shouldFire_=!0:xqb(this)};
_.f.stop=function(){this.JSC$9043_timer_&&(_.ja.clearTimeout(this.JSC$9043_timer_),this.JSC$9043_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.f.pause=function(){this.pauseCount_++};
_.f.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$9043_timer_||(this.shouldFire_=!1,xqb(this))};
_.f.disposeInternal=function(){_.tg.prototype.disposeInternal.call(this);this.stop()};
var xqb=function(a){a.JSC$9043_timer_=Iz(function(){a.JSC$9043_timer_=null;a.shouldFire_&&!a.pauseCount_&&(a.shouldFire_=!1,xqb(a))},a.JSC$9043_interval_);
var b=a.args_;a.args_=null;a.JSC$9043_listener_.apply(null,b)};var yqb=function(a,b){this.childIterator_=a[_.ja.Symbol.iterator]();this.mapFn_=b};
yqb.prototype[Symbol.iterator]=function(){return this};
yqb.prototype.next=function(){var a=this.childIterator_.next();return{value:a.done?void 0:this.mapFn_.call(void 0,a.value),done:a.done}};
var zqb=function(a,b){return new yqb(a,b)};var Aqb={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 TOa=function(a){var b=Bqb(a);if(!b)throw Error("Od`"+a);return b},Bqb=function(a){var b={};
a=String(a);var c=a.charAt(0)=="#"?a:"#"+a;if(Cqb.test(c))return b.hex=RPa(c),b.type="hex",b;c=XOa(a);return c.length?(b.hex=LIa(c[0],c[1],c[2]),b.type="rgb",b):Aqb&&(a=Aqb[a.toLowerCase()])?(b.hex=a,b.type="named",b):null},Dqb=/#(.)(.)(.)/,RPa=function(a){if(!Cqb.test(a))throw Error("Qd`"+a);
a.length==4&&(a=a.replace(Dqb,"#$1$1$2$2$3$3"));return a.toLowerCase()},UOa=function(a){a=RPa(a);
a=parseInt(a.slice(1),16);return[a>>16,a>>8&255,a&255]},LIa=function(a,b,c){a=Number(a);
b=Number(b);c=Number(c);if(a!=(a&255)||b!=(b&255)||c!=(c&255))throw Error("Rd`"+a+"`"+b+"`"+c);b=a<<16|b<<8|c;return a<16?"#"+(16777216|b).toString(16).slice(1):"#"+b.toString(16)},Cqb=/^#(?:[0-9a-f]{3}){1,2}$/i,Eqb=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,XOa=function(a){var b=a.match(Eqb);
if(b){a=Number(b[1]);var c=Number(b[2]);b=Number(b[3]);if(a>=0&&a<=255&&c>=0&&c<=255&&b>=0&&b<=255)return[a,c,b]}return[]};var Fqb={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},Fv=Fqb;Fv=Fqb;var n_a,Gqb,Hqb;n_a=function(a,b){switch(b){case 1:return a%4!=0||a%100==0&&a%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
Gqb=function(a,b,c,d,e){a=new Date(a,b,c);e=e||0;return a.valueOf()+(((d!==void 0?d:3)-e+7)%7-((a.getDay()+6)%7-e+7)%7)*864E5};
_.DC=function(a,b,c){typeof a==="number"?(this.date=Hqb(a,b||0,c||1),Iqb(this,c||1)):_.$a(a)?(this.date=Hqb(a.getFullYear(),a.getMonth(),a.getDate()),Iqb(this,a.getDate())):(this.date=new Date(_.mx()),a=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),Iqb(this,a))};
Hqb=function(a,b,c){b=new Date(a,b,c);a>=0&&a<100&&b.setFullYear(b.getFullYear()-1900);return b};
_.f=_.DC.prototype;_.f.firstDayOfWeek_=Fv.FIRSTDAYOFWEEK;_.f.firstWeekCutOffDay_=Fv.FIRSTWEEKCUTOFFDAY;_.f.clone=function(){var a=new _.DC(this.date);a.firstDayOfWeek_=this.firstDayOfWeek_;a.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return a};
_.f.getFullYear=function(){return this.date.getFullYear()};
_.f.getYear=function(){return this.getFullYear()};
_.f.getMonth=function(){return this.date.getMonth()};
_.f.getDate=function(){return this.date.getDate()};
_.f.getTime=function(){return this.date.getTime()};
_.f.getDay=function(){return this.date.getDay()};
_.f.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.f.getUTCMonth=function(){return this.date.getUTCMonth()};
_.f.getUTCDate=function(){return this.date.getUTCDate()};
_.f.getUTCDay=function(){return this.date.getDay()};
_.f.getUTCHours=function(){return this.date.getUTCHours()};
_.f.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.f.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.f.set=function(a){this.date=new Date(a.getFullYear(),a.getMonth(),a.getDate())};
_.f.setFullYear=function(a){this.date.setFullYear(a)};
_.f.setYear=function(a){this.setFullYear(a)};
_.f.setMonth=function(a){this.date.setMonth(a)};
_.f.setDate=function(a){this.date.setDate(a)};
_.f.setTime=function(a){this.date.setTime(a)};
_.f.setUTCFullYear=function(a){this.date.setUTCFullYear(a)};
_.f.setUTCMonth=function(a){this.date.setUTCMonth(a)};
_.f.setUTCDate=function(a){this.date.setUTCDate(a)};
_.f.add=function(a){if(a.years||a.months){var b=this.getMonth()+a.months+a.years*12,c=this.getYear()+Math.floor(b/12);b%=12;b<0&&(b+=12);var d=Math.min(n_a(c,b),this.getDate());this.setDate(1);this.setFullYear(c);this.setMonth(b);this.setDate(d)}a.days&&(c=this.getYear(),b=c>=0&&c<=99?-1900:0,a=new Date((new Date(c,this.getMonth(),this.getDate(),12)).getTime()+a.days*864E5),this.setDate(1),this.setFullYear(a.getFullYear()+b),this.setMonth(a.getMonth()),this.setDate(a.getDate()),Iqb(this,a.getDate()))};
_.f.JSC$9056_toIsoString=function(a){var b=this.getFullYear(),c=b<0?"-":b>=1E4?"+":"";return[c+_.my(Math.abs(b),c?6:4),_.my(this.getMonth()+1,2),_.my(this.getDate(),2)].join(a?"-":"")};
_.f.equals=function(a){return!(!a||this.getYear()!=a.getYear()||this.getMonth()!=a.getMonth()||this.getDate()!=a.getDate())};
_.f.toString=function(){return this.JSC$9056_toIsoString()};
var Iqb=function(a,b){a.getDate()!=b&&a.date.setUTCHours(a.date.getUTCHours()+(a.getDate()<b?1:-1))};
_.DC.prototype.valueOf=function(){return this.date.valueOf()};var FC=function(a,b,c,d,e){this.reversed=!!b;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!c;a&&EC(this,a,d);this.depth=e!=void 0?e:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.nx(FC,lB);var EC=function(a,b,c,d){if(a.node=b)a.tagType=typeof c==="number"?c:a.node.nodeType!=1?0:a.reversed?-1:1;typeof d==="number"&&(a.depth=d)};
_.f=FC.prototype;_.f.JSC$9071_copyFrom=function(a){this.node=a.node;this.tagType=a.tagType;this.depth=a.depth;this.reversed=a.reversed;this.constrained=a.constrained};
_.f.clone=function(){return new FC(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.f.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return mB;var a=this.node;var b=this.reversed?-1:1;if(this.tagType==b){var c=this.reversed?a.lastChild:a.firstChild;c?EC(this,c):EC(this,a,b*-1)}else(c=this.reversed?a.previousSibling:a.nextSibling)?EC(this,c):EC(this,a.parentNode,b*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(a=this.node)?nB(a):mB};
_.f.equals=function(a){return a.node==this.node&&(!this.node||a.tagType==this.tagType)};
_.f.splice=function(a){var b=this.node,c=this.reversed?1:-1;this.tagType==c&&(this.tagType=c*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;FC.prototype.next.call(this);this.reversed=!this.reversed;c=_.Sa(arguments[0])?arguments[0]:arguments;for(var d=c.length-1;d>=0;d--)_.Ty(c[d],b);_.mg(b)};var Jqb=function(){},GC=function(a){for(var b=[],c=a.getTextRangeCount(),d=0;d<c;d++)b.push(a.getTextRange(d));
return b};
Jqb.prototype.isReversed=function(){return!1};
Jqb.prototype.getWindow=function(){return Bf(_.Cf(this.JSC$9073_getStartNode()))};
var Kqb=function(a,b){FC.call(this,a,b,!0)};
_.nx(Kqb,FC);var HC=function(a,b,c,d,e){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!e;if(a){this.startNode_=a;this.startOffset_=b;this.endNode_=c;this.endOffset_=d;if(a.nodeType==1&&a.tagName!="BR")if(a=a.childNodes,b=a[b])this.startNode_=b,this.startOffset_=0;else{a.length&&(this.startNode_=_.Ja(a));var g=!0}c.nodeType==1&&((this.endNode_=c.childNodes[d])?this.endOffset_=0:this.endNode_=c)}FC.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);g&&this.next()};
_.nx(HC,Kqb);_.f=HC.prototype;_.f.JSC$9079_getStartNode=function(){return this.startNode_};
_.f.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)};
_.f.next=function(){return this.isLast()?mB:HC.superClass_.next.call(this)};
_.f.JSC$9071_copyFrom=function(a){this.startNode_=a.startNode_;this.endNode_=a.endNode_;this.startOffset_=a.startOffset_;this.endOffset_=a.endOffset_;this.isReversed_=a.isReversed_;HC.superClass_.JSC$9071_copyFrom.call(this,a)};
_.f.clone=function(){var a=new HC(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);a.JSC$9071_copyFrom(this);return a};var Lqb=function(){};
Lqb.prototype.__iterator__=function(){return new HC(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var IC=function(a){this.range_=a};
_.nx(IC,Lqb);var Mqb=function(a){var b=_.Cf(a).createRange();if(a.nodeType==3)b.setStart(a,0),b.setEnd(a,a.length);else if(Qy(a)||a.nodeType==3){for(var c,d=a;(c=d.firstChild)&&(Qy(c)||c.nodeType==3);)d=c;b.setStart(d,0);for(d=a;(c=d.lastChild)&&(Qy(c)||c.nodeType==3);)d=c;b.setEnd(d,d.nodeType==1?d.childNodes.length:d.length)}else c=a.parentNode,a=Array.prototype.indexOf.call(c.childNodes,a),b.setStart(c,a),b.setEnd(c,a+1);return b},Nqb=function(a,b,c,d){var e=_.Cf(a).createRange();
e.setStart(a,b);e.setEnd(c,d);return e};
_.f=IC.prototype;_.f.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.f.getContainer=function(){return this.range_.commonAncestorContainer};
_.f.compareBrowserRangeEndpoints=function(a,b,c){return this.range_.compareBoundaryPoints(c==1?b==1?_.ja.Range.START_TO_START:_.ja.Range.START_TO_END:b==1?_.ja.Range.END_TO_START:_.ja.Range.END_TO_END,a)};
_.f.isCollapsed=function(){return this.range_.collapsed};
_.f.select=function(a){this.selectInternal(Bf(_.Cf(this.range_.startContainer)).getSelection(),a)};
_.f.selectInternal=function(a){a.removeAllRanges();a.addRange(this.range_)};
_.f.insertNode=function(a,b){var c=this.range_.cloneRange();c.collapse(b);c.insertNode(a);c.detach();return a};
_.f.collapse=function(a){this.range_.collapse(a)};_.nx(Zm,IC);Zm.prototype.selectInternal=function(a,b){!b||this.isCollapsed()?Zm.superClass_.selectInternal.call(this,a,b):(a.collapse(this.range_.endContainer,this.range_.endOffset),a.extend(this.range_.startContainer,this.range_.startOffset))};_.nx($m,IC);$m.prototype.compareBrowserRangeEndpoints=function(a,b,c){return $m.superClass_.compareBrowserRangeEndpoints.call(this,a,b,c)};
$m.prototype.selectInternal=function(a,b){b?a.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):a.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var Oqb=function(a){return _.ux?new $m(a):_.tx?new Zm(a):new IC(a)};var JC=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},Pqb;
_.nx(JC,Jqb);Pqb=function(a,b){var c=new JC;c.browserRangeWrapper_=a;c.isReversed_=!!b;return c};
_.Qqb=function(a){a=_.ux?new $m(Mqb(a)):_.tx?new Zm(Mqb(a)):new IC(Mqb(a));return Pqb(a)};
_.KC=function(a,b,c,d){var e=new JC;e.isReversed_=Rqb(a,b,c,d);if(_.Sk(a)&&!Qy(a)){var g=a.parentNode;b=Array.prototype.indexOf.call(g.childNodes,a);a=g}_.Sk(c)&&!Qy(c)&&(g=c.parentNode,d=Array.prototype.indexOf.call(g.childNodes,c),c=g);e.isReversed_?(e.startNode_=c,e.startOffset_=d,e.endNode_=a,e.endOffset_=b):(e.startNode_=a,e.startOffset_=b,e.endNode_=c,e.endOffset_=d);return e};
_.f=JC.prototype;_.f.clone=function(){var a=new JC;a.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();a.startNode_=this.startNode_;a.startOffset_=this.startOffset_;a.endNode_=this.endNode_;a.endOffset_=this.endOffset_;a.isReversed_=this.isReversed_;return a};
_.f.getType=function(){return"text"};
_.f.getBrowserRangeObject=function(){return LC(this).range_};
_.f.getTextRangeCount=function(){return 1};
_.f.getTextRange=function(){return this};
var LC=function(a){var b;if(!(b=a.browserRangeWrapper_)){b=a.JSC$9073_getStartNode();var c=a.JSC$9073_getStartOffset(),d=a.JSC$9073_getEndNode(),e=a.JSC$9073_getEndOffset();b=_.ux?new $m(Nqb(b,c,d,e)):_.tx?new Zm(Nqb(b,c,d,e)):new IC(Nqb(b,c,d,e));b=a.browserRangeWrapper_=b}return b};
_.f=JC.prototype;_.f.getContainer=function(){return LC(this).getContainer()};
_.f.JSC$9073_getStartNode=function(){var a;(a=this.startNode_)||(a=this.startNode_=LC(this).range_.startContainer);return a};
_.f.JSC$9073_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=LC(this).range_.startOffset};
_.f.JSC$9073_getEndNode=function(){var a;(a=this.endNode_)||(a=this.endNode_=LC(this).range_.endContainer);return a};
_.f.JSC$9073_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=LC(this).range_.endOffset};
_.f.isReversed=function(){return this.isReversed_};
_.f.JSC$9073_containsRange=function(a,b){if(a.getType()=="text"){var c=LC(this);a=LC(a);b=b&&!a.isCollapsed();a=a.range_;c=b?c.compareBrowserRangeEndpoints(a,0,1)>=0&&c.compareBrowserRangeEndpoints(a,1,0)<=0:c.compareBrowserRangeEndpoints(a,0,0)>=0&&c.compareBrowserRangeEndpoints(a,1,1)<=0}else c=!1;return c};
_.f.isCollapsed=function(){return LC(this).isCollapsed()};
_.f.JSC$9073_getText=function(){return LC(this).range_.toString()};
_.f.__iterator__=function(){return new HC(this.JSC$9073_getStartNode(),this.JSC$9073_getStartOffset(),this.JSC$9073_getEndNode(),this.JSC$9073_getEndOffset())};
_.f.select=function(){LC(this).select(this.isReversed_)};
_.f.JSC$9073_removeContents=function(){var a=LC(this).range_;a.extractContents();if(a.startContainer.hasChildNodes()&&(a=a.startContainer.childNodes[a.startOffset])){var b=a.previousSibling;Ycb(a)==""&&_.mg(a);b&&Ycb(b)==""&&_.mg(b)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.f.insertNode=function(a,b){a=LC(this).insertNode(a,b);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return a};
_.f.collapse=function(a){a=this.isReversed()?!a:a;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(a);a?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var Sqb=function(){};
_.nx(Sqb,Jqb);Sqb.prototype.JSC$9073_containsRange=function(a,b){var c=GC(this);a=GC(a);return(b?Nk:_.MIa)(a,function(d){return Nk(c,function(e){return e.JSC$9073_containsRange(d,b)})})};
Sqb.prototype.insertNode=function(a,b){b?_.Sy(a,this.JSC$9073_getStartNode()):_.Ty(a,this.JSC$9073_getEndNode());return a};var Tqb,Uqb=$cb(rf()).documentElement;Tqb=Uqb.requestFullscreen?"fullscreenchange":Uqb.webkitRequestFullscreen?"webkitfullscreenchange":Uqb.mozRequestFullScreen?"mozfullscreenchange":Uqb.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var Vqb=function(){var a=$cb(rf());return!!(a.webkitIsFullScreen||a.mozFullScreen||a.msFullscreenElement||a.fullscreenElement)};var MC=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.nx(MC,Sqb);_.f=MC.prototype;_.f.clone=function(){var a=new MC;a.browserRanges_=_.Ra(this.browserRanges_);return a};
_.f.getType=function(){return"mutli"};
_.f.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.f.getTextRangeCount=function(){return this.browserRanges_.length};
_.f.getTextRange=function(a){this.ranges_[a]||(this.ranges_[a]=Pqb(Oqb(this.browserRanges_[a])));return this.ranges_[a]};
_.f.getContainer=function(){if(!this.container_){for(var a=[],b=this.getTextRangeCount(),c=0;c<b;c++)a.push(this.getTextRange(c).getContainer());this.container_=Rcb.apply(null,a)}return this.container_};
var NC=function(a){a.sortedRanges_||(a.sortedRanges_=GC(a),a.sortedRanges_.sort(function(b,c){var d=b.JSC$9073_getStartNode();b=b.JSC$9073_getStartOffset();var e=c.JSC$9073_getStartNode();c=c.JSC$9073_getStartOffset();return d==e&&b==c?0:Rqb(d,b,e,c)?1:-1}));
return a.sortedRanges_};
_.f=MC.prototype;_.f.JSC$9073_getStartNode=function(){return NC(this)[0].JSC$9073_getStartNode()};
_.f.JSC$9073_getStartOffset=function(){return NC(this)[0].JSC$9073_getStartOffset()};
_.f.JSC$9073_getEndNode=function(){return _.Ja(NC(this)).JSC$9073_getEndNode()};
_.f.JSC$9073_getEndOffset=function(){return _.Ja(NC(this)).JSC$9073_getEndOffset()};
_.f.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.f.JSC$9073_getText=function(){return GC(this).map(function(a){return a.JSC$9073_getText()}).join("")};
_.f.__iterator__=function(){return new OC(this)};
_.f.select=function(){var a=this.getWindow().getSelection();a.removeAllRanges();for(var b=this.getTextRangeCount(),c=0;c<b;c++)a.addRange(this.getTextRange(c).getBrowserRangeObject())};
_.f.JSC$9073_removeContents=function(){GC(this).forEach(function(a){a.JSC$9073_removeContents()})};
_.f.collapse=function(a){if(!this.isCollapsed()){var b=a?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;b.collapse(a);this.ranges_=[b];this.sortedRanges_=[b];this.browserRanges_=[b.getBrowserRangeObject()]}};
var OC=function(a){this.iterators_=null;this.currentIdx_=0;a&&(this.iterators_=NC(a).map(function(b){return _.lmb(b)}));
FC.call(this,a?this.JSC$9079_getStartNode():null,!1,!0)};
_.nx(OC,Kqb);_.f=OC.prototype;_.f.JSC$9079_getStartNode=function(){return this.iterators_[0].JSC$9079_getStartNode()};
_.f.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.f.next=function(){for(;this.currentIdx_<this.iterators_.length;){var a=this.iterators_[this.currentIdx_],b=a.next();if(b.done)this.currentIdx_++;else return EC(this,a.node,a.tagType,a.depth),b}return mB};
_.f.JSC$9071_copyFrom=function(a){this.iterators_=_.Ra(a.iterators_);OC.superClass_.JSC$9071_copyFrom.call(this,a)};
_.f.clone=function(){var a=new OC(null);a.JSC$9071_copyFrom(this);return a};var Wqb,Rqb;_.lv=function(){var a=window.getSelection();return a&&Wqb(a)};
Wqb=function(a){var b=!1;if(a.createRange)try{var c=a.createRange()}catch(e){return null}else if(a.rangeCount){if(a.rangeCount>1){c=new MC;b=a.rangeCount;for(var d=0;d<b;d++)c.browserRanges_.push(a.getRangeAt(d));return c}c=a.getRangeAt(0);b=Rqb(a.anchorNode,a.anchorOffset,a.focusNode,a.focusOffset)}else return null;return Pqb(Oqb(c),b)};
_.PC=function(a,b){return _.KC(a,b,a,b)};
_.QC=function(a,b,c,d){return _.KC(a,b,c,d)};
Rqb=function(a,b,c,d){if(a==c)return d<b;var e;if(a.nodeType==1&&b)if(e=a.childNodes[b])a=e,b=0;else if(_.Gg(a,c))return!0;if(c.nodeType==1&&d)if(e=c.childNodes[d])c=e,d=0;else if(_.Gg(c,a))return!1;return(Qcb(a,c)||b-d)>0};var RC=function(){_.Dz.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.ug)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.ug)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.ug)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.ug)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.ug)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.ug)(this.dispatchProgressEvent_,this)};
_.nx(RC,_.Dz);RC.prototype.abort=function(){try{this.reader_.abort()}catch(a){throw new wlb(a,"aborting read");}};
RC.prototype.getError=function(){return this.reader_.error&&new wlb(this.reader_.error,"reading file")};
RC.prototype.dispatchProgressEvent_=function(a){this.dispatchEvent(new xlb(a,this))};
RC.prototype.disposeInternal=function(){RC.superClass_.disposeInternal.call(this);delete this.reader_};
var Yqb=function(a){var b=new RC,c=Xqb(b);b.reader_.readAsArrayBuffer(a);return c},Zqb=function(a){var b=new RC,c=Xqb(b);
b.reader_.readAsDataURL(a);return c},Xqb=function(a){var b=new $z;
a.listen("loadend",_.vo(function(c,d){var e=d.reader_.result,g=d.getError();e==null||g?c.errback(g):c.callback(e);d.dispose()},b,a));
return b};var SC=function(){_.Dz.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$9113_eventHandler_=new _.bn(this);this.JSC$9113_isInitialized_=!1};
_.nx(SC,_.Dz);var $qb=new _.xz("d"),arb=new _.xz("beforedragstart"),brb=new _.xz("dragstart"),crb=new _.xz("beforedragmove"),drb=new _.xz("dragmove"),erb=new _.xz("beforedragend"),frb=new _.xz("dragend"),grb=new _.xz("e");SC.prototype.isDragging=function(){return!!this.JSC$9113_dragger_};
var hrb=function(a,b){b.dlgGrowthDirection_=0;b.dlgDragHoverClass_=void 0;b.dlgDragPermission=0;a.dragLists_.push(b)},irb=function(a,b){a.getHandleForDragItem_=b};
SC.prototype.init=function(){if(!this.JSC$9113_isInitialized_){for(var a=this.dragLists_.length,b=0;b<a;b++)for(var c=_.Uy(this.dragLists_[b]),d=c.length,e=0;e<d;++e){var g=c[e],k=this.getHandleForDragItem_(g),m=_.ab(k);this.dragItemForHandle_[m]=g;this.dragItemHoverClasses_&&(this.JSC$9113_eventHandler_.listen(g,"mouseover",this.handleDragItemMouseover_),this.JSC$9113_eventHandler_.listen(g,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$9113_eventHandler_.listen(k,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$9113_eventHandler_.listen(k,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(g);this.JSC$9113_eventHandler_.listen(k,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$9113_isInitialized_=!0}};
SC.prototype.disposeInternal=function(){this.JSC$9113_eventHandler_.dispose();for(var a=this.dragLists_.length,b=0;b<a;b++){var c=this.dragLists_[b];c.dlgGrowthDirection_=void 0;c.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;jrb(this);SC.superClass_.disposeInternal.call(this)};
var krb=function(a,b){for(var c=a.dragLists_.length,d=0;d<c;d++){var e=a.dragLists_[d];e.dlgBounds_=gya(e)}c=a.dragItems_.length;for(d=0;d<c;d++)e=a.dragItems_[d],e!=b&&(e.dlgBounds_=gya(e))};
_.f=SC.prototype;
_.f.handlePotentialDragStart_=function(a){var b=_.ab(a.currentTarget);b=this.dragItemForHandle_[b];if(b.parentElement.dlgDragPermission!=2){this.currDragItem_=b;a:{b=this.currDragItem_;for(var c=b.cloneNode(!0),d=og("TEXTAREA",b),e=og("TEXTAREA",c),g=0;g<d.length;g++)e[g].value=d[g].value;switch(b.tagName){case "TR":b=_.Oy("TABLE",null,_.Oy("TBODY",null,c));break a;case "TD":case "TH":b=_.Oy("TABLE",null,_.Oy("TBODY",null,_.Oy("TR",null,c)));break a;case "TEXTAREA":c.value=b.value;default:b=c;break a}b=
void 0}this.draggerEl_=b;this.draggerElClasses_&&Yz(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.Cf(this.currDragItem_).body.appendChild(this.draggerEl_);c=_.Df(this.currDragItem_);b=this.draggerEl_;d=_.Df(b);if(c instanceof _.Af){var k=c.y;c=c.x}Zy(b,b.offsetLeft+(c-d.x),b.offsetTop+(Number(k)-d.y));this.JSC$9113_dragger_=new _.RA(this.draggerEl_);_.vkb(this.JSC$9113_dragger_,this.hysteresisDistance_);
_.ss(this.JSC$9113_dragger_,"start",this.handleDragStart_,!1,this);_.ss(this.JSC$9113_dragger_,"end",this.handleDragEnd_,!1,this);_.ss(this.JSC$9113_dragger_,"earlycancel",this.JSC$9115_cleanup_,!1,this);this.dispatchEvent(new TC($qb,this,a,this.currDragItem_,this.draggerEl_,this.JSC$9113_dragger_));this.JSC$9113_dragger_.startDrag(a)}};
_.f.handleDragStart_=function(a){if(this.dispatchEvent(new TC(arb,this,a.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.Ncb(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?Yz(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var b=gdb(this.draggerEl_);this.draggerEl_.halfWidth=b.width/2;this.draggerEl_.halfHeight=b.height/2;b=this.draggerEl_.getBoundingClientRect();
var c=a.clientY,d=wkb(this.JSC$9113_dragger_,a.clientX);if(d>b.right){var e=this.currDragItem_.getBoundingClientRect();this.JSC$9113_dragger_.deltaX=d-(d-e.left)/e.width*b.width}c=xkb(this.JSC$9113_dragger_,c);c>b.bottom&&(this.JSC$9113_dragger_.deltaY+=c-b.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";krb(this,this.currDragItem_);this.currDragItem_.style.display="";_.ss(this.JSC$9113_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new TC(brb,
this,a.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$9113_dragger_))}else a.preventDefault(),this.JSC$9115_cleanup_()};
_.f.handleDragMove_=function(a){var b=_.Df(this.draggerEl_);b=new _.Af(b.x+this.draggerEl_.halfWidth,b.y+this.draggerEl_.halfHeight);a:{var c=null;if(this.currDragItem_.style.display!="none"){c=this.currDragItem_.parentNode;var d=gya(c);if(lrb(b,d))break a}d=this.dragLists_.length;for(var e=0;e<d;e++){var g=this.dragLists_[e];if(g!=c&&lrb(b,g.dlgBounds_)){c=g;break a}}c=null}if(c){if(c==null)throw Error("Sd");d=0;e=!1;g=void 0;switch(c.dlgGrowthDirection_){case 0:d=b.y;var k=mrb;var m=nrb;break;case 4:e=
!0;case 2:d=b.x;k=orb;m=nrb;break;case 5:e=!0;case 3:d=b.x,k=prb,m=qrb}for(var n=null,r,t=_.Uy(c),u=t.length,w=0;w<u;w++){var A=t[w];if(A!=this.currDragItem_){var C=k(A.dlgBounds_);if(e){var G=rrb(A,b);g===void 0&&(g=G);m(d,C)&&(r==void 0||G<g||G==g&&(m(C,r)||C==r))&&(n=A,r=C);G<g&&(g=G)}else m(d,C)&&(r==void 0||m(C,r))&&(n=A,r=C)}}k=n!==null&&rrb(n,b)>g?null:n}else k=null;if(!this.dispatchEvent(new TC(crb,this,a,this.currDragItem_,this.draggerEl_,this.JSC$9113_dragger_,b,c,k)))return!1;if(c&&c.dlgDragPermission!=
1)this.currDragItem_.parentNode==c&&_.Ncb(this.currDragItem_)==k||c.insertBefore(this.currDragItem_,k),this.currDragItem_.style.display="",c.dlgDragHoverClass_&&_.Ts(c,c.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",m=this.dragLists_.length,r=0;r<m;r++)d=this.dragLists_[r],d.dlgDragHoverClass_&&_.Rs(d,d.dlgDragHoverClass_);c!=this.currHoverList_&&(this.currHoverList_=c,krb(this,this.currDragItem_));this.dispatchEvent(new TC(drb,this,a,this.currDragItem_,this.draggerEl_,this.JSC$9113_dragger_,
b,c,k));return!1};
_.f.JSC$9115_cleanup_=function(){jrb(this);this.JSC$9113_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var a=this.dragLists_.length,b=0;b<a;b++)this.dragLists_[b].dlgBounds_=null;a=this.dragItems_.length;for(b=0;b<a;b++)this.dragItems_[b].dlgBounds_=null};
_.f.handleDragEnd_=function(a){if(!this.dispatchEvent(new TC(erb,this,a,this.currDragItem_,this.draggerEl_,this.JSC$9113_dragger_)))return!1;jrb(this);this.dispatchEvent(new TC(frb,this,a,this.currDragItem_,this.draggerEl_,this.JSC$9113_dragger_));this.JSC$9115_cleanup_();return!0};
var jrb=function(a){_.Tf(a.JSC$9113_dragger_);var b=a.draggerEl_&&a.draggerEl_.parentElement;a.draggerEl_&&_.mg(a.draggerEl_);a.currDragItem_&&a.currDragItem_.style.display=="none"&&(a.origList_.insertBefore(a.currDragItem_,a.origNextItem_),a.currDragItem_.style.display="");a.currDragItemClasses_&&a.currDragItem_?rhb(a.currDragItem_,a.currDragItemClasses_||[]):a.currDragItem_&&(a.currDragItem_.style.visibility="");for(var c=a.dragLists_.length,d=0;d<c;d++){var e=a.dragLists_[d];e.dlgDragHoverClass_&&
_.Rs(e,e.dlgDragHoverClass_)}b&&a.dispatchEvent(new TC(grb,a,null,a.currDragItem_,a.draggerEl_,a.JSC$9113_dragger_))};
_.f=SC.prototype;_.f.getHandleForDragItem_=function(a){return a};
_.f.handleDragItemMouseover_=function(a){Yz(a.currentTarget,this.dragItemHoverClasses_||[])};
_.f.handleDragItemMouseout_=function(a){rhb(a.currentTarget,this.dragItemHoverClasses_||[])};
_.f.handleDragItemHandleMouseover_=function(a){Yz(a.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.f.handleDragItemHandleMouseout_=function(a){rhb(a.currentTarget,this.dragItemHandleHoverClasses_||[])};
var lrb=function(a,b){return a.x>b.left&&a.x<b.left+b.width&&a.y>b.top&&a.y<b.top+b.height},rrb=function(a,b){a=a.dlgBounds_;
return Math.abs(b.y-(a.top+(a.height-1)/2))},mrb=function(a){return a.top+a.height-1},orb=function(a){return a.left+a.width-1},prb=function(a){return a.left||0},nrb=function(a,b){return a<b},qrb=function(a,b){return a>b},TC=function(a,b,c,d,e,g){_.yz.call(this,a);
this.event=c;this.currDragItem=d;this.draggerEl=e;this.JSC$9117_dragger=g};
_.nx(TC,_.yz);_.nx(cn,_.tg);var srb=new _.Af(0,0);cn.prototype.JSC$9121_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
cn.prototype.JSC$9121_onMouseMove=function(a){var b=this.containerIsActuallyContent_?srb:qf(rf(this.containerNode_)),c=this.horizontalScrolling_?this.calculateScrollDelta(a.clientX+b.x,this.scrollBounds_.left,this.scrollBounds_.width):0,d=this.calculateScrollDelta(a.clientY+b.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=c;this.scrollDelta_.y=d;!(c=!c&&!d)&&(c=this.constrainScroll_)&&(c=a.clientX+b.x,a=a.clientY+b.y,b=this.containerBounds_,c=!(b.left<=c&&b.left+b.width>=
c&&b.top<=a&&b.top+b.height>=a));c?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
cn.prototype.calculateScrollDelta=function(a,b,c){var d=0;a<b?d=-8:a>b+c&&(d=8);return d};
cn.prototype.disposeInternal=function(){cn.superClass_.disposeInternal.call(this);this.JSC$9119_eventHandler_.dispose();this.scrollTimer_.dispose()};var trb={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"}}},UC=trb;UC=trb;var VC={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 urb=function(){},Rp=function(a){if(typeof a=="number"){var b=new urb;
b.standardOffset_=a;var c=a;if(c==0)c="Etc/GMT";else{var d=["Etc/GMT",c<0?"-":"+"];c=Math.abs(c);d.push(Math.floor(c/60)%100);c%=60;c!=0&&d.push(":",_.my(c,2));c=d.join("")}b.timeZoneId_=c;c=a;c==0?c="UTC":(d=["UTC",c<0?"+":"-"],c=Math.abs(c),d.push(Math.floor(c/60)%100),c%=60,c!=0&&d.push(":",c),c=d.join(""));a=vrb(a);b.tzNames_=[c,c];b.tzNamesExt_={STD_LONG_NAME_GMT:a,STD_GENERIC_LOCATION:a};b.transitions_=[];return b}b=new urb;b.timeZoneId_=a.id;b.standardOffset_=-a.std_offset;b.tzNames_=a.names;
b.tzNamesExt_=a.names_ext;b.transitions_=a.transitions;return b},vrb=function(a){var b=["GMT"];
b.push(a<=0?"+":"-");a=Math.abs(a);b.push(_.my(Math.floor(a/60)%100,2),":",_.my(a%60,2));return b.join("")},wrb=function(a,b){b=Date.UTC(b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate(),b.getUTCHours(),b.getUTCMinutes())/36E5;
for(var c=0;c<a.transitions_.length&&b>=a.transitions_[c];)c+=2;return c==0?0:a.transitions_[c-1]},xrb=function(a,b){a=a.standardOffset_-wrb(a,b);
return a===-1440?0:a};var Sp=function(a,b){this.patternParts_=[];this.JSC$9132_dateTimeSymbols_=b||Fv;typeof a=="number"?yrb(this,a):zrb(this,a)},Arb=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],WC=function(a){return a.getHours?a.getHours():0},zrb=function(a,b){for(WFa&&(b=b.replace(/\u200f/g,""));b;){for(var c=b,d=0;d<Arb.length;++d){var e=b.match(Arb[d]);
if(e){var g=e[0];b=b.substring(g.length);d==0&&(g=="''"?g="'":(g=g.substring(1,e[1]=="'"?g.length-1:g.length),g=g.replace(/''/g,"'")));a.patternParts_.push({text:g,type:d});break}}if(c===b)throw Error("Td`"+b);}};
Sp.prototype.format=function(a,b){if(!a)throw Error("Ud");var c=b?(a.getTimezoneOffset()-xrb(b,a))*6E4:0,d=c?new Date(a.getTime()+c):a,e=d;b&&d.getTimezoneOffset()!=a.getTimezoneOffset()&&(d=new Date(d.getTime()+(d.getTimezoneOffset()-a.getTimezoneOffset())*6E4),e=new Date(a.getTime()+(c+(c>0?-864E5:864E5))));c=[];for(var g=0;g<this.patternParts_.length;++g){var k=this.patternParts_[g].text;1==this.patternParts_[g].type?c.push(Brb(this,k,a,d,e,b)):c.push(k)}return c.join("")};
var yrb=function(a,b){if(b<4)var c=a.JSC$9132_dateTimeSymbols_.DATEFORMATS[b];else if(b<8)c=a.JSC$9132_dateTimeSymbols_.TIMEFORMATS[b-4];else if(b<12)c=a.JSC$9132_dateTimeSymbols_.DATETIMEFORMATS[b-8],c=c.replace("{1}",a.JSC$9132_dateTimeSymbols_.DATEFORMATS[b-8]),c=c.replace("{0}",a.JSC$9132_dateTimeSymbols_.TIMEFORMATS[b-8]);else if(b===12)c=a.JSC$9132_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(b===13)c=a.JSC$9132_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{yrb(a,10);return}zrb(a,c)},XC=function(a,b){b=String(b);
a=a.JSC$9132_dateTimeSymbols_||Fv;if(a.ZERODIGIT!==void 0&&!VFa){for(var c=[],d=0;d<b.length;d++){var e=b.charCodeAt(d);c.push(48<=e&&e<=57?String.fromCharCode(a.ZERODIGIT+e-48):b.charAt(d))}b=c.join("")}return b},VFa=!1,WFa=!1,Drb=function(a,b,c,d){c=c.getFullYear();
c<=0&&d&&(c=1-c);return XC(a,Crb(c,b))},Crb=function(a,b){b==2&&(a%=100);
a<0&&b++;return _.my(a,b)},YC=function(a){if(!(a.getHours&&a.getSeconds&&a.getMinutes))throw Error("Vd");
},Erb=function(a,b){YC(b);
b=WC(b);return a.JSC$9132_dateTimeSymbols_.AMPMS[b>=12&&b<24?1:0]},Brb=function(a,b,c,d,e,g){var k=b.length;
switch(b.charAt(0)){case "G":return c=d.getFullYear()>0?1:0,k>=4?a.JSC$9132_dateTimeSymbols_.ERANAMES[c]:a.JSC$9132_dateTimeSymbols_.ERAS[c];case "y":return Drb(a,k,d,!0);case "Y":return c=(new Date(Gqb(d.getFullYear(),d.getMonth(),d.getDate(),a.JSC$9132_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,a.JSC$9132_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),k==2&&(c%=100),XC(a,Crb(c,k));case "u":return Drb(a,k,d,!1);case "M":a:switch(c=d.getMonth(),k){case 5:k=a.JSC$9132_dateTimeSymbols_.NARROWMONTHS[c];break a;
case 4:k=a.JSC$9132_dateTimeSymbols_.MONTHS[c];break a;case 3:k=a.JSC$9132_dateTimeSymbols_.SHORTMONTHS[c];break a;default:k=XC(a,_.my(c+1,k))}return k;case "k":return YC(e),XC(a,_.my(WC(e)||24,k));case "S":return XC(a,(e.getMilliseconds()/1E3).toFixed(Math.min(3,k)).slice(2)+(k>3?_.my(0,k-3):""));case "E":return c=d.getDay(),k>=4?a.JSC$9132_dateTimeSymbols_.WEEKDAYS[c]:a.JSC$9132_dateTimeSymbols_.SHORTWEEKDAYS[c];case "a":return Erb(a,e);case "b":return Erb(a,e);case "B":return Erb(a,e);case "h":return YC(e),
XC(a,_.my(WC(e)%12||12,k));case "K":return YC(e),XC(a,_.my(WC(e)%12,k));case "H":return YC(e),XC(a,_.my(WC(e),k));case "c":a:switch(c=d.getDay(),k){case 5:k=a.JSC$9132_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[c];break a;case 4:k=a.JSC$9132_dateTimeSymbols_.STANDALONEWEEKDAYS[c];break a;case 3:k=a.JSC$9132_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[c];break a;default:k=XC(a,_.my(c,1))}return k;case "L":a:switch(c=d.getMonth(),k){case 5:k=a.JSC$9132_dateTimeSymbols_.STANDALONENARROWMONTHS[c];break a;
case 4:k=a.JSC$9132_dateTimeSymbols_.STANDALONEMONTHS[c];break a;case 3:k=a.JSC$9132_dateTimeSymbols_.STANDALONESHORTMONTHS[c];break a;default:k=XC(a,_.my(c+1,k))}return k;case "Q":return c=Math.floor(d.getMonth()/3),k<4?a.JSC$9132_dateTimeSymbols_.SHORTQUARTERS[c]:a.JSC$9132_dateTimeSymbols_.QUARTERS[c];case "d":return XC(a,_.my(d.getDate(),k));case "m":return YC(e),XC(a,_.my(e.getMinutes?e.getMinutes():0,k));case "s":return YC(e),XC(a,_.my(e.getSeconds(),k));case "v":return(g||Rp(c.getTimezoneOffset())).timeZoneId_;
case "V":return a=g||Rp(c.getTimezoneOffset()),k<=2?a.timeZoneId_:wrb(a,c)>0?a.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?a.tzNamesExt_.DST_GENERIC_LOCATION:a.tzNamesExt_.DST_GENERIC_LOCATION:a.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?a.tzNamesExt_.STD_GENERIC_LOCATION:a.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return c=Gqb(e.getFullYear(),e.getMonth(),e.getDate(),a.JSC$9132_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,a.JSC$9132_dateTimeSymbols_.FIRSTDAYOFWEEK),XC(a,_.my(Math.floor(Math.round((c-(new Date((new Date(c)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,k));case "z":return a=g||Rp(c.getTimezoneOffset()),k<4?a.tzNames_[wrb(a,c)>0?2:0]:a.tzNames_[wrb(a,c)>0?3:1];case "Z":return b=g||Rp(c.getTimezoneOffset()),k<4?(k=-xrb(b,c),a=[k<0?"-":"+"],k=Math.abs(k),a.push(_.my(Math.floor(k/60)%100,2),_.my(k%60,2)),k=a.join("")):k=XC(a,vrb(xrb(b,c))),k;default:return""}};var Frb=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,Grb=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,w0a=function(a){this.patternParts_=[];this.JSC$9141_dateTimeSymbols_=Fv;if(typeof a=="number"){a>11&&(a=10);if(a<4)var b=this.JSC$9141_dateTimeSymbols_.DATEFORMATS[a];else a<8?b=this.JSC$9141_dateTimeSymbols_.TIMEFORMATS[a-4]:(b=this.JSC$9141_dateTimeSymbols_.DATETIMEFORMATS[a-8],b=b.replace("{1}",this.JSC$9141_dateTimeSymbols_.DATEFORMATS[a-8]),b=b.replace("{0}",this.JSC$9141_dateTimeSymbols_.TIMEFORMATS[a-
8]));Hrb(this,b)}else Hrb(this,a)},Hrb=function(a,b){for(var c=!1,d="",e=0;e<b.length;e++){var g=b.charAt(e);
if(Frb.test(g))for(d.length>0&&(a.patternParts_.push({text:d,count:0,abutStart:!1,numeric:!1}),d=""),a.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});e<b.length-1&&b.charAt(e+1)==" ";)e++;else if(c)g=="'"?e+1<b.length&&b.charAt(e+1)=="'"?(d+="'",e++):c=!1:d+=g;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(g)>=0){d.length>0&&(a.patternParts_.push({text:d,count:0,abutStart:!1,numeric:!1}),d="");for(var k=b.charAt(e),m=e+1;m<b.length&&b.charAt(m)==k;)m++;k=m-e;k<=0?m=!1:(m="MydhHmsSDkK".indexOf(g),
m=m>0||m==0&&k<3);a.patternParts_.push({text:g,count:k,abutStart:!1,numeric:m});e+=k-1}else g=="'"?e+1<b.length&&b.charAt(e+1)=="'"?(d+="'",e++):c=!0:d+=g}d.length>0&&a.patternParts_.push({text:d,count:0,abutStart:!1,numeric:!1});b=!1;for(c=0;c<a.patternParts_.length;c++)a.patternParts_[c].numeric?!b&&c+1<a.patternParts_.length&&a.patternParts_[c+1].numeric&&(b=!0,a.patternParts_[c].abutStart=!0):b=!1};
w0a.prototype.parse=function(a,b,c){var d=!1,e=!1;c&&(d=c.predictive||!1,e=c.validate||!1);if(d)for(c=0;c<this.patternParts_.length;c++){var g=this.patternParts_[c];if(g.count>0&&("abBhHkKm".indexOf(g.text.charAt(0))<0||g.count>2||g.abutStart))throw Error("Wd`"+g.text.charAt(0));}g=new Irb;c=[0];g.dayPeriodIndex=-1;for(var k=0;k<this.patternParts_.length&&!(d&&c[0]>=a.length);k++){if(this.patternParts_[k].count==0){a:{var m=a;var n=c,r=this.patternParts_[k],t=d;if(r.text.match(Frb)!=null){if(r=n[0],
Jrb(m,n),n[0]>r){m=!0;break a}}else{if(m.indexOf(r.text,n[0])==n[0]){n[0]+=r.text.length;m=!0;break a}if(t&&r.text.indexOf(m.substring(n[0]))==0){n[0]+=m.length-n[0];m=!0;break a}}m=!1}if(m)continue;return 0}if(this.patternParts_[k].abutStart){a:{n=a;r=c;t=k;var u=r[0],w=0;for(m=t;m<this.patternParts_.length;m++){var A=this.patternParts_[m],C=A.count;if(C===0)break;if(m==t&&(C-=w,w++,C==0)){m=0;break a}var G=m>t&&A.numeric,J=r[0];if(!Krb(this,n,r,A,C,g,!1)||G&&r[0]-J<C)m=t-1,r[0]=u}m-=t}if(m<=0)return 0;
k+=m-1}else if(!Krb(this,a,c,this.patternParts_[k],0,g,d))return 0}a:{a=e;if(b==null)throw Error("Xd");g.era!=void 0&&g.year!=void 0&&g.era==0&&g.year>0&&(g.year=-(g.year-1));g.year!=void 0&&b.setFullYear(g.year);d=b.getDate();b.setDate(1);g.month!=void 0&&b.setMonth(g.month);g.day!=void 0?b.setDate(g.day):(e=n_a(b.getFullYear(),b.getMonth()),b.setDate(d>e?e:d));typeof b.setHours==="function"&&(g.hours==void 0&&(g.hours=b.getHours()),g.hours<12&&(g.ampm!=void 0&&g.ampm>0?g.hours+=12:g.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(g.dayPeriodName)||["night1","night2"].includes(g.dayPeriodName)&&g.hours>=6)&&(g.hours+=12)),b.setHours(g.hours));typeof b.setMinutes==="function"&&g.minutes!=void 0&&b.setMinutes(g.minutes);typeof b.setSeconds==="function"&&g.seconds!=void 0&&b.setSeconds(g.seconds);typeof b.setMilliseconds==="function"&&g.milliseconds!=void 0&&b.setMilliseconds(g.milliseconds);if(a&&(g.year&&g.year!=b.getFullYear()||g.month&&g.month!=
b.getMonth()||g.day&&g.day!=b.getDate()||g.hours&&g.hours>=24||g.minutes&&g.minutes>=60||g.seconds&&g.seconds>=60||g.milliseconds&&g.milliseconds>=1E3))b=!1;else{g.tzOffset!=void 0&&b.setTime(b.getTime()+(g.tzOffset-b.getTimezoneOffset())*60*1E3);g.ambiguousYear&&(a=new Date,a.setFullYear(a.getFullYear()-80),b.getTime()<a.getTime()&&b.setFullYear(a.getFullYear()+100));if(g.dayOfWeek!=void 0)if(g.day==void 0)g=(7+g.dayOfWeek-b.getDay())%7,g>3&&(g-=7),a=b.getMonth(),b.setDate(b.getDate()+g),b.getMonth()!=
a&&b.setDate(b.getDate()+(g>0?-7:7));else if(g.dayOfWeek!=b.getDay()){b=!1;break a}b=!0}}return b?c[0]:0};
var Krb=function(a,b,c,d,e,g,k){Jrb(b,c);if(d.numeric&&e>0&&c[0]+e>b.length)return!1;switch(d.text.charAt(0)){case "G":return ZC(b,c,[a.JSC$9141_dateTimeSymbols_.ERAS],function(m){return g.era=m}),!0;
case "M":case "L":return Lrb(a,b,c,e,d,g);case "E":return ZC(b,c,[a.JSC$9141_dateTimeSymbols_.WEEKDAYS,a.JSC$9141_dateTimeSymbols_.SHORTWEEKDAYS],function(m){return g.dayOfWeek=m});
case "B":case "b":return e=[],a=[[].concat(a.JSC$9141_dateTimeSymbols_.AMPMS)],e.push("isAm"),e.push("isPm"),b=ZC(b,c,a,function(m){return g.dayPeriodIndex=m},k),g.dayPeriodName=e[g.dayPeriodIndex],k?b:!0;
case "a":return b=ZC(b,c,[a.JSC$9141_dateTimeSymbols_.AMPMS],function(m){return g.ampm=m},k),k?b:!0;
case "y":return Mrb(a,b,c,d,e,g);case "Q":return ZC(b,c,[a.JSC$9141_dateTimeSymbols_.QUARTERS,a.JSC$9141_dateTimeSymbols_.SHORTQUARTERS],function(m){g.month=m*3;g.day=1});
case "d":return $C(a,b,c,d,e,function(m){g.day=m}),!0;
case "S":return Nrb(a,b,c,e,g);case "h":case "K":case "H":case "k":return b=$C(a,b,c,d,e,function(m){g.hours=d.text.charAt(0)==="h"&&m===12?0:m},k),k?b:!0;
case "m":return b=$C(a,b,c,d,e,function(m){g.minutes=m},k),k?b:!0;
case "s":return $C(a,b,c,d,e,function(m){g.seconds=m}),!0;
case "z":case "Z":case "v":return Orb(a,b,c,g);default:return!1}},Mrb=function(a,b,c,d,e,g){var k=c[0];
e=aD(a,b,c,e);e===null&&(e=aD(a,b,c,0,!0));if(e===null)return!1;e>=0&&c[0]-k==2&&d.count==2?(a=e,b=(new Date).getFullYear()-80,c=b%100,g.ambiguousYear=a==c,a+=Math.floor(b/100)*100+(a<c?100:0),g.year=a):g.year=e;return!0},Lrb=function(a,b,c,d,e,g){return e.numeric&&$C(a,b,c,e,d,function(k){g.month=k-1})?!0:ZC(b,c,[a.JSC$9141_dateTimeSymbols_.MONTHS,
a.JSC$9141_dateTimeSymbols_.STANDALONEMONTHS,a.JSC$9141_dateTimeSymbols_.SHORTMONTHS,a.JSC$9141_dateTimeSymbols_.STANDALONESHORTMONTHS],function(k){g.month=k})},Nrb=function(a,b,c,d,e){var g=c[0];
a=aD(a,b,c,d);if(a===null)return!1;c=c[0]-g;e.milliseconds=c<3?a*Math.pow(10,3-c):Math.round(a/Math.pow(10,c-3));return!0},Orb=function(a,b,c,d){b.indexOf("GMT",c[0])==c[0]&&(c[0]+=3);
if(c[0]>=b.length)return d.tzOffset=0,!0;var e=c[0],g=aD(a,b,c,0,!0);if(g===null)return!1;if(c[0]<b.length&&b.charAt(c[0])==":"){var k=g*60;c[0]++;g=aD(a,b,c,0);if(g===null)return!1;k+=g}else k=g,k=k<24&&c[0]-e<=3?k*60:k%100+k/100*60;d.tzOffset=-k;return!0},$C=function(a,b,c,d,e,g,k){k=k||!1;
var m=c[0];a=aD(a,b,c,e);if(a===null)return!1;if(k&&c[0]-m<d.count){if(c[0]<b.length)return!1;a*=Math.pow(10,d.count-(c[0]-m))}g(a);return!0},ZC=function(a,b,c,d,e){e=e||!1;
for(var g,k=0;k<c.length;k++){g=b;for(var m=c[k],n=e,r=0,t=null,u=a.substring(g[0]).toLowerCase(),w=0;w<m.length;w++){var A=m[w].toLowerCase();if(n&&A.indexOf(u)==0){r=u.length;t=w;break}m[w].length>r&&u.indexOf(A)==0&&(r=m[w].length,t=w)}t!==null&&(g[0]+=r);g=t;if(g!==null)return d(g),!0}return!1},Jrb=function(a,b){(a=a.substring(b[0]).match(Grb))&&(b[0]+=a[0].length)},aD=function(a,b,c,d,e){b=d>0?b.substring(0,c[0]+d):b;
e=e||!1;if(a.JSC$9141_dateTimeSymbols_.ZERODIGIT){d=[];for(var g=c[0];g<b.length;g++){var k=b.charCodeAt(g)-a.JSC$9141_dateTimeSymbols_.ZERODIGIT;d.push(0<=k&&k<=9?String.fromCharCode(k+48):b.charAt(g))}b=d.join("")}else b=b.substring(c[0]);a=b.match(new RegExp("^"+(e?"[+-]?":"")+"\\d+"));if(!a)return null;c[0]+=a[0].length;return parseInt(a[0],10)},Irb=function(){};
Irb.prototype.ambiguousYear=!1;_.Prb={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 Qrb={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"},Rrb=Qrb,Srb=Qrb;Srb=Rrb=Qrb;var Urb,bD,dD,Y2a,cD,Trb;
_.Op=function(a,b,c,d){var e;if(e=b){a:if(b&&b.length===3){for(e=0;e<3;e++){var g=b[e];if(g<"A"||g>"Z"&&g<"a"||g>"z"){e=!1;break a}}e=!0}else e=!1;e=!e}if(e)throw new TypeError("Yd");this.intlCurrencyCode_=b?b.toUpperCase():null;this.currencyStyle_=c||0;this.overrideNumberFormatSymbols_=d||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_=bD(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof a==="number")switch(a){case 1:cD(this,bD(this).DECIMAL_PATTERN);break;case 2:cD(this,bD(this).SCIENTIFIC_PATTERN);break;case 3:cD(this,bD(this).PERCENT_PATTERN);break;case 4:a=bD(this).CURRENCY_PATTERN;b=["0"];if(c=
VC[dD(this)]){c=c[0]&7;if(c>0)for(b.push("."),d=0;d<c;d++)b.push("0");a=a.replace(/0.00/g,b.join(""))}cD(this,a);break;case 5:Trb(this,1);break;case 6:Trb(this,2);break;default:throw Error("ae");}else cD(this,a)};
Urb=!1;bD=function(a){return a.overrideNumberFormatSymbols_||(Urb?Srb:Rrb)};
dD=function(a){return a.intlCurrencyCode_||bD(a).DEF_CURRENCY_CODE};
Y2a=function(a,b){if(b>308)throw Error("$d`"+b);a.maximumFractionDigits_=b;return a};
cD=function(a,b){var c=[0];a.positivePrefix_=Vrb(a,b,c);for(var d=c[0],e=-1,g=0,k=0,m=0,n=-1,r=b.length,t=!0;c[0]<r&&t;c[0]++)switch(b.charAt(c[0])){case "#":k>0?m++:g++;n>=0&&e<0&&n++;break;case "0":if(m>0)throw Error("ge`"+b);k++;n>=0&&e<0&&n++;break;case ",":n>0&&a.groupingArray_.push(n);n=0;break;case ".":if(e>=0)throw Error("he`"+b);e=g+k+m;break;case "E":if(a.useExponentialNotation_)throw Error("ie`"+b);a.useExponentialNotation_=!0;a.minExponentDigits_=0;c[0]+1<r&&b.charAt(c[0]+1)=="+"&&(c[0]++,
a.useSignForPositiveExponent_=!0);for(;c[0]+1<r&&b.charAt(c[0]+1)=="0";)c[0]++,a.minExponentDigits_++;if(g+k<1||a.minExponentDigits_<1)throw Error("je`"+b);t=!1;break;default:c[0]--,t=!1}k==0&&g>0&&e>=0&&(k=e,k==0&&k++,m=g-k,g=k-1,k=1);if(e<0&&m>0||e>=0&&(e<g||e>g+k)||n==0)throw Error("ke`"+b);m=g+k+m;a.maximumFractionDigits_=e>=0?m-e:0;e>=0&&(a.minimumFractionDigits_=g+k-e,a.minimumFractionDigits_<0&&(a.minimumFractionDigits_=0));a.minimumIntegerDigits_=(e>=0?e:m)-g;a.useExponentialNotation_&&(a.maximumIntegerDigits_=
g+a.minimumIntegerDigits_,a.maximumFractionDigits_==0&&a.minimumIntegerDigits_==0&&(a.minimumIntegerDigits_=1));a.groupingArray_.push(Math.max(0,n));a.decimalSeparatorAlwaysShown_=e==0||e==m;d=c[0]-d;a.positiveSuffix_=Vrb(a,b,c);c[0]<b.length&&b.charAt(c[0])==";"?(c[0]++,a.multiplier_!=1&&(a.negativePercentSignExpected_=!0),a.negativePrefix_=Vrb(a,b,c),c[0]+=d,a.negativeSuffix_=Vrb(a,b,c)):(a.negativePrefix_+=a.positivePrefix_,a.negativeSuffix_+=a.positiveSuffix_)};
Trb=function(a,b){a.compactStyle_=b;cD(a,bD(a).DECIMAL_PATTERN);a.minimumFractionDigits_=0;Y2a(a,2);if(a.minimumFractionDigits_>0)throw Error("Zd");a.significantDigits_=2};
_.Op.prototype.parse=function(a,b){b=b||[0];if(this.compactStyle_!==0)throw Error("be");a=a.replace(/ |\u202f/g,"\u00a0");var c=a.indexOf(this.positivePrefix_,b[0])==b[0],d=a.indexOf(this.negativePrefix_,b[0])==b[0];c&&d&&(this.positivePrefix_.length>this.negativePrefix_.length?d=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(c=!1));c?b[0]+=this.positivePrefix_.length:d&&(b[0]+=this.negativePrefix_.length);if(a.indexOf(bD(this).INFINITY,b[0])==b[0]){b[0]+=bD(this).INFINITY.length;var e=
Infinity}else{e=a;var g=!1,k=!1,m=!1,n=-1,r=1,t=bD(this).DECIMAL_SEP,u=bD(this).GROUP_SEP,w=bD(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("ce");u=u.replace(/\u202f/g,"\u00a0");for(var A="";b[0]<e.length;b[0]++){var C=e.charAt(b[0]),G=Wrb(this,C);if(G>=0&&G<=9)A+=G,m=!0;else if(C==t.charAt(0)){if(g||k)break;A+=".";g=!0}else if(C==u.charAt(0)&&("\u00a0"!=u.charAt(0)||b[0]+1<e.length&&Wrb(this,e.charAt(b[0]+1))>=0)){if(g||k)break}else if(C==w.charAt(0)){if(k)break;A+="E";k=!0;n=b[0]}else if(C==
"+"||C=="-"){if(m&&n!=b[0]-1)break;A+=C}else if(this.multiplier_==1&&C==bD(this).PERCENT.charAt(0)){if(r!=1)break;r=100;if(m){b[0]++;break}}else if(this.multiplier_==1&&C==bD(this).PERMILL.charAt(0)){if(r!=1)break;r=1E3;if(m){b[0]++;break}}else break}this.multiplier_!=1&&(r=this.multiplier_);e=parseFloat(A)/r}if(c){if(a.indexOf(this.positiveSuffix_,b[0])!=b[0])return NaN;b[0]+=this.positiveSuffix_.length}else if(d){if(a.indexOf(this.negativeSuffix_,b[0])!=b[0])return NaN;b[0]+=this.negativeSuffix_.length}return d?
-e:e};
_.Op.prototype.format=function(a){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("de");if(isNaN(a))return bD(this).NAN;var b=[];var c=a;if(this.compactStyle_==0)c=eD;else{c=Math.abs(c);var d=Xrb(this,c<=1?0:Yrb(c)).divisorBase;c=Xrb(this,d+Yrb(Zrb(this,fD(c,-d)).intValue))}a=fD(a,-c.divisorBase);(d=a<0||a==0&&1/a<0)?c.negative_prefix?b.push(c.negative_prefix):(b.push(c.prefix),b.push(this.negativePrefix_)):(b.push(c.prefix),b.push(this.positivePrefix_));if(isFinite(a))if(a*=
d?-1:1,a*=this.multiplier_,this.useExponentialNotation_){var e=a;if(e==0)$rb(this,e,this.minimumIntegerDigits_,b),asb(this,0,b);else{var g=Math.floor(Math.log(e)/Math.log(10)+2E-15);e=fD(e,-g);var k=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(k=g%this.maximumIntegerDigits_,k<0&&(k=this.maximumIntegerDigits_+k),e=fD(e,k),g-=k,k=1):this.minimumIntegerDigits_<1?(g++,e=fD(e,-1)):(g-=this.minimumIntegerDigits_-1,e=fD(e,this.minimumIntegerDigits_-
1));$rb(this,e,k,b);asb(this,g,b)}}else $rb(this,a,this.minimumIntegerDigits_,b);else b.push(bD(this).INFINITY);d?c.negative_suffix?b.push(c.negative_suffix):(isFinite(a)&&b.push(c.suffix),b.push(this.negativeSuffix_)):(isFinite(a)&&b.push(c.suffix),b.push(this.positiveSuffix_));return b.join("")};
var Zrb=function(a,b){var c=fD(b,a.maximumFractionDigits_);a.significantDigits_>0&&(c=bsb(c,a.significantDigits_,a.maximumFractionDigits_));c=Math.round(c);if(isFinite(c)){var d=Math.floor(fD(c,-a.maximumFractionDigits_));c=Math.floor(c-fD(d,a.maximumFractionDigits_));if(c<0||c>=fD(1,a.maximumFractionDigits_))d=Math.round(b),c=0}else d=b,c=0;return{intValue:d,fracValue:c}},$rb=function(a,b,c,d){if(a.minimumFractionDigits_>a.maximumFractionDigits_)throw Error("de");
d||(d=[]);b=Zrb(a,b);var e=b.intValue,g=b.fracValue,k=a.minimumFractionDigits_>0||g>0||!1;b=a.minimumFractionDigits_;k&&(b=a.minimumFractionDigits_);for(var m="",n=e;n>1E20;)m="0"+m,n=Math.round(fD(n,-1));m=n+m;var r=bD(a).DECIMAL_SEP;n=bD(a).ZERO_DIGIT.codePointAt(0);var t=m.length,u=0;if(e>0||c>0){for(e=t;e<c;e++)d.push(String.fromCodePoint(n));if(a.groupingArray_.length>=2)for(c=1;c<a.groupingArray_.length;c++)u+=a.groupingArray_[c];c=t-u;if(c>0){e=a.groupingArray_;u=t=0;for(var w,A=bD(a).GROUP_SEP,
C=m.length,G=0;G<C;G++)if(d.push(String.fromCodePoint(n+Number(m.charAt(G)))),C-G>1)if(w=e[u],G<c){var J=c-G;(w===1||w>0&&J%w===1)&&d.push(A)}else u<e.length&&(G===c?u+=1:w===G-c-t+1&&(d.push(A),t+=w,u+=1))}else{c=m;m=a.groupingArray_;e=bD(a).GROUP_SEP;w=c.length;A=[];for(t=m.length-1;t>=0&&w>0;t--){u=m[t];for(C=0;C<u&&w-C-1>=0;C++)A.push(String.fromCodePoint(n+Number(c.charAt(w-C-1))));w-=u;w>0&&A.push(e)}d.push.apply(d,A.reverse())}}else k||d.push(String.fromCodePoint(n));(a.decimalSeparatorAlwaysShown_||
k)&&d.push(r);g=String(g);k=g.split("e+");k.length==2&&(g=String(bsb(parseFloat(k[0]),a.significantDigits_,1)),g=g.replace(".",""),g+=(0,_.bbb)("0",parseInt(k[1],10)-g.length+1));a.maximumFractionDigits_+1>g.length&&(g="1"+(0,_.bbb)("0",a.maximumFractionDigits_-g.length)+g);for(a=g.length;g.charAt(a-1)=="0"&&a>b+1;)a--;for(b=1;b<a;b++)d.push(String.fromCodePoint(n+Number(g.charAt(b))))},asb=function(a,b,c){c.push(bD(a).EXP_SYMBOL);
b<0?(b=-b,c.push(bD(a).MINUS_SIGN)):a.useSignForPositiveExponent_&&c.push(bD(a).PLUS_SIGN);b=""+b;for(var d=bD(a).ZERO_DIGIT,e=b.length;e<a.minExponentDigits_;e++)c.push(d);a=d.codePointAt(0)-csb;for(d=0;d<b.length;d++)c.push(String.fromCodePoint(a+b.codePointAt(d)))},Wrb=function(a,b){b=b.codePointAt(0);
if(48<=b&&b<58)return b-48;a=bD(a).ZERO_DIGIT.codePointAt(0);return a<=b&&b<a+10?b-a:-1},csb="0".codePointAt(0),Vrb=function(a,b,c){for(var d="",e=!1,g=b.length;c[0]<g;c[0]++){var k=b.charAt(c[0]);
if(k=="'")c[0]+1<g&&b.charAt(c[0]+1)=="'"?(c[0]++,d+="'"):e=!e;else if(e)d+=k;else switch(k){case "#":case "0":case ",":case ".":case ";":return d;case "\u00a4":if(c[0]+1<g&&b.charAt(c[0]+1)=="\u00a4")c[0]++,d+=dD(a);else switch(a.currencyStyle_){case 0:k=dD(a);d+=k in VC?VC[k][1]:k;break;case 2:k=dD(a);var m=VC[k];d+=m?k==m[1]?k:k+" "+m[1]:k;break;case 1:k=dD(a),d+=k in VC?VC[k][2]:k}break;case "%":if(!a.negativePercentSignExpected_&&a.multiplier_!=1)throw Error("ee");if(a.negativePercentSignExpected_&&
a.multiplier_!=100)throw Error("fe");a.multiplier_=100;a.negativePercentSignExpected_=!1;d+=bD(a).PERCENT;break;case "\u2030":if(!a.negativePercentSignExpected_&&a.multiplier_!=1)throw Error("ee");if(a.negativePercentSignExpected_&&a.multiplier_!=1E3)throw Error("fe");a.multiplier_=1E3;a.negativePercentSignExpected_=!1;d+=bD(a).PERMILL;break;default:d+=k}}return d},eD={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},Xrb=function(a,b){a=a.compactStyle_==1?UC.COMPACT_DECIMAL_SHORT_PATTERN:UC.COMPACT_DECIMAL_LONG_PATTERN;a==null&&(a=UC.COMPACT_DECIMAL_SHORT_PATTERN);if(b<3)return eD;b=Math.min(14,b);var c=a[fD(1,b)];for(--b;!c&&b>=3;)c=a[fD(1,b)],b--;if(!c)return eD;c=c.other;var d=a="",e=c.indexOf(";");e>=0&&(c=c.substring(0,e),e=c.substring(e+1))&&(d=/([^0]*)(0+)(.*)/.exec(e),a=d[1],d=d[3]);return c&&c!="0"?(c=/([^0]*)(0+)(.*)/.exec(c))?{divisorBase:b+
1-(c[2].length-1),negative_prefix:a,negative_suffix:d,prefix:c[1],suffix:c[3]}:eD:eD},Yrb=function(a){if(!isFinite(a))return a>0?a:0;
for(var b=0;(a/=10)>=1;)b++;return b},fD=function(a,b){if(!a||!isFinite(a)||b==0)return a;
a=String(a).split("e");return parseFloat(a[0]+"e"+(parseInt(a[1]||0,10)+b))},dsb=function(a,b){return a&&isFinite(a)?fD(Math.round(fD(a,b)),-b):a},bsb=function(a,b,c){if(!a)return a;
b=b-Yrb(a)-1;return b<-c?dsb(a,-c):dsb(a,b)};var esb=function(a){return a%10==1&&a%100!=11?"one":a%10==2&&a%100!=12?"two":a%10==3&&a%100!=13?"few":"other"},fsb=esb;
fsb=esb;var gsb;gsb=function(a,b){var c=a|0;if(void 0===b){b=Math;var d=b.min,e=a+"",g=e.indexOf(".");b=d.call(b,g===-1?0:e.length-g-1,3)}d=Math.pow(10,b);a={v:b,f:(a*d|0)%d};return c==1&&a.v==0?"one":"other"};
_.Tp=gsb;_.Tp=gsb;var hsb,isb,jsb,lsb,msb;_.ksb=function(a){this.JSC$9184_pattern_=a;this.parsedPattern_=this.literals_=this.initialLiterals_=null;a=Rrb;var b=UC;if(hsb!==a||isb!==b)hsb=a,isb=b,jsb=new _.Op(1);this.numberFormatter_=jsb};
hsb=null;isb=null;jsb=null;lsb=RegExp("'([{}#].*?)'","g");msb=RegExp("''","g");
_.ksb.prototype.format=function(a){if(this.JSC$9184_pattern_){this.initialLiterals_=[];var b=nsb(this,this.JSC$9184_pattern_);this.parsedPattern_=osb(this,b);this.JSC$9184_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.Ra(this.initialLiterals_),b=[],psb(this,this.parsedPattern_,a,!1,b),a=b.join("");this.literals_.length>0;)a=a.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else a="";return a};
var psb=function(a,b,c,d,e){for(var g=0;g<b.length;g++)switch(b[g].type){case 4:e.push(b[g].value);break;case 3:var k=b[g].value;var m=a,n=e,r=c[k];r===void 0?n.push("Undefined parameter - "+k):(m.literals_.push(r),n.push(m.buildPlaceholder_(m.literals_)));break;case 2:k=b[g].value;m=a;n=c;r=d;var t=e,u=k.argumentIndex;n[u]===void 0?t.push("Undefined parameter - "+u):(u=k[n[u]],u===void 0&&(u=k.other),psb(m,u,n,r,t));break;case 0:k=b[g].value;qsb(a,k,c,_.Tp,d,e);break;case 1:k=b[g].value,qsb(a,k,
c,fsb,d,e)}},qsb=function(a,b,c,d,e,g){var k=b.argumentIndex,m=b.argumentOffset,n=+c[k];
isNaN(n)?g.push("Undefined or invalid parameter - "+k):(m=n-m,k=b[c[k]],k===void 0&&(d=d(Math.abs(m)),k=b[d],k===void 0&&(k=b.other)),b=[],psb(a,k,c,e,b),c=b.join(""),e?g.push(c):(a=a.numberFormatter_.format(m),g.push(c.replace(/#/g,a))))},nsb=function(a,b){var c=a.initialLiterals_,d=a.buildPlaceholder_.bind(a);
b=b.replace(msb,function(){c.push("'");return d(c)});
return b=b.replace(lsb,function(e,g){c.push(g);return d(c)})},rsb=function(a){var b=0,c=[],d=[],e=/[{}]/g;
e.lastIndex=0;for(var g;g=e.exec(a);){var k=g.index;g[0]=="}"?(c.pop(),c.length==0&&(g={type:1},g.value=a.substring(b,k),d.push(g),b=k+1)):(c.length==0&&(b=a.substring(b,k),b!=""&&d.push({type:0,value:b}),b=k+1),c.push("{"))}a=a.substring(b);a!=""&&d.push({type:0,value:a});return d},ssb=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,tsb=/^\s*(\w+)\s*,\s*selectordinal\s*,/,usb=/^\s*(\w+)\s*,\s*select\s*,/,osb=function(a,b){var c=[];
b=rsb(b);for(var d=0;d<b.length;d++){var e={};if(0==b[d].type)e.type=4,e.value=b[d].value;else if(1==b[d].type){var g=b[d].value;switch(ssb.test(g)?0:tsb.test(g)?1:usb.test(g)?2:/^\s*\w+\s*/.test(g)?3:5){case 2:e.type=2;e.value=vsb(a,b[d].value);break;case 0:e.type=0;e.value=wsb(a,b[d].value);break;case 1:e.type=1;e.value=xsb(a,b[d].value);break;case 3:e.type=3,e.value=b[d].value}}c.push(e)}return c},vsb=function(a,b){var c="";
b=b.replace(usb,function(m,n){c=n;return""});
var d={};d.argumentIndex=c;b=rsb(b);for(var e=0;e<b.length;){var g=b[e].value;e++;var k=void 0;1==b[e].type&&(k=osb(a,b[e].value));d[g.replace(/\s/g,"")]=k;e++}return d},wsb=function(a,b){var c="",d=0;
b=b.replace(ssb,function(n,r,t){c=r;t&&(d=parseInt(t,10));return""});
var e={};e.argumentIndex=c;e.argumentOffset=d;b=rsb(b);for(var g=0;g<b.length;){var k=b[g].value;g++;var m=void 0;1==b[g].type&&(m=osb(a,b[g].value));e[k.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=m;g++}return e},xsb=function(a,b){var c="";
b=b.replace(tsb,function(m,n){c=n;return""});
var d={};d.argumentIndex=c;d.argumentOffset=0;b=rsb(b);for(var e=0;e<b.length;){var g=b[e].value;e++;var k=void 0;1==b[e].type&&(k=osb(a,b[e].value));d[g.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=k;e++}return d};
_.ksb.prototype.buildPlaceholder_=function(a){return"\ufddf_"+(a.length-1).toString(10)+"_"};var ysb;
ysb={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 ZFa=function(){this.rdtfSymbols_=zsb||ysb;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
ZFa.prototype.format=function(a,b){a:{b=Asb(this,b);switch(this.style_){case 2:if(b.NARROW!=void 0){b=b.NARROW;break a}case 1:if(b.SHORT!=void 0){b=b.SHORT;break a}default:b=b.LONG;break a}b=void 0}if(!this.alwaysNumeric_&&b&&b.R&&b.R[""+a])a=b.R[""+a];else if(b){var c=Math.abs(a);a=(new _.ksb("{N,plural,"+(a>0||a==0&&1/a==Infinity?b.F:b.P)+"}")).format({N:c})}else a="";return a};
var Asb=function(a,b){switch(b){default:case 0:return a.rdtfSymbols_.YEAR;case 1:return a.rdtfSymbols_.QUARTER;case 2:return a.rdtfSymbols_.MONTH;case 3:return a.rdtfSymbols_.WEEK;case 4:return a.rdtfSymbols_.DAY;case 5:return a.rdtfSymbols_.HOUR;case 6:return a.rdtfSymbols_.MINUTE;case 7:return a.rdtfSymbols_.SECOND}};var Bsb=function(a,b,c,d,e,g,k,m){this.x0=a;this.y0=b;this.x1=c;this.y1=d;this.x2=e;this.y2=g;this.x3=k;this.y3=m};
Bsb.prototype.clone=function(){return new Bsb(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
Bsb.prototype.equals=function(a){return this.x0==a.x0&&this.y0==a.y0&&this.x1==a.x1&&this.y1==a.y1&&this.x2==a.x2&&this.y2==a.y2&&this.x3==a.x3&&this.y3==a.y3};
var Csb=function(a,b){if(b==0)return a.x0;if(b==1)return a.x3;var c=Ey(a.x0,a.x1,b),d=Ey(a.x1,a.x2,b);a=Ey(a.x2,a.x3,b);c=Ey(c,d,b);d=Ey(d,a,b);return Ey(c,d,b)},Dsb=function(a,b){var c=(b-a.x0)/(a.x3-a.x0);
if(c<=0)return 0;if(c>=1)return 1;for(var d=0,e=1,g=0,k=0;k<8;k++){g=Csb(a,c);var m=(Csb(a,c+1E-6)-g)/1E-6;if(Math.abs(g-b)<1E-6)return c;if(Math.abs(m)<1E-6)break;else g<b?d=c:e=c,c-=(g-b)/m}for(k=0;Math.abs(g-b)>1E-6&&k<8;k++)g<b?(d=c,c=(c+e)/2):(e=c,c=(c+d)/2),g=Csb(a,c);return c};var gD=function(){_.Dz.call(this);this.JSC$9205_name_="closure_frame"+Esb++;this.iframesForDisposal_=[];Fsb[this.JSC$9205_name_]=this},hD;
_.nx(gD,_.Dz);var Fsb={},Esb=0,Gsb=function(a,b){var c=rf(a);_.Yhb(b,function(d,e){Array.isArray(d)||(d=[d]);_.Mi(d,function(g){g=c.JSC$7223_createDom("INPUT",{type:"hidden",name:e,value:g});a.appendChild(g)})})};
_.f=gD.prototype;_.f.JSC$9207_form_=null;_.f.JSC$9207_iframe_=null;_.f.iframeName_=null;_.f.nextIframeId_=0;_.f.JSC$9207_active_=!1;_.f.complete_=!1;_.f.success_=!1;_.f.lastContent_=null;_.f.JSC$9207_lastErrorCode_=0;_.f.iframeDisposalTimer_=null;
_.f.send=function(a,b,c,d){if(this.JSC$9207_active_)throw Error("le");a=new _.Wn(a);b=b?b.toUpperCase():"GET";c&&_.pA(a);hD||(hD=_.Oy("FORM"),hD.acceptCharset="utf-8",c=hD.style,c.position="absolute",c.visibility="hidden",c.top=c.left="-10px",c.width=c.height="10px",c.overflow="hidden",document.body.appendChild(hD));this.JSC$9207_form_=hD;b=="GET"&&Gsb(this.JSC$9207_form_,a.JSC$7879_queryData_);d&&Gsb(this.JSC$9207_form_,d);c=a.toString();c=rja(c);d=this.JSC$9207_form_;c=_.Kd(Ad(c));c!==void 0&&(d.action=
c);this.JSC$9207_form_.method=b;Hsb(this);Isb(this)};
_.f.abort=function(a){if(this.JSC$9207_active_){var b=iD(this);if(b)if(Az(b))b.removeAllListeners(void 0);else if(b=Bz(b)){var c=0,d;for(d in b.listeners)for(var e=b.listeners[d].concat(),g=0;g<e.length;++g)ps(e[g])&&++c}this.success_=this.JSC$9207_active_=this.complete_=!1;this.JSC$9207_lastErrorCode_=a||7;this.dispatchEvent("abort");Jsb(this)}};
_.f.disposeInternal=function(){this.JSC$9207_active_&&this.abort();gD.superClass_.disposeInternal.call(this);this.JSC$9207_iframe_&&Ksb(this);Isb(this);this.JSC$9207_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$9207_form_=null;this.JSC$9207_lastErrorCode_=0;delete Fsb[this.JSC$9205_name_]};
_.f.isComplete=function(){return this.complete_};
_.f.isSuccess=function(){return this.success_};
_.f.isActive=function(){return this.JSC$9207_active_};
_.f.getResponseText=function(){return this.lastContent_};
_.f.getLastError=function(){return _.Efb(this.JSC$9207_lastErrorCode_)};
var Hsb=function(a){a.JSC$9207_active_=!0;a.complete_=!1;a.JSC$9207_lastErrorCode_=0;a.iframeName_=a.JSC$9205_name_+"_"+(a.nextIframeId_++).toString(36);a.JSC$9207_iframe_=rf(a.JSC$9207_form_).JSC$7223_createDom("IFRAME",{name:a.iframeName_,id:a.iframeName_});var b=a.JSC$9207_iframe_.style;b.visibility="hidden";b.width=b.height="10px";b.display="none";_.ux?b.marginTop=b.marginLeft="-10px":(b.position="absolute",b.top=b.left="-10px");$cb(rf(a.JSC$9207_form_)).body.appendChild(a.JSC$9207_iframe_);b=
a.iframeName_+"_inner";var c=Scb(a.JSC$9207_iframe_);if(document.baseURI){var d=ju(b);d='<head><base href="'+ju(document.baseURI)+'"></head><body><iframe id="'+d+'" name="'+d+'"></iframe>';d=Nd(d)}else d=ju(b),d=Nd('<body><iframe id="'+d+'" name="'+d+'"></iframe>');c.write(Pd(d));_.ss(c.getElementById(b),"load",a.onIframeLoaded_,!1,a);d=og("TEXTAREA",a.JSC$9207_form_);for(var e=0,g=d.length;e<g;e++){var k=d[e].value;Ycb(d[e])!=k&&(_.Vy(d[e],k),d[e].value=k)}d=c.importNode(a.JSC$9207_form_,!0);d.target=
b;d.action=a.JSC$9207_form_.action;c.body.appendChild(d);e=og("SELECT",a.JSC$9207_form_);g=og("SELECT",d);k=0;for(var m=e.length;k<m;k++)for(var n=og("OPTION",e[k]),r=og("OPTION",g[k]),t=0,u=n.length;t<u;t++)r[t].selected=n[t].selected;e=og("INPUT",a.JSC$9207_form_);g=og("INPUT",d);k=0;for(m=e.length;k<m;k++)if(e[k].type=="file"&&e[k].value!=g[k].value){a.JSC$9207_form_.target=b;d=a.JSC$9207_form_;break}try{a.errorHandled_=!1,d.submit(),c.close(),_.tx&&setTimeout(a.testForFirefoxSilentError_.bind(a),
250)}catch(w){_.Cz(c.getElementById(b),"load",a.onIframeLoaded_,!1,a),c.close(),jD(a,2)}};
gD.prototype.onIframeLoaded_=function(){_.Cz(iD(this),"load",this.onIframeLoaded_,!1,this);try{var a=this.JSC$9207_iframe_?Scb(iD(this)):null;this.complete_=!0;this.JSC$9207_active_=!1;try{var b=a.body;this.lastContent_=b.textContent||b.innerText}catch(e){var c=1}var d;c||typeof this.errorChecker_!="function"||(d=this.errorChecker_(a))&&(c=4);c?jD(this,c):(this.success_=!0,this.JSC$9207_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),Jsb(this))}catch(e){jD(this,1)}};
var jD=function(a,b){a.errorHandled_||(a.success_=!1,a.JSC$9207_active_=!1,a.complete_=!0,a.JSC$9207_lastErrorCode_=b,a.dispatchEvent("complete"),a.dispatchEvent("error"),Jsb(a),a.errorHandled_=!0)},Jsb=function(a){Ksb(a);
Isb(a);a.JSC$9207_form_=null;a.dispatchEvent("ready")},Ksb=function(a){var b=a.JSC$9207_iframe_;
b&&(b.onreadystatechange=null,b.onload=null,b.onerror=null,a.iframesForDisposal_.push(b));a.iframeDisposalTimer_&&(clearTimeout(a.iframeDisposalTimer_),a.iframeDisposalTimer_=null);_.tx?a.iframeDisposalTimer_=setTimeout(a.disposeIframes_.bind(a),2E3):a.disposeIframes_();a.JSC$9207_iframe_=null;a.iframeName_=null};
gD.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var a=this.iframesForDisposal_.pop();_.mg(a)}};
var Isb=function(a){a.JSC$9207_form_&&a.JSC$9207_form_==hD&&_.Ry(a.JSC$9207_form_)},iD=function(a){return a.JSC$9207_iframe_?Scb(a.JSC$9207_iframe_).getElementById(a.iframeName_+"_inner"):null};
gD.prototype.testForFirefoxSilentError_=function(){if(this.JSC$9207_active_){var a=this.JSC$9207_iframe_?Scb(iD(this)):null;a&&!Oga(a,"documentUri")?(_.Cz(iD(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?jD(this,3):jD(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.kD=function(a){return a=="\r"||a=="\n"||a==" "||a=="\t"};var Lsb;_.lD=function(a){this.errorMessage_=null;this.result_=[];this.JSC$9209_buffer_="";this.stack_=[];this.JSC$9209_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!a||!a.deliverMessageAsRawString)};
Lsb={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};_.lD.prototype.isInputValid=function(){return this.streamState_!=3};
_.lD.prototype.done=function(){return this.streamState_===2};
var mD=function(a,b,c){a.streamState_=3;a.errorMessage_="The stream is broken @"+a.JSC$9209_pos_+"/"+c+". With input:\n"+b;throw Error(a.errorMessage_);};
_.lD.prototype.acceptsBinaryInput=function(){return!1};
_.lD.prototype.parse=function(a){function b(){for(;w<a.length;)if(_.kD(a[w]))w++,g.JSC$9209_pos_++;else break;return w<r}
function c(){for(var C;;){C=a[w++];if(!C)break;g.JSC$9209_pos_++;switch(g.state_){case n.INIT:C==="{"?g.state_=n.OBJECT_OPEN:C==="["?g.state_=n.ARRAY_OPEN:_.kD(C)||mD(g,a,w);continue;case n.KEY_START:case n.OBJECT_OPEN:if(_.kD(C))continue;if(g.state_===n.KEY_START)k.push(n.KEY_END);else if(C==="}"){e("{}");g.state_=d();continue}else k.push(n.OBJECT_END);C==='"'?g.state_=n.STRING:mD(g,a,w);continue;case n.KEY_END:case n.OBJECT_END:if(_.kD(C))continue;C===":"?(g.state_===n.OBJECT_END&&(k.push(n.OBJECT_END),
g.depth_++),g.state_=n.VALUE):C==="}"?(g.depth_--,e(),g.state_=d()):C===","?(g.state_===n.OBJECT_END&&k.push(n.OBJECT_END),g.state_=n.KEY_START):mD(g,a,w);continue;case n.ARRAY_OPEN:case n.VALUE:if(_.kD(C))continue;if(g.state_===n.ARRAY_OPEN)if(g.depth_++,g.state_=n.VALUE,C==="]"){g.depth_--;if(g.depth_===0){g.state_=n.ARRAY_END;return}e("[]");g.state_=d();continue}else k.push(n.ARRAY_END);C==='"'?g.state_=n.STRING:C==="{"?g.state_=n.OBJECT_OPEN:C==="["?g.state_=n.ARRAY_OPEN:C==="t"?g.state_=n.TRUE1:
C==="f"?g.state_=n.FALSE1:C==="n"?g.state_=n.NULL1:C!=="-"&&("0123456789".indexOf(C)!==-1?g.state_=n.NUM_DIGIT:mD(g,a,w));continue;case n.ARRAY_END:if(C===",")k.push(n.ARRAY_END),g.state_=n.VALUE,g.depth_===1&&(u=w);else if(C==="]"){g.depth_--;if(g.depth_===0)return;e();g.state_=d()}else if(_.kD(C))continue;else mD(g,a,w);continue;case n.STRING:var G=w;a:for(;;){for(;g.unicodeCount_>0;)if(C=a[w++],g.unicodeCount_===4?g.unicodeCount_=0:g.unicodeCount_++,!C)break a;if(C==='"'&&!g.slashed_){g.state_=
d();break}if(C==="\\"&&!g.slashed_&&(g.slashed_=!0,C=a[w++],!C))break;if(g.slashed_)if(g.slashed_=!1,C==="u"&&(g.unicodeCount_=1),C=a[w++])continue;else break;m.lastIndex=w;C=m.exec(a);if(!C){w=a.length+1;break}w=C.index+1;C=a[C.index];if(!C)break}g.JSC$9209_pos_+=w-G;continue;case n.TRUE1:if(!C)continue;C==="r"?g.state_=n.TRUE2:mD(g,a,w);continue;case n.TRUE2:if(!C)continue;C==="u"?g.state_=n.TRUE3:mD(g,a,w);continue;case n.TRUE3:if(!C)continue;C==="e"?g.state_=d():mD(g,a,w);continue;case n.FALSE1:if(!C)continue;
C==="a"?g.state_=n.FALSE2:mD(g,a,w);continue;case n.FALSE2:if(!C)continue;C==="l"?g.state_=n.FALSE3:mD(g,a,w);continue;case n.FALSE3:if(!C)continue;C==="s"?g.state_=n.FALSE4:mD(g,a,w);continue;case n.FALSE4:if(!C)continue;C==="e"?g.state_=d():mD(g,a,w);continue;case n.NULL1:if(!C)continue;C==="u"?g.state_=n.NULL2:mD(g,a,w);continue;case n.NULL2:if(!C)continue;C==="l"?g.state_=n.NULL3:mD(g,a,w);continue;case n.NULL3:if(!C)continue;C==="l"?g.state_=d():mD(g,a,w);continue;case n.NUM_DECIMAL_POINT:C===
"."?g.state_=n.NUM_DIGIT:mD(g,a,w);continue;case n.NUM_DIGIT:if("0123456789.eE+-".indexOf(C)!==-1)continue;else w--,g.JSC$9209_pos_--,g.state_=d();continue;default:mD(g,a,w)}}}
function d(){var C=k.pop();return C!=null?C:n.VALUE}
function e(C){g.depth_>1||(C||(C=u===-1?g.JSC$9209_buffer_+a.substring(t,w):a.substring(u,w)),g.deliverMessageAsRawString_?g.result_.push(C):g.result_.push(JSON.parse(C)),u=w)}
for(var g=this,k=g.stack_,m=g.stringInputPattern_,n=Lsb,r=a.length,t=0,u=-1,w=0;w<r;)switch(g.streamState_){case 3:return mD(g,a,w),null;case 2:return b()&&mD(g,a,w),null;case 0:if(b()){var A=a[w++];g.JSC$9209_pos_++;if(A==="["){g.streamState_=1;t=w;g.state_=n.ARRAY_OPEN;continue}else mD(g,a,w)}return null;case 1:return c(),g.depth_===0&&g.state_==n.ARRAY_END?(g.streamState_=2,g.JSC$9209_buffer_=a.substring(w)):g.JSC$9209_buffer_=u===-1?g.JSC$9209_buffer_+a.substring(t):a.substring(u),g.result_.length>
0?(A=g.result_,g.result_=[],A):null}return null};_.nx(_.dn,sj);fn.prototype.getValue=function(){return this.JSC$9217_value_};
fn.prototype.clone=function(){return new fn(this.JSC$9217_key_,this.JSC$9217_value_)};var nD=function(a){this.nodes_=[];if(a)a:{if(a instanceof nD){var b=a.getKeys();a=a.getValues();if(this.getCount()<=0){for(var c=this.nodes_,d=0;d<b.length;d++)c.push(new fn(b[d],a[d]));break a}}else b=_.yf.getKeys(a),a=_.yf.getValues(a);for(c=0;c<b.length;c++)this.insert(b[c],a[c])}};
_.f=nD.prototype;_.f.insert=function(a,b){var c=this.nodes_;c.push(new fn(a,b));a=c.length-1;b=this.nodes_;for(c=b[a];a>0;){var d=a-1>>1;if(b[d].JSC$9217_key_>c.JSC$9217_key_)b[a]=b[d],a=d;else break}b[a]=c};
_.f.remove=function(){var a=this.nodes_,b=a.length,c=a[0];if(!(b<=0)){if(b==1)a.length=0;else{a[0]=a.pop();a=0;b=this.nodes_;for(var d=b.length,e=b[a];a<d>>1;){var g=a*2+1,k=a*2+2;g=k<d&&b[k].JSC$9217_key_<b[g].JSC$9217_key_?k:g;if(b[g].JSC$9217_key_>e.JSC$9217_key_)break;b[a]=b[g];a=g}b[a]=e}return c.getValue()}};
_.f.peek=function(){var a=this.nodes_;if(a.length!=0)return a[0].getValue()};
_.f.getValues=function(){for(var a=this.nodes_,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getValue());return b};
_.f.getKeys=function(){for(var a=this.nodes_,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].JSC$9217_key_);return b};
_.f.containsValue=function(a){return this.nodes_.some(function(b){return b.getValue()==a})};
_.f.containsKey=function(a){return this.nodes_.some(function(b){return b.JSC$9217_key_==a})};
_.f.clone=function(){return new nD(this)};
_.f.getCount=function(){return this.nodes_.length};
_.f.isEmpty=function(){return this.nodes_.length===0};
_.f.clear=function(){this.nodes_.length=0};_.oD=function(a,b){this.JSC$9223_map_={};this.JSC$9223_keys_=[];this.version_=this.size=0;var c=arguments.length;if(c>1){if(c%2)throw Error("ra");for(var d=0;d<c;d+=2)this.set(arguments[d],arguments[d+1])}else a&&this.addAll(a)};
_.f=_.oD.prototype;_.f.getCount=function(){return this.size};
_.f.getValues=function(){pD(this);for(var a=[],b=0;b<this.JSC$9223_keys_.length;b++)a.push(this.JSC$9223_map_[this.JSC$9223_keys_[b]]);return a};
_.f.getKeys=function(){pD(this);return this.JSC$9223_keys_.concat()};
_.f.containsKey=function(a){return this.has(a)};
_.f.has=function(a){return qD(this.JSC$9223_map_,a)};
_.f.containsValue=function(a){for(var b=0;b<this.JSC$9223_keys_.length;b++){var c=this.JSC$9223_keys_[b];if(qD(this.JSC$9223_map_,c)&&this.JSC$9223_map_[c]==a)return!0}return!1};
_.f.equals=function(a,b){if(this===a)return!0;if(this.size!=a.getCount())return!1;b=b||Msb;pD(this);for(var c,d=0;c=this.JSC$9223_keys_[d];d++)if(!b(this.get(c),a.get(c)))return!1;return!0};
var Msb=function(a,b){return a===b};
_.oD.prototype.isEmpty=function(){return this.size==0};
_.oD.prototype.clear=function(){this.JSC$9223_map_={};this.version_=this.size=this.JSC$9223_keys_.length=0};
_.oD.prototype.remove=function(a){return this.delete(a)};
_.oD.prototype.delete=function(a){return qD(this.JSC$9223_map_,a)?(delete this.JSC$9223_map_[a],--this.size,this.version_++,this.JSC$9223_keys_.length>2*this.size&&pD(this),!0):!1};
var pD=function(a){if(a.size!=a.JSC$9223_keys_.length){for(var b=0,c=0;b<a.JSC$9223_keys_.length;){var d=a.JSC$9223_keys_[b];qD(a.JSC$9223_map_,d)&&(a.JSC$9223_keys_[c++]=d);b++}a.JSC$9223_keys_.length=c}if(a.size!=a.JSC$9223_keys_.length){b={};for(d=c=0;c<a.JSC$9223_keys_.length;){var e=a.JSC$9223_keys_[c];qD(b,e)||(a.JSC$9223_keys_[d++]=e,b[e]=1);c++}a.JSC$9223_keys_.length=d}};
_.f=_.oD.prototype;_.f.get=function(a,b){return qD(this.JSC$9223_map_,a)?this.JSC$9223_map_[a]:b};
_.f.set=function(a,b){qD(this.JSC$9223_map_,a)||(this.size+=1,this.JSC$9223_keys_.push(a),this.version_++);this.JSC$9223_map_[a]=b};
_.f.addAll=function(a){if(a instanceof _.oD)for(var b=a.getKeys(),c=0;c<b.length;c++)this.set(b[c],a.get(b[c]));else for(b in a)this.set(b,a[b])};
_.f.forEach=function(a,b){for(var c=this.getKeys(),d=0;d<c.length;d++){var e=c[d],g=this.get(e);a.call(b,g,e,this)}};
_.f.clone=function(){return new _.oD(this)};
_.f.transpose=function(){for(var a=new _.oD,b=0;b<this.JSC$9223_keys_.length;b++){var c=this.JSC$9223_keys_[b];a.set(this.JSC$9223_map_[c],c)}return a};
_.f.keys=function(){return mmb(this.__iterator__(!0)).toEs6()};
_.f.values=function(){return mmb(this.__iterator__(!1)).toEs6()};
_.f.entries=function(){var a=this;return zqb(this.keys(),function(b){return[b,a.get(b)]})};
_.f.__iterator__=function(a){pD(this);var b=0,c=this.version_,d=this,e=new lB;e.next=function(){if(c!=d.version_)throw Error("me");if(b>=d.JSC$9223_keys_.length)return mB;var g=d.JSC$9223_keys_[b++];return nB(a?g:d.JSC$9223_map_[g])};
return e};
var qD=function(a,b){return Object.prototype.hasOwnProperty.call(a,b)};var Osb=function(){this.JSC$9226_map_=new _.oD;this.JSC$9226_head_=new Nsb("");this.JSC$9226_head_.next=this.JSC$9226_head_.prev=this.JSC$9226_head_},Psb=function(a,b){if(b=a.JSC$9226_map_.get(b))b.remove(),a.insert_(b);
return b};
_.f=Osb.prototype;_.f.get=function(a,b){return(a=Psb(this,a))?a.value:b};
_.f.set=function(a,b){var c=Psb(this,a);c?c.value=b:(c=new Nsb(a,b),this.JSC$9226_map_.set(a,c),this.insert_(c))};
_.f.peek=function(){return this.JSC$9226_head_.next.value};
_.f.shift=function(){return Qsb(this,this.JSC$9226_head_.next)};
_.f.pop=function(){return Qsb(this,this.JSC$9226_head_.prev)};
_.f.remove=function(a){return(a=this.JSC$9226_map_.get(a))?(this.removeNode(a),!0):!1};
_.f.removeNode=function(a){a.remove();this.JSC$9226_map_.remove(a.key)};
_.f.getCount=function(){return this.JSC$9226_map_.getCount()};
_.f.isEmpty=function(){return this.JSC$9226_map_.isEmpty()};
_.f.getKeys=function(){return this.map(function(a,b){return b})};
_.f.getValues=function(){return this.map(function(a){return a})};
_.f.contains=function(a){return this.some(function(b){return b==a})};
_.f.containsKey=function(a){return this.JSC$9226_map_.containsKey(a)};
_.f.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$9226_head_.prev)};
_.f.forEach=function(a,b){for(var c=this.JSC$9226_head_.next;c!=this.JSC$9226_head_;c=c.next)a.call(b,c.value,c.key,this)};
_.f.map=function(a,b){for(var c=[],d=this.JSC$9226_head_.next;d!=this.JSC$9226_head_;d=d.next)c.push(a.call(b,d.value,d.key,this));return c};
_.f.some=function(a,b){for(var c=this.JSC$9226_head_.next;c!=this.JSC$9226_head_;c=c.next)if(a.call(b,c.value,c.key,this))return!0;return!1};
_.f.every=function(a,b){for(var c=this.JSC$9226_head_.next;c!=this.JSC$9226_head_;c=c.next)if(!a.call(b,c.value,c.key,this))return!1;return!0};
_.f.insert_=function(a){a.next=this.JSC$9226_head_.next;a.prev=this.JSC$9226_head_;this.JSC$9226_head_.next=a;for(a.next.prev=a;this.getCount()>40;)this.removeNode(this.JSC$9226_head_.prev)};
var Qsb=function(a,b){a.JSC$9226_head_!=b&&a.removeNode(b);return b.value},Nsb=function(a,b){this.key=a;
this.value=b};
Nsb.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var Rsb=function(){nD.apply(this,arguments)};
_.z(Rsb,nD);Rsb.prototype.enqueue=function(a,b){this.insert(a,b)};var Ssb=function(){var a=Error();a.name="SecurityError";throw a;},ZUa=function(){return{get opener(){return null},
get closed(){return!0},get location(){Ssb()},get document(){Ssb()},postMessage:function(){},
close:function(){},
focus:function(){}}};var hya={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 kya={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 Tsb={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(kya).join("|");var Usb=function(){function a(m){m.substr(-1)!==";"&&(m+=";");return k(m)}
for(var b=Object.keys(Tsb).sort(jya),c=Object.keys(kya).sort(jya),d=0,e=0;d<c.length;d++)b[e]===c[d]?(c[d]+=";?",e++):c[d]+=";";var g=new RegExp("&(?:"+c.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),k=lya();return function(m){return String(m).replace(g,a)}}();/*

 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 Vsb={};var Wsb=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"),Xsb=/[\\&]/,Ysb=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),Zsb=RegExp('[&<>"]',"g"),$sb=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),atb=function(a){return a.charCodeAt(0)===92?a.charAt(1):Usb(a)},btb=function(a){return Xsb.test(a)?a.replace(Ysb,atb):a},ctb=function(a){try{var b,c="";
if(typeof e!=="string"){var d=e;var e=";/?:@&=+$,-_.!~*'()#"}typeof d==="undefined"&&(d=!0);var g,k=Vsb[e];if(k)var m=k;else{k=Vsb[e]=[];for(g=0;g<128;g++){var n=String.fromCharCode(g);/^[0-9a-z]$/i.test(n)?k.push(n):k.push("%"+("0"+g.toString(16).toUpperCase()).slice(-2))}for(g=0;g<e.length;g++)k[e.charCodeAt(g)]=e[g];m=k}var r=0;for(b=a.length;r<b;r++){var t=a.charCodeAt(r);if(d&&t===37&&r+2<b&&/^[0-9a-f]{2}$/i.test(a.slice(r+1,r+3)))c+=a.slice(r,r+3),r+=2;else if(t<128)c+=m[t];else if(t>=55296&&
t<=57343){if(t>=55296&&t<=56319&&r+1<b){var u=a.charCodeAt(r+1);if(u>=56320&&u<=57343){c+=encodeURIComponent(a[r]+a[r+1]);r++;continue}}c+="%EF%BF%BD"}else c+=encodeURIComponent(a[r])}return c}catch(w){return a}},dtb=function(a){switch(a){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return a}},rD=function(a,b){return Zsb.test(a)?b?a.replace($sb,dtb):a.replace(Zsb,dtb):a};/*

 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 sD;if(String.fromCodePoint)sD=function(a){try{return String.fromCodePoint(a)}catch(b){if(b instanceof RangeError)return String.fromCharCode(65533);throw b;}};
else{var etb=String.fromCharCode,ftb=Math.floor;sD=function(){var a=[],b=-1,c=arguments.length;if(!c)return"";for(var d="";++b<c;){var e=Number(arguments[b]);if(!isFinite(e)||e<0||e>1114111||ftb(e)!==e)return String.fromCharCode(65533);if(e<=65535)a.push(e);else{e-=65536;var g=(e>>10)+55296;e=e%1024+56320;a.push(g,e)}if(b+1===c||a.length>16384)d+=etb.apply(null,a),a.length=0}return d}};var gtb=function(a){this.root=this.current=a;this.entering=!0};
gtb.prototype.next=function(){var a=this.current,b=this.entering;if(a===null)return null;a:switch(a._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 c=!0;break a;default:c=!1}b&&c?a._firstChild?(this.current=a._firstChild,this.entering=!0):this.entering=!1:a===this.root?this.current=null:a._next===null?(this.current=
a._parent,this.entering=!1):(this.current=a._next,this.entering=!0);return{entering:b,node:a}};
var kn=function(a,b){this._type=a;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=b;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};
kn.prototype.appendChild=function(a){tD(a);a._parent=this;this._lastChild?(this._lastChild._next=a,a._prev=this._lastChild):this._firstChild=a;this._lastChild=a};
var tD=function(a){a._prev?a._prev._next=a._next:a._parent&&(a._parent._firstChild=a._next);a._next?a._next._prev=a._prev:a._parent&&(a._parent._lastChild=a._prev);a._parent=null;a._next=null;a._prev=null},htb=function(a,b){tD(b);
b._next=a._next;b._next&&(b._next._prev=b);b._prev=a;a._next=b;b._parent=a._parent;b._next||(b._parent._lastChild=b)};
kn.prototype.insertBefore=function(a){tD(a);a._prev=this._prev;a._prev&&(a._prev._next=a);a._next=this;this._prev=a;a._parent=this._parent;a._prev||(a._parent._firstChild=a)};
_.Vm.Object.defineProperties(kn.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(a){this._literal=a}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(a){this._destination=a}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(a){this._title=a}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(a){this._info=a}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(a){this._level=a}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(a){this._listData.type=a}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(a){this._listData.tight=a}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(a){this._listData.start=a}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(a){this._onEnter=a}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(a){this._onExit=a}}});var mya=/[ \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,
nya={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 itb=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]/),
jtb=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),ktb=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),ltb=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),mtb=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),ntb=/`+/,otb=/^`+/,ptb=/\.\.\./g,qtb=/--+/g,rtb=/^<([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])?)*)>/,
stb=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,ttb=/^ *(?:\n *)?/,utb=/^[ \t\n\x0b\x0c\x0d]/,vtb=/[ \t\n\x0b\x0c\x0d]+/g,wtb=/^\s/,xtb=/ *$/,ytb=/^ */,ztb=/^ *(?:\n|$)/,Atb=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),Btb=/^[^\n`\[\]\\!<&*_'"]+/m,uD=function(a){var b=new kn("text");b._literal=a;return b},vD=function(a){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=a||{}};
vD.prototype.match=function(a){a=a.exec(this.subject.slice(this.pos));if(a===null)return null;this.pos+=a.index+a[0].length;return a[0]};
vD.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var wD=function(a){a.match(ttb);return!0},Ctb=function(a,b,c){var d=0;
var e=a.pos;if(b===39||b===34)d++,a.pos++;else for(;a.peek()===b;)d++,a.pos++;if(d===0)d=null;else{var g=e===0?"\n":a.subject.charAt(e-1);var k=a.peek();k=k===-1?"\n":sD(k);var m=wtb.test(k);k=itb.test(k);var n=wtb.test(g);var r=itb.test(g);g=!m&&!(k&&!n&&!r);m=!n&&!(r&&!m&&!k);b===95?(n=g&&(!m||r),k=m&&(!g||k)):(n=b===39||b===34?g&&!m:g,k=m);a.pos=e;d={numdelims:d,can_open:n,can_close:k}}if(!d)return!1;e=d.numdelims;k=a.pos;a.pos+=e;k=b===39?"\u2019":b===34?"\u201c":a.subject.slice(k,a.pos);k=uD(k);
c.appendChild(k);a.delimiters={cc:b,numdelims:e,origdelims:e,node:k,previous:a.delimiters,next:null,can_open:d.can_open,can_close:d.can_close};a.delimiters.previous!==null&&(a.delimiters.previous.next=a.delimiters);return!0},Dtb=function(a,b){b.previous!==null&&(b.previous.next=b.next);
b.next===null?a.delimiters=b.previous:b.next.previous=b.previous},Etb=function(a,b){var c,d,e=[],g=!1;
e[95]=b;e[42]=b;e[39]=b;e[34]=b;for(c=a.delimiters;c!==null&&c.previous!==b;)c=c.previous;for(;c!==null;){var k=c.cc;if(c.can_close){var m=c.previous;for(d=!1;m!==null&&m!==b&&m!==e[k];){g=(c.can_open||m.can_close)&&(m.origdelims+c.origdelims)%3===0;if(m.cc===c.cc&&m.can_open&&!g){d=!0;break}m=m.previous}var n=c;if(k===42||k===95)if(d){var r=c.numdelims>=2&&m.numdelims>=2?2:1;var t=m.node;var u=c.node;m.numdelims-=r;c.numdelims-=r;t._literal=t._literal.slice(0,t._literal.length-r);u._literal=u._literal.slice(0,
u._literal.length-r);var w=new kn(r===1?"emph":"strong");for(r=t._next;r&&r!==u;){var A=r._next;tD(r);w.appendChild(r);r=A}htb(t,w);r=m;A=c;r.next!==A&&(r.next=A,A.previous=r);m.numdelims===0&&(tD(t),Dtb(a,m));c.numdelims===0&&(tD(u),m=c.next,Dtb(a,c),c=m)}else c=c.next;else k===39?(c.node._literal="\u2019",d&&(m.node._literal="\u2018"),c=c.next):k===34&&(c.node._literal="\u201d",d&&(m.node.literal="\u201c"),c=c.next);d||g||(e[k]=n.previous,n.can_open||Dtb(a,n))}else c=c.next}for(;a.delimiters!==
null&&a.delimiters!==b;)Dtb(a,a.delimiters)},Ftb=function(a){a=a.match(jtb);
return a===null?null:btb(a.substr(1,a.length-2))},Gtb=function(a){var b=a.match(ktb);
if(b===null){b=a.pos;for(var c=0,d;(d=a.peek())!==-1;)if(d===92)a.pos+=1,a.peek()!==-1&&(a.pos+=1);else if(d===40)a.pos+=1,c+=1;else if(d===41)if(c<1)break;else a.pos+=1,--c;else if(utb.exec(sD(d))!==null)break;else a.pos+=1;b=a.subject.substr(b,a.pos-b);return ctb(btb(b))}return ctb(btb(b.substr(1,b.length-2)))},Htb=function(a){a=a.match(Atb);
return a===null||a.length>1001?0:a.length},Itb=function(a,b,c,d){a.brackets!==null&&(a.brackets.bracketAfter=!0);
a.brackets={node:b,previous:a.brackets,previousDelimiter:a.delimiters,index:c,image:d,active:!0}},Jtb=function(a,b){var c;
return(c=a.match(Btb))?(a.options.smart?b.appendChild(uD(c.replace(ptb,"\u2026").replace(qtb,function(d){var e=0,g=0;d.length%3===0?g=d.length/3:d.length%2===0?e=d.length/2:d.length%3===2?(e=1,g=(d.length-2)/3):(e=2,g=(d.length-4)/3);d="";var k;for(k=0;k<g;k++)d+="\u2014";for(k=0;k<e;k++)d+="\u2013";return d}))):b.appendChild(uD(c)),!0):!1},Ktb=function(a,b,c){a.subject=b;
a.pos=0;b=a.pos;var d=Htb(a);if(d===0)return 0;var e=a.subject.substr(0,d);if(a.peek()===58)a.pos++;else return a.pos=b,0;wD(a);d=Gtb(a);if(d===null||d.length===0)return a.pos=b,0;var g=a.pos;wD(a);var k=Ftb(a);k===null&&(k="",a.pos=g);var m=!0;a.match(ztb)===null&&(k===""?m=!1:(k="",a.pos=g,m=a.match(ztb)!==null));if(!m)return a.pos=b,0;e=oya(e);if(e==="")return a.pos=b,0;c[e]||(c[e]={destination:d,title:k});return a.pos-b},Ltb=function(a,b){var c,d=a.peek();
if(d===-1)return!1;switch(d){case 10:a.pos+=1;if((c=b._lastChild)&&c.type==="text"&&c._literal[c._literal.length-1]===" "){var e=c._literal[c._literal.length-2]===" ";c._literal=c._literal.replace(xtb,"");b.appendChild(new kn(e?"linebreak":"softbreak"))}else b.appendChild(new kn("softbreak"));a.match(ytb);c=!0;break;case 92:c=a.subject;a.pos+=1;a.peek()===10?(a.pos+=1,c=new kn("linebreak"),b.appendChild(c)):ltb.test(c.charAt(a.pos))?(b.appendChild(uD(c.charAt(a.pos))),a.pos+=1):b.appendChild(uD("\\"));
c=!0;break;case 96:a:if(c=a.match(otb),c===null)c=!1;else{e=a.pos;for(var g;(g=a.match(ntb))!==null;)if(g===c){g=new kn("code");g._literal=a.subject.slice(e,a.pos-c.length).trim().replace(vtb," ");b.appendChild(g);c=!0;break a}a.pos=e;b.appendChild(uD(c));c=!0}break;case 42:case 95:c=Ctb(a,d,b);break;case 39:case 34:c=a.options.smart&&Ctb(a,d,b);break;case 91:c=a.pos;a.pos+=1;e=uD("[");b.appendChild(e);Itb(a,e,c,!1);c=!0;break;case 33:c=a.pos;a.pos+=1;a.peek()===91?(a.pos+=1,e=uD("!["),b.appendChild(e),
Itb(a,e,c+1,!0)):b.appendChild(uD("!"));c=!0;break;case 93:var k,m=!1,n;a.pos+=1;var r=a.pos;e=a.brackets;if(e===null)b.appendChild(uD("]"));else if(e.active){c=e.image;var t=a.pos;a.peek()===40&&(a.pos++,wD(a)&&(g=Gtb(a))!==null&&wD(a)&&(utb.test(a.subject.charAt(a.pos-1))&&(k=Ftb(a)),1)&&wD(a)&&a.peek()===41?(a.pos+=1,m=!0):a.pos=t);if(!m){var u=a.pos,w=Htb(a);w>2?n=a.subject.slice(u,u+w):e.bracketAfter||(n=a.subject.slice(e.index,r));w===0&&(a.pos=t);n&&(n=a.refmap[oya(n)])&&(g=n.destination,k=
n.title,m=!0)}if(m){r=new kn(c?"image":"link");r._destination=g;r._title=k||"";for(g=e.node._next;g;)k=g._next,tD(g),r.appendChild(g),g=k;b.appendChild(r);Etb(a,e.previousDelimiter);a.brackets=a.brackets.previous;tD(e.node);if(!c)for(e=a.brackets;e!==null;)e.image||(e.active=!1),e=e.previous}else a.brackets=a.brackets.previous,a.pos=r,b.appendChild(uD("]"))}else b.appendChild(uD("]")),a.brackets=a.brackets.previous;c=!0;break;case 60:(c=a.match(rtb))?(c=c.slice(1,c.length-1),e=new kn("link"),e._destination=
ctb("mailto:"+c),e._title="",e.appendChild(uD(c)),b.appendChild(e),c=!0):(c=a.match(stb))?(c=c.slice(1,c.length-1),e=new kn("link"),e._destination=ctb(c),e._title="",e.appendChild(uD(c)),b.appendChild(e),c=!0):c=!1;c||(c=a.match(Wsb),c===null?c=!1:(e=new kn("html_inline"),e._literal=c,b.appendChild(e),c=!0));break;case 38:(c=a.match(mtb))?(b.appendChild(uD(Usb(c))),c=!0):c=!1;break;default:c=Jtb(a,b)}c||(a.pos+=1,b.appendChild(uD(sD(d))));return!0};
vD.prototype.parseInlines=function(a){this.subject=a._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;Ltb(this,a););a._string_content=null;Etb(this,null)};
vD.prototype.parse=vD.prototype.parseInlines;var Mtb=[/./,/^<(?: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")],Ntb=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],Otb=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,Ptb=/^[#`~*+_=<>0-9-\|]|\|/,Qtb=/[^ \t\f\v\r\n]/,Rtb=/^[*+-]/,Stb=/^(\d{1,9})([.)])/,Ttb=/^#{1,6}(?:[ \t]+|$)/,Utb=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,Vtb=/^(?:`{3,}|~{3,})(?= *$)/,Wtb=/^(?:=+|-+)[ \t]*$/,Xtb=/\r\n|\n|\r/,qya=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,rya=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,Ytb={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(a){return a!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(a,b){for(a=b._firstChild;a;){if(pya(a)&&a._next){b._listData.tight=!1;break}for(var c=a._firstChild;c;){if(pya(c)&&(a._next||c._next)){b._listData.tight=!1;break}c=c._next}a=a._next}},
canContain:function(a){return a==="item"},
acceptsLines:!1},block_quote:{continue:function(a){var b=a.currentLine;if(a.indented||hn(b,a.nextNonspace)!==62)return 1;xD(a);yD(a,1,!1);gn(hn(b,a.offset))&&yD(a,1,!0);return 0},
finalize:function(){},
canContain:function(a){return a!=="item"},
acceptsLines:!1},item:{continue:function(a,b){if(a.blank){if(b._firstChild==null)return 1;xD(a)}else if(a.indent>=b._listData.markerOffset+b._listData.padding)yD(a,b._listData.markerOffset+b._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(a){return a!=="item"&&!sya(a)},
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(a,b){var c=a.currentLine,d=a.indent;if(b._isFenced){if((d=d<=3&&c.charAt(a.nextNonspace)===b._fenceChar&&c.slice(a.nextNonspace).match(Vtb))&&d[0].length>=b._fenceLength)return a.finalize(b,a.lineNumber),2;for(b=b._fenceOffset;b>0&&gn(hn(c,a.offset));)yD(a,1,!0),b--}else if(d>=4)yD(a,4,!0);else if(a.blank)xD(a);else return 1;return 0},
finalize:function(a,b){if(b._isFenced){var c=b._string_content,d=c.indexOf("\n");a=c.slice(0,d);c=c.slice(d+1);b.info=btb(a.trim());b._literal=c}else b._literal=b._string_content.replace(/(\n *)+$/,"\n");b._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(a,b){return!a.blank||b._htmlBlockType!==6&&b._htmlBlockType!==7?0:1},
finalize:function(a,b){b._literal=b._string_content.replace(/(\n *)+$/,"");b._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(a){return a.blank?1:0},
finalize:function(a,b){for(var c,d=!1;hn(b._string_content,0)===91&&(c=Ktb(a.inlineParser,b._string_content,a.refmap));)b._string_content=b._string_content.slice(c),d=!0;d&&!Qtb.test(b._string_content)&&tD(b)},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(a){return jn(a.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(a){return a=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(a,b){if(!b._rowIsDelimiter){a=b._isHeader?"th":"td";for(var c=b._parent._tableColumns,d=b._string_content,e=0,g="",k,m=b._sourcepos[0][0];e<d.length;){switch(d[e]){case "|":k&&(k._string_content=g.trim(),g="",k=null,c--,c<=0&&(e=d.length));break;default:if(!k){k=new kn(a,[[m,e],[m,e]]);var n=b._parent._columnAlignment,r=b._parent._tableColumns-c;n&&r<=n.length&&r>=0&&(k._alignment=n[r]);b.appendChild(k)}g+=d[e];k._sourcepos[1][1]=e}e++}k&&(k._string_content=g.trim());b._string_content=
""}},
canContain:function(a){return a!=="row"},
acceptsLines:!1}},Ztb=[function(a){if(a.indented||hn(a.currentLine,a.nextNonspace)!==62)return 0;xD(a);yD(a,1,!1);gn(hn(a.currentLine,a.offset))&&yD(a,1,!0);zD(a);a.addChild("block_quote",a.nextNonspace);return 1},
function(a){var b;if(!a.indented&&(b=a.currentLine.slice(a.nextNonspace).match(Ttb))){xD(a);yD(a,b[0].length,!1);zD(a);var c=a.addChild("heading",a.nextNonspace);c.level=b[0].trim().length;c._string_content=a.currentLine.slice(a.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");yD(a,a.currentLine.length-a.offset);return 2}return 0},
function(a){var b;if(!a.indented&&(b=a.currentLine.slice(a.nextNonspace).match(Utb))){var c=b[0].length;zD(a);var d=a.addChild("code_block",a.nextNonspace);d._isFenced=!0;d._fenceLength=c;d._fenceChar=b[0][0];d._fenceOffset=a.indent;xD(a);yD(a,c,!1);return 2}return 0},
function(a,b){if(!a.indented&&hn(a.currentLine,a.nextNonspace)===60){var c=a.currentLine.slice(a.nextNonspace),d;for(d=1;d<=7;d++)if(Mtb[d].test(c)&&(d<7||b.type!=="paragraph"))return zD(a),a.addChild("html_block",a.offset)._htmlBlockType=d,2}return 0},
function(a,b){var c;if(!a.indented&&b.type==="paragraph"&&(c=a.currentLine.slice(a.nextNonspace).match(Wtb))){zD(a);var d=new kn("heading",b.sourcepos);d.level=c[0][0]==="="?1:2;d._string_content=b._string_content;htb(b,d);tD(b);a.tip=d;yD(a,a.currentLine.length-a.offset,!1);return 2}return 0},
function(a){return!a.indented&&Otb.test(a.currentLine.slice(a.nextNonspace))?(zD(a),a.addChild("thematic_break",a.nextNonspace),yD(a,a.currentLine.length-a.offset,!1),2):0},
function(a,b){var c,d;if(!(d=a.indented&&b.type!=="list")){a:{var e=b,g=a.currentLine.slice(a.nextNonspace);d={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:a.indent};if(c=g.match(Rtb))d.type="bullet",d.bulletChar=c[0][0];else{if(!(c=g.match(Stb))||e.type==="paragraph"&&c[1]!=="1"){c=null;break a}d.type="ordered";d.start=parseInt(c[1],10);d.delimiter=c[2]}var k=hn(a.currentLine,a.nextNonspace+c[0].length);if(k!==-1&&k!==9&&k!==32||e.type==="paragraph"&&!a.currentLine.slice(a.nextNonspace+
c[0].length).match(Qtb))c=null;else{xD(a);yD(a,c[0].length,!0);e=a.column;g=a.offset;do yD(a,1,!0),k=hn(a.currentLine,a.offset);while(a.column-e<5&&gn(k));k=hn(a.currentLine,a.offset)===-1;var m=a.column-e;m>=5||m<1||k?(d.padding=c[0].length+1,a.column=e,a.offset=g,gn(hn(a.currentLine,a.offset))&&yD(a,1,!0)):d.padding=c[0].length+m;c=d}}d=!c}if(d)return 0;zD(a);(d=a.tip.type!=="list")||(b=b._listData,d=!(b.type===c.type&&b.delimiter===c.delimiter&&b.bulletChar===c.bulletChar));d&&(b=a.addChild("list",
a.nextNonspace),b._listData=c);b=a.addChild("item",a.nextNonspace);b._listData=c;return 1},
function(a){var b;return((b=a.options.shouldParseIndentAsCodeBlock)!=null?b:1)&&a.indented&&a.tip.type!=="paragraph"&&!a.blank?(yD(a,4,!0),zD(a),a.addChild("code_block",a.offset),2):0},
function(a,b){var c=jn(a.currentLine),d=jn(a.lookahead);if(c!==0&&d<0&&Math.abs(c)==Math.abs(d)&&!sya(b.type)){zD(a);b=a.addChild("table",a.nextNonspace);b._tableRows=1;b._tableColumns=Math.abs(c);c=a.lookahead;if(rya.test(c)){d=[];for(var e=0,g=!1,k=0,m=void 0;e<c.length;){var n=k>=3;switch(c[e]){case "-":k++;break;case "|":g&&(d.push(m),m=void 0,k=0);g=!0;break;case ":":m||n||(m="left"),!m&&n&&(m="right"),m==="left"&&n&&(m="center")}e++}c=d}else c=void 0;b._columnAlignment=c;b=a.addChild("row",
a.nextNonspace);b._isHeader=!0;yD(a,a.currentLine.length-a.offset,!1);b._string_content=a.currentLine;return 1}return 0},
function(a,b){if(b.type=="table"&&jn(a.currentLine)!==0){zD(a);var c=b;b=a.addChild("row",a.nextNonspace);jn(a.currentLine)<0?b._rowIsDelimiter=!0:c._tableRows+=1;yD(a,a.currentLine.length-a.offset,!1);b._string_content=a.currentLine;return 2}return 0}],b2a=function(){var a={shouldParseIndentAsCodeBlock:!1};
a=a===void 0?{}:a;this.lastMatchedContainer=this.doc=tya();this.refmap={};this.lastLineLength=0;this.inlineParser=new vD(a);this.options=a;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=Ytb;this.blockStarts=Ztb},$tb=function(a){a.partiallyConsumedTab&&(a.offset+=1,a.tip._string_content+=" ".repeat(4-a.column%
4));
a.tip._string_content+=a.currentLine.slice(a.offset)+"\n"};
b2a.prototype.addChild=function(a,b){for(;!this.blocks[this.tip.type].canContain(a);)this.finalize(this.tip,this.lineNumber-1);a=new kn(a,[[this.lineNumber,b+1],[0,0]]);a._string_content="";this.tip.appendChild(a);return this.tip=a};
var zD=function(a){if(!a.allClosed){for(;a.oldtip!==a.lastMatchedContainer;){var b=a.oldtip._parent;a.finalize(a.oldtip,a.lineNumber-1);a.oldtip=b}a.allClosed=!0}},yD=function(a,b,c){for(var d=a.currentLine,e,g;b>0&&(g=d[a.offset]);)g==="\t"?(e=4-a.column%4,c?(a.partiallyConsumedTab=e>b,e=e>b?b:e,a.column+=e,a.offset+=a.partiallyConsumedTab?0:1,b-=e):(a.partiallyConsumedTab=!1,a.column+=e,a.offset+=1,--b)):(a.partiallyConsumedTab=!1,a.offset+=1,a.column+=1,--b)},xD=function(a){a.offset=a.nextNonspace;
a.column=a.nextNonspaceColumn;a.partiallyConsumedTab=!1},aub=function(a){for(var b=a.currentLine,c=a.offset,d=a.column,e;(e=b.charAt(c))!=="";)if(e===" ")c++,d++;
else if(e==="\t")c++,d+=4-d%4;else break;a.blank=e==="\n"||e==="\r"||e==="";a.nextNonspace=c;a.nextNonspaceColumn=d;a.indent=a.nextNonspaceColumn-a.column;a.indented=a.indent>=4};
b2a.prototype.finalize=function(a,b){var c=a._parent;a._open=!1;a.sourcepos[1]=[b,this.lastLineLength];this.blocks[a.type].finalize(this,a);this.tip=c};
b2a.prototype.parse=function(a){this.tip=this.doc=tya();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!a)return this.doc;this.options.time&&console.time("preparing input");var b=a.split(Xtb),c=b.length;a.charCodeAt(a.length-1)===10&&--c;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(a=0;a<c;a++)a:{var d=void 0,e=b[a],g=b[a+1],k=!0,m=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;e.indexOf("\x00")!==-1&&(e=e.replace(/\0/g,"\ufffd"));this.currentLine=e;for(this.lookahead=g;(d=m._lastChild)&&d._open;){m=d;aub(this);switch(this.blocks[m.type].continue(this,m)){case 0:break;case 1:k=!1;break;case 2:this.lastLineLength=e.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!k){m=m._parent;break}}this.allClosed=m===this.oldtip;this.lastMatchedContainer=
m;d=m.type!=="paragraph"&&Ytb[m.type].acceptsLines;g=this.blockStarts;for(k=g.length;!d;){aub(this);if(!this.indented&&!Ptb.test(e.slice(this.nextNonspace))){xD(this);break}for(var n=0;n<k;){var r=g[n](this,m);if(r===1){m=this.tip;break}else if(r===2){m=this.tip;d=!0;break}else n++}if(n===k){xD(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){zD(this);this.blank&&m.lastChild&&(m.lastChild._lastLineBlank=!0);d=m.type;g=this.blank&&!(d==="block_quote"||d==="code_block"&&m._isFenced||
d==="item"&&!m._firstChild&&m.sourcepos[0][0]===this.lineNumber);for(k=m;k;)k._lastLineBlank=g,k=k._parent;this.blocks[d].acceptsLines?($tb(this),d==="html_block"&&m._htmlBlockType>=1&&m._htmlBlockType<=5&&Ntb[m._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(m,this.lineNumber)):this.offset<e.length&&!this.blank&&(this.addChild("paragraph",this.offset),xD(this),$tb(this))}else $tb(this);this.lastLineLength=e.length}for(;this.tip;)this.finalize(this.tip,c);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");e=new gtb(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;c=e.next();)b=c.node,a=b.type,c.entering||a!=="paragraph"&&a!=="heading"&&a!=="th"&&a!="td"||this.inlineParser.parse(b);this.options.time&&console.timeEnd("inline parsing");return this.doc};uya.prototype.render=function(a){a=new gtb(a);var b;this.buffer="";for(this.lastOut="\n";b=a.next();){var c=b.node.type;if(this[c])this[c](b.node,b.entering)}return this.buffer};
uya.prototype.out=function(a){AD(this,a)};
var AD=function(a,b){a.buffer+=b;a.lastOut=b};
uya.prototype.cr=function(){this.lastOut!=="\n"&&AD(this,"\n")};var bub=/^javascript:|vbscript:|file:|data:/i,cub=/^data:image\/(?:png|gif|jpeg|webp)/i,dub=function(a){return bub.test(a)&&!cub.test(a)};
ln.prototype=Object.create(uya.prototype);_.f=ln.prototype;_.f.text=function(a){this.out(a.literal)};
_.f.html_inline=function(a){this.options.safe?AD(this,"\x3c!-- raw HTML omitted --\x3e"):AD(this,a.literal)};
_.f.html_block=function(a){this.cr();this.options.safe?AD(this,"\x3c!-- raw HTML omitted --\x3e"):AD(this,a.literal);this.cr()};
_.f.softbreak=function(){AD(this,this.options.softbreak)};
_.f.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.f.link=function(a,b){var c=this.attrs(a);b?(this.options.safe&&dub(a.destination)||c.push(["href",rD(a.destination,!0)]),a.title&&c.push(["title",rD(a.title,!0)]),this.tag("a",c)):this.tag("/a")};
_.f.image=function(a,b){b?(this.disableTags===0&&(this.options.safe&&dub(a.destination)?AD(this,'<img src="" alt="'):AD(this,'<img src="'+rD(a.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(a.title&&AD(this,'" title="'+rD(a.title,!0)),AD(this,'" />')))};
_.f.emph=function(a,b){this.tag(b?"em":"/em")};
_.f.strong=function(a,b){this.tag(b?"strong":"/strong")};
_.f.paragraph=function(a,b){var c=a.parent.parent;a=this.attrs(a);c!==null&&c.type==="list"&&c.listTight||(b?(this.cr(),this.tag("p",a)):(this.tag("/p"),this.cr()))};
_.f.heading=function(a,b){var c="h"+a.level;a=this.attrs(a);b?(this.cr(),this.tag(c,a)):(this.tag("/"+c),this.cr())};
_.f.code=function(a){this.tag("code");this.out(a.literal);this.tag("/code")};
_.f.code_block=function(a){var b=a.info?a.info.split(/\s+/):[],c=this.attrs(a);b.length>0&&b[0].length>0&&c.push(["class","language-"+rD(b[0],!0)]);this.cr();this.tag("pre");this.tag("code",c);this.out(a.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.f.thematic_break=function(a){a=this.attrs(a);this.cr();this.tag("hr",a,!0);this.cr()};
_.f.block_quote=function(a,b){a=this.attrs(a);b?(this.cr(),this.tag("blockquote",a)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.f.list=function(a,b){var c=a.listType==="bullet"?"ul":"ol",d=this.attrs(a);b?(a=a.listStart,a!==null&&a!==1&&d.push(["start",a.toString()]),this.cr(),this.tag(c,d)):(this.cr(),this.tag("/"+c));this.cr()};
_.f.item=function(a,b){a=this.attrs(a);b?this.tag("li",a):(this.tag("/li"),this.cr())};
_.f.custom_inline=function(a,b){b&&a.onEnter?AD(this,a.onEnter):!b&&a.onExit&&AD(this,a.onExit)};
_.f.custom_block=function(a,b){this.cr();b&&a.onEnter?AD(this,a.onEnter):!b&&a.onExit&&AD(this,a.onExit);this.cr()};
_.f.table=function(a,b){a=this.attrs(a);b?(this.cr(),this.tag("table",a)):(this.tag("/table"),this.cr())};
_.f.row=function(a,b){a._rowIsDelimiter||(a=this.attrs(a),b?this.tag("tr",a):this.tag("/tr"))};
_.f.td=function(a,b){var c=this.attrs(a);a._alignment&&c.push(["align",a._alignment]);b?this.tag("td",c):this.tag("/td")};
_.f.th=function(a,b){var c=this.attrs(a);a._alignment&&c.push(["align",a._alignment]);b?this.tag("th",c):this.tag("/th")};
_.f.out=function(a){AD(this,rD(a,!1))};
_.f.tag=function(a,b,c){if(!(this.disableTags>0)){this.buffer+="<"+a;if(b&&b.length>0){a=0;for(var d;(d=b[a])!==void 0;)this.buffer+=" "+d[0]+'="'+d[1]+'"',a++}c&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.f.attrs=function(a){var b=[];this.options.sourcepos&&(a=a.sourcepos)&&b.push(["data-sourcepos",String(a[0][0])+":"+String(a[0][1])+"-"+String(a[1][0])+":"+String(a[1][1])]);return b};
ln.prototype.text=ln.prototype.text;ln.prototype.html_inline=ln.prototype.html_inline;ln.prototype.html_block=ln.prototype.html_block;ln.prototype.softbreak=ln.prototype.softbreak;ln.prototype.linebreak=ln.prototype.linebreak;ln.prototype.link=ln.prototype.link;ln.prototype.image=ln.prototype.image;ln.prototype.emph=ln.prototype.emph;ln.prototype.strong=ln.prototype.strong;ln.prototype.paragraph=ln.prototype.paragraph;ln.prototype.heading=ln.prototype.heading;ln.prototype.code=ln.prototype.code;
ln.prototype.code_block=ln.prototype.code_block;ln.prototype.thematic_break=ln.prototype.thematic_break;ln.prototype.block_quote=ln.prototype.block_quote;ln.prototype.list=ln.prototype.list;ln.prototype.item=ln.prototype.item;ln.prototype.custom_inline=ln.prototype.custom_inline;ln.prototype.custom_block=ln.prototype.custom_block;ln.prototype.table=ln.prototype.table;ln.prototype.row=ln.prototype.row;ln.prototype.td=ln.prototype.td;ln.prototype.th=ln.prototype.th;ln.prototype.out=ln.prototype.out;
ln.prototype.tag=ln.prototype.tag;ln.prototype.attrs=ln.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 eub,fub,WOa;(function(){function a(F,D){return F<D?-1:F>D?1:F>=D?0:NaN}
function b(F){return function(D,L){return a(F(D),L)}}
function c(){for(var F=0,D=arguments.length,L={},T;F<D;++F){if(!(T=arguments[F]+"")||T in L)throw Error("oe`"+T);L[T]=[]}return new d(L)}
function d(F){this._=F}
function e(F,D){return F.trim().split(/^|\s+/).map(function(L){var T="",ba=L.indexOf(".");ba>=0&&(T=L.slice(ba+1),L=L.slice(0,ba));if(L&&!D.hasOwnProperty(L))throw Error("pe`"+L);return{type:L,name:T}})}
function g(F,D,L){for(var T=0,ba=F.length;T<ba;++T)if(F[T].name===D){F[T]=zOc;F=F.slice(0,T).concat(F.slice(T+1));break}L!=null&&F.push({name:D,value:L});return F}
function k(F){var D=F,L=D.indexOf(":");L>=0&&(D=F.slice(0,L))!=="xmlns"&&(F=F.slice(L+1));return Ru.hasOwnProperty(D)?{space:Ru[D],local:F}:F}
function m(F){return function(){var D=this.ownerDocument,L=this.namespaceURI;return L==="http://www.w3.org/1999/xhtml"&&D.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?D.createElement(F):D.createElementNS(L,F)}}
function n(F){return function(){return this.ownerDocument.createElementNS(F.space,F.local)}}
function r(F){F=k(F);return(F.local?n:m)(F)}
function t(){}
function u(F){return F==null?t:function(){return this.querySelector(F)}}
function w(F){return Array(F.length)}
function A(F,D){this.ownerDocument=F.ownerDocument;this.namespaceURI=F.namespaceURI;this._next=null;this._parent=F;this.__data__=D}
function C(F){return function(){return F}}
function G(F,D,L,T,ba,la){for(var pa=0,ya,Va=D.length,Ta=la.length;pa<Ta;++pa)(ya=D[pa])?(ya.__data__=la[pa],T[pa]=ya):L[pa]=new A(F,la[pa]);for(;pa<Va;++pa)if(ya=D[pa])ba[pa]=ya}
function J(F,D,L,T,ba,la,pa){var ya,Va,Ta={},Xa=D.length,gb=la.length,Ob=Array(Xa),nc;for(ya=0;ya<Xa;++ya)if(Va=D[ya])Ob[ya]=nc="$"+pa.call(Va,Va.__data__,ya,D),nc in Ta?ba[ya]=Va:Ta[nc]=Va;for(ya=0;ya<gb;++ya)nc="$"+pa.call(F,la[ya],ya,la),(Va=Ta[nc])?(T[ya]=Va,Va.__data__=la[ya],Ta[nc]=null):L[ya]=new A(F,la[ya]);for(ya=0;ya<Xa;++ya)(Va=D[ya])&&Ta[Ob[ya]]===Va&&(ba[ya]=Va)}
function I(F,D){return F<D?-1:F>D?1:F>=D?0:NaN}
function R(F){return function(){this.removeAttribute(F)}}
function ca(F){return function(){this.removeAttributeNS(F.space,F.local)}}
function V(F,D){return function(){this.setAttribute(F,D)}}
function fa(F,D){return function(){this.setAttributeNS(F.space,F.local,D)}}
function aa(F,D){return function(){var L=D.apply(this,arguments);L==null?this.removeAttribute(F):this.setAttribute(F,L)}}
function ma(F,D){return function(){var L=D.apply(this,arguments);L==null?this.removeAttributeNS(F.space,F.local):this.setAttributeNS(F.space,F.local,L)}}
function Ba(F){return function(){this.style.removeProperty(F)}}
function Da(F,D,L){return function(){this.style.setProperty(F,D,L)}}
function za(F,D,L){return function(){var T=D.apply(this,arguments);T==null?this.style.removeProperty(F):this.style.setProperty(F,T,L)}}
function Fa(F,D){return F.style.getPropertyValue(D)||(F.ownerDocument&&F.ownerDocument.defaultView||F.document&&F||F.defaultView).getComputedStyle(F,null).getPropertyValue(D)}
function bb(F){return function(){delete this[F]}}
function kb(F,D){return function(){this[F]=D}}
function Ua(F,D){return function(){var L=D.apply(this,arguments);L==null?delete this[F]:this[F]=L}}
function Fc(){this.textContent=""}
function id(F){return function(){this.textContent=F}}
function Mb(F){return function(){var D=F.apply(this,arguments);this.textContent=D==null?"":D}}
function wd(){this.innerHTML=""}
function Tb(F){return function(){this.innerHTML=F}}
function tb(F){return function(){var D=F.apply(this,arguments);this.innerHTML=D==null?"":D}}
function Fb(){return null}
function dd(){var F=this.parentNode;F&&F.removeChild(this)}
function be(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function ia(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function gc(F,D,L){F=Pb(F,D,L);return function(T){var ba=T.relatedTarget;ba&&(ba===this||ba.compareDocumentPosition(this)&8)||F.call(this,T)}}
function Pb(F,D,L){return function(){F.call(this,this.__data__,D,L)}}
function Lc(F){return F.trim().split(/^|\s+/).map(function(D){var L="",T=D.indexOf(".");T>=0&&(L=D.slice(T+1),D=D.slice(0,T));return{type:D,name:L}})}
function qb(F){return function(){var D=this.__on;if(D){for(var L=0,T=-1,ba=D.length,la;L<ba;++L)(la=D[L],F.type&&la.type!==F.type||la.name!==F.name)?D[++T]=la:this.removeEventListener(la.type,la.listener,la.capture);++T?D.length=T:delete this.__on}}}
function Ab(F,D,L){var T=LSb.hasOwnProperty(F.type)?gc:Pb;return function(ba,la,pa){ba=this.__on;var ya;la=T(D,la,pa);if(ba){pa=0;for(var Va=ba.length;pa<Va;++pa)if((ya=ba[pa]).type===F.type&&ya.name===F.name){this.removeEventListener(ya.type,ya.listener,ya.capture);this.addEventListener(ya.type,ya.listener=la,ya.capture=L);ya.value=D;return}}this.addEventListener(F.type,la,L);ya={type:F.type,name:F.name,value:D,listener:la,capture:L};ba?ba.push(ya):this.__on=[ya]}}
function Ya(F,D,L){var T=F.ownerDocument&&F.ownerDocument.defaultView||F.document&&F||F.defaultView,ba=T.CustomEvent;typeof ba==="function"?ba=new ba(D,L):(ba=T.document.createEvent("Event"),L?(ba.initEvent(D,L.bubbles,L.cancelable),ba.detail=L.detail):ba.initEvent(D,!1,!1));F.dispatchEvent(ba)}
function Oa(F,D){return function(){return Ya(this,F,D)}}
function pb(F,D){return function(){return Ya(this,F,D.apply(this,arguments))}}
function Yb(F,D){this._groups=F;this._parents=D}
function Pc(){return new Yb([[document.documentElement]],AOc)}
function Db(){this._="@"+(++BOc).toString(36)}
function Vc(F,D,L){F.prototype=D.prototype=L;L.constructor=F}
function zd(F,D){F=Object.create(F.prototype);for(var L in D)F[L]=D[L];return F}
function pm(){}
function jd(F){var D;F=(F+"").trim().toLowerCase();return(D=COc.exec(F))?(D=parseInt(D[1],16),new Ci(D>>8&15|D>>4&240,D>>4&15|D&240,(D&15)<<4|D&15,1)):(D=DOc.exec(F))?Mf(parseInt(D[1],16)):(D=EOc.exec(F))?new Ci(D[1],D[2],D[3],1):(D=FOc.exec(F))?new Ci(D[1]*255/100,D[2]*255/100,D[3]*255/100,1):(D=GOc.exec(F))?$o(D[1],D[2],D[3],D[4]):(D=HOc.exec(F))?$o(D[1]*255/100,D[2]*255/100,D[3]*255/100,D[4]):(D=IOc.exec(F))?Xp(D[1],D[2]/100,D[3]/100,1):(D=JOc.exec(F))?Xp(D[1],D[2]/100,D[3]/100,D[4]):MSb.hasOwnProperty(F)?
Mf(MSb[F]):F==="transparent"?new Ci(NaN,NaN,NaN,0):null}
function Mf(F){return new Ci(F>>16&255,F>>8&255,F&255,1)}
function $o(F,D,L,T){T<=0&&(F=D=L=NaN);return new Ci(F,D,L,T)}
function Ye(F){F instanceof pm||(F=jd(F));if(!F)return new Ci;F=F.rgb();return new Ci(F.r,F.g,F.b,F.opacity)}
function Yg(F,D,L,T){return arguments.length===1?Ye(F):new Ci(F,D,L,T==null?1:T)}
function Ci(F,D,L,T){this.r=+F;this.g=+D;this.b=+L;this.opacity=+T}
function nd(F){F=Math.max(0,Math.min(255,Math.round(F)||0));return(F<16?"0":"")+F.toString(16)}
function Xp(F,D,L,T){T<=0?F=D=L=NaN:L<=0||L>=1?F=D=NaN:D<=0&&(F=NaN);return new Di(F,D,L,T)}
function Qk(F){if(F instanceof Di)return new Di(F.h,F.s,F.l,F.opacity);F instanceof pm||(F=jd(F));if(!F)return new Di;if(F instanceof Di)return F;F=F.rgb();var D=F.r/255,L=F.g/255,T=F.b/255,ba=Math.min(D,L,T),la=Math.max(D,L,T),pa=NaN,ya=la-ba,Va=(la+ba)/2;ya?(pa=D===la?(L-T)/ya+(L<T)*6:L===la?(T-D)/ya+2:(D-L)/ya+4,ya/=Va<.5?la+ba:2-la-ba,pa*=60):ya=Va>0&&Va<1?0:pa;return new Di(pa,ya,Va,F.opacity)}
function Zi(F,D,L,T){return arguments.length===1?Qk(F):new Di(F,D,L,T==null?1:T)}
function Di(F,D,L,T){this.h=+F;this.s=+D;this.l=+L;this.opacity=+T}
function Ke(F,D,L){return(F<60?D+(L-D)*F/60:F<180?L:F<240?D+(L-D)*(240-F)/60:D)*255}
function ap(F){if(F instanceof sa)return new sa(F.l,F.a,F.b,F.opacity);if(F instanceof Qb){if(isNaN(F.h))return new sa(F.l,0,0,F.opacity);var D=F.h*NSb;return new sa(F.l,Math.cos(D)*F.c,Math.sin(D)*F.c,F.opacity)}F instanceof Ci||(F=Ye(F));var L=fc(F.r),T=fc(F.g),ba=fc(F.b);D=Ga(.2225045*L+.7168786*T+.0606169*ba);if(L===T&&T===ba)var la=L=D;else la=Ga((.4360747*L+.3850649*T+.1430804*ba)/.96422),L=Ga((.0139322*L+.0971045*T+.7141733*ba)/.82521);return new sa(116*D-16,500*(la-D),200*(D-L),F.opacity)}
function sa(F,D,L,T){this.l=+F;this.a=+D;this.b=+L;this.opacity=+T}
function Ga(F){return F>KOc?Math.pow(F,1/3):F/OSb+PSb}
function La(F){return F>zR?F*F*F:OSb*(F-PSb)}
function mb(F){return 255*(F<=.0031308?12.92*F:1.055*Math.pow(F,1/2.4)-.055)}
function fc(F){return(F/=255)<=.04045?F/12.92:Math.pow((F+.055)/1.055,2.4)}
function fb(F){if(F instanceof Qb)return new Qb(F.h,F.c,F.l,F.opacity);F instanceof sa||(F=ap(F));if(F.a===0&&F.b===0)return new Qb(NaN,0,F.l,F.opacity);var D=Math.atan2(F.b,F.a)*QSb;return new Qb(D<0?D+360:D,Math.sqrt(F.a*F.a+F.b*F.b),F.l,F.opacity)}
function ib(F,D,L,T){return arguments.length===1?fb(F):new Qb(F,D,L,T==null?1:T)}
function Qb(F,D,L,T){this.h=+F;this.c=+D;this.l=+L;this.opacity=+T}
function xb(F,D,L,T){if(arguments.length===1){var ba=F;if(ba instanceof sd)ba=new sd(ba.h,ba.s,ba.l,ba.opacity);else{ba instanceof Ci||(ba=Ye(ba));var la=ba.g/255,pa=ba.b/255,ya=(RSb*pa+ba.r/255*-1.7884503806-3.5172982438*la)/(RSb+-1.7884503806-3.5172982438);pa-=ya;var Va=(1.97294*(la-ya)- -.29227*pa)/-.90649;pa=(la=Math.sqrt(Va*Va+pa*pa)/(1.97294*ya*(1-ya)))?Math.atan2(Va,pa)*QSb-120:NaN;ba=new sd(pa<0?pa+360:pa,la,ya,ba.opacity)}}else ba=new sd(F,D,L,T==null?1:T);return ba}
function sd(F,D,L,T){this.h=+F;this.s=+D;this.l=+L;this.opacity=+T}
function Yf(F,D,L,T,ba){var la=F*F,pa=la*F;return((1-3*F+3*la-pa)*D+(4-6*la+3*pa)*L+(1+3*F+3*la-3*pa)*T+pa*ba)/6}
function zb(F){return function(){return F}}
function pk(F,D){return function(L){return F+L*D}}
function Hs(F,D,L){return F=Math.pow(F,L),D=Math.pow(D,L)-F,L=1/L,function(T){return Math.pow(F+T*D,L)}}
function Vd(F,D){var L=D-F;return L?pk(F,L>180||L<-180?L-360*Math.round(L/360):L):zb(isNaN(F)?D:F)}
function nh(F){return(F=+F)===1?Rk:function(D,L){return L-D?Hs(D,L,F):zb(isNaN(D)?L:D)}}
function Rk(F,D){var L=D-F;return L?pk(F,L):zb(isNaN(F)?D:F)}
function Gh(F){return function(D){var L=D.length,T=Array(L),ba=Array(L),la=Array(L),pa;for(pa=0;pa<L;++pa){var ya=Yg(D[pa]);T[pa]=ya.r||0;ba[pa]=ya.g||0;la[pa]=ya.b||0}T=F(T);ba=F(ba);la=F(la);ya.opacity=1;return function(Va){ya.r=T(Va);ya.g=ba(Va);ya.b=la(Va);return ya+""}}}
function sg(F,D){return F=+F,D-=F,function(L){return F+D*L}}
function cr(F){return function(){return F}}
function Za(F){return function(D){return F(D)+""}}
function $b(F,D){var L=SLa.lastIndex=TLa.lastIndex=0,T,ba,la,pa=-1,ya=[],Va=[];F+="";for(D+="";(T=SLa.exec(F))&&(ba=TLa.exec(D));)(la=ba.index)>L&&(la=D.slice(L,la),ya[pa]?ya[pa]+=la:ya[++pa]=la),(T=T[0])===(ba=ba[0])?ya[pa]?ya[pa]+=ba:ya[++pa]=ba:(ya[++pa]=null,Va.push({i:pa,x:sg(T,ba)})),L=TLa.lastIndex;L<D.length&&(la=D.slice(L),ya[pa]?ya[pa]+=la:ya[++pa]=la);return ya.length<2?Va[0]?Za(Va[0].x):cr(D):(D=Va.length,function(Ta){for(var Xa=0,gb;Xa<D;++Xa)ya[(gb=Va[Xa]).i]=gb.x(Ta);return ya.join("")})}
function Uc(F,D,L,T,ba,la){var pa,ya,Va;if(pa=Math.sqrt(F*F+D*D))F/=pa,D/=pa;if(Va=F*L+D*T)L-=F*Va,T-=D*Va;if(ya=Math.sqrt(L*L+T*T))L/=ya,T/=ya,Va/=ya;F*T<D*L&&(F=-F,D=-D,Va=-Va,pa=-pa);return{translateX:ba,translateY:la,rotate:Math.atan2(D,F)*SSb,skewX:Math.atan(Va)*SSb,scaleX:pa,scaleY:ya}}
function od(F,D,L,T){function ba(Ta){return Ta.length?Ta.pop()+" ":""}
function la(Ta,Xa,gb,Ob,nc,ld){Ta!==gb||Xa!==Ob?(nc=nc.push("translate(",null,D,null,L),ld.push({i:nc-4,x:sg(Ta,gb)},{i:nc-2,x:sg(Xa,Ob)})):(gb||Ob)&&nc.push("translate("+gb+D+Ob+L)}
function pa(Ta,Xa,gb,Ob){Ta!==Xa?(Ta-Xa>180?Xa+=360:Xa-Ta>180&&(Ta+=360),Ob.push({i:gb.push(ba(gb)+"rotate(",null,T)-2,x:sg(Ta,Xa)})):Xa&&gb.push(ba(gb)+"rotate("+Xa+T)}
function ya(Ta,Xa,gb,Ob){Ta!==Xa?Ob.push({i:gb.push(ba(gb)+"skewX(",null,T)-2,x:sg(Ta,Xa)}):Xa&&gb.push(ba(gb)+"skewX("+Xa+T)}
function Va(Ta,Xa,gb,Ob,nc,ld){Ta!==gb||Xa!==Ob?(nc=nc.push(ba(nc)+"scale(",null,",",null,")"),ld.push({i:nc-4,x:sg(Ta,gb)},{i:nc-2,x:sg(Xa,Ob)})):gb===1&&Ob===1||nc.push(ba(nc)+"scale("+gb+","+Ob+")")}
return function(Ta,Xa){var gb=[],Ob=[];Ta=F(Ta);Xa=F(Xa);la(Ta.translateX,Ta.translateY,Xa.translateX,Xa.translateY,gb,Ob);pa(Ta.rotate,Xa.rotate,gb,Ob);ya(Ta.skewX,Xa.skewX,gb,Ob);Va(Ta.scaleX,Ta.scaleY,Xa.scaleX,Xa.scaleY,gb,Ob);Ta=Xa=null;return function(nc){for(var ld=-1,ye=Ob.length,ne;++ld<ye;)gb[(ne=Ob[ld]).i]=ne.x(nc);return gb.join("")}}}
function Jc(F){return function(D,L){var T=F((D=Zi(D)).h,(L=Zi(L)).h),ba=Rk(D.s,L.s),la=Rk(D.l,L.l),pa=Rk(D.opacity,L.opacity);return function(ya){D.h=T(ya);D.s=ba(ya);D.l=la(ya);D.opacity=pa(ya);return D+""}}}
function hg(F){return function(D,L){var T=F((D=ib(D)).h,(L=ib(L)).h),ba=Rk(D.c,L.c),la=Rk(D.l,L.l),pa=Rk(D.opacity,L.opacity);return function(ya){D.h=T(ya);D.c=ba(ya);D.l=la(ya);D.opacity=pa(ya);return D+""}}}
function di(F){return function T(L){function ba(la,pa){var ya=F((la=xb(la)).h,(pa=xb(pa)).h),Va=Rk(la.s,pa.s),Ta=Rk(la.l,pa.l),Xa=Rk(la.opacity,pa.opacity);return function(gb){la.h=ya(gb);la.s=Va(gb);la.l=Ta(Math.pow(gb,L));la.opacity=Xa(gb);return la+""}}
L=+L;ba.gamma=T;return ba}(1)}
function Is(){return jK||(TSb(dy),jK=I3.now()+$ka)}
function dy(){jK=0}
function WI(){this._call=this._time=this._next=null}
function B0(F,D,L){var T=new WI;T.restart(F,D,L);return T}
function C0(){jK=(ala=I3.now())+$ka;AR=J3=0;try{Is();++AR;for(var F=bla,D;F;)(D=jK-F._time)>=0&&F._call.call(null,D),F=F._next;--AR}finally{AR=0;F=bla;for(var L=Infinity;F;)if(F._call){L>F._time&&(L=F._time);var T=F;F=F._next}else D=F._next,F._next=null,F=T?T._next=D:bla=D;K3=T;D0(L);jK=0}}
function lDa(){var F=I3.now(),D=F-ala;D>1E3&&($ka-=D,ala=F)}
function D0(F){AR||(J3&&(J3=clearTimeout(J3)),F-jK>24?(F<Infinity&&(J3=setTimeout(C0,F-I3.now()-$ka)),L3&&(L3=clearInterval(L3))):(L3||(ala=I3.now(),L3=setInterval(lDa,1E3)),AR=1,TSb(C0)))}
function USb(F,D,L){var T=new WI;D=D==null?0:+D;T.restart(function(ba){T.stop();F(ba+D)},D,L);
return T}
function ULa(F,D,L,T,ba,la){var pa=F.__transition;if(!pa)F.__transition={};else if(L in pa)return;LOc(F,L,{name:D,index:T,group:ba,on:MOc,tween:NOc,time:la.time,delay:la.delay,duration:la.duration,ease:la.ease,timer:null,state:0})}
function VLa(F,D){F=Hy(F,D);if(F.state>0)throw Error("qe");return F}
function kK(F,D){F=Hy(F,D);if(F.state>2)throw Error("re");return F}
function Hy(F,D){F=F.__transition;if(!F||!(F=F[D]))throw Error("se");return F}
function LOc(F,D,L){function T(Va){var Ta,Xa;if(L.state!==1)return la();for(Ob in pa){var gb=pa[Ob];if(gb.name===L.name){if(gb.state===3)return USb(T);gb.state===4?(gb.state=6,gb.timer.stop(),gb.on.call("interrupt",F,F.__data__,gb.index,gb.group),delete pa[Ob]):+Ob<D&&(gb.state=6,gb.timer.stop(),delete pa[Ob])}}USb(function(){L.state===3&&(L.state=4,L.timer.restart(ba,L.delay,L.time),ba(Va))});
L.state=2;L.on.call("start",F,F.__data__,L.index,L.group);if(L.state===2){L.state=3;ya=Array(Xa=L.tween.length);var Ob=0;for(Ta=-1;Ob<Xa;++Ob)if(gb=L.tween[Ob].value.call(F,F.__data__,L.index,L.group))ya[++Ta]=gb;ya.length=Ta+1}}
function ba(Va){Va=Va<L.duration?L.ease.call(null,Va/L.duration):(L.timer.restart(la),L.state=5,1);for(var Ta=-1,Xa=ya.length;++Ta<Xa;)ya[Ta].call(null,Va);L.state===5&&(L.on.call("end",F,F.__data__,L.index,L.group),la())}
function la(){L.state=6;L.timer.stop();delete pa[D];for(var Va in pa)return;delete F.__transition}
var pa=F.__transition,ya;pa[D]=L;L.timer=B0(function(Va){L.state=1;L.timer.restart(T,L.delay,L.time);L.delay<=Va&&T(Va-L.delay)},0,L.time)}
function OOc(F,D){var L,T;return function(){var ba=kK(this,F),la=ba.tween;if(la!==L){T=L=la;la=0;for(var pa=T.length;la<pa;++la)if(T[la].name===D){T=T.slice();T.splice(la,1);break}}ba.tween=T}}
function POc(F,D,L){var T,ba;if(typeof L!=="function")throw Error();return function(){var la=kK(this,F),pa=la.tween;if(pa!==T){ba=(T=pa).slice();pa={name:D,value:L};for(var ya=0,Va=ba.length;ya<Va;++ya)if(ba[ya].name===D){ba[ya]=pa;break}ya===Va&&ba.push(pa)}la.tween=ba}}
function WLa(F,D,L){var T=F._id;F.each(function(){var ba=kK(this,T);(ba.value||(ba.value={}))[D]=L.apply(this,arguments)});
return function(ba){return Hy(ba,T).value[D]}}
function VSb(F,D){var L;return(typeof D==="number"?sg:D instanceof jd?WSb:(L=jd(D))?(D=L,WSb):$b)(F,D)}
function QOc(F){return function(){this.removeAttribute(F)}}
function ROc(F){return function(){this.removeAttributeNS(F.space,F.local)}}
function SOc(F,D,L){var T,ba;return function(){var la=this.getAttribute(F);return la===L?null:la===T?ba:ba=D(T=la,L)}}
function TOc(F,D,L){var T,ba;return function(){var la=this.getAttributeNS(F.space,F.local);return la===L?null:la===T?ba:ba=D(T=la,L)}}
function UOc(F,D,L){var T,ba,la;return function(){var pa=L(this);if(pa==null)return void this.removeAttribute(F);var ya=this.getAttribute(F);return ya===pa?null:ya===T&&pa===ba?la:la=D(T=ya,ba=pa)}}
function VOc(F,D,L){var T,ba,la;return function(){var pa=L(this);if(pa==null)return void this.removeAttributeNS(F.space,F.local);var ya=this.getAttributeNS(F.space,F.local);return ya===pa?null:ya===T&&pa===ba?la:la=D(T=ya,ba=pa)}}
function WOc(F,D){function L(){var T=this,ba=D.apply(T,arguments);return ba&&function(la){T.setAttributeNS(F.space,F.local,ba(la))}}
L._value=D;return L}
function XOc(F,D){function L(){var T=this,ba=D.apply(T,arguments);return ba&&function(la){T.setAttribute(F,ba(la))}}
L._value=D;return L}
function YOc(F,D){return function(){VLa(this,F).delay=+D.apply(this,arguments)}}
function ZOc(F,D){return D=+D,function(){VLa(this,F).delay=D}}
function $Oc(F,D){return function(){kK(this,F).duration=+D.apply(this,arguments)}}
function aPc(F,D){return D=+D,function(){kK(this,F).duration=D}}
function bPc(F,D){if(typeof D!=="function")throw Error();return function(){kK(this,F).ease=D}}
function cPc(F){return(F+"").trim().split(/^|\s+/).every(function(D){var L=D.indexOf(".");L>=0&&(D=D.slice(0,L));return!D||D==="start"})}
function dPc(F,D,L){var T,ba,la=cPc(D)?VLa:kK;return function(){var pa=la(this,F),ya=pa.on;if(ya!==T)(ba=(T=ya).copy()).on(D,L);pa.on=ba}}
function ePc(F){return function(){var D=this.parentNode,L;for(L in this.__transition)if(+L!==F)return;D&&D.removeChild(this)}}
function fPc(F,D){var L,T,ba;return function(){var la=Fa(this,F),pa=(this.style.removeProperty(F),Fa(this,F));return la===pa?null:la===L&&pa===T?ba:ba=D(L=la,T=pa)}}
function gPc(F){return function(){this.style.removeProperty(F)}}
function hPc(F,D,L){var T,ba;return function(){var la=Fa(this,F);return la===L?null:la===T?ba:ba=D(T=la,L)}}
function iPc(F,D,L){var T,ba,la;return function(){var pa=Fa(this,F),ya=L(this);ya==null&&(ya=(this.style.removeProperty(F),Fa(this,F)));return pa===ya?null:pa===T&&ya===ba?la:la=D(T=pa,ba=ya)}}
function jPc(F,D,L){function T(){var ba=this,la=D.apply(ba,arguments);return la&&function(pa){ba.style.setProperty(F,la(pa),L)}}
T._value=D;return T}
function kPc(F){return function(){this.textContent=F}}
function lPc(F){return function(){var D=F(this);this.textContent=D==null?"":D}}
function EF(F,D,L,T){this._groups=F;this._parents=D;this._name=L;this._id=T}
function XLa(F){return{type:F}}
function YLa(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function cla(){}
function XSb(F,D){var L=new cla;if(F instanceof cla)F.each(function(pa,ya){L.set(ya,pa)});
else if(Array.isArray(F)){var T=-1,ba=F.length,la;if(D==null)for(;++T<ba;)L.set(T,F[T]);else for(;++T<ba;)L.set(D(la=F[T],T,F),la)}else if(F)for(T in F)L.set(T,F[T]);return L}
function dla(){}
function YSb(F){return function(D){for(var L={},T=0;T<F.length;T++)L[F[T]]=D[T]||"";return L}}
function mPc(F,D){var L=YSb(F);return function(T,ba){return D(L(T),ba,F)}}
function nPc(F){var D=Object.create(null),L=[];F.forEach(function(T){for(var ba in T)ba in D||L.push(D[ba]=ba)});
return L}
function ZSb(F){function D(pa,ya){function Va(){if(ld)return ZLa;if(ye)return ye=!1,$Sb;var Xk,sh=gb,io;if(pa.charCodeAt(sh)===34){for(;gb++<Xa&&pa.charCodeAt(gb)!==34||pa.charCodeAt(++gb)===34;);(Xk=gb)>=Xa?ld=!0:(io=pa.charCodeAt(gb++))===10?ye=!0:io===13&&(ye=!0,pa.charCodeAt(gb)===10&&++gb);return pa.slice(sh+1,Xk-1).replace(/""/g,'"')}for(;gb<Xa;){if((io=pa.charCodeAt(Xk=gb++))===10)ye=!0;else if(io===13)ye=!0,pa.charCodeAt(gb)===10&&++gb;else if(io!==la)continue;return pa.slice(sh,Xk)}return ld=
!0,pa.slice(sh,Xa)}
var Ta=[],Xa=pa.length,gb=0,Ob=0,nc,ld=Xa<=0,ye=!1;pa.charCodeAt(Xa-1)===10&&--Xa;for(pa.charCodeAt(Xa-1)===13&&--Xa;(nc=Va())!==ZLa;){for(var ne=[];nc!==$Sb&&nc!==ZLa;)ne.push(nc),nc=Va();ya&&(ne=ya(ne,Ob++))==null||Ta.push(ne)}return Ta}
function L(pa){return pa.map(T).join(F)}
function T(pa){return pa==null?"":ba.test(pa)?'"'+pa.replace(/"/g,'""')+'"':pa}
var ba=new RegExp('["'+F+"\n\r]"),la=F.charCodeAt(0);return{parse:function(pa,ya){var Va,Ta;pa=D(pa,function(Xa,gb){if(Va)return Va(Xa,gb-1);Ta=Xa;Va=ya?mPc(Xa,ya):YSb(Xa)});
pa.columns=Ta||[];return pa},
parseRows:D,format:function(pa,ya){ya==null&&(ya=nPc(pa));return[ya.map(T).join(F)].concat(pa.map(function(Va){return ya.map(function(Ta){return T(Va[Ta])}).join(F)})).join("\n")},
formatRows:function(pa){return pa.map(L).join("\n")}}}
function oPc(F){if(!F.ok)throw Error("te`"+F.status+"`"+F.statusText);return F.text()}
function aTb(F){return function(D,L,T){arguments.length===2&&typeof L==="function"&&(T=L,L=void 0);return fetch(D,L).then(oPc).then(function(ba){return F(ba,T)})}}
function bTb(F,D,L,T){if(isNaN(D)||isNaN(L))return F;var ba,la=F._root;T={data:T};var pa=F._x0,ya=F._y0,Va=F._x1,Ta=F._y1,Xa,gb,Ob,nc,ld;if(!la)return F._root=T,F;for(;la.length;)if((Ob=D>=(Xa=(pa+Va)/2))?pa=Xa:Va=Xa,(nc=L>=(gb=(ya+Ta)/2))?ya=gb:Ta=gb,ba=la,!(la=la[ld=nc<<1|Ob]))return ba[ld]=T,F;var ye=+F._x.call(null,la.data);var ne=+F._y.call(null,la.data);if(D===ye&&L===ne)return T.next=la,ba?ba[ld]=T:F._root=T,F;do ba=ba?ba[ld]=Array(4):F._root=Array(4),(Ob=D>=(Xa=(pa+Va)/2))?pa=Xa:Va=Xa,(nc=
L>=(gb=(ya+Ta)/2))?ya=gb:Ta=gb;while((ld=nc<<1|Ob)===(Ob=(ne>=gb)<<1|ye>=Xa));return ba[Ob]=la,ba[ld]=T,F}
function lq(F,D,L,T,ba){this.node=F;this.x0=D;this.y0=L;this.x1=T;this.y1=ba}
function pPc(F){return F[0]}
function qPc(F){return F[1]}
function $La(F,D,L,T,ba,la){this._x=F;this._y=D;this._x0=L;this._y0=T;this._x1=ba;this._y1=la;this._root=void 0}
function cTb(F){for(var D={data:F.data},L=D;F=F.next;)L=L.next={data:F.data};return D}
function ela(F,D){if((D=(F=D?F.toExponential(D-1):F.toExponential()).indexOf("e"))<0)return null;var L=F.slice(0,D);return[L.length>1?L[0]+L.slice(2):L,+F.slice(D+1)]}
function rPc(F){return F=ela(Math.abs(F)),F?F[1]:NaN}
function sPc(F,D){return function(L,T){for(var ba=L.length,la=[],pa=0,ya=F[0],Va=0;ba>0&&ya>0;){Va+ya+1>T&&(ya=Math.max(1,T-Va));la.push(L.substring(ba-=ya,ba+ya));if((Va+=ya+1)>T)break;ya=F[pa=(pa+1)%F.length]}return la.reverse().join(D)}}
function tPc(F){return function(D){return D.replace(/[0-9]/g,function(L){return F[+L]})}}
function aMa(F){return new bMa(F)}
function bMa(F){if(!(D=uPc.exec(F)))throw Error("ue`"+F);var D;this.fill=D[1]||" ";this.align=D[2]||">";this.sign=D[3]||"-";this.symbol=D[4]||"";this.zero=!!D[5];this.width=D[6]&&+D[6];this.comma=!!D[7];this.precision=D[8]&&+D[8].slice(1);this.trim=!!D[9];this.type=D[10]||""}
function dTb(F,D){D=ela(F,D);if(!D)return F+"";F=D[0];D=D[1];return D<0?"0."+Array(-D).join("0")+F:F.length>D+1?F.slice(0,D+1)+"."+F.slice(D+1):F+Array(D-F.length+2).join("0")}
function eTb(F){return F}
function vPc(F){function D(ya){function Va(Od){var sk=io,yc=ft,fd,Yc;if(sh==="c")yc=th(Od)+yc,Od="";else{Od=+Od;var pc=Od<0;Od=th(Math.abs(Od),ne);if(Xk){var ji=Od.length,Gl=1,Yk=-1;a:for(;Gl<ji;++Gl)switch(Od[Gl]){case ".":Yk=fd=Gl;break;case "0":Yk===0&&(Yk=Gl);fd=Gl;break;default:if(!+Od[Gl])break a;Yk>0&&(Yk=0)}Od=Yk>0?Od.slice(0,Yk)+Od.slice(fd+1):Od}pc&&+Od===0&&(pc=!1);sk=(pc?gb==="("?gb:"-":gb==="-"||gb==="("?"":gb)+sk;yc=(sh==="s"?fTb[8+gTb/3]:"")+yc+(pc&&gb==="("?")":"");if($f)for(pc=-1,
fd=Od.length;++pc<fd;)if(Yc=Od.charCodeAt(pc),48>Yc||Yc>57){yc=(Yc===46?ba+Od.slice(pc+1):Od.slice(pc))+yc;Od=Od.slice(0,pc);break}}ye&&!nc&&(Od=L(Od,Infinity));Yc=sk.length+Od.length+yc.length;pc=Yc<ld?Array(ld-Yc+1).join(Ta):"";ye&&nc&&(Od=L(pc+Od,pc.length?ld-yc.length:Infinity),pc="");switch(Xa){case "<":Od=sk+Od+yc+pc;break;case "=":Od=sk+pc+Od+yc;break;case "^":Od=pc.slice(0,Yc=pc.length>>1)+sk+Od+yc+pc.slice(Yc);break;default:Od=pc+sk+Od+yc}return la(Od)}
ya=aMa(ya);var Ta=ya.fill,Xa=ya.align,gb=ya.sign,Ob=ya.symbol,nc=ya.zero,ld=ya.width,ye=ya.comma,ne=ya.precision,Xk=ya.trim,sh=ya.type;sh==="n"?(ye=!0,sh="g"):hTb[sh]||(ne==null&&(ne=12),Xk=!0,sh="g");if(nc||Ta==="0"&&Xa==="=")nc=!0,Ta="0",Xa="=";var io=Ob==="$"?T[0]:Ob==="#"&&/[boxX]/.test(sh)?"0"+sh.toLowerCase():"",ft=Ob==="$"?T[1]:/[%p]/.test(sh)?pa:"",th=hTb[sh],$f=/[defgprs%]/.test(sh);ne=ne==null?6:/[gprs]/.test(sh)?Math.max(1,Math.min(21,ne)):Math.max(0,Math.min(20,ne));Va.toString=function(){return ya+
""};
return Va}
var L=F.grouping&&F.thousands?sPc(F.grouping,F.thousands):eTb,T=F.currency,ba=F.decimal,la=F.numerals?tPc(F.numerals):eTb,pa=F.percent||"%";return{format:D,formatPrefix:function(ya,Va){var Ta=D((ya=aMa(ya),ya.type="f",ya));ya=Math.max(-8,Math.min(8,Math.floor(rPc(Va)/3)))*3;var Xa=Math.pow(10,-ya),gb=fTb[8+ya/3];return function(Ob){return Ta(Xa*Ob)+gb}}}}
function rw(){this.reset()}
function iTb(F,D,L){var T=F.s=D+L,ba=T-D;F.t=D-(T-ba)+(L-ba)}
function fla(F){return F>1?Su:F<-1?-Su:Math.asin(F)}
function wPc(){}
function jTb(F){var D=F[0];F=F[1];var L=Tu(F);return[L*Tu(D),L*pp(D),pp(F)]}
function kTb(F,D){return[F[1]*D[2]-F[2]*D[1],F[2]*D[0]-F[0]*D[2],F[0]*D[1]-F[1]*D[0]]}
function lTb(F){var D=gla(F[0]*F[0]+F[1]*F[1]+F[2]*F[2]);F[0]/=D;F[1]/=D;F[2]/=D}
function xPc(){var F=[],D;return{point:function(L,T){D.push([L,T])},
lineStart:function(){F.push(D=[])},
lineEnd:wPc,rejoin:function(){F.length>1&&F.push(F.pop().concat(F.shift()))},
result:function(){var L=F;F=[];D=null;return L}}}
function hla(F,D,L,T){this.x=F;this.z=D;this.o=L;this.e=T;this.v=!1;this.n=this.p=null}
function yPc(F,D,L,T,ba){var la=[],pa=[];F.forEach(function(gb){if(!((Ob=gb.length-1)<=0)){var Ob,nc=gb[0],ld=gb[Ob],ye=nc;if(FF(ye[0]-ld[0])<1E-6&&FF(ye[1]-ld[1])<1E-6){ba.lineStart();for(ya=0;ya<Ob;++ya)ba.point((nc=gb[ya])[0],nc[1]);ba.lineEnd()}else la.push(Ob=new hla(nc,gb,null,!0)),pa.push(Ob.o=new hla(nc,null,Ob,!1)),la.push(Ob=new hla(ld,gb,null,!1)),pa.push(Ob.o=new hla(ld,null,Ob,!0))}});
if(la.length){pa.sort(D);mTb(la);mTb(pa);var ya=0;for(F=pa.length;ya<F;++ya)pa[ya].e=L=!L;L=la[0];for(var Va;;){for(var Ta=L,Xa=!0;Ta.v;)if((Ta=Ta.n)===L)return;D=Ta.z;ba.lineStart();do{Ta.v=Ta.o.v=!0;if(Ta.e){if(Xa)for(ya=0,F=D.length;ya<F;++ya)ba.point((Va=D[ya])[0],Va[1]);else T(Ta.x,Ta.n.x,1,ba);Ta=Ta.n}else{if(Xa)for(D=Ta.p.z,ya=D.length-1;ya>=0;--ya)ba.point((Va=D[ya])[0],Va[1]);else T(Ta.x,Ta.p.x,-1,ba);Ta=Ta.p}Ta=Ta.o;D=Ta.z;Xa=!Xa}while(!Ta.v);ba.lineEnd()}}}
function mTb(F){if(D=F.length){for(var D,L=0,T=F[0],ba;++L<D;)T.n=ba=F[L],ba.p=T,T=ba;T.n=ba=F[0];ba.p=T}}
function zPc(F){return F.length>1}
function APc(F,D){return((F=F.x)[0]<0?F[1]-Su-1E-6:Su-F[1])-((D=D.x)[0]<0?D[1]-Su-1E-6:Su-D[1])}
function cMa(){}
function nTb(F){return function(D,L){var T=Tu(D),ba=Tu(L);T=F(T*ba);return[T*ba*pp(D),T*pp(L)]}}
function M3(F){return function(D,L){var T=gla(D*D+L*L),ba=F(T),la=pp(ba);ba=Tu(ba);return[oTb(D*la,T*ba),fla(T&&L*la/T)]}}
function BPc(F){var D=0,L=F.children,T=L&&L.length;if(T)for(;--T>=0;)D+=L[T].value;else D=1;F.value=D}
function pTb(F,D){var L=new N3(F);F=+F.value&&(L.value=F.value);var T,ba=[L],la,pa,ya,Va;for(D==null&&(D=CPc);T=ba.pop();)if(F&&(T.value=+T.data.value),(pa=D(T.data))&&(Va=pa.length))for(T.children=Array(Va),ya=Va-1;ya>=0;--ya)ba.push(la=T.children[ya]=new N3(pa[ya])),la.parent=T,la.depth=T.depth+1;return L.eachBefore(DPc)}
function CPc(F){return F.children}
function EPc(F){F.data=F.data.data}
function DPc(F){var D=0;do F.height=D;while((F=F.parent)&&F.height<++D)}
function N3(F){this.data=F;this.depth=this.height=0;this.parent=null}
function en(F,D,L,T){function ba(la){return F(la=new Date(+la)),la}
ba.floor=ba;ba.ceil=function(la){return F(la=new Date(la-1)),D(la,1),F(la),la};
ba.round=function(la){var pa=ba(la),ya=ba.ceil(la);return la-pa<ya-la?pa:ya};
ba.offset=function(la,pa){return D(la=new Date(+la),pa==null?1:Math.floor(pa)),la};
ba.range=function(la,pa,ya){var Va=[],Ta;la=ba.ceil(la);ya=ya==null?1:Math.floor(ya);if(!(la<pa&&ya>0))return Va;do Va.push(Ta=new Date(+la)),D(la,ya),F(la);while(Ta<la&&la<pa);return Va};
ba.filter=function(la){return en(function(pa){if(pa>=pa)for(;F(pa),!la(pa);)pa.setTime(pa-1)},function(pa,ya){if(pa>=pa)if(ya<0)for(;++ya<=0;)for(;D(pa,-1),!la(pa););
else for(;--ya>=0;)for(;D(pa,1),!la(pa););})};
L&&(ba.count=function(la,pa){dMa.setTime(+la);eMa.setTime(+pa);F(dMa);F(eMa);return Math.floor(L(dMa,eMa))},ba.every=function(la){la=Math.floor(la);
return isFinite(la)&&la>0?la>1?ba.filter(T?function(pa){return T(pa)%la===0}:function(pa){return ba.count(0,pa)%la===0}):ba:null});
return ba}
function lK(F){return en(function(D){D.setDate(D.getDate()-(D.getDay()+7-F)%7);D.setHours(0,0,0,0)},function(D,L){D.setDate(D.getDate()+L*7)},function(D,L){return(L-D-(L.getTimezoneOffset()-D.getTimezoneOffset())*6E4)/6048E5})}
function mK(F){return en(function(D){D.setUTCDate(D.getUTCDate()-(D.getUTCDay()+7-F)%7);D.setUTCHours(0,0,0,0)},function(D,L){D.setUTCDate(D.getUTCDate()+L*7)},function(D,L){return(L-D)/6048E5})}
function FPc(F){if(0<=F.y&&F.y<100){var D=new Date(-1,F.m,F.d,F.H,F.M,F.S,F.L);D.setFullYear(F.y);return D}return new Date(F.y,F.m,F.d,F.H,F.M,F.S,F.L)}
function ila(F){if(0<=F.y&&F.y<100){var D=new Date(Date.UTC(-1,F.m,F.d,F.H,F.M,F.S,F.L));D.setUTCFullYear(F.y);return D}return new Date(Date.UTC(F.y,F.m,F.d,F.H,F.M,F.S,F.L))}
function O3(F){return{y:F,m:0,d:1,H:0,M:0,S:0,L:0}}
function GPc(F){function D(yc,fd){return function(Yc){var pc=[],ji=-1,Gl=0,Yk=yc.length,Fi,UB;for(Yc instanceof Date||(Yc=new Date(+Yc));++ji<Yk;)if(yc.charCodeAt(ji)===37){pc.push(yc.slice(Gl,ji));(Gl=qTb[Fi=yc.charAt(++ji)])!=null?Fi=yc.charAt(++ji):Gl=Fi==="e"?" ":"0";if(UB=fd[Fi])Fi=UB(Yc,Gl);pc.push(Fi);Gl=ji+1}pc.push(yc.slice(Gl,ji));return pc.join("")}}
function L(yc,fd){return function(Yc){var pc=O3(1900);if(T(pc,yc,Yc,0)!=Yc.length)return null;if("Q"in pc)return new Date(pc.Q);"p"in pc&&(pc.H=pc.H%12+pc.p*12);if("V"in pc){if(pc.V<1||pc.V>53)return null;"w"in pc||(pc.w=1);if("Z"in pc){Yc=ila(O3(pc.y));var ji=Yc.getUTCDay();Yc=ji>4||ji===0?fMa.ceil(Yc):fMa(Yc);Yc=rTb.offset(Yc,(pc.V-1)*7);pc.y=Yc.getUTCFullYear();pc.m=Yc.getUTCMonth();pc.d=Yc.getUTCDate()+(pc.w+6)%7}else Yc=fd(O3(pc.y)),ji=Yc.getDay(),Yc=ji>4||ji===0?gMa.ceil(Yc):gMa(Yc),Yc=sTb.offset(Yc,
(pc.V-1)*7),pc.y=Yc.getFullYear(),pc.m=Yc.getMonth(),pc.d=Yc.getDate()+(pc.w+6)%7}else if("W"in pc||"U"in pc)"w"in pc||(pc.w="u"in pc?pc.u%7:"W"in pc?1:0),ji="Z"in pc?ila(O3(pc.y)).getUTCDay():fd(O3(pc.y)).getDay(),pc.m=0,pc.d="W"in pc?(pc.w+6)%7+pc.W*7-(ji+5)%7:pc.w+pc.U*7-(ji+6)%7;return"Z"in pc?(pc.H+=pc.Z/100|0,pc.M+=pc.Z%100,ila(pc)):fd(pc)}}
function T(yc,fd,Yc,pc){for(var ji=0,Gl=fd.length,Yk=Yc.length,Fi;ji<Gl;){if(pc>=Yk)return-1;Fi=fd.charCodeAt(ji++);if(Fi===37){if(Fi=fd.charAt(ji++),Fi=sk[Fi in qTb?fd.charAt(ji++):Fi],!Fi||(pc=Fi(yc,Yc,pc))<0)return-1}else if(Fi!=Yc.charCodeAt(pc++))return-1}return pc}
var ba=F.dateTime,la=F.date,pa=F.time,ya=F.periods,Va=F.days,Ta=F.shortDays,Xa=F.months,gb=F.shortMonths,Ob=P3(ya),nc=Q3(ya),ld=P3(Va),ye=Q3(Va),ne=P3(Ta),Xk=Q3(Ta),sh=P3(Xa),io=Q3(Xa),ft=P3(gb),th=Q3(gb),$f={a:function(yc){return Ta[yc.getDay()]},
A:function(yc){return Va[yc.getDay()]},
b:function(yc){return gb[yc.getMonth()]},
B:function(yc){return Xa[yc.getMonth()]},
c:null,d:tTb,e:tTb,f:HPc,H:IPc,I:JPc,j:KPc,L:uTb,m:LPc,M:MPc,p:function(yc){return ya[+(yc.getHours()>=12)]},
Q:vTb,s:wTb,S:NPc,u:OPc,U:PPc,V:QPc,w:RPc,W:SPc,x:null,X:null,y:TPc,Y:UPc,Z:VPc,"%":xTb},Od={a:function(yc){return Ta[yc.getUTCDay()]},
A:function(yc){return Va[yc.getUTCDay()]},
b:function(yc){return gb[yc.getUTCMonth()]},
B:function(yc){return Xa[yc.getUTCMonth()]},
c:null,d:yTb,e:yTb,f:WPc,H:XPc,I:YPc,j:ZPc,L:zTb,m:$Pc,M:aQc,p:function(yc){return ya[+(yc.getUTCHours()>=12)]},
Q:vTb,s:wTb,S:bQc,u:cQc,U:dQc,V:eQc,w:fQc,W:gQc,x:null,X:null,y:hQc,Y:iQc,Z:jQc,"%":xTb},sk={a:function(yc,fd,Yc){return(fd=ne.exec(fd.slice(Yc)))?(yc.w=Xk[fd[0].toLowerCase()],Yc+fd[0].length):-1},
A:function(yc,fd,Yc){return(fd=ld.exec(fd.slice(Yc)))?(yc.w=ye[fd[0].toLowerCase()],Yc+fd[0].length):-1},
b:function(yc,fd,Yc){return(fd=ft.exec(fd.slice(Yc)))?(yc.m=th[fd[0].toLowerCase()],Yc+fd[0].length):-1},
B:function(yc,fd,Yc){return(fd=sh.exec(fd.slice(Yc)))?(yc.m=io[fd[0].toLowerCase()],Yc+fd[0].length):-1},
c:function(yc,fd,Yc){return T(yc,ba,fd,Yc)},
d:ATb,e:ATb,f:kQc,H:BTb,I:BTb,j:lQc,L:mQc,m:nQc,M:oQc,p:function(yc,fd,Yc){return(fd=Ob.exec(fd.slice(Yc)))?(yc.p=nc[fd[0].toLowerCase()],Yc+fd[0].length):-1},
Q:pQc,s:qQc,S:rQc,u:sQc,U:tQc,V:uQc,w:vQc,W:wQc,x:function(yc,fd,Yc){return T(yc,la,fd,Yc)},
X:function(yc,fd,Yc){return T(yc,pa,fd,Yc)},
y:xQc,Y:yQc,Z:zQc,"%":AQc};$f.x=D(la,$f);$f.X=D(pa,$f);$f.c=D(ba,$f);Od.x=D(la,Od);Od.X=D(pa,Od);Od.c=D(ba,Od);return{format:function(yc){var fd=D(yc,$f);fd.toString=function(){return yc};
return fd},
parse:function(yc){var fd=L(yc,FPc);fd.toString=function(){return yc};
return fd},
utcFormat:function(yc){var fd=D(yc,Od);fd.toString=function(){return yc};
return fd},
utcParse:function(yc){var fd=L(yc,ila);fd.toString=function(){return yc};
return fd}}}
function Lh(F,D,L){var T=F<0?"-":"";F=(T?-F:F)+"";var ba=F.length;return T+(ba<L?Array(L-ba+1).join(D)+F:F)}
function BQc(F){return F.replace(CQc,"\\$&")}
function P3(F){return new RegExp("^(?:"+F.map(BQc).join("|")+")","i")}
function Q3(F){for(var D={},L=-1,T=F.length;++L<T;)D[F[L].toLowerCase()]=L;return D}
function vQc(F,D,L){return(D=jo.exec(D.slice(L,L+1)))?(F.w=+D[0],L+D[0].length):-1}
function sQc(F,D,L){return(D=jo.exec(D.slice(L,L+1)))?(F.u=+D[0],L+D[0].length):-1}
function tQc(F,D,L){return(D=jo.exec(D.slice(L,L+2)))?(F.U=+D[0],L+D[0].length):-1}
function uQc(F,D,L){return(D=jo.exec(D.slice(L,L+2)))?(F.V=+D[0],L+D[0].length):-1}
function wQc(F,D,L){return(D=jo.exec(D.slice(L,L+2)))?(F.W=+D[0],L+D[0].length):-1}
function yQc(F,D,L){return(D=jo.exec(D.slice(L,L+4)))?(F.y=+D[0],L+D[0].length):-1}
function xQc(F,D,L){return(D=jo.exec(D.slice(L,L+2)))?(F.y=+D[0]+(+D[0]>68?1900:2E3),L+D[0].length):-1}
function zQc(F,D,L){return(D=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(D.slice(L,L+6)))?(F.Z=D[1]?0:-(D[2]+(D[3]||"00")),L+D[0].length):-1}
function nQc(F,D,L){return(D=jo.exec(D.slice(L,L+2)))?(F.m=D[0]-1,L+D[0].length):-1}
function ATb(F,D,L){return(D=jo.exec(D.slice(L,L+2)))?(F.d=+D[0],L+D[0].length):-1}
function lQc(F,D,L){return(D=jo.exec(D.slice(L,L+3)))?(F.m=0,F.d=+D[0],L+D[0].length):-1}
function BTb(F,D,L){return(D=jo.exec(D.slice(L,L+2)))?(F.H=+D[0],L+D[0].length):-1}
function oQc(F,D,L){return(D=jo.exec(D.slice(L,L+2)))?(F.M=+D[0],L+D[0].length):-1}
function rQc(F,D,L){return(D=jo.exec(D.slice(L,L+2)))?(F.S=+D[0],L+D[0].length):-1}
function mQc(F,D,L){return(D=jo.exec(D.slice(L,L+3)))?(F.L=+D[0],L+D[0].length):-1}
function kQc(F,D,L){return(D=jo.exec(D.slice(L,L+6)))?(F.L=Math.floor(D[0]/1E3),L+D[0].length):-1}
function AQc(F,D,L){return(F=DQc.exec(D.slice(L,L+1)))?L+F[0].length:-1}
function pQc(F,D,L){return(D=jo.exec(D.slice(L)))?(F.Q=+D[0],L+D[0].length):-1}
function qQc(F,D,L){return(D=jo.exec(D.slice(L)))?(F.Q=+D[0]*1E3,L+D[0].length):-1}
function tTb(F,D){return Lh(F.getDate(),D,2)}
function IPc(F,D){return Lh(F.getHours(),D,2)}
function JPc(F,D){return Lh(F.getHours()%12||12,D,2)}
function KPc(F,D){return Lh(1+sTb.count(BR(F),F),D,3)}
function uTb(F,D){return Lh(F.getMilliseconds(),D,3)}
function HPc(F,D){return uTb(F,D)+"000"}
function LPc(F,D){return Lh(F.getMonth()+1,D,2)}
function MPc(F,D){return Lh(F.getMinutes(),D,2)}
function NPc(F,D){return Lh(F.getSeconds(),D,2)}
function OPc(F){F=F.getDay();return F===0?7:F}
function PPc(F,D){return Lh(EQc.count(BR(F),F),D,2)}
function QPc(F,D){var L=F.getDay();F=L>=4||L===0?hMa(F):hMa.ceil(F);return Lh(hMa.count(BR(F),F)+(BR(F).getDay()===4),D,2)}
function RPc(F){return F.getDay()}
function SPc(F,D){return Lh(gMa.count(BR(F),F),D,2)}
function TPc(F,D){return Lh(F.getFullYear()%100,D,2)}
function UPc(F,D){return Lh(F.getFullYear()%1E4,D,4)}
function VPc(F){F=F.getTimezoneOffset();return(F>0?"-":(F*=-1,"+"))+Lh(F/60|0,"0",2)+Lh(F%60,"0",2)}
function yTb(F,D){return Lh(F.getUTCDate(),D,2)}
function XPc(F,D){return Lh(F.getUTCHours(),D,2)}
function YPc(F,D){return Lh(F.getUTCHours()%12||12,D,2)}
function ZPc(F,D){return Lh(1+rTb.count(CR(F),F),D,3)}
function zTb(F,D){return Lh(F.getUTCMilliseconds(),D,3)}
function WPc(F,D){return zTb(F,D)+"000"}
function $Pc(F,D){return Lh(F.getUTCMonth()+1,D,2)}
function aQc(F,D){return Lh(F.getUTCMinutes(),D,2)}
function bQc(F,D){return Lh(F.getUTCSeconds(),D,2)}
function cQc(F){F=F.getUTCDay();return F===0?7:F}
function dQc(F,D){return Lh(FQc.count(CR(F),F),D,2)}
function eQc(F,D){var L=F.getUTCDay();F=L>=4||L===0?iMa(F):iMa.ceil(F);return Lh(iMa.count(CR(F),F)+(CR(F).getUTCDay()===4),D,2)}
function fQc(F){return F.getUTCDay()}
function gQc(F,D){return Lh(fMa.count(CR(F),F),D,2)}
function hQc(F,D){return Lh(F.getUTCFullYear()%100,D,2)}
function iQc(F,D){return Lh(F.getUTCFullYear()%1E4,D,4)}
function jQc(){return"+0000"}
function xTb(){return"%"}
function vTb(F){return+F}
function wTb(F){return Math.floor(+F/1E3)}
function Ve(F){for(var D=F.length/6|0,L=Array(D),T=0;T<D;)L[T]="#"+F.slice(T*6,++T*6);return L}
function ki(F){return GQc(F[F.length-1])}
function jla(F){var D=F.length;return function(L){return F[Math.max(0,Math.min(D-1,Math.floor(L*D)))]}}
function CTb(F){this._context=F}
function DTb(F){this._curve=F}
function ETb(F,D,L){var T=F._x1-F._x0;D-=F._x1;var ba=(F._y1-F._y0)/(T||D<0&&-0);F=(L-F._y1)/(D||T<0&&-0);return((ba<0?-1:1)+(F<0?-1:1))*Math.min(Math.abs(ba),Math.abs(F),.5*Math.abs((ba*D+F*T)/(T+D)))||0}
function FTb(F,D){var L=F._x1-F._x0;return L?(3*(F._y1-F._y0)/L-D)/2:D}
function jMa(F,D,L){var T=F._x0,ba=F._x1,la=F._y1,pa=(ba-T)/3;F._context.bezierCurveTo(T+pa,F._y0+pa*D,ba-pa,la-pa*L,ba,la)}
function kMa(F){this._context=F}
function GTb(F){this._context=F}
function R3(F,D,L){this.k=F;this.x=D;this.y=L}
(function(F){F.length===1&&(F=b(F));return{left:function(D,L,T,ba){T==null&&(T=0);ba==null&&(ba=D.length);for(;T<ba;){var la=T+ba>>>1;F(D[la],L)<0?T=la+1:ba=la}return T},
right:function(D,L,T,ba){T==null&&(T=0);ba==null&&(ba=D.length);for(;T<ba;){var la=T+ba>>>1;F(D[la],L)>0?ba=la:T=la+1}return T}}})(a);
var zOc={value:function(){}};
d.prototype=c.prototype={constructor:d,on:function(F,D){var L=this._,T=e(F+"",L),ba,la=-1,pa=T.length;if(arguments.length<2)for(;++la<pa;){var ya;if(ya=ba=(F=T[la]).type){a:{ya=L[ba];for(var Va=0,Ta=ya.length;Va<Ta;++Va)if((ba=ya[Va]).name===F.name){ba=ba.value;break a}ba=void 0}ya=ba}if(ya)return ba}else{if(D!=null&&typeof D!=="function")throw Error("ve`"+D);for(;++la<pa;)if(ba=(F=T[la]).type)L[ba]=g(L[ba],F.name,D);else if(D==null)for(ba in L)L[ba]=g(L[ba],F.name,null);return this}},
copy:function(){var F={},D=this._,L;for(L in D)F[L]=D[L].slice();return new d(F)},
call:function(F,D){if((ba=arguments.length-2)>0)for(var L=Array(ba),T=0,ba,la;T<ba;++T)L[T]=arguments[T+2];if(!this._.hasOwnProperty(F))throw Error("pe`"+F);la=this._[F];T=0;for(ba=la.length;T<ba;++T)la[T].value.apply(D,L)},
apply:function(F,D,L){if(!this._.hasOwnProperty(F))throw Error("pe`"+F);F=this._[F];for(var T=0,ba=F.length;T<ba;++T)F[T].value.apply(D,L)}};
var Ru={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/"},HTb=function(F){return function(){return this.matches(F)}};
if(typeof document!=="undefined"){var S3=document.documentElement;if(!S3.matches){var HQc=S3.webkitMatchesSelector||S3.msMatchesSelector||S3.mozMatchesSelector||S3.oMatchesSelector;HTb=function(F){return function(){return HQc.call(this,F)}}}}var ITb=HTb;
A.prototype={constructor:A,appendChild:function(F){return this._parent.insertBefore(F,this._next)},
insertBefore:function(F,D){return this._parent.insertBefore(F,D)},
querySelector:function(F){return this._parent.querySelector(F)},
querySelectorAll:function(F){return this._parent.querySelectorAll(F)}};
var LSb={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(LSb={mouseenter:"mouseover",mouseleave:"mouseout"}));var AOc=[null];Yb.prototype=Pc.prototype={constructor:Yb,select:function(F){typeof F!=="function"&&(F=u(F));for(var D=this._groups,L=D.length,T=Array(L),ba=0;ba<L;++ba)for(var la=D[ba],pa=la.length,ya=T[ba]=Array(pa),Va,Ta,Xa=0;Xa<pa;++Xa)(Va=la[Xa])&&(Ta=F.call(Va,Va.__data__,Xa,la))&&("__data__"in Va&&(Ta.__data__=Va.__data__),ya[Xa]=Ta);return new Yb(T,this._parents)},
filter:function(F){typeof F!=="function"&&(F=ITb(F));for(var D=this._groups,L=D.length,T=Array(L),ba=0;ba<L;++ba)for(var la=D[ba],pa=la.length,ya=T[ba]=[],Va,Ta=0;Ta<pa;++Ta)(Va=la[Ta])&&F.call(Va,Va.__data__,Ta,la)&&ya.push(Va);return new Yb(T,this._parents)},
data:function(F,D){if(!F)return nc=Array(this.size()),Ta=-1,this.each(function(sh){nc[++Ta]=sh}),nc;
var L=D?J:G,T=this._parents,ba=this._groups;typeof F!=="function"&&(F=C(F));for(var la=ba.length,pa=Array(la),ya=Array(la),Va=Array(la),Ta=0;Ta<la;++Ta){var Xa=T[Ta],gb=ba[Ta],Ob=gb.length,nc=F.call(Xa,Xa&&Xa.__data__,Ta,T),ld=nc.length,ye=ya[Ta]=Array(ld),ne=pa[Ta]=Array(ld);Ob=Va[Ta]=Array(Ob);L(Xa,gb,ye,ne,Ob,nc,D);gb=Xa=0;for(var Xk;Xa<ld;++Xa)if(Ob=ye[Xa]){for(Xa>=gb&&(gb=Xa+1);!(Xk=ne[gb])&&++gb<ld;);Ob._next=Xk||null}}pa=new Yb(pa,T);pa._enter=ya;pa._exit=Va;return pa},
exit:function(){return new Yb(this._exit||this._groups.map(w),this._parents)},
merge:function(F){var D=this._groups;F=F._groups;for(var L=D.length,T=Math.min(L,F.length),ba=Array(L),la=0;la<T;++la)for(var pa=D[la],ya=F[la],Va=pa.length,Ta=ba[la]=Array(Va),Xa,gb=0;gb<Va;++gb)if(Xa=pa[gb]||ya[gb])Ta[gb]=Xa;for(;la<L;++la)ba[la]=D[la];return new Yb(ba,this._parents)},
order:function(){for(var F=this._groups,D=-1,L=F.length;++D<L;)for(var T=F[D],ba=T.length-1,la=T[ba],pa;--ba>=0;)if(pa=T[ba])la&&la!==pa.nextSibling&&la.parentNode.insertBefore(pa,la),la=pa;return this},
sort:function(F){function D(gb,Ob){return gb&&Ob?F(gb.__data__,Ob.__data__):!gb-!Ob}
F||(F=I);for(var L=this._groups,T=L.length,ba=Array(T),la=0;la<T;++la){for(var pa=L[la],ya=pa.length,Va=ba[la]=Array(ya),Ta,Xa=0;Xa<ya;++Xa)if(Ta=pa[Xa])Va[Xa]=Ta;Va.sort(D)}return(new Yb(ba,this._parents)).order()},
call:function(){var F=arguments[0];arguments[0]=this;F.apply(null,arguments);return this},
nodes:function(){var F=Array(this.size()),D=-1;this.each(function(){F[++D]=this});
return F},
node:function(){for(var F=this._groups,D=0,L=F.length;D<L;++D)for(var T=F[D],ba=0,la=T.length;ba<la;++ba){var pa=T[ba];if(pa)return pa}return null},
size:function(){var F=0;this.each(function(){++F});
return F},
empty:function(){return!this.node()},
each:function(F){for(var D=this._groups,L=0,T=D.length;L<T;++L)for(var ba=D[L],la=0,pa=ba.length,ya;la<pa;++la)(ya=ba[la])&&F.call(ya,ya.__data__,la,ba);return this},
attr:function(F,D){var L=k(F);if(arguments.length<2){var T=this.node();return L.local?T.getAttributeNS(L.space,L.local):T.getAttribute(L)}return this.each((D==null?L.local?ca:R:typeof D==="function"?L.local?ma:aa:L.local?fa:V)(L,D))},
style:function(F,D,L){return arguments.length>1?this.each((D==null?Ba:typeof D==="function"?za:Da)(F,D,L==null?"":L)):Fa(this.node(),F)},
property:function(F,D){return arguments.length>1?this.each((D==null?bb:typeof D==="function"?Ua:kb)(F,D)):this.node()[F]},
text:function(F){return arguments.length?this.each(F==null?Fc:(typeof F==="function"?Mb:id)(F)):this.node().textContent},
html:function(F){return arguments.length?this.each(F==null?wd:(typeof F==="function"?tb:Tb)(F)):this.node().innerHTML},
append:function(F){var D=typeof F==="function"?F:r(F);return this.select(function(){return this.appendChild(D.apply(this,arguments))})},
insert:function(F,D){var L=typeof F==="function"?F:r(F),T=D==null?Fb:typeof D==="function"?D:u(D);return this.select(function(){return this.insertBefore(L.apply(this,arguments),T.apply(this,arguments)||null)})},
remove:function(){return this.each(dd)},
clone:function(F){return this.select(F?ia:be)},
datum:function(F){return arguments.length?this.property("__data__",F):this.node().__data__},
on:function(F,D,L){var T=Lc(F+""),ba=T.length,la;if(arguments.length<2){var pa=this.node().__on;if(pa)for(var ya=0,Va=pa.length,Ta;ya<Va;++ya){var Xa=0;for(Ta=pa[ya];Xa<ba;++Xa)if((la=T[Xa]).type===Ta.type&&la.name===Ta.name)return Ta.value}}else{pa=D?Ab:qb;L==null&&(L=!1);for(Xa=0;Xa<ba;++Xa)this.each(pa(T[Xa],D,L));return this}},
dispatch:function(F,D){return this.each((typeof D==="function"?pb:Oa)(F,D))}};
var BOc=0;Db.prototype=function(){return new Db}.prototype={constructor:Db,
get:function(F){for(var D=this._;!(D in F);)if(!(F=F.parentNode))return;return F[D]},
set:function(F,D){return F[this._]=D},
remove:function(F){return this._ in F&&delete F[this._]},
toString:function(){return this._}};
var DR=1/.7,COc=/^#([0-9a-f]{3})$/,DOc=/^#([0-9a-f]{6})$/,EOc=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),FOc=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),GOc=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),HOc=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*\\)$"),
IOc=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),JOc=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*\\)$"),MSb={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};
Vc(pm,jd,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
Vc(Ci,Yg,zd(pm,{brighter:function(F){F=F==null?DR:Math.pow(DR,F);return new Ci(this.r*F,this.g*F,this.b*F,this.opacity)},
darker:function(F){F=F==null?.7:Math.pow(.7,F);return new Ci(this.r*F,this.g*F,this.b*F,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"#"+nd(this.r)+nd(this.g)+nd(this.b)},
toString:function(){var F=this.opacity;F=isNaN(F)?1:Math.max(0,Math.min(1,F));return(F===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))+(F===1?")":", "+F+")")}}));
Vc(Di,Zi,zd(pm,{brighter:function(F){F=F==null?DR:Math.pow(DR,F);return new Di(this.h,this.s,this.l*F,this.opacity)},
darker:function(F){F=F==null?.7:Math.pow(.7,F);return new Di(this.h,this.s,this.l*F,this.opacity)},
rgb:function(){var F=this.h%360+(this.h<0)*360,D=this.l,L=D+(D<.5?D:1-D)*(isNaN(F)||isNaN(this.s)?0:this.s);D=2*D-L;return new Ci(Ke(F>=240?F-240:F+120,D,L),Ke(F,D,L),Ke(F<120?F+240:F-120,D,L),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 NSb=Math.PI/180,QSb=180/Math.PI,PSb=4/29,zR=6/29,OSb=3*zR*zR,KOc=zR*zR*zR;Vc(sa,function(F,D,L,T){return arguments.length===1?ap(F):new sa(F,D,L,T==null?1:T)},zd(pm,{brighter:function(F){return new sa(this.l+18*(F==null?1:F),this.a,this.b,this.opacity)},
darker:function(F){return new sa(this.l-18*(F==null?1:F),this.a,this.b,this.opacity)},
rgb:function(){var F=(this.l+16)/116,D=isNaN(this.a)?F:F+this.a/500,L=isNaN(this.b)?F:F-this.b/200;D=.96422*La(D);F=1*La(F);L=.82521*La(L);return new Ci(mb(3.1338561*D-1.6168667*F-.4906146*L),mb(-.9787684*D+1.9161415*F+.033454*L),mb(.0719453*D-.2289914*F+1.4052427*L),this.opacity)}}));
Vc(Qb,ib,zd(pm,{brighter:function(F){return new Qb(this.h,this.c,this.l+18*(F==null?1:F),this.opacity)},
darker:function(F){return new Qb(this.h,this.c,this.l-18*(F==null?1:F),this.opacity)},
rgb:function(){return ap(this).rgb()}}));
var RSb=1.78277*-.29227-.1347134789;Vc(sd,xb,zd(pm,{brighter:function(F){F=F==null?DR:Math.pow(DR,F);return new sd(this.h,this.s,this.l*F,this.opacity)},
darker:function(F){F=F==null?.7:Math.pow(.7,F);return new sd(this.h,this.s,this.l*F,this.opacity)},
rgb:function(){var F=isNaN(this.h)?0:(this.h+120)*NSb,D=+this.l,L=isNaN(this.s)?0:this.s*D*(1-D),T=Math.cos(F);F=Math.sin(F);return new Ci(255*(D+L*(-.14861*T+1.78277*F)),255*(D+L*(-.29227*T+-.90649*F)),255*(D+1.97294*T*L),this.opacity)}}));
var WSb=function L(D){function T(la,pa){var ya=ba((la=Yg(la)).r,(pa=Yg(pa)).r),Va=ba(la.g,pa.g),Ta=ba(la.b,pa.b),Xa=Rk(la.opacity,pa.opacity);return function(gb){la.r=ya(gb);la.g=Va(gb);la.b=Ta(gb);la.opacity=Xa(gb);return la+""}}
var ba=nh(D);T.gamma=L;return T}(1),GQc=Gh(function(D){var L=D.length-1;
return function(T){var ba=T<=0?T=0:T>=1?(T=1,L-1):Math.floor(T*L),la=D[ba],pa=D[ba+1];return Yf((T-ba/L)*L,ba>0?D[ba-1]:2*la-pa,la,pa,ba<L-1?D[ba+2]:2*pa-la)}});
Gh(function(D){var L=D.length;return function(T){var ba=Math.floor(((T%=1)<0?++T:T)*L);return Yf((T-ba/L)*L,D[(ba+L-1)%L],D[ba%L],D[(ba+1)%L],D[(ba+2)%L])}});
var SLa=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,TLa=new RegExp(SLa.source,"g"),SSb=180/Math.PI,lMa={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},T3,mMa,JTb,kla,IQc=od(function(D){if(D==="none")return lMa;T3||(T3=document.createElement("DIV"),mMa=document.documentElement,JTb=document.defaultView);T3.style.transform=D;D=JTb.getComputedStyle(mMa.appendChild(T3),null).getPropertyValue("transform");mMa.removeChild(T3);D=D.slice(7,-1).split(",");return Uc(+D[0],+D[1],+D[2],+D[3],
+D[4],+D[5])},"px, ","px)","deg)"),JQc=od(function(D){if(D==null)return lMa;
kla||(kla=document.createElementNS("http://www.w3.org/2000/svg","g"));kla.setAttribute("transform",D);if(!(D=kla.transform.baseVal.consolidate()))return lMa;D=D.matrix;return Uc(D.a,D.b,D.c,D.d,D.e,D.f)},", ",")",")");
Jc(Vd);Jc(Rk);hg(Vd);hg(Rk);di(Vd);var nMa=di(Rk),AR=0,J3=0,L3=0,bla,K3,ala=0,jK=0,$ka=0,I3=typeof performance==="object"&&performance.now?performance:Date,TSb=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(D){setTimeout(D,17)};
WI.prototype=B0.prototype={constructor:WI,restart:function(D,L,T){if(typeof D!=="function")throw new TypeError("we");T=(T==null?Is():+T)+(L==null?0:+L);this._next||K3===this||(K3?K3._next=this:bla=this,K3=this);this._call=D;this._time=T;D0()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,D0())}};
var MOc=c("start","end","interrupt"),NOc=[],KQc=Pc.prototype.constructor,KTb=0,ER=Pc.prototype;EF.prototype=function(D){return Pc().transition(D)}.prototype={constructor:EF,
select:function(D){var L=this._name,T=this._id;typeof D!=="function"&&(D=u(D));for(var ba=this._groups,la=ba.length,pa=Array(la),ya=0;ya<la;++ya)for(var Va=ba[ya],Ta=Va.length,Xa=pa[ya]=Array(Ta),gb,Ob,nc=0;nc<Ta;++nc)(gb=Va[nc])&&(Ob=D.call(gb,gb.__data__,nc,Va))&&("__data__"in gb&&(Ob.__data__=gb.__data__),Xa[nc]=Ob,ULa(Xa[nc],L,T,nc,Xa,Hy(gb,T)));return new EF(pa,this._parents,L,T)},
filter:function(D){typeof D!=="function"&&(D=ITb(D));for(var L=this._groups,T=L.length,ba=Array(T),la=0;la<T;++la)for(var pa=L[la],ya=pa.length,Va=ba[la]=[],Ta,Xa=0;Xa<ya;++Xa)(Ta=pa[Xa])&&D.call(Ta,Ta.__data__,Xa,pa)&&Va.push(Ta);return new EF(ba,this._parents,this._name,this._id)},
merge:function(D){if(D._id!==this._id)throw Error();var L=this._groups;D=D._groups;for(var T=L.length,ba=Math.min(T,D.length),la=Array(T),pa=0;pa<ba;++pa)for(var ya=L[pa],Va=D[pa],Ta=ya.length,Xa=la[pa]=Array(Ta),gb,Ob=0;Ob<Ta;++Ob)if(gb=ya[Ob]||Va[Ob])Xa[Ob]=gb;for(;pa<T;++pa)la[pa]=L[pa];return new EF(la,this._parents,this._name,this._id)},
selection:function(){return new KQc(this._groups,this._parents)},
transition:function(){for(var D=this._name,L=this._id,T=++KTb,ba=this._groups,la=ba.length,pa=0;pa<la;++pa)for(var ya=ba[pa],Va=ya.length,Ta,Xa=0;Xa<Va;++Xa)if(Ta=ya[Xa]){var gb=Hy(Ta,L);ULa(Ta,D,T,Xa,ya,{time:gb.time+gb.delay+gb.duration,delay:0,duration:gb.duration,ease:gb.ease})}return new EF(ba,this._parents,D,T)},
call:ER.call,nodes:ER.nodes,node:ER.node,size:ER.size,empty:ER.empty,each:ER.each,on:function(D,L){var T=this._id;return arguments.length<2?Hy(this.node(),T).on.on(D):this.each(dPc(T,D,L))},
attr:function(D,L){var T=k(D),ba=T==="transform"?JQc:VSb;return this.attrTween(D,typeof L==="function"?(T.local?VOc:UOc)(T,ba,WLa(this,"attr."+D,L)):L==null?(T.local?ROc:QOc)(T):(T.local?TOc:SOc)(T,ba,L+""))},
attrTween:function(D,L){var T="attr."+D;if(arguments.length<2)return(T=this.tween(T))&&T._value;if(L==null)return this.tween(T,null);if(typeof L!=="function")throw Error();var ba=k(D);return this.tween(T,(ba.local?WOc:XOc)(ba,L))},
style:function(D,L,T){var ba=D==="transform"?IQc:VSb;return L==null?this.styleTween(D,fPc(D,ba)).on("end.style."+D,gPc(D)):this.styleTween(D,typeof L==="function"?iPc(D,ba,WLa(this,"style."+D,L)):hPc(D,ba,L+""),T)},
styleTween:function(D,L,T){var ba="style."+D;if(arguments.length<2)return(ba=this.tween(ba))&&ba._value;if(L==null)return this.tween(ba,null);if(typeof L!=="function")throw Error();return this.tween(ba,jPc(D,L,T==null?"":T))},
text:function(D){return this.tween("text",typeof D==="function"?lPc(WLa(this,"text",D)):kPc(D==null?"":D+""))},
remove:function(){return this.on("end.remove",ePc(this._id))},
tween:function(D,L){var T=this._id;if(arguments.length<2){T=Hy(this.node(),T).tween;for(var ba=0,la=T.length,pa;ba<la;++ba)if((pa=T[ba]).name===D)return pa.value;return null}return this.each((L==null?OOc:POc)(T,D,L))},
delay:function(D){var L=this._id;return arguments.length?this.each((typeof D==="function"?YOc:ZOc)(L,D)):Hy(this.node(),L).delay},
duration:function(D){var L=this._id;return arguments.length?this.each((typeof D==="function"?$Oc:aPc)(L,D)):Hy(this.node(),L).duration},
ease:function(D){var L=this._id;return arguments.length?this.each(bPc(L,D)):Hy(this.node(),L).ease}};
var oMa={time:null,delay:0,duration:250,ease:function(D){return((D*=2)<=1?D*D*D:(D-=2)*D*D+2)/2}};
Pc.prototype.transition=function(D){var L;if(D instanceof EF){var T=D._id;D=D._name}else T=++KTb,(L=oMa).time=Is(),D=D==null?null:D+"";for(var ba=this._groups,la=ba.length,pa=0;pa<la;++pa)for(var ya=ba[pa],Va=ya.length,Ta,Xa=0;Xa<Va;++Xa)if(Ta=ya[Xa]){var gb=Ta,Ob=D,nc=T,ld=Xa,ye=ya,ne;if(!(ne=L))a:{ne=void 0;for(var Xk=T;!(ne=Ta.__transition)||!(ne=ne[Xk]);)if(!(Ta=Ta.parentNode)){ne=(oMa.time=Is(),oMa);break a}}ULa(gb,Ob,nc,ld,ye,ne)}return new EF(ba,this._parents,D,T)};
["e","w"].map(XLa);["n","s"].map(XLa);"n e s w nw ne se sw".split(" ").map(XLa);YLa.prototype=function(){return new YLa}.prototype={constructor:YLa,
moveTo:function(D,L){this._+="M"+(this._x0=this._x1=+D)+","+(this._y0=this._y1=+L)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(D,L){this._+="L"+(this._x1=+D)+","+(this._y1=+L)},
bezierCurveTo:function(D,L,T,ba,la,pa){this._+="C"+ +D+","+ +L+","+ +T+","+ +ba+","+(this._x1=+la)+","+(this._y1=+pa)},
rect:function(D,L,T,ba){this._+="M"+(this._x0=this._x1=+D)+","+(this._y0=this._y1=+L)+"h"+ +T+"v"+ +ba+"h"+-T+"Z"},
toString:function(){return this._}};
cla.prototype=XSb.prototype={constructor:cla,has:function(D){return" "+D in this},
get:function(D){return this[" "+D]},
set:function(D,L){this[" "+D]=L;return this},
remove:function(D){D=" "+D;return D in this&&delete this[D]},
clear:function(){for(var D in this)D[0]===" "&&delete this[D]},
keys:function(){var D=[],L;for(L in this)L[0]===" "&&D.push(L.slice(1));return D},
values:function(){var D=[],L;for(L in this)L[0]===" "&&D.push(this[L]);return D},
entries:function(){var D=[],L;for(L in this)L[0]===" "&&D.push({key:L.slice(1),value:this[L]});return D},
size:function(){var D=0,L;for(L in this)L[0]===" "&&++D;return D},
empty:function(){for(var D in this)if(D[0]===" ")return!1;return!0},
each:function(D){for(var L in this)L[0]===" "&&D(this[L],L.slice(1),this)}};
var nK=XSb.prototype;dla.prototype=function(D,L){var T=new dla;if(D instanceof dla)D.each(function(pa){T.add(pa)});
else if(D){var ba=-1,la=D.length;if(L==null)for(;++ba<la;)T.add(D[ba]);else for(;++ba<la;)T.add(L(D[ba],ba,D))}return T}.prototype={constructor:dla,
has:nK.has,add:function(D){this[" "+D]=D;return this},
remove:nK.remove,clear:nK.clear,values:nK.keys,size:nK.size,empty:nK.empty,each:nK.each};var $Sb={},ZLa={},LQc=ZSb(",").parse,MQc=ZSb("\t").parse;aTb(LQc);aTb(MQc);var mq=function(D,L,T){L=new $La(L==null?pPc:L,T==null?qPc:T,NaN,NaN,NaN,NaN);return D==null?L:L.addAll(D)}.prototype=$La.prototype;
mq.copy=function(){var D=new $La(this._x,this._y,this._x0,this._y0,this._x1,this._y1),L=this._root,T,ba;if(!L)return D;if(!L.length)return D._root=cTb(L),D;for(T=[{source:L,target:D._root=Array(4)}];L=T.pop();)for(var la=0;la<4;++la)if(ba=L.source[la])ba.length?T.push({source:ba,target:L.target[la]=Array(4)}):L.target[la]=cTb(ba);return D};
mq.add=function(D){var L=+this._x.call(null,D),T=+this._y.call(null,D);return bTb(this.cover(L,T),L,T,D)};
mq.addAll=function(D){var L,T,ba=D.length,la,pa,ya=Array(ba),Va=Array(ba),Ta=Infinity,Xa=Infinity,gb=-Infinity,Ob=-Infinity;for(T=0;T<ba;++T)isNaN(la=+this._x.call(null,L=D[T]))||isNaN(pa=+this._y.call(null,L))||(ya[T]=la,Va[T]=pa,la<Ta&&(Ta=la),la>gb&&(gb=la),pa<Xa&&(Xa=pa),pa>Ob&&(Ob=pa));gb<Ta&&(Ta=this._x0,gb=this._x1);Ob<Xa&&(Xa=this._y0,Ob=this._y1);this.cover(Ta,Xa).cover(gb,Ob);for(T=0;T<ba;++T)bTb(this,ya[T],Va[T],D[T]);return this};
mq.cover=function(D,L){if(isNaN(D=+D)||isNaN(L=+L))return this;var T=this._x0,ba=this._y0,la=this._x1,pa=this._y1;if(isNaN(T))la=(T=Math.floor(D))+1,pa=(ba=Math.floor(L))+1;else if(T>D||D>la||ba>L||L>pa){var ya=la-T,Va=this._root,Ta;switch(Ta=(L<(ba+pa)/2)<<1|D<(T+la)/2){case 0:do{var Xa=Array(4);Xa[Ta]=Va;Va=Xa}while(ya*=2,la=T+ya,pa=ba+ya,D>la||L>pa);break;case 1:do Xa=Array(4),Xa[Ta]=Va,Va=Xa;while(ya*=2,T=la-ya,pa=ba+ya,T>D||L>pa);break;case 2:do Xa=Array(4),Xa[Ta]=Va,Va=Xa;while(ya*=2,la=T+ya,
ba=pa-ya,D>la||ba>L);break;case 3:do Xa=Array(4),Xa[Ta]=Va,Va=Xa;while(ya*=2,T=la-ya,ba=pa-ya,T>D||ba>L)}this._root&&this._root.length&&(this._root=Va)}else return this;this._x0=T;this._y0=ba;this._x1=la;this._y1=pa;return this};
mq.data=function(){var D=[];this.visit(function(L){if(!L.length){do D.push(L.data);while(L=L.next)}});
return D};
mq.extent=function(D){return arguments.length?this.cover(+D[0][0],+D[0][1]).cover(+D[1][0],+D[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
mq.find=function(D,L,T){var ba=this._x0,la=this._y0,pa,ya,Va,Ta,Xa=this._x1,gb=this._y1,Ob=[],nc=this._root,ld;nc&&Ob.push(new lq(nc,ba,la,Xa,gb));T==null?T=Infinity:(ba=D-T,la=L-T,Xa=D+T,gb=L+T,T*=T);for(;ld=Ob.pop();)if(!(!(nc=ld.node)||(pa=ld.x0)>Xa||(ya=ld.y0)>gb||(Va=ld.x1)<ba||(Ta=ld.y1)<la))if(nc.length){ld=(pa+Va)/2;var ye=(ya+Ta)/2;Ob.push(new lq(nc[3],ld,ye,Va,Ta),new lq(nc[2],pa,ye,ld,Ta),new lq(nc[1],ld,ya,Va,ye),new lq(nc[0],pa,ya,ld,ye));if(nc=(L>=ye)<<1|D>=ld)ld=Ob[Ob.length-1],Ob[Ob.length-
1]=Ob[Ob.length-1-nc],Ob[Ob.length-1-nc]=ld}else if(ld=D-+this._x.call(null,nc.data),ye=L-+this._y.call(null,nc.data),ld=ld*ld+ye*ye,ld<T){var ne=Math.sqrt(T=ld);ba=D-ne;la=L-ne;Xa=D+ne;gb=L+ne;ne=nc.data}return ne};
mq.remove=function(D){if(isNaN(Ta=+this._x.call(null,D))||isNaN(Xa=+this._y.call(null,D)))return this;var L,T=this._root,ba,la=this._x0,pa=this._y0,ya=this._x1,Va=this._y1,Ta,Xa,gb,Ob,nc,ld,ye;if(!T)return this;if(T.length)for(;;){(nc=Ta>=(gb=(la+ya)/2))?la=gb:ya=gb;(ld=Xa>=(Ob=(pa+Va)/2))?pa=Ob:Va=Ob;if(!(L=T,T=T[ye=ld<<1|nc]))return this;if(!T.length)break;if(L[ye+1&3]||L[ye+2&3]||L[ye+3&3]){var ne=L;var Xk=ye}}for(;T.data!==D;)if(!(ba=T,T=T.next))return this;(D=T.next)&&delete T.next;if(ba)return D?
ba.next=D:delete ba.next,this;if(!L)return this._root=D,this;D?L[ye]=D:delete L[ye];(T=L[0]||L[1]||L[2]||L[3])&&T===(L[3]||L[2]||L[1]||L[0])&&!T.length&&(ne?ne[Xk]=T:this._root=T);return this};
mq.removeAll=function(D){for(var L=0,T=D.length;L<T;++L)this.remove(D[L]);return this};
mq.root=function(){return this._root};
mq.size=function(){var D=0;this.visit(function(L){if(!L.length){do++D;while(L=L.next)}});
return D};
mq.visit=function(D){var L=[],T,ba=this._root,la,pa,ya,Va,Ta;for(ba&&L.push(new lq(ba,this._x0,this._y0,this._x1,this._y1));T=L.pop();)if(!D(ba=T.node,pa=T.x0,ya=T.y0,Va=T.x1,Ta=T.y1)&&ba.length){T=(pa+Va)/2;var Xa=(ya+Ta)/2;(la=ba[3])&&L.push(new lq(la,T,Xa,Va,Ta));(la=ba[2])&&L.push(new lq(la,pa,Xa,T,Ta));(la=ba[1])&&L.push(new lq(la,T,ya,Va,Xa));(la=ba[0])&&L.push(new lq(la,pa,ya,T,Xa))}};
mq.visitAfter=function(D){var L=[],T=[],ba;for(this._root&&L.push(new lq(this._root,this._x0,this._y0,this._x1,this._y1));ba=L.pop();){var la=ba.node;if(la.length){var pa,ya=ba.x0,Va=ba.y0,Ta=ba.x1,Xa=ba.y1,gb=(ya+Ta)/2,Ob=(Va+Xa)/2;(pa=la[0])&&L.push(new lq(pa,ya,Va,gb,Ob));(pa=la[1])&&L.push(new lq(pa,gb,Va,Ta,Ob));(pa=la[2])&&L.push(new lq(pa,ya,Ob,gb,Xa));(pa=la[3])&&L.push(new lq(pa,gb,Ob,Ta,Xa))}T.push(ba)}for(;ba=T.pop();)D(ba.node,ba.x0,ba.y0,ba.x1,ba.y1);return this};
mq.x=function(D){return arguments.length?(this._x=D,this):this._x};
mq.y=function(D){return arguments.length?(this._y=D,this):this._y};
var uPc=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;aMa.prototype=bMa.prototype;bMa.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 gTb,hTb={"%":function(D,L){return(D*100).toFixed(L)},
b:function(D){return Math.round(D).toString(2)},
c:function(D){return D+""},
d:function(D){return Math.round(D).toString(10)},
e:function(D,L){return D.toExponential(L)},
f:function(D,L){return D.toFixed(L)},
g:function(D,L){return D.toPrecision(L)},
o:function(D){return Math.round(D).toString(8)},
p:function(D,L){return dTb(D*100,L)},
r:dTb,s:function(D,L){var T=ela(D,L);if(!T)return D+"";var ba=T[0];T=T[1];T=T-(gTb=Math.max(-8,Math.min(8,Math.floor(T/3)))*3)+1;var la=ba.length;return T===la?ba:T>la?ba+Array(T-la+1).join("0"):T>0?ba.slice(0,T)+"."+ba.slice(T):"0."+Array(1-T).join("0")+ela(D,Math.max(0,L+T-1))[0]},
X:function(D){return Math.round(D).toString(16).toUpperCase()},
x:function(D){return Math.round(D).toString(16)}},fTb="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),NQc;
(function(D){return NQc=vPc(D)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});rw.prototype={constructor:rw,reset:function(){this.s=this.t=0},
add:function(D){iTb(lla,D,this.t);iTb(this,lla.s,this.s);this.s?this.t+=lla.t:this.s=lla.t},
valueOf:function(){return this.s}};
var lla=new rw,Hl=Math.PI,Su=Hl/2,LTb=Hl/4,OQc=Hl*2,pMa=Hl/180,FF=Math.abs,qMa=Math.atan,oTb=Math.atan2,Tu=Math.cos,pp=Math.sin,gla=Math.sqrt;new rw;new rw;new rw;var rMa=new rw;(function(D,L,T,ba){return function(la){function pa(th,$f){D(th,$f)&&la.point(th,$f)}
function ya(th,$f){nc.point(th,$f)}
function Va(){ft.point=ya;nc.lineStart()}
function Ta(){ft.point=pa;nc.lineEnd()}
function Xa(th,$f){io.push([th,$f]);ye.point(th,$f)}
function gb(){ye.lineStart();io=[]}
function Ob(){Xa(io[0][0],io[0][1]);ye.lineEnd();var th=ye.clean(),$f=ld.result(),Od=$f.length,sk;io.pop();Xk.push(io);io=null;if(Od)if(th&1){if(Od=$f[0],($f=Od.length-1)>0){ne||(la.polygonStart(),ne=!0);la.lineStart();for(th=0;th<$f;++th)la.point((sk=Od[th])[0],sk[1]);la.lineEnd()}}else Od>1&&th&2&&$f.push($f.pop().concat($f.shift())),sh.push($f.filter(zPc))}
var nc=L(la),ld=xPc(),ye=L(ld),ne=!1,Xk,sh,io,ft={point:pa,lineStart:Va,lineEnd:Ta,polygonStart:function(){ft.point=Xa;ft.lineStart=gb;ft.lineEnd=Ob;sh=[];Xk=[]},
polygonEnd:function(){ft.point=pa;ft.lineStart=Va;ft.lineEnd=Ta;var th=sh,$f=th.length;var Od=-1;for(var sk=0,yc,fd;++Od<$f;)sk+=th[Od].length;for(yc=Array(sk);--$f>=0;)for(fd=th[$f],Od=fd.length;--Od>=0;)yc[--sk]=fd[Od];sh=yc;th=Xk;$f=ba[0];sk=ba[1];var Yc=pp(sk);Od=[pp($f),-Tu($f),0];fd=yc=0;rMa.reset();Yc===1?sk=Su+1E-6:Yc===-1&&(sk=-Su-1E-6);Yc=0;for(var pc=th.length;Yc<pc;++Yc)if(Gl=(ji=th[Yc]).length){var ji,Gl,Yk=ji[Gl-1],Fi=Yk[0],UB=Yk[1]/2+LTb,mla=pp(UB),MTb=Tu(UB);for(UB=0;UB<Gl;++UB,Fi=
sMa,mla=NTb,MTb=U3,Yk=nla){var nla=ji[UB],sMa=nla[0];U3=nla[1]/2+LTb;var NTb=pp(U3),U3=Tu(U3),FR=sMa-Fi,tMa=FR>=0?1:-1,uMa=tMa*FR,ola=uMa>Hl;mla*=NTb;rMa.add(oTb(mla*tMa*pp(uMa),MTb*U3+mla*Tu(uMa)));yc+=ola?FR+tMa*OQc:FR;ola^Fi>=$f^sMa>=$f&&(Yk=kTb(jTb(Yk),jTb(nla)),lTb(Yk),Fi=kTb(Od,Yk),lTb(Fi),Fi=(ola^FR>=0?-1:1)*fla(Fi[2]),sk>Fi||sk===Fi&&(Yk[0]||Yk[1]))&&(fd+=ola^FR>=0?1:-1)}}th=(yc<-1E-6||yc<1E-6&&rMa<-1E-6)^fd&1;sh.length?(ne||(la.polygonStart(),ne=!0),yPc(sh,APc,th,T,la)):th&&(ne||(la.polygonStart(),
ne=!0),la.lineStart(),T(null,null,1,la),la.lineEnd());ne&&(la.polygonEnd(),ne=!1);sh=Xk=null},
sphere:function(){la.polygonStart();la.lineStart();T(null,null,1,la);la.lineEnd();la.polygonEnd()}};
return ft}})(function(){return!0},function(D){var L=NaN,T=NaN,ba=NaN,la;
return{lineStart:function(){D.lineStart();la=1},
point:function(pa,ya){var Va=pa>0?Hl:-Hl,Ta=FF(pa-L);if(FF(Ta-Hl)<1E-6)D.point(L,T=(T+ya)/2>0?Su:-Su),D.point(ba,T),D.lineEnd(),D.lineStart(),D.point(Va,T),D.point(pa,T),la=0;else if(ba!==Va&&Ta>=Hl){FF(L-ba)<1E-6&&(L-=ba*1E-6);FF(pa-Va)<1E-6&&(pa-=Va*1E-6);Ta=L;var Xa=T,gb=pa,Ob,nc,ld=pp(Ta-gb);T=FF(ld)>1E-6?qMa((pp(Xa)*(nc=Tu(ya))*pp(gb)-pp(ya)*(Ob=Tu(Xa))*pp(Ta))/(Ob*nc*ld)):(Xa+ya)/2;D.point(ba,T);D.lineEnd();D.lineStart();D.point(Va,T);la=0}D.point(L=pa,T=ya);ba=Va},
lineEnd:function(){D.lineEnd();L=T=NaN},
clean:function(){return 2-la}}},function(D,L,T,ba){D==null?(T*=Su,ba.point(-Hl,T),ba.point(0,T),ba.point(Hl,T),ba.point(Hl,0),ba.point(Hl,-T),ba.point(0,-T),ba.point(-Hl,-T),ba.point(-Hl,0),ba.point(-Hl,T)):FF(D[0]-L[0])>1E-6?(D=D[0]<L[0]?Hl:-Hl,T=T*D/2,ba.point(-D,T),ba.point(0,T),ba.point(D,T)):ba.point(L[0],L[1])},[-Hl,
-Su]);new rw;new rw;new rw;new rw;cMa.prototype={constructor:cMa,point:function(D,L){this.stream.point(D,L)},
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()}};
Tu(30*pMa);(function(D){return function(L){var T=new cMa,ba;for(ba in D)T[ba]=D[ba];T.stream=L;return T}})({point:function(D,L){this.stream.point(D*pMa,L*pMa)}});
nTb(function(D){return gla(2/(1+D))}).invert=M3(function(D){return 2*fla(D/2)});
nTb(function(D){return(D=D>1?0:D<-1?Hl:Math.acos(D))&&D/pp(D)}).invert=M3(function(D){return D});
gla(3);M3(qMa);M3(fla);M3(function(D){return 2*qMa(D)});
N3.prototype=pTb.prototype={constructor:N3,count:function(){return this.eachAfter(BPc)},
each:function(D){var L,T=[this],ba;do{var la=T.reverse();for(T=[];L=la.pop();)if(D(L),L=L.children){var pa=0;for(ba=L.length;pa<ba;++pa)T.push(L[pa])}}while(T.length);return this},
eachAfter:function(D){for(var L,T=[this],ba=[],la,pa;L=T.pop();)if(ba.push(L),L=L.children)for(la=0,pa=L.length;la<pa;++la)T.push(L[la]);for(;L=ba.pop();)D(L);return this},
eachBefore:function(D){for(var L,T=[this],ba;L=T.pop();)if(D(L),L=L.children)for(ba=L.length-1;ba>=0;--ba)T.push(L[ba]);return this},
sum:function(D){return this.eachAfter(function(L){for(var T=+D(L.data)||0,ba=L.children,la=ba&&ba.length;--la>=0;)T+=ba[la].value;L.value=T})},
sort:function(D){return this.eachBefore(function(L){L.children&&L.children.sort(D)})},
path:function(D){var L=this;var T=L;var ba=D;if(T!==ba){var la=T.ancestors(),pa=ba.ancestors(),ya=null;T=la.pop();for(ba=pa.pop();T===ba;)ya=T,T=la.pop(),ba=pa.pop();T=ya}for(ba=[L];L!==T;)L=L.parent,ba.push(L);for(L=ba.length;D!==T;)ba.splice(L,0,D),D=D.parent;return ba},
ancestors:function(){for(var D=this,L=[D];D=D.parent;)L.push(D);return L},
links:function(){var D=this,L=[];D.each(function(T){T!==D&&L.push({source:T.parent,target:T})});
return L},
copy:function(){return pTb(this).eachBefore(EPc)}};
(function(D,L){this._=D;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=L}).prototype=Object.create(N3.prototype);
var dMa=new Date,eMa=new Date,OTb=en(function(){},function(D,L){D.setTime(+D+L)},function(D,L){return L-D});
OTb.every=function(D){D=Math.floor(D);return isFinite(D)&&D>0?D>1?en(function(L){L.setTime(Math.floor(L/D)*D)},function(L,T){L.setTime(+L+T*D)},function(L,T){return(T-L)/D}):OTb:null};
en(function(D){D.setTime(Math.floor(D/1E3)*1E3)},function(D,L){D.setTime(+D+L*1E3)},function(D,L){return(L-D)/1E3},function(D){return D.getUTCSeconds()});
en(function(D){D.setTime(Math.floor(D/6E4)*6E4)},function(D,L){D.setTime(+D+L*6E4)},function(D,L){return(L-D)/6E4},function(D){return D.getMinutes()});
en(function(D){var L=D.getTimezoneOffset()*6E4%36E5;L<0&&(L+=36E5);D.setTime(Math.floor((+D-L)/36E5)*36E5+L)},function(D,L){D.setTime(+D+L*36E5)},function(D,L){return(L-D)/36E5},function(D){return D.getHours()});
var sTb=en(function(D){D.setHours(0,0,0,0)},function(D,L){D.setDate(D.getDate()+L)},function(D,L){return(L-D-(L.getTimezoneOffset()-D.getTimezoneOffset())*6E4)/864E5},function(D){return D.getDate()-1}),EQc=lK(0),gMa=lK(1);
lK(2);lK(3);var hMa=lK(4);lK(5);lK(6);en(function(D){D.setDate(1);D.setHours(0,0,0,0)},function(D,L){D.setMonth(D.getMonth()+L)},function(D,L){return L.getMonth()-D.getMonth()+(L.getFullYear()-D.getFullYear())*12},function(D){return D.getMonth()});
var BR=en(function(D){D.setMonth(0,1);D.setHours(0,0,0,0)},function(D,L){D.setFullYear(D.getFullYear()+L)},function(D,L){return L.getFullYear()-D.getFullYear()},function(D){return D.getFullYear()});
BR.every=function(D){return isFinite(D=Math.floor(D))&&D>0?en(function(L){L.setFullYear(Math.floor(L.getFullYear()/D)*D);L.setMonth(0,1);L.setHours(0,0,0,0)},function(L,T){L.setFullYear(L.getFullYear()+T*D)}):null};
en(function(D){D.setUTCSeconds(0,0)},function(D,L){D.setTime(+D+L*6E4)},function(D,L){return(L-D)/6E4},function(D){return D.getUTCMinutes()});
en(function(D){D.setUTCMinutes(0,0,0)},function(D,L){D.setTime(+D+L*36E5)},function(D,L){return(L-D)/36E5},function(D){return D.getUTCHours()});
var rTb=en(function(D){D.setUTCHours(0,0,0,0)},function(D,L){D.setUTCDate(D.getUTCDate()+L)},function(D,L){return(L-D)/864E5},function(D){return D.getUTCDate()-1}),FQc=mK(0),fMa=mK(1);
mK(2);mK(3);var iMa=mK(4);mK(5);mK(6);en(function(D){D.setUTCDate(1);D.setUTCHours(0,0,0,0)},function(D,L){D.setUTCMonth(D.getUTCMonth()+L)},function(D,L){return L.getUTCMonth()-D.getUTCMonth()+(L.getUTCFullYear()-D.getUTCFullYear())*12},function(D){return D.getUTCMonth()});
var CR=en(function(D){D.setUTCMonth(0,1);D.setUTCHours(0,0,0,0)},function(D,L){D.setUTCFullYear(D.getUTCFullYear()+L)},function(D,L){return L.getUTCFullYear()-D.getUTCFullYear()},function(D){return D.getUTCFullYear()});
CR.every=function(D){return isFinite(D=Math.floor(D))&&D>0?en(function(L){L.setUTCFullYear(Math.floor(L.getUTCFullYear()/D)*D);L.setUTCMonth(0,1);L.setUTCHours(0,0,0,0)},function(L,T){L.setUTCFullYear(L.getUTCFullYear()+T*D)}):null};
var qTb={"-":"",_:" ",0:"0"},jo=/^\s*\d+/,DQc=/^%/,CQc=/[\\^$*+?|[\]().{}]/g,pla;(function(D){pla=GPc(D);eub=pla.utcFormat;fub=pla.utcParse;return pla})({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||eub("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||fub("%Y-%m-%dT%H:%M:%S.%LZ");Ve("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
Ve("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");Ve("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");Ve("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");Ve("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");Ve("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");Ve("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
Ve("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");Ve("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");Ve("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");Ve("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");Ve("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var PQc=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Ve);ki(PQc);var QQc=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Ve);ki(QQc);var RQc=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Ve);ki(RQc);var SQc=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Ve);
ki(SQc);var TQc=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Ve);ki(TQc);var UQc=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Ve);ki(UQc);var VQc=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Ve);ki(VQc);var WQc=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Ve);ki(WQc);var XQc=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Ve);ki(XQc);var YQc=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Ve);ki(YQc);var ZQc=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Ve);ki(ZQc);var $Qc=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Ve);ki($Qc);var aRc=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Ve);ki(aRc);var bRc=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Ve);ki(bRc);var cRc=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Ve);ki(cRc);var dRc=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Ve);ki(dRc);var eRc=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Ve);ki(eRc);var fRc=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Ve);ki(fRc);var gRc=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Ve);ki(gRc);var hRc=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Ve);ki(hRc);var iRc=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Ve);ki(iRc);var jRc=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Ve);ki(jRc);var kRc=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Ve);ki(kRc);var lRc=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Ve);ki(lRc);var mRc=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Ve);ki(mRc);var nRc=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Ve);ki(nRc);var oRc=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Ve);ki(oRc);nMa(xb(300,.5,0),xb(-240,.5,1));nMa(xb(-100,.75,.35),xb(80,1.5,.8));nMa(xb(260,.75,.35),xb(80,1.5,.8));xb();Yg();jla(Ve("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
jla(Ve("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
jla(Ve("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
jla(Ve("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
CTb.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(D,L){D=+D;L=+L;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(D,L):this._context.moveTo(D,L);break;case 1:this._point=2;default:this._context.lineTo(D,L)}}};
(function(D){function L(T){return new DTb(D(T))}
L._curve=D;return L})(function(D){return new CTb(D)});
DTb.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(D,L){this._curve.point(L*Math.sin(D),L*-Math.cos(D))}};
kMa.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:jMa(this,this._t0,FTb(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(D,L){var T=NaN;D=+D;L=+L;if(D!==this._x1||L!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(D,L):this._context.moveTo(D,L);break;case 1:this._point=2;break;case 2:this._point=3;jMa(this,FTb(this,T=ETb(this,D,L)),T);break;default:jMa(this,this._t0,T=ETb(this,D,L))}this._x0=this._x1;this._x1=D;this._y0=this._y1;this._y1=L;this._t0=T}}};
(function(D){this._context=new GTb(D)}.prototype=Object.create(kMa.prototype)).point=function(D,L){kMa.prototype.point.call(this,L,D)};
GTb.prototype={moveTo:function(D,L){this._context.moveTo(L,D)},
closePath:function(){this._context.closePath()},
lineTo:function(D,L){this._context.lineTo(L,D)},
bezierCurveTo:function(D,L,T,ba,la,pa){this._context.bezierCurveTo(L,D,ba,T,pa,la)}};
R3.prototype={constructor:R3,scale:function(D){return D===1?this:new R3(this.k*D,this.x,this.y)},
translate:function(D,L){return D===0&L===0?this:new R3(this.k,this.x+this.k*D,this.y+this.k*L)},
apply:function(D){return[D[0]*this.k+this.x,D[1]*this.k+this.y]},
invert:function(D){return[(D[0]-this.x)/this.k,(D[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new R3(1,0,0);WOa=jd;Ru.svg=Ru.svg;Ru.xhtml=Ru.xhtml;Ru.xlink=Ru.xlink;Ru.xml=Ru.xml;Ru.xmlns=Ru.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 gub="hammer_"+(Math.random()*1E6|0),hub=function(){var a=document||document;if(!a[gub]){var b=function(){(function(c,d,e,g){function k(sa,Ga,La){return setTimeout(w(sa,La),Ga)}
function m(sa,Ga,La){return Array.isArray(sa)?(n(sa,La[Ga],La),!0):!1}
function n(sa,Ga,La){var mb;if(sa)if(sa.forEach)sa.forEach(Ga,La);else if(sa.length!==g){var fc=0;for(mb=sa.length;fc<mb;fc++)Ga.call(La,sa[fc],fc,sa)}else for(fc in sa)sa.hasOwnProperty(fc)&&Ga.call(La,sa[fc],fc,sa)}
function r(sa,Ga,La){for(var mb=Object.keys(Ga),fc=0,fb=mb.length;fc<fb;fc++)if(!La||La&&sa[mb[fc]]===g)sa[mb[fc]]=Ga[mb[fc]];return sa}
function t(sa,Ga){return r(sa,Ga,!0)}
function u(sa,Ga,La){Ga=Ga.prototype;var mb=sa.prototype=Object.create(Ga);mb.constructor=sa;mb._super=Ga;La&&r(mb,La)}
function w(sa,Ga){return function(){return sa.apply(Ga,arguments)}}
function A(sa,Ga){return typeof sa=="function"?sa.apply(Ga?Ga[0]||g:g,Ga):sa}
function C(sa,Ga,La){n(J(Ga),function(mb){sa.addEventListener(mb,La,!1)})}
function G(sa,Ga,La){n(J(Ga),function(mb){sa.removeEventListener(mb,La,!1)})}
function J(sa){return sa.trim().split(/\s+/g)}
function I(sa,Ga,La){if(sa.indexOf&&!La)return sa.indexOf(Ga);for(var mb=0,fc=sa.length;mb<fc;mb++)if(La&&sa[mb][La]==Ga||!La&&sa[mb]===Ga)return mb;return-1}
function R(sa,Ga,La){for(var mb=[],fc=[],fb=0,ib=sa.length;fb<ib;fb++){var Qb=Ga?sa[fb][Ga]:sa[fb];I(fc,Qb)<0&&mb.push(sa[fb]);fc[fb]=Qb}La&&(mb=Ga?mb.sort(function(xb,sd){return xb[Ga]>sd[Ga]}):mb.sort());
return mb}
function ca(sa,Ga){for(var La,mb=Ga[0].toUpperCase()+Ga.slice(1),fc=0,fb=pb.length;fc<fb;fc++)if(La=(La=pb[fc])?La+mb:Ga,La in sa)return La;return g}
function V(sa,Ga){var La=this;this.manager=sa;this.callback=Ga;this.element=sa.element;this.target=sa.options.inputTarget;this.domHandler=function(mb){A(sa.options.enable,[sa])&&La.handler(mb)};
this.evEl&&C(this.element,this.evEl,this.domHandler);this.evTarget&&C(this.target,this.evTarget,this.domHandler);this.evWin&&C(c,this.evWin,this.domHandler)}
function fa(sa){var Ga;Mf?Ga=kb:$o?Ga=Ua:jd?Ga=Fc:Ga=bb;return new Ga(sa,aa)}
function aa(sa,Ga,La){var mb=La.pointers.length,fc=La.changedPointers.length,fb=Ga&1&&mb-fc===0;La.isFirst=!!fb;La.isFinal=!!(Ga&12&&mb-fc===0);fb&&(sa.session={});La.eventType=Ga;Ga=sa.session;mb=La.pointers;fc=mb.length;Ga.firstInput||(Ga.firstInput=ma(La));fc>1&&!Ga.firstMultiple?Ga.firstMultiple=ma(La):fc===1&&(Ga.firstMultiple=!1);fb=Ga.firstInput;var ib=(fc=Ga.firstMultiple)?fc.center:fb.center,Qb=La.center=Ba(mb);La.timeStamp=Vc();La.deltaTime=La.timeStamp-fb.timeStamp;La.angle=Fa(ib,Qb);La.distance=
za(ib,Qb);fb=La.center;ib=Ga.offsetDelta||{};Qb=Ga.prevDelta||{};var xb=Ga.prevInput||{};if(La.eventType===1||xb.eventType===4)Qb=Ga.prevDelta={x:xb.deltaX||0,y:xb.deltaY||0},ib=Ga.offsetDelta={x:fb.x,y:fb.y};La.deltaX=Qb.x+(fb.x-ib.x);La.deltaY=Qb.y+(fb.y-ib.y);La.offsetDirection=Da(La.deltaX,La.deltaY);fc?(fb=fc.pointers,fb=za(mb[0],mb[1],Yg)/za(fb[0],fb[1],Yg)):fb=1;La.scale=fb;fc?(fc=fc.pointers,mb=Fa(mb[1],mb[0],Yg)-Fa(fc[1],fc[0],Yg)):mb=0;La.rotation=mb;ib=Ga.lastInterval||La;mb=La.timeStamp-
ib.timeStamp;La.eventType!=8&&(mb>25||ib.velocity===g)?(fb=ib.deltaX-La.deltaX,ib=ib.deltaY-La.deltaY,Qb=fb/mb||0,xb=ib/mb||0,mb=Qb,fc=xb,Qb=Db(Qb)>Db(xb)?Qb:xb,fb=Da(fb,ib),Ga.lastInterval=La):(Qb=ib.velocity,mb=ib.velocityX,fc=ib.velocityY,fb=ib.direction);La.velocity=Qb;La.velocityX=mb;La.velocityY=fc;La.direction=fb;Ga=sa.element;a:{for(mb=La.srcEvent.target;mb;){if(mb==Ga){mb=!0;break a}mb=mb.parentNode}mb=!1}mb&&(Ga=La.srcEvent.target);La.target=Ga;sa.emit("hammer.input",La);sa.recognize(La);
sa.session.prevInput=La}
function ma(sa){for(var Ga=[],La=0;La<sa.pointers.length;La++)Ga[La]={clientX:Pc(sa.pointers[La].clientX),clientY:Pc(sa.pointers[La].clientY)};return{timeStamp:Vc(),pointers:Ga,center:Ba(Ga),deltaX:sa.deltaX,deltaY:sa.deltaY}}
function Ba(sa){var Ga=sa.length;if(Ga===1)return{x:Pc(sa[0].clientX),y:Pc(sa[0].clientY)};for(var La=0,mb=0,fc=0;fc<Ga;fc++)La+=sa[fc].clientX,mb+=sa[fc].clientY;return{x:Pc(La/Ga),y:Pc(mb/Ga)}}
function Da(sa,Ga){return sa===Ga?1:Db(sa)>=Db(Ga)?sa>0?2:4:Ga>0?8:16}
function za(sa,Ga,La){La||(La=Ye);var mb=Ga[La[0]]-sa[La[0]];sa=Ga[La[1]]-sa[La[1]];return Math.sqrt(mb*mb+sa*sa)}
function Fa(sa,Ga,La){La||(La=Ye);return Math.atan2(Ga[La[1]]-sa[La[1]],Ga[La[0]]-sa[La[0]])*180/Math.PI}
function bb(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;V.apply(this,arguments)}
function kb(){this.evEl=Qk;this.evWin=Zi;V.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function Ua(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};V.apply(this,arguments)}
function Fc(){V.apply(this,arguments);var sa=w(this.handler,this);this.touch=new Ua(this.manager,sa);this.mouse=new bb(this.manager,sa)}
function id(sa,Ga){this.manager=sa;this.set(Ga)}
function Mb(sa){if(sa.indexOf("none")>-1)return"none";var Ga=sa.indexOf("pan-x")>-1,La=sa.indexOf("pan-y")>-1;return Ga&&La?"pan-x pan-y":Ga||La?Ga?"pan-x":"pan-y":sa.indexOf("manipulation")>-1?"manipulation":"auto"}
function wd(sa){this.id=zd++;this.manager=null;this.options=t(sa||{},this.defaults);sa=this.options.enable;this.options.enable=sa===g?!0:sa;this.state=1;this.simultaneous={};this.requireFail=[]}
function Tb(sa){return sa==16?"down":sa==8?"up":sa==2?"left":sa==4?"right":""}
function tb(sa,Ga){return(Ga=Ga.manager)?Ga.get(sa):sa}
function Fb(){wd.apply(this,arguments)}
function dd(){Fb.apply(this,arguments);this.pY=this.pX=null}
function be(){Fb.apply(this,arguments)}
function ia(){wd.apply(this,arguments);this._input=this._timer=null}
function gc(){Fb.apply(this,arguments)}
function Pb(){Fb.apply(this,arguments)}
function Lc(){wd.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function qb(sa,Ga){Ga=Ga||{};var La=Ga.recognizers;Ga.recognizers=La===g?qb.defaults.preset:La;return new Ab(sa,Ga)}
function Ab(sa,Ga){Ga=Ga||{};this.options=t(Ga,qb.defaults);this.options.inputTarget=this.options.inputTarget||sa;this.handlers={};this.session={};this.recognizers=[];this.element=sa;this.input=fa(this);this.touchAction=new id(this,this.options.touchAction);Ya(this,!0);n(Ga.recognizers,function(La){var mb=this.add(new La[0](La[1]));La[2]&&mb.recognizeWith(La[2]);La[3]&&mb.requireFailure(La[2])},this)}
function Ya(sa,Ga){var La=sa.element;n(sa.options.cssProps,function(mb,fc){La.style[ca(La.style,fc)]=Ga?mb:""})}
function Oa(sa,Ga){var La=d.createEvent("Event");La.initEvent(sa,!0,!0);La.gesture=Ga;Ga.target.dispatchEvent(La)}
var pb=" webkit moz MS ms o".split(" "),Yb=d.createElement("div"),Pc=Math.round,Db=Math.abs,Vc=Date.now,zd=1,pm=/mobile|tablet|ip(ad|hone|od)|android/i,jd="ontouchstart"in c,Mf=ca(c,"PointerEvent")!==g,$o=jd&&pm.test(navigator.userAgent),Ye=["x","y"],Yg=["clientX","clientY"];V.prototype={handler:function(){},
destroy:function(){this.evEl&&G(this.element,this.evEl,this.domHandler);this.evTarget&&G(this.target,this.evTarget,this.domHandler);this.evWin&&G(c,this.evWin,this.domHandler)}};
var Ci={mousedown:1,mousemove:2,mouseup:4};u(bb,V,{handler:function(sa){var Ga=Ci[sa.type];Ga&1&&sa.button===0&&(this.pressed=!0);Ga&2&&sa.which!==1&&(Ga=4);this.pressed&&this.allow&&(Ga&4&&(this.pressed=!1),this.callback(this.manager,Ga,{pointers:[sa],changedPointers:[sa],pointerType:"mouse",srcEvent:sa}))}});
var nd={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},Xp={2:"touch",3:"pen",4:"mouse",5:"kinect"},Qk="pointerdown",Zi="pointermove pointerup pointercancel";c.MSPointerEvent&&(Qk="MSPointerDown",Zi="MSPointerMove MSPointerUp MSPointerCancel");u(kb,V,{handler:function(sa){var Ga=this.store,La=!1,mb=sa.type.toLowerCase().replace("ms","");mb=nd[mb];var fc=Xp[sa.pointerType]||sa.pointerType;mb&1&&(sa.button===0||fc=="touch")?Ga.push(sa):mb&12&&(La=!0);var fb=I(Ga,sa.pointerId,"pointerId");
fb<0||(Ga[fb]=sa,this.callback(this.manager,mb,{pointers:Ga,changedPointers:[sa],pointerType:fc,srcEvent:sa}),La&&Ga.splice(fb,1))}});
var Di={touchstart:1,touchmove:2,touchend:4,touchcancel:8};u(Ua,V,{handler:function(sa){var Ga=Di[sa.type];var La=Array.prototype.slice.call(sa.touches,0);var mb=this.targetIds;if(Ga&3&&La.length===1)mb[La[0].identifier]=!0,mb=[La,La];else{var fc,fb=Array.prototype.slice.call(sa.targetTouches,0),ib=Array.prototype.slice.call(sa.changedTouches,0),Qb=[];if(Ga===1)for(La=0,fc=fb.length;La<fc;La++)mb[fb[La].identifier]=!0;La=0;for(fc=ib.length;La<fc;La++)mb[ib[La].identifier]&&Qb.push(ib[La]),Ga&12&&
delete mb[ib[La].identifier];mb=Qb.length?[R(fb.concat(Qb),"identifier",!0),Qb]:void 0}mb&&this.callback(this.manager,Ga,{pointers:mb[0],changedPointers:mb[1],pointerType:"touch",srcEvent:sa})}});
u(Fc,V,{handler:function(sa,Ga,La){var mb=La.pointerType=="mouse";if(La.pointerType=="touch")this.mouse.allow=!1;else if(mb&&!this.mouse.allow)return;Ga&12&&(this.mouse.allow=!0);this.callback(sa,Ga,La)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var Ke=ca(Yb.style,"touchAction"),ap=Ke!==g;id.prototype={set:function(sa){sa=="compute"&&(sa=this.compute());ap&&(this.manager.element.style[Ke]=sa);this.actions=sa.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var sa=[];n(this.manager.recognizers,function(Ga){A(Ga.options.enable,[Ga])&&(sa=sa.concat(Ga.getTouchAction()))});
return Mb(sa.join(" "))},
preventDefaults:function(sa){if(!ap){var Ga=sa.srcEvent;sa=sa.offsetDirection;if(this.manager.session.prevented)Ga.preventDefault();else{var La=this.actions,mb=La.indexOf("none")>-1,fc=La.indexOf("pan-y")>-1;La=La.indexOf("pan-x")>-1;if(mb||fc&&La||fc&&sa&6||La&&sa&24)return this.preventSrc(Ga)}}},
preventSrc:function(sa){this.manager.session.prevented=!0;sa.preventDefault()}};
wd.prototype={defaults:{},set:function(sa){r(this.options,sa);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(sa){if(m(sa,"recognizeWith",this))return this;var Ga=this.simultaneous;sa=tb(sa,this);Ga[sa.id]||(Ga[sa.id]=sa,sa.recognizeWith(this));return this},
dropRecognizeWith:function(sa){if(m(sa,"dropRecognizeWith",this))return this;sa=tb(sa,this);delete this.simultaneous[sa.id];return this},
requireFailure:function(sa){if(m(sa,"requireFailure",this))return this;var Ga=this.requireFail;sa=tb(sa,this);I(Ga,sa)===-1&&(Ga.push(sa),sa.requireFailure(this));return this},
dropRequireFailure:function(sa){if(m(sa,"dropRequireFailure",this))return this;sa=tb(sa,this);sa=I(this.requireFail,sa);sa>-1&&this.requireFail.splice(sa,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(sa){return!!this.simultaneous[sa.id]},
emit:function(sa){function Ga(fc){La.manager.emit(La.options.event+(fc?mb&16?"cancel":mb&8?"end":mb&4?"move":mb&2?"start":"":""),sa)}
var La=this,mb=this.state;mb<8&&Ga(!0);Ga();mb>=8&&Ga(!0)},
tryEmit:function(sa){if(this.canEmit())return this.emit(sa);this.state=32},
canEmit:function(){for(var sa=0;sa<this.requireFail.length;sa++)if(!(this.requireFail[sa].state&33))return!1;return!0},
recognize:function(sa){sa=r({},sa);A(this.options.enable,[this,sa])?(this.state&56&&(this.state=1),this.state=this.process(sa),this.state&30&&this.tryEmit(sa)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
u(Fb,wd,{defaults:{pointers:1},attrTest:function(sa){var Ga=this.options.pointers;return Ga===0||sa.pointers.length===Ga},
process:function(sa){var Ga=this.state,La=sa.eventType,mb=Ga&6;sa=this.attrTest(sa);return mb&&(La&8||!sa)?Ga|16:mb||sa?La&4?Ga|8:Ga&2?Ga|4:2:32}});
u(dd,Fb,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var sa=this.options.direction;if(sa===30)return["none"];var Ga=[];sa&6&&Ga.push("pan-y");sa&24&&Ga.push("pan-x");return Ga},
directionTest:function(sa){var Ga=this.options,La=!0,mb=sa.distance,fc=sa.direction,fb=sa.deltaX,ib=sa.deltaY;fc&Ga.direction||(Ga.direction&6?(fc=fb===0?1:fb<0?2:4,La=fb!=this.pX,mb=Math.abs(sa.deltaX)):(fc=ib===0?1:ib<0?8:16,La=ib!=this.pY,mb=Math.abs(sa.deltaY)));sa.direction=fc;return La&&mb>Ga.threshold&&fc&Ga.direction},
attrTest:function(sa){return Fb.prototype.attrTest.call(this,sa)&&(this.state&2||!(this.state&2)&&this.directionTest(sa))},
emit:function(sa){this.pX=sa.deltaX;this.pY=sa.deltaY;var Ga=Tb(sa.direction);Ga&&this.manager.emit(this.options.event+Ga,sa);this._super.emit.call(this,sa)}});
u(be,Fb,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(sa){return this._super.attrTest.call(this,sa)&&(Math.abs(sa.scale-1)>this.options.threshold||this.state&2)},
emit:function(sa){this._super.emit.call(this,sa);sa.scale!==1&&this.manager.emit(this.options.event+(sa.scale<1?"in":"out"),sa)}});
u(ia,wd,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(sa){var Ga=this.options,La=sa.pointers.length===Ga.pointers,mb=sa.distance<Ga.threshold,fc=sa.deltaTime>Ga.time;this._input=sa;if(!mb||!La||sa.eventType&12&&!fc)this.reset();else if(sa.eventType&1)this.reset(),this._timer=k(function(){this.state=8;this.tryEmit()},Ga.time,this);
else if(sa.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(sa){this.state===8&&(sa&&sa.eventType&4?this.manager.emit(this.options.event+"up",sa):(this._input.timeStamp=Vc(),this.manager.emit(this.options.event,this._input)))}});
u(gc,Fb,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(sa){return this._super.attrTest.call(this,sa)&&(Math.abs(sa.rotation)>this.options.threshold||this.state&2)}});
u(Pb,Fb,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return dd.prototype.getTouchAction.call(this)},
attrTest:function(sa){var Ga=this.options.direction;if(Ga&30)var La=sa.velocity;else Ga&6?La=sa.velocityX:Ga&24&&(La=sa.velocityY);return this._super.attrTest.call(this,sa)&&Ga&sa.direction&&Db(La)>this.options.velocity&&sa.eventType&4},
emit:function(sa){var Ga=Tb(sa.direction);Ga&&this.manager.emit(this.options.event+Ga,sa);this.manager.emit(this.options.event,sa)}});
u(Lc,wd,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(sa){var Ga=this.options,La=sa.pointers.length===Ga.pointers,mb=sa.distance<Ga.threshold,fc=sa.deltaTime<Ga.time;this.reset();if(sa.eventType&1&&this.count===0)return this.failTimeout();if(mb&&fc&&La){if(sa.eventType!=4)return this.failTimeout();La=this.pTime?sa.timeStamp-this.pTime<Ga.interval:!0;mb=!this.pCenter||za(this.pCenter,sa.center)<Ga.posThreshold;this.pTime=sa.timeStamp;this.pCenter=sa.center;mb&&La?this.count+=1:this.count=1;this._input=sa;if(this.count%Ga.taps===0)return this.hasRequireFailures()?
(this._timer=k(function(){this.state=8;this.tryEmit()},Ga.interval,this),2):8}return 32},
failTimeout:function(){this._timer=k(function(){this.state=32},this.options.interval,this);
return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(){this.state==8&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});
qb.VERSION="2.0.2";qb.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[gc,{enable:!1}],[be,{enable:!1},["rotate"]],[Pb,{direction:6}],[dd,{direction:6},["swipe"]],[Lc],[Lc,{event:"doubletap",taps:2},["tap"]],[ia]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};Ab.prototype={set:function(sa){r(this.options,sa);return this},
stop:function(sa){this.session.stopped=sa?2:1},
recognize:function(sa){var Ga=this.session;if(!Ga.stopped){this.touchAction.preventDefaults(sa);var La=this.recognizers,mb=Ga.curRecognizer;if(!mb||mb&&mb.state&8)mb=Ga.curRecognizer=null;for(var fc=0,fb=La.length;fc<fb;fc++){var ib=La[fc];Ga.stopped===2||mb&&ib!=mb&&!ib.canRecognizeWith(mb)?ib.reset():ib.recognize(sa);!mb&&ib.state&14&&(mb=Ga.curRecognizer=ib)}}},
get:function(sa){if(sa instanceof wd)return sa;for(var Ga=this.recognizers,La=0;La<Ga.length;La++)if(Ga[La].options.event==sa)return Ga[La];return null},
add:function(sa){if(m(sa,"add",this))return this;var Ga=this.get(sa.options.event);Ga&&this.remove(Ga);this.recognizers.push(sa);sa.manager=this;this.touchAction.update();return sa},
remove:function(sa){if(m(sa,"remove",this))return this;var Ga=this.recognizers;sa=this.get(sa);Ga.splice(I(Ga,sa),1);this.touchAction.update();return this},
on:function(sa,Ga){var La=this.handlers;n(J(sa),function(mb){La[mb]=La[mb]||[];La[mb].push(Ga)});
return this},
off:function(sa,Ga){var La=this.handlers;n(J(sa),function(mb){Ga?La[mb].splice(I(La[mb],Ga),1):delete La[mb]});
return this},
emit:function(sa,Ga){this.options.domEvents&&Oa(sa,Ga);var La=this.handlers[sa]&&this.handlers[sa].slice();if(La&&La.length){Ga.type=sa;Ga.preventDefault=function(){Ga.srcEvent.preventDefault()};
sa=0;for(var mb=La.length;sa<mb;sa++)La[sa](Ga)}},
destroy:function(){this.element&&Ya(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
r(qb,{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:Ab,Input:V,TouchAction:id,Recognizer:wd,AttrRecognizer:Fb,Tap:Lc,Pan:dd,Swipe:Pb,Pinch:be,Rotate:gc,Press:ia,on:C,off:G,each:n,merge:t,extend:r,inherit:u,bindFn:w,prefixed:ca});
c[e]=qb})(window,document,"Hammer");
return window.Hammer}.call({});
b.DOCUMENT=a;a[gub]=b}return a[gub]};/*

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

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

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
*/
_.qr({_template:function(){if(Gvb!==void 0)return Gvb;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;Fvb===void 0&&(Fvb=document.createElement("template"));var d=Fvb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return Gvb=a},
is:"tp-yt-iron-autogrow-textarea",behaviors:[_.ID,_.CD],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(a){this.$.textarea.selectionStart=a},set selectionEnd(a){this.$.textarea.selectionEnd=a},attached:function(){navigator.userAgent.match(/iP(?:[oa]d|hone)/)&&!navigator.userAgent.match(/OS 1[3456789]/)&&(this.$.textarea.style.marginLeft=
"-3px")},
validate:function(){var a=this.$.textarea.validity.valid;a&&(this.required&&this.value===""?a=!1:this.hasValidator()&&(a=_.ID.validate.call(this,this.value)));this.invalid=!a;this.fire("iron-input-validate");return a},
_bindValueChanged:function(a){this.value=a},
_valueChanged:function(a){var b=this.textarea;b&&(b.value!==a&&(b.value=a||a===0?a:""),this.bindValue=a,this.$.mirror.textContent=this._valueForMirror(),this.fire("bind-value-changed",{value:this.bindValue}))},
_onInput:function(a){var b=_.xn(a).path;this.value=b?b[0].value:a.target.value},
_constrain:function(a){var b;a=a||[""];for(b=this.maxRows>0&&a.length>this.maxRows?a.slice(0,this.maxRows):a.slice(0);this.rows>0&&b.length<this.rows;)b.push("");return b.join("\n")+"\u00a0"},
_valueForMirror:function(){var a=this.textarea;if(a)return this.tokens=a&&a.value?a.value.split("\n"):[""],this._constrain(this.tokens)},
_updateCached:function(){this.$.mirror.textContent=this._constrain(this.tokens)}});var Hvb;var Ivb;_.qr({_template:function(){if(Ivb!==void 0)return Ivb;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);
var b=a.content,c=b.insertBefore;Hvb===void 0&&(Hvb=document.createElement("template"));var d=Hvb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return Ivb=a},
is:"tp-yt-iron-collapse",behaviors:[_.KD],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(a,b){a=a==="auto"?"":a;b=b&&!this.noAnimation&&this.isAttached&&this._desiredSize!==a;this._desiredSize=a;this._updateTransition(!1);b&&(b=this._calcSize(),a===""&&(this.style[this._dimensionMax]="",a=this._calcSize()),this.style[this._dimensionMax]=b,this.scrollTop=this.scrollTop,this._updateTransition(!0),b=a!==b);this.style[this._dimensionMax]=a;b||this._transitionEnd()},
enableTransition:function(a){_.CC._warn("`enableTransition()` is deprecated, use `noAnimation` instead.");this.noAnimation=!a},
_updateTransition:function(a){this.style.transitionDuration=a&&!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(a){_.xn(a).rootTarget===this&&this._transitionEnd()},
_calcSize:function(){return this.getBoundingClientRect()[this.dimension]+"px"}});var Jvb;var Kvb;var Lvb=void 0,Mvb={properties:{sizingTarget:{type:Object,value:function(){var a;return(a=this.hostElement)!=null?a: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 a,b=_.xn((a=this.hostElement)!=null?a:
this).parentNode;b&&b.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(b=b.host);return b},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 a;this._memoizedIsRTL=window.getComputedStyle((a=this.hostElement)!=null?a:this).direction=="rtl"}return this._memoizedIsRTL},
attached:function(){this.positionTarget=this.positionTarget||this._defaultPositionTarget;if(this.autoFitOnAttach){var a;window.getComputedStyle((a=this.hostElement)!=null?a: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 a,b=window.getComputedStyle((a=this.hostElement)!=null?a:this);a=window.getComputedStyle(this.sizingTarget);var c,d,e;this._fitInfo={inlineStyle:{top:((c=this.hostElement)!=null?c:this).style.top||"",left:((d=this.hostElement)!=null?d:this).style.left||"",position:((e=this.hostElement)!=null?e:this).style.position||""},sizerInlineStyle:{maxWidth:this.sizingTarget.style.maxWidth||"",maxHeight:this.sizingTarget.style.maxHeight||"",boxSizing:this.sizingTarget.style.boxSizing||
""},positionedBy:{vertically:b.top!=="auto"?"top":b.bottom!=="auto"?"bottom":null,horizontally:b.left!=="auto"?"left":b.right!=="auto"?"right":null},sizedBy:{height:a.maxHeight!=="none",width:a.maxWidth!=="none",minWidth:parseInt(a.minWidth,10)||0,minHeight:parseInt(a.minHeight,10)||0},margin:{top:parseInt(b.marginTop,10)||0,right:parseInt(b.marginRight,10)||0,bottom:parseInt(b.marginBottom,10)||0,left:parseInt(b.marginLeft,10)||0}}}},
resetFit:function(){var a=this._fitInfo||{},b;for(b in a.sizerInlineStyle)this.sizingTarget.style[b]=a.sizerInlineStyle[b];for(b in a.inlineStyle){var c=void 0;((c=this.hostElement)!=null?c:this).style[b]=a.inlineStyle[b]}this._fitInfo=null},
refit:function(){var a=this.sizingTarget.scrollLeft,b=this.sizingTarget.scrollTop;this.resetFit();this.fit();this.sizingTarget.scrollLeft=a;this.sizingTarget.scrollTop=b},
position:function(){if(this.__shouldPosition){this._discoverInfo();window.ShadyDOM&&window.ShadyDOM.flush();var a;((a=this.hostElement)!=null?a:this).style.position="fixed";this.sizingTarget.style.boxSizing="border-box";var b;((b=this.hostElement)!=null?b:this).style.left="0px";var c;((c=this.hostElement)!=null?c:this).style.top="0px";var d,e=((d=this.hostElement)!=null?d:this).getBoundingClientRect();b=this.__getNormalizedRect(this.positionTarget);d=this.__getNormalizedRect(this.fitInto);this.avoidOuterEdge&&
(d={left:d.left+24,right:d.right-24,top:d.top+24,bottom:d.bottom-24});if(this.expandSizingTargetForScrollbars){var g=this.sizingTarget.offsetWidth;var k=this.sizingTarget.offsetHeight;var m=this.sizingTarget.clientWidth;var n=this.sizingTarget.clientHeight}a=this._fitInfo.margin;b=this.__getPosition(this._localeHorizontalAlign,this.verticalAlign,{width:e.width+a.left+a.right,height:e.height+a.top+a.bottom},e,b,d);var r=b.left+a.left,t=b.top+a.top;c=Math.min(d.right-a.right,r+e.width);var u=Math.min(d.bottom-
a.bottom,t+e.height);r=Math.max(d.left+a.left,Math.min(r,c-this._fitInfo.sizedBy.minWidth));t=Math.max(d.top+a.top,Math.min(t,u-this._fitInfo.sizedBy.minHeight));c=Math.max(c-r,this._fitInfo.sizedBy.minWidth);u=Math.max(u-t,this._fitInfo.sizedBy.minHeight);this.sizingTarget.style.maxWidth=c+"px";this.sizingTarget.style.maxHeight=u+"px";r-=e.left;e=t-e.top;var w;((w=this.hostElement)!=null?w:this).style.left=r+"px";var A;((A=this.hostElement)!=null?A:this).style.top=e+"px";if(this.expandSizingTargetForScrollbars){w=
this.sizingTarget.offsetHeight;k=w-this.sizingTarget.clientHeight-(k-n);if(k>0){this.sizingTarget.style.maxHeight=Math.min(d.height-a.top-a.bottom,u+k)+"px";k=this.sizingTarget.offsetHeight;n=k-w;var C;b.verticalAlign==="top"?C=e:b.verticalAlign==="middle"?C=e-n/2:b.verticalAlign==="bottom"&&(C=e-n);C=Math.max(d.top+a.top,Math.min(C,d.bottom-a.bottom-k));var G;((G=this.hostElement)!=null?G:this).style.top=C+"px"}C=this.sizingTarget.offsetWidth;g=C-this.sizingTarget.clientWidth-(g-m);if(g>0){Lvb!==
void 0?m=Lvb:(m=document.createElement("div"),Object.assign(m.style,{overflow:"auto",position:"fixed",left:"0px",top:"0px",maxWidth:"100px",maxHeight:"100px"}),G=document.createElement("div"),G.style.width="200px",G.style.height="200px",m.appendChild(G),document.body.appendChild(m),Lvb=Math.abs(m.offsetWidth-100)>1?m.offsetWidth-m.clientWidth:0,document.body.removeChild(m),m=Lvb);this.sizingTarget.style.maxWidth=Math.min(d.width-a.left-a.right,c+g-m)+"px";g=this.sizingTarget.offsetWidth+m;m=g-C;var J;
b.horizontalAlign==="left"?J=r:b.horizontalAlign==="center"?J=r-m/2:b.horizontalAlign==="right"&&(J=r-m);J=Math.max(d.left+a.left,Math.min(J,d.right-a.right-g));var I;((I=this.hostElement)!=null?I:this).style.left=J+"px"}}}},
constrain:function(){if(!this.__shouldPosition){this._discoverInfo();var a=this._fitInfo;if(!a.positionedBy.vertically){var b;((b=this.hostElement)!=null?b:this).style.position="fixed";var c;((c=this.hostElement)!=null?c:this).style.top="0px"}if(!a.positionedBy.horizontally){var d;((d=this.hostElement)!=null?d:this).style.position="fixed";var e;((e=this.hostElement)!=null?e:this).style.left="0px"}this.sizingTarget.style.boxSizing="border-box";var g;b=((g=this.hostElement)!=null?g:this).getBoundingClientRect();
a.sizedBy.height||this.__sizeDimension(b,a.positionedBy.vertically,"top","bottom","Height");a.sizedBy.width||this.__sizeDimension(b,a.positionedBy.horizontally,"left","right","Width")}},
_sizeDimension:function(a,b,c,d,e){this.__sizeDimension(a,b,c,d,e)},
__sizeDimension:function(a,b,c,d,e){var g=this._fitInfo,k=this.__getNormalizedRect(this.fitInto);k=e==="Width"?k.width:k.height;a=(b=b===d)?k-a[d]:a[c];c=g.margin[b?c:d];d="offset"+e;var m;g=((m=this.hostElement)!=null?m:this)[d]-this.sizingTarget[d];this.sizingTarget.style["max"+e]=k-c-a-g+"px"},
center:function(){if(!this.__shouldPosition){this._discoverInfo();var a=this._fitInfo.positionedBy;if(!a.vertically||!a.horizontally){var b;((b=this.hostElement)!=null?b:this).style.position="fixed";if(!a.vertically){var c;((c=this.hostElement)!=null?c:this).style.top="0px"}if(!a.horizontally){var d;((d=this.hostElement)!=null?d:this).style.left="0px"}var e;b=((e=this.hostElement)!=null?e:this).getBoundingClientRect();e=this.__getNormalizedRect(this.fitInto);if(!a.vertically){c=e.top-b.top+(e.height-
b.height)/2;var g;((g=this.hostElement)!=null?g:this).style.top=c+"px"}if(!a.horizontally){a=e.left-b.left+(e.width-b.width)/2;var k;((k=this.hostElement)!=null?k:this).style.left=a+"px"}}}},
__getNormalizedRect:function(a){return a===document.documentElement||a===window?{top:0,left:0,width:window.innerWidth,height:window.innerHeight,right:window.innerWidth,bottom:window.innerHeight}:a.getBoundingClientRect()},
__getOffscreenArea:function(a,b,c){return Math.abs(Math.min(0,a.top)+Math.min(0,c.bottom-(a.top+b.height)))*b.width+Math.abs(Math.min(0,a.left)+Math.min(0,c.right-(a.left+b.width)))*b.height},
__getPosition:function(a,b,c,d,e,g){var k=[{verticalAlign:"top",horizontalAlign:"left",top:e.top+this.verticalOffset,left:e.left+this.horizontalOffset},{verticalAlign:"top",horizontalAlign:"right",top:e.top+this.verticalOffset,left:e.right-c.width-this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"left",top:e.bottom-c.height-this.verticalOffset,left:e.left+this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"right",top:e.bottom-c.height-this.verticalOffset,left:e.right-c.width-
this.horizontalOffset}];if(this.noOverlap){for(var m=0,n=k.length;m<n;m++){var r={},t;for(t in k[m])r[t]=k[m][t];k.push(r)}k[0].top=k[1].top+=e.height;k[2].top=k[3].top-=e.height;k[4].left=k[6].left+=e.width;k[5].left=k[7].left-=e.width}b=b==="auto"?null:b;a=a==="auto"?null:a;a&&a!=="center"||(k.push({verticalAlign:"top",horizontalAlign:"center",top:e.top+this.verticalOffset+(this.noOverlap?e.height:0),left:e.left-d.width/2+e.width/2+this.horizontalOffset}),k.push({verticalAlign:"bottom",horizontalAlign:"center",
top:e.bottom-c.height-this.verticalOffset-(this.noOverlap?e.height:0),left:e.left-d.width/2+e.width/2+this.horizontalOffset}));b&&b!=="middle"||(k.push({verticalAlign:"middle",horizontalAlign:"left",top:e.top-d.height/2+e.height/2+this.verticalOffset,left:e.left+this.horizontalOffset+(this.noOverlap?e.width:0)}),k.push({verticalAlign:"middle",horizontalAlign:"right",top:e.top-d.height/2+e.height/2+this.verticalOffset,left:e.right-c.width-this.horizontalOffset-(this.noOverlap?e.width:0)}));b==="middle"&&
a==="center"&&k.push({verticalAlign:"middle",horizontalAlign:"center",top:e.top-d.height/2+e.height/2+this.verticalOffset,left:e.left-d.width/2+e.width/2+this.horizontalOffset});for(m=0;m<k.length;m++){d=k[m];e=d.verticalAlign===b;n=d.horizontalAlign===a;if(!this.dynamicAlign&&!this.noOverlap&&e&&n){var u=d;break}r=(!b||e)&&(!a||n);if(this.dynamicAlign||r){d.offscreenArea=this.__getOffscreenArea(d,c,g);if(d.offscreenArea===0&&r){u=d;break}u=u||d;r=d.offscreenArea-u.offscreenArea;if(r<0||r===0&&(e||
n))u=d}}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 UD,Nvb,Ovb;UD=Element.prototype;Nvb=UD.matches||UD.matchesSelector||UD.mozMatchesSelector||UD.msMatchesSelector||UD.oMatchesSelector||UD.webkitMatchesSelector;Ovb=function(){};
_.Qvb=function(a){var b=Pvb,c=[];return b._collectTabbableNodes(a,c)?b._sortByTabIndex(c):c};
_.f=Ovb.prototype;_.f._normalizedTabIndex=function(a){return(Nvb.call(a,"input, select, textarea, button, object")?Nvb.call(a,":not([disabled])"):Nvb.call(a,"a[href], area[href], iframe, [tabindex], [contentEditable]"))?(a=a.getAttribute("tabindex")||0,Number(a)):-1};
_.f._collectTabbableNodes=function(a,b){if(a.nodeType!==Node.ELEMENT_NODE||!this._isVisible(a))return!1;var c=this._normalizedTabIndex(a),d=c>0;c>=0&&b.push(a);if(a.localName==="content"||a.localName==="slot")c=_.xn(a).getDistributedNodes();else{var e;c=((e=_.xn(a).shadowRoot)!=null?e:_.xn(a.root||a)).children}for(a=0;a<c.length;a++)d=this._collectTabbableNodes(c[a],b)||d;return d};
_.f._isVisible=function(a){var b=a.style;return b.visibility!=="hidden"&&b.display!=="none"?(b=window.getComputedStyle(a),b.visibility!=="hidden"&&b.display!=="none"):!1};
_.f._sortByTabIndex=function(a){var b=a.length;if(b<2)return a;var c=Math.ceil(b/2);b=this._sortByTabIndex(a.slice(0,c));a=this._sortByTabIndex(a.slice(c));return this._mergeSortByTabIndex(b,a)};
_.f._mergeSortByTabIndex=function(a,b){for(var c=[];a.length>0&&b.length>0;)this._hasLowerTabOrder(a[0],b[0])?c.push(b.shift()):c.push(a.shift());return c.concat(a,b)};
_.f._hasLowerTabOrder=function(a,b){a=Math.max(a.tabIndex,0);b=Math.max(b.tabIndex,0);return a===0||b===0?b>a:a>b};
var Pvb=new Ovb;var Rvb;var Svb;_.qr({_template:function(){if(Svb!==void 0)return Svb;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;Rvb===void 0&&(Rvb=document.createElement("template"));var d=Rvb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return Svb=a},
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&&_.xn(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.xn(this.parentNode).removeChild(this)},
_onTransitionend:function(a){a&&a.target===this&&this.complete()},
_openedChanged:function(a){a?this.prepare():(a=window.getComputedStyle(this),a.transitionDuration!=="0s"&&a.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 VD=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;Cm(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)};
VD.prototype._bringOverlayAtIndexToFront=function(a){var b=this._overlays[a];if(b){var c=this._overlays.length-1,d=this._overlays[c];d&&this._shouldBeBehindOverlay(b,d)&&c--;if(!(a>=c)){d=Math.max(this._getZ(_.Tvb(this)),this._minimumZ);for(this._getZ(b)<=d&&this._applyOverlayZ(b,d);a<c;)this._overlays[a]=this._overlays[a+1],a++;this._overlays[c]=b}}};
VD.prototype.addOverlay=function(a){var b=this._overlays.indexOf(a);if(b>=0)this._bringOverlayAtIndexToFront(b);else{b=this._overlays.length;var c=this._overlays[b-1],d=Math.max(this._getZ(c),this._minimumZ),e=this._getZ(a);c&&this._shouldBeBehindOverlay(a,c)&&(this._applyOverlayZ(c,d),b--,d=Math.max(this._getZ(this._overlays[b-1]),this._minimumZ));e<=d&&this._applyOverlayZ(a,d);this._overlays.splice(b,0,a)}this.trackBackdrop()};
VD.prototype.removeOverlay=function(a){a=this._overlays.indexOf(a);a!==-1&&(this._overlays.splice(a,1),this.trackBackdrop())};
_.Tvb=function(a){return a._overlays[a._overlays.length-1]};
_.f=VD.prototype;_.f.trackBackdrop=function(){var a=this._overlayWithBackdrop();if(a||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(a)-1,this.backdropElement.opened=!!a,this.backdropElement.prepare()};
_.f._overlayWithBackdrop=function(){for(var a=this._overlays.length-1;a>=0;a--)if(this._overlays[a].withBackdrop)return this._overlays[a]};
_.f._getZ=function(a){var b=this._minimumZ;if(a){var c,d,e=Number(((c=a.hostElement)!=null?c:a).style.zIndex||window.getComputedStyle((d=a.hostElement)!=null?d:a).zIndex);e===e&&(b=e)}return b};
_.f._setZ=function(a,b){var c;((c=a.hostElement)!=null?c:a).style.zIndex=b};
_.f._applyOverlayZ=function(a,b){this._setZ(a,b+2)};
_.f._overlayInPath=function(a){a=a||[];for(var b=0;b<a.length;b++){var c=void 0;if(((c=a[b].polymerController)!=null?c:a[b])._manager===this)return a[b]}};
_.f._onCaptureClick=function(a){var b=this._overlays.length-1;if(b!==-1)for(var c=_.xn(a).path,d,e;(d=this._overlays[b])&&this._overlayInPath(c)!==((e=d.hostElement)!=null?e:d);)if(d._onCaptureClick(a),d.allowClickThrough)b--;else break};
_.f._onCaptureFocus=function(a){var b=_.Tvb(this);b&&b._onCaptureFocus(a)};
_.f._onCaptureKeyDown=function(a){var b=_.Tvb(this);b&&(_.BD.keyboardEventMatchesKeys(a,"esc")?b._onCaptureEsc(a):_.BD.keyboardEventMatchesKeys(a,"tab")&&b._onCaptureTab(a))};
_.f._shouldBeBehindOverlay=function(a,b){return!a.alwaysOnTop&&b.alwaysOnTop&&!b.contains(a)};
_.Vm.Object.defineProperties(VD.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 a=document.activeElement;a&&a instanceof Element!==!1||(a=document.body);for(;a.root&&_.xn(a.root).activeElement;)a=_.xn(a.root).activeElement;return a}}});
_.WD=new VD;var bAa=0,cAa=0,dAa=null,eAa=[],yn=["wheel","mousewheel","DOMMouseScroll"],fAa;_.x("web_no_lock_on_touchstart_killswitch")&&(yn.push("touchstart"),yn.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;_.XD={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:_.WD},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var a;return this._focusedChild||_.xn((a=this.hostElement)!=null?a:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var a;return _.Qvb((a=this.hostElement)!=null?a: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 a;this._observer=_.xn((a=this.hostElement)!=null?a:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var a;_.xn((a=this.hostElement)!=null?a:this).unobserveNodes(this._observer)}this._observer=null;for(var b in this.__rafs)this.__rafs[b]!==null&&cancelAnimationFrame(this.__rafs[b]);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(a){this.fire("iron-overlay-canceled",a,{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 a;((a=this.hostElement)!=null?a:this).style.outline="none";var b;((b=this.hostElement)!=null?b:this).style.display="none"}},
_openedChanged:function(a){if(a){var b;((b=this.hostElement)!=null?b:this).removeAttribute("aria-hidden")}else{var c;((c=this.hostElement)!=null?c: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 a;if(this.withBackdrop&&!((a=this.hostElement)!=null?a:this).hasAttribute("tabindex")){var b;((b=this.hostElement)!=null?b:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var c;((c=this.hostElement)!=null?c: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 a;((a=this.hostElement)!=null?a:this).style.display="none";var b;((b=this.hostElement)!=null?b:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var a,b;((a=this.hostElement)!=null?a:this).style.transition=((b=this.hostElement)!=null?b:this).style.webkitTransition="none";var c,d;((c=this.hostElement)!=null?c:this).style.transform=((d=this.hostElement)!=null?d:this).style.webkitTransform="none";var e;((e=this.hostElement)!=null?e:this).style.display=""},
_finishPositioning:function(){var a;((a=this.hostElement)!=null?a:this).style.display="none";this.scrollTop=this.scrollTop;var b,c;((b=this.hostElement)!=null?b:this).style.transition=((c=this.hostElement)!=null?c:this).style.webkitTransition="";var d,e;((d=this.hostElement)!=null?d:this).style.transform=((e=this.hostElement)!=null?e:this).style.webkitTransform="";var g;((g=this.hostElement)!=null?g:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var a=this._manager.deepActiveElement,b;if(!(b=a===document.body))a:{for(;a;a=a.assignedSlot||a.parentNode||a.host)if(a===this){b=!0;break a}b=!1}b&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(a){this.noCancelOnOutsideClick||this.cancel(a)},
_onCaptureFocus:function(a){if(this.withBackdrop){var b=_.xn(a).path;b.indexOf(this)===-1?(a.stopPropagation(),this._applyFocus()):this._focusedChild=b[0]}},
_onCaptureEsc:function(a){this.noCancelOnEscKey||this.cancel(a)},
_onCaptureTab:function(a){if(this.withBackdrop){this.__ensureFirstLastFocusables();var b=a.shiftKey,c=b?this.__firstFocusableNode:this.__lastFocusableNode;b=b?this.__lastFocusableNode:this.__firstFocusableNode;if(c===b)c=!0;else{var d=this._manager.deepActiveElement;c=d===c||d===this}c&&(a.preventDefault(),this._focusedChild=b,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 a=this._focusableNodes;this.__firstFocusableNode=a[0];this.__lastFocusableNode=a[a.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(a,b){var c=this.__rafs;c[a]!==null&&cancelAnimationFrame(c[a]);c[a]=requestAnimationFrame(function(){c[a]=null;b.call(this)}.bind(this))},
__updateScrollObservers:function(a,b,c){a&&b&&this.__isValidScrollAction(c)?(c==="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),fAa=_._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()):(a=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),a!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(a,1),fAa=_._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(Im)for(var a=this;a;)a.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&a.host&&this.__rootNodes.push(a),a=a.host||a.assignedSlot||a.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(b){b.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(a){a.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(a){return a==="lock"||a==="refit"||a==="cancel"},
__onCaptureScroll:function(a){if(!(this.__isAnimating||_.xn(a).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(a)}},
__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)}};
_.YD=[Mvb,_.KD,_.XD];_.qr({_template:function(){if(Kvb!==void 0)return Kvb;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;Jvb===void 0&&(Jvb=document.createElement("template"));var d=Jvb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return Kvb=a},
is:"tp-yt-iron-dropdown",behaviors:[_.CD,_.BD,_.YD,zub],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 a=_.xn(this.$.content).getDistributedNodes(),b=0,c=a.length;b<c;b++)if(a[b].nodeType===Node.ELEMENT_NODE)return a[b]},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(),_.XD._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.XD._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.XD._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var a=this.containedElement,b=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),c=0;c<b.length;c++)b[c].node=a;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(a){this._readied&&(a?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var a=this.focusTarget||this.containedElement;a&&this.opened&&!this.noAutoFocus?a.focus():_.XD._applyFocus.apply(this,arguments)}});var Uvb;var Vvb;/*

Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
SPDX-License-Identifier: BSD-3-Clause
*/
var Wvb=new _.GD({type:"iconset"});
_.qr({_template:function(){if(Vvb!==void 0)return Vvb;var a=document.createElement("template");_.B(a,"\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");a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;Uvb===void 0&&(Uvb=document.createElement("template"));
var d=Uvb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return Vvb=a},
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(a){a=(a||"").split(":");this._iconName=a.pop();this._iconsetName=a.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&&_.xn(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=Wvb.byKey(this._iconsetName)){var a=this._iconset.applyIcon(this,this._iconName,this.theme);a&&a.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,_.xn(this.root).appendChild(this._img)}});var Xvb;var Yvb;_.qr({_template:function(){if(Yvb!==void 0)return Yvb;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);
var b=a.content,c=b.insertBefore;Xvb===void 0&&(Xvb=document.createElement("template"));var d=Xvb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return Yvb=a},
is:"tp-yt-iron-input",behaviors:[_.ID],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(){_.TD.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.xn(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.xn(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 a=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":a=/[0-9.,e-]/}return a},_bindValueChanged:function(a,b){b&&(a===void 0?b.value=null:a!==b.value&&(this.inputElement.value=a),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:a}))},
_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(a){var b=a.keyCode==19||a.keyCode==20||a.keyCode==45||a.keyCode==46||a.keyCode==144||a.keyCode==145||a.keyCode>32&&a.keyCode<41||a.keyCode>111&&a.keyCode<124;return!(a.keyCode==8||a.keyCode==9||a.keyCode==13||a.keyCode==27)&&!(a.charCode==0&&b)},
_onKeypress:function(a){if(this.allowedPattern||this.inputElement.type==="number"){var b=this._patternRegExp;if(b&&!(a.metaKey||a.ctrlKey||a.altKey)){this._patternAlreadyChecked=!0;var c=String.fromCharCode(a.charCode);this._isPrintable(a)&&!b.test(c)&&(a.preventDefault(),this._announceInvalidCharacter("Invalid character "+c+" not entered."))}}},
_checkPatternValidity:function(){var a=this._patternRegExp;if(!a)return!0;for(var b=0;b<this.inputElement.value.length;b++)if(!a.test(this.inputElement.value[b]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var a=this.inputElement.checkValidity();a&&(this.required&&this.bindValue===""?a=!1:this.hasValidator()&&(a=_.ID.validate.call(this,this.bindValue)));this.invalid=!a;this.fire("iron-input-validate");return a},
_announceInvalidCharacter:function(a){this.fire("iron-announce",{text:a})},
_computeValue:function(a){return a}});var Zvb;var $vb;var awb=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),bwb=awb&&awb[1]>=8;
_.qr({_template:function(){if($vb!==void 0)return $vb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-list--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_list.tp.yt.iron.list.css.js--\x3e<array-selector id="selector" items="{{items}}" selected="{{selectedItems}}" selected-item="{{selectedItem}}" class="style-scope tp-yt-iron-list"></array-selector>\n\n<div id="items" class="style-scope tp-yt-iron-list">\n  <slot class="style-scope tp-yt-iron-list"></slot>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;Zvb===void 0&&(Zvb=document.createElement("template"));var d=Zvb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return $vb=a},
is:"tp-yt-iron-list",properties:{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},selectedAs:{type:String,value:"selected"},grid:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_gridChanged"},selectionEnabled:{type:Boolean,value:!1},selectedItem:{type:Object,notify:!0},selectedItems:{type:Object,notify:!0},multiSelection:{type:Boolean,value:!1},scrollOffset:{type:Number,value:0}},observers:["_itemsChanged(items.*)","_selectionEnabledChanged(selectionEnabled)",
"_multiSelectionChanged(multiSelection)","_setOverflow(scrollTarget, scrollOffset)"],behaviors:[WKa,_.KD,_.yub,nqb],_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 _.xn(_.xn(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var a=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,a-this._physicalCount)},set _virtualStart(a){a=this._clamp(a,0,this._maxVirtualStart);this.grid&&(a-=a%this._itemsPerRow);this._virtualStartVal=a},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(a){a%=this._physicalCount;a<0&&(a=this._physicalCount+a);this.grid&&(a-=a%this._itemsPerRow);this._physicalStartVal=a},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(a){this._physicalCountVal=a},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 a=this._firstVisibleIndexVal;if(a==null){var b=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
a=this._iterateItems(function(c,d){b+=this._getPhysicalSizeIncrement(c);if(b>this._scrollPosition)return this.grid?d-d%this._itemsPerRow:d;if(this.grid&&this._virtualCount-1===d)return d-d%this._itemsPerRow})||0}return a},
get lastVisibleIndex(){var a=this._lastVisibleIndexVal;if(a==null){if(this.grid)a=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var b=this._physicalTop+this._scrollOffset;this._iterateItems(function(c,d){b<this._scrollBottom&&(a=d);b+=this._getPhysicalSizeIncrement(c)})}this._lastVisibleIndexVal=a}return a},
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,_.ts);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(a){this.style.webkitOverflowScrolling=a===this?"touch":"";this.style.overflowY=a===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.ts)},
updateViewportBoundaries:function(){var a=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(a["padding-top"],10);this._isRTL=a.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var a=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),b=a-this._scrollPosition,c=b>=0;this._scrollPosition=a;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(b)>this._physicalSize&&this._physicalSize>0?(b-=this._scrollOffset,c=Math.round(b/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=c,this._physicalStart+=c,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(a=this._getReusables(c),c?(this._physicalTop=a.physicalTop,this._virtualStart+=a.indexes.length,this._physicalStart+=a.indexes.length):(this._virtualStart=this._virtualStart-a.indexes.length,this._physicalStart=this._physicalStart-a.indexes.length),this._update(a.indexes,c?null:a.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),Fm))},
_getReusables:function(a){var b=[],c=this._hiddenContentSize*this._ratio,d=this._virtualStart,e=this._virtualEnd,g=this._physicalCount,k=this._physicalTop+this._scrollOffset;var m=this._physicalBottom+this._scrollOffset;var n=this._scrollPosition,r=this._scrollBottom;if(a){var t=this._physicalStart;m=n-k}else t=this._physicalEnd,m-=r;for(;;){var u=this._getPhysicalSizeIncrement(t);m-=u;if(b.length>=g||m<=c)break;if(a){if(e+b.length+1>=this._virtualCount)break;if(k+u>=n-this._scrollOffset)break;b.push(t);
k+=u;t=(t+1)%g}else{if(d-b.length<=0)break;if(k+this._physicalSize-u<=r)break;b.push(t);k-=u;t=t===0?g-1:t-1}}return{indexes:b,physicalTop:k-this._scrollOffset}},
_update:function(a,b){if(!(a&&a.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(a);this._updateMetrics(a);if(b)for(;b.length;)a=b.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(a);this._positionItems();this._updateScrollerSize()}},
_createPool:function(a){this._ensureTemplatized();var b,c=Array(a);for(b=0;b<a;b++){var d=this.stamp(null);c[b]=d.root.querySelector("*");this._itemsParent.appendChild(d.root)}return c},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(a){a=this._clamp(this._physicalCount+a,3,this._virtualCount-this._virtualStart);a=this._convertIndexToCompleteRow(a);if(this.grid){var b=a%this._itemsPerRow;b&&a-b<=this._physicalCount&&(a+=this._itemsPerRow);a-=b}a-=this._physicalCount;b=Math.round(this._physicalCount*.5);if(!(a<0)){if(a>0){b=window.performance.now();[].push.apply(this._physicalItems,this._createPool(a));for(var c=0;c<a;c++)this._physicalSizes.push(0);this._physicalCount+=a;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=a);this._update();this._templateCost=(window.performance.now()-b)/a;b=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||b===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,b)),Wob):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,b),Fm))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var a=this._getReusables(!0);this._physicalTop=a.physicalTop;this._virtualStart+=a.indexes.length;this._physicalStart+=a.indexes.length;this._update(a.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 a={__key__:!0};a[this.as]=!0;a[this.indexAs]=!0;a[this.selectedAs]=!0;a.tabIndex=!0;this._instanceProps=a;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(a,b){typeof b!=="undefined"&&(this.notifyResize(),_.sC(),a&&this._updateGridMetrics())},
_itemsChanged:function(a){if(a.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,
_.ts);else if(a.path==="items.splices"){this._adjustVirtualIndex(a.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(a.value.indexSplices.some(function(c){return c.addedCount>0||c.removed.length>0})){var b=this._getActiveElement();
this.contains(b)&&b.blur()}a=a.value.indexSplices.some(function(c){return c.index+c.addedCount>=this._virtualStart&&c.index<=this._virtualEnd},this);
this._isClientFull()&&!a||this._debounce("_render",this._render,_.ts)}else a.path!=="items.length"&&this._forwardItemPath(a.path,a.value)},
_forwardItemPath:function(a,b){a=a.slice(6);var c=a.indexOf(".");c===-1&&(c=a.length);var d,e=this.modelForElement(this._offscreenFocusedItem),g=parseInt(a.substring(0,c),10);if(d=this._isIndexRendered(g)){var k=this._getPhysicalIndex(g);var m=this.modelForElement(this._physicalItems[k])}else e&&(m=e);m&&m[this.indexAs]===g&&(a=a.substring(c+1),a=this.as+(a?"."+a:""),m._setPendingPropertyOrPath(a,b,!1,!0),m._flushProperties&&m._flushProperties(),d&&(this._updateMetrics([k]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(a){a.forEach(function(b){b.removed.forEach(this._removeItem,this);b.index<this._virtualStart&&(b=Math.max(b.addedCount-b.removed.length,b.index-this._virtualStart),this._virtualStart+=b,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=b))},this)},
_removeItem:function(a){this.$.selector.deselect(a);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===a&&this._removeFocusedItem()},
_iterateItems:function(a,b){var c,d;if(arguments.length===2&&b)for(d=0;d<b.length;d++){var e=b[d];var g=this._computeVidx(e);if((c=a.call(this,e,g))!=null)return c}else{e=this._physicalStart;for(g=this._virtualStart;e<this._physicalCount;e++,g++)if((c=a.call(this,e,g))!=null)return c;for(e=0;e<this._physicalStart;e++,g++)if((c=a.call(this,e,g))!=null)return c}},
_computeVidx:function(a){return a>=this._physicalStart?this._virtualStart+(a-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+a},
_assignModels:function(a){this._iterateItems(function(b,c){var d=this._physicalItems[b],e=this.items&&this.items[c];if(e!=null){var g=this.modelForElement(d);g.__key__=null;this._forwardProperty(g,this.as,e);this._forwardProperty(g,this.selectedAs,this.$.selector.isSelected(e));this._forwardProperty(g,this.indexAs,c);this._forwardProperty(g,"tabIndex",this._focusedVirtualIndex===c?0:-1);this._physicalIndexForKey[g.__key__]=b;g._flushProperties&&g._flushProperties(!0);d.removeAttribute("hidden")}else d.setAttribute("hidden",
"")},a)},
_updateMetrics:function(a){_.sC();var b=0,c=0,d=this._physicalAverageCount,e=this._physicalAverage;this._iterateItems(function(g){c+=this._physicalSizes[g];this._physicalSizes[g]=this._physicalItems[g].offsetHeight;b+=this._physicalSizes[g];this._physicalAverageCount+=this._physicalSizes[g]?1:0},a);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(c=this._itemsPerRow===1?c:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+b-c,this._itemsPerRow=1);this._physicalAverageCount!==d&&(this._physicalAverage=Math.round((e*d+b)/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 a=this._physicalTop;if(this.grid){var b=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(c,d){var e=Math.floor(d%this._itemsPerRow*this._itemWidth+b);this._isRTL&&(e*=-1);this.translate3d(e+"px",a+"px",0,this._physicalItems[c]);this._shouldRenderNextRow(d)&&(a+=this._rowHeight)})}else this._iterateItems(function(c){this.translate3d(0,a+"px",0,this._physicalItems[c]);
a+=this._physicalSizes[c]})},
_getPhysicalSizeIncrement:function(a){return this.grid?this._computeVidx(a)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[a]},
_shouldRenderNextRow:function(a){return a%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var a=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(a!==0){this._physicalTop=this._physicalTop-a;var b=this._scrollPosition;!bwb&&b>0&&this._resetScrollPosition(b-a)}},
_resetScrollPosition:function(a){this.scrollTarget&&a>=0&&(this._scrollPosition=this._scrollTop=a)},
_updateScrollerSize:function(a){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((a=(a=(a=a||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(a){return this.scrollToIndex(this.items.indexOf(a))},
scrollToIndex:function(a){if(!(typeof a!=="number"||a<0||a>this.items.length-1)&&(_.sC(),this._physicalCount!==0)){a=this._clamp(a,0,this._virtualCount-1);if(!this._isIndexRendered(a)||a>=this._maxVirtualStart)this._virtualStart=this.grid?a-this._itemsPerRow*2:a-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var b=this._physicalStart,c=this._virtualStart,d=0,e=this._hiddenContentSize;c<a&&
d<=e;)d+=this._getPhysicalSizeIncrement(b),b=(b+1)%this._physicalCount,c++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+d);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)},_.ts)},
selectItem:function(a){return this.selectIndex(this.items.indexOf(a))},
selectIndex:function(a){if(!(a<0||a>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(a)){var b=this.modelForElement(this._physicalItems[this._getPhysicalIndex(a)]);b&&(b[this.selectedAs]=!0);this.updateSizeForIndex(a)}this.$.selector.selectIndex(a)}},
deselectItem:function(a){return this.deselectIndex(this.items.indexOf(a))},
deselectIndex:function(a){a<0||a>=this._virtualCount||(this._isIndexRendered(a)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(a)])[this.selectedAs]=!1,this.updateSizeForIndex(a)),this.$.selector.deselectIndex(a))},
toggleSelectionForItem:function(a){return this.toggleSelectionForIndex(this.items.indexOf(a))},
toggleSelectionForIndex:function(a){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(a):this.$.selector.isSelected(this.items[a]))?this.deselectIndex(a):this.selectIndex(a)},
clearSelection:function(){this._iterateItems(function(a){this.modelForElement(this._physicalItems[a])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(a){(a?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(a){var b=this.modelForElement(a.target);if(b){var c=_.xn(a).path[0];a=this._getActiveElement();var d=this._physicalItems[this._getPhysicalIndex(b[this.indexAs])];if(c.localName!=="input"&&c.localName!=="button"&&c.localName!=="select"){c=b.tabIndex;b.tabIndex=-100;var e=a?a.tabIndex:-1;b.tabIndex=c;a&&d!==a&&d.contains(a)&&e!==-100||this.toggleSelectionForItem(b[this.as])}}},
_multiSelectionChanged:function(a){this.clearSelection();this.$.selector.multi=a},
updateSizeForItem:function(a){return this.updateSizeForIndex(this.items.indexOf(a))},
updateSizeForIndex:function(a){if(!this._isIndexRendered(a))return null;this._updateMetrics([this._getPhysicalIndex(a)]);this._positionItems();return null},
_manageFocus:function(){var a=this._focusedVirtualIndex;a>=0&&a<this._virtualCount?this._isIndexRendered(a)?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(a){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(a/this._itemsPerRow)*this._itemsPerRow:a},
_isIndexRendered:function(a){return a>=this._virtualStart&&a<=this._virtualEnd},
_isIndexVisible:function(a){return a>=this.firstVisibleIndex&&a<=this.lastVisibleIndex},
_getPhysicalIndex:function(a){return(this._physicalStart+(a-this._virtualStart))%this._physicalCount},
focusItem:function(a){this._focusPhysicalItem(a)},
_focusPhysicalItem:function(a){if(!(a<0||a>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(a)||this.scrollToIndex(a);var b=this._physicalItems[this._getPhysicalIndex(a)],c=this.modelForElement(b),d;c.tabIndex=-100;b.tabIndex===-100&&(d=b);d||(d=_.xn(b).querySelector('[tabindex="-100"]'));c.tabIndex=0;this._focusedVirtualIndex=a;d&&d.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 a=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var b=this.stamp(null);this._focusBackfillItem=b.root.querySelector("*");this._itemsParent.appendChild(b.root)}this._offscreenFocusedItem=this._physicalItems[a];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[a]=this._focusBackfillItem;this._focusedPhysicalIndex=a;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var a=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),b=this._physicalItems[a];if(b){var c=this.modelForElement(b),d=this.modelForElement(this._offscreenFocusedItem);c[this.as]===d[this.as]?(this._focusBackfillItem=b,c.tabIndex=-1,this._physicalItems[a]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(a){a=this.modelForElement(a.target);var b=this.modelForElement(this._focusedItem),c=this._offscreenFocusedItem!==null,d=this._focusedVirtualIndex;a&&(b===a?this._isIndexVisible(d)||this.scrollToIndex(d):(this._restoreFocusedItem(),b&&(b.tabIndex=-1),a.tabIndex=0,this._focusedVirtualIndex=d=a[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(d),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],c&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(a){switch(a.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&a.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&&a.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(a)}},
_clamp:function(a,b,c){return Math.min(c,Math.max(b,a))},
_debounce:function(a,b,c){this._debouncers=this._debouncers||{};this._debouncers[a]=_.nC(this._debouncers[a],c,b.bind(this));_.oC(this._debouncers[a])},
_forwardProperty:function(a,b,c){a._setPendingProperty(b,c)},
_forwardHostPropV2:function(a,b){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(c){c&&this.modelForElement(c).forwardHostProp(a,b)},this)},
_notifyInstancePropV2:function(a,b,c){qva(this.as,b)&&(a=a[this.indexAs],b==this.as&&(this.items[a]=c),this.notifyPath(km(this.as,"items."+a,b),c))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(a,b,c){b.indexOf(this.as+".")===0&&this.notifyPath("items."+a.__key__+"."+b.slice(this.as.length+1),c)},
_forwardParentPath:function(a,b){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(c){c&&this.modelForElement(c).notifyPath(a,b)},this)},
_forwardParentProp:function(a,b){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(c){c&&(this.modelForElement(c)[a]=b)},this)},
_getActiveElement:function(){var a=this._itemsParent.node.domHost;return _.xn(a?a.root:document).activeElement},
_scrollTargetChanged:function(a,b){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(b)if(a==="document")this.scrollTarget=this._doc;else if(typeof a==="string"){var c,d;this.scrollTarget=(b=(d=(c=this.domHost)==null?void 0:c.polymerController)!=null?d:this.domHost)&&b.$?b.$[a]:_.xn(this.ownerDocument).querySelector("#"+a)}else this._isValidScrollTarget()&&(this._oldScrollTarget=a,this._toggleScrollListener(this._shouldHaveListener,a))}});var cwb;var dwb;var ewb=function(a,b,c,d){a-=c;b-=d;return Math.sqrt(a*a+b*b)},fwb=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
gAa.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var hAa=function(a){a.maxRadius=0;a.mouseDownStart=0;a.mouseUpStart=0;a.xStart=0;a.yStart=0;a.xEnd=0;a.yEnd=0;a.containerMetrics=new gAa(a.element)};
iAa.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var a=fwb()-this.mouseDownStart;this.mouseUpStart&&(a-=this.mouseUpElapsed);return a},get mouseUpElapsed(){return this.mouseUpStart?fwb()-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 a=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(a*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-a/300*.2))))),this.maxRadius,300)},get opacity(){return this.mouseUpStart?Math.max(0,this.initialOpacity-
this.mouseUpElapsedSeconds*this.opacityDecayVelocity):this.initialOpacity},get outerOpacity(){return Math.max(0,Math.min(this.mouseUpElapsedSeconds*.3,this.opacity))},get isOpacityFullyDecayed(){return this.opacity<.01&&this.radius>=Math.min(this.maxRadius,300)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,300)},get isAnimationComplete(){return this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius},get translationFraction(){return Math.min(1,
this.radius/this.containerMetrics.size*2/Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFraction*(this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStart+this.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown(){return this.mouseDownStart&&!this.mouseUpStart},draw:function(){this.wave.style.opacity=this.opacity;var a=this.radius/(this.containerMetrics.size/2);var b=this.xNow-this.containerMetrics.width/2;var c=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+b+"px, "+c+"px)";this.waveContainer.style.transform="translate3d("+b+"px, "+c+"px, 0)";this.wave.style.webkitTransform="scale("+a+","+a+")";this.wave.style.transform="scale3d("+a+","+a+",1)"},
downAction:function(a){var b=this.containerMetrics.width/2,c=this.containerMetrics.height/2;hAa(this);this.mouseDownStart=fwb();this.center?(this.xStart=b,this.yStart=c):(this.xStart=a?a.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=a?a.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=b,this.yEnd=c);a=this.containerMetrics;b=this.xStart;c=this.yStart;this.maxRadius=Math.max(ewb(b,c,0,0),ewb(b,c,
a.width,0),ewb(b,c,0,a.height),ewb(b,c,a.width,a.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=fwb())},
remove:function(){_.xn(_.xn(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.qr({_template:function(){if(dwb!==void 0)return dwb;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;cwb===void 0&&(cwb=document.createElement("template"));var d=cwb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return dwb=a},
is:"tp-yt-paper-ripple",behaviors:[_.BD],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(){_.xn(this).parentNode.nodeType==11?this.keyEventTarget=_.xn(this).getOwnerRoot().host:this.keyEventTarget=_.xn(this).parentNode;var a=this.keyEventTarget;this.listen(a,"up","uiUpAction");this.listen(a,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(a){a.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var a=0;a<this.ripples.length;++a)if(!this.ripples[a].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(a){this.noink||this.downAction(a)},
downAction:function(a){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(a),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(a){this.noink||this.upAction(a)},
upAction:function(a){this.holdDown||(this.ripples.forEach(function(b){b.upAction(a)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var a=0;a<this.ripples.length;++a){var b=this.ripples[a];b.isOpacityFullyDecayed&&!b.isRestingAtMaxRadius&&this.removeRipple(b)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var a=new iAa(this);_.xn(this.$.waves).appendChild(a.waveContainer);this.$.background.style.backgroundColor=a.color;this.ripples.push(a);this._setAnimating(!0);return a},
removeRipple:function(a){var b=this.ripples.indexOf(a);b<0||(this.ripples.splice(b,1),a.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var a;for(a=0;a<this.ripples.length;++a){var b=this.ripples[a];b.draw();this.$.background.style.opacity=b.outerOpacity;b.isOpacityFullyDecayed&&!b.isRestingAtMaxRadius&&this.removeRipple(b)}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(a,b){b!==void 0&&(a?this.downAction():this.upAction())}});var ZD={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(a){DD._downHandler.call(this,a);this.pressed&&this.ensureRipple(a)},
ensureRipple:function(a){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var b=this._rippleContainer||this.root;b&&_.xn(b).appendChild(this._ripple);if(a){b=_.xn(this._rippleContainer||this);var c=_.xn(a).rootTarget;b.deepContains(c)&&this._ripple.uiDownAction(a)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(a){this.hasRipple()&&(this._ripple.noink=a)}};var gwb={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 a=1;this.disabled?a=0:this.active||this.pressed?a=4:this.receivedFocusFromKeyboard&&(a=3);this._setElevation(a)},
_computeKeyboardClass:function(a){this.toggleClass("keyboard-focus",a)},
_spaceKeyDownHandler:function(a){DD._spaceKeyDownHandler.call(this,a);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(a){DD._spaceKeyUpHandler.call(this,a);this.hasRipple()&&this._ripple.uiUpAction()}},hwb=[nub,
_.CD,ZD,gwb];_.iwb={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(a){a&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=a)},
_createRipple:function(){var a=ZD._createRipple();a.id="ink";a.setAttribute("center","");a.classList.add("circle");return a}};
_.jwb=[nub,_.CD,ZD,_.iwb];_.kwb=[_.jwb,qub,{_checkedChanged:function(){pub._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){ZD._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var lwb;var mwb;var nwb=function(){};
_.f=nwb.prototype;_.f.registered=function(){};
_.f.addOwnKeyBinding=function(){};
_.f.removeOwnKeyBindings=function(){};
_.f.keyboardEventMatchesKeys=function(){};
_.f._collectKeyBindings=function(){};
_.f._prepKeyBindings=function(){};
_.f._addKeyBinding=function(){};
_.f._resetKeyEventListeners=function(){};
_.f._listenKeyEventListeners=function(){};
_.f._unlistenKeyEventListeners=function(){};
_.f._onKeyBindingEvent=function(){};
_.f._triggerKeyHandler=function(){};
_.f._tapHandler=function(){};
_.f._focusChanged=function(){};
_.f._detectKeyboardFocus=function(){};
_.f._userActivate=function(){};
_.f._upHandler=function(){};
_.f._asyncClick=function(){};
_.f._pressedChanged=function(){};
_.f._ariaActiveAttributeChanged=function(){};
_.f._activeChanged=function(){};
_.f._controlStateChanged=function(){};
_.f._changedButtonState=function(){};
_.f._focusBlurHandler=function(){};
_.f._disabledChanged=function(){};
_.f._changedControlState=function(){};
_.f._buttonStateChanged=function(){};
_.f._downHandler=function(){};
_.f.ensureRipple=function(){};
_.f.getRipple=function(){};
_.f.hasRipple=function(){};
_.f._createRipple=function(){};
_.f._noinkChanged=function(){};
_.f._computeKeyboardClass=function(){};
_.f._spaceKeyDownHandler=function(){};
_.f._spaceKeyUpHandler=function(){};
_.f._setPressed=function(){};
_.f._setPointerDown=function(){};
_.f._setReceivedFocusFromKeyboard=function(){};
_.f._setFocused=function(){};
_.f._setElevation=function(){};
nwb=_.qr({_template:function(){if(mwb!==void 0)return mwb;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);
var b=a.content,c=b.insertBefore;lwb===void 0&&(lwb=document.createElement("template"));var d=lwb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return mwb=a},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[hwb],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?gwb._calculateElevation.apply(this):this._setElevation(0)}});var owb;var pwb;var qwb={hostAttributes:{role:"dialog",tabindex:"-1"},properties:{modal:{type:Boolean,value:!1},modern:{type:Boolean,value:!1,reflectToAttribute:!0},__readied:{type:Boolean,value:!1}},observers:["_modalChanged(modal, __readied)"],listeners:{tap:"_onDialogTap",click:"_onDialogClickWrapped"},_onDialogTap:function(a){_.x("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(a)},
_onDialogClickWrapped:function(a){_.x("dialog_behavior_no_tap_killswitch")||this._onDialogClick(a)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(a,b){b&&(a?(this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick,this.__prevNoCancelOnEscKey=this.noCancelOnEscKey,this.__prevWithBackdrop=this.withBackdrop,this.withBackdrop=this.noCancelOnEscKey=this.noCancelOnOutsideClick=!0,this.setAttribute("aria-modal","true")):(this.noCancelOnOutsideClick=this.noCancelOnOutsideClick&&this.__prevNoCancelOnOutsideClick,this.noCancelOnEscKey=this.noCancelOnEscKey&&this.__prevNoCancelOnEscKey,this.withBackdrop=this.withBackdrop&&
this.__prevWithBackdrop))},
_updateClosingReasonConfirmed:function(a){this.closingReason=this.closingReason||{};this.closingReason.confirmed=a},
_onDialogClick:function(a){for(var b=_.xn(a).path,c=0,d,e=b.indexOf((d=this.hostElement)!=null?d:this);c<e;c++)if(d=b[c],d.hasAttribute&&(d.hasAttribute("dialog-dismiss")||d.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(d.hasAttribute("dialog-confirm"));this.close();a.stopPropagation();break}}},rwb=[_.YD,
qwb];var swb=document.createElement("template");_.B(swb,'<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(swb.content);var twb=document.createElement("template");_.B(twb,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(twb.content);_.qr({_template:function(){if(pwb!==void 0)return pwb;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);
var b=a.content,c=b.insertBefore;owb===void 0&&(owb=document.createElement("template"));var d=owb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return pwb=a},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[rwb,zub],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 uwb;var vwb;_.qr({_template:function(){if(vwb!==void 0)return vwb;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;uwb===void 0&&(uwb=document.createElement("template"));var d=uwb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return vwb=a},
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 a,b,c;if(((a=window.ShadyDOM)==null?void 0:a.noPatch)!==!0&&((b=window.ShadyDOM)==null?void 0:b.noPatch)!=="on-demand"||((c=this.__shady_parentNode)==null?void 0:c.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(qwb)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var wwb=_.cx(['<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>']),xwb=_.spb(wwb);xwb.setAttribute("style","display: none;");document.head.appendChild(xwb.content);var ywb;var zwb;var Awb;var Bwb;_.qr({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[LD],configure:function(a){var b=a.node,c=b.getBoundingClientRect().height;return this._effect=new KeyframeEffect(b,[{height:c/2+"px"},{height:c+"px"}],this.timingFromConfig(a))}});
_.qr({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[LD],configure:function(a){var b=a.node,c=b.getBoundingClientRect().width;return this._effect=new KeyframeEffect(b,[{width:c/2+"px"},{width:c+"px"}],this.timingFromConfig(a))}});
_.qr({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[LD],configure:function(a){var b=a.node,c=b.getBoundingClientRect().width;return this._effect=new KeyframeEffect(b,[{width:c+"px"},{width:c-c/20+"px"}],this.timingFromConfig(a))}});
_.qr({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[LD],configure:function(a){var b=a.node,c=b.getBoundingClientRect().height;this.setPrefixedProperty(b,"transformOrigin","0 0");return this._effect=new KeyframeEffect(b,[{height:c+"px",transform:"translateY(0)"},{height:c/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(a))}});var $D={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},Cwb=function(){};
_.f=Cwb.prototype;_.f.registered=function(){};
_.f.addOwnKeyBinding=function(){};
_.f.removeOwnKeyBindings=function(){};
_.f.keyboardEventMatchesKeys=function(){};
_.f._collectKeyBindings=function(){};
_.f._prepKeyBindings=function(){};
_.f._addKeyBinding=function(){};
_.f._resetKeyEventListeners=function(){};
_.f._listenKeyEventListeners=function(){};
_.f._unlistenKeyEventListeners=function(){};
_.f._onKeyBindingEvent=function(){};
_.f._triggerKeyHandler=function(){};
_.f._focusBlurHandler=function(){};
_.f._changedControlState=function(){};
_.f._setFocused=function(){};
Cwb=_.qr({_template:function(){if(Bwb!==void 0)return Bwb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-menu-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_menu_button.tp.yt.paper.menu.button.css.js--\x3e<div id="trigger" on-tap="toggle" class="style-scope tp-yt-paper-menu-button">\n  <slot name="dropdown-trigger" class="style-scope tp-yt-paper-menu-button"></slot>\n</div>\n\n<tp-yt-iron-dropdown id="dropdown" opened="{{opened}}" horizontal-align="[[horizontalAlign]]" vertical-align="[[verticalAlign]]" dynamic-align="[[dynamicAlign]]" horizontal-offset="[[horizontalOffset]]" vertical-offset="[[verticalOffset]]" no-overlap="[[noOverlap]]" open-animation-config="[[openAnimationConfig]]" close-animation-config="[[closeAnimationConfig]]" no-animations="[[noAnimations]]" focus-target="[[_dropdownContent]]" allow-outside-scroll="[[allowOutsideScroll]]" restore-focus-on-close="[[restoreFocusOnClose]]" on-iron-overlay-canceled="__onIronOverlayCanceled" expand-sizing-target-for-scrollbars="[[expandSizingTargetForScrollbars]]" class="style-scope tp-yt-paper-menu-button">\n  <div slot="dropdown-content" class="dropdown-content style-scope tp-yt-paper-menu-button">\n    <slot id="content" name="dropdown-content" class="style-scope tp-yt-paper-menu-button"></slot>\n  </div>\n</tp-yt-iron-dropdown>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;Awb===void 0&&(Awb=document.createElement("template"));var d=Awb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return Bwb=a},
is:"tp-yt-paper-menu-button",behaviors:[_.BD,_.CD],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:$D.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:$D.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:$D.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-shrink-height-animation",timing:{duration:200,easing:"ease-in"}}]}},
allowOutsideScroll:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!0},expandSizingTargetForScrollbars:{type:Boolean,value:!1},_dropdownContent:{type:Object}},hostAttributes:{role:"group","aria-haspopup":"true"},listeners:{"iron-activate":"_onIronActivate","iron-select":"_onIronSelect"},get contentElement(){for(var a=_.xn(this.$.content).getDistributedNodes(),b=0,c=a.length;b<c;b++)if(a[b].nodeType===Node.ELEMENT_NODE)return a[b]},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(a,b){a?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):b!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(a){_.CD._disabledChanged.apply(this,arguments);a&&this.opened&&this.close()},
__onIronOverlayCanceled:function(a){var b=this.$.trigger;_.xn(a.detail).path.indexOf(b)>-1&&a.preventDefault()}});
Object.keys($D).forEach(function(a){Cwb[a]=$D[a]});var Dwb=_.ED.IronButtonState,Ewb=(0,_.BC)(HTMLElement);
_.qr({_template:function(){if(zwb!==void 0)return zwb;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;ywb===void 0&&(ywb=document.createElement("template"));var d=ywb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return zwb=a},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[Dwb,_.CD,ZD,_.FD,_.ID],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(a){var b=(0,_.qm)(this);b.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:a});b.shadowRoot.appendChild(a);return Ewb.prototype._attachDom.call(this,a)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var a=this.contentElement;a&&a.selectedItem&&this._setSelectedItem(a.selectedItem)},
get contentElement(){for(var a=_.xn(this.$.content).getDistributedNodes(),b=0,c=a.length;b<c;b++)if(a[b].nodeType===Node.ELEMENT_NODE)return a[b]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(a){this._setSelectedItem(a.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(a){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a)===this&&this.open()},
_selectedItemChanged:function(a){var b="";a?b=a.label||a.getAttribute("label")||a.textContent.trim():b="";this.value=b;this._setSelectedItemLabel(b)},
_computeMenuVerticalOffset:function(a,b){return b?b:a?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var a=this.opened?"true":"false",b=this.contentElement;b&&b.setAttribute("aria-expanded",a)},
_computeLabelClass:function(a,b,c){var d="label";if(a)c&&(d+=" label-is-hidden");else if(c||b)d+=" label-is-floating";return d},
_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 Fwb;var Gwb;_.qr({is:"tp-yt-paper-icon-button",_template:function(){if(Gwb!==void 0)return Gwb;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;Fwb===void 0&&(Fwb=document.createElement("template"));var d=Fwb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return Gwb=a},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.jwb],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(a,b){var c=this.getAttribute("aria-label");c&&b!=c||this.setAttribute("aria-label",a)}});var Hwb;var Iwb;_.aE=[nub,_.CD,{hostAttributes:{role:"option",tabindex:"0"}}];_.qr({_template:function(){if(Iwb!==void 0)return Iwb;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;Hwb===void 0&&(Hwb=document.createElement("template"));var d=Hwb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return Iwb=a},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.aE]});var Jwb;var Kwb;var Lwb={attached:function(){this.fire("addon-attached")},
update:function(){}};var Mwb=1,Nwb=1,Owb=1,Pwb=[_.CD,_.BD,{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();!gC&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(a,b){a?a=a+" "+b:a=b;return a},
_onAddonAttached:function(a){a=_.xn(a).rootTarget;if(a.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,a.id);else{var b="paper-input-add-on-"+Nwb++;a.id=b;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,b)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(a){_.CD._focusBlurHandler.call(this,a);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var a=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",a);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(a){try{var b=this.inputElement.selectionStart;this.value=a;this.inputElement.selectionStart=b;this.inputElement.selectionEnd=b}catch(c){this.value=a}},
_computeAlwaysFloatLabel:function(a,b){return b||a},
_updateAriaLabelledBy:function(){var a=_.xn(this.root).querySelector("label");if(a){if(a.id)var b=a.id;else b="paper-input-label-"+Mwb++,a.id=b;this._ariaLabelledBy=b}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+Owb++)},
_onChange:function(a){this.shadowRoot&&this.fire(a.type,{sourceEvent:a},{node:this,bubbles:a.bubbles,cancelable:a.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var a=document.activeElement;a instanceof HTMLElement&&a!==document.body&&a!==document.documentElement||this._focusableElement.focus()}}}];var Qwb;var Rwb;_.qr({_template:function(){if(Rwb!==void 0)return Rwb;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;Qwb===void 0&&(Qwb=document.createElement("template"));var d=Qwb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return Rwb=a},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[Lwb],properties:{_charCounterStr:{type:String,value:"0"}},update:function(a){if(a.inputElement){a.value=a.value||"";var b=a.value.toString().length.toString();a.inputElement.hasAttribute("maxlength")&&(b+="/"+a.inputElement.getAttribute("maxlength"));this._charCounterStr=b}}});var Swb;var Twb;_.qr({_template:function(){if(Twb!==void 0)return Twb;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;Swb===void 0&&(Swb=document.createElement("template"));var d=Swb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return Twb=a},
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 fm(this.attrForValue)},get _inputElement(){return _.xn(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(a){this._addons||(this._addons=[]);a=a.target;this._addons.indexOf(a)===-1&&(this._addons.push(a),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(a){this._handleValueAndAutoValidate(a.target)},
_onValueChanged:function(a){var b=a.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,b.value===void 0||b.value===""))return;this._handleValueAndAutoValidate(a.target)},
_handleValue:function(a){var b=this._inputElementValue;b||b===0||a.type==="number"&&!a.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:a,value:b,invalid:this.invalid})},
_handleValueAndAutoValidate:function(a){this.autoValidate&&a&&(this.invalid=!(a.validate?a.validate(this._inputElementValue):a.checkValidity()));this._handleValue(a)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(a){if(this._addons)for(var b,c=0;b=this._addons[c];c++)b.update(a)},
_computeInputContentClass:function(a,b,c,d,e){var g="input-content";a?(e&&(g+=" label-is-hidden"),d&&!this.noUnfloatedLabelError&&(g+=" is-invalid")):(a=this.querySelector("label"),b||e?(g+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",d?g+=" is-invalid":c&&(g+=" label-is-highlighted")):(a&&(this.$.labelAndInputContainer.style.position="relative"),d&&!this.noUnfloatedLabelError&&(g+=" is-invalid")));c&&(g+=" focused");return g},
_computeUnderlineClass:function(a,b){var c="underline";b?c+=" is-invalid":a&&(c+=" is-highlighted");return c},
_computeAddOnContentClass:function(a,b){var c="add-on-content";b?c+=" is-invalid":a&&(c+=" is-highlighted");return c}});var Uwb;var Vwb;_.qr({_template:function(){if(Vwb!==void 0)return Vwb;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;Uwb===void 0&&(Uwb=document.createElement("template"));var d=Uwb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return Vwb=a},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[Lwb],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(a){this._setInvalid(a.invalid)}});_.qr({is:"tp-yt-paper-input",_template:function(){if(Kwb!==void 0)return Kwb;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;Jwb===void 0&&(Jwb=document.createElement("template"));var d=Jwb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return Kwb=a},
behaviors:[Pwb,_.FD],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 Wwb;var Xwb;_.qr({_template:function(){if(Xwb!==void 0)return Xwb;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=
a.content,c=b.insertBefore;Wwb===void 0&&(Wwb=document.createElement("template"));var d=Wwb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return Xwb=a},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.aE]});var Ywb;var Zwb;_.qr({_template:function(){if(Zwb!==void 0)return Zwb;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);
var b=a.content,c=b.insertBefore;Ywb===void 0&&(Ywb=document.createElement("template"));var d=Ywb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return Zwb=a},
is:"tp-yt-paper-item-body"});var $wb;var axb;var bxb=function(){};
_.f=bxb.prototype;_.f.indexOf=function(){};
_.f.selectPrevious=function(){};
_.f.selectNext=function(){};
_.f.selectIndex=function(){};
_.f.forceSynchronousItemUpdate=function(){};
_.f._checkFallback=function(){};
_.f._addListener=function(){};
_.f._removeListener=function(){};
_.f._activateEventChanged=function(){};
_.f._updateItems=function(){};
_.f._selectSelected=function(){};
_.f._filterItem=function(){};
_.f._valueToItem=function(){};
_.f._valueToIndex=function(){};
_.f._indexToValue=function(){};
_.f._valueForItem=function(){};
_.f._observeItems=function(){};
_.f._itemActivate=function(){};
_.f.multiChanged=function(){};
_.f._updateAttrForSelected=function(){};
_.f._updateSelected=function(){};
_.f._selectMulti=function(){};
_.f._selectionChange=function(){};
_.f._toggleSelected=function(){};
_.f._valuesToItems=function(){};
_.f.registered=function(){};
_.f.addOwnKeyBinding=function(){};
_.f.removeOwnKeyBindings=function(){};
_.f.keyboardEventMatchesKeys=function(){};
_.f._collectKeyBindings=function(){};
_.f._prepKeyBindings=function(){};
_.f._addKeyBinding=function(){};
_.f._resetKeyEventListeners=function(){};
_.f._listenKeyEventListeners=function(){};
_.f._unlistenKeyEventListeners=function(){};
_.f._onKeyBindingEvent=function(){};
_.f._triggerKeyHandler=function(){};
_.f.select=function(){};
_.f._resetTabindices=function(){};
_.f._updateMultiselectable=function(){};
_.f._focusWithKeyboardEvent=function(){};
_.f._clearSearchText=function(){};
_.f._focusPrevious=function(){};
_.f._focusNext=function(){};
_.f._applySelection=function(){};
_.f._focusedItemChanged=function(){};
_.f._onIronItemsChanged=function(){};
_.f._onShiftTabDown=function(){};
_.f._onFocus=function(){};
_.f._onUpKey=function(){};
_.f._onDownKey=function(){};
_.f._onEscKey=function(){};
_.f._onKeydown=function(){};
_.f._activateHandler=function(){};
_.f._disabledChanged=function(){};
_.f._setSelectedItem=function(){};
_.f._setItems=function(){};
_.f._setSelectedItems=function(){};
_.f._setFocusedItem=function(){};
bxb=_.qr({_template:function(){if(axb!==void 0)return axb;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);
var b=a.content,c=b.insertBefore;$wb===void 0&&($wb=document.createElement("template"));var d=$wb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return axb=a},
is:"tp-yt-paper-listbox",behaviors:[uub],hostAttributes:{role:"listbox"}});var cxb;var dxb;var exb={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(a,b){return[a||b?"active":"",b?"cooldown":""].join(" ")},
__activeChanged:function(a,b){this.__setAriaHidden(!a);this.__coolingDown=!a&&b},
__altChanged:function(a){this.setAttribute("aria-label",a||"loading")},
__setAriaHidden:function(a){a?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.qr({_template:function(){if(dxb!==void 0)return dxb;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;cxb===void 0&&(cxb=document.createElement("template"));var d=cxb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return dxb=a},
is:"tp-yt-paper-spinner",behaviors:[exb]});var fxb;var gxb;_.qr({_template:function(){if(gxb!==void 0)return gxb;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;fxb===void 0&&(fxb=document.createElement("template"));var d=fxb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return gxb=a},
is:"tp-yt-paper-spinner-lite",behaviors:[exb]});var hxb;var ixb;_.qr({_template:function(){if(ixb!==void 0)return ixb;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;hxb===void 0&&(hxb=document.createElement("template"));var d=hxb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return ixb=a},
is:"tp-yt-paper-tab",behaviors:[_.CD,_.ED.IronButtonState,ZD],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 a=_.xn(this).parentNode;return!!a&&!!a.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(a){if(this.link){var b=this.queryEffectiveChildren("a");b&&a.target!==b&&b.click()}}});var jxb;var kxb;var lxb=_.cx(['<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>']),mxb=_.spb(lxb);document.head.appendChild(mxb.content);_.qr({_template:function(){if(kxb!==void 0)return kxb;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;jxb===void 0&&(jxb=document.createElement("template"));var d=jxb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return kxb=a},
is:"tp-yt-paper-tabs",behaviors:[_.KD,_.wub],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(a){_.xn(this).querySelectorAll("tp-yt-paper-tab").forEach(a?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(a){a.setAttribute("noink","")},
_removeNoinkAttribute:function(a){a.removeAttribute("noink")},
_computeScrollButtonClass:function(a,b,c,d){return!b||c?"hidden":a?d?"hidden":"not-visible":""},
_computeTabsContentClass:function(a,b){var c="tabs-content";a&&(c+=" scrollable");if(!a||b)c+=" fit-container";return c},
_computeSelectionBarClass:function(a,b){var c="selection-bar";a?c+=" hidden":b&&(c+=" align-bottom");return c},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(a){return""+a},
_onIronSelect:function(a){this._tabChanged(a.detail.item,this._previousTab);this._previousTab=a.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();JD._activateHandler.apply(this,arguments)},
_scheduleActivation:function(a,b){this._pendingActivationItem=a;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,b)},
_delayedActivationHandler:function(){var a=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;a.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(a){a.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(a,b){this.scrollable&&this._affectScroll(b&&-b.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(a){this.$.tabsContainer.scrollLeft+=a;a=this.$.tabsContainer.scrollLeft;this._leftHidden=a===0||this.hideScrollButtons;this._rightHidden=a===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(a,b){if(a){var c=this.$.tabsContent.getBoundingClientRect(),d=c.width,e=a.getBoundingClientRect();c=e.left-c.left;this._pos={width:this._calcPercent(e.width,d),left:this._calcPercent(c,d)};if(this.noSlide||b==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var g=b.getBoundingClientRect();b=this.items.indexOf(b);a=this.items.indexOf(a);this.$.selectionBar.classList.add("expand");
a=b<a;this._isRTL&&(a=!a);a?this._positionBar(this._calcPercent(e.left+e.width-g.left,d)-5,this._left):this._positionBar(this._calcPercent(g.left+g.width-e.left,d)-5,this._calcPercent(c,d)+5);this.scrollable&&this._scrollToSelectedIfNeeded(e.width,c)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(a,b){b-=this.$.tabsContainer.scrollLeft;b<0?this.$.tabsContainer.scrollLeft+=b:(b+=a-this.$.tabsContainer.offsetWidth,b>0&&(this.$.tabsContainer.scrollLeft+=b))},
_calcPercent:function(a,b){return 100*a/b},
_positionBar:function(a,b){a=a||0;b=b||0;this._width=a;this._left=b;this.transform("translateX("+b+"%) scaleX("+a/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var a=this.$.selectionBar.classList;a.contains("expand")?(a.remove("expand"),a.add("contract"),this._positionBar(this._pos.width,this._pos.left)):a.contains("contract")&&a.remove("contract")}});var nxb;var oxb;_.qr({_template:function(){if(oxb!==void 0)return oxb;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;nxb===void 0&&(nxb=document.createElement("template"));var d=nxb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return oxb=a},
is:"tp-yt-paper-textarea",behaviors:[Pwb,_.FD],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(a){this.$.input.textarea.selectionStart=a},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(a){this.$.input.textarea.selectionEnd=a},_ariaLabelledByChanged:function(a){this._focusableElement.setAttribute("aria-labelledby",a)},
_ariaDescribedByChanged:function(a){this._focusableElement.setAttribute("aria-describedby",a)},
get _focusableElement(){return this.inputElement.textarea}});var pxb;var qxb;/*

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 rxb=function(){};
_.f=rxb.prototype;_.f.addOwnKeyBinding=function(){};
_.f.removeOwnKeyBindings=function(){};
_.f.keyboardEventMatchesKeys=function(){};
_.f._collectKeyBindings=function(){};
_.f._prepKeyBindings=function(){};
_.f._addKeyBinding=function(){};
_.f._resetKeyEventListeners=function(){};
_.f._listenKeyEventListeners=function(){};
_.f._unlistenKeyEventListeners=function(){};
_.f._onKeyBindingEvent=function(){};
_.f._triggerKeyHandler=function(){};
_.f._tapHandler=function(){};
_.f._focusChanged=function(){};
_.f._detectKeyboardFocus=function(){};
_.f._userActivate=function(){};
_.f._upHandler=function(){};
_.f._spaceKeyDownHandler=function(){};
_.f._spaceKeyUpHandler=function(){};
_.f._asyncClick=function(){};
_.f._pressedChanged=function(){};
_.f._ariaActiveAttributeChanged=function(){};
_.f._activeChanged=function(){};
_.f._controlStateChanged=function(){};
_.f._changedButtonState=function(){};
_.f._focusBlurHandler=function(){};
_.f._disabledChanged=function(){};
_.f._changedControlState=function(){};
_.f._downHandler=function(){};
_.f.ensureRipple=function(){};
_.f.getRipple=function(){};
_.f.hasRipple=function(){};
_.f._noinkChanged=function(){};
_.f._focusedChanged=function(){};
_.f.registered=function(){};
_.f._invalidChanged=function(){};
_.f.hasValidator=function(){};
_.f.validate=function(){};
_.f._getValidity=function(){};
_.f._requiredChanged=function(){};
_.f._valueChanged=function(){};
_.f._checkedChanged=function(){};
_.f._buttonStateChanged=function(){};
_.f._setPressed=function(){};
_.f._setPointerDown=function(){};
_.f._setReceivedFocusFromKeyboard=function(){};
_.f._setFocused=function(){};
rxb=_.qr({is:"tp-yt-paper-toggle-button",_template:function(){if(qxb!==void 0)return qxb;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;pxb===void 0&&(pxb=document.createElement("template"));var d=pxb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return qxb=a},
behaviors:[_.kwb],hostAttributes:{role:"button","aria-pressed":"false",tabindex:0},properties:{},listeners:{track:"_ontrack"},__calculateIsRtl:function(){return window.getComputedStyle(this).direction==="rtl"},
attached:function(){this.__calculateIsRtl()&&this.setAttribute("dir","rtl");_.Tm(this,function(){_.Em(this,"pan-y")})},
_ontrack:function(a){a=a.detail;a.state==="start"?this._trackStart(a):a.state==="track"?this._trackMove(a):a.state==="end"&&this._trackEnd(a)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(a){a=a.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+a:a)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+a:a));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 a=ZD._createRipple();a.id="ink";a.setAttribute("recenters","");a.classList.add("circle","toggle-ink");return a}});var sxb;var txb;_.qr({_template:function(){if(txb!==void 0)return txb;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;sxb===void 0&&(sxb=document.createElement("template"));var d=sxb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return txb=a},
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 a=_.xn(this).parentNode,b=_.xn(this).getOwnerRoot(),c;this.for?c=_.xn(b).querySelector("#"+this.for):c=a.nodeType==Node.DOCUMENT_FRAGMENT_NODE?b.host:a;return c},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(a){a==="entry"?this.show():a==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.xn(this).textContent.trim()===""){for(var a=!0,b=_.xn(this).getEffectiveChildNodes(),c=0;c<b.length;c++)if(b[c].textContent.trim()!==""){a=!1;break}if(a)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 a=this.offset;this.marginTop!=14&&this.offset==14&&(a=this.marginTop);var b=this.offsetParent.getBoundingClientRect(),c=this._target.getBoundingClientRect(),d=this.getBoundingClientRect(),e=(c.width-d.width)/2,g=(c.height-d.height)/2,k=c.left-b.left,m=c.top-b.top;switch(this.position){case "top":var n=k+e;var r=m-d.height-a;break;case "bottom":n=k+e;r=m+c.height+a;break;case "left":n=k-d.width-a;r=m+g;break;case "right":n=k+c.width+
a,r=m+g}this.fitToVisibleBounds?(b.left+n+d.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,n)+"px",this.style.right="auto"),b.top+r+d.height>window.innerHeight?(this.style.bottom=b.height+"px",this.style.top="auto"):(this.style.top=Math.max(-b.top,r)+"px",this.style.bottom="auto")):(this.style.left=n+"px",this.style.top=r+"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(a){a!==500&&this.updateStyles({"--paper-tooltip-delay-in":a+"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(a){if(a==="entry"&&this.animationEntry!=="")return this.animationEntry;if(a==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[a]&&typeof this.animationConfig[a][0].name==="string"){if(this.animationConfig[a][0].timing&&this.animationConfig[a][0].timing.delay&&this.animationConfig[a][0].timing.delay!==0){var b=this.animationConfig[a][0].timing.delay;a==="entry"?this.updateStyles({"--paper-tooltip-delay-in":b+"ms"}):a==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":b+
"ms"})}return this.animationConfig[a][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 uxb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(uxb,_.Xc);var vxb=_.gd(uxb,[0,_.gy]);var bE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(bE,_.Xc);var wxb=[3,4],xxb=[5,6];var yxb=[0,wxb,xxb,_.Fdb,-1,_.fy,_.Gdb,-1,A$a,B$a];var zxb=_.gd(bE,yxb),Axb=_.hd(yxb);var cE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(cE,_.Xc);cE.prototype.getType=function(){return _.Px(this,1)};var Bxb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(Bxb,_.Xc);var Cxb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(Cxb,_.Xc);var Dxb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(Dxb,_.Xc);var Exb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(Exb,_.Xc);Exb.prototype.getType=function(){return _.Px(this,1)};var dE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(dE,_.Xc);dE.prototype.getSource=function(){return _.Px(this,1)};
dE.prototype.getMessage=function(){return _.Ox(this,4)};
dE.prototype.getData=function(){return _.Xj(this,Exb,8)};var Fxb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(Fxb,_.Xc);var eE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(eE,_.Xc);var fE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(fE,_.Xc);var gE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(gE,_.Xc);gE.prototype.getUrl=function(){return _.Ox(this,1)};
gE.prototype.setUrl=function(a){return _.sf(this,1,a)};
gE.prototype.hasUrl=function(){return _.kg(this,1)!=null};var Gxb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(Gxb,_.Xc);var Hxb=[3];var Ixb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(Ixb,_.Xc);Ixb.prototype.getType=function(){return _.Px(this,2)};
var hE=function(a){var b=new Ixb;return _.Yj(b,2,a)};
Ixb.prototype.getLanguage=function(){return Rx(this,4,iE)};
var Jxb=function(a){var b=hE(1);return _.qd(b,6,iE,a)},iE=[3,
4,5,6];var Kxb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(Kxb,_.Xc);Kxb.prototype.getType=function(){return _.Px(this,1)};
var jE=function(a){var b=new Kxb;return _.Yj(b,1,a)},kE=function(a,b){return _.qd(a,2,Lxb,b)},Lxb=[2,
3,4,5];var Mxb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(Mxb,_.Xc);var lE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(lE,_.Xc);var Nxb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(Nxb,_.Xc);var Oxb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(Oxb,_.Xc);var Pxb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(Pxb,_.Xc);var Qxb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(Qxb,_.Xc);var mE=function(a){return _.Xj(a,fE,5)};var Rxb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(Rxb,_.Xc);Rxb.prototype.getValue=function(){return Mx(this,1)};var Sxb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(Sxb,_.Xc);var nE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(nE,_.Xc);nE.prototype.getType=function(){return _.Px(this,1)};
nE.prototype.getMetadata=function(){return _.Sx(this,Oxb,7,oE)};
nE.prototype.hasMetadata=function(){return _.Ax(this,Oxb,7,oE)};
var Txb=_.sda(nE),oE=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var pE=function(a){this.JSC$9742_name_=a;this.files_=[];this.directories_=[];this.directoryMap_={}};
pE.prototype.getName=function(){return this.JSC$9742_name_};var rE=function(a,b){this.callback_=b;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new pE("");Uxb(this,a,this.rootDirectory_);qE(this)},Uxb=function(a,b,c){for(var d=0;d<b.length;d++){var e=b[d];
e.isFile?(a.fileOps_++,e.file((0,_.ug)(a.handleFileSuccess_,a,c),(0,_.ug)(a.handleFileError_,a))):a.unscannedDirectories_.push(new Vxb(e,c))}},qE=function(a){if(a.unscannedDirectories_.length>0&&a.directoryOps_<5&&!a.hasError_){a.directoryOps_++;
var b=a.unscannedDirectories_.shift(),c=b.entry,d=new pE(c.name);b=b.parent;b.directoryMap_[d.getName()]=d;b.directories_.push(d);c=c.createReader();c.readEntries((0,_.ug)(a.handleDirectorySuccess_,a,c,d),(0,_.ug)(a.handleDirectoryError_,a))}a.directoryOps_!=0||a.fileOps_!=0||a.unscannedDirectories_.length!=0&&!a.hasError_||a.callback_(a.rootDirectory_.files_,a.rootDirectory_.directories_,a.hasError_)};
rE.prototype.handleDirectorySuccess_=function(a,b,c){Uxb(this,c,b);c.length==0?(this.directoryOps_--,qE(this)):a.readEntries((0,_.ug)(this.handleDirectorySuccess_,this,a,b),(0,_.ug)(this.handleDirectoryError_,this))};
rE.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;qE(this)};
rE.prototype.handleFileSuccess_=function(a,b){a.files_.push(b);this.fileOps_--;qE(this)};
rE.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;qE(this)};
var Vxb=function(a,b){this.entry=a;this.parent=b};var sE=function(a){_.Dz.call(this);_.ss(a,"drop",this.onObjectsDropped_,!1,this);_.ss(a,"dragenter",this.onFilesDragged_,!1,this);_.ss(a,"dragover",this.onFilesDragged_,!1,this);_.ss(a,"dragleave",this.onDragLeave_,!1,this);_.ss(a,"dragend",this.onDragLeave_,!1,this)};
_.nx(sE,_.Dz);var Wxb=function(a,b){_.yz.call(this,"f");this.files=a;this.directories=b};
_.nx(Wxb,_.yz);var Xxb=function(){_.yz.call(this,"h")};
_.nx(Xxb,_.yz);var Yxb=function(){_.yz.call(this,"i")};
_.nx(Yxb,_.yz);var Zxb=function(){_.yz.call(this,"g")};
_.nx(Zxb,_.yz);sE.prototype.onObjectsDropped_=function(a){var b=this;a.preventDefault();var c=a.event_.dataTransfer;if((a=c&&c.items)&&a.length>0&&a[0].webkitGetAsEntry){c=[];for(var d=[],e=0;e<a.length;e++){var g=a[e].webkitGetAsEntry();g?c.push(g):d.push(a[e])}new rE(c,function(k,m,n){n?b.dispatchEvent(new Zxb("Error occurred while reading from the file system.")):b.dispatchEvent(new Wxb(k,m,d))})}else(a=c&&c.files)&&this.dispatchEvent(new Wxb(Array.from(a),[]))};
sE.prototype.onFilesDragged_=function(a){a.type==="dragenter"&&this.dispatchEvent(new Xxb);a.preventDefault()};
sE.prototype.onDragLeave_=function(){this.dispatchEvent(new Yxb)};var $xb=function(a,b){this.JSC$9765_name_=a;this.inputElement_=b};
$xb.prototype.getName=function(){return this.JSC$9765_name_};
$xb.prototype.getInputElement=function(){return this.inputElement_};var tE=function(a,b,c){b=b===void 0?"single_file":b;c=c===void 0?[]:c;_.Dz.call(this);this.overlayTarget_=a;this.parentOverlay_=a!=null?a.parentNode:_.lg("scotty-overlay-parent");this.selectorType_=b;this.acceptTypes_=c;this.overlay_=ayb(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.z(tE,_.Dz);
var ayb=function(a,b,c,d){var e=document.createElement("input");e.setAttribute("type","file");e.setAttribute("name","Filedata");_.ss(e,"change",a.onFilesSelected_,!1,a);c==="multiple_file"&&(e.multiple="true");c==="single_directory"&&(e.webkitdirectory="true");d.length>0&&e.setAttribute("accept",d.join(","));e.style.position="absolute";e.style.overflow="hidden";e.style.height="0px";e.style.width="0px";e.style.opacity="0";e.setAttribute("aria-hidden","true");e.setAttribute("tabIndex",-1);if(a.overlayTarget_!=
null)return e.style.height=b.offsetHeight+"px",e.style.width=b.offsetWidth+"px",a.parentOverlay_&&(a.parentOverlay_.style.position="relative"),_.Ty(e,b),Zy(e,new _.Af(b.offsetLeft,b.offsetTop)),e;a.parentOverlay_.appendChild(e);return e};
tE.prototype.click=function(){this.overlay_.click()};
tE.prototype.onFilesSelected_=function(a){a:{try{var b=(new XMLHttpRequest).upload!==void 0;break a}catch(r){}b=!1}if(b){var c;a=Array.from((c=a.target.files)!=null?c:[]);c=[];if(this.selectorType_==="single_directory"&&(_.ux||_.Pj||_.tx)){c=new pE("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(b=0;b<a.length;b++)for(var d=a[b],e=d.webkitRelativePath.split("/"),g=c,k=0;k<e.length;k++){var m=e[k];if(k==e.length-1){m!="."&&g.files_.push(d);break}var n=g.directoryMap_[m];n==void 0&&(m=
n=new pE(m),g.directoryMap_[m.getName()]=m,g.directories_.push(m));g=n}c=c.directories_}this.dispatchEvent(new byb(a,c,null))}else a=a.target.value,a.match(/^c:\\fakepath\\/i)&&(a=a.substring(12)),this.dispatchEvent(new byb([],[],new $xb(a,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=ayb(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var byb=function(a,b){_.yz.call(this,"j");this.files=a;this.directories=b};
_.z(byb,_.yz);var cyb=function(a){this.uploadUrl_=a};var dyb=function(){_.Dz.call(this)};
_.nx(dyb,_.Dz);var uE=function(a){_.yz.call(this,a)};
_.nx(uE,_.yz);var vE=function(a){_.yz.call(this,a)};
_.nx(vE,_.yz);var eyb=function(a,b,c,d,e){_.Dz.call(this);c=document.createElement("form");c.setAttribute("method",b);c.setAttribute("enctype","multipart/form-data");c.setAttribute("encoding","multipart/form-data");b=document.createElement("input");b.setAttribute("type","hidden");b.setAttribute("name","metadata");b.setAttribute("value",e);c.appendChild(b);c.appendChild(d);this.JSC$9782_form_=c;a=new _.Wn(a);_.Lg(a,"upload_protocol","multipart");this.JSC$9782_url_=a.toString();this.JSC$9782_request_=new gD;this.state_=
"Ready";this.JSC$9782_errorDescription_=null;this.JSC$9782_eventHandler_=new _.bn(this);_.gg(this,this.JSC$9782_eventHandler_);this.JSC$9782_eventHandler_.listen(this.JSC$9782_request_,"success",this.onTransferSuccess_);this.JSC$9782_eventHandler_.listen(this.JSC$9782_request_,"error",this.onTransferError_)};
_.z(eyb,dyb);_.f=eyb.prototype;_.f.run=function(){this.state_="Transferring";var a=this.JSC$9782_request_,b=this.JSC$9782_form_;if(a.JSC$9207_active_)throw Error("le");var c=new _.Wn(this.JSC$9782_url_||b.action);a.JSC$9207_form_=b;b=a.JSC$9207_form_;c=_.Kd(c.toString());c!==void 0&&(b.action=c);Hsb(a)};
_.f.getResponseCode=function(){return null};
_.f.getResponseText=function(){return this.JSC$9782_request_&&this.JSC$9782_request_.getResponseText()||null};
_.f.JSC$25508_getErrorDescription=function(){return this.JSC$9782_errorDescription_};
_.f.cancel=function(){this.JSC$9782_request_&&this.JSC$9782_request_.abort();this.state_="Cancelled";this.dispatchEvent(new uE("o"))};
_.f.pause=function(){};
_.f.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new uE("l"))};
_.f.onTransferError_=function(){this.JSC$9782_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new uE("n"))};var wE=function(){_.Lz.call(this)};
_.z(wE,_.Lz);wE.prototype.createXhr=function(){var a=_.Lz.prototype.createXhr.call(this);a.upload&&(a.upload.onprogress=(0,_.ug)(this.onProgress_,this));return a};
wE.prototype.onProgress_=function(a){this.dispatchEvent(a)};var fyb=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},hyb=function(a,b){var c=a.attempt_+1;
if(a.maxAttempts_>0&&c>a.maxAttempts_)return!1;c==0?b():a.delayCallId_=Iz(function(){a.delayCallId_=null;b()},gyb(a),a);
a.attempt_=c;return!0};
fyb.prototype.reset=function(){this.delayCallId_&&_.ja.clearTimeout(this.delayCallId_);this.attempt_=-1};
var gyb=function(a){var b=250*Math.pow(2,a.attempt_);a.maxDelayMs_>=0&&(b=Math.min(b,a.maxDelayMs_));return b};var kAa=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var xE=function(){_.Dz.call(this);this.JSC$9792_request_=this.state_=null;this.JSC$9792_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$9792_bytesTransferred_=0;this.retryIterator_=new fyb;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$9792_errorDescription_=null;this.JSC$9792_eventHandler_=new _.bn(this);_.gg(this,this.JSC$9792_eventHandler_);this.JSC$9792_url_=this.blob_=null;this.JSC$9792_method_=void 0;this.chunkSize_=this.JSC$9792_metadata_=
this.JSC$9792_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$9792_responseText_=this.JSC$9792_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.nx(xE,dyb);_.f=xE.prototype;_.f.run=function(){yE(this)};
_.f.getResponseCode=function(){return this.JSC$9792_responseCode_};
_.f.getResponseText=function(){return this.JSC$9792_responseText_};
_.f.JSC$25508_getErrorDescription=function(){return this.JSC$9792_errorDescription_};
_.f.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$9792_eventHandler_.removeAll();this.JSC$9792_request_&&this.JSC$9792_request_.abort();this.retryIterator_.reset();var a=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(a==="Upload"||a==="Query")a=new wE,a.JSC$7648_withCredentials_=this.JSC$9792_withCredentials_,a.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$9792_bytesTransferred_=
0;this.dispatchEvent(new uE("o"))}};
_.f.pause=function(){this.pauseRequested_=!0};
var yE=function(a){var b=a.state_;a.pauseRequested_?(a.pauseRequested_=!1,a.stateAfterUnpausing_=b,a.state_="Paused"):hyb(a.retryIterator_,function(){switch(a.state_){case "Start":a.JSC$9792_request_=new wE;var c=_.yf.clone(a.JSC$9792_headers_);a.blob_.size!=null&&(c["Content-Length"]=a.blob_.size);c=lAa(c);c["X-Goog-Upload-Protocol"]="resumable";c["X-Goog-Upload-Command"]="start";a.JSC$9792_eventHandler_.removeAll();a.JSC$9792_eventHandler_.listen(a.JSC$9792_request_,"complete",a.onStartComplete_);
a.JSC$9792_request_.JSC$7648_withCredentials_=a.JSC$9792_withCredentials_;a.JSC$9792_request_.send(a.JSC$9792_url_,a.JSC$9792_method_,a.JSC$9792_metadata_,c);a.lastCommandResponseCode_=null;a.dispatchEvent(new vE("q"));break;case "Upload":c=a.transferHandle_.uploadUrl_;var d=a.blob_.size;if(zlb()){var e=a.chunkSize_;var g=a.offset_+e>=d;d=ylb(a.blob_,a.offset_,g?d:a.offset_+e)}else a.offset_=0,d=a.blob_,g=!0;a.JSC$9792_request_=new wE;a.JSC$9792_request_.JSC$7648_withCredentials_=a.JSC$9792_withCredentials_;
a.JSC$9792_eventHandler_.removeAll();a.JSC$9792_eventHandler_.listen(a.JSC$9792_request_,"progress",a.onUploadProgress_);e=(0,_.ug)(a.JSC$9794_onUploadComplete_,a,a.offset_+d.size,g);a.JSC$9792_eventHandler_.listen(a.JSC$9792_request_,"complete",e);a.lastCommandResponseCode_=null;a.dispatchEvent(new vE("q"));g=Object.assign({},a.JSC$9792_headers_||{},{"X-Goog-Upload-Command":"upload"+(g?", finalize":""),"X-Goog-Upload-Offset":a.offset_});a.JSC$9792_request_.send(c,"POST",d,g);break;case "Query":a.JSC$9792_request_=
new wE;a.JSC$9792_eventHandler_.removeAll();a.JSC$9792_eventHandler_.listen(a.JSC$9792_request_,"complete",a.onQueryComplete_);c=Object.assign({},a.JSC$9792_headers_||{},{"X-Goog-Upload-Command":"query"});a.JSC$9792_request_.send(a.transferHandle_.uploadUrl_,"POST","",c);a.lastCommandResponseCode_=null;a.dispatchEvent(new vE("q"));break;default:throw Error("af");}})||zE(a,"Transfer encountered too many consecutive failures.")},zE=function(a,b){a.state_="Error";
a.JSC$9792_errorDescription_=b;a.dispatchEvent(new uE("n"))};
xE.prototype.onStartComplete_=function(a){var b=a.target;this.lastCommandResponseCode_=b.getStatus();this.dispatchEvent(new vE("r"));if(iyb(b))jyb(this,b);else if(kyb(b)){a=Pg(a.target.getAllResponseHeaders());for(var c in a)_.na(c.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new uE("m"));c=zn(a,"X-Goog-Upload-URL");a=(a=zn(a,"X-Goog-Upload-Chunk-Granularity"))?parseInt(a,10):1;c===void 0||isNaN(a)||a<=0?zE(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
a)*a,this.transferHandle_=new cyb(c),this.dispatchEvent(new uE("p")),this.state_="Upload",this.retryIterator_.reset(),yE(this))}else yE(this)};
xE.prototype.onUploadProgress_=function(a){this.JSC$9792_bytesTransferred_=this.offset_+a.loaded;this.dispatchEvent(new uE("k"))};
xE.prototype.JSC$9794_onUploadComplete_=function(a,b,c){var d=this,e,g;return _.l(function(k){switch(k.nextAddress){case 1:e=c.target;d.lastCommandResponseCode_=e.getStatus();d.dispatchEvent(new vE("r"));if(lyb(e)||e.getStatus()==404)return d.JSC$9792_bytesTransferred_=a,jyb(d,e),k.return();if(kyb(e)){k.jumpTo(2);break}if(!(g=d.detectCorruptedBlobEnabled_)){k.jumpTo(3);break}return _.p(k,myb(d),4);case 4:g=k.yieldResult;case 3:if(g)return zE(d,"Blob has been modified or corrupted."),k.return();d.requireUploadRequestModification_=
e.getStatus()==400;d.state_="Query";yE(d);return k.return();case 2:if(b)return zE(d,"Got a non-final success response after issuing a finalize command."),k.return();d.JSC$9792_bytesTransferred_=a;d.offset_=a;d.retryIterator_.reset();yE(d);return k.return()}})};
xE.prototype.onQueryComplete_=function(a){var b=a.target;this.lastCommandResponseCode_=b.getStatus();this.dispatchEvent(new vE("r"));iyb(b)?(b.getStatus()===200&&(this.JSC$9792_bytesTransferred_=this.blob_.size),jyb(this,b)):kyb(b)?(a=Pg(a.target.getAllResponseHeaders()),a=parseInt(zn(a,"X-Goog-Upload-Size-Received"),10),isNaN(a)?zE(this,"Server did not respond with current offset."):a<this.offset_?zE(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
a+"."):this.requireUploadRequestModification_&&this.offset_===a?zE(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<a&&this.retryIterator_.reset(),this.offset_=this.JSC$9792_bytesTransferred_=a,this.state_="Upload",yE(this))):yE(this)};
var jyb=function(a,b){a.JSC$9792_responseCode_=b.getStatus();var c=Pg(b.getAllResponseHeaders());mAa(c);a.JSC$9792_responseText_=b.getResponseText();a.state_="Response received";a.dispatchEvent(new uE("l"))},kyb=function(a){var b=a.getStatus();
a=Pg(a.getAllResponseHeaders());a=zn(a,"X-Goog-Upload-Status");return b===200&&a==="active"},lyb=function(a){a=Pg(a.getAllResponseHeaders());
return zn(a,"X-Goog-Upload-Status")==="final"},iyb=function(a){if(lyb(a))return!0;
a=a.getStatus();return a>=400&&a<500},myb=function(a){var b;
return _.l(function(c){if(c.nextAddress==1){if(!a.blob_||a.originalBlobSize_<=0)return c.return(!1);if(a.blob_.size!==a.originalBlobSize_)return c.return(!0);_.me(c,2);if(b=ylb(a.blob_,0,1)){var d=new RC,e=Xqb(d);d.reader_.readAsBinaryString(b);c=_.p(c,e,4)}else c=c.return(!0);return c}if(c.nextAddress!=2)return c.return(a.blob_.size!==a.originalBlobSize_);_.re(c);return c.return(!0)})};var nyb=function(a,b,c,d,e,g){_.Dz.call(this);this.payload_=d;this.JSC$9795_url_=a;this.JSC$9795_method_=b;this.JSC$9795_headers_=c;this.JSC$9795_metadata_=e;this.encoding_=g||"binary";a=new _.DC;this.boundary_="uploader-"+Ig()+"-"+a.JSC$9056_toIsoString();this.JSC$9795_responseText_=this.JSC$9795_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$9795_errorDescription_=null;this.JSC$9795_eventHandler_=new _.bn(this);_.gg(this,this.JSC$9795_eventHandler_)};
_.z(nyb,dyb);_.f=nyb.prototype;
_.f.run=function(){var a=_.yf.clone(this.JSC$9795_headers_);this.payload_.length!=null&&(a["Content-Length"]=this.payload_.length);a=lAa(a);a["X-Goog-Upload-Protocol"]="multipart";a["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new wE;this.JSC$9795_eventHandler_.removeAll();this.JSC$9795_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$9795_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$9795_url_,this.JSC$9795_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$9795_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",a)};
_.f.getResponseCode=function(){return this.JSC$9795_responseCode_};
_.f.getResponseText=function(){return this.JSC$9795_responseText_};
_.f.JSC$25508_getErrorDescription=function(){return this.JSC$9795_errorDescription_};
_.f.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$9795_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new uE("o")))};
_.f.pause=function(){};
_.f.onTransferProgress_=function(){this.dispatchEvent(new uE("k"))};
_.f.onTransferComplete_=function(a){var b=a.target.getStatus();b===void 0||b===-1?(this.JSC$9795_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new uE("n"))):(this.JSC$9795_responseCode_=b,a=a.target,b=Pg(a.getAllResponseHeaders()),mAa(b),this.JSC$9795_responseText_=a.getResponseText(),this.state_="Complete",this.dispatchEvent(new uE("l")))};_.oyb=function(a,b,c,d){d=d===void 0?!1:d;if(c instanceof $xb)return new eyb(a,"POST",b,c.getInputElement(),"");if(typeof c==="string"||c instanceof String)return new nyb(a,"POST",b,c,"");var e=new xE(void 0);e.JSC$9792_url_=a;e.JSC$9792_method_="POST";e.JSC$9792_headers_=b;e.blob_=c;e.originalBlobSize_=c.size;e.JSC$9792_metadata_="";d&&(e.JSC$9792_withCredentials_=d);e.state_="Start";return e};var AE=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(AE,_.Xc);_.f=AE.prototype;_.f.getEnableSsEngine=function(){return _.Lx(this,2)};
_.f.getEnableAwr=function(){return _.Lx(this,3)};
_.f.getAlohaAutoGaRollout=function(){return _.Lx(this,5)};
_.f.getEnableConfigurator=function(){return _.Lx(this,6)};
_.f.getEnableMweb=function(){return _.Lx(this,7)};
var qyb=function(){var a=pyb();return _.Bn(a,7,!0)};
AE.prototype.getEnableCtlConsentCheckbox=function(){return _.Lx(this,8)};
AE.prototype.getEnableIframe=function(){return _.Lx(this,9)};
var pyb=function(){var a=new AE;a=_.Bn(a,5,!0);a=_.Bn(a,2,!0);a=_.Bn(a,4,!1);a=_.Bn(a,8,!0);return _.Bn(a,9,!0)};
AE.prototype.getEnableScreenshotNudge=function(){return _.Lx(this,10)};
var ryb=function(){var a=qyb();return _.Bn(a,10,!0)};
AE.prototype.getEnableWebStartupConfigEndpoint=function(){return _.Lx(this,11)};
AE.prototype.getEnableJunkNudge=function(){return _.Lx(this,12)};
var DAa=function(){var a=ryb();return _.Bn(a,12,!0)};
_.f=AE.prototype;_.f.getEnableConfiguratorLocale=function(){return _.Lx(this,13)};
_.f.getEnableTinyNoPointer=function(){return _.Lx(this,14)};
_.f.getEnableSupportSessionLogging=function(){return _.Lx(this,15)};
_.f.getEnableFileUploadForScreenshot=function(){return _.Lx(this,16)};
_.f.getEnableDirectDeflectionForSingleCategory=function(){return _.Lx(this,17)};
_.f.getEnableImageSanitization=function(){return _.Lx(this,18)};
_.f.getEnableAlohaBinarySplit=function(){return _.Lx(this,19)};
_.f.getEnableDbFeedbackIntents=function(){return _.Lx(this,20)};
_.f.getEnableMarkMandatoryFieldsWithRequired=function(){return _.Lx(this,21)};
_.f.getEnableFeedbackCategoryCustomUi=function(){return _.Lx(this,22)};
_.f.getEnableRealtimeCtl=function(){return _.Lx(this,23)};var CAa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(CAa,_.Xc);var nAa=[/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 pAa="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 qAa=_.cx(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),rAa=_.cx(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var tAa,vAa;var syb,tyb;
syb=function(a,b,c){a.timeOfStartCall=(new Date).getTime();var d=c||_.ja,e=d.document,g=a.nonce||_.Sd(d.document);g&&!a.nonce&&(a.nonce=g);if(a.flow=="help"){var k=_.Ji("document.location.href",d);!a.helpCenterContext&&k&&(a.helpCenterContext=k.substring(0,1200));k=!0;if(b&&JSON&&JSON.stringify){var m=JSON.stringify(b);(k=m.length<=1200)&&(a.psdJson=m)}k||(b={invalidPsd:!0})}b=[a,b,c];d.GOOGLE_FEEDBACK_START_ARGUMENTS=b;c=a.feedbackServerUri||"//www.google.com/tools/feedback";if(k=d.GOOGLE_FEEDBACK_START)k.apply(d,b);
else{d=c+"/load.js?";for(var n in a)b=a[n],b==null||_.$a(b)||(d+=encodeURIComponent(n)+"="+encodeURIComponent(b)+"&");a=rf(e).createElement("SCRIPT");g&&a.setAttribute("nonce",g);_.Xd(a,_.vd(d));e.body.appendChild(a)}};
tyb=function(a,b,c,d){var e,g;_.l(function(k){e=c||_.ja;var m=a.serverEnvironment==="DEV",n=c||_.ja;n=a.nonce||_.Sd(n.document);m={integrationKeys:{productId:a.productId,feedbackBucket:a.bucket,triggerId:a.triggerId},callbacks:{onClose:a.callback,onLoad:a.onLoadCallback},formContent:{locale:a.locale,disableScreenshot:a.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:a.abuseLink,additionalDataConsent:a.additionalDataConsent},initializationData:{isLocalServer:m,nonce:n,useNightlyRelease:m,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:a.feedbackServerUri,colorScheme:a.colorScheme},extraData:{productVersion:a.productVersion,authUser:a.authuser,configuratorId:a.configuratorId,customZIndex:a.customZIndex,tinyNoPointer:a.tinyNoPointer,
allowNonLoggedInFeedback:a.allowNonLoggedInFeedback,enableAnonymousFeedback:a.enableAnonymousFeedback}};b&&(n=new Map(Object.entries(b)),m.extraData.productSpecificData=n);g=m;return _.p(k,zAa(g,d,e),0)})};
_.uyb=function(a,b,c){try{if(a.flow==="help"){var d=a.helpCenterPath.replace(/^\//,"");_.Rd(c||window,"https://support.google.com/"+d)}else a.flow==="submit"?syb(a,b,c):EAa(a.productId,a.feedbackServerUri).then(function(e){e=_.Xj(e,AE,1);var g=!U8a||(e==null?void 0:e.getEnableMweb()),k=!a.tinyNoPointer||(e==null?void 0:e.getEnableTinyNoPointer());!e||e.getAlohaAutoGaRollout()&&g&&k?tyb(a,b,c,e):syb(a,b,c)},function(e){e&&e.name!=="DuplicateFormError"&&syb(a,b,c)})}catch(e){tyb(a,b,c,null)}};
_.Rj("userfeedback.api.startFeedback",_.uyb);var FAa=/https?:\/\/\S+\.\S+/,GAa=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],HAa=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var B3a=function(a){var b=a.split(""),c=[-263237435,15,b,function(d,e,g){var k=e.length;g.forEach(function(m,n,r){this.push(r[n]=e[(e.indexOf(m)-e.indexOf(this[n])+n+k--)%e.length])},d.split(""))},
function(d,e){d=(d%e.length+e.length)%e.length;e.splice(-d).reverse().forEach(function(g){e.unshift(g)})},
"response",function(){for(var d=64,e=[];++d-e.length-32;){switch(d){case 58:d-=14;case 91:case 92:case 93:continue;case 123:d=47;case 94:case 95:case 96:continue;case 46:d=95}e.push(String.fromCharCode(d))}return e},
null,12,1540023973,65941107,null,b,function(d,e){for(d=(d%e.length+e.length)%e.length;d--;)e.unshift(e.pop())},
695603893,function(d){for(var e=d.length;e;)d.push(d.splice(--e,1)[0])},
"'[;'[(",function(d,e){d.push(e)},
null,function(d,e,g,k,m){return e(g,k,m)},
"continuation",b,function(d,e){if(d.length!=0){e=(e%d.length+d.length)%d.length;var g=d[0];d[0]=d[e];d[e]=g}},
function(){for(var d=64,e=[];++d-e.length-32;){switch(d){case 91:d=44;continue;case 123:d=65;break;case 65:d-=18;continue;case 58:d=96;continue;case 46:d=95}e.push(String.fromCharCode(d))}return e},
'"),/]];'];c[7]=c;c[11]=c;c[18]=c;try{(((0,c[15])(c[21]),c[22])(c[11],c[9]),c[22])(c[new Date("1970-01-01T04:30:12.000+04:30")/1E3],c[1]),((0,c[22])(c[11],c[23]),c[4])(c[10],c[18]),(0,c[20])(c[21],c[14])<<(0,c[17])(c[18],c[1]),(0,c[4])(c[8],c[21]),(0,c[19])((0,c[19])((0,c[17])(c[7],c[9]),c[3],c[20],(0,c[6])(),c[2]),c[3],c[5],(0,c[15])(),c[2])}catch(d){return"aTlOUOubTO4AP____8P_"+a}return b.join("")};_.vyb=new _.X("runAttestationCommand");var wyb=new _.X("verifyCommand");_.Wu=new _.X("accessibilityContext");var xyb=new _.X("accessibilityData");var yyb=new _.X("profileCardCommand");var cVa=new _.X("signInEndpoint");var bVa=new _.X("signOutEndpoint");var Ayb;_.zyb=new _.X("accountItemSectionRenderer");Ayb=new _.X("accountItemRenderer");_.Byb=new _.X("saveCommandToSessionStorageAction");var Cyb=new _.X("crossAccountChannelTransferEndpoint");var $Ta=new _.X("getAccountMenuEndpoint");_.aUa=new _.X("getAccountSwitcherEndpoint");var ZTa=new _.X("getAccountsListEndpoint");var Dyb=new _.X("getAccountsListInnertubeEndpoint");_.Eyb=new _.X("addToToastAction");var Fyb=new _.X("hideEnclosingAction");_.BE=new _.X("replaceEnclosingAction");_.Gyb=new _.X("buttonRefreshAction");var Hyb=new _.X("adsControlFlowOpportunityReceivedCommand");var Iyb=new _.X("openAdAllowlistInstructionCommand");var Jyb=new _.X("videoMastheadAdPrimaryVideoRenderer");var Kyb=new _.X("displayAdRenderer");var LHa=new _.X("instreamVideoAdRenderer");_.Lyb=new _.X("inFeedAdLayoutRenderer");var Myb=new _.X("sequenceItemInPlayerAdLayoutRenderer");_.Nyb=new _.X("adSlotRenderer");var Oyb=new _.X("adAvatarViewModel");var Pyb=new _.X("adBadgeViewModel");var Qyb=new _.X("adButtonViewModel");var CE=new _.X("adImageViewModel");var l0a=new _.X("reelsAdCardButtonedViewModel");var Ryb=new _.X("reelsPlayerOverlayLayoutViewModel");var Syb=new _.X("showSchedulingPanelCommand");var Tyb=new _.X("backstageCommentsRenderer");var Uyb=new _.X("backstageImageRenderer");var Vyb=new _.X("backstagePostRenderer");var Wyb=new _.X("postRenderer");var Xyb=new _.X("sharedPostRenderer");var Yyb=new _.X("createBackstagePostEndpoint");var Zyb=new _.X("getPostVideoPreviewEndpoint");var $yb=new _.X("updateBackstagePostEndpoint");var azb=new _.X("filterChipTransformCommand");var bzb=new _.X("insertRichSectionCommand");var x6a=new _.X("talkToRecsDeselectCommand");var czb=new _.X("talkToRecsNextCommand");var w6a=new _.X("talkToRecsSelectCommand");var dzb=new _.X("talkToRecsUpdateTextCommand");_.pq=new _.X("browseEndpoint");_.ezb=new _.X("confirmDialogEndpoint");var fzb=new _.X("expandOnHoverCardRenderer");var gzb=new _.X("lumiereShelfDetailsRenderer");var hzb=new _.X("revealBusinessEmailCommand");var izb=new _.X("validateChannelHandleCommand");var jzb=new _.X("channelCreationFormEndpoint");var kzb=new _.X("aboutChannelViewModel");var lzb=new _.X("channelThumbnailWithLinkRenderer");var mzb=new _.X("channelCreationServiceEndpoint");var nzb=new _.X("updateChannelPageSettingsEndpoint");var DE=function(a){this.delegate=a},EE=function(){DE.apply(this,arguments)};
_.z(EE,DE);_.Vm.Object.defineProperties(EE.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(a){this.delegate.entityMetadata=a}}});var ozb=function(){EE.apply(this,arguments)};
_.z(ozb,EE);ozb.prototype.getAssociations=function(){return[]};var oRa=new _.X("webThumbnailDetailsExtensionData");var GXa=new _.X("commandContext");var pzb=new _.X("addVideoLinkAction");var qzb=new _.X("createPollAction");var rzb=new _.X("hideIdentityChipAction");var szb=new _.X("openUpdateCommentDialogAction");var FE=new _.X("updateBackstagePollAction");var tzb=new _.X("updateCommentVoteAction");var uzb=new _.X("commentThreadRenderer");var vzb=function(){EE.apply(this,arguments)};
_.z(vzb,EE);vzb.prototype.getAssociations=function(){return[]};_.wzb=new _.X("commentDialogRenderer");var xzb=new _.X("updateCommentsSettingsEndpoint");var yzb=new _.X("commentViewModel");var zzb=new _.X("triStateButtonViewModel");var Azb=new _.X("voiceReplyContainerViewModel");_.po=new _.X("commandExecutorCommand");var Bs=new _.X("emoji");var Bzb=new _.X("updateCreatorChannelInnertubeCommand");_.Czb=new _.X("appendContinuationItemsAction");_.Dzb=new _.X("changeEngagementPanelVisibilityAction");_.Kt=new _.X("continuationCommand");var Ezb=new _.X("hideReportedCommentAction");var Fzb=new _.X("listMutationCommand");_.GE=new _.X("openPopupAction");var Nzb;_.Gzb=new _.X("playlistRemoveVideosAction");_.Hzb=new _.X("updatePlaylistAction");_.Izb=new _.X("addToPlaylistCommand");_.Jzb=new _.X("endPlaylistCommand");_.Kzb=new _.X("recoverPlaylistCommand");_.Lzb=new _.X("refreshPlaylistCommand");_.Mzb=new _.X("refreshFormCommand");Nzb=new _.X("openOnePickAddVideoModalCommand");_.gUa=new _.X("reloadContinuationItemsCommand");_.Ozb=new _.X("scrollToEngagementPanelCommand");var Pzb=new _.X("showReloadUiCommand");var Qzb=new _.X("undoFeedbackAction");var Rzb=new _.X("updateButtonAction");var rWa=new _.X("updateSubscribeButtonAction");var Szb=new _.X("updateToggleAction");_.ao=new _.X("webCommandMetadata");_.HE=new _.X("webHandleServiceEndpointExtension");var iQa=new _.X("webNavigationEndpointData");var Tzb=new _.X("copyLinkCommand");var Uzb=new _.X("playlistVotingRefreshPopupCommand");var Vzb=new _.X("selectChipCommand");var Wzb=new _.X("setCookieCommand");var Xzb=new _.X("setLocalStorageCommand");var Yzb=new _.X("setPrefStorageEntryCommand");var bAb;_.Zzb=new _.X("settingsUpdateCheckboxCommand");_.$zb=new _.X("settingsUpdateTextCommand");_.aAb=new _.X("settingsUpdateOptionsCommand");bAb=new _.X("settingsUpdateSwitchCommand");_.cAb=new _.X("settingsUpdateConnectedAppRendererCommand");var dAb=new _.X("updateTextInputFormFieldRendererCommand");var eAb=new _.X("updateToggleButtonStateCommand");var fAb=new _.X("updateUrlParamCommand");var gAb=new _.X("webSubmitFormCommand");var hAb=new _.X("channelSwitcherPageRenderer"),iAb=new _.X("updateChannelSwitcherPageAction");_.lw=new _.X("continuationItemRenderer");_.IE=new _.X("richItemRenderer");var jAb=new _.X("richSectionRenderer");_.kAb=new _.X("richShelfRenderer");_.lAb=new _.X("metadataBadgeRenderer");_.mAb=new _.X("multiPageMenuNotificationSectionRenderer");_.nAb=new _.X("playlistLoopButtonStateRenderer");var oAb=new _.X("claimLegacyYoutubeChannelEndpoint");var pAb=new _.X("getNotificationMenuEndpoint");var qAb=new _.X("getSearchInVideoCommand");_.rAb=new _.X("getTranscriptEndpoint");_.ro=new _.X("signalServiceEndpoint");var sAb=new _.X("verifyAgeEndpoint");var E3a=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(E3a,_.Xc);E3a.prototype.getPath=function(){return _.Ox(this,1)};
E3a.prototype.getValue=function(){return _.Ox(this,2)};var tAb=[0,_.cy,-1];var uAb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(uAb,_.Xc);var D3a=_.gd(uAb,[0,_.ey,tAb]);var vAb=new _.X("dismissalEndpoint");var wAb=new _.X("elementsCommand");_.Ds=new _.X("innertubeCommand");var xAb=new _.X("multipleInlinePlaybackCommand");var SPa=new _.X("loggingDirectives");var EBa={EMBEDDED_PLAYER_MODE_UNKNOWN:"EMBEDDED_PLAYER_MODE_UNKNOWN",EMBEDDED_PLAYER_MODE_DEFAULT:"EMBEDDED_PLAYER_MODE_DEFAULT",EMBEDDED_PLAYER_MODE_PFP:"EMBEDDED_PLAYER_MODE_PFP",EMBEDDED_PLAYER_MODE_PFL:"EMBEDDED_PLAYER_MODE_PFL"};var yAb=new _.X("acknowledgeChannelTouStrikeCommand");var zAb=function(){EE.apply(this,arguments)};
_.z(zAb,EE);zAb.prototype.getAssociations=function(){return[]};var AAb=function(){EE.apply(this,arguments)};
_.z(AAb,EE);AAb.prototype.getAssociations=function(){return[]};var Vt=new _.X("entityBatchUpdate");_.BAb=new _.X("entityUpdateCommand");var CAb=function(){EE.apply(this,arguments)};
_.z(CAb,EE);CAb.prototype.getAssociations=function(){var a=[];this.delegate.alternateChannel&&a.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&a.push.apply(a,_.Be(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&a.push(this.delegate.oneofChannelEntity);return[].concat(_.Be(new Set(a)))};var DAb=function(){EE.apply(this,arguments)};
_.z(DAb,EE);DAb.prototype.getAssociations=function(){var a=[];this.delegate.entryCollection&&a.push(this.delegate.entryCollection);return[].concat(_.Be(new Set(a)))};
var EAb=function(){EE.apply(this,arguments)};
_.z(EAb,EE);EAb.prototype.getAssociations=function(){var a=[];this.delegate.parentPlaylist&&a.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var b=_.h(this.delegate.entries),c=b.next();!c.done;c=b.next())a.push.apply(a,_.Be((new FAb(c.value)).getAssociations()));return[].concat(_.Be(new Set(a)))};
var FAb=function(){DE.apply(this,arguments)};
_.z(FAb,DE);FAb.prototype.getAssociations=function(){var a=[];this.delegate.video&&a.push(this.delegate.video);return[].concat(_.Be(new Set(a)))};var GAb=function(){EE.apply(this,arguments)};
_.z(GAb,EE);GAb.prototype.getAssociations=function(){var a=[];this.delegate.descriptionEntity&&a.push(this.delegate.descriptionEntity);this.delegate.creators&&a.push.apply(a,_.Be(this.delegate.creators));this.delegate.theBiggestFan&&a.push(this.delegate.theBiggestFan);return[].concat(_.Be(new Set(a)))};
var HAb=function(){EE.apply(this,arguments)};
_.z(HAb,EE);HAb.prototype.getAssociations=function(){return[]};var IAb=new _.X("fantasyRosterViewModel");var JAb=new _.X("addFollowUpSurveyCommand");var KAb=new _.X("getSurveyCommand");var LAb=new _.X("ratingSurveyOptionRenderer");_.Pw=new _.X("feedbackEndpoint");var MAb=new _.X("reportHistoryTableCellRenderer"),NAb=new _.X("reportHistoryTableTextCellRenderer"),OAb=new _.X("reportHistoryTableReasonCellRenderer");_.PAb=new _.X("flagEndpoint");var QAb=new _.X("getFlowCommand");var RAb=new _.X("submitFormWithValidationFlowCommand");var SAb=function(){EE.apply(this,arguments)};
_.z(SAb,EE);SAb.prototype.getAssociations=function(){return[]};var TAb=new _.X("flowFormState");var UAb=new _.X("gameCardRenderer");var VAb=new _.X("accountLinkingStateChangedCommand");var WAb=function(){EE.apply(this,arguments)};
_.z(WAb,EE);WAb.prototype.getAssociations=function(){return[]};var XAb=new _.X("changeMiniAppPlayStateCommand");var YAb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(YAb,_.Xc);var JE=[1,2,3];var ZAb=[0,JE,v$a,_.w$a,o$a];var $Ab=_.gd(YAb,ZAb),aBb=_.hd(ZAb);var bBb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(bBb,_.Xc);var cBb=[0,_.$x,_.cy];var dBb=[0,_.cy];var eBb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(eBb,_.Xc);var fBb=function(a,b){return _.Yj(a,1,b)},gBb=function(a,b){return _.Yj(a,3,b)};var hBb=_.hd([0,_.gy,cBb,_.gy,dBb]);var iBb=new _.X("miniAppScoreChallengeViewModel");var jBb=new _.X("miniGameCardViewModel");var kBb=new _.X("teaserCardViewModel");var lBb=function(){EE.apply(this,arguments)};
_.z(lBb,EE);lBb.prototype.getAssociations=function(){return[]};_.mBb=new _.X("feedbackItemRenderer");var nBb={UNKNOWN:"UNKNOWN",MY_CHANNEL:"MY_CHANNEL",WATCH_HISTORY:"WATCH_HISTORY",WATCH_HISTORY_CAIRO:"WATCH_HISTORY_CAIRO",WATCH_LATER:"WATCH_LATER",WATCH_LATER_CAIRO:"WATCH_LATER_CAIRO",WATCH_LATER_FILLED:"WATCH_LATER_FILLED",PURCHASES:"PURCHASES",WHAT_TO_WATCH:"WHAT_TO_WATCH",SUBSCRIPTIONS:"SUBSCRIPTIONS",PLAYLISTS:"PLAYLISTS",PLAYLISTS_CAIRO:"PLAYLISTS_CAIRO",OFFLINE:"OFFLINE",OFFLINE_CLOUD:"OFFLINE_CLOUD",OFFLINE_DOWNLOAD:"OFFLINE_DOWNLOAD",OFFLINE_DOWNLOAD_CAIRO:"OFFLINE_DOWNLOAD_CAIRO",OFFLINE_DOWNLOAD_COMPLETE_FILL:"OFFLINE_DOWNLOAD_COMPLETE_FILL",
OFFLINE_DOWNLOADING_ZERO:"OFFLINE_DOWNLOADING_ZERO",OFFLINE_DOWNLOADING_TWENTY:"OFFLINE_DOWNLOADING_TWENTY",OFFLINE_DOWNLOADING_FORTY:"OFFLINE_DOWNLOADING_FORTY",OFFLINE_DOWNLOADING_SIXTY:"OFFLINE_DOWNLOADING_SIXTY",OFFLINE_DOWNLOADING_EIGHTY:"OFFLINE_DOWNLOADING_EIGHTY",OFFLINE_DOWNLOADING_SPINNER:"OFFLINE_DOWNLOADING_SPINNER",OFFLINE_MUSIC_KEY:"OFFLINE_MUSIC_KEY",OFFLINE_REMOVE:"OFFLINE_REMOVE",OFFLINE_RESUME:"OFFLINE_RESUME",OFFLINE_PAUSE:"OFFLINE_PAUSE",OFFLINE_NO_CONTENT:"OFFLINE_NO_CONTENT",
OFFLINE_NO_CONTENT_UPSIDE_DOWN:"OFFLINE_NO_CONTENT_UPSIDE_DOWN",OFFLINE_PIN:"OFFLINE_PIN",OFFLINE_COMMUTE:"OFFLINE_COMMUTE",CAPTURE:"CAPTURE",UPLOADS:"UPLOADS",SOCIAL:"SOCIAL",BROWSE_CHANNELS:"BROWSE_CHANNELS",SUBSCRIPTION_MANAGER:"SUBSCRIPTION_MANAGER",FAVORITES:"FAVORITES",INBOX:"INBOX",LIKES_PLAYLIST:"LIKES_PLAYLIST",LIKES_PLAYLIST_CAIRO:"LIKES_PLAYLIST_CAIRO",MIX:"MIX",COLLECTION:"COLLECTION",EXPAND:"EXPAND",EXPAND_CAIRO:"EXPAND_CAIRO",COLLAPSE:"COLLAPSE",COLLAPSE_CAIRO:"COLLAPSE_CAIRO",MUSIC:"MUSIC",
MUSIC_CAIRO:"MUSIC_CAIRO",NO_OFFLINE_VIDEOS:"NO_OFFLINE_VIDEOS",NO_OFFLINE_PLAYLISTS:"NO_OFFLINE_PLAYLISTS",MUSIC_PASS_BADGE:"MUSIC_PASS_BADGE",PLAYLIST_ORDER:"PLAYLIST_ORDER",SHOWS:"SHOWS",EDUCATION:"EDUCATION",TIP_JAR:"TIP_JAR",TIP_JAR_LOVE:"TIP_JAR_LOVE",NOTIFICATIONS_INBOX:"NOTIFICATIONS_INBOX",BACK:"BACK",PAID:"PAID",POPULAR:"POPULAR",EXPLORE:"EXPLORE",CREATOR_STUDIO:"CREATOR_STUDIO",EDIT:"EDIT",CANCEL:"CANCEL",CREATOR_ANALYTICS:"CREATOR_ANALYTICS",CREATOR_COMMENTS:"CREATOR_COMMENTS",CREATOR_DASHBOARD:"CREATOR_DASHBOARD",
CREATOR_VIDEO_MANAGER:"CREATOR_VIDEO_MANAGER",CREATOR_VIEWER_LINK:"CREATOR_VIEWER_LINK",CREATOR_EXTERNAL_SHORTCUT:"CREATOR_EXTERNAL_SHORTCUT",CREATOR_SETTINGS:"CREATOR_SETTINGS",CREATOR_PLAYLISTS:"CREATOR_PLAYLISTS",CREATOR_METADATA_BASIC:"CREATOR_METADATA_BASIC",CREATOR_METADATA_MONETIZATION:"CREATOR_METADATA_MONETIZATION",CREATOR_METADATA_MONETIZATION_OFF:"CREATOR_METADATA_MONETIZATION_OFF",CREATOR_METADATA_ADVANCED:"CREATOR_METADATA_ADVANCED",SETTINGS:"SETTINGS",SETTINGS_CAIRO:"SETTINGS_CAIRO",
SETTINGS_LIGHT:"SETTINGS_LIGHT",SETTINGS_MATERIAL:"SETTINGS_MATERIAL",EXPERIMENT:"EXPERIMENT",REMOVE_FROM_HISTORY:"REMOVE_FROM_HISTORY",ADD_TO_PLAYLIST:"ADD_TO_PLAYLIST",REMOVE_FROM_PLAYLIST:"REMOVE_FROM_PLAYLIST",SHARE:"SHARE",INFO:"INFO",INFO_OUTLINE:"INFO_OUTLINE",CAPTIONS:"CAPTIONS",LIKE:"LIKE",DISLIKE:"DISLIKE",LIKE_SELECTED:"LIKE_SELECTED",DISLIKE_SELECTED:"DISLIKE_SELECTED",FLAG:"FLAG",FLAG_CAIRO:"FLAG_CAIRO",FLAG_OUTLINE:"FLAG_OUTLINE",HIDE:"HIDE",UNSUBSCRIBE:"UNSUBSCRIBE",DELETE:"DELETE",
DELETE_LIGHT:"DELETE_LIGHT",DELETE_SWEEP:"DELETE_SWEEP",REMOVE:"REMOVE",OFFLINE_ADD:"OFFLINE_ADD",QUESTION_CIRCLE:"QUESTION_CIRCLE",SAVE_PLAYLIST:"SAVE_PLAYLIST",ADD_TO_WATCH_LATER:"ADD_TO_WATCH_LATER",SEARCH:"SEARCH",SEARCH_CAIRO:"SEARCH_CAIRO",SEARCH_WITH_CIRCLE:"SEARCH_WITH_CIRCLE",SEARCH_FILLED:"SEARCH_FILLED",SEARCH_BOLD:"SEARCH_BOLD",SEARCH_TAB_LARGE:"SEARCH_TAB_LARGE",VOICE_SEARCH:"VOICE_SEARCH",VOICE_SEARCH_WHITE:"VOICE_SEARCH_WHITE",VOICE_SEARCH_WITH_CIRCLE:"VOICE_SEARCH_WITH_CIRCLE",SEARCH_HISTORY:"SEARCH_HISTORY",
SIGN_IN:"SIGN_IN",VIEW_ALL:"VIEW_ALL",ADD_TO_REMOTE_QUEUE:"ADD_TO_REMOTE_QUEUE",TRASH:"TRASH",EXPLORE_DESTINATION:"EXPLORE_DESTINATION",SHORTS_DESTINATION:"SHORTS_DESTINATION",TAB_EXPLORE:"TAB_EXPLORE",TAB_HOME:"TAB_HOME",TAB_HOME_CAIRO:"TAB_HOME_CAIRO",TAB_SUBSCRIPTIONS:"TAB_SUBSCRIPTIONS",TAB_SUBSCRIPTIONS_CAIRO:"TAB_SUBSCRIPTIONS_CAIRO",TAB_TRENDING:"TAB_TRENDING",TAB_LIBRARY:"TAB_LIBRARY",TAB_MORE:"TAB_MORE",TAB_ACCOUNT:"TAB_ACCOUNT",TAB_SHARES:"TAB_SHARES",TAB_ACTIVITY:"TAB_ACTIVITY",TAB_ACTIVITY_CAIRO:"TAB_ACTIVITY_CAIRO",
TAB_INBOX:"TAB_INBOX",TAB_HISTORY:"TAB_HISTORY",TAB_LIKED:"TAB_LIKED",TAB_COLLECT:"TAB_COLLECT",TAB_LIVE:"TAB_LIVE",TAB_MUSIC_PREMIUM:"TAB_MUSIC_PREMIUM",TAB_SHORTS:"TAB_SHORTS",TAB_SHORTS_CAIRO:"TAB_SHORTS_CAIRO",TAB_SAMPLES:"TAB_SAMPLES",EMPTY_LIKE:"EMPTY_LIKE",CLOCK:"CLOCK",CLOCK_FILLED:"CLOCK_FILLED",CONVERSATION_JOIN:"CONVERSATION_JOIN",CONVERSATION_LEAVE:"CONVERSATION_LEAVE",CONVERSATION_RENAME:"CONVERSATION_RENAME",MONETIZATION_MONETIZABLE:"MONETIZATION_MONETIZABLE",MONETIZATION_MONETIZED:"MONETIZATION_MONETIZED",
MONETIZATION_NOT_MONETIZABLE:"MONETIZATION_NOT_MONETIZABLE",MONETIZATION_PENDING:"MONETIZATION_PENDING",MONETIZATION_REQUIRES_ACTION:"MONETIZATION_REQUIRES_ACTION",MONETIZATION_REVSHARED:"MONETIZATION_REVSHARED",WATCH_RELATED_MIX:"WATCH_RELATED_MIX",WATCH_RELATED_PLAYLIST:"WATCH_RELATED_PLAYLIST",HELP:"HELP",HELP_CAIRO:"HELP_CAIRO",PRIVACY_PRIVATE:"PRIVACY_PRIVATE",PRIVACY_PUBLIC:"PRIVACY_PUBLIC",PRIVACY_UNLISTED:"PRIVACY_UNLISTED",PRIVACY_SCHEDULED:"PRIVACY_SCHEDULED",PLAY_ALL:"PLAY_ALL",CREATOR_CAPTURE_LINK:"CREATOR_CAPTURE_LINK",
DISMISSAL:"DISMISSAL",CHANNELS_HOME_TAB:"CHANNELS_HOME_TAB",CHANNELS_FEED_TAB:"CHANNELS_FEED_TAB",VERY_HAPPY:"VERY_HAPPY",HAPPY:"HAPPY",MEH:"MEH",SAD:"SAD",VERY_SAD:"VERY_SAD",YOUTUBE:"YOUTUBE",YOUTUBE_LOGO:"YOUTUBE_LOGO",YOUTUBE_LOGO_LIGHT:"YOUTUBE_LOGO_LIGHT",YOUTUBE_RED_LOGO:"YOUTUBE_RED_LOGO",YOUTUBE_RED_LOGO_SHORT:"YOUTUBE_RED_LOGO_SHORT",YOUTUBE_RED_LOGO_LIGHT:"YOUTUBE_RED_LOGO_LIGHT",YOUTUBE_RED_LOGO_WHITE_TEXT:"YOUTUBE_RED_LOGO_WHITE_TEXT",YOUTUBE_PLUS_LOGO:"YOUTUBE_PLUS_LOGO",YOUTUBE_PLUS_LOGO_SHORT:"YOUTUBE_PLUS_LOGO_SHORT",
YOUTUBE_PLUS_LOGO_LIGHT:"YOUTUBE_PLUS_LOGO_LIGHT",YOUTUBE_MUSIC_LOGO_SHORT:"YOUTUBE_MUSIC_LOGO_SHORT",YOUTUBE_MUSIC_LOGO_WHITE_TEXT:"YOUTUBE_MUSIC_LOGO_WHITE_TEXT",YOUTUBE_PREMIERE_LOGO_SHORT:"YOUTUBE_PREMIERE_LOGO_SHORT",YOUTUBE_PREMIUM_LOGO:"YOUTUBE_PREMIUM_LOGO",YOUTUBE_PREMIUM_LOGO_SHORT:"YOUTUBE_PREMIUM_LOGO_SHORT",YOUTUBE_SHORTS_ARROW_UP:"YOUTUBE_SHORTS_ARROW_UP",YOUTUBE_SHORTS_ARROW_DOWN:"YOUTUBE_SHORTS_ARROW_DOWN",YOUTUBE_SHORTS_OUTLINE_16:"YOUTUBE_SHORTS_OUTLINE_16",YOUTUBE_SHORTS_OUTLINE_20:"YOUTUBE_SHORTS_OUTLINE_20",
YOUTUBE_SHORTS_OUTLINE_24:"YOUTUBE_SHORTS_OUTLINE_24",YOUTUBE_SHORTS_FILL_16:"YOUTUBE_SHORTS_FILL_16",YOUTUBE_SHORTS_FILL_20:"YOUTUBE_SHORTS_FILL_20",YOUTUBE_SHORTS_FILL_24:"YOUTUBE_SHORTS_FILL_24",YOUTUBE_SHORTS_BRAND_24:"YOUTUBE_SHORTS_BRAND_24",YOUTUBE_SHORTS_BRAND_32:"YOUTUBE_SHORTS_BRAND_32",YOUTUBE_SHORTS_TRUNCATED_LOGO_WHITE_21:"YOUTUBE_SHORTS_TRUNCATED_LOGO_WHITE_21",YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16:"YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16",YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16:"YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16",
YOUTUBE_TV:"YOUTUBE_TV",YOUTUBE_WHITE:"YOUTUBE_WHITE",YOUTUBE_KIDS:"YOUTUBE_KIDS",YOUTUBE_LOGO_CAIRO_PLACEHOLDER:"YOUTUBE_LOGO_CAIRO_PLACEHOLDER",YOUTUBE_LOGO_CAIRO_PLACEHOLDER_DARK:"YOUTUBE_LOGO_CAIRO_PLACEHOLDER_DARK",YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER:"YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER",YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER_DARK:"YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER_DARK",MONETIZATION_ON:"MONETIZATION_ON",SORT_NEWEST:"SORT_NEWEST",SORT_MOST_VIEWED:"SORT_MOST_VIEWED",VIDEO_QUALITY:"VIDEO_QUALITY",
VIDEO_QUALITY_4K:"VIDEO_QUALITY_4K",VIDEO_QUALITY_4K_FILLED:"VIDEO_QUALITY_4K_FILLED",VIDEO_QUALITY_8K:"VIDEO_QUALITY_8K",VIDEO_QUALITY_SD:"VIDEO_QUALITY_SD",FEEDBACK:"FEEDBACK",FEEDBACK_CAIRO:"FEEDBACK_CAIRO",PRIVACY_INFO:"PRIVACY_INFO",SHARE_LIGHT:"SHARE_LIGHT",SHARE_ARROW:"SHARE_ARROW",SHARE_ARROW_LIGHT:"SHARE_ARROW_LIGHT",SHARE_CAIRO:"SHARE_CAIRO",IOS_SHARE:"IOS_SHARE",CREATE_PLAYLIST:"CREATE_PLAYLIST",UNLIMITED:"UNLIMITED",EMPTY_HEART:"EMPTY_HEART",FULL_HEART:"FULL_HEART",UNLIMITED_LOGO:"UNLIMITED_LOGO",
RELATED:"RELATED",PLAYING:"PLAYING",REPORT_PROBLEM:"REPORT_PROBLEM",BUG_REPORT:"BUG_REPORT",INLINE_PLAYBACK_SETTINGS:"INLINE_PLAYBACK_SETTINGS",REPLAY:"REPLAY",REFRESH:"REFRESH",REDEEM:"REDEEM",SWITCH_ACCOUNTS:"SWITCH_ACCOUNTS",SHUFFLE:"SHUFFLE",MUSIC_SHUFFLE:"MUSIC_SHUFFLE",LOOP:"LOOP",LOOP_ACTIVE:"LOOP_ACTIVE",LOOP_ONE:"LOOP_ONE",LOOP_ONE_ACTIVE:"LOOP_ONE_ACTIVE",ACCOUNT_CIRCLE:"ACCOUNT_CIRCLE",ACCOUNT_CIRCLE_CAIRO:"ACCOUNT_CIRCLE_CAIRO",ACCOUNT_BOX:"ACCOUNT_BOX",ACCOUNT_BOX_CAIRO:"ACCOUNT_BOX_CAIRO",
OPEN_IN_NEW:"OPEN_IN_NEW",OPEN_WITH:"OPEN_WITH",CAST_ICON:"CAST_ICON",CAST_OUTLINE:"CAST_OUTLINE",CAST_MOBILE:"CAST_MOBILE",DISCONNECTED_CAST_CIRCLE:"DISCONNECTED_CAST_CIRCLE",SHORTS_COMMENT:"SHORTS_COMMENT",SHORTS_DISLIKE:"SHORTS_DISLIKE",SHORTS_LIKE:"SHORTS_LIKE",SHORTS_SHARE:"SHORTS_SHARE",SHORTS_HEADER_CAMERA:"SHORTS_HEADER_CAMERA",SHORTS_HEADER_CAMERA_BOLD:"SHORTS_HEADER_CAMERA_BOLD",SHORTS_LIKE_SELECTED:"SHORTS_LIKE_SELECTED",SHORTS_DISLIKE_SELECTED:"SHORTS_DISLIKE_SELECTED",SHORTS_SAVE_OFF:"SHORTS_SAVE_OFF",
SHORTS_SAVE_ON:"SHORTS_SAVE_ON",SHORTS_SEARCH:"SHORTS_SEARCH",ADD_FRIEND:"ADD_FRIEND",ADD_MORE_FRIENDS:"ADD_MORE_FRIENDS",ACCEPT_FRIEND_INVITE:"ACCEPT_FRIEND_INVITE",DECLINE_FRIEND_INVITE:"DECLINE_FRIEND_INVITE",CANCEL_FRIEND_INVITE:"CANCEL_FRIEND_INVITE",BLOCK_USER:"BLOCK_USER",UNBLOCK_USER:"UNBLOCK_USER",VIEW_PARTICIPANTS:"VIEW_PARTICIPANTS",INVITE_TO_CONVERSATION:"INVITE_TO_CONVERSATION",LIVE:"LIVE",LIVE_CAIRO:"LIVE_CAIRO",SPECIAL:"SPECIAL",HOME:"HOME",HOME_FILLED:"HOME_FILLED",STAFF_PICK:"STAFF_PICK",
REVIEW:"REVIEW",LETS_PLAY:"LETS_PLAY",MORE_FROM_PUBLISHER:"MORE_FROM_PUBLISHER",NEWS:"NEWS",NEWS_CAIRO:"NEWS_CAIRO",TRAILER:"TRAILER",NEW_RELEASE:"NEW_RELEASE",TOURNAMENTS:"TOURNAMENTS",SPEED_RUN:"SPEED_RUN",EVENT:"EVENT",EVENT_LIGHT:"EVENT_LIGHT",TUTORIAL:"TUTORIAL",GAMES:"GAMES",RECOMMENDED:"RECOMMENDED",TRENDING_UP:"TRENDING_UP",VIDEOS:"VIDEOS",FASHION_LOGO:"FASHION_LOGO",FASHION_LOGO_CAIRO:"FASHION_LOGO_CAIRO",TERMS_OF_SERVICE:"TERMS_OF_SERVICE",CONTACT:"CONTACT",COLORED_GAMING_LOGO:"COLORED_GAMING_LOGO",
GAMING_LOGO:"GAMING_LOGO",GAMING_LOGO_CAIRO:"GAMING_LOGO_CAIRO",CHANNEL_NOTIFICATION_PREFERENCE_OFF:"CHANNEL_NOTIFICATION_PREFERENCE_OFF",CHANNEL_NOTIFICATION_PREFERENCE_ON:"CHANNEL_NOTIFICATION_PREFERENCE_ON",PLAYLIST_NOTIFICATION_PREFERENCE_OFF:"PLAYLIST_NOTIFICATION_PREFERENCE_OFF",PLAYLIST_NOTIFICATION_PREFERENCE_ON:"PLAYLIST_NOTIFICATION_PREFERENCE_ON",NOTIFICATIONS:"NOTIFICATIONS",NOTIFICATIONS_CAIRO:"NOTIFICATIONS_CAIRO",NOTIFICATIONS_OFF:"NOTIFICATIONS_OFF",NOTIFICATIONS_OFF_OUTLINE:"NOTIFICATIONS_OFF_OUTLINE",
NOTIFICATIONS_DONE_CHECKMARK:"NOTIFICATIONS_DONE_CHECKMARK",MUSIC_AUTO_OFFLINE_BADGE:"MUSIC_AUTO_OFFLINE_BADGE",MUSIC_EXPLICIT_BADGE:"MUSIC_EXPLICIT_BADGE",MUSIC_NOTIFICATIONS_SETTING:"MUSIC_NOTIFICATIONS_SETTING",NOTIFICATIONS_NONE:"NOTIFICATIONS_NONE",NOTIFICATIONS_ACTIVE:"NOTIFICATIONS_ACTIVE",NOTIFICATIONS_OCCASIONAL:"NOTIFICATIONS_OCCASIONAL",SEND:"SEND",SEND_OUTLINE:"SEND_OUTLINE",SLOW_MODE:"SLOW_MODE",SLOW_MODE_OFF:"SLOW_MODE_OFF",STORIES_ADD_BADGE:"STORIES_ADD_BADGE",SUPER_CHAT_FOR_GOOD:"SUPER_CHAT_FOR_GOOD",
MEMBERS_ONLY_MODE:"MEMBERS_ONLY_MODE",MEMBERS_ONLY_MODE_OFF:"MEMBERS_ONLY_MODE_OFF",INVITE_ONLY_MODE:"INVITE_ONLY_MODE",INVITE_ONLY_MODE_OFF:"INVITE_ONLY_MODE_OFF",EMOJI:"EMOJI",EMOJI_ACTIVITIES:"EMOJI_ACTIVITIES",EMOJI_CUSTOM:"EMOJI_CUSTOM",EMOJI_FLAGS:"EMOJI_FLAGS",EMOJI_FOOD:"EMOJI_FOOD",EMOJI_NATURE:"EMOJI_NATURE",EMOJI_OBJECTS:"EMOJI_OBJECTS",EMOJI_PEOPLE:"EMOJI_PEOPLE",EMOJI_RECENT:"EMOJI_RECENT",EMOJI_SYMBOLS:"EMOJI_SYMBOLS",EMOJI_TRAVEL:"EMOJI_TRAVEL",EMOJI_SPONSORSHIPS:"EMOJI_SPONSORSHIPS",
HEART_BOX:"HEART_BOX",MEDAL_STAR:"MEDAL_STAR",SUPERSTAR:"SUPERSTAR",TROPHY_STAR:"TROPHY_STAR",MESSAGE_BUBBLE_GEAR:"MESSAGE_BUBBLE_GEAR",MESSAGE_BUBBLE_LEFT:"MESSAGE_BUBBLE_LEFT",MESSAGE_BUBBLE_LEFT_BOOST:"MESSAGE_BUBBLE_LEFT_BOOST",MONEY_FILL:"MONEY_FILL",MONEY_FILL_JPY:"MONEY_FILL_JPY",MONEY_FILL_STORE:"MONEY_FILL_STORE",MONEY_FILL_SHOPPING_BAG:"MONEY_FILL_SHOPPING_BAG",MONEY_FILL_MORE_ARROW:"MONEY_FILL_MORE_ARROW",MONEY_HEART:"MONEY_HEART",FILL_DOLLAR_SIGN_HEART_12:"FILL_DOLLAR_SIGN_HEART_12",PURCHASE_SPONSORSHIP:"PURCHASE_SPONSORSHIP",
PURCHASE_SUPER_CHAT:"PURCHASE_SUPER_CHAT",PURCHASE_SUPER_STICKER:"PURCHASE_SUPER_STICKER",SUPER_STICKER:"SUPER_STICKER",REDEEM_SUPER_CHAT_FREEBIE:"REDEEM_SUPER_CHAT_FREEBIE",STICKER_GHOST_CARD:"STICKER_GHOST_CARD",DOLLAR_SIGN_CIRCLE:"DOLLAR_SIGN_CIRCLE",OWNER:"OWNER",MODERATOR:"MODERATOR",YOUTUBE_TEAM:"YOUTUBE_TEAM",VERIFIED:"VERIFIED",MEMBER:"MEMBER",FAB_UPLOAD:"FAB_UPLOAD",FAB_CAMERA:"FAB_CAMERA",BACKGROUND_SIGNED_OUT:"BACKGROUND_SIGNED_OUT",BACKGROUND_SUBSCRIBE:"BACKGROUND_SUBSCRIBE",BACKGROUND_SUBSCRIBE_TRANSPARENT:"BACKGROUND_SUBSCRIBE_TRANSPARENT",
ARTIST:"ARTIST",ARTIST_ANALYTICS:"ARTIST_ANALYTICS",ASSESSMENT:"ASSESSMENT",CREDIT_CARD:"CREDIT_CARD",GET_APP:"GET_APP",LIVE_CHECKLIST:"LIVE_CHECKLIST",MEMBERSHIP_PRE_PURCHASE:"MEMBERSHIP_PRE_PURCHASE",MEMBERSHIP_LIMITED_PRE_PURCHASE:"MEMBERSHIP_LIMITED_PRE_PURCHASE",MEMBERSHIP_POST_PURCHASE:"MEMBERSHIP_POST_PURCHASE",MEMBERSHIP_LIMITED_POST_PURCHASE:"MEMBERSHIP_LIMITED_POST_PURCHASE",MEMBERSHIP_OFFER:"MEMBERSHIP_OFFER",MEMBERSHIP_MANAGE:"MEMBERSHIP_MANAGE",MEMBERSHIP_CANCELED:"MEMBERSHIP_CANCELED",
MEMBERSHIP_PURCHASED:"MEMBERSHIP_PURCHASED",PHONE:"PHONE",SMS:"SMS",FAVORITE:"FAVORITE",UNFAVORITE:"UNFAVORITE",NEXT:"NEXT",REPOST:"REPOST",EXTERNAL_LINK:"EXTERNAL_LINK",LANGUAGE:"LANGUAGE",CLOSED_CAPTION:"CLOSED_CAPTION",CLOSED_CAPTION_SELECTED:"CLOSED_CAPTION_SELECTED",VIEW_LIST:"VIEW_LIST",VIEW_LIST_CAIRO:"VIEW_LIST_CAIRO",VIEW_LIST_DARK:"VIEW_LIST_DARK",VIEW_MODULE:"VIEW_MODULE",VIEW_MODULE_DARK:"VIEW_MODULE_DARK",VERTICAL_ALIGN_BOTTOM:"VERTICAL_ALIGN_BOTTOM",VERTICAL_ALIGN_TOP:"VERTICAL_ALIGN_TOP",
MUSIC_UNAVAILABLE:"MUSIC_UNAVAILABLE",NO_CONVERSATIONS:"NO_CONVERSATIONS",ALERT_WARN_RED:"ALERT_WARN_RED",ALERT_WARN_YELLOW:"ALERT_WARN_YELLOW",WARNING:"WARNING",SORT:"SORT",FILTER:"FILTER",KIDS_PRESCHOOL_CONTENT_AGE_PREFERENCE:"KIDS_PRESCHOOL_CONTENT_AGE_PREFERENCE",KIDS_SCHOOL_CONTENT_AGE_PREFERENCE:"KIDS_SCHOOL_CONTENT_AGE_PREFERENCE",KIDS_NO_CONTENT_AGE_PREFERENCE:"KIDS_NO_CONTENT_AGE_PREFERENCE",SPACECAST:"SPACECAST",SCHOOL:"SCHOOL",ACCELERATOR:"ACCELERATOR",TRENDING:"TRENDING",TRENDING_CAIRO:"TRENDING_CAIRO",
PAUSE_FILLED:"PAUSE_FILLED",PAUSE_OUTLINED:"PAUSE_OUTLINED",PHOTO_CAMERA:"PHOTO_CAMERA",PHOTO_CAMERA_LIGHT:"PHOTO_CAMERA_LIGHT",PHOTO_CAMERA_OUTLINE:"PHOTO_CAMERA_OUTLINE",PHOTO_CAMERA_OUTLINE_LARGE:"PHOTO_CAMERA_OUTLINE_LARGE",PHOTO_LIBRARY:"PHOTO_LIBRARY",COPYRIGHT_NOTIFICATION_RED:"COPYRIGHT_NOTIFICATION_RED",COPYRIGHT_NOTIFICATION_BLUE:"COPYRIGHT_NOTIFICATION_BLUE",PLAYLIST_ADD:"PLAYLIST_ADD",PLAYLIST_ADD_CHECK:"PLAYLIST_ADD_CHECK",CHANNEL_BACK:"CHANNEL_BACK",STAR:"STAR",STAR_FILLED:"STAR_FILLED",
STAR_BORDER:"STAR_BORDER",STAR_HALF:"STAR_HALF",CLOSE:"CLOSE",CLOSE_LIGHT:"CLOSE_LIGHT",COUNTDOWN_TO_CLOSE:"COUNTDOWN_TO_CLOSE",COUNTDOWN_TO_CLOSE_DIGIT:"COUNTDOWN_TO_CLOSE_DIGIT",CHECK:"CHECK",TOPIC_EXPLORER_EXPAND_FACET:"TOPIC_EXPLORER_EXPAND_FACET",TOPIC_EXPLORER_COLLAPSE_FACET:"TOPIC_EXPLORER_COLLAPSE_FACET",CLEAR_COOKIES:"CLEAR_COOKIES",CLEAR_WATCH_HISTORY:"CLEAR_WATCH_HISTORY",CLEAR_SEARCH_HISTORY:"CLEAR_SEARCH_HISTORY",CHEVRON_RIGHT:"CHEVRON_RIGHT",CHEVRON_RIGHT_CAIRO:"CHEVRON_RIGHT_CAIRO",
CHEVRON_RIGHT_GREY:"CHEVRON_RIGHT_GREY",CHEVRON_LEFT:"CHEVRON_LEFT",SUBSCRIBE:"SUBSCRIBE",SUBSCRIBE_PLUS:"SUBSCRIBE_PLUS",GO_TO_PAGE:"GO_TO_PAGE",DO_NOT_DISTURB:"DO_NOT_DISTURB",ADD_TO_LIBRARY:"ADD_TO_LIBRARY",REMOVE_FROM_LIBRARY:"REMOVE_FROM_LIBRARY",UP_ARROW:"UP_ARROW",DOWN_ARROW:"DOWN_ARROW",DOWN_ARROW_OUTLINE:"DOWN_ARROW_OUTLINE",EMPTY_STATE_CREATE_VIDEO:"EMPTY_STATE_CREATE_VIDEO",EMPTY_STATE_ORGANIZE_CHANNEL:"EMPTY_STATE_ORGANIZE_CHANNEL",EMPTY_STATE_NO_CONTENT:"EMPTY_STATE_NO_CONTENT",EMPTY_STATE_PRIVATE_CONTENT:"EMPTY_STATE_PRIVATE_CONTENT",
BUY_DATA:"BUY_DATA",SHOPPING_CART:"SHOPPING_CART",ARROW_FLIP:"ARROW_FLIP",RESTORE:"RESTORE",ARROW_DIAGONAL:"ARROW_DIAGONAL",CONSENT_SHIELD:"CONSENT_SHIELD",COMMENT:"COMMENT",START_DVR:"START_DVR",STOP_DVR:"STOP_DVR",CHAT:"CHAT",CHAT_OFF:"CHAT_OFF",CHAT_BUBBLE:"CHAT_BUBBLE",CHAT_BUBBLE_LIGHT:"CHAT_BUBBLE_LIGHT",CHAT_BUBBLE_OFF:"CHAT_BUBBLE_OFF",CHAT_SPARK:"CHAT_SPARK",CHAT_SPONSORED:"CHAT_SPONSORED",VOICE_CHAT:"VOICE_CHAT",SPONSORSHIP_STAR:"SPONSORSHIP_STAR",SPONSORSHIPS:"SPONSORSHIPS",SPONSORSHIPS_NO_BG:"SPONSORSHIPS_NO_BG",
PLAY_ARROW:"PLAY_ARROW",PLAY_ARROW_OUTLINED:"PLAY_ARROW_OUTLINED",PLAY_ARROW_CIRCLE:"PLAY_ARROW_CIRCLE",PLAY_CIRCLE:"PLAY_CIRCLE",PLAY_ARROW_OVERLAY:"PLAY_ARROW_OVERLAY",PLAY_OUTLINED:"PLAY_OUTLINED",CHECK_CIRCLE:"CHECK_CIRCLE",CHECK_CIRCLE_BLUE:"CHECK_CIRCLE_BLUE",CHECK_CIRCLE_OUTLINE:"CHECK_CIRCLE_OUTLINE",CHECK_CIRCLE_THICK:"CHECK_CIRCLE_THICK",CHECK_CIRCLE_FILLED:"CHECK_CIRCLE_FILLED",COPY:"COPY",QUEUE_PLAY_NEXT:"QUEUE_PLAY_NEXT",QUEUE_PLAY_LAST:"QUEUE_PLAY_LAST",QUEUE_MUSIC:"QUEUE_MUSIC",CARDBOARD:"CARDBOARD",
PLANNER_REVIEW:"PLANNER_REVIEW",MORE_VERT:"MORE_VERT",MORE_VERT_BOLD:"MORE_VERT_BOLD",MORE_HORIZ_LIGHT:"MORE_HORIZ_LIGHT",MORE_HORIZ:"MORE_HORIZ",ANDROID_PHONE:"ANDROID_PHONE",ADD:"ADD",ADD_BOLD:"ADD_BOLD",ADD_SMALL:"ADD_SMALL",EXIT_APP:"EXIT_APP",IM_FEELING_LUCKY:"IM_FEELING_LUCKY",PUBLIC:"PUBLIC",MESSAGE:"MESSAGE",MOBILE_LANDSCAPE:"MOBILE_LANDSCAPE",MOBILE_PORTRAIT:"MOBILE_PORTRAIT",STAY_CURRENT_LANDSCAPE:"STAY_CURRENT_LANDSCAPE",STAY_CURRENT_PORTRAIT:"STAY_CURRENT_PORTRAIT",BUILD:"BUILD",INPUT_COMPONENT:"INPUT_COMPONENT",
DOGFOOD:"DOGFOOD",KEEP:"KEEP",KEEP_OFF:"KEEP_OFF",DASHBOARD:"DASHBOARD",SPORTS:"SPORTS",SUBTITLES:"SUBTITLES",QUESTION_ANSWER:"QUESTION_ANSWER",IMPORT_CONTACTS:"IMPORT_CONTACTS",VIDEO_CALL:"VIDEO_CALL",VIDEO_CAMERA:"VIDEO_CAMERA",VIDEO_CAMERA_DISABLED:"VIDEO_CAMERA_DISABLED",VIDEO_CAMERA_SWITCH_LIGHT:"VIDEO_CAMERA_SWITCH_LIGHT",BACK_LIGHT:"BACK_LIGHT",FILTER_EFFECT_LIGHT:"FILTER_EFFECT_LIGHT",MICROPHONE_ON:"MICROPHONE_ON",MICROPHONE_OFF:"MICROPHONE_OFF",FLASH_ON:"FLASH_ON",FLASH_OFF:"FLASH_OFF",LINK:"LINK",
LIVE_UNLISTED:"LIVE_UNLISTED",PAYMENT:"PAYMENT",ADD_CIRCLE:"ADD_CIRCLE",SMARTPHONE:"SMARTPHONE",SCREEN_LOCK_PORTRAIT:"SCREEN_LOCK_PORTRAIT",SCREEN_LOCK_LANDSCAPE:"SCREEN_LOCK_LANDSCAPE",KIDS_REPORT_AUDIO:"KIDS_REPORT_AUDIO",KIDS_REPORT_VISUALS:"KIDS_REPORT_VISUALS",KIDS_REPORT_OTHER:"KIDS_REPORT_OTHER",KIDS_BLOCK:"KIDS_BLOCK",KIDS_BLOCK_LIGHT:"KIDS_BLOCK_LIGHT",AVATAR_ANONYMOUS:"AVATAR_ANONYMOUS",AVATAR_LOGGED_OUT:"AVATAR_LOGGED_OUT",HALLOWEEN:"HALLOWEEN",UPLOAD:"UPLOAD",MY_LOCATION:"MY_LOCATION",
MUSIC_VIDEO:"MUSIC_VIDEO",PLAYLIST_PLAY:"PLAYLIST_PLAY",ALBUM:"ALBUM",LOGGED_OUT_SUBS:"LOGGED_OUT_SUBS",LOGGED_OUT_LIBRARY:"LOGGED_OUT_LIBRARY",LOGGED_OUT_ACCOUNT:"LOGGED_OUT_ACCOUNT",FUSION_V2_FSI:"FUSION_V2_FSI",PERSON:"PERSON",PERSON_ADD:"PERSON_ADD",PERSON_ACCOUNT:"PERSON_ACCOUNT",PERSON_CIRCLE:"PERSON_CIRCLE",PERSON_MINUS:"PERSON_MINUS",PERSON_RADAR:"PERSON_RADAR",PERSON_RADAR_FILLED:"PERSON_RADAR_FILLED",PERSON_SETTING:"PERSON_SETTING",MOVIES:"MOVIES",CLAPPERBOARD:"CLAPPERBOARD",CLAPPERBOARD_CAIRO:"CLAPPERBOARD_CAIRO",
MOVIES_BLUE:"MOVIES_BLUE",ROTTEN_TOMATOES_FRESH:"ROTTEN_TOMATOES_FRESH",ROTTEN_TOMATOES_SPLAT:"ROTTEN_TOMATOES_SPLAT",ROTTEN_TOMATOES_CERTIFIED:"ROTTEN_TOMATOES_CERTIFIED",WINTER:"WINTER",HOURGLASS:"HOURGLASS",REMOVE_CIRCLE:"REMOVE_CIRCLE",YOUTUBE_RED_ORIGINALS:"YOUTUBE_RED_ORIGINALS",VIDEO_YOUTUBE_RED:"VIDEO_YOUTUBE_RED",ACCESS_TIME:"ACCESS_TIME",ERROR_OUTLINE:"ERROR_OUTLINE",ERROR_WHITE:"ERROR_WHITE",ERROR_BLACK:"ERROR_BLACK",IMAGE:"IMAGE",NO_CONNECTION:"NO_CONNECTION",UNPLUGGED_LOGO:"UNPLUGGED_LOGO",
CREATE_VIDEO:"CREATE_VIDEO",CREATE_REEL_ITEM:"CREATE_REEL_ITEM",CREATE_LIVE_STREAM:"CREATE_LIVE_STREAM",CREATE_POST:"CREATE_POST",CREATION_ENTRY:"CREATION_ENTRY",CREATION_ENTRY_V2:"CREATION_ENTRY_V2",KIDS_GAMING:"KIDS_GAMING",YOUTUBE_MUSIC_BUTTON:"YOUTUBE_MUSIC_BUTTON",YOUTUBE_MUSIC_BUTTON_RED:"YOUTUBE_MUSIC_BUTTON_RED",YOUTUBE_MUSIC_BUTTON_RINGO:"YOUTUBE_MUSIC_BUTTON_RINGO",YOUTUBE_RED_ORIGINALS_BUTTON:"YOUTUBE_RED_ORIGINALS_BUTTON",YOUTUBE_RED_ORIGINALS_BUTTON_RED:"YOUTUBE_RED_ORIGINALS_BUTTON_RED",
EXIT_TO_APP:"EXIT_TO_APP",FIRST_PAGE:"FIRST_PAGE",LAST_PAGE:"LAST_PAGE",TIMER:"TIMER",TRANSFER_FINISHED:"TRANSFER_FINISHED",TRANSFER_SYNC:"TRANSFER_SYNC",TRANSLATE:"TRANSLATE",AV_TIMER:"AV_TIMER",SUBS_ZERO_STATE:"SUBS_ZERO_STATE",KEYBOARD:"KEYBOARD",KEYBOARD_OUTLINE:"KEYBOARD_OUTLINE",APP_INSTALL:"APP_INSTALL",POLL:"POLL",REDO:"REDO",BLOCK:"BLOCK",ADD_VIDEO_LINK:"ADD_VIDEO_LINK",RADIO_BUTTON_UNCHECKED:"RADIO_BUTTON_UNCHECKED",PLACE:"PLACE",PIVOT_HOME:"PIVOT_HOME",PIVOT_HOME_GREY:"PIVOT_HOME_GREY",
PIVOT_TRENDING:"PIVOT_TRENDING",PIVOT_REWIND:"PIVOT_REWIND",PIVOT_SUBSCRIPTIONS:"PIVOT_SUBSCRIPTIONS",PIVOT_SHARED:"PIVOT_SHARED",PIVOT_LIBRARY:"PIVOT_LIBRARY",PIVOT_ACCOUNT:"PIVOT_ACCOUNT",KIDS_READING:"KIDS_READING",PIVOT_PREMIER:"PIVOT_PREMIER",AUDIOTRACK:"AUDIOTRACK",STICKER_LIGHT:"STICKER_LIGHT",STICKER_EMOTICON:"STICKER_EMOTICON",STARS:"STARS",SCISSORS:"SCISSORS",MUSIC_SCISSORS:"MUSIC_SCISSORS",TAG_FACES:"TAG_FACES",GROUP:"GROUP",EMPTY_STATE_WATCH_LATER:"EMPTY_STATE_WATCH_LATER",SLOW_MOTION_VIDEO:"SLOW_MOTION_VIDEO",
ARROW_FORWARD:"ARROW_FORWARD",ARROW_BACK:"ARROW_BACK",DARK_THEME:"DARK_THEME",DARK_THEME_LARGE:"DARK_THEME_LARGE",VISIBILITY:"VISIBILITY",VISIBILITY_OFF:"VISIBILITY_OFF",MORE_LIKE_THIS:"MORE_LIKE_THIS",CAMERA_ALT:"CAMERA_ALT",ADD_PHOTO_ALTERNATE:"ADD_PHOTO_ALTERNATE",NOT_INTERESTED:"NOT_INTERESTED",APPS:"APPS",YOUTUBE_ROUND:"YOUTUBE_ROUND",OUTLINE_YOUTUBE_ROUND:"OUTLINE_YOUTUBE_ROUND",YOUTUBE_KIDS_ROUND:"YOUTUBE_KIDS_ROUND",YOUTUBE_MUSIC:"YOUTUBE_MUSIC",YOUTUBE_MUSIC_FILLED:"YOUTUBE_MUSIC_FILLED",
YOUTUBE_MUSIC_MONOCHROME:"YOUTUBE_MUSIC_MONOCHROME",YOUTUBE_MUSIC_MONOCHROME_CAIRO:"YOUTUBE_MUSIC_MONOCHROME_CAIRO",UNPLUGGED_BELL_FOLLOW_ENABLED:"UNPLUGGED_BELL_FOLLOW_ENABLED",UNPLUGGED_BELL_FOLLOW_DISABLED:"UNPLUGGED_BELL_FOLLOW_DISABLED",UNPLUGGED_SPORTS:"UNPLUGGED_SPORTS",UNPLUGGED_LIVE_GUIDE:"UNPLUGGED_LIVE_GUIDE",UNPLUGGED_LIVE_GUIDE_FILLED:"UNPLUGGED_LIVE_GUIDE_FILLED",SUBSCRIPTIONS_FILLED:"SUBSCRIPTIONS_FILLED",VISIBILITY_FILLED:"VISIBILITY_FILLED",LOCATION_FILLED:"LOCATION_FILLED",UNPLUGGED_DARK_THEME:"UNPLUGGED_DARK_THEME",
BRIGHTNESS_FIVE:"BRIGHTNESS_FIVE",BRIGHTNESS_FOUR:"BRIGHTNESS_FOUR",UNPLUGGED_NETWORKS:"UNPLUGGED_NETWORKS",UNPLUGGED_EPISODES:"UNPLUGGED_EPISODES",UNPLUGGED_MORE_TO_WATCH:"UNPLUGGED_MORE_TO_WATCH",UNPLUGGED_STORE:"UNPLUGGED_STORE",CONVERSATIONS:"CONVERSATIONS",EMPTY_SEARCH:"EMPTY_SEARCH",CHECK_BOX:"CHECK_BOX",CHECK_BOX_OUTLINE_BLANK:"CHECK_BOX_OUTLINE_BLANK",CHECK_BOX_BAR:"CHECK_BOX_BAR",SKIP_NEXT:"SKIP_NEXT",SKIP_NEXT_NEW:"SKIP_NEXT_NEW",SKIP_PREVIOUS:"SKIP_PREVIOUS",PICTURE_IN_PICTURE:"PICTURE_IN_PICTURE",
SOUND:"SOUND",AUTOPLAY:"AUTOPLAY",CONTRAST:"CONTRAST",VOLUME_MUTE:"VOLUME_MUTE",VOLUME_OFF:"VOLUME_OFF",VOLUME_UP:"VOLUME_UP",VOLUME_DOWN:"VOLUME_DOWN",MY_VIDEOS_ZERO_STATE:"MY_VIDEOS_ZERO_STATE",BACKSTAGE_ARTWORK:"BACKSTAGE_ARTWORK",LIBRARY_MUSIC:"LIBRARY_MUSIC",LIBRARY_ADD:"LIBRARY_ADD",LIBRARY_IMAGE:"LIBRARY_IMAGE",LIBRARY_REMOVE:"LIBRARY_REMOVE",LIBRARY_OUTLINE:"LIBRARY_OUTLINE",LIBRARY_SAVED:"LIBRARY_SAVED",WATCH_HISTORY_PAUSED:"WATCH_HISTORY_PAUSED",IMPROVE_YOUTUBE:"IMPROVE_YOUTUBE",TV:"TV",
TV_OFF:"TV_OFF",SAVE_ALT:"SAVE_ALT",DOWNLOADS_PAGE_EMPTY:"DOWNLOADS_PAGE_EMPTY",ACCOUNT_LINKED:"ACCOUNT_LINKED",ACCOUNT_UNLINKED:"ACCOUNT_UNLINKED",ACCOUNT_SOME_LINKED:"ACCOUNT_SOME_LINKED",CREATOR_STUDIO_NO_COMMENTS:"CREATOR_STUDIO_NO_COMMENTS",CREATOR_STUDIO_NO_HELD_COMMENTS:"CREATOR_STUDIO_NO_HELD_COMMENTS",CREATOR_STUDIO_NO_HELD_COMMENTS_V2:"CREATOR_STUDIO_NO_HELD_COMMENTS_V2",CREATOR_STUDIO_NO_SEARCH_MATCH:"CREATOR_STUDIO_NO_SEARCH_MATCH",CREATOR_STUDIO_NO_SEARCH_MATCH_V2:"CREATOR_STUDIO_NO_SEARCH_MATCH_V2",
CREATOR_STUDIO_ERROR_ON_LOAD:"CREATOR_STUDIO_ERROR_ON_LOAD",CREATOR_STUDIO_ERROR_ON_LOAD_V2:"CREATOR_STUDIO_ERROR_ON_LOAD_V2",VIDEO_LIBRARY_WHITE:"VIDEO_LIBRARY_WHITE",PRODUCT_SHOP:"PRODUCT_SHOP",PRODUCT_HOTEL:"PRODUCT_HOTEL",PRODUCT_FLIGHT:"PRODUCT_FLIGHT",PLAY_ARROW_BLACK:"PLAY_ARROW_BLACK",HIGHLIGHT_OFF:"HIGHLIGHT_OFF",CREATION_UPLOAD:"CREATION_UPLOAD",CREATION_UPLOAD_RED:"CREATION_UPLOAD_RED",CREATION_LIVE:"CREATION_LIVE",CREATION_POST:"CREATION_POST",GOOGLE:"GOOGLE",PAUSE:"PAUSE",PLAY_DISABLED:"PLAY_DISABLED",
INCOGNITO_CIRCLE:"INCOGNITO_CIRCLE",INCOGNITO_CAIRO:"INCOGNITO_CAIRO",CREATE:"CREATE",CREST:"CREST",EQUALIZER:"EQUALIZER",NOW_PLAYING_EQUALIZER:"NOW_PLAYING_EQUALIZER",WHATS_HOT:"WHATS_HOT",ADD_MODERATOR:"ADD_MODERATOR",REMOVE_MODERATOR:"REMOVE_MODERATOR",HELP_OUTLINE:"HELP_OUTLINE",HELP_FILLED:"HELP_FILLED",OFFICIAL_ARTIST_BADGE:"OFFICIAL_ARTIST_BADGE",DONE_ALL:"DONE_ALL",REMOVE_DONE:"REMOVE_DONE",SUPERVISOR_ACCOUNT:"SUPERVISOR_ACCOUNT",REELS_ZERO_STATE:"REELS_ZERO_STATE",SPOTLIGHT:"SPOTLIGHT",FOLDER:"FOLDER",
TUNE:"TUNE",LOCATION_PIN:"LOCATION_PIN",MAKING:"MAKING",SOCCER:"SOCCER",CURATING_MODE_COLLECTIONS:"CURATING_MODE_COLLECTIONS",APPROVED_FOR_YOU:"APPROVED_FOR_YOU",SHARED_BY_PARENTS:"SHARED_BY_PARENTS",KIDS_WATCH_IT_AGAIN:"KIDS_WATCH_IT_AGAIN",KIDS_SPORTS:"KIDS_SPORTS",PLAY_NEXT:"PLAY_NEXT",BREAKING_NEWS:"BREAKING_NEWS",BREAKING_NEWS_ALT_1:"BREAKING_NEWS_ALT_1",DRAG_HANDLE:"DRAG_HANDLE",LOCK_OPEN:"LOCK_OPEN",ACCOUNT_ADVANCED:"ACCOUNT_ADVANCED",ACCOUNT_PLAYBACK:"ACCOUNT_PLAYBACK",ACCOUNT_PRIVACY:"ACCOUNT_PRIVACY",
ACCOUNT_NOTIFICATIONS:"ACCOUNT_NOTIFICATIONS",ACCOUNT_SETTINGS:"ACCOUNT_SETTINGS",ACCOUNT_SHARING:"ACCOUNT_SHARING",CHROME_ICON:"CHROME_ICON",WATCH_PARTY:"WATCH_PARTY",ARROW_DROP_UP:"ARROW_DROP_UP",ARROW_DROP_DOWN:"ARROW_DROP_DOWN",ARROW_CHART_NEUTRAL:"ARROW_CHART_NEUTRAL",BOOKMARK:"BOOKMARK",BOOKMARK_CAIRO:"BOOKMARK_CAIRO",BOOKMARK_BORDER:"BOOKMARK_BORDER",ROTATE_LEFT:"ROTATE_LEFT",PHONE_DOWNLOAD:"PHONE_DOWNLOAD",FORUM:"FORUM",VPN_KEY:"VPN_KEY",LOCK:"LOCK",LOCK_FILLED:"LOCK_FILLED",INSERT_CHART:"INSERT_CHART",
INSERT_CHART_OUTLINED:"INSERT_CHART_OUTLINED",SHOW_MORE:"SHOW_MORE",CONTENT_CUT:"CONTENT_CUT",CONTENT_CUT_CAIRO:"CONTENT_CUT_CAIRO",CONTENT_CUT_WHITE:"CONTENT_CUT_WHITE",HEADSET:"HEADSET",YOUTUBE_AD:"YOUTUBE_AD",VOICE_REMOTE:"VOICE_REMOTE",WIFI_STATUS_BAR_ZERO:"WIFI_STATUS_BAR_ZERO",WIFI_STATUS_BAR_ONE:"WIFI_STATUS_BAR_ONE",WIFI_STATUS_BAR_THREE:"WIFI_STATUS_BAR_THREE",WIFI_STATUS_BAR_FOUR:"WIFI_STATUS_BAR_FOUR",COURSE:"COURSE",COURSE_CAIRO:"COURSE_CAIRO",COURSE_OUTLINE:"COURSE_OUTLINE",MOBILE_SCREEN_SHARE:"MOBILE_SCREEN_SHARE",
SPEAKER_NOTES:"SPEAKER_NOTES",AUTO_AWESOME:"AUTO_AWESOME",FEATURE_HIGHLIGHT:"FEATURE_HIGHLIGHT",SPONSORS_ONLY_LIVE_CHAT_MODE_ON:"SPONSORS_ONLY_LIVE_CHAT_MODE_ON",SPONSORS_ONLY_LIVE_CHAT_MODE_OFF:"SPONSORS_ONLY_LIVE_CHAT_MODE_OFF",VIDEO_YOUTUBE:"VIDEO_YOUTUBE",SYSTEM_HEADER_FOREGROUND:"SYSTEM_HEADER_FOREGROUND",SYSTEM_FOOTER_FOREGROUND:"SYSTEM_FOOTER_FOREGROUND",SYSTEM_FOOTER_FOREGROUND_RTL:"SYSTEM_FOOTER_FOREGROUND_RTL",SYSTEM_FOOTER_BACKGROUND:"SYSTEM_FOOTER_BACKGROUND",LABS_HEADER:"LABS_HEADER",
SEARCH_LARGE:"SEARCH_LARGE",GOOGLE_LOGO:"GOOGLE_LOGO",ZOOM_IN:"ZOOM_IN",ZOOM_OUT:"ZOOM_OUT",REELS_ADD:"REELS_ADD",SHIELD:"SHIELD",SHIELD_WITH_AVATAR:"SHIELD_WITH_AVATAR",KEYBOARD_ARROW_LEFT:"KEYBOARD_ARROW_LEFT",KEYBOARD_ARROW_RIGHT:"KEYBOARD_ARROW_RIGHT",CHECK_BOX_BLUE:"CHECK_BOX_BLUE",CHECK_BOX_OUTLINE_GREY:"CHECK_BOX_OUTLINE_GREY",WORK_OFF:"WORK_OFF",BRIGHTNESS_THREE:"BRIGHTNESS_THREE",LOCATION_ON:"LOCATION_ON",LOCATION_OFF:"LOCATION_OFF",UNDO:"UNDO",LOCAL_SHIPPING:"LOCAL_SHIPPING",RESHARE:"RESHARE",
MOBILE_FRIENDLY:"MOBILE_FRIENDLY",ENTERTAINMENT:"ENTERTAINMENT",GAMING:"GAMING",HAPPENING_NOW:"HAPPENING_NOW",KIDS_HERO:"KIDS_HERO",POWER_SETTINGS_NEW:"POWER_SETTINGS_NEW",RADIO_BUTTON_CHECKED:"RADIO_BUTTON_CHECKED",CHECK_BOX_V2:"CHECK_BOX_V2",CHECK_BOX_OUTLINE_BLANK_V2:"CHECK_BOX_OUTLINE_BLANK_V2",REELS_COMMENT:"REELS_COMMENT",REELS_COMMENT_FILL:"REELS_COMMENT_FILL",KEYBOARD_ARROW_UP:"KEYBOARD_ARROW_UP",KEYBOARD_ARROW_DOWN:"KEYBOARD_ARROW_DOWN",SUBSCRIBED:"SUBSCRIBED",SUBSCRIBED_DARK_MODE:"SUBSCRIBED_DARK_MODE",
ADD_TO_QUEUE_TAIL:"ADD_TO_QUEUE_TAIL",ADD_TO_QUEUE:"ADD_TO_QUEUE",YOUTUBE_LINKED_TV:"YOUTUBE_LINKED_TV",ARROW_DOWNWARD_ALT:"ARROW_DOWNWARD_ALT",ARROW_UPWARD_ALT:"ARROW_UPWARD_ALT",TROPHY:"TROPHY",TROPHY_CAIRO:"TROPHY_CAIRO",CLOUD_UPLOAD:"CLOUD_UPLOAD",SUBDIRECTORY_ARROW_RIGHT:"SUBDIRECTORY_ARROW_RIGHT",MY_VIDEOS:"MY_VIDEOS",MY_VIDEOS_CAIRO:"MY_VIDEOS_CAIRO",LAUNCH:"LAUNCH",PERSON_OUTLINE:"PERSON_OUTLINE",VIEWS_OUTLINE:"VIEWS_OUTLINE",EXPAND_ALL:"EXPAND_ALL",FACT_CHECK:"FACT_CHECK",RED_CARD:"RED_CARD",
YELLOW_CARD:"YELLOW_CARD",CREATION_ENTRY_UPLOAD_ICON:"CREATION_ENTRY_UPLOAD_ICON",APPLAUSE:"APPLAUSE",LENS_WHITE:"LENS_WHITE",LENS_YELLOW:"LENS_YELLOW",LENS_GREEN:"LENS_GREEN",LENS_CYAN:"LENS_CYAN",LENS_MAGENTA:"LENS_MAGENTA",LENS_RED:"LENS_RED",LENS_BLACK:"LENS_BLACK",LENS_BLUE:"LENS_BLUE",PREMIUM:"PREMIUM",PREMIUM_STANDALONE:"PREMIUM_STANDALONE",PREMIUM_STANDALONE_CAIRO:"PREMIUM_STANDALONE_CAIRO",CLARIFY:"CLARIFY",SCHEDULE:"SCHEDULE",TRAVEL:"TRAVEL",SCREEN_ROTATION:"SCREEN_ROTATION",DRAFT:"DRAFT",
BACKSPACE:"BACKSPACE",LICENSE:"LICENSE",LABEL:"LABEL",SPORTS_BASEBALL:"SPORTS_BASEBALL",SPORTS_BASKETBALL:"SPORTS_BASKETBALL",SPORTS_FOOTBALL:"SPORTS_FOOTBALL",SYNC:"SYNC",SYNC_PROBLEM:"SYNC_PROBLEM",PHONELINK:"PHONELINK",PROGRESS_ACTIVITY:"PROGRESS_ACTIVITY",REELS_VIEW_STORY:"REELS_VIEW_STORY",EARTH:"EARTH",SHOW_CHART:"SHOW_CHART",PEOPLE:"PEOPLE",PEOPLE_ALT:"PEOPLE_ALT",PEOPLE_OUTLINE:"PEOPLE_OUTLINE",PEOPLE_2:"PEOPLE_2",PEOPLE_GROUP:"PEOPLE_GROUP",PEOPLE_FILLED:"PEOPLE_FILLED",DONE:"DONE",GOOGLE_PLAY_GAMES:"GOOGLE_PLAY_GAMES",
AUTOPLAY_ON:"AUTOPLAY_ON",AUTOPLAY_OFF:"AUTOPLAY_OFF",KIDS_AUTOPLAY_ON:"KIDS_AUTOPLAY_ON",KIDS_AUTOPLAY_OFF:"KIDS_AUTOPLAY_OFF",KIDS_AUTOPLAY_LOCKED_OFF:"KIDS_AUTOPLAY_LOCKED_OFF",CALENDAR:"CALENDAR",KIDS_MOVE:"KIDS_MOVE",PROGRESS_SPINNER_GREY:"PROGRESS_SPINNER_GREY",KIDS_CAMP:"KIDS_CAMP",BAR_CHART:"BAR_CHART",POLICY:"POLICY",CREATION_TAB:"CREATION_TAB",CREATION_TAB_LARGE:"CREATION_TAB_LARGE",CREATION_TAB_LARGE_CAIRO:"CREATION_TAB_LARGE_CAIRO",ADD_CIRCLE_OUTLINE:"ADD_CIRCLE_OUTLINE",REMOVE_CIRCLE_OUTLINE:"REMOVE_CIRCLE_OUTLINE",
COLLECTIONS:"COLLECTIONS",FORWARD_10:"FORWARD_10",REPLAY_10:"REPLAY_10",MUSIC_NEW_RELEASE:"MUSIC_NEW_RELEASE",PROMPTED_SIGN_IN:"PROMPTED_SIGN_IN",CAMERA_REMIX:"CAMERA_REMIX",SUBJECT:"SUBJECT",FIND_IN_PAGE:"FIND_IN_PAGE",CREATE_VIDEO_NEW:"CREATE_VIDEO_NEW",GO_LIVE:"GO_LIVE",ADD_STORY:"ADD_STORY",CREATE_POST_NEW:"CREATE_POST_NEW",FACE_VERY_UPSET:"FACE_VERY_UPSET",FACE_VERY_SAD:"FACE_VERY_SAD",FACE_SAD:"FACE_SAD",FACE_MEH:"FACE_MEH",FACE_HAPPY:"FACE_HAPPY",FACE_HAPPY_OUTLINE:"FACE_HAPPY_OUTLINE",FACE_VERY_HAPPY:"FACE_VERY_HAPPY",
FACE_FILLED_HAPPY:"FACE_FILLED_HAPPY",FACE_FILLED_UNHAPPY:"FACE_FILLED_UNHAPPY",FACE_FILLED_VERY_HAPPY:"FACE_FILLED_VERY_HAPPY",FACE_FILLED_MEH:"FACE_FILLED_MEH",FACE_FILLED_SAD:"FACE_FILLED_SAD",FACE_OUTLINED_HAPPY:"FACE_OUTLINED_HAPPY",FACE_OUTLINED_UNHAPPY:"FACE_OUTLINED_UNHAPPY",FACE_OUTLINED_VERY_HAPPY:"FACE_OUTLINED_VERY_HAPPY",FACE_OUTLINED_MEH:"FACE_OUTLINED_MEH",FACE_OUTLINED_SAD:"FACE_OUTLINED_SAD",FACE_OUTLINED_ACTIVE_HAPPY:"FACE_OUTLINED_ACTIVE_HAPPY",FACE_OUTLINED_ACTIVE_UNHAPPY:"FACE_OUTLINED_ACTIVE_UNHAPPY",
FACE_OUTLINED_ACTIVE_VERY_HAPPY:"FACE_OUTLINED_ACTIVE_VERY_HAPPY",FACE_OUTLINED_ACTIVE_MEH:"FACE_OUTLINED_ACTIVE_MEH",FACE_OUTLINED_ACTIVE_SAD:"FACE_OUTLINED_ACTIVE_SAD",OUTLINE_MUSIC_VIDEO:"OUTLINE_MUSIC_VIDEO",OUTLINE_HEADSET:"OUTLINE_HEADSET",OUTLINE_YOUTUBE_MUSIC:"OUTLINE_YOUTUBE_MUSIC",OUTLINE_YOUTUBE_IMPROVE_TV:"OUTLINE_YOUTUBE_IMPROVE_TV",OUTLINE_BAG:"OUTLINE_BAG",OUTLINE_MOBILE_DOWNLOAD:"OUTLINE_MOBILE_DOWNLOAD",HASHTAG_LANDING_PAGE_EMPTY:"HASHTAG_LANDING_PAGE_EMPTY",HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE:"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE",
HASHTAG_LANDING_PAGE_ERROR:"HASHTAG_LANDING_PAGE_ERROR",HASHTAG_LANDING_PAGE_ERROR_DARK_MODE:"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE",TRENDING_DOWN:"TRENDING_DOWN",EXPAND_MORE:"EXPAND_MORE",OUTLINE_CAMERA_20:"OUTLINE_CAMERA_20",OUTLINE_CAMERA_24:"OUTLINE_CAMERA_24",G_TRANSLATE:"G_TRANSLATE",SHOPPING_BAG:"SHOPPING_BAG",SHOPPING_BAG_CAIRO:"SHOPPING_BAG_CAIRO",CAKE:"CAKE",CAMPAIGN:"CAMPAIGN",VIDEOGAME_ASSET:"VIDEOGAME_ASSET",GIF:"GIF",INSERT_PHOTO:"INSERT_PHOTO",LOCAL_MALL:"LOCAL_MALL",COLOR_LENS:"COLOR_LENS",
LOCK_CLOCK:"LOCK_CLOCK",SYSTEM_UPDATE:"SYSTEM_UPDATE",ALL_INCLUSIVE:"ALL_INCLUSIVE",VIDEO_SETTINGS:"VIDEO_SETTINGS",WALLPAPER:"WALLPAPER",GROUPS:"GROUPS",MONEY_OFF:"MONEY_OFF",GAMEPAD:"GAMEPAD",PLAYLISTS_KIDS_RESTRICT_ACCESS:"PLAYLISTS_KIDS_RESTRICT_ACCESS",LIVE_CREATION_RESTRICT_ACCESS:"LIVE_CREATION_RESTRICT_ACCESS",LIVE_SAFEGUARD_EDUCATION:"LIVE_SAFEGUARD_EDUCATION",LIVE_COSTREAM_CREATOR_EDUCATION:"LIVE_COSTREAM_CREATOR_EDUCATION",ARTICLE:"ARTICLE",ARTICLE_ALERT:"ARTICLE_ALERT",ARTICLE_CHECK:"ARTICLE_CHECK",
ARTICLE_CLARIFY:"ARTICLE_CLARIFY",FAST_REWIND:"FAST_REWIND",ALIGN_LEFT:"ALIGN_LEFT",BLACK_JOY:"BLACK_JOY",CATEGORY:"CATEGORY",DESKTOP:"DESKTOP",GOOGLE_LENS:"GOOGLE_LENS",GOOGLE_LENS_CAMERA:"GOOGLE_LENS_CAMERA",INSIGHTS:"INSIGHTS",LIVE_BADGE:"LIVE_BADGE",OUTLINE_ADJUST:"OUTLINE_ADJUST",OUTLINE_LESS_THAN_4:"OUTLINE_LESS_THAN_4",OUTLINE_GREATER_THAN_20:"OUTLINE_GREATER_THAN_20",OUTLINE_CLOCK_HALF_CIRCLE:"OUTLINE_CLOCK_HALF_CIRCLE",OUTLINE_DASHBOARD_PLUS:"OUTLINE_DASHBOARD_PLUS",OUTLINE_RADAR_LIVE:"OUTLINE_RADAR_LIVE",
WAVEFORM:"WAVEFORM",GLOBE:"GLOBE",SUPER_STORE:"SUPER_STORE",MEMBERSHIPS:"MEMBERSHIPS",MEMBERSHIPS_FILLED:"MEMBERSHIPS_FILLED",MONEY_HAND:"MONEY_HAND",YT_FILL_DOWNLOAD_24:"YT_FILL_DOWNLOAD_24",YT_FILL_OPEN_NEW_24:"YT_FILL_OPEN_NEW_24",YT_OUTLINE_CHEVRON_EXPAND_24:"YT_OUTLINE_CHEVRON_EXPAND_24",YT_OUTLINE_CHEVRON_DOWN_24:"YT_OUTLINE_CHEVRON_DOWN_24",YT_OUTLINE_ARROW_REPEAT_1_24:"YT_OUTLINE_ARROW_REPEAT_1_24",YT_FILL_ARROW_REPEAT_1_24:"YT_FILL_ARROW_REPEAT_1_24",HEALTH_AND_SAFETY:"HEALTH_AND_SAFETY",
YT_FILL_YOUTUBE_MUSIC_24:"YT_FILL_YOUTUBE_MUSIC_24",YT_FILL_YOUTUBE_MUSIC_36:"YT_FILL_YOUTUBE_MUSIC_36",OUTLINE_TRASH_CAN:"OUTLINE_TRASH_CAN",OUTLINE_PENCIL:"OUTLINE_PENCIL",OUTLINE_ALERT_CIRCLE:"OUTLINE_ALERT_CIRCLE",OUTLINE_ALERT_TRIANGLE:"OUTLINE_ALERT_TRIANGLE",OUTLINE_OPEN_NEW:"OUTLINE_OPEN_NEW",LIST:"LIST",ARROW_CIRCLE:"ARROW_CIRCLE",EXPAND_LESS:"EXPAND_LESS",YT_OUTLINE_SUBSCRIPTIONS_24PT:"YT_OUTLINE_SUBSCRIPTIONS_24PT",OUTLINE_ADD:"OUTLINE_ADD",MEDAL:"MEDAL",MULTIVIEW:"MULTIVIEW",GIFT:"GIFT",
OUTLINE_GIFT:"OUTLINE_GIFT",OUTLINE_YOUTUBE_SHORTS_PLUS:"OUTLINE_YOUTUBE_SHORTS_PLUS",OUTLINE_YOUTUBE_LINKED_TV:"OUTLINE_YOUTUBE_LINKED_TV",NERD_STATS:"NERD_STATS",YT_OUTLINE_YOUTUBE_MUSIC_24:"YT_OUTLINE_YOUTUBE_MUSIC_24",YT_OUTLINE_MUSIC_24:"YT_OUTLINE_MUSIC_24",YT_OUTLINE_RATING_UP_24:"YT_OUTLINE_RATING_UP_24",YT_OUTLINE_FIRE_24:"YT_OUTLINE_FIRE_24",CREATOR_STUDIO_RED_LOGO:"CREATOR_STUDIO_RED_LOGO",UNPLUGGED_RED_LOGO:"UNPLUGGED_RED_LOGO",MUSIC_RED_LOGO:"MUSIC_RED_LOGO",KIDS_RED_LOGO:"KIDS_RED_LOGO",
LAPTOP_MOBILE:"LAPTOP_MOBILE",AUDIO_SURROUND:"AUDIO_SURROUND",FEATURED_SEASONAL_AND_GIFTS:"FEATURED_SEASONAL_AND_GIFTS",AUDIO:"AUDIO",SKIP_FORWARD_30:"SKIP_FORWARD_30",PLAY_ARROW_HALF_CIRCLE:"PLAY_ARROW_HALF_CIRCLE",VIDEO_LINK:"VIDEO_LINK",TEXT:"TEXT",SELL:"SELL",SELL_FILLED:"SELL_FILLED",YOUTUBE_STUDIO_ARROW_DOWN:"YOUTUBE_STUDIO_ARROW_DOWN",YOUTUBE_STUDIO_ARROW_UP:"YOUTUBE_STUDIO_ARROW_UP",ADMIN_PANEL_SETTINGS:"ADMIN_PANEL_SETTINGS",EXPIRE:"EXPIRE",BAR_HORIZONTAL:"BAR_HORIZONTAL",SCREEN_THEATRE:"SCREEN_THEATRE",
SCREEN_MINIPLAYER:"SCREEN_MINIPLAYER",SCREEN_DEFAULT:"SCREEN_DEFAULT",SCREEN_FULLSCREEN:"SCREEN_FULLSCREEN",LIST_QUEUE:"LIST_QUEUE",MOON_Z:"MOON_Z",MOON_Z_FILLED:"MOON_Z_FILLED",MESSAGE_BUBBLE_QUESTION:"MESSAGE_BUBBLE_QUESTION",TV_CIRCLE:"TV_CIRCLE",PANELS:"PANELS",BOX_PLACEHOLDER_LEFT_OUTLINE:"BOX_PLACEHOLDER_LEFT_OUTLINE",OUTLINE_OVERFLOW_HORIZONTAL_32:"OUTLINE_OVERFLOW_HORIZONTAL_32",OUTLINE_OVERFLOW_VERTICAL:"OUTLINE_OVERFLOW_VERTICAL",SPEAKER:"SPEAKER",SPEAKER_OFF:"SPEAKER_OFF",SPEAKER_GROUP:"SPEAKER_GROUP",
BAG:"BAG",VR:"VR",MUSIC_MUTED:"MUSIC_MUTED",GREEN_SCREEN_OFF:"GREEN_SCREEN_OFF",GREEN_SCREEN_ON:"GREEN_SCREEN_ON",LIST_PLAY_ARROW:"LIST_PLAY_ARROW",BAR_CIRCLE:"BAR_CIRCLE",QUOTATION_MARK:"QUOTATION_MARK",SPARKLE:"SPARKLE",SPARKLE_FILLED:"SPARKLE_FILLED",SPARK:"SPARK",SPARK_RADAR:"SPARK_RADAR",SPARK_SEARCH:"SPARK_SEARCH",OUTLINE_BAG_BOOKMARK:"OUTLINE_BAG_BOOKMARK",RADAR_LIVE:"RADAR_LIVE",PENCIL:"PENCIL",PRICE_TAG:"PRICE_TAG",CHEVRON_DOWN:"CHEVRON_DOWN",CHEVRON_UP:"CHEVRON_UP",SPEED_1_POINT_2X:"SPEED_1_POINT_2X",
SPEED_1_POINT_5X:"SPEED_1_POINT_5X",SPEED_1_POINT_8X:"SPEED_1_POINT_8X",SPEED_POINT_2X:"SPEED_POINT_2X",SPEED_POINT_5X:"SPEED_POINT_5X",SPEED_POINT_8X:"SPEED_POINT_8X",SPEED_1X:"SPEED_1X",SPEED_2X:"SPEED_2X",BROADCAST:"BROADCAST",BROADCAST_CAIRO:"BROADCAST_CAIRO",PODCAST_ADD:"PODCAST_ADD",PODCAST_CHECK:"PODCAST_CHECK",DOLLAR_SIGN:"DOLLAR_SIGN",DOLLAR_SIGN_CONTAINER:"DOLLAR_SIGN_CONTAINER",MEET:"MEET",BRIEFCASE:"BRIEFCASE",CHECK_DOUBLE:"CHECK_DOUBLE",CHECK_DOUBLE_OFF:"CHECK_DOUBLE_OFF",SHIELD_ADD:"SHIELD_ADD",
SHIELD_OFF:"SHIELD_OFF",REMIX_FILLED:"REMIX_FILLED",EYE:"EYE",OPEN_IN_PHONE:"OPEN_IN_PHONE",OPEN_IN_PANEL:"OPEN_IN_PANEL",REPLAY_ARROW:"REPLAY_ARROW",ARROW_UNDO:"ARROW_UNDO",PERSON_CIRCLE_SLASH:"PERSON_CIRCLE_SLASH",EARTH_OUTLINE:"EARTH_OUTLINE",SLASH_CIRCLE_LEFT:"SLASH_CIRCLE_LEFT",SLASH_CIRCLE_RIGHT:"SLASH_CIRCLE_RIGHT",ARROW_PAUSE:"ARROW_PAUSE",MENU_FILTER:"MENU_FILTER",SPACE_BAR:"SPACE_BAR",CIRCLES_6:"CIRCLES_6",CELEBRATION:"CELEBRATION",CROWN:"CROWN",CROWN_FILLED:"CROWN_FILLED",GRID:"GRID",GRID_3X3:"GRID_3X3",
GRID_ASYMMETRICAL:"GRID_ASYMMETRICAL",KEEP_FILLED:"KEEP_FILLED",X_CIRCLE:"X_CIRCLE",KIDS_DOWNLOADS:"KIDS_DOWNLOADS",KIDS_MOVE_DOWNLOAD:"KIDS_MOVE_DOWNLOAD",BRIGHTNESS:"BRIGHTNESS",BRIGHTNESS_FILLED:"BRIGHTNESS_FILLED",MAGIC_WAND:"MAGIC_WAND",MAGIC_WAND_FILLED:"MAGIC_WAND_FILLED",BOX_PENCIL:"BOX_PENCIL",MY_VIDEOS_SUPEX_ZERO_STATE:"MY_VIDEOS_SUPEX_ZERO_STATE",CREATOR_ACADEMY:"CREATOR_ACADEMY",CREATOR_ACADEMY_FILLED:"CREATOR_ACADEMY_FILLED",CREATOR_ACADEMY_FILLED_16:"CREATOR_ACADEMY_FILLED_16",SCREEN_SWITCH:"SCREEN_SWITCH",
PDF:"PDF",SHIELD_OVERFLOW:"SHIELD_OVERFLOW",ANIMALS:"ANIMALS",BOX_OPEN_CHECK:"BOX_OPEN_CHECK",PLAYABLES_LOGO:"PLAYABLES_LOGO",PLAYABLES_LOGO_CAIRO:"PLAYABLES_LOGO_CAIRO",PERSON_2:"PERSON_2",X_OCTAGON:"X_OCTAGON",PLAY_PRISM:"PLAY_PRISM",FILTER_PHOTO:"FILTER_PHOTO",MUSIC_FILLED:"MUSIC_FILLED",COURSE_FILLED:"COURSE_FILLED",TRANSCRIPT:"TRANSCRIPT",TRANSCRIPT_SEARCH:"TRANSCRIPT_SEARCH",STEM:"STEM",ARROW_CIRCLE_RIGHT:"ARROW_CIRCLE_RIGHT",HEART_CIRCLE:"HEART_CIRCLE",RSS:"RSS",RSS_OFF:"RSS_OFF",PLAYABLES:"PLAYABLES",
PERSON_MUSIC:"PERSON_MUSIC",ARROWS_ALERT:"ARROWS_ALERT",CLOCK_ARROWS_ALERT:"CLOCK_ARROWS_ALERT",CLOCK_ARROWS:"CLOCK_ARROWS",SWAP_HORIZ:"SWAP_HORIZ",MUSIC_NOTE_SYMBOL:"MUSIC_NOTE_SYMBOL",BOOK:"BOOK",DISMISS_QUEUE:"DISMISS_QUEUE",RANDOM:"RANDOM",SCREEN_LIGHT:"SCREEN_LIGHT",SINGLE_SPARKLE:"SINGLE_SPARKLE",PROMOTE:"PROMOTE",BUSINESS:"BUSINESS",TOOLBOX:"TOOLBOX",SHORTS_CREATION_COMMENT:"SHORTS_CREATION_COMMENT",SPARK_IMAGE:"SPARK_IMAGE",SPARK_VIDEO:"SPARK_VIDEO",ALL_CHIP:"ALL_CHIP",TROPHY_CELEBRATIONS:"TROPHY_CELEBRATIONS",
SPARK_EDIT:"SPARK_EDIT",MAP_OUTLINE:"MAP_OUTLINE",VOLUME_STABLE:"VOLUME_STABLE",SEARCH_PROMINENT:"SEARCH_PROMINENT",INFINITY_ICON:"INFINITY_ICON",DIRECTIONS_OUTLINE:"DIRECTIONS_OUTLINE",SHORTS_STICKER_PICKER:"SHORTS_STICKER_PICKER",SETTINGS_REMOTE:"SETTINGS_REMOTE",NEWS_STORY:"NEWS_STORY",FOOTBALL_FILLED:"FOOTBALL_FILLED",DOLLARSIGN_COLOR:"DOLLARSIGN_COLOR",YENSIGN_COLOR:"YENSIGN_COLOR",CIRCLES_OVERLAP:"CIRCLES_OVERLAP",ACCESSIBILITY:"ACCESSIBILITY",CODE:"CODE",HAND_SWIPE_LEFT:"HAND_SWIPE_LEFT",SETTING_UPLOAD:"SETTING_UPLOAD",
SETTING_HD:"SETTING_HD",STICKER:"STICKER",SUN:"SUN",MOON:"MOON",EYE_OFF:"EYE_OFF",TARGET:"TARGET",TARGET_ADD:"TARGET_ADD",STAR_SHOOTING:"STAR_SHOOTING",TEXT_BOX:"TEXT_BOX",OUTLINE_ARROW_SOLID_UP:"OUTLINE_ARROW_SOLID_UP",ARROW_SOLID_UP:"ARROW_SOLID_UP",OUTLINE_ARROW_SOLID_DOWN:"OUTLINE_ARROW_SOLID_DOWN",ARROW_SOLID_DOWN:"ARROW_SOLID_DOWN",OUTLINE_ARROW_SOLID_UP_16:"OUTLINE_ARROW_SOLID_UP_16",FILL_ARROW_SOLID_UP_16:"FILL_ARROW_SOLID_UP_16",OUTLINE_ARROW_SOLID_DOWN_16:"OUTLINE_ARROW_SOLID_DOWN_16",FILL_ARROW_SOLID_DOWN_16:"FILL_ARROW_SOLID_DOWN_16",
DIE_3:"DIE_3",POUND:"POUND",CIRCLE:"CIRCLE",CIRCLE_FILLED:"CIRCLE_FILLED",YOUTUBE_SPORTS:"YOUTUBE_SPORTS",STAR_SHOOTING_OUTLINE:"STAR_SHOOTING_OUTLINE",AUDIO_BADGE:"AUDIO_BADGE",FANTASY:"FANTASY",ENGAGEMENT:"ENGAGEMENT",HASHTAG:"HASHTAG",TEMPLATE_ADD:"TEMPLATE_ADD",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP",RUBY:"RUBY",GAME_CONSOLE_DPAD:"GAME_CONSOLE_DPAD",GAME_CONSOLE_FACE_BUTTONS:"GAME_CONSOLE_FACE_BUTTONS",SKIP_BACK_15:"SKIP_BACK_15",SKIP_FORWARD_15:"SKIP_FORWARD_15",ARROW_CIRCLE_PLAY:"ARROW_CIRCLE_PLAY",
NOTE_ADD:"NOTE_ADD",MY_AD_CENTER:"MY_AD_CENTER",MY_AD_CENTER_LOGO:"MY_AD_CENTER_LOGO",PEOPLE_NOTE:"PEOPLE_NOTE",LEARNING:"LEARNING",LEARNING_CAIRO:"LEARNING_CAIRO",IMAGE_ADD:"IMAGE_ADD",LOCATION_POINT:"LOCATION_POINT",OUTLINE_MIX_24:"OUTLINE_MIX_24",FILL_AUDIO_16:"FILL_AUDIO_16",HAND_SWIPE_RIGHT:"HAND_SWIPE_RIGHT",SCHEDULE_FANZONE:"SCHEDULE_FANZONE",PLAY_PAUSE:"PLAY_PAUSE",ARROW_DIAGONAL_UP_RIGHT:"ARROW_DIAGONAL_UP_RIGHT",ARROW_DIAGONAL_UP_RIGHT_FILLED:"ARROW_DIAGONAL_UP_RIGHT_FILLED",LOCAL_ACTIVITY:"LOCAL_ACTIVITY",
STAR_CIRCLE_RIBBON:"STAR_CIRCLE_RIBBON",STAR_CIRCLE_RIBBON_OUTLINE:"STAR_CIRCLE_RIBBON_OUTLINE"};var oBb=function(){EE.apply(this,arguments)};
_.z(oBb,EE);oBb.prototype.getAssociations=function(){return[]};_.pBb=new _.X("playerInterstitialRenderer");var qBb=new _.X("getKidsBlocklistPickerCommand");_.rBb=new _.X("updateKidsBlacklistEndpoint");_.$v=new _.X("likeEndpoint");var sBb,tBb,uBb;sBb=new _.X("addChatItemAction");tBb=new _.X("removeChatItemAction");uBb=new _.X("markChatItemAsDeletedAction");_.vBb=new _.X("setLiveChatCollapsedStateAction");var wBb=function(){EE.apply(this,arguments)};
_.z(wBb,EE);wBb.prototype.getAssociations=function(){return[]};var xBb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(xBb,_.Xc);var yBb=_.gd(xBb,[0,1,_.$x]);var zBb=new _.X("liveChatEndpoint");var ABb=new _.X("liveChatItemContextMenuEndpoint");var BBb=new _.X("liveChatReplayEndpoint");_.CBb=new _.X("emojiPickerRenderer");var DBb=new _.X("liveChatAuthorBadgeViewModel");var EBb=new _.X("deleteLiveChatMessageCommand");var FBb=new _.X("liveChatActionEndpoint");var GBb=new _.X("createLiveChatPollEndpoint");var HBb=new _.X("manageLiveChatUserEndpoint");var IBb=new _.X("moderateLiveChatEndpoint");_.JBb=new _.X("sendLiveChatMessageEndpoint");var KBb=new _.X("sendLiveChatVoteEndpoint");var LBb=new _.X("clearLocationCommand");var MBb=new _.X("resolveLocationCommand");var NBb=new _.X("interactionLoggingCommandMetadata");var fXa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(fXa,_.Xc);var eXa=function(a,b){return _.cg(a,1,b)};var OBb=[0,_.by];var dXa=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(dXa,_.Xc);var cXa=function(a,b){return ol(a,1,fXa,b)};dXa.prototype.JSC$9886_serializeBinary=rda([0,_.ey,OBb]);var bBa={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 PBb={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"},
QBb={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 Vaa={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"};_.FPa=new _.X("logFlowLoggingEventCommand");_.tPa=new _.X("loggingContext");var RBb=new _.X("captionLanguageSelectActionCommand");var SBb=new _.X("showCaptionLanguageSelectActionCommand");var TBb=new _.X("dismissDialogEndpoint");var UBb=new _.X("hideItemSectionVideosByIdCommand");var VBb=new _.X("showMiniplayerCommand");var WBb=function(){EE.apply(this,arguments)};
_.z(WBb,EE);WBb.prototype.getAssociations=function(){return[]};var XBb=function(){EE.apply(this,arguments)};
_.z(XBb,EE);XBb.prototype.getAssociations=function(){return[]};var YBb=function(){EE.apply(this,arguments)};
_.z(YBb,EE);YBb.prototype.getAssociations=function(){return[]};var ZBb=function(){EE.apply(this,arguments)};
_.z(ZBb,EE);ZBb.prototype.getAssociations=function(){var a=[];this.delegate.downloadsList&&a.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&a.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&a.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&a.push(this.delegate.refresh);return[].concat(_.Be(new Set(a)))};var $Bb=function(){EE.apply(this,arguments)};
_.z($Bb,EE);$Bb.prototype.getAssociations=function(){var a=[];this.delegate.refresh&&a.push(this.delegate.refresh);if(this.delegate.downloads)for(var b=_.h(this.delegate.downloads),c=b.next();!c.done;c=b.next())a.push.apply(a,_.Be((new aCb(c.value)).getAssociations()));return[].concat(_.Be(new Set(a)))};
var aCb=function(){DE.apply(this,arguments)};
_.z(aCb,DE);aCb.prototype.getAssociations=function(){var a=[];this.delegate.video&&a.push(this.delegate.video);this.delegate.playlist&&a.push(this.delegate.playlist);this.delegate.videoItem&&a.push(this.delegate.videoItem);this.delegate.playlistItem&&a.push(this.delegate.playlistItem);return[].concat(_.Be(new Set(a)))};var bCb=function(){EE.apply(this,arguments)};
_.z(bCb,EE);bCb.prototype.getAssociations=function(){var a=[];this.delegate.localImageEntities&&a.push.apply(a,_.Be(this.delegate.localImageEntities));return[].concat(_.Be(new Set(a)))};var cCb=function(){EE.apply(this,arguments)};
_.z(cCb,EE);cCb.prototype.getAssociations=function(){var a=[];this.delegate.playbackData&&a.push(this.delegate.playbackData);this.delegate.localImageEntities&&a.push.apply(a,_.Be(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&a.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Be(new Set(a)))};var dCb=function(){EE.apply(this,arguments)};
_.z(dCb,EE);dCb.prototype.getAssociations=function(){return[]};var eCb=function(){EE.apply(this,arguments)};
_.z(eCb,EE);eCb.prototype.getAssociations=function(){var a=[];this.delegate.fakeChildren&&a.push.apply(a,_.Be(this.delegate.fakeChildren));return[].concat(_.Be(new Set(a)))};var fCb=function(){EE.apply(this,arguments)};
_.z(fCb,EE);fCb.prototype.getAssociations=function(){var a=[];this.delegate.video&&a.push(this.delegate.video);this.delegate.playbackData&&a.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&a.push(this.delegate.offlineVideoPolicy);return[].concat(_.Be(new Set(a)))};var gCb=function(){EE.apply(this,arguments)};
_.z(gCb,EE);gCb.prototype.getAssociations=function(){return[]};var hCb=function(){EE.apply(this,arguments)};
_.z(hCb,EE);hCb.prototype.getAssociations=function(){var a=[];this.delegate.channelOwner&&a.push(this.delegate.channelOwner);this.delegate.videos&&a.push.apply(a,_.Be(this.delegate.videos));this.delegate.collaboratorChannels&&a.push.apply(a,_.Be(this.delegate.collaboratorChannels));this.delegate.downloadState&&a.push(this.delegate.downloadState);this.delegate.refresh&&a.push(this.delegate.refresh);return[].concat(_.Be(new Set(a)))};var iCb=function(){EE.apply(this,arguments)};
_.z(iCb,EE);iCb.prototype.getAssociations=function(){var a=[];this.delegate.video&&a.push(this.delegate.video);this.delegate.channelContributor&&a.push(this.delegate.channelContributor);return[].concat(_.Be(new Set(a)))};var jCb=function(){DE.apply(this,arguments)};
_.z(jCb,DE);jCb.prototype.getAssociations=function(){var a=[];this.delegate.recommendedVideoMetadata&&a.push.apply(a,_.Be((new kCb(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.Be(new Set(a)))};
var kCb=function(){DE.apply(this,arguments)};
_.z(kCb,DE);kCb.prototype.getAssociations=function(){var a=[];this.delegate.localImageEntities&&a.push.apply(a,_.Be(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&a.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Be(new Set(a)))};var lCb=function(){DE.apply(this,arguments)};
_.z(lCb,DE);lCb.prototype.getAssociations=function(){var a=[];this.delegate.playbackPosition&&a.push(this.delegate.playbackPosition);return[].concat(_.Be(new Set(a)))};var mCb=function(){EE.apply(this,arguments)};
_.z(mCb,EE);mCb.prototype.getAssociations=function(){var a=[];this.delegate.owner&&a.push(this.delegate.owner);this.delegate.downloadState&&a.push(this.delegate.downloadState);this.delegate.userState&&a.push.apply(a,_.Be((new lCb(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&a.push.apply(a,_.Be((new jCb(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.Be(new Set(a)))};var nCb=function(){EE.apply(this,arguments)};
_.z(nCb,EE);nCb.prototype.getAssociations=function(){var a=[];this.delegate.userChannelDetails&&a.push(this.delegate.userChannelDetails);return[].concat(_.Be(new Set(a)))};var oCb=function(){EE.apply(this,arguments)};
_.z(oCb,EE);oCb.prototype.getAssociations=function(){var a=[];this.delegate.channelOwner&&a.push(this.delegate.channelOwner);this.delegate.playbackPosition&&a.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&a.push.apply(a,_.Be(this.delegate.localImageEntities));this.delegate.downloadStatus&&a.push(this.delegate.downloadStatus);return[].concat(_.Be(new Set(a)))};var aFa=new _.X("downloadsPageSmartDownloadsOptInBannerParams");var pCb=function(){EE.apply(this,arguments)};
_.z(pCb,EE);pCb.prototype.getAssociations=function(){return[]};var qCb=function(){EE.apply(this,arguments)};
_.z(qCb,EE);qCb.prototype.getAssociations=function(){return[]};var rCb=function(){EE.apply(this,arguments)};
_.z(rCb,EE);rCb.prototype.getAssociations=function(){return[]};var sCb=function(){EE.apply(this,arguments)};
_.z(sCb,EE);sCb.prototype.getAssociations=function(){return[]};var tCb=function(){EE.apply(this,arguments)};
_.z(tCb,EE);tCb.prototype.getAssociations=function(){return[]};var uCb=function(){EE.apply(this,arguments)};
_.z(uCb,EE);uCb.prototype.getAssociations=function(){return[]};var vCb=function(){EE.apply(this,arguments)};
_.z(vCb,EE);vCb.prototype.getAssociations=function(){return[]};var wCb=function(){EE.apply(this,arguments)};
_.z(wCb,EE);wCb.prototype.getAssociations=function(){return[]};var XWa=new _.X("dislikeButtonViewModel");var WWa=new _.X("likeButtonViewModel");var xCb=new _.X("videoSummaryContentViewModel");var f_a=new _.X("videoSummaryParagraphViewModel");var yCb=new _.X("changeTimelyActionVisibilityCommand");var zCb=new _.X("hideEngagementPanelEndpoint");var ACb=new _.X("refreshPanelEndpoint");var BCb=new _.X("scrollToSectionEndpoint");var CCb=new _.X("seekToVideoTimestampCommand");_.Ow=new _.X("showEngagementPanelEndpoint");var DCb=new _.X("showTransientPlayerScrimOverlayCommand");var ECb=new _.X("toggleEngagementPanelCommand");_.FCb=new _.X("createBroadcastCommand");var GCb=new _.X("metadataUpdateCommand");var HCb=function(){EE.apply(this,arguments)};
_.z(HCb,EE);HCb.prototype.getAssociations=function(){return[]};var ICb=function(){EE.apply(this,arguments)};
_.z(ICb,EE);ICb.prototype.getAssociations=function(){return[]};var JCb=function(){EE.apply(this,arguments)};
_.z(JCb,EE);JCb.prototype.getAssociations=function(){return[]};_.KCb=new _.X("merchandiseShelfRenderer");var LCb=new _.X("gridMovieRenderer");_.MCb=new _.X("movieRenderer");var NCb=function(){EE.apply(this,arguments)};
_.z(NCb,EE);NCb.prototype.getAssociations=function(){var a=[];this.delegate.trackDownloadMetadatas&&a.push.apply(a,_.Be(this.delegate.trackDownloadMetadatas));return[].concat(_.Be(new Set(a)))};var OCb=function(){EE.apply(this,arguments)};
_.z(OCb,EE);
OCb.prototype.getAssociations=function(){var a=[];this.delegate.downloadedTracks&&a.push.apply(a,_.Be(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&a.push.apply(a,_.Be(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&a.push.apply(a,_.Be(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&a.push.apply(a,_.Be(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&a.push.apply(a,_.Be(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
a.push.apply(a,_.Be(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&a.push.apply(a,_.Be(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&a.push.apply(a,_.Be(this.delegate.metadataOnlyTracks));return[].concat(_.Be(new Set(a)))};var PCb=function(){EE.apply(this,arguments)};
_.z(PCb,EE);PCb.prototype.getAssociations=function(){var a=[];this.delegate.trackDownloadMetadatas&&a.push.apply(a,_.Be(this.delegate.trackDownloadMetadatas));return[].concat(_.Be(new Set(a)))};var QCb=function(){EE.apply(this,arguments)};
_.z(QCb,EE);QCb.prototype.getAssociations=function(){var a=[];this.delegate.playbackData&&a.push(this.delegate.playbackData);this.delegate.localImageEntities&&a.push.apply(a,_.Be(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&a.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Be(new Set(a)))};var RCb=function(){EE.apply(this,arguments)};
_.z(RCb,EE);
RCb.prototype.getAssociations=function(){var a=[];this.delegate.musicLibraryStatusEntity&&a.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&a.push.apply(a,_.Be(this.delegate.primaryArtists));this.delegate.details&&a.push(this.delegate.details);this.delegate.userDetails&&a.push(this.delegate.userDetails);this.delegate.tracks&&a.push.apply(a,_.Be(this.delegate.tracks));this.delegate.share&&a.push(this.delegate.share);this.delegate.downloadMetadata&&a.push(this.delegate.downloadMetadata);this.delegate.refresh&&
a.push(this.delegate.refresh);return[].concat(_.Be(new Set(a)))};
var SCb=function(){EE.apply(this,arguments)};
_.z(SCb,EE);SCb.prototype.getAssociations=function(){var a=[];this.delegate.albumRelease&&a.push(this.delegate.albumRelease);this.delegate.tracks&&a.push.apply(a,_.Be(this.delegate.tracks));return[].concat(_.Be(new Set(a)))};
var TCb=function(){EE.apply(this,arguments)};
_.z(TCb,EE);TCb.prototype.getAssociations=function(){var a=[];this.delegate.albumRelease&&a.push(this.delegate.albumRelease);return[].concat(_.Be(new Set(a)))};var UCb=function(){EE.apply(this,arguments)};
_.z(UCb,EE);UCb.prototype.getAssociations=function(){var a=[];this.delegate.details&&a.push(this.delegate.details);this.delegate.userDetails&&a.push(this.delegate.userDetails);return[].concat(_.Be(new Set(a)))};
var VCb=function(){EE.apply(this,arguments)};
_.z(VCb,EE);VCb.prototype.getAssociations=function(){var a=[];this.delegate.parentArtist&&a.push(this.delegate.parentArtist);return[].concat(_.Be(new Set(a)))};
var WCb=function(){EE.apply(this,arguments)};
_.z(WCb,EE);WCb.prototype.getAssociations=function(){var a=[];this.delegate.parentArtist&&a.push(this.delegate.parentArtist);return[].concat(_.Be(new Set(a)))};var XCb=function(){EE.apply(this,arguments)};
_.z(XCb,EE);XCb.prototype.getAssociations=function(){return[]};var YCb=function(){EE.apply(this,arguments)};
_.z(YCb,EE);YCb.prototype.getAssociations=function(){return[]};var ZCb=function(){EE.apply(this,arguments)};
_.z(ZCb,EE);
ZCb.prototype.getAssociations=function(){var a=[];this.delegate.tracks&&a.push.apply(a,_.Be(this.delegate.tracks));this.delegate.refresh&&a.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&a.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&a.push(this.delegate.details);this.delegate.downloadMetadata&&a.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&a.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&a.push(this.delegate.userDetails);this.delegate.entryCollection&&
a.push(this.delegate.entryCollection);this.delegate.share&&a.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&a.push.apply(a,_.Be((new $Cb(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.Be(new Set(a)))};
var $Cb=function(){DE.apply(this,arguments)};
_.z($Cb,DE);$Cb.prototype.getAssociations=function(){var a=[];this.delegate.creatorEntity&&a.push(this.delegate.creatorEntity);return[].concat(_.Be(new Set(a)))};var aDb=function(){EE.apply(this,arguments)};
_.z(aDb,EE);aDb.prototype.getAssociations=function(){return[]};var bDb=function(){EE.apply(this,arguments)};
_.z(bDb,EE);
bDb.prototype.getAssociations=function(){var a=[];this.delegate.musicLibraryStatusEntity&&a.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&a.push.apply(a,_.Be(this.delegate.artists));this.delegate.audioModeVersion&&a.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&a.push(this.delegate.videoModeVersion);this.delegate.userDetails&&a.push(this.delegate.userDetails);this.delegate.details&&a.push(this.delegate.details);this.delegate.albumRelease&&a.push(this.delegate.albumRelease);this.delegate.share&&
a.push(this.delegate.share);this.delegate.libraryEdit&&a.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&a.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&a.push(this.delegate.playbackPosition);this.delegate.lyrics&&a.push(this.delegate.lyrics);return[].concat(_.Be(new Set(a)))};
var cDb=function(){EE.apply(this,arguments)};
_.z(cDb,EE);cDb.prototype.getAssociations=function(){var a=[];this.delegate.parentTrack&&a.push(this.delegate.parentTrack);return[].concat(_.Be(new Set(a)))};
var dDb=function(){EE.apply(this,arguments)};
_.z(dDb,EE);dDb.prototype.getAssociations=function(){var a=[];this.delegate.parentTrack&&a.push(this.delegate.parentTrack);return[].concat(_.Be(new Set(a)))};var iw=new _.X("musicResponsiveListItemRenderer");var kUa=new _.X("addToPlaylistEndpoint");var eDb=new _.X("captionPickerEndpoint");var fDb=new _.X("suggestStats");var gDb=new _.X("backstageImageUploadEndpoint");var hDb=new _.X("createBackstagePostDialogEndpoint");_.iDb=new _.X("createCommentReplyDialogEndpoint");_.jDb=new _.X("updateCommentDialogEndpoint");_.kDb=new _.X("updateCommentReplyDialogEndpoint");var lDb=new _.X("menuEndpoint");var eQa=new _.X("modalEndpoint");var mDb=new _.X("playlistEditorEndpoint");var nDb=new _.X("copyTextEndpoint");var oDb,pDb;oDb=new _.X("shareEndpoint");pDb=new _.X("shareEntityEndpoint");_.qDb=new _.X("shareEntityServiceEndpoint");_.yTa=new _.X("userFeedbackEndpoint");_.Vn=new _.X("watchEndpoint");var YHa=new _.X("watchPlaylistEndpoint");var rDb=new _.X("addUpcomingEventReminderEndpoint");_.KE=new _.X("getCommentsFromInboxCommand");var sDb=new _.X("notificationOptOutEndpoint");var tDb=new _.X("recordNotificationInteractionsEndpoint");var uDb=new _.X("removeUpcomingEventReminderEndpoint");var iUa=new _.X("getDownloadActionCommand");_.vDb=new _.X("offlineOrchestrationActionCommand");var wDb=function(){EE.apply(this,arguments)};
_.z(wDb,EE);wDb.prototype.getAssociations=function(){return[]};var xDb=function(){EE.apply(this,arguments)};
_.z(xDb,EE);xDb.prototype.getAssociations=function(){return[]};var yDb=function(){EE.apply(this,arguments)};
_.z(yDb,EE);yDb.prototype.getAssociations=function(){return[]};var zDb=function(){EE.apply(this,arguments)};
_.z(zDb,EE);zDb.prototype.getAssociations=function(){return[]};var ADb=function(){EE.apply(this,arguments)};
_.z(ADb,EE);ADb.prototype.getAssociations=function(){var a=[];this.delegate.transfer&&a.push(this.delegate.transfer);this.delegate.adsPlaybackData&&a.push.apply(a,_.Be(this.delegate.adsPlaybackData));this.delegate.drmLicense&&a.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&a.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&a.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Be(new Set(a)))};var BDb=function(){EE.apply(this,arguments)};
_.z(BDb,EE);BDb.prototype.getAssociations=function(){return[]};var CDb=function(){EE.apply(this,arguments)};
_.z(CDb,EE);CDb.prototype.getAssociations=function(){var a=[];this.delegate.offlineVideoStreams&&a.push.apply(a,_.Be(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&a.push.apply(a,_.Be(this.delegate.captionTrack));return[].concat(_.Be(new Set(a)))};var DDb=function(){EE.apply(this,arguments)};
_.z(DDb,EE);DDb.prototype.getAssociations=function(){return[]};var EDb=new _.X("showMoreDrawerCommand");var FDb=new _.X("updateEngagementPanelContentCommand");var GDb=new _.X("getPdgBuyFlowCommand");var HDb=new _.X("liveChatPurchaseMessageEndpoint");var IDb=new _.X("openSuperStickerBuyFlowCommand");var JDb=new _.X("updatePdgFeatureEnablementCommand");var KDb=function(){EE.apply(this,arguments)};
_.z(KDb,EE);KDb.prototype.getAssociations=function(){return[]};var LDb=function(){EE.apply(this,arguments)};
_.z(LDb,EE);LDb.prototype.getAssociations=function(){return[]};_.MDb=new _.X("pdgCommentChipRenderer");_.NDb=new _.X("permissionRoleBottomBarRenderer");_.ODb=new _.X("updatePermissionRoleCommand");var PDb=new _.X("prefetchWatchCommand");var QDb=new _.X("updatePlayerErrorMessageCommand");var bUa=new _.X("toggleCaptionsVisibilityCommand");_.RDb=new _.X("quickActionsViewModel");var SDb=new _.X("playerResponse");var TDb=new _.X("playlistRenderer");_.UDb=new _.X("playlistVideoListRenderer");_.LE=new _.X("playlistEditEndpoint");var VDb=new _.X("createImagePollCommand");var WDb=new _.X("createQuizCommand");var XDb=new _.X("quizRenderer");var YDb=new _.X("uploadedVideoRenderer");var ZDb=new _.X("decorateMessageEndpoint");var $Db=new _.X("lpOfferCardOptionViewModel");var aEb=new _.X("sfvAudioItemPlaybackCommand");var bEb=function(){EE.apply(this,arguments)};
_.z(bEb,EE);bEb.prototype.getAssociations=function(){return[]};_.ME=new _.X("reelNonVideoContentEndpoint");_.tq=new _.X("reelWatchEndpoint");_.NE=new _.X("reelItemRenderer");var cEb=new _.X("reelMetapanelViewModel");_.dEb=new _.X("reelNonVideoContentRenderer");_.eEb=new _.X("reelPlayerOverlayRenderer");var fEb=new _.X("shortsLockupViewModel");var gEb=new _.X("sponsorButtonViewModel");var hEb=new _.X("reelItemWatchResponse");var iEb=new _.X("textBadgeRenderer");_.OE=new _.X("buttonRenderer");_.PE=new _.X("toggleButtonRenderer");var r1a=new _.X("switchButtonViewModel");_.jEb=new _.X("confirmDialogRenderer");var kEb;kEb=new _.X("menuRenderer");_.lEb=new _.X("menuFlexibleItemRenderer");var mEb=new _.X("pollRenderer");_.nEb=new _.X("backgroundPromoRenderer");var pEb;_.oEb=new _.X("chipCloudRenderer");pEb=new _.X("chipCloudChipRenderer");var qEb=new _.X("dropdownRenderer");var rEb=new _.X("gridVideoRenderer");_.h4a=new _.X("itemSectionRenderer");_.sEb=new _.X("messageRenderer");var tEb=new _.X("sortFilterHeaderRenderer");_.uEb=new _.X("videoRenderer");var vEb=new _.X("resolveUrlCommandMetadata");var wEb=function(){EE.apply(this,arguments)};
_.z(wEb,EE);wEb.prototype.getAssociations=function(){return[]};_.xEb=new _.X("getAnswerCommand");_.qq=new _.X("searchEndpoint");var yEb=new _.X("genAiRichTextViewModel");var hUa=new _.X("overviewAnswerViewModel");var zEb=new _.X("addToPlaylistServiceEndpoint");var AEb=new _.X("clearSearchHistoryEndpoint");var BEb=new _.X("clearWatchHistoryEndpoint");var CEb=new _.X("webSerializedServiceEndpointExtension");_.DEb=new _.X("createCommentEndpoint");var EEb=new _.X("createCommentReplyEndpoint");var QE=new _.X("performCommentActionEndpoint");var FEb=new _.X("updateCommentEndpoint");var GEb=new _.X("updateCommentReplyEndpoint");_.RE=new _.X("createPlaylistServiceEndpoint");var HEb=new _.X("deletePlaylistEndpoint");var IEb=new _.X("deleteVideoEndpoint");var jUa=new _.X("getReportFormEndpoint");var JEb=new _.X("modifyChannelNotificationPreferenceEndpoint");var vVa;_.ru=new _.X("offlinePlaylistEndpoint");vVa={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 wVa;_.qu=new _.X("offlineVideoEndpoint");wVa={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 KEb=new _.X("pingingEndpoint");_.LEb=new _.X("selectActiveIdentityEndpoint");var MEb=new _.X("setSettingEndpoint");var y6a=new _.X("undoFeedbackEndpoint");var NEb=new _.X("unsubscribeEndpoint");_.OEb=new _.X("updatedMetadataEndpoint");var PEb=function(){EE.apply(this,arguments)};
_.z(PEb,EE);PEb.prototype.getAssociations=function(){return[]};_.QEb=new _.X("updateLocalAppSettingCommand");var REb=new _.X("saveImageToDeviceEndpoint");var SEb=new _.X("shareImageCommand");var TEb=new _.X("sharingProviderDataCommand");var UEb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(UEb,_.Xc);var VEb=[0,_.cy,-1];UEb.prototype.JSC$10085_serializeBinary=rda(VEb);var WEb=_.hd(VEb);var XEb=new _.X("userMentionSuggestionRenderer");var YEb=new _.X("liveChatTunnelCommand");var ZEb=new _.X("showSponsorshipsGiftOfferDialogCommand");var $Eb=new _.X("updateUpcomingEventReminderButtonStateCommand");var aFb=new _.X("upcomingEventReminderButtonStateRenderer");var bFb=new _.X("subscribeEndpoint");var cFb=new _.X("registerTasksCommand");var dFb=new _.X("showDialogCommand");_.kWa=new _.X("showSheetCommand");var eFb=function(){EE.apply(this,arguments)};
_.z(eFb,EE);eFb.prototype.getAssociations=function(){return[]};_.Zu=new _.X("avatarViewModel");var O0a=new _.X("badgeViewModel");_.Fu=new _.X("buttonViewModel");_.SE=new _.X("chipViewModel");var P1a=new _.X("contentPreviewImageViewModel");var W1a=new _.X("decoratedAvatarViewModel");var PWa=new _.X("downloadButtonViewModel");_.S3a=new _.X("engagementBarViewModel");_.Y1a=new _.X("imageBannerViewModel");var zZa=new _.X("lockupContentMetadataRowExtension");var fFb=new _.X("lockupMetadataViewModel");var gFb=new _.X("lockupViewModel");var hFb=function(){EE.apply(this,arguments)};
_.z(hFb,EE);hFb.prototype.getAssociations=function(){return[]};_.iFb=new _.X("pageHeaderViewModel");_.Gu=new _.X("toggleButtonViewModel");var jFb=function(){EE.apply(this,arguments)};
_.z(jFb,EE);jFb.prototype.getAssociations=function(){return[]};_.T3a=new _.X("votingViewModel");var kFb=new _.X("sectionHeaderViewModel");var lFb=new _.X("notifyDropdownOptionSelectedCommand");var lWa=new _.X("listViewModel");_.nWa=new _.X("listItemViewModel");var mFb=new _.X("dialogHeaderViewModel");var nFb=function(){EE.apply(this,arguments)};
_.z(nFb,EE);nFb.prototype.getAssociations=function(){return[]};var oFb=function(){EE.apply(this,arguments)};
_.z(oFb,EE);oFb.prototype.getAssociations=function(){return[]};var pFb=function(){EE.apply(this,arguments)};
_.z(pFb,EE);pFb.prototype.getAssociations=function(){return[]};_.qFb=new _.X("transcriptSubmitCaptionCorrectionCommand");var rFb=function(){EE.apply(this,arguments)};
_.z(rFb,EE);rFb.prototype.getAssociations=function(){return[]};var TPa=new _.X("unpluggedStringRunImage");var sFb=new _.X("tabViewModel");var tFb=new _.X("tabbedViewModel");var uFb=function(){EE.apply(this,arguments)};
_.z(uFb,EE);uFb.prototype.getAssociations=function(){return[]};_.vFb=new _.X("updateDescriptionAction");var wFb=new _.X("updateToggleButtonTextAction");_.xFb=new _.X("autoplaySwitchButtonRenderer");var Sw;_.yFb=new _.X("multiMarkersPlayerBarRenderer");Sw=new _.X("chapterRenderer");var zFb=new _.X("heatMarkerRenderer");var K6a=new _.X("heatmapRenderer");var AFb=new _.X("smartSkipPlayerScrimOverlayRenderer");var BFb=new _.X("timedMarkerDecorationRenderer");var G2a=new _.X("postWebToNativeMessageCommand");var CFb=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(CFb,_.Xc);var DFb=_.gd(CFb,[0,_.cy,-2]);var EFb=new _.X("whitelistEditEndpoint");var FFb=new _.X("commerceActionCommand");_.GFb=new _.X("getPaymentInstrumentsParamsCommand");var HFb=new _.X("getPaymentsClientTokenCommand");var IFb=new _.X("googlePaymentBillingCommand");var JFb=new _.X("googlePaymentPurchaseManagerCommand");_.KFb=new _.X("logGtmCommand");var LFb=new _.X("updateCardItemOnClickCommand");_.MFb=new _.X("ypcPauseSubscriptionCommand");_.NFb=new _.X("ypcResumeSubscriptionCommand");var OFb=function(){EE.apply(this,arguments)};
_.z(OFb,EE);OFb.prototype.getAssociations=function(){return[]};var PFb=function(){EE.apply(this,arguments)};
_.z(PFb,EE);PFb.prototype.getAssociations=function(){return[]};var QFb=function(){EE.apply(this,arguments)};
_.z(QFb,EE);QFb.prototype.getAssociations=function(){return[]};var RFb=function(){EE.apply(this,arguments)};
_.z(RFb,EE);RFb.prototype.getAssociations=function(){return[]};var SFb=function(){EE.apply(this,arguments)};
_.z(SFb,EE);SFb.prototype.getAssociations=function(){return[]};var J_a=new _.X("ypcOffersEndpoint");var TFb=new _.X("cardItemRenderer"),UFb=new _.X("cardItemTextRenderer");var VFb=new _.X("commerceCartItemQuantityPickerRenderer");var WFb=new _.X("linkCardRenderer");var A2a=new _.X("quantityIncrementerButtonViewModel");var XFb=new _.X("quantityIncrementerViewModel");var YFb=new _.X("themedImageViewModel");_.ZFb=new _.X("ypcCancelRecurrenceEndpoint");var $Fb=new _.X("ypcCompleteTransactionEndpoint");_.aGb=new _.X("ypcGetCartEndpoint");_.pv=new _.X("ypcGetOffersEndpoint");_.TE=new _.X("ypcHandleTransactionEndpoint");var bGb=new _.X("ypcLogWalletAnalyticDataEndpoint");_.cGb=new _.X("ypcRedeemCodeEndpoint");var dGb=new _.X("ypcUpdateFopEndpoint");kE(jE(1),hE(4));cab((new MessageChannel).port2);var eGb=function(){this.register=new Map},dBa=function(a,b,c){a=a+"_"+b;
UE.register.has(a)?c=UE.register.get(a):(c=c(),UE.register.set(a,c));return c},fGb=function(a){a=_.h(a.register.values());
for(var b=a.next();!b.done;b=a.next())_.ww(b.value,"ABORTED")};
eGb.prototype.clear=function(){fGb(this);this.register.clear()};
var UE=new eGb;var KAa=Date.now().toString();var MAa,gGb=_.ja.ytLoggingDocDocumentNonce_;gGb||(gGb=Cn(16),_.Rj("ytLoggingDocDocumentNonce_",gGb));MAa=gGb;var UAa={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 hGb;hGb=1;_.Dn=function(a){this.veData=a};
_.qs=function(a){return new _.Dn({trackingParams:a})};
_.lu=function(a,b,c,d,e,g){var k=hGb++;return new _.Dn({veType:a,veCounter:k,elementIndex:c,dataElement:b,youtubeData:d,jspbYoutubeData:e,loggingDirectives:g})};
_.f=_.Dn.prototype;
_.f.getAsJson=function(){var a={};this.veData.trackingParams!==void 0?a.trackingParams=this.veData.trackingParams:(a.veType=this.veData.veType,this.veData.veCounter!==void 0&&(a.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(a.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(a.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(a.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(a.isCounterfactual=!0);
return a};
_.f.getAsJspb=function(){var a=new cmb;this.veData.trackingParams!==void 0?a.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.Tx(a,2,this.veData.veType),this.veData.veCounter!==void 0&&_.Tx(a,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.Tx(a,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.cg(a,5,!0));if(this.veData.dataElement!==void 0){var b=this.veData.dataElement.getAsJspb();_.pd(a,7,b)}this.veData.youtubeData!==void 0&&_.pd(a,8,this.veData.jspbYoutubeData);
return a};
_.f.toString=function(){return JSON.stringify(this.getAsJson())};
_.f.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.f.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.Rj("yt_logging_screen.getRootVeType",RAa);_.Rj("yt_logging_screen.getCurrentCsn",_.Fn);_.Rj("yt_logging_screen.getCttAuthInfo",Gn);_.Rj("yt_logging_screen.setCurrentScreen",_.XAa);var iGb=function(){this.events=new Map},jGb=function(a){var b=[];
a=_.h(a.events.values());for(var c=a.next();!c.done;c=a.next())b.push(c.value);return b};
iGb.prototype.clear=function(){this.events.clear()};var lGb=function(){this.logTransport=new kGb;this.loggedEventRegister=new iGb;this.unloggedEventRegister=new iGb;this.eventsCount=0;this.flushInterval=3E4;this.JSC$10140_flushTimer=new _.an(this.flushInterval);this.JSC$10140_flushTimer.listen("tick",this.flush,!1,this)};
lGb.prototype.flush=function(){if(this.eventsCount){var a={loggedEvents:jGb(this.loggedEventRegister),unloggedEvents:jGb(this.unloggedEventRegister)};if(_.x("export_player_version_to_ytconfig")){var b;(b=_.Ei("PLAYER_CLIENT_VERSION"))?(b=b.split("-")[0].replace(/\./g,""),b=isNaN(Number(b))?"0":b):b="";var c=_.Ei("PLAYER_CLIENT_VERSION");if(c){c=c.split("-");var d="";c.length>1&&(d=c[c.length-1]);c=JAa(d.startsWith("canary_experiment")?"canary":d.startsWith("canary_control")?"control":"none")}else c=
"CLIENT_CANARY_STATE_UNKNOWN";a.dimensions={playerClientVersion:b,playerCanaryState:c}}this.logTransport.flush(a);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$10140_flushTimer.enabled&&this.JSC$10140_flushTimer.stop()}};
var mGb=function(a){VE==null&&(VE=new lGb);var b=VE;var c=b.loggedEventRegister;a.dimensions=a.dimensions||{};a.dimensions.csn=_.Fn()||"";var d=YAa(a.dimensions).join(";");if(a.records!=null)if(c.events.has(d)){var e;(e=c.events.get(d).records)==null||e.push.apply(e,_.Be(a.records))}else c.events.set(d,a);b.JSC$10140_flushTimer.enabled||b.JSC$10140_flushTimer.start();b.eventsCount++;b.eventsCount>=100&&b.flush()};var kGb=function(){};
kGb.prototype.flush=function(a,b){_.x("enable_client_sli_logging")&&_.zl("sliEventBatch",a,{sendIsolatedPayload:!!b})};var VE;var oGb;oGb=function(a){var b=nGb;a=a===void 0?{}:a;b=b.name;var c=cBa("SUCCESS");mGb({dimensions:a,records:[{name:b,state:"SLI_STATE_END",status:c}]})};
_.eBa=function(a,b,c,d){this.name=a;this.sliId=b;this.timeoutMs=c;this.statusOnTimeout=d;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.eBa.prototype.getId=function(){return this.sliId};
_.vw=function(a,b){b=b===void 0?{}:b;a.ongoing||(a.ongoing=!0,a.dimensions=b,a.logSliId=Fub(),mGb({dimensions:a.dimensions,records:[{name:a.name,state:"SLI_STATE_START",sliId:a.logSliId}]}),a.timeoutMs>0&&(a.timeoutHandle=setTimeout(function(){_.ww(a,a.statusOnTimeout)},a.timeoutMs)))};
_.ww=function(a,b){a.ongoing&&(a.timeoutMs>0&&clearTimeout(a.timeoutHandle),a.ongoing=!1,b={dimensions:a.dimensions,records:[{name:a.name,status:cBa(b),state:"SLI_STATE_END",sliId:a.logSliId}]},UE.register.delete(a.name+"_"+a.sliId),mGb(b))};var nGb=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var pGb=function(){EE.apply(this,arguments)};
_.z(pGb,EE);pGb.prototype.getAssociations=function(){return[]};var HQa=new _.X("highlightTextDecoratorColorMapExtension");var FQa=new _.X("styleRunColorMapExtension");var lBa=_.cx(["data-"]),oBa={};var qBa={};_.Nn=function(a,b,c){_.da.call(this,a+", errorCode="+b);this.errorCode=b;this.xhr=c;this.name="PromiseAjaxError"};
_.z(_.Nn,_.da);var vBa=function(a){this.xhr=a};var WE=function(a){this.wrappedPromise_=a===void 0?null:a;this.state_=0;this.JSC$10172_value_=null};
WE.prototype.then=function(a,b,c){return this.wrappedPromise_?this.wrappedPromise_.then(a,b,c):this.state_===1&&a?(a=a.call(c,this.JSC$10172_value_))&&typeof a.then==="function"?a:_.XE(a):this.state_===2&&b?(a=b.call(c,this.JSC$10172_value_))&&typeof a.then==="function"?a:_.qGb(a):this};
WE.prototype.getValue=function(){return this.JSC$10172_value_};
WE.prototype.isRejected=function(){return this.state_==2};
ffb(WE);_.qGb=function(a){var b=new WE;a=a===void 0?null:a;b.state_=2;b.JSC$10172_value_=a===void 0?null:a;return b};
_.XE=function(a){var b=new WE;a=a===void 0?null:a;b.state_=1;b.JSC$10172_value_=a===void 0?null:a;return b};var uBa={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var LBa="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var rGb=["load","abort","error"],YE=function(a,b,c){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$10192_maxAspectRatio_=a;this.disableAnimation_=b===void 0?!1:b;this.disableExifRotation_=c===void 0?!1:c;this.JSC$10192_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$10192_reject_=this.resolve_=null};
YE.prototype.transform=function(a){var b=this;this.mime_=a.type;bA(Zqb(a),this.dataUrlRead_,this.readError_,this);bA(Yqb(a.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(c,d){b.resolve_=c;b.JSC$10192_reject_=d})};
YE.prototype.dataUrlRead_=function(a){this.dataUrl_=a;this.angle_!=null&&sGb(this)};
YE.prototype.exifRead_=function(a){if(this.disableExifRotation_)this.angle_=0;else{a:if(a=new DataView(a),a.byteLength<2||a.getUint16(0)!==65496)a=-2;else{for(var b=2,c=a.byteLength;b<c;){var d=a.getUint16(b),e=a.getUint16(b+2);if(d===65505){b+=4;d=a.getUint32(b);e=a.getUint16(b+4);if(d!==1165519206||e!==0)break;b+=6;d=a.getUint16(b)===18761;b+=a.getUint32(b+4,d);e=a.getUint16(b,d);b+=2;for(var g=0;g<e;g++){if(a.getUint16(b,d)===274){b+=8;a=a.getUint16(b,d);break a}b+=12}}else if(d>>8!==255)break;
else b+=e+2}a=-1}switch(a){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&&sGb(this)};
YE.prototype.readError_=function(){this.JSC$10192_reject_()};
var sGb=function(a){os(a.JSC$10192_image_,rGb,a.completeTransform_,!1,a);a.JSC$10192_image_.src=_.Gd(a.dataUrl_).toString();a.JSC$10192_image_.src!=Fd.toString()&&a.JSC$10192_image_.src.substr(0,11)==="data:image/"||a.JSC$10192_reject_()};
YE.prototype.completeTransform_=function(){if(this.JSC$10192_image_.src!=Fd.toString()){var a=_.Gd(this.dataUrl_),b=this.JSC$10192_image_.naturalHeight?this.JSC$10192_image_.naturalWidth/this.JSC$10192_image_.naturalHeight:null;this.invalidAspectRatio=b>this.JSC$10192_maxAspectRatio_||b<1/this.JSC$10192_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var c=this.JSC$10192_image_.naturalWidth,d=this.JSC$10192_image_.naturalHeight,e=b=0,g=this.JSC$10192_image_.naturalHeight?this.JSC$10192_image_.naturalWidth/
this.JSC$10192_image_.naturalHeight:null;g>this.JSC$10192_maxAspectRatio_?(c=this.JSC$10192_maxAspectRatio_*d,b=(c-this.JSC$10192_image_.naturalWidth)/2,this.cropped=!0):g<1/this.JSC$10192_maxAspectRatio_?(d=this.JSC$10192_maxAspectRatio_*c,e=(d-this.JSC$10192_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)g=c,c=d,d=g,g=b,b=e,e=g;switch(this.angle_){case 90:e-=c;break;case 180:b-=c;e-=d;break;case 270:b-=
d}this.cropped||this.angle_%360!==0?(a=document.createElement("canvas"),a.width=c||1,a.height=d||1,this.JSC$10192_image_.naturalWidth&&this.JSC$10192_image_.naturalHeight&&(c=a.getContext("2d"),c.rotate(Math.PI/180*this.angle_),c.drawImage(this.JSC$10192_image_,b,e,this.JSC$10192_image_.naturalWidth,this.JSC$10192_image_.naturalHeight)),this.transformedData=_.Gd(a.toDataURL(this.mime_))):this.transformedData=a}else this.transformedData=a;this.resolve_(this)}};var ZE=function(a,b){_.yz.call(this,a);this.value=b};
_.z(ZE,_.yz);
var $E=function(a,b,c,d,e,g,k){k=k===void 0?!1:k;_.Dz.call(this);var m=this;this.JSC$10197_url_=a;this.channelId_=b;this.maxFileSizeMb_=c;this.JSC$10197_maxAspectRatio_=d;this.dropZoneEl_=e;this.rejectInvalidAspectRatio_=k;this.selectButtonEl_=g;this.JSC$10197_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new sE(this.dropZoneEl_);this.selectOverlay_=new tE(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$10197_image_=this.transfer_=null;this.handler_=new _.bn(this);_.gg(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(g,"click",function(){m.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.z($E,_.Dz);$E.prototype.disposeInternal=function(){for(var a=this.selectButtonEl_.nextSibling;a&&a.parentNode&&a.tagName=="INPUT";)a.parentNode.removeChild(a),a=this.selectButtonEl_.nextSibling;this.cancel();_.Dz.prototype.disposeInternal.call(this)};
$E.prototype.uploadPromise=function(){if(this.JSC$10197_image_==null)return null;this.uploadPromise_||tGb(this);return this.uploadPromise_};
$E.prototype.cancel=function(){uGb(this);this.JSC$10197_image_=null};
var uGb=function(a){a.transfer_&&a.transfer_.cancel();a.transfer_=null;a.uploadPromise_=null;a.resolve_=null;a.JSC$10197_reject_=null},tGb=function(a){uGb(a);
a.transfer_=_.oyb(a.JSC$10197_url_,{"X-YouTube-ChannelId":a.channelId_},a.JSC$10197_image_);a.handler_.listenOnce(a.transfer_,"l",a.JSC$10199_onUploadComplete_);a.handler_.listenOnce(a.transfer_,"n",a.onUploadError_);a.transfer_.run();a.uploadPromise_=new Promise(function(b,c){a.resolve_=b;a.JSC$10197_reject_=c})};
_.f=$E.prototype;_.f.onChange_=function(a){a.files.length&&(this.JSC$10197_image_=a.files[0],this.JSC$10197_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$10197_image_=null,this.dispatchEvent(new ZE("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(tGb(this),(new YE(this.JSC$10197_maxAspectRatio_)).transform(this.JSC$10197_image_).then((0,_.ug)(this.onPreview_,this),(0,_.ug)(this.onPreviewError_,this))))};
_.f.onPreview_=function(a){if(a.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$10197_image_=null),this.dispatchEvent(new ZE("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;a.cropped&&this.dispatchEvent(new ZE("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new ZE("yt.comments.ImageUploadOverlay.CHANGE_EVENT",a.transformedData))};
_.f.onPreviewError_=function(){this.JSC$10197_image_=null;this.dispatchEvent(new ZE("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.f.onHover_=function(a){a.stopPropagation();a.preventDefault();if(a.type==="dragover")a=!0;else if(a.type==="dragleave")a=!1;else return;this.dispatchEvent(new ZE("yt.comments.ImageUploadOverlay.HOVER_EVENT",a))};
_.f.JSC$10199_onUploadComplete_=function(){var a=(0,_.Dfb)(this.transfer_.getResponseText());this.resolve_(a.encryptedBlobId)};
_.f.onUploadError_=function(){this.JSC$10197_reject_();uGb(this)};var vGb=function(a){a=a||{};var b={},c={};this.url=a.url||"";this.args=a.args||_.yf.clone(b);this.assets=a.assets||{};this.attrs=a.attrs||_.yf.clone(c);this.fallback=a.fallback||null;this.fallbackMessage=a.fallbackMessage||null;this.html5=!!a.html5;this.disable=a.disable||{};this.loaded=!!a.loaded;this.messages=a.messages||{}};
vGb.prototype.clone=function(){var a=new vGb,b;for(b in this)if(this.hasOwnProperty(b)){var c=this[b];a[b]=_.jba(c)=="object"?_.yf.clone(c):c}return a};var wGb,xGb,yGb,hw,AGb,BGb,CGb,DGb,EGb,FGb,GGb,HGb,IGb,JGb,KGb,LGb,MGb,NGb,OGb,PGb,QGb,RGb,SGb,TGb,UGb,VGb,WGb,XGb,YGb,O3a,ZGb,$Gb,aHb,bHb,cHb,dHb,eHb,fHb,gHb,hHb,iHb,jHb,kHb,lHb,mHb,nHb,oHb,pHb,qHb,rHb,sHb,tHb,uHb,vHb,wHb,xHb,aF,yHb,zHb,AHb,BHb,CHb,DHb,EHb,FHb,GHb,HHb,IHb,JHb,KHb,LHb,MHb,NHb,OHb,PHb,M3a,QHb,RHb,SHb,THb,UHb,VHb,WHb,XHb,YHb,ZHb,$Hb,aIb,bIb,cIb,dIb,eIb,fIb,gIb,hIb,iIb,jIb,kIb,lIb,mIb,nIb;wGb=["account/accounts_list"];xGb=["acknowledge_channel_tou_strike"];yGb=["notification/add_upcoming_event_reminder"];
_.zGb=["att/get"];hw=["browse","music/browse","unplugged/browse"];AGb=["channel/claim_legacy_youtube_channel"];BGb=["history/clear_search_history"];CGb=["history/clear_watch_history"];DGb=["comment/perform_comment_action"];EGb=["comment/get_comment_replies"];FGb=["ypc/commerce_action"];GGb=["backstage/create_post"];HGb=["live/create_broadcast"];IGb=["channel/create_channel"];JGb=["comment/create_comment_reply"];KGb=["comment/create_comment"];LGb=["live_chat/create_poll"];MGb=["playlist/create"];
NGb=["decorate_message"];OGb=["live_chat/delete_message"];PGb=["playlist/delete"];QGb=["video/delete"];RGb=["like/dislike"];SGb=["dismissal/dismiss"];TGb=["flag/flag"];UGb=["flow"];VGb=["account/account_menu"];WGb=["playlist/get_add_to_playlist"];XGb=["get_answer"];YGb=["channel/get_channel_creation_form"];O3a=["offline/get_download_action"];ZGb=["kids/get_kids_blocklist_picker"];$Gb=["live_chat/get_item_context_menu"];aHb=["live_chat/get_live_chat_message_buy_flow"];bHb=["live_chat/get_live_chat_replay"];
cHb=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];dHb=["live_chat/get_live_chat_super_sticker_buy_flow"];eHb=["notification/get_notification_menu"];fHb=["playlist/get_settings_editor"];gHb=["backstage/get_post_video_preview"];hHb=["account/get_profile_card"];iHb=["share/get_share_panel"];jHb=["share/get_sharing_provider_data"];kHb=["get_survey"];lHb=["notification/get_unseen_count"];mHb=["get_user_mention_suggestions"];nHb=["get_watch"];oHb=["guide"];
pHb=["feedback"];qHb=["kids/update_blacklist"];rHb=["like/like"];sHb=["live_chat/live_chat_action"];tHb=["live_chat/manage_user"];uHb=["video_manager/metadata_update"];vHb=["live_chat/moderate"];wHb=["notification/modify_channel_preference"];xHb=["notification/opt_out"];aF=["get_panel","get_posts_by_host_panel"];yHb=["player"];zHb=["browse/edit_playlist"];AHb=["notification/record_interactions"];BHb=["reel/reel_item_watch"];CHb=["reel/reel_watch_sequence"];DHb=["like/removelike"];EHb=["notification/remove_upcoming_event_reminder"];
FHb=["flag/get_form"];GHb=["miniapp/report_value"];HHb=["navigation/resolve_url"];IHb=["channel/reveal_business_email"];JHb=["in_video/search"];KHb=["search","sfv/search","unplugged/search"];LHb=["live_chat/send_message"];MHb=["live_chat/send_live_chat_vote"];NHb=["account/set_setting"];OHb=["submit_caption_correction"];PHb=["subscription/subscribe"];M3a=["get_transcript"];QHb=["resolve_location","unplugged/resolve_location"];RHb=["subscription/unsubscribe"];SHb=["backstage/update_post"];THb=["channel_edit/update_channel_page_settings"];
UHb=["comment/update_comment_reply"];VHb=["comment/update_comment"];WHb=["comment/update_comments_settings"];XHb=["creator/update_creator_channel"];YHb=["pdg/update_enablement"];ZHb=["updated_metadata"];$Hb=["channel_edit/validate_channel_handle"];aIb=["verify_age"];bIb=["next","unplugged/watch_next"];cIb=["whitelist/edit"];dIb=["ypc/cancel_recurrence"];eIb=["ypc/complete_transaction"];fIb=["ypc/get_cart"];gIb=["ypc/get_fix_instrument_params"];hIb=["ypc/get_offers"];iIb=["ypc/get_payment_instruments_params"];
jIb=["ypc/handle_transaction"];kIb=["ypc/log_payment_server_analytics"];lIb=["ypc/pause_subscription"];mIb=["ypc/redeem_code"];nIb=["ypc/resume_subscription"];var oIb=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,93911,106531,257234,252598,252597,252600,252599,252596,225031,177843,27259,27262,27263,21759,
160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,180635,74610,45707,83962,83970,46713,166591,89711,
74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,235234,162712,80357,243315,86113,72598,168413,72733,
107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,156655,156654,121692,211414,211411,211412,211413,211403,
184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,211851,211852,211853,129889,197888,197889,149123,221959,221627,221958,45474,100352,98443,117985,74613,155911,74614,64502,136032,74615,
74616,122224,74617,77820,74618,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,222932,213915,225216,218674,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,
181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,211026,250896,96367,36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,242528,143815,139095,144402,149968,149969,32473,72901,72906,50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,
33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,196075,194768,252201,194769,191885,233634,194770,195350,195349,194771,166382,37671,49953,220669,249229,213774,204572,191389,253830,253831,253832,253833,253834,204574,187917,191390,179556,191402,238596,
212661,191392,197826,191393,204573,36216,28237,241212,173718,39553,192547,29222,26107,241211,38050,26108,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,63349,240553,95101,75240,27039,68823,21537,83464,75707,252904,170215,223033,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,
64424,33986,100828,129089,21409,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,211189,111059,211188,5754,20445,233471,151308,151152,228067,130975,130976,247244,210815,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,113746,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,
60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,139723,139722,121258,253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,213904,96658,116646,159428,168611,168612,121122,219862,96660,
127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,190190,225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,
170873,143516,178921,254884,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,82039];var so=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.Rj("yt.msgs_",so);var bF=new _.fB("ACTION_ROUTER_TOKEN");_.cF=function(){this.autonavState_=_.x("kevlar_is_pupi_enabled")?2:XBa()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.cF.prototype.getState=function(){return this.autonavState_};
_.cF.prototype.pause=function(a){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=a):this.autonavState_==1&&(this.disabledAutonavPauseReason_=a)};
_.cF.prototype.setState=function(a,b,c){b&&(this.autoplayChangedByUser=!0);b=this.autonavState_===3||a===3;this.autonavState_!=a&&(this.autonavState_=a,a!=3&&_.YBa(a==2),a=_.x("kevlar_is_pupi_enabled")?c||b:!0,_.Nl.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,a,c))};
_.cF.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.lx(_.cF);var dF=function(){this.hasRun=!1};var eF={},iCa=(eF.auto_search="LATENCY_ACTION_AUTO_SEARCH",eF.ad_to_ad="LATENCY_ACTION_AD_TO_AD",eF.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",eF.app_startup="LATENCY_ACTION_APP_STARTUP",eF.browse="LATENCY_ACTION_BROWSE",eF.cast_splash="LATENCY_ACTION_CAST_SPLASH",eF.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",eF.channels="LATENCY_ACTION_CHANNELS",eF.chips="LATENCY_ACTION_CHIPS",eF.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",eF.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
eF.editor="LATENCY_ACTION_EDITOR",eF.embed="LATENCY_ACTION_EMBED",eF.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",eF.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",eF.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",eF.explore="LATENCY_ACTION_EXPLORE",eF.favorites="LATENCY_ACTION_FAVORITES",eF.home="LATENCY_ACTION_HOME",eF.inboarding="LATENCY_ACTION_INBOARDING",eF.landing="LATENCY_ACTION_LANDING",eF.library="LATENCY_ACTION_LIBRARY",eF.live=
"LATENCY_ACTION_LIVE",eF.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",eF.management="LATENCY_ACTION_MANAGEMENT",eF.mini_app="LATENCY_ACTION_MINI_APP_PLAY",eF.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",eF.onboarding="LATENCY_ACTION_ONBOARDING",eF.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",eF.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",eF.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",eF.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",
eF.prebuffer="LATENCY_ACTION_PREBUFFER",eF.prefetch="LATENCY_ACTION_PREFETCH",eF.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",eF.profile_switcher="LATENCY_ACTION_LOGIN",eF.projects="LATENCY_ACTION_PROJECTS",eF.reel_watch="LATENCY_ACTION_REEL_WATCH",eF.results="LATENCY_ACTION_RESULTS",eF.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",eF.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",eF.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",eF.review="LATENCY_ACTION_REVIEW",eF.search_overview_answer=
"LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",eF.search_ui="LATENCY_ACTION_SEARCH_UI",eF.search_suggest="LATENCY_ACTION_SUGGEST",eF.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",eF.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",eF.seek="LATENCY_ACTION_PLAYER_SEEK",eF.settings="LATENCY_ACTION_SETTINGS",eF.store="LATENCY_ACTION_STORE",eF.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",eF.tenx="LATENCY_ACTION_TENX",eF.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",eF.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",
eF.watch="LATENCY_ACTION_WATCH",eF.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",eF["watch,watch7"]="LATENCY_ACTION_WATCH",eF["watch,watch7_html5"]="LATENCY_ACTION_WATCH",eF["watch,watch7ad"]="LATENCY_ACTION_WATCH",eF["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",eF.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",eF.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",eF.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",eF.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",eF.networkless_performance=
"LATENCY_ACTION_NETWORKLESS_PERFORMANCE",eF.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",eF.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",eF.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",eF),xCa=0;var DCa=function(a,b){DB.call(this,1,arguments);this.timer=b};
_.z(DCa,DB);var CCa=new Nqa("aft-recorded",DCa);var mCa=_.ja.ytLoggingGelSequenceIdObj_||{};_.Rj("ytLoggingGelSequenceIdObj_",mCa);var fF=_.ja.ytLoggingLatencyUsageStats_||{};_.Rj("ytLoggingLatencyUsageStats_",fF);var gF=function(){this.cleanupJob=0},pCa=function(){gF.instance||(gF.instance=new gF);
return gF.instance};
_.f=gF.prototype;_.f.baseline=function(a,b,c){hF(this,"baseline_"+a)||_.zl("latencyActionBaselined",{clientActionNonce:a},{timestamp:b,cttAuthInfo:c})};
_.f.tick=function(a,b,c,d){hF(this,"tick_"+a+"_"+b)||_.zl("latencyActionTicked",{tickName:a,clientActionNonce:b},{timestamp:c,cttAuthInfo:d})};
_.f.info=function(a,b,c){var d=Object.keys(a).join("");hF(this,"info_"+d+"_"+b)||(a=Object.assign({},a),a.clientActionNonce=b,_.zl("latencyActionInfo",a,{cttAuthInfo:c}))};
_.f.jspbInfo=function(a,b,c){for(var d="",e=0;e<zc(a).length;e++)zc(a)[e]!==void 0&&(d=e===0?d.concat(""+e):d.concat("_"+e));hF(this,"info_"+d+"_"+b)||(_.sf(a,2,b),b={cttAuthInfo:c},c=_.x("jspb_sparse_encoded_pivot")?new tl([{}]):new tl,_.qd(c,7,rnb,a),nCa("latencyActionInfo",c,b))};
_.f.span=function(a,b,c){var d=Object.keys(a).join("");hF(this,"span_"+d+"_"+b)||(a.clientActionNonce=b,_.zl("latencyActionSpan",a,{cttAuthInfo:c}))};
var hF=function(a,b){fF[b]=fF[b]||{count:0};var c=fF[b];c.count++;c.time=(0,_.Uj)();a.cleanupJob||(a.cleanupJob=_.ul(_.zk,function(){var d=(0,_.Uj)(),e;for(e in fF)fF[e]&&d-fF[e].time>6E4&&delete fF[e];a&&(a.cleanupJob=0)},5E3));
return c.count>5?(c.count===6&&Math.random()*1E5<1&&(c=new _.qj("CSI data exceeded logging limit with key",b.split("_")),b.indexOf("plev")>=0||_.Dl(c)),!0):!1};var pIb,qIb;pIb=window;qIb=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.Bo=pIb.performance||pIb.mozPerformance||pIb.msPerformance||pIb.webkitPerformance||new qIb;var BCa=!1,rCa=!1,ECa=(0,_.ug)(_.Bo.clearResourceTimings||_.Bo.webkitClearResourceTimings||_.Bo.mozClearResourceTimings||_.Bo.msClearResourceTimings||_.Bo.oClearResourceTimings||_.By,_.Bo);var rIb=window;rIb.ytcsi&&(rIb.ytcsi.infoGel=_.Ho,rIb.ytcsi.tick=_.Jo);var RCa=function(a){DB.call(this,1,arguments);this.csn=a};
_.z(RCa,DB);var Sqa=new Nqa("screen-created",RCa),gDa=[],QCa=fDa,hDa=0,Oo=new Map,SCa=new Map,TCa=new Map;var h6a=Symbol("sf"),Yo=new WeakMap;var iF=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},ns=function(){iF.instance||(iF.instance=new iF);
return iF.instance};
_.f=iF.prototype;_.f.setClient=function(a){this.client=a};
_.f.JSC$10279_newScreen=function(){this.clear();this.csn=_.Fn()};
_.f.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.f.reportShown=function(a,b,c){var d=this.JSC$10279_getTrackingParams(a),e=a.visualElement?a.visualElement:d;b=this.shownElements.has(e);var g=this.visibleState.get(e);this.shownElements.add(e);this.visibleState.set(e,!0);a.impressionLog&&!b&&a.impressionLog();if(d||a.visualElement)if(c=sIb(this,a,c))if(e=tIb(this,a),jF(this,a)||e){d=a.visualElement?a.visualElement:_.qs(d);var k=a.interactionLoggingClientData;e||b?jF(this,a)&4?g||aDa(this.client,c,d,k):jF(this,a)&1&&!b&&YCa(this.client,c,d,k):YCa(this.client,
c,d,k)}};
_.f.reportHidden=function(a,b,c){var d=this.JSC$10279_getTrackingParams(a),e=a.visualElement?a.visualElement:d;b=this.hiddenElements.has(e);var g=this.visibleState.get(e);this.hiddenElements.add(e);this.visibleState.set(e,!1);if(g===!1)return!0;if(!d&&!a.visualElement)return!1;c=sIb(this,a,c);if(!c||!jF(this,a)&&tIb(this,a))return!1;d=a.visualElement?a.visualElement:_.qs(d);jF(this,a)&8?bDa(this.client,c,d):jF(this,a)&2&&!b&&(a=this.client,b=No({cttAuthInfo:Gn(c)||void 0},c),d={csn:c,ve:d.getAsJson(),
eventType:2},c==="UNDEFINED_CSN"?Qo("visualElementHidden",b,d):a?xl("visualElementHidden",d,a,b):_.zl("visualElementHidden",d,b));return!0};
_.f.JSC$10279_getTrackingParams=function(a){var b=this.getData(a),c,d;if(_.x("il_use_view_model_logging_context")&&(b==null?0:(c=b.context)==null?0:(d=c.loggingContext)==null?0:d.loggingDirectives))return b.context.loggingContext.loggingDirectives.trackingParams||"";var e,g;if(b==null?0:(e=b.rendererContext)==null?0:(g=e.loggingContext)==null?0:g.loggingDirectives)return b.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(b==null?0:b.loggingDirectives)return b.loggingDirectives.trackingParams||
"";var k;return((k=a.veContainer)==null?0:k.trackingParams)?a.veContainer.trackingParams:(b==null?void 0:b.trackingParams)||""};
_.f.JSC$10279_elementShouldLogGesture=function(a,b){a=this.getData(a);return!!((Math.floor(Number(a&&a.loggingDirectives&&a.loggingDirectives.gestures&&a.loggingDirectives.gestures.types||""))||0)&b)};
_.f.JSC$10279_getNearestParentVe=function(a){var b=this.JSC$10279_getTrackingParams(a);return a.visualElement?a.visualElement:b?_.qs(b):a.parentElement?this.JSC$10279_getNearestParentVe(a.parentElement):null};
var sIb=function(a,b,c){var d=_.Fn(c);return a.csn===null||d===a.csn||c?d:(a=new _.qj("VisibilityLogger called before newScreen",{caller:b.tagName,previous_csn:a.csn,current_csn:d}),_.Dl(a),null)};
iF.prototype.getData=function(a){var b,c=a.data||((b=a.props)==null?void 0:b.data);if(a.isWebComponentWrapper){var d;c=(d=Yo.get(a))==null?void 0:d[h6a]}return c};
var tIb=function(a,b){var c;return!((c=a.getData(b))==null||!c.loggingDirectives)},jF=function(a,b){a=a.getData(b);
return Math.floor(Number(a&&a.loggingDirectives&&a.loggingDirectives.visibility&&a.loggingDirectives.visibility.types||""))||1};var kF;kF=function(){};
_.ks=function(){kF.instance||(kF.instance=new kF);return kF.instance};
kF.prototype.setClient=function(a){_.Ii(ns().setClient).bind(ns())(a)};
_.uIb=function(){_.ks();_.Ii(ns().JSC$10279_newScreen).bind(ns())()};
kF.prototype.clear=function(){_.Ii(ns().clear).bind(ns())()};
kF.prototype.reportShown=function(a,b,c){_.Ii(ns().reportShown).bind(ns())(a,b,c)};
kF.prototype.reportHidden=function(a,b,c){return _.Ii(ns().reportHidden).bind(ns())(a,b,c)};
var BPa=function(a,b){return _.Ii(ns().JSC$10279_getTrackingParams).bind(ns())(b)},i6a=function(a,b){return _.Ii(ns().JSC$10279_getNearestParentVe).bind(ns())(b)};var lF,vIb;lF=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};
_.ms=function(){lF.instance||(lF.instance=new lF);return lF.instance};
lF.prototype.setClient=function(a){this.client=a};
vIb=function(a,b,c){c=c===void 0?{}:c;_.Ii(function(){var d,e,g,k=((d=_.y(b==null?void 0:b.commandMetadata,_.ao))==null?void 0:d.rootVe)||((e=_.y(b==null?void 0:b.commandMetadata,NBb))==null?void 0:(g=e.screenVisualElement)==null?void 0:g.uiType);if(k){d=_.y(b==null?void 0:b.commandMetadata,vEb);if(d==null?0:d.parentTrackingParams){var m=_.qs(d.parentTrackingParams);if(d.parentCsn)var n=d.parentCsn}else c.clickedVisualElement?m=c.clickedVisualElement:b.clickTrackingParams&&(m=_.qs(b.clickTrackingParams));
a:{d=_.y(b,_.Vn);e=_.y(b,YHa);if(d){if(e=ZBa(d,"VIDEO")){d={token:e,videoId:d.videoId};break a}}else if(e&&(d=ZBa(e,"PLAYLIST"))){d={token:d,playlistId:e.playlistId};break a}d=void 0}c=Object.assign({},{cttAuthInfo:d,parentCsn:n},c);if(_.x("expectation_logging")){var r;c.loggingExpectations=((r=_.y(b==null?void 0:b.commandMetadata,NBb))==null?void 0:r.loggingExpectations)||void 0}_.mF(a,k,m,c)}else _.Dl(new _.qj("Error: Trying to create a new screen without a rootVeType",b))})()};
_.mF=function(a,b,c,d){d=d===void 0?{}:d;_.Ii(function(){oIb.includes(b)||(_.Dl(new _.qj("createClientScreen() called with a non-page VE",b)),b=83769);d.isHistoryNavigation||(a.forwardHistoryStack=[],a.backHistoryStack.push({rootVe:b,key:d.key||""}));a.graftQueue=[];a.stateChangedQueue=[];d.dataPromises?wIb(a,b,c,d):xIb(a,b,c,d)})()};
_.yIb=function(a,b,c){c=c===void 0?0:c;_.Ii(function(){b.then(function(d){a.pendingScreenCreation.has(c)&&a.pendingScreenFn&&a.pendingScreenFn();var e=_.Fn(c),g=_.En(c);if(e&&g){var k;(d==null?0:(k=d.response)==null?0:k.trackingParams)&&Po(a.client,e,g,_.qs(d.response.trackingParams));var m;(d==null?0:(m=d.playerResponse)==null?0:m.trackingParams)&&Po(a.client,e,g,_.qs(d.playerResponse.trackingParams))}})})()};
lF.prototype.graftServerVe=function(a,b,c){var d=this;return _.Ii(function(){var e=_.qs(a);_.nF(d,e,b,c);return e})()};
_.j6a=function(a,b,c,d){return _.x("enable_client_ve_spec")&&b.clientVeSpec?(b=_.lu(b.clientVeSpec.uiType,void 0,b.clientVeSpec.elementIndex,b.clientVeSpec.clientYoutubeData,void 0,b),_.nF(a,b,c,d)?b:null):b.trackingParams?a.graftServerVe(b.trackingParams,c,d):null};
_.ls=function(a,b,c,d){return _.Ii(function(){if(!b.veType)return _.Cl(new _.qj("Error: Trying to graft a client VE without a veType.")),null;if(b.visibilityTypes){var e=b.visibilityTypes.reduce(function(g,k){return g|k});
e={visibility:{types:String(e)}}}e=_.lu(b.veType,b.visualElement,b.elementIndex,b.clientYouTubeData,void 0,e);return _.nF(a,e,c,d)?e:null})()};
_.nF=function(a,b,c,d){d=d===void 0?0:d;return _.Ii(function(){if(a.pendingScreenCreation.has(d))return a.graftQueue.push([b,c]),!0;var e=_.Fn(d),g=c||_.En(d);if(e&&g){if(_.x("combine_ve_grafts")){var k=a.cachedVisualElements.get(g.toString());k?k.push(b):(a.cachedRootVisualElements.set(g.toString(),g),a.cachedVisualElements.set(g.toString(),[b]));a.attachTimeout||(a.attachTimeout=_.ul(_.zk,function(){zIb(a,e)},1200))}else Po(a.client,e,g,b);
return!0}return!1})()};
_.oF=function(a,b,c){c=c===void 0?0:c;var d=a.recurringGrafts.get(c)||new Map;if(_.x("smarter_ve_dedupping"))for(var e=Array.from(d.keys()),g=0;g<e.length;g++){var k=void 0,m=void 0;var n=b;var r=e[g];r.isClientVe()&&n.isClientVe()?(k=n.getAsJson(),m=r.getAsJson(),n=k.veType!==m.veType||k.elementIndex!==m.elementIndex||k.dataElement!==m.dataElement||n.getLoggingDirectives()!==r.getLoggingDirectives()?!1:!0):n=r.veData.trackingParams!==void 0&&n.veData.trackingParams!==void 0?((m=n.veData)==null?void 0:
m.trackingParams)===((k=r.veData)==null?void 0:k.trackingParams):!1;if(n)return}else if(d.has(b))return;d.set(b,void 0);a.recurringGrafts.set(c,d);_.Fn(c)==="UNDEFINED_CSN"||a.pendingScreenCreation.has(c)||_.nF(a,b,void 0,c)};
_.pF=function(a,b,c,d){d=_.Fn(d===void 0?0:d);if(!d)return!1;dDa(a.client,d,b,c);return!0};
_.qF=function(a,b,c,d){if(!b)return!1;d=_.Fn(d===void 0?0:d);if(!d)return!1;dDa(a.client,d,_.qs(b),c);return!0};
_.Pt=function(a,b){var c=b.getScreenLayer&&b.getScreenLayer();if(b.visualElement)return _.pF(a,b.visualElement,void 0,c);b=BPa(_.ks(),b);return _.qF(a,b,void 0,c)};
lF.prototype.clickCommand=function(a,b,c){return _.qF(this,a.clickTrackingParams,b,c===void 0?0:c)};
lF.prototype.stateChanged=function(a,b,c){this.visualElementStateChanged(_.qs(a),b,c===void 0?0:c)};
lF.prototype.visualElementStateChanged=function(a,b,c){c=c===void 0?0:c;c===0&&this.pendingScreenCreation.has(c)?this.stateChangedQueue.push([a,b]):this.logStateChanged(a,b,c)};
lF.prototype.logStateChanged=function(a,b,c){c=c===void 0?0:c;var d=_.Fn(c);a=a||_.En(c);return d&&a?(eDa(this.client,d,a,b),!0):!1};
var wIb=function(a,b,c,d){d=d===void 0?{}:d;a.pendingScreenCreation.add(d.layer||0);a.pendingScreenFn=function(){xIb(a,b,c,d);var k=_.En(d.layer);if(k){for(var m=_.h(a.graftQueue),n=m.next();!n.done;n=m.next())n=n.value,_.nF(a,n[0],n[1]||k,d.layer);k=_.h(a.stateChangedQueue);for(m=k.next();!m.done;m=k.next())m=m.value,a.logStateChanged(m[0],m[1])}};
c||_.Fn(d.layer)||a.pendingScreenFn();if(d.dataPromises)for(var e=_.h(d.dataPromises),g=e.next();!g.done;g=e.next())_.yIb(a,g.value,d.layer);else _.Bl(Error("tf"))},xIb=function(a,b,c,d){d=d===void 0?{}:d;
var e=void 0;d.layer||(d.layer=0);e=d.parentLayer!==void 0?d.parentLayer:d.layer;var g=_.Fn(e);e=_.En(e);var k=c||e,m;k&&(d.parentCsn!==void 0?m={clientScreenNonce:d.parentCsn,visualElement:k}:g&&g!=="UNDEFINED_CSN"&&(m={clientScreenNonce:g,visualElement:k}));var n,r=_.Ei("EVENT_ID");g==="UNDEFINED_CSN"&&r&&(n={servletData:{serializedServletEventId:r}});_.x("combine_ve_grafts")&&g&&zIb(a,g);_.x("no_client_ve_attach_unless_shown")&&k&&g&&XCa(k,g);try{var t=_.UCa(a.client,b,m,d.csnToClone,d.cttAuthInfo,
n,d.implicitGestureType,void 0,d.loggingExpectations)}catch(A){_.El(A,{rootVeType:b,rootVe:e,parentVisualElement:c,currentCsn:g,parentEl:m,csnToClone:d.csnToClone});_.Bl(A);return}_.XAa(t,b,d.layer,d.cttAuthInfo);g&&g!=="UNDEFINED_CSN"&&e&&!VAa(g)&&bDa(a.client,g,e,!0);a.backHistoryStack[a.backHistoryStack.length-1]&&!a.backHistoryStack[a.backHistoryStack.length-1].csn&&(a.backHistoryStack[a.backHistoryStack.length-1].csn=t||"");_.Ho({clientScreenNonce:t});_.uIb();var u=_.En(d.layer);g&&g!=="UNDEFINED_CSN"&&
u&&(_.x("web_mark_root_visible")||_.x("music_web_mark_root_visible"))&&_.So(t,u);a.pendingScreenCreation.delete(d.layer||0);a.pendingScreenFn=void 0;var w;(w=a.recurringGrafts.get(d.layer))==null||w.forEach(function(A,C){A?_.nF(a,C,A,d.layer):u&&_.nF(a,C,u,d.layer)});
AIb(a)},AIb=function(a){for(var b=0;b<a.afterNewScreenOneOffJobs.length;b++){var c=a.afterNewScreenOneOffJobs[b];
try{c()}catch(d){_.Bl(d)}}for(b=a.afterNewScreenOneOffJobs.length=0;b<a.afterNewScreenRecurringJobs.length;b++){c=a.afterNewScreenRecurringJobs[b];try{c()}catch(d){_.Bl(d)}}},zIb=function(a,b){if(b===void 0)for(var c=TAa(),d=0;d<c.length;d++)c[d]!==void 0&&zIb(a,c[d]);
else a.cachedVisualElements.forEach(function(e,g){(g=a.cachedRootVisualElements.get(g))&&_.VCa(a.client,b,g,e)}),a.cachedVisualElements.clear(),a.cachedRootVisualElements.clear(),a.attachTimeout=void 0};var rF=function(a){a=a===void 0?{layer:0}:a;this.hasRun=!1;this.createScreenConfig=a;a={};this.processedResponseMap=(a.response=!1,a.playerResponse=!1,a)};
_.z(rF,dF);rF.prototype.validate=function(a){return!(!a.data||!a.data.response&&!a.data.playerResponse)};
rF.prototype.handle=function(a){var b=_.ms(),c=this.createScreenConfig.layer;a.data.response&&a.data.response.trackingParams&&!this.processedResponseMap.response&&(b.graftServerVe(a.data.response.trackingParams,void 0,c),this.processedResponseMap.response=!0);a.data.playerResponse&&a.data.playerResponse.trackingParams&&!this.processedResponseMap.playerResponse&&(b.graftServerVe(a.data.playerResponse.trackingParams,void 0,c),this.processedResponseMap.playerResponse=!0)};var sF=function(){this.JSC$10311_playerPromiseResolver=_.Tt();this.chunkProcessors=[];this.chunksProcessed=0};
sF.prototype.processChunk=function(a){if(a){for(var b=_.h(this.chunkProcessors),c=b.next();!c.done;c=b.next())c=c.value,c.validate(a)&&(c.handle(a),c.hasRun=!0);_.Jo("np"+this.chunksProcessed);this.chunksProcessed++}};var z6a,DIb;_.hs=function(a,b,c,d,e,g,k){k=k===void 0?[]:k;this.buildCommandPayload=a;this.navigate=b;this.handleServiceRequest=c;this.sendAction=d;this.JSC$10320_screenManager=e;this.commandResolverMap=g;this.autoLogResolverAllowlist=k;this.pendingCommands=new Set};
z6a=function(a,b,c){var d=m6a,e=n6a,g=_.ms(),k=BIb;c=c===void 0?[]:c;_.hs.instance=new _.hs(a,b,d,e,g,k,c)};
DIb=function(a,b,c){if(!a.commandResolverMap)return!1;var d=nDa(b,a.commandResolverMap);return d?((a.autoLogResolverAllowlist.some(function(e){return!!_.y(b,e)})||(c==null?0:c.forceClickLogging))&&CIb(a,b,c),d instanceof Promise?d.then(function(e){e.resolve(b,c)}):d.resolve(b,c),!0):!1};
_.hs.prototype.resolveCommand=function(a,b){var c=this,d=EIb(a);if(DIb(this,a,b))return!0;if(d)return FIb(this,a,b);if(!this.buildCommandPayload)return jDa(a,"Unhandled command by buildCommandPayload"),!1;var e=this.buildCommandPayload(a,b);if(b==null?0:b.commandController)e.commandController=b.commandController;if(e.type===0){if(!this.navigate)return kDa(a,"navigate"),!1;if(!GIb(e.command))return jDa(a,"Page requests need to specify a url"),!1;_.x("logging_avoid_blocking_during_navigation")&&_.Bta().transition("application_navigating");
a=this.navigate(e)||[];mfb(a).then(function(){c.pendingCommands.delete(e.command)});
return!0}if(e.type===1){if(!this.handleServiceRequest)return kDa(a,"handleServiceRequest"),!1;(b==null?0:b.forceClickLogging)&&CIb(this,e.command,b);a=this.handleServiceRequest(e);mfb(a).then(function(){c.pendingCommands.delete(e.command)});
return!0}if(e.type===2){if(!this.sendAction)return kDa(a,"sendAction"),!1;CIb(this,e.command,b);this.sendAction(e);return!0}return!1};
var CIb=function(a,b,c){if((c==null||!c.disableClickTracking)&&a.JSC$10320_screenManager)if(b.clickTrackingParams&&_.x("log_click_with_layer_from_element_in_command_handler")){var d;c=c==null?void 0:(d=c.form)==null?void 0:d.element;a.JSC$10320_screenManager.clickCommand(b,null,c&&c.getScreenLayer&&c.getScreenLayer())}else b.clickTrackingParams?a.JSC$10320_screenManager.clickCommand(b):!_.x("disable_clicked_visual_element_in_command_handler")&&(c==null?0:c.clickedVisualElement)&&_.pF(a.JSC$10320_screenManager,
c.clickedVisualElement)},EIb=function(a){var b=!!_.y(a,_.po),c;
a=((c=_.y(a,_.ro))==null?void 0:c.signal)==="CLIENT_SIGNAL";return b||a},FIb=function(a,b,c){var d=_.y(b,_.po);
if(d)var e=(d==null?void 0:d.commands)||[];else{var g;if(((g=_.y(b,_.ro))==null?void 0:g.signal)==="CLIENT_SIGNAL"){var k;e=((k=_.y(b,_.ro))==null?void 0:k.actions)||[]}}if(e){b=_.h(e);for(e=b.next();!e.done;e=b.next()){e=e.value;try{a.resolveCommand(e,c)}catch(m){m instanceof Error&&_.Bl(m)}}return!0}jDa(b,"Could not handle the meta command");return!1},GIb=function(a){var b;
return!((b=_.y(a==null?void 0:a.commandMetadata,_.ao))==null||!b.url)};var tF=function(){dF.apply(this,arguments)};
_.z(tF,dF);tF.prototype.validate=function(a){var b,c;return!this.hasRun&&!!((b=a.data.response)==null?0:(c=b.onResponseReceivedEndpoints)==null?0:c.length)};
tF.prototype.handle=function(a){var b=_.hs.instance;a=_.h(a.data.response.onResponseReceivedEndpoints);for(var c=a.next();!c.done;c=a.next())b.resolveCommand(c.value)};var HIb,IIb,JIb;
HIb=function(){this.shortsPipActivation=this.watchWhileActivation=this.watchPipActivation=this.mediaSessionPipActivation=this.showMiniplayerCommandActivation=this.lockupActivation=this.playlistSuggestionsShelfActivation=this.playablesDestPageActivation=this.miniAppPageActivation=this.productDetailsPageActivation=this.playlistWatchPageActivation=this.userActivation=this.miniplayerButtonActivation=!1;this.navigationFinishPromise=_.oo();this.navigatingAwayFromWatchDeletedVideo=!1;this.currentEndpoint=null;
this.isVideoPlaying=!1};
_.uF=function(){IIb||(IIb=new HIb);return IIb};
JIb=function(){var a=_.uF();a.miniplayerButtonActivation=!1;a.userActivation=!1;a.playlistWatchPageActivation=!1;a.productDetailsPageActivation=!1;a.miniAppPageActivation=!1;a.playablesDestPageActivation=!1;a.lockupActivation=!1;a.showMiniplayerCommandActivation=!1;a.playlistSuggestionsShelfActivation=!1;a.mediaSessionPipActivation=!1;a.watchPipActivation=!1;a.watchWhileActivation=!1;a.shortsPipActivation=!1};
_.KIb=function(){var a=_.uF(),b=a.mediaSessionPipActivation,c=a.watchPipActivation,d=a.watchWhileActivation,e=a.playlistWatchPageActivation,g=a.lockupActivation,k=a.showMiniplayerCommandActivation,m=a.navigatingAwayFromWatchDeletedVideo,n=a.shortsPipActivation,r=a.playlistSuggestionsShelfActivation,t=a.productDetailsPageActivation,u=a.miniAppPageActivation,w=a.playablesDestPageActivation;return!a.miniplayerButtonActivation&&!e&&!r&&!t&&!u&&!w&&!g&&!k&&!b&&!c&&!d&&!n||m};var g2a;_.vF=bp("FEwhat_to_watch","/",3854);_.h2a=bp("FEdownloads","/feed/downloads",42352);g2a=bp("FEmusic_offline","browse/FEmusic_offline",42352);var Wp=function(a,b){b=b===void 0?[]:b;var c=c===void 0?[]:c;b=Iya.apply(null,[Jya.apply(null,_.Be(b))].concat(_.Be(c)));this.store=Nya(a,void 0,b)};
Wp.prototype.getState=function(){return this.store.getState()};
Wp.prototype.dispatch=function(a){return this.store.dispatch(a)};
Wp.prototype.subscribe=function(a){return this.store.subscribe(a)};
Wp.prototype.replaceReducer=function(a){return this.store.replaceReducer(a)};
Wp.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.wF=function(a,b,c){var d=b(a.getState());return a.subscribe(function(){var e=b(a.getState());if(e!==d){var g=d;d=e;c(e,g)}})};var eEa;_.vu=function(a,b,c){return _.gp({type:"REPLACE_ENTITY",payload:{entityPayload:c,entityType:a,key:b}})};
eEa=function(a){return _.gp({type:"REPLACE_ENTITIES",payload:a})};
_.Iu=function(a,b,c,d){return _.gp({type:"UPDATE_ENTITY",payload:{entityPayload:c,entityType:a,key:b,mergeOption:d}})};var ADa=function(a){var b=this;a=a===void 0?[]:a;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;a.forEach(function(c){b.append(c)})};
_.f=ADa.prototype;_.f.getLength=function(){return this.totalLength};
_.f.append=function(a){var b=this.arrays.length===0?!1:(b=this.arrays[this.arrays.length-1])&&b.buffer===a.buffer&&b.byteOffset+b.length===a.byteOffset;b?(b=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(b.buffer,b.byteOffset,b.length+a.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(a);this.totalLength+=a.length};
_.f.split=function(a){for(var b=new ADa,c=new ADa,d=_.h(this.arrays),e=d.next();!e.done;e=d.next())e=e.value,a>=e.length?(b.append(e),a-=e.length):a?(b.append(new Uint8Array(e.buffer,e.byteOffset,a)),c.append(new Uint8Array(e.buffer,e.byteOffset+a,e.length-a)),a=0):c.append(e);return{headView:b,tailView:c}};
_.f.isFocused=function(a){return a>=this.arrayPos&&a<this.arrayPos+this.arrays[this.arrayIdx].length};
_.f.focus=function(a){if(!this.isFocused(a))for(a<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=a&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
_.f.getDataView=function(a,b){a=a===void 0?0:a;b=b===void 0?-1:b;if(!this.totalLength||!b)return new DataView(new ArrayBuffer(0));b<0&&(b=this.totalLength-a);this.focus(a);if(!(a-this.arrayPos+b<=this.arrays[this.arrayIdx].length)){var c=this.arrayIdx,d=this.arrayPos;this.focus(a+b-1);d=new Uint8Array(this.arrayPos+this.arrays[this.arrayIdx].length-d);for(var e=0,g=c;g<=this.arrayIdx;g++)d.set(this.arrays[g],e),e+=this.arrays[g].length;this.arrays.splice(c,this.arrayIdx-c+1,d);this.arrayPos=this.arrayIdx=
0;this.focus(a)}c=this.arrays[this.arrayIdx];return new DataView(c.buffer,c.byteOffset+a-this.arrayPos,b)};
_.f.getUint8=function(a){this.focus(a);return this.arrays[this.arrayIdx][a-this.arrayPos]};(function(){var a=function(d){return new Uint8Array(d)},b=function(d){for(var e=new Uint8Array(d.length),g=0;g<d.length;g++)e[g]=d[g];
return e},c=new Uint8Array([1]);
return c.length===1&&c[0]===1?a:b})();
var uDa=Array(1024),tDa=window.TextDecoder?new TextDecoder:void 0,wDa=window.TextEncoder?new TextEncoder:void 0;var zDa=function(a){this.arrayView=a;this.pos=0;this.pendingTagAndType=-1},hp=function(a){var b=a.arrayView.getUint8(a.pos);
++a.pos;if(b<128)return b;for(var c=b&127,d=1;b>=128;)b=a.arrayView.getUint8(a.pos),++a.pos,d*=128,c+=(b&127)*d;return c},BDa=function(a,b){var c=a.pendingTagAndType;
for(a.pendingTagAndType=-1;a.pos+1<=a.arrayView.totalLength;){c<0&&(c=hp(a));var d=c>>3,e=c&7;if(d===b)return!0;if(d>b){a.pendingTagAndType=c;break}c=-1;switch(e){case 0:hp(a);break;case 1:a.pos+=8;break;case 2:d=hp(a);a.pos+=d;break;case 5:a.pos+=4}}return!1};var DDa=function(){this.pos=0;this.submessagePosStack=[];this.buf=yDa(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},kp=function(a,b){b=a.pos+b;
if(!(a.buf.length>=b)){for(var c=a.buf.length*2;c<b;)c*=2;a.buf=yDa(c,a.buf.subarray(0,a.pos));a.view=new DataView(a.buf.buffer,a.buf.byteOffset,a.buf.byteLength)}},jp=function(a,b){if(b>268435455){kp(a,4);
for(var c=b&1073741823,d=0;d<4;d++)a.view.setUint8(a.pos,c&127|128),c>>=7,a.pos+=1;b=Math.floor(b/268435456)}for(kp(a,4);b>127;)a.view.setUint8(a.pos,b&127|128),b>>=7,a.pos+=1;a.view.setUint8(a.pos,b);a.pos+=1};for(var EDa={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,dismissState:540,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,emojiCustomizationSetEntity:496,fakeChannel:2,
fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,likeButtonAnimationEntity:567,liveChatPollStateEntity:217,liveViewerLeaderboardChatEntryPointStateEntity:563,liveViewerLeaderboardPointsEntity:564,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,mainPlaylistDownloadStateEntity:373,
mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,musicShare:100,
musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,settingEntity:297,stringEntity:382,suggestedFeedbackChipStateEntity:485,transfer:120,
trendingOfferEntity:469,videoDownloadContextEntity:461,videoOverviewAsyncDataEntity:545,videoPlaybackPositionEntity:76,votingEntity:561,ytMainChannelEntity:152,youchatPendingResponseEntity:553,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},CDa={},LIb=_.h(Object.entries(EDa)),MIb=LIb.next();!MIb.done;MIb=LIb.next()){var NIb=_.h(MIb.value),OIb=NIb.next().value,PIb=NIb.next().value,QIb=OIb,RIb=PIb;RIb&&(CDa[RIb]=QIb)};var GDa=function(a,b){a=a===void 0?{}:a;switch(b.type){case "ENTITY_LOADED":return b.payload.reduce(function(d,e){var g,k=(g=e.options)==null?void 0:g.persistenceOption;if(k&&k!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&k!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return d;if(!e.entityKey)return _.Bl(Error("vf")),d;if(e.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!e.payload)return e=new _.qj("REPLACE entity mutation is missing a payload",{entityKey:e.entityKey}),_.Bl(e),d;var m=(0,_.yf.getAnyKey)(e.payload);
return IDa(d,m,e.entityKey,e.payload[m])}if(e.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{e=e.entityKey;try{var n=_.ip(e).entityType;m=IDa(d,n,e);break a}catch(u){if(u instanceof Error){e=new _.qj("Failed to deserialize entity key",{entityKey:e,originalMessage:u.message});_.Bl(e);m=d;break a}throw u;}m=void 0}return m}if(e.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!e.payload)return e=new _.qj("UPDATE entity mutation is missing a payload",{entityKey:e.entityKey}),_.Bl(e),d;m=(0,_.yf.getAnyKey)(e.payload);
var r,t;return JDa(d,m,e.entityKey,e.payload[m],(r=e.fieldMask)==null?void 0:(t=r.mergeOptions)==null?void 0:t.repeatedFieldsMergeOption)}return d},a);
case "REPLACE_ENTITY":var c=b.payload;return IDa(a,c.entityType,c.key,c.entityPayload);case "REPLACE_ENTITIES":return Object.keys(b.payload).reduce(function(d,e){var g=b.payload[e];return Object.keys(g).reduce(function(k,m){return IDa(k,e,m,g[m])},d)},a);
case "UPDATE_ENTITY":return c=b.payload,JDa(a,c.entityType,c.key,c.entityPayload,c.mergeOption);default:return a}};var KDa;var SIb=!1,xF,yF,zF,AF,BF,TIb=function(a){_.tg.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!SIb){var b,c=new Uint8Array(256),d=new Uint8Array(256);var e=1;for(b=0;b<256;b++)c[e]=b,d[b]=e,e^=e<<1^(e>>7&&283);xF=new Uint8Array(256);yF=np(256);zF=np(256);AF=np(256);BF=np(256);for(var g=0;g<256;g++){e=g?d[255^c[g]]:0;e^=e<<1^e<<2^e<<3^e<<4;e=e&255^e>>>8^99;xF[g]=e;b=e<<1^(e>>7&&283);var k=b^e;yF[g]=b<<24|e<<16|e<<8|k;zF[g]=k<<24|yF[g]>>>8;AF[g]=e<<24|zF[g]>>>
8;BF[g]=e<<24|AF[g]>>>8}SIb=!0}e=np(44);for(c=0;c<4;c++)e[c]=a[4*c]<<24|a[4*c+1]<<16|a[4*c+2]<<8|a[4*c+3];for(d=1;c<44;c++)a=e[c-1],c%4||(a=(xF[a>>16&255]^d)<<24|xF[a>>8&255]<<16|xF[a&255]<<8|xF[a>>>24],d=d<<1^(d>>7&&283)),e[c]=e[c-4]^a;this.key=e};
_.z(TIb,_.tg);
TIb.prototype.encrypt=function(a){var b=a.length;a=new Uint8Array(a.buffer.slice(a.byteOffset,a.byteOffset+b));for(var c=this.cipherBlock,d=0;d<b&&this.blockOffset<16;)a[d++]^=c[this.blockOffset++];for(var e=b-(b-d)%16;d<e;)UIb(this),a[d++]^=c[0],a[d++]^=c[1],a[d++]^=c[2],a[d++]^=c[3],a[d++]^=c[4],a[d++]^=c[5],a[d++]^=c[6],a[d++]^=c[7],a[d++]^=c[8],a[d++]^=c[9],a[d++]^=c[10],a[d++]^=c[11],a[d++]^=c[12],a[d++]^=c[13],a[d++]^=c[14],a[d++]^=c[15];if(d<b)for(UIb(this),this.blockOffset=0;d<b;)a[d++]^=
c[this.blockOffset++];return a};
var VIb=function(a,b){for(var c=0;c<4;c++)a.counter[c]=b[c*4]<<24|b[c*4+1]<<16|b[c*4+2]<<8|b[c*4+3];a.blockOffset=16},UIb=function(a){for(var b=a.key,c=a.counter[0]^b[0],d=a.counter[1]^b[1],e=a.counter[2]^b[2],g=a.counter[3]^b[3],k=3;k>=0&&!(a.counter[k]=-~a.counter[k]);k--);
for(var m,n,r=4;r<40;)k=yF[c>>>24]^zF[d>>16&255]^AF[e>>8&255]^BF[g&255]^b[r++],m=yF[d>>>24]^zF[e>>16&255]^AF[g>>8&255]^BF[c&255]^b[r++],n=yF[e>>>24]^zF[g>>16&255]^AF[c>>8&255]^BF[d&255]^b[r++],g=yF[g>>>24]^zF[c>>16&255]^AF[d>>8&255]^BF[e&255]^b[r++],c=k,d=m,e=n;a=a.cipherBlock;k=b[40];a[0]=xF[c>>>24]^k>>>24;a[1]=xF[d>>16&255]^k>>16&255;a[2]=xF[e>>8&255]^k>>8&255;a[3]=xF[g&255]^k&255;k=b[41];a[4]=xF[d>>>24]^k>>>24;a[5]=xF[e>>16&255]^k>>16&255;a[6]=xF[g>>8&255]^k>>8&255;a[7]=xF[c&255]^k&255;k=b[42];
a[8]=xF[e>>>24]^k>>>24;a[9]=xF[g>>16&255]^k>>16&255;a[10]=xF[c>>8&255]^k>>8&255;a[11]=xF[d&255]^k&255;k=b[43];a[12]=xF[g>>>24]^k>>>24;a[13]=xF[c>>16&255]^k>>16&255;a[14]=xF[d>>8&255]^k>>8&255;a[15]=xF[e&255]^k&255};var WIb=!1;(function(){var a=function(d){return new Uint8Array(d)},b=function(d){for(var e=new Uint8Array(d.length),g=0;g<d.length;g++)e[g]=d[g];
return e},c=new Uint8Array([1]);
return c.length===1&&c[0]===1?a:b})();
var CF;var XIb=function(a){this.JSC$10387_aesKey=a};
XIb.prototype.encrypt=function(a,b){var c=this,d,e;return _.l(function(g){if(g.nextAddress==1){a:{if(!WIb&&!_.Pj){if(CF){var k=CF;break a}CF=(k=window.crypto)==null?void 0:k.subtle;var m,n,r;if(((m=CF)==null?0:m.importKey)&&((n=CF)==null?0:n.sign)&&((r=CF)==null?0:r.encrypt)){k=CF;break a}CF=void 0}k=void 0}d=k;if(!d)return g.return(YIb(c,a,b));_.me(g,3);return _.p(g,ZIb(c,a,b,d),5)}if(g.nextAddress!=3)return g.return(g.yieldResult);e=_.re(g);_.Dl(e);WIb=!0;return g.return(YIb(c,a,b))})};
var ZIb=function(a,b,c,d){var e,g;return _.l(function(k){switch(k.nextAddress){case 1:if(a.cryptoKey){k.jumpTo(2);break}return _.p(k,d.importKey("raw",a.JSC$10387_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:a.cryptoKey=k.yieldResult;case 2:return e={name:"AES-CTR",counter:c,length:128},_.p(k,d.encrypt(e,a.cryptoKey,b),4);case 4:return g=k.yieldResult,k.return(new Uint8Array(g))}})},YIb=function(a,b,c){a.encryptorPolyfill||(a.encryptorPolyfill=new TIb(a.JSC$10387_aesKey));
VIb(a.encryptorPolyfill,c);return a.encryptorPolyfill.encrypt(b)},$Ib=function(a){this.JSC$10391_aesKey=a};
$Ib.prototype.encrypt=function(a,b){this.encryptor||(this.encryptor=new TIb(this.JSC$10391_aesKey));VIb(this.encryptor,b);return this.encryptor.encrypt(a)};var aJb={},NDa=Tj("yt-idb-pref-storage",{objectStores:(aJb.prefs={addedAtVersion:1},aJb),shared:!1,upgrade:function(a,b){b(1)&&Hk(Gk(a,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.DF=function(a){this.token=a};
_.DF.getInstance=function(){return _.l(function(a){return a.return(new Promise(function(b){_.Sj().then(function(c){c?(_.DF.instance||(_.DF.instance=new _.DF(c)),b(_.DF.instance)):b(void 0)})}))})};
_.DF.prototype.get=function(a){var b=this,c,d,e;return _.l(function(g){if(g.nextAddress==1)return _.p(g,ODa(b.token),2);if(g.nextAddress!=3)return c=g.yieldResult,_.p(g,c.get("prefs",a),3);d=g.yieldResult;if(!d)return g.return();e=(0,_.Uj)();return d.expirationTimestampMs<=e?g.return():g.return(d.value)})};
_.DF.prototype.set=function(a,b,c){c=c===void 0?31536E3:c;var d=this,e,g,k;return _.l(function(m){if(m.nextAddress==1)return e=(0,_.Uj)(),g={key:a,value:b,expirationTimestampMs:e+c*1E3},_.p(m,ODa(d.token),2);k=m.yieldResult;return _.p(m,k.put("prefs",g),0)})};
_.DF.prototype.remove=function(a){var b=this,c;return _.l(function(d){if(d.nextAddress==1)return _.p(d,ODa(b.token),2);c=d.yieldResult;return _.p(d,c.delete("prefs",a),0)})};var GF={},bJb=(GF.INVALID_ENCODER_VERSION="Invalid encoder version",GF.KEY_CREATION_FAILED="Failed to create encoder key",GF.UNKNOWN_DECODE_ERROR="Failed to decode PES data",GF.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",GF.WRONG_DATA_TYPE="Encoder cannot process the data type",GF),op=function(a,b){b=b===void 0?{}:b;_.qj.call(this,bJb[a],Object.assign({},{name:"PESEncoderError",type:a},b));this.type=a;this.level="WARNING";Object.setPrototypeOf(this,op.prototype)};
_.z(op,_.qj);var cJb=function(){},dJb=function(a,b,c){try{return a.encodeImpl(b,c)}catch(d){SDa(d,QDa)}},eJb=function(a,b,c){var d;
return _.l(function(e){if(e.nextAddress==1)return _.me(e,2),_.p(e,a.decodeAsyncImpl(b,c),4);if(e.nextAddress!=2)return e.return(e.yieldResult);d=_.re(e);SDa(d,RDa);_.se(e)})};
cJb.prototype.decodeAsyncImpl=function(a,b){return Promise.resolve(this.decodeImpl(a,b))};var HF=function(a,b){this.aesEncryptor=a;this.aesEncryptorAsync=b};
_.z(HF,cJb);HF.prototype.encodeImpl=function(a,b){b=TDa(b);a=(new TextEncoder).encode(JSON.stringify(a));return this.aesEncryptor.encrypt(a,b)};
HF.prototype.decodeImpl=function(a,b){if(!(a instanceof Uint8Array))throw PDa(1);var c=new TextDecoder;b=TDa(b);a=this.aesEncryptor.encrypt(a,b);return JSON.parse(c.decode(a))};
HF.prototype.decodeAsyncImpl=function(a,b){var c=this,d,e,g;return _.l(function(k){if(k.nextAddress==1){if(!(a instanceof Uint8Array))throw PDa(1);d=new TextDecoder;e=TDa(b);return _.p(k,c.aesEncryptorAsync.encrypt(a,e),2)}g=k.yieldResult;return k.return(JSON.parse(d.decode(g)))})};var UDa={accountLinkStatusEntity:WAb,booleanEntity:zAb,buttonEntity:rFb,captionTrack:wDb,channelHandle:ozb,commerceAcquisitionClientPayloadEntity:OFb,commerceCartListEntity:PFb,contextNoteFeedEntityPayload:vzb,continuationTokenEntity:gCb,downloadQualityPickerEntity:WBb,downloadsPageRefreshTokenEntity:YBb,downloadsPageViewConfigurationEntity:pCb,downloadStatusEntity:XBb,dismissState:eFb,sfvAudioItemCurrentlyPlayingEntity:bEb,emojiFountainDataEntity:oFb,emojiCustomizationSetEntity:nFb,fakeChannel:CAb,
fakePlaylist:DAb,fakePlaylistEntryCollection:EAb,fakeVideo:GAb,fakeVideoDescription:HAb,featuredProductsEntity:HCb,flowStateEntity:SAb,iconBadgeEntity:QFb,interstitialInteractionStateEntity:oBb,likeButtonAnimationEntity:qCb,liveChatPollStateEntity:wBb,liveViewerLeaderboardChatEntryPointStateEntity:KDb,liveViewerLeaderboardPointsEntity:LDb,liveReactionsDataEntity:pFb,logoEntity:lBb,macroMarkerEntity:rCb,mainDownloadsLibraryEntity:ZBb,mainDownloadsListEntity:$Bb,mainPlaylistDownloadStateEntity:bCb,
mainPlaylistEntity:hCb,mainPlaylistVideoEntity:iCb,mainVideoDownloadStateEntity:cCb,mainVideoEntity:mCb,markersEngagementPanelSyncEntity:sCb,markersVisibilityOverrideEntity:tCb,musicAlbumReleaseDetail:SCb,musicAlbumReleaseDownloadMetadataEntity:NCb,musicAlbumRelease:RCb,musicAlbumReleaseUserDetail:TCb,musicArtistDetail:VCb,musicArtist:UCb,musicArtistUserDetail:WCb,musicDownloadsLibraryEntity:OCb,musicLibraryEdit:XCb,musicLibraryStatusEntity:YCb,musicPlaylist:ZCb,musicPlaylistDownloadMetadataEntity:PCb,
musicShare:aDb,musicTrackDetail:cDb,musicTrackDownloadMetadataEntity:QCb,musicTrack:bDb,musicTrackUserDetail:dDb,offlineOrchestrationActionWrapperEntity:xDb,offlineVideoPolicy:yDb,offlineVideoStreams:zDb,offlineabilityEntity:dCb,orchestrationWebSamplingEntity:eCb,pageHeaderEntity:hFb,pdpStateEntity:RFb,pinnedProductEntity:ICb,playbackData:ADb,playerStateEntity:uCb,quantityIncrementerEntity:SFb,refresh:BDb,saveToPlaylistListEntity:wEb,settingEntity:PEb,stringEntity:AAb,suggestedFeedbackChipStateEntity:vCb,
transfer:CDb,trendingOfferEntity:JCb,videoDownloadContextEntity:DDb,videoOverviewAsyncDataEntity:pGb,videoPlaybackPositionEntity:uFb,votingEntity:jFb,ytMainChannelEntity:nCb,youchatPendingResponseEntity:wCb,ytMainDownloadedVideoEntity:fCb,ytMainVideoEntity:oCb};var fJb,hJb,up,bEa,cEa,kJb,mJb,lJb,jJb;fJb=function(a,b){this.JSC$10410_wrapped=a;this.JSC$10410_encoderRegistry=b;this.changedKeys={}};
hJb=function(a,b){a:{a=gJb(a.JSC$10410_encoderRegistry,b.version);try{var c=a.decodeImpl(b.data,b.key);break a}catch(d){SDa(d,RDa)}c=void 0}return c};
_.iJb=function(a,b,c){return a.JSC$10410_wrapped.objectStore("EntityStore").get(b).then(function(d){if(d){if(c&&d.entityType!==c)throw Error("wf");return hJb(a,d)}})};
up=function(a,b,c){return c?(c=c.map(function(d){return _.iJb(a,d,b)}),Fj.all(c)):a.JSC$10410_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(b)).then(function(d){return d.map(function(e){return hJb(a,e)})})};
_.aEa=function(a,b,c){var d=FDa(b),e=gJb(a.JSC$10410_encoderRegistry,1),g=Object.assign({},b);return a.JSC$10410_wrapped.objectStore("EntityStore").get(d).then(function(k){if(k){if(k.entityType!==c)throw Error("wf");g.entityMetadata||(k=hJb(a,k),g.entityMetadata=k.entityMetadata)}}).then(function(){var k={key:d,
entityType:c,data:dJb(e,g,d),version:1};return Fj.all([a.JSC$10410_wrapped.objectStore("EntityStore").put(k),jJb(a,g,c)])}).then(function(){kJb(a,d,c);
return d})};
bEa=function(a,b){var c=_.ip(b).entityType;return Fj.all([a.JSC$10410_wrapped.objectStore("EntityStore").delete(b),lJb(a,b)]).then(function(){kJb(a,b,c)})};
cEa=function(a,b,c,d){var e=gJb(a.JSC$10410_encoderRegistry,1);return _.iJb(a,b,d).then(function(g){if(g){g=sDa(g,c);var k={key:b,entityType:d,data:dJb(e,g,b),version:1};return Fj.all([a.JSC$10410_wrapped.objectStore("EntityStore").put(k),jJb(a,g,d)])}}).then(function(){kJb(a,b,d);
return b})};
kJb=function(a,b,c){var d=a.changedKeys[c];d||(d=new Set,a.changedKeys[c]=d);d.add(b)};
mJb=function(a,b,c){var d=FDa(b);c=VDa(c);if(!c)return Fj.resolve([]);c=new c(b);a=a.JSC$10410_wrapped.objectStore("EntityAssociationStore");b=[];c=_.h(c.getAssociations());for(var e=c.next();!e.done;e=c.next())b.push(a.put({parentEntityKey:d,childEntityKey:e.value}));return Fj.all(b).then(function(g){return g.map(function(k){return k[1]})})};
lJb=function(a,b){return a.JSC$10410_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(b))};
jJb=function(a,b,c){var d=FDa(b);return lJb(a,d).then(function(){return mJb(a,b,c)})};var nJb=function(){};
_.z(nJb,cJb);nJb.prototype.encodeImpl=function(a){return a};
nJb.prototype.decodeImpl=function(a){if(a instanceof Uint8Array)throw PDa(0);return a};var YDa=function(){this.cacheMap={};this.cacheMap[0]=new nJb;if(!_.x("aes_pes_encoder_killswitch")){var a=this.cacheMap;try{var b=_.oj();var c=TDa(b);var d=new HF(new $Ib(c),new XIb(c))}catch(e){throw a=e instanceof Error?new op("KEY_CREATION_FAILED",{originalMessage:e.message}):new op("KEY_CREATION_FAILED"),_.Bl(a),a;}a[1]=d}},gJb=function(a,b){b=b===void 0?0:b;
a=a.cacheMap[b];if(!a)throw b=new op("INVALID_ENCODER_VERSION",{encoderVersion:b}),_.Bl(b),b;return a};var rp=function(a,b){_.tg.call(this);this.token=a;this.JSC$10424_encoderRegistry=b;this.observers=[];a=new _.ja.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.oj());a.onmessage=this.handleMessage.bind(this);this.channel=a};
_.z(rp,_.tg);_.tp=function(a,b,c){var d,e,g,k;return _.l(function(m){if(m.nextAddress==1)return _.p(m,MDa(a.token),2);if(m.nextAddress!=3)return d=m.yieldResult,_.p(m,_.Mj(d,["EntityStore","EntityAssociationStore"],b,function(n){e=new fJb(n,a.JSC$10424_encoderRegistry);return c(e)}),3);
g=m.yieldResult;e&&(k=e.changedKeys,Object.keys(k).length>0&&(a.channel.postMessage(k),oJb(a,k)));return m.return(g)})};
rp.prototype.observe=function(a){var b=this;this.observers.push(a);return function(){var c=b.observers.indexOf(a);c>=0&&b.observers.splice(c,1)}};
var f5a=function(a){var b;return _.l(function(c){if(c.nextAddress==1)return _.p(c,_.tp(a,{mode:"readonly",enableRetries:!0},function(d){return d.JSC$10410_wrapped.objectStore("EntityStore").getAll()}),2);
b=c.yieldResult;return c.return(Promise.all(b.filter(function(d){return!!d}).map(function(d){var e,g;
return _.l(function(k){if(k.nextAddress==1){e=d.key;g=d.entityType;var m=eJb(gJb(a.JSC$10424_encoderRegistry,d.version),d.data,d.key);return _.p(k,m,2)}return k.return({key:e,entityType:g,data:k.yieldResult})})})))})};
rp.prototype.handleMessage=function(a){oJb(this,a.data)};
var oJb=function(a,b){a=_.h(a.observers);for(var c=a.next();!c.done;c=a.next())c=c.value,c(b)};
rp.prototype.disposeInternal=function(){this.channel.close()};
var WDa;var IF,qJb,$Ea,wEa;IF={};_.pJb=(IF.mainVideoEntity="mainVideoEntityActionMetadata",IF.mainPlaylistEntity="mainPlaylistEntityActionMetadata",IF.musicTrack="musicTrackEntityActionMetadata",IF.musicPlaylist="musicPlaylistEntityActionMetadata",IF);qJb=new _.fB("DOWNLOADS_ENTITY_TYPE_MAP");$Ea=_.lp("","downloadsPageViewConfigurationEntity");wEa=_.lp("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.cFa=_.lp("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.lp("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.lp("SMART_DOWNLOADS_ENABLED","settingEntity");_.lp("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var hEa=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var pEa=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var QEa={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var JF,NFa,zsb,Z2a;JF=window;_.Np=JF.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US";_.YFa=JF.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||_.Tp;NFa=JF.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||Fv;zsb=JF.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||ysb;_.rJb=JF.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||_.Prb;Z2a=JF.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||Srb;Rp({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 aGa=OFa(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(a){return a}}}),oXa=OFa(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(a){return a}}}),SFa=new Map;var cGa=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],XFa;var sJb=function(a){return _.gp({type:"SET_EPHEMERAL_ACTION",payload:a})};var tJb={ephemeralAction:null};var uJb={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:""};var yGa={sharedUi:function(a,b){a=a===void 0?uJb:a;switch(b.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},a,{animatedThumbnailEnabled:b.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},a,{inlinePreviewEnabled:b.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},a,{currentPageType:b.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},a,{currentPageSubType:b.payload});default:return a}},
a11y:nn({ephemeralAction:function(a,b){a=a===void 0?tJb.ephemeralAction:a;switch(b.type){case "SET_EPHEMERAL_ACTION":return b.payload;default:return a}}})};var rGa=nn({isLeaderTab:function(a,b){a=a===void 0?!0:a;switch(b.type){case "SET_IS_LEADER_TAB":var c,d;return(d=b==null?void 0:(c=b.payload)==null?void 0:c.isLeaderTab)!=null?d:a;default:return a}}});var vJb=function(a){return _.gp({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:a}})};var xGa=nn({isDesktopSmallWidth:function(a,b){switch(b.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return b.payload.isDesktopSmallWidth;default:return a===void 0?!1:a}},
isShortsActive:function(a,b){switch(b.type){case "SET_IS_SHORTS_ACTIVE":return b.payload.isShortsActive;default:return a===void 0?!1:a}},
isWatchWhileMode:function(a,b){switch(b.type){case "SET_IS_WATCH_WHILE_MODE":return b.payload.isWatchWhileMode;default:return a===void 0?!1:a}},
playerState:function(a,b){switch(b.type){case "SET_PLAYER_STATE":return b.payload.playerState;default:return a===void 0?-1:a}},
isFullscreen:function(a,b){switch(b.type){case "SET_IS_FULLSCREEN":return b.payload.isFullscreen;default:return a===void 0?!1:a}},
isSmallScreenSqueezeback:function(a,b){switch(b.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return b.payload.isSmallScreenSqueezeback;default:return a===void 0?!1:a}},
isShortsPipActive:function(a,b){switch(b.type){case "SET_IS_SHORTS_PIP_ACTIVE":return b.payload.isShortsPipActive;default:return a===void 0?!1:a}},
isPlaybackStarted:function(a,b){switch(b.type){case "SET_IS_PLAYBACK_STARTED":return b.payload.isPlaybackStarted;default:return a===void 0?!1:a}}});var iGa={playlistId:"",inviteLinkURL:""};var wJb={};var qGa=nn({continuationCommand:function(a,b){a=a===void 0?wJb:a;switch(b.type){case "SET_CONTINUATION_COMMAND":return b.payload.continuationCommand;default:return a}}});var AGa=function(){return function(a){return function(b){var c=a(b);_.ho(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[b],!0);return c}}};var xJb;xJb=new _.gq;_.gu=new _.fB("WATCH_PLAYER_PROMISE_TOKEN");_.yJb=new _.gq;_.zJb=new _.fB("SHORTS_PLAYER_PROMISE_TOKEN");_.mu=new _.fB("");var BGa=function(){return function(a){return function(b){b.type==="ENTITY_LOADED"&&_.v().resolve(_.gu).then(function(c){var d;(d=c.dispatchReduxAction)==null||d.call(c,b)});
return a(b)}}};var kGa={currentFormId:"",commandsMap:{}};var AJb={};var sGa=nn({additionalContext:function(a,b){switch(b.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var c;return(c=b.payload)!=null?c:"";default:return a===void 0?"":a}},
impersonatedChannelUrl:function(a,b){switch(b.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var c;return(c=b.payload)!=null?c:"";default:return a===void 0?"":a}},
selectedVideoIds:function(a,b){a=a===void 0?AJb:a;switch(b.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var c={};return Object.assign({},a,(c[b.payload]=!0,c));case "VIDEO_UNSELECTED":return b=b.payload,a=Object.assign({},a),delete a[b],a;default:return a}}});var tGa=nn({parentClickTrackingParams:function(a,b){switch(b.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return b.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return a===void 0?"":a}}});var BJb=function(a){return _.gp({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:a})};var CJb={};var uGa=nn({stepStates:function(a,b){a=a===void 0?CJb:a;switch(b.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var c=a,d=b.payload,e,g,k;a={};b={selectionStates:Object.assign({},(k=(e=c[d.stepId])==null?void 0:e.selectionStates)!=null?k:{},(a[d.token]={isSelected:d.isSelected},a)),userQuery:(g=c[d.stepId])==null?void 0:g.userQuery};e={};return Object.assign({},c,(e[d.stepId]=b,e));case "TALK_TO_RECS_UPDATE_USER_QUERY":return e=a,g=b.payload,k={selectionStates:Object.assign({},
(d=(c=e[g.stepId])==null?void 0:c.selectionStates)!=null?d:{}),userQuery:{userQuery:g.userQuery,token:g.userQueryToken}},c={},Object.assign({},e,(c[g.stepId]=k,c));default:return a}}});var DJb,EJb;DJb=function(a){return _.gp({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:a})};
EJb=function(a){return _.gp({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:a})};
_.Mw=function(a){return _.gp({type:"SET_CURRENT_PAGE_TYPE",payload:a})};
_.FJb=function(a){return _.gp({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:a})};var mGa={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"};_.GJb=function(a){return _.gp({type:"SET_PLAYER_STATE",payload:{playerState:a}})};var HJb=[],IJb={width:0,height:0};var vGa=nn({isTheaterMode:function(a,b){a=a===void 0?_.Gi("START_IN_THEATER_MODE"):a;switch(b.type){case "SET_IS_THEATER_MODE":return b.payload.isTheaterMode;default:return a}},
isWatchActive:function(a,b){switch(b.type){case "SET_IS_WATCH_ACTIVE":return b.payload.isWatchActive;default:return a===void 0?!1:a}},
isWatchFullscreen:function(a,b){switch(b.type){case "SET_IS_WATCH_FULLSCREEN":return b.payload.isWatchFullscreen;default:return a===void 0?!1:a}},
isWatchNarrowWidth:function(a,b){switch(b.type){case "SET_IS_WATCH_NARROW_WIDTH":return b.payload.isWatchNarrowWidth;default:return a===void 0?!1:a}},
isWatchRetroMode:function(a,b){switch(b.type){case "SET_IS_WATCH_RETRO_MODE":return b.payload.isWatchRetroMode;default:return a===void 0?!1:a}},
isLiveChatCollapsed:function(a,b){switch(b.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return b.payload.isLiveChatCollapsed;default:return a===void 0?!1:a}},
openEngagementPanels:function(a,b){a=a===void 0?HJb:a;var c=[].concat(_.Be(a));switch(b.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return c.push(b.payload.panelToAdd),c;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return c.splice(c.indexOf(b.payload.panelToRemove),1),c;default:return a}},
playerState:function(a,b){switch(b.type){case "SET_PLAYER_STATE":return b.payload.playerState;default:return a===void 0?-1:a}},
watchScrollTop:function(a,b){switch(b.type){case "SET_WATCH_SCROLL_TOP":return b.payload.watchScrollTop;default:return a===void 0?0:a}},
watchWindowSize:function(a,b){a=a===void 0?IJb:a;switch(b.type){case "SET_WATCH_WINDOW_SIZE":return b.payload.watchWindowSize;default:return a}}});var JJb={feedbackTokens:[]};var wGa=nn({surveyFeedbackData:function(a,b){a=a===void 0?JJb:a;switch(b.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return b.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},a,b.payload);default:return a}}});var oGa={};var DGa=void 0;_.x("web_enable_redux_store_on_demand")||(DGa=CGa());var KJb=function(a,b,c){var d=this;this.listId=a;this.JSC$10557_updateCallback=b;this.isOfflineVideoCallback=c;_.Yp().subscribe(function(){d.handleUpdate()})};
KJb.prototype.getPlaylistData=function(){var a=_.Yp().getState().entities;if(this.listId&&this.listId!=="PPSV"){var b=FEa(a,this.listId,!0),c=_.lp(this.listId,"mainPlaylistEntity"),d,e;a=a==null?void 0:(d=a.mainPlaylistEntity)==null?void 0:(e=d[c])==null?void 0:e.title;return EGa(b,a,this.listId)}b=_.qEa(hFa(a));a=_.qEa(_.Cp(a));return EGa(b.concat(a))};
KJb.prototype.getPlaylistId=function(){return this.listId};
KJb.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$10557_updateCallback(this.listId,this.getPlaylistData(),{})};var KF=function(a,b,c,d){d=d===void 0?[]:d;this.JSC$10560_playlistNetworkManager=a;this.listId=b;this.JSC$10560_updateCallback=c;this.videoIds=d;this.pendingUpdates=[];this.currentIndex=0};
KF.prototype.JSC$10560_setCurrentIndex=function(a){this.currentIndex=a};
KF.prototype.setListId=function(a){this.listId=a};
var LJb=function(a,b){a.currentCreateRequest&&a.currentCreateRequest.cancel(b);a.currentUpdateRequest&&a.currentUpdateRequest.cancel(b);a.currentRefreshRequest&&a.currentRefreshRequest.cancel(b)};
KF.prototype.delete=function(){LJb(this,"PROXY DELETED")};
KF.prototype.addVideos=function(a,b,c){var d=this;c!==void 0?this.videoIds.splice.apply(this.videoIds,[c,0].concat(_.Be(a))):this.videoIds.push.apply(this.videoIds,_.Be(a));this.listId||this.currentCreateRequest?(a.forEach(function(e,g){e={addedVideoId:e,action:"ACTION_ADD_VIDEO"};c&&(e.addedVideoPosition=c+g);d.pendingUpdates.push(e)}),LF(this)):MJb(this,b.onCreateListCommand)};
var NJb=function(a,b,c,d,e){Daa(a.videoIds,b,c);b>a.currentIndex&&c<=a.currentIndex?a.JSC$10560_setCurrentIndex(a.currentIndex+1):b===a.currentIndex?a.JSC$10560_setCurrentIndex(c):b<a.currentIndex&&c>=a.currentIndex&&a.JSC$10560_setCurrentIndex(a.currentIndex-1);a.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:d,movedSetVideoIdPredecessor:e});LF(a)},MJb=function(a,b){LJb(a,"OBSOLETE");
a.currentCreateRequest=OJb(a.JSC$10560_playlistNetworkManager,b,a.videoIds);_.Hz(a.currentCreateRequest,function(){a.currentCreateRequest=void 0}).then(function(c){a.setListId(c.playlistId);
a.pendingUpdates.length>0?LF(a):PJb(a)})},LF=function(a){if(a.pendingUpdates.length!==0&&(a.currentRefreshRequest&&a.currentRefreshRequest.cancel("OBSOLETE"),!a.currentUpdateRequest&&!a.currentCreateRequest)){var b=a.pendingUpdates.splice(0,a.pendingUpdates.length);
a.currentUpdateRequest=a.JSC$10560_playlistNetworkManager.updatePlaylist(a.listId,b);_.Hz(a.currentUpdateRequest,function(){a.currentUpdateRequest=void 0}).then(function(){a.pendingUpdates.length>0?LF(a):PJb(a)}).thenCatch(function(){a.pendingUpdates.unshift.apply(a.pendingUpdates,_.Be(b))})}},PJb=function(a){a.currentRefreshRequest=_.QJb(a.JSC$10560_playlistNetworkManager,a.listId,a.currentIndex,a.videoIds[a.currentIndex]);
_.Hz(a.currentRefreshRequest,function(){a.currentRefreshRequest=void 0}).then(function(b){a.JSC$10560_updateCallback(b.playlistId,b.playlistPanelRenderer,b.autoplayRenderer)})};
KF.prototype.size=function(){return this.videoIds.length};var RJb=function(a,b,c,d){d=d===void 0?[]:d;KF.call(this,a,b,c,d);this.JSC$10560_playlistNetworkManager=a;this.listId=b;this.JSC$10560_updateCallback=c;this.videoIds=d};
_.z(RJb,KF);_.MF=function(a,b,c,d,e,g,k){e=e===void 0?[]:e;k=k===void 0?oz:k;KF.call(this,a,b,c,e);this.JSC$10560_playlistNetworkManager=a;this.listId=b;this.JSC$10560_updateCallback=c;this.onAuthChange=d;this.videoIds=e;this.storage=g;this.cookieReader=k;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.at(_.zk,this.checkLoggedInStatusChange.bind(this),1E3)};
_.z(_.MF,KF);_.f=_.MF.prototype;_.f.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.at(_.zk,this.checkLoggedInStatusChange.bind(this),1E3)};
_.f.JSC$10560_setCurrentIndex=function(a){KF.prototype.JSC$10560_setCurrentIndex.call(this,a);this.store()};
_.f.delete=function(){_.zk.cancelJob(this.queueSapisIdJob);KF.prototype.delete.call(this)};
_.f.setListId=function(a){KF.prototype.setListId.call(this,a);this.store()};
_.f.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var SJb=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],TJb=["playerResponse","videoDetails"],UJb=["response","currentVideoEndpoint","watchEndpoint","videoId"],VJb=["response","currentVideoEndpoint","watchEndpoint","playlistId"],WJb=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],XJb=["response","contents","twoColumnWatchNextResults","playlist","playlist"],YJb=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
ZJb=["response","contents","twoColumnWatchNextResults"];var NF={},JGa=(NF.WEB_UNPLUGGED="^unplugged/",NF.WEB_UNPLUGGED_ONBOARDING="^unplugged/",NF.WEB_UNPLUGGED_OPS="^unplugged/",NF.WEB_UNPLUGGED_PUBLIC="^unplugged/",NF.WEB_CREATOR="^creator/",NF.WEB_KIDS="^kids/",NF.WEB_EXPERIMENTS="^experiments/",NF.WEB_MUSIC="^music/",NF.WEB_REMIX="^music/",NF.WEB_MUSIC_EMBEDDED_PLAYER="^music/",NF.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",NF);var iIa,OJb;iIa=function(a,b){this.networkManager=a;this.innertubeTransportService=b};
OJb=function(a,b,c){if(!_.y(b,_.RE))return _.Pn(Error("Af"));_.y(b,_.RE).videoIds=c;c={create_playlist_title:_.to("QUEUE",void 0,"Queue")};return HGa(_.St(a.innertubeTransportService,b,c),FGa)};
_.QJb=function(a,b,c,d){b={videoId:d,playlistId:b,playlistIndex:c};c=_.Zp(bIb);return HGa(_.OF(a.innertubeTransportService,b,c),IGa)};
iIa.prototype.updatePlaylist=function(a,b){return HGa(_.St(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:a,actions:b}}),GGa)};var PF=function(a){this.storage=a},$Jb;
PF.prototype.store=function(a,b){b=b===void 0?0:b;if(this.storage&&a.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",a),this.storage.set("TLPQindex",String(b)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(c){}};
PF.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
PF.prototype.getPlaylistId=function(){if(!this.storage)return null;var a=null;try{a=this.storage.get("TLPQplaylist")}catch(b){}return a};
PF.prototype.getIndex=function(){if(this.storage){try{var a=this.storage.get("TLPQindex")}catch(b){}a=Number(a);if(!isNaN(a))return a}};var NGa=["navigationEndpoint","watchEndpoint","videoId"],MGa=["nextButtonVideo","watchEndpoint","videoId"];_.wq=new _.fB("NETWORK_TOKEN");_.$t=new _.fB("PAGE_TOKEN");_.QF=new _.fB("PLAYLIST_TOKEN");var aKb;aKb=new _.fB("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.xq=new _.fB("INNERTUBE_TRANSPORT_TOKEN");var bKb,RF,dKb,eKb,gKb,hKb;bKb=new Set(["ci","cr","carml"]);RF=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$10607_parkedJobs=new Map;this.parkedProcessors=new Map};
_.SF=function(){RF.instance||(RF.instance=new RF);return RF.instance};
RF.prototype.onAny=function(a){return _.cKb(this,a,2)};
RF.prototype.parkOrScheduleJob=function(a,b,c,d,e){_.TF(this,c)?_.Lw().addJob(a,b,d):(e&&(a=dKb(a),eKb(this,a,b,c,e)),e=this.JSC$10607_parkedJobs.get(c),e||(this.JSC$10607_parkedJobs.set(c,[]),e=this.JSC$10607_parkedJobs.get(c)),e.push({job:a,priority:b,delay:d}))};
RF.prototype.addListener=function(a,b,c){c&&(b=dKb(b),eKb(this,b,0,a,c));c=this.parkedProcessors.get(a);c||(this.parkedProcessors.set(a,[]),c=this.parkedProcessors.get(a));c.push(b)};
RF.prototype.processSignal=function(a){if(!_.TF(this,a)){this.inProgressSignals.add(a);var b=this.JSC$10607_parkedJobs.get(a);if(b){b=_.h(b);for(var c=b.next();!c.done;c=b.next())c=c.value,_.Lw().addJob(c.job,c.priority,c.delay);this.JSC$10607_parkedJobs.delete(a)}if(b=this.parkedProcessors.get(a)){b=_.h(b);for(c=b.next();!c.done;c=b.next())c=c.value,c();this.parkedProcessors.delete(a)}this.signals.push(a);this.inProgressSignals.delete(a)}};
_.TF=function(a,b){return bKb.has(b)||_.Gi("IS_HOMEPAGE_COLD")||_.Gi("IS_RESULTS_PAGE_COLD")||_.Gi("IS_WATCH_PAGE_COLD")?a.signals.indexOf(b)>=0:!0};
dKb=function(a){var b=!1;return function(){b||(b=!0,a())}};
eKb=function(a,b,c,d,e){if(fKb.has(d))_.Lw().addJob(b,c,e);else{var g=a.compoundSignals.get(d);g&&_.Lw().addJob(function(){_.TF(a,d)||(g.isTimeoutConditionSatisfied?_.Lw().addJob(b,c):g.timeoutConditionObservers.push(function(){_.Lw().addJob(b,c)}))},c,e)}};
_.cKb=function(a,b,c){if(b.length>1){var d=[],e=Object.create(null);b=_.h(b);for(var g=b.next();!g.done;g=b.next())g=g.value,e[g]||(d.push(g),e[g]=!0);b=d}if(b.length===1)return b[0];g=b;d="";e=c===2?"|":"&";g.sort();g=_.h(g);for(var k=g.next();!k.done;k=g.next())d+=k.value+e;if(!a.compoundSignals.get(d)){e=0;g=[];k=_.h(b);for(var m=k.next();!m.done;m=k.next())m=m.value,e++,_.TF(a,m)||g.push(m);(c=c===2)&&e>g.length||!c&&!g.length?a.signals.push(d):gKb(a,d,c,b,g)}return d};
gKb=function(a,b,c,d,e){var g=e.length,k=function(){c||--g===0?a.processSignal(b):hKb(a,b)};
e=_.h(e);for(var m=e.next();!m.done;m=e.next())a.addListener(m.value,k);a.compoundSignals.set(b,{signals:d,isOnAny:c,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});hKb(a,b)};
hKb=function(a,b){if(!_.TF(a,b)){var c=a.compoundSignals.get(b);if(c&&!c.isTimeoutConditionSatisfied){for(var d=!1,e=0,g=0,k=_.h(c.signals),m=k.next();!m.done;m=k.next()){var n=m.value;m=!_.TF(a,n);fKb.has(n)?d=!0:(n=a.compoundSignals.get(n))?m&&!n.isTimeoutConditionSatisfied&&(g++,c.isInitialized||n.timeoutConditionObservers.push(function(){hKb(a,b)})):m&&e++}c.isInitialized=!0;
c.isOnAny?d&&(c.isTimeoutConditionSatisfied=!0):e===0&&g===0&&(c.isTimeoutConditionSatisfied=!0);if(c.isTimeoutConditionSatisfied)for(c=_.h(c.timeoutConditionObservers),d=c.next();!d.done;d=c.next())d=d.value,d()}}};
RF.prototype.processSignal=RF.prototype.processSignal;RF.prototype.parkOrScheduleJob=RF.prototype.parkOrScheduleJob;RF.prototype.onAny=RF.prototype.onAny;_.Rj("ytsignals.getInstance",_.SF);RF.prototype.onAny=RF.prototype.onAny;RF.prototype.parkOrScheduleJob=RF.prototype.parkOrScheduleJob;RF.prototype.processSignal=RF.prototype.processSignal;var fKb=new Set(["eop","eocs","dl","pcl"]);_.Vw=new _.fB("MINIPLAYER_SERVICE");var UF,iKb,jKb;UF=function(a,b,c){var d=_.Nl.getInstance();if(!$Jb){var e=new Roa;var g=void 0,k=_.Ei("ID_TOKEN");k&&e.isAvailable()&&(g=new uj(e,"yt-queue"+k));$Jb=new PF(g)}e=$Jb;g=_.SF();this.JSC$10614_actionRouter=d;this.pageManager=a;this.playlistManager=b;this.JSC$10614_playlistNetworkManager=c;this.storage=e;this.signals=g;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.VF=function(){if(!iKb){var a=_.v(),b=a.resolve(_.Wi(_.$t)),c=a.resolve(_.Wi(_.wq)),d=a.resolve(_.Wi(_.QF));a=a.resolve(_.xq);iKb=new UF(b,d,new iIa(c,a))}return iKb};
jKb=function(a,b,c){if(c){var d;if(((d=a.responsePlaylistData)==null?void 0:d.playlistId)!==c)return}a.responsePlaylistData&&(c=TGa(b,a.responsePlaylistData),a.responsePlaylistData=(0,_.yf.unsafeClone)(a.responsePlaylistData),VGa(a.responsePlaylistData,c));c=a.temporaryItems.findIndex(function(e){return e.videoId===b});
c>-1&&a.temporaryItems.splice(c,1);_.WF(a,_.XF(a,a.response?a.response.autoplayRenderer:void 0))};
_.kKb=function(a,b){if(a.responsePlaylistData){var c=UGa(b,a.responsePlaylistData);VGa(a.responsePlaylistData,c);if(a.queueProxy){var d=a.queueProxy;c<0||(d.videoIds.splice(c,1),c<d.currentIndex&&d.JSC$10560_setCurrentIndex(d.currentIndex-1),d.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:b}),LF(d))}}_.WF(a,_.XF(a,a.response?a.response.autoplayRenderer:void 0))};
UF.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.WF(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
UF.prototype.setPlaylistData=function(a,b,c){this.temporaryItems=[];this.listId=a;this.responsePlaylistData=b;_.WF(this,_.XF(this,c))};
var lKb=function(a){return(a==null?0:a.playlistId)?a.playlistId:"PPSV"},mKb=function(a){return a&&a.playlistId?a.playlistId==="PPSV"?!0:DEa(_.Yp().getState().entities,a.playlistId):!1};
UF.prototype.isPlayingOfflineVideo=function(){return this.response?mKb(this.response):!1};
UF.prototype.closeMiniplayer=function(a){var b=this.queueProxy&&this.queueProxy.size()<=1,c=_.v().resolve(_.Vw);if(!this.queueProxy||b)this.queueProxy&&this.clearQueue(),c.close(!0);else{c.pipController.getWindow()&&window.focus();b=this.responsePlaylistData;var d=this.temporaryItems.length+(b&&b.contents?b.contents.length:0);b=_.to("QUEUE_CLEARED_UNPLURALIZED")||_.uo("QUEUE_CLEARED",d);b=_.aq(b);c=_.to("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");d=_.to("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.uo("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",d);var e=_.to("MINIPLAYER_CLOSE",void 0,"Close"),g=_.to("CANCEL",void 0,"Cancel");_.NB(this.JSC$10614_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.Up(c),dialogMessages:[_.Up(d)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Up(e),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
b]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Up(g)}}}}}}],a)}};
_.XF=function(a,b){var c={},d=a.response;c.autoplayRenderer=b;if(!a.responsePlaylistData&&!a.temporaryItems.length)return!d||!d.hasRelatedVideoData&&_.x("kevlar_prefetch_data_augments_network_data")||(c.playerData={rvs:d.relatedVideoArgs,endScreenRenderer:d.endScreenRenderer}),c;c.playerData={};if(a.index===void 0)return _.Bl(Error("Cf")),c;c.panel=a.responsePlaylistData?(0,_.yf.unsafeClone)(a.responsePlaylistData):{titleText:_.Up(_.to("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
b=c.panel;if(b.contents)for(var e=_.h(a.temporaryItems),g=e.next();!g.done;g=e.next())b.contents.push({playlistPanelVideoRenderer:g.value});a.queueProxy&&d&&d.playingVideo&&d.playingVideoId&&!SGa(d.playingVideoId,c.panel)&&(b=d.playingVideo,e=c.panel,g=a.index,e.contents&&e.contents.splice(g===void 0?0:g,0,{playlistPanelVideoRenderer:b}));d&&d.playingVideoId&&(b=a.index,e=c.panel,b=!e.contents||b>=e.contents.length?void 0:e.contents[b].playlistPanelVideoRenderer,b&&b.videoId===d.playingVideoId||(b=
TGa(d.playingVideoId,c.panel),a.index=b!==-1?b:a.index?a.index-1:0));b=RGa(a.index+1,c.panel);e=void 0;a.index>0&&(e=RGa(a.index-1,c.panel));if(e||b)c.autoplayRenderer=OGa(b,e,c.autoplayRenderer);!b&&(d==null?0:d.relatedVideoArgs)&&(c.playerData.rvs=d.relatedVideoArgs);d=d?d.playlistIndexOffset:0;a.queueProxy?YGa(c.panel,a.index,d,QGa,!0,!0,!0):YGa(c.panel,a.index,d);c.playerData.playlistPanelRenderer=c.panel;return c};
UF.prototype.openToast=function(a){_.v().resolve(_.Vw).openToast(a,_.to("ADDED_TO_QUEUE",void 0,"Added to queue"))};
UF.prototype.isMiniplayerActive=function(){return _.v().resolve(_.Vw).isMiniplayerActive()};
_.WF=function(a,b){a.playlistManager.setAutoplayRenderer(b.autoplayRenderer||null);a.playlistManager.setPlaylistData(b.panel||null);b.playerData&&a.playlistManager.setPlayerPlaybackControlData(b.playerData)};var nKb={},oKb={},pKb={},qKb={},rKb={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:(nKb.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",nKb),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:(oKb.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",oKb),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:(pKb.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",pKb),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:(qKb.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",qKb),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 CHa=[{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:rKb},{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:rKb}}];var YF;YF=function(a,b,c){this.methodCodeName=a;this.isAsync=b;this.attestationOffset=c};
_.PHa=[new YF("b.f_",!1,0),new YF("j.s_",!1,2),new YF("r.s_",!1,4),new YF("e.h_",!1,6),new YF("i.s_",!0,8),new YF("s.t_",!1,10),new YF("p.h_",!1,12),new YF("s.i_",!1,14),new YF("f.i_",!1,16),new YF("a.b_",!1,18),new YF("a.o_",!1),new YF("g.o_",!1,22),new YF("p.i_",!1,24),new YF("p.m_",!1),new YF("n.k_",!0,20),new YF("i.f_",!1),new YF("a.s_",!0),new YF("m.c_",!1),new YF("n.h_",!1,26),new YF("o.p_",!1)].reduce(function(a,b){a[b.methodCodeName]=b;return a},{});var xHa,bHa,kHa,eHa,hHa,sHa,zHa,BHa,ZF;xHa=2;bHa=2;kHa=2;eHa=2;hHa=2;sHa=2;zHa=2;BHa=["Z2xvYmFsQ2FsbGJhY2tz","b25BYm5vcm1hbGl0eURldGVjdGVk","b25BZFNraXA=","cmF3X3BsYXllcl9yZXNwb25zZQ=="];ZF={};_.tKb=(ZF["b.f_"]=function(){return _.l(function(a){return a.nextAddress==1?_.p(a,(_.GBa()!==void 0?_.Pn(Error("pf")):_.wBa()).then(function(){return 1},function(b){if(b.message==="Biscotti id is disabled")return 3;
_.Dl("Failed fetching bid");return 0}),2):a.return(a.yieldResult)})},ZF["j.s_"]=qHa,ZF["r.s_"]=oHa,ZF["e.h_"]=tHa,ZF["n.h_"]=function(){return HHa(GHa([{id:"player-ads",
classes:["ytd-merch-shelf-renderer","ytp-featured-product"]}]))},ZF["i.s_"]=rHa,ZF["p.h_"]=function(){return 2},ZF["s.t_"]=function(){return xHa},ZF["s.i_"]=yHa,ZF["f.i_"]=dHa,ZF["a.b_"]=mHa,ZF["a.o_"]=wHa,ZF["g.o_"]=vHa,ZF["p.i_"]=uHa,ZF["p.m_"]=gHa,ZF["n.k_"]=function(){return _.Ei("NKDSTAT",2)},ZF["i.f_"]=jHa,ZF["a.s_"]=function(){return _.Ei("ASDSTAT",2)},ZF["m.c_"]=function(){return 2},ZF["o.p_"]=function(){for(var a=[],b=0,c=0;c<BHa.length;c++)a[c]=BHa[c],b++;
a[b]="d2ViX3BsYXlsaXN0X3F1ZXVlX211bHRpcGxlX3NraXBzX2tz";return AHa(a)},ZF);var uKb,vKb,wKb;uKb=function(){this.ongoingFlowNonces=new Map};
_.jq=function(){vKb||(vKb=new uKb);return vKb};
_.hq=function(a,b,c){return{eventType:{flowEventNamespace:a,flowEventType:b},metadata:c,statusCode:void 0,csn:void 0,can:void 0}};
_.RHa=function(a,b){var c=_.jq(),d=wKb(c,b,!0);_.iq(c,a,b,d)};
_.iq=function(a,b,c,d){a={flowNonce:d||wKb(a,c),flowType:c,flowEventType:b.eventType};b.metadata&&(a.flowMetadata=b.metadata);b.statusCode!==void 0&&(a.flowEventStatus=b.statusCode);b.csn&&(a.csn=b.csn);b.can&&(a.can=b.can);_.zl("flowEvent",a,void 0)};
wKb=function(a,b,c){c=c===void 0?!1:c;var d=a.ongoingFlowNonces.get(b);if(!d||c)d=Cn(16),a.ongoingFlowNonces.set(b,d);return d};var SHa=function(){};
SHa.prototype.flush=function(a,b){a=a===void 0?[]:a;b=b===void 0?!1:b;if(_.x("enable_client_streamz_web")){a=_.h(a);for(var c=a.next();!c.done;c=a.next())c=beb(c.value),c={serializedIncrementBatch:_.wc(c.JSC$7459_serializeBinary())},_.zl("streamzIncremented",c,{sendIsolatedPayload:b})}};var nq;var $F=function(a,b,c,d,e,g,k){c=c===void 0?!1:c;d=d===void 0?!1:d;g=g===void 0?_.VF():g;this.hasRun=!1;this.JSC$10671_playerPromiseResolver=a;this.playerProvider=b;this.JSC$10671_miniplayerActive=c;this.fromHistory=d;this.previousVideoId=e;this.JSC$10671_playlistController=g;this.tempData=k;this.JSC$10671_enforcementCounter=new _.Xgb};
_.z($F,dF);$F.prototype.validate=function(a){return!(!a.data.playerResponse||a.data.page!=="watch"&&a.data.page!=="shorts"||this.hasRun)};
$F.prototype.handle=function(a){var b=this,c=_.y(a.endpoint,_.Vn),d=_.y(a.endpoint,_.tq);if(_.x("kevlar_continue_playback_without_player_response")&&(c==null?0:c.videoId)&&this.previousVideoId&&(c==null?void 0:c.videoId)===this.previousVideoId&&(c==null?0:c.continuePlayback)&&!this.fromHistory)this.JSC$10671_playerPromiseResolver.resolve();else{var e={};c?e.watch_endpoint=c:d&&(e.watch_endpoint=d,d.endTimeSeconds&&(e.end=d.endTimeSeconds));a.data.page==="watch"?(a.data.filler||this.JSC$10671_miniplayerActive||
(_.Ko("cfg"),_.Nl.getInstance().triggerAction("yt-start-loading-watch")),Object.assign(e,xKb(this,a.endpoint)),_.x("enable_masthead_quartile_ping_fix")&&Object.assign(e,yKb(this)),c=!_.x("web_honor_cache_for_back")&&this.fromHistory?{cached_load:!0}:void 0,Object.assign(e,c),a.data.forceExternalPlaylist&&(e.external_list=!0)):a.data.page==="shorts"&&_.Nl.getInstance().triggerAction("yt-start-loading-shorts");if(c=this.playerProvider()){try{c.loadVideoWithPlayerResponse(a.data.playerResponse,e),c.getPlayerPromise().then(this.JSC$10671_playerPromiseResolver.resolve)}catch(g){_.Bl(g),
this.JSC$10671_playerPromiseResolver.resolve()}this.hasRun=!0;c.getPlayerPromise().then(function(g){g.addEventListener("onAbnormalityDetected",function(){var k=a.data.playerResponse,m=g.getVideoData().cpn;zHa=0;_.sKb=m;if(m=OHa(k))b.JSC$10671_enforcementCounter.increment("IN_PLAYER"),_.kq(5),_.x("ab_st_vid_ks")?g.pauseVideo(!0):g.stopVideo(),k.playabilityStatus=Object.assign({},k.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:m}}),k.videoDetails=void 0,_.Nl.getInstance().triggerOptionalAction("yt-updated-playability-status",
k.playabilityStatus)})})}else _.Dl(Error("Ff"))}};
var xKb=function(a,b){var c=_.y(b,_.Vn);if(b&&c&&c.playlistId&&c.videoId&&(a=a.JSC$10671_playlistController,a.queueProxy?(a=a.queueProxy,c=a.listId===c.playlistId?a.attributionData.get(c.videoId):void 0):c=void 0,c))return{queue_info:c}},yKb=function(a){var b;
if((b=a.tempData)==null?0:b.adpings)return{adpings:a.tempData.adpings}};var aG=function(a,b,c){this.hasRun=!1;this.JSC$10684_playerPromiseResolver=a;this.pageRequest=b;this.JSC$10684_playlistController=c};
_.z(aG,dF);aG.prototype.validate=function(a){return!!_.yf.getValueByKeys.apply(null,[a.data].concat(_.Be(ZJb)))};
aG.prototype.handle=function(a){var b=this;this.JSC$10684_playerPromiseResolver.promise.then(function(){var c=a.data;var d=_.yf.getValueByKeys.apply(null,[c].concat(_.Be(SJb))),e=_.yf.getValueByKeys.apply(null,[c].concat(_.Be(XJb))),g=_.yf.getValueByKeys.apply(null,[c].concat(_.Be(UJb)));var k=(k=_.yf.getValueByKeys.apply(null,[c].concat(_.Be(TJb))))?{videoId:k.videoId,thumbnail:k.thumbnail,title:k.title?_.Up(k.title):void 0,shortBylineText:k.author?_.Up(k.author):void 0}:void 0;var m=void 0;_.x("web_get_playlist_id_from_current_endpoint_ks")||
(m=_.yf.getValueByKeys.apply(null,[c].concat(_.Be(VJb))));var n=_.yf.getValueByKeys.apply(null,[c].concat(_.Be(YJb))),r=_.yf.getValueByKeys.apply(null,[c].concat(_.Be(WJb))),t=!!n||!!r&&!!r.results&&r.results.length>0,u=0;e&&e.currentIndex&&e.localCurrentIndex&&(u=e.currentIndex-e.localCurrentIndex);e&&e.playlistId&&(m=e.playlistId);c={rawResponse:c,autoplayRenderer:d,hasRelatedVideoData:t,playingVideo:k,playingVideoId:g,playlistPanelRenderer:e,playlistId:m,playlistIndex:e&&e.currentIndex,relatedVideoArgs:n,
endScreenRenderer:r,playlistIndexOffset:u};a:{d=b.JSC$10684_playlistController;e=b.pageRequest;d.response=c;if(mKb(c))d.downloadPlaylistProxy&&d.downloadPlaylistProxy.getPlaylistId()===lKb(c)||(d.downloadPlaylistProxy=new KJb(lKb(c),d.setPlaylistData.bind(d),d.isPlayingOfflineVideo.bind(d))),d.responsePlaylistData=d.downloadPlaylistProxy.getPlaylistData(),d.listId=lKb(c),d.index=0;else if(c.playlistPanelRenderer&&c.playlistId&&c.autoplayRenderer)c.playlistId.startsWith("TLPQ")?d.queueProxy?d.listId===
c.playlistId?(d.index=c.playlistIndex,d.responsePlaylistData=c.playlistPanelRenderer,d.queueProxy.JSC$10560_setCurrentIndex(d.index)):c.playingVideoId&&d.index!==void 0&&e.clientParams.autoSaveToQueue&&(d.index+=1,d.queueProxy.JSC$10560_setCurrentIndex(d.index),d.queueProxy.addVideos([c.playingVideoId],{},d.index)):(d.queueProxy=new _.MF(d.JSC$10614_playlistNetworkManager,c.playlistId,d.setPlaylistData.bind(d),d.clearQueue.bind(d),_.WGa(c.playlistPanelRenderer),d.storage),d.responsePlaylistData=c.playlistPanelRenderer,
d.listId=c.playlistId,d.index=c.playlistIndex):(d.index=c.playlistIndex,d.listId!==c.playlistId&&d.clearQueue(),d.responsePlaylistData=c.playlistPanelRenderer,d.listId=c.playlistId,d.playlistProxy=new RJb(d.JSC$10614_playlistNetworkManager,c.playlistId,d.setPlaylistData.bind(d),_.WGa(c.playlistPanelRenderer)));else if(!d.queueProxy)d.responsePlaylistData=void 0;else if(c.playingVideoId&&e.clientParams.autoSaveToQueue){if(d.index===void 0){_.Bl(Error("Bf"));d.clearQueue();break a}d.queueProxy.videoIds.includes(c.playingVideoId)||
(d.index+=1,d.queueProxy.JSC$10560_setCurrentIndex(d.index),d.queueProxy.addVideos([c.playingVideoId],{},d.index))}_.WF(d,_.XF(d,d.response.autoplayRenderer))}})};var zKb=function(a,b){b=b===void 0?_.VF():b;sF.call(this);this.chunkProcessors.push(new aG(this.JSC$10311_playerPromiseResolver,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},b));this.chunkProcessors.push(new $F(this.JSC$10311_playerPromiseResolver,a,!1,!1));_.x("web_response_commands_chunk_processor")&&this.chunkProcessors.push(new tF)};
_.z(zKb,sF);zKb.prototype.processChunk=function(a){a&&a.data.player===void 0&&this.JSC$10311_playerPromiseResolver.resolve();sF.prototype.processChunk.call(this,a)};var bG=function(a,b){a=a===void 0?{layer:0}:a;this.hasRun=!1;this.createScreenConfig=a;this.parentOverride=b};
_.z(bG,dF);bG.prototype.validate=function(a){return!(this.hasRun||!a.endpoint)};
bG.prototype.handle=function(a){var b=_.ms(),c,d,e=(d=_.y((c=a.endpoint)==null?void 0:c.commandMetadata,_.ao))==null?void 0:d.rootVe;this.parentOverride&&e?_.mF(b,e,this.parentOverride,this.createScreenConfig):vIb(b,a.endpoint,this.createScreenConfig);this.hasRun=!0};var cG=function(a,b){this.hasRun=!1;this.JSC$10695_chunkHandler=a;this.previousVideoId=b};
_.z(cG,dF);cG.prototype.validate=function(a){return _.x("kevlar_continue_playback_without_player_response")&&(a=_.y(a.endpoint,_.Vn),(a==null?0:a.videoId)&&this.previousVideoId&&(a==null?void 0:a.videoId)===this.previousVideoId&&(a==null?0:a.continuePlayback))?!1:this.JSC$10695_chunkHandler.chunksProcessed===0};
cG.prototype.handle=function(a){_.Nl.getInstance().triggerAction("yt-stop-old-player",a.data,!0)};var AKb=function(a){a=a===void 0?{layer:0}:a;sF.call(this);this.chunkProcessors.push(new cG(this));this.chunkProcessors.push(new bG(a));this.chunkProcessors.push(new rF(a))};
_.z(AKb,sF);var BKb=function(){this.hasRun=this.hasRun=!1};
_.z(BKb,dF);BKb.prototype.validate=function(a){return!this.hasRun&&!(!a.data.csn||!a.data.rootVe)};
BKb.prototype.handle=function(a){this.hasRun=!0;_.XAa(a.data.csn,a.data.rootVe,3)};var CKb=function(){dF.apply(this,arguments)};
_.z(CKb,dF);CKb.prototype.validate=function(a){return!!a.data.preconnect};
CKb.prototype.handle=function(a){_.Jo("bc");a=_.h(a.data.preconnect);for(var b=a.next();!b.done;b=a.next())b=b.value,(new Image).src=b};var DKb=function(a,b,c){c=c===void 0?{layer:0}:c;sF.call(this);this.chunkProcessors.push(new $F(this.JSC$10311_playerPromiseResolver,a));this.chunkProcessors.push(new bG(c));this.chunkProcessors.push(new rF(c))};
_.z(DKb,sF);var EKb=function(a,b,c,d,e){c=c===void 0?{layer:0}:c;d=d===void 0?_.VF():d;sF.call(this);var g=!!b&&!!b.clientParams&&!!b.clientParams.miniplayer;g&&this.chunkProcessors.push(new BKb);this.chunkProcessors.push(new aG(this.JSC$10311_playerPromiseResolver,b,d));this.chunkProcessors.push(new CKb);var k,m;this.chunkProcessors.push(new $F(this.JSC$10311_playerPromiseResolver,a,g,!((k=b.clientParams)==null||!k.fromHistory),(m=b.clientParams)==null?void 0:m.previousVideoId,d,b.tempData));var n;this.chunkProcessors.push(new cG(this,
(n=b.clientParams)==null?void 0:n.previousVideoId));var r;(r=b.clientParams)!=null&&r.fromHistory||(c.layer||(c=Object.assign({},c,{layer:g?3:0})),this.chunkProcessors.push(new bG(c,e)),this.chunkProcessors.push(new rF(c)));_.x("web_response_commands_chunk_processor")&&this.chunkProcessors.push(new tF)};
_.z(EKb,sF);var dG,HKb;dG={};
_.FKb=(dG["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},dG["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},dG["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},dG["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},dG["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},dG["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},dG["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},dG);_.eG=new _.Ek("yt-edu");_.GKb=function(){this.JSC$10711_eduDisplayedThisLoad_={}};
HKb=function(a){var b=_.GKb.getInstance();var c=_.$i("kevlar_tooltip_impression_cap");b=c&&parseInt(_.eG.get(a+"-impression")||0,10)>=c||_.eG.get(a+"-dismissed")?!1:(c=_.FKb[a])&&!b.JSC$10711_eduDisplayedThisLoad_[c.setKey||a]&&(c.titleText&&_.to(c.titleText)||c.bodyText&&_.to(c.bodyText))?!0:!1;if(!b)return null;b=_.FKb[a];if(!b)return null;c=b.bodyText?_.to(b.bodyText):void 0;var d=b.titleText?_.to(b.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:b.position,popup:{bubbleHintRenderer:{text:d?
_.Up(d):void 0,detailsText:c?_.Up(c):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Up(_.to("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:a}}]}}}}}}}},{eduImpressionAction:{key:a}}]};
_.lx(_.GKb);var THa=!1;var XHa={UNKNOWN:"unknown",BROWSE:"browse",WATCH:"watch",SEARCH:"search",ACCOUNTS:"accounts",SETTINGS:"settings",WELCOME:"welcome",ACCOUNT_SELECTOR:"account_selector",CHANNEL:"channel",PLAYLIST:"playlist",SIGN_IN_IDENTIFIER_ENTRY:"sign_in_identifier_entry",SIGN_IN_PASSWORD_ENTRY:"sign_in_password_entry",SIGN_IN_DEVICE_PROMPT_CHALLENGE:"sign_in_device_prompt_challenge",SHORTS:"shorts",PROMO:"promo",CALL_TO_CAST:"call_to_cast",AMBIENT_INTERLUDES:"ambient_interludes",PRIVACY:"privacy",NO_OP:"noop",MINI_APP:"mini_app",
MINI_APP_EMBED:"mini_app",OPEN_IN_APP:"open_in_app"};for(var IKb="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),JKb=[],fG=6;fG>=1;fG--)JKb.push({columnCount:fG,query:fG==1?0:fG*2*107-4+32,className:"grid-"+fG+"-columns",width:fG*2*107+"px"});_.LKb=function(a){this.actionRouter_=a=a===void 0?_.Nl.getInstance():a;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.KKb(this);this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.KKb=function(a){var b=a.miniGuideVisible_?72:0,c=a.documentWidth_-(a.guidePersistentAndVisible_?240:b);return JKb.find(function(d){return c>d.query})};
_.lx(_.LKb);var MKb,NKb;MKb=function(){var a=this;this.JSC$10724_keyboardInUse=!1;document.addEventListener("keydown",function(){a.onKeydown()});
document.addEventListener("mousedown",function(){a.JSC$10724_keyboardInUse=!1})};
_.OKb=function(){NKb||(NKb=new MKb);return NKb};
MKb.prototype.isKeyBoardInUse=function(){return this.JSC$10724_keyboardInUse};
MKb.prototype.onKeydown=function(){this.JSC$10724_keyboardInUse=!0};var PKb,iG;_.gG=new _.Ek("yt-mentions");_.hG=function(){};
PKb=function(a,b){return iG(b,"drag-to-reorder-edu-displayed")};
iG=function(a,b,c,d,e,g){c=c===void 0?"OPEN_POPUP_POSITION_TOP":c;if(b){if(_.gG.get(b))return;_.gG.set(b,!0,d)}if(e&&g!==void 0){b=Number(_.gG.get(e)||0);if(b>=g)return;_.gG.set(e,b+1)}return[{openPopupAction:{popupType:"HINT",position:c,popup:{bubbleHintRenderer:{detailsText:a,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.lx(_.hG);var QKb,RKb,SKb;QKb=function(a,b,c,d){this.JSC$10734_taskManager_=a;this.onFulfilled_=typeof b==="function"?b:null;this.onRejected_=typeof c==="function"?c:null;this.JSC$10734_context_=d};
RKb=function(a,b){a.onFulfilled_&&_.wu(a.JSC$10734_taskManager_,function(){a.onFulfilled_.call(a.JSC$10734_context_,b)})};
SKb=function(a,b){a.onRejected_&&_.wu(a.JSC$10734_taskManager_,function(){a.onRejected_.call(a.JSC$10734_context_,b)})};
_.jG=function(a){this.JSC$10737_taskManager_=a;this.callbacks_=[]};
_.jG.prototype.then=function(a,b,c){this.callbacks_.push(new QKb(this.JSC$10737_taskManager_,a,b,c));return this};
_.jG.prototype.onSuccess=function(a){this.callbacks_.forEach(function(b){RKb(b,a)})};
_.jG.prototype.onFailure=function(a){this.callbacks_.forEach(function(b){SKb(b,a)})};
_.jG.prototype.cancel=function(){this.callbacks_.length=0};
ffb(_.jG);_.ZHa=null;_.Ft=new _.fB("ACTIVITY_TOKEN");var dIa=/^[a-zA-Z0-9_\-]{11}$/;var eIa=_.Cy(function(){var a,b;return(b=(a=window).matchMedia)==null?void 0:b.call(a,"(prefers-reduced-motion: reduce)").matches});var TKb=_.Cy(function(){if(window.MediaSource&&typeof window.MediaSource.isTypeSupported==="function")return window.MediaSource.isTypeSupported('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"');if(window.ManagedMediaSource&&typeof window.ManagedMediaSource.isTypeSupported==="function")return window.ManagedMediaSource.isTypeSupported('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"');var a=_.Ji("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");a||(a=_.lg("VIDEO"),_.Rj("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
a));return!!(a&&a.canPlayType&&a.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var UKb;_.kG=new _.fB("SHORTS_CONTROLLER_TOKEN");UKb=new _.fB("SHORTS_STATE_STORE_TOKEN");var lG=function(a,b){var c=_.Id.apply(2,arguments);a=a===void 0?0:a;_.qj.call(this,b,c);this.errorType=a;Object.setPrototypeOf(this,this.constructor.prototype)};
_.z(lG,_.qj);var VKb,WKb,XKb,YKb,$Kb,p6a,Yw,M7a,dLb,cLb,jLb,gLb,fLb;VKb=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(a){return a+"="}).join("|"));
WKb=RegExp(".*\\?.*ybp=1.*");XKb=["FEcommerce_cart","SPcommerce_checkout"];YKb=RegExp(".*\\?.*playnext=1.*");_.mG=function(a,b,c,d){this.watchEndpointMap=a;this.reelWatchEndpointMap=b;this.innerTubeTransportService=c;this.fetchPbj=d;this.forceWebFEForAdsTesting=!1};
$Kb=function(a,b,c){var d=_.v().resolve(_.Wi(ZKb));_.mG.instance=new _.mG(a,b,c,d)};
_.aLb=function(a,b){var c=_.$i("web_pbj_log_warning_rate",0);c=c>0&&Math.random()<c;var d;if((d=_.y(b.commandMetadata,_.ao))==null||!d.rootVe)return c&&_.Dl(Error("Lf")),!1;var e;d=(e=_.y(b.commandMetadata,_.ao))==null?void 0:e.url;if(!d)return c&&_.Dl(Error("Mf")),!1;if(YKb.test(d))return!0;if(VKb.test(d))return c&&_.Dl(Error("Nf`"+d)),!1;var g;e=(g=_.y(b,_.pq))==null?void 0:g.browseId;if(WKb.test(d)&&(!e||!XKb.includes(e)))return c&&_.Dl(Error("Of`"+d)),!1;if(_.y(b,_.Vn)){if(a.forceWebFEForAdsTesting)return c&&
_.Dl(Error("Pf")),!1;if(!(a.watchEndpointMap.watchNext&&a.watchEndpointMap.player||_.x("kevlar_fetch_initial_data_op_watch_client")))return c&&_.Dl(Error("Hf")),!1;a=_.$i("web_pbj_log_warning_rate",0);a=a>0&&Math.random()<a;_.y(b,_.Vn)?bIa(b)?b=!0:(a&&_.Dl(Error("If")),b=!1):(a&&_.Dl(Error("Hf")),b=!1);return b}if(_.y(b,_.tq))return cIa(b);if(_.y(b,_.ME))return!0;b=_.Rt(a.innerTubeTransportService,b);c&&_.Dl(Error("Qf"));return b};
p6a=function(a,b,c,d,e,g){b={url:b};if(c==null?0:c.itct)b.parentTrackingParams=c.itct;var k=_.Zp(HHb);return _.OF(a.innerTubeTransportService,b,k).then(function(m){(m=m.endpoint)||(m=_.vF);(c==null?0:c.itct)&&m&&!m.trackingParams&&(m.trackingParams=c.itct);var n=rq(m);return Yw(a,m,c,d,n,e,g)})};
Yw=function(a,b,c,d,e,g,k){if(a.fetchPbj&&!_.aLb(a,b)){var m=a.fetchPbj(b),n=_.oo(m.then(function(ca){if(!ca)throw Error("Rf");k(n)||g(b,ca);return ca}));
return n}var r,t={rootVe:(m=_.y(b.commandMetadata,_.ao))==null?void 0:m.rootVe,url:(r=_.y(b.commandMetadata,_.ao))==null?void 0:r.url,endpoint:b,page:e};if(_.y(b,_.Vn)){var u,w={contentPlaybackContext:_.uq(c,(u=_.y(b.commandMetadata,_.ao))==null?void 0:u.url,d)},A=_.Tt();_.x("web_streaming_watch")&&window.TextDecoderStream?(m=bLb(a.innerTubeTransportService,b,w,function(ca){!t.response&&ca.content&&(t.response=ca.content);!t.playerResponse&&ca.player&&(t.playerResponse=ca.player);g(b,t)}),r=zBa(b),
r.length&&(t.preconnect=r,g(b,t)),cLb(m,A,t).catch(function(ca){ca instanceof lG&&ca.errorType===2&&dLb(a,b,w,t,g,k,A)})):dLb(a,b,w,t,g,k,A);
return A.promise}if(_.y(b,_.tq)){var C;if(((C=_.y(b,_.tq))==null?void 0:C.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var G=_.Tt();_.eLb(_.v().resolve(_.kG),b).then(function(ca){fLb(a,c,d,e,g,G,ca)});
return G.promise}m=_.oo();var J;r={contentPlaybackContext:_.uq(c,(J=_.y(b.commandMetadata,_.ao))==null?void 0:J.url,d)};(J=a.reelWatchEndpointMap.player)&&(J=J().JSC$11736_getRequest(b,r))&&(m=_.OF(a.innerTubeTransportService,J.innerTubeRequest,J.input,b.clickTrackingParams,J.config));J=_.oo();(u=a.reelWatchEndpointMap.reelItemWatch)&&(u=u().JSC$11736_getRequest(b))&&(J=_.OF(a.innerTubeTransportService,u.innerTubeRequest,u.input,b.clickTrackingParams,u.config));u=_.oo();(C=a.reelWatchEndpointMap.reelWatchSequence)&&
_.y(b,_.tq).sequenceParams&&(r=C().JSC$11736_getRequest(b,r))&&(u=_.OF(a.innerTubeTransportService,r.innerTubeRequest,r.input,b.clickTrackingParams,r.config));r=_.oo(t);C=_.Tt();gLb(b,r,m,J,u,g,k,C);return C.promise}var I;if(_.y(b,YHa)&&((I=_.y(b.commandMetadata,_.ao))==null?0:I.url))return m=jJa(_.Jg(Bf().location.href),_.Jg(_.y(b.commandMetadata,_.ao).url)).toString(),p6a(a,m,c,d,g,function(){return!1});
if(_.y(b,_.ME))return g(b,t),_.oo(t);if(_.Rt(a.innerTubeTransportService,b)){var R=_.St(a.innerTubeTransportService,b,{tempData:c,disableCache:c.disableCache}).then(function(ca){t.response=ca;k(R)||g(b,t);return t});
return R}return _.oo(t)};
_.iLb=function(a,b,c,d){if(_.y(b,_.Vn)||_.y(b,_.tq)&&(_.x("mweb_enable_shorts_innertube_player_prefetch")||_.x("kevlar_enable_shorts_prefetch_in_sequence"))||_.y(b,PDb)&&_.x("web_enable_prefetching_videos_on_home")){var e,g={contentPlaybackContext:_.uq(c,(e=_.y(b.commandMetadata,_.ao))==null?void 0:e.url,d),prefetchPlaybackContext:gIa(c)},k,m,n;if(((k=_.y(b,_.Vn))==null?void 0:(m=k.watchEndpointSupportedPrefetchConfig)==null?void 0:(n=m.prefetchHintConfig)==null?void 0:n.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(c=
a.watchEndpointMap.watchNext)if(g=c().JSC$11736_getRequest(b,g))return Promise.resolve(_.OF(a.innerTubeTransportService,g.innerTubeRequest,g.input,void 0,g.config).then(function(u){return u}))}else if(_.y(b,_.tq)&&_.x("web_prefetch_riw_for_next_video")){if(c=a.reelWatchEndpointMap.reelItemWatch)if((c=c().JSC$11736_getRequest(b,g))&&_.OF(a.innerTubeTransportService,c.innerTubeRequest,c.input,void 0,c.config).then(function(u){return u}),c=a.reelWatchEndpointMap.player)if(g=c().JSC$11736_getRequest(b,
g))return Promise.resolve(_.OF(a.innerTubeTransportService,g.innerTubeRequest,g.input,void 0,g.config).then(function(u){return u}))}else if(c=a.watchEndpointMap.player)if(g=c().JSC$11736_getRequest(b,g))return Promise.resolve(_.OF(a.innerTubeTransportService,g.innerTubeRequest,g.input,void 0,g.config).then(function(u){return u}))}else if(_.Rt(a.innerTubeTransportService,b)){var r={tempData:c},t=hLb(a.innerTubeTransportService,b);
return t?new Promise(function(u,w){var A,C;return _.l(function(G){if(G.nextAddress==1)return _.p(G,t,2);if(G.nextAddress!=4)return A=G.yieldResult,A.JSC$11743_getStoreKey(b,r)?_.p(G,_.St(a.innerTubeTransportService,b,r),4):(w(new _.qj("Prefetching request builder with no store key.",b)),G.jumpTo(0));C=G.yieldResult;u(C);_.se(G)})}):Promise.reject(new _.qj("Prefetching unregistered request builder.",b))}return Promise.reject(new _.qj("No request builder available to prefetch endpoint.",b))};
M7a=function(a,b){var c,d,e;if(_.y(b,_.Vn)){var g=a.watchEndpointMap.watchNext;g&&(c=g());(a=a.watchEndpointMap.player)&&(d=a())}else if(_.y(b,_.tq))(g=a.reelWatchEndpointMap.reelItemWatch)&&(c=g()),(g=a.reelWatchEndpointMap.player)&&(d=g()),(a=a.reelWatchEndpointMap.reelWatchSequence)&&(e=a());else{a:{a=OTa(b,a.innerTubeTransportService.endpointMap);if(a!==void 0)if(typeof a.then==="function")_.Bl(new _.qj("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",b));else break a;
a=void 0}a&&(c=a)}var k,m,n;return{content:(k=c)==null?void 0:k.JSC$11743_getStoreKey(b),player:(m=d)==null?void 0:m.JSC$11743_getStoreKey(b),reelSequence:(n=e)==null?void 0:n.JSC$11743_getStoreKey(b)}};
dLb=function(a,b,c,d,e,g,k){var m=_.oo(),n=a.watchEndpointMap.player;n&&(n=n().JSC$11736_getRequest(b,c))&&(m=_.OF(a.innerTubeTransportService,n.innerTubeRequest,n.input,b.clickTrackingParams,n.config));n=_.oo();var r=a.watchEndpointMap.watchNext;r&&(c=r().JSC$11736_getRequest(b,c))&&(n=_.OF(a.innerTubeTransportService,c.innerTubeRequest,c.input,b.clickTrackingParams,c.config));a=_.oo(d);jLb(b,a,m,n,e,g,k)};
cLb=function(a,b,c){return _.l(function(d){if(d.nextAddress==1)return _.p(d,a,2);b.resolve(c);_.se(d)})};
jLb=function(a,b,c,d,e,g,k){var m,n,r,t,u;_.l(function(w){switch(w.nextAddress){case 1:return _.p(w,b,2);case 2:m=w.yieldResult;if(g(k.promise))return k.resolve(m),w.return();e(a,m);n=zBa(a);if(!n.length){w.jumpTo(3);break}return _.p(w,b,4);case 4:m.preconnect=n,e(a,m);case 3:return _.me(w,5),_.p(w,c,7);case 7:r=w.yieldResult;_.Jj(w,6);break;case 5:return t=_.re(w),k.reject(t),w.return();case 6:if(r===void 0)return m.reload=!0,e(a,m),k.resolve(m),w.return();if(g(k.promise))return k.resolve(m),w.return();
m.playerResponse=r;e(a,m);_.me(w,8);return _.p(w,d,10);case 10:u=w.yieldResult;_.Jj(w,9);break;case 8:_.re(w);case 9:if(u===void 0)return m.response={responseContext:{}},k.resolve(m),w.return();if(g(k.promise))return k.resolve(m),w.return();m.response=u;e(a,m);k.resolve(m);_.se(w)}})};
gLb=function(a,b,c,d,e,g,k,m){var n,r,t,u,w,A;_.l(function(C){switch(C.nextAddress){case 1:return _.p(C,b,2);case 2:n=C.yieldResult;if(k(m.promise))return m.resolve(n),C.return();g(a,n);r=zBa(a);if(!r.length){C.jumpTo(3);break}return _.p(C,b,4);case 4:n.preconnect=r,g(a,n);case 3:return _.me(C,5),_.p(C,c,7);case 7:t=C.yieldResult;_.Jj(C,6);break;case 5:return u=_.re(C),m.reject(u),C.return();case 6:if(t===void 0)return n.reload=!0,g(a,n),m.resolve(n),C.return();if(k(m.promise))return m.resolve(n),
C.return();n.playerResponse=t;g(a,n);_.me(C,8);return _.p(C,d,10);case 10:w=C.yieldResult;_.Jj(C,9);break;case 8:_.re(C);case 9:if(w===void 0)return n.response={responseContext:{}},m.resolve(n),C.return();if(k(m.promise))return m.resolve(n),C.return();n.response=w;g(a,n);_.me(C,11);return _.p(C,e,13);case 13:A=C.yieldResult;_.Jj(C,12);break;case 11:_.re(C);case 12:if(k(m.promise))return m.resolve(n),C.return();n.reelWatchSequenceResponse=A;g(a,n);m.resolve(n);_.se(C)}})};
fLb=function(a,b,c,d,e,g,k){var m,n,r,t,u,w;_.l(function(A){if((m=k)==null||!m.replacementEndpoint)return g.reject(),A.return();n=k.replacementEndpoint;(r=_.y(n,_.tq))?(k.sequenceContinuation&&(r.sequenceParams=k.sequenceContinuation),t=_.v().resolve(_.kG),u=r.sequenceParams,kLb(t,n)&&delete r.sequenceParams,w=Yw(a,n,b,c,d,e,function(){return!1}),w.then(function(C){return _.l(function(G){if(G.nextAddress==1)return lLb(t,{reelWatchEndpoint:{sequenceParams:u}},C),_.p(G,0,2);
g.resolve(C);_.se(G)})})):g.reject();
_.se(A)})};_.mLb=function(a){if(a.validatedFragments_.length==0)return null;if(!a.mergedPrefetchedData_){for(var b=[],c=_.h(a.validatedFragments_),d=c.next();!d.done;d=c.next()){d=_.h(a.fragmentConfiguration_[d.value].graftedKeys);for(var e=d.next();!e.done;e=d.next())(e=a.prefetchedData_[e.value].trackingParams)&&b.push(e)}a.mergedPrefetchedData_={};Object.assign(a.mergedPrefetchedData_,a.prefetchedData_,{clientSideGrafts:b})}return a.mergedPrefetchedData_};var nLb;_.nG=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
nLb=function(a,b,c){if(_.$Ha(b))return a.prefetchCache_.get(_.aIa(b,c))};_.oG=new _.fB("NAVIGATION_TOKEN");var oLb=function(a){var b=this;var c=c===void 0?jIa():c;var d=d===void 0?_.v().resolve(_.oG):d;this.onePickCommand=a;this.JSC$10839_playlistNetworkManager=c;this.navigationManager=d;this.videoPickerBuilder=_.hIa("yt-addtoplaylist");_.Ajb(slb(tlb(rlb(this.videoPickerBuilder.setTitle(a.modalTitle).setSize(1E3).addView(wjb()).addView(vjb())).addView("youtube"),a.selectButtonLabel)),function(e){b.handleAction(e)})};
oLb.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
oLb.prototype.handleAction=function(a){var b=this;if(a&&this.onePickCommand.listId&&a.action==="picked"&&a.docs){var c=[];a.docs.forEach(function(d){c.push({addedVideoId:d.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$10839_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,c).then(function(){_.x("playlist_add_video_hard_reload_killswitch")?b.navigationManager.reload():pLb(b.navigationManager)})}};var qLb=function(){if(this.constructor===qLb)throw new TypeError("Sf");};
_.f=qLb.prototype;_.f.dispose=function(){};
_.f.disconnect=function(){};
_.f.reconnect=function(){};
_.f.observe=function(a,b,c){return{element:a,option:c}};
_.f.unobserveByKey=function(){};var kIa=function(a,b){b=b===void 0?0:b;qLb.call(this);this.viewroot=a;this.defaultPrescanHeight=b;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),a?{root:a,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.z(kIa,qLb);_.f=kIa.prototype;_.f.dispose=function(){this.disconnect();this.handlers.clear()};
_.f.disconnect=function(a){this.isConnected=!1;this.pauseObservingUntilReconnect=a===void 0?!1:a;this.observer.disconnect();a=_.h(this.prescanObservers.values());for(var b=a.next();!b.done;b=a.next())b.value.disconnect()};
_.f.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var a=_.h(this.handlers),b=a.next();!b.done;b=a.next()){var c=_.h(b.value);b=c.next().value;var d=c.next().value;c=!1;d=_.h(d.keys());for(var e=d.next();!e.done;e=d.next())if((e=e.value)&&e.state==="prescan"){c=!0;break}c&&rLb(this,b).observe(b);this.observer.observe(b)}}};
_.f.handleObserveEvent=function(a){a=_.h(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=this.handlers.get(b.target);if(c){var d=b.isIntersecting;c=_.h(c);for(var e=c.next();!e.done;e=c.next()){var g=_.h(e.value);e=g.next().value;g=g.next().value;e&&(e.state==="visible"&&d||e.state==="hidden"&&!d)&&(g(b.target,e.state),e.calledOnce&&this.unobserveByKey({element:b.target,option:e}))}}}};
_.f.handlePrescanEvent=function(a){a=_.h(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=this.handlers.get(b.target);if(c&&b.isIntersecting){c=_.h(c);for(var d=c.next();!d.done;d=c.next()){var e=_.h(d.value);d=e.next().value;e=e.next().value;d&&d.state==="prescan"&&(e(b.target,d.state),d.calledOnce&&this.unobserveByKey({element:b.target,option:d}))}}}};
_.f.observe=function(a,b,c){var d=(d=this.handlers.get(a))&&d.has(c)?{element:a,option:c}:void 0;if(d)return d;d={element:a,option:c};this.handlers.has(a)||this.handlers.set(a,new Map);var e=this.handlers.get(a);e&&!e.has(c)&&e.set(c,b);this.pauseObservingUntilReconnect||(c.state==="prescan"&&rLb(this,a).observe(a),this.observer.observe(a));return d};
_.f.unobserveByKey=function(a){var b=this.handlers.get(a.element);if(b&&b.has(a.option)){b.delete(a.option);if(a&&a.option.state==="prescan")for(var c=_.h(this.prescanObservers.values()),d=c.next();!d.done;d=c.next())d.value.unobserve(a.element);b.size===0&&(this.handlers.delete(a.element),this.observer.unobserve(a.element))}};
var rLb=function(a,b){var c=a.defaultPrescanHeight;b.hasAttribute("prescan-height")&&(b=Number(b.getAttribute("prescan-height")),isNaN(b)||(c=b));if(a.prescanObservers.has(c))return a.prescanObservers.get(c);b="-0.1px -0.1px "+c+"px -0.1px";b=new IntersectionObserver(a.handlePrescanEvent.bind(a),a.viewroot?{root:a.viewroot,rootMargin:b}:{rootMargin:b});a.prescanObservers.set(c,b);return b};var sLb=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],tLb=function(){var a,b=this;this.JSC$10856_actionRouter=a=a===void 0?_.Nl.getInstance():a;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return b.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return b.visibilityObservedElementHandlerKeys}}},uLb,wLb,zLb;
tLb.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.x("kevlar_use_vimio_behavior")&&_.Ei("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=lIa())};
tLb.prototype.dispose=function(){this.visibilityMonitor&&_.Cz(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
tLb.prototype.handleVisibilityRefreshed=function(){for(var a=_.h(this.targetMap.entries()),b=a.next();!b.done;b=a.next()){var c=_.h(b.value);b=c.next().value;c=c.next().value;_.vLb(this,b,c)}};
_.yLb=function(a,b,c){wLb(a,c);var d=_.xLb(a,b);d.element=c;a.targetedElements.set(c,b);_.vLb(a,b,d)};
wLb=function(a,b){var c=a.targetedElements.get(b);if(c){var d=a.targetMap.get(c);d&&(delete d.element,a.targetMap.set(c,d));a.targetedElements.delete(b);a.visibilityObserver&&a.visibilityObservedElementHandlerKeys&&(c=a.visibilityObservedElementHandlerKeys.get(b))&&(a.visibilityObserver.unobserveByKey(c),a.visibilityObservedElementHandlerKeys.delete(b))}};
_.vLb=function(a,b,c){var d=c.action,e=c.element;e&&d&&(sLb.includes(b)||_.Ei("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||a.visibilityMonitor&&a.visibilityMonitor.isNodeVisible(e)?zLb(a,b,c):a.visibilityObserver&&(a.visibilityObservedElementHandlerKeys||(a.visibilityObservedElementHandlerKeys=new WeakMap),d=a.visibilityObserver.observe(e,function(){zLb(a,b,c);a.visibilityObservedElementHandlerKeys.delete(e)},{calledOnce:!0,
state:"visible"}),a.visibilityObservedElementHandlerKeys.set(e,d)))};
zLb=function(a,b,c){var d=c.action;(c=c.element)&&d&&(_.NB(a.JSC$10856_actionRouter,[d],c),a.targetMap.delete(b),a.targetedElements.delete(c),a.triggeredTargets.add(b))};
_.xLb=function(a,b){var c=a.targetMap.get(b);c||(c={},a.targetMap.set(b,c));return c};
_.pG=function(){uLb||(uLb=new tLb);return uLb};var ALb=document.createElement("div");ALb.style.touchAction="pan-down";var mIa=ALb.style.touchAction==="pan-down";var BLb,CLb;BLb=function(){this.hammerFn=hub();this.JSC$10864_screenManager=_.ms();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.lu(83615);_.oF(this.JSC$10864_screenManager,this.ve);nIa()};
_.qG=function(){CLb||(CLb=new BLb);return CLb};
BLb.prototype.registerTouchEvents=function(a,b,c){var d=_.Id.apply(3,arguments),e=this.hammerFn(a,{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}]]});c&&e.set({touchAction:c});this.nodeManagerMapping.set(a,e);var g=
oIa(b);d=_.h(d);for(var k=d.next();!k.done;k=d.next()){k=k.value;if(k.includes("swipe")||k.includes("pinch")||k.includes("pan"))k.includes("swipe")?e.get("swipe").set({enable:!0,direction:g,velocity:.2}):k.includes("pinch")?e.get("pinch").set({enable:!0}):k.includes("pan")&&(e.get("pan").set({enable:!0,direction:g}),e.get("swipe").set({enable:!0,direction:g,velocity:.2}),e.get("swipe").recognizeWith("pan"));DLb(this,a,e,k)}};
var DLb=function(a,b,c,d){c.on(d,function(e){if(d.includes("pinch"))a.lastPinchTime=Date.now();else if(d.includes("swipe")&&Date.now()-a.lastPinchTime<400)return;e.pointerType!=="mouse"&&(e=d==="doubletap"?{coordinates:e.center}:d.includes("pan")?e:d.includes("swipe")?{target:e.target}:{},b.dispatchEvent(new CustomEvent(d,{bubbles:!0,composed:!0,detail:e})))})};
BLb.prototype.unregisterTouchEvents=function(a){var b=_.Id.apply(1,arguments),c=this.nodeManagerMapping.get(a);if(c){b=_.h(b);for(var d=b.next();!d.done;d=b.next())c.off(d.value);this.nodeManagerMapping.delete(a);a.style.touchAction="unset"}};var ELb=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var pIa=null;var GLb;_.rG=function(a,b,c){var d=c&&c>0?c:0;c=d?Date.now()+d*1E3:0;if((d=d?(0,_.FLb)():GLb())&&window.JSON){typeof b!=="string"&&(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}};
_.sG=function(a){var b=GLb(),c=(0,_.FLb)();if(!b&&!c||!window.JSON)return null;try{var d=b.get(a)}catch(e){}if(typeof d!=="string")try{d=c.get(a)}catch(e){}if(typeof d!=="string")return null;try{d=JSON.parse(d,void 0)}catch(e){}return d};
_.tG=function(a){try{var b=GLb(),c=(0,_.FLb)();b&&b.remove(a);c&&c.remove(a)}catch(d){}};
_.FLb=_.Cy(function(){try{var a=new Qoa;var b=a.isAvailable()?a:null}catch(c){return null}return b?new _.dn(b):null});
GLb=_.Cy(function(){var a=new Roa;return a.isAvailable()?new _.dn(a):null});var HLb=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},HIa=function(){HLb.instance||(HLb.instance=new HLb);
return HLb.instance},IIa=function(a){var b=a.networkEvents;
a.networkEvents=[];return _.x("enable_network_monitoring")?b:[]};var ILb;ILb={};_.JLb=Tj("yt-serviceworker-metadata",{objectStores:(ILb.auth={addedAtVersion:1},ILb["resource-manifest-assets"]={addedAtVersion:2},ILb),shared:!0,upgrade:function(a,b){b(1)&&Gk(a,"resource-manifest-assets");b(2)&&Gk(a,"auth")},
version:2});var vIa=self.location.origin+"/";wIa([/\.css$/,/\.js$/,/\.ico$/,/\/ytmweb\/_\/js\//,/\/ytmweb\/_\/ss\//,/\/kabuki\/_\/js\//,/\/kabuki\/_\/ss\//,/\/ytmainappweb\/_\/js\//,/\/ytmainappweb\/_\/ss\//]);wIa([/purge_shell=1/]);var KLb=void 0;KLb=KLb===void 0?[]:KLb;for(var LLb=[],MLb=_.h(Xlb),NLb=MLb.next();!NLb.done;NLb=MLb.next())LLb.push({key:NLb.value});for(var OLb=_.h(KLb),PLb=OLb.next();!PLb.done;PLb=OLb.next())LLb.push(PLb.value);var QLb,yq=_.ja==null?void 0:(QLb=_.ja.performance)==null?void 0:QLb.memory,zIa=!1,JIa={},CIa={},zq={},Aq=navigator;var uG=function(a){this.JSC$10908_expiringStorage=new sj(a)},RLb=function(a){if(_.PIa()&&(a=_.Soa(_.oj()+"::"+a)))return new uG(a)};
uG.prototype.set=function(a,b,c){c=c!==void 0?Date.now()+c:void 0;this.JSC$10908_expiringStorage.set(a,b,c)};
uG.prototype.get=function(a){return this.JSC$10908_expiringStorage.get(a)};
uG.prototype.remove=function(a){this.JSC$10908_expiringStorage.remove(a)};var RIa=_.cx(["https://www.youtube.com/",""]),SIa=_.cx(["https://studio.youtube.com/",""]),XIa="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",UIa=null,bJa;var SLb=_.cx(["https://www.youtube.com/iframe_api"]),vG=function(){this.playerResolver_=_.Tt();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.By;this.playbackDurationSeconds_=0},TLb=function(a){var b=function(){return window.YT&&typeof window.YT.ready==="function"};
if(b())return _.oo(window.YT);var c=_.Tt(),d=_.lg("SCRIPT");d.onload=d.onreadystatechange=function(){d.readyState&&d.readyState!="loaded"&&d.readyState!="complete"||(d.onload=_.By,d.onreadystatechange=_.By,d.onerror=_.By,b()?c.resolve(window.YT):c.reject(new _.qj("Failed to load the iframe player library","script.onload",d.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
d.onerror=function(e){d.onload=_.By;d.onreadystatechange=_.By;d.onerror=_.By;c.reject(new _.qj("Failed to load the iframe player library","script.onerror",e&&e.target&&e.target.src))};
_.Xd(d,_.ef(SLb));a.insertBefore(d,a.firstChild);return c.promise},ULb=function(a,b,c){var d,e;
_.l(function(g){switch(g.nextAddress){case 1:return a.playbackEndedCallback_=c,_.me(g,2),_.p(g,TLb(b.parentElement||null),4);case 4:d=g.yieldResult;_.Jj(g,3);break;case 2:return e=_.re(g),e instanceof _.qj&&e.args&&e.args[0]=="script.onerror"?_.Dl(e):_.Bl(e),g.return();case 3:d.ready(function(){return new d.Player(b,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:a.onPlayerReady_.bind(a),onStateChange:a.onPlayerStateChange_.bind(a),
onCueRangeExit:a.onCueRangeExit_.bind(a)}})}),_.se(g)}})};
_.f=vG.prototype;_.f.getPlayerPromise=function(){return this.playerPromise_};
_.f.onPlayerReady_=function(a){this.playerResolver_.resolve(a.target)};
_.f.onPlayerStateChange_=function(a){if(a.data==YT.PlayerState.PLAYING){a=a.target;var b=a.getCurrentTime();a.addCueRange("playback",b,b+this.playbackDurationSeconds_)}};
_.f.onCueRangeExit_=function(a){a.data=="playback"&&(a.target.stopVideo(),this.playbackEndedCallback_())};
_.f.stopVideo=function(){this.playerPromise_.then(function(a){a.stopVideo()})};
var VLb=function(a){a.playerVars_&&a.playerPromise_.then(function(b){typeof b.cueVideoByPlayerVars!="function"?_.Dl(new _.qj("vmh: player API not ready","cueVideoByPlayerVars",typeof b.cueVideoByPlayerVars)):b.cueVideoByPlayerVars(a.playerVars_)})};
vG.prototype.playVideo=function(){var a=this;this.playerVars_&&this.playerPromise_.then(function(b){typeof b.loadVideoByPlayerVars!="function"?(b=new _.qj("vmh: player API not ready","loadVideoByPlayerVars",typeof b.loadVideoByPlayerVars),_.Bl(b)):b.loadVideoByPlayerVars(a.playerVars_)})};
var WLb=function(a,b,c,d,e){b&&(c===void 0&&(c=0),d===void 0&&(d=0),a.playbackDurationSeconds_=d/1E3,a.playerVars_={adformat:"17_8",videoId:b,suggestedQuality:"hd720",startSeconds:c/1E3,player_params:e})};
vG.prototype.mute=function(){this.playerPromise_.then(function(a){a.mute()})};
vG.prototype.unMute=function(){this.playerPromise_.then(function(a){a.unMute()})};var iJa=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var wG;wG=function(){this.tokenJars={};if(this.cookiesEnabled=_.nj()){var a=_.lj.get("CONSISTENCY",void 0);a&&XLb(this,{encryptedTokenJarContents:a})}};
_.kJa=function(){wG.instance||(wG.instance=new wG);return wG.instance};
wG.prototype.handleResponse=function(a,b){if(!b)throw Error("Xf");var c,d;b=((c=b.innerTubeRequest.context)==null?void 0:(d=c.request)==null?void 0:d.consistencyTokenJars)||[];var e;(a=(e=a.responseContext)==null?void 0:e.consistencyTokenJar)&&this.replace(b,a)};
wG.prototype.replace=function(a,b){a=_.h(a);for(var c=a.next();!c.done;c=a.next())delete this.tokenJars[c.value.encryptedTokenJarContents];XLb(this,b)};
var XLb=function(a,b){if(b.encryptedTokenJarContents&&(a.tokenJars[b.encryptedTokenJarContents]=b,typeof b.expirationSeconds==="string")){var c=Number(b.expirationSeconds);setTimeout(function(){delete a.tokenJars[b.encryptedTokenJarContents]},c*1E3);
a.cookiesEnabled&&_.mj("CONSISTENCY",b.encryptedTokenJarContents,c,void 0,!0)}};var YLb,xG;YLb=window.location.hostname.split(".").slice(-2).join(".");_.Kq=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var a=_.Ei("LOCATION_PLAYABILITY_TOKEN");_.Ei("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=ZLb(this))&&(a=this.localStorage.get("yt-location-playability-token"));a&&(this.locationPlayabilityToken=a,this.mostRecentPosition=void 0)};
_.Kq.getInstance=function(){xG=_.Ji("yt.clientLocationService.instance");xG||(xG=new _.Kq,_.Rj("yt.clientLocationService.instance",xG));return xG};
_.Kq.prototype.setLocationOnInnerTubeContext=function(a){a.client||(a.client={});if(this.mostRecentPosition)a.client.locationInfo||(a.client.locationInfo={}),a.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),a.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),a.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),a.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)a.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.Kq.prototype.handleResponse=function(a){var b;a=(b=a.responseContext)==null?void 0:b.locationPlayabilityToken;a!==void 0&&(this.locationPlayabilityToken=a,this.mostRecentPosition=void 0,_.Ei("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=ZLb(this))&&this.localStorage.set("yt-location-playability-token",a,15552E3):_.mj("YT_CL",JSON.stringify({loctok:a}),15552E3,YLb,!0))};
var ZLb=function(a){return a.localStorage===void 0?new _.Ek("yt-client-location"):a.localStorage};
_.Kq.prototype.clearLocationPlayabilityToken=function(a){a==="TVHTML5"?(this.localStorage=ZLb(this))&&this.localStorage.remove("yt-location-playability-token"):_.Joa("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.Kq.prototype.getCurrentPositionFromGeolocation=function(){var a=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Yf"));var b=!1,c=1E4;_.Ei("INNERTUBE_CLIENT_NAME")==="MWEB"&&(b=!0,c=15E3);return new Promise(function(d,e){navigator.geolocation.getCurrentPosition(function(g){a.mostRecentPosition=g;d(g)},function(g){e(g)},{enableHighAccuracy:b,
maximumAge:0,timeout:c})})};
_.Kq.prototype.createUnpluggedLocationInfo=function(a){var b={};a=a.coords;if(a==null?0:a.latitude)b.latitudeE7=Math.floor(a.latitude*1E7);if(a==null?0:a.longitude)b.longitudeE7=Math.floor(a.longitude*1E7);if(a==null?0:a.accuracy)b.locationRadiusMeters=Math.round(a.accuracy);return b};
_.Kq.prototype.createLocationInfo=function(a){var b={};a=a.coords;if(a==null?0:a.latitude)b.latitudeE7=Math.floor(a.latitude*1E7);if(a==null?0:a.longitude)b.longitudeE7=Math.floor(a.longitude*1E7);return b};var $Lb=function(a,b){var c=Kn();a||(a="unknown");b||(b="unknown");a="MAIN_APP_WEB_PAGE_TYPE_"+a.toUpperCase();a in PBb||(a="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");b="MAIN_APP_WEB_REQUEST_TYPE_"+b.toUpperCase();b in QBb||(b="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.vw(c,{mainAppWeb:{pageType:a,requestType:b,isShellLoad:_.Gi("IS_SHELL_LOAD",!1)}})},aMb={start:function(){_.vw(gBa(),{mainAppWeb:_.Lq()})},
success:function(){_.ww(gBa(),"SUCCESS")},
failure:function(){_.ww(gBa(),"FAILURE")},
cancelled:function(){_.ww(gBa(),"CANCELLED")}};var bMb,cMb,pJa;bMb=_.cx(["/sw.js"]);cMb=_.cx(["/sw.js?0"]);_.dMb=_.ef(bMb);pJa=_.ef(cMb);var eMb=function(){var a=Error.apply(this,arguments);this.message=a.message;"stack"in a&&(this.stack=a.stack)};
_.z(eMb,Error);_.Oq.prototype.load=function(a){this.megabloxUrl_=_.Ei("YPC_MB_URL");_.Ln(this.megabloxUrl_,(0,_.ug)(function(){a&&a()},this))};
_.y4a=function(a,b,c,d,e,g,k,m,n,r,t){_.rJa(n);a.load((0,_.ug)(function(){try{var u=g?g:_.Ei("HL"),w=_.Ei("SESSION_INDEX");_.SBa("client",function(){ihb("59",{helpCenterPath:"/youtube",locale:u,window:window}).JSC$7821_loadChatSupport({authuser:String(w)})})}catch(A){throw Mq(10,t,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),e&&e(A),_.Bl(A),A;
}fMb(this,b,c,d,e,g,k,m,n,r,t)},a))};
_.Oq.prototype.openFixFlowDialog=function(a,b,c,d){this.load((0,_.ug)(function(){try{gMb(this,_.Ji("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(a).withIntegratorCallback(b).load(c,d)}catch(e){throw _.Bl(e),e;}},this))};
var gMb=function(a,b,c,d){var e=b.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.x("enable_window_constrained_buy_flow_dialog")&&(e=e.usingPopupStyle(_.Ji("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));d&&(e=e.usingCloseCallback(d));b.bootstrap.fromPaymentsUrl(a.megabloxUrl_);a=b.bootstrap.asMashupMode(e);c=c?c:_.Ei("HL");a.usingGaiaIndex(_.Ei("SESSION_INDEX")).usingLocale(c).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.x("enable_google_payments_buyflow_material2_style_web")?
a.usingStyle(":m2;pc=#444;ac=#065fd4"):a.usingStyle(":md;pc=#444;ac=#065fd4");return a},fMb=function(a,b,c,d,e,g,k,m,n,r,t){try{var u=_.Ji("payments.business.integration");
if(!u)throw new eMb("payments.business.integration is undefined");var w=u.standaloneContextAuthId.forUserId(),A=gMb(a,u,g,m);k&&A.usingServerAnalyticsEventHandler(k);var C=A.inStandaloneContext(w).buyFlow(function(G){if(G&&(!G.integratorData||G.integratorData===""||G.error))if(G.error!=null)if(String(G.error)==="-1")_.sJa(n);else{var J=String(G.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";Mq(10,t,J,G.debugCode);
_.Nq(J,n,G.debugCode);J=new _.qj("PAYMENT_ERROR_MESSAGE::"+G.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+G.internalErrorDetails);_.Bl(J)}else Mq(10,t,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.Nq("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",n,"EMPTY_INTEGRATOR_DATA"),_.Bl(Error("$f"));c&&c(G)}).withEncryptedParameters(b);
r&&C.withClientParameters(B8a(_.C3a(r)));C.load(function(){Mq(24,t);_.Lo("ttc",void 0,"commerce_transaction");HCa("commerce_transaction");d&&d()},function(G){if(G==null?0:G.debugCode)var J=G==null?void 0:G.debugCode;
else if(!G||(G==null?0:G.debugCode))J="EMPTY_LOAD_FAILURE_ERROR",_.Bl(Error(J));else{J="EMPTY_LOAD_FAILURE_DEBUG_CODE";var I=new _.qj("LOAD_FAILURE:"+G.message," DEBUG_CODE:"+J);_.Bl(I)}Mq(10,t,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",J);_.Nq("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",n,J);_.Bl(G);e&&e(G)})}catch(G){throw G instanceof eMb&&(Mq(10,t,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),e&&e(G)),_.Bl(G),G;
}};var hMb;hMb=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.v4a=function(a,b){b=b===void 0?!1:b;a=hMb.test(a)?_.vd(a):null;!b&&window.payments||!a?(a=_.Tt(),b=a.promise,a.resolve()):b=_.MA(a,{attributes:{"data-payments-main":"",id:"payment-lib"}});return b};var iMb;iMb=_.cx(["//www.googletagmanager.com/gtm.js?id=",""]);_.yG=function(a,b){_.du(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:b}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.Ei("GL")}),b=_.lg("SCRIPT"),b.async=!0,_.Xd(b,_.ef(iMb,a)),b.id="gtm",a=document.getElementsByTagName("script"),a.length==0?document.head.appendChild(b):(a=a[0],a.parentNode.insertBefore(b,a)))};
_.zG=function(a){if(a=JSON.parse(a))window.dataLayer=window.dataLayer||[],window.dataLayer.push(a)};var jMb,kMb;jMb=_.cx(["https://clients2.google.com/gr/gr_sync.js"]);_.t4a=function(){};
_.t4a.prototype.init=function(){if(kMb()){var a=_.Tt();a.resolve();return a.promise}return _.MA(_.ef(jMb)).then(function(){if(!kMb())throw Error("ag");},function(){throw Error("bg");
})};
_.u4a=function(){if(!kMb())return"";var a=window.google.gr;a.init({async:{schedule:"sync"},merchantId:"youtube"});a.start();a=a.finish();return a==null?"":a};
kMb=function(){return window.google!=null&&window.google.gr!=null};var lMb=nn({entities:HDa}),mMb=new Wp(lMb);var CKa,FKa=new Set,DKa;window.PolymerFakeBaseClassWithoutHtml=function(){};
_.P=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.z(_.P,PolymerFakeBaseClassWithoutHtml);_.ir=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.z(_.ir,PolymerFakeBaseClassWithoutHtml);var tJa=window.ShadyDOM;var aKa,ZJa,cKa,dKa,fKa,gKa,AG,Yq;aKa=_.x("enable_shadydom_free_scoped_query_methods");ZJa=_.x("enable_shadydom_free_scoped_node_methods");cKa=_.x("enable_shadydom_free_scoped_readonly_properties_batch_one");dKa=_.x("enable_shadydom_free_parent_node");fKa=_.x("enable_shadydom_free_children");gKa=_.x("enable_shadydom_free_last_child");AG=window.ShadyDOM;_.br=AG&&AG.noPatch&&AG.wrap?AG.wrap:AG?function(a){return AG.patch(a)}:function(a){return a};
Yq=function(a){if(a instanceof ShadowRoot)this.host=(0,_.br)(a.host),this.root=a;else if(a.$$){this.host=(0,_.br)(a);var b;this.root=(b=a.root)!=null?b:this.host}else if(a.polymerController){this.host=(0,_.br)(a);var c;this.root=(c=this.host.shadowRoot)!=null?c:this.host}else this.root=this.host=(0,_.br)(a)};
$Ja();bKa();hKa();iKa();eKa();var nMb={querySelector:function(a,b){b=vJa(b,Sq(a));a=_.Tq(a);return Uq(a).prototype.querySelector.call(a,b)},
querySelectorAll:function(a,b){b=vJa(b,Sq(a));a=_.Tq(a);return Uq(a).prototype.querySelectorAll.call(a,b)}},oMb={appendChild:function(a,b){var c=Sq(a),d=_.Rq(b);
return _.XJa(_.Tq(a),c?_.Wq(b,c,d):b)},
cloneNode:function(a,b){var c=_.Rq(a);a=_.Tq(a);b=Uq(a).prototype.cloneNode.call(a,b);return c?Xq(b,c):b},
contains:function(a,b){var c=Sq(a),d=_.Rq(b);return c!==d?!1:YJa(a,b)},
insertBefore:function(a,b,c){var d=Sq(a),e=_.Rq(b);a=_.Tq(a);b=d?_.Wq(b,d,e):b;return Uq(a).prototype.insertBefore.call(a,b,c)},
removeChild:function(a,b){var c=Sq(a);a=_.Tq(a);b=c?Xq(b,c):b;return Uq(a).prototype.removeChild.call(a,b)},
replaceChild:function(a,b,c){var d=Sq(a),e=_.Rq(b);b=d?_.Wq(b,d,e):e?Xq(b,e):b;c=d?Xq(c,d):c;a=_.Tq(a);return Uq(a).prototype.replaceChild.call(a,b,c)},
getRootNode:function(a,b){b=b===void 0?{composed:!0}:b;var c;if(((c=b)!=null?c:{}).composed)a=GJa(a);else{b=a;for(a=xJa(a);a;)b=a,a=zJa(a);a=b}return a}},kKa=cKa?{firstChild:RJa,
nextSibling:OJa,previousSibling:QJa,firstElementChild:SJa,lastElementChild:UJa,nextElementSibling:NJa,previousElementSibling:PJa,childNodes:VJa}:{};dKa&&(kKa.parentNode=MJa);fKa&&(kKa.children=WJa);gKa&&(kKa.lastChild=TJa);aKa&&jKa(nMb);ZJa&&jKa(oMb);lKa();var mKa=function(a){this.node=a instanceof ShadowRoot?a.host:a};
nKa();oKa();var sKa=new WeakMap;var uKa=Symbol("td");var zKa=new Set(["tap","track","down","up"]),AKa=_.x("pbcm_fi_query_decorators");var pMb=function(){return _.ir.apply(this,arguments)||this};
_.z(pMb,_.ir);_.f=pMb.prototype;_.f.getState=function(){return this.store.getState()};
_.f.dispatch=function(a){this.store.dispatch(a)};
_.f.beforeRegister=function(){if(this&&typeof this==="object"){var a;var b=!!this.useSignals||!((a=this.polymerController)==null||!a.useSignals)}else b=!1;if(!b&&this.properties)for(b=_.h(Object.keys(this.properties)),a=b.next();!a.done;a=b.next()){var c=a.value;a=this.properties[c];if(a.selector){if(a.computed)throw Error("hg");c=["reduxPropertiesRecomputeTrigger",'"'+c+'"'].concat(_.Be(a.selectorArgs||[])).join(",");a.computed="recomputeReduxSelector("+c+")"}}};
_.f.attached=function(){var a=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){a.reduxPropertiesRecomputeTrigger++}));
_.x("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.f.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.f.recomputeReduxSelector=function(a,b){var c=_.Id.apply(2,arguments),d=this.properties[b].selector;if(!d)throw Error("fg`"+b);return d.apply(null,[this.store.getState()].concat(_.Be(c)))};
_.f.select=function(a){var b=_.Id.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return a.apply(null,[this.store.getState()].concat(_.Be(b)))};
_.Vm.Object.defineProperties(pMb.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("gg");}}});
var BG=pMb;BG.prototype.recomputeReduxSelector=BG.prototype.recomputeReduxSelector;_.U([_.O(),_.W("design:type",Number)],BG.prototype,"reduxPropertiesRecomputeTrigger",void 0);BG=_.U([_.jr()],BG);var CG=[],IKa={},qMb=function(){return Xm.apply(this,arguments)||this};
_.z(qMb,Xm);qMb.prototype._addPropertyEffect=function(a,b,c){if(b==="__observeEffects"&&c){var d,e=(d=c.info.method)!=null?d:c.info.methodName;if(e){var g=this[e];this[e]=function(){CG.push(e);try{g==null||g.apply(this,arguments)}finally{CG.pop()}}}}_.CC._addPropertyEffect.apply(this,[a,
b,c])};
qMb.prototype._setPendingProperty=function(a,b,c){if(CG.length){var d=CG[CG.length-1],e;(e=IKa[this.is])!=null&&e.has(d)||(JKa(this.is,d),_.zl("polymerPropertyChangedInObserver",{componentName:this.is,observerName:d}))}return _.CC._setPendingProperty.apply(this,[a,b,c])};
var aLa=qMb;aLa=_.U([Vxa()],aLa);var KKa=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),MKa,mr={};_.x("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=mr);var rMb=function(){return _.ir.apply(this,arguments)||this};
_.z(rMb,_.ir);rMb.prototype._setUnmanagedPropertyToNode=function(a,b,c){a.loggingStatus&&(a.loggingStatus.isDeclarativeExternal=!0);if(c!==a[b]||typeof c==="object")a[b]=c;a.is&&a.polymerController&&a.polymerController!==a&&nr(a.is,b,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");a.loggingStatus&&(a.loggingStatus.isDeclarativeExternal=!1)};
var QKa=rMb;QKa=_.U([_.jr()],QKa);LKa()&&(Jm.prototype._setUnmanagedPropertyToNode=(new QKa)._setUnmanagedPropertyToNode);_.bLa={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(a){},set polymerController(a){}}]};var sMb=function(){var a=Xm.apply(this,arguments)||this;a.json=function(){};
return a};
_.z(sMb,Xm);sMb.prototype.equals=function(a,b){return a===b};
sMb.prototype.isEmpty=function(a){return!a||_.Sa(a)&&a.length===0};
var tr=sMb;tr=_.U([Vxa()],tr);var tMb=function(a){a=Rza(a);RD.call(this,a)};
_.z(tMb,RD);tMb.prototype.addProvider=function(a){a=a.key?a:Rza([a])[0];var b=this.keyIdToIndex.get(a.key.id);if(b){if(SKa(a,this.providers[b]))throw Error("ig`"+a.key.displayName);}else RD.prototype.addProvider.call(this,a)};
var uMb=new tMb([]);var vMb=!1;var YKa={};vMb||(XKa(),vMb=!0);
YKa.InjectBehavior={initializeInjection:function(){var a=this.provide;try{if((a=a!=null?a:[])&&a.length>0)for(var b=Rza(a),c=_.h(b),d=c.next();!d.done;d=c.next())uMb.addProvider(d.value);var e=new Set;TKa(this.behaviors||[],e);b={};for(var g=_.h(e),k=g.next();!k.done;k=g.next()){var m=k.value;m.inject&&Object.assign(b,m.inject)}this.inject&&Object.assign(b,this.inject);for(var n=_.h(Object.keys(b)),r=n.next();!r.done;r=n.next()){var t=r.value,u=b[t];try{this[t]=uMb.resolve(u)}catch(w){throw w;}}}catch(w){throw Error(w.message);
}}};var $Ka;var cLa=/\bclass\b/.test(function(){}.toString()),fLa=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var wMb=function(a){this.wasDefined=!0;Array.isArray(a)||a instanceof Array?(this.JSC$11068_getImpl=a[0],this.JSC$11068_setImpl=a[1]):this.JSC$11068_getImpl=a};
_.f=wMb.prototype;_.f.getWithPath=function(a){return wr(this.JSC$11068_getImpl(),a)};
_.f.setWithPath=function(a,b){var c=this;if(a.length)throw Error("jg");if(!this.JSC$11068_setImpl)throw Error("kg");lh(function(){c.JSC$11068_setImpl(b)})};
_.f.notifyPath=function(){throw Error("lg");};
_.f.notifySplices=function(){throw Error("mg");};
_.f.getChangeRecordSignal=function(a,b){var c=this;if(a.length)throw Error("ng");return function(){var d=c.getWithPath(a);return{path:b!=null?b:"",base:d,value:d}}};
_.f.getSplicesSignal=function(){throw Error("og");};
_.f.getPathMutationSignal=function(){throw Error("pg");};
_.f.pop=function(){throw Error("qg");};
_.f.push=function(){throw Error("rg");};
_.f.splice=function(){throw Error("sg");};
_.f.unshift=function(){throw Error("tg");};var DG=function(a){var b=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(a)||a instanceof Array?(this.JSC$11073_getImpl=a[0],this.JSC$11073_setImpl=a[1]):this.JSC$11073_getImpl=a;this.wasDefined=!1;eh(function(){b.wasDefined=b.JSC$11073_getImpl()!==void 0})};
DG.prototype.getWithPath=function(a){return wr(this.JSC$11073_getImpl(),a)};
DG.prototype.setWithPath=function(a,b){var c=this;if(a[a.length-1]!=="*"&&a[a.length-1]!=="splices"){if(a.length===0){if(!this.JSC$11073_setImpl)throw Error("ug");this.wasDefined||(this.wasDefined=b!==void 0);lh(function(){c.JSC$11073_setImpl(b)})}else{for(var d=eh(function(){return c.getWithPath([])}),e=0;e<a.length-1;e++){if(!d)return;
d=d[a[e]]}e=a[a.length-1];d&&(d[e]=b);this.wasDefined||(this.wasDefined=a.length>1||b!==void 0)}xMb(this,a,{pathComponents:a,value:b})}};
DG.prototype.notifyPath=function(a,b){a.length===0?b&&this.setWithPath(a,b.value):xMb(this,a,{pathComponents:a,value:b==null?void 0:b.value,fallbackWhenUndefined:b==null?void 0:b.value})};
var xMb=function(a,b,c,d){if(a.setMutationSignal){var e=++a.mutationIndex,g=[a.observedPath],k=a.observedPath,m;b.length===0&&(m=k);for(var n=0;n<b.length;n++){var r=k.subPaths[b[n]];if(!r)break;g.push(r);k=r;n===b.length-1&&(m=r)}for(b=!1;g.length;)k=g.shift(),k.data={index:e,mutation:c,spliceMutationIndex:d},b||(b=k===m),b&&g.push.apply(g,_.Be(Object.values(k.subPaths)));lh(function(){a.setMutationSignal(e)})}};
DG.prototype.notifySplices=function(a,b){var c=this,d=eh(function(){return c.getWithPath(a)}),e=[].concat(_.Be(a),["splices"]);
xMb(this,e,{pathComponents:e,value:{indexSplices:b}});if(d==null?0:d.length)b=this.mutationIndex,e=[].concat(_.Be(a),["length"]),xMb(this,e,{pathComponents:e,value:d.length},b)};
var yMb=function(a,b,c,d,e,g){a.notifySplices(c,[{index:d,addedCount:e,removed:g,object:b,type:"splice"}])},zMb=function(a,b){a=a.observedPath;
for(var c=0;c<b.length;c++){var d=b[c],e=a.subPaths[d];e||(e={pathComponents:b.slice(0,c+1),subPaths:{}},a.subPaths[d]=e);a=e}},BMb=function(a,b,c){zMb(a,b);
if(!a.getMutationSignal){var d=_.h(_.fh(a.mutationIndex,"QMrAub"));a.getMutationSignal=d.next().value;a.setMutationSignal=d.next().value}var e=a.getMutationSignal;return _.kh(function(){e();return c(AMb(a,b))},void 0,"ce54qf")};
DG.prototype.getChangeRecordSignal=function(a,b){var c=this,d=this.mutationIndex,e;return BMb(this,a,function(g){if(g&&g.index>d){var k=g.mutation;d=g.index;e=void 0}g=eh(function(){return c.getWithPath(a)});
if(k){var m=k.pathComponents[k.pathComponents.length-1],n=[].concat(_.Be(k.pathComponents));if(m==="splices"||m==="length")return{base:g,path:(b?[b].concat(_.Be(n)):n).join("."),value:k.value};var r=a.length>n.length?a:n,t;return{base:g!=null?g:k.fallbackWhenUndefined,path:(b?[b].concat(_.Be(r)):r).join("."),value:(t=eh(function(){return c.getWithPath(r)}))!=null?t:k.fallbackWhenUndefined}}e||(e={base:g,
path:(b?[b].concat(_.Be(a)):a).join("."),value:g});return e})};
DG.prototype.getSplicesSignal=function(a){var b=this.mutationIndex,c;return BMb(this,a,function(d){if(d&&d.index>b&&d.spliceMutationIndex!==b){var e=d.mutation;b=d.index;c=void 0}return e&&e.pathComponents[e.pathComponents.length-1]==="splices"?c=d=e.value:c})};
DG.prototype.getPathMutationSignal=function(a){var b=this;zMb(this,a);if(!this.getMutationSignal){var c=_.h(_.fh(this.mutationIndex,"tBKh7d"));this.getMutationSignal=c.next().value;this.setMutationSignal=c.next().value}var d=this.getMutationSignal,e=this.mutationIndex,g;return _.kh(function(){d();var k=AMb(b,a);if(k&&k.index>e&&k.mutation&&iLa(k.mutation.pathComponents,a)){var m=k.mutation;e=k.index}if(!g||e!==g.index){var n,r;k=(r=eh(function(){return b.getWithPath(a)}))!=null?r:(n=m)==null?void 0:
n.fallbackWhenUndefined;
g={index:e,value:k}}return g},void 0,"XXmDAf")};
var AMb=function(a,b){a=a.observedPath;b=_.h(b);for(var c=b.next();!c.done;c=b.next())a=a.subPaths[c.value];return a.data};
DG.prototype.pop=function(a){var b=this,c=eh(function(){return b.getWithPath(a)});
if(!(c instanceof Array))throw Error("vg");var d=c.length>0,e=c.pop();d&&yMb(this,c,a,c.length,0,[e]);return e};
DG.prototype.push=function(a){var b=_.Id.apply(1,arguments),c=this,d=eh(function(){return c.getWithPath(a)});
if(!(d instanceof Array))throw Error("wg");var e=d.length,g=d.push.apply(d,_.Be(b));b.length&&yMb(this,d,a,e,b.length,[]);return g};
DG.prototype.splice=function(a,b,c){var d=_.Id.apply(3,arguments),e=this,g=eh(function(){return e.getWithPath(a)});
if(!(g instanceof Array))throw Error("xg");b<0?b=g.length-Math.floor(-b):b&&(b=Math.floor(b));var k=g.splice.apply(g,[b,c].concat(_.Be(d)));(d.length||k.length)&&yMb(this,g,a,b,d.length,k);return k};
DG.prototype.unshift=function(a){var b=_.Id.apply(1,arguments),c=this,d=eh(function(){return c.getWithPath(a)});
if(!(d instanceof Array))throw Error("yg");var e=d.unshift.apply(d,_.Be(b));b.length&&yMb(this,d,a,0,b.length,[]);return e};var CMb=!0,DMb=!1,vNa=!1,EMb=!1,EG=!1,FMb=0;EMb=!1;FMb=0;CMb=!0;EG=DMb=vNa=!1;var FG=function(a,b,c){this.model=a;this.unknownSignalResolver=b;this.options=c;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];b=_.h(rLa());a=b.next().value;b=b.next().value;this.owner=a;this.disposeImpl=b};
FG.prototype.dispose=function(){if(!this.isDisposed){for(var a=_.h(this.childSignalProxies),b=a.next();!b.done;b=a.next())b.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var GMb=function(a,b){a=Sg(a.owner);try{b()}finally{Sg(a)}},HMb=function(a,b){var c={stack:[],
error:void 0,hasError:!1};try{_.Pr(c,_.Ug(a.owner)),b()}catch(d){c.error=d,c.hasError=!0}finally{_.Qr(c)}};
FG.prototype.effect=function(a){_.x("web_poly_si_remove_using")?GMb(this,function(){_.vh(a,"Vi5wCb")}):HMb(this,function(){_.vh(a,"iJbZff")})};
var IMb=function(a,b){a.options!=null||(a.options={});var c;(c=a.options).immutableProps!=null||(c.immutableProps=new Set);a.options.immutableProps.add(b)},EMa=function(a,b){b=""+b;
var c;if((c=a.model.__signalCache)==null?0:c.has(b))c=a.model.__signalCache.get(b),Array.isArray(c)&&IMb(a,b);var d,e,g;return(g=(d=a.options)==null?void 0:(e=d.immutableProps)==null?void 0:e.has(b))!=null?g:!1},JMb=function(a,b){var c;
a.unknownSignalResolver&&(c=a.unknownSignalResolver(b));var d,e;((d=a.options)==null?0:(e=d.immutableProps)==null?0:e.has(b))?c!=null||(c=new wMb(_.fh(a.model[b],"SYknZd"))):c!=null||(c=new DG(_.fh(a.model[b],"GCgq1e")));var g=a.model.hostElement;Object.defineProperty(a.model,b,{get:function(){OKa(g,b);return c.getWithPath([])},
set:function(k){or(g,b);a.setWithPath([b],k)},
configurable:!0});return c},yr=function(a,b){b=""+b;
var c=a.signalCache[b];if(c!==void 0)return c;c=!1;var d;if((d=a.model.__signalCache)==null?0:d.has(b))if(c=a.model.__signalCache.get(b),Array.isArray(c))c=!0,IMb(a,b);else return a.signalCache[b]=a.model.__signalCache.get(b).signal,a.signalCache[b];var e,g;d=(g=(e=a.options)==null?void 0:e.reactivityMode)!=null?g:0;var k,m;if(!((k=a.options)==null?0:(m=k.reactiveProps)==null?0:m.has(b))&&!c&&d===1)throw Error("zg`"+b);e=c?KMb(a,b):JMb(a,b);return a.signalCache[b]=e},KMb=function(a,b){var c=Object.getOwnPropertyDescriptor(a.model.constructor.prototype,
b),d=function(){return a.model[b]};
return new wMb(c&&c.get&&!c.set?d:[d,function(e){a.model[b]=e}])};
FG.prototype.getWithPath=function(a){var b=_.h(a);a=b.next().value;b=Og(b);OKa(this.model.hostElement,""+a);return yr(this,a).getWithPath(b)};
FG.prototype.setWithPath=function(a,b){if(a.length){or(this.model.hostElement,a.join("."));var c=_.h(a);a=c.next().value;c=Og(c);yr(this,a).setWithPath(c,b)}};
FG.prototype.getPathMutationSignal=function(a){var b=_.h(a);a=b.next().value;b=Og(b);return yr(this,a).getPathMutationSignal(b)};
FG.prototype.notifyPath=function(a,b){var c=_.h(a);a=c.next().value;c=Og(c);yr(this,a).notifyPath(c,b)};
var LMb=function(a,b){if(b.type==="literal")return function(){return{rootWasDefined:!0,value:b.value}};
var c=vr(b.path),d=_.h(c),e=d.next().value;d=Og(d);var g,k;if(b.type==="path"&&(c.length===1||((g=a.options)==null?0:(k=g.immutableProps)==null?0:k.has(e))))return function(){var u=a.getWithPath(c.slice(0,1)),w=wr(u,c.slice(1));u=u!==void 0;EG&&(u=yr(a,c[0]).wasDefined);return{rootWasDefined:u,value:w}};
var m=yr(a,e);if(b.type==="path"){var n=m.getPathMutationSignal(d);return function(){var u=EG?m.wasDefined:Ah(a.owner,function(){return m.getWithPath([])})!==void 0;
var w,A=(w=n())==null?void 0:w.value;return{rootWasDefined:u,value:A}}}if(b.type==="splices"){var r=m.getSplicesSignal(d);
return function(){var u=r();return{rootWasDefined:EG?m.wasDefined:u!==void 0,value:u}}}var t=m.getChangeRecordSignal(d,""+e);
return function(){var u=t();return{rootWasDefined:EG?m.wasDefined:u!==void 0,value:u}}},oLa=function(a,b,c){var d=c.map(function(m){return LMb(a,m)}),e=c.length===0,g=[],k=c.length!==1||c[0].type!=="path"?!1:!0;
a.effect(function(){for(var m=d.length,n=[],r=!!g.length,t=0;t<m;t++){var u=d[t](),w=u.rootWasDefined;u=u.value;e||(e=w);n[t]=u;k&&(n[t+m]=r?g[t]:n[t],g[t]=u)}e&&Ah(a.owner,function(){return void b.apply(null,_.Be(n))})})},jLa=function(a,b,c,d,e){var g=yr(a,b);
e!==void 0&&g.setWithPath([],e);oLa(a,function(){var k=_.Id.apply(0,arguments);or(a.model.hostElement,b,!0);g.setWithPath([],c.apply(null,_.Be(k)))},d)};
FG.prototype.arrayPush=function(a){var b=_.Id.apply(1,arguments),c=_.h(a),d=c.next().value;c=Og(c);d=yr(this,d);return d.push.apply(d,[c].concat(_.Be(b)))};
FG.prototype.arraySplice=function(a,b,c){var d=_.Id.apply(3,arguments),e=_.h(a),g=e.next().value;e=Og(e);g=yr(this,g);return g.splice.apply(g,[e,b,c].concat(_.Be(d)))};
FG.prototype.arrayUnshift=function(a){var b=_.Id.apply(1,arguments),c=_.h(a),d=c.next().value;c=Og(c);d=yr(this,d);return d.unshift.apply(d,[c].concat(_.Be(b)))};
FG.prototype.notifySplices=function(a,b){var c=_.h(a);a=c.next().value;c=Og(c);yr(this,a).notifySplices(c,b)};var xLa=/([^\s]+?)\(([\s\S]*)\)/,uLa=/\.([^.]+)$/,zLa=/\\,/g,sLa=/&comma;/g,tLa=/\\(.)/g,yLa=[],vLa={"*":"wildcard",splices:"splices"};var JLa=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"),FLa=/[A-Z]/,MMb=["class","hidden","id","on-dom-change"],LLa=new Set([].concat(_.Be(MMb),
["if","notify-dom-change","restamp"])),MLa=new Set([].concat(_.Be(MMb),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),NLa=new Set(["restamp"]);var vMa=Symbol(),CMa=window;var LMa=window;var SMa=0,OMa=0,zr=[],RMa=0,NMa=!1,QMa=document.createTextNode("");(new window.MutationObserver(PMa)).observe(QMa,{characterData:!0});var Br=new Map,Ar=0,NMb=function(a){this.mappedHandleId=a},UMa=function(a,b,c,d){this.mappedHandleId=a;
var e=this;this.mappedHandleId=a;this.callback=b;this.waitTime=c;this.schedulerPriority=d;this.handleId=_.zk.addJob(function(){e.callback();Br.delete(e.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.z(UMa,NMb);UMa.prototype.cancel=function(){_.zk.cancelJob(this.handleId);Br.delete(this.mappedHandleId)};
var VMa=function(a,b){this.mappedHandleId=a;var c=this;this.mappedHandleId=a;this.callback=b;this.handleId=TMa(function(){c.callback();Br.delete(c.mappedHandleId)})};
_.z(VMa,NMb);VMa.prototype.cancel=function(){var a=this.handleId-OMa;a<0||zr.length<=a||(zr[a]=null);Br.delete(this.mappedHandleId)};var ZMa=function(){};
ZMa.prototype.cancel=function(){this.jobHandle!==void 0&&(WMa(this.jobHandle),this.jobHandle=void 0)};
ZMa.prototype.run=function(a,b,c){var d=this;this.cancel();this.callback=a;this.jobHandle=_.Cr(function(){a();d.callback=void 0},b,c)};
ZMa.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var XMa=new WeakMap;var OMb=cC(function(a){for(var b=a,c=0;c<3;c++)b=Object.getPrototypeOf(b);delete b.prototype.connectedCallback;var d=function(){return a.apply(this,arguments)||this};
_.z(d,a);d.prototype._attachDom=function(e){if(!e)return null;var g=(0,_.br)(this.hostElement);g.attachShadow({mode:"open",shadyUpgradeFragment:e});g.shadowRoot.appendChild(e);return g.shadowRoot};
d.prototype._takeAttributes=function(){for(var e=this.hostElement.attributes,g=0;g<e.length;g++){var k=e[g],m=void 0,n=void 0;(n=(m=this).__attributeReaction)==null||n.call(m,k.name,null,k.value)}};
d.prototype._readyClients=function(){a.prototype._readyClients.call(this);this.root=this};
d.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);a.prototype.connectedCallback.call(this)};
_.Vm.Object.defineProperties(d,{template:{configurable:!0,enumerable:!0,get:function(){return d.prototype._template}}});
return d}),PMb=cC(function(a){var b=function(){return a.apply(this,arguments)||this};
_.z(b,a);b.prototype.created=function(){if(this.__notifyEffects)for(var c=_.h(Object.values(this.__notifyEffects)),d=c.next();!d.done;d=c.next()){d=_.h(d.value);for(var e=d.next();!e.done;e=d.next())e.value.fn=cNa}if(this.__reflectEffects)for(c=_.h(Object.values(this.__reflectEffects)),d=c.next();!d.done;d=c.next())for(d=_.h(d.value),e=d.next();!e.done;e=d.next())e.value.fn=dNa};
b.prototype._addEventListenerToNode=function(c,d,e){c=Er(c);Cm(c,d,e)||a.prototype._addEventListenerToNode.call(this,c,d,e)};
b.prototype._removeEventListenerFromNode=function(c,d,e){c=Er(c);Dm(c,d,e)||a.prototype._removeEventListenerFromNode.call(this,c,d,e)};
b.prototype._propertiesChanged=function(c,d,e){if(this.__dataToNotify&&this.__notifyEffects)for(var g=_.h(Object.keys(this.__dataToNotify)),k=g.next();!k.done;k=g.next()){k=k.value;var m=bNa(k);this.__notifyEffects[m]||delete this.__dataToNotify[k]}else this.__dataToNotify=null;a.prototype._propertiesChanged.call(this,c,d,e)};
b.prototype.fire=function(c,d,e){d=d===void 0?{}:d;var g;return _.go(Er((g=e==null?void 0:e.node)!=null?g:this),c,d,e)};
b.prototype._ensureAttribute=function(c,d){var e=Er(this);e.hasAttribute(c)||xr(e,d,c)};
b.prototype.isLightDescendant=function(c){var d=Er(this);return Er(d)!==c&&_.E(d).contains(c)&&_.E(d).getRootNode()===_.E(c).getRootNode()};
return b});
_.CD.ready=function(){var a;((a=this.hostElement)!=null?a:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var b;((b=this.hostElement)!=null?b:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.KD._subscribeIronResize=function(a){var b;((b=a.hostElement)!=null?b:a).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.KD._unsubscribeIronResize=function(a){var b;((b=a.hostElement)!=null?b:a).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var gNa=[Array,Boolean,Date,Number,Object,String],Gr=function(a,b,c,d){this.polySiInfo=a;this.polySiParams=b;this.polySiContext=c;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;d||this instanceof HTMLElement&&(d=this);if(!d)throw Error("Gg");this.allowedProps=b.allowedProps;this.hostElement=d;this.is=a.is;this.upgradeDisabled=!!b.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");a=new Set(b.reactiveSchemas.filter(function(e){return e.type!==
"observe"}).map(function(e){return e.propertyKey}));
this.signalProxy=new FG(this,void 0,{reactiveProps:a,reactivityMode:b.reactivityMode});this.__dataHasAccessor={};b=_.h(b.reactiveSchemas);for(a=b.next();!a.done;a=b.next())a=a.value,a.type==="signal"&&(this.__dataHasAccessor[a.propertyKey]=!0);this.upgradeDisabled||QMb(this)};
Gr.prototype.getExtraMethodsToForward=function(){return[]};
var QMb=function(a){a.polySiContext.didRegister||(a.registered(),a.polySiContext.didRegister=!0);a.polySiContext.finalizedTemplate||(a.polySiContext.finalizedTemplate={},a.polySiParams.templateGetter&&(a.polySiContext.finalizedTemplate.processedTemplate=MMa(a.polySiParams.templateGetter,a.polySiParams.is)));RMb(a);var b=a.hostElement;b.loggingStatus!=null||(b.loggingStatus={});b.loggingStatus.isInitializing=!0;eh(function(){return void a.created()});
b.loggingStatus.isInitializing=!1;a.isPolySiElementConnected&&SMb(a)},SMb=function(a){a.didCallReady||(eh(function(){return void a.ready()}),a.didCallReady=!0);
a.isAttached=!0;a.attached()};
_.f=Gr.prototype;_.f.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||SMb(this)};
_.f.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.f.attributeChangedCallback=function(a,b,c){if(this.upgradeDisabled)a==="disable-upgrade"&&c===null&&(this.upgradeDisabled=!1,QMb(this));else if(b!==c){var d=_.qn(a),e=this.polySiContext.typesForSignals[d];if(e){switch(e){case Object:try{var g=JSON.parse(c)}catch(m){g=c}break;case Array:try{g=JSON.parse(c)}catch(m){g=null}break;case Date:g=isNaN(c)?String(c):Number(c);g=new Date(g);break;case Boolean:g=c!==null;break;case Number:g=Number(c);break;default:g=c}this[d]=g}d=_.h(this.polySiParams.behaviors);
for(e=d.next();!e.done;e=d.next())g=void 0,(g=e.value.attributeChanged)==null||g.call(this,a,b,c);var k;(k=this.attributeChanged)==null||k.call(this,a,b,c)}};
_.f.attributeChangedCallbackWrapper=function(a,b,c){this.attributeChangedCallback(a,b,c)};
_.f.setPropertiesFromInitialAttributeValues=function(){for(var a=0;a<this.hostElement.attributes.length;a++){var b=this.hostElement.attributes[a];(b.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(b.name))&&this.attributeChangedCallback(b.name,null,b.value)}};
_.f.created=function(){this.provide=this.polySiParams.provide;var a;(a=this.initializeInjection)==null||a.call(this);a=_.h(this.polySiParams.reactiveSchemas);for(var b=a.next();!b.done;b=a.next())b=b.value,b.type==="signal"&&(this.mutablePropNames.add(b.propertyKey),yr(this.signalProxy,b.propertyKey));fNa(this,this.polySiInfo,this.polySiParams.behaviors);a=_.h(this.polySiParams.reactiveSchemas);for(b=a.next();!b.done;b=a.next())b=b.value,b.type==="signal"&&b.value!==void 0&&(this.signalProxy.model[b.propertyKey]=
typeof b.value==="function"?b.value.call(this):b.value);if(this.polySiParams.signalProperties)for(a=_.h(this.polySiParams.signalProperties),b=a.next();!b.done;b=a.next()){b=b.value;var c=void 0;((c=this.__signalCache)==null?0:c.has(b))||(this.signalProxy.model[b]=void 0)}EMb||TMb(this);eNa(this);a=_.h(this.polySiParams.behaviors);for(b=a.next();!b.done;b=a.next())c=void 0,(c=b.value.created)==null||c.call(this);var d;(d=this.polySiInfo.created)==null||d.call(this)};
_.f.registered=function(){var a=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var b=Object.getPrototypeOf(this);b.addReactiveSchema=function(m){a.polySiParams.reactiveSchemas.push(m)};
for(var c=_.h(this.polySiParams.behaviors),d=c.next();!d.done;d=c.next()){var e=void 0;(e=d.value.beforeRegister)==null||e.call(b)}var g;(g=this.polySiInfo.beforeRegister)==null||g.call(b);b.addReactiveSchema=iNa;c=_.h(this.polySiParams.behaviors);for(d=c.next();!d.done;d=c.next())e=void 0,(e=d.value.registered)==null||e.call(b);var k;(k=this.polySiInfo.registered)==null||k.call(b)};
_.f.ready=function(){var a;(a=this.beforeReady)==null||a.call(this);EMb&&TMb(this);var b;if(a=(b=this.polySiContext.finalizedTemplate)==null?void 0:b.processedTemplate){a=KMa(a.template,a.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:a.hasInsertionPoint,thisCtx:this});b=a.nodesById;a=a.root;var c=(0,_.br)(this.hostElement);if(!c.attachShadow)throw Error("zd");c.shadowRoot||(c.attachShadow({mode:"open",shadyUpgradeFragment:a}),c.shadowRoot.appendChild(a));this.root=c.shadowRoot;
this.$=b}UMb(this);b=_.h(this.polySiParams.behaviors);for(a=b.next();!a.done;a=b.next())c=void 0,(c=a.value.ready)==null||c.call(this);var d;(d=this.polySiInfo.ready)==null||d.call(this)};
_.f.attached=function(){for(var a=_.h(this.polySiParams.behaviors),b=a.next();!b.done;b=a.next()){var c=void 0;(c=b.value.attached)==null||c.call(this)}var d;(d=this.polySiInfo.attached)==null||d.call(this)};
_.f.detached=function(){for(var a=_.h(this.polySiParams.behaviors),b=a.next();!b.done;b=a.next()){var c=void 0;(c=b.value.detached)==null||c.call(this)}var d;(d=this.polySiInfo.detached)==null||d.call(this)};
var RMb=function(a){for(var b=_.h(a.polySiParams.behaviors),c=b.next();!c.done;c=b.next())if(c=c.value,c.listeners)for(var d in c.listeners)JMa(a,a.hostElement,d,c.listeners[d]);if(a.polySiInfo.listeners)for(var e in a.polySiInfo.listeners)JMa(a,a.hostElement,e,a.polySiInfo.listeners[e])},JMa=function(a,b,c,d,e){a=hLa(a,d,e);
Cm(b,c,a)||b.addEventListener(c,a);return a},TMb=function(a){for(var b=_.h(a.polySiParams.reactiveSchemas),c=b.next();!c.done;c=b.next())c=c.value,c.type==="compute"||c.type==="computeWithMethod"?kLa(a.signalProxy,c,a):c.type==="redux"?nLa(a.signalProxy,c,a.store):c.type==="signal"&&c.readOnly&&mLa(a.signalProxy,c)},UMb=function(a){for(var b=_.h(a.polySiParams.reactiveSchemas),c=b.next(),d={};!c.done;d={schema$jscomp$12:void 0},c=b.next())d.schema$jscomp$12=c.value,d.schema$jscomp$12.type==="notify"?
pLa(a.signalProxy,d.schema$jscomp$12,a.hostElement):d.schema$jscomp$12.type==="observe"?qLa(a.signalProxy,d.schema$jscomp$12,a):d.schema$jscomp$12.type==="reflect"&&a.signalProxy.effect(function(g){return function(){var k=a.signalProxy.getWithPath([g.schema$jscomp$12.propertyKey]);
BLa(a.hostElement,g.schema$jscomp$12.propertyKey,k)}}(d));
if(a.reflectedAttributes)for(b=_.h(Object.entries(a.reflectedAttributes)),d=b.next(),c={};!d.done;c={key$jscomp$866:void 0,value$jscomp$8494:void 0},d=b.next()){var e=_.h(d.value);d=e.next().value;e=e.next().value;c.key$jscomp$866=d;c.value$jscomp$8494=e;a.signalProxy.effect(function(g){return function(){BLa(a.hostElement,g.key$jscomp$866,(0,g.value$jscomp$8494)())}}(c))}};
_.f=Gr.prototype;_.f._setPendingProperty=function(a,b){this.set(a,b);return!1};
_.f._enableProperties=function(){};
_.f._setPendingPropertyOrPath=function(a,b){this.notifyPath(a,b);return!1};
_.f._addPropertyEffect=function(){};
_.f._stampTemplate=function(){throw Error("Hg");};
_.f.fire=function(a,b,c){b=b===void 0?{}:b;c=c===void 0?{}:c;var d,e,g={bubbles:(d=c.bubbles)!=null?d:!0,cancelable:!!c.cancelable,composed:(e=c.composed)!=null?e:!0},k;return _.go(jNa((k=c.node)!=null?k:this.hostElement),a,b,g)};
_.f.get=function(a,b){var c=vr(a);return b?wr(b,c):a==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(c)};
_.f.linkPaths=function(){};
_.f.listen=function(a,b,c){a=jNa(a);this.boundListeners!=null||(this.boundListeners=new WeakMap);var d=this.boundListeners.get(a);d||(d={},this.boundListeners.set(a,d));var e=b+c;d[e]||(d[e]=JMa(this,a,b,c))};
_.f.notifyPath=function(a,b){this.signalProxy.notifyPath(vr(a),arguments.length===2?{value:b}:void 0)};
_.f.canNotifyPath=function(a){var b,c;return this.mutablePropNames.has(a)&&!((b=this.signalProxy.options)==null?0:(c=b.immutableProps)==null?0:c.has(a))};
_.f.notifySplices=function(a,b){this.signalProxy.notifySplices(vr(a),b)};
_.f.pop=function(a){var b=this.signalProxy;a=vr(a);var c=_.h(a);a=c.next().value;c=Og(c);return yr(b,a).pop(c)};
_.f.push=function(a){var b=_.Id.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[vr(a)].concat(_.Be(b)))};
_.f.set=function(a,b,c){if(c)throw Error("Ig");a==="hidden"?this.hostElement.hidden=!!b:this.signalProxy.setWithPath(vr(a),b)};
_.f.setProperties=function(a){a=_.h(Object.entries(a));for(var b=a.next();!b.done;b=a.next()){var c=_.h(b.value);b=c.next().value;c=c.next().value;this[b]=c}};
_.f.splice=function(a,b,c){var d=_.Id.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[vr(a),b,c].concat(_.Be(d)))};
_.f.unlinkPaths=function(){};
_.f.unlisten=function(a,b,c){a=jNa(a);if(this.boundListeners){var d=this.boundListeners.get(a);if(d){c=b+c;var e=d[c];e&&(Dm(a,b,e)||a.removeEventListener(b,e),delete d[c])}}};
_.f.unshift=function(a){var b=_.Id.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[vr(a)].concat(_.Be(b)))};
_.Vm.Object.defineProperties(Gr.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 uNa=[Array,Boolean,Date,Number,Object,String];var xNa=!1;var GG=function(){var a=HTMLElement.apply(this,arguments)||this;a.restamp=!1;a.notifyDomChange=!1;a.JSC$11185_didCallConnected=!1;a.JSC$11185_renderDebouncer=null;a.disableTemplateUpdateSignalImpl=Hr()?void 0:_.fh(!1,"bmozBd");var b;a.getDisableTemplateUpdate=(b=a.disableTemplateUpdateSignalImpl)==null?void 0:b[0];var c;a.setDisableTemplateUpdate=(c=a.disableTemplateUpdateSignalImpl)==null?void 0:c[1];return a};
_.z(GG,HTMLElement);var VMb=function(a){a.conditionSignalImpl!=null||(a.conditionSignalImpl=new DG(_.fh(!1,"NYV5Rb")));return a.conditionSignalImpl};
_.f=GG.prototype;_.f.showHideChildren=function(a){WMb(this,a,this.if)};
_.f.attributeChangedCallback=function(a,b,c){if(this.JSC$11185_didCallConnected)throw Error("Mg`"+a);a==="notify-dom-change"?this.notifyDomChange=c!==null:a==="restamp"&&(this.restamp=c!==null)};
_.f.debounceRender=function(){this.JSC$11185_renderDebouncer=_.nC(this.JSC$11185_renderDebouncer,Fm,this.JSC$11185_renderImpl.bind(this));_.oC(this.JSC$11185_renderDebouncer)};
_.f.disconnectedCallback=function(){var a=(0,_.br)(this).parentNode;(!a||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in a&&!a.host)&&XMb(this)};
_.f.connectedCallback=function(){var a=this;this.JSC$11185_didCallConnected=!0;CMb?yNa():this.style.display="none";this.parentSignalProxy.effect(function(){VMb(a).getWithPath([]);a.debounceRender()})};
_.f.render=function(){_.sC()};
_.f.JSC$11185_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var a=this.if;if(a){a:{var b=(0,_.br)(this).parentNode;if(this.hasInstance()){var c=this.instance.children;if((c==null?0:c.length)&&(0,_.br)(this).previousSibling!==c[c.length-1])for(var d=0;d<c.length;d++)(0,_.br)(b).insertBefore(c[d],this)}else{if(!b){b=!1;break a}YMb(this,b)}b=!0}if(!b)return}else this.restamp&&XMb(this);WMb(this,!1,a);a&&ZMb(this);DMb&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",
{bubbles:!0,composed:!0}))}};
_.f.hasInstance=function(){return!!this.instance};
var YMb=function(a,b){var c=a.parentSignalProxy;if(Hr()){var d=_.h(_.fh(!0,"tGD1cf"));var e=d.next().value;d=d.next().value;c=a.parentSignalProxy}else{var g;var k=new FG((g=$Mb(a))!=null?g:{},function(n){var r=yr(a.parentSignalProxy,n).getChangeRecordSignal([]);n=_.fh(void 0,"dOaz1b");var t=new DG(n);k.effect(function(){if(a.getDisableTemplateUpdate&&!a.getDisableTemplateUpdate()){var u=r();t.notifyPath(vr(u.path),{value:u.value})}});
return t});
a.parentSignalProxy.childSignalProxies.push(k);var m=c=k}g=KMa(a.templateInfo,a.templateInfo.nodeInfoList,c,{eventListenerHost:a.eventListenerHost,hasInsertionPoint:a.templateInfo.hasInsertionPoint,thisCtx:a.eventListenerHost,enabledSignal:Hr()?e:void 0,scope:a.parentScope,getModel:function(){return a.parentScope?zNa(c.owner,a.parentScope):$Mb(a)}}).root;
a.instance={root:g,children:[],hidden:!1,signalProxy:m,getTemplateUpdatesEnabled:e,setTemplateUpdatesEnabled:d};m=_.h(g.childNodes);for(e=m.next();!e.done;e=m.next())a.instance.children.push(e.value);(0,_.br)(b).insertBefore(a.instance.root,a)},$Mb=function(a){if((a=a.parentSignalProxy.model)&&!a.hostElement){var b={},c;
for(c in a)a.hasOwnProperty(c)&&(b[c]=a[c]);return b}},XMb=function(a){if(a.instance){var b=a.instance.children;
if(b.length){var c=(0,_.br)(b[0]).parentNode;if(c){c=(0,_.br)(c);for(var d=0;d<b.length;d++)c.removeChild(b[d])}}Hr()?a.instance.setTemplateUpdatesEnabled(!1):a.instance.signalProxy.dispose();a.instance=void 0}},WMb=function(a,b,c){b=b||!c;
a.instance&&a.instance.hidden!==b&&(a.instance.hidden=b,wNa(b,a.instance.children))},ZMb=function(a){if(Hr()){var b=a.instance;
b&&Ah(a.parentSignalProxy.owner,function(){return!b.getTemplateUpdatesEnabled()})&&b.setTemplateUpdatesEnabled(!0)}else a.setDisableTemplateUpdate(!1)};
_.Vm.Object.defineProperties(GG.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var a=this;return Ah(this.parentSignalProxy.owner,function(){return VMb(a).getWithPath([])})},
set:function(a){a||(Hr()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));VMb(this).setWithPath([],!!a)}}});
_.Vm.Object.defineProperties(GG,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",GG);var aNb=[],HG=function(){var a=HTMLElement.apply(this,arguments)||this;a.as="item";a.indexAs="index";a.itemsIndexAs="itemsIndex";a.targetFramerate=20;a.notifyDomChange=!1;a.isDetached=!1;a.JSC$11192_renderDebouncer=null;a.instances=[];a.chunkingId=null;a.chunkCount=null;a.shouldMeasureChunk=!1;a.shouldContinueChunking=!1;a.renderStartTime=null;a.JSC$11192_didCallConnected=!1;return a};
_.z(HG,HTMLElement);var bNb=function(a){a.itemSignalImpl!=null||(a.itemSignalImpl=new DG(_.fh(aNb,"uvlPIb")));return a.itemSignalImpl},cNb=function(a,b){Array.isArray(b)||(b=aNb);
bNb(a).setWithPath([],b)};
_.f=HG.prototype;_.f.showHideChildren=function(a){for(var b=_.h(this.instances),c=b.next();!c.done;c=b.next())wNa(a,c.value.children)};
_.f.notifyPath=function(a,b){a=vr(a);a[0]==="items"&&(a.length===1?cNb(this,b):bNb(this).setWithPath(a.slice(1),b))};
_.f.canNotifyPath=function(a){return a==="items"};
_.f.attributeChangedCallback=function(a,b,c){if(this.JSC$11192_didCallConnected)throw Error("Ng`"+a);a==="as"?this.as=c:a==="index-as"?this.indexAs=c:a==="items-index-as"?this.itemsIndexAs=c:a==="initial-count"?this.initialCount=Number(c):a==="notify-dom-change"?this.notifyDomChange=c!==null:a==="target-framerate"&&(this.targetFramerate=Number(c))};
_.f.disconnectedCallback=function(){this.isDetached=!0;for(var a=0;a<this.instances.length;a++)dNb(this,a);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.f.connectedCallback=function(){var a=this,b=bNb(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var e=b(),g=vr(e.path);if(g[0]===void 0||g[0]==="splices"||g[0]==="length")a.debounceRender();else{var k=g[0];if(k=a.instances[typeof k==="string"?Math.floor(Number(k)):k])k.type==="legacy"?(g=[a.as].concat(_.Be(g.slice(1))),k.signalProxy.notifyPath(g,e)):(g=g.slice(1),k.itemSignal.notifyPath(g,e))}});
this.JSC$11192_didCallConnected=!0;CMb?yNa():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var c=(0,_.br)((0,_.br)(this).parentNode),d=0;d<this.instances.length;d++)c.insertBefore(this.instances[d].root,this);this.chunkingId&&this.render()}};
_.f.debounceRender=function(){this.JSC$11192_renderDebouncer=_.nC(this.JSC$11192_renderDebouncer,Fm,this.JSC$11192_renderImpl.bind(this));_.oC(this.JSC$11192_renderDebouncer)};
_.f.render=function(){this.debounceRender();_.sC()};
_.f.JSC$11192_renderImpl=function(){var a=this,b=this.items,c=eNb(this,b.length);fNb(this,b,c);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){a.chunkingId=null;if(a.shouldMeasureChunk){var d=performance.now()-a.renderStartTime;a.chunkCount=Math.round(Math.ceil(1E3/a.targetFramerate)/d*a.chunkCount)||1}a.shouldContinueChunking&&a.debounceRender()}));
DMb&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
var eNb=function(a,b){var c=b,d=a.instances.length;if(a.initialCount){if(a.chunkCount){var e=Math.min(Math.max(b-d,0),a.chunkCount);c=Math.min(d+e,b)}else c=Math.min(b,a.initialCount),e=Math.max(c-d,0),a.chunkCount=e||1;a.shouldMeasureChunk=e===a.chunkCount;a.shouldContinueChunking=c<b;a.renderStartTime=performance.now()}return c},fNb=function(a,b,c){for(var d=0;d<c;d++){var e=a.instances[d],g=b[d];
e?e.type==="legacy"?(e.signalProxy.setWithPath([a.as],g),e.signalProxy.setWithPath([a.indexAs],d)):(e.itemSignal.setWithPath([],g),e.setIndex(d)):gNb(a,g,d)}for(b=a.instances.length-1;b>=d;b--)c=a,e=b,dNb(c,e),c=_.h(c.instances.splice(e,1)).next().value,c.type==="legacy"?c.signalProxy.dispose():c.setDisabled()},dNb=function(a,b){a=a.instances[b];
b=(0,_.br)(a.root);for(var c=0;c<a.children.length;c++)b.appendChild(a.children[c])},gNb=function(a,b,c){var d={};
d=Object.assign({},hNb(a),(d[a.as]=b,d[a.indexAs]=c,d[a.itemsIndexAs]=c,d));if(_.x("dom_repeat_use_ambient_signals")||_.x("creator_dom_repeat_use_ambient_signals")){b=new DG(_.fh(b,"g83Pb"));var e=_.h(_.fh(c,"tQRdod"));d=e.next().value;e=e.next().value;var g=_.h(ANa());var k=g.next().value,m=g.next().value;g={};var n={parentScope:a.parentScope,signals:(g[a.as]={type:"mutable",signal:b},g[a.indexAs]={type:"signal",getter:d},g[a.itemsIndexAs]={type:"signal",getter:d},g)};g=KMa(a.templateInfo,a.templateInfo.nodeInfoList,
a.parentSignalProxy,{eventListenerHost:a.eventListenerHost,getModel:function(){return zNa(a.parentSignalProxy.owner,n)},
hasInsertionPoint:a.templateInfo.hasInsertionPoint,thisCtx:a.eventListenerHost,methodInvocationRequirement:FMb,enabledSignal:function(){return(a.stampingEnabled===void 0||a.stampingEnabled())&&k()},
scope:n}).root;b={type:"ambientSignal",root:g,children:[],itemSignal:b,getIndex:d,setIndex:e,getEnabled:k,setDisabled:m}}else{var r=new FG(d,function(t){if(t!==a.as&&t!==a.indexAs){if(t===a.itemsIndexAs)return yr(r,a.indexAs);var u=yr(a.parentSignalProxy,t).getChangeRecordSignal([]);t=_.fh(void 0,"UobVm");var w=new DG(t);r.effect(function(){var A=u();w.notifyPath(vr(A.path),{value:A.value})});
return w}});
a.parentSignalProxy.childSignalProxies.push(r);g=KMa(a.templateInfo,a.templateInfo.nodeInfoList,r,{eventListenerHost:a.eventListenerHost,getModel:function(){var t={};return Object.assign({},hNb(a),(t[a.as]=r.model[a.as],t[a.indexAs]=r.model[a.indexAs],t[a.itemsIndexAs]=r.model[a.indexAs],t))},
hasInsertionPoint:a.templateInfo.hasInsertionPoint,thisCtx:a.eventListenerHost,methodInvocationRequirement:FMb,enabledSignal:a.stampingEnabled}).root;b={type:"legacy",root:g,children:[],signalProxy:r}}d=_.h(g.childNodes);for(e=d.next();!e.done;e=d.next())b.children.push(e.value);d=(d=a.instances[c+1])?d.children[0]:a;(0,_.br)((0,_.br)(a).parentNode).insertBefore(b.root,d);a.instances[c]=b},hNb=function(a){if((a=a.parentSignalProxy.model)&&!a.hostElement){var b={},c;
for(c in a)a.hasOwnProperty(c)&&(b[c]=a[c]);return b}};
HG.prototype.itemForElement=function(a){var b=this,c=this.instances.find(function(d){return d.children.includes(a)});
if(c)return Ah(this.parentSignalProxy.owner,function(){return c.type==="legacy"?c.signalProxy.getWithPath([b.as]):c.itemSignal.getWithPath([])})};
HG.prototype.indexForElement=function(a){var b=this.instances.findIndex(function(c){return c.children.includes(a)});
return b>=0?b:void 0};
_.Vm.Object.defineProperties(HG.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var a=this;return Ah(this.parentSignalProxy.owner,function(){return bNb(a).getWithPath([])})},
set:function(a){cNb(this,a)}},
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}}});
_.Vm.Object.defineProperties(HG,{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",HG);var iNb,jNb;_.IG=new _.fB("STATE_STORE_TOKEN");iNb=new _.fB("SELECT_TOKEN");jNb=new _.fB("DISPATCH_TOKEN");var GNa={getSelectFn:function(){var a;return(a=_.v().resolve(_.Wi(iNb)))!=null?a:BNa},
getDispatchFn:function(){var a;return(a=_.v().resolve(_.Wi(jNb)))!=null?a:_.Ir().dispatch.bind(_.Ir())},
getAppStore:function(){return _.v().resolve(_.IG)}},CNa,FNa=!1;var INa=[],JNa=!1;var QNa=void 0;var kNb=function(){};
kNb.prototype.hasAttribute=function(a){if(a==="dir")return!1;if(a==="disable-upgrade"){var b,c;return(c=(b=this.hostElement)==null?void 0:b.hasAttribute("disable-upgrade"))!=null?c:!1}throw Error("Og`"+a);};
kNb.prototype.attributeChangedCallbackWrapper=function(a,b,c){if(a==="disable-upgrade"&&this.__isUpgradeDisabled&&c===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var d;((d=this.hostElement)!=null?d:this).isConnected&&this.connectedCallback()}else b===c||this.__isReflecting||this.attributeChangedCallback(a,b,c)};
kNb.prototype.getExtraMethodsToForward=function(){for(var a=this,b=[],c=_.h(lNb),d=c.next(),e={};!d.done;e={tagName$jscomp$51:void 0,name$jscomp$531:void 0},d=c.next())e.name$jscomp$531=d.value,d=void 0,e.name$jscomp$531==="_setPendingProperty"?(e.tagName$jscomp$51=this.hostElement.tagName.toLowerCase(),d=function(g){return function(k,m,n){nr(g.tagName$jscomp$51,k,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return a._setPendingProperty(k,m,n)}}(e)):d=function(g){return function(){return a[g.name$jscomp$531].apply(a,
_.Be(_.Id.apply(0,arguments)))}}(e),b.push([e.name$jscomp$531,
d]);return b};
for(var UNa=PMb(OMb((0,_.BC)(kNb))),YNa=["disabled","disable-upgrade"],mNb=(0,_.BC)(function(){}),nNb=new Set(Object.getOwnPropertyNames(mNb.prototype)),cOa=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.Be(nNb))),$Na=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),lNb=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),oNb=new Set([].concat(_.Be($Na),_.Be(lNb),_.Be(nNb))),pNb=_.h(oNb),qNb=pNb.next();!qNb.done;qNb=pNb.next())KKa.add(qNb.value);var bOa={created:function(){eNa(this);this.initializeInjection()}};var lOa=!1,Vr=window.ShadyDOM,tOa=["appendChild","insertBefore","removeChild","replaceChild"],sOa=[Node];Vr&&sOa.push(Vr.Wrapper);var yOa,zOa,COa={};var Yr=new Set,Wr="",DOa="";var Xr,Zr=new Set;var MOa=new Set("context didCallReady is info params signalProxy".split(" ")),OOa="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),POa="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var rNb=function(){return _.ir.apply(this,arguments)||this};
_.z(rNb,_.ir);_.Vm.Object.defineProperties(rNb.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return mMb}}});
var sNb=rNb;sNb=_.U([_.jr()],sNb);_.JG=[BG.prototype,sNb.prototype];_.KG={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var a=this,b={};setTimeout(function(){var c;return _.go((c=a.hostElement)!=null?c:a,"yt-live-chat-add-tooltip-target",b)},0);
this.handler_=b.handler},
detached:function(){if(this.handler_){var a;this.handler_.removeElementFromSupportingTooltips((a=this.hostElement)!=null?a:this)}this.handler_=null}}};_.gs=new _.fB("ICON_MANAGER_TOKEN");var tNb=[48,20,18,16,15,13,12],nPa=new Map,hPa=new Set,ePa=new Set,gPa=new Set,dPa=new Set,fPa=new Set,jPa=new Promise(function(a){var b=!1,c=!1,d=!1,e=[],g=function(k){if("detail"in k)if(k=k.detail,k.name==="yt-icons")iPa(k),b=!0;else if(k.name==="yt-sys-icons")iPa(k),c=!0;else{var m;((m=k.name)==null?0:m.includes("yt-sys-icons"))&&k.size!==24&&(iPa(k,!0),e.push(k.size),e.length===tNb.length&&(d=!0))}b&&c&&d&&(window.removeEventListener("iron-iconset-added",g),a())};
window.addEventListener("iron-iconset-added",g)}),lPa=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"]]);_.LG={};_.LG.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.Vp,computeHref_:function(a,b){b=b===void 0?!1:b;if(!a||a.commandExecutorCommand)return null;var c=qua(a,b);return b||c!==null?c?_.x("enable_polymer_resin")?_.Gd(c).toString():c:null:(_.Dl(new _.qj("computeHref was null",this.is,a)),null)},
computeOptionalHref_:function(a){return this.computeHref_(a,!0)},
computeNofollow_:function(a){return a?hua(a)?"nofollow":null:null},
computeIcon_:function(a){return a&&a.iconType?_.fs(a.iconType):""},
resolveCommand:function(a,b,c){b=b===void 0?{}:b;return _.is(a,this.hostElement,b,c===void 0?!1:c)}};var vNb,MG;_.uNb={};vNb=null;
MG={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_=lIa(this.viewroot));_.Cr(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var a=this;this.unobserve_();if(_.x("kevlar_vimio_use_shared_monitor"))sPa(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 b=[];this.visibilityOptionVisible_&&b.push(this.visibilityObserver.observe(this.hostElement,function(){return a.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&b.push(this.visibilityObserver.observe(this.hostElement,function(){return a.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&b.push(this.visibilityObserver.observe(this.hostElement,function(){return a.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=b}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){oPa(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 a=_.Ef(this.parentNode,function(c){var d,e=(d=c.polymerController)!=null?d:c;return!!e.getVisibilityObserverForChild&&e.getVisibilityObserverForChild()},!0);
if(a){var b;this.localVisibilityObserver_=((b=a.polymerController)!=null?b:a).getVisibilityObserverForChild()}else vNb||(vNb=lIa()),this.localVisibilityObserver_=vNb;return this.localVisibilityObserver_},visibilityCallback:function(a){a?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.x("kevlar_use_vimio_behavior")||_.x("gaming_vimio_behavior_onshow")||(MG={});MG&&!_.x("kevlar_use_vimio_behavior")&&(delete MG.attached,delete MG.detached);_.uNb.YtVisibilityObserverBehavior=[MG];var wNb={};wNb.YtVisualElementBehavior=[_.uNb.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.x("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.x("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var a=this.getScreenLayer&&this.getScreenLayer(),b=this.getVisibilityLogger();b&&b.reportShown(this,void 0,a)}},
onHidden:function(){if(_.x("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.x("kevlar_vimio_use_shared_monitor")){var a=this.getScreenLayer&&this.getScreenLayer(),b=this.getVisibilityLogger();b&&b.reportHidden(this,void 0,a)}},
getVisibilityLogger:function(){return _.x("kevlar_use_vimio_behavior")?_.ks():null},
shouldSkipLogging:function(){if(_.Ei("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var a=this.getParentRenderer&&this.getParentRenderer();if(!a)return!1;var b,c=(b=a.polymerController)!=null?b:a;if(!c.data)return!1;a=this.data.trackingParams;a=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:a;var d;b=(d=c.data)==null?void 0:d.trackingParams;var e,g;b=((e=c.data)==null?0:e.loggingDirectives)?(g=c.data)==null?void 0:g.loggingDirectives.trackingParams:b;return a&&b&&a===
b}}];var wPa=new Map,rs;var g6a=function(a){this.layer=a},xw=function(a){return a.layer!==void 0?a.layer:a.parent?xw(a.parent):a.layer=0};var CPa;_.Z={};CPa=0;_.Z.YtRendererBehavior=[_.LG.YtComponentBehavior,wNb.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_:_.x("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var a,b;(b=(a=this.monitorScrollElement)!=null?a:this.hostElement)==null||b.removeEventListener("scroll",_.er(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();uPa(this.hostElement);wLb(_.pG(),this.hostElement);Yo.delete(this.hostElement)},
registerRenderer:function(a){var b;((b=a.polymerController)!=null?b:a).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(a),this.markDirty())},
unregisterRenderer_:function(a){this.useVimio_||(this.childCache_.delete(a),this.markDirty())},
attached:function(){var a=this,b=this.getParentRenderer();if(b){var c,d,e;(d=(c=(e=b.polymerController)!=null?e:b).registerRenderer)==null||d.call(c,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var g,k;(k=(g=this.monitorScrollElement)!=null?g:this.hostElement)==null||k.addEventListener("scroll",_.er(this,this.onScroll))}_.zk.addJob(function(){xPa(a.hostElement)},8);
c=new g6a(this.screenLayer||void 0);(b=Yo.get(b))&&b.layerNode&&(c.parent=b.layerNode);b={};iDa(this.hostElement,(b.isRenderer=!0,b.layerNode=c,b[h6a]=this.data,b))},
getParentRenderer:function(){for(var a=this.hostElement.parentNode,b,c;a&&((b=Yo.get(a))==null||!b.isRenderer)&&!((c=a.polymerController)!=null?c:a).isRenderer_;)a=a.parentNode||a.host;return a},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.x("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.Gi("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.x("debug_web_ve_data")&&this.data.trackingParams){var a="";try{a=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(c){_.Bl(c)}if(a){var b=Foa(a,1);b!==void 0&&(this.hostElement.dataset.veIndex=String(b));a=Foa(a,2);
a!==void 0&&(this.hostElement.dataset.ve=String(a))}}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,_.x("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.qs(this.data.loggingDirectives.trackingParams)),this.visualElement=_.ls(_.ms(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var a=this.data.targetId;_.yLb(_.pG(),a,this.hostElement)}else wLb(_.pG(),this.hostElement)},
onScroll:function(){var a=Date.now();a-this.lastHandledScroll_<50||(this.lastHandledScroll_=a,this.markDirty())},
markDirty:function(){_.x("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():DPa(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var a=this.getParentRenderer();if(a&&(a=Yo.get(a))&&a.layerNode)return xw(a.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.Be(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var a=0;a<this.data.impressionEndpoints.length;a++)this.sendImpression(this.data.impressionEndpoints[a]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(a){a.clickTrackingParams&&delete a.clickTrackingParams;var b,c;(a==null?0:(b=a.commandMetadata)==null?0:(c=b.webCommandMetadata)==null?0:c.sendPost)?_.mo(this.hostElement,[a,{impression:!0}]):_.no(this.hostElement,[a],this.hostElement)},
logExplicitClick:function(a){var b=_.Fn(this.getScreenLayer());if(b){var c,d=(c=a.polymerController)!=null?c:a;a=d.visualElement;d=d.trackingParams||d.clickTrackingParams;!a&&d&&(a=_.qs(d));a&&_.Vo(b,a)}}}];var xNb={},yNb=function(){return _.ir.apply(this,arguments)||this};
_.z(yNb,_.ir);yNb.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
var NG=yNb;NG.prototype.onPdgItemBehaviorClick=NG.prototype.onPdgItemBehaviorClick;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],NG.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],NG.prototype,"data",void 0);_.U([_.M("click"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],NG.prototype,"onPdgItemBehaviorClick",null);NG=_.U([_.jr()],NG);xNb.YtPdgLiveChatItemBehavior=[NG.prototype,_.Z.YtRendererBehavior];var zNb;var ANb;_.OG={};_.OG.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var PG=function(){var a=Xm.apply(this,arguments)||this;a.switchTemplateAtRegistration=!1;return a};
_.z(PG,Xm);PG.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||HPa(this),_.$Ma(this,"doRender"),this.doRender())};
PG.prototype.debounceRender=function(){this.templatingFn&&_.Dr(this,"doRender",this.doRender)};
PG.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.Bl(Error("Yg"))};
PG.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
var BNb=PG;BNb=_.U([Vxa()],BNb);var CNb=BNb;var DNb=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,QG={},LPa=(QG[1]={filterString:null,isUnwrappable:null,unwrap:null},QG[2]={filterString:function(a,b,c){return ju(c)},
isUnwrappable:function(a){return a instanceof Md},
unwrap:function(a){return Pd(a)}},QG[3]={filterString:function(a,b,c){return DNb.test(c)?c:Fd.toString()},
isUnwrappable:function(a){return Bd(a)},
unwrap:function(a){return _.Cd(a)}},QG[4]={filterString:function(){return Fd.toString()},
isUnwrappable:function(a){return a instanceof ud},
unwrap:function(a){return _.xd(a).toString()}},QG[5]={filterString:function(a,b,c){return c},
isUnwrappable:function(a){return typeof a==="string"},
unwrap:function(a){return a.toString()}},QG[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(a){return a instanceof _.Td},
unwrap:function(a){return Mda(a)}},QG[8]={filterString:function(a,b,c){c=String(c).toLowerCase();
return Mla(a,b,c)?c:"zClosurez"},
isUnwrappable:null,unwrap:null},QG[10]={filterString:null,isUnwrappable:null,unwrap:null},QG);Xl[Ch["default"]]=NPa;var ENb=function(a,b,c,d,e){return function(){var g=_.Id.apply(0,arguments),k=LCa(b,c,d,e);try{return a.apply(null,_.Be(g))}finally{k()}}}(Vl,"fr_c3"),FNb=_.x("measure_framework_render")?ENb:Vl;var HNb=function(a,b){var c=this;this.hostElement=a;this.events=new _.jj;this.props=b;this.events.subscribe("UPDATE",function(){FNb(c.hostElement,c.patchInternal.bind(c));var d;c.hostElement.data=(d=c.props)==null?void 0:d.data});
this.events.subscribe("CONNECTED",function(){GNb(c);var d;c.hostElement.data=(d=c.props)==null?void 0:d.data});
this.events.subscribe("DISCONNECTED",function(){var d;(d=c.onDisconnected)==null||d.call(c);var e;(e=c.signalContextDispose)==null||e.call(c)});
this.events.subscribe("UPDATED",function(){var d;(d=c.onUpdated)==null||d.call(c)})};
HNb.prototype.setState=function(a){this.state||(this.state=a);Object.assign(this.state,a);FNb(this.hostElement,this.patchInternal.bind(this))};
var GNb=function(a){a.signalContextDispose=xh(function(b){a.owner=b;var c;(c=a.onConnected)==null||c.call(a)},!!_.Rg)};
HNb.prototype.patchInternal=function(){var a=this;if(this.owner.isDisposed)this.signalContextDispose=xh(function(c){a.owner=c;eh(function(){a.render()})},!!_.Rg);
else{var b={stack:[],error:void 0,hasError:!1};try{_.Pr(b,_.Ug(this.owner)),eh(function(){a.render()})}catch(c){b.error=c,b.hasError=!0}finally{_.Qr(b)}}};var OPa=[];var fTa=xs("A"),gTa=xs("BUTTON"),Bt=xs("DIV"),hTa=xs("LABEL"),uYa=xs("SPAN");(function(){var a=Ph;Ph=function(b){a==null||a(b);us(function(){for(var c=0;c<b.length;c++)PPa(b[c])})}})();var INb=function(){var a=_.ir.apply(this,arguments)||this;a.hasUnmounted=!1;return a};
_.z(INb,_.ir);_.f=INb.prototype;_.f.beforeRegister=function(){var a=this.doIdomRender;this.templatingFn?_.Bl(Error("Xg")):(this.templatingFn=a,this.switchTemplateAtRegistration=!0,KPa(this))};
_.f.attached=function(){};
_.f.detached=function(){PPa(this.hostElement)};
_.f.renderIdom=function(){throw Error("$g");};
_.f.doIdomRender=function(){var a=this;Vl(this.hostElement,function(){a.renderIdom()})};
var JNb=INb;JNb=_.U([_.jr()],JNb);var KNb=[CNb.prototype,JNb.prototype];var LNb,MNb=function(){return LNb!==void 0?LNb:LNb=document.createElement("template")};
document.head.appendChild(MNb().content);var NNb;var ONb,PNb=function(){return ONb!==void 0?ONb:ONb=document.createElement("template")};
document.head.appendChild(PNb().content);var QNb;var RNb=document.head,SNb=RNb.appendChild,TNb;if(QNb===void 0){var UNb=document.createElement("template");_.B(UNb,"\x3c!--css-build:shady--\x3e");UNb.content.insertBefore(PNb().content.cloneNode(!0),UNb.content.firstChild);QNb=UNb}TNb=QNb;SNb.call(RNb,TNb.content);var VNb,WNb=function(){return VNb!==void 0?VNb:VNb=document.createElement("template")};
document.head.appendChild(WNb().content);var XNb;var YNb=document.head,ZNb=YNb.appendChild,$Nb;if(XNb===void 0){var aOb=document.createElement("template");_.B(aOb,"\x3c!--css-build:shady--\x3e");aOb.content.insertBefore(WNb().content.cloneNode(!0),aOb.content.firstChild);XNb=aOb}$Nb=XNb;ZNb.call(YNb,$Nb.content);var bOb=document.head,cOb=bOb.appendChild,dOb;if(NNb===void 0){var eOb=document.createElement("template");_.B(eOb,"\x3c!--css-build:shady--\x3e");eOb.content.insertBefore(MNb().content.cloneNode(!0),eOb.content.firstChild);NNb=eOb}dOb=NNb;cOb.call(bOb,dOb.content);var fOb,gOb=function(){return fOb!==void 0?fOb:fOb=document.createElement("template")};
document.head.appendChild(gOb().content);var hOb;_.Ns=new _.fB("DARK_THEME_TOKEN");var JQa=new _.X("accessibilityProperties");var IQa=new _.X("layoutProperties");var KQa=new _.X("imageType");var iOb={};if("ytAttributedStringLinkHoverColor"in iOb)throw Error("ch`ytAttributedStringLinkHoverColor");(function(a,b){iOb[a]="value"in b&&"unit"in b?VPa(a,b):function(c){try{return b(c)}catch(d){throw Error("ah`"+a+"`"+d.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var jOb=function(a){var b=this;this.holdTime=a===void 0?500:a;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(c){var d=new CustomEvent("LONG_PRESS"),e;(e=c.changedTouches[0].target)==null||e.dispatchEvent(d)};
this.ontouchstart=function(c){b.longPressTimeout=_.Du(_.zk,function(){b.onlongpress(c);b.longPressOccurred=!0},b.holdTime)};
this.ontouchmove=function(){_.zk.cancelJob(b.longPressTimeout);b.longPressTimeout=NaN;b.longPressOccurred=!1;b.moveOccurred=!0};
this.ontouchend=function(c){if(b.longPressTimeout&&!b.longPressOccurred&&!b.moveOccurred){var d;(d=c.changedTouches[0].target)==null||d.dispatchEvent(new Event("click"))}_.zk.cancelJob(b.longPressTimeout);b.longPressTimeout=NaN;b.longPressOccurred=!1;b.moveOccurred=!1}};var qQa=function(a,b){jOb.call(this,b);var c=this;this.callback=a;this.onlongpress=function(d){var e;(e=c.callback)==null||e.call(c,d)}};
_.z(qQa,jOb);var rQa=function(a,b){var c=Object.assign({},b);a=_.h(new Map([["ontouchstart",a.ontouchstart],["ontouchend",a.ontouchend],["ontouchmove",a.ontouchmove]]));for(var d=a.next(),e={};!d.done;e={eventName$jscomp$88:void 0,eventHandler$jscomp$3:void 0},d=a.next()){var g=_.h(d.value);d=g.next().value;g=g.next().value;e.eventName$jscomp$88=d;e.eventHandler$jscomp$3=g;b[e.eventName$jscomp$88]=function(k){return function(m){var n;(n=c[k.eventName$jscomp$88])==null||n.call(c,m);(0,k.eventHandler$jscomp$3)(m)}}(e)}};_.Xi=new _.fB("COMMAND_HANDLER_TOKEN");var XPa=new _.X("parallelCommand");var $Pa=new _.X("performOnceCommand");var ZPa=new _.X("serialCommand");var aQa=void 0;var kOb=function(){this.data=[]};
kOb.prototype.push=function(a){this.data.push(a)};var av={};_.fh(av,"sgPmTd");var lOb=_.h(_.fh(null,"F8ovHc"));lOb.next();lOb.next();var D2a=new kOb;var jQa=[Mab,Nab,Oab,Qab,Pab,Lab,Rab,Sab];var GQa=new _.X("bracketTextDecorator");var Ms=new _.X("highlightTextDecorator");_.Ps=new _.fB("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var BQa=function(){},mOb;
(mOb=window.requestIdleCallback)==null||mOb.bind(window);var DQa={calledOnce:!1,state:"visible"},CQa={calledOnce:!1,state:"hidden"};var xu=new _.fB("ICON_RENDERER_TOKEN"),nOb=new _.fB("ICON_WIZ_COMPONENT_TOKEN");_.tt=_.Rr(function(a){var b=a.icon;var c=a.active;var d=a.className;var e=a.style;var g=a.dataSelected;var k=a.dataDisabled;var m=a.role;var n=a.animateIcon;var r=a.themeOverride;var t=a.ariaHidden;var u=a.ariaExpanded;var w=a.ariaLabel;var A=a.id;var C=a.size;var G=a.iconFilter;return _.q(_.oi,{cond:b,then:function(){var J=_.v().resolve(nOb);return _.q(J,{icon:b,dataSelected:g,dataDisabled:k,animateIcon:n,themeOverride:r,ariaExpanded:u,id:A,active:c,size:C,role:m,className:d,ariaHidden:t,ariaLabel:w,
style:function(){return e!=null&&e()||C==null||!C()?e==null?void 0:e():"width: "+(C==null?void 0:C())+"px;height: "+((C==null?void 0:C())+"px;")},
iconFilter:G})}})});
_.tt.idomCompat=!0;var $Qa=window.devicePixelRatio||1;var dRa=new Map([["yt_outline_bag_black_24","bag"]]);var RG=function(a){var b=this;this.margin=.1;this.whenInViewportWithMargin=a;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){b.requestScan()});
window.addEventListener("touchend",function(){b.requestScan()});
window.addEventListener("updateui",function(){b.requestScan()});
var c=new _.hv((0,_.ug)(this.requestScan,this),100);window.addEventListener("scroll",function(){c.fire()},!0);
window.addEventListener("resize",(0,_.ug)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){b.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.ug)(this.requestScan,this))};
RG.prototype.observe=function(a){this.observationTargets.includes(a)||this.observationTargets.push(a)};
RG.prototype.unobserve=function(a){this.observationTargets=this.observationTargets.filter(function(b){return b!==a})};
RG.prototype.requestScan=function(){var a=this;this.scanRequested||(us(function(){oOb(a)}),this.scanRequested=!0)};
var oOb=function(a){var b=(1+a.margin)*(document.documentElement.clientHeight||window.innerHeight);a.observationTargets=a.observationTargets.filter(function(c){var d=c.getBoundingClientRect();(d=b>d.top&&!!d.height)&&a.whenInViewportWithMargin(c);return!d&&c.parentNode});
a.scanRequested=!1};
RG.prototype.disconnect=function(){this.observationTargets=[]};var pOb,rOb;pOb=_.h(_.fh(hRa(),"O3X2wd"));_.qOb=pOb.next().value;rOb=pOb.next().value;window.addEventListener("resize",function(){rOb(hRa())});var sOb={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},tOb=void 0,uOb=window.innerWidth,vOb=window.innerHeight;window.addEventListener("resize",function(){tOb=void 0});var wOb;if("IntersectionObserver"in window)wOb=kRa();else{if(tOb===void 0){var xOb;xOb="matchMedia"in window?window.matchMedia(sOb.landscape+","+sOb.portrait).matches:void 0;tOb=xOb!==void 0?xOb:uOb>=930&&vOb>=550||uOb>=550&&vOb>=930}wOb=tOb?{observe:function(a){us(function(){var b;(b=a.onViewportEntered)==null||b.call(a)})},
unobserve:function(){}}:new RG(function(a){us(function(){var b;
(b=a.onViewportEntered)==null||b.call(a)})})}var iRa=wOb;var yOb=_.Rr(function(a){var b=_.Rl(),c=!1;_.yh(function(){var d,e=(d=a.data)==null?void 0:d.call(a),g,k=(g=a.getSrc)==null?void 0:g.call(a).cb,m;d=(m=a.config)==null?void 0:m.call(a);if(m=b.value){mRa(m,d);var n;lRa(m,e||null,function(r,t){if(!c)return k?k(r,t):r},d,(n=a.lazy)==null?void 0:n.call(a))}},"mRFhSe");
_.wh(function(){c=!0});
return _.q("img",{el:b})});
yOb.idomCompat=!0;_.Ss=_.Rr(function(a){var b=function(){var c,d=a.data(),e,g,k,m,n,r,t,u,w,A,C,G,J,I,R,ca,V,fa,aa,ma,Ba,Da,za,Fa,bb,kb,Ua;var Fc={contentMode:(e=a.contentMode)==null?void 0:e.call(a),loadedClass:(g=a.loadedClass)==null?void 0:g.call(a),isPreloaded:(k=a.isPreloaded)==null?void 0:k.call(a),notifyOnLoaded:(m=a.notifyOnLoaded)==null?void 0:m.call(a),notifyOnUnloaded:(n=a.notifyOnUnloaded)==null?void 0:n.call(a),preferredThumbnail:(r=a.preferredThumbnail)==null?void 0:r.call(a),preserveHeight:(t=a.preserveHeight)==
null?void 0:t.call(a),preserveWidth:(u=a.preserveWidth)==null?void 0:u.call(a),objectPosition:(w=a.objectPosition)==null?void 0:w.call(a),targetWidth:(A=a.targetWidth)==null?void 0:A.call(a),targetHeight:(C=a.targetHeight)==null?void 0:C.call(a),shouldShowPlaceholder:(G=a.shouldShowPlaceholder)==null?void 0:G.call(a),useWidth:(J=a.useWidth)==null?void 0:J.call(a),alt:(I=a.alt)==null?void 0:I.call(a),className:(R=a.className)==null?void 0:R.call(a),onerror:a.onerror,onload:a.onload,style$:((ca=a.style$)==
null?void 0:ca.call(a))||((V=a.style)==null?void 0:V.call(a)),color:(fa=a.color)==null?void 0:fa.call(a),width:(aa=a.width)==null?void 0:aa.call(a),height:(ma=a.height)==null?void 0:ma.call(a),"aria-hidden$":(kb=(Ba=a["aria-hidden$"])==null?void 0:Ba.call(a))!=null?kb:(Da=a.ariaHidden)==null?void 0:Da.call(a),draggable:(za=a.draggable)==null?void 0:za.call(a),"data-disabled$":(Ua=(Fa=a["data-disabled$"])==null?void 0:Fa.call(a))!=null?Ua:(bb=a.dataDisabled)==null?void 0:bb.call(a)};return pRa(d,Fc,
(c=a.hideOn404)==null?void 0:c.call(a))};
return _.q(_.qi,null,_.q(_.pi,{when:function(){var c;return((c=b())==null?void 0:c.type)==="image"}},function(){return _.q(yOb,{data:function(){return b().image},
getSrc:{cb:function(c,d){var e=b().image.sources,g=b().config.isPreloaded,k=b().config.useWidth,m=b().config.targetWidth,n=b().config.targetHeight,r=b().config.preferredThumbnail;return _.aRa(d,e,g,k,m,n,r)||""}},
config:function(){var c=b().config,d;for(d in c)c[d]===void 0&&delete c[d];return c},
lazy:a.renderLazy})}),_.q(_.pi,{when:function(){var c;
return((c=b())==null?void 0:c.type)==="icon"}},function(){return _.q(_.tt,{icon:function(){return b().iconName},
role:function(){return b().config.role},
className:function(){return b().config.className},
style:function(){return b().config.style$+";width: "+(b().config.width+"px;height: ")+(b().config.height+"px;color: ")+(b().config.color+";")},
ariaLabel:function(){return b().config["aria-label$"]},
ariaHidden:function(){return b().config["aria-hidden$"]},
dataDisabled:function(){return b().config["data-disabled$"]}})}))});
_.Ss.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var zOb=function(a){return function(b){return _.q(Tua,null,function(){var c=b.data(),d=_.zh(b.config);return _.q(Ul,null,function(){return void a(c,d)})})}}(vRa),tRa=_.Rr(function(a){var b=function(d){var e,g=_.qRa(function(w){e=xh(function(){for(var A=_.h(t()),C=A.next();!C.done;C=A.next()){C=wRa(C.value);
C=typeof C==="string"?document.createTextNode(C):C;if(!(C instanceof Node)){A=new _.qj("Part is not a node",C,typeof C);_.Bl(A);break}w.appendChild(C)}})}),k=rRa(function(){return MQa(d())},{isEqual:sRa}),m=_.Nr(a.config),n=function(){var w,A=k();
return!((w=m())==null||!w.ariaLabel)||!(A.commandRuns&&A.commandRuns.length!==0||A.paragraphStyleRuns&&A.paragraphStyleRuns.length!==0)},r=rRa(m,{isEqual:yRa}),t=function(){var w=LQa(k(),r());
OQa(w,r());return k().content?UQa(k().content,w).parts:[]},u=!0;
_.yh(function(){k();r();if(u)u=!1;else{var w=t();Promise.resolve().then(function(){var A=g.value;if(A){A.innerText="";var C;(C=e)==null||C();e=_.si(A,function(){return _.q(xRa,{parts:w})})}})}},"vOsC0c");
return _.q("span",{el:g,class:function(){return k()&&wQa(k(),m())},
dir:function(){var w;return((w=m())==null?0:w.userInput)?"auto":void 0},
"aria-label":function(){var w;return n()?(w=m())==null?void 0:w.ariaLabel:void 0},
role:function(){return n()?"text":void 0}})},c;
return((c=a.config)==null?0:c.renderedFromFormattedString)?b(a.text):_.q(_.oi,{cond:a.text,then:b})});
tRa.idomCompat=!0;_.wt=_.Rr(function(a){var b=_.Nr(a.text),c=zRa(a);a.renderedFromFormattedString!==void 0&&(c.renderedFromFormattedString=!0);return _.x("attr_string_reactive")?_.q(tRa,{text:b,config:c}):_.q(_.oi,{cond:function(){var d;return b()&&((d=MQa(b()))==null?void 0:d.content)},
then:function(){return _.q(zOb,{data:a.text,config:c})},
debugInstance:"Apcuac"})});
_.wt.idomCompat=!0;var BRa=function(a,b,c){b=b===void 0?"unknown":b;c=c===void 0?{}:c;_.qj.call(this,a+" ("+b+")",Object.assign({},{name:"YtWcwError",tagName:b},c));Object.setPrototypeOf(this,this.constructor.prototype)};
_.z(BRa,_.qj);var GRa,HRa,DRa,FRa;_.SG=Symbol("eh");_.Vs=Symbol("fh");GRa=Symbol("gh");HRa=new Set(Object.getOwnPropertyNames(Element.prototype));DRa=!_.x("web_wcw_disable_component_function_named_child_props");FRa=Symbol("hh");var AOb=_.Rr(function(a){return _.q("yt-attributed-string",{"aria-label":a.ariaLabel,hidden:a.hidden,id:a.id,class:a.className,"force-default-style":a.forceDefaultStyle},_.q(_.wt,{text:a.data,ariaLabel:a.ariaLabel,ellipsisTruncate:a.ellipsisTruncate,isOverlay:a.isOverlay,linkInheritColor:a.linkInheritColor,noPreWrap:a.noPreWrap,noWrap:a.noWrap,userInput:a.userInput,noEndpoints:a.noEndpoints,headerRuns:a.headerRuns}))});
_.x("web_wiz_attributed_string")&&_.Ws(AOb,"yt-attributed-string",{props:{ariaHidden:_.SG,ariaLabel:_.SG,className:_.SG,ellipsisTruncate:_.SG,isOverlay:_.SG,linkInheritColor:_.SG,noEndpoints:_.SG,noStyleRuns:_.SG,noLinkColor:_.SG,noPreWrap:_.SG,noWrap:_.SG,skipOnClick:_.SG,userInput:_.SG,headerRuns:_.SG,id:_.SG,data:_.SG,hidden:_.SG,forceDefaultStyle:_.SG,text:_.Vs,stopPropagation:_.Vs,disableUpgrade:_.Vs,disable:_.Vs,slot:_.Vs}});var BOb=function(){return _.P.apply(this,arguments)||this};
_.z(BOb,_.P);BOb.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},vRa(this.data,this.config))};
var TG=BOb;_.U([_.H(KNb),_.W("design:type",Object)],TG.prototype,"ytIdomTemplatingBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],TG.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],TG.prototype,"ariaLabel",void 0);_.U([_.O(),_.W("design:type",Boolean)],TG.prototype,"disable",void 0);_.U([_.O(),_.W("design:type",Boolean)],TG.prototype,"ellipsisTruncate",void 0);_.U([_.O(),_.W("design:type",Boolean)],TG.prototype,"isOverlay",void 0);
_.U([_.O(),_.W("design:type",Boolean)],TG.prototype,"linkInheritColor",void 0);_.U([_.O(),_.W("design:type",Boolean)],TG.prototype,"noPreWrap",void 0);_.U([_.O(),_.W("design:type",Boolean)],TG.prototype,"noWrap",void 0);_.U([_.O(),_.W("design:type",Boolean)],TG.prototype,"userInput",void 0);_.U([_.O(),_.W("design:type",Boolean)],TG.prototype,"noEndpoints",void 0);_.U([_.O(),_.W("design:type",Array)],TG.prototype,"headerRuns",void 0);
TG=_.U([_.ur({is:"yt-attributed-string",disableElementRegistration:!0})],TG);
_.x("web_wiz_attributed_string")||_.S(TG,"yt-attributed-string",function(){if(hOb===void 0){var a=document.createElement("template");_.B(a,"\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");a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);
a.content.insertBefore(gOb().content.cloneNode(!0),a.content.firstChild);hOb=a}a=hOb;return a},{mode:2});var COb,DOb,ORa;COb=function(){this.firstThumbnailLoaded=!1};
_.EOb=function(){DOb||(DOb=new COb);return DOb};
ORa=function(a){var b=_.EOb();b.firstThumbnailLoaded||(b.firstThumbnailLoaded=!0,_.Jo("ftl",a))};
COb.prototype.reset=function(){this.firstThumbnailLoaded=!1};var JRa=0,NRa=new WeakMap,LRa=0,Zs=new Set;var FOb,GOb=function(){return FOb!==void 0?FOb:FOb=document.createElement("template")};
document.head.appendChild(GOb().content);var HOb;var SRa,URa,UG;_.bt=_.ja.caches;UG=function(){};
UG.prototype.open=function(a){return _.bt.open(IOb(a))};
UG.prototype.has=function(a){return _.bt.has(IOb(a))};
UG.prototype.delete=function(a){return _.bt.delete(IOb(a))};
UG.prototype.match=function(a,b){var c=this,d,e,g,k,m,n;return _.l(function(r){switch(r.nextAddress){case 1:return _.p(r,c.keys(),2);case 2:d=r.yieldResult,e=_.h(d),g=e.next();case 3:if(g.done){r.jumpTo(5);break}k=g.value;return _.p(r,c.open(k),6);case 6:return m=r.yieldResult,_.p(r,m.match(a,b),7);case 7:if(n=r.yieldResult)return r.return(n);g=e.next();r.jumpTo(3);break;case 5:return r.return()}})};
var VRa=function(){};
_.z(VRa,UG);var IOb=function(a){if(a.includes(":"))throw Error("kh`"+a);return a+":"+_.oj("CacheStorage get")};
VRa.prototype.keys=function(){var a,b,c,d,e,g,k,m,n;return _.l(function(r){if(r.nextAddress==1)return a=[],b=_.oj("CacheStorage keys"),_.p(r,_.bt.keys(),2);c=r.yieldResult;d=_.h(c);for(e=d.next();!e.done;e=d.next())g=e.value,k=_.RRa(g),m=k.originalName,n=k.datasyncId,n===b&&a.push(m);return r.return(a)})};var JOb=function(){var a=_.P.apply(this,arguments)||this;a.objectURL=null;a.loadTime=Infinity;return a};
_.z(JOb,_.P);_.f=JOb.prototype;_.f.renderIdom=function(){QRa(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("nh");this.setConfig();this.config&&nRa(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.f.objectFitToContentMode=function(a){switch(a){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.f.logThumbnailFailureVe=function(){var a=_.lu(197497);_.nF(_.ms(),a);var b=_.Fn();b&&a&&b&&_.To(b,[a])};
_.f.loadImageFromCacheIfExists=function(a){var b=this,c=a.target;_.x("kevlar_default_load_cached_thumbnail")&&(c==null?0:c.src)&&XRa(c.src).then(function(d){b.objectURL=Hd(d).toString();b.setSrc(c,b.objectURL)}).catch(function(){})};
_.f.onError=function(a){var b=this;if(_.x("web_use_cache_for_image_fallback")){var c=a.target;c&&XRa(c.src).then(function(d){b.objectURL=Hd(d).toString();b.setSrc(c,b.objectURL)}).catch(function(){_.x("kevlar_woffle_log_thumbnail_failure_ve")&&b.logThumbnailFailureVe();
_.x("kevlar_woffle_fallback_image")&&b.setSrc(c,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.f.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.f.setConfig=function(){var a=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(b){a.loadImageFromCacheIfExists(b);a.revokeObjectURL();PRa(a.hostElement)},
onerror:function(b){a.onError(b)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.x("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.f.setSrc=function(a,b){b&&(a.src=b)};
var VG=JOb;_.U([_.H(KNb),_.W("design:type",Object)],VG.prototype,"ytIdomTemplatingBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],VG.prototype,"data",void 0);_.U([_.O(),_.W("design:type",String)],VG.prototype,"alt",void 0);_.U([_.O(),_.W("design:type",Boolean)],VG.prototype,"ftlEligible",void 0);_.U([_.O(),_.W("design:type",Number)],VG.prototype,"height",void 0);_.U([_.O(),_.W("design:type",Boolean)],VG.prototype,"notifyOnLoaded",void 0);
_.U([_.O(),_.W("design:type",Boolean)],VG.prototype,"notifyOnUnloaded",void 0);_.U([_.O(),_.W("design:type",String)],VG.prototype,"objectFit",void 0);_.U([_.O(),_.W("design:type",String)],VG.prototype,"objectPosition",void 0);_.U([_.O(),_.W("design:type",String)],VG.prototype,"preferredThumbnail",void 0);_.U([_.O(),_.W("design:type",Boolean)],VG.prototype,"preserveHeight",void 0);_.U([_.O(),_.W("design:type",Boolean)],VG.prototype,"preserveWidth",void 0);
_.U([_.O({value:!0}),_.W("design:type",Boolean)],VG.prototype,"useWidth",void 0);_.U([_.O({value:function(){return!_.Gi("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.W("design:type",Boolean)],VG.prototype,"shouldRenderLazy",void 0);_.U([_.O(),_.W("design:type",Number)],VG.prototype,"width",void 0);VG=_.U([_.ur({is:"yt-image",disableElementRegistration:!0})],VG);
_.S(VG,"yt-image",function(){if(HOb===void 0){var a=document.createElement("template");_.B(a,"\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");a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);a.content.insertBefore(GOb().content.cloneNode(!0),a.content.firstChild);
HOb=a}a=HOb;return a},{mode:2});var KOb=function(){return _.P.apply(this,arguments)||this};
_.z(KOb,_.P);KOb.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var a=_.Es(this.data.onVisibleCommand);a&&this.ytComponentBehavior.resolveCommand(a)}};
var WG=KOb;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],WG.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],WG.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtVisibilityBehavior),_.W("design:type",Object)],WG.prototype,"ytVisibilityBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],WG.prototype,"data",void 0);WG=_.U([_.ur({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],WG);
_.S(WG,"yt-bumper-user-edu-content-view-model",function(){if(ANb===void 0){var a=document.createElement("template");_.B(a,'\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>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;zNb===void 0&&(zNb=document.createElement("template"));var d=zNb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);ANb=a}a=ANb;return a},{mode:_.x("live_chat_enable_sink_wrapper")?2:0});var LOb;var MOb,NOb=function(){if(MOb!==void 0)return MOb;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;LOb===void 0&&(LOb=document.createElement("template"));var d=LOb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return MOb=a};var OOb;_.XG={};OOb=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"]);_.XG.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var a=this.getContext_();return a?a.getTaskManager():_.zk},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var a=_.go(this.hostElement,"yt-get-context-provider",{});a.detail&&a.detail.contextProvider?this.cachedProviderNode_=a.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return OOb.has(this.hostElement.localName)},
getNetworkManager:function(){var a=this.getContext_();if(a)return a.getNetworkManager()}};var cSa,POb,ROb,QOb;_.YG=function(a){var b=POb.get(a);if(b&&(b=b.pop()))return QOb++,b;ROb++;try{var c=document.createElement(a)}catch(d){throw new _.qj("ElementPool failed to create element",a,d.message);}return c};
cSa=function(a){var b=a.is;if(b){var c=POb.get(b);c||(c=[],POb.set(b,c));var d=_.Ei("ELEMENT_POOL_CONFIG")||{};c.length>=(d[b]!==void 0?d[b]:_.Ei("ELEMENT_POOL_DEFAULT_CAP",0))||c.push(a)}else _.Dl(new _.qj("Element pool should only handle custom elements:",a.nodeName))};
POb=new Map;ROb=0;QOb=0;var ct=new WeakMap,bSa=new WeakMap;var TOb;_.ZG=function(a,b,c){c=c===void 0?_.Lw():c;this.JSC$11464_defaultPriority=a;this.signal=b;this.scheduler=c;this.nextJobDescriptor=0;this.JSC$11464_parkedJobs=[];this.scheduledJobs=new Map};
_.$G=function(a,b){if(b){var c=_.SF();a.signal&&!_.TF(c,a.signal)?(c.addListener(a.signal,function(){a.processSignal()}),a.JSC$11464_parkedJobs.push({job:b,
priority:void 0})):SOb(a,b)}};
TOb=function(a,b){if(b!==a.JSC$11464_defaultPriority){a.JSC$11464_defaultPriority=b;for(var c=_.h(a.scheduledJobs.values()),d=c.next();!d.done;d=c.next())d=d.value,a.scheduler.cancelJob(d.jobId),d.jobId=a.scheduler.addJob(d.jobWrapper,b)}};
_.ZG.prototype.flushJobs=function(){TOb(this,10);this.processSignal()};
_.ZG.prototype.cancel=function(){for(var a=_.h(this.scheduledJobs),b=a.next();!b.done;b=a.next()){var c=_.h(b.value);b=c.next().value;c=c.next().value;this.scheduler.cancelJob(c.jobId);this.scheduledJobs.delete(b)}this.JSC$11464_parkedJobs=[]};
_.ZG.prototype.processSignal=function(){for(var a=_.h(this.JSC$11464_parkedJobs),b=a.next();!b.done;b=a.next())b=b.value,SOb(this,b.job,b.priority);this.JSC$11464_parkedJobs=[]};
var SOb=function(a,b,c){c=c||a.JSC$11464_defaultPriority;if(c===10)$s(b);else{var d=a.nextJobDescriptor++,e=function(){b();a.scheduledJobs.delete(d)},g=a.scheduler.addJob(e,c);
a.scheduledJobs.set(d,{jobWrapper:e,jobId:g,priority:c})}};_.am(gSa);var hSa={propNames:[],synchronous:!1,enableUnsafeRenderOnNotifyPath:!1};Xma({beforeVisit:function(a){if(Yr.has(a.type)){var b;(b=a.props).idomKey!=null||(b.idomKey=a.type)}else a.type.TAG_NAME&&(Wr=a.type.TAG_NAME)},
afterRender:function(a,b){var c;Wr=(c=b==null?void 0:b.type)!=null?c:""},
didPatch:function(){Wr=""}});var UOb;_.aH={};UOb={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.aH.YtRendererstamperBehavior=[_.XG.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 a in this.stampDom){var b=this.stampDom[a];b&&b.id&&this.addReactiveSchema({type:"observe",method:{methodName:ZRa(b.id),args:[{type:"wildcard",path:a}]}})}else{(a=(this.constructor.generatedFrom||this).observers)||(a=[]);for(b in this.stampDom){var c=this.stampDom[b];c&&c.id&&a.push(ZRa(c.id)+"("+b+".*)")}this.constructor.generatedFrom.observers=a}},
addStampDomObserverFns_:function(){for(var a in this.stampDom){var b=this.stampDom[a];b.id?(this[ZRa(b.id)]=this.rendererStamperObserver_.bind(this,a,b.id),this.hasDataPath_[a]=!1):(b=new _.qj("Bad rendererstamper config",this.is+":"+a),_.Bl(b))}},
rendererStamperObserver_:function(a,b,c){if(c.path==a){if(c.value===void 0&&!this.hasDataPath_[a])return;this.hasDataPath_[a]=c.value!==void 0}this.rendererStamperApplyChangeRecord_(a,b,c)},
rendererStamperApplyChangeRecord_:function(a,b,c){var d=this.renderJobsMap_[b],e=null;a==c.path?(c=c.value,_.Sa(c)||(c=c===void 0||c===null?[]:[c]),a=this.stampDom[a],a.mapping&&(e=this.stampDomArray_.bind(this,c,b,a.mapping,a.reuseComponents,a.events,a.stamperStableList)),d&&d.cancel(),c=a.usePageScheduler?this.getTaskManager():void 0,d||a.initialRenderPriority==void 0)?a.renderPriority==void 0||d||(d=new _.ZG(a.renderPriority,a.waitForSignal,c),this.renderJobsMap_[b]=d):(d=new _.ZG(a.initialRenderPriority,
a.waitForSignal,c),this.renderJobsMap_[b]=d,e=function(g,k){g();TOb(k,10)}.bind(this,e,d)):e=a+".splices"==c.path?this.stampDomArraySplices_.bind(this,a,b,c.value):this.forwardRendererStamperChanges_.bind(this,a,b,c);
d?_.$G(d,e):e()},
forwardRendererStamperChanges_:function(a,b,c){var d=c.path.slice(a.length+1),e=this.getStampContainer_(b),g=d.indexOf("."),k=d.substring(0,g),m=!1,n=0,r=parseInt(k,0);if(k[0]=="#"){m=parseInt(k.substring(1),0);r=this.get(a);var t=this.get([a,k]);r[m]==t?n=m:n=r.indexOf(t);m=!0}else isNaN(r)||(n=r,m=!0);m&&(d=d.substring(k.length+1),g=d.indexOf("."));k=_.xn(e).children[n];var u;if(e=(u=k==null?void 0:k.polymerController)!=null?u:k)d="data"+d.slice(g),typeof e.notifyPath!=="function"?_.Dl(new _.qj("notifyPath missing",
this.is+": "+a+", "+b)):c.value?e.notifyPath(d,c.value):e.notifyPath(d)},
stampDomArraySplices_:function(a,b,c){if(c&&c.indexSplices){var d=this.getStampContainer_(b);if(d){for(var e=_.xn(d),g=aSa(this.stampDom[a].reuseComponents),k=c.indexSplices.length,m=0;m<k;m++){for(var n=c.indexSplices[m],r=e.children[n.index],t=n.removed.length;t>0;t--)r&&r.parentElement&&(_.xn(r.parentElement).removeChild(r),g&&cSa(r),r=e.children[n.index]);t=this.stampDom[a].mapping;for(var u=n.index+n.addedCount,w=document.createDocumentFragment(),A=g,C=n.index;C<u;C++){var G=n.object[C],J=YRa(t,
G);if(J){var I=t[J];G=G[J];J=this.getComponentName_(I,G);var R=r?ct.has(r):!1;A&&r&&r.is==J&&R?(J=r,this.telemetry_.reuse++,r=r.nextElementSibling):A&&r&&R?(J=this.createComponent_(I,G,g),R=_.xn(r).nextElementSibling,e.insertBefore(J,R),eSa(this.is,e,r,g),r=R):(A=!1,J=this.createComponent_(I,G,g),w.appendChild(J));this.deferRenderStamperBinding_(J,I,G)}else I=new _.qj("Unimplemented type",a,b,d.tagName,Object.keys(G)[0]),_.Bl(I)}e.insertBefore(w,r)}this.flushRenderStamperComponentBindings_();this.stampDom[a].events&&
_.go(this.hostElement,"yt-rendererstamper-finished",{container:d})}else a=new _.qj("Container object not found",b,this.hostElement?this.hostElement.is:""),_.Bl(a)}},
stampDomArray_:function(a,b,c,d,e,g){var k=this.getStampContainer_(b);if(k)if(b=_.xn(k),d=aSa(d),a){var m=0,n=0,r;if(g=g===void 0?_.Gi("STAMPER_STABLE_LIST",!1):g||!1)for(r=b.firstElementChild;r&&!ct.has(r)&&a.length>n;){g=a[n];var t=YRa(c,g);if(t){if(this.getComponentName_(c[t],g[t])!=r.is){var u=this.createComponent_(c[t],g[t],d),w=_.xn(r).nextElementSibling;w?b.insertBefore(u,w):b.appendChild(u);eSa(this.is,b,r,d);r=u}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(r,c[t],g[t]);m++;
n++;r=_.xn(r).nextElementSibling}else n++}fSa(this.is,b,m,d);m=r;if(a.length>n){g=document.createDocumentFragment();for(t=a.length;n<t;n++)if(u=a[n],w=YRa(c,u))r=this.createComponent_(c[w],u[w],d),this.deferRenderStamperBinding_(r,c[w],u[w]),g.appendChild(r);m&&_.xn(m).parentNode&&r&&!ct.has(r)?b.insertBefore(g,m):b.appendChild(g)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();e&&_.go(this.hostElement,"yt-rendererstamper-finished",{container:k})}else fSa(this.is,b,0,
d);else a=new _.qj("Container object not found",b,this.hostElement?this.hostElement.is:""),_.Bl(a)},
getStampContainer_:function(a){return this.$&&this.$[a]||_.E(this.hostElement).querySelector("#"+a)},
getComponentName_:function(a,b){return typeof a==="string"?a:a.matcher?a.matcher.call(this,b):a.component},
createComponent_:function(a,b,c){a=this.getComponentName_(a,b);try{var d=Zr.has(a)||Yr.has(a);if(c&&!d){var e=_.YG(a);try{_.dr(e)}catch(g){c="Failed to clear styles for "+a+".",g.message&&(c+=" Original error: "+g.message),_.Dl(new _.qj(c))}}else e=document.createElement(a)}catch(g){return e="YtRendererStamperBehavior failed to create "+a+".",g.message&&(e+=" Original description: "+g.message),g.message="YtRendererStamperBehavior failed to create element",_.El(g,e),UOb.hasOwnProperty(a)?_.Dl(g):_.Bl(g),
document.createElement("SPAN")}this.telemetry_.create++;return e},
deferRenderStamperBinding_:function(a,b,c){this.deferredBindingTasks_.push({component:a,typeOrConfig:b,data:c})},
flushRenderStamperComponentBindings_:function(){for(var a=0,b=this.deferredBindingTasks_.length;a<b;a++){var c=this.deferredBindingTasks_[a];if(!c)break;var d=void 0,e=void 0,g=void 0,k=void 0,m=c.component,n=c.typeOrConfig;c=c.data;var r=(k=m.polymerController)!=null?k:m;k=m.loggingStatus;try{k&&(k.isRendererStamper=!0);if(typeof n!=="string"){for(g in n.attributes)n.attributes[g]===!0?m.setAttribute(g,""):n.attributes[g]===!1?m.removeAttribute(g):m.setAttribute(g,n.attributes[g]);for(e in n.params)r[e]=
n.params[e],m!==r&&nr(m.localName,e,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(d in n.properties){var t=n.properties[d];if(t){var u=$Ra(t);r[d]=this.get(u);m!==r&&nr(m.localName,d,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(d==="on-tap"||d==="on-click"){var w=this.get(u);m.addEventListener("click",w);bSa.set(m,{property:d,listener:{type:"element",eventName:"click",handler:w}})}}else{var A=new _.qj("Undefined property binding",d);_.Bl(A)}}}if(n.classListBinding){var C=$Ra(n.classListBinding),
G=C?this[C]:null;if(G)for(d=0;d<G.length;d++)_.$q(m,G[d],!0)}r.data=c}finally{k&&(k.isRendererStamper=!1)}if(d=ct.get(m))m.hidden=!1,ct.delete(m),_.zk.cancelJob(d)}this.deferredBindingTasks_.length=0}}];_.bH={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(a){for(var b=_.Nl.getInstance(),c=_.h(Object.keys(a)),d=c.next();!d.done;d=c.next()){var e=d.value;d=a[e];if(this&&this[d]){var g=b.actionRoutingMap.get(e);g||(g=new Map,b.actionRoutingMap.set(e,g));b.registerActionHandler(this,e,this[d].bind(this),g)}else e=Error("dd"),e.params=d,_.Hi(e)}},
unregisterActionMap:function(a){_.Pl(_.Nl.getInstance(),a,this)}}]};var gt=new Map([["FACE_HAPPY",{name:"animated_face_happy_light",nameDarkTheme:"animated_face_happy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_happy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_happy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_HAPPY",totalFrames:121,lazyLoad:!1}],["FACE_MEH",{name:"animated_face_meh_light",nameDarkTheme:"animated_face_meh_dark",
path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_meh.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_meh.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_MEH",totalFrames:121,lazyLoad:!1}],["FACE_SAD",{name:"animated_face_sad_light",nameDarkTheme:"animated_face_sad_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_sad.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_sad.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_SAD",totalFrames:121,lazyLoad:!1}],["FACE_UNHAPPY",{name:"animated_face_unhappy_light",nameDarkTheme:"animated_face_unhappy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_unhappy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_unhappy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_UNHAPPY",totalFrames:121,
lazyLoad:!1}],["FACE_VERY_HAPPY",{name:"animated_face_very_happy_light",nameDarkTheme:"animated_face_very_happy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_very_happy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_very_happy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_VERY_HAPPY",totalFrames:121,lazyLoad:!1}],["LIKE",{name:"animated_like_light",nameDarkTheme:"animated_like_dark",
path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_light_v4.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_v4.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:60,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light.json",
pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"NOTIFICATION_BELL",totalFrames:79,lazyLoad:!1}],["LIKE_VALENTINES25_HEART",{name:"animated_like_valentines25_heart_light",nameDarkTheme:"animated_like_valentines25_heart_dark",path:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_heart_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_heart_dark_v5.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_VALENTINES25_HEART",totalFrames:60,lazyLoad:!0}],["LIKE_VALENTINES25_BROKEN_HEART",{name:"animated_like_valentines25_broken_heart_light",nameDarkTheme:"animated_like_valentines25_broken_heart_dark",path:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_broken_heart_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_broken_heart_dark_v5.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_VALENTINES25_BROKEN_HEART",totalFrames:60,lazyLoad:!0}],["LIKE_YOUTUBE_20TH_BIRTHDAY",{name:"animated_like_youtube_20th_birthday_light",nameDarkTheme:"animated_like_youtube_20th_birthday_dark",path:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_youtube_20th_birthday_light.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_youtube_20th_birthday_dark.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_VALENTINES25_HEART",totalFrames:60,lazyLoad:!0}]]);var VOb=_.cx(["https://www.gstatic.com/external_hosted/lottie/lottie_light.js"]),pSa=_.ef(VOb),et;var ht=new Map;var vSa=window.matchMedia("(forced-colors: active)").matches;var WOb;var XOb;var zSa=new _.fB("LOTTIE_LOADER_TOKEN");_.am(ASa);_.Ws(_.Rr(function(a){return _.q("ytd-lottie-player",{id:a.id,hidden:a.hidden,class:a.className,"aria-label":a.ariaLabel,style:"display: block;"},_.q(_.kt,{data:a.data,animationName:function(){var b;return((b=a.data().animationConfig)==null?void 0:b.name)||""},
animationRef:function(){return a.data().animationRef}}))}),"ytd-lottie-player",{props:{data:_.SG,
id:_.SG,hidden:_.SG,className:_.SG,ariaLabel:_.SG}});var YOb=function(){var a=_.P.apply(this,arguments)||this;a.animationRef={};return a};
_.z(YOb,_.P);_.f=YOb.prototype;
_.f.handlePropertyChange=function(){var a=this.animatedIcon,b=this.active,c=this.isDarkTheme;if(a){var d=this.previousActive!==b;this.previousActive=b;this.animationRef.lottieEl?d&&this.toggleAnimation(b,a.totalFrames):b?this.initializeAnimationAsToggled(a.lottiePlayerProps,a.totalFrames):this.initializeAnimationAsUntoggled(a.lottiePlayerProps);a.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=a.type;this.lottiePlayerProps=this.computeLottiePlayerProps(a,c)}};
_.f.computeLottiePlayerProps=function(a,b){var c=this.deepCloneLottiePlayerProps(a);b?(b=a.nameDarkTheme,a=a.pathDarkTheme):(b=a.name,a=a.path);c.animationConfig.name=b;(b=ht.get(a))?c.animationConfig.animationData=b:c.animationConfig.path=a;return c};
_.f.initializeAnimationAsToggled=function(a,b){a.animationConfig.initialSegment=[b-1,b]};
_.f.initializeAnimationAsUntoggled=function(a){a.animationConfig.initialSegment=void 0};
_.f.toggleAnimation=function(a,b){if(a){var c;(c=this.animationRef.lottieEl)==null||c.playSegments([0,b],!0)}else{var d;(d=this.animationRef.lottieEl)==null||d.playSegments([0,1],!0)}};
_.f.deepCloneLottiePlayerProps=function(a){var b=Object.assign({},a.lottiePlayerProps.animationConfig);a=Object.assign({},a.lottiePlayerProps);a.animationConfig=b;return a};
var cH=YOb;cH.prototype.handlePropertyChange=cH.prototype.handlePropertyChange;_.U([_.O(),_.W("design:type",Object)],cH.prototype,"animatedIcon",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],cH.prototype,"active",void 0);_.U([_.O(),_.W("design:type",Boolean)],cH.prototype,"isDarkTheme",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],cH.prototype,"animatedIconType",void 0);_.U([_.O(),_.W("design:type",Boolean)],cH.prototype,"previousActive",void 0);
_.U([_.O(),_.W("design:type",Object)],cH.prototype,"lottiePlayerProps",void 0);_.U([_.O(),_.W("design:type",Object)],cH.prototype,"animationRef",void 0);_.U([_.N("animatedIcon","active","isDarkTheme"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],cH.prototype,"handlePropertyChange",null);cH=_.U([_.ur({is:"yt-animated-icon",disableElementRegistration:!0})],cH);
_.S(cH,"yt-animated-icon",function(){if(XOb===void 0){var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;WOb===void 0&&(WOb=document.createElement("template"));var d=WOb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);XOb=a}a=XOb;return a},{mode:2});var ZOb;var $Ob;var DSa=_.Rr(function(a){var b=_.Rl(),c=xi(function(){return{value:null}});
_.wh(function(){var n;(n=c.value)==null||n.cancel()});
var d=_.kh(function(){return a.data().iconName},void 0,"dGBPh"),e=_.kh(function(){return a.data().iconStyle},void 0,"ipXHMb"),g=_.kh(function(){return a.data().iconSize},void 0,"oPwZue"),k=_.kh(function(){return a.data().iconSelected},void 0,"fKE56d"),m=_.kh(function(){return a.data().iconSetName},void 0,"yCb9md");
_.yh(function(){var n={iconName:d(),iconStyle:e(),iconSize:g(),iconSelected:k(),iconSetName:m()},r,t=(r=a.options)==null?void 0:r.call(a),u;r=(u=a.iconManager)==null?void 0:u.call(a);CSa(b,c,n,t,r)},"Efqnje");
return _.q("span",{class:"yt-icon-shape",el:b})});
DSa.idomCompat=!0;var W3a=["youtube_fill","youtube_outline"];var aPb=new _.GD({type:"iconset",value:void 0}),bPb=function(){var a=_.P.apply(this,arguments)||this;a.isDarkTheme=document.documentElement.hasAttribute("dark");a.iconName="";a.iconsetName="yt-icons";a.iconset=null;a.missingIconSet=!1;a.iconType=null;a.iconShapeDataSignal=_.fh(void 0,"RQ9kUb");a.renderingOptionsSignal=_.fh({iconWidth:"100%",iconHeight:"100%",iconFilter:a.iconFilter},"qtx8Ef");a.wizHasRendered=!1;a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a};
_.z(bPb,_.P);_.f=bPb.prototype;_.f.onDarkModeToggledAction=function(a){a!==this.isDarkTheme&&(this.isDarkTheme=a)};
_.f.handlePropertyChange=function(){var a=this,b,c,d,e,g,k,m,n,r,t,u;return _.l(function(w){switch(w.nextAddress){case 1:if(b=!a.icon&&!a.iconName||!a.isAttached)return w.return();c=a;d=c.icon;e=c.size;g=c.defaultToFilled;k=c.active;m=c.targetContainer;a.toggleContainerClass(m);_.x("kevlar_use_wil_icons")&&d&&(n=cPa(d),n.length?_.x("kevlar_icon_type_fix_killswitch")?(r=n[1].toUpperCase(),a.iconType=nBb[r],a.iconType||(a.iconType=n[1])):a.iconType=n[1]:a.iconType=null);if(d){w.jumpTo(2);break}a.iconsetName=
"";a.iconName="";return _.p(w,a.renderIcon(m,d),3);case 3:return w.return();case 2:t=a.computeIcon(d);u=cPa(t);u.length&&(a.iconsetName=u[0],a.iconName=u[1]);if(!_.x("kevlar_use_wil_icons")){w.jumpTo(4);break}return _.p(w,a.getIconShapeData(),5);case 5:a.iconShapeData=w.yieldResult;case 4:if(a.shouldRenderIconShape(m)){w.jumpTo(6);break}return _.p(w,a.determineIconSet(t,k,g,e,m),6);case 6:return _.p(w,a.renderIcon(m,d),0)}})};
_.f.toggleContainerClass=function(a){a?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
_.f.computeIcon=function(a){return!_.x("default_to_innertube_icon")||a.indexOf(":")>0?a:_.fs(a)};
_.f.determineIconSet=function(a,b,c,d){var e=this;return _.l(function(g){return g.nextAddress==1?_.x("kevlar_system_icons")||_.Ei("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.Ei("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?_.p(g,e.switchToYtSysIconset(a,b,c,d),3):g.jumpTo(2):g.nextAddress!=2?g.return():_.p(g,e.useYtSysIconsetForMissingIcons(a,b,c,d),0)})};
_.f.switchToYtSysIconset=function(a,b,c,d){var e=this,g,k,m,n,r,t,u;return _.l(function(w){switch(w.nextAddress){case 1:if(!a||e.iconsetName!=="yt-icons"&&e.iconsetName!=="yt-sys-icons"){w.jumpTo(0);break}g=cPa(a);k=g[1];k=_.mPa(k);_.x("enable_polymer_icons_replace_underscores_dash")&&k.includes("_filled")&&(k=k.replace(/_filled/g,"-filled"));return _.p(w,es(k,!0),3);case 3:return m=w.yieldResult,_.p(w,es(k,!1),4);case 4:if((n=w.yieldResult)||b&&m)e.iconsetName="yt-sys-icons";e.iconName=e.getIconName(k,
b,c,n,m);if(d===24){w.jumpTo(0);break}r="yt-sys-icons"+d+":"+e.iconName;return _.p(w,es(r,!1,!0),6);case 6:return t=w.yieldResult,_.p(w,es(r,!0,!0),7);case 7:u=w.yieldResult;e.iconName=e.getIconName(k,b,c,t,u);if(!b&&t||b&&u)e.iconsetName="yt-sys-icons"+d;_.se(w)}})};
_.f.getIconName=function(a,b,c,d,e){a.includes("-filled")&&(a=a.replace("-filled",""));return e&&(b||c)?a+"-filled":a};
_.f.useYtSysIconsetForMissingIcons=function(a,b,c,d){var e=this,g,k;return _.l(function(m){if(m.nextAddress==1)return e.iconsetName!=="yt-icons"?m.jumpTo(0):_.p(m,es(e.iconName,!1,!1,!0),3);if(m.nextAddress!=4)return g=m.yieldResult,_.p(m,es(e.iconName,!1),4);k=m.yieldResult;if(g||!k)return m.jumpTo(0);e.iconsetName="yt-sys-icons";return _.p(m,e.switchToYtSysIconset(a,b,c,d),0)})};
_.f.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
_.f.getIconManager=function(){return _.l(function(a){try{return a.return(_.v().resolve(_.gs))}catch(b){return a.return(new Promise(function(c){_.SF().parkOrScheduleJob(function(){c(_.v().resolve(_.gs))},2,"ci")}))}})};
_.f.getIconShapeData=function(){var a=this,b,c,d,e,g,k;return _.l(function(m){if(m.nextAddress==1){if(!a.iconType)return m.return(void 0);b=a.iconType.toLowerCase();c=b.endsWith("_filled")||b.endsWith("-filled");return _.p(m,a.getIconManager(),2)}d=m.yieldResult;e=a.active||a.defaultToFilled||c?"youtube_fill":"youtube_outline";g={iconName:b,iconStyle:e,iconSize:a.size,iconSetName:a.iconsetName};k=!!d.resolveIcon(g);k||(g.iconSize=void 0,k=!!d.resolveIcon(g));!k&&c&&(g.iconName=b.substring(0,b.length-
7),g.iconSize=a.size,k=!!d.resolveIcon(g),k||(g.iconSize=void 0,k=!!d.resolveIcon(g)));k||(g.iconStyle=void 0,k=!!d.resolveIcon(g));k||_.Dl(new _.qj("Icon not supported",{iconName:g.iconName,iconStyle:g.iconStyle,iconSize:g.iconSize,iconType:b}));return m.return(k?g:void 0)})};
_.f.shouldRenderIconShape=function(a){if(!_.x("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;a=this.getContainer(a);return!wSa(a,this.icon)};
_.f.renderIcon=function(a,b){var c=this,d,e,g,k,m,n,r,t;return _.l(function(u){switch(u.nextAddress){case 1:if(b&&c.icon!==b)return u.return();d=c.getContainer(a);e=wSa(d,c.icon);if(c.shouldRenderIconShape(a)&&c.iconType)return c.applyIconShape(e,d),u.return();c.removeIconShape();if(!d)return u.return();c.iconName===""&&c.iconset&&d&&(c.removeStaticIcon(c.iconset,d),e&&c.removeAnimatedIcon(d));if(c.iconName===""&&c.iconset||!c.iconsetName||!aPb)return u.return();c.iconset=aPb.byKey(c.iconsetName);
if(!c.iconset)return c.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.er(c,c.onIconsetAdded)),u.return();c.missingIconSet&&(c.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.er(c,c.onIconsetAdded)));k=(g=e||c.isAnimatedIcon?uSa(c.icon):void 0)&&!g.lazyLoad;n=g&&((m=g)==null?void 0:m.lazyLoad)&&(g.lottiePlayerProps.animationConfig.animationData?!0:ht.get(c.isDarkTheme?g.pathDarkTheme:g.path)?!0:!1);if(k||n)return c.applyAnimatedIcon(d,g,c.iconset),u.return();if(n||
(r=g)==null||!r.lazyLoad){u.jumpTo(2);break}t=ySa(g,c.isDarkTheme);c.applyStaticIcon(c.iconset,d,c.iconName,a,e);return _.p(u,t,3);case 3:return _.p(u,c.renderIcon(c.targetContainer,c.icon),4);case 4:return u.return();case 2:c.applyStaticIcon(c.iconset,d,c.iconName,a,e),_.se(u)}})};
_.f.getContainer=function(a){var b,c=(b=GJa(this.hostElement))==null?void 0:b.host;b=!!c&&!!c.polymerController;if(!a||b)return a?this.getTargetContainer(a,c):this.hostElement};
_.f.getTargetContainer=function(a,b){var c=_.E(b).querySelector("#"+a);c||(a=new _.qj("yt-icon container missing",b.is,a),_.Bl(a));return c};
_.f.applyStaticIcon=function(a,b,c,d,e){e&&this.removeAnimatedIcon(b);this.removeIconShape();e=e&&!!this.iconType&&!!this.iconShapeData&&_.x("kevlar_use_wil_icons");try{e?this.applyIconShape(!1,b):a.applyIcon(b,c)}catch(g){this.handleError(g,d,b)}};
_.f.applyIconShape=function(a,b){this.iconset&&b&&(this.removeStaticIcon(this.iconset,b),a&&this.removeAnimatedIcon(b));a={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var c=_.h(this.iconShapeDataSignal);b=c.next().value;c=c.next().value;var d=_.h(this.renderingOptionsSignal),e=d.next().value;d=d.next().value;c(this.iconShapeData);d(a);if(!this.wizHasRendered)for(this.wizHasRendered=!0,a=_.h(ESa(b,e)).next().value;a.firstChild;)_.E(this.hostElement).appendChild(a.firstChild)};
_.f.removeIconShape=function(){if(_.x("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.f.removeStaticIcon=function(a,b){a.removeIcon(b)};
_.f.applyAnimatedIcon=function(a,b,c){this.removeStaticIcon(c,a);this.removeIconShape();var d;c=this.animatedIconElement&&((d=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:d.type)===b.type;if(this.animatedIconElement&&c){this.animatedIconElement.polymerController.animatedIcon=b;var e;((e=this.animatedIconElement)==null?void 0:e.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(a),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=b,this.animatedIconElement.polymerController.active=this.active,this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.x("kevlar_use_wil_icons")?a.insertBefore(this.animatedIconElement,a.childNodes[0]):(a=_.E(a),a.insertBefore(this.animatedIconElement,a.childNodes[0]))};
_.f.removeAnimatedIcon=function(a){_.x("kevlar_use_wil_icons")?this.animatedIconElement&&a.contains(this.animatedIconElement)&&a.removeChild(this.animatedIconElement):(a=_.E(a),this.animatedIconElement&&a.contains(this.animatedIconElement)&&a.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.f.handleError=function(a,b,c){_.El(a,this.iconName,b,c);b=wSa(c,this.icon);var d=!1;window.location.href.includes("JpymaW6Lh2w")?d=!0:c._svgIcon&&(c=(c=c._svgIcon.parentNode)?c.tagName:"unknown",_.El(a,c),c==="YT-ICON"&&a.name==="NotFoundError"?d=!0:a.name==="NotFoundError"&&b&&(d=!0));d?_.Dl(a):_.Bl(a)};
_.Vm.Object.defineProperties(bPb,{template:{configurable:!0,enumerable:!0,get:function(){if($Ob===void 0){var a=document.createElement("template");_.B(a,"\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");a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;
ZOb===void 0&&(ZOb=document.createElement("template"));var d=ZOb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);$Ob=a}a=$Ob;return a}}});
var dH=bPb;dH.prototype.handlePropertyChange=dH.prototype.handlePropertyChange;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],dH.prototype,"actionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",String)],dH.prototype,"icon",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],dH.prototype,"active",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],dH.prototype,"defaultToFilled",void 0);
_.U([_.O({value:!1}),_.W("design:type",Boolean)],dH.prototype,"isAnimatedIcon",void 0);_.U([_.O({value:24}),_.W("design:type",Number)],dH.prototype,"size",void 0);_.U([_.O({value:""}),_.W("design:type",String)],dH.prototype,"targetContainer",void 0);_.U([_.O(),_.W("design:type",Object)],dH.prototype,"animatedIconElement",void 0);_.U([_.O(),_.W("design:type",Object)],dH.prototype,"isDarkTheme",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],dH.prototype,"ariaHidden",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],dH.prototype,"ariaLabel",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],dH.prototype,"role",void 0);_.U([_.O(),_.W("design:type",String)],dH.prototype,"style",void 0);_.U([_.O(),_.W("design:type",String)],dH.prototype,"iconFilter",void 0);
_.U([_.N("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype",Promise)],dH.prototype,"handlePropertyChange",null);dH=_.U([_.ur({is:"yt-icon",noInjection:!0})],dH);var cPb;var dPb=function(){var a=document.body,b=a.appendChild;if(cPb===void 0){var c=document.createElement("template");_.B(c,'\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>');
cPb=c}c=cPb;b.call(a,c.content)};
document.body?dPb():window.addEventListener("DOMContentLoaded",dPb);var ePb,fPb=function(){return ePb!==void 0?ePb:ePb=document.createElement("template")};
document.head.appendChild(fPb().content);var gPb,hPb=function(){return gPb!==void 0?gPb:gPb=document.createElement("template")};
document.head.appendChild(hPb().content);var iPb;_.yu=new _.fB("KEY_MANAGER_TOKEN");var JSa={duration:1E3,easing:"ease",fill:"forwards"};_.am(ISa);var jPb=_.mt(_.nt);_.am(_.nt);_.ut=_.Rr(function(a){var b=_.Rl(a.ref),c=a.aTagConfig?a.aTagConfig:_.kh(function(){var g,k,m,n,r,t;var u=(t=_.Es((n=a.command)==null?void 0:n.call(a)))!=null?t:(r=a.command)==null?void 0:r.call(a);return _.Gs({innertubeCommand:u,skipOnClick:(g=a.skipOnClick)==null?void 0:g.call(a),stopPropagation:(k=a.dangerousStopPropagation)==null?void 0:k.call(a),defaultTarget:(m=a.target)==null?void 0:m.call(a)})||{}},void 0,"O4xuPc");
_.yh(function(){b.value._data=c()._data;b.value.params=c().params},"zaBRFf");
var d=_.ot(function(g){var k,m;return void((m=(k=c()).onpointerdown)==null?void 0:m.call(k,g))}),e=_.ot(function(g){var k,m;
return void((m=(k=c()).onclick)==null?void 0:m.call(k,g))});
return _.q("a",{el:b,href:function(){return c().href$},
rel:function(){return c().rel$},
class:function(){var g,k;return(k=c().className)!=null?k:(g=a.className)==null?void 0:g.call(a)},
style:function(){var g;if((g=a.style)==null?0:g.call(a))return a.style();var k;return((k=a.disabled)==null?0:k.call(a))?"pointer-events:none":""},
"aria-haspopup":function(){return!!c()["aria-haspopup$"]},
"force-new-state":pt(function(){return c()["force-new-state$"]}),
title:pt(function(){var g,k;return(k=c().title$)!=null?k:(g=a.title)==null?void 0:g.call(a)}),
role:pt(function(){return c().role$}),
target:pt(function(){return c().target$}),
dir:pt(function(){return c().dir}),
tabindex:function(){var g;return c().tabindex$?Number(c().tabindex$):(g=a.tabIndex)==null?void 0:g.call(a)},
"aria-hidden":function(){var g,k;return(k=c()["aria-hidden$"])!=null?k:(g=a.ariaHidden)==null?void 0:g.call(a)},
"aria-label":function(){var g,k;return(k=c()["aria-label$"])!=null?k:(g=a.ariaLabel)==null?void 0:g.call(a)},
"aria-current":a.ariaCurrent,"aria-labelledby":a.ariaLabelledby,"aria-describedby":a.ariaDescribedby,"aria-selected":a.ariaSelected,"tab-identifier":a.tabIdentifier,"on:pointerdown":d,"on:click":e},a.children)});var eH=function(a,b){this.fillAnimation=new Animation(KSa(a),document.timeline);this.strokeAnimation=new Animation(LSa(b),document.timeline)};
eH.prototype.play=function(){var a,b;(b=(a=this.fillAnimation).play)==null||b.call(a);var c,d;(d=(c=this.strokeAnimation).play)==null||d.call(c)};
eH.prototype.cancel=function(){var a,b;(b=(a=this.fillAnimation).cancel)==null||b.call(a);var c,d;(d=(c=this.strokeAnimation).cancel)==null||d.call(c)};_.xt=_.Rr(function(a){var b=a.model;var c=a.pointerDownEvent;var d=a.pointerUpEvent;var e=a.pointerLeaveEvent;a=_.Rl();var g=_.rt({"border-radius":function(){return b().borderRadius}}),k=_.Rl(),m=_.Rl(),n=_.h(_.qt(function(){return(d==null?0:d())||(e==null?0:e())?!1:!(c==null||!c())||!1})),r=n.next().value,t=n.next().value,u=void 0,w=function(){!u&&m.value&&k.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(u=new eH(m.value,k.value));
var I;(I=u)==null||I.play()},A=function(){var I;
(I=u)==null||I.cancel()},C=function(){var I;
(I=u)==null||I.cancel()};
_.yh(function(){(d==null?0:d())&&w()},"qauSme");
_.yh(function(){(c==null?0:c())&&A()},"ukbctd");
_.yh(function(){(e==null?0:e())&&C()},"iVUZwc");
n=_.ot(function(){w();t(!1)});
var G=_.ot(function(){A();t(!0)});
_.Tl(a,"pointerleave",function(){C();t(!1)});
_.wh(function(){if(u){var I;(I=u)==null||I.cancel();u=void 0}});
var J={};r=_.jt("yt-spec-touch-feedback-shape",function(){return NSa(b().color)},(J["yt-spec-touch-feedback-shape--focused"]=function(){return!!b().focused&&!b().disabled},J["yt-spec-touch-feedback-shape--circular"]=function(){return!!b().circular},J["yt-spec-touch-feedback-shape--is-extended"]=function(){return!!b().isExtended},J["yt-spec-touch-feedback-shape--down"]=r,J["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!b().triggerEvents},J));
return _.q("yt-touch-feedback-shape",{style:_.rt({"border-radius":"inherit"})},_.q("div",{el:a,class:r,style:_.rt({"margin-top":function(){return b().customTopExtend?"-"+b().customTopExtend+"px":void 0}}),
"on:mousedown":G,"on:mouseup":n,"on:touchstart":G,"on:touchend":n,"aria-hidden":!0},_.q("div",{class:"yt-spec-touch-feedback-shape__stroke",style:g,el:k}),_.q("div",{class:"yt-spec-touch-feedback-shape__fill",style:g,el:m})))});
_.xt.idomCompat=!0;var kPb={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 fH=_.ua();fH=fH.toLowerCase();if(_.ra(fH,"android")){var lPb=fH.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);lPb&&parseFloat(lPb[1])<100||fH.match("("+Object.keys(kPb).join("|")+")")};var mPb=_.Rr(function(a){return _.q(_.oi,{cond:a.aTagConfig,then:function(b){return _.q(_.ut,{aTagConfig:b,disabled:a.disabled,className:a.className,style:a.style,title:a.title,ariaLabel:a.ariaLabel,ariaCurrent:function(){var c,d;return((c=a.toggleable)==null?void 0:c.call(a))&&((d=a.toggled)==null?void 0:d.call(a))}},a.children)},
else:function(){return _.q("button",{"on:click":_.ot(function(b){var c;return(c=a.onClick)==null?void 0:c.call(a,b)}),
class:a.className,title:a.title,style:a.style,disabled:a.disabled,"aria-pressed":function(){var b,c;return((b=a.toggleable)==null?0:b.call(a))?!((c=a.toggled)==null||!c.call(a)):void 0},
"aria-label":a.ariaLabel,"aria-disabled":a.visiblyDisabled,"aria-hidden":a.ariaHidden,tabindex:a.tabIndex},a.children)}})}),oPb=_.Rr(function(a){var b=a.data;
var c=a.hasIconLeading;var d=a.hasIconLeadingTrailing;var e=a.hasIconTrailing;var g=a.iconButton;var k=a.iconClassName;var m=a.secondaryIconClassName;var n=a.icon;var r=a.secondaryIcon;var t=a.textContentClassName;return _.q(gH,{className:"",style:"display: inherit; justify-content: center"},_.q(_.oi,{cond:function(){return(n==null?void 0:n())&&(c()||d()||(g==null?void 0:g()))},
then:function(){return _.q(gH,null,_.q("div",{class:k,"aria-hidden":"true"},n==null?void 0:n()))}}),_.q(_.oi,{cond:function(){return(b().buttonText||b().animatedTextProps||b().formattedButtonText)&&!(g==null?0:g())},
then:function(){return _.q(gH,null,_.q(nPb,{className:t,iconPosition:function(){return b().iconPosition},
text:function(){return b().buttonText},
oneOffCustomTextWrap:function(){return b().oneOffCustomTextWrap},
formattedButtonText:function(){return b().formattedButtonText},
animatedTextProps:function(){return b().animatedTextProps}}))}}),_.q(_.oi,{cond:e,
then:function(){return _.q(gH,null,_.q("div",{class:k},n==null?void 0:n()))}}),_.q(_.oi,{cond:d,
then:function(){return _.q(gH,null,_.q("div",{class:m},r==null?void 0:r()))}}),_.q(_.oi,{cond:function(){return!b().disabled&&!0},
then:function(){return _.q(_.xt,{model:function(){return{color:RSa(b())}}})}}))}),nPb=_.Rr(function(a){var b=function(){var c,d;
return((c=a.iconPosition)==null?void 0:c.call(a))==="icon-with-label"||((d=a.oneOffCustomTextWrap)==null?void 0:d.call(a))};
return _.q("div",{class:a.className,"aria-hidden":function(){var c,d,e;return((c=a.ariaHidden)==null?void 0:c.call(a))&&(!((d=a.animatedTextProps)==null||!d.call(a))||!((e=a.formattedButtonText)==null||!e.call(a)))}},_.q(_.qi,null,_.q(_.pi,{when:function(){var c;
return(c=a.animatedTextProps)==null?void 0:c.call(a)}},function(){return _.q(jPb,{numberText:function(){return a.animatedTextProps().numberText},
numberValue:function(){return a.animatedTextProps().numberValue},
heightPx:function(){return a.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return a.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return a.animatedTextProps().shouldAnimate},
forceRollUp:function(){return a.animatedTextProps().forceRollUp}})}),_.q(_.pi,{when:function(){var c;
return(c=a.formattedButtonText)==null?void 0:c.call(a)}},function(){return _.q(_.wt,{text:function(){return Object.assign({},a.formattedButtonText(),{lineBreakMode:b()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":a.formattedButtonText().lineBreakMode,
alignment:b()?"TEXT_ALIGNMENT_CENTER":a.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!b()}})}),_.q(_.wna,null,function(){return a.text})))}),pPb=_.Rr(function(a){return _.q(_.oi,{cond:a.hasLabel,
then:function(){var b;return _.q("label",{class:a.className},a.children,(b=a.textContent)==null?void 0:b.call(a))},
else:function(){return a.children}})}),gH=_.Rr(function(a){return a.children});var Oua=Tg("stamper-context");_.am(vt);var aTa=new Map;var cTa=!1,qPb=!1;var ys=function(){HNb.apply(this,arguments);var a=this;this.state={down:!1};this.JSC$11562_onPointerUp=function(){!a.JSC$11562_currentAnimation&&a.JSC$11562_fillElement&&a.JSC$11562_strokeElement&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(a.JSC$11562_currentAnimation=new eH(a.JSC$11562_fillElement,a.JSC$11562_strokeElement));a.setState({down:!1});var b;(b=a.JSC$11562_currentAnimation)==null||b.play()};
this.JSC$11562_onPointerDown=function(){var b;(b=a.JSC$11562_currentAnimation)==null||b.cancel();a.setState({down:!0})};
this.onPointerLeave=function(){var b;(b=a.JSC$11562_currentAnimation)==null||b.cancel();a.setState({down:!1})}};
_.z(ys,HNb);ys.prototype.onConnected=function(){this.hostElement.style.borderRadius="inherit"};
ys.prototype.render=function(){var a=this,b=this.props.model,c=b.disabled,d=b.focused,e=b.borderRadius,g=b.circular,k=b.isExtended;b=b.color;var m={};c=(m["yt-spec-touch-feedback-shape"]=!0,m["yt-spec-touch-feedback-shape--focused"]=!!d&&!c,m["yt-spec-touch-feedback-shape--circular"]=!!g,m["yt-spec-touch-feedback-shape--is-extended"]=!!k,m["yt-spec-touch-feedback-shape--down"]=!!this.state.down,m[bTa(b)]=!0,m);Bt({className:_.lt(c),onmousedown:this.JSC$11562_onPointerDown,onmouseup:this.JSC$11562_onPointerUp,
ontouchstart:this.JSC$11562_onPointerDown,ontouchend:this.JSC$11562_onPointerUp,onpointerleave:this.onPointerLeave,"aria-hidden$":!0},function(){var n=e?{borderRadius:e}:void 0;Bt({className:"yt-spec-touch-feedback-shape__stroke",style:n},function(r){a.JSC$11562_strokeElement=r});
Bt({className:"yt-spec-touch-feedback-shape__fill",style:n},function(r){a.JSC$11562_fillElement=r})})};
ys.tagName="yt-touch-feedback-shape";var rv=_.Rr(function(a){var b=a.data;var c=a.icon;var d=a.iconName;var e=a.secondaryIcon;var g=a.secondaryIconName;var k=a.focusedOverride;USa();var m=OSa(b),n=m.size,r=m.style;a=m.disabled;var t=m.onTap,u=m.alignByText,w=m.aTagConfig,A=m.customColors,C=m.segmentedPosition,G=m.toggled,J=m.toggleable,I=m.accessibilityLabel,R=m.onToggle,ca=m.iconPosition,V=m.oneOffCustomTextWrap,fa=m.disableTextEllipsis,aa=m.tooltipText,ma=m.ariaHidden,Ba=m.tabIndex,Da=m.buttonText,za=m.formattedButtonText,Fa=m.animatedTextProps,
bb=QSa(b,c,e,d,g,k),kb=bb.type;c=bb.shouldFocus;d=bb.hasIconLeading;e=bb.hasIconTrailing;g=bb.hasIconLeadingTrailing;var Ua=bb.hasIconOnly;k=bb.hasIconOnly40;var Fc=bb.hasIconWithLabel;m=bb.iconButton;var id=bb.visiblyDisabled,Mb=bb.overrideSmallSizeIcon,wd=bb.iconToRender;bb=bb.secondaryIconToRender;var Tb={},tb={};return _.q(pPb,{className:_.jt("yt-spec-button-shape-with-label",(Tb["yt-spec-button-shape-with-label--is-overlay"]=function(){return r()==="overlay"||r()==="overlay-dark"},Tb)),
hasLabel:Fc,textContent:function(){return _.q(nPb,{text:Da,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:V,iconPosition:ca,formattedButtonText:za,animatedTextProps:Fa})}},_.q(mPb,{aTagConfig:w,
className:_.jt("yt-spec-button-shape-next",function(){return VSa(kb())},function(){return id()?void 0:WSa(r())},function(){return XSa(n())},(tb["yt-spec-button-shape-next--disabled"]=id,tb["yt-spec-button-shape-next--focused"]=c,tb["yt-spec-button-shape-next--icon-trailing"]=e,tb["yt-spec-button-shape-next--icon-leading"]=d,tb["yt-spec-button-shape-next--icon-leading-trailing"]=g,tb["yt-spec-button-shape-next--icon-button"]=function(){return Ua()||Fc()},tb["yt-spec-button-shape-next--icon-only-default"]=
k,tb["yt-spec-button-shape-next--align-by-text"]=u,tb["yt-spec-button-shape-next--segmented-start"]=function(){return C()==="start"},tb["yt-spec-button-shape-next--segmented-end"]=function(){return C()==="end"},tb["yt-spec-button-shape-next--override-small-size-icon"]=Mb,tb["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=V,tb["yt-spec-button-shape-next--disable-text-ellipsis"]=fa,tb["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=SSa(),tb)),
style:function(){return YSa(A()).style},
onClick:function(Fb){t==null||t(Fb);J()&&(R==null||R(Fb))},
disabled:a,ariaLabel:I,toggleable:J,toggled:G,title:function(){var Fb;return(Fb=aa())!=null?Fb:""},
visiblyDisabled:id,ariaHidden:ma,tabIndex:Ba},_.q(oPb,{data:b,hasIconLeading:d,hasIconLeadingTrailing:g,hasIconTrailing:e,iconButton:m,icon:wd,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:bb})))});
rv.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};var rPb=_.Rr(function(a){var b=a.data;var c=a.id;var d=a.hidden;var e=a.disableUpgrade;var g=a.className;var k=a.icon;var m=a.secondaryIcon;var n=a.iconName;var r=a.secondaryIconName;a=_.h(_.fh(!1,"O7k8w"));var t=a.next().value,u=a.next().value,w=function(){var C=_.v().resolve(_.Wi(_.yu));C&&u(C.isKeyBoardInUse())},A=function(){u(!1)};
a=_.Rl(function(C){if((e==null||!e())&&_.v().resolve(_.Wi(_.yu)))return C.addEventListener("focusin",w),C.addEventListener("focusout",A),function(){C.removeEventListener("focusin",w);C.removeEventListener("focusout",A)}});
return _.q("yt-button-shape",{el:a,id:c,class:g,hidden:function(){return(d==null?void 0:d())||(e==null?void 0:e())}},_.q(_.oi,{cond:function(){return!(e==null?0:e())},
then:function(){return _.q(rv,{data:b,icon:k,secondaryIcon:m,iconName:n,secondaryIconName:r,focusedOverride:t})}}))});
_.x("web_wiz_button_shape")&&_.Ws(rPb,"yt-button-shape",{props:{data:_.SG,id:_.SG,hidden:_.SG,disableUpgrade:_.SG,className:_.SG,icon:_.Vs,secondaryIcon:_.Vs,iconName:_.SG,secondaryIconName:_.SG},unsafeExternallySettableAttributes:new Set(["key"])});var hH=function(){var a=_.P.apply(this,arguments)||this;a.keyboardFocused=!1;return a};
_.z(hH,_.P);hH.prototype.onFocus=function(){var a=_.v().resolve(_.Wi(_.yu));a&&(this.keyboardFocused=a.isKeyBoardInUse())};
hH.prototype.onBlur=function(){this.keyboardFocused=!1};
hH.prototype.renderIdom=function(){var a=this;if(this.data){var b=At(this.data,!!this.iconName),c=eTa(this.data);this.data.focused=this.keyboardFocused;Ct(this.data,function(){var d;ws("yt-icon",{icon:a.iconName,active:(d=a.data)==null?void 0:d.toggled,size:b,style:"width: "+b+"px; height: "+b+"px;",iconFilter:c},Mh)},function(){var d;
ws("yt-icon",{icon:a.secondaryIconName,active:(d=a.data)==null?void 0:d.toggled,size:b,style:"width: "+b+"px; height: "+b+"px;",iconFilter:c},Mh)});
_.go(this.hostElement,"yt-renderidom-finished")}};
_.Vm.Object.defineProperties(hH,{template:{configurable:!0,enumerable:!0,get:function(){if(iPb===void 0){var a=document.createElement("template");_.B(a,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-button-shape--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.youtube_standards.yt_button_shape.yt.button.shape_wil_styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.youtube_standards.yt_button_shape.yt.button.shape.css.js--\x3e");
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);a.content.insertBefore(hPb().content.cloneNode(!0),a.content.firstChild);a.content.insertBefore(fPb().content.cloneNode(!0),a.content.firstChild);iPb=a}a=iPb;return a}}});
var iH=hH;iH.prototype.onBlur=iH.prototype.onBlur;iH.prototype.onFocus=iH.prototype.onFocus;_.U([_.H(KNb),_.W("design:type",Object)],iH.prototype,"ytIdomTemplatingBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],iH.prototype,"data",void 0);_.U([_.O(),_.W("design:type",String)],iH.prototype,"iconName",void 0);_.U([_.O(),_.W("design:type",String)],iH.prototype,"secondaryIconName",void 0);_.U([_.O(),_.W("design:type",Object)],iH.prototype,"keyboardFocused",void 0);
_.U([_.M("focusin"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],iH.prototype,"onFocus",null);_.U([_.M("focusout"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],iH.prototype,"onBlur",null);iH=_.U([_.ur({is:"yt-button-shape",isInjectionRoot:!0,disableElementRegistration:_.x("web_wiz_button_shape")})],iH);_.Ws(_.Rr(function(a){function b(){c().seconds&&g(IFa({seconds:Number(c().seconds)-Date.now()/1E3}))}
var c=a.targetTimestamp;a=a.className;var d=_.h(_.fh("","U1Q8Ae")),e=d.next().value,g=d.next().value;_.ti(function(){b();var k=setInterval(function(){b()},1E3);
_.wh(function(){clearInterval(k)})});
return _.q("yt-countdown",{class:_.jt("ytCountDownHost",a)},_.q("div",null,e))}),"yt-countdown",{props:{targetTimestamp:_.SG,
className:_.Vs}});_.Ju=_.Rr(function(a){var b=a.data;var c=a.className;var d=a.style;var e=a.useOutlinedIcon;var g=a.buttonOverrides;var k=a.animatedTextProps;var m=a.onClick;var n=_.Rl(function(I){return function(){wLb(_.pG(),I)}}),r=function(){return b().iconName},t=function(){var I=b();
var R=g==null?void 0:g(),ca=k==null?void 0:k();if(I){var V=lTa(I.type);var fa=!!I.title||!!I.titleFormatted;var aa=!(!I.iconName&&!I.iconImage);fa=aa&&!fa?"icon-only":aa?I.iconTrailing||I.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;fa==="icon-only-40"&&(V="text");var ma,Ba=(ma=R==null?void 0:R.disabled)!=null?ma:I.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||I.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";ma=Object;aa=ma.assign;var Da=I.title,za=I.titleFormatted;
ca=ca&&ca.numberText&&!isNaN(Number(ca.numberValue))?ca:void 0;var Fa=I.accessibilityText,bb=kTa(I.style),kb=mTa(I.state),Ua=nTa(I.buttonSize),Fc=jTa(I,n,Ba,m);Ba=Ba&&!I.onDisabledTap;var id=_.Gs({elementsCommand:I.onTap,forceNewState:!0});id=hQa(id)?id:void 0;var Mb=I.customFontColor;var wd=I.customBackgroundColor,Tb=I.customBorderColor;Mb={color:Mb?_.Cq(Mb):void 0,backgroundColor:wd?_.Cq(wd):void 0,borderColor:Tb?_.Cq(Tb):void 0};I=aa.call(ma,{},{buttonText:Da,formattedButtonText:za,animatedTextProps:ca,
accessibilityLabel:Fa,style:bb,type:V,state:kb,size:Ua,iconPosition:fa,onTap:Fc,disabled:Ba,aTagConfig:id,customColors:Mb,tooltipText:I.tooltip},R)}else I={style:"mono",type:"text",state:"active",size:"M"};I.focused=C();return I},u=function(){return At(t(),!!b().iconName)};
a=_.h(_.fh(!1,"vozwtc"));var w=a.next().value,A=a.next().value,C=w;a=_.ot(function(){var I=_.v().resolve(_.Wi(_.yu));I&&A(I.isKeyBoardInUse());return!1});
w=_.ot(function(){A(!1);return!1});
_.yh(function(){var I,R=_.y(b==null?void 0:(I=b())==null?void 0:I.onVisible,_.Ds);R&&_.Fs(R,{disableClickTracking:!0})},"mZ2LMc");
var G=function(){if(r()){var I,R={activeState:(e==null?0:e())?!1:t().toggled,animateIcon:d==null?void 0:(I=d())==null?void 0:I.animateIcon};R.iconSize=u();_.v().resolve(xu)(r()||null,R)}else(I=b().iconImage)&&nRa({sources:[I]},{alt:"",targetWidth:u(),targetHeight:u(),preserveWidth:!0,preserveHeight:!0})},J=function(){return b().iconImage?{sources:[b().iconImage]}:void 0};
_.vi(function(){n.value.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var I=b().targetId;I&&_.yLb(_.pG(),I,n.value)});
return _.q("button-view-model",{el:n,class:_.jt("yt-spec-button-view-model",c),"on:focusin":a,"on:focusout":w},_.x("web_wiz_button_shape")?_.q(_.oi,{cond:J,then:function(I){return _.q(rv,{data:t,icon:function(){return _.q(_.Ss,{data:I,alt:"",targetWidth:u,targetHeight:u,preserveWidth:!0,preserveHeight:!0})}})},
else:function(){return _.q(rv,{data:t,icon:function(){return _.q(_.tt,{icon:r,active:function(){return(e==null?0:e())?!1:t().toggled},
animateIcon:function(){var I;return!!(d==null?0:(I=d())==null?0:I.animateIcon)},
size:u})}})}}):_.q(Tua,null,function(){var I=t();
return _.q(Ul,null,function(){Ct(I,G)})}))});
_.Ju.idomCompat={callbacks:{onClick:!0}};_.Ws(_.Rr(function(a){return _.q("yt-button-view-model",{id:a.id,class:_.jt(a.scopingClassName,a.classes),icon:function(){var b;return(b=a.icon)==null?void 0:b.call(a)},
"dialog-dismiss":function(){var b;return((b=a.dialogDismiss)==null?0:b.call(a))?"":void 0}},_.q(_.Ju,{data:function(){var b;
return(b=a.data)==null?void 0:b.call(a)},
className:function(){var b;return(b=a.className)==null?void 0:b.call(a)},
style:function(){var b;return(b=a.style)==null?void 0:b.call(a)},
useOutlinedIcon:function(){var b;return(b=a.useOutlinedIcon)==null?void 0:b.call(a)},
buttonOverrides:function(){var b;return(b=a.buttonOverrides)==null?void 0:b.call(a)},
animatedTextProps:function(){var b;return(b=a.animatedTextProps)==null?void 0:b.call(a)},
onClick:function(b){var c;return(c=a.onClick)==null?void 0:c.call(a,b)}}))}),"yt-button-view-model",{props:{data:_.SG,
className:_.SG,style:_.SG,useOutlinedIcon:_.SG,buttonOverrides:_.SG,animatedTextProps:_.SG,onClick:_.Vs,scopingClassName:_.SG,id:_.SG,icon:_.SG,dialogDismiss:_.SG,classes:_.SG}});var jH=function(){var a=_.P.apply(this,arguments)||this;a.isGoalActive=!0;return a};
_.z(jH,_.P);jH.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
jH.prototype.progressBarChanged=function(){var a=_.E(this.hostElement).querySelector("#progress-bar-progress"),b,c,d,e=(d=Number((b=this.creatorGoalState)==null?void 0:b.currentGoalCount)/Number((c=this.creatorGoalState)==null?void 0:c.totalGoalCount)*100)!=null?d:0,g;a.style.width=((g=Math.min(e,100))!=null?g:0)+"%"};
jH.prototype.goalStateChanged=function(){var a;this.isGoalActive=((a=this.creatorGoalState)==null?void 0:a.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var b;a={"--yt-progress-bar-color":EPa((b=this.creatorGoalState)==null?void 0:b.progressBarColor)};_.dr(this.hostElement,a)};
jH.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.Vm.Object.defineProperties(jH.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var a;return this.isGoalActive&&!((a=this.creatorGoalState)==null||!a.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.creatorGoalState)==null?0:a.endTimestampMs){var b;a=Number((b=this.creatorGoalState)==null?void 0:b.endTimestampMs)/1E3;return{seconds:String(a)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.creatorGoalState)==null?0:a.themedTargetImage){var b;a=_.y((b=this.creatorGoalState)==null?void 0:b.themedTargetImage,YFb);return this.isAppDarkTheme()?a==null?void 0:a.imageDark:a==null?void 0:a.imageLight}}}});
_.Vm.Object.defineProperties(jH,{template:{configurable:!0,enumerable:!0,get:function(){return NOb()}}});
var kH=jH;kH.prototype.goalStateChanged=kH.prototype.goalStateChanged;kH.prototype.progressBarChanged=kH.prototype.progressBarChanged;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],kH.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.JG),_.W("design:type",Object)],kH.prototype,"ytLiveChatReduxBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],kH.prototype,"ytRendererBehavior",void 0);
_.U([_.O({selectorArgs:["data.creatorGoalEntityKey"],selector:function(a,b){return _.mp(a.entities,"creatorGoalEntity",b)}}),
_.W("design:type",Object)],kH.prototype,"creatorGoalState",void 0);_.U([_.O(),_.W("design:type",Object)],kH.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],kH.prototype,"isGoalActive",void 0);_.U([_.K("creatorGoalState"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],kH.prototype,"shouldShowCountdown",null);_.U([_.K("creatorGoalState"),_.W("design:type",Object),_.W("design:paramtypes",[])],kH.prototype,"endTimestamp",null);
_.U([_.K("creatorGoalState"),_.W("design:type",Object),_.W("design:paramtypes",[])],kH.prototype,"targetIconThemedImage",null);_.U([_.N("creatorGoalState.currentGoalCount"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],kH.prototype,"progressBarChanged",null);_.U([_.N("creatorGoalState.creatorGoalState"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],kH.prototype,"goalStateChanged",null);
kH=_.U([_.ur({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],kH);_.S(kH,"yt-creator-goal-progress-flow-view-model",function(){return NOb()},{mode:_.x("live_chat_enable_sink_wrapper")?2:0});var sPb;var tPb;var uPb=function(){return _.P.apply(this,arguments)||this};
_.z(uPb,_.P);uPb.prototype.attached=function(){var a,b,c;if(this==null?0:(a=this.data)==null?0:(b=a.pdgPurchasedBumperLoggingDirectives)==null?0:(c=b.loggingDirectives)==null?0:c.trackingParams){var d,e,g;pTa(this==null?void 0:(d=this.data)==null?void 0:(e=d.pdgPurchasedBumperLoggingDirectives)==null?void 0:(g=e.loggingDirectives)==null?void 0:g.trackingParams)}};
uPb.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
var lH=uPb;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],lH.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],lH.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],lH.prototype,"data",void 0);lH=_.U([_.ur({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],lH);
_.S(lH,"yt-live-chat-item-bumper-view-model",function(){if(tPb===void 0){var a=document.createElement("template");_.B(a,'\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>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;sPb===void 0&&(sPb=document.createElement("template"));var d=sPb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);tPb=a}a=tPb;return a},{mode:_.x("live_chat_enable_sink_wrapper")?2:0});var vPb;var wPb;_.Wt=function(a,b){this.data=a;this.actions=b;this.data=a;this.actions=b};
_.Ot=function(){};_.mH={};_.mH.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(a,b){qTa(this.hostElement,a,b)},
getNavigationEndpointPopupAction:function(a){return rTa(a,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(a,b){sTa(this.hostElement,a,b,this.openPopupConfig)}};var CTa=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.nH={};
_.nH.YtEndpointBehavior=[_.mH.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.Ei("openPopupConfig");(this.useClickHandler=_.Gi("useClickHandler",!1))?this.listen(this.hostElement,"click","onEndpointClick_"):(this.listen(this.hostElement,"tap","onEndpointTap_"),this.listen(this.hostElement,"touchend","onEndpointTouchEnd_"));this.listen(this.hostElement,"touchstart","onEndpointTapStart_");this.listen(this.hostElement,"mousedown",
"onEndpointTapStart_")},
onEndpointClick_:function(a){vTa(this.hostElement,a,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(a){var b=this.hostElement,c=this.openPopupConfig,d=this.disableCommandHandlerOverride;d=d===void 0?!1:d;var e=tTa(a);if(e){e.href&&Eq(e.href);var g=a.detail;var k=g.sourceEvent;g=g.preventer;k=k.button!==void 0?k.button===0&&!Et(k):g?!Et(g):!0;e.data&&k&&uTa(b,e,a,c,d)}},
onEndpointTouchEnd_:function(a){Et(a)||tTa(a)&&a.preventDefault()},
onEndpointTapStart_:function(a){ATa(a)}}];var DTa="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),FTa=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var xPb={};xPb.YtPlaintextBehavior=[_.BD,{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(a){a.preventDefault();a=a.clipboardData.getData("text/plain");document.execCommand("insertText",!1,a)},
preventRichTextFormatting_:function(a){_.wx&&(a=a.detail.keyboardEvent,a.stopImmediatePropagation(),a.preventDefault())}}];var yPb;var zPb;var APb=function(){var a=_.P.apply(this,arguments)||this;a.ignoreShadyDom=!1;a.hasChange_=!1;a.hasSetTitle_=!1;a.useIOObserverForVisibilityLogging_=_.x("kevlar_use_vimio_behavior")&&_.Ei("INNERTUBE_CLIENT_NAME")==="WEB";a.ytFormattedStringObserverHandlerKeys_=void 0;return a};
_.z(APb,_.P);_.f=APb.prototype;_.f.created=function(){this.useIOObserverForVisibilityLogging_=_.x("kevlar_use_vimio_behavior")&&_.Ei("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.f.ready=function(){_.Ei("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_()};
_.f.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.f.detached=function(){this.unobserveIOObservers_()};
_.f.clearContents_=function(){for(var a=this.getRoot(),b=a.lastChild;b&&b.tagName!=="STYLE";){try{a.removeChild(b)}catch(c){break}b=a.lastChild}};
_.f.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var a=_.h(this.ytFormattedStringObserverHandlerKeys_),b=a.next();!b.done;b=a.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(b.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.f.resetForAttributedString=function(){var a=this.getRoot();!a.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),a.appendChild(this.ytAttributedStringElementRef))};
_.f.resetForFormattedString=function(){var a=this.getRoot(),b=a.querySelector("yt-attributed-string");b&&(this.ytAttributedStringElementRef=a.removeChild(b))};
_.f.textChanged=function(){this.textChanged_(this.text)};
_.f.textChanged_=function(a){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!a||!a.runs&&!a.simpleText;if(_.x("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var b=this.hostElement.firstChild;b&&b.nodeName==="FONT";){var c=b;b=b.nextSibling;this.hostElement.removeChild(c)}b=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
c=a.simpleText;var d;!c&&((d=a.runs)==null?void 0:d.length)===1&&this.isSimpleString_(a.runs[0])&&(c=a.runs[0].text);c!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.Ei("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(c!==void 0){try{b.textContent=c}catch(e){}b.textContent||(this.isEmpty=!0)}else a=a.runs,c!==void 0&&(a=[{text:c}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),a&&this.updateText_(a),
b.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.f.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)};
_.f.computeAriaLabel_=function(a){return a};
_.f.computeEllipsisTruncateStyling=function(a,b){return a&&!b};
_.f.computeUseAttributedString=function(a){return _.x("web_replace_formatted_with_attributed_string")&&UPa(a)&&!this.disableAttributedString&&!this.enableContentEditable};
_.f.setNodeStyle_=function(a,b){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.x("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?b.removeAttribute("dir"):b.setAttribute("dir","auto");b.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");b.style.color="";var c=null;this.noStyles||(a.bold&&(b.classList.add("bold"),c="bold"),a.deemphasize&&(b.classList.add("deemphasize"),c="deemphasize"),a.italics&&b.classList.add("italic"),
a.strikethrough&&b.classList.add("strikethrough"),a.errorUnderline&&(b.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),a.bracket&&b.classList.add("bracket"),a.textColor&&(b.style.color=_.Bq(a.textColor)));c!==b.getAttribute("style-target")&&(c?b.setAttribute("style-target",c):b.removeAttribute("style-target"))};
_.f.setUpVisibilityLogging_=function(a,b){var c=this;this.setNodeTrackingParams_(a,b);var d;((d=b.data)==null?0:d.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(a=this.ytRendererBehavior.visibilityObserver.observe(b,function(e){var g=c.ytRendererBehavior.getVisibilityLogger();g&&g.reportShown(e)},this.ytRendererBehavior.visibilityOptionVisible_),b=this.ytRendererBehavior.visibilityObserver.observe(b,function(e){var g=c.ytRendererBehavior.getVisibilityLogger();
g&&g.reportHidden(e)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(a),this.ytFormattedStringObserverHandlerKeys_.push(b))};
_.f.setNodeTrackingParams_=function(a,b){b.data||(b.data={});if((a=a.loggingDirectives?a.loggingDirectives.trackingParams:null)||b.data.trackingParams)b.data.trackingParams=a};
_.f.computeHasLinkOnly_=function(a){return!(!a||a.length!==1||this.noEndpoints||!a[0].navigationEndpoint)};
_.f.getRoot=function(){var a=this.buildScopeDomOptions();return this.enableContentEditable?_.E(_.E(this.hostElement,a).querySelector("[contenteditable]")):_.E(this.hostElement,a)};
_.f.fixContenteditableScope=function(){var a=function(b){b&&(b.nodeType===1&&b.classList&&(b.classList.add("style-scope"),b.classList.add("yt-formatted-string")),b.childNodes&&b.childNodes.forEach(function(c){a(c)}))};
a(this.getRoot())};
_.f.updateText_=function(a){for(var b=a.length,c=this.getRoot(),d=c.firstChild;d&&d.nodeName==="STYLE";)d=d.nextSibling;for(var e=0;e<b&&d;){var g=a[e],k=_.x("remove_cr_char")&&g.text?g.text.replace("\r",""):g.text;if(this.isSimpleString_(g)&&!this.useMixedDirectionFormattedStrings)if(d.nodeName==="#text"){d.textContent!=k&&(d.textContent=k);e++;d=d.nextSibling;continue}else break;if(_.y(g,Bs))break;else if(!this.noEndpoints&&g.navigationEndpoint){if(d.nodeName!=="A")break;this.setDataOnAnchor_(d,
g.navigationEndpoint)}else if(d.nodeName!=="SPAN")break;this.setNodeStyle_(g,d);this.setUpVisibilityLogging_(g,d);d.textContent!=k&&(d.textContent=k);e++;d=d.nextSibling}if(d)for(g=c.lastChild,d=e?d.previousSibling:null;g&&g!=d;){try{c.removeChild(g)}catch(m){break}g=c.lastChild}e!==b&&this.addTextNodes_(a,e)};
_.f.addTextNodes_=function(a,b){for(var c=document.createDocumentFragment(),d=a.length;b<d;b++){var e=a[b],g=_.x("remove_cr_char")&&e.text?e.text.replace("\r",""):e.text;if(this.isSimpleString_(e)&&!this.useMixedDirectionFormattedStrings)c.appendChild(document.createTextNode(g));else{var k=_.y(e,Bs);if(k){if(k.image){var m=document.createElement("img");k.isCustomEmoji||m.classList.add("small-emoji");m.classList.add("emoji");k.isCustomEmoji&&(m.dataset.emojiId=k.emojiId);m.src=_.Xs(k.image.thumbnails,
this.emojiSize);(e=this.get("image.accessibility.accessibilityData.label",k))?m.alt=e:k.shortcuts&&k.shortcuts.length>0?m.alt=k.shortcuts[0]:k.emojiId&&(m.alt=k.emojiId);c.appendChild(m);this.hasEmoji=!0}}else!this.noEndpoints&&e.navigationEndpoint?(m=document.createElement("a"),m.classList.add("yt-simple-endpoint"),m.setAttribute("spellcheck","false"),this.setDataOnAnchor_(m,e.navigationEndpoint)):m=document.createElement("span"),this.setNodeStyle_(e,m),this.setUpVisibilityLogging_(e,m),m.appendChild(document.createTextNode(g)),
c.appendChild(m)}}this.getRoot().appendChild(c)};
_.f.isSimpleString_=function(a){return(this.noEndpoints||!a.navigationEndpoint)&&!_.y(a,Bs)&&(this.noStyles||!(a.bold||a.deemphasize||a.italics||a.strikethrough||a.errorUnderline||a.bracket||a.textColor))&&!a.loggingDirectives};
_.f.getRawText=function(){return _.Vp(this.text)};
_.f.getFirstRunText=function(){var a;if(((a=this.text)==null?0:a.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.f.setFirstRunText=function(a){var b;((b=this.text)==null?0:b.runs)&&this.text.runs[0]&&(this.text.runs[0].text=a,this.textChanged_(this.text))};
_.f.setDataOnAnchor_=function(a,b){var c=this;!_.x("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(b)||this.isSignalServiceEndpoint_(b)?(a.onclick=this.serviceEndpointHandler_(b),Ld(a,"#")):fua({text:this.text,command:b},function(){rua(a,b,c.target)})};
_.f.isServiceEndpoint_=function(a){var b;return!((b=_.y(a==null?void 0:a.commandMetadata,_.ao))==null||!b.sendPost)};
_.f.isSignalServiceEndpoint_=function(a){return!!_.y(a,_.ro)};
_.f.serviceEndpointHandler_=function(a){var b=this;return function(c){_.mo(b.hostElement,[a]);c.preventDefault()}};
_.f.overrideAriaLabelChanged_=function(){var a=this.getRoot();this.enableContentEditable&&a&&a.setAttribute("aria-label",this.overrideAriaLabel)};
_.f.enableContentEditableChanged_=function(){var a=this,b=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),b=_.E(this.hostElement,b),!b.lastChild||b.lastChild instanceof HTMLElement&&b.lastChild.id!=="contenteditable-root"){var c=document.createElement("div");c.id="contenteditable-root";c.setAttribute("contenteditable","true");c.setAttribute("dir","auto");c.onfocus=function(){a.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
b.appendChild(c);this.overrideAriaLabel&&c.setAttribute("aria-label",this.overrideAriaLabel)}}else c=_.Zq(this.hostElement).firstChild,c instanceof HTMLElement&&c.id==="contenteditable-root"&&_.E(this.hostElement,b).removeChild(c)};
_.f.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.f.getNodesForVisibilityLogging_=function(){return _.qx(this.getRoot().childNodes,function(a){var b;return!((b=a.data)==null||!b.trackingParams)})};
_.f.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.f.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var a=this.ytRendererBehavior.getVisibilityLogger();a&&this.getNodesForVisibilityLogging_().forEach(function(b){a.reportShown(b)})}};
_.f.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var a=this.ytRendererBehavior.getVisibilityLogger();a&&this.getNodesForVisibilityLogging_().forEach(function(b){a.reportHidden(b)})}};
_.Vm.Object.defineProperties(APb.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.x("enable_mixed_direction_formatted_strings")}}});
var oH=APb;oH.prototype.enableContentEditableChanged_=oH.prototype.enableContentEditableChanged_;oH.prototype.overrideAriaLabelChanged_=oH.prototype.overrideAriaLabelChanged_;oH.prototype.ellipsisTruncateChanged_=oH.prototype.ellipsisTruncateChanged_;oH.prototype.textChanged=oH.prototype.textChanged;_.U([_.H(xPb.YtPlaintextBehavior),_.W("design:type",Object)],oH.prototype,"ytPlaintextBehavior",void 0);
_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],oH.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],oH.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],oH.prototype,"text",void 0);_.U([_.O(),_.W("design:type",Boolean)],oH.prototype,"noEndpoints",void 0);_.U([_.O(),_.W("design:type",Boolean)],oH.prototype,"noStyles",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],oH.prototype,"isDarkTheme",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],oH.prototype,"splitLines",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],oH.prototype,"forceDefaultStyle",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],oH.prototype,"ellipsisTruncate",void 0);_.U([_.O(),_.W("design:type",Object)],oH.prototype,"ignoreShadyDom",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.W("design:type",Boolean)],oH.prototype,"ellipsisTruncateStyling",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.W("design:type",String)],oH.prototype,"ariaLabel",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],oH.prototype,"isEmpty",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.W("design:type",Boolean)],oH.prototype,"hasLinkOnly_",void 0);_.U([_.O(),_.W("design:type",Boolean)],oH.prototype,"hasEmoji",void 0);_.U([_.O(),_.W("design:type",Boolean)],oH.prototype,"disableAttributedString",void 0);_.U([_.O(),_.W("design:type",Boolean)],oH.prototype,"isOverlay",void 0);_.U([_.O(),_.W("design:type",Boolean)],oH.prototype,"linkInheritColor",void 0);
_.U([_.O(),_.W("design:type",Boolean)],oH.prototype,"noPreWrap",void 0);_.U([_.O(),_.W("design:type",Boolean)],oH.prototype,"userInput",void 0);_.U([_.O({value:16}),_.W("design:type",Number)],oH.prototype,"emojiSize",void 0);_.U([_.O(),_.W("design:type",String)],oH.prototype,"target",void 0);_.U([_.O(),_.W("design:type",Boolean)],oH.prototype,"enableContentEditable",void 0);_.U([_.O(),_.W("design:type",String)],oH.prototype,"overrideAriaLabel",void 0);
_.U([_.O(),_.W("design:type",Boolean)],oH.prototype,"respectHtmlDir",void 0);_.U([_.O(),_.W("design:type",Boolean)],oH.prototype,"respectLangDir",void 0);_.U([_.K("plaintextOnly"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],oH.prototype,"useMixedDirectionFormattedStrings",null);_.U([_.O({computed:"computeUseAttributedString(text)"}),_.W("design:type",Boolean)],oH.prototype,"useYtAttributedString",void 0);
_.U([_.N("text"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],oH.prototype,"textChanged",null);_.U([_.N("ellipsisTruncate"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],oH.prototype,"ellipsisTruncateChanged_",null);_.U([_.N("overrideAriaLabel"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],oH.prototype,"overrideAriaLabelChanged_",null);
_.U([_.N("enableContentEditable"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],oH.prototype,"enableContentEditableChanged_",null);oH=_.U([_.ur({is:"yt-formatted-string",disableElementRegistration:!0})],oH);
_.S(oH,"yt-formatted-string",function(){if(zPb===void 0){var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;yPb===void 0&&(yPb=document.createElement("template"));var d=yPb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);zPb=a}a=zPb;return a});var BPb;var CPb;var DPb;var EPb;var FPb=function(){var a=_.P.apply(this,arguments)||this;a.focused=!1;a.disabled=!1;a.isOverlay=!1;return a};
_.z(FPb,_.P);FPb.prototype.triggerDown=function(){if(!this.disabled){_.$q(this.hostElement,"down",!0);var a;(a=this.JSC$11647_currentAnimation)==null||a.cancel()}};
FPb.prototype.triggerUp=function(){if(!this.disabled){_.$q(this.hostElement,"down",!1);var a=this.JSC$11647_fillElement;var b=this.JSC$11647_strokeElement;typeof GroupEffect==="function"?(a=new GroupEffect([KSa(a),LSa(b)]),a=new Animation(a,document.timeline)):a=new eH(a,b);this.JSC$11647_currentAnimation=a;var c;(c=this.JSC$11647_currentAnimation)==null||c.play()}};
var pH=FPb;_.U([_.gr(".stroke"),_.W("design:type",HTMLElement)],pH.prototype,"JSC$11647_strokeElement",void 0);_.U([_.gr(".fill"),_.W("design:type",HTMLElement)],pH.prototype,"JSC$11647_fillElement",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],pH.prototype,"focused",void 0);_.U([_.O(),_.W("design:type",Object)],pH.prototype,"disabled",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],pH.prototype,"isOverlay",void 0);
pH=_.U([_.ur({is:"yt-interaction",disableElementRegistration:!0})],pH);
_.S(pH,"yt-interaction",function(){if(EPb===void 0){var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;DPb===void 0&&(DPb=document.createElement("template"));var d=DPb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);EPb=a}a=EPb;return a},{mode:2});var GPb=function(){return _.P.apply(this,arguments)||this};
_.z(GPb,_.P);_.f=GPb.prototype;_.f.ready=function(){var a=this,b=_.E(this.hostElement).querySelector("#button");b.addEventListener("focus",function(){a.keyboardFocused=_.OKb().isKeyBoardInUse()});
b.addEventListener("blur",function(){a.keyboardFocused=!1;a.rippleUp_()})};
_.f.computeTabIndex_=function(a){return a?-1:0};
_.f.computeButtonAriaPressed_=function(a){if(this.toggleable)return a?"true":"false"};
_.f.rippleDown_=function(){_.E(this.hostElement).querySelector("#interaction").triggerDown()};
_.f.rippleUp_=function(){_.E(this.hostElement).querySelector("#interaction").triggerUp()};
_.f.onPressedChanged_=function(){var a=_.Zq(_.E(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.Zq(_.E(this.hostElement).querySelector("#button")).children[0];a&&(a.active=this.pressed)};
var qH=GPb;qH.prototype.onPressedChanged_=qH.prototype.onPressedChanged_;qH.prototype.rippleUp_=qH.prototype.rippleUp_;qH.prototype.rippleDown_=qH.prototype.rippleDown_;_.U([_.O(),_.W("design:type",String)],qH.prototype,"label",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],qH.prototype,"disabled",void 0);_.U([_.O(),_.W("design:type",Boolean)],qH.prototype,"pressed",void 0);_.U([_.O(),_.W("design:type",Object)],qH.prototype,"toggleable",void 0);
_.U([_.O(),_.W("design:type",Boolean)],qH.prototype,"untabbable",void 0);_.U([_.O(),_.W("design:type",Boolean)],qH.prototype,"keyboardFocused",void 0);_.U([_.M("down"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],qH.prototype,"rippleDown_",null);_.U([_.M("up"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],qH.prototype,"rippleUp_",null);
_.U([_.N("pressed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],qH.prototype,"onPressedChanged_",null);qH=_.U([_.ur({is:"yt-icon-button",disableElementRegistration:!0})],qH);
_.S(qH,"yt-icon-button",function(){if(CPb===void 0){var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;BPb===void 0&&(BPb=document.createElement("template"));var d=BPb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);CPb=a}a=CPb;return a},{mode:2});var HPb=_.cx(["aria-"]),rH={};rH.YtRenderButtonBehavior=[_.Z.YtRendererBehavior,_.nH.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!!_.v().resolve(_.Wi(_.yu))&&_.x("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 a=this.computeHref_(this.endpoint,!0);a?Ld(this.elements_.endpoint,a):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){a=this.buttonClass.split(" ");a=_.h(a);for(var b=a.next();!b.done;b=a.next())b=b.value,_.$q(this.hostElement,b,!0),this.elements_.button&&_.$q(this.elements_.button,b,!0),this.elements_.text&&_.$q(this.elements_.text,b,!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&&(a=null,this.buttonAccessibility&&(a=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=a:a?_.Zd([_.cf(HPb)],this.elements_.button,"aria-label",a):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var a=_.v().resolve(_.Wi(_.yu));a&&(this.keyboardFocused=a.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.YG("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,_.xn(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.xn(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(a,b){if(b)for(a=b.split(" "),a=_.h(a),b=a.next();!b.done;b=a.next())b=b.value,_.$q(this.hostElement,b,!1),this.elements_.button&&_.$q(this.elements_.button,b,!1),this.elements_.text&&_.$q(this.elements_.text,b,!1)},
buttonIconChanged_:function(a){this.elements_.icon?a?(this.elements_.icon.icon=a,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.xn(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.ar(this.hostElement,"is-paper-button-with-icon",!1)):a&&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"&&_.xn(this.elements_.button).appendChild(this.elements_.icon):_.xn(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.ar(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(a){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,a){var b=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(a){case "yt_icon_button_with_label":b=!0;_.$q(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();a=_.xn(this.elements_.button).firstElementChild;
this.elements_.icon=a;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.xn(this.elements_.endpoint).appendChild(this.elements_.button);_.xn(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.YG("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;_.xn(this.elements_.button).appendChild(this.elements_.text);_.xn(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":b=!0,this.elements_.button=this.getYtIconButton_(),a=_.xn(this.elements_.button).firstElementChild,this.elements_.icon=a,this.setIconActive_(this.elements_.icon),
_.xn(this.elements_.endpoint).appendChild(this.elements_.button)}_.ar(this.hostElement,"is-icon-button",b);_.ar(this.hostElement,"is-paper-button",!b);_.ar(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 c;_.E((c=this.container.hostElement)!=null?c:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.xn(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(a){if(a!=void 0||this.disabled)this.disabled=a,this.elements_.button&&(this.elements_.button.disabled=a)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(a){_.x("kevlar_system_icons")&&a&&this.data&&(this.data.isSelected!==void 0?a.active=this.data.isSelected:this.data.isToggled!==void 0&&(a.active=this.data.isToggled))},
observeBasicPalette_:function(a){_.Gt(this.hostElement,a)},
disabledChanged_:function(a){this.data&&this.set("data.isDisabled",a)},
onYtButtonTap_:function(a){if(this.disabled)a.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.mo(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(a=this.disableCommandHandlerOverride,!this.data||!this.data.command||a||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.x("handle_service_request_actions")||_.mo(this.hostElement,[this.serviceEndpoint]),
_.go(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.x("handle_service_request_actions")?(a=[],this.serviceEndpoint&&a.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&a.push(this.data.command),a.length&&_.no(this.hostElement,a,this.hostElement)):this.data&&this.data.command&&(a=this.data.command,a.accountUnlinkCommand||a.accountLinkCommand||a.insertAdCommand||a.insertHighlightMarkerCommand||
a.createLivestreamHighlightClipCommand||a.getVideoUploadFeedbackCommand||a.musicDeletePrivatelyOwnedEntityCommand||a.ypcCancelRecurrenceEndpoint||a.getMultiSelectCommandEndpoint?_.mo(this.hostElement,[a]):_.no(this.hostElement,[a],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 a,b=_.E((a=this.container.hostElement)!=null?a:this.container);b.lastChild&&b.lastChild.tagName!="STYLE";)try{b.removeChild(b.lastChild)}catch(c){break}},
getYtIconButton_:function(){var a=this.reuseEnabled_()?_.YG("yt-icon-button"):document.createElement("yt-icon-button"),b=_.xn(a).firstElementChild;if(b&&b.is!="yt-icon"){for(b=_.xn(a);b.lastChild;)b.removeChild(b.lastChild);b=null}b||(b=this.getIcon_(),this.setIconActive_(b),_.xn(a).appendChild(b));return a},
reuseEnabled_:function(){return _.x("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.YG("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.YG("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.IPb={};
_.IPb.YtButtonBehavior=[rH.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var a=this.data;a&&(this._setEndpoint(this.computeEndpoint_(a)),this._setServiceEndpoint(this.computeServiceEndpoint_(a)),this._setCommand(this.computeCommand_(a)),this._setButtonIcon(this.computeButtonIcon_(a)),this._setButtonText(this.computeButtonText_(a,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(a)),this._setButtonTooltip(this.computeTooltip_(a)),this._setButtonClass(this.computeButtonClass_(a)),this._setIconPositionType(this.computeIconPositionType_(a)),this.updateRenderedElements())},
setPressedState:function(a){var b;if((b=this.elements_)==null?0:b.button)this.elements_.button.pressed=!!a},
computeIconPositionType_:function(a){return a&&a.iconPosition||null},
computeEndpoint_:function(a){var b=a&&a.navigationEndpoint,c=this.get("data.command.commandMetadata.webCommandMetadata.url"),d=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return b?b:a&&a.command&&a.command.modalEndpoint?a.command:c&&!d&&a.command?a.command:null},
computeServiceEndpoint_:function(a){var b=a&&a.serviceEndpoint,c=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return b?b:c&&a.command?a.command:null},
computeCommand_:function(a){return a&&a.command||null},
computeButtonIcon_:function(a){return a&&a.icon&&a.icon.iconType?_.fs(a.icon.iconType):null},
computeButtonText_:function(a,b){return!b&&a&&a.text||null},
computeAccessibility_:function(a){return this.get("accessibilityData.accessibilityData",a)||a&&a.accessibility||(a&&a.text?{label:this.getSimpleString(a.text)}:null)},
computeTooltip_:function(a){return a?a.isDisabled&&a.disabledTooltip||a.tooltip||null:null},
computeButtonClass_:function(a){var b=a&&a.style?a.style.toLowerCase().replace(/_/g,"-")+" ":"";b+=a&&a.size?a.size.toLowerCase().replace(/_/g,"-")+" ":"";a.colorData&&a.colorData.basicColorPaletteData&&a.colorData.basicColorPaletteData.borderColor&&(b+="palette-with-border");return b.trim()}}];var Ht={};var JPb;var KPb;var LPb,MPb=function(){return LPb!==void 0?LPb:LPb=document.createElement("template")};
document.head.appendChild(MPb().content);var NPb;var OPb,PPb=function(){return OPb!==void 0?OPb:OPb=document.createElement("template")};
document.head.appendChild(PPb().content);var QPb;var RPb,SPb=function(){return RPb!==void 0?RPb:RPb=document.createElement("template")};
document.head.appendChild(SPb().content);var TPb;var UPb=document.head,VPb=UPb.appendChild,WPb;if(TPb===void 0){var XPb=document.createElement("template");_.B(XPb,"\x3c!--css-build:shady--\x3e");XPb.content.insertBefore(SPb().content.cloneNode(!0),XPb.content.firstChild);TPb=XPb}WPb=TPb;VPb.call(UPb,WPb.content);var YPb=document.head,ZPb=YPb.appendChild,$Pb;if(QPb===void 0){var aQb=document.createElement("template");_.B(aQb,"\x3c!--css-build:shady--\x3e");aQb.content.insertBefore(PPb().content.cloneNode(!0),aQb.content.firstChild);QPb=aQb}$Pb=QPb;ZPb.call(YPb,$Pb.content);var bQb=document.head,cQb=bQb.appendChild,dQb;if(NPb===void 0){var eQb=document.createElement("template");_.B(eQb,"\x3c!--css-build:shady--\x3e");eQb.content.insertBefore(MPb().content.cloneNode(!0),eQb.content.firstChild);NPb=eQb}dQb=NPb;cQb.call(bQb,dQb.content);_.It("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");var fQb=_.x("web_button_rework")&&_.Gi("BUTTON_REWORK")||_.x("web_button_rework_with_live"),sH=function(){return _.P.apply(this,arguments)||this};
_.z(sH,_.P);sH.prototype.created=function(){this.openPopupConfig=_.Ei("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
sH.prototype.onYtNavigate_=function(a){var b=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(a.detail.endpoint);b&&(this.ytOpenPopupBehavior.openPopup(b),a.stopPropagation(),a.preventDefault())};
_.Vm.Object.defineProperties(sH,{template:{configurable:!0,enumerable:!0,get:function(){if(KPb===void 0){var a=document.createElement("template");_.B(a,"\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");a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);
var b=a.content,c=b.insertBefore;JPb===void 0&&(JPb=document.createElement("template"));var d=JPb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);KPb=a}a=KPb;return a}}});
_.tH=sH;_.tH.prototype.onYtNavigate_=_.tH.prototype.onYtNavigate_;_.U([_.H(_.mH.YtOpenPopupBehavior),_.W("design:type",Object)],_.tH.prototype,"ytOpenPopupBehavior",void 0);_.U([_.H(_.IPb.YtButtonBehavior),_.W("design:type",Object)],_.tH.prototype,"ytButtonBehavior",void 0);_.U([_.M("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],_.tH.prototype,"onYtNavigate_",null);
_.tH=_.U([_.ur({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:fQb})],_.tH);var gQb;var hQb=_.x("web_button_rework")&&_.Gi("BUTTON_REWORK")||_.x("web_button_rework_with_live"),uH=function(){var a=_.P.apply(this,arguments)||this;a.isPressed=!1;a.forceIconButton=!1;a.forceIconOnly=!1;a.forceModernIconButton=!1;a.skipCommandHandling=!1;a.alignByText=!1;a.fitToVisibleBounds=!0;a.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};a.onTap=function(b){_.go(a.hostElement,"yt-service-request-sent-button-renderer",b)};
return a};
_.z(uH,_.P);_.f=uH.prototype;_.f.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.f.onClick=function(a){var b,c=this.disabled||((b=this.data)==null?void 0:b.isDisabled);b=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");c&&b&&a.stopPropagation()};
_.f.computeIcon=function(){var a,b,c=(a=this.data)==null?void 0:(b=a.icon)==null?void 0:b.iconType;if(c)return _.fs(c)};
_.f.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.f.handleUpdateButtonAction=function(a){a=_.y(a,Rzb);var b=_.y(a==null?void 0:a.updatedButton,_.OE);if(this.data&&a&&b){var c=this.data;c.targetId&&a.targetId&&c.targetId===a.targetId&&(this.data=b)}};
_.Vm.Object.defineProperties(uH.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var a=this;if(this.data){var b=LTa({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.go(a.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.go(a.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});b.alignByText=this.alignByText;return b}}}});
_.Vm.Object.defineProperties(uH,{template:{configurable:!0,enumerable:!0,get:function(){if(gQb===void 0){var a=document.createElement("template");_.B(a,'\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>');gQb=a}a=gQb;return a}}});
var vH=uH;vH.prototype.onClick=vH.prototype.onClick;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],vH.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],vH.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],vH.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],vH.prototype,"data",void 0);
_.U([_.O(),_.W("design:type",Object)],vH.prototype,"isPressed",void 0);_.U([_.O(),_.W("design:type",Object)],vH.prototype,"forceIconButton",void 0);_.U([_.O(),_.W("design:type",Object)],vH.prototype,"forceIconOnly",void 0);_.U([_.O(),_.W("design:type",Object)],vH.prototype,"forceModernIconButton",void 0);_.U([_.O(),_.W("design:type",Object)],vH.prototype,"skipCommandHandling",void 0);_.U([_.O(),_.W("design:type",Object)],vH.prototype,"alignByText",void 0);
_.U([_.O(),_.W("design:type",Object)],vH.prototype,"buttonTooltipPosition",void 0);_.U([_.O(),_.W("design:type",Object)],vH.prototype,"fitToVisibleBounds",void 0);_.U([_.O({computed:"computeTooltip(data)"}),_.W("design:type",Object)],vH.prototype,"tooltip",void 0);_.U([_.O(),_.W("design:type",Object)],vH.prototype,"overrides",void 0);_.U([_.O(),_.W("design:type",Boolean)],vH.prototype,"disabled",void 0);
_.U([_.M("click"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],vH.prototype,"onClick",null);_.U([_.K("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.W("design:type",Object),_.W("design:paramtypes",[])],vH.prototype,"computedButtonShape",null);
vH=_.U([_.ur({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!hQb,cssBuildOptOut:!0}),_.ur({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!hQb,cssBuildOptOut:!0})],vH);var iQb;var jQb;var kQb=function(){var a=_.P.apply(this,arguments)||this;a.empty_=!0;a.loadTime=Infinity;a.pendingPaint=!1;a.hasChange_=!1;a.oldThumbnail_=null;a.oldDelayedSrc_="";a.objectURL_=null;return a};
_.z(kQb,_.P);_.f=kQb.prototype;_.f.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.f.ready=function(){var a=this.shouldShowPlaceholder_();_.$q(this.hostElement,"no-transition",!0);a&&this.hostElement.classList.add("with-placeholder")};
_.f.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.f.isThumbPreloaded_=function(a){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",a)};
_.f.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||lQb};
_.f.computeThumbnailSrc_=function(a){return a&&a.thumbnails?_.Xs(a.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.f.computeAlt_=function(){var a=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&a||""};
_.f.thumbnailChanged_=function(){var a=_.h([this.thumbnail,this.oldThumbnail_]),b=a.next().value;a=a.next().value;this.oldThumbnail_=b;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(a=this.computeThumbnailSrc_(a),this.computeThumbnailSrc_(b)===a))return;_.x("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(b)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):b&&_.Gi("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.Tm(this,this.onReload_):_.Tm(this,this.onShow_):this.resetImage_();b&&(this.hostElement.style.opacity=""+b.opacity)}};
_.f.delayedSrcChanged_=function(){var a=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===a||this.resetImage_()};
_.f.setSrc_=function(a){a?(_.E(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.E(this.hostElement).querySelector("#img").src=a):(_.E(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.f.resetImage_=function(){QRa(this.hostElement);this.empty_=!0;this.setSrc_(lQb);this.ytRendererBehavior.invalidate(!1)};
_.f.observePlaceholderColor_=function(){var a=this.thumbnail&&this.thumbnail.placeholderColor;a?this.hostElement.style.backgroundColor=_.Bq(a):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.f.onLoad_=function(){_.E(this.hostElement).querySelector("#img").src&&_.E(this.hostElement).querySelector("#img").src!==lQb&&(PRa(this.hostElement),this.notifyOnLoaded&&_.go(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.f.onError_=function(){var a=this;if(_.x("web_use_cache_for_image_fallback"))XRa(_.E(this.hostElement).querySelector("#img").src).then(function(b){a.objectURL_=Hd(b).toString();a.setSrc_(a.objectURL_)}).catch(function(){_.x("kevlar_woffle_fallback_image")&&a.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.f.onPrescanVisible=function(){this.onShow_()};
_.f.onVisible=function(){if(_.x("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.f.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var a=this.computeSrc_();a!==_.E(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(a))}};
_.f.onReload_=function(){this.empty_=!1;var a=this.computeSrc_();a!==_.E(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(a))};
_.f.shouldShowPlaceholder_=function(){return _.x("kevlar_thumbnail_bg")};
var wH=kQb;wH.prototype.observePlaceholderColor_=wH.prototype.observePlaceholderColor_;wH.prototype.delayedSrcChanged_=wH.prototype.delayedSrcChanged_;wH.prototype.thumbnailChanged_=wH.prototype.thumbnailChanged_;_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],wH.prototype,"alt",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],wH.prototype,"ariaHidden",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],wH.prototype,"ariaLabel",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],wH.prototype,"hidden",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],wH.prototype,"id",void 0);_.U([_.H(_.OG.YtVisibilityBehavior),_.W("design:type",Object)],wH.prototype,"ytVisibilityBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],wH.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",String)],wH.prototype,"delayedSrc",void 0);
_.U([_.O(),_.W("design:type",Object)],wH.prototype,"thumbnail",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],wH.prototype,"loaded",void 0);_.U([_.O(),_.W("design:type",Boolean)],wH.prototype,"notifyOnLoaded",void 0);_.U([_.O(),_.W("design:type",Number)],wH.prototype,"height",void 0);_.U([_.O(),_.W("design:type",Number)],wH.prototype,"width",void 0);_.U([_.O({value:function(){return"width"}}),
_.W("design:type",String)],wH.prototype,"dimension",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],wH.prototype,"fit",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],wH.prototype,"fitHeight",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],wH.prototype,"fitWidth",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],wH.prototype,"objectFit",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],wH.prototype,"objectPosition",void 0);_.U([_.O(),_.W("design:type",String)],wH.prototype,"preferredThumbnail",void 0);_.U([_.O({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.W("design:type",String)],wH.prototype,"alt_",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],wH.prototype,"sharedTooltipText",void 0);
_.U([_.O(),_.W("design:type",Boolean)],wH.prototype,"ftlEligible",void 0);_.U([_.O({value:void 0}),_.W("design:type",String)],wH.prototype,"observeHiddenOption",void 0);_.U([_.O({value:"observe_once"}),_.W("design:type",String)],wH.prototype,"observePrescanOption",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],wH.prototype,"roundedContainer",void 0);
_.U([_.kr("thumbnail"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],wH.prototype,"thumbnailChanged_",null);_.U([_.kr("delayedSrc"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],wH.prototype,"delayedSrcChanged_",null);_.U([_.N("thumbnail.placeholderColor"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],wH.prototype,"observePlaceholderColor_",null);
wH=_.U([_.ur({is:"yt-img-shadow",disableElementRegistration:!0})],wH);var lQb=_.Gi("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.$r()(wH,"yt-img-shadow",function(){if(jQb===void 0){var a=document.createElement("template");_.B(a,'\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">');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;iQb===void 0&&(iQb=document.createElement("template"));var d=iQb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);jQb=a}a=jQb;return a},{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 r6a;_.xH=new _.fB("SCREEN_MANAGER_TOKEN");r6a=new _.fB("LOG_INITIAL_SCREEN_TOKEN");_.Hu=_.Rr(function(a){function b(ma){return _.y(ma,_.Fu)}
function c(){var ma=d().isTogglingDisabled||w()?G():!G();J(ma);R(!1);if(!d().isTogglingDisabled){var Ba;(Ba=k)==null||Ba(!!ma)}var Da;((Da=g)==null?0:Da())||_.qF(_.v().resolve(_.xH),d().trackingParams);var za;if(!ma||!b(d().defaultButtonViewModel)||(za=g)!=null&&za()){var Fa;!b(d().toggledButtonViewModel)||((Fa=g)==null?0:Fa())||_.qF(_.v().resolve(_.xH),b(d().toggledButtonViewModel).trackingParams)}else _.qF(_.v().resolve(_.xH),b(d().defaultButtonViewModel).trackingParams)}
var d=a.data,e=a.buttonShapeOverrides,g=a.disableExplicitClickLogging,k=a.onToggle,m=a.style,n=a.useOutlinedIcon,r=a.className,t=function(){var ma,Ba;return G()?(ma=a.animatedTextPropsToggled)==null?void 0:ma.call(a):(Ba=a.animatedTextPropsDefault)==null?void 0:Ba.call(a)},u=_.kh(function(){return t()?Object.assign({},t(),{shouldAnimate:I()}):void 0},void 0,"ZKEa0b"),w=function(){var ma;
return((ma=fa())==null?void 0:ma.isToggled)!==void 0},A=_.h(_.qt(function(){var ma,Ba,Da;
return w()?(ma=fa())==null?void 0:ma.isToggled:(Da=e==null?void 0:(Ba=e())==null?void 0:Ba.toggled)!=null?Da:d().isToggled})),C=A.next().value;
A=A.next().value;var G=C,J=A;A=_.h(_.qt(function(){var ma,Ba;return(ma=a.animatedTextPropsToggled)==null?void 0:(Ba=ma.call(a))==null?void 0:Ba.shouldAnimate}));
C=A.next().value;A=A.next().value;var I=C,R=A;C=_.h(_.fh(!1,"S11hid"));var ca=C.next().value,V=C.next().value,fa=_.Mr(function(ma){var Ba;a:{var Da=d().entityKey,za=d().toggledStateEntitySelectorType;if(za&&Da)switch(za){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":var Fa;ma=(Fa=_.mp(ma.entities,"sfvAudioItemCurrentlyPlayingEntity",Da))!=null?Fa:void 0;Fa=(Ba=ma==null?void 0:ma.sfvAudioItemPlaybackState)!=null?Ba:void 0;if(Fa==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){Ba={isToggled:!0};
break a}if(Fa){Ba={isToggled:!1};break a}break;default:_.Dl(new _.qj("Error: entitySelectorType defined but not matched in selector.",ma,za))}Ba=void 0}return Ba});
C=_.ot(function(){var ma=_.v().resolve(_.Wi(_.yu));ma&&V(ma.isKeyBoardInUse());return!1});
A=_.ot(function(){V(!1);return!1});
var aa=function(){return Object.assign({},e==null?void 0:e(),{onToggle:c,toggleable:!0,toggled:G(),focused:ca()})};
return _.q("toggle-button-view-model",{"on:focusin":C,"on:focusout":A,class:r},_.q(_.oi,{cond:function(){return G()?b(d().toggledButtonViewModel):b(d().defaultButtonViewModel)},
then:function(ma){return _.q(_.Ju,{data:ma,className:r,style:m,useOutlinedIcon:n,buttonOverrides:aa,animatedTextProps:u})}}))});
_.Hu.idomCompat={callbacks:{onToggle:!0}};_.Ws(_.Rr(function(a){return _.q("yt-toggle-button-view-model",{class:function(){var b;return(b=a.scopingClassName)==null?void 0:b.call(a)}},_.q(_.Hu,{data:function(){var b;
return(b=a.data)==null?void 0:b.call(a)},
buttonShapeOverrides:function(){var b;return(b=a.overrides)==null?void 0:b.call(a)},
animatedTextPropsDefault:function(){var b;return(b=a.animatedTextPropsDefault)==null?void 0:b.call(a)},
animatedTextPropsToggled:function(){var b;return(b=a.animatedTextPropsToggled)==null?void 0:b.call(a)},
disableExplicitClickLogging:function(){var b;return(b=a.disableExplicitClickLogging)==null?void 0:b.call(a)},
onToggle:function(b){var c;return(c=a.onToggle)==null?void 0:c.call(a,b)},
style:function(){var b;return(b=a.style)==null?void 0:b.call(a)},
useOutlinedIcon:function(){var b;return(b=a.useOutlinedIcon)==null?void 0:b.call(a)},
className:function(){var b;return(b=a.className)==null?void 0:b.call(a)}}))}),"yt-toggle-button-view-model",{props:{data:_.SG,
buttonShapeOverrides:_.SG,overrides:_.SG,animatedTextPropsDefault:_.SG,animatedTextPropsToggled:_.SG,disableExplicitClickLogging:_.SG,onToggle:_.Vs,style:_.SG,useOutlinedIcon:_.SG,className:_.SG,scopingClassName:_.SG}});var mQb=function(){return _.P.apply(this,arguments)||this};
_.z(mQb,_.P);mQb.prototype.onTap=function(a){a.stopPropagation();a=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.Iu("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:a})):this.ytLiveChatReduxBehavior.dispatch(_.vu("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:a}))};
_.Vm.Object.defineProperties(mQb.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.engagementState)==null?void 0:a.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var a=_.y(this.data.toggleButton,_.Gu),b;if(Number(((b=this.likeCountState)==null?void 0:b.likeCountIfIndifferentNumber)||"0")===0){var c;b=((c=this.data.likeCountPlaceholder)==null?void 0:c.content)||""}else{var d,e,g;b=((d=this.likeCountState)==null?void 0:(e=d.likeCountIfIndifferent)==null?void 0:e.content)||((g=this.data.likeCountPlaceholder)==null?void 0:g.content)||""}var k,m;c=((k=this.likeCountState)==null?void 0:(m=
k.likeCountIfLiked)==null?void 0:m.content)||"1";k=_.y(a.toggledButtonViewModel,_.Fu);return Object.assign({},a,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.y(a.defaultButtonViewModel,_.Fu),{title:b})},toggledButtonViewModel:{buttonViewModel:Object.assign({},k,{title:c})}})}}}});
var yH=mQb;yH.prototype.onTap=yH.prototype.onTap;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],yH.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],yH.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.JG),_.W("design:type",Object)],yH.prototype,"ytLiveChatReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],yH.prototype,"data",void 0);
_.U([_.O({selectorArgs:["data.likeCountEntityKey"],selector:aPa}),_.W("design:type",Object)],yH.prototype,"likeCountState",void 0);_.U([_.O({selectorArgs:["data.engagementStateKey"],selector:$Oa}),_.W("design:type",Object)],yH.prototype,"engagementState",void 0);_.U([_.K("data","engagementState"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],yH.prototype,"isLiked",null);
_.U([_.K("data","likeCountState","isLiked"),_.W("design:type",Object),_.W("design:paramtypes",[])],yH.prototype,"toggleButton",null);_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],yH.prototype,"onTap",null);yH=_.U([_.ur({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],yH);
_.S(yH,"yt-live-chat-like-button-view-model",function(){if(wPb===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;vPb===void 0&&(vPb=document.createElement("template"));var d=vPb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);wPb=a}a=wPb;return a},{mode:_.x("live_chat_enable_sink_wrapper")?2:0});var nQb;var oQb;var pQb=function(){return _.P.apply(this,arguments)||this};
_.z(pQb,_.P);var zH=pQb;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],zH.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],zH.prototype,"data",void 0);zH=_.U([_.ur({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],zH);
_.S(zH,"yt-live-chat-paid-message-footer-renderer",function(){if(oQb===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;nQb===void 0&&(nQb=document.createElement("template"));var d=nQb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);oQb=a}a=oQb;return a},{mode:_.x("live_chat_enable_sink_wrapper")?2:0});var qQb;var rQb;var sQb;var tQb,uQb=function(){if(tQb!==void 0)return tQb;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;sQb===void 0&&(sQb=document.createElement("template"));var d=sQb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return tQb=a};var AH=function(){return _.P.apply(this,arguments)||this};
_.z(AH,_.P);AH.prototype.onTap=function(a){a.stopPropagation()};
_.Vm.Object.defineProperties(AH.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var a=_.y(this.data.replyButton,_.Fu),b,c,d,e,g,k,m,n=Number(((b=this.replyCountState)==null?void 0:b.replyCountNumber)||"0")===0?(c=this.data)==null?void 0:(d=c.replyCountPlaceholder)==null?void 0:d.content:((e=this.replyCountState)==null?void 0:(g=e.replyCount)==null?void 0:g.content)||((k=this.data)==null?void 0:(m=k.replyCountPlaceholder)==null?void 0:m.content)||"",r;return Object.assign({},
a,{title:n,accessibilityText:(r=this.replyCountState)==null?void 0:r.replyButtonAccessibilityText})}}}});
_.Vm.Object.defineProperties(AH,{template:{configurable:!0,enumerable:!0,get:function(){return uQb()}}});
var BH=AH;BH.prototype.onTap=BH.prototype.onTap;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],BH.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],BH.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.JG),_.W("design:type",Object)],BH.prototype,"ytLiveChatReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],BH.prototype,"data",void 0);
_.U([_.O({selectorArgs:["data.replyCountEntityKey"],selector:function(a,b){return _.mp(a.entities,"replyCountEntity",b)}}),
_.W("design:type",Object)],BH.prototype,"replyCountState",void 0);_.U([_.K("data","replyCountState"),_.W("design:type",Object),_.W("design:paramtypes",[])],BH.prototype,"buttonViewModel",null);_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],BH.prototype,"onTap",null);BH=_.U([_.ur({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],BH);
_.S(BH,"yt-live-chat-reply-button-view-model",function(){return uQb()},{mode:_.x("live_chat_enable_sink_wrapper")?2:0});var vQb;var wQb;var CH=function(){var a=_.P.apply(this,arguments)||this;a.ariaLabel="";return a};
_.z(CH,_.P);
CH.prototype.dataChanged=function(){for(var a=(0,_.br)(_.E(this.hostElement).querySelector("#image"));a.firstChild;)a.removeChild(a.firstChild);if(this.data)if(this.data.icon){var b=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(b.polymerController.icon="yt-sys-icons:shield-filled",b.polymerController.defaultToFilled=!0):b.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();a.appendChild(b)}else if(this.data.customThumbnail){b=document.createElement("img");
var c=_.IRa(this.data.customThumbnail.thumbnails,16);c?(b.src=c,a.appendChild(b),b.setAttribute("alt",this.hostElement.ariaLabel||"")):_.Dl(new _.qj("Could not compute URL for thumbnail",this.data.customThumbnail))}};
CH.prototype.identity=function(a){return a};
CH.prototype.computeType=function(a){return bs(a||void 0)};
var DH=CH;DH.prototype.dataChanged=DH.prototype.dataChanged;_.U([_.O(),_.W("design:type",Object)],DH.prototype,"data",void 0);_.U([_.O({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.W("design:type",Object)],DH.prototype,"ariaLabel",void 0);_.U([_.O({computed:"computeType(data)",reflectToAttribute:!0}),_.W("design:type",String)],DH.prototype,"type",void 0);
_.U([_.O({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.W("design:type",String)],DH.prototype,"sharedTooltipText",void 0);_.U([_.O({reflectToAttribute:!0,value:function(){return _.x("live_chat_enable_new_moderator_badge")}}),
_.W("design:type",Boolean)],DH.prototype,"enableNewModeratorBadge",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],DH.prototype,"dataChanged",null);DH=_.U([_.ur({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],DH);
_.S(DH,"yt-live-chat-author-badge-renderer",function(){if(wQb===void 0){var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;vQb===void 0&&(vQb=document.createElement("template"));var d=vQb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);wQb=a}a=wQb;return a},{mode:_.x("live_chat_enable_sink_wrapper")?2:0});var xQb;var yQb;var zQb=function(){return _.P.apply(this,arguments)||this};
_.z(zQb,_.P);_.f=zQb.prototype;_.f.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"}}}}};
_.f.computeBadgesInsideChip=function(a){return a?a.filter(function(b){return bs(b.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.f.computeBadgesOutsideChip=function(a){return this.prependChatBadges||!a?[]:a.filter(function(b){b=bs(b.liveChatAuthorBadgeRenderer);return b!=="verified"&&b!=="owner"})};
_.f.computeBadgesBeforeChip=function(a){return this.prependChatBadges&&a?a.filter(function(b){b=bs(b.liveChatAuthorBadgeRenderer);return b!=="verified"&&b!=="owner"}):[]};
_.f.computeIsHighlighted=function(a,b){var c=!!SOa(a,"owner"),d=!!SOa(a,"verified");a=!!SOa(a,"moderator");return(c||d&&!a)&&!b};
_.f.computeAuthorType=function(a){return ROa(a)};
_.f.computeAuthorClass=function(a,b){return b?(a?a+" ":"")+"single-line":a};
_.f.onSeedColorChanged=function(){_.x("live_chat_author_name_color_usernames")||_.x("live_chat_seed_color_usernames")||_.x("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):_.x("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
var EH=zQb;EH.prototype.onSeedColorChanged=EH.prototype.onSeedColorChanged;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],EH.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],EH.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],EH.prototype,"authorName",void 0);_.U([_.O(),_.W("design:type",Array)],EH.prototype,"authorBadges",void 0);
_.U([_.O({computed:"computeAuthorType(authorBadges)"}),_.W("design:type",String)],EH.prototype,"authorType",void 0);_.U([_.O({computed:"computeAuthorClass(authorType, singleLine)"}),_.W("design:type",String)],EH.prototype,"authorClass",void 0);_.U([_.O({computed:"computeBadgesInsideChip(authorBadges)"}),_.W("design:type",Array)],EH.prototype,"badgesInsideChip",void 0);_.U([_.O({computed:"computeBadgesOutsideChip(authorBadges)"}),_.W("design:type",Array)],EH.prototype,"badgesOutsideChip",void 0);
_.U([_.O({computed:"computeBadgesBeforeChip(authorBadges)"}),_.W("design:type",Array)],EH.prototype,"badgesBeforeChip",void 0);_.U([_.O({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.W("design:type",Boolean)],EH.prototype,"isHighlighted",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],EH.prototype,"singleLine",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],EH.prototype,"disableHighlighting",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],EH.prototype,"dashboardMoneyFeed",void 0);_.U([_.O({value:_.x("live_chat_prepend_badges"),reflectToAttribute:!0}),_.W("design:type",Boolean)],EH.prototype,"prependChatBadges",void 0);_.U([_.O(),_.W("design:type",String)],EH.prototype,"authorNameColor",void 0);_.U([_.gr("#author-name"),_.W("design:type",HTMLDivElement)],EH.prototype,"username",void 0);
_.U([_.N("authorNameColor"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],EH.prototype,"onSeedColorChanged",null);EH=_.U([_.ur({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],EH);
_.S(EH,"yt-live-chat-author-chip",function(){if(yQb===void 0){var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;xQb===void 0&&(xQb=document.createElement("template"));var d=xQb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);yQb=a}a=yQb;return a},{mode:_.x("live_chat_enable_sink_wrapper")?2:0});var AQb;var BQb;var CQb=function(){var a=_.P.apply(this,arguments)||this;a.debounceCommand=_.Dy(function(b){a.ytComponentBehavior.resolveCommand(b)},1500);
return a};
_.z(CQb,_.P);CQb.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var a=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",b,c,d=this.isHearted?(b=this.data)==null?void 0:b.unheartCommand:(c=this.data)==null?void 0:c.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.Iu("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:a}));(a=_.Es(d))&&this.debounceCommand(a)}};
_.Vm.Object.defineProperties(CQb.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var a,b;if(!((a=this.data)==null?0:(b=a.creatorThumbnail)==null?0:b.sources))return{};a={thumbnails:[]};b={};b.url=this.data.creatorThumbnail.sources[0].url;a.thumbnails.push(b);return a}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.engagementState)==null?void 0:a.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((b=this.engagementState)==null?void 0:b.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.engagementState)==null?void 0:a.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((b=this.engagementState)==null?void 0:b.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.engagementState)==null?void 0:a.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return((a=this.engagementState)==null?void 0:a.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((b=this.engagementState)==null?void 0:b.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((c=this.engagementState)==null?void 0:c.heartState)==="TOOLBAR_HEART_STATE_HEARTED"}},
label:{configurable:!0,enumerable:!0,get:function(){return this.data?(this.isHearted?this.data.heartedAccessibilityLabel:this.data.unheartedAccessibilityLabel)||"":""}},
heartHoverText:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.isHearted?this.data.heartedHoverText:this.data.unheartedHoverText}}});
var FH=CQb;FH.prototype.onTap=FH.prototype.onTap;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],FH.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],FH.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.JG),_.W("design:type",Object)],FH.prototype,"ytLiveChatReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],FH.prototype,"data",void 0);
_.U([_.O({selectorArgs:["data.engagementStateKey"],selector:$Oa}),_.W("design:type",Object)],FH.prototype,"engagementState",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],FH.prototype,"thumbnailDetails",null);_.U([_.K("data","engagementState"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],FH.prototype,"isHearted",null);_.U([_.K("data","engagementState"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],FH.prototype,"isEditable",null);
_.U([_.K("data","engagementState"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],FH.prototype,"showCreatorView",null);_.U([_.K("data","engagementState"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],FH.prototype,"showButton",null);_.U([_.K("data","isHearted"),_.W("design:type",String),_.W("design:paramtypes",[])],FH.prototype,"label",null);_.U([_.K("data","isHearted"),_.W("design:type",Object),_.W("design:paramtypes",[])],FH.prototype,"heartHoverText",null);
_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],FH.prototype,"onTap",null);FH=_.U([_.ur({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],FH);
_.S(FH,"yt-live-chat-creator-heart-view-model",function(){if(BQb===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;AQb===void 0&&(AQb=document.createElement("template"));var d=AQb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);BQb=a}a=BQb;return a},{mode:_.x("live_chat_enable_sink_wrapper")?2:0});var GH=function(a,b){this.serviceId=new cjb(a,b)};
GH.prototype.toString=function(){return this.serviceId.toString()};var DQb=function(){this.internalMap={}};
_.f=DQb.prototype;_.f.contains=function(a){return Object.prototype.hasOwnProperty.call(this.internalMap,a)};
_.f.get=function(a){if(this.contains(a))return this.internalMap[a]};
_.f.set=function(a,b){this.internalMap[a]=b};
_.f.getKeys=function(){return Object.keys(this.internalMap)};
_.f.remove=function(a){delete this.internalMap[a]};var HH=function(){this.mappings=new DQb;this.errorCallbacks=new Set};
HH.prototype.getModuleId=function(a){return a.serviceId.getModuleId()};
HH.prototype.get=function(a){var b=this.mappings.get(a.toString());return EQb(this,b,a)};
HH.prototype.getMultipleAsync=function(){var a=_.Id.apply(0,arguments),b=this,c=a.map(function(n){return b.getModuleId(n)}),d=a.map(function(n){return b.mappings.get(n.toString())}).filter(function(n){return n});
if(d.length===a.length)return _.oo(d.map(function(n,r){return EQb(b,n,a[r])}));
var e=zg().loadMultiple(c);d=_.Gz(c.map(function(n){return e[n]}));
var g=document.hidden,k=-1,m=_.$i("get_async_timeout_ms",-1);m>-1&&(k=setTimeout(function(){_.Dl(new _.qj("Module timeout.",c,g,document.hidden))},m));
return _.Hz(d.then(function(){return a.map(function(n){return EQb(b,b.mappings.get(n.toString()),n)})}).thenCatch(function(n){for(var r=_.h(b.errorCallbacks),t=r.next();!t.done;t=r.next())t=t.value,t(n);
throw n;}),function(){clearTimeout(k)})};
HH.prototype.registerService=function(a,b){this.mappings.set(a.toString(),{type:"mapping",value:b});return a};
var EQb=function(a,b,c){switch(b.type){case "mapping":return b.value;case "factory":return b=b.value(),a.mappings.set(c.toString(),{type:"mapping",value:b}),b;default:return _.Sb(b)}};
HH.prototype.onLoadError=function(a){var b=this;this.errorCallbacks.add(a);return function(){b.errorCallbacks.delete(a)}};
_.IH=new HH;var FQb=function(){};
_.f=FQb.prototype;
_.f.JSC$11736_getRequest=function(a,b,c){b=b===void 0?{}:b;c=c===void 0?dmb:c;var d=b;if(this.isNavigationCommand()){var e,g=(e=_.y(a==null?void 0:a.commandMetadata,_.ao))==null?void 0:e.url;d=_.lJa(a.clickTrackingParams,!0,!1,g,this.JSC$11736_getClientScreen(d))}else d=_.lJa(a.clickTrackingParams,!1,this.includeCsn);d={context:d};if(e=this.getExtension(a))return this.JSC$11736_buildRequest(d,e,b),e=this.getApiUrl(a),g=Object.assign({},{command:a},this.getRequestConfig(a,b)),d={input:e,requestShell:Tn(e),
innerTubeRequest:d,config:g},d.config.authStrategy?d.config.authStrategy.identity=c:d.config.authStrategy={identity:c},(a=this.JSC$11736_getRequestKey(a,b))&&!d.config.requestKey&&(d.config.requestKey=a),d;a=new _.qj("Error: Failed to create Request from Command.",a);_.Bl(a)};
_.f.getApiUrl=function(a){var b=_.Zp(this.getApiPaths(a)),c;(a=(c=_.y(a.commandMetadata,_.ao))==null?void 0:c.apiUrl)&&(b=a);return yBa(xBa(b))};
_.f.isNavigationCommand=function(){return!1};
_.f.JSC$11736_getClientScreen=function(){};
_.f.JSC$11736_getRequestKey=function(){};
_.f.getRequestConfig=function(){};
_.Vm.Object.defineProperties(FQb.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var JH=function(){};
_.z(JH,FQb);JH.prototype.JSC$11743_getStoreKey=function(){};
JH.prototype.JSC$11736_getRequestKey=function(a,b){b=b===void 0?{}:b;return this.JSC$11743_getStoreKey(a,b)};var KH=function(){};
_.z(KH,JH);KH.prototype.JSC$11736_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:Tn("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
KH.prototype.getApiPaths=function(){return[]};
KH.prototype.getExtension=function(){};
KH.prototype.JSC$11736_buildRequest=function(){};var GQb={},HQb=(GQb.GET_DATASYNC_IDS=Lt(KH),GQb);var IQb,JQb,KQb,bLb,LH,NQb,hLb,MQb,LQb;IQb="tokens consistency mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");JQb=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.Qt=function(a,b,c,d,e,g,k,m,n){this.endpointMap=a;this.networkManager=b;this.authService=c;this.responseProcessorMap=d;this.innertubeResponseStore=e;this.contextProcessors=g;this.asyncContextProcessors=k;this.localInnertubeRouter=m;this.requestSequencer=n;this.inflightRequests=new Map;a.signalEndpointMap||(a.signalEndpointMap={});a.signalEndpointMap=Object.assign({},HQb,a.signalEndpointMap)};
KQb=function(a,b,c,d,e,g,k,m,n){if(_.Qt.instance!==void 0){if(d=_.Qt.instance,a=[a!==d.endpointMap,b!==d.networkManager,c!==d.authService,e!==d.innertubeResponseStore,g!==d.contextProcessors,k!==d.asyncContextProcessors,m!==d.localInnertubeRouter],a.some(function(r){return r}))throw new _.qj("InnerTubeTransportService is already initialized",a);
}else _.Qt.instance=new _.Qt(a,b,c,d,e,g,k,m,n)};
_.St=function(a,b,c){var d=d===void 0?dmb:d;var e=hLb(a,b);return e?new _.kl(function(g,k){var m,n,r,t,u;return _.l(function(w){switch(w.nextAddress){case 1:return _.p(w,e,2);case 2:m=w.yieldResult;n=m.JSC$11736_getRequest(b,c,d);if(!n){k(new _.qj("Error: Failed to build request for command.",b));w.jumpTo(0);break}Eq(n.input);t=((r=n.requestShell)==null?void 0:r.mode)==="cors"?"cors":void 0;if(a.authService.syncHeaders){u=LQb(n.config,t);w.jumpTo(4);break}return _.p(w,MQb(n.config,t),5);case 5:u=
w.yieldResult;case 4:g(NQb(a,n,u)),_.se(w)}})}):_.Pn(new _.qj("Error: No request builder found for command.",b))};
bLb=function(a,b,c,d){var e=e===void 0?dmb:e;var g,k,m,n,r,t,u,w,A,C,G,J,I,R,ca,V,fa,aa;return _.l(function(ma){switch(ma.nextAddress){case 1:g=NTa(b,a.endpointMap);if(!g)throw new _.qj("Error: No streaming request builder found for command",b);k=g.JSC$11736_getRequest(b,c,e);if(!k)throw new _.qj("Failed to build YtRequest for streaming Command",b);if((m=a.localInnertubeRouter)==null||!m.shouldPreferLocalResponse(k.input,k.innerTubeRequest)){ma.jumpTo(2);break}return _.p(ma,a.localInnertubeRouter.localInnertubeResponse(k.input,
k.innerTubeRequest),3);case 3:return n=ma.yieldResult,r={},n.playerResponse&&(LH(a,n.playerResponse,k),r.player=n.playerResponse,(t=d)==null||t(r,n)),n.watchNextResponse&&(LH(a,n.watchNextResponse,k),r.content=n.watchNextResponse,(u=d)==null||u(r,n)),ma.return(r);case 2:A=((w=k.requestShell)==null?void 0:w.mode)==="cors"?"cors":void 0;if(a.authService.syncHeaders){C=LQb(k.config,A);ma.jumpTo(4);break}return _.p(ma,MQb(k.config,A),5);case 5:C=ma.yieldResult;case 4:return I=(J=(G=k.requestShell)==null?
void 0:G.headers)!=null?J:{},k.requestShell=Object.assign({},k.requestShell,{headers:Object.assign({},I,C)}),R=Object.assign({},k.requestShell),ca=JSON.stringify(k.innerTubeRequest),k.requestShell.method==="POST"&&(R=Object.assign({},R,{body:ca})),V=function(Ba,Da){LH(a,Da.playerResponse||Da.watchNextResponse||Da.reelItemWatchResponse||Da.reelWatchSequenceResponse,k);d==null||d(Ba,Da)},fa={},_.p(ma,OQb(a.networkManager,k.input,R,V),6);
case 6:return fa=ma.yieldResult,((aa=k.config)==null?0:aa.responseTick)&&_.Jo(k.config.responseTick),ma.return(fa)}})};
_.OF=function(a,b,c,d,e){e=e===void 0?{authStrategy:{identity:dmb}}:e;var g=g===void 0?!0:g;var k=function(){};
k=PCa(NCa(c));b.context||(b.context=_.lJa(d,g));return new _.kl(function(m){var n,r,t,u,w;return _.l(function(A){if(A.nextAddress==1)return n=xBa(c),r=_.Sn(n),a.authService.syncHeaders?(t=LQb(e,r),A.jumpTo(2)):_.p(A,MQb(e,r),3);A.nextAddress!=2&&(t=A.yieldResult);u=yBa(xBa(c));w={input:u,requestShell:Tn(u),innerTubeRequest:b,config:e};m(NQb(a,w,t,k));_.se(A)})})};
LH=function(a,b,c){var d;if(b&&!(b==null?0:(d=b.sequenceMetaData)==null?0:d.skipProcessing)&&a.responseProcessorMap){d=_.h(IQb);for(var e=d.next();!e.done;e=d.next())e=e.value,a.responseProcessorMap[e]&&a.responseProcessorMap[e].handleResponse(b,c)}};
NQb=function(a,b,c,d){d=d===void 0?function(){}:d;
var e,g,k,m,n,r,t,u,w,A,C,G,J,I,R,ca,V,fa,aa,ma,Ba,Da,za,Fa,bb,kb,Ua,Fc,id,Mb,wd,Tb,tb,Fb,dd,be,ia,gc,Pb,Lc;return _.l(function(qb){switch(qb.nextAddress){case 1:k=(e=b.config)==null?void 0:(g=e.storeStrategy)==null?void 0:g.storeKey;if(!(k&&a.innertubeResponseStore&&a.innertubeResponseStore.has(k))||((m=b.config)==null?0:(n=m.storeStrategy)==null?0:n.disableCache)){qb.jumpTo(2);break}return _.p(qb,a.innertubeResponseStore.get(k),3);case 3:if((r=qb.yieldResult)&&!r.isExpired())return qb.return(Promise.resolve(_.pw(r)));
case 2:if(!((t=b)==null?0:(u=t.innerTubeRequest)==null?0:u.context)){qb.jumpTo(4);break}w=b.innerTubeRequest.context;if(!(a.asyncContextProcessors&&a.asyncContextProcessors.length>0)){qb.jumpTo(5);break}A=[];C=_.h(a.asyncContextProcessors);for(G=C.next();!G.done;G=C.next())J=G.value,I=J.processContext(b),I.wrappedPromise_&&A.push(I.wrappedPromise_);if(!(A.length>0)){qb.jumpTo(5);break}return _.p(qb,Promise.all(A),5);case 5:R=_.h(a.contextProcessors||[]),ca=R.next();case 8:if(ca.done){qb.jumpTo(4);
break}V=ca.value;return _.p(qb,V.processContext(w),9);case 9:ca=R.next();qb.jumpTo(8);break;case 4:if((fa=a.localInnertubeRouter)==null||!fa.shouldPreferLocalResponse(b.input,b.innerTubeRequest)){qb.jumpTo(12);break}return _.p(qb,a.localInnertubeRouter.localInnertubeResponse(b.input,b.innerTubeRequest),13);case 13:return aa=qb.yieldResult,LH(a,aa,b),qb.return(aa);case 12:return(Da=(Ba=b.config)==null?void 0:Ba.requestKey)&&a.inflightRequests.has(Da)?ma=a.inflightRequests.get(Da):(za=JSON.stringify(b.innerTubeRequest),
kb=(bb=(Fa=b.requestShell)==null?void 0:Fa.headers)!=null?bb:{},b.requestShell=Object.assign({},b.requestShell,{headers:Object.assign({},kb,c)}),Ua=Object.assign({},b.requestShell),b.requestShell.method==="POST"&&(Ua=Object.assign({},Ua,{body:za})),((Fc=b.config)==null?0:Fc.requestTick)&&_.Jo(b.config.requestTick),id=function(){return a.networkManager.fetch(b.input,Ua,b.config)},ma=a.requestSequencer?PQb(a.requestSequencer,b,id):id(),Da&&a.inflightRequests.set(Da,ma)),_.p(qb,ma,14);
case 14:if((Mb=qb.yieldResult)&&"error"in Mb&&((wd=Mb)==null?0:(Tb=wd.error)==null?0:Tb.details))for(tb=Mb.error.details,Fb=_.h(tb),dd=Fb.next();!dd.done;dd=Fb.next())be=dd.value,(ia=be["@type"])&&JQb.indexOf(ia)>-1&&(delete be["@type"],Mb=be);Da&&a.inflightRequests.has(Da)&&a.inflightRequests.delete(Da);((gc=b.config)==null?0:gc.responseTick)&&_.Jo(b.config.responseTick);if(Mb||(Pb=a.localInnertubeRouter)==null||!Pb.canProvideFallbackResponse(b.input,b.innerTubeRequest)){qb.jumpTo(15);break}return _.p(qb,
a.localInnertubeRouter.localFallbackInnertubeResponse(b.input,b.innerTubeRequest),16);case 16:Mb=qb.yieldResult;case 15:return LH(a,Mb,b),((Lc=b.config)==null?0:Lc.processorTick)&&_.Jo(b.config.processorTick),d(),qb.return(Mb||void 0)}})};
_.Rt=function(a,b){return MTa(b,a.endpointMap)};
hLb=function(a,b){a=OTa(b,a.endpointMap);if(a!==void 0)return Promise.resolve(a)};
MQb=function(a,b){var c,d,e,g;return _.l(function(k){if(k.nextAddress==1){e=(c=a)==null?void 0:(d=c.authStrategy)==null?void 0:d.sessionIndex;var m=_.oo(Ypa({sessionIndex:e}));return _.p(k,m,2)}g=k.yieldResult;return k.return(Promise.resolve(Object.assign({},PTa(b),g)))})};
LQb=function(a,b){var c;a=a==null?void 0:(c=a.authStrategy)==null?void 0:c.sessionIndex;c=Ypa({sessionIndex:a});return Object.assign({},PTa(b),c)};var QQb,RQb,SQb,TQb,UQb,VQb,YQb,ZQb,OH,$Qb,aRb,XQb,bRb;QQb=0;RQb=/tone[1-5]/;SQb=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");TQb="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
UQb=Number.MAX_SAFE_INTEGER;VQb=RegExp("\ufe0f","g");_.MH=function(a){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;a&&_.WQb(this,a)};
_.WQb=function(a,b){try{_.hj(b,{context:a,onSuccess:function(d,e){Array.isArray(e)?a.load(e):(d=new _.qj("Emoji manager JSON response was not an array!",{response:e}),_.Bl(d))},
onError:function(d){d=new _.qj("Failed to retrieve emoji manager initial JSON data!",{url:b,statusCode:cj(d).toString()});_.Dl(d)}})}catch(d){var c=new _.qj("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:b});
_.Dl(c)}};
_.MH.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.MH.prototype.load=function(a,b){if(b)if(a.length)a=a.concat(b.emojis);else{this.emojis=b.emojis;this.emojiMap=b.emojiMap;this.emojiShortcutMap=b.emojiShortcutMap;this.emojiShortcutCharMap=XQb(b);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=b.emojiRegex;return}this.emojis=[].concat(_.Be(new Set(this.emojis.concat(a))));this.hasInitializedShortcutCharMap=!1;a=Array(this.emojis.length);for(b=0;b<this.emojis.length;b++){var c=this.emojis[b];if(c.emojiId){this.emojiMap[c.emojiId]=c;this.emojiMap[c.emojiId].index=
b;for(var d=0;c.shortcuts&&d<c.shortcuts.length;d++)this.emojiShortcutMap[c.shortcuts[d].toLocaleLowerCase()]=c;a[b]=c.isCustomEmoji&&c.shortcuts?c.shortcuts[0]:c.emojiId}}a.sort(function(e,g){return g.length-e.length});
if(a.length)try{this.emojiRegex=new RegExp(a.join("|").replace("*","\\*"),"gi")}catch(e){this.emojiRegex=/$./}else this.emojiRegex=/$./};
YQb=function(a,b){b=_.h(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value;if(d.emojiId&&a.emojiMap[d.emojiId]){c=Object.assign({},a.emojiMap[d.emojiId],d);a.emojiMap[d.emojiId]=c;var e=void 0;c.index&&((e=a.emojis[c.index])==null?void 0:e.emojiId)===d.emojiId&&(a.emojis[c.index]=c);d=void 0;if((d=c.shortcuts)==null?0:d.length)for(a.hasInitializedShortcutCharMap=!1,d=_.h(c.shortcuts),e=d.next();!e.done;e=d.next())a.emojiShortcutMap[e.value.toLocaleLowerCase()]=c}}};
ZQb=function(a){var b,c;_.l(function(d){if(d.nextAddress==1)return _.p(d,_.DF.getInstance(),2);if(d.nextAddress!=3)return(b=d.yieldResult)?_.p(d,b.get("ytlc-emoji-pref"),3):d.return();(c=d.yieldResult)&&YQb(a,Object.keys(c).map(function(e){return{emojiId:e,stickyPrefId:c[e]}}).filter(function(e){return!!e.emojiId&&!!e.stickyPrefId}));
_.se(d)})};
_.NH=function(a,b,c){return(a=a.emojiMap[b])&&(!a.isLocked||c!==void 0&&c)?a:void 0};
OH=function(a,b,c){c=_.NH(a,b,c===void 0?!1:c);var d=b.match("\u200d");c&&a.skinTone!==0&&(a=(d==null?void 0:d.length)===1?_.NH(a,b.replace("\u200d",SQb[a.skinTone]+"\u200d")):_.NH(a,b+SQb[a.skinTone]))&&(c=a);return c};
$Qb=function(a,b){var c=a.emojiMap[b];return(c==null?0:c.stickyPrefId)?a.emojiMap[c.stickyPrefId]:OH(a,b)};
_.jv=function(a,b){a=a.emojiShortcutMap[b.toLocaleLowerCase()];return!a||a.isLocked?null:a};
aRb=function(a,b,c){return XQb(a,c===void 0?!1:c)[b]||{}};
XQb=function(a,b){b=b===void 0?!1:b;if(!a.hasInitializedShortcutCharMap){a.hasInitializedShortcutCharMap=!0;for(var c=0;c<a.emojis.length;c++){var d=a.emojis[c];if(!(d.isLocked||b&&d.isCustomEmoji&&d.emojiId&&!a.pickerCustomEmojiIds.includes(d.emojiId)))for(var e=0;d.shortcuts&&e<d.shortcuts.length;e++){var g=d.shortcuts[e];g.startsWith(":_")&&d.isCustomEmoji&&(a.emojiShortcutCharMap[":_"]==null&&(a.emojiShortcutCharMap[":_"]=Object.create(null)),a.emojiShortcutCharMap[":_"][g]=d);if(!(g.length<3||
!d.isCustomEmoji&&RQb.test(g))){var k=g.substr(0,3).toLocaleLowerCase();a.emojiShortcutCharMap[k]==null&&(a.emojiShortcutCharMap[k]=Object.create(null));a.emojiShortcutCharMap[k][g]=d}}}}return a.emojiShortcutCharMap};
_.MH.prototype.createEmoji=function(a,b){b=b===void 0?!0:b;var c=document.createElement("img");a.isCustomEmoji||c.classList.add("small-emoji");c.classList.add("emoji");c.classList.add("yt-formatted-string");c.src=a.image?_.Xs(a.image.thumbnails,this.emojiSize)||"":"";var d=void 0;a.image&&a.image.accessibility&&a.image.accessibility.accessibilityData&&(d=a.image.accessibility.accessibilityData.label);c.alt=d?d:(a.isCustomEmoji&&a.shortcuts?a.shortcuts[0]:a.emojiId)||"";a.isCustomEmoji&&(c.dataset.emojiId=
a.emojiId);_.sx&&(c.setAttribute("contenteditable","false"),c.setAttribute("unselectable","on"));b&&(a.shortcuts&&a.shortcuts.length&&c.setAttribute("shared-tooltip-text",a.shortcuts[0]),c.id="emoji-"+QQb++);return c};
_.MH.prototype.createDocumentFragment=function(a,b,c,d){b=b===void 0?!1:b;c=c===void 0?!0:c;d=d===void 0?!1:d;a=a.replace(VQb,"");for(var e=document.createDocumentFragment(),g=0,k,m=0;(k=this.emojiRegex.exec(a))!=null;){var n=_.NH(this,k[0])||_.jv(this,k[0]);!n||n.isCustomEmoji&&!b||(n=this.createEmoji(n,c),g!==k.index&&e.appendChild(document.createTextNode(a.substring(g,k.index))),e.appendChild(n),g=k.index+k[0].length,m++)}if(!d||m)return e.appendChild(document.createTextNode(a.substr(g))),e};
bRb=function(a,b,c){var d,e,g,k,m,n,r,t,u;return _.l(function(w){if(w.nextAddress==1){if(!b.emojiId||!a.emojiMap[b.emojiId])return w.return();d=Object.assign({},a.emojiMap[b.emojiId],{stickyPrefId:c});a.emojiMap[b.emojiId]=d;b.index&&((e=a.emojis[b.index])==null?void 0:e.emojiId)===b.emojiId&&(a.emojis[b.index]=d);if((g=b.shortcuts)==null?0:g.length)for(a.hasInitializedShortcutCharMap=!1,k=_.h(b.shortcuts),m=k.next();!m.done;m=k.next())n=m.value,a.emojiShortcutMap[n.toLocaleLowerCase()]=d;return _.p(w,
_.DF.getInstance(),2)}if(w.nextAddress!=4)return(r=w.yieldResult)?_.p(w,r.get("ytlc-emoji-pref"),4):w.jumpTo(0);u=(t=w.yieldResult)!=null?t:{};u[b.emojiId]=c;return _.p(w,r.set("ytlc-emoji-pref",u,UQb),0)})};
_.PH=new _.MH;var eRb;_.QH={};
eRb={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.x("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:_.x("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 Sp(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 a=_.E(this.hostElement||this).querySelector("#inline-action-button-container");a&&a.setAttribute("aria-hidden","true");this.menuButton=_.E(this.hostElement).querySelector("#menu-button")},
attached:function(){var a=this.menuButton;a&&(a.addEventListener("focusin",_.er(this,this.onMenuButtonFocus_)),a.addEventListener("focusout",_.er(this,this.onMenuButtonBlur_)))},
detached:function(){var a=this.menuButton;a&&(a.removeEventListener("focusin",_.er(this,this.onMenuButtonFocus_)),a.removeEventListener("focusout",_.er(this,this.onMenuButtonBlur_)))},
identity:_.Ma,truthy:function(a){return!!a},
computeTimestampString:function(a){return a?a.timestampText?this.getSimpleString(a.timestampText):this.TIME_FORMATTER.format(new Date(a.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(a){return _.x("live_chat_whole_message_clickable")&&a},
computeMenuVisible_:function(a,b){return a||b},
computeHasInlineActionButtons:function(a){if(!a)return!1;var b,c;return!((b=a.inlineActionButtons)==null||!b.length)||!((c=a.additionalInlineActionButtons)==null||!c.length)},
createDocumentFragmentFromString:function(a){var b=_.PH.createDocumentFragment.bind(_.PH),c;if((c=this.participantsManager)==null||!c.viewerRegex)return b(a);c=document.createDocumentFragment();for(var d=0,e;(e=this.participantsManager.viewerRegex.exec(a))!=null;){if(e.index>0){var g=":"+e[0]+":";if((_.NH(_.PH,g)||_.jv(_.PH,g))&&a.indexOf(g)===e.index-1)continue}c.appendChild(b(a.substring(d,e.index)));d=document.createElement("span");d.appendChild(b(e[0]));d.classList.add("mention");c.appendChild(d);
d=e.index+e[0].length}c.appendChild(b(a.substring(d)));return c},
createDocumentFragment:function(a){var b=document.createDocumentFragment();if(a.simpleText)return b.appendChild(this.createDocumentFragmentFromString(a.simpleText)),b;if(!a.runs)return b;for(var c=0;c<a.runs.length;c++){var d=a.runs[c];if(d.emoji)b.appendChild(_.PH.createEmoji(d.emoji));else if(d.text)if(d.navigationEndpoint){var e=document.createElement("a");e.classList.add("yt-simple-endpoint");rua(e,d.navigationEndpoint);_.E(e).appendChild(this.createDocumentFragmentFromString(d.text));b.appendChild(e)}else b.appendChild(this.createDocumentFragmentFromString(d.text))}return b},
hasModerationOverlayVisible:function(){var a;return((a=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:a.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(a){a.composedPath().some(function(b){return(b=b instanceof Element?b:null)?b.tagName&&(b.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||b.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.x("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(a)},
colorFromDecimal:function(a){return EPa(a)},
markAsDeleted:function(a,b){this.set("data.deletedStateMessage",a);this.set("data.showOriginalContentMessage",b)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(a){if(this.data.contextMenuEndpoint){var b=_.v().resolve(_.wq),c=this.data.contextMenuEndpoint,d;(d=_.Qt.instance)&&_.Rt(d,c)?(b=cRb(b,c),d=_.OF(d,{},b)):d=_.dRb(b,c);d.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);a&&a.stopPropagation()}},
handleGetContextMenuResponse_:function(a){var b=_.Qt.instance;b&&_.Rt(b,{liveChatEndpoint:{}})||(a=a.response);a.liveChatItemContextMenuSupportedRenderers&&a.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(a.liveChatItemContextMenuSupportedRenderers.menuRenderer);a.actions&&_.ho(this.hostElement,"yt-live-chat-actions",[a.actions])},
handleGetContextMenuError:function(a){if(a instanceof Error||a instanceof Object||a instanceof String)var b=a;_.Bl(new _.qj("Error encountered calling GetLiveChatItemContextMenu",b))},
showContextMenu_:function(a){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:a}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.go(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.go(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.QH.YtLiveChatItemBehavior=[eRb,_.LG.YtComponentBehavior,_.mH.YtOpenPopupBehavior];_.RH=function(){};var fRb;var gRb;var hRb;var iRb;var jRb=function(){var a=_.P.apply(this,arguments)||this;a.active=!1;a.identity=_.Ma;return a};
_.z(jRb,_.P);jRb.prototype.dataChanged=function(){this.active=!1};
jRb.prototype.onClick=function(){_.go(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
var SH=jRb;SH.prototype.dataChanged=SH.prototype.dataChanged;_.U([_.O(),_.W("design:type",Object)],SH.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],SH.prototype,"active",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],SH.prototype,"dataChanged",null);SH=_.U([_.ur({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],SH);
_.S(SH,"yt-live-chat-text-input-field-suggestion",function(){if(iRb===void 0){var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;hRb===void 0&&(hRb=document.createElement("template"));var d=hRb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);iRb=a}a=iRb;return a},{mode:_.x("live_chat_enable_sink_wrapper")?2:0});_.TH=function(a,b,c){return CustomEvent.call(this,a,{detail:{value:b,path:c}})||this};
_.z(_.TH,CustomEvent);var kRb=function(){var a=_.P.apply(this,arguments)||this;a.viewerName=null;a.actionMap={"yt-live-chat-actions":"onChatMessage_"};a.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];a.PARTICIPANT_TIME_USEC_=3E8;return a};
_.z(kRb,_.P);_.f=kRb.prototype;_.f.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.f.addParticipant=function(a){var b=_.Baa(this.participants,a,function(d,e){d=d[Object.keys(d)[0]];e=e[Object.keys(e)[0]];d=String(_.Vp(d.authorName)).toLowerCase();e=String(_.Vp(e.authorName)).toLowerCase();return d<e?-1:d==e?0:1}.bind(this));
if(b>=0){var c=this.participants[b];c[Object.keys(c)[0]].timestampUsec&&this.splice("participants",b,1,a)}else this.splice("participants",-b-1,0,a);a=a[Object.keys(a)[0]];b=_.Vp(a.authorName).toLocaleLowerCase();c=b.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(c)||(this.allParticipantsCharMap_[c]={});this.allParticipantsCharMap_[c][b]=a};
_.f.getAuthorsFromPrefix=function(a){return this.allParticipantsCharMap_.hasOwnProperty(a)?this.allParticipantsCharMap_[a]:null};
_.f.computeViewerRegex_=function(a){if(!a)return null;a=a.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");return new RegExp("([@#]"+a.replace(/ /g,"\\s*")+"|^"+a.replace(/ /g,"\\s*")+"$|^"+a.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+a.replace(/ /g,"\\s*")+"$|(?<=\\s)"+a.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.f.checkForStaleParticipants_=function(){var a=this;this.trimOldParticipants_();this.asyncHandle_&&WMa(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.Cr(function(){a.checkForStaleParticipants_()},3E4))};
_.f.onChatMessage_=function(a){var b=this,c=Date.now()*1E3;a.forEach(function(d){if(d=_.y(d,sBb)){d=d.item;var e=Object.keys(d)[0];b.SUPPORTED_ITEM_TYPES_.indexOf(e)!=-1&&d[e].timestampUsec>=c-b.PARTICIPANT_TIME_USEC_&&b.addParticipant(d)}},this);
this.checkForStaleParticipants_()};
_.f.trimOldParticipants_=function(){for(var a=Date.now()*1E3,b=this.participants.length-1;b>=0;b--){var c=this.participants[b];c=c[Object.keys(c)[0]];c.timestampUsec&&c.timestampUsec<a-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",b,1)}};
_.UH=kRb;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],_.UH.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],_.UH.prototype,"viewerName",void 0);_.U([_.O({computed:"computeViewerRegex_(viewerName)"}),_.W("design:type",Object)],_.UH.prototype,"viewerRegex",void 0);_.U([_.O({value:function(){return[]},
notify:!0}),_.W("design:type",Array)],_.UH.prototype,"participants",void 0);_.UH=_.U([_.ur({is:"yt-live-chat-participants-manager",noInjection:!0})],_.UH);var lRb=/.*([:@#].*?)$/,VH=/\u00a0/g,mRb=String.fromCharCode(160),nRb={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"},oRb=function(){var a=_.P.apply(this,arguments)||this;a.disabled=!1;a.liveChatRichMessageInput=null;a.messageInput=null;a.isValidWithNoInputText=!1;a.suggestions=[];a.emojiManager=_.PH;a.inputMethodEditorActive=
!1;a.suggestionIndex=-1;a.JSC$11791_lastSuggestionRange=null;return a};
_.z(oRb,_.P);_.f=oRb.prototype;_.f.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.f.attached=function(){_.tx&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.f.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.f.dataChanged=function(){if(!this.ignoreColorMapping){var a=!1,b={},c;for(c in nRb)this.data&&this.data.hasOwnProperty(c)&&(b[nRb[c]]=this.colorFromDecimal(this.data[c]),a=!0);a&&_.dr(this.hostElement,b)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.f.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.f.colorFromDecimal=function(a){a=Math.floor(Number(a));return"rgba("+[a>>16&255,a>>8&255,a&255,(a>>24&255)/255].join()+")"};
_.f.preventDrag=function(a){a.dataTransfer&&(a.dataTransfer.dropEffect="none");a.preventDefault()};
_.f.preventResize=function(a){a.returnValue=!1};
_.f.onInputChange=function(){var a=this.characterCount,b=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&b&&b.remove();if(!b&&this.characterCount>this.maxCharacterLimit){var c=window.getSelection();if(c){var d=c.getRangeAt(0);c.removeAllRanges();c.addRange(d)}}if(c=this.getCurrentRange())d=this.calculateTextBeforeRange(c),this.completeEmojisInRange(c,d,!0)||this.updateSuggestions(c,d);d=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(d);
_.go(this.hostElement,"yt-live-chat-message-input-change",d);b&&this.characterCount===0&&b.remove();c&&c.commonAncestorContainer.parentElement.id==="input"&&c.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>a):c&&!c.collapsed&&c.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(a=this.input.childNodes.length-1;a>=0;a--)this.input.childNodes[a].nodeName==="BR"&&this.input.childNodes[a].remove()};
_.f.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.f.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var a=this.getCurrentRange();a&&a.commonAncestorContainer.parentElement.id==="input"&&a.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.f.mergeOverflowText=function(a){if(a){var b=document.createRange();b.selectNodeContents(a);b=b.extractContents();this.input.insertBefore(b,a)}};
_.f.checkRangeAtEndOfInput=function(){var a=this.getCurrentRange();if(a){var b=_.E(this.hostElement).querySelector("#overflow-text"),c=document.createRange();b&&b.previousSibling?b.previousSibling instanceof HTMLImageElement?c.selectNode(b.previousSibling):c.selectNodeContents(b.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?c.selectNode(this.input.lastChild):c.selectNodeContents(this.input.lastChild));c.collapse(!1);return c.isPointInRange(a.startContainer,
a.startOffset)}return!1};
_.f.handleOverflowText=function(a){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var b=_.E(this.hostElement).querySelector("#overflow-text"),c=this.getCurrentRange();this.input.normalize();a=this.checkRangeAtEndOfInput()&&a;this.mergeOverflowText(b);for(var d,e=0,g=0,k,m=this.input.childNodes,n=0;n<m.length;n++){var r=m[n];r instanceof Text?(g+=r.textContent.length,g>this.maxCharacterLimit&&(d=r,e=this.maxCharacterLimit+r.textContent.length-g)):r instanceof HTMLImageElement&&
(d=void 0,g=r.dataset.emojiId&&((d=this.data)==null?0:d.emojiCharacterCount)?g+this.data.emojiCharacterCount:g+r.alt.length,d=this.input,e=n);if(g>this.maxCharacterLimit&&d){k=document.createRange();k.collapse(!1);b?(g=this.input.lastChild.previousSibling,g instanceof Text?k.setEnd(this.input.lastChild.previousSibling,g.textContent.length):g instanceof HTMLImageElement&&k.setEnd(this.input,this.input.childNodes.length-1)):k.selectNodeContents(this.input);k.setStart(d,e);break}}k&&(d=!1,c&&(a=k.isPointInRange(c.startContainer,
c.startOffset-1)),b||(b=document.createElement("span"),b.id="overflow-text",b.textContent="",b.setAttribute("contenteditable","true"),_.E(_.E(this.hostElement).querySelector("#input")).appendChild(b),d=!0),b&&(c=k.extractContents(),b.insertBefore(c,b.firstChild),a&&b.firstChild&&(c=document.createRange(),d?c.setStartAfter(b.lastChild):c.setStartAfter(b.firstChild),c.collapse(!0),b=window.getSelection(),b.removeAllRanges(),b.addRange(c))))}};
_.f.checkForDuplicateSpans=function(){for(var a=0;a<this.input.childNodes.length;a++){var b=this.input.childNodes[a];if(b.nodeName==="SPAN"){var c=document.createRange();c.selectNodeContents(b);c=c.extractContents();this.input.insertBefore(c,b);b.remove()}}this.handleOverflowText(!0)};
_.f.getCurrentRange=function(){var a=window.getSelection();return a&&a.rangeCount?a.getRangeAt(0).cloneRange():null};
_.f.getInputRange=function(){var a=this.getCurrentRange();if(a){for(var b=a.commonAncestorContainer,c=!1,d=_.E(this.hostElement).querySelector("#input");b;){if(b===d){c=!0;break}b=b.parentNode}c||(a=null)}a||(a=this.getRangeAtEnd());return a};
_.f.getRangeAtEnd=function(){var a=document.createRange(),b=_.E(this.hostElement).querySelector("#input").lastChild;!b||b.nodeName!=="#text"&&b.nodeName!=="SPAN"?(a.selectNodeContents(_.E(this.hostElement).querySelector("#input")),a.collapse(!1)):b.nodeName==="#text"?a.setStart(b,b.textContent.length):a.setStart(b,b.childNodes.length);return a};
_.f.getSuggestions=function(a){var b=[],c=a.substring(0,3),d=aRb(_.PH,c,!0);if(d)for(var e in d)if(e.toLocaleLowerCase().indexOf(a)===0){var g=d[e];if(g&&g.emojiId){if(g=$Qb(_.PH,g.emojiId)){var k=void 0,m=void 0,n=void 0,r=void 0,t=((k=g.image)==null?0:(m=k.accessibility)==null?0:(n=m.accessibilityData)==null?0:n.label)||g.isCustomEmoji?(r=g.shortcuts)==null?void 0:r[0]:g.emojiId;b.push({suggestion:{emoji:!0,image:g.image,alt:t,text:e,textToInsertWhenSelected:g.isCustomEmoji?e:t}})}if(b.length>=
64)break}}if(!this.participantsManager)return null;e=_.x("enable_web_yt_handles");if(c.indexOf("@")===0||c.indexOf("#")===0)if(d=c.charAt(0),e&&c.indexOf("@")===0?c=c.substring(0,2):(a=a.substring(1),c=c.substring(1)),c=this.participantsManager.getAuthorsFromPrefix(c))for(var u in c)if(u.indexOf(a)===0&&(e=c[u],g=_.Vp(e.authorName),b.push({suggestion:{author:!0,authorType:d,image:e.authorPhoto,alt:g,text:g}}),b.length>=64))break;return b?b.sort(function(w,A){return A.suggestion.text<w.suggestion.text?
-1:A.suggestion.text===w.suggestion.text?0:1}):null};
_.f.insertSuggestion=function(a){a.emoji?this.insertTextAtRange(this.JSC$11791_lastSuggestionRange,a.textToInsertWhenSelected||""):a.author&&this.insertTextAtRange(this.JSC$11791_lastSuggestionRange,a.authorType+a.text+mRb)};
_.f.updateSuggestionsAtCaret=function(){var a=this.getCurrentRange();a&&this.updateSuggestions(a,this.calculateTextBeforeRange(a))};
_.f.offsetStartOfRangeBy=function(a,b){for(;b>0;)if(a.startOffset-b>=0){a.setStart(a.startContainer,a.startOffset-b);break}else{b=a.startContainer instanceof HTMLImageElement?b-a.startContainer.alt.length:b-a.startOffset;var c=a.startContainer.previousSibling;if(!c){a.setStart(a.startContainer,0);break}if(_.x("live_chat_require_space_for_autocomplete_emoji")){var d=void 0,e=void 0;a.setStart(c,((d=c)==null?void 0:(e=d.textContent)==null?void 0:e.length)||0)}else a.setStart(c,c.childNodes.length||
0)}};
_.f.updateSuggestions=function(a,b){var c=this;this.JSC$11791_lastSuggestionRange&&(this.JSC$11791_lastSuggestionRange.detach(),this.JSC$11791_lastSuggestionRange=null);if((b=lRb.exec(b))&&b.length&&(b=b[b.length-1].toLocaleLowerCase(),b.length>2&&(this.offsetStartOfRangeBy(a,b.length),this.JSC$11791_lastSuggestionRange=a,(a=this.getSuggestions(b))&&a.length))){this.suggestions=a;_.Tm(this,function(){_.E(c.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(a.length-1);return}this.dropdown.opened=!1};
_.f.completeEmojisInRange=function(a,b,c){var d=b.replace(/[\s\xa0]+$/,"");b=b.length-d.length;d=d.split(" ");d=d[d.length-1].trim().toLocaleLowerCase();var e=d.lastIndexOf(":");if(c&&!b&&e!==d.length-1)return!1;e!==-1&&(c=d.lastIndexOf(":",e-1),c!==-1&&(d=d.substring(c)));if((c=_.jv(_.PH,d))&&c.emojiId){c=$Qb(_.PH,c.emojiId)||null;this.offsetStartOfRangeBy(a,d.length+b);var g,k,m,n;d=(((g=c)==null?0:g.isCustomEmoji)?(k=c)==null?void 0:(m=k.shortcuts)==null?void 0:m[0]:(n=c)==null?void 0:n.emojiId)||
"";b&&(d+=mRb);this.insertTextAtRange(a,d);this.dropdown.opened=!1;return!0}return!1};
_.f.onSuggestion=function(a){this.insertSuggestion(a.detail);this.dropdown.opened=!1};
_.f.onKeyPress=function(a){a.keyCode===13&&(a.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.go(this.hostElement,"yt-live-chat-send-message"))};
_.f.completeEmojis=function(){var a=document.createRange(),b=_.E(this.hostElement).querySelector("#input").lastChild;b?a.setStart(b,b.childNodes.length):(a.selectNodeContents(_.E(this.hostElement).querySelector("#input")),a.collapse(!1));this.completeEmojisInRange(a,this.calculateTextBeforeRange(a),_.x("live_chat_require_space_for_autocomplete_emoji"))};
_.f.maybePreventTextFormatting=function(a){!_.wx||!a.ctrlKey&&!a.metaKey||a.keyCode!==66&&a.keyCode!==73||(a.stopImmediatePropagation(),a.preventDefault())};
_.f.onKeyDown=function(a){this.maybePreventTextFormatting(a);if(this.dropdown.opened)switch(a.keyCode){case 27:this.dropdown.opened=!1;a.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;a.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);a.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),a.preventDefault()}};
_.f.onKeyUp=function(a){switch(a.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.sx)this.onInputChange()};
_.f.changeSuggestionIndex=function(a){if(this.dropdown.opened){var b=_.E(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<b.children.length&&(b.children[this.suggestionIndex].active=!1);var c=this.suggestions.length;this.suggestionIndex=(a+c)%c;a=b.children[this.suggestionIndex];a.active=!0;b.scrollTop=a.offsetTop}};
_.f.onInputPaste=function(a){a.preventDefault();(a=a.clipboardData)&&a.types&&(a=a.getData("text/plain")||"",a=a.replace(/\n/g,""),this.insertText(a));(a=this.getCurrentRange())&&a.commonAncestorContainer.parentElement.id==="input"&&a.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.f.onFocus=function(){this._setFocused(!0)};
_.f.onBlur=function(){this._setFocused(!1)};
_.f.insertText=function(a){this.insertTextAtRange(this.getInputRange(),a)};
_.f.insertTextAtRange=function(a,b){if(a&&(a.collapsed||a.deleteContents(),b=_.PH.createDocumentFragment(b,!0,!1))){for(var c=_.h((b==null?void 0:b.childNodes)||[]),d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0,g=void 0,k=void 0,m=void 0,n=void 0;(k=(e=window)==null?void 0:(g=e.ShadyCSS)==null?void 0:g.ScopingShim)==null||(n=(m=k).scopeNode)==null||n.call(m,d,this.hostElement.localName)}c=b.lastChild;a.insertNode(b);this.focused||this.input.focus();if(this.focused){a=a.cloneRange();a.selectNodeContents(c);
a.collapse(!1);if(b=window.getSelection())b.removeAllRanges(),b.addRange(a);a.commonAncestorContainer.parentElement.id==="input"&&a.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}a=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(a);_.go(this.hostElement,"yt-live-chat-message-input-change",a)}};
_.f.setLiveChatRichMessageInput=function(a){_.E(_.E(this.hostElement).querySelector("#input")).textContent="";if(a&&a.textSegments){for(var b=0;b<a.textSegments.length;b++){var c=a.textSegments[b];c.text?_.E(_.E(this.hostElement).querySelector("#input")).appendChild(_.PH.createDocumentFragment(c.text,!0,!1)):c.emojiId&&(c=_.NH(_.PH,c.emojiId))&&_.E(_.E(this.hostElement).querySelector("#input")).appendChild(_.PH.createEmoji(c,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.f.setText=function(a){this.setLiveChatRichMessageInput(a?{textSegments:[{text:a}]}:null)};
_.f.calculateTextBeforeRange=function(a){var b="",c=a.startContainer;if(c&&c instanceof Text){var d;b=((d=c.textContent)==null?void 0:d.substring(0,a.startOffset))||"";c=c.previousSibling}for(;c&&c instanceof Text;)b=c.textContent+b,c=c.previousSibling;return b.replace(VH," ")};
_.f.calculateLiveChatRichMessageInput=function(){for(var a=[],b="",c=_.E(_.E(this.hostElement).querySelector("#input")).childNodes,d=0;d<c.length;d++){var e=c[d];e instanceof Text?b+=e.textContent:e instanceof HTMLImageElement&&(e.dataset.emojiId?(b&&(a.push({text:b.replace(VH," ")}),b=""),a.push({emojiId:e.dataset.emojiId})):b+=e.alt)}b&&a.push({text:b.replace(VH," ")});if(c=_.E(this.hostElement).querySelector("#overflow-text")){b="";c=c.childNodes;for(d=0;d<c.length;d++)e=c[d],e instanceof Text?
b+=e.textContent:e instanceof HTMLImageElement&&(e.dataset.emojiId?(b&&(a.push({text:b.replace(VH," ")}),b=""),a.push({emojiId:e.dataset.emojiId})):b+=e.alt);b&&a.push({text:b.replace(VH," ")})}return{textSegments:a}};
_.f.computeCharacterCount=function(a){if(!a||!a.textSegments)return 0;for(var b=0,c=0;c<a.textSegments.length;c++){var d=a.textSegments[c];if(d.text)b+=d.text.length;else if(d.emojiId){var e=void 0;if((e=this.data)==null?0:e.emojiCharacterCount)b+=this.data.emojiCharacterCount;else{var g=e=void 0,k=void 0;b+=((g=_.NH(_.PH,(e=d)==null?void 0:e.emojiId))==null?void 0:(k=g.shortcuts)==null?void 0:k[0].length)||0}}}return b};
_.f.characterCountChanged=function(){_.go(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.f.focusedChanged=function(){this.hostElement.dispatchEvent(new _.TH("focused-changed",this.focused))};
_.f.focus=function(){this.setFocus(!1)};
_.f.focusAtEnd=function(){this.setFocus(!0)};
_.f.setFocus=function(a){a=a?this.getRangeAtEnd():this.getInputRange();_.E(this.hostElement).querySelector("#input").focus();var b=window.getSelection();b&&(b.removeAllRanges(),b.addRange(a))};
_.f.insertEmoji=function(a){var b,c=((a==null?0:a.isCustomEmoji)?(b=a.shortcuts)==null?void 0:b[0]:a==null?void 0:a.emojiId)||"";this.insertText(c)};
_.f.computeText=function(a){if(!a||!a.textSegments)return"";for(var b="",c=0;c<a.textSegments.length;c++){var d=a.textSegments[c];if(d.text)b+=d.text;else if(d.emojiId){var e=void 0,g=void 0,k=void 0;b+=((g=_.NH(_.PH,(e=d)==null?void 0:e.emojiId))==null?void 0:(k=g.shortcuts)==null?void 0:k[0])||""}}return b};
_.f.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.Vm.Object.defineProperties(oRb.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.maxCharacterLimit)||0}},
characterCount:{configurable:!0,enumerable:!0,get:function(){return this.computeCharacterCount(this.liveChatRichMessageInput)}},
remainingCharacterCount:{configurable:!0,enumerable:!0,get:function(){return this.maxCharacterLimit-this.characterCount}},
hasText:{configurable:!0,enumerable:!0,get:function(){return this.characterCount>0}},
isInputValid:{configurable:!0,enumerable:!0,get:function(){return this.characterCount===0?this.isValidWithNoInputText:this.characterCount<=this.maxCharacterLimit}}});
var WH=oRb;WH.prototype.focusedChanged=WH.prototype.focusedChanged;WH.prototype.characterCountChanged=WH.prototype.characterCountChanged;WH.prototype.onSuggestion=WH.prototype.onSuggestion;WH.prototype.onMessageSet=WH.prototype.onMessageSet;WH.prototype.dataChanged=WH.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],WH.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],WH.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],WH.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],WH.prototype,"disabled",void 0);_.U([_.K("disabled"),_.W("design:type",Number),_.W("design:paramtypes",[])],WH.prototype,"inputTabIndex",null);
_.U([_.K("data.maxCharacterLimit"),_.O({readOnly:!0,notify:!0}),_.W("design:type",Number),_.W("design:paramtypes",[])],WH.prototype,"maxCharacterLimit",null);_.U([_.K("liveChatRichMessageInput"),_.O({readOnly:!0,notify:!0}),_.W("design:type",Number),_.W("design:paramtypes",[])],WH.prototype,"characterCount",null);_.U([_.K("maxCharacterLimit, characterCount"),_.O({readOnly:!0,notify:!0}),_.W("design:type",Number),_.W("design:paramtypes",[])],WH.prototype,"remainingCharacterCount",null);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],WH.prototype,"isChatMessageInput",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],WH.prototype,"inputExpanded",void 0);_.U([_.O({readOnly:!0,notify:!0}),_.W("design:type",Object)],WH.prototype,"liveChatRichMessageInput",void 0);_.U([_.O(),_.W("design:type",Object)],WH.prototype,"messageInput",void 0);_.U([_.O(),_.W("design:type",Boolean)],WH.prototype,"ignoreColorMapping",void 0);
_.U([_.K("characterCount"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],WH.prototype,"hasText",null);_.U([_.O(),_.W("design:type",Object)],WH.prototype,"isValidWithNoInputText",void 0);_.U([_.K("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.O(),_.W("design:type",Boolean),_.W("design:paramtypes",[])],WH.prototype,"isInputValid",null);_.U([_.O({readOnly:!0,value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],WH.prototype,"focused",void 0);
_.U([_.O(),_.W("design:type",Array)],WH.prototype,"suggestions",void 0);_.U([_.O(),_.W("design:type",_.MH)],WH.prototype,"emojiManager",void 0);_.U([_.O(),_.W("design:type",_.UH)],WH.prototype,"participantsManager",void 0);_.U([_.O(),_.W("design:type",Boolean)],WH.prototype,"noUnderline",void 0);_.U([_.O(),_.W("design:type",Object)],WH.prototype,"inputMethodEditorActive",void 0);_.U([_.gr("#dropdown"),_.W("design:type",Object)],WH.prototype,"dropdown",void 0);
_.U([_.gr("#input"),_.W("design:type",HTMLElement)],WH.prototype,"input",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],WH.prototype,"dataChanged",null);_.U([_.N("messageInput"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],WH.prototype,"onMessageSet",null);
_.U([_.M("yt-live-chat-select-suggestion"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],WH.prototype,"onSuggestion",null);_.U([_.N("characterCount"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],WH.prototype,"characterCountChanged",null);_.U([_.N("focused"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],WH.prototype,"focusedChanged",null);
WH=_.U([_.ur({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],WH);
_.pRb=_.S(WH,"yt-live-chat-text-input-field-renderer",function(){if(gRb===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;fRb===void 0&&(fRb=document.createElement("template"));var d=fRb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);gRb=a}a=gRb;return a},{mode:_.x("live_chat_enable_sink_wrapper")?2:0});var qRb=function(){var a=_.P.apply(this,arguments)||this;a.buttonOverrides={style:"overlay",type:"filled"};a.allowAnimations=!1;a.modern=_.x("web_button_rework_with_live");a.noPadding=!1;return a};
_.z(qRb,_.P);_.f=qRb.prototype;_.f.shouldSupportInlineActionButtons=function(){return!0};
_.f.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.lowerBumper":{id:"lower-bumper",mapping:{liveChatItemBumperViewModel:{component:"yt-live-chat-item-bumper-view-model"}}}}};
_.f.ready=function(){var a=document.querySelector("yt-live-chat-app");a&&a.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.f.attached=function(){this.allowAnimations=!1};
_.f.dataChanged=function(){if(this.data){var a={"--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)};_.dr(this.hostElement,a);this.allowAnimations=!0}};
_.f.messageChanged=function(){var a,b=(a=this.data)==null?void 0:a.message;a=_.E(_.E(this.hostElement).querySelector("#message"));a.textContent="";b&&a.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(b))};
_.f.computeShowOnlyHeader=function(a,b){return!a||a.pdgLikeButton||a.replyButton||a.buyFlowButton?!1:this.isEmpty(a,b)&&!a.footer};
_.f.computeShowFooterDivider=function(a,b,c){return a?!!a.footer&&!this.isEmpty(a,b)&&!c:!1};
_.f.computeIsUserEditable=function(a){return!!a.inputField};
_.f.computeHasHeartButton=function(a){return(a==null?void 0:a.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(a==null?void 0:a.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(a==null?void 0:a.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.f.computeNoveltyImage=function(a){if(a.headerOverlayImage&&a.headerOverlayImage.thumbnails.length){var b=a.headerOverlayImage.thumbnails[0],c,d;if((c=a.pdgPurchasedNoveltyLoggingDirectives)==null?0:(d=c.loggingDirectives)==null?0:d.trackingParams){var e,g;pTa((e=a.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(g=e.loggingDirectives)==null?void 0:g.trackingParams)}return b.width||0}return 0};
_.f.computeAuthorPhotoSize=function(a){return(a==null?0:a.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.f.inputFocus=function(){var a=_.E(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");a&&a.focus()};
_.f.inputInsertEmoji=function(a){var b=_.E(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");b&&b.insertEmoji(a)};
_.f.inputMessage=function(){var a=_.E(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),b;return a&&((b=this.data)==null?0:b.inputField)?(a.completeEmojis(),_.Nt(a.liveChatRichMessageInput)):null};
_.f.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.f.isEmpty=function(a,b){return a?a.empty||!(a.message||a.inputField||b):!0};
_.f.onLowerBuyButtonClick=function(){var a,b=_.y((a=this.data)==null?void 0:a.buyButton,_.OE);b&&b.trackingParams&&!GPa(b.command)&&(a=_.qs(b.trackingParams))&&(b=_.Fn())&&_.Vo(b,a)};
_.f.shouldSupportWholeItemClick=function(){return!0};
_.Vm.Object.defineProperties(qRb.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?0:a.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
var XH=qRb;XH.prototype.isDeletedChanged=XH.prototype.isDeletedChanged;XH.prototype.messageChanged=XH.prototype.messageChanged;XH.prototype.dataChanged=XH.prototype.dataChanged;_.U([_.H(xNb.YtPdgLiveChatItemBehavior),_.W("design:type",Object)],XH.prototype,"ytPdgLiveChatItemBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],XH.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.JG),_.W("design:type",Object)],XH.prototype,"ytLiveChatReduxBehavior",void 0);
_.U([_.H(_.QH.YtLiveChatItemBehavior),_.W("design:type",_.RH)],XH.prototype,"ytLiveChatItemBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],XH.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],XH.prototype,"data",void 0);_.U([_.O({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:$Oa}),_.W("design:type",Object)],XH.prototype,"engagementState",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.W("design:type",Boolean)],XH.prototype,"isUserEditable",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.W("design:type",Boolean)],XH.prototype,"hasHeartButton",void 0);_.U([_.O({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.W("design:type",Boolean)],XH.prototype,"showOnlyHeader",void 0);
_.U([_.O({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.W("design:type",Boolean)],XH.prototype,"showFooterDivider",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Object)],XH.prototype,"allowAnimations",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],XH.prototype,"dashboardMoneyFeed",void 0);_.U([_.O({computed:"computeNoveltyImage(data)"}),_.W("design:type",Number)],XH.prototype,"noveltyWidth",void 0);
_.U([_.O({computed:"computeAuthorPhotoSize(data)"}),_.W("design:type",Number)],XH.prototype,"authorPhotoSize",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],XH.prototype,"modern",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],XH.prototype,"noPadding",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],XH.prototype,"dataChanged",null);
_.U([_.N("data.message"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],XH.prototype,"messageChanged",null);_.U([_.K("data","dashboardMoneyFeed"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],XH.prototype,"hideLowerBumper",null);_.U([_.N("isDeleted"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],XH.prototype,"isDeletedChanged",null);
XH=_.U([_.Q({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],XH);
_.S(XH,"yt-live-chat-paid-message-renderer",function(){if(rQb===void 0){var a=document.createElement("template");_.B(a,'\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="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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;qQb===void 0&&(qQb=document.createElement("template"));var d=qQb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);rQb=a}a=rQb;return a},{mode:_.x("live_chat_enable_sink_wrapper")?2:0});var rRb;var sRb;var tRb=function(){var a=_.ir.apply(this,arguments)||this;a._noAccessors=!0;return a};
_.z(tRb,_.ir);tRb.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.Ei("openPopupConfig")};
var uRb=tRb;_.U([_.H(_.mH.YtOpenPopupBehavior),_.W("design:type",Object)],uRb.prototype,"ytOpenPopupBehavior",void 0);uRb=_.U([_.jr()],uRb);_.YH=[_.mH.YtOpenPopupBehavior,uRb.prototype];var vRb;var Ut=[_.pq,jzb,_.LE,_.qq,_.Vn,_.rAb,_.tq,_.xEb,_.Pw,iUa];_.x("web_watch_get_updated_metadata_response_processing")&&Ut.push(_.OEb);_.x("web_continuation_response_processing")&&Ut.push(_.Kt);var S7a=new _.fB("RESPONSE_RECEIVED_COMMANDS"),eUa=new _.fB("RESPONSE_RECEIVED_COMMANDS");var YTa="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),XTa=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],WTa=["GET_UNSEEN_NOTIFICATION_COUNT"];var ZH=function(){var a=_.ir.apply(this,arguments)||this;a._noAccessors=!0;a.serviceEndpointHandlers=[];return a};
_.z(ZH,_.ir);ZH.prototype.created=function(){var a=this;this.endpointHandlerActionMap={"yt-service-request":function(b,c,d,e){var g;return VTa(a.hostElement,b,c,d,e,a.serviceEndpointHandlers,(g=a.onEntitiesUpdated)==null?void 0:g.bind(a))}}};
ZH.prototype.attached=function(){_.Ol(_.Nl.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
ZH.prototype.detached=function(){_.Pl(_.Nl.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
var wRb=ZH;wRb=_.U([_.jr()],wRb);_.xRb=[wRb.prototype];var yRb,zRb=function(){return yRb!==void 0?yRb:yRb=document.createElement("template")};
document.head.appendChild(zRb().content);var ARb;var BRb=document.head,CRb=BRb.appendChild,DRb;if(ARb===void 0){var ERb=document.createElement("template");_.B(ERb,"\x3c!--css-build:shady--\x3e");ERb.content.insertBefore(zRb().content.cloneNode(!0),ERb.content.firstChild);ARb=ERb}DRb=ARb;CRb.call(BRb,DRb.content);var FRb,GRb=function(){return FRb!==void 0?FRb:FRb=document.createElement("template")};
document.head.appendChild(GRb().content);var HRb;var IRb=document.head,JRb=IRb.appendChild,KRb;if(HRb===void 0){var LRb=document.createElement("template");_.B(LRb,"\x3c!--css-build:shady--\x3e");LRb.content.insertBefore(GRb().content.cloneNode(!0),LRb.content.firstChild);HRb=LRb}KRb=HRb;JRb.call(IRb,KRb.content);_.It("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.It("sharingRendererButtons","buttonRenderer","ytd-button-renderer");var MRb=_.x("web_button_rework")&&_.Gi("BUTTON_REWORK")||_.x("web_button_rework_with_live"),NRb=function(){var a=_.P.apply(this,arguments)||this;a.isPressed=!1;a.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return a};
_.z(NRb,_.P);_.f=NRb.prototype;_.f.created=function(){this.showTooltips=!0};
_.f.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.f.onHintIdChanged=function(){var a=this,b,c,d=(b=this.ytButtonBehavior.data)==null?void 0:(c=b.hint)==null?void 0:c.hintRenderer;if(d&&d.hintId){b=_.ko(this.hostElement,"yt-get-opened-popups-action");b=(b&&b.length===1?b[0]:[]).length>0;var e=null;d.hintId!=="sponsor-pre-purchase"||b?d.hintId.startsWith("sponsor-post-purchase")&&!b?e=HKb("membership-manage"):d.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!b&&(e=HKb("membership-freebie-join")):e=HKb("membership-join");e&&_.zk.addLowPriorityJob(function(){for(var g=
_.h(e),k=g.next();!k.done;k=g.next())a.ytComponentBehavior.resolveCommand(k.value)})}};
_.f.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.f.onYtNavigate=function(a){var b=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(a.detail.endpoint);b&&(a.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(b))};
_.f.onYtServiceRequestSent=function(a,b){this.handleServiceRequestActions(b);_.go(this.hostElement,"yt-service-request-sent-button-renderer")};
_.f.onServiceRequestCompleted=function(a,b){this.handleServiceRequestActions(b);_.go(this.hostElement,"yt-service-request-completed-button-renderer")};
_.f.updateButton=function(a){var b;if(a=(b=_.y(a,Rzb))==null?void 0:b.updatedButton)this.ytButtonBehavior.data=_.y(a,_.OE)};
_.f.handleUpdateButtonAction=function(a){var b=this.ytButtonBehavior.data;b.targetId&&a.updateButtonAction.targetId&&b.targetId===a.updateButtonAction.targetId&&this.updateButton(a)};
_.f.handleServiceRequestActions=function(a){if(a=a.actions)for(var b=0;b<a.length;b++)this.updateButton(a[b])};
_.Vm.Object.defineProperties(NRb,{template:{configurable:!0,enumerable:!0,get:function(){if(vRb===void 0){var a=document.createElement("template");_.B(a,"\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");a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);vRb=a}a=vRb;return a}}});
_.$H=NRb;_.$H.prototype.onServiceRequestCompleted=_.$H.prototype.onServiceRequestCompleted;_.$H.prototype.onYtServiceRequestSent=_.$H.prototype.onYtServiceRequestSent;_.$H.prototype.onYtNavigate=_.$H.prototype.onYtNavigate;_.$H.prototype.onPressedStateChanged=_.$H.prototype.onPressedStateChanged;_.$H.prototype.onHintIdChanged=_.$H.prototype.onHintIdChanged;_.U([_.O(),_.W("design:type",Object)],_.$H.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],_.$H.prototype,"isPressed",void 0);
_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],_.$H.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.IPb.YtButtonBehavior),_.W("design:type",Object)],_.$H.prototype,"ytButtonBehavior",void 0);_.U([_.H(_.YH),_.W("design:type",Object)],_.$H.prototype,"ytdOpenPopupBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],_.$H.prototype,"ytComponentBehavior",void 0);
_.U([_.H(rH.YtRenderButtonBehavior),_.W("design:type",Object)],_.$H.prototype,"ytRenderButtonBehavior",void 0);_.U([_.N("data.hint.hintRenderer"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],_.$H.prototype,"onHintIdChanged",null);_.U([_.N("isPressed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],_.$H.prototype,"onPressedStateChanged",null);
_.U([_.M("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],_.$H.prototype,"onYtNavigate",null);_.U([_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Ot]),_.W("design:returntype")],_.$H.prototype,"onYtServiceRequestSent",null);
_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Wt]),_.W("design:returntype")],_.$H.prototype,"onServiceRequestCompleted",null);_.$H=_.U([_.Q({is:"ytd-button-renderer",disableElementRegistration:MRb})],_.$H);var ORb=function(){var a=_.P.apply(this,arguments)||this;a.modern=_.x("web_button_rework_with_live");a.buttonOverrides={style:"overlay",type:"filled"};return a};
_.z(ORb,_.P);_.f=ORb.prototype;_.f.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"}}}}};
_.f.ready=function(){var a=document.querySelector("yt-live-chat-app");a&&a.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.f.dataChanged=function(){if(this.data&&this.data.sticker){var a=_.Xs(this.data.sticker.thumbnails,this.stickerWidth);a||_.lUa(a).thenCatch(function(){_.Dl(new _.qj("Failed to load Super Sticker with url",a))})}};
_.f.computeAuthorPhotoSize=function(a){return(a==null?0:a.isV2Style)?32:40};
_.f.computeIsV2Style=function(a){return(a==null?0:a.isV2Style)?!0:!1};
_.f.onStickerLoaded=function(a){var b,c,d;(b=_.Qq(a))==null||(c=b.parentNode)==null||(d=c.classList)==null||d.add("sticker-loaded")};
_.f.computeNoveltyImageWidth=function(a){var b,c;if(a==null?0:(b=a.headerOverlayImage)==null?0:(c=b.thumbnails)==null?0:c.length){b=a.headerOverlayImage.thumbnails[0];var d,e;if((d=a.pdgPurchasedNoveltyLoggingDirectives)==null?0:(e=d.loggingDirectives)==null?0:e.trackingParams){var g,k;pTa((g=a.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(k=g.loggingDirectives)==null?void 0:k.trackingParams)}return b.width||0}return 0};
_.f.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.f.updateStickerStyles=function(){var a=this.data;a&&(a={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(a.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(a.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(a.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(a.authorNameTextColor)},
_.dr(this.hostElement,a))};
_.f.onBuyButtonClick=function(){var a,b=_.y((a=this.data)==null?void 0:a.buyButton,_.OE);b&&!GPa(b.command)&&this.ytRendererBehavior.logExplicitClick(b)};
_.f.shouldSupportWholeItemClick=function(){return!0};
_.Vm.Object.defineProperties(ORb.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 a;return((a=this.data)==null?0:a.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
var aI=ORb;aI.prototype.updateStickerStyles=aI.prototype.updateStickerStyles;aI.prototype.isDeletedChanged=aI.prototype.isDeletedChanged;aI.prototype.onStickerLoaded=aI.prototype.onStickerLoaded;aI.prototype.dataChanged=aI.prototype.dataChanged;_.U([_.H(xNb.YtPdgLiveChatItemBehavior),_.W("design:type",Object)],aI.prototype,"ytPdgLiveChatItemBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],aI.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],aI.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.QH.YtLiveChatItemBehavior),_.W("design:type",_.RH)],aI.prototype,"ytLiveChatItemBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],aI.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],aI.prototype,"data",void 0);
_.U([_.O({computed:"computeAuthorPhotoSize(data)"}),_.W("design:type",Number)],aI.prototype,"authorPhotoSize",void 0);_.U([_.O(),_.W("design:type",Boolean)],aI.prototype,"isDeleted",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],aI.prototype,"dashboardMoneyFeed",void 0);_.U([_.O({computed:"computeNoveltyImageWidth(data)"}),_.W("design:type",Number)],aI.prototype,"noveltyWidth",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],aI.prototype,"modern",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.W("design:type",Boolean)],aI.prototype,"isV2Style",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],aI.prototype,"dataChanged",null);_.U([_.M("yt-img-shadow-loaded"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],aI.prototype,"onStickerLoaded",null);
_.U([_.K("data"),_.W("design:type",Number),_.W("design:paramtypes",[])],aI.prototype,"stickerWidth",null);_.U([_.K("data"),_.W("design:type",Number),_.W("design:paramtypes",[])],aI.prototype,"stickerHeight",null);_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],aI.prototype,"hasHeartButton",null);_.U([_.K("data","dashboardMoneyFeed"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],aI.prototype,"hideLowerBumper",null);
_.U([_.N("isDeleted"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],aI.prototype,"isDeletedChanged",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],aI.prototype,"updateStickerStyles",null);aI=_.U([_.ur({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],aI);
_.S(aI,"yt-live-chat-paid-sticker-renderer",function(){if(sRb===void 0){var a=document.createElement("template");_.B(a,'\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>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;rRb===void 0&&(rRb=document.createElement("template"));var d=rRb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);sRb=a}a=sRb;return a},{mode:_.x("live_chat_enable_sink_wrapper")?2:0});var PRb;var QRb;var RRb,SRb=function(){return RRb!==void 0?RRb:RRb=document.createElement("template")};
document.head.appendChild(SRb().content);var TRb,URb=function(){return TRb!==void 0?TRb:TRb=document.createElement("template")};
document.head.appendChild(URb().content);var VRb;var WRb,XRb=function(){return WRb!==void 0?WRb:WRb=document.createElement("template")};
document.head.appendChild(XRb().content);var YRb;var ZRb=document.head,$Rb=ZRb.appendChild,aSb;if(YRb===void 0){var bSb=document.createElement("template");_.B(bSb,"\x3c!--css-build:shady--\x3e");bSb.content.insertBefore(XRb().content.cloneNode(!0),bSb.content.firstChild);YRb=bSb}aSb=YRb;$Rb.call(ZRb,aSb.content);var cSb=document.head,dSb=cSb.appendChild,eSb;if(VRb===void 0){var bI=document.createElement("template");_.B(bI,"\x3c!--css-build:shady--\x3e");bI.content.insertBefore(URb().content.cloneNode(!0),bI.content.firstChild);bI.content.insertBefore(SRb().content.cloneNode(!0),bI.content.firstChild);VRb=bI}eSb=VRb;dSb.call(cSb,eSb.content);var cI=function(){var a=_.ir.apply(this,arguments)||this;a.focusedIndex=0;a.verticalOffset=0;a.verticalAlign="top";a.dynamicAlign=!0;return a};
_.z(cI,_.ir);cI.prototype.emojiUrl=function(a){a=_.NH(this.emojiManager,a);if(!a)return"";var b;a=(b=a.image)==null?void 0:b.thumbnails;return _.Xs(a,24)||""};
var fSb=function(a){var b;a.emojiVariants&&(b=a.data)!=null&&b.target&&_.Tm(a,function(){a.set("verticalOffset",-1*a.hostElement.clientHeight);var c=_.E(a.hostElement).querySelector("img");c&&c.focus()})};
_.f=cI.prototype;_.f.onKeyboardEnter=function(){};
_.f.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.f.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.f.onKeyDown=function(a){switch(a.keyCode){case 13:this.onKeyboardEnter();a.preventDefault();break;case 40:this.changeFocus(1);a.preventDefault();break;case 38:this.changeFocus(-1);a.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.f.onYtEmojiSelect=function(a){var b=this,c,d,e,g,k,m,n,r;return _.l(function(t){if(t.nextAddress==1)return d=(c=b.data)==null?void 0:c.emoji,k=((e=d)==null?void 0:e.stickyPrefId)||((g=d)==null?void 0:g.emojiId),n=(m=a.detail)==null?void 0:m.emojiId,k&&n&&k!==n?_.p(t,(r=b.emojiManager)==null?void 0:bRb(r,d,n),2):t.return();_.ho(b.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[d,n]);_.se(t)})};
_.f.changeFocus=function(a){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+a+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(a=_.E(this.hostElement).querySelector("#variants"))&&a.children[this.focusedIndex].focus())};
_.Vm.Object.defineProperties(cI.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
var dI=cI;dI.prototype.onYtEmojiSelect=dI.prototype.onYtEmojiSelect;dI.prototype.onKeyDown=dI.prototype.onKeyDown;dI.prototype.onEmojiVariantsChanged=dI.prototype.onEmojiVariantsChanged;dI.prototype.onVerticalOffsetOrPositionTargetChanged=dI.prototype.onVerticalOffsetOrPositionTargetChanged;_.U([_.H(_.YD),_.W("design:type",Object)],dI.prototype,"ironOverlayBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],dI.prototype,"data",void 0);
_.U([_.O(),_.W("design:type",_.MH)],dI.prototype,"emojiManager",void 0);_.U([_.O(),_.W("design:type",Object)],dI.prototype,"emojiVariants",void 0);_.U([_.O(),_.W("design:type",Object)],dI.prototype,"focusedIndex",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],dI.prototype,"positionTarget",null);_.U([_.O({reflectToAttribute:!0}),_.K("verticalOffset","data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],dI.prototype,"isPositioned",null);
_.U([_.O(),_.W("design:type",Object)],dI.prototype,"verticalOffset",void 0);_.U([_.O(),_.W("design:type",Object)],dI.prototype,"verticalAlign",void 0);_.U([_.O(),_.W("design:type",Object)],dI.prototype,"dynamicAlign",void 0);_.U([_.N("verticalOffset","positionTarget"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],dI.prototype,"onVerticalOffsetOrPositionTargetChanged",null);
_.U([_.N("emojiVariants"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],dI.prototype,"onEmojiVariantsChanged",null);_.U([_.M("keydown"),_.W("design:type",Function),_.W("design:paramtypes",[KeyboardEvent]),_.W("design:returntype")],dI.prototype,"onKeyDown",null);_.U([_.M("yt-emoji-select"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype",Promise)],dI.prototype,"onYtEmojiSelect",null);dI=_.U([_.jr()],dI);var gSb=[dI.prototype];var hSb;var iSb;var jSb=/medium-light|medium-dark|light|medium|dark/,kSb=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,lSb=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),mSb=function(){var a=_.P.apply(this,arguments)||this;a.userSelection={left:null,right:null};a.scrollAction="lock";a.isEmojiDraftInProgress=!1;return a};
_.z(mSb,_.P);_.f=mSb.prototype;_.f.onClick=function(a){a=_.Qq(a);a instanceof HTMLImageElement&&this.selectOrUpdateEmoji(a)};
_.f.selectOrUpdateEmoji=function(a){var b=a.getAttribute("selection");b&&(b==="default"?_.go(this.hostElement,"yt-emoji-select",_.NH(this.emojiManager,a.id)):b==="left"?this.userSelection=Object.assign({},this.userSelection,{left:a.src}):b==="right"?this.userSelection=Object.assign({},this.userSelection,{right:a.src}):b==="user"&&this.userSelection.left&&this.userSelection.right&&_.go(this.hostElement,"yt-emoji-select",_.NH(this.emojiManager,a.id)))};
_.f.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.f.onMultiSelectorThumbnailRowChanged=function(){var a,b,c;((a=this.data)==null?0:(b=a.emoji)==null?0:(c=b.multiSelectorThumbnailRow)==null?0:c.length)&&this.openSelector()};
_.f.getThumbnailFromEmojiRow=function(a){var b,c;return(a==null?void 0:(b=a.thumbnails)==null?void 0:(c=b[0])==null?void 0:c.url)||""};
_.f.getEmojiAltTextForPartialSelector=function(a){var b;return((b=this.getThumbnailFromEmojiRow(a).match(kSb))==null?void 0:b[0])||""};
_.f.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.f.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.f.getRowSelection=function(a){return["left","right"][a]};
_.f.getIdFromComposedEmoji=function(a){return(a==null?void 0:a.emojiId)||""};
_.f.getEmojiFromPartialSelections=function(a,b){if(!a&&!b)return null;var c,d,e=(c=this.data)==null?void 0:(d=c.emoji)==null?void 0:d.variantIds;if(!e||!e.length)return null;var g;a=(g=a.match(jSb))==null?void 0:g[0];var k;b=(k=b.match(jSb))==null?void 0:k[0];if(!a||!b)return null;var m=lSb.get(a);k=lSb.get(b);if(m===k){k=Array.from(lSb.values()).filter(function(r){return r!==m}).join("|");
var n=new RegExp("^((?!("+k+")).)*"+m+"$")}else n=new RegExp(m+".*"+k);return(e=e.find(function(r){return n.test(r)}))&&_.NH(this.emojiManager,e)||null};
_.f.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var a,b=this.ytEmojiSelectorBehavior.emojiUrl(((a=this.data.emoji)==null?void 0:a.emojiId)||"");_.E(this.hostElement).querySelector('[selection="user"]').src.includes(b)||(this.isEmojiDraftInProgress=!0)}};
_.f.onDomChange=function(){fSb(this.ytEmojiSelectorBehavior)};
_.f.getFocusableElements=function(){return _.E(this.hostElement).querySelectorAll("img").filter(function(a){return a.getAttribute("role")==="option"})};
_.f.changeFocus=function(a){var b=this.getFocusableElements();b!=null&&b.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+a+b.length)%b.length,this.ytEmojiSelectorBehavior.focusedIndex<b.length&&(a=b[this.ytEmojiSelectorBehavior.focusedIndex])&&a.focus())};
_.f.onKeyboardEnter=function(){var a=this.getFocusableElements();a!=null&&a.length&&(a=a[this.ytEmojiSelectorBehavior.focusedIndex])&&a instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(a),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.Vm.Object.defineProperties(mSb.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var a=this,b,c,d;return this.emojiManager&&((b=this.data)==null?0:(c=b.emoji)==null?0:(d=c.variantIds)==null?0:d.length)?this.data.emoji.variantIds.map(function(e){return!!e&&_.NH(a.emojiManager,e)}).filter(function(e){return!!e}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var a,b=(a=this.userSelection)==null?void 0:a.left,c;a=(c=this.userSelection)==null?void 0:c.right;return b&&a?this.getEmojiFromPartialSelections(b,a):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.composedEmojiSelection)==null?0:a.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var b;a=(b=this.userSelection)==null?void 0:b.left;var c;b=(c=this.userSelection)==null?void 0:c.right;if(!a&&!b){var d;return this.ytEmojiSelectorBehavior.emojiUrl(((d=this.data.emoji)==null?void 0:d.emojiId)||"")}return a&&!b?a:!a&&b?b:""}}});
var eI=mSb;eI.prototype.onMultiSelectorThumbnailRowChanged=eI.prototype.onMultiSelectorThumbnailRowChanged;eI.prototype.onClick=eI.prototype.onClick;_.U([_.H(_.YD),_.W("design:type",Object)],eI.prototype,"ironOverlayBehavior",void 0);_.U([_.H(gSb),_.W("design:type",Object)],eI.prototype,"ytEmojiSelectorBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],eI.prototype,"data",void 0);_.U([_.O(),_.W("design:type",_.MH)],eI.prototype,"emojiManager",void 0);
_.U([_.O(),_.W("design:type",Object)],eI.prototype,"userSelection",void 0);_.U([_.O(),_.W("design:type",Object)],eI.prototype,"scrollAction",void 0);_.U([_.O(),_.W("design:type",Object)],eI.prototype,"isEmojiDraftInProgress",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],eI.prototype,"emojiVariants",null);_.U([_.K("data","userSelection"),_.W("design:type",Object),_.W("design:paramtypes",[])],eI.prototype,"composedEmojiSelection",null);
_.U([_.M("click"),_.W("design:type",Function),_.W("design:paramtypes",[MouseEvent]),_.W("design:returntype")],eI.prototype,"onClick",null);_.U([_.N("data.emoji.multiSelectorThumbnailRow"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],eI.prototype,"onMultiSelectorThumbnailRowChanged",null);_.U([_.K("data","userSelection","composedEmojiSelection"),_.W("design:type",String),_.W("design:paramtypes",[])],eI.prototype,"draftEmojiUrl",null);
eI=_.U([_.ur({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],eI);
_.S(eI,"yt-emoji-multi-person-selector",function(){if(iSb===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;hSb===void 0&&(hSb=document.createElement("template"));var d=hSb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);iSb=a}a=iSb;return a},{mode:2});var nSb;var oSb;var pSb=function(){var a=_.P.apply(this,arguments)||this;a.tooltip_=null;return a};
_.z(pSb,_.P);_.f=pSb.prototype;_.f.dataChanged_=function(){var a;if((a=this.data)==null?0:a.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.E(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.br)(this.tooltip_).textContent=this.data.tooltip};
_.f.computeTargetId=function(){var a;return((a=this.data)==null?void 0:a.targetId)||""};
_.f.computeId_=function(a){return a};
_.f.computeIcon_=function(a){return _.fs(a)};
_.f.onTap_=function(){this.active=!this.active;_.go(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.f.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.TH("active-changed",this.active))};
_.Vm.Object.defineProperties(pSb.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var a,b;if((a=this.data)==null?0:(b=a.icon)==null?0:b.iconType)return this.data.icon.iconType==="SUPER_STICKER";var c,d;return((c=this.data)==null?void 0:(d=c.icon)==null?void 0:d.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
var fI=pSb;fI.prototype.activeChangedForBinding=fI.prototype.activeChangedForBinding;fI.prototype.dataChanged_=fI.prototype.dataChanged_;_.U([_.H(_.KG.YtLiveChatTooltipTargetingBehavior),_.W("design:type",Object)],fI.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],fI.prototype,"data",void 0);_.U([_.O({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.W("design:type",String)],fI.prototype,"id",void 0);
_.U([_.O({computed:"computeTargetId(data.targetId)"}),_.W("design:type",String)],fI.prototype,"targetId",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],fI.prototype,"active",void 0);_.U([_.O({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.W("design:type",String)],fI.prototype,"icon",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],fI.prototype,"dataChanged_",null);
_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],fI.prototype,"iconFilled",null);_.U([_.N("active"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],fI.prototype,"activeChangedForBinding",null);fI=_.U([_.ur({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],fI);
_.S(fI,"yt-emoji-picker-category-button-renderer",function(){if(oSb===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;nSb===void 0&&(nSb=document.createElement("template"));var d=nSb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);oSb=a}a=oSb;return a},{mode:2});var qSb;var rSb;var sSb=function(){var a=_.P.apply(this,arguments)||this;a.ariaLabel=null;a.ariaActivedescendant=null;a.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};a.JSC$11856_ignoreNextFocus_=!1;a.longPressTimeoutId=-1;return a};
_.z(sSb,_.P);_.f=sSb.prototype;_.f.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.f.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.f.emojiChanged_=function(){this.changeFocus_(0,!1);for(var a=_.ms(),b=0;b<this.emoji.length;b++){var c={veType:88013,elementIndex:b},d=this.emoji[b];d.isCustomEmoji&&(d=document.querySelector(("#"+d.emojiId).replace("/","\\/")))&&(c=_.ls(a,c))&&(d.visualElement=c)}};
_.f.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.f.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.f.emojiSkinToneChanged_=function(a){this.skinTone=a};
_.f.dataChanged=function(){this.data&&this.data.emojiData&&YQb(this.emojiManager,this.data.emojiData)};
_.f.emojiUrl=function(a){a=this.getEmoji(a);if(!a)return"";var b;a=(b=a.image)==null?void 0:b.thumbnails;return _.Xs(a,24)||""};
_.f.emojiAlt=function(a){var b=this.get("image.accessibility.accessibilityData.label",a);return b?b:a.isCustomEmoji?a.shortcuts[0]:a.emojiId};
_.f.emojiAriaLabel=function(a){return a.shortcuts?a.shortcuts[0]:""};
_.f.emojiAriaSelected=function(a,b,c){return a&&c==b?"true":"false"};
_.f.getEmoji=function(a){if(this.emojiManager)return this.shouldUseStickyPreferences?$Qb(this.emojiManager,a):OH(this.emojiManager,a)};
_.f.computeId_=function(a){return a.categoryId||""};
_.f.computeEmoji=function(a){var b=this;return this.emojiManager?a.emojiIds?a.emojiIds.map(function(c){return c?_.NH(b.emojiManager,c):null}).filter(mUa):a.emojiData?a.emojiData.map(function(c){var d=!!c.emojiId&&_.NH(b.emojiManager,c.emojiId);
return d?Object.assign({},d,c):null}).filter(mUa):[]:[]};
_.f.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.f.computeAriaLabel_=function(a){return _.Vp(a)};
_.f.computeAriaActivedescendant_=function(a,b){return a&&a[b]?a[b].emojiId||"":""};
_.f.handleLongPressEmojiWithVariants=function(a,b){this.changeFocusToEmoji(a.emojiId,!1);this.openVariantSelector(a,b)};
_.f.onMouseDown=function(a){var b=this;this.hostElement!==document.activeElement&&(this.JSC$11856_ignoreNextFocus_=!0);if(a.button===0){var c=_.Qq(a);if(c instanceof HTMLImageElement){var d=_.E(this.hostElement).querySelector("#repeat").itemForElement(c);this.emojiContainsVariants(d)&&(this.longPressTimeoutId=setTimeout(function(){b.handleLongPressEmojiWithVariants(d,c)},500))}}};
_.f.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.f.onFocus=function(){this.JSC$11856_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$11856_ignoreNextFocus_=!1};
_.f.onBlur_=function(){this.showFocus=!1};
_.f.emojiContainsVariants=function(a){return!!(a&&a.variantIds&&a.variantIds.length)};
_.f.onClick=function(a){clearTimeout(this.longPressTimeoutId);a=_.Qq(a);if(a instanceof HTMLImageElement){var b=a.id;this.changeFocusToEmoji(b,!1);var c=this.getEmoji(b),d;if(d=this.shouldUseStickyPreferences&&this.emojiContainsVariants(c)){var e;d=!((e=this.emojiManager.emojiMap[b])!=null&&e.stickyPrefId)}d?(e=_.E(this.hostElement).querySelector("#repeat").itemForElement(a),this.openVariantSelector(e,a)):_.go(this.hostElement,"yt-emoji-select",c)}};
_.f.isActiveEmojiWithVariants=function(a,b){return a&&b?b.stickyPrefId?a===b.stickyPrefId:a===b.emojiId:!1};
_.f.onCloseEmojiVariantSelector=function(a){this.activeEmojiWithVariantsId===a&&(this.activeEmojiWithVariantsId="")};
_.f.onMouseOver_=function(a){a=_.Qq(a);a instanceof HTMLImageElement&&_.go(this.hostElement,"yt-emoji-hover",_.NH(this.emojiManager,a.id))};
_.f.changeFocus_=function(a,b){this.focusedIndex=(this.focusedIndex+a+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(a=this.emoji[this.focusedIndex],b&&(this.showFocus=!0,_.E(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.go(this.hostElement,"yt-emoji-hover",a)))};
_.f.changeFocusToEmoji=function(a,b){if(a){var c=this.emoji.findIndex(function(d){return d.emojiId===a});
c!==-1&&this.changeFocus_(c-this.focusedIndex,b)}};
_.f.onKeyDown_=function(a){switch(a.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var b=this.emoji[this.focusedIndex];if(b&&b.emojiId){if(this.emojiContainsVariants(b)){var c=_.E(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(b,c)}else _.go(this.hostElement,"yt-emoji-select",OH(this.emojiManager,b.emojiId)),this.hostElement.focus();a.preventDefault()}}break;case 40:this.changeFocus_(1,!0);a.preventDefault();break;case 38:this.changeFocus_(-1,!0),a.preventDefault()}};
_.f.onEmojiStickyPreferenceChanged=function(a,b){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&a.emojiId&&a.variantIds&&a.variantIds.includes(b)&&this.activeEmojiWithVariantsId!==b&&this.setStickyEmojiPreference(a.emojiId,b)};
_.f.openVariantSelector=function(a,b){this.activeEmojiWithVariantsId=a.stickyPrefId||a.emojiId||"";_.go(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:a,target:b})};
_.f.setStickyEmojiPreference=function(a,b){if(this.data){var c=this.emoji.findIndex(function(e){return e.emojiId===a});
if(c!==-1){var d=this.emoji[c];d.stickyPrefId=b;this.set("emoji."+c,Object.assign({},d));this.activeEmojiWithVariantsId=b}}};
var gI=sSb;gI.prototype.onKeyDown_=gI.prototype.onKeyDown_;gI.prototype.onMouseOver_=gI.prototype.onMouseOver_;gI.prototype.onClick=gI.prototype.onClick;gI.prototype.onBlur_=gI.prototype.onBlur_;gI.prototype.onFocus=gI.prototype.onFocus;gI.prototype.onMouseUp=gI.prototype.onMouseUp;gI.prototype.onMouseDown=gI.prototype.onMouseDown;gI.prototype.dataChanged=gI.prototype.dataChanged;gI.prototype.disableIncrementalLoadingChanged_=gI.prototype.disableIncrementalLoadingChanged_;
gI.prototype.emojiManagerChanged_=gI.prototype.emojiManagerChanged_;gI.prototype.emojiChanged_=gI.prototype.emojiChanged_;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],gI.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],gI.prototype,"data",void 0);_.U([_.O({computed:"computeId_(data)"}),_.W("design:type",String)],gI.prototype,"id",void 0);_.U([_.O({computed:"computeEmoji(data)"}),_.W("design:type",Array)],gI.prototype,"emoji",void 0);
_.U([_.O(),_.W("design:type",Number)],gI.prototype,"skinTone",void 0);_.U([_.O(),_.W("design:type",_.MH)],gI.prototype,"emojiManager",void 0);_.U([_.O(),_.W("design:type",Boolean)],gI.prototype,"disableIncrementalLoading",void 0);_.U([_.O({value:0}),_.W("design:type",Number)],gI.prototype,"focusedIndex",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],gI.prototype,"showFocus",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.W("design:type",Object)],gI.prototype,"ariaLabel",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.W("design:type",Object)],gI.prototype,"ariaActivedescendant",void 0);_.U([_.O({value:60}),_.W("design:type",Number)],gI.prototype,"domRepeatTargetFramerate",void 0);_.U([_.O({value:1}),_.W("design:type",Number)],gI.prototype,"domRepeatInitialCount",void 0);
_.U([_.O({value:""}),_.W("design:type",String)],gI.prototype,"activeEmojiWithVariantsId",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],gI.prototype,"shouldUseStickyPreferences",void 0);_.U([_.N("emoji"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],gI.prototype,"emojiChanged_",null);_.U([_.N("emojiManager"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],gI.prototype,"emojiManagerChanged_",null);
_.U([_.N("disableIncrementalLoading"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],gI.prototype,"disableIncrementalLoadingChanged_",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],gI.prototype,"dataChanged",null);_.U([_.M("mousedown"),_.W("design:type",Function),_.W("design:paramtypes",[Object]),_.W("design:returntype")],gI.prototype,"onMouseDown",null);
_.U([_.M("mouseup"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],gI.prototype,"onMouseUp",null);_.U([_.M("focus"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],gI.prototype,"onFocus",null);_.U([_.M("blur"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],gI.prototype,"onBlur_",null);
_.U([_.M("click"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],gI.prototype,"onClick",null);_.U([_.M("mouseover"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],gI.prototype,"onMouseOver_",null);_.U([_.M("keydown"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],gI.prototype,"onKeyDown_",null);
gI=_.U([_.ur({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],gI);
_.S(gI,"yt-emoji-picker-category-renderer",function(){if(rSb===void 0){var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;qSb===void 0&&(qSb=document.createElement("template"));var d=qSb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);rSb=a}a=rSb;return a},{mode:2});var tSb;var uSb;var vSb;var wSb;var xSb=function(){var a=_.P.apply(this,arguments)||this;a.ariaLabel=null;a.ariaActivedescendant=null;a.getFormattedStringRawText=_.Vp;a.JSC$11862_ignoreNextFocus_=!1;return a};
_.z(xSb,_.P);_.f=xSb.prototype;_.f.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")};
_.f.emojiUrl=function(a){var b,c;a=(b=OH(this.emojiManager,a,!0))==null?void 0:(c=b.image)==null?void 0:c.thumbnails;return _.Xs(a,24)||""};
_.f.emojiAlt=function(a){var b=this.get("image.accessibility.accessibilityData.label",a);return b?b:a.isCustomEmoji?a.shortcuts[0]:a.emojiId};
_.f.emojiId=function(a){return"emoji"+a};
_.f.computeId_=function(a){return a.categoryId||""};
_.f.computeAriaActivedescendant_=function(a){return this.emoji&&a<this.emoji.length?this.emojiId(a):""};
_.f.emojiChanged_=function(){this.changeFocus_(0,!1);for(var a=_.ms(),b=0;b<this.emoji.length;b++){var c={veType:88013,elementIndex:b},d=this.emoji[b];d.isCustomEmoji&&(d=document.querySelector(("#"+d.emojiId).replace("/","\\/")))&&(c=_.ls(a,c))&&(d.visualElement=c)}};
_.f.computeEmoji_=function(a){var b=this;return this.emojiManager?a.emojiIds.map(function(c){return _.NH(b.emojiManager,c,!0)}).filter(nUa):[]};
_.f.titleOffsetChanged_=function(){var a=this.hostElement.getBoundingClientRect(),b=_.E(this.hostElement).querySelector("#title").getBoundingClientRect();a=Math.max(0,Math.min(this.titleOffset,a.height-b.height));_.E(this.hostElement).querySelector("#title").style.top=a+"px"};
_.f.onEmojiMouseOver_=function(a){_.go(this.hostElement,"yt-emoji-hover",a.model.item)};
_.f.onEmojiTap_=function(a){this.data.command&&(a=xTa(_.v().resolve(_.Wi(Ll)),this.data.command,a),_.go(this.hostElement,"yt-navigate",a))};
_.f.emojiAriaLabel=function(a){return a.shortcuts[0]};
_.f.emojiAriaSelected=function(a,b,c){return a&&c==b?"true":"false"};
_.f.changeFocus_=function(a,b){var c=this.emoji.length;this.focusedIndex=(this.focusedIndex+a+c)%c;a=this.emoji[this.focusedIndex];if(b){var d;(d=_.E(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||d.scrollIntoView(!1);_.go(this.hostElement,"yt-emoji-hover",a)}};
_.f.onMouseDown_=function(){this.JSC$11862_ignoreNextFocus_=!0};
_.f.onFocus_=function(){this.JSC$11862_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$11862_ignoreNextFocus_=!1};
_.f.onBlur_=function(){this.showFocus=!1};
_.f.onKeyDown_=function(a){switch(a.keyCode){case 13:this.onEmojiTap_(a);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);a.preventDefault();break;case 38:this.changeFocus_(-1,!0),a.preventDefault()}};
var hI=xSb;hI.prototype.onKeyDown_=hI.prototype.onKeyDown_;hI.prototype.onBlur_=hI.prototype.onBlur_;hI.prototype.onFocus_=hI.prototype.onFocus_;hI.prototype.onMouseDown_=hI.prototype.onMouseDown_;hI.prototype.onEmojiTap_=hI.prototype.onEmojiTap_;hI.prototype.titleOffsetChanged_=hI.prototype.titleOffsetChanged_;hI.prototype.emojiChanged_=hI.prototype.emojiChanged_;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],hI.prototype,"ytComponentBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],hI.prototype,"data",void 0);_.U([_.O({computed:"computeId_(data)"}),_.W("design:type",String)],hI.prototype,"id",void 0);_.U([_.O({computed:"computeEmoji_(data)"}),_.W("design:type",Array)],hI.prototype,"emoji",void 0);_.U([_.O({value:0}),_.W("design:type",Number)],hI.prototype,"titleOffset",void 0);_.U([_.O({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.W("design:type",Object)],hI.prototype,"ariaLabel",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.W("design:type",Object)],hI.prototype,"ariaActivedescendant",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],hI.prototype,"showFocus",void 0);_.U([_.O({value:0}),_.W("design:type",Number)],hI.prototype,"focusedIndex",void 0);_.U([_.O(),_.W("design:type",_.MH)],hI.prototype,"emojiManager",void 0);
_.U([_.N("emoji"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],hI.prototype,"emojiChanged_",null);_.U([_.N("titleOffset"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],hI.prototype,"titleOffsetChanged_",null);_.U([_.M("click"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],hI.prototype,"onEmojiTap_",null);
_.U([_.M("mousedown"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],hI.prototype,"onMouseDown_",null);_.U([_.M("focus"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],hI.prototype,"onFocus_",null);_.U([_.M("blur"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],hI.prototype,"onBlur_",null);
_.U([_.M("keydown"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],hI.prototype,"onKeyDown_",null);hI=_.U([_.ur({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],hI);
_.S(hI,"yt-emoji-picker-upsell-category-renderer",function(){if(wSb===void 0){var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;vSb===void 0&&(vSb=document.createElement("template"));var d=vSb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);wSb=a}a=wSb;return a},{mode:2});var ySb;var zSb;var ASb=function(){var a=_.P.apply(this,arguments)||this;a.scrollAction="lock";a.verticalAlign="top";return a};
_.z(ASb,_.P);_.f=ASb.prototype;_.f.onClick=function(a){a=_.Qq(a);a instanceof HTMLImageElement&&_.go(this.hostElement,"yt-emoji-select",_.NH(this.emojiManager,a.id))};
_.f.openSelector=function(){this.ironOverlayBehavior.open()};
_.f.onDomChange=function(){fSb(this.ytEmojiSelectorBehavior)};
_.f.computeIsFamilySelector=function(a){var b;return(a==null?void 0:(b=a.emoji)==null?void 0:b.emojiId)==="\ud83d\udc6a"};
_.f.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var a=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];a&&a.emojiId&&(_.go(this.hostElement,"yt-emoji-select",_.NH(this.emojiManager,a.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.Vm.Object.defineProperties(ASb.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var a=this,b,c,d;return this.emojiManager&&((b=this.data)==null?0:(c=b.emoji)==null?0:(d=c.variantIds)==null?0:d.length)?this.data.emoji.variantIds.map(function(e){return!!e&&_.NH(a.emojiManager,e)}).filter(function(e){return!!e}):[]}}});
var iI=ASb;iI.prototype.onClick=iI.prototype.onClick;_.U([_.H(_.YD),_.W("design:type",Object)],iI.prototype,"ironOverlayBehavior",void 0);_.U([_.H(gSb),_.W("design:type",Object)],iI.prototype,"ytEmojiSelectorBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],iI.prototype,"data",void 0);_.U([_.O(),_.W("design:type",_.MH)],iI.prototype,"emojiManager",void 0);_.U([_.O(),_.W("design:type",Object)],iI.prototype,"scrollAction",void 0);
_.U([_.O(),_.W("design:type",Object)],iI.prototype,"verticalAlign",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.W("design:type",Boolean)],iI.prototype,"isFamilySelector",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],iI.prototype,"emojiVariants",null);_.U([_.M("click"),_.W("design:type",Function),_.W("design:paramtypes",[MouseEvent]),_.W("design:returntype")],iI.prototype,"onClick",null);
iI=_.U([_.ur({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],iI);
_.S(iI,"yt-emoji-variant-selector",function(){if(zSb===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;ySb===void 0&&(ySb=document.createElement("template"));var d=ySb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);zSb=a}a=zSb;return a},{mode:2});var BSb=/:/g,CSb=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],DSb=function(){var a=_.P.apply(this,arguments)||this;a.emojiVariantSelector=null;a.emojiMultiPersonSelector=null;a.identity=_.Ma;a.lastAnimationTime_=0;a.animationStart_=null;a.animationEnd_=null;return a};
_.z(DSb,_.P);_.f=DSb.prototype;
_.f.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}}};
_.f.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.PH)};
_.f.attached=function(){_.sx&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&ZQb(this.emojiManager)};
_.f.dataChanged=function(){var a;if((a=this.data)==null?0:a.categories){a=this.emojiManager;var b=this.getCustomEmojiIds();a.pickerCustomEmojiIds=[].concat(_.Be(TQb),_.Be(b))}};
_.f.getCustomEmojiIds=function(){var a,b=(a=this.data.categories)==null?void 0:a.find(function(g){var k;return((k=g.emojiPickerCategoryRenderer)==null?void 0:k.categoryId)&&CSb.includes(g.emojiPickerCategoryRenderer.categoryId)}),c;
a=(c=this.data.categories)==null?void 0:c.find(function(g){return g.emojiPickerUpsellCategoryRenderer});
var d,e;return[b==null?void 0:(d=b.emojiPickerCategoryRenderer)==null?void 0:d.emojiIds,a==null?void 0:(e=a.emojiPickerUpsellCategoryRenderer)==null?void 0:e.emojiIds].flat().filter(function(g){return!!g})};
_.f.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.f.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.f.updateCategoriesAndPlaceholderInternal=function(a,b){var c=this;a&&b&&(this.categories=a.categories||[],this.categoryButtons=a.categoryButtons||[],this.resetPlaceholder(),this.search="",_.Cr(function(){c.updateButtons_()}))};
_.f.computeId_=function(a){return a.id||""};
_.f.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(a){return a.emojiPickerCategoryRenderer&&a.emojiPickerCategoryRenderer.emojiData}):!1};
_.f.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.f.onShowEmojiVariantSelector=function(a){var b=a.detail.emojiData;b.variantIds&&b.variantIds.length&&(b.multiSelectorThumbnailRow&&b.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:b,target:a.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:b,target:a.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.f.onIronOverlayClosed=function(a){var b=$Qb(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");b&&a.composedPath&&(a.composedPath().includes(_.E(this.hostElement).querySelector("#emoji-variant-selector"))||a.composedPath().includes(_.E(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.ho(this.hostElement,"yt-close-emoji-variant-selector",[b.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.f.onEmojiVariantSelectorMouseup=function(a){var b=a.target.firstChild;this.variantSelectorOpened&&b&&_.Cr(function(){b.noCancelOnOutsideClick=!1},100)};
_.f.onEmojiVariantSelectorMousedown=function(a){a=a.target.firstChild;this.variantSelectorOpened&&a&&(a.noCancelOnOutsideClick=!1)};
_.f.onSelectCategory_=function(a){var b=this.search!="";this.search="";for(var c=_.E(this.hostElement).querySelector("#categories").children,d=0;d<c.length;d++){var e=c[d];if(e.id==a.detail.categoryId){b?(_.E(this.hostElement).querySelector("#categories").scrollTop=e.offsetTop,this.updateButtons_()):(this.animationStart_=_.E(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=e.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.f.onEmojiHover_=function(a){this.placeholder=a.detail.shortcuts?a.detail.shortcuts[0]:""};
_.f.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.f.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.f.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.f.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.f.computeSearchCategory_=function(a){a=a.replace(BSb,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();a=a.split(" ");for(var b=[],c=this.emojiManager.emojis,d=0;d<c.length;d++){var e=c[d];if(e.searchTerms)for(var g=0;g<e.searchTerms.length;g++){for(var k=e.searchTerms[g].toLocaleLowerCase(),m=!1,n=0;n<a.length;n++)if(k.indexOf(a[n])!=-1){m=!0;break}if(m&&(!e.isCustomEmoji||!e.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(e.emojiId))){b.push(e.emojiId);
break}}}return{categoryId:-1,emojiIds:b}};
_.f.computeSearchEmptyMessage_=function(a,b){return a&&b&&b.emojiIds&&b.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.f.computeSearching_=function(a){return this.emojiManager&&a.replace(BSb,"").length>1};
_.f.computeSkinToneHidden=function(){var a;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((a=this.data)==null||!a.hideSkinTonePicker)};
_.f.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.f.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.f.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.f.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.f.selectSkinTone_=function(a){a=Number(a.target.getAttribute("tone"));this.set("emojiManager.skinTone",a);_.ho(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[a]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.f.skinToneChanged_=function(){_.E(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var a=_.E(this.hostElement).querySelector("#dropdown-content").children,b=0;b<a.length;b++)b===this.skinTone?a[b].setAttribute("selected",""):a[b].removeAttribute("selected")};
_.f.animateScroll_=function(a){this.lastAnimationTime_||(this.lastAnimationTime_=a);a-=this.lastAnimationTime_;a<200?(_.E(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*a/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.E(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.f.searchChanged_=function(){this.updateButtons_()};
_.f.updateButtons_=function(){var a=null;if(!this.search)for(var b=_.E(this.hostElement).querySelector("#categories").scrollTop,c=_.E(this.hostElement).querySelector("#categories").children,d=0;d<c.length;d++){var e=c[d];e.offsetTop<=b&&(a=e.id)}b=_.E(this.hostElement).querySelector("#category-buttons").children;for(c=0;c<b.length;c++)d=b[c],d.active=d.id===a};
var jI=DSb;jI.prototype.searchChanged_=jI.prototype.searchChanged_;jI.prototype.skinToneChanged_=jI.prototype.skinToneChanged_;jI.prototype.onEmojiHover_=jI.prototype.onEmojiHover_;jI.prototype.onSelectCategory_=jI.prototype.onSelectCategory_;jI.prototype.onShowEmojiVariantSelector=jI.prototype.onShowEmojiVariantSelector;jI.prototype.updateCategoriesAndPlaceholder_=jI.prototype.updateCategoriesAndPlaceholder_;jI.prototype.dataChanged=jI.prototype.dataChanged;
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],jI.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],jI.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],jI.prototype,"data",void 0);_.U([_.O({value:function(){return[]}}),
_.W("design:type",Array)],jI.prototype,"categories",void 0);_.U([_.O({value:function(){return[]}}),
_.W("design:type",Array)],jI.prototype,"categoryButtons",void 0);_.U([_.O({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.W("design:type",Boolean)],jI.prototype,"disableScroll",void 0);_.U([_.O({computed:"computeId_(data)",reflectToAttribute:!0}),_.W("design:type",String)],jI.prototype,"id",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],jI.prototype,"selected",void 0);
_.U([_.O({value:!1}),_.W("design:type",Boolean)],jI.prototype,"disableIncrementalLoading",void 0);_.U([_.O(),_.W("design:type",String)],jI.prototype,"placeholder",void 0);_.U([_.O({value:""}),_.W("design:type",String)],jI.prototype,"search",void 0);_.U([_.O({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.W("design:type",Boolean)],jI.prototype,"searching",void 0);_.U([_.O({computed:"computeSearchCategory_(search)"}),_.W("design:type",Object)],jI.prototype,"searchCategory",void 0);
_.U([_.O({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.W("design:type",Object)],jI.prototype,"searchEmptyMessage",void 0);_.U([_.O({computed:"identity(emojiManager.skinTone)"}),_.W("design:type",Number)],jI.prototype,"skinTone",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],jI.prototype,"skinToneOpened",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],jI.prototype,"variantSelectorOpened",void 0);
_.U([_.O({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.W("design:type",Boolean)],jI.prototype,"skinToneHidden",void 0);_.U([_.O(),_.W("design:type",_.MH)],jI.prototype,"emojiManager",void 0);_.U([_.O(),_.W("design:type",Object)],jI.prototype,"emojiVariantSelector",void 0);_.U([_.O(),_.W("design:type",Object)],jI.prototype,"emojiMultiPersonSelector",void 0);
_.U([_.O({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.W("design:type",Boolean)],jI.prototype,"shouldUseStickyPreferences",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jI.prototype,"dataChanged",null);_.U([_.N("data","selected"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jI.prototype,"updateCategoriesAndPlaceholder_",null);
_.U([_.M("yt-show-emoji-variant-selector"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],jI.prototype,"onShowEmojiVariantSelector",null);_.U([_.M("yt-emoji-picker-select-category"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],jI.prototype,"onSelectCategory_",null);_.U([_.M("yt-emoji-hover"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],jI.prototype,"onEmojiHover_",null);
_.U([_.N("skinTone"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jI.prototype,"skinToneChanged_",null);_.U([_.N("search"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jI.prototype,"searchChanged_",null);jI=_.U([_.ur({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],jI);
_.S(jI,"yt-emoji-picker-renderer",function(){if(uSb===void 0){var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;tSb===void 0&&(tSb=document.createElement("template"));var d=tSb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);uSb=a}a=uSb;return a},{mode:2});var ESb=function(){var a=_.P.apply(this,arguments)||this;a.emojiManager=_.PH;a.isDarkTheme=document.documentElement.hasAttribute("dark");a.selectedIndex=1;a.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return a};
_.z(ESb,_.P);_.f=ESb.prototype;_.f.handleEmojiCustomizationVisible=function(a){this.emojiPickerRenderer.selected=a;this.selectedIndex=1;a?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.f.emojiCustomizationSetChanged=function(){var a;(a=this.data)!=null&&a.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.cb(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.f.updateSaveButtonState=function(a){var b;(b=this.data)!=null&&b.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.vu("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:a}))};
_.f.emojiUrl=function(a){a=_.NH(this.emojiManager,a);if(!a)return"";var b;a=(b=a.image)==null?void 0:b.thumbnails;return _.Xs(a,24)||""};
_.f.emojiAlt=function(a){var b=_.NH(this.emojiManager,a);if(!b)return a;var c,d,e,g=(b==null?void 0:(c=b.image)==null?void 0:(d=c.accessibility)==null?void 0:(e=d.accessibilityData)==null?void 0:e.label)||"";return g?g:b.isCustomEmoji?b.shortcuts[0]:b.emojiId||a};
_.f.emojiAriaLabel=function(a){var b,c;return((b=_.NH(this.emojiManager,a))==null?void 0:(c=b.shortcuts)==null?void 0:c[0])||a};
_.f.onEmojiClick=function(a){a.model.index!==0&&(this.selectedIndex=a.model.index)};
_.f.onEmojiSelect=function(a){a=a.detail;var b,c;((b=this.data)==null?0:b.emojiCustomizationSetEntityKey)&&((c=this.emojiCustomizationSet)==null?0:c.emojiId)&&a.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,a.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.vu("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,a.emojiId,this.selectedIndex)}))};
_.f.canEditEmoji=function(a,b,c){a=a.indexOf(b);return a===c||a===0||c===0?!1:!0};
_.f.getUpdatedEmojiIdList=function(a,b,c){var d=a.indexOf(b);a=[].concat(_.Be(a));d>=0&&(a[d]=a[c]);a[c]=b;return a};
_.Vm.Object.defineProperties(ESb,{template:{configurable:!0,enumerable:!0,get:function(){if(QRb===void 0){var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;PRb===void 0&&(PRb=document.createElement("template"));var d=PRb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);QRb=a}a=QRb;return a}}});
var kI=ESb;kI.prototype.onEmojiSelect=kI.prototype.onEmojiSelect;_.U([_.H(_.JG),_.W("design:type",Object)],kI.prototype,"ytLiveChatReduxBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],kI.prototype,"ytActionHandlerBehavior",void 0);_.U([_.gr("yt-emoji-picker-renderer"),_.W("design:type",Object)],kI.prototype,"emojiPickerRenderer",void 0);
_.U([_.O({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(a,b){return _.mp(a.entities,"emojiCustomizationSetEntity",b)},
observer:"emojiCustomizationSetChanged"}),_.W("design:type",Object)],kI.prototype,"emojiCustomizationSet",void 0);_.U([_.O(),_.W("design:type",Object)],kI.prototype,"originalEmojiSet",void 0);_.U([_.O(),_.W("design:type",_.MH)],kI.prototype,"emojiManager",void 0);_.U([_.O(),_.W("design:type",Object)],kI.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],kI.prototype,"isDarkTheme",void 0);_.U([_.O(),_.W("design:type",Object)],kI.prototype,"selectedIndex",void 0);
_.U([_.M("yt-emoji-select"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],kI.prototype,"onEmojiSelect",null);kI=_.U([_.ur({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],kI);var FSb;var GSb;var HSb;var ISb;var JSb=function(){var a=_.P.apply(this,arguments)||this;a.authorBadges=[];return a};
_.z(JSb,_.P);_.f=JSb.prototype;_.f.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.f.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]]"}}}}}};
_.f.dataChanged=function(){var a=ROa(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",a)};
_.f.updateMessage=function(){var a=this.data.message,b=_.E(_.E(this.hostElement).querySelector("#message"));b.textContent="";a&&b.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(a))};
_.f.shouldSupportWholeItemClick=function(){return!0};
_.f.onShowOriginalClick=function(a){a.preventDefault();this.showOriginal=!0};
_.f.computeShowBar=function(a,b,c){return a&&b||c};
_.f.computeAuthorBadges=function(a){return a.authorBadges||[]};
_.f.computeAuthorIsOwner=function(a){return!!SOa(a.authorBadges,"owner")};
_.f.computeAuthorNameColor=function(a){var b;if(_.x("live_chat_author_name_color_usernames")&&(a==null?0:(b=a.authorName)==null?0:b.simpleText))return _.YOa(_.ZOa(a.authorName.simpleText));if(_.x("live_chat_seed_color_usernames")&&(a==null?0:a.authorSeedColorArgb))return _.YOa(_.cs(a.authorSeedColorArgb));if(_.x("live_chat_colored_usernames"))return"#cc0000";var c;return _.x("live_chat_simple_color_usernames")&&(a==null?0:(c=a.authorName)==null?0:c.simpleText)&&(a==null?0:a.authorUsernameColorLight)&&
(a==null?0:a.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.cs(a.authorUsernameColorDark):_.cs(a.authorUsernameColorLight):""};
var lI=JSb;lI.prototype.updateMessage=lI.prototype.updateMessage;lI.prototype.dataChanged=lI.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],lI.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.QH.YtLiveChatItemBehavior),_.W("design:type",_.RH)],lI.prototype,"ytLiveChatItemBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],lI.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],lI.prototype,"data",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],lI.prototype,"showOriginal",void 0);_.U([_.O({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.W("design:type",Boolean)],lI.prototype,"isDimmed",void 0);_.U([_.O({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.W("design:type",Boolean)],lI.prototype,"showBar",void 0);
_.U([_.O({computed:"computeAuthorBadges(data)"}),_.W("design:type",Array)],lI.prototype,"authorBadges",void 0);_.U([_.O({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],lI.prototype,"authorIsOwner",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],lI.prototype,"inCollapsedBanner",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],lI.prototype,"inBanner",void 0);
_.U([_.O({value:_.x("live_chat_hide_avatars"),reflectToAttribute:!0}),_.W("design:type",Boolean)],lI.prototype,"avatarHidden",void 0);_.U([_.O({computed:"computeAuthorNameColor(data)"}),_.W("design:type",String)],lI.prototype,"authorNameColor",void 0);_.U([_.O(),_.W("design:type",_.UH)],lI.prototype,"participantsManager",void 0);_.U([_.O({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.W("design:type",Object)],lI.prototype,"filledButtonOverrides",void 0);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],lI.prototype,"dataChanged",null);_.U([_.N("data.message"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],lI.prototype,"updateMessage",null);lI=_.U([_.ur({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],lI);
_.S(lI,"yt-live-chat-text-message-renderer",function(){if(ISb===void 0){var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;HSb===void 0&&(HSb=document.createElement("template"));var d=HSb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);ISb=a}a=ISb;return a},{mode:_.x("live_chat_enable_sink_wrapper")?2:0});var mI=function(){var a=_.P.apply(this,arguments)||this;a.tonalButtonOverrides={type:"tonal",style:"overlay"};return a};
_.z(mI,_.P);
mI.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]]"}}}}}};
mI.prototype.shouldSupportInlineActionButtons=function(){return!0};
mI.prototype.shouldSupportWholeItemClick=function(){return!0};
_.Vm.Object.defineProperties(mI.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
var nI=mI;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],nI.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.QH.YtLiveChatItemBehavior),_.W("design:type",_.RH)],nI.prototype,"ytLiveChatItemBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],nI.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],nI.prototype,"data",void 0);_.U([_.O(),_.W("design:type",_.UH)],nI.prototype,"participantsManager",void 0);
_.U([_.O(),_.W("design:type",Object)],nI.prototype,"tonalButtonOverrides",void 0);_.U([_.O({reflectToAttribute:!0}),_.K("data.infoDialogButton"),_.W("design:type",Object),_.W("design:paramtypes",[])],nI.prototype,"hasInfoDialogButton",null);nI=_.U([_.ur({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],nI);
_.S(nI,"yt-live-chat-auto-mod-message-renderer",function(){if(GSb===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;FSb===void 0&&(FSb=document.createElement("template"));var d=FSb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);GSb=a}a=GSb;return a},{mode:_.x("live_chat_enable_sink_wrapper")?2:0});var KSb;var PTb;var QTb;var RTb=function(){return _.P.apply(this,arguments)||this};
_.z(RTb,_.P);var STb=RTb;_.U([_.O(),_.W("design:type",Object)],STb.prototype,"data",void 0);STb=_.U([_.Q({is:"ytd-factoid-renderer",disableElementRegistration:!0})],STb);
_.S(STb,"ytd-factoid-renderer",function(){if(QTb!==void 0)return QTb;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return QTb=a},{mode:1});var TTb=function(){return _.P.apply(this,arguments)||this};
_.z(TTb,_.P);TTb.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
var oI=TTb;_.U([_.O(),_.W("design:type",Object)],oI.prototype,"data",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],oI.prototype,"ytRendererstamperBehavior",void 0);oI=_.U([_.ur({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],oI);
_.S(oI,"yt-live-chat-channel-activity-reputation-renderer",function(){if(PTb===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;KSb===void 0&&(KSb=document.createElement("template"));var d=KSb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);PTb=a}a=PTb;return a},{mode:_.x("live_chat_enable_sink_wrapper")?2:0});var UTb;var VTb;var WTb=function(){return _.P.apply(this,arguments)||this};
_.z(WTb,_.P);WTb.prototype.ready=function(){var a=document.querySelector("yt-live-chat-app");a&&a.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
var pI=WTb;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],pI.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Boolean)],pI.prototype,"menuFocused",void 0);_.U([_.O(),_.W("design:type",Object)],pI.prototype,"data",void 0);_.U([_.H(_.QH.YtLiveChatItemBehavior),_.W("design:type",_.RH)],pI.prototype,"ytLiveChatItemBehavior",void 0);pI=_.U([_.ur({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],pI);
_.S(pI,"yt-live-chat-donation-announcement-renderer",function(){if(VTb===void 0){var a=document.createElement("template");_.B(a,'\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>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;UTb===void 0&&(UTb=document.createElement("template"));var d=UTb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);VTb=a}a=VTb;return a},{mode:_.x("live_chat_enable_sink_wrapper")?2:0});var XTb;var YTb,ZTb=function(){if(YTb!==void 0)return YTb;var a=document.createElement("template");_.B(a,'\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>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;XTb===void 0&&(XTb=document.createElement("template"));var d=XTb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return YTb=a};var $Tb=function(){return _.P.apply(this,arguments)||this};
_.z($Tb,_.P);_.Vm.Object.defineProperties($Tb,{template:{configurable:!0,enumerable:!0,get:function(){return ZTb()}}});
var qI=$Tb;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],qI.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],qI.prototype,"data",void 0);qI=_.U([_.ur({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],qI);_.S(qI,"yt-live-chat-empty-feed-view-model",function(){return ZTb()},{mode:_.x("live_chat_enable_sink_wrapper")?2:0});var aUb;var bUb;var cUb=function(){return _.P.apply(this,arguments)||this};
_.z(cUb,_.P);cUb.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"}}}}}};
_.Vm.Object.defineProperties(cUb.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var a,b;return{runs:[{text:(a=this.data)==null?void 0:(b=a.channelName)==null?void 0:b.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var a=[],b;if((b=this.data)==null||!b.channelBadges)return a;var c;b=_.h((c=this.data)==null?void 0:c.channelBadges);for(c=b.next();!c.done;c=b.next()){c=_.y(c.value,DBb);var d=void 0,e=void 0;if((d=c)==null?0:(e=d.badgeImage)==null?0:e.sources)d=void 0,e={liveChatAuthorBadgeRenderer:{tooltip:c.tooltip,accessibility:{accessibilityData:{label:(d=_.y(c.rendererContext,_.Wu))==null?void 0:d.label}}}},c.badgeImage.sources[0].clientResource?e.liveChatAuthorBadgeRenderer.icon=
{iconType:c.badgeImage.sources[0].clientResource.imageName}:e.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:c.badgeImage.sources},a.push(e)}return a}}});
var rI=cUb;_.U([_.O(),_.W("design:type",Object)],rI.prototype,"data",void 0);_.U([_.K("data.channelName"),_.W("design:type",Object),_.W("design:paramtypes",[])],rI.prototype,"channelName",null);_.U([_.K("data.channelBadges"),_.W("design:type",Array),_.W("design:paramtypes",[])],rI.prototype,"channelBadges",null);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],rI.prototype,"ytRendererstamperBehavior",void 0);
rI=_.U([_.ur({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],rI);
_.S(rI,"yt-live-chat-identity-view-model",function(){if(bUb===void 0){var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;aUb===void 0&&(aUb=document.createElement("template"));var d=aUb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);bUb=a}a=bUb;return a},{mode:_.x("live_chat_enable_sink_wrapper")?2:0});var dUb;var eUb;var fUb;var gUb;var hUb=function(){var a=_.P.apply(this,arguments)||this;a.hidden=!1;a.supportsInlineActionButtons=!0;return a};
_.z(hUb,_.P);hUb.prototype.ready=function(){var a;((a=document.querySelector("yt-live-chat-app"))==null?0:a.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
hUb.prototype.dataChanged=function(a){var b=(0,_.br)(_.E(this.hostElement).querySelector("#detail-text"));b.textContent="";(a==null?0:a.detailText)&&b.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(a.detailText))};
var sI=hUb;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],sI.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.QH.YtLiveChatItemBehavior),_.W("design:type",_.RH)],sI.prototype,"ytLiveChatItemBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],sI.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O({observer:"dataChanged"}),_.W("design:type",Object)],sI.prototype,"data",void 0);
_.U([_.O({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.W("design:type",Object)],sI.prototype,"hidden",void 0);sI=_.U([_.Q({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],sI);
_.S(sI,"yt-live-chat-legacy-paid-message-renderer",function(){if(gUb===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;fUb===void 0&&(fUb=document.createElement("template"));var d=fUb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);gUb=a}a=gUb;return a},{mode:_.x("live_chat_enable_sink_wrapper")?2:0});var iUb;var jUb;var kUb={},lUb=function(){return _.ir.apply(this,arguments)||this};
_.z(lUb,_.ir);lUb.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
var tI=lUb;tI.prototype.onLiveChatMembershipItemBehaviorClick=tI.prototype.onLiveChatMembershipItemBehaviorClick;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],tI.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],tI.prototype,"data",void 0);_.U([_.M("click"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],tI.prototype,"onLiveChatMembershipItemBehaviorClick",null);tI=_.U([_.jr()],tI);
kUb.YtLiveChatMembershipItemBehavior=[tI.prototype,_.Z.YtRendererBehavior];var mUb=function(){var a=_.P.apply(this,arguments)||this;a.supportsInlineActionButtons=!0;a.hasPrimaryHeaderText=!1;a.showOnlyHeader=!1;a.authorBadges=[];a.modern=_.x("web_button_rework_with_live");a.buttonOverrides={style:"overlay",type:"filled"};return a};
_.z(mUb,_.P);_.f=mUb.prototype;_.f.shouldSupportInlineActionButtons=function(){return!0};
_.f.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.f.ready=function(){var a=document.querySelector("yt-live-chat-app");a&&a.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.f.messageChanged=function(){var a=this.data.message,b=(0,_.br)(_.E(this.hostElement).querySelector("#message"));b.textContent="";a&&b.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(a))};
_.f.computeHasPrimaryHeaderText=function(a){return!(!a||!a.headerPrimaryText)};
_.f.computeShowOnlyHeader=function(a,b){return this.isMessageEmpty(a,b)};
_.f.computeAuthorBadges=function(a){return a.authorBadges||[]};
_.f.isMessageEmpty=function(a,b){return!a||a.empty?!0:!a.message&&!a.inputField&&!b};
_.f.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.f.getInputElement=function(){return _.E(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.f.inputFocus=function(){var a=this.getInputElement();a&&a.focus()};
_.f.inputInsertEmoji=function(a){var b=this.getInputElement();b&&b.insertEmoji(a)};
_.f.inputMessage=function(){var a=this.getInputElement();return a&&this.data.inputField?(a.completeEmojis(),_.Nt(a.liveChatRichMessageInput)):null};
_.f.onFooterButtonClick=function(){this.data.footerButton&&_.go(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.f.shouldSupportWholeItemClick=function(){return!0};
var uI=mUb;uI.prototype.isDeletedChanged=uI.prototype.isDeletedChanged;uI.prototype.messageChanged=uI.prototype.messageChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],uI.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.QH.YtLiveChatItemBehavior),_.W("design:type",_.RH)],uI.prototype,"ytLiveChatItemBehavior",void 0);_.U([_.H(kUb.YtLiveChatMembershipItemBehavior),_.W("design:type",Object)],uI.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],uI.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],uI.prototype,"data",void 0);_.U([_.O({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.W("design:type",Object)],uI.prototype,"hasPrimaryHeaderText",void 0);_.U([_.O({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.W("design:type",Object)],uI.prototype,"showOnlyHeader",void 0);
_.U([_.O({computed:"computeAuthorBadges(data)"}),_.W("design:type",Array)],uI.prototype,"authorBadges",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],uI.prototype,"modern",void 0);_.U([_.N("data.message"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],uI.prototype,"messageChanged",null);_.U([_.N("isDeleted"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],uI.prototype,"isDeletedChanged",null);
uI=_.U([_.ur({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],uI);
_.S(uI,"yt-live-chat-membership-item-renderer",function(){if(jUb===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;iUb===void 0&&(iUb=document.createElement("template"));var d=iUb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);jUb=a}a=jUb;return a},{mode:_.x("live_chat_enable_sink_wrapper")?2:0});var nUb;var oUb;var pUb=function(){return _.P.apply(this,arguments)||this};
_.z(pUb,_.P);pUb.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
var vI=pUb;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],vI.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],vI.prototype,"data",void 0);vI=_.U([_.ur({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],vI);
_.S(vI,"yt-live-chat-mode-change-message-renderer",function(){if(oUb===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;nUb===void 0&&(nUb=document.createElement("template"));var d=nUb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);oUb=a}a=oUb;return a},{mode:_.x("live_chat_enable_sink_wrapper")?2:0});var qUb;var rUb;var sUb=function(){return _.P.apply(this,arguments)||this};
_.z(sUb,_.P);var wI=sUb;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],wI.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.QH.YtLiveChatItemBehavior),_.W("design:type",_.RH)],wI.prototype,"ytLiveChatItemBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],wI.prototype,"data",void 0);wI=_.U([_.ur({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],wI);
_.S(wI,"yt-live-chat-moderation-message-renderer",function(){if(rUb===void 0){var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;qUb===void 0&&(qUb=document.createElement("template"));var d=qUb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);rUb=a}a=rUb;return a},{mode:_.x("live_chat_enable_sink_wrapper")?2:0});var tUb;var uUb;var vUb=function(){var a=_.P.apply(this,arguments)||this;a.modern=_.x("web_button_rework");return a};
_.z(vUb,_.P);vUb.prototype.onClick=function(){var a;if((a=this.data)!=null&&a.onClickCommand){var b;_.hs.instance.resolveCommand((b=this.data)==null?void 0:b.onClickCommand)}};
var xI=vUb;_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],xI.prototype,"modern",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],xI.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.JG),_.W("design:type",Object)],xI.prototype,"ytLiveChatReduxBehavior",void 0);_.U([_.H(_.QH.YtLiveChatItemBehavior),_.W("design:type",_.RH)],xI.prototype,"ytLiveChatItemBehavior",void 0);
_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],xI.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],xI.prototype,"data",void 0);xI=_.U([_.ur({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],xI);
_.S(xI,"yt-live-chat-offer-click-count-message-renderer",function(){if(uUb===void 0){var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;tUb===void 0&&(tUb=document.createElement("template"));var d=tUb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);uUb=a}a=uUb;return a},{mode:_.x("live_chat_enable_sink_wrapper")?2:0});var wUb;var xUb=function(){return _.P.apply(this,arguments)||this};
_.z(xUb,_.P);var yUb=xUb;_.U([_.O(),_.W("design:type",Object)],yUb.prototype,"data",void 0);yUb=_.U([_.ur({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],yUb);
_.S(yUb,"yt-live-chat-placeholder-item-renderer",function(){if(wUb===void 0){var a=document.createElement("template");_.B(a,"\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");a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);wUb=a}a=wUb;return a},{mode:_.x("live_chat_enable_sink_wrapper")?2:0});var zUb;var AUb;var BUb=new Sp(7),CUb=function(){var a=_.P.apply(this,arguments)||this;a.data={};return a};
_.z(CUb,_.P);CUb.prototype.dataChanged=function(){var a;((a=this.data)==null?0:a.class)&&_.$q(this.hostElement,this.data.class,!0);var b;((b=this.oldData)==null?0:b.class)&&_.$q(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
CUb.prototype.computeTimestampString=function(a){return BUb.format(new Date(a/1E3))};
var yI=CUb;yI.prototype.dataChanged=yI.prototype.dataChanged;_.U([_.O(),_.W("design:type",Object)],yI.prototype,"data",void 0);_.U([_.O({computed:"computeTimestampString(data.timestampUsec)"}),_.W("design:type",String)],yI.prototype,"timestampString",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yI.prototype,"dataChanged",null);yI=_.U([_.ur({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],yI);
_.S(yI,"yt-live-chat-server-error-message",function(){if(AUb===void 0){var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;zUb===void 0&&(zUb=document.createElement("template"));var d=zUb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);AUb=a}a=AUb;return a},{mode:_.x("live_chat_enable_sink_wrapper")?2:0});var DUb;var EUb;var FUb=function(){var a=_.P.apply(this,arguments)||this;a.defaultToFilledIcon=!1;return a};
_.z(FUb,_.P);FUb.prototype.computeHasPrimaryColorIcon=function(a){return a==="SPARK"||a==="SPONSORSHIP_STAR"};
FUb.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
var zI=FUb;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],zI.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.QH.YtLiveChatItemBehavior),_.W("design:type",_.RH)],zI.prototype,"ytLiveChatItemBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],zI.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],zI.prototype,"defaultToFilledIcon",void 0);_.U([_.O(),_.W("design:type",Object)],zI.prototype,"data",void 0);
_.U([_.O({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.W("design:type",Boolean)],zI.prototype,"hasPrimaryColorIcon",void 0);zI=_.U([_.ur({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],zI);
_.S(zI,"yt-live-chat-viewer-engagement-message-renderer",function(){if(EUb===void 0){var a=document.createElement("template");_.B(a,'\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"><yt-formatted-string id="message" split-lines="" text="[[data.message]]" class="style-scope yt-live-chat-viewer-engagement-message-renderer"></yt-formatted-string><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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;DUb===void 0&&(DUb=document.createElement("template"));var d=DUb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);EUb=a}a=EUb;return a},{mode:_.x("live_chat_enable_sink_wrapper")?2:0});var GUb;var HUb=function(){var a=_.P.apply(this,arguments)||this;a.modernUpdate=!1;a.buttonStyle="overlay";a.buttonType="filled";return a};
_.z(HUb,_.P);HUb.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
HUb.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
var AI=HUb;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],AI.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],AI.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],AI.prototype,"modernUpdate",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],AI.prototype,"buttonStyle",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],AI.prototype,"buttonType",void 0);
AI=_.U([_.Q({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],AI);
_.S(AI,"ytd-ad-hover-text-button-renderer",function(){if(GUb!==void 0)return GUb;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return GUb=a},{mode:1});var IUb;var JUb=function(){var a=_.P.apply(this,arguments)||this;a.buttonOverrides={size:"XS"};a.modern=_.x("web_button_rework");return a};
_.z(JUb,_.P);JUb.prototype.onHelpTap=function(a){this.data&&this.data.informationDialog&&(_.go(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),a.preventDefault(),a.stopPropagation())};
var BI=JUb;_.U([_.O(),_.W("design:type",Object)],BI.prototype,"buttonOverrides",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],BI.prototype,"modern",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],BI.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],BI.prototype,"data",void 0);BI=_.U([_.Q({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],BI);
_.S(BI,"ytd-live-chat-purchased-product-message-renderer",function(){if(IUb!==void 0)return IUb;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return IUb=a},{mode:1});var KUb;var LUb;var MUb=function(){var a=_.P.apply(this,arguments)||this;a.isContainerDeleted=!1;return a};
_.z(MUb,_.P);MUb.prototype.onContextMenuClick=function(a){this.ytLiveChatItemBehavior.showContextMenu(a)};
MUb.prototype.isContainerDeletedChanged=function(){this.isContainerDeleted&&(this.set("data.authorName",null),this.set("data.authorBadges",null),this.set("data.authorPhoto",null),this.set("data.primaryText",null),this.set("data.secondaryText",null),this.set("data.image",null))};
var CI=MUb;CI.prototype.isContainerDeletedChanged=CI.prototype.isContainerDeletedChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],CI.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.QH.YtLiveChatItemBehavior),_.W("design:type",_.RH)],CI.prototype,"ytLiveChatItemBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],CI.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],CI.prototype,"isContainerDeleted",void 0);
_.U([_.O(),_.W("design:type",String)],CI.prototype,"deletedStateMessage",void 0);_.U([_.N("isContainerDeleted"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],CI.prototype,"isContainerDeletedChanged",null);CI=_.U([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],CI);
_.S(CI,"ytd-sponsorships-live-chat-header-renderer",function(){if(LUb!==void 0)return LUb;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return LUb=a},{mode:1});var DI=function(){var a=_.P.apply(this,arguments)||this;a.modern=_.x("web_button_rework_with_live");a.buttonOverrides={style:"overlay",type:"filled"};return a};
_.z(DI,_.P);DI.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]]"}}}}}};
DI.prototype.onCtaButtonClick=function(){var a,b=_.y((a=this.data)==null?void 0:a.optInPrompt,_.OE);if(a=this.maybeGetButtonCommand(b)){var c;(c=_.ms())==null||c.clickCommand(a)}};
DI.prototype.maybeGetButtonCommand=function(a){return!a||!a.command||_.y(a.command,ZEb)===void 0&&_.y(a.command,YEb)===void 0?null:a.command};
DI.prototype.shouldHideOptinPrompt=function(a,b){return!a||b};
var EI=DI;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],EI.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.QH.YtLiveChatItemBehavior),_.W("design:type",_.RH)],EI.prototype,"ytLiveChatItemBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],EI.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],EI.prototype,"modern",void 0);
EI=_.U([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],EI);
_.S(EI,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(KUb!==void 0)return KUb;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return KUb=a},{mode:1});var NUb;var OUb=function(){return _.P.apply(this,arguments)||this};
_.z(OUb,_.P);OUb.prototype.onContextMenuClick=function(a){this.ytLiveChatItemBehavior.showContextMenu(a)};
OUb.prototype.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorBadges",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
var FI=OUb;FI.prototype.isDeletedChanged=FI.prototype.isDeletedChanged;_.U([_.H(_.QH.YtLiveChatItemBehavior),_.W("design:type",_.RH)],FI.prototype,"ytLiveChatItemBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],FI.prototype,"data",void 0);_.U([_.N("isDeleted"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],FI.prototype,"isDeletedChanged",null);
FI=_.U([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],FI);
_.S(FI,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(NUb!==void 0)return NUb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-live-chat-gift-redemption-announcement-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.authorPhoto]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-img-shadow id="author-photo" height="24" thumbnail="[[data.authorPhoto]]" width="24" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-img-shadow>\n</template>\n<template is="dom-if" if="[[!data.authorPhoto]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon id="author-photo" class="no-photo style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer" icon="yt-sys-icons:account_circle"></yt-icon>\n</template>\n<div id="content" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <span id="timestamp" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[timestampString]]\n  \n  </span><template is="dom-if" if="[[data.authorName]]" restamp="" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"><yt-live-chat-author-chip author-badges="[[data.authorBadges]]" author-name="[[data.authorName]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    </yt-live-chat-author-chip>\n  </template>\n  <yt-formatted-string id="message" hidden$="[[isDeleted]]" text="[[data.message]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-formatted-string>\n  <yt-icon id="gift-icon" default-to-filled="true" hidden$="[[isDeleted]]" icon="gift" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  <div id="deleted-message" hidden$="[[!isDeleted]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    [[getSimpleString(data.deletedStateMessage)]]\n  </div>\n</div>\n<div id="menu" hidden$="[[!data.contextMenuEndpoint]]" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n  <yt-icon-button id="menu-button" label="[[data.contextMenuAccessibility.accessibilityData.label]]" on-click="onContextMenuClick" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer">\n    <yt-icon icon="more_vert" class="style-scope ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return NUb=a},{mode:1});var PUb=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return a};
_.z(PUb,_.P);_.f=PUb.prototype;
_.f.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"}}}};
_.f.handleLiveChatAction=function(a){_.y(a,uBb)?this.handleMarkChatItemAsDeletedAction(_.y(a,uBb)):_.y(a,tBb)&&this.handleRemoveChatItemAction(_.y(a,tBb))};
_.f.handleLiveChatActions=function(a){a.forEach(this.handleLiveChatAction,this)};
_.f.handleMarkChatItemAsDeletedAction=function(a){var b=this,c;((c=this.data)==null?0:c.items)&&this.data.items.forEach(function(d,e){var g=Object.keys(d)[0];Object.values(d)[0].id===a.targetItemId&&b.markAsDeleted("data.items",e,g,a.deletedStateMessage,a.showOriginalContentMessage)})};
_.f.handleRemoveChatItemAction=function(a){var b=this,c;((c=this.data)==null?0:c.items)&&this.data.items.forEach(function(d,e){Object.values(d)[0].id===a.targetItemId&&b.splice("data.items",e,1)})};
_.f.markAsDeleted=function(a,b,c,d,e){a=[a,b,c].join(".");this.set(a+".deletedStateMessage",d);this.set(a+".showOriginalContentMessage",e)};
var GI=PUb;_.U([_.O(),_.W("design:type",Object)],GI.prototype,"data",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],GI.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],GI.prototype,"ytActionHandlerBehavior",void 0);GI=_.U([_.ur({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],GI);
_.S(GI,"yt-live-chat-item-display-list-renderer",function(){if(eUb===void 0){var a=document.createElement("template");_.B(a,'\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>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;dUb===void 0&&(dUb=document.createElement("template"));var d=dUb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);eUb=a}a=eUb;return a},{mode:_.x("live_chat_enable_sink_wrapper")?2:0});var QUb;var RUb,SUb=function(){if(RUb!==void 0)return RUb;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;QUb===void 0&&(QUb=document.createElement("template"));var d=QUb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return RUb=a};var TUb=function(){var a=_.P.apply(this,arguments)||this;a.isHeader=!1;return a};
_.z(TUb,_.P);TUb.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.Vm.Object.defineProperties(TUb,{template:{configurable:!0,enumerable:!0,get:function(){return SUb()}}});
var HI=TUb;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],HI.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],HI.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],HI.prototype,"isHeader",void 0);HI=_.U([_.ur({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],HI);
_.S(HI,"yt-live-chat-item-display-renderer",function(){return SUb()},{mode:_.x("live_chat_enable_sink_wrapper")?2:0});var UUb,VUb,$Ub,ZUb;
UUb={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}};VUb={home:"eohps",search:"eosps",watch:"eowps"};_.WUb=["watch","search","home"];
_.II=function(){this.JSC$11973_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$11973_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.Ei("PRECONSTRUCTION_DELAY",0);this.signals_=_.SF();this.targetPage_=""};
_.II.prototype.init=function(a,b){a=a===void 0?"":a;b=b===void 0?null:b;if(this.JSC$11973_isInitialized_)this.abort();else if(this.JSC$11973_isInitialized_=!0,a&&_.XUb(this,a),b){var c=_.TF(this.signals_,"pcl")?0:10,d=function(){for(var e=0,g;g=_.WUb[e++];)g!=a&&g!=b&&this.pendingPages_.push(g);_.YUb(this)}.bind(this);
this.signals_.parkOrScheduleJob(d,c,"pcl")}};
_.II.prototype.abort=function(){this.fragmentJobId_&&(_.zk.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);ZUb(this)};
_.XUb=function(a,b){a.JSC$11973_isInitialized_&&!a.targetPage_&&(a.targetPage_=b,$Ub(a,b),a.isInitialPass_=!1,$Ub(a,b),a.signals_.processSignal(VUb[a.targetPage_]),ZUb(a),_.YUb(a))};
_.YUb=function(a){a.pendingPages_.length&&!a.pagePreparerJobId_&&(a.pagePreparerJobId_=_.ul(_.zk,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.XUb(this,this.pendingPages_.shift())}.bind(a),a.DEFAULT_DELAY_))};
$Ub=function(a,b){if(b=UUb[b])for(var c in b){var d=!1,e=c;c.charAt(0)=="~"&&(d=!0,e=c.substring(1));var g=b[c];g=typeof g=="object"?g:{count:g};b[c]=g;g.componentName=e;g.count>0&&(a.isInitialPass_?d||a.isSeenDuringInitialPass_[e]||(a.JSC$11973_queue_.push({componentName:e,count:1,signals:g.signals}),a.isSeenDuringInitialPass_[e]=!0,g.count--):a.JSC$11973_queue_.push(g))}};
ZUb=function(a){a.JSC$11973_queue_.length=0;a.targetPage_="";a.isInitialPass_=!0;a.signals_.processSignal("eop")};
_.II.getInstance=function(){return _.mw(_.II)};var aVb=function(){this.signals=_.SF();this.init()};
aVb.prototype.startPreconstruction=function(){_.II.getInstance().init(_.Gi("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
aVb.prototype.init=function(){bVb(this);window.Polymer&&Plb&&UHa();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var a=_.ja.ytcsi;if(a&&a.gt&&(a=a.gt())&&a.tick&&(a.tick.aft>0||a.tick.pbs>0)&&(_.Gi("IS_HOMEPAGE_COLD")||_.Gi("IS_RESULTS_PAGE_COLD")||_.Gi("IS_WATCH_PAGE_COLD"))){cVb(this);break a}Qqa(CCa,this.onNotifications,this)}};
var bVb=function(a){var b=function(){a.signals.processSignal("dl")};
document.readyState==="complete"?(_.Ki(Error("qh"),"WARNING"),b()):_.ssa(window,"load",b)};
aVb.prototype.onNotifications=function(a){a.timer||(_.Gi("IS_HOMEPAGE_COLD")||_.Gi("IS_RESULTS_PAGE_COLD")||_.Gi("IS_WATCH_PAGE_COLD"))&&cVb(this)};
var cVb=function(a){a.signals.parkOrScheduleJob(function(){a.signals.processSignal("eocs")},10,"eor")};
new aVb;var JI,dVb=function(){return _.ir.apply(this,arguments)||this};
_.z(dVb,_.ir);_.f=dVb.prototype;_.f.enableActiveViewMeasurement=function(a){if(this.isActiveViewEnabled(a)){var b=this.getUrlPrefixesFromCommand(a.viewableCommands);a=this.getUrlPrefixesFromCommand(a.endOfSessionCommands);JI||(JI=new g0a(this.getVersion()));h0a(JI,this.hostElement);i0a(JI,this.hostElement,b,a)}};
_.f.stopActiveViewMeasurement=function(){JI&&h0a(JI,this.hostElement)};
_.f.isActiveViewEnabled=function(a){return!!a&&(this.hasAtLeastOneUrl(a.viewableCommands)||this.hasAtLeastOneUrl(a.endOfSessionCommands))};
_.f.hasAtLeastOneUrl=function(a){return!!a&&a.length>0&&a[0].loggingUrls!=null&&a[0].loggingUrls.length>0};
_.f.getVersion=function(){var a=_.Ei("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(a==null?void 0:a.length)===2?a[1]:null};
_.f.getUrlPrefixesFromCommand=function(a){if(!a)return[];var b=[];a=_.h(a);for(var c=a.next();!c.done;c=a.next())if(c=c.value,c.loggingUrls){c=_.h(c.loggingUrls);for(var d=c.next();!d.done;d=c.next())d=d.value,d.baseUrl&&b.push(d.baseUrl)}return b};
var eVb=dVb;eVb=_.U([_.jr()],eVb);var KI=[eVb.prototype];var fVb=function(){return _.ir.apply(this,arguments)||this};
_.z(fVb,_.ir);_.Vm.Object.defineProperties(fVb.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.x("enable_entity_store_from_dependency_injection")?_.Ir():_.Yp()}}});
var gVb=fVb;gVb=_.U([_.jr()],gVb);_.LI=[BG.prototype,gVb.prototype];var hVb=["ytd-rich-shelf-renderer"],iVb=function(){var a=_.ir.apply(this,arguments)||this;a._noAccessors=!0;a.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";a.followUpDialogPromise=null;a.followUpDialogPromiseResolve=null;a.followUpDialogPromiseReject=null;return a};
_.z(iVb,_.ir);_.f=iVb.prototype;_.f.dismissibleItemIsDismissedChanged_=function(a){_.x("kevlar_fluid_dismiss")&&(a?_.go(this.hostElement,"yt-dismissible-item-dismissed"):_.go(this.hostElement,"yt-dismissible-item-undismissed"))};
_.f.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.f.dismissibleItemReset_=function(){var a=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 _.kl(function(b,c){a.followUpDialogPromiseResolve=b;a.followUpDialogPromiseReject=c});
_.go(this.hostElement,"yt-enable-lockup-interaction")};
_.f.dismissibleItemOnYtServiceRequestSent_=function(a,b){b.actions&&this.dismissibleItemProcessActions(b.actions,a)};
_.f.dismissibleItemOnRequestSent=function(a){if(_.x("web_button_rework"))for(var b=_.h(a.detail),c=b.next();!c.done;c=b.next()){var d=void 0;(c=(d=_.y(c.value,_.ro))==null?void 0:d.actions)&&this.dismissibleItemProcessActions(c,a)}};
_.f.dismissibleItemOnCommandSent=function(a,b){b&&this.dismissibleItemProcessActions(b,a)};
_.f.setAndGetDismissedContentId=function(a){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+a};
_.f.replayDismissAction=function(a){this.dismissibleItemProcessActions([a])};
_.f.dismissibleItemProcessActions=function(a,b){for(var c=0;c<a.length;c++){var d=a[c],e=void 0;((e=_.y(d,_.po))==null?0:e.commands)&&this.dismissibleItemProcessActions(_.y(d,_.po).commands,b);if(_.y(d,_.BE)){if(e=_.y(d,_.BE),!e.replaceParentSection||hVb.includes(this.hostElement.nodeName.toLowerCase()))_.x("web_see_fewer_shorts_reactive_dismissal")&&e.groupDismissal&&oUa(this,e.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(e),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.vu("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:d})),d=void 0,(d=b)==null||d.stopPropagation()}else if(_.y(d,Fyb))this.dismissibleItemHandleHideEnclosingAction_(),d=void 0,(d=b)==null||d.stopPropagation();else if(_.y(d,Qzb))_.x("web_see_fewer_shorts_reactive_dismissal")&&(d=_.y(d,Qzb),e=void 0,((e=d)==null?0:e.targetGroupId)&&oUa(this,{targetGroupId:d.targetGroupId},!1)),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.vu("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),d=void 0,(d=b)==null||d.stopPropagation();else if(_.y(d,_.ro))(d=_.y(d,_.ro).actions)&&_.no(this.hostElement,d,this.hostElement),d=void 0,(d=b)==null||d.stopPropagation();else{var g=e=void 0;((e=_.y(d,_.Kl))==null?void 0:e.signal)!=="TELL_US_WHY"||((g=_.y(d,_.Kl))==null?0:g.targetId)&&_.x("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),d=void 0,(d=b)==null||d.stopPropagation())}}};
_.f.dismissibleItemOnYtServiceRequestCompleted_=function(a,b){var c=this.get("feedbackResponses.0.followUpDialog",b.data);c?this.followUpDialogPromiseResolve(c):b.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(b.actions,a)};
_.f.dismissibleItemHandleReplaceEnclosingAction_=function(a){this.dismissedRenderer=a.item;this.isDismissed=!0;var b=null;(b=_.E(this.hostElement).querySelector("#dismissed"))&&_.Tm(this,function(){_.Pk(b)});
_.go(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.f.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.f.dismissibleItemHandleUndoFeedbackAction_=function(){_.go(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.f.dismissibleItemHandleTellUsWhySignalAction_=function(){var a=this;this.followUpDialogPromise.then(function(b){a.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:b}})})};
var MI=iVb;MI.prototype.dismissibleItemOnYtServiceRequestCompleted_=MI.prototype.dismissibleItemOnYtServiceRequestCompleted_;MI.prototype.dismissibleItemOnCommandSent=MI.prototype.dismissibleItemOnCommandSent;MI.prototype.dismissibleItemOnRequestSent=MI.prototype.dismissibleItemOnRequestSent;MI.prototype.dismissibleItemOnYtServiceRequestSent_=MI.prototype.dismissibleItemOnYtServiceRequestSent_;MI.prototype.dismissibleItemDataChanged_=MI.prototype.dismissibleItemDataChanged_;
MI.prototype.dismissibleItemIsDismissedChanged_=MI.prototype.dismissibleItemIsDismissedChanged_;_.U([_.H(_.YH),_.W("design:type",Object)],MI.prototype,"ytdOpenPopupBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],MI.prototype,"ytdReduxBehavior",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],MI.prototype,"isDismissed",void 0);_.U([_.O(),_.W("design:type",Object)],MI.prototype,"dismissedRenderer",void 0);
_.U([_.N("isDismissed"),_.W("design:type",Function),_.W("design:paramtypes",[Boolean]),_.W("design:returntype")],MI.prototype,"dismissibleItemIsDismissedChanged_",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],MI.prototype,"dismissibleItemDataChanged_",null);
_.U([_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Ot]),_.W("design:returntype")],MI.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.U([_.M("yt-service-request-sent-button-renderer"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],MI.prototype,"dismissibleItemOnRequestSent",null);
_.U([_.M("yt-dismissible-item-action"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Array]),_.W("design:returntype")],MI.prototype,"dismissibleItemOnCommandSent",null);_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Wt]),_.W("design:returntype")],MI.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);MI=_.U([_.jr()],MI);_.NI=[_.YH,_.LI,MI.prototype];var OI=function(){var a=_.ir.apply(this,arguments)||this;a.disableGridStateAware=!1;a.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};a.currentGridClass="";return a};
_.z(OI,_.ir);OI.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.Tm(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var a=this.gridStateAwareGetElement();_.$q(a,"grid",!0)}};
OI.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
OI.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.E(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
OI.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var a="grid-disabled";else{a=_.LKb.getInstance();var b=this.get("pageSubtype");a=b&&IKb.includes(b)?"grid-disabled":a.currentSnapState_?a.currentSnapState_.className:null}(b=this.gridStateAwareGetElement())&&a!==this.currentGridClass&&(a&&_.$q(b,a,!0),this.currentGridClass&&_.$q(b,this.currentGridClass,!1),this.currentGridClass=a)};
var PI=OI;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],PI.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",String)],PI.prototype,"gridStateAwareSizingElementSelector",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],PI.prototype,"disableGridStateAware",void 0);PI=_.U([_.jr()],PI);_.QI=[PI.prototype,_.bH.YtActionHandlerBehavior];_.RI=new _.fB("GUIDE_TOKEN");var jVb;_.SI={};jVb=function(){var a=_.ir.apply(this,arguments)||this;a.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 a};
_.z(jVb,_.ir);_.f=jVb.prototype;_.f.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.f.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var a=_.v().resolve(_.Wi(_.RI));a&&(this.guidePersistentAndVisible=a.getGuidePersistentAndVisible(),this.activeEndpoint=a.getActiveEndpoint(),this.guideOpened=a.getGuideOpened(),this.miniGuideVisible=a.getMiniGuideVisible())};
_.f.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.f.handleGuideStateAction=function(a){this.guidePersistentAndVisible=a};
_.f.handleMiniGuideStateAction=function(a){this.miniGuideVisible=a};
_.f.handleGuideOpenedAction=function(a){this.guideOpened=a};
_.f.handleActiveEndpointAction=function(a){this.activeEndpoint=a};
var TI=jVb;TI.prototype.onActiveEndpointChange=TI.prototype.onActiveEndpointChange;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],TI.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],TI.prototype,"guidePersistentAndVisible",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],TI.prototype,"miniGuideVisible",void 0);_.U([_.O(),_.W("design:type",Object)],TI.prototype,"activeEndpoint",void 0);
_.U([_.N("activeEndpoint"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],TI.prototype,"onActiveEndpointChange",null);_.U([_.O(),_.W("design:type",Boolean)],TI.prototype,"guideOpened",void 0);TI=_.U([_.jr()],TI);_.SI.YtdGuideStateAwareBehavior=[];_.SI.YtdGuideStateAwareBehavior.push(TI.prototype,_.bH.YtActionHandlerBehavior);var kVb=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],lVb=function(){var a=_.ir.apply(this,arguments)||this;a.hoverJobId=0;a.JSC$12004_touched=!1;return a};
_.z(lVb,_.ir);_.f=lVb.prototype;_.f.created=function(){this.useExpandableTooltip=!kVb.includes(this.is)};
_.f.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.f.detached=function(){this.useExpandableTooltip=!1};
_.f.lockupOnDown=function(a){this.interactionElement&&!_.Xt(_.Pq(a),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.f.lockupOnUp=function(a){this.interactionElement&&!_.Xt(_.Pq(a),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.f.onTouchStart=function(){this.JSC$12004_touched=!0};
_.f.lockupOnMouseEnter=function(){var a=this,b=_.$i("kevlar_lockup_hover_delay",-1);this.JSC$12004_touched&&b>=0?(_.zk.cancelJob(this.hoverJobId),this.hoverJobId=_.zk.addJob(function(){a.lockupIsHovered=!0},8,b),this.JSC$12004_touched=!1):this.lockupIsHovered=!0};
_.f.lockupOnMouseLeave=function(){this.hoverJobId&&(_.zk.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.f.lockupOnPopupClosed=function(a,b){var c;((c=b.popupRenderer)==null?void 0:c.is)==="ytd-menu-popup-renderer"&&(a=b.popupRenderer.veData,b=_.Fn(),a&&b&&_.Uo(b,[a]))};
_.f.lockupOnLockupRequested=function(a){var b=a.detail.videoIds[0],c;a.detail&&b===((c=this.data)==null?void 0:c.videoId)&&(a.detail.returnValue=[this.data])};
_.f.lockupOnYtServiceRequestSent=function(a,b){if(a=b.actions)for(var c=0;c<a.length;c++){var d=a[c];if(d.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&b.ajaxPromise){var e=void 0,g=(e=_.y(b.endpoint,_.LE))==null?void 0:e.playlistId;e=void 0;d=(e=d.removedVideoId)!=null?e:"";jKb(_.VF(),d,g)}else d.action==="ACTION_REMOVE_VIDEO"&&b.ajaxPromise&&(g=void 0,d=(g=d.setVideoId)!=null?g:"",_.kKb(_.VF(),d))}};
_.f.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.f.lockupOnLockupEnabled=function(){if(!this.$){var a=_.v().resolve(_.$t).getCurrentPage(),b=this.getParentRenderer?this.getParentRenderer():void 0;_.Dl(new _.qj("component not ready",this.is,this.isAttached,a==null?void 0:a.is,b==null?void 0:b.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
var UI=lVb;UI.prototype.lockupOnLockupEnabled=UI.prototype.lockupOnLockupEnabled;UI.prototype.lockupOnLockupDisabled=UI.prototype.lockupOnLockupDisabled;UI.prototype.lockupOnYtServiceRequestSent=UI.prototype.lockupOnYtServiceRequestSent;UI.prototype.lockupOnLockupRequested=UI.prototype.lockupOnLockupRequested;UI.prototype.lockupOnPopupClosed=UI.prototype.lockupOnPopupClosed;UI.prototype.lockupOnMouseLeave=UI.prototype.lockupOnMouseLeave;UI.prototype.lockupOnMouseEnter=UI.prototype.lockupOnMouseEnter;
UI.prototype.onTouchStart=UI.prototype.onTouchStart;UI.prototype.lockupOnUp=UI.prototype.lockupOnUp;UI.prototype.lockupOnDown=UI.prototype.lockupOnDown;_.U([_.O(),_.W("design:type",Object)],UI.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Boolean)],UI.prototype,"lockupIsHovered",void 0);_.U([_.O(),_.W("design:type",Boolean)],UI.prototype,"lockupTouchTriggered",void 0);_.U([_.O(),_.W("design:type",Boolean)],UI.prototype,"useExpandableTooltip",void 0);
_.U([_.gr("#interaction"),_.W("design:type",Object)],UI.prototype,"interactionElement",void 0);_.U([_.M("down"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],UI.prototype,"lockupOnDown",null);_.U([_.M("up"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],UI.prototype,"lockupOnUp",null);
_.U([_.M("touchstart"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],UI.prototype,"onTouchStart",null);_.U([_.M("mouseenter"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],UI.prototype,"lockupOnMouseEnter",null);_.U([_.M("mouseleave"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],UI.prototype,"lockupOnMouseLeave",null);
_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],UI.prototype,"lockupOnPopupClosed",null);_.U([_.M("yt-lockup-requested"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],UI.prototype,"lockupOnLockupRequested",null);
_.U([_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Ot]),_.W("design:returntype")],UI.prototype,"lockupOnYtServiceRequestSent",null);_.U([_.M("yt-disable-lockup-interaction"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],UI.prototype,"lockupOnLockupDisabled",null);
_.U([_.M("yt-enable-lockup-interaction"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],UI.prototype,"lockupOnLockupEnabled",null);UI=_.U([_.jr()],UI);_.VI=[UI.prototype];_.mVb={YtdReduxBehavior:[]};_.mVb.YtdReduxBehavior.push.apply(_.mVb.YtdReduxBehavior,_.LI);var nVb=function(){var a=_.ir.apply(this,arguments)||this;a._noAccessors=!0;a.disableNowPlaying=!1;a.disableTooltips=!1;a.useHoveredProperty=!1;a.hovered=!1;a.isThumbnailHovered_=!1;a.addBackground=_.x("kevlar_thumbnail_bg");a.nowPlaying=!1;a.disableRounding=!1;a.size="small";return a};
_.z(nVb,_.ir);_.f=nVb.prototype;_.f.computeThumbnailOverlaySidePanelWidth_=function(a,b){return a-b};
_.f.computeSize=function(a,b){if(!this.disableRounding){if(!a&&!b)return"small";a=Math.max(a||0,b||0);return a>=256?"large":a>=96?"medium":"small"}};
_.f.computeFinalHoveredState_=function(a,b,c){return this.nowPlaying?!1:_.x("kevlar_thumbnail_fluid")&&a?b:c};
_.f.computeHoverOverlays_=function(a,b){return a&&b?b:void 0};
_.f.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.f.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.f.checkMiniplayer_=function(){var a;if(((a=this.data)==null?0:a.playlistSetVideoId)&&_.x("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{a=_.uF();var b=a.currentEndpoint;!this.disableNowPlaying&&b&&_.y(b,_.Vn)&&this.data?(b=_.y(b,_.Vn),this.nowPlaying=this.data.playlistId?b.playlistId===this.data.playlistId:b.videoId===this.data.videoId,this.isVideoPlaying=a==null?void 0:a.isVideoPlaying):this.nowPlaying=!1}};
var XI=nVb;XI.prototype.checkMiniplayer_=XI.prototype.checkMiniplayer_;XI.prototype.onMouseLeave_=XI.prototype.onMouseLeave_;XI.prototype.onMouseEnter_=XI.prototype.onMouseEnter_;XI.prototype.computeHoverOverlays_=XI.prototype.computeHoverOverlays_;XI.prototype.computeFinalHoveredState_=XI.prototype.computeFinalHoveredState_;XI.prototype.computeSize=XI.prototype.computeSize;XI.prototype.computeThumbnailOverlaySidePanelWidth_=XI.prototype.computeThumbnailOverlaySidePanelWidth_;
_.U([_.H(_.LI),_.W("design:type",Object)],XI.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],XI.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Number)],XI.prototype,"height",void 0);_.U([_.O(),_.W("design:type",Boolean)],XI.prototype,"bottomSidePanel",void 0);_.U([_.O(),_.W("design:type",Number)],XI.prototype,"width",void 0);_.U([_.O(),_.W("design:type",Object)],XI.prototype,"disableNowPlaying",void 0);
_.U([_.O({selector:_.Gp}),_.W("design:type",Boolean)],XI.prototype,"miniplayerIsActive",void 0);_.U([_.O(),_.W("design:type",Object)],XI.prototype,"disableTooltips",void 0);_.U([_.O(),_.W("design:type",Object)],XI.prototype,"useHoveredProperty",void 0);_.U([_.O(),_.W("design:type",Object)],XI.prototype,"hovered",void 0);_.U([_.O(),_.W("design:type",Object)],XI.prototype,"isThumbnailHovered_",void 0);
_.U([_.O({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.W("design:type",Boolean)],XI.prototype,"finalHoveredState_",void 0);_.U([_.O({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.W("design:type",Number)],XI.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],XI.prototype,"addBackground",void 0);
_.U([_.O({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.W("design:type",Object)],XI.prototype,"hoverOverlays_",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],XI.prototype,"nowPlaying",void 0);_.U([_.O(),_.W("design:type",Boolean)],XI.prototype,"isVideoPlaying",void 0);_.U([_.O(),_.W("design:type",Object)],XI.prototype,"disableRounding",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.W("design:type",Object)],XI.prototype,"size",void 0);_.U([_.M("mouseenter"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],XI.prototype,"onMouseEnter_",null);_.U([_.M("mouseleave"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],XI.prototype,"onMouseLeave_",null);
_.U([_.N("data","disableNowPlaying","miniplayerIsActive"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],XI.prototype,"checkMiniplayer_",null);XI=_.U([_.jr()],XI);var oVb=[XI.prototype];_.YI={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(a,b){return a+":"+_.ab(b)},
getPlayerListener_:function(a,b,c){a=this.getPlayerListenerKey_(a,b);b=this.playerListeners_.get(a);c&&this.playerListeners_.delete(a);return b},
savePlayerListener_:function(a,b){var c=b.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(a,b),c);return c},
listenToPlayerEvent:function(a,b,c){c=this.savePlayerListener_(b,c);a.addEventListener(b,c)},
listenToPlayerEvents:function(a,b){b.forEach(function(c,d){this.listenToPlayerEvent(a,d,c)}.bind(this))},
unlistenFromPlayerEvent:function(a,b,c){c=this.getPlayerListener_(b,c,!0);a.removeEventListener(b,c)},
unlistenFromPlayerEvents:function(a,b){b.forEach(function(c,d){this.unlistenFromPlayerEvent(a,d,c)}.bind(this))}}};
_.ZI=function(){};_.pVb=new _.fB("PLAYER_API_TOKEN");var tUa=!1,xUa,vUa=!1,zUa;var eu=function(a,b,c,d,e){_.tg.call(this);var g=this;this.playerId=b;this.webPlayerContextConfig=d;this.fLc=e;this.fbb=!1;this.api={};this.pMa=this.v9=null;this.kda=new _.jj;this.iC={};this.pCa=this.pNa=this.elementId=this.csb=this.config=null;this.gCa=!1;this.vT=this.aja=null;this.iSa={};this.rRc=["onReady"];this.lastError=null;this.x6b=NaN;this.mla={};this.mGa=0;this.rH=this.targetElement=a;_.gg(this,this.kda);qVb(this);c?this.mGa=setTimeout(function(){g.loadNewVideoConfig(c)},0):d&&(rVb(this),
sVb(this))};
_.z(eu,_.tg);eu.prototype.getId=function(){return this.playerId};
eu.prototype.loadNewVideoConfig=function(a){if(!this.isDisposed()){this.mGa&&(clearTimeout(this.mGa),this.mGa=0);var b=a||{};b instanceof vGb||(b=new vGb(b));this.config=b;this.setConfig(a);sVb(this);this.isReady()&&tVb(this)}};
var rVb=function(a){var b;a.webPlayerContextConfig?b=a.webPlayerContextConfig.rootElementId:b=a.config.attrs.id;a.elementId=b||a.elementId;a.elementId==="video-player"&&(a.elementId=a.playerId,a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId=a.playerId:a.config.attrs.id=a.playerId);var c;((c=a.rH)==null?void 0:c.id)===a.elementId&&(a.elementId+="-player",a.webPlayerContextConfig?a.webPlayerContextConfig.rootElementId=a.elementId:a.config.attrs.id=a.elementId)};
eu.prototype.setConfig=function(a){this.csb=a;this.config=uVb(a);rVb(this);if(!this.pNa){var b;this.pNa=vVb(this,((b=this.config.args)==null?void 0:b.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var c;if((c=this.config)==null?0:c.attrs)a=this.config.attrs,(b=a.width)&&this.rH&&(this.rH.style.width=Yy(Number(b)||b,!0)),(a=a.height)&&this.rH&&(this.rH.style.height=Yy(Number(a)||a,!0))};
var tVb=function(a){if(a.config&&a.config.loaded!==!0)if(a.config.loaded=!0,!a.config.args||a.config.args.autoplay!=="0"&&a.config.args.autoplay!==0&&a.config.args.autoplay!==!1){var b;a.api.loadVideoByPlayerVars((b=a.config.args)!=null?b:null)}else a.api.cueVideoByPlayerVars(a.config.args)},xVb=function(a){var b=!0,c=a.getPlayerElement();
c&&a.config&&(b=c.dataset.version===wVb(a));return b&&!!_.Ji("yt.player.Application.create")},sVb=function(a){if(!a.isDisposed()&&!a.gCa){var b=xVb(a);
if(b&&(a.getPlayerElement()?"html5":null)==="html5")a.pCa="html5",a.isReady()||yVb(a);else if(zVb(a),a.pCa="html5",b&&a.vT&&a.targetElement)a.targetElement.appendChild(a.vT),yVb(a);else{a.config&&(a.config.loaded=!0);var c=!1;a.aja=function(){c=!0;var d=AVb(a,"player_bootstrap_method")?_.Ji("yt.player.Application.createAlternate")||_.Ji("yt.player.Application.create"):_.Ji("yt.player.Application.create");var e=a.config?uVb(a.config):void 0;d&&d(a.targetElement,e,a.webPlayerContextConfig,a.fLc);yVb(a)};
a.gCa=!0;b?a.aja():(_.Ln(wVb(a),a.aja),(b=BVb(a))&&WBa(b||""),CVb(a)&&!c&&_.Rj("yt.player.Application.create",null))}}};
eu.prototype.getPlayerElement=function(){var a=_.du(document,this.elementId);!a&&this.rH&&this.rH.querySelector&&(a=this.rH.querySelector("#"+this.elementId));return a};
var yVb=function(a){if(!a.isDisposed()){var b=a.getPlayerElement(),c=!1;b&&b.getApiInterface&&b.getApiInterface()&&(c=!0);if(c){a.gCa=!1;if(!AVb(a,"html5_remove_not_servable_check_killswitch")){var d;if((b==null?0:b.isNotServable)&&a.config&&(b==null?0:b.isNotServable((d=a.config.args)==null?void 0:d.video_id)))return}DVb(a)}else a.x6b=setTimeout(function(){yVb(a)},50)}},DVb=function(a){qVb(a);
a.fbb=!0;var b=a.getPlayerElement();if(b){a.v9=EVb(a,b,"addEventListener");a.pMa=EVb(a,b,"removeEventListener");var c=b.getApiInterface();c=c.concat(b.getInternalApiInterface());for(var d=a.api,e=0;e<c.length;e++){var g=c[e];d[g]||(d[g]=EVb(a,b,g))}}for(var k in a.iC)a.iC.hasOwnProperty(k)&&a.v9&&a.v9(k,a.iC[k]);tVb(a);a.pNa&&a.pNa(a.api);a.kda.publish("onReady",a.api)},EVb=function(a,b,c){var d=b[c];
return function(){var e=_.Id.apply(0,arguments);try{return a.lastError=null,d.apply(b,e)}catch(g){if(c!=="sendAbandonmentPing")throw g.params=c,a.lastError=g,e=new _.qj("PlayerProxy error in method call",{error:g,method:c,playerId:a.playerId}),e.level="WARNING",e;}}},qVb=function(a){a.fbb=!1;
if(a.pMa)for(var b in a.iC)a.iC.hasOwnProperty(b)&&a.pMa(b,a.iC[b]);for(var c in a.mla)a.mla.hasOwnProperty(c)&&clearTimeout(Number(c));a.mla={};a.v9=null;a.pMa=null;b=a.api;for(var d in b)b.hasOwnProperty(d)&&(b[d]=null);b.addEventListener=function(e,g){a.addEventListener(e,g)};
b.removeEventListener=function(e,g){a.removeEventListener(e,g)};
b.destroy=function(){a.dispose()};
b.getLastError=function(){return a.getLastError()};
b.getPlayerType=function(){return a.getPlayerType()};
b.getCurrentVideoConfig=function(){return a.csb};
b.loadNewVideoConfig=function(e){a.loadNewVideoConfig(e)};
b.isReady=function(){return a.isReady()}};
eu.prototype.isReady=function(){return this.fbb};
eu.prototype.addEventListener=function(a,b){var c=this;this.isDisposed();var d=vVb(this,b);d&&(_.Pa(this.rRc,a)||this.iC[a]||(b=FVb(this,a),this.v9&&this.v9(a,b)),this.kda.subscribe(a,d),a==="onReady"&&this.isReady()&&setTimeout(function(){d(c.api)},0))};
eu.prototype.removeEventListener=function(a,b){this.isDisposed()||(b=vVb(this,b))&&this.kda.unsubscribe(a,b)};
var vVb=function(a,b){var c=b;if(typeof b==="string"){if(a.iSa[b])return a.iSa[b];c=function(){var d=_.Id.apply(0,arguments),e=_.Ji(b);if(e)try{e.apply(_.ja,d)}catch(g){throw d=new _.qj("PlayerProxy error when executing callback",{error:g}),d.level="ERROR",d;}};
a.iSa[b]=c}return c?c:null},FVb=function(a,b){var c=function(d){var e=function(){a.isDisposed();
if(!a.isDisposed())try{a.kda.publish(b,d!=null?d:void 0)}catch(m){var k=new _.qj("PlayerProxy error when creating global callback",{error:m.message,event:b,playerId:a.playerId,data:d,originalStack:m.stack,componentStack:m.componentStack});k.level="WARNING";throw k;}};
if(AVb(a,"web_player_publish_events_immediately"))e();else{var g=setTimeout(function(){e();_.yf.remove(a.mla,String(g))},0);
_.yf.add(a.mla,String(g),!0)}};
return a.iC[b]=c};
eu.prototype.getPlayerType=function(){return this.pCa||(this.getPlayerElement()?"html5":null)};
eu.prototype.getLastError=function(){return this.lastError};
var zVb=function(a){a.cancel();qVb(a);a.pCa=null;a.config&&(a.config.loaded=!1);var b=a.getPlayerElement();b&&(xVb(a)||!CVb(a)?a.vT=b:(b&&b.destroy&&b.destroy(),a.vT=null));a.targetElement&&_.Ry(a.targetElement)};
eu.prototype.cancel=function(){this.aja&&_.rBa(wVb(this),this.aja);clearTimeout(this.x6b);this.gCa=!1};
eu.prototype.disposeInternal=function(){zVb(this);if(this.vT&&this.config&&this.vT.destroy)try{this.vT.destroy()}catch(b){var a=new _.qj("PlayerProxy error during disposal",{error:b});a.level="ERROR";throw a;}this.iSa=null;for(a in this.iC)this.iC.hasOwnProperty(a)&&delete this.iC[a];this.csb=this.config=this.api=null;delete this.targetElement;delete this.rH;_.tg.prototype.disposeInternal.call(this)};
var CVb=function(a){var b,c;a=(b=a.config)==null?void 0:(c=b.args)==null?void 0:c.fflags;return!!a&&a.indexOf("player_destroy_old_version=true")!==-1},wVb=function(a){return a.webPlayerContextConfig?a.webPlayerContextConfig.jsUrl:(a=a.config.assets)?a.js:""},BVb=function(a){return a.webPlayerContextConfig?a.webPlayerContextConfig.cssUrl:(a=a.config.assets)?a.css:""},AVb=function(a,b){if(a.webPlayerContextConfig)var c=a.webPlayerContextConfig.serializedExperimentFlags;
else{var d;if((d=a.config)==null?0:d.args)c=a.config.args.fflags}return(c||"").split("&").includes(b+"=true")},uVb=function(a){for(var b={},c=_.h(Object.keys(a)),d=c.next();!d.done;d=c.next()){d=d.value;
var e=a[d];b[d]=typeof e==="object"?_.yf.clone(e):e}return b};var EUa={},DUa="player_uid_"+(Math.random()*1E9>>>0);var $I=function(a,b,c,d,e,g){b=b===void 0?document.createElement("div"):b;this.webPlayerContextConfig=a;this.container=b;this.commandResolver=c;this.apiResolver=HUa();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.gq;d||g?GVb(this):HVb(this);this.pendingPlayerResponse=d;this.pendingWatchNextResponse=e;this.pendingPlayerVars=g;IVb(this)};
$I.prototype.loadVideoWithPlayerResponse=function(a,b,c){this.loadVideo(a,b,c)};
$I.prototype.loadVideoWithPlayerVars=function(a){return this.loadVideo(void 0,void 0,a)};
$I.prototype.destroy=function(a){if(a=_.du(document,a))a=DUa+"_"+_.ab(a),(a=EUa[a])&&a.dispose()};
var KVb=function(a,b){var c;_.l(function(d){if(d.nextAddress==1)return a.pendingWatchNextResponse=b,a.synchronousApi?(c=a.synchronousApi,d.jumpTo(2)):_.p(d,a.api,3);d.nextAddress!=2&&(c=d.yieldResult);JVb(a,c);a.pendingWatchNextResponse&&(c.updateVideoData({raw_watch_next_response:a.pendingWatchNextResponse}),a.pendingWatchNextResponse=void 0);_.se(d)})},JVb=function(a,b){var c;
if(!(b==null?0:(c=b.isReady)==null?0:c.call(b))){var d;a=new _.qj("playerApi is falsey",{synchronousApi:a.synchronousApi,apiResolved:a.apiResolver.resolved,playerApiUndefined:b===void 0,playerApiNull:b===null,playerApiReady:(b==null?void 0:(d=b.isReady)==null?void 0:d.call(b))===!0,playerApiMethods:b?Object.keys(b):[]});_.Bl(a)}},LVb=function(a,b){if(typeof a[b]==="function")return a[b]()},MVb=function(a){var b=window,c,d=(c=b.ytplayer)==null?void 0:c.bootstrapPlayerContainer;
if((c=d==null?void 0:d.firstElementChild)&&_.Xz(c,"html5-video-player")){var e,g,k=(e=b.ytplayer)==null?void 0:(g=e.bootstrapWebPlayerContextConfig)==null?void 0:g.contextId;e=a.webPlayerContextConfig.contextId;if(k&&k===e){d!==a.container&&(d=!1,LVb(c,"getPlayerState")===2&&(d=!0),a.container.appendChild(c),d||LVb(c,"playVideo"));var m;if((m=b.ytplayer)==null?0:m.bootstrapPlayerResponse)a.bootstrapPlayerResponse=b.ytplayer.bootstrapPlayerResponse}}},IVb=function(a){var b,c,d,e,g;
_.l(function(k){if(k.nextAddress==1)return a.pageReadyOrDataAvailable?k.jumpTo(2):_.p(k,a.pageReadyOrDataAvailableResolver.promise,2);if(k.nextAddress!=4)return!_.x("kevlar_player_unified_player_loading")||uUa()&&wUa()?k.jumpTo(4):_.p(k,BUa(),4);MVb(a);if(a.pendingPlayerResponse||a.pendingPlayerVars)b=CUa(a.pendingPlayerResponse,a.pendingWatchNextResponse,a.pendingPlayerVars),a.pendingPlayerResponse&&a.pendingPlayerResponse===a.bootstrapPlayerResponse&&(b.loaded=!0),a.bootstrapPlayerResponse=void 0;
c=GUa(a.container,b,a.webPlayerContextConfig);((d=b)==null?0:d.loaded)&&a.pendingWatchNextResponse?(KVb(a,a.pendingWatchNextResponse),a.pendingPlayerResponse=void 0,a.pendingPlayerVars=void 0):NVb(a);e=function(m){c.removeEventListener("onReady",e);a.synchronousApi=m;a.apiResolver.resolve(m)};
c.addEventListener("onReady",e);a.commandResolver!==void 0&&(g=a.commandResolver,c.addEventListener("innertubeCommand",function(m){g(m)}));
_.se(k)})};
$I.prototype.loadVideo=function(a,b,c){var d=this,e,g,k,m,n,r,t,u,w;return _.l(function(A){if(A.nextAddress==1)return d.pendingPlayerResponse=a,d.pendingWatchNextResponse=b,d.pendingPlayerVars=c,GVb(d),d.synchronousApi?(e=d.synchronousApi,A.jumpTo(2)):_.p(A,d.api,3);A.nextAddress!=2&&(e=A.yieldResult);JVb(d,e);k=new Promise(function(C){g=C});
m=function(){var C=e.getPlayerResponse();C&&(e.removeEventListener("onVideoDataChange",m),g(C))};
e.addEventListener("onVideoDataChange",m);if(d.pendingPlayerResponse||d.pendingPlayerVars)d.pendingPlayerResponse&&d.pendingPlayerResponse===d.bootstrapPlayerResponse?(g(d.pendingPlayerResponse),d.pendingWatchNextResponse&&KVb(d,d.pendingWatchNextResponse)):(n=CUa(d.pendingPlayerResponse,d.pendingWatchNextResponse,d.pendingPlayerVars),(w=(r=d.pendingPlayerResponse)==null?void 0:(t=r.playerConfig)==null?void 0:(u=t.playbackStartConfig)==null?void 0:u.startPaused)?e.cueVideoByPlayerVars(n.args):e.loadVideoByPlayerVars(n.args)),
NVb(d),d.bootstrapPlayerResponse=void 0;return A.return(k)})};
var HVb=function(a){if(document.readyState==="complete"||document.readyState==="interactive")GVb(a);else{var b=function(){document.removeEventListener("DOMContentLoaded",b);GVb(a)};
document.addEventListener("DOMContentLoaded",b)}},GVb=function(a){a.pageReadyOrDataAvailable=!0;
a.pageReadyOrDataAvailableResolver.resolve()},NVb=function(a){a.pendingPlayerResponse=void 0;
a.pendingWatchNextResponse=void 0;a.pendingPlayerVars=void 0};
_.Vm.Object.defineProperties($I.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var aJ=function(a){LB.call(this,a===void 0?"document_active":a);var b=this;this.overridePriority=10;this.hasRun=new Map;this.transitions=[{from:"document_active",to:"document_disposed_preventable",action:this.runPreventableDispose},{from:"document_active",to:"document_disposed",action:this.runDispose},{from:"document_disposed_preventable",to:"document_disposed",action:this.runDispose},{from:"document_disposed_preventable",to:"flush_logs",action:this.runFlush},{from:"document_disposed_preventable",
to:"document_active",action:this.runActive},{from:"document_disposed",to:"flush_logs",action:this.runFlush},{from:"document_disposed",to:"document_active",action:this.runActive},{from:"document_disposed",to:"document_disposed",action:function(){}},
{from:"flush_logs",to:"document_active",action:this.runActive}];window.addEventListener("pagehide",function(c){b.transition("document_disposed",{event:c})});
window.addEventListener("beforeunload",function(c){b.transition("document_disposed_preventable",{event:c})});
window.addEventListener("unload",function(c){b.transition("document_disposed",{event:c});b.hasRun=new Map})};
_.z(aJ,LB);
aJ.prototype.runPreventableDispose=function(a,b){if(!this.hasRun.get("document_disposed_preventable")){a(b==null?void 0:b.event);var c,d;if((b==null?0:(c=b.event)==null?0:c.defaultPrevented)||(b==null?0:(d=b.event)==null?0:d.returnValue)){b.event.returnValue||(b.event.returnValue=!0);b.event.defaultPrevented||b.event.preventDefault();this.hasRun=new Map;this.transition("document_active");return}}this.hasRun.set("document_disposed_preventable",!0);this.hasRun.get("document_disposed")?this.transition("flush_logs"):this.transition("document_disposed")};
aJ.prototype.runDispose=function(a,b){this.hasRun.get("document_disposed")?this.transition("document_active"):(a(b==null?void 0:b.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
aJ.prototype.runFlush=function(a,b){a(b==null?void 0:b.event);this.transition("document_active")};
aJ.prototype.runActive=function(){};var bJ=function(a){LB.call(this,a===void 0?"document_visibility_unknown":a);var b=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(c){document.visibilityState==="visible"?b.transition("document_visible",{event:c}):b.transition("document_hidden",
{event:c})});
_.x("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(c){b.transition("document_backgrounded",{event:c})}),window.addEventListener("focus",function(c){b.transition("document_foregrounded",{event:c})}))};
_.z(bJ,LB);bJ.prototype.runVisible=function(a,b){a(b==null?void 0:b.event);_.x("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
bJ.prototype.runHidden=function(a,b){a(b==null?void 0:b.event);_.x("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
bJ.prototype.runBackgrounded=function(a,b){a(b==null?void 0:b.event)};
bJ.prototype.runForegrounded=function(a,b){a(b==null?void 0:b.event)};var cJ=function(){this.teardownLifecycle=new aJ;this.visibilityLifecycle=new bJ};
cJ.prototype.install=function(){var a=_.Id.apply(0,arguments),b=this;a.forEach(function(c){b.teardownLifecycle.install(c)});
a.forEach(function(c){b.visibilityLifecycle.install(c)})};var dJ=function(){cJ.call(this);var a={};this.install((a.document_disposed={callback:this.abortSlisAndFlush},a));_.x("combine_ve_grafts")&&(a={},this.install((a.document_disposed={callback:this.flushInteractionLoggingAttachVes},a)));a={};this.install((a.flush_logs={callback:this.logFinalPayload},a));_.x("web_log_cfg_cee_ks")||_.ul(_.zk,OVb)};
_.z(dJ,cJ);var IUa=function(){dJ.loggingInstance||(dJ.loggingInstance=new dJ);return dJ.loggingInstance};
dJ.prototype.logFinalPayload=function(){if(_.x("web_fp_via_jspb")){var a=new qnb,b=_.Fn();b&&_.sf(a,1,b);b=_.x("jspb_sparse_encoded_pivot")?new tl([{}]):new tl;_.qd(b,380,rnb,a);nCa("finalPayload",b);_.x("web_fp_via_jspb_and_json")&&_.zl("finalPayload",{csn:_.Fn()})}else _.zl("finalPayload",{csn:_.Fn()})};
dJ.prototype.abortSlisAndFlush=function(){fGb(UE);VE!=null&&VE.flush()};
dJ.prototype.flushInteractionLoggingAttachVes=function(){zIb(_.ms())};
var OVb=function(){var a=_.Ei("CLIENT_EXPERIMENT_EVENTS");if(a){var b=Waa();a=_.h(a);for(var c=a.next();!c.done;c=a.next())c=c.value,b(c)&&_.zl("genericClientExperimentEvent",{eventType:c});delete _.Ai.CLIENT_EXPERIMENT_EVENTS}};var PVb={};
PVb.YtPlayerBehavior=[_.YI.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 a=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.gq;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;JUa(function(){a.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.Em(this,"pan-down"),_.x("kevlar_pinch_fullscreen")&&_.qG().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.x("kevlar_pinch_fullscreen")&&_.qG().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(a,b,c){var d=this;fu(this.useUnifiedPlayer_());if(this.mainAppPlayer_)fu(!1,"MainAppPlayer already created.");else{var e=_.x("kevlar_player_container_query_killswitch")?this.$.container:_.E(this.hostElement).querySelector("#container");this.mainAppPlayer_=new $I(this.getWebPlayerContextConfig_(),e,function(g){return _.is(g,d.hostElement)},a,b,c);
this.mainAppPlayer_.api.then(function(g){d.player_=g;d.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&xJb.resolve(g)})}},
loadVideoWithPlayerResponse:function(a,b){var c=this;if(this.useUnifiedPlayer_()){var d=this.watchNextData,e,g=(e=a.videoDetails)==null?void 0:e.videoId,k,m,n;(e=(k=this.watchNextData)==null?void 0:(m=k.currentVideoEndpoint)==null?void 0:(n=m.watchEndpoint)==null?void 0:n.videoId)&&g!=e&&(d=void 0,_.x("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(a,d,b):this.createMainAppPlayer_(a,d,b);this.mainAppPlayer_.api.then(function(){_.go(c.hostElement,
"yt-player-updated")})}else this.update(qUa(a,b))},
loadVideoWithPlayerVars:function(a){var b=this;this.useUnifiedPlayer_()?(_.x("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(a):this.createMainAppPlayer_(void 0,void 0,a),this.mainAppPlayer_.api.then(function(){_.go(b.hostElement,"yt-player-updated")})):this.update({args:a})},
update:function(a){var b=this;if(this.useUnifiedPlayer_())fu(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(a);var c=DBa(a.args);c&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==c&&Object.assign(a.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(a).then(function(d){_.go(b.hostElement,"yt-player-updated",_.x("kevlar_player_updated_obsolete_player_killswitch")?
d:void 0)})}_.Cl(new _.qj("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(a){var b=this,c;return _.l(function(d){if(d.nextAddress==1)return _.p(d,b.getPlayerPromise(),2);c=d.yieldResult;if(!c)throw Error("sh");a&&b.updatePlayerPlaylist_(a);_.se(d)})},
acquireApi_:function(a){var b=this;if(this.useUnifiedPlayer_())fu(!1,"Invalid method call in kevlar_unified_player.");else return _.zk.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(fu(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(c){b.shouldAutoplay_(a)?c.loadVideoByPlayerVars(a.args):c.cueVideoByPlayerVars(a.args)})):this.initPlayerPromise_=this.initPlayerContainer_(a),this.initPlayerPromise_},
initPlayerContainer_:function(a){var b=this;if(this.useUnifiedPlayer_())fu(!1,"Invalid method call in kevlar_unified_player.");else return fu(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.Dl(Error("th")),fu(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.x("kevlar_player_container_query_killswitch")?this.$.container:_.E(this.hostElement).querySelector("#container"),BUa().then(function(){var c=b.initPlayer_(a);b.playerResolver_.resolve(c);
return c})},
onPlayerReady_:function(a,b){this.useUnifiedPlayer_()?fu(!1,"Invalid method call in kevlar_unified_player."):(a.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&xJb.resolve(a),b(a))},
maybeCallApiMethodOnElement_:function(a,b){if(typeof a[b]==="function")return a[b]()},
maybeAdoptBootstrapPlayer_:function(){var a=window,b,c=(b=a.ytplayer)==null?void 0:b.bootstrapPlayerContainer;if((b=c==null?void 0:c.firstElementChild)&&b.classList.contains("html5-video-player")){var d,e,g=(d=a.ytplayer)==null?void 0:(e=d.bootstrapWebPlayerContextConfig)==null?void 0:e.contextId;d=this.getWebPlayerContextConfig_().contextId;if(g&&g===d){c!==this.playerContainer_&&(c=!1,this.maybeCallApiMethodOnElement_(b,"getPlayerState")===2&&(c=!0),this.playerContainer_.appendChild(b),c||this.maybeCallApiMethodOnElement_(b,
"playVideo"));var k;if((k=a.ytplayer)==null?0:k.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=a.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(a){var b=this;if(this.useUnifiedPlayer_())fu(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(c){b.maybeAdoptBootstrapPlayer_();var d=a?rUa(a):void 0;d&&d==b.bootstrapPlayerResponse_&&(a.loaded=!0);d=b.playerContainer_;var e=b.getWebPlayerContextConfig_();d=GUa(d,a,e);b.player_=d;b.onPlayerReadyEvent_=b.onPlayerReady_.bind(b,b.player_,c);b.player_.addEventListener("onReady",b.onPlayerReadyEvent_);b.player_.addEventListener("innertubeCommand",
b.onPlayerInnerTubeCommand_.bind(b))})},
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(a){a.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(a){a.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var a=_.v().resolve(_.$t).getCurrentPage();a&&a.getScrollTop()<=0?_.Em(this,"pan-down"):_.Em(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(a){a.isFullscreen()||a.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(a){a.isFullscreen()&&a.toggleFullscreen()})},
updatePlayerPlaylist_:function(a){var b=this,c,d,e;return _.l(function(g){if(g.nextAddress==1)return c=_.v().resolve(_.Wi(_.QF)),d=!!(c&&c.playlistComponent&&c.playlistComponent.loopOn),_.p(g,b.getPlayerPromise(),2);var k=e=g.yieldResult,m=k.updatePlaylist,n=[];if(_.x("kevlar_player_playlist_use_local_index")){var r,t;var u=(t=(r=a.localCurrentIndex)!=null?r:a.currentIndex)!=null?t:0}else{var w;u=(w=a.currentIndex)!=null?w:0}if(a.contents)for(r=0;r<a.contents.length;r++)if((t=a.contents[r])&&t.playlistPanelVideoRenderer)if(PGa(t)){t=
t.playlistPanelVideoRenderer;w="";t.shortBylineText&&(w=_.Vp(t.shortBylineText));var A="";t.title?A=_.Vp(t.title):t.unplayableText&&(A=_.Vp(t.unplayableText));n.push({author:w,title:A,encrypted_id:t.videoId})}else r<u&&--u;m.call(k,{index:u,list:a.playlistId?a.playlistId:"",loop:d,playlist_title:a.title,playlist_length:n.length,video:n,fetch:0,external_list:"1",title:a.title?a.title:"",playlist_author:a.ownerName?_.Vp(a.ownerName):void 0});_.se(g)})},
focusOnPlayer:function(){_.Tm(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var a=this.playerContainer_.querySelector(".html5-video-player");a&&(_.QVb(_.v().resolve(_.Ft)),a.focus())}})},
preparePlayer:function(){var a=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(b){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")b();else{var c=function(){document.removeEventListener("DOMContentLoaded",c);b()};
document.addEventListener("DOMContentLoaded",c)}})).then(function(){return BUa()}).then(function(){a.initPlayerPromise_||a.preparePlayerJobId_||(a.preparePlayerJobId_=_.ul(_.zk,function(){a.initPlayerPromise_||(a.initPlayerPromise_=a.initPlayerContainer_())}))}):_.Cl(new _.qj("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(a){this.useUnifiedPlayer_()?fu(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(a)||(a.args.autoplay="0")},
shouldAutoplay_:function(a){if(this.useUnifiedPlayer_())fu(!1,"Invalid method call in kevlar_unified_player.");else{var b=this.get("args.el",a);return b&&b!="detailpage"&&this.isMiniplayerActive_()||b&&(b=="sponsorshipsoffer"||b=="handlesclaiming")&&this.get("args.autoplay",a)=="0"?!1:(a=rUa(a))&&this.get("playerConfig.playbackStartConfig.startPaused",a)?!1:!0}},
isMiniplayerActive_:function(){return _.v().resolve(_.Vw).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var a=this.getPlayer();if(a){var b=a.getPlayerState();_.x("kevlar_player_check_ad_state_on_stop")&&(b=a.getPlayerState(a.getPresentingPlayerType()));b!=5&&a.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(a,b,c){c=c===void 0?!1:c;var d=this,e,g,k,m;return _.l(function(n){if(n.nextAddress==1)return b||(b=d.hostElement),e=d.useUnifiedPlayer_()?!!d.mainAppPlayer_:!!d.initPlayerPromise_,e?_.p(n,d.getPlayerPromise(),2):(c?a.insertBefore(b,a.firstChild):a.appendChild(b),n.return());g=n.yieldResult;k=g.getPlayerState(g.getPresentingPlayerType());m=!1;if(k==-1||k==1||k==3)m=!0;c?a.insertBefore(b,a.firstChild):a.appendChild(b);m&&g.playVideo();g.setSize(NaN,NaN);_.se(n)})},
watchNextDataChanged_:function(a){var b=this;a&&(this.useUnifiedPlayer_()&&_.x("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&KVb(this.mainAppPlayer_,a):this.getPlayerPromise().then(function(c){c.updateVideoData(b.computeWatchNextPlayerVars_(a))}))},
computeWatchNextPlayerVars_:function(a){if(this.useUnifiedPlayer_()&&_.x("kevlar_unified_player_update_watch_next_killswitch"))fu(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:a}},
maybeSendAbandonmentPing_:function(){var a=this.getPlayer();a&&a.getPlayerState()!=5&&a.getPlayerState()!=0&&a.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var a=_.Ei("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(a=Object.assign({},a),a.rootElementId=this.playerId);a.serializedExperimentIds&&a.serializedExperimentFlags||_.Dl(Error("uh"));return a},
hasWebPlayerContextConfig_:function(){return!!_.Ei("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(a){this.useUnifiedPlayer_()?fu(!1,"Invalid method call in kevlar_unified_player."):_.is(a,this.hostElement)},
useUnifiedPlayer_:function(){var a=_.x("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.x("kevlar_unified_player")||a}}];var RVb={};RVb.YtPlaylistPanelBehavior=[_.Z.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(a){a=a.detail;if(a.actions.loop!=void 0||a.actions["yt-icons:loop"]!=void 0)this.loopOn=a.actions.loop||a.actions["yt-icons:loop"];if(a.actions.shuffle!=void 0||a.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=a.actions.shuffle||a.actions["yt-icons:shuffle"]},
setMenuData_:function(a){if(!a||!a.playlistButtons||a.isInfinite)return null;for(var b=a.playlistButtons.menuRenderer.topLevelButtons,c=b.length,d=0;d<c;d++)if(b[d].toggleButtonRenderer){var e=b[d].toggleButtonRenderer;e.defaultIcon.iconType=="LOOP"&&this.loopOn?e.isToggled=this.loopOn:e.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(e.isToggled=this.shuffleOn)}return a.playlistButtons}}];var SVb=function(a){cn.call(this,a,132);this.isDocument=a===document.documentElement};
_.z(SVb,cn);SVb.prototype.calculateScrollDelta=function(a,b,c){var d=0;a<b?d=a<b-100?-48:-8:a>b+c&&(d=a>b+c+100?48:8);return d};
SVb.prototype.JSC$9121_onMouseMove=function(a){this.isDocument||(a.clientX=a.event_.pageX,a.clientY=a.event_.pageY);cn.prototype.JSC$9121_onMouseMove.call(this,a)};var eJ=function(){var a=_.ir.apply(this,arguments)||this;a._noAccessors=!0;a.scrollElement=document.documentElement;a.JSC$12063_dragListGroup=null;a.dragScrollSupport=null;a.onDraggerCreated=function(b){var c=b.JSC$9117_dragger;c.scrollTarget_=a.scrollElement;b=b.draggerEl;c&&b.menuOpened&&c.setEnabled(!1)};
a.onDragStart=function(b){var c=b.draggerEl;b=b.currDragItem;var d=Object.assign({},b==null?void 0:b.data);d.trackingParams=void 0;c.data=d;c.style.position="absolute";c.style.width=(b==null?void 0:b.clientWidth)+"px";c.style.zIndex="2030";c.onDrag&&c.onDrag();_.x("web_owner_document_fallback_killswitch")?(b=document.querySelector("ytd-app"))&&_.E(b).appendChild(c):(b=_.Cf(c),(d=b.querySelector("ytd-app"))?_.E(d).appendChild(c):b.body.appendChild(c));a.dragScrollSupport=new SVb(a.scrollElement);a.dragScrollSupport.horizontalScrolling_=
!1;c=a.dragScrollSupport;c.constrainScroll_=!!c.margin_&&!1};
a.onDrop=function(b){a.handleDrop(b);a.dragScrollSupport&&(_.Tf(a.dragScrollSupport),a.dragScrollSupport=null)};
a.onReorderableScroll=function(){if(a.JSC$12063_dragListGroup){var b=a.JSC$12063_dragListGroup;krb(b,b.currDragItem_)}};
return a};
_.z(eJ,_.ir);eJ.prototype.detached=function(){_.TVb(this)};
_.TVb=function(a){a.JSC$12063_dragListGroup&&(_.Cz(a.JSC$12063_dragListGroup,brb,a.onDragStart),_.Cz(a.JSC$12063_dragListGroup,frb,a.onDragStart),a.JSC$12063_dragListGroup.dispose(),a.JSC$12063_dragListGroup=null);a.dragScrollSupport&&(_.Tf(a.dragScrollSupport),a.dragScrollSupport=null);a.scrollElement.removeEventListener("scroll",a.onReorderableScroll)};
_.UVb=function(a,b,c,d){d=d===void 0?"":d;_.TVb(a);c&&(a.scrollElement=c);a.JSC$12063_dragListGroup=new SC;a.JSC$12063_dragListGroup.hysteresisDistance_=2;hrb(a.JSC$12063_dragListGroup,b);a.JSC$12063_dragListGroup.draggerElClasses_=_.ox("dragging").split(" ");d&&irb(a.JSC$12063_dragListGroup,function(e){var g=e||document,k=null;g.getElementsByClassName?k=g.getElementsByClassName(d)[0]:k=Bcb("*",d,e);return k||e});
_.ss(a.JSC$12063_dragListGroup,$qb,a.onDraggerCreated);_.ss(a.JSC$12063_dragListGroup,brb,a.onDragStart);_.ss(a.JSC$12063_dragListGroup,frb,a.onDrop);a.JSC$12063_dragListGroup.init();a.scrollElement.addEventListener("scroll",a.onReorderableScroll,{passive:!0})};
eJ.prototype.handleDrop=function(){};
_.Vm.Object.defineProperties(eJ.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
var VVb=eJ;_.U([_.O({value:100}),_.W("design:type",Number)],VVb.prototype,"scrollMargin",void 0);VVb=_.U([_.jr()],VVb);_.WVb=[VVb.prototype];_.fJ={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(a,b,c){var d=this.getClickTarget_(b);if(d&&this.isClickAllowed_(d)){b.preventDefault();a=(0,_.yf.unsafeClone)(a);var e=this.getContainerBoundingRect();b=this.getRelativeClickXy_(b,e);this.expandEndpointUrlMacros_(a,{NX:b[0],NY:b[1],NB:d.code});c&&this.truncateWebCommendMetadataUrl_(a);_.go(this.hostElement,"yt-navigate",{endpoint:a})}},
getClickTarget_:function(a){if(!this.clickTargetMap)return null;a=_.Pq(a)||[];a=_.h(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;if(b===_.E(this.hostElement).querySelector("#menu"))break;if(b=this.clickTargetMap.get(b.id))return b}return null},
getRelativeClickXy_:function(a,b){var c=a.detail.x,d=a.detail.y;_.x("use_on_click_for_desktop_display_ad")&&a.clientX!=null&&a.clientY!=null&&(c=a.clientX,d=a.clientY);a=Math.round(c-b.left);b=Math.round(d-b.top);return a<0||b<0?[null,null]:[a,b]},
getContainerBoundingRect:function(){return _.E(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(a,b){for(var c=_.h(a.loggingUrls||[]),d=c.next();!d.done;d=c.next())d=d.value,d.baseUrl&&(d.baseUrl=Dga(d.baseUrl,b));a.urlEndpoint&&a.urlEndpoint.url&&(a.urlEndpoint.url=Dga(a.urlEndpoint.url,b));a.commandMetadata&&a.commandMetadata.webCommandMetadata&&a.commandMetadata.webCommandMetadata.url&&(a.commandMetadata.webCommandMetadata.url=Dga(a.commandMetadata.webCommandMetadata.url,b))},
truncateWebCommendMetadataUrl_:function(a){if(a.commandMetadata&&a.commandMetadata.webCommandMetadata&&a.commandMetadata.webCommandMetadata.url){var b=a.commandMetadata.webCommandMetadata.url,c=b.indexOf("&pp=");if(c>0){var d=b.indexOf("&",c+1);a.commandMetadata.webCommandMetadata.url=d>c&&d<b.length?b.slice(0,c)+b.slice(d):b.slice(0,c)}}},
configureClickTargets:function(a,b,c){this.containerId=a;this.clickTargetMap=new Map;a=_.h(b);for(b=a.next();!b.done;b=a.next())if(b=b.value,b.location){var d=c.get(b.location);d&&(_.$q(_.E(this.hostElement).querySelector("#"+d),"yt-simple-endpoint",this.isClickAllowed_(b)),this.clickTargetMap.set(d,b))}},
isClickAllowed_:function(a){return a.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||a.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||a.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||a.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.gJ={};
_.gJ.YtLazyListBehavior=[_.XG.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 a=(this.constructor.generatedFrom||this).observers;a||(a=[]);a.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
a}},
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 a=this.renderElementsOutsideVisibleArea_;a&&(TOb(a,4),a.processSignal())},
deepLazyListObserver_:function(a){var b=this;if(a){var c=a.value||[];if(this.itemsPath==a.path){var d=this.nonDeferredItemCount;a=0;d>-1&&c.length>d&&(a=_.Ei("REMAINING_DOVA_DEFERRED_CHUNKS",-1));a>0?(d>0&&(d=c.slice(0,d),this.setInitialItemsOnDataChanged(d)),(d=this.renderElementsOutsideVisibleArea_)?d.cancel():(d=this.renderElementsOutsideVisibleArea_=new _.ZG(2,"eocs"),_.ssa(window,"scroll",function(){return b.renderDeferredElements()})),_.$G(d,function(){b.setInitialItemsOnDataChanged(c)}),_.Bi("REMAINING_DOVA_DEFERRED_CHUNKS",
a-1)):this.setInitialItemsOnDataChanged(c)}else if(this.itemsPath+".splices"==a.path)this.onItemsUpdated_(c);
else d="shownItems"+a.path.substr(this.itemsPath.length),this.useSignals&&d==="shownItems.length"||this.notifyPath(d,a.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(a){a&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(a),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(a){a=a.indexSplices;for(var b=0,c=a.length;b<c;b++){var d=a[b];if(d.index<this.shownCount&&(d.removed&&this.splice("shownItems",d.index,d.removed.length),d.addedCount)){var e=d.object.slice(d.index,d.index+d.addedCount);d=["shownItems",d.index,0];d.push.apply(d,e);this.splice.apply(this,d)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(a){this.cancelPendingTasks_();a||(a=[]);this.items_=a;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&&(_.Gi("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.Tm(this,this.tryRenderChunk_)))},
fillRange_:function(a,b){this.canShowMore&&this.items_&&(a=this.items_.slice(a,b),a.unshift("shownItems"),this.push.apply(this,a),this.shownCount=b,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var a=this;this.canShowMore&&_.Dr(this,"renderChunk",function(){a.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.Gi("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.wu(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var a=this.renderElementsOutsideVisibleArea_;a&&(a.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var a=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(a-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=a;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(a){return Math.ceil(1E3/a)},
onCanShowMoreUpdated_:function(a){this.data&&this.items_!==null&&(a?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(a){!this.shouldUseTaskManager()&&this.data&&(!a&&this.canShowMore?(_.$Ma(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):a&&this.partiallyRenderedItems_.has(this.items_)&&(_.x("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var jJ;_.hJ={};
jJ=function(){var a=_.ir.apply(this,arguments)||this;a.atStart=!0;a.atEnd=!0;a.startIndex=0;a.endIndex=0;a.scrollCount=0;a.initialStartIndex=0;a.disableScrollEventListener=!1;a.useFloorScrolling=!1;a.isSearch=!1;a.dragging=!1;a.dragMouseStart=0;a.dragOffsetStart=0;a.disableWheelScroll=!1;a.centerListItems=!1;a.offset=0;a.minComponentWidth=0;a.marginWidthRight=0;a.marginWidthLeft=0;a.setButtonsStateRequested=!1;a.itemsVisibilityObserver=null;a.fullyVisibleItemsIndices=[];a.JSC$12074_onWheelScroll=function(b){if(a.isSearch&&
!a.disableWheelScroll&&_.x("desktop_enable_dmpanel_wheel_scroll")){var c=b.shiftKey?Math.abs(b.deltaY)>Math.abs(b.deltaX)?b.deltaY:b.deltaX:b.deltaX;c!==0&&(b.preventDefault(),a.ytLazyListBehavior.fillRemainingListItems(),a.offset+=c,iJ(a),a.reposition_())}};
a.JSC$12074_onPointerDown=function(b){XVb(a)&&(a.dragMouseStart=b.clientX,a.dragOffsetStart=a.offset,a.dragging=!0)};
a.onPointerMove=function(b){XVb(a)&&a.dragging&&(a.ytLazyListBehavior.fillRemainingListItems(),a.offset=a.dragOffsetStart-(b.clientX-a.dragMouseStart),iJ(a),a.reposition_())};
a.JSC$12074_onPointerUp=function(){XVb(a)&&(a.dragging=!1)};
return a};
_.z(jJ,_.ir);var YVb=function(a){var b=_.E(a.hostElement).querySelector("#items").children;if(!b)return 0;var c=0;a=_.h(a.fullyVisibleItemsIndices);for(var d=a.next();!d.done;d=a.next())c+=b[d.value].clientWidth;return c},XVb=function(a){return a.isSearch&&_.x("desktop_enable_dmpanel_click_drag_scroll")};
jJ.prototype.created=function(){this.cachedViewportWidth=_.Ei("initialInnerWidth")||window.innerWidth;this.JSC$12074_cachedViewportHeight=_.Ei("initialInnerHeight")||window.innerHeight;_.Ei("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.Bi("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
jJ.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.x("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();ZVb(this)};
jJ.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.x("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var a;(a=this.itemsVisibilityObserver)==null||a.disconnect();this.itemsVisibilityObserver=null;var b;(b=this.itemsObserver)==null||b.disconnect()};
var ZVb=function(a){var b=_.E(a.hostElement).querySelector("#scroll-container");if(b){if(!a.itemsVisibilityObserver){var c=window.getComputedStyle(b).marginRight;a.itemsVisibilityObserver=new IntersectionObserver(function(d){$Vb(a,d)},{root:b,
rootMargin:c,threshold:.98})}if(b=_.E(a.hostElement).querySelector("#items"))a.itemsObserver=new Ppb(b,function(d){aWb(a,d)})}},aWb=function(a,b){bWb(a)&&(Array.from(b.addedNodes).filter(function(c){return c.nodeType===Node.ELEMENT_NODE}).forEach(function(c){a.itemsVisibilityObserver&&a.itemsVisibilityObserver.observe(c)}),Array.from(b.removedNodes).filter(function(c){return c.nodeType===Node.ELEMENT_NODE}).forEach(function(c){a.itemsVisibilityObserver&&a.itemsVisibilityObserver.unobserve(c)}))},
$Vb=function(a,b){var c=new Set(a.fullyVisibleItemsIndices);
b=_.h(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;var e=d.target.parentElement;e?(e=Array.from(e.children).indexOf(d.target),d.isIntersecting?c.add(e):c.has(e)&&c.delete(e)):_.Dl(new _.qj("Parent element not found",d.target.nodeName))}a.fullyVisibleItemsIndices=Array.from(c).sort(function(g,k){return g-k});
c.size===0?_.Dl(new _.qj("No visible entries in horizontal list")):(a.startIndex=a.fullyVisibleItemsIndices[0],a.endIndex=a.fullyVisibleItemsIndices[a.fullyVisibleItemsIndices.length-1])},bWb=function(a){a.data?a=(a=a.data)&&a.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===a.itemSizeConstraint:!1:a=!1;
return a};
_.f=jJ.prototype;_.f.addScrollEventListeners=function(){var a=_.E(this.hostElement).querySelector("#scroll-container");a.style.touchAction="pan-y";a.addEventListener("wheel",this.JSC$12074_onWheelScroll);a.addEventListener("pointerdown",this.JSC$12074_onPointerDown);a.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.JSC$12074_onPointerUp)};
_.f.removeScrollEventListeners=function(){var a=_.E(this.hostElement).querySelector("#scroll-container");a.removeEventListener("wheel",this.JSC$12074_onWheelScroll);a.removeEventListener("pointerdown",this.JSC$12074_onPointerDown);a.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.JSC$12074_onPointerUp)};
_.f.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.Tm(this,this.setStartIndex,[this.initialStartIndex])};
_.f.reposition_=function(){var a=_.Ei("HTML_DIR")=="rtl"?"":"-",b=_.E(this.hostElement).querySelector("#items");b&&(b.style.transform="translateX("+a+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.f.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.Tm(this,this.setButtonsState_))};
_.f.setButtonsState_=function(){this.setButtonsStateRequested=!1;var a=_.E(this.hostElement).querySelector("#items").firstElementChild;if(a){this.minComponentWidth||(this.minComponentWidth=cWb(this,a));a=_.E(this.hostElement).querySelector("#scroll-container").clientWidth;var b=_.E(this.hostElement).querySelector("#items").clientWidth,c=this.get(this.ytLazyListBehavior.itemsPath,this);if(c){var d=Math.round(a/this.minComponentWidth)||1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/
this.minComponentWidth),this.endIndex=Math.min(this.startIndex+d,c.length)-1)}this.ytLazyListBehavior.canShowMore?b+this.minComponentWidth>=this.offset+a&&(this.atEnd=!1):this.atEnd=this.offset+a>=b-20?!0:!1;this.atStart=this.offset<=20}};
_.f.setStartIndex=function(a){if(!this.minComponentWidth){var b=_.E(this.hostElement).querySelector("#items").firstElementChild;if(!b)return;this.minComponentWidth=cWb(this,b)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*a;iJ(this);this.reposition_()};
_.f.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.sC();var a=_.E(this.hostElement).querySelector("#scroll-container").clientWidth;_.x("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=cWb(this,_.E(this.hostElement).querySelector("#items").firstElementChild));a=this.useFloorScrolling?Math.floor(a/this.minComponentWidth)||1:Math.round(a/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&dWb(this);this.offset+=bWb(this)?
YVb(this):a*this.minComponentWidth;iJ(this);this.reposition_();this.scrollCount++};
_.f.prevClick_=function(){var a=_.E(this.hostElement).querySelector("#scroll-container").clientWidth;a=this.useFloorScrolling?Math.floor(a/this.minComponentWidth)||1:Math.round(a/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=bWb(this)?YVb(this):this.minComponentWidth*this.scrollCount-1):this.offset-=bWb(this)?YVb(this):a*this.minComponentWidth;this.centerListItems&&dWb(this);iJ(this);this.reposition_()};
_.f.onIronResize_=function(){this.resizeSupportEnabled&&_.Tm(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.f.onItemsTransitionEnd_=function(a){_.Qq(a)===_.E(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.f.onChildElementFocus_=function(a){a=a.target.closest("#items > *");var b=_.E(this.hostElement).querySelector("#scroll-container");if(b.contains(a)){if(_.x("web_horizontal_list_behavior_focus_killswitch"))if(a.offsetLeft<this.offset)this.offset=Math.abs(a.offsetLeft)<a.clientWidth?0:a.offsetLeft;else if(a.offsetLeft+a.clientWidth>this.offset+b.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.sC(),this.offset=a.offsetLeft+a.clientWidth-b.clientWidth;else return;else{var c=_.E(this.hostElement).querySelector("#items"),
d=_.Ei("HTML_DIR")==="rtl",e=d?c.clientWidth-a.offsetLeft:a.offsetLeft;c=d?c.clientWidth-(a.offsetLeft+a.clientWidth):a.offsetLeft+a.clientWidth;var g=d?e>this.offset+b.clientWidth:e<this.offset,k=d?c<this.offset:c>this.offset+b.clientWidth,m=d?g:k;if(d?k:g)b=d?c:e,this.offset=Math.abs(b)<a.clientWidth?0:b;else if(m)this.ytLazyListBehavior.fillRemainingListItems(),_.sC(),this.offset=(d?e:c)-b.clientWidth;else return}iJ(this);this.reposition_()}};
_.f.observeShownItems_=function(){this.reset()};
_.f.checkComponentWidthResize=function(){var a=_.E(this.hostElement).querySelector("#items").firstElementChild;a&&(a=cWb(this,a),this.centerListItems||a!==this.minComponentWidth)&&(this.minComponentWidth=a,this.offset=a*this.scrollCount,this.centerListItems&&dWb(this),iJ(this),this.reposition_())};
var cWb=function(a,b){var c=window.getComputedStyle(b).marginRight;c=Math.floor(Number(c.replace("px","")));var d=window.getComputedStyle(b).marginLeft;d=Math.floor(Number(d.replace("px","")));a.centerListItems&&!a.marginWidthRight&&(a.marginWidthRight=c,a.marginWidthLeft=d);return a.resizeSupportEnabled?b.getBoundingClientRect().width+c:b.offsetWidth+c},iJ=function(a){var b=_.E(a.hostElement).querySelector("#scroll-container").clientWidth,c=_.E(a.hostElement).querySelector("#items").clientWidth;
a.offset<0?a.offset=0:a.offset+b>=c&&(a.offset=c-b)},dWb=function(a){a.offset-=(_.E(a.hostElement).querySelector("#scroll-container").clientWidth+a.marginWidthRight-a.minComponentWidth)/2-a.marginWidthLeft};
_.Vm.Object.defineProperties(jJ.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var a=_.Ei("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(a==-1)a=this.JSC$12074_cachedViewportHeight,a=a>1320?5:a>1020?4:a>730?3:a>430?2:1;else if(a==0)return 0;_.Bi("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",a-1);a=_.Ei("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(a>-1)return a;a=this.cachedViewportWidth;a=a>1600?6:a>1400?5:a>1300?4:a>1090?5:a>870?4:a>660?3:2;_.Bi("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
a);return a},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.x("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
var kJ=jJ;kJ.prototype.observeShownItems_=kJ.prototype.observeShownItems_;kJ.prototype.onChildElementFocus_=kJ.prototype.onChildElementFocus_;kJ.prototype.onItemsTransitionEnd_=kJ.prototype.onItemsTransitionEnd_;kJ.prototype.onIronResize_=kJ.prototype.onIronResize_;kJ.prototype.prevClick_=kJ.prototype.prevClick_;kJ.prototype.nextClick_=kJ.prototype.nextClick_;kJ.prototype.setButtonsState_=kJ.prototype.setButtonsState_;kJ.prototype.requestButtonsStateUpdate_=kJ.prototype.requestButtonsStateUpdate_;
kJ.prototype.reposition_=kJ.prototype.reposition_;kJ.prototype.reset=kJ.prototype.reset;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],kJ.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.gJ.YtLazyListBehavior),_.W("design:type",Object)],kJ.prototype,"ytLazyListBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],kJ.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],kJ.prototype,"atStart",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],kJ.prototype,"atEnd",void 0);_.U([_.O(),_.W("design:type",Object)],kJ.prototype,"startIndex",void 0);_.U([_.O(),_.W("design:type",Object)],kJ.prototype,"endIndex",void 0);_.U([_.O({value:6}),_.W("design:type",Number)],kJ.prototype,"initialCount",void 0);_.U([_.O(),_.W("design:type",Object)],kJ.prototype,"scrollCount",void 0);_.U([_.O(),_.W("design:type",Object)],kJ.prototype,"initialStartIndex",void 0);
_.U([_.O(),_.W("design:type",Object)],kJ.prototype,"disableScrollEventListener",void 0);_.U([_.O(),_.W("design:type",Object)],kJ.prototype,"supportComponentResize",void 0);_.U([_.O({value:function(){var a=this;return function(){return a.prevClick_()}}}),
_.W("design:type",Function)],kJ.prototype,"boundPrevClick",void 0);_.U([_.O({value:function(){var a=this;return function(){return a.nextClick_()}}}),
_.W("design:type",Function)],kJ.prototype,"boundNextClick",void 0);_.U([_.O(),_.W("design:type",Object)],kJ.prototype,"useFloorScrolling",void 0);_.U([_.O(),_.W("design:type",Object)],kJ.prototype,"isSearch",void 0);_.U([_.O(),_.W("design:type",Object)],kJ.prototype,"dragging",void 0);_.U([_.O(),_.W("design:type",Object)],kJ.prototype,"dragMouseStart",void 0);_.U([_.O(),_.W("design:type",Object)],kJ.prototype,"dragOffsetStart",void 0);
_.U([_.O(),_.W("design:type",Object)],kJ.prototype,"disableWheelScroll",void 0);_.U([_.O(),_.W("design:type",Object)],kJ.prototype,"centerListItems",void 0);_.U([_.M("iron-resize"),_.N("guideOpened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],kJ.prototype,"onIronResize_",null);_.U([_.M("transitionend"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],kJ.prototype,"onItemsTransitionEnd_",null);
_.U([_.M("focusin"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],kJ.prototype,"onChildElementFocus_",null);_.U([_.N("shownItems"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],kJ.prototype,"observeShownItems_",null);kJ=_.U([_.jr()],kJ);_.hJ.YtdHorizontalListBehavior=[];_.hJ.YtdHorizontalListBehavior.push(_.KD,_.Z.YtRendererBehavior,_.gJ.YtLazyListBehavior,_.SI.YtdGuideStateAwareBehavior,kJ.prototype);var LUa=["APP_STATE","PI"];var eWb=_.cx(["about:blank"]),fWb={pushState:window.history.pushState,replaceState:window.history.replaceState};var lJ=function(a){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=a;this.internalPushState=a.pushState.bind(a);this.internalReplaceState=a.replaceState.bind(a)};
lJ.prototype.init=function(){this.initialized=!0};
lJ.prototype.pushState=function(a,b){this.initialized||this.init();this.internalPushState&&this.internalPushState(a,"",b)};
lJ.prototype.replaceState=function(a,b){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(a,"",b)};
lJ.prototype.getState=function(){return this.history&&this.history.state};var gWb=function(a){var b=function(){var c=a.apply(this,arguments)||this;c.boundHistoryPushState=!1;c.boundHistoryReplaceState=!1;c.debugInfo={};return c};
_.z(b,a);b.prototype.init=function(){var c=_.lg("IFRAME");_.Qd(c,_.ef(eWb));c.sandbox="allow-same-origin";c.style.display="none";this.iframe=c;document.body.appendChild(c);this.bindHistoryStateFunctions();a.prototype.init.call(this)};
b.prototype.bindHistoryStateFunctions=function(){var c=this,d=[],e;this.iframe&&((e=this.iframe.contentWindow)==null?0:e.history)&&(e=this.iframe.contentWindow.history)&&(d.push(e),Object.getPrototypeOf(e)&&d.push(Object.getPrototypeOf(e)));window.history&&d.push(window.history);e=window.history;Object.getPrototypeOf(e)&&d.push(Object.getPrototypeOf(e));d.push(fWb);e=function(k){for(var m=null,n=0;n<d.length;n++){var r=d[n][k];if(typeof r==="function"){m=r.bind(window.history);c.debugInfo[k]=n;break}}return m};
if(!this.boundHistoryReplaceState){var g=e("replaceState");g&&(this.internalReplaceState=g,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(e=e("pushState"))&&(this.internalPushState=e,this.boundHistoryPushState=!0)};
return b}(lJ),hWb=function(){return gWb.call(this,window.history)||this};
_.z(hWb,gWb);hWb.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var mJ=function(a){this.browserHistory=a;this.initialized=!1};
mJ.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
mJ.prototype.pushState=function(a,b){this.initialized||this.init();this.browserHistory.pushState(a,b)};
mJ.prototype.replaceState=function(a,b){this.initialized||this.init();this.browserHistory.replaceState(a,b)};
mJ.prototype.handlePopstate=function(a){return a.state};_.iWb=function(a,b,c,d,e){this.endpoint=a;this.forward=b;this.historyEntry=c;this.JSC$26193_savedComponentState=d;this.legacyBorder=e===void 0?!1:e};var jWb=function(a,b){this.rootData=a;this.scrollTop=b};var Iw=new _.fB("PAGE_REQUEST_TOKEN"),ZKb=new _.fB("FETCH_PBJ_TOKEN");_.nJ=new _.fB("EPHEMERAL_STORE_TOKEN");_.oJ=function(a){this.data=Object.assign({},a);var b;(b=this.data.innertubeResponse)==null||delete b.frameworkUpdates};
_.oJ.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.Uj)()};
_.pw=function(a){return Object.assign({},a.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var kWb=function(){this.maxSize=100;this.timeToDataCache=new Map};
kWb.prototype.get=function(a){var b=this.timeToDataCache.get(a);b&&(this.timeToDataCache.delete(a),this.timeToDataCache.set(a,b));if(b&&b.rootData&&(_.x("web_use_response_store_for_history_cache")||_.x("mweb_use_new_history_manager"))){var c=_.v().resolve(_.nJ),d=lWb(b),e=!!d;if(d){if(d.content){var g=pJ(c,d.content);e&&g?b.rootData.response=_.pw(g):e=!1}d.player&&(g=pJ(c,d.player),e&&g?b.rootData.playerResponse=_.pw(g):e=!1);d.reelSequence&&(c=pJ(c,d.reelSequence),e&&c?b.rootData.reelWatchSequenceResponse=
_.pw(c):e=!1)}e||(this.timeToDataCache.delete(a),b=void 0)}return b};
kWb.prototype.set=function(a,b){if(b.rootData&&(_.x("web_use_response_store_for_history_cache")||_.x("mweb_use_new_history_manager"))){var c=lWb(b),d=Object.assign({},b.rootData);c&&(c.content&&b.rootData.response&&(mWb(this,c.content,b.rootData.response),d.response=null),c.player&&b.rootData.playerResponse&&(mWb(this,c.player,b.rootData.playerResponse),d.playerResponse=null),c.reelSequence&&b.rootData.reelWatchSequenceResponse&&(mWb(this,c.reelSequence,b.rootData.reelWatchSequenceResponse),d.reelWatchSequenceResponse=
null));b=new jWb(d,b.scrollTop)}this.timeToDataCache.has(a)?this.timeToDataCache.delete(a):this.timeToDataCache.size>=this.maxSize&&(c=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(c.value));this.maxSize!==0&&this.timeToDataCache.set(a,b)};
kWb.prototype.clear=function(){this.timeToDataCache.clear()};
var lWb=function(a){var b=_.v().resolve(_.Wi(Iw)),c;if((c=a.rootData)==null?0:c.endpoint)return b==null?void 0:M7a(b,a.rootData.endpoint);var d;_.Dl(new _.qj("History snapshot response data does not contain endpoint",(d=a.rootData)==null?void 0:d.url));return null},mWb=function(a,b,c){if(a.maxSize>0){var d;
(a=(d=c.responseContext)==null?void 0:d.maxAgeSeconds)&&Number(a)>0&&(d=_.v().resolve(_.nJ),c=iu(c,a),d.put(b,new _.oJ(c)))}};var nWb=function(a,b,c){this.endpoint=b;this.JSC$26198_savedComponentState=c===void 0?null:c;this.entryTime=a};var RUa=1;var qJ=function(a){var b=function(){var c=a.apply(this,[].concat(_.Be(_.Id.apply(0,arguments))))||this;c.historyEntryTime=0;c.historySnapshotCache=c.createHistoryCache();return c};
_.z(b,a);b.prototype.createHistoryCache=function(){return new kWb};
b.prototype.saveAndReplace=function(c,d,e){var g=window.location.href;var k=k===void 0?{}:k;var m=(m=this.browserHistory.getState())&&m.entryTime?m.entryTime:SUa();c=this.createNewHistoryEntry(c,k,m);this.saveSnapshot(m,d,e);this.replaceState(c,g||window.location.href)};
b.prototype.saveAndPush=function(c,d,e,g,k){k=k===void 0?{}:k;this.saveSnapshot(this.historyEntryTime,e,g);e=this.historySnapshotCache;g=this.historyEntryTime;var m=e.timeToDataCache.keys();m=_.h(m);for(var n=m.next();!n.done;n=m.next())n=n.value,n>g&&e.timeToDataCache.delete(n);d=this.createNewHistoryEntry(d,k);this.pushState(d,c)};
b.prototype.saveSnapshot=function(c,d,e){this.historySnapshotCache.set(c,new jWb(d,e))};
b.prototype.createNewHistoryEntry=function(c,d,e){e=e===void 0?SUa():e;return new nWb(e,c,d)};
b.prototype.handlePopstate=function(c){var d=a.prototype.handlePopstate.call(this,c),e=null,g=null,k=!1,m=null;d&&d.entryTime&&(m=this.historySnapshotCache.get(d.entryTime)||null,k=d.entryTime>this.historyEntryTime,this.historyEntryTime=d.entryTime,e=d.endpoint,g=d.JSC$26198_savedComponentState);this.handleHistoryCacheLoad(new _.iWb(e,k,m,g),c);return d};
b.prototype.pushState=function(c,d){Number(c==null?void 0:c.entryTime)>=0&&(this.historyEntryTime=c.entryTime);a.prototype.pushState.call(this,c,d)};
b.prototype.replaceState=function(c,d){Number(c==null?void 0:c.entryTime)>=0&&(this.historyEntryTime=c.entryTime);a.prototype.replaceState.call(this,c,d)};
b.prototype.handleHistoryCacheLoad=function(){};
return b}(mJ),oWb=function(){var a=qJ.call(this,new hWb)||this;
a.dispatchElement=null;a.entryIndex=0;return a};
_.z(oWb,qJ);_.f=oWb.prototype;_.f.init=function(a){a=a===void 0?!0:a;qJ.prototype.init.call(this);this.initialized||(a||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.f.handlePopstate=function(a){var b=null;a.state||(b="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return qJ.prototype.handlePopstate.call(this,a);var c=new CustomEvent("yt-history-pop",{cancelable:!0});_.ho(this.dispatchElement,"yt-history-pop",[c,{errorMsg:b}]);_.ko(this.dispatchElement,"yt-close-all-popups-action");if(!c.defaultPrevented){c=_.v().resolve(_.$t);b=c.getCurrentData();var d=c.getCurrentPage();c=0;d?(d=_.ho(this.dispatchElement,"yt-get-page-offset",
[d]),d.length>0&&(c=d[0])):_.Dl(new _.qj("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:b?b.page:"undefined"}));b&&(b.csn=_.Fn());this.saveSnapshot(this.historyEntryTime,b,c)}return qJ.prototype.handlePopstate.call(this,a)};
_.f.handleHistoryCacheLoad=function(a,b){b.state&&(a.legacyBorder=!!b.state["spf-timestamp"]||!!b.state.blazer);a.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.h(_.ko(this.dispatchElement,"yt-history-will-navigate",[b])).next().value||_.ho(this.dispatchElement,"yt-history-load",[b,a]))};
_.f.pushState=function(a,b){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var c=new _.qj("history.pushState is not a function",this.getDebugString());_.Bl(c)}qJ.prototype.pushState.call(this,a,b)};
_.f.replaceState=function(a,b){if(!this.browserHistory.boundHistoryReplaceState){var c=new _.qj("history.replaceState is not a function",this.getDebugString());_.Bl(c)}qJ.prototype.replaceState.call(this,a,b)};
_.f.saveAndPush=function(a,b,c,d,e){e=e===void 0?{}:e;c&&(c.csn=_.Fn());qJ.prototype.saveAndPush.call(this,a,b,c,d,e)};
_.f.getDebugString=function(){var a=[];this.initialized&&a.push("i");this.browserHistory.boundHistoryReplaceState&&a.push("bhr");this.browserHistory.boundHistoryPushState&&a.push("bhs");"replaceState"in this.browserHistory.debugInfo&&a.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&a.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&a.push("ei:"+String(this.entryIndex));return a.join(",")};
_.f.replaceUrl=function(a){this.init(!0);var b=this.browserHistory.getState();this.replaceState(b,hu(a))};
_.f.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.pWb=new _.fB("DESKTOP_HISTORY_MANAGER_TOKEN");var qWb=[10,20,30,40,50,60],rJ=function(){this.currentPartitionIndex=0},rWb=function(a){oGb({mainAppWeb:_.Lq(),
survivalSli:{partitionMinute:a,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},sWb=function(a){oGb({mainAppWeb:_.Lq(),
survivalSli:{partitionMinute:a,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},tWb=function(a){return a.currentPartitionIndex>=0&&a.currentPartitionIndex<qWb.length?qWb[a.currentPartitionIndex]:-1},uWb=function(a){return a.currentPartitionIndex>0&&a.currentPartitionIndex-1<qWb.length?qWb[a.currentPartitionIndex-1]:-1};
rJ.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var a=uWb(this);a>0&&sWb(a);a=tWb(this);a>0&&rWb(a);vWb(this)}};
var vWb=function(a){var b=tWb(a);if(b>0){var c=uWb(a);c<0&&(c=0);a.intervalId=_.zk.addJob(function(){var d=uWb(a);d>0&&sWb(d);d=tWb(a);d>0&&rWb(d);vWb(a)},3,(b-c)*6E4);
a.currentPartitionIndex+=1}else a.currentPartitionIndex=-1};var wWb=function(){this.skipNextNavigation=!1},xWb=function(a,b,c){if(!b)return!1;
if(a.skipNextNavigation)return a.skipNextNavigation=!1;if(_.y(c,_.Ml))return!1;var d,e,g;if((d=_.y(c,_.pq))==null?0:(e=d.browseEndpointContextSupportedConfigs)==null?0:(g=e.browseEndpointContextMainConfig)==null?0:g.skipConfirmation)return!1;var k;return((k=_.y(b.commandMetadata,_.ao))==null?void 0:k.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
wWb.prototype.showConfirmationDialog=function(a,b){this.navigateParams=b;this.customConfirmationCommand?_.v().resolve(_.Xi).resolveCommand(this.customConfirmationCommand):(b={openPopupAction:{popup:{confirmDialogRenderer:{title:_.Up(_.to("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.Up(_.to("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.Up(_.to("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.Up(_.to("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.Nl.getInstance().triggerAction("yt-open-popup-action",b,a))};
wWb.prototype.cancelPendingNavigation=function(){var a;((a=this.navigateParams)==null?void 0:a.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var yWb=function(){},AWb=function(a,b,c,d,e,g){c=c===void 0?{}:c;
var k=_.mG.instance,m,n=(m=_.y(b,_.Ml))==null?void 0:m.url;return n?p6a(k,n,c,window.location.href,function(r,t){zWb(a,r,t,!1,!0,c,g,d)},function(){return!1}):Yw(k,b,c,window.location.href,rq(b),function(r,t){zWb(a,r,t,!1,!0,c,g,d)},e)},zWb=function(a,b,c,d,e,g,k,m){if(!a.JSC$12132_chunkHandler)if(c.page==="watch")if(e||d){if(_.x("kevlar_continue_playback_without_player_response")){var n;
var r=(n=_.y(m,_.Vn))==null?void 0:n.videoId}a.JSC$12132_chunkHandler=new EKb(_.bu,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:d,previousVideoId:r},tempData:g},k)}else a.JSC$12132_chunkHandler=new zKb(_.bu);else c.page==="shorts"&&e&&!d?a.JSC$12132_chunkHandler=new DKb(_.bu,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:g},k):a.JSC$12132_chunkHandler=new AKb(k);a.JSC$12132_chunkHandler.processChunk({endpoint:b,data:c});return a.JSC$12132_chunkHandler.JSC$10311_playerPromiseResolver.promise},
BWb=function(a,b,c,d,e){(c=_.mLb(c))&&zWb(a,b,c,!1,!0,d,void 0,e)};var CWb=function(){this.pendingNavigationPromise=null};
_.f=CWb.prototype;_.f.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.f.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.f.addEventListener=function(){throw Error("vh");};
_.f.dispatchEvent=function(){throw Error("vh");};
_.f.removeEventListener=function(){throw Error("vh");};var DWb=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],sJ=function(){_.Dz.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];EWb(this)};
_.z(sJ,_.Dz);sJ.prototype.verifyUser=function(){var a=EWb(this),b=a.logout;if(!a.sessionChange)return!0;this.dispatchEvent("ytsessionchange");b&&this.dispatchEvent("ytuserinvalid");return!1};
var EWb=function(a){var b=DWb.map(function(e){var g;return(g=_.lj.get(e))!=null?g:""}),c=b.some(function(e,g){return a.sessionCookies&&a.sessionCookies[g]!==""&&e===""}),d=b.some(function(e,g){return a.sessionCookies&&a.sessionCookies[g]!==e});
a.sessionCookies=b;return{logout:c,sessionChange:d}};
sJ.prototype.clearTimeout=function(){this.scheduledJobId&&(_.zk.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var XUa=new _.fB("POSTMESSAGE_TUNNEL_TOKEN");var UUa=["/parent_tools","/file_download","/artist_roster"],$Ua=[Mab,Nab,Oab,Qab,Pab,Lab,Rab,Sab];var tJ=new _.fB("NAVIGATION_CONFIRMATION_SERVICE");var FWb="/account /account_advanced /account_billing /account_notifications /account_playback /account_privacy /account_sharing /cart /channel/ /clip /effect/ /feed/ /gaming /gaming/ /hashtag /learning /manage_red /minor_moment /musicpremium /new /originals /paid_memberships /place /playables /playlist /podcasts /post/ /premium /product/ /reporthistory /results /search /shopcollection/ /shorts/ /show/ /source/ /user/ /watch /youtuberedoriginals".split(" "),GWb=[{url:"/podcasts",expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],
uJ=function(a){this.pendingNavigationPromise=null;this.JSC$12150_clientRoot=a;this.logger=null;this.numNavigations=-1;this.lastNavigationUrl=null;this.resetWarmLoads=!1;this.searchDebugUrlMatcher=new RegExp(/\/results\?.*deb|\/scraper_results\?.*deb|\/results\?.*enable=|\/scraper_results\?.*enable=/);this.isMiniplayerExpansion=!1;this.currentEndpoint=null;this.pageFetcher=new yWb;this.debugString=a.is;a={"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};_.Ol(_.Nl.getInstance(),a,this.JSC$12150_clientRoot)},LWb,MWb,NWb,OWb,KWb;
_.z(uJ,CWb);uJ.prototype.reload=function(){_.Fq(window.location.href)};
var pLb=function(a){a.currentEndpoint&&_.y(a.currentEndpoint,_.tq)?a.reload():a.currentEndpoint&&a.navigate(a.currentEndpoint,!0,void 0,{disableCache:!0})};
uJ.prototype.navigate=function(a,b,c,d,e,g,k){b=b===void 0?!1:b;c=c===void 0?{}:c;d=d===void 0?{}:d;var m=_.v().resolve(tJ),n;if(!k&&xWb(m,(n=this.currentEndpoint)!=null?n:void 0,a))return m.showConfirmationDialog(this.JSC$12150_clientRoot.parentElement,{endpoint:a,reload:b,params:c,tempData:d,requestType:e,createScreenConfig:g}),!1;var r=_.SF();_.TF(r,"eocs")||r.parkOrScheduleJob(function(){r.processSignal("eocs")},10,"eor");
k=rq(a);m=d.autonav==="1";n=_.Fn();sJ.instance||(sJ.instance=new sJ);var t=sJ.instance.verifyUser(),u;if(_.x("enable_dark_theme_only_on_shorts")){var w=document.documentElement.hasAttribute("dark"),A=_.Hq(!0)==="USER_INTERFACE_THEME_DARK";if(k==="shorts"){if(!w)if(_.x("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var C;_.Fq((C=_.y(a==null?void 0:a.commandMetadata,_.ao))==null?void 0:C.url,void 0,void 0,window.top)}}else{var G;_.Fq(_.Pi((G=_.y(a==null?
void 0:a.commandMetadata,_.ao))==null?void 0:G.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.x("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!w){var J;_.Fq(_.Pi((J=_.y(a==null?void 0:a.commandMetadata,_.ao))==null?void 0:J.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(A!==w){var I;_.Fq(_.Pi((I=_.y(a==null?void 0:a.commandMetadata,_.ao))==null?void 0:I.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(k==="watch"){if(HWb(_.v().resolve(_.Vw),
a)&&(t||_.x("fix_miniplayer_navigation_killswitch")))return!1;_.x("block_all_player_prefetch_requests")||(u=nLb(_.mw(_.nG),a,m))}else{var R,ca=(R=_.y(this.currentEndpoint,_.Vn))==null?void 0:R.videoId;ca&&_.DF.getInstance().then(function(Fa){Fa&&Fa.set("yt-miniplayer-shown-video-id",ca)})}u&&(c.frags=u.missingFragments_.join(","));
C=null;var V;G=(V=_.y(a==null?void 0:a.commandMetadata,_.ao))==null?void 0:V.ignoreNavigation;if(!G)if(_.x("kevlar_command_url")){var fa;C=(fa=_.y(a==null?void 0:a.commandMetadata,_.ao))==null?void 0:fa.url}else C=_.gua(a,c);if(C&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&C==this.lastNavigationUrl)return _.Ho({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.ww(Kn(),"CANCELLED")}C&&(this.lastNavigationUrl=C);QHa();_.Bi("IS_HOMEPAGE_COLD",
!1);_.Bi("IS_RESULTS_PAGE_COLD",!1);_.Bi("IS_WATCH_PAGE_COLD",!1);a.loggingUrls&&a.loggingUrls.forEach(function(Fa){Fa.baseUrl&&_.Jk(Fa.baseUrl)});
_.dVa(a,g?g.layer:0)&&_.x("kevlar_flush_logs_on_away_navigation")&&_.Al();if(aVa(a))return!1;$Lb(k,e);if(!C)return G||_.Dl(new _.qj("Can't construct url for endpoint",a)),_.ww(Kn(),"FAILURE"),!1;_.TUa();V=a&&_.y(a,_.pq)&&_.y(a,_.pq).browseId.startsWith("UC");c=(fa=_.x("enable_dark_theme_only_on_shorts")&&k==="shorts"?!1:_.Iq()&&document.documentElement.hasAttribute("dark")!==_.Gq())?{themeRefresh:1}:{};fa&&!_.nj()&&_.Hq()==="USER_INTERFACE_THEME_DARK"&&(c.theme="dark");var aa;G=rq((aa=this.currentEndpoint)!=
null?aa:void 0)==="mini_app"&&k==="mini_app";aa=fa||IWb(C)&&!V&&!_.x("kevlar_disable_url_allowlist")||G;t||(aa=!0);if(aa||_.Ei("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var ma;var Ba=(ma=window.top)==null?void 0:ma.location.href}catch(Fa){var Da;Ba=(Da=Fa)==null?void 0:Da.message}_.Dl(new _.qj("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:Ba}))}a=_.x("kevlar_redirect_on_window_killswitch")?window.top:window;Eq(C);_.Fq(_.Pi(C,c),void 0,
void 0,a);_.ww(Kn(),"ABORTED");return!1}_.x("kevlar_early_popup_close")&&_.ho(this.JSC$12150_clientRoot,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$12132_chunkHandler=void 0;var za;Ba=rq((za=this.currentEndpoint)!=null?za:void 0);(za=k==="shorts"&&Ba==="shorts")||_.GCa();_.Ii(sCa)("nr",void 0);m&&_.Ho({webInfo:{navigationReason:"an"}});a.clickTrackingParams&&(d.itct=a.clickTrackingParams,d.csn=n);WIa(d);d.endpoint=JSON.stringify(a);_.x("enable_unknown_lact_fix_on_html5")&&
(_.v().resolve(_.Ft),d.lact=_.$k());_.yf.isEmpty(d)||_.Zn(C,d);!_.x("disable_miniplayer_expansion_log")&&this.isMiniplayerExpansion&&(g=Object.assign({},{layer:0},g,{parentLayer:3}));this.pendingNavigationPromise=g=AWb(this.pageFetcher,a,d,this.currentEndpoint,this.JSC$12150_isNetworkPromiseStale.bind(this),g);g=g.then(this.handleNavigateSuccess.bind(this,g,a,u,d),this.handleNavigateFail.bind(this,g,a));_.uF().navigationFinishPromise=g;b={endpoint:a,pageType:k,url:hu(C),reload:!!b,noProgressBar:_.x("web_disable_page_navigation_progress")||
za};e&&(b.type=e);this.fireEvent("yt-navigate-start",b);u&&BWb(this.pageFetcher,a,u,d,this.currentEndpoint);return!0};
uJ.prototype.JSC$12150_isNetworkPromiseStale=function(a){return a!=this.pendingNavigationPromise};
var JWb=function(a,b,c,d,e){var g=rq(b);b={endpoint:b,pageType:g};e&&(b.errorMessage=e);_.Dl(c);b.navigationDoneMs=_.Jo("nd");b.navigationErrorReason=d;a.fireEvent("yt-navigate-error",b)};
uJ.prototype.handleNavigateFail=function(a,b,c){var d=void 0;c instanceof _.On&&(d=c,eua(c));if(this.JSC$12150_isNetworkPromiseStale(a))return _.Pn(d);_.ww(Kn(),"FAILURE");JWb(this,b,c,"101");return _.Pn(c)};
uJ.prototype.handleNavigateSuccess=function(a,b,c,d,e){if(this.JSC$12150_isNetworkPromiseStale(a))return _.oo();this.pendingNavigationPromise=null;if(!e)return b=new _.qj("Missing data in response for navigation endpoint",b),_.Pn(b);if(e.reload)return window.location.reload(!0),_.oo();c&&(a={},_.yf.extend(a,_.mLb(c),e),e=a);var g,k;c=(g=e)==null?void 0:(k=g.timing)==null?void 0:k.responseStart;c!=null&&_.Jo("srt",c);_.Jo("pdc");var m,n;g=(m=e)==null?void 0:(n=m.timing)==null?void 0:n.info;g!=null&&
(m=_.Ii(_.wCa)(g),_.Ho(m));_.ww(Kn(),"SUCCESS");KWb(this,b,e,1,d);return _.oo()};
var IWb=function(a){var b=a;_.x("kevlar_no_redirect_to_classic_2_ks")||(b=(new _.Wn(a)).getPath());if(b==="/"||b==="/red")return!1;var c=!0;FWb.forEach(function(d){a.indexOf(d)===0&&(c=!1)});
GWb.forEach(function(d){var e=d.url;_.x(d.expFlag)&&a.indexOf(e)===0&&(c=!1)});
return c};
uJ.prototype.publishPageData=function(a){this.fireEvent("yt-page-data-fetched",{pageData:a})};
LWb=function(a,b,c,d,e,g){var k=null;b.page!=="watch"||d?b.filler||_.ho(a.JSC$12150_clientRoot,"yt-stop-old-player",[b]):k=zWb(a.pageFetcher,e,b,c,!1,g,void 0,a.currentEndpoint);if(k)return k.then(a.publishPageData.bind(a,b));a.publishPageData(b);return _.oo()};
MWb=function(a,b,c){var d=null;if(!c)return d=new _.qj("Empty data",a.debugString,b);var e=c.response;if(!e)return d;var g={endpointType:rq(b)||"unknown"};e.responseContext?(e=e.responseContext.errors)&&(d=new _.qj("Errors in response context",a.debugString,b,e,g)):d=e.error||e.errorMetadata?new _.qj("Errors in response",a.debugString,b,e.error,e.errorMetadata,g):new _.qj("responseContext missing",a.debugString,b,Object.keys(e).sort().join(","),g);var k,m,n,r;if(a=c==null?void 0:(k=c.response)==null?
void 0:(m=k.responseContext)==null?void 0:(n=m.webResponseContextExtensionData)==null?void 0:(r=n.webResponseContextDebugData)==null?void 0:r.debugErrorMessages)for(k=0;k<a.length;k++);return d};
NWb=function(a){var b,c,d,e;return a==null?void 0:(b=a.response)==null?void 0:(c=b.responseContext)==null?void 0:(d=c.errors)==null?void 0:(e=d.error)==null?void 0:e["0"]};
OWb=function(a,b){var c;if(c=b.url&&!b.url.startsWith("/clip"))c=b.url,c=!_.x("webfe_parse_debug_param_in_resolveurl_service")&&a.searchDebugUrlMatcher.test(c)||loa(c)?!0:!1;if(c)loa(b.url)&&_.Oi(window.location.href).themeRefresh?a.fireEvent("yt-navigate-redirect",{url:_.$n(b.url,"themeRefresh")}):b.url&&!PUa(b.url)&&a.fireEvent("yt-navigate-redirect",{url:b.url});else if(b.endpoint){var d,e,g;(c=(d=b.endpoint)==null?void 0:(e=d.commandMetadata)==null?void 0:(g=e.webCommandMetadata)==null?void 0:
g.url)&&!PUa(c)&&a.fireEvent("yt-navigate-redirect",{url:c});c&&b.url&&c!=b.url&&!b.url.match("playnext=1")&&new _.qj("Response url mismatch in response data",a.debugString,c,b.url)}};
_.PWb=function(a,b,c,d,e,g,k){g=g===void 0?!1:g;var m=_.v().resolve(tJ),n;if(!k&&xWb(m,(n=a.currentEndpoint)!=null?n:void 0,b))return m.showConfirmationDialog(a.JSC$12150_clientRoot.parentElement,{endpoint:b,data:c,navigationType:d,tempData:e,isMiniplayer:g}),_.oo();a.pageFetcher.JSC$12132_chunkHandler=void 0;return KWb(a,b,c,d,e,g)};
KWb=function(a,b,c,d,e,g){g=g===void 0?!1:g;a.isMiniplayerExpansion=g;var k=d===2;a.currentEndpoint=b;a.numNavigations++;a.numNavigations&&(JIa.navigationCount=a.numNavigations);_.Bi("NUM_NAV",a.numNavigations);var m=MWb(a,b,c);if(m)return JWb(a,b,m,"102",NWb(c)),_.Pn(m);var n,r,t,u;m=c.rootVe||(c==null?void 0:(n=c.response)==null?void 0:(r=n.responseContext)==null?void 0:(t=r.webResponseContextExtensionData)==null?void 0:(u=t.ytConfigData)==null?void 0:u.rootVisualElementType);!k&&c&&OWb(a,c);var w,
A;n=c==null?void 0:(w=c.response)==null?void 0:(A=w.responseContext)==null?void 0:A.maxAgeSeconds;if(!k&&!isNaN(n)){var C;_.x("kevlar_use_response_ttl_to_invalidate_cache")?C=(0,_.Uj)()+1E3*n:_.x("kevlar_always_invalidate_cache")&&(C=0);isNaN(C)||(c.expirationTime=C)}_.x("html5_enable_ssap_entity_id")&&k&&c.playerResponse&&(c.playerResponse.cacheMetadata={isCacheHit:!0});_.mw(_.nG).prefetchCache_.clear();k||c.page!=="watch"||c.type!=="reduced"&&d!==1?d=LWb(a,c,k,!!g,b,e):(a.publishPageData(c),d=_.oo());
e=d.then(function(){var G=rq(b);G={endpoint:b,pageType:G,fromHistory:k,response:c};G.navigationDoneMs=_.Jo("nd");a.fireEvent("yt-navigate-finish",G)});
c.csn&&m&&c.clientSideGrafts&&d.then(a.attachClientSideGrafts.bind(a,c,_.En()));return e};
_.f=uJ.prototype;_.f.attachClientSideGrafts=function(a,b){a.clientSideGrafts&&b&&a.clientSideGrafts.forEach(function(c){if(b&&c){var d=_.qs(c);_.x("combine_ve_grafts")?_.ms().graftServerVe(c,b):_.Ro(a.csn,b,d)}})};
_.f.handleSignalActionHistoryBack=function(){window.history.back()};
_.f.handleSignalActionCloseWindow=function(){window.close()};
_.f.handleSignalActionReloadPage=function(){this.reload()};
_.f.handleSignalActionSoftReloadPage=function(){pLb(this)};
_.f.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.f.fireEvent=function(a,b){a=new CustomEvent(a,{bubbles:!0,cancelable:!1,composed:!0,detail:b});this.dispatchEvent(a)};
_.f.addEventListener=function(a,b){this.JSC$12150_clientRoot.addEventListener(a,b)};
_.f.dispatchEvent=function(a){return this.JSC$12150_clientRoot.dispatchEvent(a)};
_.f.removeEventListener=function(a,b){this.JSC$12150_clientRoot.removeEventListener(a,b)};_.z7a=new GH("browse","h8y2qb");_.A7a=new GH("search","JzFVk");_.B7a=new GH("shorts","xwEKAe");_.C7a=new GH("watchFixie","nmfa2d");_.D7a=new GH("watchFlexy","CF909");_.E7a=new GH("watchGrid","Tm0L3c");_.F7a=new GH("watchLearningJourney","L3n37");var QWb;var RWb=function(){return _.P.apply(this,arguments)||this};
_.z(RWb,_.P);_.Vm.Object.defineProperties(RWb,{template:{configurable:!0,enumerable:!0,get:function(){if(QWb===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);QWb=a}a=QWb;return a}}});
var SWb=RWb;_.U([_.H(PVb.YtPlayerBehavior),_.W("design:type",Object)],SWb.prototype,"ytPlayerBehavior",void 0);SWb=_.U([_.Q({is:"ytd-player"})],SWb);var TWb;var UWb;var VWb;var vJ=function(){var a=_.P.apply(this,arguments)||this;a.forceModernIconButton=!1;a.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return a};
_.z(vJ,_.P);vJ.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]]"}}}}}};
vJ.prototype.handleAccountLinkingStateChangedCommand=function(a){if(a=_.y(a,VAb)){var b,c=(b=this.data)==null?void 0:b.providerKey;b=a.providerKey;c&&b&&c.id===b.id&&c.subject===b.subject&&(a=a.linked,a!==void 0&&(this.set("data.linked",a),this.notifyPath("data.linked"),_.x("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(a)))}};
vJ.prototype.setPlayerAccountLinkState=function(a){var b=new dXa;cXa(b,eXa(new fXa,a));var c=_.bu();c&&c.getPlayerPromise().then(function(d){d.setAccountLinkState(_.wc(b.JSC$9886_serializeBinary(),4));d.updateAccountLinkingConfig(a)})};
vJ.prototype.handleShowAccountLinkDialog=function(){var a=this.get("button.buttonRenderer.command");a&&_.qo([a],this.hostElement)};
_.Vm.Object.defineProperties(vJ.prototype,{button:{configurable:!0,enumerable:!0,get:function(){if(this.data){if(this.data.linked&&this.data.warningButton&&this.data.isWarning)return this.data.warningButton;if(this.data.linked&&this.data.linkedButton)return this.data.linkedButton;if(!this.data.linked&&this.data.unlinkedButton)return this.data.unlinkedButton}}}});
var wJ=vJ;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],wJ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],wJ.prototype,"ytRendererBehavior",void 0);_.U([_.H([_.bH.YtActionHandlerBehavior]),_.W("design:type",Object)],wJ.prototype,"actionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],wJ.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],wJ.prototype,"overrides",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],wJ.prototype,"forceModernIconButton",void 0);_.U([_.O({value:"bottom"}),_.W("design:type",String)],wJ.prototype,"buttonTooltipPosition",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],wJ.prototype,"forceIconButton",void 0);_.U([_.O(),_.W("design:type",Boolean)],wJ.prototype,"disableTextTransform",void 0);
_.U([_.K("data","data.linked","data.isWarning"),_.W("design:type",Object),_.W("design:paramtypes",[])],wJ.prototype,"button",null);wJ=_.U([_.Q({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],wJ);
_.S(wJ,"ytd-account-link-button-renderer",function(){if(VWb!==void 0)return VWb;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return VWb=a},{mode:1});var WWb;var XWb=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],xJ=function(){return _.P.apply(this,arguments)||this};
_.z(xJ,_.P);xJ.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
xJ.prototype.updateButtonActiveState=function(){var a=this,b=!!XWb.find(function(c){return a.currentState===c});
this.button&&(this.button.isPressed=b)};
_.Vm.Object.defineProperties(xJ.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.playlistLoopStateEntity)==null?void 0:a.state)||((b=this.data)==null?void 0:b.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var a=void 0,b;if(this.currentState&&((b=this.data)==null?0:b.states)){b=_.h(this.data.states);for(var c=b.next();!c.done;c=b.next()){c=_.y(c.value,_.nAb);var d=void 0;if(((d=c)==null?void 0:d.state)===this.currentState){a=c;break}}}return a}}});
var yJ=xJ;yJ.prototype.updateButtonActiveState=yJ.prototype.updateButtonActiveState;_.U([_.H(_.LI),_.W("design:type",Object)],yJ.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],yJ.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],yJ.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.O({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.jVa}),_.W("design:type",Object)],yJ.prototype,"playlistLoopStateEntity",void 0);_.U([_.O(),_.W("design:type",Object)],yJ.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Boolean)],yJ.prototype,"forceIconOnly",void 0);_.U([_.gr("ytd-button-renderer"),_.W("design:type",_.$H)],yJ.prototype,"button",void 0);
_.U([_.K("data","playlistLoopStateEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],yJ.prototype,"currentState",null);_.U([_.N("currentButtonStateRenderer"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yJ.prototype,"updateButtonActiveState",null);_.U([_.K("currentState"),_.W("design:type",Object),_.W("design:paramtypes",[])],yJ.prototype,"currentButtonStateRenderer",null);
yJ=_.U([_.Q({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],yJ);
_.S(yJ,"ytd-playlist-loop-button-renderer",function(){if(WWb!==void 0)return WWb;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return WWb=a},
{mode:1});var YWb;var ZWb=_.to("DOWNLOAD",{},"Download"),$Wb=_.to("DOWNLOADING",{},"Downloading"),aXb=_.to("DOWNLOADED",{},"Downloaded"),bXb=_.to("RETRY",{},"Retry"),cXb=function(){var a=_.P.apply(this,arguments)||this;a.forceIconButton=!1;a.forceIconOnly=!1;a.overrides=!1;a.buttonTooltipPosition=!1;a.styleActionButton=!1;a.disableTextTransform=!1;a.downloadProgress=0;a.isDownloadComplete=!1;a.isHidden=!0;a.transferState="TRANSFER_STATE_UNKNOWN";a.isVideoDeletedByUser=!1;a.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return a};
_.z(cXb,_.P);_.f=cXb.prototype;_.f.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.f.dataChanged=function(){var a;(a=this.data)!=null&&a.text||(a=_.Jp(_.Yp().getState(),this.videoId),this.updateButtonState(a))};
_.f.computeVideoId=function(a){return a};
_.f.showHideButton=function(){this.updateButtonVisibility()};
_.f.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;this.isHidden=this.transferState!=="TRANSFER_STATE_UNKNOWN"?!1:this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0};
_.f.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.f.updateButtonState=function(a){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==$Wb||!_.wp(a))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(a){case "TRANSFER_STATE_UNKNOWN":a=ZWb;var b="OFFLINE_DOWNLOAD";var c="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":a=bXb;b="OFFLINE_DOWNLOAD";c="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":a=aXb;b="OFFLINE_PIN";c="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":a=
$Wb;b="OFFLINE_DOWNLOADING_ZERO";c="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":a=bXb;b="OFFLINE_DOWNLOAD";c="ACTION_RETRY";break;default:a=ZWb,b="OFFLINE_DOWNLOAD",c="ACTION_ADD"}this.isVideoDeletedByUser&&(a=ZWb,b="OFFLINE_DOWNLOAD",c="ACTION_ADD");var d=Object.assign({},this.data);d.text=_.Up(a);d.tooltip=a;d.icon={iconType:b};d.size="SIZE_DEFAULT";d.style="STYLE_DEFAULT";_.y(d.command,_.qu)&&(_.y(d.command,_.qu).action=c);this.set("data",d)}};
_.f.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var a="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?a="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?a="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?a="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?a="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?a="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(a="OFFLINE_PIN",this.isDownloadComplete=!0);var b;a!==((b=this.data.icon)==null?void 0:b.iconType)&&(b=Object.assign({},this.data),b.text=_.Up($Wb),b.tooltip=$Wb,b.icon={iconType:a},_.y(b.command,_.qu)&&(_.y(b.command,_.qu).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",b))}};
var zJ=cXb;zJ.prototype.updateProgress=zJ.prototype.updateProgress;zJ.prototype.onTransferStateChanged=zJ.prototype.onTransferStateChanged;zJ.prototype.showHideButton=zJ.prototype.showHideButton;zJ.prototype.dataChanged=zJ.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],zJ.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],zJ.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],zJ.prototype,"forceIconButton",void 0);
_.U([_.O(),_.W("design:type",Object)],zJ.prototype,"forceIconOnly",void 0);_.U([_.O(),_.W("design:type",Object)],zJ.prototype,"overrides",void 0);_.U([_.O(),_.W("design:type",Object)],zJ.prototype,"buttonTooltipPosition",void 0);_.U([_.O(),_.W("design:type",Object)],zJ.prototype,"styleActionButton",void 0);_.U([_.O(),_.W("design:type",Object)],zJ.prototype,"disableTextTransform",void 0);
_.U([_.O({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.W("design:type",String)],zJ.prototype,"videoId",void 0);_.U([_.O(),_.W("design:type",Object)],zJ.prototype,"data",void 0);_.U([_.O({selector:Lp,selectorArgs:["videoId"]}),_.W("design:type",Object)],zJ.prototype,"downloadProgress",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],zJ.prototype,"isDownloadComplete",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],zJ.prototype,"isHidden",void 0);_.U([_.O({selector:_.Jp,selectorArgs:["videoId"]}),_.W("design:type",String)],zJ.prototype,"transferState",void 0);_.U([_.O({selector:_.DFa,selectorArgs:["videoId"]}),_.W("design:type",Object)],zJ.prototype,"isVideoDeletedByUser",void 0);_.U([_.O({selector:zFa,selectorArgs:["videoId"]}),_.W("design:type",Object)],zJ.prototype,"offlineabilityState",void 0);
_.U([_.O({value:!0}),_.W("design:type",Boolean)],zJ.prototype,"showTooltips",void 0);_.U([_.O({value:!0}),_.W("design:type",Boolean)],zJ.prototype,"sendCommandWhenDisabled",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],zJ.prototype,"disabled",void 0);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],zJ.prototype,"dataChanged",null);
_.U([_.kr("offlineabilityState"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],zJ.prototype,"showHideButton",null);_.U([_.kr("transferState","isVideoDeletedByUser"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],zJ.prototype,"onTransferStateChanged",null);_.U([_.kr("downloadProgress"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],zJ.prototype,"updateProgress",null);
zJ=_.U([_.Q({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],zJ);
_.S(zJ,"ytd-download-button-renderer",function(){if(YWb!==void 0)return YWb;var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return YWb=a},{mode:2});var dXb;var eXb,fXb=function(){if(eXb!==void 0)return eXb;var a=document.createElement("template");_.B(a,'\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 eXb=a};var gXb=_.x("web_button_rework")&&_.Gi("BUTTON_REWORK")||_.x("web_button_rework_with_live"),hXb=_.$i("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,iXb=function(){var a=_.P.apply(this,arguments)||this;a.isPressed=!1;a.forceIconButton=!1;a.forceIconOnly=!1;a.forceModernIconButton=!1;a.alignByText=!1;a.isShorts=!1;a.animatedText=!1;a.shouldAnimate=!1;a.JSC$12188_browserSupportsAnimation=_.x("web_supports_animations_api");a.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};a.onTap=function(){var b;if((b=a.data)==null||!b.defaultNavigationEndpoint){var c;b=!((c=a.data)==null?0:c.isToggled);var d;if((d=a.data)==null||!d.preventAutoToggle){a.shouldAnimate=!1;a.disableTextUpdateJobId&&_.zk.cancelJob(a.disableTextUpdateJobId);a.disableTextUpdateJobId=_.zk.addLowPriorityJob(function(){a.disableTextUpdateJobId=void 0},hXb);
var e;a.set("data.isToggled",!((e=a.data)==null?0:e.isToggled));c=a.getInnertubeIcon();d={toggled:b,actions:{}};c&&(d.actions[c.toLowerCase()]=b);_.go(a.hostElement,"yt-toggle-button",d)}}};
return a};
_.z(iXb,_.P);_.f=iXb.prototype;_.f.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.zk.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.f.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.f.toggle=function(a){var b;this.set("data.isToggled",a!==void 0?a:!((b=this.data)==null?0:b.isToggled))};
_.f.handleUpdateToggleButtonStateCommand=function(a){if(this.data){a=_.y(a,eAb);var b,c,d,e=(b=this.data)==null?void 0:(c=b.toggleButtonSupportedData)==null?void 0:(d=c.toggleButtonIdData)==null?void 0:d.id;e&&a&&e===(a==null?void 0:a.buttonId)&&this.set("data.isToggled",a.toggled)}};
_.f.handleUpdateToggleButtonTextAction=function(a){if(this.data){a=_.y(a,wFb);var b,c,d,e=(b=this.data)==null?void 0:(c=b.toggleButtonSupportedData)==null?void 0:(d=c.toggleButtonIdData)==null?void 0:d.id;e&&a&&e===(a==null?void 0:a.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=a.defaultNumericalValue,this.set("data.defaultText",a.defaultText),this.set("data.toggledText",a.toggledText),this.shouldAnimate=!1)}};
_.f.getInnertubeIcon=function(){var a=this.data;if(a){var b,c,d=((b=a.defaultIcon)==null?0:b.iconType)?(c=a.defaultIcon)==null?void 0:c.iconType:null,e,g;b=((e=a.toggledIcon)==null?0:e.iconType)?(g=a.toggledIcon)==null?void 0:g.iconType:d;return a.isToggled?b:d}};
_.f.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.Vm.Object.defineProperties(iXb.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var a={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$12188_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var b=a.renderer;var c=a.element;var d=a.toggled;var e=a.onTapCallback;var g=a.commandClientArgs;var k=a.overrides;var m=a.forceIcon;var n=a.forceModernIconButton;var r=a.forceDisabled;var t=a.useAnimatedText;var u=a.animatedTextProps;a=nVa(b,d);m=!b.defaultIcon||!m&&b.defaultText?b.defaultIcon?"leading":void 0:n?"icon-only":"icon-only-40";m==="icon-only-40"&&(a.type="text");var w;n=Object;var A=n.assign,C;a:switch((C=
b.style)==null?void 0:C.styleType){case "STYLE_COMPACT_GRAY":C={size:"S"};break a;default:C={size:"M"}}var G=!!d;var J=(J=d&&b.toggledText||b.defaultText)?_.As(J):void 0;t?(t=_.Vp(d&&b.toggledText||b.defaultText))&&u&&!isNaN(Number(u.numberValue))?(u.numberText=t,d&&(u.numberValue+=1),t=u):t=void 0:t=void 0;var I,R,ca,V;var fa=(u=((R=d?b.toggledAccessibilityData||((fa=b.toggledText)==null?void 0:fa.accessibility):b.accessibilityData||((I=b.defaultText)==null?void 0:I.accessibility))==null?void 0:
(ca=R.accessibilityData)==null?void 0:ca.label)||((V=b.accessibility)==null?void 0:V.label))?u:_.Vp(d&&b.toggledText||b.defaultText);r=r===void 0?b.isDisabled:r;c=mVa(b,d,e,c,g);d=lVa(b,d);d!=null&&d.length?(d=_.Gs({innertubeCommand:gQa(d),forceNewState:!0}),d=hQa(d)?d:void 0):d=void 0;b=A.call(n,{},a,C,{iconPosition:m},k,{focused:!1,toggled:G,toggleable:!0,formattedButtonText:J,animatedTextProps:t,accessibilityLabel:fa,disabled:r,onTap:c,aTagConfig:d},GTa((w=b.colorData)==null?void 0:w.basicColorPaletteData));
b.alignByText=this.alignByText;this.isShorts&&this.data.isToggled&&(b.type="filled");return b}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var a=this.getInnertubeIcon();if(a)return _.fs(a)}}});
var AJ=iXb;AJ.prototype.resetAnimation=AJ.prototype.resetAnimation;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],AJ.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],AJ.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],AJ.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],AJ.prototype,"data",void 0);
_.U([_.O(),_.W("design:type",Object)],AJ.prototype,"isPressed",void 0);_.U([_.O(),_.W("design:type",Object)],AJ.prototype,"forceIconButton",void 0);_.U([_.O(),_.W("design:type",Object)],AJ.prototype,"forceIconOnly",void 0);_.U([_.O(),_.W("design:type",Object)],AJ.prototype,"forceModernIconButton",void 0);_.U([_.O(),_.W("design:type",Object)],AJ.prototype,"alignByText",void 0);_.U([_.O(),_.W("design:type",Object)],AJ.prototype,"overrides",void 0);
_.U([_.O(),_.W("design:type",Boolean)],AJ.prototype,"disabled",void 0);_.U([_.O(),_.W("design:type",Object)],AJ.prototype,"isShorts",void 0);_.U([_.O(),_.W("design:type",Object)],AJ.prototype,"buttonTooltipPosition",void 0);_.U([_.O(),_.W("design:type",Object)],AJ.prototype,"animatedText",void 0);_.U([_.O(),_.W("design:type",String)],AJ.prototype,"textNumberValue",void 0);_.U([_.O({computed:"computeTooltip(data, data.isToggled)"}),_.W("design:type",Object)],AJ.prototype,"tooltip",void 0);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],AJ.prototype,"resetAnimation",null);_.U([_.K("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.W("design:type",Object),_.W("design:paramtypes",[])],AJ.prototype,"computedButtonShape",null);_.U([_.K("data.*"),_.W("design:type",Object),_.W("design:paramtypes",[])],AJ.prototype,"computedIcon",null);
AJ=_.U([_.Q({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],AJ);gXb&&_.S(AJ,"ytd-toggle-button-renderer",fXb,{mode:_.as("kevlar_poly_si_batch_j081")?1:2});_.am(_.uVa);_.x("web_smartimations_killswitch")&&!_.x("register_web_smartimations_component")||_.dt(_.uVa,"yt-smartimation",{propNames:["settings"]});var BJ=function(){var a=_.P.apply(this,arguments)||this;a.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};a.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};a.shouldEnableSmartimation=!1;return a};
_.z(BJ,_.P);BJ.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
BJ.prototype.onDataChanged=function(){var a,b;this.shouldEnableSmartimation=(((a=this.data)==null?void 0:(b=a.timedAnimationData)==null?void 0:b.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
BJ.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var a=_.y(this.data.likeButton,_.PE),b=_.y(this.data.dislikeButton,_.PE);return!!((a==null?0:a.isToggled)||(b==null?0:b.isToggled))};
BJ.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]]"}}}}}};
_.Vm.Object.defineProperties(BJ.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var a,b,c=((a=this.data)==null?void 0:(b=a.timedAnimationData)==null?void 0:b.animationTiming)||[];return{uniqueId:"like-dislike",timings:c,enabled:this.shouldEnableSmartimation,experimentEnabled:c.length>0}}}});
var CJ=BJ;CJ.prototype.onDataChanged=CJ.prototype.onDataChanged;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],CJ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],CJ.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],CJ.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],CJ.prototype,"likeButtonOverride",void 0);
_.U([_.O(),_.W("design:type",Object)],CJ.prototype,"dislikeButtonOverride",void 0);_.U([_.K("shouldEnableSmartimation"),_.W("design:type",Object),_.W("design:paramtypes",[])],CJ.prototype,"smartimationSettings",null);_.U([_.N("data"),_.M("yt-toggle-button"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],CJ.prototype,"onDataChanged",null);CJ=_.U([_.Q({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],CJ);
_.S(CJ,"ytd-segmented-like-dislike-button-renderer",function(){if(dXb!==void 0)return dXb;var a=document.createElement("template");_.B(a,'\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>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return dXb=a},{mode:1});var jXb;var kXb;(kXb=document.body)==null||kXb.setAttribute("rounded-container","");var lXb={};lXb.YtToggleButtonBehavior=[_.bH.YtActionHandlerBehavior,rH.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 a=this.data.isToggled;if(!this.isModal_(a)){if(!this.data.preventAutoToggle){this.toggle();var b={toggled:this.data.isToggled,actions:{}};b.actions[this.buttonIcon]=this.data.isToggled;_.go(this.hostElement,"yt-toggle-button",b)}b=this.data.defaultServiceEndpoint||null;var c=this.data.toggledServiceEndpoint||null;if(b&&c||b&&this.data.preventAutoToggle)a=a?c:b,b=this.disableCommandHandlerOverride,_.x("killswitch_toggle_button_behavior_resolve_command")||b?_.mo(this.hostElement,
[a]):_.is(a,this.hostElement),_.go(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:a})}},
stateChanged_:function(){var a=this.data;if(a){var b=a.isToggled;this._setEndpoint(this.computeEndpoint_(a));this._setServiceEndpoint(this.computeServiceEndpoint_(a));this._setButtonIcon(this.computeButtonIcon_(a,b));this._setButtonText(this.computeButtonText_(a,b));this._setButtonAccessibility(this.computeAccessibility_(a,b));this._setButtonTooltip(this.computeTooltip_(a,b));this._setButtonClass(this.computeButtonClass_(a,b));this._setIconPositionType(this.computeIconPositionType_(a));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=b):this.elements_.button.setAttribute("aria-pressed",b));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=b)}},
shouldSetIconActiveState_:function(){return _.x("kevlar_system_icons")},
toggle:function(a){this.set("data.isToggled",a!==void 0?a:!this.data.isToggled);_.x("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(a){if(a){var b,c;return!!((b=this.data)==null?0:(c=b.toggledServiceEndpoint)==null?0:c.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(a){return a&&a.defaultNavigationEndpoint||null},
computeButtonIcon_:function(a,b){var c=a&&a.defaultIcon?_.fs(a.defaultIcon.iconType):null;a=a&&a.toggledIcon?_.fs(a.toggledIcon.iconType):c;return b?a:c},
handleUpdateToggleButtonStateCommand_:function(a){a=a.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==a.buttonId&&this.toggle(a.toggled)},
computeButtonText_:function(a,b){return a?b&&a.toggledText||a.defaultText||null:null},
computeAccessibility_:function(a,b){return a?(b?this.get("toggledAccessibilityData.accessibilityData",a):this.get("accessibilityData.accessibilityData",a))||a.accessibility||null:null},
computeTooltip_:function(a,b){return a?b&&a.toggledTooltip||a.defaultTooltip||null:null},
computeButtonClass_:function(a,b){if(!a)return"";var c="",d=a.toggledStyle||a.style;if(b=b?d:a.style){b.styleType&&(b=b.styleType);try{c+=b.toLowerCase().replace(/_/g,"-")+" "}catch(e){_.El(e,b,typeof b),_.Dl(e)}}if(a=a.size){a.sizeType&&(a=a.sizeType);try{c+=a.toLowerCase().replace(/_/g,"-")+" "}catch(e){_.El(e,a,typeof a),_.Dl(e)}}return c.trim()},
computeIconPositionType_:function(a){return a&&a.iconPosition||null},
computeServiceEndpoint_:function(a){var b=a&&a.serviceEndpoint,c=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return b?b:c&&a.command?a.command:null},
handleUpdateToggleButtonTextAction_:function(a){a=a.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==a.buttonId&&(this.set("data.defaultText",a.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",a.toggledText),this.notifyPath("data.toggledText"))}}];_.It("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var mXb=_.x("web_button_rework")&&_.Gi("BUTTON_REWORK")||_.x("web_button_rework_with_live"),DJ=function(){var a=_.P.apply(this,arguments)||this;a.systemIcons=_.x("kevlar_system_icons");a.roundedContainer=!0;return a};
_.z(DJ,_.P);DJ.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
DJ.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var a=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var b={toggled:!!this.data.isToggled,actions:{}};b.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var c,d;b.actions.playlistId=(c=this.data.defaultServiceEndpoint)==null?void 0:(d=c.playlistEditEndpoint)==null?void 0:d.playlistId;_.go(this.hostElement,"yt-toggle-button",b)}(a=a?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(a)}};
DJ.prototype.onYtNavigate=function(a){var b=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(a.detail.endpoint);b&&(a.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(b))};
_.Vm.Object.defineProperties(DJ,{template:{configurable:!0,enumerable:!0,get:function(){if(jXb===void 0){var a=document.createElement("template");_.B(a,"\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");a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);jXb=a}a=jXb;return a}}});
var EJ=DJ;EJ.prototype.onYtNavigate=EJ.prototype.onYtNavigate;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],EJ.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],EJ.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.YH),_.W("design:type",Object)],EJ.prototype,"ytdOpenPopupBehavior",void 0);_.U([_.H(lXb.YtToggleButtonBehavior),_.W("design:type",Object)],EJ.prototype,"ytToggleButtonBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],EJ.prototype,"data",void 0);_.U([_.O({value:!0}),_.W("design:type",Boolean)],EJ.prototype,"showTooltips",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],EJ.prototype,"systemIcons",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],EJ.prototype,"roundedContainer",void 0);_.U([_.M("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],EJ.prototype,"onYtNavigate",null);
EJ=_.U([_.Q({is:"ytd-toggle-button-renderer",disableElementRegistration:mXb})],EJ);var nXb;_.FJ=new _.fB("PANEL_CONTROLLER_TOKEN");_.GJ=new _.fB("SHEET_CONTROLLER_TOKEN");_.HJ=new _.fB("DIALOG_CONTROLLER_TOKEN");nXb=new _.fB("DIALOG_CONTAINER_TOKEN");var DVa=_.to("DOWNLOAD",{},"Download"),EVa=_.to("DOWNLOADING",{},"Downloading"),FVa=_.to("DOWNLOADED",{},"Downloaded"),GVa=_.to("RETRY",{},"Retry");var oXb=_.Rr(function(a){var b=LVa,c=function(){return""},d=HVa(a.data),e=IVa(a.data),g=JVa(a.data),k=KVa(a.data);
b=function(){var m=a.data(),n=BVa(m,d(),e(),g(),k()),r=!!m.videoId,t=n.text;return{title:r?t:void 0,tooltip:r?void 0:t,accessibilityText:t,onTap:n.onTap,iconName:n.iconType,style:m.butonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:n.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:m.buttonSize}};
c={};c=_.jt("ytDownloadButtonViewModelHost",(c.ytDownloadButtonViewModelIsHidden=function(){var m=a.data(),n=k();return m.playlistId||n()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||n()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},c));
return _.q("download-button-view-model",{class:c},_.q(_.Ju,{data:b}))});
oXb.idomCompat=!0;_.am(OVa);_.am(MVa);var PVa={isOpen:!1};var RVa={isAllowed:!1};var TVa={errorMessage:"",title:"",privacy:"",isDisabled:!0};var VVa={isOpen:!1};var XVa={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var pXb={response:void 0};var ZVa=function(a,b){a=a===void 0?pXb:a;switch(b.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},a,{response:b.payload});default:return a}};var qXb={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var $Va=function(a,b){a=a===void 0?qXb:a;switch(b.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},a,{nextDisabled:b.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},a,{nextCommand:b.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},a,{footerSubmissionData:b.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},a,{isImpersonationValid:b.payload});default:return a}};var rXb={reportFormData:void 0,reportDetailsFormData:void 0};var aWa=function(a,b){a=a===void 0?rXb:a;switch(b.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},a,{reportFormData:b.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},a,{reportDetailsFormData:b.payload});default:return a}};var sXb=void 0;_.x("mweb_enable_redux_store_on_demand")||(sXb=new Wp(bWa()));var sWa=_.Rr(function(a){a=_.Or(a,{themeOverride:void 0,animationRef:{}});var b=a.animatedIconType,c=a.active,d=a.themeOverride,e=a.animationRef;a=a.staticIconFn;var g=_.h(_.fh(void 0,"P5a72b")),k=g.next().value,m=g.next().value,n=function(){a:{var J=b();var I=d==null?void 0:d();var R;I=(I==null?void 0:I.useDarkTheme)||((R=_.v().resolve(_.Wi(_.Ns)))==null?void 0:R());switch(J){case "LIKE":b:{sXb||(sXb=new Wp(bWa()));if((J=oSa(sXb.getState()))&&J.animationStyle)switch(J.animationStyle){case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_DELHI":J=
dWa({name:I?"valentines25_heart_dark":"valentines25_heart_light",path:I?"animated_like_valentines25_heart_dark_v5":"animated_like_valentines25_heart_light_v5",totalFrames:60});break b;case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_BROKEN_HEART_DELHI":J=dWa({name:I?"valentines25_broken_heart_dark":"valentines25_broken_heart_light",path:I?"animated_like_valentines25_broken_heart_dark_v5":"animated_like_valentines25_broken_heart_light_v5",totalFrames:60});break b;case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_YOUTUBE_BIRTHDAY_DELHI":J=
dWa({name:I?"youtube_20th_birthday_dark":"youtube_20th_birthday_light",path:I?"animated_like_youtube_20th_birthday_dark":"animated_like_youtube_20th_birthday_light",totalFrames:60});break b}J=void 0}if(J){I=J;break a}I="animated_like_icon_"+(I?"dark_v4":"light_v4");I={lottiePlayerProps:{animationConfig:{name:I,path:cWa("animated_like_icon",I),loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},totalFrames:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":I={lottiePlayerProps:{animationConfig:{name:I?
"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(I?"dark":"light")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"}}},totalFrames:79,lazyLoad:!1};break a}I=void 0}return I},r=function(){var J,I;
return(I=(J=n())==null?void 0:J.lottiePlayerProps.animationConfig.name)!=null?I:""},t=function(){if(n()){var J=n().lottiePlayerProps.animationConfig.path;
return ht.get(J)||k()}};
g=_.h(_.fh(!1,"h6xR3c"));var u=g.next().value;g=g.next().value;var w=fWa(g),A=function(){var J=n(),I,R,ca;return(ca=J==null?void 0:(I=J.lottiePlayerProps.animationConfig)==null?void 0:(R=I.rendererSettings)==null?void 0:R.className)!=null?ca:""},C=void 0,G=void 0;
_.yh(function(){var J=n(),I=r(),R=t(),ca=u(),V=c();if(J&&(G!==I&&(G=I,C=V,I=e(),w.animationConfig=J.lottiePlayerProps.animationConfig,w.animationRef=I,R&&(w.animationConfig.animationData=R,w.animationConfig.path=void 0),I=J.lottiePlayerProps.animationConfig.path,!ht.get(I)&&J.lazyLoad&&I&&eWa(I,m)),!(ca||J.lazyLoad&&!R))){if(R=!e().lottieEl)V?(ca=J.totalFrames,w.animationConfig.initialSegment=[ca-1,ca]):w.animationConfig.initialSegment=void 0;if(C!==V&&!R)if(R=e(),V){var fa;(fa=R.lottieEl)==null||
fa.playSegments([0,J.totalFrames],!0)}else{var aa;(aa=R.lottieEl)==null||aa.playSegments([0,1],!0)}C=V}},"Ijvjk");
return _.q("animated-icon",{class:"ytAnimatedIconHost"},_.q(_.oi,{cond:function(){var J,I;return!((J=n())==null||!J.lottiePlayerProps.animationConfig.path||((I=n())==null?0:I.lazyLoad)&&!t()||u())},
then:function(){return _.q(_.kt,{data:w,animationName:r,className:A,animationRef:e})},
else:a}))});var tXb=_.mt(_.tWa);_.am(_.tWa);var uWa=new _.fB("RENDERER_STAMPER_OPTIONS_TOKEN");var Cu;_.Bu=new Osb;Cu=new Map;var DWa="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel".split(" "),FWa=["notificationTextRenderer","notificationMultiActionRenderer"],EWa="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),
NWa=CWa(function(a){return _.zh(a==null?void 0:a.targetId)}).useUpdatableData;var MWa=0;var QWa=_.Au({buttonViewModel:_.Ju,subscribeButtonViewModel:_.tWa,downloadButtonViewModel:oXb,toggleButtonViewModel:_.Hu,subscribePlusButtonViewModel:_.Rr(function(a){var b=a.data;var c=_.tu(_.ku,function(){return b().subscriptionStateEntityKey});
return _.q(_.oi,{cond:function(){var d=b(),e=c();return!d.hideWhenUnsubscribed||(e==null?0:e.subscribed)?_.y(b().button,_.Fu):void 0},
then:function(d){return _.q("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.q(_.Ju,{data:d,buttonOverrides:function(){return{toggled:!b().isPurchasable}}}))}})})}),uXb=_.mt(SWa);
_.am(SWa);_.Ws(uXb,"yt-flexible-actions-view-model",{props:{data:_.SG,layout:_.SG,justifyContentOverride:_.SG,className:_.SG}});_.vXb=_.mt(TWa);_.am(TWa);_.wXb=_.mt(VWa);_.am(VWa);_.am(YWa);_.dt(YWa,"segmented-like-dislike-button-view-model",{propNames:["data"]});_.Ws(gXa,"account-link-button-view-model",{props:{data:_.SG,className:_.Vs,setMinWidth:_.Vs,forceIconOnly:_.Vs}});_.It("menuRenderer","menuRenderer","ytd-menu-renderer");
var xXb={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"}},
yXb=_.x("web_fix_missing_action_buttons")?100:200,IJ=function(){var a=_.P.apply(this,arguments)||this;a.safeArea=!_.x("kevlar_flex_menu_safe_area_killswitch");a.tonalOverride=!1;a.threeDotSize="M";a.isOverlay=!1;a.useOverlayDark=!1;a.topLevelIconsOnly=!1;a.JSC$12325_lastWidth=0;a.maybeUpdateFlexibleMenu=function(){_.x("web_fix_missing_action_buttons")?requestAnimationFrame(a.maybeUpdateFlexibleMenuImpl):a.maybeUpdateFlexibleMenuImpl()};
a.maybeUpdateFlexibleMenuImpl=function(){var b;if((b=a.data)!=null&&b.flexibleItems){a.maybeFlushDebouncer();b=a.hostElement.clientWidth;var c=b>a.JSC$12325_lastWidth,d,e=((d=a.topLevelButtonsContainer)==null?void 0:d.scrollHeight)||0,g;d=((g=a.flexibleItemButtonsContainer)==null?void 0:g.scrollHeight)||0;g=a.hostElement.scrollHeight>Math.max(e,d)+8;c?(a.resetFlexibleItems(),a.JSC$12325_lastWidth=a.hostElement.clientWidth,a.maybeUpdateFlexibleMenu()):g&&(a.shrinkFlexibleMenu(),a.JSC$12325_lastWidth=
b)}};
a.computeThreeDotButtonShape=function(){return Object.assign({},{onTap:function(){a.onOverflowTap()},
iconPosition:"icon-only",style:a.isOverlay?a.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:a.threeDotSize,state:"active",accessibilityLabel:a.computeAccessibilityLabel(a.data)},a.threeDotButtonOverride)};
a.onOverflowTap=function(){if(a.data.fetchMenuCommand)_.x("web_ytd_menu_renderer_command_resolver_ks")?_.mo(a.hostElement,[a.data.fetchMenuCommand]):_.v().resolve(_.Xi).resolveCommand(a.data.fetchMenuCommand,{form:{element:a.hostElement}});else if(a.data.isDisabled&&a.data.disabledCommand)_.is(a.data.disabledCommand,a.hostElement);else{var b=a.createMenuRendererVe(),c={items:a.items};a.data.menuPopupAccessibility&&(c.menuPopupAccessibility=a.data.menuPopupAccessibility);a.data.footer&&(c.footer=a.data.footer);
b={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:c},veData:b}};_.v().resolve(_.GJ).openSheet({openPopupActionCommand:b},a.hostElement)}};
return a};
_.z(IJ,_.P);_.f=IJ.prototype;_.f.updateButtonOverrides=function(){if(!_.x("menu_renderer_label_update_upkillswitch")){var a=_.E(this.hostElement).querySelector("yt-button-view-model");a&&(a.buttonOverrides=this.buttonOverrides)}};
_.f.computeHasItems=function(){var a;return((a=this.topLevelButtonData)==null?void 0:a.length)||this.hasFlexibleItems};
_.f.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.f.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.dr(this.hostElement,{"--ytd-menu-renderer-button-color":_.Bq(this.data.iconColor)}))};
_.f.onStamperFinished=function(){this.JSC$12325_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.f.setupFlexibleMenu=function(){var a=this,b;(b=this.data)!=null&&b.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.hv(this.maybeUpdateFlexibleMenu,yXb,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){a.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))};
_.f.maybeFlushDebouncer=function(){if(_.x("web_replace_formatted_with_attributed_string")){var a;(a=this.topLevelButtons)==null||a.forEach(function(c){var d;(c=(d=c.getElementsByTagName("yt-attributed-string"))==null?void 0:d[0])&&aNa(c)});
var b;(b=this.flexibleItemButtons)==null||b.forEach(function(c){var d;(c=(d=c.getElementsByTagName("yt-attributed-string"))==null?void 0:d[0])&&aNa(c)})}};
_.f.resetFlexibleItems=function(){var a;if((a=this.data)!=null&&a.flexibleItems){_.x("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var b;this.flexAsTopLevelButtons=(b=this.data.flexibleItems)==null?void 0:b.map(function(c){return _.y(c,_.lEb).topLevelButton});
_.x("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.f.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.f.shrinkFlexibleMenu=function(){var a;(a=this.flexAsTopLevelButtons)!=null&&a.length&&(this.flexAsTopLevelButtons=[].concat(_.Be(this.flexAsTopLevelButtons.slice(0,-1))))};
_.f.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:xXb,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:xXb,events:!0}}};
_.f.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.f.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.f.detached=function(){this.icon="yt-icons:more_vert"};
_.f.computeTopLevelButtonData=function(a){if(!a)return[];var b;a=(b=a==null?void 0:a.topLevelButtons)!=null?b:[];return _.yf.unsafeClone([].concat(_.Be(a)))};
_.f.computeItems=function(a,b){if(!a)return[];var c=[];if(b){var d=(a.flexibleItems||[]).map(function(k){return _.y(k,_.lEb)});
d=_.h(d);for(var e=d.next();!e.done;e=d.next())e=e.value,b.includes(e.topLevelButton)||(e=e.menuItem)&&c.push(e)}var g;a=(g=a==null?void 0:a.items)!=null?g:[];return[].concat(_.Be(c),_.Be(a))};
_.f.computeMenuActive=function(a,b){return a||b};
_.f.onPopupOpened=function(){this.overlayOpen=!0;_.go(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.f.onPopupClosed=function(){this.overlayOpen=!1;_.go(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.f.onPopupCanceled=function(){this.overlayOpen=!1;_.go(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.f.computeAccessibilityLabel=function(a){return this.get("accessibility.accessibilityData.label",a)};
_.f.isHidden=function(a,b){return this.tonalOverride||!a?!0:a.fetchMenuCommand||a.isDisabled&&a.disabledCommand?!1:!(b==null?0:b.length)};
_.f.isModernOverflowHidden=function(a,b){return this.tonalOverride&&a?a.fetchMenuCommand?!1:!(b==null?0:b.length):!0};
_.f.createMenuRendererVe=function(){var a=this.data.trackingParams,b=_.Fn(),c=_.En();return a&&b&&c?(a=_.qs(a),c=_.lu(7591),_.x("combine_ve_grafts")?_.nF(_.ms(),c,a):_.Ro(b,a,c),c):null};
_.Vm.Object.defineProperties(IJ.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.flexAsTopLevelButtons)==null||!a.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
IJ.prototype.onPopupCanceled=IJ.prototype.onPopupCanceled;IJ.prototype.onPopupClosed=IJ.prototype.onPopupClosed;IJ.prototype.onPopupOpened=IJ.prototype.onPopupOpened;IJ.prototype.tonalOverrideChanged=IJ.prototype.tonalOverrideChanged;IJ.prototype.resetFlexibleItems=IJ.prototype.resetFlexibleItems;IJ.prototype.setupFlexibleMenu=IJ.prototype.setupFlexibleMenu;IJ.prototype.iconButtonColorChanged=IJ.prototype.iconButtonColorChanged;IJ.prototype.updateButtonOverrides=IJ.prototype.updateButtonOverrides;
_.U([_.H(_.YH),_.W("design:type",Object)],IJ.prototype,"ytdOpenPopupBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],IJ.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],IJ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.gr("#button-shape"),_.W("design:type",iH)],IJ.prototype,"buttonShape",void 0);_.U([_.gr("#button"),_.W("design:type",Object)],IJ.prototype,"button",void 0);
_.U([_.O(),_.W("design:type",Object)],IJ.prototype,"data",void 0);_.U([_.O({computed:"computeTopLevelButtonData(data)"}),_.W("design:type",Array)],IJ.prototype,"topLevelButtonData",void 0);_.U([_.O(),_.W("design:type",Array)],IJ.prototype,"flexAsTopLevelButtons",void 0);_.U([_.O({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.W("design:type",Array)],IJ.prototype,"items",void 0);_.U([_.O({value:"yt-icons:more_vert"}),_.W("design:type",String)],IJ.prototype,"icon",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],IJ.prototype,"safeArea",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.W("design:type",Boolean)],IJ.prototype,"menuActive",void 0);_.U([_.O(),_.W("design:type",Boolean)],IJ.prototype,"menuFocused",void 0);_.U([_.O({value:"bottom"}),_.W("design:type",String)],IJ.prototype,"buttonTooltipPosition",void 0);_.U([_.O(),_.W("design:type",Boolean)],IJ.prototype,"overlayOpen",void 0);
_.U([_.O({value:!0}),_.W("design:type",Boolean)],IJ.prototype,"forceIconButton",void 0);_.U([_.O(),_.W("design:type",Boolean)],IJ.prototype,"styleActionButton",void 0);_.U([_.O(),_.W("design:type",Boolean)],IJ.prototype,"disableTextTransformOnButtons",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],IJ.prototype,"tonalOverride",void 0);_.U([_.O(),_.W("design:type",Object)],IJ.prototype,"threeDotSize",void 0);
_.U([_.O(),_.W("design:type",Object)],IJ.prototype,"threeDotButtonOverride",void 0);_.U([_.O(),_.W("design:type",Object)],IJ.prototype,"isOverlay",void 0);_.U([_.O(),_.W("design:type",Object)],IJ.prototype,"useOverlayDark",void 0);_.U([_.O({computed:"computeButtonOverride(tonalOverride)"}),_.W("design:type",Object)],IJ.prototype,"buttonOverride",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],IJ.prototype,"hasCustomIconColor",void 0);
_.U([_.O({reflectToAttribute:!0}),_.K("flexAsTopLevelButtons"),_.W("design:type",Object),_.W("design:paramtypes",[])],IJ.prototype,"hasFlexibleItems",null);_.U([_.O({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.W("design:type",Boolean)],IJ.prototype,"hasItems",void 0);_.U([_.O(),_.W("design:type",Object)],IJ.prototype,"topLevelIconsOnly",void 0);
_.U([_.N("topLevelIconsOnly"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],IJ.prototype,"updateButtonOverrides",null);_.U([_.K("topLevelIconsOnly"),_.W("design:type",Object),_.W("design:paramtypes",[])],IJ.prototype,"buttonOverrides",null);_.U([_.gr("#top-level-buttons-computed"),_.W("design:type",HTMLElement)],IJ.prototype,"topLevelButtonsContainer",void 0);_.U([_.hr(".top-level-buttons > *"),_.W("design:type",Array)],IJ.prototype,"topLevelButtons",void 0);
_.U([_.gr("#flexible-item-buttons"),_.W("design:type",HTMLElement)],IJ.prototype,"flexibleItemButtonsContainer",void 0);_.U([_.hr("#flexible-item-buttons > *"),_.W("design:type",Array)],IJ.prototype,"flexibleItemButtons",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],IJ.prototype,"iconButtonColorChanged",null);
_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],IJ.prototype,"setupFlexibleMenu",null);_.U([_.kr("topLevelIconsOnly"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],IJ.prototype,"resetFlexibleItems",null);_.U([_.N("tonalOverride"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],IJ.prototype,"tonalOverrideChanged",null);
_.U([_.M("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],IJ.prototype,"onPopupOpened",null);_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],IJ.prototype,"onPopupClosed",null);_.U([_.M("yt-popup-canceled"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],IJ.prototype,"onPopupCanceled",null);
_.S(IJ,"ytd-menu-renderer",function(){if(UWb===void 0){var a=document.createElement("template");_.B(a,'\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>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);UWb=a}a=UWb;return a},{mode:_.as("kevlar_poly_si_batch_j030")?1:2});var zXb;var AXb;_.ev=_.Rr(function(a){var b=a.data;var c=function(){if(b().icon)a:{var d=!jXa(b().type)&&!b().modern;var e={iconName:b().icon};var g=_.v().resolve(_.gs);d=_.h(d?[24]:[12,24]);for(var k=d.next();!k.done;k=d.next()){var m=k.value;k=Object.assign({},e,{iconStyle:"youtube_fill",iconSize:m});m=Object.assign({},e,{iconStyle:"youtube_outline",iconSize:m});if(g.resolveIcon(k)){e=k;break a}if(g.resolveIcon(m)){e=m;break a}}e=void 0}else e=void 0;return e};
a={};return _.q("badge-shape",{class:_.jt("badge-shape-wiz",function(){return kXa(b().type)},(a["badge-shape-wiz--overlay"]=function(){return b().isOverlay},a["badge-shape-wiz--ads-include-dot"]=function(){return b().adsIncludeDot},a["badge-shape-wiz--thumbnail-badge"]=function(){return jXa(b().type)},a["badge-shape-wiz--status-badge"]=function(){a:switch(b().type){case 11:case 12:case 13:case 14:case 15:var d=!0;
break a;default:d=!1}return d},a["badge-shape-wiz--no-text"]=function(){return!b().text},a["badge-shape-wiz--modern"]=function(){return b().modern},a)),
style:_.rt({"background-color":function(){var d;return(d=b().customColors)==null?void 0:d.backgroundColor}}),
role:function(){return b().accessibilityText?"img":void 0},
"aria-label":function(){return b().accessibilityText}},_.q(_.oi,{cond:function(){return b().animation},
then:function(d){return _.q(_.kt,{className:"badge-shape-wiz__icon",data:d,animationName:function(){return d().animationConfig.name||""}})}}),_.q(_.oi,{cond:function(){var d;
return c()&&!((d=b())==null?0:d.animation)},
then:function(){return _.q("div",{class:"badge-shape-wiz__icon"},_.q(DSa,{data:function(){return c()}}))}}),_.q("div",{class:"badge-shape-wiz__text"},function(){var d;
return(d=b())==null?void 0:d.text}))});
_.ev.idomCompat=!0;_.Ws(_.ev,"badge-shape",{props:{data:_.SG}});var BXb=function(){var a=_.P.apply(this,arguments)||this;a.systemIcons=_.x("kevlar_system_icons");a.animated=_.x("animated_live_badge_icon");a.useBadgeShape=_.x("web_badge_shape_defrag");return a};
_.z(BXb,_.P);_.f=BXb.prototype;_.f.addTooltips=function(){for(var a=_.E(this.hostElement).querySelectorAll(".badge"),b=0,c;c=a[b++];){var d=this.repeatElement.itemForElement(c);c=_.E(c);c.lastChild&&c.lastChild.is==="tp-yt-paper-tooltip"&&c.removeChild(c.lastChild);if(d=d.metadataBadgeRenderer&&d.metadataBadgeRenderer.tooltip){var e=_.YG("tp-yt-paper-tooltip");(0,_.br)(e).textContent=d;e.setAttribute("position","top");c.appendChild(e)}}};
_.f.badgesChanged=function(){var a=this;_.SF().parkOrScheduleJob(function(){a.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.f.standaloneRoundedBadgeChanged=function(){var a=this.useRoundedBadge?this.useRoundedBadge:void 0;a&&(this.useRoundedBadge=a)};
_.f.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.f.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.f.computeStyle=function(a){_.x("enable_html5_teal_ad_badge")&&a==="BADGE_STYLE_TYPE_AD"&&(a="badge-style-type-ad-alternate");_.x("kevlar_ytb_live_badges")&&a==="BADGE_STYLE_TYPE_LIVE_NOW"&&(a="badge-style-type-live-now-alternate");return a?a.toLowerCase().replace(/_/g,"-"):""};
_.f.computeRole=function(a){return this.computeAriaLabel(a)?"img":"status"};
_.f.computeAriaLabel=function(a){var b;return(a==null?void 0:(b=a.accessibilityData)==null?void 0:b.label)||(a==null?void 0:a.label)};
_.f.computeBadgeShape=function(a){var b;if(a){var c,d=hXa(a.style),e=iXa(a.style),g=a.label,k=((c=a.accessibilityData)==null?void 0:c.label)||a.label;a=(b=a.icon)==null?void 0:b.iconType;b={type:d,brNzRatingBadgeType:e,text:g,accessibilityText:k,icon:a!=="PREMIUM"?a:void 0}}else b={};return b};
_.f.updateComputedBadges=function(a,b,c){var d=this;(b=b?[b]:c?[c]:void 0)?this.computedBadges=b:this.computedBadges=a==null?void 0:a.filter(function(e){var g;if((g=e.metadataBadgeRenderer)==null?0:g.groups){g=!1;e=_.h(e.metadataBadgeRenderer.groups);for(var k=e.next();!k.done;k=e.next()){k=k.value;var m=void 0;g=g||((m=d.hiddenBadgeGroups)==null?void 0:m.includes(k))}return!g}return!0})};
_.f.useFilledIcons=function(a){return _.x("kevlar_system_icons")&&(a==="AUDIO_BADGE"||a==="CHECK_CIRCLE_THICK"||a==="OFFICIAL_ARTIST_BADGE"||a==="SPONSORSHIP_STAR"||a==="PERSON_RADAR_FILLED"||a==="PERSON_RADAR")};
_.f.computeIcon=function(a){var b,c;a=a==null?void 0:(b=a.metadataBadgeRenderer)==null?void 0:(c=b.icon)==null?void 0:c.iconType;if(a!=="PREMIUM"&&a)return _.fs(a)};
_.f.computeStandaloneBadge=function(a){var b;a=a==null?void 0:(b=a.icon)==null?void 0:b.iconType;return a==="PREMIUM_STANDALONE"||a==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
var JJ=BXb;JJ.prototype.hiddenBadgeGroupsChanged=JJ.prototype.hiddenBadgeGroupsChanged;JJ.prototype.standaloneBadgeChanged=JJ.prototype.standaloneBadgeChanged;JJ.prototype.standaloneRoundedBadgeChanged=JJ.prototype.standaloneRoundedBadgeChanged;JJ.prototype.badgesChanged=JJ.prototype.badgesChanged;_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],JJ.prototype,"hidden",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],JJ.prototype,"componentBehavior",void 0);
_.U([_.O(),_.W("design:type",Array)],JJ.prototype,"badges",void 0);_.U([_.O(),_.W("design:type",Object)],JJ.prototype,"topStandaloneBadge",void 0);_.U([_.O(),_.W("design:type",Object)],JJ.prototype,"bottomStandaloneBadge",void 0);_.U([_.O(),_.W("design:type",Object)],JJ.prototype,"computedBadges",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],JJ.prototype,"mediumFontAdBadge",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],JJ.prototype,"useRoundedBadge",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],JJ.prototype,"largeFontAdBadge",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],JJ.prototype,"overlayAd",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],JJ.prototype,"overlayPremium",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],JJ.prototype,"noDotAdBadge",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],JJ.prototype,"collectionTruncate",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],JJ.prototype,"isThumbnailBadge",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],JJ.prototype,"wrapBadges",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],JJ.prototype,"systemIcons",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],JJ.prototype,"animated",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],JJ.prototype,"useBadgeShape",void 0);_.U([_.O({value:[]}),_.W("design:type",Array)],JJ.prototype,"hiddenBadgeGroups",void 0);_.U([_.gr("#repeat"),_.W("design:type",rr)],JJ.prototype,"repeatElement",void 0);_.U([_.kr("badges"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],JJ.prototype,"badgesChanged",null);
_.U([_.kr("useRoundedBadge"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],JJ.prototype,"standaloneRoundedBadgeChanged",null);_.U([_.kr("topStandaloneBadge","bottomStandaloneBadge"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],JJ.prototype,"standaloneBadgeChanged",null);_.U([_.kr("hiddenBadgeGroups"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],JJ.prototype,"hiddenBadgeGroupsChanged",null);
JJ=_.U([_.Q({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],JJ);
var CXb=_.$r()(JJ,"ytd-badge-supported-renderer",function(){if(AXb===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-badge-supported-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" id="repeat" items="[[computedBadges]]" as="badge" class="style-scope ytd-badge-supported-renderer"><template is="dom-if" if="[[useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><badge-shape data="[[computeBadgeShape(badge.metadataBadgeRenderer)]]" class="style-scope ytd-badge-supported-renderer"></badge-shape></template><template is="dom-if" if="[[!useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge [[computeStandaloneBadge(badge.metadataBadgeRenderer)]] [[computeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer" role="[[computeRole(badge.metadataBadgeRenderer)]]" aria-label$="[[computeAriaLabel(badge.metadataBadgeRenderer)]]"><yt-icon default-to-filled="[[useFilledIcons(badge.metadataBadgeRenderer.icon.iconType)]]" disable-upgrade$="[[!badge.metadataBadgeRenderer.icon]]" hidden="[[!computeIcon(badge)]]" icon="[[computeIcon(badge)]]" size="16" class="style-scope ytd-badge-supported-renderer"></yt-icon><p class="style-scope ytd-badge-supported-renderer">[[badge.metadataBadgeRenderer.label]]</p></div></template></template>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);AXb=a}a=AXb;return a},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.as("kevlar_poly_si_batch_j053")?1:2});var KJ,DXb=function(){var a=_.P.apply(this,arguments)||this;a.iconType="STAR";a.standardizeIconSize=_.x("kevlar_system_icons");a.mediaHoverOverlayInitialVisibility=_.x("enable_top_landscape_image_button_command_web");a.noBottomMargin=!1;a.thumbnailObjectFit="CONTAIN";a.thumbnailFitHeight=!0;a.actionMap={"yt-mute-ad-action":"handleMuteAd"};return a};
_.z(DXb,_.P);_.f=DXb.prototype;
_.f.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"}}}};
_.f.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",KJ.JSC$12338_DEFAULT_CLICK_LOCATION_BEHAVIOR,KJ.JSC$12338_CLICK_LOCATION_ID_MAP))};
_.f.onTap=function(a){if(!_.x("use_on_click_for_desktop_display_ad"))this.onTapOrClick(a)};
_.f.onClick=function(a){if(_.x("use_on_click_for_desktop_display_ad"))this.onTapOrClick(a)};
_.f.onTapOrClick=function(a){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,a,!1)};
_.f.updateMediaBackgroundImage=function(){var a=this.get("data.image.thumbnail.thumbnails");a&&(a=_.Xs(a,0))&&_.dr(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+a+")"})};
_.f.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var a=0;a<this.data.impressionEndpoints.length;a++){var b=this.data.impressionEndpoints[a];b.clickTrackingParams&&delete b.clickTrackingParams;_.x("web_ytd_display_ad_renderer_command_resolver_ks")?_.mo(this.hostElement,[b]):_.v().resolve(_.Xi).resolveCommand(b,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var c;((c=this.data)==null?0:c.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,
17)}};
_.f.handleMuteAd=function(){};
_.f.attached=function(){var a=this;_.x("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&a.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.f.detached=function(){_.x("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.Vm.Object.defineProperties(DXb.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)==null||!a.titleText)return"";var b;return _.to("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((b=this.data)==null?void 0:b.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?0:a.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?0:a.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?0:a.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?0:a.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?0:a.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 a;return!((a=this.data)==null||!a.energyIcon)}},
computeSecondaryTextHidden:{configurable:!0,enumerable:!0,get:function(){return!(this.computeRatingHidden&&this.computePriceHidden)}},
layout:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.layout?this.data.layout.toLowerCase().replace(/_/g,"-"):""}},
mediaThumbnailWidth:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.layout&&this.data.layout==="DISPLAY_AD_LAYOUT_VERTICAL_CAROUSEL_ITEM")return 135}},
useRoundedBadge:{configurable:!0,enumerable:!0,get:function(){return this.layout==="display-ad-layout-top-landscape-image"}}});
var LJ=KJ=DXb;KJ.prototype.onClick=KJ.prototype.onClick;KJ.prototype.onTap=KJ.prototype.onTap;KJ.prototype.dataChanged=KJ.prototype.dataChanged;LJ.VERTICAL_CAROUSEL_ITEM_IMAGE_WIDTH=135;
LJ.JSC$12338_CLICK_LOCATION_ID_MAP=_.x("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"]]);
LJ.JSC$12338_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.x("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"}];_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],LJ.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],LJ.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.H(_.NI),_.W("design:type",Object)],LJ.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],LJ.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.fJ.YtSparklesClickLocationBehavior),_.W("design:type",Object)],LJ.prototype,"ytSparklesClickLocationBehavior",void 0);_.U([_.H(KI),_.W("design:type",Object)],LJ.prototype,"ytdActiveViewBehavior",void 0);_.U([_.H([_.bH.YtActionHandlerBehavior]),_.W("design:type",Object)],LJ.prototype,"actionHandlerBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],LJ.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],LJ.prototype,"clickCommand",void 0);_.U([_.O({reflectToAttribute:!0,selector:_.Ep}),_.W("design:type",Boolean)],LJ.prototype,"miniMode",void 0);_.U([_.O(),_.W("design:type",String)],LJ.prototype,"iconType",void 0);_.U([_.K("data.titleText"),_.W("design:type",String),_.W("design:paramtypes",[])],LJ.prototype,"titleAriaLabel",null);
_.U([_.K("data.rating"),_.W("design:type",Object),_.W("design:paramtypes",[])],LJ.prototype,"getRating",null);_.U([_.K("data.price"),_.W("design:type",Object),_.W("design:paramtypes",[])],LJ.prototype,"getPrice",null);_.U([_.K("data.thirdLine"),_.W("design:type",Object),_.W("design:paramtypes",[])],LJ.prototype,"getThirdLine",null);_.U([_.K("data.fourthLine"),_.W("design:type",Object),_.W("design:paramtypes",[])],LJ.prototype,"getFourthLine",null);
_.U([_.K("data.fifthLine"),_.W("design:type",Object),_.W("design:paramtypes",[])],LJ.prototype,"getFifthLine",null);_.U([_.K("getRating"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],LJ.prototype,"computeRatingHidden",null);_.U([_.K("getPrice"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],LJ.prototype,"computePriceHidden",null);_.U([_.K("getThirdLine"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],LJ.prototype,"computeThirdLineHidden",null);
_.U([_.K("getFourthLine"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],LJ.prototype,"computeFourthLineHidden",null);_.U([_.K("getFifthLine"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],LJ.prototype,"computeFifthLineHidden",null);_.U([_.O({reflectToAttribute:!0}),_.K("data.energyIcon"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],LJ.prototype,"hasEnergyIcon",null);
_.U([_.K("computePriceHidden","computeRatingHidden"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],LJ.prototype,"computeSecondaryTextHidden",null);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],LJ.prototype,"standardizeIconSize",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],LJ.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],LJ.prototype,"noBottomMargin",void 0);
_.U([_.O({reflectToAttribute:!0}),_.K("data.layout"),_.W("design:type",String),_.W("design:paramtypes",[])],LJ.prototype,"layout",null);_.U([_.K("data.layout"),_.W("design:type",Object),_.W("design:paramtypes",[])],LJ.prototype,"mediaThumbnailWidth",null);_.U([_.K("layout"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],LJ.prototype,"useRoundedBadge",null);_.U([_.O(),_.W("design:type",String)],LJ.prototype,"thumbnailObjectFit",void 0);
_.U([_.O(),_.W("design:type",Object)],LJ.prototype,"thumbnailFitHeight",void 0);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],LJ.prototype,"dataChanged",null);_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],LJ.prototype,"onTap",null);_.U([_.M("click"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],LJ.prototype,"onClick",null);
LJ=KJ=_.U([_.Q({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],LJ);
_.S(LJ,"ytd-display-ad-renderer",function(){if(zXb!==void 0)return zXb;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return zXb=a},{mode:1});var EXb;var FXb;var GXb;var HXb=function(){var a=_.P.apply(this,arguments)||this;a.DEFAULT_TOOLTIP_OFFSET="10";a.TOOLTIP_OFFSET_NO_BANNER="-8";a.badges=null;a.noEndpoints=!1;a.wrapText=!1;a.forceVerified=!1;a.tooltipPosition="top";a.compactStyle=!1;a.height=0;a.lineHeight=0;return a};
_.z(HXb,_.P);_.f=HXb.prototype;_.f.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.f.attached=function(){var a=this;this.observer=new MutationObserver(function(b,c){a.handleResized();c.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.f.detached=function(){this.observer&&this.observer.disconnect()};
_.f.logTooltipEvent=function(){_.x("kevlar_wiz_tooltip_event_killswitch")||qPb||(_.zt("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),qPb=!0)};
_.f.handleWindowResized=function(){this.handleResized()};
_.f.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")))};
_.f.onHeightChanged=function(){if(this.verified){var a=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.Ei("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=a:this.textContainerEl.style.marginRight=a}};
_.f.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.Ei("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.f.handleResized=function(){var a=this;this.verified&&_.zk.addLowPriorityJob(function(){a.fitBackgroundToText();var b=getComputedStyle(a.hostElement).lineHeight;b&&(b=b.match(/\d+/))&&b.length&&(a.lineHeight=Number(b[0]));a.height=a.lineHeight&&!a.wrapText?a.lineHeight:a.textEl.offsetHeight})};
_.f.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var a=document.createRange(),b=_.E(this.textEl).children;b.length>0?a.selectNodeContents(b[0]):a.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(a.getBoundingClientRect().width)+"px"}};
_.f.computeChannelBadgeStyle=function(a){var b;if((a==null?0:(b=a.runs)==null?0:b.length)&&a.runs[0].textColor)return"--ytd-badge-icon-color:"+_.Bq(a.runs[0].textColor)+";"};
_.Vm.Object.defineProperties(HXb.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"?_.Up(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var a=this.get("badges.0.metadataBadgeRenderer.tooltip");if(a)return a}return _.Vp(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
var MJ=HXb;MJ.prototype.onLineHeightChanged=MJ.prototype.onLineHeightChanged;MJ.prototype.onHeightChanged=MJ.prototype.onHeightChanged;MJ.prototype.onChannelNameChanged=MJ.prototype.onChannelNameChanged;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],MJ.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],MJ.prototype,"badges",void 0);_.U([_.O(),_.W("design:type",Object)],MJ.prototype,"channelName",void 0);
_.U([_.O(),_.W("design:type",Object)],MJ.prototype,"noEndpoints",void 0);_.U([_.O(),_.W("design:type",Object)],MJ.prototype,"wrapText",void 0);_.U([_.O(),_.W("design:type",Object)],MJ.prototype,"forceVerified",void 0);_.U([_.O(),_.W("design:type",Object)],MJ.prototype,"tooltipPosition",void 0);_.U([_.O(),_.W("design:type",String)],MJ.prototype,"tooltip",void 0);_.U([_.O(),_.W("design:type",Boolean)],MJ.prototype,"hasChannelArt",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],MJ.prototype,"compactStyle",void 0);_.U([_.gr("#text-container"),_.W("design:type",HTMLElement)],MJ.prototype,"textContainerEl",void 0);_.U([_.gr("#text"),_.W("design:type",Object)],MJ.prototype,"textEl",void 0);_.U([_.gr("#verified-tooltip"),_.W("design:type",HTMLElement)],MJ.prototype,"verifiedTooltip",void 0);_.U([_.O(),_.W("design:type",Object)],MJ.prototype,"height",void 0);
_.U([_.O(),_.W("design:type",Object)],MJ.prototype,"lineHeight",void 0);_.U([_.O({reflectToAttribute:!0}),_.K("badges","forceVerified"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],MJ.prototype,"verified",null);_.U([_.K("badges","verified"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],MJ.prototype,"hideBadges",null);_.U([_.K("channelName"),_.W("design:type",Object),_.W("design:paramtypes",[])],MJ.prototype,"formattedName",null);
_.U([_.K("badges","verified","formattedName"),_.W("design:type",String),_.W("design:paramtypes",[])],MJ.prototype,"tooltipText",null);_.U([_.K("hasChannelArt"),_.W("design:type",String),_.W("design:paramtypes",[])],MJ.prototype,"tooltipOffset",null);_.U([_.N("channelName"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],MJ.prototype,"onChannelNameChanged",null);
_.U([_.N("height"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],MJ.prototype,"onHeightChanged",null);_.U([_.N("lineHeight","height"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],MJ.prototype,"onLineHeightChanged",null);MJ=_.U([_.Q({is:"ytd-channel-name",disableElementRegistration:!0})],MJ);
_.S(MJ,"ytd-channel-name",function(){if(GXb!==void 0)return GXb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-name--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" on-mouseover="logTooltipEvent" class="style-scope ytd-channel-name">\n  <div id="text-container" class="style-scope ytd-channel-name">\n    <yt-formatted-string id="text" ellipsis-truncate="[[!wrapText]]" link-inherit-color="" no-endpoints="[[noEndpoints]]" respect-lang-dir="" text="[[formattedName]]" title="" class="style-scope ytd-channel-name">\n    </yt-formatted-string>\n  </div>\n  <tp-yt-paper-tooltip fit-to-visible-bounds="" offset="[[tooltipOffset]]" position="[[tooltipPosition]]" class="style-scope ytd-channel-name">\n    [[tooltipText]]\n  </tp-yt-paper-tooltip>\n</div>\n<ytd-badge-supported-renderer badges="[[badges]]" hidden="[[hideBadges]]" style$="[[computeChannelBadgeStyle(formattedName)]]" class="style-scope ytd-channel-name">\n</ytd-badge-supported-renderer>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return GXb=a},{mode:_.as("kevlar_poly_si_batch_j036")?1:2});var NJ=function(){var a=_.P.apply(this,arguments)||this;a.standardizeIconSize=_.x("kevlar_system_icons");a.enableModernCommentBadges=_.x("enable_modern_comment_badges");return a};
_.z(NJ,_.P);NJ.prototype.basicPaletteChanged=function(){var a;(a=this.data.color)!=null&&a.basicColorPaletteData&&_.Gt(this.hostElement,this.data.color.basicColorPaletteData)};
NJ.prototype.colorChanged=function(){if(!this.enableModernCommentBadges){var a,b=this.get("basicColorPaletteData.backgroundColor",(a=this.data)==null?void 0:a.color),c;a=this.get("basicColorPaletteData.foregroundTitleColor",(c=this.data)==null?void 0:c.color);c={};b?(b=_.Bq(b),c["--ytd-author-comment-badge-background-color"]=b):(c["--ytd-author-comment-badge-icon-background-color"]="transparent",c["--ytd-author-comment-badge-background-color"]="transparent");a?(b=_.Bq(a),c["--ytd-author-comment-badge-name-color"]=
b,c["--ytd-author-comment-badge-icon-color"]=b):c["--ytd-author-comment-badge-name-color"]="var(--yt-spec-text-primary)";Object.keys(c).length>0&&_.dr(this.hostElement,c)}};
NJ.prototype.useFilledIcons=function(a){return _.x("kevlar_system_icons")&&(a==="CHECK_CIRCLE_THICK"||a==="OFFICIAL_ARTIST_BADGE")};
_.Vm.Object.defineProperties(NJ.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){return this.data.authorCreator||!!this.get("data.color.basicColorPaletteData.backgroundColor")}}});
var OJ=NJ;OJ.prototype.colorChanged=OJ.prototype.colorChanged;OJ.prototype.basicPaletteChanged=OJ.prototype.basicPaletteChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],OJ.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],OJ.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],OJ.prototype,"standardizeIconSize",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],OJ.prototype,"enableModernCommentBadges",void 0);_.U([_.O({reflectToAttribute:!0}),_.K("data.authorUnifiedVerified"),_.W("design:type",Object),_.W("design:paramtypes",[])],OJ.prototype,"verified",null);_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],OJ.prototype,"creator",null);
_.U([_.N("data.color.basicColorPaletteData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],OJ.prototype,"basicPaletteChanged",null);_.U([_.N("data.color"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],OJ.prototype,"colorChanged",null);OJ=_.U([_.Q({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],OJ);
_.S(OJ,"ytd-author-comment-badge-renderer",function(){if(FXb!==void 0)return FXb;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return FXb=a},{mode:1});var IXb;var JXb=function(){return _.P.apply(this,arguments)||this};
_.z(JXb,_.P);JXb.prototype.computeThumbnailWidth=function(a){if(a==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
var PJ=JXb;PJ.communityTabWidth=638;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],PJ.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],PJ.prototype,"data",void 0);_.U([_.O({computed:"computeIcon_(data.icon)"}),_.W("design:type",String)],PJ.prototype,"icon",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],PJ.prototype,"surface",void 0);
_.U([_.O({reflectToAttribute:!0,value:_.x("enable_shrink_image_size_on_web_posts_singleton")}),_.W("design:type",Boolean)],PJ.prototype,"searchSxsUx",void 0);PJ=_.U([_.Q({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],PJ);
_.S(PJ,"ytd-backstage-image-renderer",function(){if(IXb!==void 0)return IXb;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return IXb=a},{mode:1});var KXb;var LXb=function(){var a=_.P.apply(this,arguments)||this;a.isLoading=!1;a.selectedItemIndex=-1;return a};
_.z(LXb,_.P);_.f=LXb.prototype;_.f.computeIsChannelOwner=function(a){if(!a)return!0;a=a[0];return!(a&&(a.signinEndpoint||a.selectServiceEndpoint))};
_.f.computeIsImagePoll=function(a){return(a==null?void 0:a.type)==="POLL_TYPE_IMAGE"};
_.f.computeIsTotalVotesDisabled=function(a){return!(a==null?0:a.totalVotes)};
_.f.thumbnailSrc=function(a){var b,c,d,e;return(a==null?0:(b=a.thumbnails)==null?0:(c=b[0])==null?0:c.url)?_.Gd((d=a.thumbnails)==null?void 0:(e=d[0])==null?void 0:e.url):void 0};
_.f.progressWidth=function(a){return"width:"+(a?a*100:0)+"%;"};
_.f.textAreaWidth=function(a){return this.isImagePoll?null:"width:"+(a?a*100:0)+"%;"};
_.f.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.f.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var a=this.data.choices,b=0;b<a.length;b++)if(a[b].selected){this.selectedItemIndex=b;break}};
_.f.onPopupClosed=function(a,b){a=Number(this.pollVotes.selected);b.confirmed&&(this.selectChoice(a,!1),_.ho(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.f.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.f.onYtCommentPollRevert=function(a,b){b&&(this.selectChoice(b.selectedChoiceIndex,!0),this.set("data.totalVotes",b.totalVotes))};
_.f.onYtServiceRequestSent=function(a,b){if(b.actions)for(a=0;a<b.actions.length;a++){var c=b.actions[a];_.y(c,FE)&&this.set("data.totalVotes",_.y(c,FE).totalVotes)}};
_.f.onYtServiceRequestCompleted=function(a){var b=this.get("detail.data.actionResults.0.feedback",a);a=this.get("detail.data.actionResults.0.status",a);if(b==="FEEDBACK_DESELECT"||b==="FEEDBACK_SELECT")this.isLoading=!1,a==="STATUS_FAILED"?_.go(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.f.getEndpoint=function(a,b){return b===a?this.data.choices[b].deselectServiceEndpoint||null:this.data.choices[a].selectServiceEndpoint||null};
_.f.selectChoice=function(a,b){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var c=0;c<this.data.choices.length;c++){var d;if(a===this.selectedItemIndex){var e=!1;var g=d=null}else d=(e=c===a)?this.data.choices[c].voteRatioIfSelected:this.data.choices[c].voteRatioIfNotSelected,g=e?this.data.choices[c].votePercentageIfSelected:this.data.choices[c].votePercentageIfNotSelected;this.set("data.choices."+c+".voteRatio",d);
this.set("data.choices."+c+".votePercentage",g);this.set("data.choices."+c+".selected",e)}b||(this.isLoading=!0,(b=this.getEndpoint(a,this.selectedItemIndex))&&_.mo(this.hostElement,[b]));this.selectedItemIndex=this.selectedItemIndex===a?-1:a};
_.Vm.Object.defineProperties(LXb.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
var QJ=LXb;QJ.prototype.onYtServiceRequestCompleted=QJ.prototype.onYtServiceRequestCompleted;QJ.prototype.onYtServiceRequestSent=QJ.prototype.onYtServiceRequestSent;QJ.prototype.onYtCommentPollRevert=QJ.prototype.onYtCommentPollRevert;QJ.prototype.onPopupClosed=QJ.prototype.onPopupClosed;QJ.prototype.dataChanged=QJ.prototype.dataChanged;_.U([_.H(_.aE),_.W("design:type",Object)],QJ.prototype,"paperItemBehavior",void 0);
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],QJ.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.YH),_.W("design:type",Object)],QJ.prototype,"ytdOpenPopupBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],QJ.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],QJ.prototype,"isLoading",void 0);_.U([_.O({computed:"computeIsChannelOwner(data.choices)"}),_.W("design:type",Boolean)],QJ.prototype,"isChannelOwner",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.W("design:type",Boolean)],QJ.prototype,"isImagePoll",void 0);_.U([_.O({computed:"computeIsTotalVotesDisabled(data)"}),_.W("design:type",Boolean)],QJ.prototype,"isTotalVotesDisabled",void 0);_.U([_.O(),_.W("design:type",Object)],QJ.prototype,"previousPollInfo",void 0);_.U([_.O(),_.W("design:type",Object)],QJ.prototype,"selectedItemIndex",void 0);_.U([_.gr("#poll-votes"),_.W("design:type",Object)],QJ.prototype,"pollVotes",void 0);
_.U([_.K("isChannelOwner"),_.W("design:type",Object),_.W("design:paramtypes",[])],QJ.prototype,"endpointStyle",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],QJ.prototype,"dataChanged",null);_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],QJ.prototype,"onPopupClosed",null);
_.U([_.M("yt-comment-poll-revert"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],QJ.prototype,"onYtCommentPollRevert",null);_.U([_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Ot]),_.W("design:returntype")],QJ.prototype,"onYtServiceRequestSent",null);
_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],QJ.prototype,"onYtServiceRequestCompleted",null);QJ=_.U([_.Q({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],QJ);
_.S(QJ,"ytd-backstage-poll-renderer",function(){if(KXb!==void 0)return KXb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-poll-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="vote-info" hidden="[[isTotalVotesDisabled]]" text="[[data.totalVotes]]" class="style-scope ytd-backstage-poll-renderer">\n</yt-formatted-string>\n<tp-yt-paper-listbox id="poll-votes" on-iron-select="onPollChoiceSelected" class="style-scope ytd-backstage-poll-renderer">\n  <template is="dom-repeat" items="[[data.choices]]" class="style-scope ytd-backstage-poll-renderer">\n    <a id="sign-in" class$="[[endpointStyle]] style-scope ytd-backstage-poll-renderer" href$="[[computeHref_(item.signinEndpoint)]]" data="[[item.signinEndpoint]]" role="option">\n      <tp-yt-paper-item class="vote-choice style-scope ytd-backstage-poll-renderer" name="[[index]]" selected$="[[item.selected]]" show-percentage$="[[item.votePercentage]]">\n        <template is="dom-if" if="[[!isImagePoll]]" class="style-scope ytd-backstage-poll-renderer">\n          <tp-yt-paper-button class="check-icons style-scope ytd-backstage-poll-renderer" hidden="[[isChannelOwner]]">\n            <yt-icon hidden="[[item.selected]]" icon="radio-button-unchecked" class="style-scope ytd-backstage-poll-renderer"></yt-icon>\n            <yt-icon class="checked style-scope ytd-backstage-poll-renderer" hidden="[[!item.selected]]" icon="check-circle" default-to-filled="true"></yt-icon>\n          </tp-yt-paper-button>\n        </template>\n        <template is="dom-if" if="[[isImagePoll]]" class="style-scope ytd-backstage-poll-renderer">\n          <img class="choice-image style-scope ytd-backstage-poll-renderer" alt="" src$="[[thumbnailSrc(item.image)]]">\n        </template>\n        <div class="choice-info style-scope ytd-backstage-poll-renderer">\n          <div class="text-area style-scope ytd-backstage-poll-renderer">\n            <yt-formatted-string class="choice-text style-scope ytd-backstage-poll-renderer" text="[[item.text]]">\n            </yt-formatted-string>\n            <yt-formatted-string class="vote-percentage style-scope ytd-backstage-poll-renderer" hidden="[[!item.votePercentage]]" text="[[item.votePercentage]]">\n            </yt-formatted-string>\n          </div>\n          <div class="vote-percentage-area style-scope ytd-backstage-poll-renderer" style$="[[textAreaWidth(item.voteRatio)]]">\n          </div>\n          <div class="progress-bar style-scope ytd-backstage-poll-renderer" hidden="[[!item.votePercentage]]" style$="[[progressWidth(item.voteRatio)]]">\n          </div>\n        </div>\n      </tp-yt-paper-item>\n    </a>\n  </template>\n</tp-yt-paper-listbox>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return KXb=a},{mode:2});var MXb;var NXb={autoplay:!1,loop:!1},OXb={simpleText:""},PXb=function(){var a=_.P.apply(this,arguments)||this;a.isLoading=!1;a.usesPanelLockup=!1;a.selectedItemIndex=-1;a.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},NXb,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});a.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},NXb,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});a.correctnessAnimationProps=[];a.correctnessAnimationRefs=[];return a};
_.z(PXb,_.P);_.f=PXb.prototype;_.f.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.f.computeIsChannelOwner=function(a){if(!a)return!0;a=a[0];return!(a&&(a.signinEndpoint||a.selectServiceEndpoint))};
_.f.computeIsTotalVotesDisabled=function(a){return!(a==null?0:a.totalVotes)};
_.f.computeIsImageQuiz=function(a){return(a==null?void 0:a.type)==="POLL_TYPE_IMAGE"};
_.f.onExplanationChanged=function(){this.expander.reset()};
_.f.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var a=this.data.choices;if(a){this.maybeInitializeQuizLotties(a);for(var b=0;b<a.length;b++)if(a[b].isSelected||this.isChannelOwner&&a[b].isCorrect){this.selectedItemIndex=b;return}this.selectedItemIndex=-1}}};
_.f.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var a=this.selectedItemIndex,b=Number(this.quizVotes.selected);this.selectChoice(b);this.sendVoteAction(b,a);this.quizVotes.selected=-1;var c;a=!((c=this.data)==null?0:c.enableAnimation);this.maybePlayAnswerAnimations(a)}};
_.f.onYtCommentPollRevert=function(a,b){b&&(this.selectChoice(b.selectedChoiceIndex),this.set("data.totalVotes",b.totalVotes))};
_.f.onYtServiceRequestSent=function(a,b){if(b.actions)for(a=_.h(b.actions),b=a.next();!b.done;b=a.next())(b=_.y(b.value,FE))&&this.set("data.totalVotes",b.totalVotes)};
_.f.onYtServiceRequestCompleted=function(a){var b=this.get("detail.data.actionResults.0.feedback",a);a=this.get("detail.data.actionResults.0.status",a);if(b==="FEEDBACK_DESELECT"||b==="FEEDBACK_SELECT")this.isLoading=!1,a==="STATUS_FAILED"?_.go(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.f.getAnimationPropsForChoiceIndex=function(a,b){return b[a]};
_.f.maybePlayAnswerAnimations=function(a){a=a===void 0?!1:a;var b;if((b=this.data)!=null&&b.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){b=_.h(this.correctnessAnimationRefs);for(var c=b.next();!c.done;c=b.next()){var d=void 0,e=void 0;(d=c.value)==null||(e=d.lottieEl)==null||e.stop()}if(!(this.selectedItemIndex<0)){b=0;a&&(b=this.isCorrect?37:25);var g,k;(g=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(k=g.lottieEl)==null||k.goToAndPlay(a?b:0,!0);if(!(this.isCorrect||
(g=this.data.choices.findIndex(function(t){return t.isCorrect}),g<0))){var m,n;
(n=(m=this.correctnessAnimationRefs[g])==null?void 0:m.lottieEl)==null||n.goToAndPlay(37,!0);var r;m=(r=this.fadeContainers)==null?void 0:r.item(g);!a&&m&&this.fadeIn(m)}}}};
_.f.thumbnailSrc=function(a){var b,c,d,e;return(a==null?0:(b=a.thumbnails)==null?0:(c=b[0])==null?0:c.url)?_.Gd((d=a.thumbnails)==null?void 0:(e=d[0])==null?void 0:e.url):void 0};
_.f.a11yVotedText=function(a,b){var c,d,e=((c=this.data)==null?void 0:(d=c.correctVotedText)==null?void 0:d.simpleText)||"",g,k;c=((g=this.data)==null?void 0:(k=g.votedText)==null?void 0:k.simpleText)||"";if(!b)return"";var m,n;if((m=this.data)==null?0:(n=m.choices)==null?0:n[a].isCorrect)return e;var r,t;return((r=this.data)==null?0:(t=r.choices)==null?0:t[a].isSelected)?c:""};
_.f.getEndpoint=function(a,b){return b===a?this.data.choices[a].deselectServiceEndpoint||null:this.data.choices[a].selectServiceEndpoint||null};
_.f.sendVoteAction=function(a,b){if(a=this.getEndpoint(a,b))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(a)};
_.f.selectChoice=function(a){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var b=0;b<this.data.choices.length;b++)this.set("data.choices."+b+".isSelected",a===this.selectedItemIndex?!1:b===a);this.selectedItemIndex=this.selectedItemIndex===a?-1:a};
_.f.maybeInitializeQuizLotties=function(a){var b=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=a.map(function(c){return{animationConfig:c.isCorrect?b.baseCorrectLottiePlayerAnimationConfig:b.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){b.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(c){return c.animationRef||{}})};
_.f.fadeIn=function(a){a.classList.add("fade-in");_.at(_.zk,function(){a.classList.remove("fade-in")},900)};
_.Vm.Object.defineProperties(PXb.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.x("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.Vp(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 a,b;return((a=this.data)==null?void 0:(b=a.choices)==null?void 0:b.some(function(c){return c.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null||!a.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?OXb:this.data.choices[this.selectedItemIndex].explanation||OXb}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null||!a.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
var RJ=PXb;RJ.prototype.onYtServiceRequestCompleted=RJ.prototype.onYtServiceRequestCompleted;RJ.prototype.onYtServiceRequestSent=RJ.prototype.onYtServiceRequestSent;RJ.prototype.onYtCommentPollRevert=RJ.prototype.onYtCommentPollRevert;RJ.prototype.dataChanged=RJ.prototype.dataChanged;RJ.prototype.onExplanationChanged=RJ.prototype.onExplanationChanged;_.U([_.H(_.aE),_.W("design:type",Object)],RJ.prototype,"paperItemBehavior",void 0);
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],RJ.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],RJ.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.XG.YtTaskEmitterBehavior),_.W("design:type",Object)],RJ.prototype,"ytTaskEmitterBehavior",void 0);_.U([_.H(_.YH),_.W("design:type",Object)],RJ.prototype,"ytdOpenPopupBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],RJ.prototype,"data",void 0);
_.U([_.O(),_.W("design:type",Object)],RJ.prototype,"isLoading",void 0);_.U([_.O(),_.W("design:type",Object)],RJ.prototype,"usesPanelLockup",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.W("design:type",Boolean)],RJ.prototype,"isChannelOwner",void 0);_.U([_.O({computed:"computeIsTotalVotesDisabled(data)"}),_.W("design:type",Boolean)],RJ.prototype,"isTotalVotesDisabled",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.W("design:type",Boolean)],RJ.prototype,"isImageQuiz",void 0);_.U([_.O(),_.W("design:type",Object)],RJ.prototype,"previousQuizInfo",void 0);_.U([_.O(),_.W("design:type",Object)],RJ.prototype,"selectedItemIndex",void 0);_.U([_.O({reflectToAttribute:!0}),_.K("data","usesPanelLockup"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],RJ.prototype,"shouldUseModernUi",null);
_.U([_.hr(".fade-container"),_.W("design:type",Object)],RJ.prototype,"fadeContainers",void 0);_.U([_.O(),_.W("design:type",Array)],RJ.prototype,"correctnessAnimationProps",void 0);_.U([_.K("explanation","showCorrectAnswer"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],RJ.prototype,"showExplanation",null);_.U([_.K("isChannelOwner","isAttempted"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],RJ.prototype,"showCorrectAnswer",null);
_.U([_.K("isChannelOwner","isAttempted","data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],RJ.prototype,"isQuizAnsweringDisabled",null);_.U([_.K("isQuizAnsweringDisabled"),_.W("design:type",Object),_.W("design:paramtypes",[])],RJ.prototype,"endpointStyle",null);_.U([_.K("data","selectedItemIndex"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],RJ.prototype,"isAttempted",null);
_.U([_.K("data","selectedItemIndex"),_.W("design:type",Object),_.W("design:paramtypes",[])],RJ.prototype,"explanation",null);_.U([_.K("data","selectedItemIndex"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],RJ.prototype,"isCorrect",null);_.U([_.gr("ytd-expander"),_.W("design:type",Object)],RJ.prototype,"expander",void 0);_.U([_.gr("#quiz-votes"),_.W("design:type",Object)],RJ.prototype,"quizVotes",void 0);
_.U([_.N("explanation"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],RJ.prototype,"onExplanationChanged",null);_.U([_.N("data","isChannelOwner"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],RJ.prototype,"dataChanged",null);_.U([_.M("yt-comment-quiz-revert"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],RJ.prototype,"onYtCommentPollRevert",null);
_.U([_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Ot]),_.W("design:returntype")],RJ.prototype,"onYtServiceRequestSent",null);_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],RJ.prototype,"onYtServiceRequestCompleted",null);RJ=_.U([_.Q({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],RJ);
_.S(RJ,"ytd-backstage-quiz-renderer",function(){if(MXb!==void 0)return MXb;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return MXb=a},{mode:1});var QXb;var RXb=function(){return _.P.apply(this,arguments)||this};
_.z(RXb,_.P);var SJ=RXb;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],SJ.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],SJ.prototype,"data",void 0);SJ=_.U([_.Q({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],SJ);
_.S(SJ,"ytd-post-uploaded-video-renderer",function(){if(QXb!==void 0)return QXb;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return QXb=a},{mode:1});var SXb;var TXb=function(){return _.P.apply(this,arguments)||this};
_.z(TXb,_.P);TXb.prototype.useFilledIcons=function(a){return a==="SPONSORSHIP_STAR"};
var TJ=TXb;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],TJ.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],TJ.prototype,"data",void 0);TJ=_.U([_.Q({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],TJ);
_.S(TJ,"ytd-sponsors-only-badge-renderer",function(){if(SXb!==void 0)return SXb;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return SXb=a},{mode:1});var UXb;var VXb=function(){return _.P.apply(this,arguments)||this};
_.z(VXb,_.P);var UJ=VXb;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],UJ.prototype,"componentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],UJ.prototype,"data",void 0);UJ=_.U([_.Q({is:"ytd-child-video-renderer",disableElementRegistration:!0})],UJ);
_.S(UJ,"ytd-child-video-renderer",function(){if(UXb!==void 0)return UXb;var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return UXb=a},{mode:1});var WXb;var XXb;var YXb=function(){var a=_.P.apply(this,arguments)||this;a.size=0;a.enableWebModernCollectionsV2=_.x("web_modern_collections_v2");a.fallbackImageSize={height:void 0,width:9999};a.webModernCollections=!1;return a};
_.z(YXb,_.P);_.f=YXb.prototype;_.f.computeBlurredImageSize=function(a){return a?{height:a*2,width:a*2}:this.fallbackImageSize};
_.f.computeImageSize=function(a){return a?{height:a,width:a}:this.fallbackImageSize};
_.f.computeObjectFit=function(a){return a?"FILL":"CONTAIN"};
_.f.computePreserve=function(a){return a?!0:!1};
_.f.setBackground=function(){var a,b;_.x("web_modern_collections_v2")&&((a=this.data)==null?0:(b=a.thumbnail)==null?0:b.sampledThumbnailColor)&&(a=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+a.red+","+a.green+","+a.blue+",1)")};
var VJ=YXb;VJ.prototype.setBackground=VJ.prototype.setBackground;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],VJ.prototype,"ytRendererBehavior",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],VJ.prototype,"watchFeedThumbnail",void 0);_.U([_.O(),_.W("design:type",Object)],VJ.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],VJ.prototype,"size",void 0);
_.U([_.O({computed:"computeBlurredImageSize(size)"}),_.W("design:type",Object)],VJ.prototype,"blurredImageSize",void 0);_.U([_.O({computed:"computeImageSize(size)"}),_.W("design:type",Object)],VJ.prototype,"imageSize",void 0);_.U([_.O({computed:"computePreserve(size)"}),_.W("design:type",String)],VJ.prototype,"preserve",void 0);_.U([_.O({computed:"computeObjectFit(size)"}),_.W("design:type",String)],VJ.prototype,"objectFit",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],VJ.prototype,"enableWebModernCollectionsV2",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],VJ.prototype,"webModernCollections",void 0);_.U([_.N("data.thumbnail.sampledThumbnailColor"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],VJ.prototype,"setBackground",null);VJ=_.U([_.Q({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],VJ);
_.S(VJ,"ytd-playlist-custom-thumbnail-renderer",function(){if(XXb!==void 0)return XXb;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return XXb=a},{mode:1});var ZXb;var $Xb=function(){return _.P.apply(this,arguments)||this};
_.z($Xb,_.P);var WJ=$Xb;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],WJ.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],WJ.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Number)],WJ.prototype,"width",void 0);WJ=_.U([_.Q({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],WJ);
_.S(WJ,"ytd-playlist-video-thumbnail-renderer",function(){if(ZXb!==void 0)return ZXb;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return ZXb=a},{mode:1});var aYb;var bYb=function(){return _.P.apply(this,arguments)||this};
_.z(bYb,_.P);var XJ=bYb;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],XJ.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],XJ.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Number)],XJ.prototype,"width",void 0);XJ=_.U([_.Q({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],XJ);
_.S(XJ,"ytd-show-custom-thumbnail-renderer",function(){if(aYb!==void 0)return aYb;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return aYb=a},{mode:1});var cYb;var YJ=function(){return _.P.apply(this,arguments)||this};
_.z(YJ,_.P);YJ.prototype.useFilledIcons=function(a){return a==="MUSIC"||a==="COURSE"};
YJ.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=Dq(this.overlayColor,"0.8");else if(this.overlayColor){var a=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+a.red+","+a.green+","+a.blue+",0.8)"}};
_.Vm.Object.defineProperties(YJ.prototype,{overlayStyle:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.text||!this.data.icon)}},
overlayTextStyle:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.text||this.data.icon)}}});
var ZJ=YJ;ZJ.prototype.overlayColorChanged=ZJ.prototype.overlayColorChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],ZJ.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],ZJ.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],ZJ.prototype,"overlayColor",void 0);_.U([_.O({reflectToAttribute:!0}),_.K("data.icon","data.text"),_.W("design:type",Object),_.W("design:paramtypes",[])],ZJ.prototype,"overlayStyle",null);
_.U([_.O({reflectToAttribute:!0}),_.K("data.icon","data.text"),_.W("design:type",Object),_.W("design:paramtypes",[])],ZJ.prototype,"overlayTextStyle",null);_.U([_.N("overlayColor"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ZJ.prototype,"overlayColorChanged",null);ZJ=_.U([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],ZJ);
_.S(ZJ,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(cYb!==void 0)return cYb;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return cYb=a},{mode:1});var dYb;var eYb=function(){var a=_.P.apply(this,arguments)||this;a.active=!1;return a};
_.z(eYb,_.P);eYb.prototype.computeIsSpinnerHidden=function(a){return(a==null?void 0:a.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
eYb.prototype.computeOverlayIcon=function(a){return(a==null?void 0:a.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(a==null?void 0:a.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
var $J=eYb;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],$J.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],$J.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],$J.prototype,"active",void 0);$J=_.U([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],$J);
_.S($J,"ytd-thumbnail-overlay-downloading-renderer",function(){if(dYb!==void 0)return dYb;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return dYb=a},{mode:1});var fYb;var gYb=function(){return _.P.apply(this,arguments)||this};
_.z(gYb,_.P);_.Vm.Object.defineProperties(gYb.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
var aK=gYb;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],aK.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],aK.prototype,"data",void 0);_.U([_.K("data.text"),_.W("design:type",Object),_.W("design:paramtypes",[])],aK.prototype,"text",null);aK=_.U([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],aK);
_.S(aK,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(fYb!==void 0)return fYb;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return fYb=a},{mode:1});var hYb,iYb=function(){if(hYb!==void 0)return hYb;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return hYb=a};var jYb=function(){return _.P.apply(this,arguments)||this};
_.z(jYb,_.P);_.Vm.Object.defineProperties(jYb,{template:{configurable:!0,enumerable:!0,get:function(){return iYb()}}});
var kYb=jYb;_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],kYb.prototype,"animateEqualizer",void 0);kYb=_.U([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],kYb);_.S(kYb,"ytd-thumbnail-overlay-equalizer",iYb,{mode:1});var lYb;var mYb=function(){var a=_.P.apply(this,arguments)||this;a.nowPlayingBadge=_.x("web_now_playing_badge");a.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return a};
_.z(mYb,_.P);mYb.prototype.activeChanged=function(){var a=this;_.x("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.Tm(this,function(){_.go(a.hostElement,"yt-playlist-lockup-now-playing-active",a)})};
mYb.prototype.onMiniplayerPlayStateChanged=function(a){var b,c=(b=_.y(_.uF().currentEndpoint,_.Vn))==null?void 0:b.videoId;this.isVideoPlaying=a&&(_.x("web_limit_now_playing_animation_killswitch")||this.videoId===c)};
var bK=mYb;bK.prototype.activeChanged=bK.prototype.activeChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],bK.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],bK.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],bK.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Boolean)],bK.prototype,"isVideoPlaying",void 0);_.U([_.O(),_.W("design:type",String)],bK.prototype,"videoId",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],bK.prototype,"equalizerOnly",void 0);_.U([_.O(),_.W("design:type",Boolean)],bK.prototype,"isActive",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],bK.prototype,"nowPlayingBadge",void 0);_.U([_.N("isActive"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],bK.prototype,"activeChanged",null);
bK=_.U([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],bK);
_.S(bK,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(lYb!==void 0)return lYb;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return lYb=a},{mode:1});var nYb;var oYb=function(){return _.P.apply(this,arguments)||this};
_.z(oYb,_.P);var cK=oYb;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],cK.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],cK.prototype,"data",void 0);cK=_.U([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],cK);
_.S(cK,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(nYb!==void 0)return nYb;var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return nYb=a},{mode:_.as("kevlar_poly_si_batch_j025")?1:2});var pYb;var qYb=function(){return _.P.apply(this,arguments)||this};
_.z(qYb,_.P);qYb.prototype.onDurationChanged=function(){var a,b;_.E(this.hostElement).querySelector("#progress").style.width=((b=(a=this.data)==null?void 0:a.percentDurationWatched)!=null?b:0)+"%"};
var dK=qYb;dK.prototype.onDurationChanged=dK.prototype.onDurationChanged;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],dK.prototype,"componentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],dK.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],dK.prototype,"isLive",void 0);_.U([_.N("data.percentDurationWatched"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],dK.prototype,"onDurationChanged",null);
dK=_.U([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],dK);
_.S(dK,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(pYb!==void 0)return pYb;var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return pYb=a},{mode:1});var rYb;var sYb=function(){var a=_.P.apply(this,arguments)||this;a.bottomPanel=!1;a.richGridOverlay=!1;a.watchFeedOverlay=!1;a.isCompact=!1;return a};
_.z(sYb,_.P);sYb.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.Vm.Object.defineProperties(sYb.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.data)==null?void 0:(b=a.icon)==null?void 0:b.iconType)==="PLAY_ALL"&&_.x("kevlar_system_icons")}}});
var eK=sYb;eK.prototype.widthChanged=eK.prototype.widthChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],eK.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],eK.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Number)],eK.prototype,"width",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],eK.prototype,"bottomPanel",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],eK.prototype,"richGridOverlay",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],eK.prototype,"watchFeedOverlay",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],eK.prototype,"isCompact",void 0);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],eK.prototype,"isIconFilled",null);_.U([_.N("width","watchFeedOverlay"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],eK.prototype,"widthChanged",null);
eK=_.U([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],eK);
_.S(eK,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(rYb!==void 0)return rYb;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return rYb=a},{mode:1});var tYb;var uYb=["CLIP","SHORTS"],vYb=function(){var a=_.P.apply(this,arguments)||this;a.animated=_.x("animated_live_badge_icon");a.hasIcon=!1;a.updateTimerIntervalId=0;a.timeSinceLive=0;return a};
_.z(vYb,_.P);_.f=vYb.prototype;_.f.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.f.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.f.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.f.hasIconOrText=function(){var a,b;return!!(((a=this.data)==null?0:a.icon)||((b=this.data)==null?0:b.text))};
_.f.initializeLiveBadgeTimer=function(){var a=this,b,c=(b=this.liveBadgeData)==null?void 0:b.startTimestampSec;if(c&&this.canShowLiveBadgeTimer()){var d;b=Number((d=this.liveBadgeData)==null?void 0:d.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(c);this.updateTimerIntervalId=_.ej(function(){a.canShowLiveBadgeTimer()?a.timeSinceLive++:(a.timeSinceLive=0,window.clearInterval(a.updateTimerIntervalId))},b)}else this.timeSinceLive=0};
_.f.canShowLiveBadgeTimer=function(){var a=Date.now(),b,c;return a<(Number((b=this.liveBadgeData)==null?void 0:b.endTimestampSec)-1)*1E3&&a>Number((c=this.liveBadgeData)==null?void 0:c.startTimestampSec)*1E3};
_.Vm.Object.defineProperties(vYb.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var a=this.data;var b=this.timeSinceLive;var c,d,e,g;a:{var k=a.style;if(k===void 0)k=16;else switch(k){case "LIVE":k=17;break a;default:k=16}}b={type:k,text:b?IFa({seconds:b}):_.Vp(a.text),accessibilityText:(c=a.text)==null?void 0:(d=c.accessibility)==null?void 0:(e=d.accessibilityData)==null?void 0:e.label,icon:(g=a.icon)==null?void 0:g.iconType}}else b={};return b}},
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 a;return(a=this.data)==null?void 0:a.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 uYb.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
var fK=vYb;fK.prototype.initializeLiveBadgeTimer=fK.prototype.initializeLiveBadgeTimer;fK.prototype.dataChanged=fK.prototype.dataChanged;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],fK.prototype,"componentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],fK.prototype,"data",void 0);_.U([_.O({computed:"computeIcon_(data.icon)"}),_.W("design:type",String)],fK.prototype,"icon",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],fK.prototype,"animated",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.W("design:type",Boolean)],fK.prototype,"hideTimeStatus",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],fK.prototype,"hasIcon",void 0);_.U([_.O(),_.W("design:type",Object)],fK.prototype,"timeSinceLive",void 0);_.U([_.K("data","timeSinceLive"),_.W("design:type",Object),_.W("design:paramtypes",[])],fK.prototype,"badgeShapeData",null);
_.U([_.K("data","overlayType"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],fK.prototype,"hideBadgeShape",null);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],fK.prototype,"dataChanged",null);_.U([_.O({reflectToAttribute:!0}),_.K("data.style"),_.W("design:type",Object),_.W("design:paramtypes",[])],fK.prototype,"overlayStyle",null);
_.U([_.K("data.liveBadgeData"),_.W("design:type",Object),_.W("design:paramtypes",[])],fK.prototype,"liveBadgeData",null);_.U([_.O({reflectToAttribute:!0}),_.K("data.type"),_.W("design:type",Object),_.W("design:paramtypes",[])],fK.prototype,"overlayType",null);_.U([_.K("overlayType","overlayStyle"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],fK.prototype,"useFilledIcon",null);
_.U([_.kr("liveBadgeData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],fK.prototype,"initializeLiveBadgeTimer",null);fK=_.U([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],fK);
_.S(fK,"ytd-thumbnail-overlay-time-status-renderer",function(){if(tYb!==void 0)return tYb;var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return tYb=a},{mode:_.as("kevlar_poly_si_batch_j035")?1:2});var wYb;var gK=function(){return _.P.apply(this,arguments)||this};
_.z(gK,_.P);gK.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"}}}}};
gK.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(a){if(this.hasPlaybackProgressBar)return{percentDurationWatched:a.percentDurationWatched}};
gK.prototype.computeHasPlaybackProgressBar=function(a){return!!a.percentDurationWatched&&a.percentDurationWatched>0};
var hK=gK;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],hK.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],hK.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],hK.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.W("design:type",Boolean)],hK.prototype,"hasPlaybackProgressBar",void 0);
hK=_.U([_.Q({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],hK);
_.S(hK,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(wYb!==void 0)return wYb;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return wYb=a},{mode:1});var xYb;_.am(nXa);var yYb=_.Rr(function(a){var b=a.data;var c=a.children;var d=function(){return!!b().doubleStack};
return _.q("yt-collections-stack",{class:"collections-stack-wiz",hidden:function(){return!b().experimentEnabled}},_.q(_.oi,{cond:b,
then:function(){return _.q("div",null,_.q(_.oi,{cond:d,then:function(){var e={};return _.q("div",{class:_.jt("collections-stack-wiz__collection-stack2",function(){return b().customClassName2ndStack},(e["collections-stack-wiz__collection-stack2--responsive-mode"]=function(){return b().enableResponsiveMode},e)),
style:_.rt({"background-color":function(){return lXa(b())}})})}}),_.q("div",{class:_.jt("collections-stack-wiz__collection-stack1",function(){return b().customClassName1stStack},function(){return mXa(b().thumbnailSize?b().thumbnailSize:"medium")}),
style:_.rt({"background-color":function(){return lXa(b())}})}),c)}}))});_.Ws(yYb,"yt-collections-stack",{props:{data:_.SG}});var zYb=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};a.webModernCollections=!1;a.isSearch=!1;a.isDoubleStack=!1;a.thumbnailSize="medium";a.enableWebModernCollectionsV2=_.x("web_modern_collections_v2");return a};
_.z(zYb,_.P);_.f=zYb.prototype;
_.f.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]]"}}}}}};
_.f.getThumbnailDetails=function(a){if(a!=null&&a.thumbnailRenderer){var b=a.thumbnailRenderer,c;if((c=b.playlistVideoThumbnailRenderer)==null?0:c.thumbnail)return b.playlistVideoThumbnailRenderer.thumbnail;var d;if((d=b.playlistCustomThumbnailRenderer)==null?0:d.thumbnail)return b.playlistCustomThumbnailRenderer.thumbnail;a=a.thumbnailRenderer;var e;if((e=a.showCustomThumbnailRenderer)==null?0:e.thumbnail)return a.showCustomThumbnailRenderer.thumbnail}};
_.f.computeOverlayColor=function(a){var b,c;if((b=this.getThumbnailDetails(a))==null?0:(c=b.darkColorPalette)==null?0:c.section2Color)return this.getThumbnailDetails(a).darkColorPalette.section2Color;var d;return(d=this.getThumbnailDetails(a))==null?void 0:d.sampledThumbnailColor};
_.f.computeWebModernCollections=function(a){if(a==null||!a.thumbnailOverlays)return!1;a=_.h(a.thumbnailOverlays);for(var b=a.next();!b.done;b=a.next()){var c=void 0;if((c=b.value)==null?0:c.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.f.computeNavigationEndpoint=function(a){return qDa(a==null?void 0:a.navigationEndpoint)};
_.Vm.Object.defineProperties(zYb.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var a=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:a==null?void 0:a.sampledThumbnailColor,vibrantColorPalette:a==null?void 0:a.vibrantColorPalette,darkColorPalette:a==null?void 0:a.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
var iK=zYb;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],iK.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],iK.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(oVb),_.W("design:type",Object)],iK.prototype,"ytdThumbnailBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],iK.prototype,"componentBehavior",void 0);
_.U([_.O({value:!1}),_.W("design:type",Boolean)],iK.prototype,"watchFeedThumbnail",void 0);_.U([_.O(),_.W("design:type",Number)],iK.prototype,"customThumbnailSize",void 0);_.U([_.O({value:!0}),_.W("design:type",Boolean)],iK.prototype,"hideAria",void 0);_.U([_.O(),_.W("design:type",Object)],iK.prototype,"data",void 0);_.U([_.O({computed:"computeOverlayColor(data)"}),_.W("design:type",Object)],iK.prototype,"overlayColor",void 0);
_.U([_.O({computed:"computeWebModernCollections(data)"}),_.W("design:type",Object)],iK.prototype,"webModernCollections",void 0);_.U([_.O({computed:"computeNavigationEndpoint(data)"}),_.W("design:type",Object)],iK.prototype,"computedNavigationEndpoint",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],iK.prototype,"isSearch",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],iK.prototype,"isDoubleStack",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],iK.prototype,"thumbnailSize",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],iK.prototype,"enableWebModernCollectionsV2",void 0);_.U([_.K("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.W("design:type",Object),_.W("design:paramtypes",[])],iK.prototype,"collectionStack",null);iK=_.U([_.Q({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],iK);
_.S(iK,"ytd-playlist-thumbnail",function(){if(xYb!==void 0)return xYb;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return xYb=a},{mode:_.as("kevlar_poly_si_batch_j025")?1:2});var AYb;var BYb=function(){var a=_.P.apply(this,arguments)||this;a.noEndpoints=!1;a.amsterdamPostMvp=_.x("web_amsterdam_post_mvp_playlists");a.badges=[];a.transferState="TRANSFER_STATE_UNKNOWN";return a};
_.z(BYb,_.P);_.f=BYb.prototype;_.f.getMetadata=function(a){if(!a)return[];var b=[],c=a.shortViewCountText||a.viewCountText;c&&b.push(_.Vp(c));a.publishedTimeText&&b.push(_.Vp(a.publishedTimeText));a.upcomingEventData&&a.upcomingEventData.upcomingEventText&&b.push(_.Ku(_.Vp(a.upcomingEventData.upcomingEventText),Number(a.upcomingEventData.startTime)));return b};
_.f.observeDataForBylineSeparator=function(){this.data&&_.$q(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.f.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.Bq(this.metadataColor)};
_.f.getSimpleString=function(a){return _.Vp(a)};
_.f.isBylineHidden=function(a){return this.noByline||!((a==null?0:a.longBylineText)||(a==null?0:a.shortBylineText))};
_.f.isMetadataHidden=function(a){var b;return((b=this.getMetadata(a))==null?void 0:b.length)===0};
_.f.isBylineMetadataSeparatorHidden=function(a){return this.isMetadataHidden(a)||!this.shouldShowVideoInfo};
_.f.isLongByline=function(a,b){return b&&!(a==null||!a.longBylineText)};
_.Vm.Object.defineProperties(BYb.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var a;return this.amsterdamPostMvp&&!((a=this.data)==null||!a.videoInfo)}},
inlineBadgeClass:{configurable:!0,enumerable:!0,get:function(){return this.badges&&this.badges.length>0?"metadata-line-with-badge":""}},
longBylineClass:{configurable:!0,enumerable:!0,get:function(){return this.longByline?"long-byline":""}},
bylineText:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.longByline?this.data.longBylineText:this.data.shortBylineText}},
watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.x("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
var oK=BYb;oK.prototype.metadataColorChanged=oK.prototype.metadataColorChanged;oK.prototype.observeDataForBylineSeparator=oK.prototype.observeDataForBylineSeparator;_.U([_.H(_.LI),_.W("design:type",Object)],oK.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],oK.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],oK.prototype,"noEndpoints",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],oK.prototype,"isSlimShort",void 0);
_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],oK.prototype,"radioMeta",void 0);_.U([_.O({selector:_.Lu}),_.W("design:type",Object)],oK.prototype,"isGridViewEnabled",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],oK.prototype,"richMeta",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],oK.prototype,"amsterdamPostMvp",void 0);_.U([_.O(),_.W("design:type",Boolean)],oK.prototype,"noByline",void 0);
_.U([_.O({computed:"isLongByline(data, radioMeta)"}),_.W("design:type",Boolean)],oK.prototype,"longByline",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],oK.prototype,"truncateMetadataLine",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],oK.prototype,"miniMode",void 0);_.U([_.O(),_.W("design:type",Number)],oK.prototype,"metadataColor",void 0);_.U([_.O(),_.W("design:type",Array)],oK.prototype,"badges",void 0);
_.U([_.O({selector:_.Jp,selectorArgs:["data.videoId"]}),_.W("design:type",String)],oK.prototype,"transferState",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],oK.prototype,"isDownloading",void 0);_.U([_.gr("#metadata-line"),_.W("design:type",HTMLElement)],oK.prototype,"metadataLine",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],oK.prototype,"observeDataForBylineSeparator",null);
_.U([_.N("metadataColor"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],oK.prototype,"metadataColorChanged",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],oK.prototype,"shouldShowVideoInfo",null);_.U([_.K("badges"),_.W("design:type",String),_.W("design:paramtypes",[])],oK.prototype,"inlineBadgeClass",null);_.U([_.K("longByline"),_.W("design:type",String),_.W("design:paramtypes",[])],oK.prototype,"longBylineClass",null);
_.U([_.K("data","longByline"),_.W("design:type",Object),_.W("design:paramtypes",[])],oK.prototype,"bylineText",null);_.U([_.K("isGridViewEnabled","data"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],oK.prototype,"watchFeedBigThumbs",null);oK=_.U([_.Q({is:"ytd-video-meta-block",disableElementRegistration:!0})],oK);
_.S(oK,"ytd-video-meta-block",function(){if(AYb!==void 0)return AYb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-meta-block--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="metadata" class="style-scope ytd-video-meta-block">\n  <div id="byline-container" hidden="[[isBylineHidden(data, radioMeta)]]" class="style-scope ytd-video-meta-block">\n    <ytd-channel-name id="channel-name" class$="[[longBylineClass]] style-scope ytd-video-meta-block" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" no-endpoints="[[noEndpoints]]" wrap-text="[[longByline]]">\n    </ytd-channel-name>\n    <div id="separator" class="style-scope ytd-video-meta-block">\u2022</div>\n    <yt-formatted-string id="video-info" hidden="[[!shouldShowVideoInfo]]" text="[[data.videoInfo]]" class="style-scope ytd-video-meta-block">\n  </yt-formatted-string>\n  </div>\n  <div id="metadata-line" class="style-scope ytd-video-meta-block">\n    \n    <ytd-badge-supported-renderer class="inline-metadata-badge style-scope ytd-video-meta-block" badges="[[badges]]" hidden="[[!badges.length]]">\n    </ytd-badge-supported-renderer>\n    <div id="separator" hidden="[[isBylineMetadataSeparatorHidden(data)]]" class="style-scope ytd-video-meta-block">\u2022</div>\n    <template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-video-meta-block">\n      <span class="inline-metadata-item style-scope ytd-video-meta-block">[[item]]</span>\n    </template>\n  </div>\n</div>\n<div id="additional-metadata-line" class="style-scope ytd-video-meta-block">\n  <template is="dom-repeat" items="[[data.additionalMetadatas]]" class="style-scope ytd-video-meta-block"><span class="style-scope ytd-video-meta-block">[[getSimpleString(item)]]</span></template>\n</div>\n\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return AYb=a},{mode:_.as("kevlar_poly_si_batch_j080")?1:2});_.It("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var CYb=function(){var a=_.P.apply(this,arguments)||this;a.displayItemCount=2;a.isBackstagePlaylist=!1;a.isPostCompactPlaylist=!1;a.shouldShowChannelThumbnail=!1;a.useModernCollectionsV2=_.x("web_modern_collections_v2");return a};
_.z(CYb,_.P);_.f=CYb.prototype;_.f.computeFirstVideos=function(a,b){return a===void 0||b===void 0?[]:a.slice(0,b)};
_.f.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var a=this.data.thumbnailRenderer;a.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",a.playlistVideoThumbnailRenderer.thumbnail);a.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",a.playlistCustomThumbnailRenderer.thumbnail)}};
_.f.computeThumbnailHeight=function(a,b,c,d,e){return d?e==="BIG"?280:e==="MASSIVE"?337:234:c?240:b?72:a?118:138};
_.f.computeThumbnailWidth=function(a,b,c,d,e){return d?e==="MEDIUM"?450:e==="BIG"?500:e==="MASSIVE"?600:420:c?360:b?128:a?210:246};
_.f.computeUseBiggerThumbs=function(a){return a&&_.x("enable_desktop_search_bigger_thumbs")};
_.f.computeShouldShowChannelThumbnail=function(a,b){return a&&!(b==null||!b.channelThumbnail)};
_.Vm.Object.defineProperties(CYb.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
var pK=CYb;pK.prototype.dataChanged=pK.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],pK.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.VI),_.W("design:type",Object)],pK.prototype,"ytdLockupBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],pK.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],pK.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],pK.prototype,"displayItemCount",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],pK.prototype,"isBackstagePlaylist",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],pK.prototype,"isPostCompactPlaylist",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],pK.prototype,"isSearch",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.W("design:type",Boolean)],pK.prototype,"useBiggerThumbs",void 0);_.U([_.O({reflectToAttribute:!0,value:function(){return _.aj("desktop_search_bigger_thumbs_style")}}),
_.W("design:type",String)],pK.prototype,"biggerThumbsStyle",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],pK.prototype,"isDownloads",void 0);_.U([_.O({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.W("design:type",Object)],pK.prototype,"shouldShowChannelThumbnail",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],pK.prototype,"useModernCollectionsV2",void 0);
_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],pK.prototype,"dataChanged",null);_.U([_.K("isSearch"),_.W("design:type",String),_.W("design:paramtypes",[])],pK.prototype,"stackThumbnailSize",null);pK=_.U([_.Q({is:"ytd-playlist-renderer",disableElementRegistration:!0})],pK);
_.S(pK,"ytd-playlist-renderer",function(){if(WXb===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);WXb=a}a=WXb;return a},{mode:1});var DYb;var EYb;var qK=function(){var a=_.P.apply(this,arguments)||this;a.collections=!!_.x("web_modern_collections_v2");a.startX=0;return a};
_.z(qK,_.P);qK.prototype.onEndpointMouseDown=function(a){this.startX=a.clientX};
qK.prototype.onEndpointClick=function(a){this.startX!==a.clientX&&(a.preventDefault(),a.stopPropagation())};
qK.prototype.computeObjectFit=function(a){return a==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||a==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||a==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
qK.prototype.computeCardStyle=function(a){return a?a.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.Vm.Object.defineProperties(qK.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var a,b;return this.collections&&((a=this.data)==null?void 0:(b=a.searchRefinementCardRendererStyle)==null?void 0:b.value)==="CARD_RENDERER_STYLE_TYPE_ALBUM_CARD"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){return this.isAlbumCard?{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,customClassName1stStack:"collection-stack-1 style-scope "+this.is}:{experimentEnabled:!1}}}});
var rK=qK;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],rK.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],rK.prototype,"data",void 0);_.U([_.O({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.W("design:type",Number)],rK.prototype,"objectFit",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.W("design:type",String)],rK.prototype,"cardStyle",void 0);
_.U([_.O({reflectToAttribute:!0,value:!0}),_.W("design:type",Boolean)],rK.prototype,"roundContainer",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],rK.prototype,"collections",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],rK.prototype,"isAlbumCard",null);_.U([_.K("data","collections","isAlbumCard"),_.W("design:type",Object),_.W("design:paramtypes",[])],rK.prototype,"collectionStack",null);
rK=_.U([_.Q({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],rK);
_.S(rK,"ytd-search-refinement-card-renderer",function(){if(EYb!==void 0)return EYb;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return EYb=a},{mode:1});var FYb;var GYb=function(){var a=_.P.apply(this,arguments)||this;a.isRichGrid=!1;return a};
_.z(GYb,_.P);var sK=GYb;_.U([_.O(),_.W("design:type",Object)],sK.prototype,"data",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],sK.prototype,"componentBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],sK.prototype,"ytdReduxBehavior",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],sK.prototype,"isRichGrid",void 0);_.U([_.O({reflectToAttribute:!0,selector:_.Ep}),_.W("design:type",Boolean)],sK.prototype,"miniMode",void 0);
sK=_.U([_.Q({is:"ytd-game-details-renderer",disableElementRegistration:!0})],sK);
_.S(sK,"ytd-game-details-renderer",function(){if(FYb!==void 0)return FYb;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return FYb=a},{mode:1});var HYb;var IYb;var JYb=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return a};
_.z(JYb,_.P);_.f=JYb.prototype;_.f.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.f.currentStateData=function(a){var b=a||this.data;return b&&b.states&&b.currentStateId!=null?b.states.find(function(c){return c.stateId===b.currentStateId})||null:null};
_.f.currentStateRendererData=function(a){return(a=this.currentStateData(a))&&a.state&&a.state.buttonRenderer?a.state.buttonRenderer:null};
_.f.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())};
_.f.computeButtonIcon=function(a){a=this.currentStateRendererData(a);var b;return(a==null?0:(b=a.icon)==null?0:b.iconType)?a.icon.iconType.toLowerCase():null};
_.f.computeAccessibility=function(a){return(a=this.currentStateRendererData(a))&&a.accessibilityData?a.accessibilityData.accessibilityData||null:null};
_.f.computeButtonClass=function(a){var b=this.currentStateRendererData(a);if(!b)return"";a="";var c=b.style;c&&(a+=c.toLowerCase().replace(/_/g,"-")+" ");(b=b.size)&&(a+=b.toLowerCase().replace(/_/g,"-")+" ");return a.trim()};
_.f.computeServiceEndpoint=function(a){if(!a)return null;var b=a&&a.serviceEndpoint,c=this.get("command.commandMetadata.webCommandMetadata.sendPost",a);return b?b:c&&a.command?a.command:null};
_.f.computeBellMenuItemParams=function(a){var b;a=(b=_.y(a==null?void 0:a.command,_.po))==null?void 0:b.commands;if(!a||a.length===0)return null;b=_.y(a[0],_.GE);var c,d;return(b==null?0:(c=b.popup)==null?0:(d=c.menuPopupRenderer)==null?0:d.items)?b.popup.menuPopupRenderer.items.map(function(e){return e.menuServiceItemRenderer.trackingParams}):null};
_.f.handleBellMenuOpenSelectedAction=function(a){var b=a.trackingParams,c=this.computeBellMenuItemParams(this.data);this.data&&b&&c&&c.includes(b)&&this.ytRenderButtonBehavior._setButtonIcon(a.icon.iconType.toLowerCase())};
_.f.onYtServiceRequestCompleted=function(a,b){(a=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",b))&&this.set("data",a)};
_.f.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.f.resetState=function(){this.set("data.currentStateId",3)};
_.f.onYtButtonTapHandler=function(){if(this.data){var a=this.currentStateRendererData(this.data);a&&this.ytRendererBehavior.logExplicitClick(a)}};
var tK=JYb;tK.prototype.onYtServiceRequestError=tK.prototype.onYtServiceRequestError;tK.prototype.onYtServiceRequestCompleted=tK.prototype.onYtServiceRequestCompleted;tK.prototype.stateChanged=tK.prototype.stateChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],tK.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],tK.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.H(rH.YtRenderButtonBehavior),_.W("design:type",Object)],tK.prototype,"ytRenderButtonBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],tK.prototype,"data",void 0);_.U([_.kr("data","data.currentStateId"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],tK.prototype,"stateChanged",null);
_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Wt]),_.W("design:returntype")],tK.prototype,"onYtServiceRequestCompleted",null);_.U([_.M("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],tK.prototype,"onYtServiceRequestError",null);tK=_.U([_.Q({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],tK);
_.S(tK,"ytd-subscription-notification-toggle-button-renderer",function(){if(IYb!==void 0)return IYb;var a=document.createElement("template");_.B(a,"\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");a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return IYb=a},{mode:1});var KYb;var LYb=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};a.tapHandler=function(){if(a.data){var b=a.currentStateRendererData();b&&a.ytRendererBehavior.logExplicitClick(b)}};
return a};
_.z(LYb,_.P);_.f=LYb.prototype;_.f.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.f.currentStateData=function(){var a=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(b){return b.stateId===a.data.currentStateId})||null:null};
_.f.currentStateRendererData=function(){var a=this.currentStateData();return a&&a.state&&a.state.buttonRenderer?a.state.buttonRenderer:null};
_.f.computeAccessibilityLabel=function(){var a,b,c;return(a=this.currentStateRendererData())==null?void 0:(b=a.accessibilityData)==null?void 0:(c=b.accessibilityData)==null?void 0:c.label};
_.f.computeBellMenuItemParams=function(){var a,b,c=(b=_.y((a=this.data)==null?void 0:a.command,_.po))==null?void 0:b.commands;if(!c||c.length===0)return null;a=_.y(c[0],_.GE);var d,e;return(a==null?0:(d=a.popup)==null?0:(e=d.menuPopupRenderer)==null?0:e.items)?a.popup.menuPopupRenderer.items.map(function(g){return g.menuServiceItemRenderer.trackingParams}):null};
_.f.handleBellMenuOpenSelectedAction=function(a){var b=a.trackingParams,c=this.computeBellMenuItemParams();if(this.data&&b&&c&&c.includes(b)&&(a==null||!a.isDisabled)){var d;((d=_.y(a.serviceEndpoint,_.ro))==null?void 0:d.signal)!=="CLIENT_SIGNAL"&&(this.icon=a.icon.iconType)}};
_.f.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.f.onYtServiceRequestCompleted=function(a,b){if(a=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",b))this.icon=void 0,this.set("data",a)};
_.f.onYtServiceRequestError=function(){this.icon=void 0};
_.Vm.Object.defineProperties(LYb.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var a=this.data,b=this.textLabel,c=this.hostElement,d=this.computeAccessibilityLabel(),e=this.tapHandler,g=this.isOverlay?"overlay":"mono",k=(a==null?0:a.disableButton)?"disabled":"active";b=b?_.As(b):void 0;return{style:g,type:"tonal",state:k,size:"M",focused:!1,formattedButtonText:b,iconPosition:"leading-trailing",onTap:qXa(a,e,c),accessibilityLabel:d}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var a=this.currentStateRendererData(),b,c,d=(c=this.icon)!=null?c:a==null?void 0:(b=a.icon)==null?void 0:b.iconType;if(d)return _.fs(d)}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var a,b,c=(a=this.data)==null?void 0:(b=a.secondaryIcon)==null?void 0:b.iconType;if(c)return _.fs(c)}}});
var uK=LYb;uK.prototype.onYtServiceRequestError=uK.prototype.onYtServiceRequestError;uK.prototype.onYtServiceRequestCompleted=uK.prototype.onYtServiceRequestCompleted;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],uK.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],uK.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],uK.prototype,"data",void 0);
_.U([_.O(),_.W("design:type",Object)],uK.prototype,"textLabel",void 0);_.U([_.O(),_.W("design:type",String)],uK.prototype,"icon",void 0);_.U([_.O(),_.W("design:type",Boolean)],uK.prototype,"isOverlay",void 0);_.U([_.K("data.*"),_.W("design:type",Object),_.W("design:paramtypes",[])],uK.prototype,"computedButtonShape",null);_.U([_.K("data.*","icon"),_.W("design:type",Object),_.W("design:paramtypes",[])],uK.prototype,"computedIcon",null);
_.U([_.K("data.*"),_.W("design:type",Object),_.W("design:paramtypes",[])],uK.prototype,"computedSecondaryIcon",null);_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Wt]),_.W("design:returntype")],uK.prototype,"onYtServiceRequestCompleted",null);_.U([_.M("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],uK.prototype,"onYtServiceRequestError",null);
uK=_.U([_.Q({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],uK);_.S(uK,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(KYb!==void 0)return KYb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return KYb=a},{mode:_.as("kevlar_poly_si_batch_j081")?1:2});var MYb;_.dt(OVa,"yt-animated-action",{propNames:["backgroundLottieRef","foregroundLottieRef"]});var NYb=function(){var a=_.P.apply(this,arguments)||this;a.animatedActionEnabled=_.x("web_animated_actions");a.foregroundLottieRef={};a.backgroundLottieRef={};a.forceIconOnly=!1;a.keyboardFocused=!1;a.isAnimating=!1;a.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return a};
_.z(NYb,_.P);_.f=NYb.prototype;
_.f.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]]"}}}}}};
_.f.attached=function(){this.keyboardFocused=!1};
_.f.onYtServiceRequestSent=function(a,b){(this.get("endpoint.subscribeEndpoint",b)||this.get("endpoint.unsubscribeEndpoint",b))&&this.updateSubscriptionState(!this.subscribed)};
_.f.onYtServiceRequestCompleted=function(a,b){(a=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",b.data))&&this.bellButton&&(this.bellButton.data=a)};
_.f.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.dr(this.hostElement)};
_.f.onPlayerSubscribe=function(a){this.isCompactRed()||a!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.f.onPlayerUnsubscribe=function(a){this.isCompactRed()||a!==this.data.channelId||this.updateSubscriptionState(!1)};
_.f.handleUpdateSubscribeButtonAction=function(a){a=_.y(a,rWa);var b;a&&a.channelId===((b=this.data)==null?void 0:b.channelId)&&this.updateSubscriptionState(!!a.subscribed)};
_.f.computeButtonStyle=function(a){return this.get("style.styleType",a)||null};
_.f.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.f.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.f.updateSubscriptionState=function(a){if(a!==this.subscribed){this.set("data.subscribed",a);var b,c=(b=this.data)==null?void 0:b.subscribedEntityKey;c&&this.ytdReduxBehavior.dispatch(_.vu("subscriptionStateEntity",c,{key:c,subscribed:a}));this.isCompactRed()||_.go(this.hostElement,"yt-subscription-changed",a);a||(_.ho(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!a),a&&this.hasBellButton&&this.startAnimation())}};
_.f.startAnimation=function(){var a=this;if(!this.isAnimating){this.isAnimating=!0;var b;(b=this.backgroundLottieRef.lottieEl)==null||b.goToAndPlay(0);var c;(c=this.foregroundLottieRef.lottieEl)==null||c.goToAndPlay(0);_.zk.addJob(function(){a.maybeAnimateBellIcon()},2,300);
_.zk.addJob(function(){a.isAnimating=!1},2,1500)}};
_.f.maybeAnimateBellIcon=function(){var a=_.Zq(this.hostElement).querySelector("yt-animated-icon");if(a){var b;(b=a.animationRef.lottieEl)==null||b.goToAndPlay(0)}};
_.f.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.f.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.f.tryToSaveButtonWidths=function(){if(!(!this.animatedActionEnabled||this.unsubscribedWidth&&this.unsubscribedWidth)){if(!this.subscribed){var a;this.unsubscribedWidth=(a=this.subscribeButtonShape)==null?void 0:a.getBoundingClientRect().width}var b;this.subscribedWidth=(b=this.bellButton)==null?void 0:b.getBoundingClientRect().width}};
_.f.updateContainerToFitContent=function(a){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(this.hostElement.style.width=a?this.subscribedWidth+"px":this.unsubscribedWidth+"px")};
_.f.clearContainerSize=function(){this.hostElement.style.width=""};
_.f.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.Vm.Object.defineProperties(NYb.prototype,{hasBellButton:{configurable:!0,enumerable:!0,get:function(){return!!this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)}},
subscribedButtonText:{configurable:!0,enumerable:!0,get:function(){var a;return this.forceIconOnly?void 0:(a=this.data)==null?void 0:a.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var a,b,c=((a=this.data)==null?void 0:(b=a.timedAnimationData)==null?void 0:b.animationTiming)||[];return{uniqueId:"subscribe",timings:c,enabled:c.length>0&&!this.subscribed,experimentEnabled:c.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var a;return!this.subscribed&&((a=this.data)==null?void 0:a.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 a={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var b=a.renderer;var c=a.element;var d=a.subscribed;var e=a.commandController;var g=a.isOverlay;a=a.config;var k=tXa(b,d);g&&(k.style="overlay");g=Object;var m=g.assign,n;a:switch((n=b.style)==null?void 0:n.styleType){case "COMPACT_GRAY":case "COMPACT_RED":n={size:"S"};break a;default:n={size:"M"}}var r,t,u,w,A=d&&((r=
b.unsubscribeAccessibility)==null?void 0:(t=r.accessibilityData)==null?void 0:t.label)||((u=b.subscribeAccessibility)==null?void 0:(w=u.accessibilityData)==null?void 0:w.label);r=b.longSubscriberCountText?A+" "+_.Vp(b.longSubscriberCountText):A;t=(t=d?b.subscribedButtonText:b.unsubscribedButtonText)?_.As(t):void 0;return m.call(g,{},k,n,{focused:!1,toggled:d,accessibilityLabel:r,formattedButtonText:t,onTap:sXa(b,a,d,c,e)})}}}});
var vK=NYb;vK.prototype.onMouseDown=vK.prototype.onMouseDown;vK.prototype.onDataChanged=vK.prototype.onDataChanged;vK.prototype.observedSubscribed=vK.prototype.observedSubscribed;vK.prototype.onYtServiceRequestCompleted=vK.prototype.onYtServiceRequestCompleted;vK.prototype.onYtServiceRequestSent=vK.prototype.onYtServiceRequestSent;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],vK.prototype,"ytComponentBehavior",void 0);
_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],vK.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],vK.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],vK.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],vK.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],vK.prototype,"data",void 0);
_.U([_.O({selectorArgs:["data.subscribedEntityKey"],selector:_.ku}),_.W("design:type",Object)],vK.prototype,"subscriptionStateEntity",void 0);_.U([_.O({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.W("design:type",Boolean)],vK.prototype,"subscribed",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],vK.prototype,"branded",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],vK.prototype,"animatedActionEnabled",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],vK.prototype,"foregroundLottieRef",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],vK.prototype,"backgroundLottieRef",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],vK.prototype,"overlayButton",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.W("design:type",Object)],vK.prototype,"buttonStyle",void 0);
_.U([_.O(),_.W("design:type",Object)],vK.prototype,"forceIconOnly",void 0);_.U([_.O({value:function(){return!!_.v().resolve(_.Wi(_.yu))&&_.x("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.W("design:type",Boolean)],vK.prototype,"useKeyboardFocused",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],vK.prototype,"keyboardFocused",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],vK.prototype,"isAnimating",void 0);_.U([_.K("data.notificationPreferenceButton.*"),_.W("design:type",Object),_.W("design:paramtypes",[])],vK.prototype,"hasBellButton",null);
_.U([_.K("data.subscribedButtonText","forceIconOnly"),_.W("design:type",Object),_.W("design:paramtypes",[])],vK.prototype,"subscribedButtonText",null);_.U([_.K("data.timedAnimationData.animationTiming","subscribed"),_.W("design:type",Object),_.W("design:paramtypes",[])],vK.prototype,"smartimationSettings",null);
_.U([_.O({reflectToAttribute:!0}),_.K("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.W("design:type",Object),_.W("design:paramtypes",[])],vK.prototype,"subscribeButtonHidden",null);_.U([_.O({reflectToAttribute:!0}),_.K("subscribed","hasBellButton"),_.W("design:type",Object),_.W("design:paramtypes",[])],vK.prototype,"subscribeButtonInvisible",null);
_.U([_.O({reflectToAttribute:!0}),_.K("subscribed"),_.W("design:type",Object),_.W("design:paramtypes",[])],vK.prototype,"unsubscribeButtonHidden",null);_.U([_.gr("ytd-subscription-notification-toggle-button-renderer-next"),_.W("design:type",Object)],vK.prototype,"bellButton",void 0);_.U([_.gr("#subscribe-button-shape"),_.W("design:type",HTMLElement)],vK.prototype,"subscribeButtonShape",void 0);
_.U([_.K("overlayButton","subscribed","data"),_.W("design:type",Object),_.W("design:paramtypes",[])],vK.prototype,"buttonShape",null);_.U([_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Ot]),_.W("design:returntype")],vK.prototype,"onYtServiceRequestSent",null);_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Wt]),_.W("design:returntype")],vK.prototype,"onYtServiceRequestCompleted",null);
_.U([_.N("subscribed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],vK.prototype,"observedSubscribed",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],vK.prototype,"onDataChanged",null);_.U([_.M("mousedown"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],vK.prototype,"onMouseDown",null);
vK=_.U([_.Q({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],vK);
_.S(vK,"ytd-subscribe-button-renderer",function(){if(MYb!==void 0)return MYb;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return MYb=a},{mode:1});var OYb=function(){var a=_.P.apply(this,arguments)||this;a.isRichGrid=!1;return a};
_.z(OYb,_.P);OYb.prototype.configureRendererStamper=function(){return{"data.game":{id:"game",mapping:{gameDetailsRenderer:{component:"ytd-game-details-renderer",properties:{isRichGrid:"[[isRichGrid]]"}}}},"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
var wK=OYb;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],wK.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],wK.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],wK.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],wK.prototype,"isRichGrid",void 0);wK=_.U([_.Q({is:"ytd-game-card-renderer",disableElementRegistration:!0})],wK);
_.S(wK,"ytd-game-card-renderer",function(){if(HYb!==void 0)return HYb;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return HYb=a},{mode:1});var xK={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.x("defer_menus")&&!ELb?0:void 0,waitForSignal:"eocs"};var PYb;var QYb;var RYb=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return a};
_.z(RYb,_.P);_.f=RYb.prototype;_.f.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.f.onSeriesReminderStateEntityChange=function(){var a,b,c;((a=this.eventReminderStateEntity)==null?0:a.key)&&((b=this.seriesReminderStateEntity)==null?void 0:b.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((c=this.eventReminderStateEntity)==null?void 0:c.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.vu("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.f.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.f.onYtServiceRequestError=function(){var a;this.updateReminderStateEntitiesFromButtonState((a=this.data)==null?void 0:a.currentState)};
_.f.handleUpdateUpcomingEventReminderButtonStateCommand=function(a){if(a=_.y(a,$Eb)){var b,c=(b=this.data)==null?void 0:b.targetId;c&&a.targetId===c&&_.Cr(this.updateReminderStateEntitiesFromButtonState.bind(this,a.state))}};
_.f.getButtonStateFromReminderState=function(){var a;if(((a=this.seriesReminderStateEntity)==null?void 0:a.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var b;if(((b=this.eventReminderStateEntity)==null?void 0:b.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var c,d;if(((c=this.seriesReminderStateEntity)==null?void 0:c.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((d=this.eventReminderStateEntity)==
null?void 0:d.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var e;return(e=this.data)==null?void 0:e.currentState};
_.f.updateReminderStateEntitiesFromButtonState=function(a){if(a){switch(a){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":a="UPCOMING_EVENT_REMINDER_STATE_NONE";var b="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":a="UPCOMING_EVENT_REMINDER_STATE_SINGLE";b="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":a="UPCOMING_EVENT_REMINDER_STATE_NONE";b="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var c;
((c=this.eventReminderStateEntity)==null?0:c.key)&&this.ytdReduxBehavior.dispatch(_.vu("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:a})));var d;((d=this.seriesReminderStateEntity)==null?0:d.key)&&this.ytdReduxBehavior.dispatch(_.vu("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:b})))}};
_.Vm.Object.defineProperties(RYb.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var a=this.getButtonStateFromReminderState(),b,c;if(a&&((b=this.data)==null?0:(c=b.states)==null?0:c.length))for(b=_.h(this.data.states),c=b.next();!c.done;c=b.next()){c=c.value;var d=void 0;if(((d=_.y(c,aFb))==null?void 0:d.state)===a)return _.y(c,aFb)}}}});
var yK=RYb;yK.prototype.onYtServiceRequestError=yK.prototype.onYtServiceRequestError;yK.prototype.onYtServiceRequestCompleted=yK.prototype.onYtServiceRequestCompleted;yK.prototype.onSeriesReminderStateEntityChange=yK.prototype.onSeriesReminderStateEntityChange;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],yK.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],yK.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],yK.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],yK.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],yK.prototype,"data",void 0);_.U([_.O({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:fVa}),_.W("design:type",Object)],yK.prototype,"eventReminderStateEntity",void 0);
_.U([_.O({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(a,b){return _.mp(a.entities,"sportsSeriesReminderStateEntity",b)}}),
_.W("design:type",Object)],yK.prototype,"seriesReminderStateEntity",void 0);_.U([_.K("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],yK.prototype,"currentButtonStateRenderer",null);_.U([_.N("seriesReminderStateEntity"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yK.prototype,"onSeriesReminderStateEntityChange",null);
_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yK.prototype,"onYtServiceRequestCompleted",null);_.U([_.M("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yK.prototype,"onYtServiceRequestError",null);yK=_.U([_.Q({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],yK);
_.S(yK,"ytd-upcoming-event-reminder-button-renderer",function(){if(QYb!==void 0)return QYb;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);
return QYb=a},{mode:1});var SYb;var TYb=function(){return _.P.apply(this,arguments)||this};
_.z(TYb,_.P);TYb.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.Vm.Object.defineProperties(TYb.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(_.x("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
var zK=TYb;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],zK.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],zK.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],zK.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],zK.prototype,"shelfDismissal",void 0);
_.U([_.K("data.responseText"),_.W("design:type",Object),_.W("design:paramtypes",[])],zK.prototype,"text",null);_.U([_.K("data.responseText"),_.W("design:type",Object),_.W("design:paramtypes",[])],zK.prototype,"textAriaLabel",null);zK=_.U([_.Q({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],zK);
_.S(zK,"ytd-notification-multi-action-renderer",function(){if(SYb!==void 0)return SYb;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return SYb=a},{mode:1});var UYb;var VYb=function(){return _.P.apply(this,arguments)||this};
_.z(VYb,_.P);VYb.prototype.ready=function(){var a=this;_.E(this.hostElement).querySelector("#undo").addEventListener("tap",function(){a.onUndoTap()})};
VYb.prototype.onUndoTap=function(){this.data.undoEndpoint&&(_.x("web_ytd_notification_text_renderer_command_resolver_ks")?_.mo(this.hostElement,[this.data.undoEndpoint]):_.v().resolve(_.Xi).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}}))};
var AK=VYb;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],AK.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],AK.prototype,"data",void 0);AK=_.U([_.Q({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],AK);
_.S(AK,"ytd-notification-text-renderer",function(){if(UYb!==void 0)return UYb;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return UYb=a},{mode:1});var WYb;var XYb=function(){var a=_.P.apply(this,arguments)||this;a.mouseOverDelayJobId=0;a.fadeInImageDelayJobId=0;a.startTimeMs=-1;a.loadingStartTimeMs=-1;a.loadingEndTimeMs=-1;a.hasVideoPreview=!1;return a};
_.z(XYb,_.P);_.f=XYb.prototype;_.f.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.f.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.f.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.f.showThumbnail=function(){var a=this;this.csn=_.Fn();_.Ko("fmth");_.zk.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.at(_.zk,function(){a.loadingStartTimeMs=(0,_.Uj)();var b=_.E(a.hostElement).querySelector("#thumbnail");b.complete?a.displayMouseOverImage():b.addEventListener("load",_.er(a,a.displayMouseOverImage))},150):_.$q(_.E(this.hostElement).querySelector("#play"),"show",!0)};
_.f.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.f.onTap=function(){this.removeVideoPreview()};
_.f.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var a=this.videoId,b=this.csn,c=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,d=this.startTimeMs,e=this.hasVideoPreview,g=_.qs(this.trackingParams),k={isMovingThumbnail:e};e&&d>0&&(c>0&&(k.movingThumbnailLoadingDurationMs=Math.round(c)),k.durationHoveredMs=Math.round((0,_.Uj)()-d));a&&(k.videoId=a);_.Wo(b,g,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:k});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.f.removeVideoPreview=function(){_.zk.cancelJob(this.mouseOverDelayJobId);_.zk.cancelJob(this.fadeInImageDelayJobId);var a=_.E(this.hostElement).querySelector("#thumbnail");_.$q(a,"fade-in",!1);a.removeEventListener("load",_.er(this,this.displayMouseOverImage));a=_.E(this.hostElement).querySelector("#play");_.$q(a,"fade-in",!1);_.$q(a,"show",!1)};
_.f.displayMouseOverImage=function(){var a=_.E(this.hostElement).querySelector("#thumbnail"),b=_.E(this.hostElement).querySelector("#play");this.isImageAvailable(a)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.Uj)(),this.startTimeMs=(0,_.Uj)(),this.fadeInImageDelayJobId=_.at(_.zk,function(){_.$q(a,"fade-in",!0)},50)):_.$q(b,"fade-in",!0)};
_.f.computeThumbnail=function(a,b){var c;a&&a.movingThumbnailDetails&&a.movingThumbnailDetails.thumbnails&&b?c=_.Xs(a.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):c=b?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(c)return _.Gd(c)};
_.f.isImageAvailable=function(a){return!(!a.src||a.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||a.naturalWidth===120)};
var BK=XYb;BK.prototype.onTap=BK.prototype.onTap;BK.prototype.dataChanged=BK.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],BK.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],BK.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],BK.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],BK.prototype,"csn",void 0);
_.U([_.O(),_.W("design:type",Object)],BK.prototype,"trackingParams",void 0);_.U([_.O(),_.W("design:type",String)],BK.prototype,"videoId",void 0);_.U([_.O(),_.W("design:type",Boolean)],BK.prototype,"isAttachedAndDataSet",void 0);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],BK.prototype,"dataChanged",null);_.U([_.M("click"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],BK.prototype,"onTap",null);
BK=_.U([_.Q({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],BK);
_.S(BK,"ytd-moving-thumbnail-renderer",function(){if(WYb!==void 0)return WYb;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return WYb=a},{mode:1});var YYb;_.uw=function(a){this.hostElement=a;this.eventSink=null;this.eventList=[]};
_.uw.prototype.shouldForward=function(){var a,b;return(b=(a=this.eventSink)==null?void 0:a.isConnected)!=null?b:document.body.contains(this.eventSink)};
_.uw.prototype.start=function(a,b){this.eventSink&&this.stop();for(var c=0;c<a.length;c++)this.hostElement.addEventListener(a[c],_.er(this,this.forwardEvent));var d;this.eventSink=(d=b.hostElement)!=null?d:b;this.eventList=a};
_.uw.prototype.stop=function(){for(var a=0;a<this.eventList.length;a++)this.hostElement.removeEventListener(this.eventList[a],_.er(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.uw.prototype.forwardEvent=function(a,b){this.shouldForward()&&(a.stopPropagation(),this.eventSink instanceof Element?_.go(this.eventSink,a.type,b):_.Dl(new _.qj("eventSink is not an element")))};_.CK={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.uw(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(a,b){this.forwarder_.start(a,b)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var ZYb=function(){return _.P.apply(this,arguments)||this};
_.z(ZYb,_.P);_.f=ZYb.prototype;_.f.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=_.Ei("HTML_DIR")==="rtl"?"right":"left"};
_.f.dataChanged=function(){this.popupOpen=!1};
_.f.computeAriaLabel=function(a){return _.y(a,xyb).label};
_.f.onTap=function(a){a.stopPropagation();a.preventDefault();this.data.command&&(_.x("web_ytd_thumbnail_overlay_button_renderer_command_resolver_ks")?_.mo(this.hostElement,[this.data.command]):_.v().resolve(_.Xi).resolveCommand(this.data.command,{form:{element:this.hostElement}}))};
_.f.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.f.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
var DK=ZYb;DK.prototype.onPopupClosed=DK.prototype.onPopupClosed;DK.prototype.onPopupOpened=DK.prototype.onPopupOpened;DK.prototype.onTap=DK.prototype.onTap;DK.prototype.dataChanged=DK.prototype.dataChanged;_.U([_.H(_.CK.YtEventForwardingBehavior),_.W("design:type",Object)],DK.prototype,"eventForwardingBehavior",void 0);_.U([_.H(_.MD),_.W("design:type",Object)],DK.prototype,"ironButtonState",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],DK.prototype,"componentBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],DK.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,value:-1}),_.W("design:type",Number)],DK.prototype,"tabindex",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.W("design:type",Object)],DK.prototype,"ariaLabel",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],DK.prototype,"disableTooltips",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],DK.prototype,"popupOpen",void 0);
_.U([_.O(),_.W("design:type",Element)],DK.prototype,"eventSink",void 0);_.U([_.gr("#tooltip"),_.W("design:type",Object)],DK.prototype,"tooltip",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],DK.prototype,"dataChanged",null);_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],DK.prototype,"onTap",null);
_.U([_.M("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],DK.prototype,"onPopupOpened",null);_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],DK.prototype,"onPopupClosed",null);DK=_.U([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],DK);
_.S(DK,"ytd-thumbnail-overlay-button-renderer",function(){if(YYb!==void 0)return YYb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon icon="[[data.icon.iconType]]" class="style-scope ytd-thumbnail-overlay-button-renderer"></yt-icon><tp-yt-paper-tooltip id="tooltip" animation-delay="0" hidden="[[disableTooltips]]" offset="0" class="style-scope ytd-thumbnail-overlay-button-renderer">\n  [[data.tooltip]]\n</tp-yt-paper-tooltip>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return YYb=a},{mode:1});var $Yb;var aZb=function(){return _.P.apply(this,arguments)||this};
_.z(aZb,_.P);var EK=aZb;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],EK.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],EK.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],EK.prototype,"disableAnimation",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],EK.prototype,"rounded",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],EK.prototype,"transparentBackground",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],EK.prototype,"noPadding",void 0);EK=_.U([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],EK);
_.S(EK,"ytd-thumbnail-overlay-endorsement-renderer",function(){if($Yb!==void 0)return $Yb;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return $Yb=a},{mode:1});var bZb;var FK=function(){return _.P.apply(this,arguments)||this};
_.z(FK,_.P);FK.prototype.computeIconPosition=function(a){return this.get("iconPosition",a)||null};
FK.prototype.computeIconStyle=function(a){return this.get("iconStyle",a)||null};
FK.prototype.computeIsIconStyleFilled=function(a){if(!a)return!1;var b;return a.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((b=a.icon)==null?void 0:b.iconType)==="ERROR_BLACK"};
var GK=FK;_.U([_.O(),_.W("design:type",Object)],GK.prototype,"data",void 0);_.U([_.O({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.W("design:type",Object)],GK.prototype,"iconPosition",void 0);_.U([_.O({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.W("design:type",Object)],GK.prototype,"iconStyle",void 0);_.U([_.O({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],GK.prototype,"iconStyleFilled",void 0);
GK=_.U([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],GK);
_.S(GK,"ytd-thumbnail-overlay-icon-renderer",function(){if(bZb!==void 0)return bZb;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return bZb=a},{mode:1});var cZb;var dZb=function(){return _.P.apply(this,arguments)||this};
_.z(dZb,_.P);var HK=dZb;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],HK.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],HK.prototype,"data",void 0);HK=_.U([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],HK);
_.S(HK,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(cZb!==void 0)return cZb;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return cZb=a},{mode:1});var eZb;var fZb=function(){var a=_.P.apply(this,arguments)||this;a.isPreviewLoading=!1;return a};
_.z(fZb,_.P);var IK=fZb;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],IK.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],IK.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],IK.prototype,"isPreviewLoading",void 0);IK=_.U([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],IK);
_.S(IK,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(eZb!==void 0)return eZb;var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return eZb=a},{mode:1});var gZb;var hZb=function(){return _.P.apply(this,arguments)||this};
_.z(hZb,_.P);var JK=hZb;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],JK.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],JK.prototype,"data",void 0);JK=_.U([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],JK);
_.S(JK,"ytd-thumbnail-overlay-pinking-renderer",function(){if(gZb!==void 0)return gZb;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return gZb=a},{mode:1});var iZb;var jZb=function(){var a=_.P.apply(this,arguments)||this;a.disableTooltips=!1;a.isLoading=!1;a.useExpandableTooltip=!1;a.toggled=!1;a.hovered=!1;a.mouseoverDelayJobId=0;a.toggleDelayJobId=0;a.expandAnimationDelayJobId=0;return a};
_.z(jZb,_.P);_.f=jZb.prototype;_.f.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");_.E(this.hostElement).querySelector("#tooltip").position=_.Ei("HTML_DIR")==="rtl"?"right":"left"};
_.f.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.zk.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.zk.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.zk.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.f.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.zk.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.zk.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.zk.cancelJob(this.expandAnimationDelayJobId)};
_.f.computeIcon=function(a,b,c){return(a=c?b:a)&&a.iconType?_.fs(a.iconType):void 0};
_.f.computeAriaLabel=function(a,b,c){return _.y(c?b:a,xyb).label};
_.f.computeTooltip=function(a,b,c){return c?b:a};
_.f.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.f.computeIconOnHover=function(a,b){if((a==null?0:a.iconType)&&!b)return _.fs(a.iconType)};
_.f.onTap=function(a){var b=this;a.stopPropagation();a.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(a=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(a),this.useExpandableTooltip&&(this.toggleDelayJobId=_.at(_.zk,function(){b.hovered=!1;b.data&&!b.data.toggledServiceEndpoint&&(b.expandAnimationDelayJobId=_.at(_.zk,function(){b.set("data.isToggled",
!1)},200))},2E3))};
_.f.onMouseenter=function(){var a=this;this.mouseoverDelayJobId=_.at(_.zk,function(){a.hovered=!0},300)};
_.f.onMouseleave=function(){_.zk.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.f.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.f.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.f.onServiceRequestCompleted=function(a,b){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(b)||this.set("data.isToggled",!this.data.isToggled)};
_.f.serviceRequestWasSuccessful=function(a){return _.y(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.LE)?a.data.status==="STATUS_SUCCEEDED":!0};
var KK=jZb;KK.prototype.onServiceRequestCompleted=KK.prototype.onServiceRequestCompleted;KK.prototype.onPopupClosed=KK.prototype.onPopupClosed;KK.prototype.onPopupOpened=KK.prototype.onPopupOpened;KK.prototype.onMouseleave=KK.prototype.onMouseleave;KK.prototype.dataChanged=KK.prototype.dataChanged;_.U([_.H(_.MD),_.W("design:type",Object)],KK.prototype,"ironButtonState",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],KK.prototype,"ytComponentBehavior",void 0);
_.U([_.H(_.CK.YtEventForwardingBehavior),_.W("design:type",Object)],KK.prototype,"ytEventForwardingBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],KK.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.W("design:type",Object)],KK.prototype,"ariaLabel",void 0);_.U([_.O(),_.W("design:type",Object)],KK.prototype,"disableTooltips",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],KK.prototype,"popupOpen",void 0);_.U([_.O(),_.W("design:type",Object)],KK.prototype,"isLoading",void 0);_.U([_.O(),_.W("design:type",Element)],KK.prototype,"eventSink",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],KK.prototype,"useExpandableTooltip",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.W("design:type",Object)],KK.prototype,"toggled",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],KK.prototype,"hovered",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.W("design:type",Object)],KK.prototype,"iconOnHover",void 0);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],KK.prototype,"dataChanged",null);
_.U([_.M("mouseleave"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],KK.prototype,"onMouseleave",null);_.U([_.M("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],KK.prototype,"onPopupOpened",null);_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],KK.prototype,"onPopupClosed",null);
_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Wt]),_.W("design:returntype")],KK.prototype,"onServiceRequestCompleted",null);KK=_.U([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],KK);
_.S(KK,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(iZb!==void 0)return iZb;var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return iZb=a},{mode:_.as("kevlar_poly_si_batch_j053")?1:2});var kZb;var lZb=_.Rr(function(a){var b=a.data;var c=function(){return b().enableSegmentView};
return _.q("yt-thumbnail-overlay-progress-bar-view-model",{class:"ytThumbnailOverlayProgressBarHost"},_.q(_.oi,{cond:c,then:function(){return _.q("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.q("div",{class:_.lt("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+b().startPercent+"%"}}),_.q("div",{class:_.lt("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+b().segmentDurationPercent+"%"}},_.q("div",{class:_.lt("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.q("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.q("div",null," ",function(){return b().segmentLabel})),_.q("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.q("div",{class:_.lt("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.q(_.oi,{cond:function(){return!c()&&b().startPercent},
then:function(){var d={};return _.q("div",{class:_.lt("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(d.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.x("web_enable_modern_progress_bar_overlay"),d))},_.q("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+b().startPercent+"%"}}))}}))});
lZb.idomCompat=!0;var mZb=_.Rr(function(a){var b=_.ou(),c=_.Mr(function(e){var g,k,m;a:{var n=(g=a.data())==null?void 0:g.animationActivationTargetId;g=((k=a.data())==null?void 0:k.animationActivationEntityKey)||"";k=(m=a.data())==null?void 0:m.animationActivationEntitySelectorType;if(g&&n)switch(k){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":e=_.mp(e.entities,"playerStateEntity",g);m=_.v().resolve(_.Wi(_.Vw));n=!!(e&&e.videoId===n&&(m==null?0:m.isMiniplayerActive()));n={activated:n,playAnimation:n&&
e.playerState==="PLAYER_STATE_PLAYING"};break a}n=void 0}return n});
_.yh(function(){var e;if((e=c())==null?0:e.activated){var g;if((g=c())==null?0:g.playAnimation){var k;(k=b.lottieEl)==null||k.goToAndPlay(0)}else{var m;(m=b.lottieEl)==null||m.goToAndStop(0)}}},"seFTsd");
var d=function(){var e,g=!((e=c())==null||!e.activated);if(a.data()){e=a.data();var k=void 0;e.icon&&(k=YQa(e.icon),k=eRa(k));var m=void 0,n;if((n=e.backgroundColor)==null?0:n.lightTheme){var r;m={backgroundColor:Dq((r=e.backgroundColor)==null?void 0:r.lightTheme,"0.8")}}if(e.text||k||g){if(g&&e.lottieData&&b){r=e.lottieData;var t,u,w;n={animationConfig:{name:r.url,path:r.url,autoplay:(t=r.settings)==null?void 0:t.autoplay,loop:(w=(u=r.settings)==null?void 0:u.loop)!=null?w:!0},animationRef:b}}else n=
void 0;if(g)t=16;else b:switch(e.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":t=17;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":t=18;break b;default:t=16}g={type:t,text:g&&e.animatedText?e.animatedText:e.text,icon:k,customColors:m,animation:n}}else g=void 0}else g=void 0;return g};
return _.q("yt-thumbnail-badge-view-model",{class:_.jt("yt-thumbnail-badge-view-model-wiz",a.class)},_.q(_.oi,{cond:d,then:function(){return _.q(_.ev,{data:function(){return d()}})}}))});var nZb=_.Rr(function(a){var b={};return _.q("yt-thumbnail-bottom-overlay-view-model",{class:_.jt("ytThumbnailBottomOverlayViewModelHost",(b.ytThumbnailBottomOverlayViewModelHostBackground=function(){return a.data().enableGradientBackground},b))},_.q("div",{class:"ytThumbnailBottomOverlayViewModelHostContainer"},_.q(_.Eu,{data:function(){return a.data().progressBar}},{thumbnailOverlayProgressBarViewModel:lZb}),_.q(_.Eu,{data:function(){return a.data().badge}},{thumbnailBadgeViewModel:function(c){return _.q(mZb,
{data:c.data,
class:"ytThumbnailBottomOverlayViewModelHostBadge"})}}),_.q(_.Eu,{data:function(){return a.data().badges}},{thumbnailBadgeViewModel:function(c){return _.q(mZb,{data:c.data,
class:"ytThumbnailBottomOverlayViewModelHostBadge"})}})))});
nZb.idomCompat=!0;_.Ws(nZb,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.Vs}});var DXa={calledOnce:!1,state:"visible"},EXa={calledOnce:!1,state:"hidden"};_.am(HXa);var oZb=_.Rr(function(a){var b=a.data;var c=a.className;a=a.alwaysShow;var d=_.Rl();_.Vu(d,function(){return b().rendererContext});
var e=_.vXa(),g={};return _.q("thumbnail-hover-overlay-view-model",{el:d,class:_.jt("ytThumbnailHoverOverlayViewModelHost",c,(g.ytThumbnailHoverOverlayViewModelHostForceHover=a,g)),"aria-label":function(){var k;return(k=_.y(b().rendererContext,_.Wu))==null?void 0:k.label},
role:function(){return _.Pu(b().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.Pu(b().rendererContext)!==void 0?0:void 0},
"on:keypress":e},_.q("div",{class:_.jt("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(b().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var k="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:k="ytThumbnailHoverOverlayViewModelStyleCover"}return k})},_.q(_.oi,{cond:function(){return b().icon},
then:function(k){return _.q(_.Ss,{data:k,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.q(_.oi,{cond:function(){return b().text},
then:function(k){return _.q(_.wt,{text:k,className:"ytThumbnailHoverOverlayViewModelText"})}})))}),pZb=_.x("web_enable_sink_lockups_batch")?oZb:HXa,qZb=_.x("web_enable_sink_lockups_batch")?oZb:_.mt(HXa);
oZb.idomCompat=!0;var Yu=_.Rr(function(a){var b=a.data;return _.q(_.Eu,{data:function(){return b==null?void 0:b().overlays}},{thumbnailHoverOverlayViewModel:qZb})});
Yu.idomCompat=!0;var rZb={};var Xu=_.Rr(function(a){var b=a.data;var c=a.image;var d=a.state;var e=a.iconType;var g=a.overlays;var k=a.isOverlay;var m=_.Sl();a=_.h(_.fh(!0,"xOB8yb"));var n=a.next().value,r=a.next().value,t=_.Nr(e,"LIVE");_.vi(function(){requestAnimationFrame(function(){var w=b().size;var A=b().badgeText;if(m.value===null)A=!0;else{var C=IXa(w);A in rZb?w=rZb[A]:(w=m.value.clientWidth,rZb[A]=w);(A=w>C)?m.value.style.display="none":m.value.style.visibility="visible"}r(A)})});
var u=function(){var w={};return w["yt-spec-avatar-shape__image"]=!0,w["yt-spec-avatar-shape__image--ads-app"]=b().type===1,w};
e=_.ot(function(w){var A,C;return void((C=(A=b()).onTap)==null?void 0:C.call(A,w))});
return _.q("yt-avatar-shape",null,_.q("div",{class:function(){var w={};w=(w["yt-spec-avatar-shape"]=!0,w["yt-spec-avatar-shape__button"]=!0,w[KXa(b().size)]=!0,w["yt-spec-avatar-shape__button--tappable"]=!!b().onTap,w);var A=b().avatarButtonCustomClassName;A&&(w[A]=!0);return _.lt(w)},
"on:click":e,"on:keydown":_.Nu(),"aria-label":function(){return b().onTap?b().accessibilityText:""},
role:function(){return b().onTap?"button":void 0},
tabindex:function(){return b().onTap?0:void 0}},_.q("div",{class:function(){var w,A=b(),C=d==null?void 0:d(),G=k==null?void 0:k(),J=!((w=A.decorations)==null||!w.includes(2)||A.size!=="medium"&&A.size!=="large"),I=A.size==="tiny"||A.size==="extra-small",R,ca,V,fa,aa={};
w=(aa["yt-spec-avatar-shape--live-ring"]=!!(((R=A.decorations)==null?0:R.includes(0))&&MXa(A.size)),aa["yt-spec-avatar-shape--stories-watched"]=J&&!(C==null||!C.storiesWatched),aa["yt-spec-avatar-shape--stories-unwatched"]=J&&!(C==null?0:C.storiesWatched),aa["yt-spec-avatar-shape--background-border"]=NXa(A.decorations)&&!I,aa["yt-spec-avatar-shape--background-border-thin"]=NXa(A.decorations)&&I,aa["yt-spec-avatar-shape__on-select-border"]=!((ca=A.decorations)==null||!ca.includes(4)),aa["yt-spec-avatar-shape__white-border"]=
!((V=A.decorations)==null||!V.includes(5)),aa["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((fa=A.decorations)==null?0:fa.includes(5))&&I),aa["yt-spec-avatar-shape--is-overlay"]=!!G,aa);return _.lt(w)}},_.q("div",{class:function(){var w={};
w=(w[JXa(b().size)]=!0,w["yt-spec-avatar-shape--no-margin"]=NXa(b().decorations),w);return _.lt(w)}},_.q(_.Ss,{data:c,
alt:function(){return!b().onTap&&b().accessibilityText?b().accessibilityText:""},
targetWidth:function(){return LXa(b().size)},
targetHeight:function(){return LXa(b().size)},
className:function(){return _.lt(u())}}),_.q(_.oi,{cond:function(){var w;
return((w=b().decorations)==null?void 0:w.includes(0))&&MXa(b().size)},
then:function(){return _.q("div",{class:function(){var w={};w=(w["yt-spec-avatar-shape__live-badge"]=!0,w["yt-spec-avatar-shape__live-badge--badge-small"]=b().size==="small",w["yt-spec-avatar-shape__live-badge--badge-medium"]=b().size==="medium"||b().size==="48",w["yt-spec-avatar-shape__live-badge--badge-large"]=b().size==="large",w["yt-spec-avatar-shape__live-badge--badge-extra-large"]=b().size==="extra-large"||b().size==="extra-extra-large"||b().size==="giant",w);return _.lt(w)}},_.q(_.oi,{cond:function(){return b().badgeText},
then:function(w){return _.q("div",{class:"yt-spec-avatar-shape__badge-text",el:m},w)}}),_.q(_.oi,{cond:n,
then:function(){return _.q("div",{class:"yt-spec-avatar-shape__badge-icon"},_.q(_.tt,{icon:t,size:function(){a:switch(b().size){case "extra-large":var w=16;break a;default:w=13}return w}}))}}))}}),_.q(_.oi,{cond:function(){var w,A;
return((w=b().decorations)==null?void 0:w.includes(1))||((A=b().decorations)==null?void 0:A.includes(0))&&!MXa(b().size)},
then:function(){return _.q("div",{class:function(){var w=b(),A,C,G={};var J=(G["yt-spec-avatar-shape__live-dot"]=!((A=w.decorations)==null||!A.includes(0)||MXa(w.size)),G["yt-spec-avatar-shape__new-content"]=!((C=w.decorations)==null||!C.includes(1)),G);return _.lt(J)}})}}),_.Qg(g,function(){return _.q("div",{class:function(){var w={};
w=Object.assign((w["yt-spec-avatar-shape__image-overlays"]=!0,w),u());return _.lt(w)}},g==null?void 0:g())})))))});
Xu.idomCompat={callbacks:{overlays:!0}};var sZb=_.Rr(function(a){function b(){c().endpoint&&_.Js(c().endpoint)}
var c=a.data;var d=a.decorations;var e=a.avatarButtonCustomClassName;var g=a.isOverlay;return _.q("avatar-view-model",null,_.q(_.oi,{cond:function(){return c().image},
then:function(k){return _.q(Xu,{data:function(){return PXa({data:c(),onTap:c().endpoint?b:void 0,decorations:d==null?void 0:d(),badgeText:void 0,accessibilityText:c().accessibilityText,avatarButtonCustomClassName:e==null?void 0:e()})},
image:k,iconType:"RADAR_LIVE",overlays:function(){return _.q(Yu,{data:c})},
isOverlay:g})}}))});
sZb.idomCompat=!0;_.Gv=_.x("mweb_enable_sink_avatar_view_model")||_.x("web_enable_sink_lockups_batch")?sZb:QXa;_.LK=_.x("mweb_enable_sink_avatar_view_model")||_.x("web_enable_sink_lockups_batch")?sZb:_.mt(_.Gv);_.am(QXa);_.am(TXa);var tZb,uZb;tZb=_.Rr(function(a){var b=a.data;a=a.className;var c=_.Rl(),d=function(){return _.y(b().avatar,_.Zu)},e=_.kh(function(){var g=b(),k=d(),m=_.Pu(b().rendererContext);
return k?SXa({data:g,avatar:k,onTap:m,element:c.value}):{size:"medium"}},void 0,"v09a6");
return _.q("yt-decorated-avatar-view-model",{class:_.jt("yt-decorated-avatar-view-model-wiz",a),el:c},_.q(_.oi,{cond:function(){var g;return(g=d())==null?void 0:g.image},
then:function(g){return _.q(Xu,{data:e,image:g,iconType:"RADAR_LIVE",overlays:function(){return _.q(Yu,{data:d})}})}}))});
uZb=_.x("web_enable_sink_lockups_batch")?tZb:TXa;_.MK=_.x("web_enable_sink_lockups_batch")?tZb:_.mt(TXa);tZb.idomCompat=!0;var XXa=_.Au({avatarViewModel:_.Gv,decoratedAvatarViewModel:uZb});_.am(YXa);var vZb,xZb;vZb=_.Rr(function(a){var b=_.Rl(),c=function(){return b&&_.Qu(a.data().rendererContext)};
_.Vu(b,function(){return a.data().rendererContext});
var d=function(){var g=a.data().avatars,k,m;return(m=(k=(g==null?0:g[0])?_.y(g[0],_.Zu):void 0)==null?void 0:k.avatarImageSize)!=null?m:"AVATAR_SIZE_UNKNOWN"},e={};
return _.q("yt-avatar-stack-view-model",{el:b,class:_.jt("yt-avatar-stack-view-model-wiz",a.className,(e["yt-avatar-stack-view-model-wiz--tappable"]=c,e["yt-avatar-stack-view-model-wiz--is-overlay"]=a.isOverlay,e["yt-avatar-stack-view-model-wiz--medium-text"]=a.useMediumText,e)),tabindex:function(){return c()?0:void 0},
role:function(){return c()?"link":void 0},
"aria-label":function(){var g,k;return(k=(g=_.y(a.data().rendererContext,_.Wu))==null?void 0:g.label)!=null?k:""}},_.q(_.oi,{cond:function(){var g;
return a.data().avatars&&!((g=a.hideAvatar)==null?0:g.call(a))},
then:function(){return _.q("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.q(_.oi,{cond:function(){return a.data().decoratedText},
then:function(g){var k={};return _.q("div",{class:_.jt("yt-avatar-stack-view-model-wiz__text-container",(k["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=function(){return d()==="AVATAR_SIZE_XXS"||d()==="AVATAR_SIZE_XS"},k["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=function(){var m;
return((m=a.isOverlay)==null?void 0:m.call(a))&&(d()==="AVATAR_SIZE_XXS"||d()==="AVATAR_SIZE_XS")},k)),
style:_.rt({width:function(){return ZXa(d())+"px"},
height:function(){return ZXa(d())+"px"}})},_.q(_.wt,{text:g,
className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}}),_.q(_.Eu,{data:function(){return a.data().avatars.slice().reverse()}},{avatarViewModel:function(g){return _.q("div",{class:function(){return $Xa(d())}},_.q(_.LK,{data:g.data,
decorations:function(){var k;if((k=a.decorations)==null?0:k.call(a))k=a.decorations();else{k=a.data();var m=0;k.avatars&&(m+=k.avatars.length);k.decoratedText&&(m+=1);k=m>1?[3]:[]}return k},
avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button",isOverlay:a.isOverlay}))},
decoratedAvatarViewModel:function(g){return _.q("div",{class:function(){return $Xa(d())}},_.q(_.MK,{data:g.data}))}}))}}),_.q(_.oi,{cond:function(){return a.data().text},
then:function(g){return _.q(_.wt,{text:g,className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}}))});
_.wZb=_.x("web_enable_sink_lockups_batch")?vZb:YXa;xZb=_.x("web_enable_sink_lockups_batch")?vZb:_.mt(YXa);vZb.idomCompat=!0;_.Ws(_.Rr(function(a){var b=a.data;var c=a.thumbnailSize;return _.q("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.q("div",{class:_.jt("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return aYa(c==null?void 0:c())})},_.q(_.Eu,{data:function(){return b().avatarStack}},{avatarStackViewModel:function(d){return _.q(xZb,{data:d.data,
decorations:[5]})}})))}),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.SG,
thumbnailSize:_.SG}});_.am(bYa);var yZb=_.Rr(function(a){a=_.Or(a,{hidden:!1});var b=a.data;return _.q("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:a.hidden},_.q(_.wt,{text:function(){return b().title},
className:"yt-thumbnail-overlay-title-view-model__title"}),_.q(_.oi,{cond:function(){return b().subtitle},
then:function(){return _.q(_.wt,{text:function(){return b().subtitle},
className:"yt-thumbnail-overlay-title-view-model__subtitle"})}}))}),zZb=_.x("web_enable_sink_lockups_batch")?yZb:bYa,AZb=_.x("web_enable_sink_lockups_batch")?yZb:_.mt(bYa);
yZb.idomCompat=!0;_.x("web_enable_sink_thumbnail_overlay_title_view_model")?_.Ws(AZb,"yt-thumbnail-overlay-title-view-model",{props:{data:_.SG,hidden:_.SG}}):_.dt(zZb,"yt-thumbnail-overlay-title-view-model",{propNames:["data"]});var BZb=_.Rr(function(a){a=_.Or(a,{isClip:!1});var b=a.data,c=a.thumbnailSize,d={};return _.q("yt-thumbnail-overlay-badge-view-model",{class:_.jt("yt-thumbnail-overlay-badge-view-model-wiz",function(){a:switch(b().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var e="yt-thumbnail-overlay-badge-view-model-wiz--top-start";break a;default:e="yt-thumbnail-overlay-badge-view-model-wiz--bottom-end"}return e},function(){return cYa(c==null?void 0:c())},(d["yt-thumbnail-overlay-badge-view-model-wiz--clip"]=
a.isClip,d))},_.q(_.Eu,{data:function(){return b().thumbnailBadges}},{thumbnailBadgeViewModel:function(e){return _.q(mZb,{data:e.data,
class:"yt-thumbnail-overlay-badge-view-model-wiz__badge"})}}))});
BZb.idomCompat=!0;_.Ws(BZb,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.SG,thumbnailSize:_.SG,isClip:_.SG}});_.am(dYa);_.dt(dYa,"yt-page-indicator-view-model",{propNames:["data"]});var CZb=function(){var a=_.P.apply(this,arguments)||this;a.eventSink=function(){return a};
a.disableInteraction=!1;a.noRoundedCorners=!1;a.isPreviewLoading=!1;a.isOriginalAspectRatio=!1;a.computedObjectFit=!1;a.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return a};
_.z(CZb,_.P);_.f=CZb.prototype;
_.f.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:_.x("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"}}};
_.f.onImageLoaded=function(){this.loaded=!0};
_.f.onImageUnloaded=function(){this.loaded=!1};
_.f.computeRichThumbnail=function(a,b,c,d){if(a&&b&&!d&&!_.x("disable_moving_thumbs_handling")&&!c)return b};
_.f.computeImageWidth=function(a,b){return b||9999};
_.f.computeIsOriginalAspectRatio=function(a){return a};
_.f.computeIsLive=function(a){if(a==null?0:a.badges)for(var b=0;b<a.badges.length;b++){var c=a.badges[b];if(c.metadataBadgeRenderer&&c.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(a==null?0:a.thumbnailOverlays)for(b=0;b<a.thumbnailOverlays.length;b++)if(c=a.thumbnailOverlays[b],c.thumbnailOverlayTimeStatusRenderer&&c.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.f.computeObjectFit=function(a,b){return b||(a?"CONTAIN":"")};
_.f.computeNavigationEndpoint=function(a,b,c){return a?b:c};
_.f.computeHasClip=function(a){a=_.h(a||[]);for(var b=a.next();!b.done;b=a.next())if(b.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.f.computeOverlayColor=function(a){var b;return(a==null?0:(b=a.darkColorPalette)==null?0:b.section2Color)?a.darkColorPalette.section2Color:a==null?void 0:a.sampledThumbnailColor};
_.Vm.Object.defineProperties(CZb.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return Zt(this.width)}}});
var NK=CZb;NK.prototype.onImageUnloaded=NK.prototype.onImageUnloaded;NK.prototype.onImageLoaded=NK.prototype.onImageLoaded;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],NK.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],NK.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(oVb),_.W("design:type",Object)],NK.prototype,"ytdThumbnailBehavior",void 0);
_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],NK.prototype,"componentBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],NK.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],NK.prototype,"data",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],NK.prototype,"circular",void 0);
_.U([_.O({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.W("design:type",Object)],NK.prototype,"richThumbnail",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.W("design:type",Boolean)],NK.prototype,"hasClip",void 0);_.U([_.O(),_.W("design:type",Object)],NK.prototype,"eventSink",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],NK.prototype,"queued",void 0);
_.U([_.O({value:!1}),_.W("design:type",Boolean)],NK.prototype,"richGridThumbnail",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],NK.prototype,"useExpandableTooltip",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],NK.prototype,"useUntranslatedNavigationEndpoint",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],NK.prototype,"disableInteraction",void 0);
_.U([_.O({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.W("design:type",Object)],NK.prototype,"computedNavigationEndpoint",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],NK.prototype,"nowPlayingEqualizerOnly",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],NK.prototype,"hidePlaybackStatus",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],NK.prototype,"objectFit",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],NK.prototype,"noRoundedCorners",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],NK.prototype,"watchFeedThumbnail",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],NK.prototype,"isPreviewLoading",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.W("design:type",Object)],NK.prototype,"isOriginalAspectRatio",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.W("design:type",Object)],NK.prototype,"computedObjectFit",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.W("design:type",Boolean)],NK.prototype,"isLiveVideo",void 0);
_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],NK.prototype,"loaded",void 0);_.U([_.O({computed:"computeOverlayColor(data.thumbnail)"}),_.W("design:type",Object)],NK.prototype,"overlayColor",void 0);_.U([_.O({selector:_.oFa}),_.W("design:type",Boolean)],NK.prototype,"inlinePreviewIsEnabled",void 0);_.U([_.O(),_.W("design:type",Number)],NK.prototype,"width",void 0);
_.U([_.K("inlinePreviewIsEnabled"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],NK.prototype,"isPreviewDisabled",null);_.U([_.K("width"),_.W("design:type",String),_.W("design:paramtypes",[])],NK.prototype,"thumbnailSize",null);_.U([_.M("image-loaded"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],NK.prototype,"onImageLoaded",null);
_.U([_.M("image-unloaded"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],NK.prototype,"onImageUnloaded",null);NK=_.U([_.Q({disableElementRegistration:!0,is:"ytd-thumbnail"})],NK);
var DZb=_.$r()(NK,"ytd-thumbnail",function(){if(kZb===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);kZb=a}a=kZb;return a},{callbackProps:["onClick"],
allowedProps:"data disableInteraction noRoundedCorners objectFit useExpandableTooltip useUntranslatedNavigationEndpoint width circular watchFeedThumbnail queued".split(" "),allowedPropsFromBehaviors:"height bottomSidePanel size disableRounding disableNowPlaying disableTooltips useHoveredProperty hovered addBackground nowPlaying isVideoPlaying".split(" "),mode:2});var hYa=function(a){var b=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$12608_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$12608_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(c){EZb(b,c)};
this.onLockupMouseLeaveFn=function(c){c=c.relatedTarget;var d,e;((d=document.getElementsByTagName("ytd-video-preview"))==null?0:(e=d.item(0))==null?0:e.contains(c))||(b.terminateVideoPreview(),OK(b))};
this.onThumbnailMouseDownFn=function(){b.terminateVideoPreview();OK(b)};
this.onTouchStart=function(){b.JSC$12608_touched=!0};
this.mediaRenderer=a.mediaRenderer;this.thumbnailElement=a.thumbnailElement;this.lockupElement=a.lockupElement;this.videoPreviewOptsInput=a.videoPreviewOpts;FZb(this);PK(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)):
_.Dl(Error("zh")):_.Dl(Error("Ah")):GZb(this)},qv=function(a){GZb(a);
var b;(b=a.lockupElement)==null||b.removeEventListener("mouseenter",a.onMouseMoveFn);var c;(c=a.lockupElement)==null||c.removeEventListener("mouseleave",a.onLockupMouseLeaveFn);var d;(d=a.lockupElement)==null||d.removeEventListener("touchstart",a.onTouchStart);var e;(e=a.thumbnailElement)==null||e.removeEventListener("mousedown",a.onThumbnailMouseDownFn);OK(a)},FZb=function(a){a.inlinePreviewIsEnabledForUser=_.Yp().getState().ui.inlinePreviewIsEnabled;
a.unsubscribeFromInlinePreviewIsEnabled=_.wF(_.Yp(),_.oFa,function(b){(a.inlinePreviewIsEnabledForUser=b)||OK(a)});
a.JSC$12608_unsubscribeFromInlinePreviewIsActive=_.wF(_.Yp(),_.nFa,function(b){(a.inlinePreviewIsActive=b)||OK(a)})},GZb=function(a){a.unsubscribeFromInlinePreviewIsEnabled();
a.unsubscribeFromInlinePreviewIsEnabled=function(){};
a.JSC$12608_unsubscribeFromInlinePreviewIsActive();a.JSC$12608_unsubscribeFromInlinePreviewIsActive=function(){}},EZb=function(a,b){b.buttons>0||(b=_.$i("kevlar_lockup_hover_delay",-1),a.JSC$12608_touched&&b>=0?(_.zk.cancelJob(a.videoPreviewJobId),a.videoPreviewJobId=_.at(_.zk,function(){HZb(a)},b),a.JSC$12608_touched=!1):HZb(a))},IZb=function(a){a.videoPreviewJobId=_.at(_.zk,function(){var b,c,d,e;
return _.l(function(g){if(g.nextAddress==1){if(!PK(a))return g.return();b=a.getVideoPreviewOpts();return b?(d=(c=_.ko(a.mediaRenderer.hostElement,"yt-open-video-preview-action",[b]))&&c[0])?_.p(g,c[0],3):g.jumpTo(2):g.return()}g.nextAddress!=2&&(d=g.yieldResult===1);d&&fYa((e=a.mediaRenderer)==null?void 0:e.data);_.se(g)})},2E3)},HZb=function(a){!a.previewTriggered&&PK(a)&&(a.inlinePreviewIsActive&&a.terminateVideoPreview(),a.previewTriggered=!0,a.mediaRenderer.isInlinePreviewTriggered=!0,_.zk.cancelJob(a.videoPreviewJobId),
a.videoPreviewJobId=_.at(_.zk,function(){var b,c,d,e;
return _.l(function(g){if(g.nextAddress==1){if(!PK(a))return g.return();b=a.getVideoPreviewOpts();return b?(d=(c=_.ko(a.mediaRenderer.hostElement,"yt-open-video-preview-action",[b]))&&c[0])?_.p(g,c[0],3):g.jumpTo(2):g.return()}g.nextAddress!=2&&(d=g.yieldResult===1);d&&fYa((e=a.mediaRenderer)==null?void 0:e.data);_.se(g)})}))};
hYa.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var a,b;if((b=(a=this.videoPreviewOptsInput)==null?void 0:a.videoPreviewData)!=null)a=b;else if(a=this.mediaRenderer.data)if(eYa(a))a={inlinePlaybackEndpoint:_.Es(a.inlinePlayerData.onVisible),navigationEndpoint:_.Es(a.onTap),thumbnail:"image"in a?a.image:a.thumbnail,thumbnailOverlays:void 0,accessibilityText:gYa(a)};else if("multipleInlinePlaybackEndpoint"in a){var c=_.y(_.y(a.multipleInlinePlaybackEndpoint,wAb),xAb);if(c!=
null&&c.playerDescriptors){b=[];c=_.h(c.playerDescriptors);for(var d=c.next();!d.done;d=c.next())d=d.value,b.push({inlinePlaybackEndpoint:d.inlinePlaybackEndpoint,navigationEndpoint:d.navigationEndpoint,thumbnail:d.thumbnail,thumbnailOverlays:d.thumbnailOverlays,accessibilityText:gYa(a)});a=b}else a=void 0}else a={inlinePlaybackEndpoint:a.inlinePlaybackEndpoint,navigationEndpoint:a.navigationEndpoint,thumbnail:a.thumbnail,thumbnailOverlays:a.thumbnailOverlays,accessibilityText:gYa(a)};else a=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:a,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var PK=function(a){var b;if(b=a.inlinePreviewIsEnabledForUser)b=(a=a.mediaRenderer.data)?"inlinePlaybackEndpoint"in a&&a.inlinePlaybackEndpoint||eYa(a)&&a.inlinePlayerData||"multipleInlinePlaybackEndpoint"in a&&a.multipleInlinePlaybackEndpoint?!0:!1:!1;return b};
hYa.prototype.terminateVideoPreview=function(){_.ho(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var OK=function(a){_.zk.cancelJob(a.videoPreviewJobId);a.inlinePreviewIsActive=!1;a.previewTriggered=!1;a.mediaRenderer.isInlinePreviewTriggered=!1};var JZb=_.cx(["#"]),KZb=function(){var a=_.P.apply(this,arguments)||this;a.isDisabled=!1;return a};
_.z(KZb,_.P);_.f=KZb.prototype;_.f.configureRendererStamper=function(){return{"data.menu":xK,"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"}}}};
_.f.attached=function(){this.updateInlinePreviewHoverListeners()};
_.f.detached=function(){this.clearInlinePreviewHoverListeners()};
_.f.getMetadata=function(a){var b=[];if(a.metadataText&&Object.keys(a.metadataText).length>0){var c=this.ytRendererBehavior.getSimpleString(a.metadataText);a.upcomingEventData&&a.upcomingEventData.upcomingEventText&&(c=_.Ku(c,Number(a.upcomingEventData.startTime)));b.push(c)}else a.shortViewCountText&&b.push(this.ytRendererBehavior.getSimpleString(a.shortViewCountText)),a.publishedTimeText&&b.push(this.ytRendererBehavior.getSimpleString(a.publishedTimeText)),a.upcomingEventData&&a.upcomingEventData.upcomingEventText&&
(c=this.ytRendererBehavior.getSimpleString(a.upcomingEventData.upcomingEventText),b.push(_.Ku(c,Number(a.upcomingEventData.startTime))));return b};
_.f.calculateBylineText=function(a){return a.shortBylineText?a.shortBylineText:a.bylineText?a.bylineText:null};
_.f.calculateIsDisabled=function(a){return!!a.isDisabled};
_.f.computeHrefWithDefault=function(a){return this.ytComponentBehavior.computeHref_(a)||_.Jd(JZb)};
_.f.onDetailsTap=function(a){var b=this.data&&this.data.navigationEndpoint;b&&!_.Xt(_.Pq(a)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.x("kevlar_grid_video_renderer_killswitch")?_.go(this.hostElement,"yt-navigate",{endpoint:b}):this.ytComponentBehavior.resolveCommand(b))};
_.f.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.f.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$12612_inlinePreviewHoverListener=$u({mediaRenderer:this,lockupElement:_.E(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.E(this.hostElement).querySelector("ytd-thumbnail")})};
_.f.clearInlinePreviewHoverListeners=function(){var a;(a=this.JSC$12612_inlinePreviewHoverListener)==null||qv(a)};
_.f.computeThumbnailWidth=function(a,b){return b&&b>0?b:a?360:210};
_.f.computeShowChannelThumbnail=function(a,b){var c;return b&&!!(a==null?0:(c=a.channelThumbnailSupportedRenderers)==null?0:c.channelThumbnailWithLinkRenderer)};
_.Vm.Object.defineProperties(KZb.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.JSC$12612_inlinePreviewHoverListener)==null?0:PK(a))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
var QK=KZb;QK.prototype.dataChanged=QK.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],QK.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],QK.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],QK.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.NI),_.W("design:type",Object)],QK.prototype,"ytdDismissibleItemBehavior",void 0);
_.U([_.H(_.VI),_.W("design:type",Object)],QK.prototype,"ytdLockupBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],QK.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],QK.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Boolean)],QK.prototype,"noEndpoints",void 0);_.U([_.O({computed:"calculateBylineText(data)"}),_.W("design:type",Object)],QK.prototype,"bylineText",void 0);
_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],QK.prototype,"isSearch",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],QK.prototype,"isDownloading",void 0);_.U([_.O({reflectToAttribute:!0,value:0}),_.W("design:type",Number)],QK.prototype,"width",void 0);_.U([_.O({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.W("design:type",Object)],QK.prototype,"isDisabled",void 0);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],QK.prototype,"dataChanged",null);_.U([_.K("lockupIsHovered"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],QK.prototype,"isHovered",null);QK=_.U([_.Q({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],QK);
_.S(QK,"ytd-grid-video-renderer",function(){if(PYb!==void 0)return PYb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-video-renderer"><ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(isSearch, width)]]" class="style-scope ytd-grid-video-renderer"></ytd-thumbnail><div id="details" on-tap="onDetailsTap" class="style-scope ytd-grid-video-renderer"><a id="channel-thumbnail" hidden="[[!computeShowChannelThumbnail(data, isSearch)]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-grid-video-renderer"><yt-img-shadow id="avatar" thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="36" class="style-scope ytd-grid-video-renderer"></yt-img-shadow></a><div id="text-metadata" class="style-scope ytd-grid-video-renderer"><div id="meta" class="style-scope ytd-grid-video-renderer"><h3 class="style-scope ytd-grid-video-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer><a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-video-renderer" href$="[[computeHrefWithDefault(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a></h3><div id="metadata-container" class="grid style-scope ytd-grid-video-renderer" meta-block=""><div id="metadata" class="style-scope ytd-grid-video-renderer"><div id="byline-container" hidden="[[!bylineText]]" class="style-scope ytd-grid-video-renderer"><ytd-channel-name id="channel-name" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" no-endpoints="[[noEndpoints]]" class="style-scope ytd-grid-video-renderer"></ytd-channel-name></div><div id="metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[item]]</span></template></div></div><div id="additional-metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[data.additionalMetadatas]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[getSimpleString(item)]]</span></template></div></div></div><ytd-badge-supported-renderer id="video-badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer></div><div id="menu" class="style-scope ytd-grid-video-renderer"></div></div><div id="buttons" class="style-scope ytd-grid-video-renderer"></div></div><div id="dismissed" class="style-scope ytd-grid-video-renderer"><div id="dismissed-content" class="style-scope ytd-grid-video-renderer"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-grid-video-renderer"></yt-interaction>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return PYb=a},{mode:_.as("kevlar_poly_si_batch_j047")?1:2});var LZb;var RK=function(){var a=_.P.apply(this,arguments)||this;a.roundedContainer=!0;a.skipRoundingTop=!1;a.disableTopPadding=!1;a.amsterdamEnabled=_.x("enable_desktop_amsterdam_info_panels");return a};
_.z(RK,_.P);RK.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
RK.prototype.onClick=function(a){var b,c=(b=this.data)==null?void 0:b.sourceEndpoint;!_.Xt(_.Pq(a),this.hostElement,["A".toString()])&&c&&_.go(this.hostElement,"yt-navigate",{endpoint:c})};
_.Vm.Object.defineProperties(RK.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 a;return!((a=this.data)==null||!a.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var a,b;return(b=(a=this.data)==null?void 0:a.paragraphMaxLines)!=null?b:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
var SK=RK;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],SK.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],SK.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],SK.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],SK.prototype,"showVerticalDividers",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],SK.prototype,"roundedContainer",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],SK.prototype,"skipRoundingTop",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],SK.prototype,"disableTopPadding",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],SK.prototype,"amsterdamEnabled",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],SK.prototype,"showMetadataAtTop",null);
_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],SK.prototype,"showMetadataBelowTitle",null);_.U([_.O({reflectToAttribute:!0}),_.K("data.menu"),_.W("design:type",Object),_.W("design:paramtypes",[])],SK.prototype,"hasMenu",null);_.U([_.O({reflectToAttribute:!0}),_.K("data.truncateParagraphs"),_.W("design:type",Object),_.W("design:paramtypes",[])],SK.prototype,"truncateParagraphs",null);
_.U([_.O({reflectToAttribute:!0}),_.K("data.paragraphMaxLines"),_.W("design:type",Number),_.W("design:paramtypes",[])],SK.prototype,"paragraphMaxLines",null);_.U([_.O({type:_.x("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.K("data.background"),_.W("design:type",Object),_.W("design:paramtypes",[])],SK.prototype,"background",null);SK=_.U([_.Q({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],SK);
_.S(SK,"ytd-info-panel-content-renderer",function(){if(LZb!==void 0)return LZb;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return LZb=a},{mode:_.as("kevlar_poly_si_batch_j076")?1:2});var MZb;var NZb;var OZb;var PZb;var QZb=function(){return _.P.apply(this,arguments)||this};
_.z(QZb,_.P);QZb.prototype.computeStyle=function(a){return a};
var TK=QZb;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],TK.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],TK.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.W("design:type",String)],TK.prototype,"style_",void 0);TK=_.U([_.ur({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],TK);
_.S(TK,"yt-channel-thumbnail-with-link-renderer",function(){if(PZb===void 0){var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;OZb===void 0&&(OZb=document.createElement("template"));var d=OZb;c.call(b,d.content.cloneNode(!0),a.content.firstChild);PZb=a}a=PZb;return a},{mode:2});var UK=function(){var a=_.P.apply(this,arguments)||this;a.modernTypography=_.x("web_modern_typography");return a};
_.z(UK,_.P);UK.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"}}}};
UK.prototype.computeTitleStyle=function(a){return a||null};
UK.prototype.computeAvatarStyle=function(a){return a||null};
UK.prototype.computeShowNavigationButton=function(a,b){return!(a==null||!a.navigationButton||b)};
var VK=UK;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],VK.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],VK.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],VK.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.W("design:type",String)],VK.prototype,"titleStyle",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.W("design:type",String)],VK.prototype,"avatarStyle",void 0);_.U([_.O(),_.W("design:type",Boolean)],VK.prototype,"hideNavigationButton",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],VK.prototype,"isModernSd",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],VK.prototype,"modernTypography",void 0);
VK=_.U([_.Q({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],VK);
_.S(VK,"ytd-rich-list-header-renderer",function(){if(NZb!==void 0)return NZb;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return NZb=a},{mode:_.as("kevlar_poly_si_batch_j058")?1:2});var RZb=function(){return _.P.apply(this,arguments)||this};
_.z(RZb,_.P);RZb.prototype.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{richListHeaderRenderer:"ytd-rich-list-header-renderer"}},"data.contents":{id:"contents",mapping:{gridVideoRenderer:{component:"ytd-grid-video-renderer",properties:{isSearch:"[[isSearch]]"}}}}}};
var WK=RZb;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],WK.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],WK.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],WK.prototype,"data",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],WK.prototype,"isSearch",void 0);WK=_.U([_.Q({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],WK);
_.S(WK,"ytd-preview-card-renderer",function(){if(MZb!==void 0)return MZb;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return MZb=a},{mode:1});var SZb;var XK=function(){return _.P.apply(this,arguments)||this};
_.z(XK,_.P);XK.prototype.configureRendererStamper=function(){return{"data.menu":xK}};
XK.prototype.dataChanged=function(){var a=this.get("colorExtractionPalette.section1Color",this.data);a=_.Bq(a);_.dr(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":a})};
XK.prototype.computeCardStyle=function(a){return this.get("style.value",a)||null};
var YK=XK;YK.prototype.dataChanged=YK.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],YK.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],YK.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.NI),_.W("design:type",Object)],YK.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],YK.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.W("design:type",String)],YK.prototype,"cardStyle",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],YK.prototype,"dataChanged",null);YK=_.U([_.Q({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],YK);
_.S(YK,"ytd-compact-channel-recommendation-card-renderer",function(){if(SZb!==void 0)return SZb;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return SZb=a},{mode:1});var TZb;var UZb;var VZb=function(){var a=_.P.apply(this,arguments)||this;a.alignAuto=!1;a.collapsed=!0;a.isToggled=!1;a.alwaysCollapsed=!1;a.canToggle=!0;a.collapsedHeight=80;a.disableToggle=!1;a.alwaysToggleable=!1;a.reversed=!1;a.shouldUseNumberOfLines=!1;a.recomputeOnResize=!1;a.canToggleJobId=0;a.lastReversed=!1;return a};
_.z(VZb,_.P);_.f=VZb.prototype;_.f.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.f.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.f.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var a=_.E(this.hostElement),b=a.childNodes,c=document.createDocumentFragment(),d=a.childNodes.length-1;d>=0;d--)_.E(c).appendChild(b[d]);_.x("enable_shadydom_free_scoped_node_methods")?_.Zq(this.hostElement).appendChild(c):a.appendChild(c)}};
_.f.ready=function(){var a=this;_.Cr(function(){a.initChildrenObserver()},1)};
_.f.detached=function(){this.detachObserver()};
_.f.toggle=function(a,b){this.canToggle&&(this.isToggled=b,_.go(this.hostElement,"yt-refit"),a&&a.stopPropagation())};
_.f.reset=function(){this.childrenChanged()};
_.f.onIronResize=function(){this.recomputeOnResize&&this.childrenChanged()};
_.f.computeIsMoreVisible=function(a,b){return a&&!b};
_.f.computeShouldUseNumberOfLines=function(a){try{return!!a&&window.CSS.supports("-webkit-line-clamp","1")}catch(b){}return!1};
_.f.computeIsLessVisible=function(a,b){return a&&b};
_.f.observeCollapsedHeightAndMaxLines=function(){var a=this.collapsedHeight,b=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.dr(this.hostElement,{"--ytd-expander-max-lines":""+b,"--ytd-expander-collapsed-height":""}):_.dr(this.hostElement,{"--ytd-expander-collapsed-height":a+"px","--ytd-expander-max-lines":""})};
_.f.handleMoreTap=function(a){this.disableToggle||(_.go(this.hostElement,"yt-expander-more-tapped"),this.toggle(a,!0))};
_.f.handleLessTap=function(a){_.go(this.hostElement,"yt-expander-less-tapped");this.toggle(a,!1)};
_.f.initChildrenObserver=function(){var a=this;this.observer=new MutationObserver(function(){a.childrenChanged()});
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.f.childrenChanged=function(){var a=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){$s(function(){a.canToggleJobId=0;a.calculateCanCollapse()})}))};
_.f.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};
_.f.detachObserver=function(){this.observer&&this.observer.disconnect()};
_.f.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.TH("collapsed-changed",this.collapsed))};
_.f.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.TH("is-toggled-changed",this.isToggled))};
_.f.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.TH("can-toggle-changed",this.canToggle))};
_.Vm.Object.defineProperties(VZb.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
var ZK=VZb;ZK.prototype.canToggleChangedForBinding=ZK.prototype.canToggleChangedForBinding;ZK.prototype.isToggledChangedForBinding=ZK.prototype.isToggledChangedForBinding;ZK.prototype.collapsedChangedForBinding=ZK.prototype.collapsedChangedForBinding;ZK.prototype.observeCollapsedHeightAndMaxLines=ZK.prototype.observeCollapsedHeightAndMaxLines;ZK.prototype.onIronResize=ZK.prototype.onIronResize;ZK.prototype.reversedChanged=ZK.prototype.reversedChanged;ZK.prototype.toggledChanged=ZK.prototype.toggledChanged;
ZK.prototype.alwaysToggleableChanged=ZK.prototype.alwaysToggleableChanged;_.U([_.H(_.KD),_.W("design:type",Object)],ZK.prototype,"ironResizableBehavior",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],ZK.prototype,"alignAuto",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],ZK.prototype,"collapsed",void 0);_.U([_.O(),_.W("design:type",Object)],ZK.prototype,"isToggled",void 0);_.U([_.O(),_.W("design:type",Object)],ZK.prototype,"alwaysCollapsed",void 0);
_.U([_.O(),_.W("design:type",Object)],ZK.prototype,"canToggle",void 0);_.U([_.O(),_.W("design:type",Object)],ZK.prototype,"collapsedHeight",void 0);_.U([_.O(),_.W("design:type",Object)],ZK.prototype,"disableToggle",void 0);_.U([_.O(),_.W("design:type",Object)],ZK.prototype,"alwaysToggleable",void 0);_.U([_.O(),_.W("design:type",Object)],ZK.prototype,"reversed",void 0);_.U([_.O(),_.W("design:type",Number)],ZK.prototype,"maxNumberOfLines",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.W("design:type",Object)],ZK.prototype,"shouldUseNumberOfLines",void 0);_.U([_.O(),_.W("design:type",Object)],ZK.prototype,"recomputeOnResize",void 0);_.U([_.gr("#content"),_.W("design:type",HTMLDivElement)],ZK.prototype,"content",void 0);_.U([_.kr("alwaysToggleable"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ZK.prototype,"alwaysToggleableChanged",null);
_.U([_.kr("isToggled"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ZK.prototype,"toggledChanged",null);_.U([_.K("canToggleJobId"),_.W("design:type",Object),_.W("design:paramtypes",[])],ZK.prototype,"isResetting",null);_.U([_.N("reversed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ZK.prototype,"reversedChanged",null);
_.U([_.M("iron-resize"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ZK.prototype,"onIronResize",null);_.U([_.N("maxNumberOfLines","collapsedHeight"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ZK.prototype,"observeCollapsedHeightAndMaxLines",null);_.U([_.N("collapsed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ZK.prototype,"collapsedChangedForBinding",null);
_.U([_.N("isToggled"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ZK.prototype,"isToggledChangedForBinding",null);_.U([_.N("canToggle"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ZK.prototype,"canToggleChangedForBinding",null);ZK=_.U([_.Q({disableElementRegistration:!0,is:"ytd-expander"})],ZK);
_.S(ZK,"ytd-expander",function(){if(UZb!==void 0)return UZb;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return UZb=a},{mode:1});var $K=function(){return _.P.apply(this,arguments)||this};
_.z($K,_.P);$K.prototype.computeIsCarousel=function(a){return!!a.isCarousel};
$K.prototype.observeLightsourcePalette=function(){var a,b=(a=this.data)==null?void 0:a.vibrantsourceColorPaletteData;b&&_.Gt(this.hostElement,b)};
$K.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
var aL=$K;aL.prototype.observeLightsourcePalette=aL.prototype.observeLightsourcePalette;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],aL.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],aL.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],aL.prototype,"data",void 0);_.U([_.O({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],aL.prototype,"isCarousel",void 0);
_.U([_.N("data.vibrantsourceColorPaletteData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],aL.prototype,"observeLightsourcePalette",null);aL=_.U([_.Q({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],aL);
_.S(aL,"ytd-media-upsell-renderer",function(){if(TZb!==void 0)return TZb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-upsell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="details-wrapper style-scope ytd-media-upsell-renderer">\n  <div class="image-wrapper style-scope ytd-media-upsell-renderer">\n    <yt-img-shadow class="media-thumbnail style-scope ytd-media-upsell-renderer" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div class="tv-show-season-wrapper style-scope ytd-media-upsell-renderer" hidden="[[!data.tvShowSeasons]]">\n      <yt-icon id="tv-show-icon" icon="tv" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n      <p id="tv-show-season" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.tvShowSeasons)]]\n      </p>\n    </div>\n  </div>\n  <div class="details style-scope ytd-media-upsell-renderer">\n    <div class="metadata-wrapper style-scope ytd-media-upsell-renderer">\n      <span id="media-title" hidden="[[!data.mediaTitle]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.mediaTitle)]]\n      </span>\n      <span id="metadata" hidden="[[!data.metadata]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.metadata)]]\n      </span>\n    </div>\n    <div id="action-button" class="style-scope ytd-media-upsell-renderer"></div>\n  </div>\n</div>\n<ytd-expander id="expander" hidden="[[data.isCarousel]]" max-number-of-lines="4" class="style-scope ytd-media-upsell-renderer">\n  <yt-formatted-string id="synopsis" slot="content" disable-upgrade$="[[!data.synopsis]]" hidden="[[data.isCarousel]]" text="[[data.synopsis]]" class="style-scope ytd-media-upsell-renderer">\n  </yt-formatted-string>\n  <div class="more-button style-scope ytd-media-upsell-renderer" slot="more-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.moreButtonText)]]</span>\n    <yt-icon id="drop-down-icon" icon="arrow_drop_down" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n  <div class="less-button style-scope ytd-media-upsell-renderer" slot="less-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.lessButtonText)]]</span>\n    <yt-icon id="drop-up-icon" icon="arrow_drop_up" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return TZb=a},{mode:2});var WZb;var XZb=function(){var a=_.P.apply(this,arguments)||this;a.JSC$12640_playerEvents=new Map;a.listeningToPlayer=!1;a.startX=0;a.active=!1;a.shouldShowButtons=_.x("web_buttons_hidden_killswitch");a.isHighlighted=!1;a.useHighlightStyling=_.x("web_enable_deeper_metadata_highlight_styling");a.modern=_.x("kevlar_modern_sd");a.enableProblemWalkthrough=_.x("problem_walkthrough_sd");return a};
_.z(XZb,_.P);_.f=XZb.prototype;
_.f.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}}}}}};
_.f.created=function(){this.JSC$12640_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.f.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.er(this,this.onRepeatButtonToggle));_.x("synced_panel_scrolling_controller")&&this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.er(this,this.onActiveUpdate))};
_.f.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.er(this,this.onRepeatButtonToggle));_.x("synced_panel_scrolling_controller")&&this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.er(this,this.onActiveUpdate))};
_.f.onDataChanged=function(){this.removePlayerListeners()};
_.f.onColorPaletteChange=function(){var a={},b;if(_.Hq()==="USER_INTERFACE_THEME_DARK"&&((b=this.data)==null?0:b.darkColorPalette)){var c=this.data.darkColorPalette;a["--ytd-macro-markers-list-item-background-color"]=_.Cq(this.get("section2Color",c))}else{var d;_.Hq()==="USER_INTERFACE_THEME_LIGHT"&&((d=this.data)==null?0:d.lightColorPalette)&&(c=this.data.lightColorPalette,a["--ytd-macro-markers-list-item-background-color"]=_.Cq(this.get("section3Color",c)))}c?(a["--ytd-macro-markers-list-item-title-color"]=
_.Cq(this.get("primaryTitleColor",c)),a["--ytd-macro-markers-list-item-secondary-color"]=_.Cq(this.get("secondaryTitleColor",c)),a["--ytd-macro-markers-list-item-timestamp-background-color"]=_.Cq(this.get("section1Color",c)),this.customButtonProperties={customColors:{color:_.Cq(this.get("primaryTitleColor",c))}},this.useColorSampling=!0):(a["--ytd-macro-markers-list-item-background-color"]="initial",a["--ytd-macro-markers-list-item-title-color"]="initial",a["--ytd-macro-markers-list-item-secondary-color"]=
"initial",a["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.dr(this.hostElement,a)};
_.f.onEndpointMouseDown=function(a){this.startX=a.clientX};
_.f.onEndpointClick=function(a){var b=this,c,d,e;return _.l(function(g){if(g.nextAddress==1){if(b.startX!==a.clientX)return a.preventDefault(),g.return();b.data&&b.ytRendererBehavior.logExplicitClick(b.data);if(!b.seekWithAnimationOnClick)return g.jumpTo(0);if(a.button!==0||a.shiftKey||a.altKey||a.metaKey||a.ctrlKey||_.Xt(_.Pq(a),b.hostElement,["BUTTON".toString()]))return g.return();a.stopPropagation();a.preventDefault();return b.data?_.p(g,_.cu().getPlayerPromise(),3):g.return()}c=g.yieldResult;
e=(d=_.y(b.data.onTap,_.Vn))==null?void 0:d.startTimeSeconds;e!==void 0&&c.seekToTimeWithAnimation(e*1E3,_.Vp(b.data.title));_.se(g)})};
_.f.computeLayout=function(a){return a};
_.f.computeIsHighlighted=function(a){return!!a};
_.f.computeCarouselType=function(a){return a};
_.f.hideModernCarousel=function(a){return this.modern&&this.hideThumbnail(a)};
_.f.hideThumbnail=function(a){return this.enableProblemWalkthrough&&a!==null&&a==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.f.onRepeatButtonToggle=function(a){var b=this;a.detail.toggled&&_.cu().getPlayerPromise().then(function(c){b.ytPlayerListenerBehavior.listenToPlayerEvents(c,b.JSC$12640_playerEvents);b.listeningToPlayer=!0})};
_.f.onLoopRangeChange=function(a){var b=_.E(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(b){var c=b.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",b.polymerController.data);if(c){var d=Number(c.endTimeMs);if(Number(c.startTimeMs)!==(a==null?void 0:a.startTimeMs)||d!==(a==null?void 0:a.endTimeMs))b.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.f.removePlayerListeners=function(){var a=this;this.listeningToPlayer&&_.cu().getPlayerPromise().then(function(b){a.ytPlayerListenerBehavior.unlistenFromPlayerEvents(b,a.JSC$12640_playerEvents);a.listeningToPlayer=!1})};
_.f.onActiveUpdate=function(a){this.active=a.detail.active};
var bL=XZb;bL.prototype.onColorPaletteChange=bL.prototype.onColorPaletteChange;bL.prototype.onDataChanged=bL.prototype.onDataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],bL.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],bL.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.YI.YtPlayerListenerBehavior),_.W("design:type",_.ZI)],bL.prototype,"ytPlayerListenerBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],bL.prototype,"data",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],bL.prototype,"useCustomColors",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],bL.prototype,"active",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],bL.prototype,"shouldShowButtons",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.W("design:type",String)],bL.prototype,"layout",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.W("design:type",Object)],bL.prototype,"isHighlighted",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],bL.prototype,"useHighlightStyling",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],bL.prototype,"modern",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],bL.prototype,"enableProblemWalkthrough",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.W("design:type",String)],bL.prototype,"carouselType",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],bL.prototype,"useColorSampling",void 0);_.U([_.O(),_.W("design:type",Boolean)],bL.prototype,"seekWithAnimationOnClick",void 0);_.U([_.O(),_.W("design:type",Object)],bL.prototype,"customButtonProperties",void 0);
_.U([_.gr("#repeat-button"),_.W("design:type",HTMLElement)],bL.prototype,"repeatButton",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],bL.prototype,"onDataChanged",null);_.U([_.N("data.lightColorPalette","data.darkColorPalette"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],bL.prototype,"onColorPaletteChange",null);
bL=_.U([_.Q({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],bL);
_.S(bL,"ytd-macro-markers-list-item-renderer",function(){if(WZb!==void 0)return WZb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[hideModernCarousel(data.carouselType)]]">\n  <div hidden="[[hideThumbnail(data.carouselType)]]" id="thumbnail" class="style-scope ytd-macro-markers-list-item-renderer">\n    <yt-img-shadow hidden="[[!data.thumbnail]]" object-fit="FILL" thumbnail="[[data.thumbnail]]" class="style-scope ytd-macro-markers-list-item-renderer">\n    </yt-img-shadow>\n    <div id="overlay" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n  </div>\n  <div id="details" class="style-scope ytd-macro-markers-list-item-renderer">\n    <h4 hidden="[[hideThumbnail(data.carouselType)]]" class="macro-markers style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <h4 hidden="[[!hideThumbnail(data.carouselType)]]" class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n  </div>\n</a>\n<div id="details" hidden="[[!hideModernCarousel(data.carouselType)]]" class="style-scope ytd-macro-markers-list-item-renderer">\n  <a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[!hideThumbnail(data.carouselType)]]">\n    <h4 class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n  </a>\n  <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n</div>\n<div id="share-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n<div id="repeat-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return WZb=a},{mode:1});var YZb;var ZZb;var $Zb=function(){var a=_.P.apply(this,arguments)||this;a.modernTypography=_.x("web_modern_typography");return a};
_.z($Zb,_.P);var cL=$Zb;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],cL.prototype,"ytRendererBehavior",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],cL.prototype,"modernTypography",void 0);_.U([_.O(),_.W("design:type",Object)],cL.prototype,"data",void 0);cL=_.U([_.Q({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],cL);
_.S(cL,"ytd-title-and-button-list-header-renderer",function(){if(ZZb!==void 0)return ZZb;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return ZZb=a},{mode:1});var a_b;var b_b=new _.fB("BUTTON_RENDERER_WIZ_TOKEN"),c_b=new _.fB("BUTTON_RENDERER_TOKEN");_.dL=_.Rr(function(a){var b=_.v().resolve(_.Wi(b_b));if(b)return _.q(b,Object.assign({},a));var c=_.v().resolve(c_b);return c?_.q(Tua,null,function(){return _.q(Ul,null,function(){var d,e,g,k,m,n,r,t,u,w,A,C;return void c(a.data(),{onButtonClickCallback:a.onButtonClickCallback,shouldShowIcons:(d=a.shouldShowIcons)==null?void 0:d.call(a),icon:(e=a.icon)==null?void 0:e.call(a),processAllEndpoints:(g=a.processAllEndpoints)==null?void 0:g.call(a),preventDefault:(k=a.preventDefault)==null?void 0:k.call(a),
stopPropagation:(m=a.stopPropagation)==null?void 0:m.call(a),disableButtonRendererClickHandling:(n=a.disableButtonRendererClickHandling)==null?void 0:n.call(a),className:(r=a.className)==null?void 0:r.call(a),buttonOverrides:(t=a.buttonOverrides)==null?void 0:t.call(a),forceModernIconButton:(u=a.forceModernIconButton)==null?void 0:u.call(a),isSubscribe:(w=a.isSubscribe)==null?void 0:w.call(a),alignByText:(A=a.alignByText)==null?void 0:A.call(a),forceDisabled:(C=a.forceDisabled)==null?void 0:C.call(a)})})}):
_.q(_.Vh,null)});
_.dL.idomCompat=!0;var eL=function(){this.topicCounter=0;this.JSC$12650_pubsub=new _.jj;this.keyToTopicMap=new Map;this.keyToSubscriptionIdsMap=new Map};
eL.prototype.publish=function(a,b){return(a=this.keyToTopicMap.get(a))?this.JSC$12650_pubsub.publish(a,b):!1};
eL.prototype.subscribe=function(a,b){var c=this.JSC$12650_pubsub,d=c.subscribe,e=this.keyToTopicMap.get(a);e||(this.topicCounter++,e="topic_"+this.topicCounter.toString(),this.keyToTopicMap.set(a,e));b=d.call(c,e,b);c=this.keyToSubscriptionIdsMap.get(a)||[];c.push(b);this.keyToSubscriptionIdsMap.has(a)||this.keyToSubscriptionIdsMap.set(a,c)};
eL.prototype.unsubscribeByKey=function(a){var b=this.keyToSubscriptionIdsMap.get(a);if(b&&b.length>0){for(var c=0,d=0;d<b.length;d++)this.unsubscribe(b[d])&&c++;b=c===b.length;this.keyToTopicMap.delete(a);this.keyToSubscriptionIdsMap.delete(a);return b}return!1};
eL.prototype.unsubscribe=function(a){return this.JSC$12650_pubsub.unsubscribeByKey(a)};var d_b=function(){eL.apply(this,arguments);this.keyToReplaceableData=new Map};
_.z(d_b,eL);d_b.prototype.getData=function(a){var b=this.keyToReplaceableData.get(a);if(!b)return a;if(!b.hide){var c,d;return(d=(c=b.replacement)==null?void 0:c.data)!=null?d:b.originalData}};
var kYa=new d_b;var sYa=new Map,bv=[],tYa=void 0,pYa=null;var e_b=_.Rr(function(a){var b=a.notification,c=_.Nr(a.useSquareAspectRatio,!1);return _.q(_.oi,{cond:function(){var d,e;return(d=b().responseText)==null?void 0:(e=d.runs)==null?void 0:e.length},
then:function(){var d={};return _.q("div",{class:_.jt("yt-mini-game-card-view-model__dismissed-card",(d["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!c()},d["yt-mini-game-card-view-model--dismissed-square-card"]=c,d))},_.q("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.q(_.oi,{cond:function(){return b().responseText.runs[0].text},
then:function(e){return _.q("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:e},e)}}),_.q(_.Eu,{data:function(){return b().buttons}},{buttonRenderer:_.dL,
buttonViewModel:_.Ju})))}})}),vYa=function(a){var b=new Set;
return function(c,d){if(c){c=Array.isArray(c)?c:[c];for(var e=0;e<c.length;e++){var g=c[e];g&&(g=mYa(c,e,a,b));if(g)for(var k=d,m=_.h(Object.keys(g)),n=m.next();!n.done;n=m.next()){var r=n.value;n=a[r]||BQa;(r=g[r])&&n(r,k)}}}}}({buttonRenderer:function(a,b){var c=_.v().resolve(c_b);
c&&c(a,b)},
buttonViewModel:function(a,b){Qs(_.Ju)({data:a,className:b==null?void 0:b.className,style:b==null?void 0:b.style,useOutlinedIcon:b==null?void 0:b.useOutlinedIcon,buttonOverrides:b==null?void 0:b.buttonOverrides,animatedTextProps:b==null?void 0:b.animatedTextProps,onClick:b==null?void 0:b.onclick})}});var k_b=_.Rr(function(a){a=_.Or(a,{data:{},className:"",useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var b=a.data,c=a.useFullWidth,d=a.isDesktopWeb,e=a.addSearchResultTopMargin,g=function(){return b().layout},k=function(){return b().title},m=function(){return b().genre},n=function(){return b().channelName},r=function(){return b().image},t=function(){return b().colorPalette},u=function(){return b().actionButton},w=function(){return b().overflowButton},A=function(){return b().avatar},
C=function(){var R={};
R=_.jt("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(R["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return d()},R));
return _.q("div",{class:R},_.q(f_b,{imageData:r,colorPalette:t}),_.q(fL,{onTap:function(){return b().onTap},
imageData:r,accessibilityText:function(){return b().accessibilityText},
overlayBadgeText:function(){return b().overlayBadgeText},
iconName:function(){return b().iconName},
unplayableInlinePlaybackIconName:function(){return b().unplayableInlinePlaybackIconName},
isDesktopWeb:d}),_.q(_.oi,{cond:function(){return!d()},
then:function(){return _.q(_.Vh,null,_.q(g_b,{layout:g,colorPalette:t,isDesktopWeb:d,overflowButton:w,avatar:A,onTap:function(){return b().onTap},
genre:m,title:k,channelName:n,entityRedesignExperiments:function(){return b().entityRedesignExperiments}}),_.q(gL,{actionButton:u}))}}))},G=function(){var R={};
R=_.jt((R["yt-mini-game-card-view-model--search-result-desktop"]=function(){return d()},R["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!d()},R["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return e()},R));
return _.q("div",{class:R},C(),_.q(h_b,{description:function(){return b().description},
isDesktopWeb:d,title:k,genre:m,onTap:function(){return b().onTap},
actionButton:u,overflowButton:w,avatar:A,channelName:n}))},J=function(){var R=function(){var Ba;
return(Ba=b().entityRedesignExperiments)==null?void 0:Ba.changePlayablesLayoutWithCta},ca=function(){var Ba,Da;
return(Da=((Ba=b().entityRedesignExperiments)==null?void 0:Ba.changePlayablesLayoutWithCtaBelowMetadata)&&d())!=null?Da:!1},V=function(){var Ba,Da;
return(Da=((Ba=b().entityRedesignExperiments)==null?void 0:Ba.changePlayablesLayoutWithContentTypeBadge)&&d())!=null?Da:!1},fa=function(){var Ba,Da;
return(Da=((Ba=b().entityRedesignExperiments)==null?void 0:Ba.enableGameConsoleWithCinematicContainer)&&d())!=null?Da:!1},aa=function(){var Ba,Da;
return(Da=((Ba=b().entityRedesignExperiments)==null?void 0:Ba.enableGameConsoleWithSubtleColor)&&d())!=null?Da:!1},ma={};
ma=_.jt("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(ma["yt-mini-game-card-view-model--change-layout-with-cta"]=function(){return R()||ca()||V()||fa()||aa()},ma["yt-mini-game-card-view-model--change-layout-with-game-console"]=function(){return fa()||aa()},ma["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return d()},ma["yt-mini-game-card-view-model--portrait-card-desktop-aspect-ratio-experiment"]=function(){var Ba;
return d()&&_.x("enable_playables_reduced_card_count")&&((Ba=b().entityRedesignExperiments)==null?void 0:Ba.enable11ThumbnailOnHomeShelves)},ma["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return d()&&b().width===135},ma["yt-mini-game-card-view-model--thumbnail-square-aspect-ratio"]=function(){var Ba;
return(Ba=b().entityRedesignExperiments)==null?void 0:Ba.enable11ThumbnailOnHomeShelves},ma["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return d()},ma["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=function(){return d()&&b().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},ma["yt-mini-game-card-view-model--big-metadata-font"]=function(){return b().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},ma["yt-mini-game-card-view-model--use-full-width"]=function(){return c()},
ma["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!u()},ma));
return _.q("div",{class:ma},_.q(_.oi,{cond:function(){return R()||ca()||V()||fa()||aa()},
then:function(){return _.q(_.Vh,null,_.q(_.oi,{cond:function(){return V()===!0},
then:function(){return _.q(i_b,{imageData:r,colorPalette:t,onTap:function(){return b().onTap},
accessibilityText:function(){return b().accessibilityText},
overlayBadgeText:function(){return b().overlayBadgeText},
iconName:function(){return b().iconName},
unplayableInlinePlaybackIconName:function(){return b().unplayableInlinePlaybackIconName},
contentTypeBadgeText:function(){return b().contentTypeBadgeText},
contentTypeBadgeIconName:function(){return b().contentTypeBadgeIconName},
isDesktopWeb:d})},
else:function(){return _.q(j_b,{entityRedesignExperiments:function(){return b().entityRedesignExperiments},
colorPalette:t,isDesktopWeb:d,onTap:function(){return b().onTap},
accessibilityText:function(){return b().accessibilityText},
overlayBadgeText:function(){return b().overlayBadgeText},
iconName:function(){return b().iconName},
unplayableInlinePlaybackIconName:function(){return b().unplayableInlinePlaybackIconName},
actionButton:u,imageData:r})}}),_.q(g_b,{layout:g,
colorPalette:t,isDesktopWeb:d,overflowButton:w,avatar:A,onTap:function(){return b().onTap},
genre:m,title:k,channelName:n,entityRedesignExperiments:function(){return b().entityRedesignExperiments}}),_.q(_.oi,{cond:function(){return!!R()===!1&&u()},
then:function(){return _.q(gL,{actionButton:u})}}))},
else:function(){return _.q(_.Vh,null,_.q(f_b,{imageData:r,colorPalette:t}),_.q(fL,{onTap:function(){return b().onTap},
imageData:r,accessibilityText:function(){return b().accessibilityText},
overlayBadgeText:function(){return b().overlayBadgeText},
iconName:function(){return b().iconName},
unplayableInlinePlaybackIconName:function(){return b().unplayableInlinePlaybackIconName},
isDesktopWeb:d}),_.q(g_b,{layout:g,colorPalette:t,isDesktopWeb:d,overflowButton:w,avatar:A,onTap:function(){return b().onTap},
genre:m,title:k,channelName:n,entityRedesignExperiments:function(){return b().entityRedesignExperiments}}),_.q(gL,{actionButton:u}))}}))},I=function(){var R={};
R=_.jt("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(R["yt-mini-game-card-view-model--square-card-desktop"]=function(){return d()},R["yt-mini-game-card-view-model--use-full-width"]=function(){return c()},R));
return _.q("div",{class:R},_.q(fL,{onTap:function(){return b().onTap},
imageData:r,accessibilityText:function(){return b().accessibilityText},
overlayBadgeText:function(){return b().overlayBadgeText},
iconName:function(){return b().iconName},
unplayableInlinePlaybackIconName:function(){return b().unplayableInlinePlaybackIconName},
isDesktopWeb:d}),_.q(g_b,{layout:g,colorPalette:t,isDesktopWeb:d,overflowButton:w,avatar:A,onTap:function(){return b().onTap},
genre:m,title:k,channelName:n,entityRedesignExperiments:function(){return b().entityRedesignExperiments}}))};
return _.q("mini-game-card-view-model",{class:a.className},_.q(_.qi,null,_.q(_.pi,{when:function(){return g()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return J()}),_.q(_.pi,{when:function(){return g()==="MINI_APP_LAYOUT_SQUARE"}},function(){return I()}),_.q(_.pi,{when:function(){return g()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return G()})))});
k_b.idomCompat=!0;var gL=_.Rr(function(a){var b=_.Nr(a.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.q(_.Eu,{data:a.actionButton},{buttonViewModel:function(c){return _.q("div",{class:b},_.q(_.Ju,{data:c.data}))}})}),l_b=_.Rr(function(a){var b=a.contentTypeBadgeText;
return _.q("div",{class:"yt-mini-game-card-view-model__attribute-badge-container"},_.q("div",{class:"yt-mini-game-card-view-model__badge"},_.q("div",{class:"yt-mini-game-card-view-model__badge-content-type"},_.q(_.tt,{icon:a.iconName,className:"yt-mini-game-card-view-model__icon"}),_.q("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},b))))}),fL=_.Rr(function(a){var b=a.onTap;
var c=a.imageData;var d=a.accessibilityText;var e=a.overlayBadgeText;var g=a.iconName;var k=a.unplayableInlinePlaybackIconName;a=a.isDesktopWeb;return _.q(_.ut,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:b},_.q(_.Ss,{data:c,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(d==null?void 0:d())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.q(m_b,{overlayBadgeText:e,iconName:g,unplayableInlinePlaybackIconName:k,isDesktopWeb:a}))}),m_b=_.Rr(function(a){var b=a.overlayBadgeText;
var c=a.iconName;var d=a.unplayableInlinePlaybackIconName;var e=a.isDesktopWeb;return _.q("div",{class:"yt-mini-game-card-view-model__badge-container"},_.q(_.oi,{cond:c,then:function(g){return _.q("div",{class:"yt-mini-game-card-view-model__badge"},_.q("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.q(_.tt,{icon:g,className:"yt-mini-game-card-view-model__icon"}),_.q("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},b)))}}),_.q(_.oi,{cond:function(){return!c()&&
b()},
then:function(){return _.q("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},b)}}),_.q(_.oi,{cond:function(){return d()&&e()},
then:function(){return _.q("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.q(_.tt,{icon:d,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))}),n_b=_.Rr(function(a){var b=a.colorPalette;
var c,d=(c=_.v().resolve(_.Wi(_.Ns)))==null?void 0:c();return _.q("div",{class:"yt-mini-game-card-view-model__background-base",style:_.rt({"background-color":function(){var e="";if(d){var g,k=(g=b().darkColorPalette)==null?void 0:g.section1Color;k&&(e=Dq(k,"1"))}else(g=(k=b().lightColorPalette)==null?void 0:k.section4Color)&&(e=Dq(g,"1"));return e}})})}),o_b=_.Rr(function(a){var b=a.enableGameConsoleWithCinematicContainer;
var c=a.colorPalette;var d,e=(d=_.v().resolve(_.Wi(_.Ns)))==null?void 0:d();return _.q("div",{class:"yt-mini-game-card-view-model__game-console-wrapper",style:_.rt({color:function(){var g="";if(b()){var k,m=(k=c().vibrantColorPalette)==null?void 0:k.secondaryTitleColor;m&&(g=Dq(m,"1"))}else if(e)(k=(m=c().darkColorPalette)==null?void 0:m.secondaryTitleColor)&&(g=Dq(k,".7"));else{var n;(k=(n=c().lightColorPalette)==null?void 0:n.secondaryTitleColor)&&(g=Dq(k,".7"))}return g}})},_.q(_.tt,{icon:"GAME_CONSOLE_DPAD",
className:"yt-mini-game-card-view-model__game-console-icon",size:24}),_.q(_.tt,{icon:"GAME_CONSOLE_FACE_BUTTONS",className:"yt-mini-game-card-view-model__game-console-icon",size:32}))}),f_b=_.Rr(function(a){var b=a.colorPalette;
var c=a.imageData;var d=function(){return b().vibrantColorPalette?b().vibrantColorPalette.section2Color:b().sectionTwoColor};
return _.q(_.Vh,null,_.q("div",{class:"yt-mini-game-card-view-model__background-base",style:_.rt({"background-color":function(){return Dq(d(),"1")}})}),_.q("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.rt({"background-image":function(){return"url("+c().sources[0].url+")"}})}),_.q("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.rt({background:function(){return"linear-gradient(180deg,\n    "+Dq(d(),".8")+" 0%,\n    "+Dq(d(),".4")+" 25%,\n    "+Dq(b().vibrantColorPalette?b().vibrantColorPalette.section4Color:b().sectionFourColor,".8")+" 100%)"}})}))}),i_b=_.Rr(function(a){var b=a.imageData;
var c=a.colorPalette;var d=a.onTap;var e=a.accessibilityText;var g=a.overlayBadgeText;var k=a.iconName;var m=a.unplayableInlinePlaybackIconName;var n=a.contentTypeBadgeText;var r=a.contentTypeBadgeIconName;a=a.isDesktopWeb;return _.q("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.q(f_b,{imageData:b,colorPalette:c}),_.q(fL,{onTap:d,imageData:b,accessibilityText:e,overlayBadgeText:g,iconName:k,unplayableInlinePlaybackIconName:m,isDesktopWeb:a}),_.q(l_b,{contentTypeBadgeText:n,
iconName:r}))}),g_b=_.Rr(function(a){var b=a.layout;
var c=a.colorPalette;var d=a.isDesktopWeb;var e=a.overflowButton;var g=a.avatar;var k=a.onTap;var m=a.title;var n=a.channelName;var r=a.entityRedesignExperiments;var t=a.genre;var u=function(){var A;return b()!=="MINI_APP_LAYOUT_SQUARE"&&((A=c())==null?0:A.textPrimaryColor)?"color: "+Dq(c().textPrimaryColor,".7"):""},w=function(){var A,C,G;
return(r==null?void 0:(A=r())==null?void 0:A.changePlayablesLayoutWithCta)||(r==null?void 0:(C=r())==null?void 0:C.changePlayablesLayoutWithCtaBelowMetadata)||(r==null?void 0:(G=r())==null?void 0:G.changePlayablesLayoutWithContentTypeBadge)};
return _.q("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.q(_.oi,{cond:g,then:function(){return _.q("div",{class:"yt-mini-game-card-view-model__avatar"},_.q(_.Eu,{data:g},{avatarViewModel:_.LK}))}}),_.q(_.ut,{command:k,
className:"yt-mini-game-card-view-model__metadata-details"},_.q("h3",{class:"yt-mini-game-card-view-model__title",title:m},m),_.q(_.oi,{cond:g,then:function(){return _.q("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.q("span",{class:"yt-mini-game-card-view-model__genre",title:n,style:u},n),_.q("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:u},t))},
else:function(){return _.q(_.oi,{cond:w,then:function(){return _.q("span",{class:"yt-mini-game-card-view-model__genre",title:t},t)},
else:function(){return _.q("span",{class:"yt-mini-game-card-view-model__genre",title:t,style:u},t)}})}})),_.q("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.q(_.Eu,{data:e},{buttonViewModel:function(A){var C=A.data;
return _.q(_.Ju,{data:function(){return Object.assign({},C(),{customFontColor:w()&&d()?void 0:C().customFontColor})}})}})))}),j_b=_.Rr(function(a){var b=a.entityRedesignExperiments;
var c=a.colorPalette;var d=a.isDesktopWeb;var e=a.onTap;var g=a.accessibilityText;var k=a.overlayBadgeText;var m=a.iconName;var n=a.unplayableInlinePlaybackIconName;var r=a.actionButton;var t=a.imageData;var u=function(){var C;return b==null?void 0:(C=b())==null?void 0:C.changePlayablesLayoutWithCta},w=function(){var C;
return b==null?void 0:(C=b())==null?void 0:C.enableGameConsoleWithCinematicContainer},A=function(){var C;
return b==null?void 0:(C=b())==null?void 0:C.enableGameConsoleWithSubtleColor};
return _.q("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.q(_.oi,{cond:A,then:function(){return _.q(n_b,{colorPalette:c})},
else:function(){return _.q(f_b,{imageData:t,colorPalette:c})}}),_.q(fL,{onTap:e,
imageData:t,accessibilityText:g,overlayBadgeText:k,iconName:m,unplayableInlinePlaybackIconName:n,isDesktopWeb:d}),_.q(_.oi,{cond:function(){return(u==null?void 0:u())&&(r==null?void 0:r())},
then:function(){return _.q(gL,{actionButton:r})}}),_.q(_.oi,{cond:function(){return w()||A()},
then:function(){return _.q(o_b,{colorPalette:c,enableGameConsoleWithCinematicContainer:function(){return(w==null?void 0:w())||!1}})}}))}),h_b=_.Rr(function(a){var b=a.description;
var c=a.isDesktopWeb;var d=a.title;var e=a.genre;var g=a.onTap;var k=a.actionButton;var m=a.overflowButton;var n=a.avatar;a=a.channelName;var r={};r=_.jt("yt-mini-game-card-view-model--search-result-metadata-wrapper",(r["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=c,r["yt-mini-game-card-view-model--show-unplayable-on-hover"]=c,r["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!c()},r));
var t={};t=_.jt("yt-mini-game-card-view-model__search-result-info-row",(t["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!c()},t));
return _.q("div",{class:r},_.q("div",{class:t},_.q(_.ut,{command:g,className:"yt-mini-game-card-view-model__metadata-details"},_.q("h3",{class:"yt-mini-game-card-view-model__title",title:d},d),_.q("span",{class:"yt-mini-game-card-view-model__genre",title:e},e)),_.q(gL,{actionButton:k,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.q("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.q(_.Eu,{data:m},{buttonViewModel:_.Ju}))),_.q("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.q("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.q("div",{class:"yt-mini-game-card-view-model__avatar"},_.q(_.Eu,{data:n},{avatarViewModel:function(u){var w=u.data;return _.q(_.LK,{data:function(){return Object.assign({},w(),{avatarImageSize:c()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.q(_.ut,{command:g,
className:"yt-mini-game-card-view-model__description"},_.q("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},a)),_.q(_.ut,{command:g,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.q("div",null)))),_.q(_.oi,{cond:c,then:function(){return _.q(_.ut,{command:g,className:"yt-mini-game-card-view-model__description"},b)}}))});var p_b={isAdsVideo:!0},q_b={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},r_b={showPlayerControls:!1,videoPreviewDurationMs:15E3},M_a={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!_.x("web_shorts_imp_fullwidth_killswitch")},s_b={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:1,cropPlayerToFillThumbnailHorizontally:!0};var t_b=function(){var a=_.P.apply(this,arguments)||this;a.isSearch=!1;a.isRichGrid=!1;return a};
_.z(t_b,_.P);_.f=t_b.prototype;_.f.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.f.dismissibleItemOnYtServiceRequestSent=function(a,b){b.actions&&this.dismissibleItemProcessActions(a,b.actions)};
_.f.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.f.attached=function(){this.updateInlinePreviewHoverListeners()};
_.f.detached=function(){this.clearInlinePreviewHoverListeners()};
_.f.dataChanged=function(){this.dismissibleItemReset();this.updateInlinePreviewHoverListeners()};
_.f.dismissibleItemProcessActions=function(a,b){for(var c=0;c<b.length;c++){var d=b[c];_.y(d,_.BE)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.y(d,_.BE)),a.stopPropagation())}};
_.f.dismissibleItemHandleReplaceEnclosingAction=function(a){this.dismissedRenderer=a.item;this.isDismissed=!0};
_.f.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.thumbnailWrapper&&(this.JSC$12686_inlinePreviewHoverListener=$u({mediaRenderer:this,lockupElement:this.miniGameCardViewModel,thumbnailElement:this.thumbnailWrapper,videoPreviewOpts:s_b}))};
_.f.clearInlinePreviewHoverListeners=function(){var a;(a=this.JSC$12686_inlinePreviewHoverListener)==null||qv(a)};
_.f.experimentalPropertiesChanged=function(){this.ytIdomTemplatingBehavior.debounceRender()};
_.f.renderIdom=function(){if(this.data)if(this.dismissedRenderer&&this.dismissedRenderer.notificationMultiActionRenderer){var a=this.dismissedRenderer.notificationMultiActionRenderer,b=this.data.layout==="MINI_APP_LAYOUT_SQUARE";b=b===void 0?!1:b;_.x("kevlar_enable_cow_dismissed_mini_game_card")?Qs(e_b)({notification:a,useSquareAspectRatio:b}):wYa(a,b)}else Qs(k_b)({data:this.data,addSearchResultTopMargin:this.isSearch,useFullWidth:this.isRichGrid,isDesktopWeb:!0}),this.updateInlinePreviewHoverListeners()};
var hL=t_b;hL.prototype.experimentalPropertiesChanged=hL.prototype.experimentalPropertiesChanged;hL.prototype.dataChanged=hL.prototype.dataChanged;hL.prototype.dismissibleItemOnRequestSent=hL.prototype.dismissibleItemOnRequestSent;hL.prototype.dismissibleItemOnYtServiceRequestSent=hL.prototype.dismissibleItemOnYtServiceRequestSent;_.U([_.H(KNb),_.W("design:type",Object)],hL.prototype,"ytIdomTemplatingBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],hL.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],hL.prototype,"isSearch",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],hL.prototype,"isDismissed",void 0);_.U([_.O(),_.W("design:type",Object)],hL.prototype,"dismissedRenderer",void 0);_.U([_.gr(".yt-mini-game-card-view-model__thumbnail-wrapper"),_.W("design:type",HTMLElement)],hL.prototype,"thumbnailWrapper",void 0);
_.U([_.gr("mini-game-card-view-model"),_.W("design:type",HTMLElement)],hL.prototype,"miniGameCardViewModel",void 0);_.U([_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Ot]),_.W("design:returntype")],hL.prototype,"dismissibleItemOnYtServiceRequestSent",null);_.U([_.M("yt-service-request-sent-button-renderer"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],hL.prototype,"dismissibleItemOnRequestSent",null);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],hL.prototype,"dataChanged",null);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],hL.prototype,"isRichGrid",void 0);_.U([_.N("data.*","dismissedRenderer.*","isSearch","isRichGrid"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],hL.prototype,"experimentalPropertiesChanged",null);
hL=_.U([_.ur({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],hL);
_.S(hL,"ytd-mini-game-card-view-model",function(){if(a_b!==void 0)return a_b;var a=document.createElement("template");_.B(a,"\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");a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return a_b=a},{mode:_.as("kevlar_poly_si_batch_j081")?1:2});var u_b;var v_b;var w_b=function(){return _.Wm.apply(this,arguments)||this};
_.z(w_b,_.Wm);w_b.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
w_b.prototype.getContinuationUrl=function(a){var b={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(b.itct=this.data.clickTrackingParams);return _.Qi(a,b)};
var x_b=w_b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],x_b.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],x_b.prototype,"data",void 0);x_b=_.U([_.ur({is:"yt-reload-continuation",noInjection:!0})],x_b);var y_b;var z_b;var A_b=function(){var a=_.P.apply(this,arguments)||this;a.notificationData={};return a};
_.z(A_b,_.P);_.f=A_b.prototype;_.f.isMenuExpanded=function(a){return a&&a.length<=1?"undefined":"false"};
_.f.dataChanged_=function(){this.selected=void 0;var a=this.computeSelectedIndex_(this.data);a>=0&&(this.selected=a);a=this.data&&this.data.length>1;_.$q(this.hostElement,"has-items",a);_.E(this.hostElement).querySelector("#label").tabIndex=a?0:-1};
_.f.onDropdownOpen=function(){var a=_.Fn();if(this.parentTrackingParams&&this.data){var b=_.qs(this.parentTrackingParams);this.data.forEach(function(c){a&&b&&c.trackingParams&&(c=_.qs(c.trackingParams),_.Ro(a,b,c),_.To(a,[c]))})}else this.parentTrackingParams||_.Dl(new _.qj("No parent tracking params passed in for yt-dropdown-menu."))};
_.f.hasNotification=function(a){var b;if(a.targetId&&((b=this.notificationData)==null?0:b.targetId)){var c;return a.targetId===((c=this.notificationData)==null?void 0:c.targetId)}};
_.f.computeSelectedIndex_=function(a){if(a)for(var b=0,c=a.length;b<c;b++)if(a[b].selected)return b;return-1};
_.f.computeLabel_=function(a){return this.data&&a!=void 0?this.data[a].title:""};
_.f.computeShowIcon_=function(a,b){return!b&&!!a};
_.f.computeVerticalOffset_=function(a){return a?36:0};
_.f.computeEndpoint_=function(a){return a.endpoint||a.navigationEndpoint};
_.f.onLabelClick_=function(a){this.data&&this.data.length<=1?a.stopPropagation():this.menuExpanded="true"};
_.f.onIronActivate_=function(a){a=a.detail.item;var b=_.E(this.hostElement).querySelector("#repeat").itemForElement(a);if(b&&b.trackingParams){var c=_.Fn(),d=_.qs(b.trackingParams);c&&_.Vo(c,d)}if(b&&b.serviceEndpoint)_.x("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(b.serviceEndpoint):_.mo(this.hostElement,[b.serviceEndpoint]),_.go(this.hostElement,"yt-playlist-reloading");else a:{if((b=a.querySelector("yt-supported-renderers"))&&(b=
b.rendererElement)&&b.is=="yt-reload-continuation"){b.trigger();break a}(a=a.querySelector("yt-reload-continuation"))&&a.trigger()}};
_.f.onTap_=function(a){a.preventDefault()};
_.f.onItemTap_=function(a){this.ytEndpointBehavior.onEndpointTap_(a)};
_.f.onLinkFocus_=function(a){try{var b=a.target}catch(d){}if(b){var c=b.querySelector("tp-yt-paper-item");c&&_.Dr(this,"focus",function(){c.focus()})}};
_.f.onMenuClose_=function(){this.menuExpanded="false"};
_.f.isLabelIconActive_=function(a){return a==="true"};
_.f.computeHasSubtitle_=function(a){return!!a};
_.f.computeHrefForItem_=function(a){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(a))};
_.f.updateSelectedFromBinding=function(a){this.selected=a.detail.value};
var iL=A_b;iL.prototype.onMenuClose_=iL.prototype.onMenuClose_;iL.prototype.onTap_=iL.prototype.onTap_;iL.prototype.onIronActivate_=iL.prototype.onIronActivate_;iL.prototype.onDropdownOpen=iL.prototype.onDropdownOpen;iL.prototype.dataChanged_=iL.prototype.dataChanged_;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],iL.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.nH.YtEndpointBehavior),_.W("design:type",Object)],iL.prototype,"ytEndpointBehavior",void 0);
_.U([_.O(),_.W("design:type",Array)],iL.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],iL.prototype,"parentTrackingParams",void 0);_.U([_.O(),_.W("design:type",Object)],iL.prototype,"selected",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],iL.prototype,"useLabel",void 0);_.U([_.O(),_.W("design:type",String)],iL.prototype,"icon",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],iL.prototype,"iconLabel",void 0);
_.U([_.O(),_.W("design:type",String)],iL.prototype,"ariaLabel",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],iL.prototype,"disabled",void 0);_.U([_.O({computed:"isMenuExpanded(data)"}),_.W("design:type",String)],iL.prototype,"menuExpanded",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],iL.prototype,"closeOnActivate",void 0);_.U([_.O({reflectToAttribute:!0,value:_.x("web_modern_buttons")}),_.W("design:type",Boolean)],iL.prototype,"modernButtons",void 0);
_.U([_.O(),_.W("design:type",Object)],iL.prototype,"notificationData",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],iL.prototype,"dataChanged_",null);_.U([_.M("paper-dropdown-open"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],iL.prototype,"onDropdownOpen",null);
_.U([_.M("iron-activate"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],iL.prototype,"onIronActivate_",null);_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],iL.prototype,"onTap_",null);_.U([_.M("iron-overlay-closed"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],iL.prototype,"onMenuClose_",null);
iL=_.U([_.ur({is:"yt-dropdown-menu",disableElementRegistration:!0})],iL);
_.S(iL,"yt-dropdown-menu",function(){if(z_b===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-dropdown-menu--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_dropdown_menu.yt.dropdown.menu.css.js--\x3e<tp-yt-paper-menu-button close-on-activate="[[closeOnActivate]]" disabled="[[disabled]]" dynamic-align="" expand-sizing-target-for-scrollbars="" horizontal-align="[[horizontalAlign]]" vertical-offset="[[computeVerticalOffset_(icon)]]" class="style-scope yt-dropdown-menu">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope yt-dropdown-menu" slot="dropdown-trigger" aria-expanded$="[[menuExpanded]]" aria-label$="[[ariaLabel]]" on-tap="onLabelClick_">\n    <template is="dom-if" if="[[computeShowIcon_(icon, useLabel)]]" class="style-scope yt-dropdown-menu">\n      <yt-icon id="label-icon" active="[[isLabelIconActive_(menuExpanded)]]" icon="[[icon]]" class="style-scope yt-dropdown-menu">\n      </yt-icon>\n      <div id="icon-label" class="style-scope yt-dropdown-menu">[[iconLabel]]</div>\n    </template>\n    <template is="dom-if" if="[[useLabel]]" class="style-scope yt-dropdown-menu">\n      <div id="label-text" style-target="label-text" class="style-scope yt-dropdown-menu">[[computeLabel_(selected)]]</div>\n      <yt-icon id="label-icon" icon="expand" class="style-scope yt-dropdown-menu">\n      </yt-icon>\n    </template>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="menu" class="dropdown-content style-scope yt-dropdown-menu" slot="dropdown-content" selected="[[selected]]" on-selected-changed="updateSelectedFromBinding">\n    <template id="repeat" is="dom-repeat" items="[[data]]" class="style-scope yt-dropdown-menu">\n      <a class="yt-simple-endpoint style-scope yt-dropdown-menu" href$="[[computeHrefForItem_(item)]]" data="[[computeEndpoint_(item)]]" on-focus="onLinkFocus_" on-tap="onItemTap_">\n        <tp-yt-paper-item class="style-scope yt-dropdown-menu">\n          <tp-yt-paper-item-body two-line$="[[computeHasSubtitle_(item.subtitle)]]" class="style-scope yt-dropdown-menu">\n            <div id="item-with-badge" class="style-scope yt-dropdown-menu">\n              <div class="item style-scope yt-dropdown-menu">[[item.title]]\n                <span class="notification style-scope yt-dropdown-menu" hidden$="[[!hasNotification(item,notificationData)]]"></span>\n              </div>\n              <ytd-badge-supported-renderer hidden="[[!item.badge]]" top-standalone-badge="[[item.badge]]" class="style-scope yt-dropdown-menu">\n              </ytd-badge-supported-renderer>\n            </div>\n            <div secondary="" id="subtitle" hidden="[[!computeHasSubtitle_(item.subtitle)]]" class="style-scope yt-dropdown-menu">\n              [[item.subtitle]]\n            </div>\n          </tp-yt-paper-item-body>\n          <yt-reload-continuation data="[[item.continuation.reloadContinuationData]]" class="style-scope yt-dropdown-menu">\n          </yt-reload-continuation>\n        </tp-yt-paper-item>\n      </a>\n    </template>\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;y_b===void 0&&(y_b=document.createElement("template"));var d=y_b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);z_b=a}a=z_b;return a},{mode:2});var jL=function(){var a=_.P.apply(this,arguments)||this;a.hasNotification=!1;return a};
_.z(jL,_.P);jL.prototype.computeId=function(a){return a};
jL.prototype.computeHorizontalAlign=function(a){return a?"right":"left"};
jL.prototype.computeAccessibilityLabel=function(a){var b,c;return((b=a.accessibility)==null?void 0:(c=b.accessibilityData)==null?void 0:c.label)||null};
jL.prototype.notificationDataChanged=function(){var a;this.hasNotification=!!this.notificationData&&!((a=this.data)==null?0:a.icon)};
var kL=jL;kL.prototype.notificationDataChanged=kL.prototype.notificationDataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],kL.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.KG.YtLiveChatTooltipTargetingBehavior),_.W("design:type",Object)],kL.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],kL.prototype,"data",void 0);
_.U([_.O({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.W("design:type",String)],kL.prototype,"id",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],kL.prototype,"isRightAligned",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],kL.prototype,"disabled",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],kL.prototype,"closeOnActivate",void 0);_.U([_.O(),_.W("design:type",Object)],kL.prototype,"notificationData",void 0);
_.U([_.O(),_.W("design:type",Object)],kL.prototype,"hasNotification",void 0);_.U([_.N("notificationData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],kL.prototype,"notificationDataChanged",null);kL=_.U([_.ur({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],kL);
_.S(kL,"yt-sort-filter-sub-menu-renderer",function(){if(v_b===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-sort-filter-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_sort_filter_sub_menu_renderer.yt.sort.filter.sub.menu.renderer.css.js--\x3e<tp-yt-paper-tooltip class="style-scope yt-sort-filter-sub-menu-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n<yt-dropdown-menu aria-label="[[computeAccessibilityLabel(data)]]" close-on-activate="[[closeOnActivate]]" data="[[data.subMenuItems]]" disabled="[[disabled]]" horizontal-align="[[computeHorizontalAlign(isRightAligned)]]" icon="[[data.icon.iconType]]" icon-label="[[data.title]]" notification-data="[[notificationData]]" parent-tracking-params="[[data.trackingParams]]" use-label="[[!data.icon.iconType]]" class="style-scope yt-sort-filter-sub-menu-renderer">\n</yt-dropdown-menu>\n<div id="notification" hidden$="[[!hasNotification]]" class="style-scope yt-sort-filter-sub-menu-renderer"></div>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;u_b===void 0&&(u_b=document.createElement("template"));var d=u_b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);v_b=a}a=v_b;return a},{mode:2});_.am(yYa);
var B_b=_.Rr(function(a){var b=a.children;var c=a.className;var d=a.style;var e=a.role;var g=a.ariaSelected;var k=a.ariaLabel;var m=a.ariaHidden;var n=a.ariaLabelledby;var r=a.ariaDescribedby;var t=a.command;var u=a.elementsCommand;var w=a.forceNewState;var A=a.tabIdentifier;var C=a.target;var G=a.tabIndex;var J=a.stopPropagation;a=_.kh(function(){var I=_.Gs({innertubeCommand:t==null?void 0:t(),elementsCommand:u==null?void 0:u(),forceNewState:w==null?void 0:w(),stopPropagation:(J==null?void 0:J())!==
!1});I||(I={});I["aria-hidden$"]=m==null?void 0:m();var R;I.tabindex$=(R=G==null?void 0:G())!=null?R:I.tabindex$;var ca;I["force-new-state$"]=(ca=w==null?void 0:w())!=null?ca:I["force-new-state$"];var V;I.role$=(V=e==null?void 0:e())!=null?V:I.role$;var fa;I["aria-hidden$"]=(fa=m==null?void 0:m())!=null?fa:I["aria-hidden$"];var aa;I.target$=(aa=C==null?void 0:C())!=null?aa:I.target$;return I},void 0,"SU0Mnc");
return _.q(_.ut,{aTagConfig:a,className:c,style:d,ariaLabel:k,ariaLabelledby:n,ariaDescribedby:r,ariaSelected:g,tabIdentifier:A},b)});var zYa=_.x("kevlar_modern_sd")?"yt-spec-place-data-view-model-shape__thumbnail-round":"",C_b=_.mt(AYa);_.am(AYa);_.Ws(C_b,"place-data-view-model",{props:{data:_.SG}});var D_b=new _.fB("INLINE_PLAYBACK_HOOK_TOKEN");var MYa=function(a){this.setActiveSlideIndex=a;this.jobIds=[];this.isSlideshowPlaying=!1},OYa=function(a){if(a.isSlideshowPlaying){a.isSlideshowPlaying=!1;
for(var b=a.jobIds,c=0,d=b.length;c<d;c++)_.zk.cancelJob(b[c]);a.jobIds.length=0}},NYa=function(a,b){a.isSlideshowPlaying||(a.isSlideshowPlaying=!0,E_b(a),F_b(a,b,0))},E_b=function(a){_.at(_.zk,function(){a.setActiveSlideIndex(0)},1)},F_b=function(a,b,c){a.jobIds.push(_.at(_.zk,function(){var d=c<b-1?c+1:0;
a.setActiveSlideIndex(d);F_b(a,b,d)},1800))};var GYa=new _.fB("IMAGE_ON_LOAD_HANDLER_TOKEN");var G_b=_.Rr(function(a){return _.q("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.q(_.oi,{cond:function(){var b;return(b=a.data())==null?void 0:b.thumbnail},
then:function(b){return _.q(_.Ss,{data:b,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))});_.lL=_.Rr(function(a){var b=a.data;var c=a.lockupExperiments;a={};return _.q("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.q("div",{class:_.jt("ytThumbnailOverlayButtonViewModelButton",(a.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var d;return c&&((d=c())==null?void 0:d.useLegacySizedIconButton)},a))},_.q(_.Eu,{data:function(){return b().overlayButton}},{buttonViewModel:function(d){return _.q(_.Ju,{data:d.data,
buttonOverrides:function(){var e;return c&&((e=c())==null?0:e.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"}}:void 0}})}})))});
_.lL.idomCompat=!0;var H_b=_.Rr(function(a){var b=_.ot(function(c){c.preventDefault();return!1});
return _.q("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":b},_.q(_.Eu,{data:function(){return a.data().buttons}},{toggleButtonViewModel:function(c){return _.q("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.q(_.Hu,{data:c.data}))}}))});
H_b.idomCompat=!0;var I_b=_.Rr(function(a){var b=function(){var c;return((c=_.y(a.data().rendererContext,_.Wu))==null?void 0:c.label)||""};
return _.q("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.q(_.oi,{cond:function(){return a.data().image},
then:function(){return _.q("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.q(_.Ss,{data:function(){return a.data().image},
alt:b}))}}),_.q(_.oi,{cond:function(){return a.data().text},
then:function(){return _.q("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return a.data().text})}}))});var HYa=_.Au({thumbnailOverlayTitleViewModel:zZb,thumbnailOverlayBadgeViewModel:BZb,thumbnailBottomOverlayViewModel:nZb,thumbnailOverlayFullViewModel:I_b,thumbnailOverlayButtonViewModel:_.lL}),IYa=_.Au({thumbnailHoverOverlayViewModel:pZb,thumbnailHoverOverlayToggleActionsViewModel:H_b}),JYa=_.Au({animatedThumbnailOverlayViewModel:G_b});_.am(KYa);var J_b=_.Rr(function(a){var b=[],c=function(){var u,w;return Zt((u=a.width)==null?void 0:u.call(a),(w=a.height)==null?void 0:w.call(a))},d=_.v().resolve(_.Wi(GYa)),e=_.Rl(function(){b.push("elRef.value set")});
_.vi(function(){b.push("onInit");_.wh(function(){b.push("onCleanup")})});
_.vi(function(){var u;(u=a.playbackRef)==null||u.call(a,{thumbnailElRef:e,thumbnail:a.data().image,thumbnailOverlays:a.data().overlays,thumbnailSize:c()})});
var g=_.Mr(BYa),k=function(){var u,w;return(w=(u=a.aspectRatio)==null?void 0:u.call(a))!=null?w:0},m=function(){return(a.data().image?_.XQa(a.data().image):k())<=1&&k()===0},n=function(){return m()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},r=function(){e.value||_.Dl(new _.qj("Thumbnail elRef.value is null",b.join("\n")));
d&&e.value&&d(e.value)},t={};
return _.q("yt-thumbnail-view-model",{class:_.jt("yt-thumbnail-view-model",a.className,function(){return LYa(k())},function(){var u,w;
a:{var A=c(),C=(u=a.disableRounding)==null?void 0:u.call(a);u=(w=a.isClip)==null?void 0:w.call(a);if(!C&&!u)switch(A){case "large":w="yt-thumbnail-view-model--large";break a;case "small":w="yt-thumbnail-view-model--small";break a;default:w="yt-thumbnail-view-model--medium";break a}w=void 0}return w},(t["yt-thumbnail-view-model--cinematic"]=m,t)),
style:_.rt({"background-color":function(){var u,w=m()?(u=a.data().backgroundColor)==null?void 0:u.lightTheme:void 0;return w?Dq(w,"1"):void 0}}),
el:e},_.q(_.oi,{cond:m,then:function(){return _.q("div",{class:"yt-thumbnail-view-model__blurred-image"},_.q(_.Ss,{data:function(){return a.data().image},
alt:"",contentMode:n,targetWidth:a.width,onload:r}))}}),_.q("div",{class:"yt-thumbnail-view-model__image"},_.q(_.Ss,{data:function(){return a.data().image},
alt:"",contentMode:n,targetWidth:a.width,onload:r}),null),_.q(_.Eu,{data:function(){return a.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:AZb,thumbnailOverlayBadgeViewModel:function(u){return _.q(BZb,{data:u.data,thumbnailSize:c,isClip:a.isClip})},
thumbnailBottomOverlayViewModel:nZb,thumbnailOverlayFullViewModel:I_b,thumbnailOverlayButtonViewModel:function(u){return _.q(_.lL,{data:u.data,lockupExperiments:a.lockupExperiments})}}),_.q(_.oi,{cond:a.hovered,
then:function(){return _.q(_.Eu,{data:function(){return a.data().overlays}},{thumbnailHoverOverlayViewModel:function(u){return _.q(qZb,{data:u.data,
alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:H_b})}}),_.q(_.oi,{cond:function(){var u;
return((u=a.hovered)==null?void 0:u.call(a))&&g()},
then:function(){return _.q(_.Eu,{data:function(){return a.data().overlays}},{animatedThumbnailOverlayViewModel:G_b})}}),_.q(_.oi,{cond:a.isClip,
then:function(){return EYa()}}))}),K_b=_.x("web_enable_sink_lockups_batch")?J_b:KYa,mL=_.x("web_enable_sink_lockups_batch")?J_b:_.mt(K_b,{callbacks:{playbackRef:!0}});
J_b.idomCompat={callbacks:{playbackRef:!0}};var PYa=_.Au({thumbnailViewModel:K_b});_.am(QYa);var L_b=_.Rr(function(a){var b=_.h(_.fh(-1,"GEkecf")),c=b.next().value,d=b.next().value;_.vi(function(){var e=new MYa(d);NYa(e,a.data().thumbnails.length);_.wh(function(){OYa(e)})});
return _.q("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},_.q(_.Eu,{data:function(){return a.data().thumbnails}},{thumbnailViewModel:function(e,g){return _.q("div",{class:function(){var k=!a.data().primaryThumbnail,m=g(),n=c(),r=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];
k&&m===0&&r.push("yt-collection-thumbnail-slideshow--first-slide");m<=n&&r.push("yt-collection-thumbnail-slideshow--show-slide");return r.join(" ")}},_.q(mL,{data:e.data,
disableRounding:a.disableRounding}))}}))}),VYa=_.x("web_enable_sink_lockups_batch")?L_b:QYa,M_b=_.x("web_enable_sink_lockups_batch")?L_b:_.mt(QYa);
L_b.idomCompat=!0;var RYa=new _.fB("DWELL_DETECTOR_REGISTRY_TOKEN");var UYa=_.Au({thumbnailViewModel:K_b});_.am(WYa);var O_b=_.Rr(function(a){var b=TYa(a.triggeringElement),c=function(){return!!a.data().primaryThumbnail};
return _.q("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true"},_.q(N_b,{stackEnabled:c,thumbnailSize:function(){var d,e;return Zt((d=a.width)==null?void 0:d.call(a),(e=a.height)==null?void 0:e.call(a))},
doubleStack:a.doubleStack,stackColor:function(){return a.data().stackColor}},_.q("div",null,_.q(_.Eu,{data:function(){return a.data().primaryThumbnail}},{thumbnailViewModel:function(d){var e={};
return _.q(mL,{data:d.data,width:a.width,height:a.height,aspectRatio:a.aspectRatio,disableRounding:a.disableRounding,className:_.jt((e["yt-collection-thumbnail-view-model--has-stacks"]=c,e)),hovered:a.hovered,playbackRef:a.playbackRef})}}),_.q(_.oi,{cond:function(){var d;
return b()&&((d=a.data().thumbnails)==null?void 0:d.length)},
then:function(){return _.q("div",{class:"yt-collection-thumbnail-view-model__slideshow"},_.q(M_b,{data:a.data,disableRounding:function(){return!c()}}))}}))))}),P_b=_.x("web_enable_sink_lockups_batch")?O_b:_.mt(WYa,{callbacks:{playbackRef:!0}});
O_b.idomCompat={callbacks:{playbackRef:!0}};
var N_b=_.Rr(function(a){var b=a.children;var c=a.stackEnabled;var d=a.thumbnailSize;var e=a.doubleStack;var g=a.stackColor;var k,m=(k=_.v().resolve(_.Wi(_.Ns)))==null?void 0:k();return _.q(_.oi,{cond:c,then:function(){return _.q(yYb,{data:function(){var n,r;return{experimentEnabled:!0,thumbnailSize:d(),doubleStack:e==null?void 0:e(),color:m?g==null?void 0:(n=g())==null?void 0:n.darkTheme:g==null?void 0:(r=g())==null?void 0:r.lightTheme,enableResponsiveMode:!1}}},b)},
else:function(){return b}})});var Q_b=new _.fB("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var oL;_.nL={calledOnce:!0,state:"visible"};oL={calledOnce:!0,state:"hidden"};_.pL=_.Rr(function(a){var b=a.data;var c=a.customCommandResolver;var d=a.className;var e=a.delayedClassName;a=a.animationEntityKey;var g=_.Rl(),k=_.Nr(a,""),m=_.tu(mSa,k),n=function(){var aa,ma;return(ma=(aa=m())==null?void 0:aa.value)!=null?ma:!1},r=function(){_.Kr(_.vu("booleanEntity",k(),{key:k(),
value:!0}));I=void 0};
a=_.h(_.qt(n));var t=a.next().value,u=a.next().value;a=_.h(_.qt(n));var w=a.next().value,A=a.next().value;a=_.h(_.qt(function(){var aa;return n()?(aa=b().styleTransitionConfig)==null?void 0:aa.destinationStyle:void 0}));
var C=a.next().value,G=a.next().value,J=function(){var aa=Object.assign({},b(),C()&&{style:C()}),ma,Ba,Da=aa.label,za=(ma=aa.interaction)==null?void 0:(Ba=ma.accessibility)==null?void 0:Ba.label;ma=aa.iconImage?aa.label&&aa.label.content?aa.iconLeading?"leading":"trailing":"icon-only":void 0;return{formattedButtonText:Da,accessibilityLabel:za,style:$Ya(aa.style),type:aZa(aa.style),state:"active",size:ZYa(aa.size),iconPosition:ma,disabled:!1,aTagConfig:YYa(aa,c)}},I;
_.$l(g,{visibilityCallback:function(aa){var ma,Ba=(ma=b().interaction)==null?void 0:ma.onFirstVisible;aa&&Ba&&_.Js(Ba)},
showOption:_.nL});var R=function(){return At(J(),!!b().iconImage)};
d=_.jt(function(){return"ytwAdButtonViewModelHost"},function(){return b().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var aa=!!b().delayedAppearanceConfig,ma=t();
return aa?ma?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var aa=!!b().delayedAppearanceConfig,ma=w();
return aa?ma?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!b().delayedAppearanceConfig||t()?e==null?void 0:e():""},d!=null?d:"");
var ca=function(){var aa,ma=(aa=b().delayedAppearanceConfig)==null?void 0:aa.delayedInvisibleSeconds;ma&&(I=_.wu(_.zk,function(){u(!0);V()},ma*1E3))},V=function(){var aa,ma=(aa=b().delayedAppearanceConfig)==null?void 0:aa.delayedVisibleSeconds;
ma&&(I=_.wu(_.zk,function(){A(!0);fa()},ma*1E3))},fa=function(){var aa,ma=(aa=b().styleTransitionConfig)==null?void 0:aa.styleTransitionSeconds,Ba,Da=(Ba=b().styleTransitionConfig)==null?void 0:Ba.destinationStyle;
ma&&Da?I=_.wu(_.zk,function(){G(Da);r()},ma*1E3):r()};
_.vi(function(){var aa;((aa=b().delayedAppearanceConfig)==null?0:aa.transitionDurationSeconds)&&g.value.style.setProperty("transition-duration",b().delayedAppearanceConfig.transitionDurationSeconds+"s");ca()});
_.wh(function(){I&&_.zk.cancelJob(I)});
return _.q("ad-button-view-model",{class:d,el:g},_.q(_.oi,{cond:J,then:function(){return _.q(rv,{data:J,icon:function(){return _.q(_.oi,{cond:function(){return b().iconImage},
then:function(aa){return _.q(_.Ss,{data:aa,alt:"",targetWidth:R,targetHeight:R,preserveWidth:!0,preserveHeight:!0})}})}})}}))});var R_b=_.Rr(function(a){var b=a.data;a=_.Rl();_.$l(a,{visibilityCallback:function(c){var d,e=(d=b().interaction)==null?void 0:d.onFirstVisible;c&&e&&_.Js(e)},
showOption:_.nL});return _.q("ad-button-group-view-model",{class:function(){return"ytwAdButtonGroupViewModelHost"},
el:a},_.q("div",{class:"ytwAdButtonGroupViewModelHostSecondaryButton"},_.q(_.Eu,{data:function(){return b().secondaryAdButton}},{adButtonViewModel:function(c){return _.q(_.pL,{data:c.data})}})),_.q("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.q(_.Eu,{data:function(){return b().primaryAdButton}},{adButtonViewModel:function(c){return _.q(_.pL,{data:c.data})}})))});var S_b=_.Rr(function(a){var b=function(){var c;return((c=a.data())==null?void 0:c.answers)||[]};
return _.q("yt-survey-icons",{class:"ytSurveyIconsHost"},_.q("div",{class:"ytSurveyIconsHeader"},_.q("div",{class:"ytSurveyIconsTitle"},function(){var c;return(c=a.data())==null?void 0:c.text}),_.q("div",null,_.q(rv,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var c;(c=a.onDismiss)==null||c.call(a)}}},
iconName:"DISMISSAL"}))),_.q("div",null,_.q("div",{class:"ytSurveyIconsAnswers"},_.q(_.ni,{each:function(){return b()},
keyBy:"INDEX"},function(c,d){return _.q("div",null,_.q(rv,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var e;(e=a.onSelect)==null||e.call(a,c(),d)}}},
icon:function(){return _.q(_.tt,{icon:function(){var e,g;return(e=c())==null?void 0:(g=e.icon)==null?void 0:g.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.q("div",{class:"ytSurveyIconsAnswersText"},_.q("div",null,function(){return b().length?b()[0].text:""}),_.q("div",null,function(){return b().length?b()[b().length-1].text:""}))))});var T_b=_.Rr(function(a){var b=_.h(_.fh(!1,"s8HkOb")),c=b.next().value,d=b.next().value,e=_.tu($Wa,function(){var m;return(m=a.data().keys)==null?void 0:m.surveyEntityKey}),g=_.tu(aXa,function(){var m;
return(m=a.data().keys)==null?void 0:m.surveyStateEntityKey});
_.Ql("ytd-slimline-survey-show-action",function(){d(!1)});
var k=function(){var m,n;var r=(m=g())==null?void 0:(n=m.questionStack)==null?void 0:n[0];if(r!==void 0){var t,u;return(t=e())==null?void 0:(u=t.questions)==null?void 0:u[r]}};
b={};return _.q("yt-slimline-survey-view-model",{class:_.jt("ytSlimlineSurveyViewModelHost",(b.ytSlimlineSurveyViewModelCollapsed=function(){return c()},b))},_.q("div",{class:"ytSlimlineSurveyViewModelContainer"},_.q(_.oi,{cond:function(){var m;
return((m=k())==null?void 0:m.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.q(S_b,{data:function(){return k()},
onSelect:function(m,n){var r,t;return _.l(function(u){d(!0);if(t=(r=a.data())==null?void 0:r.onSelectRating)_.Js(t),_.Kr(DJb(n));_.se(u)})},
onDismiss:function(){d(!0)}})}})))});var U_b=_.Rr(function(a){return _.q("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.q(_.Eu,{data:function(){var b;return(b=a.data())==null?void 0:b.attachments}},{flexibleActionsViewModel:function(b){return _.q("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.q(uXb,{data:b.data,
layout:function(){var c;return((c=a.lockupStyle())==null?void 0:c.arrangement)===1?0:1},
justifyContentOverride:function(){var c;return((c=a.lockupStyle())==null?void 0:c.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(b){return _.q("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.q(T_b,{data:b.data}))},
expandableMetadataViewModel:function(b){b=b.data;var c;return _.q("div",{class:"ytLockupAttachmentsViewModelAttachment"},(c=_.v().resolve(_.Wi(Q_b)))==null?void 0:c({data:b}))},
adButtonGroupViewModel:function(b){return _.q("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.q(R_b,{data:b.data}))}}))});var gZa=_.$i("rich_grid_min_item_width",310),eZa=_.$i("rich_grid_max_item_width",500);var sZa=_.Rr(function(a){var b=a.data;return _.q("br-nz-badge-shape",{class:_.jt(function(){return oZa(b().brNzRatingBadgeType)}),
role:function(){return b().accessibilityText?"img":void 0},
"aria-label":function(){return b().accessibilityText}},function(){var c;
return(c=b())==null?void 0:c.text})});_.am(tZa);var V_b,P0a;V_b=_.Rr(function(a){var b=function(){var c=a.data(),d,e;return c?rZa(c,!((d=a.workaroundShortsIsThumbnailBadge)==null||!d.call(a)),(e=a.modern)==null?void 0:e.call(a)):void 0};
return _.q("yt-badge-view-model",{class:_.jt("yt-badge-view-model-wiz",a.class)},_.q(_.qi,null,_.q(_.pi,{when:function(){var c;return!((c=b())==null||!c.brNzRatingBadgeType)}},function(){return _.q(sZa,{data:function(){return b()}})}),_.q(_.pi,{when:function(){return!!b()&&!b().brNzRatingBadgeType}},function(){return _.q(_.ev,{data:function(){return b()}})})))});
P0a=_.x("web_enable_sink_lockups_batch")?V_b:tZa;_.qL=_.x("web_enable_sink_lockups_batch")?V_b:_.mt(tZa);V_b.idomCompat=!0;var vZa,uZa;vZa=16/9;uZa=2/3;_.rL=_.Rr(function(a){var b=a.data;var c=a.className;var d=a.imageSizeConfig;var e=a.notifyOnLoaded;a=_.Rl();var g=function(){return b().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},k=function(){var t;
return _.Qu((t=b())==null?void 0:t.rendererContext)},m={};
m=(m["yt-content-preview-image-view-model-wiz"]=!0,m["yt-content-preview-image-view-model-wiz--circle-image"]=function(){return g()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},m["yt-content-preview-image-view-model-wiz--tappable"]=function(){return k()},m);
var n=function(){var t,u;return(u=(t=_.y(b().rendererContext,_.Wu))==null?void 0:t.label)!=null?u:""},r=function(){return xZa(b())};
_.Vu(a,function(){var t;return(t=b())==null?void 0:t.rendererContext});
return _.q("yt-content-preview-image-view-model",{el:a,role:function(){return k()?"link":void 0},
tabindex:function(){return k()?0:void 0},
class:_.jt(c,m,function(){var t=g();var u=d==null?void 0:d();t=t==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||t==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||t==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||t==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(u==null?void 0:u.size)!=null&&u.size<=16?"yt-content-preview-image-view-model-wiz--extra-small-rounded-image":(u==null?void 0:u.size)!=null&&u.size<=24?"yt-content-preview-image-view-model-wiz--small-rounded-image":"yt-content-preview-image-view-model-wiz--large-rounded-image":
void 0;return t}),
style:function(){return wZa(g(),b().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",d==null?void 0:d(),yZa(r()),b().layoutWidth,b().layoutHeight)}},_.q(_.oi,{cond:r,
then:function(t){return _.q(_.Ss,{data:t,alt:n,"data-disabled$":function(){return!n()},
notifyOnLoaded:e})}}),_.q(_.Eu,{data:function(){var t;
return(t=b())==null?void 0:t.overlays}},{thumbnailHoverOverlayViewModel:qZb,
thumbnailOverlayButtonViewModel:_.lL}))});
_.rL.idomCompat=!0;var X_b=_.Rr(function(a){var b=a.data;var c=a.className;var d=a.useSmallLayout;var e=a.useMediumText;a=_.Rl();var g={};e=(g["yt-attribution-view-model-wiz"]=!0,g["yt-attribution-view-model-wiz--medium-text"]=e,g);_.Vu(a,function(){var k;return(k=b())==null?void 0:k.rendererContext});
return _.q("yt-attribution-view-model",{el:a,class:_.jt(c,e)},_.q(_.oi,{cond:function(){return _.Qu(b().rendererContext)},
then:function(){return _.q("button",{class:"yt-attribution-view-model-wiz--tappable"},_.q(W_b,{data:b,useSmallLayout:d}))},
else:function(){return _.q(W_b,{data:b,useSmallLayout:d})}}))}),W_b=_.Rr(function(a){var b=a.data;
var c=a.useSmallLayout;var d=function(){return{size:(c==null?0:c())?16:24}};
return _.q(_.Vh,null,_.q(_.Eu,{data:function(){return b().contentPreviewImage}},{contentPreviewImageViewModel:function(e){return _.q(_.rL,{data:e.data,
className:"yt-attribution-view-model-wiz__attribution-image",imageSizeConfig:d})}}),_.q(_.Eu,{data:function(){return b().badge}},{badgeViewModel:function(e){return _.q(_.qL,{data:e.data,
class:"yt-attribution-view-model-wiz__badge",modern:!0})}}),_.q(_.oi,{cond:function(){return b().text},
then:function(){return _.q(_.wt,{text:function(){return b().text},
noWrap:!0,linkInheritColor:!0,className:"yt-attribution-view-model-wiz__attribution-text"})}}),_.q(_.oi,{cond:function(){return b().suffix},
then:function(){return _.q(_.wt,{text:function(){return b().suffix},
linkInheritColor:!0,className:"yt-attribution-view-model-wiz__suffix"})}}))});
X_b.idomCompat=!0;var FZa=_.Au({avatarStackViewModel:_.wZb,badgeViewModel:P0a});_.am(IZa);var Y_b,Z_b,$_b,a0b,b0b,c0b,d0b;Y_b=_.Rr(function(a){var b=a.delimiter;var c=a.max;var d=a.index;var e=a.isStandalone;return _.q(_.oi,{cond:function(){return c()-1>d()},
then:function(){var g={};return _.q("span",{class:_.jt("yt-content-metadata-view-model-wiz__delimiter",(g["yt-content-metadata-view-model-wiz__delimiter--standalone"]=e,g)),"aria-hidden":!0},b)}})});
Z_b=_.Rr(function(a){var b=a.metadataPart;var c=a.maxLines;return _.q(_.wt,{text:function(){return b().text},
linkInheritColor:!0,className:function(){return JZa(c())},
userInput:!0})});
$_b=_.Rr(function(a){var b=a.metadataPart;var c=a.maxLines;return _.q(_.Vh,null,_.q(_.oi,{cond:function(){return b().tooltip},
then:function(d){return _.q("span",{title:d,role:"tooltip"},_.q(Z_b,{metadataPart:b,maxLines:c}))},
else:function(){return _.q(Z_b,{metadataPart:b,maxLines:c})}}))});
a0b=_.Rr(function(a){var b=a.metadataPart;var c=a.isOverlay;var d=a.useMediumText;var e=a.hideAvatar;var g=function(){return b().maxLines!==void 0?b().maxLines:1};
return _.q(_.Vh,null,_.q(_.Eu,{data:function(){return b().avatarStack}},{avatarStackViewModel:function(k){return _.q(xZb,{data:k.data,
isOverlay:c,useMediumText:d,hideAvatar:e})},
badgeViewModel:_.qL}),_.q(_.oi,{cond:function(){return b().text},
then:function(){return _.q($_b,{metadataPart:b,maxLines:g})}}))});
b0b=_.Rr(function(a){var b=a.metadataRow;var c=a.isInline;var d=a.delimiter;var e=a.isOverlay;var g=a.useMediumText;var k=a.extensions;var m=function(){var n;return AZa(k==null?void 0:(n=k())==null?void 0:n.lockupMetadata,b())};
a={};return _.q("div",{class:_.jt("yt-content-metadata-view-model-wiz__metadata-row",(a["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=c,a["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=function(){var n;return BZa(k==null?void 0:(n=k())==null?void 0:n.lockupMetadata,b())},a))},_.q(_.Eu,{data:function(){return b().badges}},{avatarStackViewModel:function(n){return _.q("div",{class:"yt-content-metadata-view-model-wiz__badge"},_.q(xZb,{data:n.data}))},
badgeViewModel:function(n){return _.q("div",{class:"yt-content-metadata-view-model-wiz__badge"},_.q(_.qL,{data:n.data}))}}),_.q(_.ni,{each:function(){return b().metadataParts||[]}},function(n,r){return _.q(_.Vh,null,_.q(a0b,{metadataPart:n,
isOverlay:e,useMediumText:g,hideAvatar:m}),_.q(Y_b,{delimiter:d,max:function(){return b().metadataParts.length},
index:r,isStandalone:!1}))}),_.q(_.oi,{cond:function(){return b().isSpacerRow&&!c()},
then:function(){return _.q("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}}))});
c0b=_.Rr(function(a){var b=_.Or(a,{layout:0,isOverlay:!1});a=b.className;var c=b.data,d=b.layout,e=b.isOverlay,g=b.useMediumText,k=b.extensions;b=_.Rl();var m=function(){return d()===0};
_.Vu(b,function(){return c().rendererContext});
var n={};return _.q("yt-content-metadata-view-model",{class:_.jt(a,"yt-content-metadata-view-model-wiz",(n["yt-content-metadata-view-model-wiz--inline"]=m,n["yt-content-metadata-view-model-wiz--tappable"]=function(){return _.Qu(c().rendererContext)},n["yt-content-metadata-view-model-wiz--medium-text"]=g,n)),
el:b},_.q(_.ni,{each:function(){return c().metadataRows}},function(r,t){return _.q(_.Vh,null,_.q(b0b,{metadataRow:r,
isInline:m,delimiter:function(){return c().delimiter},
isOverlay:e,useMediumText:g,extensions:k}),_.q(_.oi,{cond:function(){return m()&&!r.isSpacerRow},
then:function(){return _.q(Y_b,{delimiter:function(){return c().delimiter},
max:function(){return c().metadataRows.length},
index:t,isStandalone:!0})}}))}))});
d0b=_.x("web_enable_sink_lockups_batch")?c0b:IZa;_.e0b=_.x("web_enable_sink_lockups_batch")?c0b:_.mt(IZa);c0b.idomCompat=!0;var gv=_.Au({avatarViewModel:_.Gv,decoratedAvatarViewModel:uZb,contentMetadataViewModel:d0b,buttonViewModel:_.Ju,attributionViewModel:X_b,lockupAttachmentsViewModel:U_b});_.am(MZa);var f0b=_.Rr(function(a){var b={};return _.q("yt-lockup-metadata-view-model",{class:_.jt("yt-lockup-metadata-view-model-wiz",function(){a:{var c=a.lockupStyle();if(c==null?0:c.isOverlay)c="yt-lockup-metadata-view-model-wiz--overlay";else switch(c==null?void 0:c.arrangement){case 1:c="yt-lockup-metadata-view-model-wiz--horizontal";break a;default:c="yt-lockup-metadata-view-model-wiz--vertical"}}return c},function(){a:{var c=a.lockupStyle();
if(c==null?0:c.isTiny)c="yt-lockup-metadata-view-model-wiz--tiny";else switch(c==null?void 0:c.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":c="yt-lockup-metadata-view-model-wiz--compact";break a;default:c="yt-lockup-metadata-view-model-wiz--standard"}}return c},(b["yt-lockup-metadata-view-model-wiz--overlay"]=function(){var c;
return(c=a.lockupStyle())==null?void 0:c.isOverlay},b["yt-lockup-metadata-view-model-wiz--card"]=function(){var c;
return(c=a.lockupStyle())==null?void 0:c.isCard},b["yt-lockup-metadata-view-model-wiz--centered"]=function(){var c;
return(c=a.lockupStyle())==null?void 0:c.isCentered},b["yt-lockup-metadata-view-model-wiz--typography-bump"]=function(){var c;
return(c=a.lockupStyle())==null?void 0:c.typographyBump},b["yt-lockup-metadata-view-model-wiz--legacy-typography"]=function(){var c;
return(c=a.lockupStyle())==null?void 0:c.useLegacyTypography},b["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=function(){var c;
return(c=a.lockupStyle())==null?void 0:c.useRichGridLegacyTypography},b))},_.q(_.Eu,{data:function(){return a.data().image}},{avatarViewModel:function(c){return _.q("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.q(_.LK,{data:c.data}))},
decoratedAvatarViewModel:function(c){return _.q("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.q(_.MK,{data:c.data}))}}),_.q("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.q("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:function(){var c;return(c=a.data().title)==null?void 0:c.content}},_.q(_.oi,{cond:function(){return a.data().title},
then:function(c){return _.q(_.ut,{command:a.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:a.lockupAccessibilityLabel},_.q(_.wt,{text:c}))}})),_.q("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},_.q(_.Eu,{data:function(){return a.data().metadata}},{contentMetadataViewModel:function(c){return _.q(_.e0b,{data:c.data,
layout:1,useMediumText:function(){var d,e;return((d=a.lockupStyle())==null?void 0:d.typographyBump)||((e=a.lockupStyle())==null?void 0:e.useRichGridLegacyTypography)},
extensions:function(){var d,e;return{lockupMetadata:{byline:{hideAvatar:((d=a.lockupStyle())==null?void 0:d.arrangement)===0,addPadding:((e=a.lockupStyle())==null?void 0:e.arrangement)===1}}}}})}})),_.q(_.Eu,{data:function(){return a.data().attribution}},{attributionViewModel:function(c){return _.q("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},_.q(X_b,{data:c.data,
useSmallLayout:!0}))}}),_.q("div",null,_.q(_.Eu,{data:function(){return a.data().attachmentSlot}},{lockupAttachmentsViewModel:function(c){return _.q(U_b,{data:c.data,
lockupStyle:a.lockupStyle})}}))),_.q("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},_.q(_.Eu,{data:function(){return a.data().menuButton}},{buttonViewModel:function(c){return _.q(_.Ju,{data:c.data,
buttonOverrides:function(){var d;return((d=a.lockupStyle())==null?0:d.isOverlay)?{style:"overlay"}:void 0}})}})))}),g0b=_.x("web_enable_sink_lockups_batch")?f0b:_.mt(MZa);
f0b.idomCompat=!0;var h0b=_.Rr(function(a){var b=_.Rl();_.ti(function(){requestAnimationFrame(function(){_.Pk(b.value)})});
var c={},d={},e={};return _.q("notification-multi-action-renderer",{class:_.jt("ytNotificationMultiActionRendererHost",(c.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var g;return(g=a.useLegacyShelfStyle)==null?void 0:g.call(a)},c)),
el:b},_.q("span",{"aria-live":"polite",class:_.jt("ytNotificationMultiActionRendererTextContainer",(d.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var g;return(g=a.useLegacyShelfStyle)==null?void 0:g.call(a)},d))},_.q(_.wt,{text:function(){return a.data().responseText}})),_.q("div",{class:_.jt("ytNotificationMultiActionRendererButtonContainer",(e.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var g;
return(g=a.useLegacyShelfStyle)==null?void 0:g.call(a)},e))},_.q(_.Eu,{data:function(){var g;
return(g=a.data().buttons)==null?void 0:g.map(function(k){if(k=k.buttonRenderer){var m,n=Object,r=n.assign,t=(m=k.icon)==null?void 0:m.iconType;m=(m=k.command||k.serviceEndpoint||k.navigationEndpoint)?{innertubeCommand:m}:void 0;k={buttonViewModel:r.call(n,{},{iconName:t,onTap:m,trackingParams:k.trackingParams,titleFormatted:k.text?_.As(k.text):void 0},NZa(k))}}else k=void 0;return k}).filter(function(k){return!!k})}},{buttonViewModel:function(g,k){return _.q("div",null,_.q(_.Ju,{data:g.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var m;return((m=a.useModernStyles)==null?0:m.call(a))?{type:k()?"filled":"tonal",style:"mono"}:void 0}}))}})))});var i0b=_.Rr(function(a){var b=_.Rl();_.ti(function(){requestAnimationFrame(function(){_.Pk(b.value)})});
return _.q("notification-text-renderer",{el:b,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.q(_.wt,{text:function(){return a.data().successResponseText}}))});_.j0b=_.Rr(function(a){var b=_.tu(kVa,function(){var d;return OZa((d=a.contentId)==null?void 0:d.call(a))}),c=function(){var d;
return _.y((d=b())==null?void 0:d.command,_.BE)};
return _.q(_.oi,{cond:function(){var d;if(!(d=c())){var e;d=_.y((e=b())==null?void 0:e.command,Fyb)}return d},
then:function(){return _.q(_.oi,{cond:c,then:function(){var d={};return _.q("div",{class:_.jt("ytDismissibleItemReplacedContent",function(){var e;return PZa((e=a.aspectRatio)==null?void 0:e.call(a))})},_.q("div",{class:_.jt((d.ytDismissibleItemAspectRatioContainer=function(){var e;
return((e=a.aspectRatio)==null?void 0:e.call(a))!==void 0},d))},_.q(_.Eu,{data:function(){var e;
return(e=c())==null?void 0:e.item}},{notificationMultiActionRenderer:function(e){return _.q(h0b,{data:e.data,
useModernStyles:a.useModernStyle,useLegacyShelfStyle:a.useLegacyShelfStyle})},
notificationTextRenderer:i0b})))}})},
else:a.children})});_.k0b=_.Rr(function(a){var b=a.data;var c=a.customCommandResolver;a=_.Rl();var d=function(){var g;return((g=b().interaction)==null?0:g.onTap)?function(k){var m;XYa(k,(m=b().interaction)==null?void 0:m.onTap,c)}:void 0},e=function(){var g,k=b(),m=d(),n=(g=_.y(b().rendererContext,_.Wu))==null?void 0:g.label;
a:switch(k.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":g=1;break a;default:g=0}return{size:SZa(k.size),type:g,onTap:m,accessibilityText:n}};
_.$l(a,{visibilityCallback:function(g){var k,m=(k=b().interaction)==null?void 0:k.onFirstVisible;g&&m&&_.Js(m)},
showOption:_.nL});return _.q("ad-avatar-view-model",{class:function(){var g;return((g=b().interaction)==null?0:g.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:a},_.q(_.oi,{cond:function(){return b().image},
then:function(g){return _.q(Xu,{data:e,image:g})}}))});_.sL=_.Rr(function(a){a=_.Or(a,{hasDot:!1});var b=Object.assign({},a),c=a.data,d=a.hasDot;a=a.customCommandResolver;var e=(delete b.data,delete b.hasDot,delete b.customCommandResolver,b);b=function(){return c().style};
b!==void 0&&b!==null||_.Ki(Error("Bh"));b=_.Rl();_.cv(b,function(){return c().interaction},a);
return _.q("ad-badge-view-model",{class:_.jt(function(){var g;return((g=c().interaction)==null?0:g.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var g=e.adRenderingContextType();
c();return g==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdBadgeViewModelHostStyleStandardBrowse":"ytwAdBadgeViewModelHostStyleStandard"}),
el:b},_.q(_.ev,{data:function(){var g;c();var k=(g=c().label)==null?void 0:g.content;g=d();var m=c().style==="AD_BADGE_STYLE_STARK_OVERLAY";return{type:2,text:k,adsIncludeDot:g,isOverlay:m}}}))});var l0b;_.tL=_.Rr(function(a){var b=a.data;var c=a.customCommandResolver;var d=a.adRenderingContextType;a=_.Rl();_.cv(a,function(){return b().interaction},c);
_.$l(a,{visibilityCallback:function(e){var g,k=(g=b().interaction)==null?void 0:g.onFirstVisible;e&&k&&_.Js(k)},
showOption:_.nL});return _.q("ad-details-line-view-model",{class:function(){var e;return((e=b().interaction)==null?0:e.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:a},_.q(_.oi,{cond:function(){return b().style},
then:function(e){return _.q(_.ni,{each:function(){var g;return((g=b())==null?void 0:g.attributes)||[]},
keyBy:"INDEX"},function(g){return _.q(l0b,{attribute:g,style:e,adRenderingContextType:function(){return d()}})})}}))});
l0b=_.Rr(function(a){var b=a.attribute;var c=a.style;var d=a.adRenderingContextType;return _.q(_.oi,{cond:function(){return b().text},
then:function(e){return _.q(_.wt,{text:e,className:function(){var g=d();c();return g==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})});var m0b=_.Rr(function(a){var b=a.data;var c=function(){return b().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
return _.q(_.Vh,null,_.q("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.q(_.wt,{text:function(){return b().headline},
className:function(){return c()?"ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch":"ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline"},
linkInheritColor:!0}),_.q(_.oi,{cond:function(){return b().description},
then:function(d){return _.q(_.wt,{text:d,className:function(){return c()?"ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch":"ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription"},
linkInheritColor:!0})}}),_.q("div",{class:function(){return c()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.q(_.Eu,{data:function(){return b().adBadge}},{adBadgeViewModel:function(d){return _.q(_.sL,{data:d.data,
hasDot:function(){return!!b().adDetailsLine},
adRenderingContextType:function(){return b().adRenderingContextType}})}}),_.q(_.Eu,{data:function(){return b().adDetailsLine}},{adDetailsLineViewModel:function(d){return _.q(_.tL,{data:d.data,
adRenderingContextType:function(){return b().adRenderingContextType}})}}))),_.q("div",{class:function(){return c()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.q(_.Eu,{data:function(){return b().menu}},{buttonViewModel:function(d){return _.q(_.Ju,{data:d.data,
buttonOverrides:function(){a:switch(b().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var e="S";break a;default:e="M"}return{size:e}}})}})))}),n0b=_.Rr(function(a){var b=a.data;
var c=a.noBottomMargin;var d=a.useVideoLockupTopPadding;a={};a=_.jt("ytwFeedAdMetadataViewModelHostMetadata",(a.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return c==null?void 0:c()},a.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return d==null?void 0:d()},a));
var e=function(){return b().adBadge};
e!==void 0&&e!==null||_.Ki(Error("Ch"));e={};return _.q(_.Vh,null,_.q(_.oi,{cond:function(){return b().adAvatar},
then:function(){return _.q("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.q(_.Eu,{data:function(){return b().adAvatar}},{adAvatarViewModel:function(g){return _.q(_.k0b,{data:g.data})}}))}}),_.q("div",{class:a},_.q("div",{class:"ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline"},_.q(_.wt,{text:function(){return b().headline},
linkInheritColor:!0})),_.q(_.oi,{cond:function(){return b().description},
then:function(g){return _.q(_.wt,{text:g,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.q("div",{class:function(){return b().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.x("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.q(_.Eu,{data:function(){return b().adBadge}},
{adBadgeViewModel:function(g){return _.q(_.sL,{data:g.data,
hasDot:function(){return!!b().adDetailsLine},
adRenderingContextType:function(){return b().adRenderingContextType}})}}),_.q(_.Eu,{data:function(){return b().adDetailsLine}},{adDetailsLineViewModel:function(g){return _.q(_.tL,{data:g.data,
adRenderingContextType:function(){return b().adRenderingContextType}})}})),_.q(_.oi,{cond:function(){return b().secondaryDescription},
then:function(g){return _.q(_.wt,{text:g,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.q("div",{class:_.jt("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(e.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return d==null?void 0:d()},e))},_.q(_.Eu,{data:function(){return b().menu}},{buttonViewModel:_.Ju})))}),o0b=_.Rr(function(a){var b=a.data;
var c=a.noBottomMargin;var d=a.listenToTapEvent;var e=a.setTouchEndHandler;var g=a.useVideoLockupTopPadding;var k=_.Rl();_.cv(k,function(){return b().interaction},void 0,function(){return d==null?void 0:d()});
a=_.h(_.fh(!1,"rVW2Qd"));var m=a.next().value,n=a.next().value;a=_.ot(function(){(e==null?0:e())&&!m()&&(k.value.click(),n(!0),setTimeout(function(){n(!1)},100));
return!1});
_.$l(k,{visibilityCallback:function(r){var t,u=(t=b().interaction)==null?void 0:t.onFirstVisible;r&&u&&_.Js(u)},
showOption:_.nL});return _.q("feed-ad-metadata-view-model",{class:function(){var r;return((r=b().interaction)==null?0:r.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:k,"on:touchend":a},_.q(_.qi,null,_.q(_.pi,{when:function(){return b().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.q(m0b,{data:b})}),_.q(_.pi,{when:function(){return b().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.q(n0b,{data:b,
noBottomMargin:c,useVideoLockupTopPadding:g})})))});var uL=_.Rr(function(a){return _.q("yt-lockup-view-model",{class:_.jt(a.className)},_.q(_.j0b,{contentId:function(){return a.data().contentId},
useModernStyle:!0,aspectRatio:function(){var b,c;return((b=a.containerType)==null?void 0:b.call(a))!==3?mZa(a.data().contentType,(c=a.force16By9ThumbnailAspectRatio)==null?void 0:c.call(a)):void 0}},function(){return _.q(p0b,Object.assign({},a))}))}),p0b=_.Rr(function(a){a=_.Or(a,{containerLayoutConfig:void 0,
protectBackground:void 0,containerType:void 0,sizing:void 0,typographyBump:!1,force16By9ThumbnailAspectRatio:!1,thumbnailFixedWidth:void 0,thumbnailTargetWidth:void 0,lockupExperiments:void 0,elementsPerRow:void 0});var b=a.data,c=a.containerLayoutConfig,d=a.containerType,e=a.sizing,g=a.protectBackground,k=a.typographyBump,m=a.force16By9ThumbnailAspectRatio,n=a.thumbnailFixedWidth,r=a.thumbnailTargetWidth,t=a.lockupExperiments,u=a.elementsPerRow;a=_.Rl();_.Vu(a,function(){var za;return(za=b())==null?
void 0:za.rendererContext},void 0,void 0,["A".toString(),
"BUTTON".toString(),"YT-EXPANDABLE-METADATA-VIEW-MODEL"]);var w=_.Mr(CYa),A=_.v().resolve(_.Wi(D_b)),C=A?{}:void 0,G=function(){var za,Fa,bb;return(bb=(Fa=_.y((za=b())==null?void 0:za.rendererContext,_.Wu))==null?void 0:Fa.label)!=null?bb:void 0},J=function(){var za=c==null?void 0:c(),Fa;
if(za==null?0:za.containerType){var bb=(Fa=b())==null?void 0:Fa.contentType;Fa=t();var kb=k(),Ua=r(),Fc=g();za=Object.assign({},nZa(jZa(za),hZa(za.responsiveSize),kb,bb,za.force16By9ThumbnailAspectRatio,Ua,Fc,Fa),{thumbnailFixedWidth:za.contentPreviewWidth})}else za=nZa(d(),e(),k(),(bb=b())==null?void 0:bb.contentType,m(),r(),g(),t());return za};
A&&C&&A({enabled:function(){return w()},
itemPlaybackModel:function(){return b().itemPlayback},
thumbnailElRef:function(){return C.thumbnailElRef},
containerElRef:a,options:function(){var za,Fa=(za=_.y(b().metadata,fFb))==null?void 0:za.endorsement;za=C.thumbnailOverlays||[];Fa&&za.push(Fa);return{thumbnail:C.thumbnail,thumbnailOverlays:za,accessibilityText:G(),thumbnailSize:C.thumbnailSize,enableRounding:J().isCollection}}});
var I=0;A=_.h(_.fh(!1,"GLvuZd"));var R=A.next().value,ca=A.next().value;A=_.h(_.fh(!1,"rOKgbc"));var V=A.next().value,fa=A.next().value;A=_.ot(function(){var za=w()&&b().itemPlayback;V()?(_.zk.cancelJob(I),I=_.zk.addJob(function(){ca(!za)},8,32)):ca(!za);
return!1});
_.Tl(a,"mouseleave",function(){I&&(_.zk.cancelJob(I),I=0);ca(!1)});
_.wh(function(){I&&(_.zk.cancelJob(I),I=0)});
var aa=RZa(function(){fa(!0)}),ma=aa.touchFeedbackEvents,Ba=aa.touchFeedbackOnPointerUp,Da=aa.touchFeedbackOnPointerDown;
_.Tl(a,"pointerleave",aa.touchFeedbackOnPointerLeave);aa={};return _.q("div",{el:a,class:_.jt("yt-lockup-view-model-wiz",function(){a:{var za=J();if(za.isOverlay)za="yt-lockup-view-model-wiz--overlay";else switch(za.arrangement){case 1:za="yt-lockup-view-model-wiz--horizontal";break a;default:za="yt-lockup-view-model-wiz--vertical"}}return za},function(){a:{var za=J();
if(za.isOverlay)za="yt-lockup-view-model-wiz--overlay";else{switch(za.collectionStackNumber){case 1:za="yt-lockup-view-model-wiz--collection-stack-1";break a;case 2:za="yt-lockup-view-model-wiz--collection-stack-2";break a}za=void 0}}return za},(aa["yt-lockup-view-model-wiz--card"]=function(){return J().isCard},aa["yt-lockup-view-model-wiz--compact"]=function(){return J().isTiny||J().sizing!=="STANDARD"},aa["yt-lockup-view-model-wiz--protect-background"]=g,aa["yt-lockup-view-model-wiz--add-margins"]=
function(){return J().addMarginForFullbleed},aa["yt-lockup-view-model-wiz--centered"]=function(){return J().isCentered},aa["yt-lockup-view-model-wiz--fullbleed"]=function(){return J().fullbleed},aa["yt-lockup-view-model-wiz--single-column-grid"]=function(){return u()===1&&d()===2},aa["yt-lockup-view-model-wiz--rich-grid-legacy-margin"]=function(){var za;
return(za=t())==null?void 0:za.useRichGridLegacyMargin},aa)),
"on:mousedown":Da,"on:mouseup":Ba,"on:mouseover":A,"on:touchstart":Da,"on:touchend":Ba},_.q(_.ut,{command:function(){var za;return _.Pu((za=b())==null?void 0:za.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model-wiz__content-image",style:function(){return n()&&J().arrangement===1?"width: "+n():""}},_.q(_.Eu,{data:function(){var za;
return(za=b())==null?void 0:za.contentImage}},{thumbnailViewModel:function(za){return _.q(mL,{data:za.data,
aspectRatio:function(){return J().aspectRatio},
disableRounding:function(){return J().disableRounding},
width:r,hovered:R,isClip:function(){var Fa;return((Fa=b())==null?void 0:Fa.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:function(Fa){C&&(C.thumbnailElRef=Fa.thumbnailElRef,C.thumbnail=Fa.thumbnail,C.thumbnailOverlays=Fa.thumbnailOverlays,C.thumbnailSize=Fa.thumbnailSize)},
lockupExperiments:function(){return t()}})},
collectionThumbnailViewModel:function(za){return _.q(P_b,{data:za.data,aspectRatio:function(){return J().aspectRatio},
disableRounding:function(){return J().disableRounding},
doubleStack:function(){return J().collectionStackNumber===2},
hovered:R,playbackRef:function(Fa){C&&(C.thumbnailElRef=Fa.thumbnailElRef,C.thumbnail=Fa.thumbnail,C.thumbnailOverlays=Fa.thumbnailOverlays,C.thumbnailSize=Fa.thumbnailSize)}})},
decoratedAvatarViewModel:_.MK})),_.q("div",{class:"yt-lockup-view-model-wiz__metadata"},_.q(_.Eu,{data:function(){var za;return(za=b())==null?void 0:za.metadata}},{lockupMetadataViewModel:function(za){return _.q(g0b,{data:za.data,
lockupStyle:J,lockupCommand:function(){var Fa;return _.Pu((Fa=b())==null?void 0:Fa.rendererContext)},
lockupAccessibilityLabel:function(){return G()}})},
feedAdMetadataViewModel:function(za){return _.q(o0b,{data:za.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0}})}}),_.q(_.Eu,{data:function(){var za;
return(za=b())==null?void 0:za.attachmentSlot}},{lockupAttachmentsViewModel:function(za){return _.q(U_b,{data:za.data,
lockupStyle:J})}})),_.q(_.xt,{model:function(){a:{switch(J().collectionStackNumber){case 1:var za=8;
break a;case 2:za=12;break a}za=void 0}return{isExtended:!0,triggerEvents:!0,customTopExtend:za}},
pointerDownEvent:ma.pointerDownEvent,pointerUpEvent:ma.pointerUpEvent,pointerLeaveEvent:ma.pointerLeaveEvent}))});
uL.idomCompat=!0;_.Ws(uL,"yt-lockup-view-model",{props:{data:_.SG,containerLayoutConfig:_.SG,containerType:_.SG,sizing:_.SG,protectBackground:_.SG,typographyBump:_.SG,thumbnailFixedWidth:_.SG,thumbnailTargetWidth:_.SG,force16By9ThumbnailAspectRatio:_.SG,className:_.SG,lockupExperiments:_.SG,elementsPerRow:_.SG}});_.am(YZa);var e_a=_.Au({buttonViewModel:_.Ju}),q0b=_.mt(b_a);_.am(b_a);_.am($Za);_.am(a_a);_.Ws(q0b,"yt-video-attribute-view-model",{props:{data:_.SG,className:_.SG}});var r0b=function(){var a=_.P.apply(this,arguments)||this;a.useHighlightStyling=_.x("web_enable_deeper_metadata_highlight_styling");a.isSearch=!1;a.JSC$12875_lastScrollContainerWidth=NaN;a.pageLoadingFromNavigation=!1;a.currentIndex=0;a.supportComponentResize=!1;return a};
_.z(r0b,_.P);_.f=r0b.prototype;
_.f.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}}}}}};
_.f.attached=function(){document.addEventListener("yt-page-type-changed",_.er(this,this.onPageChange))};
_.f.detached=function(){document.removeEventListener("yt-page-type-changed",_.er(this,this.onPageChange))};
_.f.getItemsPath=function(){return"data.cards"};
_.f.onIronResize=function(){this.updateListStyles()};
_.f.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var a;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(a=this.data)==null?void 0:a.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.x("problem_walkthrough_sd")&&!!this.centerItems};
_.f.computeCardListStyle=function(a){return a||null};
_.f.computeEmpty=function(a){return!this.get("cards.length",a)};
_.f.computeThumbnailStyle=function(a){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",a)||null};
_.f.computeHasSubtitle=function(a){return!!this.get("header.richListHeaderRenderer.subtitle",a)};
_.f.computeInitialCountNumber=function(a){return this.hasSquareMiniApp&&a==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&a==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:a==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:a==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:a==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&a==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.f.computeUseFloorScrolling=function(a){return a==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.f.computeHasGameCard=function(a){return(a=this.get("cards",a))?a.some(function(b){return b.gameCardRenderer}):!1};
_.f.computeCenterHeaderTitle=function(a){return!(a==null||!a.centerHeaderTitle)};
_.f.computeHasPortraitMiniApp=function(a){return(a=a==null?void 0:a.cards)?a.some(function(b){return b.miniGameCardViewModel&&b.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.f.computeHasSquareMiniApp=function(a){return(a=a==null?void 0:a.cards)?a.some(function(b){return b.miniGameCardViewModel&&b.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.f.computeIncreasePortraitMiniAppWidth=function(a){return(a=a==null?void 0:a.cards)?a.some(function(b){var c;return b.miniGameCardViewModel&&((c=b.miniGameCardViewModel.entityRedesignExperiments)==null?void 0:c.enable11ThumbnailOnHomeShelves)})&&_.x("enable_playables_reduced_card_count"):!1};
_.f.computeHasSkinnyWidthPortraitMiniApp=function(a){return(a=a==null?void 0:a.cards)?a.some(function(b){return b.miniGameCardViewModel&&b.miniGameCardViewModel.width===135}):!1};
_.f.computeCenterItems=function(a){return!!a};
_.f.computeHasInfoPanel=function(a){var b;return a==null?void 0:(b=a.cards)==null?void 0:b.some(function(c){return c.infoPanelContentRenderer})};
_.f.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.f.getItemByIndex=function(a){var b=this.items.children;return b&&b.length>a?b[a]:void 0};
_.f.onPageChange=function(){var a=this;this.pageLoadingFromNavigation=!0;_.zk.addJob(function(){a.pageLoadingFromNavigation=!1;_.ko(a.hostElement,"yt-terminate-video-preview-action")},8)};
_.f.updateListStyles=function(){if(_.x("problem_walkthrough_sd")&&this.JSC$12875_scrollContainer!==void 0){var a=this.JSC$12875_scrollContainer.clientWidth;a!==this.JSC$12875_lastScrollContainerWidth&&(this.JSC$12875_lastScrollContainerWidth=a,_.dr(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(a*.8,415)+"px"}),_.go(this.hostElement,"iron-resize"))}};
_.Vm.Object.defineProperties(r0b.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.x("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return _.x("kevlar_modern_sd")&&!!((a=this.data)==null?0:(b=a.cards)==null?0:(c=b[0])==null?0:c.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return!!((a=this.data)==null?0:(b=a.cards)==null?0:(c=b[0])==null?0:c.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return _.x("enable_desktop_amsterdam_info_panels")&&!!((a=this.data)==null?0:(b=a.cards)==null?0:(c=b[0])==null?0:c.infoPanelContentRenderer)}}});
var vL=r0b;vL.prototype.dataChanged=vL.prototype.dataChanged;vL.prototype.onIronResize=vL.prototype.onIronResize;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],vL.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],vL.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.hJ.YtdHorizontalListBehavior),_.W("design:type",Object)],vL.prototype,"ytdHorizontalListBehavior",void 0);
_.U([_.H(_.NI),_.W("design:type",Object)],vL.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],vL.prototype,"data",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],vL.prototype,"useCustomColors",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],vL.prototype,"useHighlightStyling",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.W("design:type",Object)],vL.prototype,"cardListStyle",void 0);_.U([_.O({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.W("design:type",Boolean)],vL.prototype,"empty",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.W("design:type",Boolean)],vL.prototype,"hasSubtitle",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.W("design:type",Boolean)],vL.prototype,"thumbnailStyle",void 0);_.U([_.O({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.W("design:type",Boolean)],vL.prototype,"hasGameCard",void 0);_.U([_.O({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.W("design:type",Boolean)],vL.prototype,"centerHeaderTitle",void 0);
_.U([_.O({readOnly:!0,reflectToAttribute:!0,computed:"computeIncreasePortraitMiniAppWidth(data)"}),_.W("design:type",Boolean)],vL.prototype,"increasePortraitMiniAppWidth",void 0);_.U([_.O({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.W("design:type",Boolean)],vL.prototype,"hasPortraitMiniApp",void 0);_.U([_.O({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.W("design:type",Boolean)],vL.prototype,"hasSquareMiniApp",void 0);
_.U([_.O({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.W("design:type",Boolean)],vL.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);_.U([_.O({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.W("design:type",Boolean)],vL.prototype,"hasInfoPanel",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],vL.prototype,"isSearch",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],vL.prototype,"inlineStructuredDescription",void 0);_.U([_.gr("#scroll-container"),_.W("design:type",HTMLDivElement)],vL.prototype,"JSC$12875_scrollContainer",void 0);_.U([_.O({computed:"computeInitialCountNumber(data.style.type)"}),_.W("design:type",Number)],vL.prototype,"initialCount",void 0);_.U([_.O({computed:"computeUseFloorScrolling(data.style.type)"}),_.W("design:type",Boolean)],vL.prototype,"useFloorScrolling",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.W("design:type",Boolean)],vL.prototype,"centerItems",void 0);_.U([_.O(),_.W("design:type",Object)],vL.prototype,"pageLoadingFromNavigation",void 0);_.U([_.O(),_.W("design:type",Object)],vL.prototype,"currentIndex",void 0);_.U([_.O(),_.W("design:type",Number)],vL.prototype,"scrollCount",void 0);_.U([_.O(),_.W("design:type",Object)],vL.prototype,"supportComponentResize",void 0);
_.U([_.gr("#items"),_.W("design:type",HTMLDivElement)],vL.prototype,"items",void 0);_.U([_.M("iron-resize"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],vL.prototype,"onIronResize",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],vL.prototype,"dataChanged",null);
_.U([_.O({reflectToAttribute:!0}),_.K("inlineStructuredDescription"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],vL.prototype,"hideNavigationButton",null);_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],vL.prototype,"modernChapters",null);_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],vL.prototype,"hasVideoAttributeViewModels",null);
_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],vL.prototype,"modernInfoPanels",null);vL=_.U([_.Q({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],vL);
_.S(vL,"ytd-horizontal-card-list-renderer",function(){if(YZb!==void 0)return YZb;var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return YZb=a},{mode:_.as("kevlar_poly_si_batch_j072")?1:2});_.am(g_a);var s0b=_.mt(g_a);_.dt(g_a,"video-summary-content-view-model",{propNames:["data","isSearch","className"]});var t0b=function(){var a=_.P.apply(this,arguments)||this;var b,c;a.isExpanded=(c=(b=a.data)==null?void 0:b.isExpanded)!=null?c:!1;a.disableExpand=!1;a.showProminentLabel=!1;a.showRightSideLabel=!0;a.toggleExpandableContent=function(d){a.disableExpand||(d.stopPropagation(),_.Yt(_.Pq(d),a.hostElement,["info","expanded-subtitle"])||(a.isExpanded=!a.isExpanded,a.ytRendererBehavior.logExplicitClick(a.data),a.JSC$12888_cardList&&!_.x("expandable_metadata_a11y_fix_ks")&&_.Tm(a,function(){_.Ok(a.hostElement)})))};
a.useSquareThumbnail=!1;a.startX=0;return a};
_.z(t0b,_.P);_.f=t0b.prototype;_.f.computeUseSquareThumbnail=function(){var a;return(a=this.data)==null?void 0:a.useSquareThumbnail};
_.f.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"}}}}};
_.f.dataChanged=function(){if(this.data){var a,b;this.isExpanded=(b=(a=this.data)==null?void 0:a.isExpanded)!=null?b:!1;var c,d,e,g;if(a=this.isDarkTheme()?(c=this.data)==null?void 0:(d=c.colorData)==null?void 0:d.darkColorPalette:(e=this.data)==null?void 0:(g=e.colorData)==null?void 0:g.lightColorPalette){var k,m;if((k=this.data)==null?0:(m=k.colorData)==null?0:m.vibrantColorPalette)a.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.Gt(this.hostElement,a)}}};
_.f.isExpandedChanged=function(){this.isExpanded&&this.JSC$12888_cardList&&_.go(this.JSC$12888_cardList,"iron-resize")};
_.f.computeIsExpanded=function(a){return!!a.isExpanded};
_.f.computeShowProminentLabel=function(a,b){var c;return!!(a==null?0:(c=a.header)==null?0:c.showLeadingCollapsedLabel)&&!b};
_.f.computeShowRightSideLabel=function(a,b){var c;return!(a==null?0:(c=a.header)==null?0:c.showLeadingCollapsedLabel)&&!b};
_.f.captureContentClick=function(a){if(!this.disableExpand)if(_.x("expandable_metadata_fix_killswitch")){var b=a.target;_.Zcb(b,"ytd-macro-markers-list-item-renderer")||a.stopPropagation();(b==null?void 0:b.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.Yt(_.Pq(a),this.hostElement,["items"])||_.Xt(_.Pq(a),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.f.timestampClick=function(a){a.stopPropagation();var b,c;(a=(b=this.data)==null?void 0:(c=b.header)==null?void 0:c.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(a)};
_.f.onDown=function(a){a.stopPropagation();this.startX=a.detail?a.detail.x:0};
_.f.onUp=function(a){this.skipKeyInteraction(a)&&a.stopPropagation()};
_.f.skipKeyInteraction=function(a){var b=a.target;if((b==null?void 0:b.id)==="scroll-container"||(b==null?void 0:b.id)==="items"||a.detail&&a.detail.x!==this.startX)return!0;a=_.Pq(a);a=_.h(a);for(b=a.next();!b.done;b=a.next()){b=b.value;if(b===this.hostElement)break;if(b.hasAttribute&&b.hasAttribute("skip-key-interaction"))return!0}return!1};
_.f.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.Vm.Object.defineProperties(t0b.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var a;return!!_.y((a=this.data)==null?void 0:a.expandedContent,xCb)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var a;return!!_.y((a=this.data)==null?void 0:a.expandedContent,gFb)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var a,b;return!((a=this.data)==null||!a.useCustomColors)&&!((b=this.data)==null||!b.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!((a=this.data)==null?0:(b=a.header)==null?0:b.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!((a=this.data)==null?0:(b=a.header)==null?0:b.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!((a=this.data)==null?0:(b=a.header)==null?0:b.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
var wL=t0b;wL.prototype.onUp=wL.prototype.onUp;wL.prototype.onDown=wL.prototype.onDown;wL.prototype.isExpandedChanged=wL.prototype.isExpandedChanged;wL.prototype.dataChanged=wL.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],wL.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],wL.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],wL.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],wL.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],wL.prototype,"isExpanded",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],wL.prototype,"disableExpand",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],wL.prototype,"isSearch",void 0);
_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],wL.prototype,"isWatch",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.W("design:type",Object)],wL.prototype,"showProminentLabel",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.W("design:type",Object)],wL.prototype,"showRightSideLabel",void 0);
_.U([_.O({value:!1,reflectToAttribute:!0}),_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],wL.prototype,"hasVideoSummary",null);_.U([_.O({value:!1,reflectToAttribute:!0}),_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],wL.prototype,"hasLockupViewModel",null);_.U([_.O({reflectToAttribute:!0}),_.K("data","isWatch"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],wL.prototype,"useCustomColors",null);
_.U([_.O({reflectToAttribute:!0}),_.K("data","isExpanded"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],wL.prototype,"showInfoButton",null);_.U([_.K("data","isExpanded"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],wL.prototype,"showTimestamp",null);_.U([_.K("data","isExpanded"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],wL.prototype,"showExpandedSubtitle",null);
_.U([_.K("data","isExpanded"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],wL.prototype,"showThumbnail",null);_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],wL.prototype,"useVppShoppingDestinationStyle",null);_.U([_.O(),_.W("design:type",Object)],wL.prototype,"toggleExpandableContent",void 0);_.U([_.gr("ytd-horizontal-card-list-renderer"),_.W("design:type",Object)],wL.prototype,"JSC$12888_cardList",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.W("design:type",Object)],wL.prototype,"useSquareThumbnail",void 0);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],wL.prototype,"dataChanged",null);_.U([_.N("isExpanded"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],wL.prototype,"isExpandedChanged",null);
_.U([_.M("down"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],wL.prototype,"onDown",null);_.U([_.M("up"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],wL.prototype,"onUp",null);wL=_.U([_.Q({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],wL);
_.S(wL,"ytd-expandable-metadata-renderer",function(){if(DYb!==void 0)return DYb;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" on-click="toggleExpandableContent" skip-key-interaction="" class="style-scope ytd-expandable-metadata-renderer">\n  <div id="left-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="thumbnail" hidden="[[!showThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-img-shadow object-fit="FILL" thumbnail="[[data.header.collapsedThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n    <div id="prominent-collapsed-label" hidden="[[!showProminentLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string id="prominent-label-text" text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="timestamp" hidden="[[!showTimestamp]]" raised="" on-click="timestampClick" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedJumpToTimestamp]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="collapsed-title" hidden="[[isExpanded]]" role="button" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expanded-title-subtitle-group" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon id="expanded-title-icon" disable-upgrade$="[[!data.header.expandedTitleIcon.iconType]]" hidden="[[!data.header.expandedTitleIcon.iconType]]" icon="[[data.header.expandedTitleIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <div id="expanded-title-subtitle-text" class="style-scope ytd-expandable-metadata-renderer">\n        <div id="expanded-title" class="style-scope ytd-expandable-metadata-renderer">\n          <yt-formatted-string text="[[data.header.expandedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n        </div>\n        <div id="expanded-subtitle" hidden="[[!showExpandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-expandable-metadata-renderer" href$="[[computeHref_(data.header.expandedSubtitleTapCommand)]]" data="[[data.header.expandedSubtitleTapCommand]]">\n            <yt-formatted-string text="[[data.header.expandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n            <yt-icon disable-upgrade$="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" hidden="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" icon="[[data.header.expandedSubtitleTrailingIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n            </yt-icon>\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="right-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="info" hidden="[[!showInfoButton]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapsed-label" hidden="[[!showRightSideLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon disable-upgrade$="[[!data.header.collapsedLabelIcon.iconType]]" hidden="[[!data.header.collapsedLabelIcon.iconType]]" icon="[[data.header.collapsedLabelIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <yt-formatted-string text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expand" hidden="[[isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapse" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n  </div>\n</div>\n<div id="content" on-click="captureContentClick" class="style-scope ytd-expandable-metadata-renderer"></div>\n<div id="menu" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return DYb=a},{mode:1});var u0b,v0b=function(){if(u0b!==void 0)return u0b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-renderer">\n  <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" use-untranslated-navigation-endpoint="[[hideTranslation]]" width="[[computeThumbnailWidth(isBackstageVideo, isPostCompactVideo, useSearchUi, useBiggerThumbs, biggerThumbsStyle, videoStyle)]]" class="style-scope ytd-video-renderer">\n  </ytd-thumbnail>\n  <div class="text-wrapper style-scope ytd-video-renderer" on-click="onTextWrapperClick">\n    <div id="meta" class="style-scope ytd-video-renderer">\n      <div id="title-wrapper" class="style-scope ytd-video-renderer">\n        <h3 class="title-and-badge style-scope ytd-video-renderer">\n          <ytd-badge-supported-renderer collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-video-renderer">\n          </ytd-badge-supported-renderer>\n          <a id="video-title" class="yt-simple-endpoint style-scope ytd-video-renderer" aria-label$="[[data.title.accessibility.accessibilityData.label]]" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" data="[[computedNavigationEndpoint]]">\n            <yt-icon id="inline-title-icon" hidden="[[hideInlineTitleIcon(hideTranslation, inlineTitleIcon)]]" icon="[[inlineTitleIcon]]" class="style-scope ytd-video-renderer">\n            </yt-icon>\n            <yt-formatted-string text="[[computeTitleText(hideTranslation, data.title, data.untranslatedTitle)]]" class="style-scope ytd-video-renderer">\n            </yt-formatted-string>\n          </a>\n        </h3>\n        <div id="menu" class="style-scope ytd-video-renderer"></div>\n      </div>\n      <ytd-video-meta-block data="[[data]]" no-byline="[[shouldShowChannelInfo]]" truncate-metadata-line="[[isRichGridVideoPost]]" class="style-scope ytd-video-renderer">\n      </ytd-video-meta-block>\n    </div>\n    <div id="channel-info" hidden="[[!shouldShowChannelInfo]]" class="style-scope ytd-video-renderer">\n      <a id="channel-thumbnail" hidden="[[!data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-video-renderer">\n        <yt-img-shadow thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-video-renderer">\n        </yt-img-shadow>\n      </a>\n      <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-video-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n      </ytd-channel-name>\n    </div>\n    <yt-formatted-string id="description-text" hidden="[[!data.descriptionSnippet]]" text="[[computeDescriptionSnippet(hideTranslation, data.descriptionSnippet, data.untranslatedDescriptionSnippet)]]" class="style-scope ytd-video-renderer">\n    </yt-formatted-string>\n    <template is="dom-repeat" items="[[data.detailedMetadataSnippets]]" hidden="[[!data.detailedMetadataSnippets]]" class="style-scope ytd-video-renderer">\n      <div class$="[[getMetadataSnippetContainerClass(item.maxOneLine)]] style-scope ytd-video-renderer">\n        <a class="yt-simple-endpoint metadata-snippet-timestamp style-scope ytd-video-renderer" aria-label$="[[item.snippetTimestamp.accessibility.accessibilityData.label]]" hidden="[[!item.snippetTimestamp]]" href$="[[computeHref_(item.timestampEndpoint)]]" data="[[item.timestampEndpoint]]">\n          <span id="time" class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetTimestamp)]]</span>\n          <yt-formatted-string class="metadata-snippet-text-navigation style-scope ytd-video-renderer" text="[[item.snippetText]]">\n          </yt-formatted-string>\n        </a>\n        <yt-formatted-string class="metadata-snippet-text style-scope ytd-video-renderer" hidden="[[item.snippetTimestamp]]" text="[[computeSnippetText(hideTranslation, item.snippetText, item.untranslatedSnippetText)]]">\n        </yt-formatted-string>\n        <tp-yt-paper-tooltip class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetHoverText)]]</tp-yt-paper-tooltip>\n      </div>\n    </template>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" hidden-badge-groups="[[hiddenBadgeGroups]]" class="style-scope ytd-video-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="expandable-metadata" class="style-scope ytd-video-renderer"></div>\n    <div id="buttons" class="style-scope ytd-video-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-video-renderer"></yt-interaction>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return u0b=a};_.It("itemSectionRenderer","videoRenderer","ytd-video-renderer");var xL=function(){var a=_.P.apply(this,arguments)||this;a.disableExpand=!1;a.shouldShowChannelInfo=!1;a.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return a};
_.z(xL,_.P);_.f=xL.prototype;_.f.computeUseSearchUi=function(){var a,b;return this.isSearch||((a=this.data)==null?void 0:(b=a.style)==null?void 0:b.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.f.computeUseThreeLineTitle=function(){var a;return((a=this.data)==null?void 0:a.maxTitleLines)===3};
_.f.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.x("polymer_video_renderer_defer_menu")&&!ELb?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]]"}}}}}};
_.f.attached=function(){_.$q(this.hostElement,"blue-links",_.x("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.f.detached=function(){this.clearInlinePreviewHoverListeners()};
_.f.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.ar(_.E(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var a=this.get("data.buttons.buttonRenderer.serviceEndpoint"),b;a&&((b=_.y(a.commandMetadata,_.HE))==null?0:b.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(a);this.updateInlinePreviewHoverListeners()};
_.f.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$12893_inlinePreviewHoverListener=$u({mediaRenderer:this,lockupElement:this.JSC$12893_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.f.clearInlinePreviewHoverListeners=function(){var a;(a=this.JSC$12893_inlinePreviewHoverListener)==null||qv(a)};
_.f.onTextWrapperClick=function(a){var b,c,d=this.hideTranslation?(b=this.data)==null?void 0:b.untranslatedNavigationEndpoint:(c=this.data)==null?void 0:c.navigationEndpoint;b=_.Yt(_.Pq(a),this.hostElement,["expandable-metadata"]);!d||b&&!_.x("expandable_metadata_fix_killswitch")||_.Xt(_.Pq(a),this.hostElement,["A".toString(),"BUTTON".toString()])||_.go(this.hostElement,"yt-navigate",{endpoint:d})};
_.f.computeThumbnailWidth=function(a,b,c,d,e){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:d?e==="MASSIVE"?600:e==="BIG"?500:e==="MEDIUM"?450:420:c?360:b?128:a?210:246};
_.f.computeUseBiggerThumbs=function(a){return a&&_.x("enable_desktop_search_bigger_thumbs")};
_.f.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.f.computeVideoStyle=function(){if(_.x("enable_video_style")){var a,b;return(a=this.data)==null?void 0:(b=a.style)==null?void 0:b.value}};
_.f.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.f.handleHideItemSectionVideosByIdCommand=function(a){var b;a=(b=_.y(a,UBb))==null?void 0:b.videoId;this.data&&this.data.videoId===a&&(this.isHidden=!0)};
_.f.getMetadataSnippetContainerClass=function(a){return a?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.f.computeTitleText=function(a,b,c){return a?c:b};
_.f.computeDescriptionSnippet=function(a,b,c){return a?c:b};
_.f.computeSnippetText=function(a,b,c){return a?c:b};
_.f.computeNavigationEndpoint=function(a,b){return a?b==null?void 0:b.untranslatedNavigationEndpoint:b==null?void 0:b.navigationEndpoint};
_.f.hideInlineTitleIcon=function(a,b){return a||!b};
_.Vm.Object.defineProperties(xL.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 a;return(a=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?a:[]}return[]}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.JSC$12893_inlinePreviewHoverListener)==null?0:PK(a))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.Vm.Object.defineProperties(xL,{template:{configurable:!0,enumerable:!0,get:function(){return v0b()}}});
var yL=xL;yL.prototype.dataChanged=yL.prototype.dataChanged;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],yL.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],yL.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],yL.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.NI),_.W("design:type",Object)],yL.prototype,"ytdDismissibleItemBehavior",void 0);
_.U([_.H(_.VI),_.W("design:type",Object)],yL.prototype,"ytdLockupBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],yL.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],yL.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],yL.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],yL.prototype,"isBackstageVideo",void 0);
_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],yL.prototype,"isPostCompactVideo",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],yL.prototype,"isHistory",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],yL.prototype,"isRichGridVideoPost",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],yL.prototype,"isHidden",void 0);
_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],yL.prototype,"isSearch",void 0);_.U([_.O({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.W("design:type",Boolean)],yL.prototype,"useSearchUi",void 0);_.U([_.O({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.W("design:type",Boolean)],yL.prototype,"useThreeLineTitle",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.W("design:type",Boolean)],yL.prototype,"useBiggerThumbs",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.W("design:type",Object)],yL.prototype,"videoStyle",void 0);_.U([_.O({computed:"computeDisableExpand(videoStyle)"}),_.W("design:type",Object)],yL.prototype,"disableExpand",void 0);
_.U([_.O({computed:"computeShouldShowChannelInfo(useSearchUi, data)"}),_.W("design:type",Object)],yL.prototype,"shouldShowChannelInfo",void 0);_.U([_.O({reflectToAttribute:!0,value:function(){return _.aj("desktop_search_bigger_thumbs_style")}}),
_.W("design:type",String)],yL.prototype,"biggerThumbsStyle",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.W("design:type",String)],yL.prototype,"inlineTitleIcon",void 0);_.U([_.O({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.W("design:type",Object)],yL.prototype,"computedNavigationEndpoint",void 0);_.U([_.O({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(a,b){return _.mp(a.entities,"searchVideoResultEntity",b)}}),
_.W("design:type",Object)],yL.prototype,"searchVideoResultEntity",void 0);_.U([_.gr("ytd-thumbnail"),_.W("design:type",HTMLElement)],yL.prototype,"thumbnail",void 0);_.U([_.gr("#dismissible"),_.W("design:type",HTMLElement)],yL.prototype,"JSC$12893_dismissibleMedia",void 0);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yL.prototype,"dataChanged",null);
_.U([_.K("searchVideoResultEntity"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],yL.prototype,"hideTranslation",null);_.U([_.K("searchVideoResultEntity"),_.W("design:type",Array),_.W("design:paramtypes",[])],yL.prototype,"hiddenBadgeGroups",null);_.U([_.K("lockupIsHovered"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],yL.prototype,"isHovered",null);yL=_.U([_.Q({is:"ytd-video-renderer",disableElementRegistration:!0})],yL);
_.S(yL,"ytd-video-renderer",function(){return v0b()},{mode:_.as("kevlar_poly_si_batch_j047")?1:2});var w0b=function(){var a=_.P.apply(this,arguments)||this;a.editDialog=null;a.roundedContainer=!0;a.isLoading=!1;a.isRichGrid=!1;a.isRichGridRepost=!1;a.reduceSidePaddings=_.x("reduce_side_paddings_in_shelf");a.JSC$12899_spinnerEl=null;return a};
_.z(w0b,_.P);_.f=w0b.prototype;
_.f.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"}}}};
_.f.contentTextChanged=function(){this.expander.reset()};
_.f.dataChanged=function(){var a=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var b=0,c=this.data.actions&&this.data.actions.length;b<c;b++)this.openEditDialog(_.y(this.data.actions[b],szb));if((b=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(b=this.get("buttonRenderer.hint.hintRenderer.hintId",b))&&b.startsWith("share-post-hint")){var d=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(d){_.hG.getInstance();var e=iG(_.Up(_.to("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.zk.addLowPriorityJob(function(){_.no(a.hostElement,e,d)})}}}};
_.f.updatePoll=function(a){a>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.f.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$12899_spinnerEl||(this.JSC$12899_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.E(this.hostElement).appendChild(this.JSC$12899_spinnerEl));this.JSC$12899_spinnerEl&&(this.JSC$12899_spinnerEl.active=this.isLoading)};
_.f.onYtNavigate=function(a){var b=this.get("updateCommentDialogEndpoint",a.detail.endpoint);b&&(this.openEditDialog(b),a.stopPropagation())};
_.f.onYtCommentboxDismiss=function(){this.editDialog=null};
_.f.onYtCommentPollRevert=function(a,b){b&&this.updatePoll(b.selectedChoiceIndex)};
_.f.onYtServiceRequestSent=function(a,b){var c;b.endpoint&&(_.y(b.endpoint,FEb)||_.y(b.endpoint,QE)&&((c=_.y(b.endpoint,QE))==null||!c.clientActions))&&(this.isLoading=!0);if(b.actions)for(a=0;a<b.actions.length;a++)c=b.actions[a],_.y(c,FE)&&(c=this.get("updateBackstagePollAction.selectedChoiceIndex",c),c==void 0&&(c=-1),this.updatePoll(c))};
_.f.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.f.openEditDialog=function(a){a&&a.dialog&&(this.editDialog=a.dialog,a=this.editDialogEl.firstElementChild)&&(a.focus(),a.openDialog&&a.openDialog())};
_.f.computeIsPostHidden=function(a,b){return!!a||b};
_.f.computeSurfaceType=function(a){return a?a.toLowerCase().replace(/_/g,"-"):""};
_.f.computeUsesCompactLockup=function(a){return a==="BACKSTAGE_SURFACE_TYPE_HOME"||a==="BACKSTAGE_SURFACE_TYPE_SEARCH"||a==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||a==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||a==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||a==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.f.computeShowWithoutToolbar=function(a){return!a.actionButtons&&!a.actionMenu};
_.f.computePostAttachment=function(a){if(a.backstageAttachment){if(_.y(a.backstageAttachment,mEb))return"poll";if(_.y(a.backstageAttachment,XDb))return"quiz";if(_.y(a.backstageAttachment,_.uEb))return"video";if(_.y(a.backstageAttachment,YDb))return"uploaded-videos";if(_.y(a.backstageAttachment,Uyb))return a.contentText?"image":"image-only";if(_.y(a.backstageAttachment,TDb))return"playlist"}return"none"};
_.f.computePostTabIndex=function(a){return a?0:-1};
_.f.computeButtonTooltipPosition=function(a){return this.computeUsesCompactLockup(a)?"top":"bottom"};
_.f.computeHasText=function(a){return!(a==null||!a.contentText)};
_.f.onTap=function(a){var b,c;if(((b=this.data)==null?0:b.navigationEndpoint)&&_.y((c=this.data)==null?void 0:c.navigationEndpoint,_.Ow))this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var d;((d=this.data)==null?0:d.navigationEndpoint)&&!_.Xt(_.Pq(a)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.go(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.Vm.Object.defineProperties(w0b.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.voteCount)||_.Up("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.y(this.data.backstageAttachment,mEb))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.y(this.data.backstageAttachment,YDb))}}});
var zL=w0b;zL.prototype.onYtServiceRequestCompleted=zL.prototype.onYtServiceRequestCompleted;zL.prototype.onYtServiceRequestSent=zL.prototype.onYtServiceRequestSent;zL.prototype.onYtCommentPollRevert=zL.prototype.onYtCommentPollRevert;zL.prototype.onYtCommentboxDismiss=zL.prototype.onYtCommentboxDismiss;zL.prototype.onYtNavigate=zL.prototype.onYtNavigate;zL.prototype.isLoadingChanged=zL.prototype.isLoadingChanged;zL.prototype.dataChanged=zL.prototype.dataChanged;zL.prototype.contentTextChanged=zL.prototype.contentTextChanged;
_.U([_.H(_.NI),_.W("design:type",Object)],zL.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],zL.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],zL.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],zL.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],zL.prototype,"data",void 0);
_.U([_.O(),_.W("design:type",Object)],zL.prototype,"editDialog",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],zL.prototype,"roundedContainer",void 0);_.U([_.O(),_.W("design:type",Object)],zL.prototype,"isLoading",void 0);_.U([_.O({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.W("design:type",String)],zL.prototype,"surface",void 0);
_.U([_.O({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.W("design:type",Boolean)],zL.prototype,"usesCompactLockup",void 0);_.U([_.O({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],zL.prototype,"showWithoutToolbar",void 0);_.U([_.O({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.W("design:type",String)],zL.prototype,"attachment",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],zL.prototype,"isRichGrid",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],zL.prototype,"isRichGridRepost",void 0);_.U([_.O({reflectToAttribute:!0,value:_.x("use_better_post_dismissals")}),_.W("design:type",Boolean)],zL.prototype,"useBetterPostDismissals",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],zL.prototype,"reduceSidePaddings",void 0);
_.U([_.O({computed:"computeHasText(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],zL.prototype,"hasText",void 0);_.U([_.gr("#expander"),_.W("design:type",Object)],zL.prototype,"expander",void 0);_.U([_.gr("#action-buttons"),_.W("design:type",Object)],zL.prototype,"actionButtons",void 0);_.U([_.gr("#edit-dialog"),_.W("design:type",HTMLElement)],zL.prototype,"editDialogEl",void 0);
_.U([_.N("data.contentText"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],zL.prototype,"contentTextChanged",null);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],zL.prototype,"dataChanged",null);_.U([_.N("isLoading"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],zL.prototype,"isLoadingChanged",null);
_.U([_.M("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],zL.prototype,"onYtNavigate",null);_.U([_.M("yt-commentbox-dismiss"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],zL.prototype,"onYtCommentboxDismiss",null);_.U([_.M("yt-comment-poll-revert"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],zL.prototype,"onYtCommentPollRevert",null);
_.U([_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Ot]),_.W("design:returntype")],zL.prototype,"onYtServiceRequestSent",null);_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Wt]),_.W("design:returntype")],zL.prototype,"onYtServiceRequestCompleted",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],zL.prototype,"voteCount",null);
_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],zL.prototype,"commentCount",null);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],zL.prototype,"hasPoll",null);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],zL.prototype,"hasUploadedVideo",null);zL=_.U([_.Q({is:"ytd-post-renderer",disableElementRegistration:!0})],zL);
_.S(zL,"ytd-post-renderer",function(){if(EXb!==void 0)return EXb;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return EXb=a},{mode:1});var x0b;var y0b;var z0b=function(){return _.P.apply(this,arguments)||this};
_.z(z0b,_.P);z0b.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
var AL=z0b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],AL.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],AL.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.hJ.YtdHorizontalListBehavior),_.W("design:type",Object)],AL.prototype,"ytdHorizontalListBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],AL.prototype,"componentBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],AL.prototype,"data",void 0);_.U([_.O({value:"$.items.children"}),_.W("design:type",String)],AL.prototype,"itemsPath",void 0);_.U([_.O({value:1}),_.W("design:type",Number)],AL.prototype,"initialCount",void 0);_.U([_.O(),_.W("design:type",String)],AL.prototype,"surface",void 0);AL=_.U([_.Q({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],AL);
_.S(AL,"ytd-post-multi-image-renderer",function(){if(y0b!==void 0)return y0b;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return y0b=a},{mode:_.as("kevlar_poly_si_batch_j079")?1:2});var A0b={"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.authorCommentBadge":{id:"author-comment-badge",mapping:{authorCommentBadgeRenderer:"ytd-author-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},"data.backstageAttachment":{id:"content-attachment",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}},backstageImageRenderer:{component:"ytd-backstage-image-renderer",
properties:{surface:"[[data.surface]]"}},postMultiImageRenderer:{component:"ytd-post-multi-image-renderer",properties:{surface:"[[data.surface]]"}},playlistRenderer:{component:"ytd-playlist-renderer",params:{isBackstagePlaylist:!0}}}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}}},B0b=function(){var a=_.P.apply(this,arguments)||this;a.hasInlineCommentSection=!1;a.editDialog=null;a.isLoading=!1;a.shouldHideAuthor=!1;a.shouldShowVideoTime=!1;
a.isInEngagementPanel=!1;a.hideBorder=!1;a.usesFullLockup=!1;a.shouldShowMenuInCompactView=!1;a.JSC$12915_spinnerEl=null;a.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return a};
_.z(B0b,_.P);_.f=B0b.prototype;_.f.configureRendererStamper=function(){return A0b};
_.f.computeIsPollHeaderEnabled=function(a){return(a==null?void 0:a.pollMetadataIcon)!=null};
_.f.getPublishTimeStampString=function(a,b){b=new Date((Number(b)-60*((new Date).getTimezoneOffset()-(new Date(Number(b)*1E3)).getTimezoneOffset()))*1E3);b=(new Sp(10)).format(b);if(a&&a.runs&&a.runs.length)for(var c=0;c<a.runs.length;c++)a.runs[c].text&&(a.runs[c].text=a.runs[c].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",b));return a};
_.f.created=function(){this.JSC$12915_spinnerEl=null};
_.f.contentTextChanged=function(){this.expander.reset()};
_.f.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var a;if((a=this.data)==null?0:a.actions){a=_.h(this.data.actions);for(var b=a.next();!b.done;b=a.next())this.openEditDialog(_.y(b.value,szb))}};
_.f.handleSignalActionOpenPostCommentDialogAction=function(){_.E(this.hostElement).querySelector("#action-buttons").reply()};
_.f.updatePoll=function(a,b){b&&this.set("data.pollMetadataVoteCountText",b);this.hasInlineCommentSection&&(a=a>=0,b=_.E(this.hostElement).querySelector("#action-buttons"),a?b.reply():b.hideReplyDialog())};
_.f.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$12915_spinnerEl||(this.JSC$12915_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.E(this.hostElement).appendChild(this.JSC$12915_spinnerEl));this.JSC$12915_spinnerEl&&(this.JSC$12915_spinnerEl.active=this.isLoading)};
_.f.onYtNavigate=function(a){var b=this.get("updateCommentDialogEndpoint",a.detail.endpoint);b&&(this.openEditDialog(b),a.stopPropagation())};
_.f.onYtCommentboxDismiss=function(){this.editDialog=null};
_.f.onYtCommentPollRevert=function(a,b){b&&this.updatePoll(b.selectedChoiceIndex,b.totalVotes)};
_.f.onYtServiceRequestSent=function(a,b){a.stopPropagation();a=_.y(b.endpoint,QE);if(_.y(b.endpoint,FEb)||a&&!a.clientActions)this.isLoading=!0;if(b.actions)for(a=0;a<b.actions.length;a++){var c=b.actions[a],d=_.y(c,FE);d&&(c=this.get("updateBackstagePollAction.selectedChoiceIndex",c),c===void 0&&(c=-1),this.updatePoll(c,d.totalVotes))}};
_.f.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.f.openEditDialog=function(a){a&&a.dialog&&(this.editDialog=a.dialog,a=this.editDialogElement.firstElementChild)&&(a.focus(),a.openDialog&&a.openDialog())};
_.f.computeIsBodyHidden=function(a,b){return!!a||b};
_.Vm.Object.defineProperties(B0b.prototype,{postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var a,b;if((a=this.data)==null?0:(b=a.pollMetadataIcon)==null?0:b.iconType)return _.fs(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.voteCount)||_.Up("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.y(this.data.backstageAttachment,mEb))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.y(this.data.backstageAttachment,XDb))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.y(this.data.backstageAttachment,YDb))}}});
var BL=B0b;BL.prototype.onYtServiceRequestCompleted=BL.prototype.onYtServiceRequestCompleted;BL.prototype.onYtServiceRequestSent=BL.prototype.onYtServiceRequestSent;BL.prototype.onYtCommentPollRevert=BL.prototype.onYtCommentPollRevert;BL.prototype.onYtCommentboxDismiss=BL.prototype.onYtCommentboxDismiss;BL.prototype.onYtNavigate=BL.prototype.onYtNavigate;BL.prototype.isLoadingChanged=BL.prototype.isLoadingChanged;BL.prototype.dataChanged=BL.prototype.dataChanged;BL.prototype.contentTextChanged=BL.prototype.contentTextChanged;
_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],BL.prototype,"actionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],BL.prototype,"rendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],BL.prototype,"rendererstamperBehavior",void 0);_.U([_.gr("#contentTextExpander"),_.W("design:type",Object)],BL.prototype,"expander",void 0);
_.U([_.gr("#edit-dialog"),_.W("design:type",Element)],BL.prototype,"editDialogElement",void 0);_.U([_.O(),_.W("design:type",Object)],BL.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],BL.prototype,"hasInlineCommentSection",void 0);_.U([_.O(),_.W("design:type",Object)],BL.prototype,"editDialog",void 0);_.U([_.O(),_.W("design:type",Object)],BL.prototype,"isLoading",void 0);
_.U([_.O({computed:"computeIsPollHeaderEnabled(data)"}),_.W("design:type",Boolean)],BL.prototype,"isPollHeaderEnabled",void 0);_.U([_.O(),_.W("design:type",Object)],BL.prototype,"shouldHideAuthor",void 0);_.U([_.O(),_.W("design:type",Object)],BL.prototype,"shouldShowVideoTime",void 0);_.U([_.O(),_.W("design:type",Object)],BL.prototype,"isInEngagementPanel",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],BL.prototype,"hideBorder",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],BL.prototype,"usesFullLockup",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],BL.prototype,"shouldShowMenuInCompactView",void 0);_.U([_.K("isInEngagementPanel"),_.W("design:type",Number),_.W("design:paramtypes",[])],BL.prototype,"postTextMaxLines",null);_.U([_.K("data.icon.iconType"),_.W("design:type",Object),_.W("design:paramtypes",[])],BL.prototype,"pollIcon",null);
_.U([_.N("data.contentText"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],BL.prototype,"contentTextChanged",null);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],BL.prototype,"dataChanged",null);_.U([_.N("isLoading"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],BL.prototype,"isLoadingChanged",null);
_.U([_.M("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],BL.prototype,"onYtNavigate",null);_.U([_.M("yt-commentbox-dismiss"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],BL.prototype,"onYtCommentboxDismiss",null);_.U([_.M("yt-comment-poll-revert"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],BL.prototype,"onYtCommentPollRevert",null);
_.U([_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Ot]),_.W("design:returntype")],BL.prototype,"onYtServiceRequestSent",null);_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],BL.prototype,"onYtServiceRequestCompleted",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],BL.prototype,"voteCount",null);
_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],BL.prototype,"commentCount",null);_.U([_.K("data.backstageAttachment"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],BL.prototype,"hasPoll",null);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],BL.prototype,"hasQuiz",null);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],BL.prototype,"hasUploadedVideo",null);
BL=_.U([_.Q({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],BL);
_.S(BL,"ytd-backstage-post-renderer",function(){if(x0b!==void 0)return x0b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" hidden="[[computeIsBodyHidden(editDialog, isLoading)]]" class="style-scope ytd-backstage-post-renderer">\n  <div id="author-thumbnail" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="main" class="style-scope ytd-backstage-post-renderer">\n    <div id="header" class="style-scope ytd-backstage-post-renderer">\n      <div id="header-author" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n        <a id="author-text" class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[data.authorCommentBadge]]">\n          <span class="style-scope ytd-backstage-post-renderer">[[getSimpleString(data.authorText)]]</span>\n        </a>\n        <span id="author-comment-badge" hidden="[[!data.authorCommentBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n        <template is="dom-if" if="[[isPollHeaderEnabled]]" class="style-scope ytd-backstage-post-renderer">\n          <yt-icon id="poll-icon" icon="[[pollIcon]]" class="style-scope ytd-backstage-post-renderer"></yt-icon>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataVoteCountText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n        </template>\n        <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[getPublishTimeStampString(data.publishedTimeText, data.scheduledPublishTimeSec)]]" class="style-scope ytd-backstage-post-renderer">\n        </yt-formatted-string>\n        <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n      </div>\n      <yt-formatted-string id="video-time-text" force-default-style="" hidden="[[!shouldShowVideoTime]]" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-expander id="contentTextExpander" max-number-of-lines="[[postTextMaxLines]]" class="style-scope ytd-backstage-post-renderer">\n      <yt-formatted-string id="voted-option" slot="content" disable-upgrade$="[[!data.prologueText]]" hidden="[[!data.prologueText]]" text="[[data.prologueText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <span class="more-button style-scope ytd-backstage-post-renderer" slot="more-button">[[getSimpleString(data.expandButton.buttonRenderer.text)]]</span>\n      <span class="less-button style-scope ytd-backstage-post-renderer" slot="less-button">[[getSimpleString(data.collapseButton.buttonRenderer.text)]]</span>\n    </ytd-expander>\n    <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-backstage-post-renderer"></div>\n    <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" hidden="[[!hasPoll]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-poll-renderer>\n    <ytd-backstage-quiz-renderer id="quiz-attachment" aria-label$="[[data.backstageAttachment.quizRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.quizRenderer]]" hidden="[[!hasQuiz]]" role="group" uses-panel-lockup$="[[isInEngagementPanel]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-quiz-renderer>\n    <ytd-post-uploaded-video-renderer id="uploaded-video-attachment" data="[[data.backstageAttachment.uploadedVideoRenderer]]" hidden="[[!hasUploadedVideo]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-post-uploaded-video-renderer>\n    <ytd-comment-action-buttons-renderer id="action-buttons" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-poll="[[hasPoll]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" vote-count="[[voteCount]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n  </div>\n\n  <div id="action-menu" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-backstage-post-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return x0b=a},{mode:1});var C0b;var D0b=function(){var a=_.P.apply(this,arguments)||this;a.editDialog=null;a.showExpandButton=!1;a.isRichGrid=!1;a.usesFullLockup=!1;return a};
_.z(D0b,_.P);_.f=D0b.prototype;_.f.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"}}}};
_.f.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.f.computeShowExpandButton=function(a){return this.usesCompactLockup||a&&a.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.f.computeUsesCompactLockup=function(a){return!!a.condensedContent};
_.f.computeShowFullContentText=function(a){return!a};
_.f.onYtNavigate=function(a){a=this.get("updateCommentDialogEndpoint",a.detail.endpoint);this.openEditDialog(a)};
_.f.onYtCommentboxDismiss=function(){this.editDialog=null};
_.f.openEditDialog=function(a){a&&a.dialog&&(this.editDialog=a.dialog,a=this.repostEditDialogEl.firstElementChild)&&(a.focus(),a.openDialog&&a.openDialog())};
_.f.onTap=function(a){if(this.data){var b=null;this.usesCompactLockup&&!_.Xt(_.Pq(a)||[],this.hostElement,["YT-IMG-SHADOW"])?b=this.get("navigationEndpoint",this.data):a.target===this.moreButtonEl&&(b=this.get("navigationEndpoint",a.target.data));b&&_.go(this.hostElement,"yt-navigate",{endpoint:b})}};
var CL=D0b;CL.prototype.onYtCommentboxDismiss=CL.prototype.onYtCommentboxDismiss;CL.prototype.onYtNavigate=CL.prototype.onYtNavigate;CL.prototype.dataChanged=CL.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],CL.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],CL.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],CL.prototype,"data",void 0);
_.U([_.O(),_.W("design:type",Object)],CL.prototype,"editDialog",void 0);_.U([_.O({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],CL.prototype,"usesCompactLockup",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],CL.prototype,"showExpandButton",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],CL.prototype,"isRichGrid",void 0);
_.U([_.O({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.W("design:type",Boolean)],CL.prototype,"showFullContentText",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],CL.prototype,"usesFullLockup",void 0);_.U([_.gr("#more"),_.W("design:type",Object)],CL.prototype,"moreButtonEl",void 0);_.U([_.gr("#repost-content-text"),_.W("design:type",HTMLElement)],CL.prototype,"repostContentTextEl",void 0);
_.U([_.gr("#repost-edit-dialog"),_.W("design:type",HTMLElement)],CL.prototype,"repostEditDialogEl",void 0);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],CL.prototype,"dataChanged",null);_.U([_.M("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],CL.prototype,"onYtNavigate",null);
_.U([_.M("yt-commentbox-dismiss"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],CL.prototype,"onYtCommentboxDismiss",null);CL=_.U([_.Q({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],CL);
_.S(CL,"ytd-shared-post-renderer",function(){if(C0b!==void 0)return C0b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return C0b=a},{mode:1});var E0b;var F0b;var G0b;var H0b=function(){var a=_.P.apply(this,arguments)||this;a.boundCaptureFocus=function(b){a.onCaptureFocus(b)};
return a};
_.z(H0b,_.P);_.f=H0b.prototype;_.f.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.f.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.f.onCaptureFocus=function(a){_.Pq(a).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.f.getIconType=function(a){return a?"yt-icons:"+a.toLowerCase():null};
_.f.onSelect=function(){var a;if((a=this.data)==null?0:a.onSelectCommand)if(_.x("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var b;((b=_.y(this.data.onSelectCommand.commandMetadata,_.ao))==null?0:b.url)?_.go(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.v().resolve(_.Xi).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.Vm.Object.defineProperties(H0b.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.Vp(this.data.label):""}},
value:{configurable:!0,enumerable:!0,get:function(){return this.data?typeof this.data.stringValue==="string"?this.data.stringValue:typeof this.data.int32Value==="number"?this.data.int32Value:null:null}}});
var DL=H0b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],DL.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],DL.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],DL.prototype,"data",void 0);_.U([_.gr("#item"),_.W("design:type",HTMLElement)],DL.prototype,"item",void 0);_.U([_.K("data.label"),_.W("design:type",String),_.W("design:paramtypes",[])],DL.prototype,"label",null);
_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],DL.prototype,"value",null);DL=_.U([_.Q({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],DL);
_.S(DL,"ytd-privacy-dropdown-item-renderer",function(){if(G0b!==void 0)return G0b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return G0b=a},{mode:1});var I0b=function(){var a=_.P.apply(this,arguments)||this;a.value="";a.label="";a.disabled=!1;return a};
_.z(I0b,_.P);_.f=I0b.prototype;_.f.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"}}}};
_.f.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.f.dataChanged=function(){this.reset()};
_.f.valueChanged=function(){var a;if(this.value&&(a=this.data)!=null&&a.entries){a=_.h(this.data.entries);for(var b=a.next();!b.done;b=a.next())if((b=this.getRendererForEntry(b.value))&&this.getItemRendererValue(b)===this.value){this.label=this.ytComponentBehavior.getSimpleString(b.label);break}}};
_.f.setInitialLabel=function(){if(this.data&&this.data.entries)for(var a=_.h(this.data.entries),b=a.next();!b.done;b=a.next())if(b=this.getRendererForEntry(b.value)){if(b.isSelected){this.label=this.ytComponentBehavior.getSimpleString(b.label);break}this.data.label&&(this.label=this.data.label)}};
_.f.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var a=_.h(this.data.entries),b=a.next();!b.done;b=a.next()){b=this.getRendererForEntry(b.value);var c=void 0;if((c=b)==null?0:c.isSelected)return this.getItemRendererValue(b)||-1}return-1};
_.f.getItemRendererValue=function(a){return"stringValue"in a||"int32Value"in a?a.stringValue||a.int32Value||null:null};
_.f.getRendererForEntry=function(a){return a.dropdownItemRenderer||a.privacyDropdownItemRenderer||a.navigationDropdownItemRenderer||null};
_.f.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.TH("value-changed",this.value))};
_.f.updateValueFromBinding=function(a){this.value=a.detail.value};
var EL=I0b;EL.prototype.valueChangedForBinding=EL.prototype.valueChangedForBinding;EL.prototype.valueChanged=EL.prototype.valueChanged;EL.prototype.dataChanged=EL.prototype.dataChanged;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],EL.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],EL.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],EL.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],EL.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],EL.prototype,"value",void 0);_.U([_.O(),_.W("design:type",Object)],EL.prototype,"label",void 0);_.U([_.gr("#entries"),_.W("design:type",Object)],EL.prototype,"entries",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],EL.prototype,"disabled",void 0);
_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],EL.prototype,"dataChanged",null);_.U([_.kr("value"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],EL.prototype,"valueChanged",null);_.U([_.N("value"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],EL.prototype,"valueChangedForBinding",null);EL=_.U([_.Q({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],EL);
_.S(EL,"ytd-flat-dropdown-renderer",function(){if(F0b!==void 0)return F0b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flat-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button disabled="[[disabled]]" dynamic-align="" horizontal-align="left" class="style-scope ytd-flat-dropdown-renderer">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-flat-dropdown-renderer" slot="dropdown-trigger" aria-label$="[[label]]">\n    <div id="label-text" class="style-scope ytd-flat-dropdown-renderer">[[label]]</div>\n    <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-flat-dropdown-renderer">\n    </yt-icon>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="entries" class="dropdown-content style-scope ytd-flat-dropdown-renderer" slot="dropdown-content" attr-for-selected="value" selected="[[value]]" on-selected-changed="updateValueFromBinding">\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return F0b=a},{mode:1});var J0b;var K0b=function(){return _.P.apply(this,arguments)||this};
_.z(K0b,_.P);K0b.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&(_.x("web_ytd_identity_chip_renderer_command_resolver_ks")?_.mo(this.hostElement,[this.data.onTapCommand]):_.v().resolve(_.Xi).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}}))};
var FL=K0b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],FL.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],FL.prototype,"data",void 0);FL=_.U([_.Q({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],FL);
_.S(FL,"ytd-identity-chip-renderer",function(){if(J0b!==void 0)return J0b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return J0b=a},{mode:1});var L0b;var M0b;var N0b=function(){var a=_.P.apply(this,arguments)||this;a.images=[];a.selectedImageIndex=0;return a};
_.z(N0b,_.P);_.f=N0b.prototype;
_.f.ready=function(){_.ss(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.ss(this.JSC$12941_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.ss(this.JSC$12941_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.ss(this.JSC$12941_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.f.onThumbnailClick=function(a){if(a=a.event_.detail)this.selectedImageIndex=this.images.indexOf(a)};
_.f.updateImageThumbnails=function(a){a=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:a.event_.detail});this.images.splice(this.selectedImageIndex,1,a);this.images=[].concat(_.Be(this.images))};
_.f.cancelImageRepositions=function(){this.selectedImageIndex=0;_.go(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.f.saveImageRepositions=function(){this.selectedImageIndex=0;_.go(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.Vm.Object.defineProperties(N0b.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var a=this;return(this.images||[]).map(function(b,c){return{image:b,selected:c===a.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
var GL=N0b;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],GL.prototype,"ytRendererstamperBehavior",void 0);_.U([_.gr("ytd-backstage-image-preview-renderer"),_.W("design:type",Object)],GL.prototype,"JSC$12941_imagePreviewContainer",void 0);_.U([_.gr(".thumbnail-images-container"),_.W("design:type",HTMLElement)],GL.prototype,"thumbnailImagesContainer",void 0);_.U([_.O(),_.W("design:type",Array)],GL.prototype,"images",void 0);
_.U([_.O(),_.W("design:type",Object)],GL.prototype,"repositionInstructions",void 0);_.U([_.O(),_.W("design:type",Object)],GL.prototype,"selectedImageIndex",void 0);_.U([_.K("images","selectedImageIndex"),_.W("design:type",Array),_.W("design:paramtypes",[])],GL.prototype,"thumbnailRendererDatas",null);_.U([_.K("images","selectedImageIndex"),_.W("design:type",Object),_.W("design:paramtypes",[])],GL.prototype,"selectedImageData",null);
GL=_.U([_.Q({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],GL);
_.S(GL,"ytd-backstage-multi-image-reposition-renderer",function(){if(M0b!==void 0)return M0b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return M0b=a},{mode:1});var HL=function(a,b){_.Dz.call(this);this.uploadUrl=a;this.channelId=b;this.imagesUploadData=[]};
_.z(HL,_.Dz);HL.prototype.getAllUploadStatuses=function(){var a=this,b,c,d;return _.l(function(e){if(e.nextAddress==1)return _.p(e,O0b(a),2);b=e.yieldResult;c=b.get("succeed");d=b.get("failed");return e.return(c.concat(d))})};
var Q0b=function(a){var b,c;return _.l(function(d){if(d.nextAddress==1)return _.p(d,O0b(a),2);b=d.yieldResult;c=b.get("failed");c.length>0&&P0b(a,c);return d.return(a.getAllUploadStatuses())})},O0b=function(a){var b,c,d,e,g,k,m;
return _.l(function(n){if(n.nextAddress==1)return b=new Map,_.p(n,Promise.allSettled(a.imagesUploadData.map(function(r){return r.uploadPromise})),2);
c=n.yieldResult;d=[];e=_.h(c);for(g=e.next();!g.done;g=e.next())k=g.value,k.status==="fulfilled"&&d.push(k.value);m=a.imagesUploadData.map(function(r){return r.image}).filter(function(r){return d.every(function(t){return t.id!==r.id})});
b.set("succeed",d);b.set("failed",m);return n.return(b)})},P0b=function(a,b){b=_.h(b);
for(var c=b.next();!c.done;c=b.next()){var d=a;c=c.value;R0b(d,c.id)>=0&&d.cancel(c.id);var e=new S0b(c),g=_.oyb(d.uploadUrl,{"X-YouTube-ChannelId":d.channelId},c.imageBlob);e.transfer=g;e.uploadPromise=T0b(g,c);d.imagesUploadData.push(e);g.run()}};
HL.prototype.cancel=function(a){var b=R0b(this,a);b!==-1&&((b=this.imagesUploadData[b].transfer)&&b.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(c){return c.image.id!==a}))};
var R0b=function(a,b){return a.imagesUploadData.findIndex(function(c){return c.image.id===b})},T0b=function(a,b){return new Promise(function(c,d){a.listen("l",function(){var e=a.getResponseText();
e?(e=JSON.parse(e).encryptedBlobId,b.encryptedBlobId=e,c(b)):d("upload failed")});
a.listen("n",function(){d("upload failed")})})},S0b=function(a){this.image=a};var h_a=function(a,b,c,d,e){this.id=a;this.imageBlob=b;this.localImageSrc=c;this.naturalWidth=d;this.naturalHeight=e;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 U0b=[".jpeg",".jpg",".png"],V0b=function(){var a=_.P.apply(this,arguments)||this;a.showImagesPreview=!1;a.pollOptions=[];a.errorMessage="";a.optionPlaceholderText="";a.optionDefaultText="";a.JSC$12952_imageId=0;a.maxFileSizeMb=0;a.maxAspectRatio=0;a.invalidFileSizeError="";a.invalidAspectRatioError="";a.invalidFileTypeError="";a.imageSelector=new tE(null,"single_file",U0b);return a};
_.z(V0b,_.P);_.f=V0b.prototype;_.f.ready=function(){_.ss(this.imageSelector,"j",this.onImageSelect,!1,this);_.ss(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.ss(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.f.dataChanged=function(){var a,b,c=_.y((a=this.data)==null?void 0:(b=a.cellTemplate)==null?void 0:b.onEmptyCellTap,gDb);if(c&&c.uploadUrl&&c.channelId){var d;this.maxFileSizeMb=((d=c.imageValidationInfo)==null?void 0:d.maxFileSizeMb)||0;var e;this.maxAspectRatio=((e=c.imageValidationInfo)==null?void 0:e.allowedMaxAspectRatio)||0;var g;this.invalidFileSizeError=this.getSimpleString((g=this.data)==null?void 0:g.invalidFileSizeError);var k;this.invalidAspectRatioError=this.getSimpleString((k=this.data)==
null?void 0:k.invalidAspectRatioError);var m;this.invalidFileTypeError=this.getSimpleString((m=this.data)==null?void 0:m.invalidFileTypeError);this.uploadManager=new HL(c.uploadUrl,c.channelId)}};
_.f.onEditorInfoChange=function(){this.optionPlaceholderText=_.Vp(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.Vp(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.f.observeAddImageError=function(){this.errorMessage!==""&&_.go(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.f.onPollOptionsChange=function(){for(var a=!1,b=[],c=0;c<this.pollOptions.length;c++){var d=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(c+1);this.pollOptions[c].placeholderText!==d?(a=!0,b.push(Object.assign({},this.pollOptions[c],{placeholderText:d}))):b.push(this.pollOptions[c])}a&&(this.pollOptions=b);this.isValid()?_.go(this.hostElement,"yt-commentbox-post-enable"):_.go(this.hostElement,"yt-commentbox-post-disable")};
_.f.createPollOptions=function(a){var b=[],c;a=(c=a==null?void 0:a.minPollOptions)!=null?c:0;for(c=0;c<a;c++)b.push(this.createPollOption());return b};
_.f.onImageSelect=function(a){var b=this,c,d,e,g,k,m;return _.l(function(n){if(n.nextAddress==1){if(b.selectedImageIndex===void 0)return n.jumpTo(0);c=a.files[0];b.errorMessage="";d=b.validateImage(c);if(d!=="")return b.errorMessage=d,n.return();e=new YE(b.maxAspectRatio,!1,!0);return _.p(n,e.transform(c),3)}if(n.nextAddress!=4)return g=n.yieldResult,g.transformedData?g.invalidAspectRatio?(b.errorMessage=b.invalidAspectRatioError,n.return()):_.p(n,i_a(b.JSC$12952_imageId,a.files[0],g.transformedData),
4):(b.errorMessage=b.invalidFileTypeError,n.return());k=n.yieldResult;b.JSC$12952_imageId++;P0b(b.uploadManager,[k]);m=Object.assign({},b.pollOptions[b.selectedImageIndex],{image:k});b.pollOptions.splice(b.selectedImageIndex,1,m);b.refreshPollOptions();_.go(b.hostElement,"yt-backstage-poll-image-select");_.se(n)})};
_.f.validateImage=function(a){return a.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.f.refreshPollOptions=function(){this.pollOptions=[].concat(_.Be(this.pollOptions))};
_.f.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.Be(this.pollOptions),[this.createPollOption()]))};
_.f.onRemovePollOption=function(a){var b=this.pollOptions[a.model.index];b&&b.image&&this.uploadManager.cancel(b.image.id);this.pollOptions.splice(a.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.go(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.f.onTextInput=function(){this.refreshPollOptions()};
_.f.onImageButtonClick=function(a){this.selectedImageIndex=a.model.index;this.imageSelector.click()};
_.f.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.f.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.f.saveImageRepositions=function(a){a=a.event_.detail;for(var b=0,c=[],d=_.h(this.pollOptions),e=d.next();!e.done;e=d.next())e=e.value,e.image!==void 0?(e=Object.assign({},e,{image:a[b]}),c.push(e),b++):c.push(e);this.showImagesPreview=!1;this.pollOptions=[].concat(_.Be(c))};
_.f.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 a=0,b=_.h(this.pollOptions),c=b.next();!c.done;c=b.next())if(c=c.value,c.optionText.trim()!==""||c.image!==void 0){if(!c.image||this.hasCustomOptionText&&c.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;a++}return a>=Number(this.editorInfo.minPollOptions)};
_.f.getAllUploadStatuses=function(){var a=this,b,c,d,e;return _.l(function(g){if(g.nextAddress==1)return _.p(g,a.uploadManager.getAllUploadStatuses(),2);b=g.yieldResult;c=_.h(b);for(d=c.next();!d.done;d=c.next())if(e=d.value,e.encryptedBlobId===void 0)return g.return(Q0b(a.uploadManager));return g.return(b)})};
_.f.getPostCreateOptions=function(){for(var a=[],b=_.h(this.pollOptions),c=b.next();!c.done;c=b.next())c=c.value,c.image!==void 0&&a.push({text:this.hasCustomOptionText?c.optionText:c.placeholderText,image:c.image});return a};
_.f.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.f.createButtonRenderer=function(a,b){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:a,accessibilityData:{accessibilityData:{label:this.getSimpleString(a)}},isDisabled:b}};
_.f.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.f.computeThumbnailRendererData=function(a){return a?{image:a,selected:!1}:void 0};
_.f.getSimpleString=function(a){return _.Vp(a)};
_.f.updateOptionTextFromBinding=function(a){if(a.target){var b=Array.from(_.E(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(a.target);if(b>=0){var c;this.pollOptions[b].optionText=(c=a.detail.value)!=null?c:""}}};
_.Vm.Object.defineProperties(V0b.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var a,b;return this.pollOptions.length<((b=(a=this.editorInfo)==null?void 0:a.maxPollOptions)!=null?b:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(a){return a.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(a){return a.image}).map(function(a){return a.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(a){return a.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var a,b=(a=this.data)==null?void 0:a.addOptionButtonText;return b?this.createButtonRenderer(b,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var a,b=(a=this.data)==null?void 0:a.repositionImagesButtonLabel;return b?this.createButtonRenderer(b,!this.hasImages):void 0}}});
var IL=V0b;IL.prototype.onPollOptionsChange=IL.prototype.onPollOptionsChange;IL.prototype.observeAddImageError=IL.prototype.observeAddImageError;IL.prototype.onEditorInfoChange=IL.prototype.onEditorInfoChange;IL.prototype.dataChanged=IL.prototype.dataChanged;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],IL.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.gr("ytd-backstage-multi-image-reposition-renderer"),_.W("design:type",Object)],IL.prototype,"imageRepositionContainer",void 0);_.U([_.O(),_.W("design:type",Object)],IL.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],IL.prototype,"editorInfo",void 0);_.U([_.O(),_.W("design:type",HL)],IL.prototype,"uploadManager",void 0);_.U([_.O(),_.W("design:type",Object)],IL.prototype,"showImagesPreview",void 0);_.U([_.O(),_.W("design:type",Array)],IL.prototype,"pollOptions",void 0);
_.U([_.O(),_.W("design:type",Object)],IL.prototype,"errorMessage",void 0);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],IL.prototype,"dataChanged",null);_.U([_.kr("editorInfo"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],IL.prototype,"onEditorInfoChange",null);_.U([_.N("errorMessage"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],IL.prototype,"observeAddImageError",null);
_.U([_.kr("pollOptions"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],IL.prototype,"onPollOptionsChange",null);_.U([_.K("pollOptions","editorInfo"),_.W("design:type",Object),_.W("design:paramtypes",[])],IL.prototype,"isAllowedToAddOption",null);_.U([_.K("pollOptions"),_.W("design:type",Object),_.W("design:paramtypes",[])],IL.prototype,"hasImages",null);
_.U([_.K("pollOptions"),_.W("design:type",Object),_.W("design:paramtypes",[])],IL.prototype,"imagesToReposition",null);_.U([_.K("pollOptions"),_.W("design:type",Object),_.W("design:paramtypes",[])],IL.prototype,"hasCustomOptionText",null);_.U([_.K("data","isAllowedToAddOption"),_.W("design:type",Object),_.W("design:paramtypes",[])],IL.prototype,"addOptionButton",null);_.U([_.K("data","hasImages"),_.W("design:type",Object),_.W("design:paramtypes",[])],IL.prototype,"repositionImagesButton",null);
IL=_.U([_.Q({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],IL);
_.S(IL,"ytd-backstage-image-poll-editor-renderer",function(){if(L0b!==void 0)return L0b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return L0b=a},{mode:2});var W0b;var X0b={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 Y0b;var Z0b;var $0b=function(){var a=_.P.apply(this,arguments)||this;a.a11yConfig=X0b;a.imageDisplayOffsetTop=0;a.imageDisplayOffsetLeft=0;a.pickerDisplayOffsetTop=0;a.pickerDisplayOffsetLeft=0;a.cropCoordinatesSaved=!1;a.previewSize=0;a.startPicker=!1;a.repositionOptional=!1;return a};
_.z($0b,_.P);_.f=$0b.prototype;_.f.created=function(){_.TD.requestAvailability()};
_.f.ready=function(){};
_.f.onArrowKeysDown=function(a){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){a.detail.keyboardEvent.preventDefault();var b=0,c=0,d="";switch(a.detail.keyboardEvent.key){case "ArrowUp":j_a(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?d=this.a11yConfig.reachBottomOfImage:b=this.imageHeight*.05*-1;break;case "ArrowDown":j_a(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?d=this.a11yConfig.reachTopOfImage:
b=this.imageHeight*.05;break;case "ArrowLeft":j_a(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?d=this.a11yConfig.reachRightOfImage:c=this.imageWidth*.05*-1;break;case "ArrowRight":j_a(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?d=this.a11yConfig.reachLeftOfImage:c=this.imageWidth*.05}d&&_.to(d)&&_.go(this.hostElement,"iron-announce",{text:_.to(d)});if(c||b)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+b)),a=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),a=_.to(this.a11yConfig.imageVerticalPosition,{x_percent:""+a,y_percent:""+(100-a)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+c)),a=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),a=_.to(this.a11yConfig.imageHorizontalPosition,{x_percent:""+a,y_percent:""+(100-a)})),a&&_.go(this.hostElement,"iron-announce",{text:a})}};
_.f.getPreviewPosition=function(a,b,c,d){return Math.round(100*(a+b*.5-c)/d)};
_.f.displayImage=function(){var a=this.JSC$12965_pickerContainer.getBoundingClientRect().width,b=this.JSC$12965_pickerContainer.getBoundingClientRect().height,c=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),d=this.JSC$12965_imageInBackground.naturalWidth,e=this.JSC$12965_imageInBackground.naturalHeight;this.displayScale=Math.max(c/d,c/e);this.imageWidth=d*this.displayScale;this.imageHeight=e*this.displayScale;this.pickerDisplayOffsetLeft=(a-c)/2;this.pickerDisplayOffsetTop=
(b-c)/2;this.imageDisplayOffsetLeft=e>d?this.pickerDisplayOffsetLeft:(a-this.imageWidth)/2;this.imageDisplayOffsetTop=d>e?this.pickerDisplayOffsetTop:(b-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.f.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$12965_imageInBackground.src=this.imageData.toString(),this.JSC$12965_imageInPicker.src=this.imageData.toString(),this.JSC$12965_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.f.getSignedPosition=function(a,b,c){return b==="X"&&_.Ei("HTML_DIR")==="rtl"?c==="-"?a+"px":a*-1+"px":c==="-"?a*-1+"px":a+"px"};
_.f.pickerMove=function(a){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var b=this.pickerOffsetX-a.clientX,c=this.pickerOffsetY-a.clientY;this.pickerOffsetX=a.clientX;this.pickerOffsetY=a.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
c)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-b))}};
_.f.pickerMoveStart=function(a){this.startPicker=!0;this.pickerOffsetX=a.clientX;this.pickerOffsetY=a.clientY};
_.f.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.f.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.go(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.f.getPreviewOffset=function(a,b,c,d){return b&&a&&c?(d==="X"&&_.Ei("HTML_DIR")==="rtl"?c/b*a:c/b*a*-1)+"px":"0px"};
_.f.getSimpleText=function(a){return a?_.Vp(a):""};
_.f.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var a=this.cropOffsetTop/this.imageHeight,b=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,c=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,d=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.E(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.go(this.hostElement,"yt-img-crop-coordinates-update",{top:a,right:b,bottom:c,left:d})}};
_.Vm.Object.defineProperties($0b.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var a=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.to(this.a11yConfig.imageVerticalPosition,{x_percent:""+a,y_percent:""+(100-a)})+"\n"+_.to(this.a11yConfig.verticalRepositionInstruction)}a=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.to(this.a11yConfig.imageHorizontalPosition,{x_percent:""+a,y_percent:""+(100-a)})+"\n"+_.to(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 a,b=(a=this.learnMore.runs[0])==null?void 0:a.navigationEndpoint,c;return((c=_.y(b,_.Ml))==null?void 0:c.url)||void 0}}}});
var JL=$0b;JL.prototype.onImageDataChange=JL.prototype.onImageDataChange;_.U([_.O(),_.W("design:type",Object)],JL.prototype,"imageData",void 0);_.U([_.O(),_.W("design:type",Object)],JL.prototype,"instruction",void 0);_.U([_.O(),_.W("design:type",Object)],JL.prototype,"a11yConfig",void 0);_.U([_.O(),_.W("design:type",Number)],JL.prototype,"imageWidth",void 0);_.U([_.O(),_.W("design:type",Number)],JL.prototype,"imageHeight",void 0);_.U([_.O(),_.W("design:type",Number)],JL.prototype,"displayScale",void 0);
_.U([_.O(),_.W("design:type",Object)],JL.prototype,"imageDisplayOffsetTop",void 0);_.U([_.O(),_.W("design:type",Object)],JL.prototype,"imageDisplayOffsetLeft",void 0);_.U([_.O(),_.W("design:type",Object)],JL.prototype,"pickerDisplayOffsetTop",void 0);_.U([_.O(),_.W("design:type",Object)],JL.prototype,"pickerDisplayOffsetLeft",void 0);_.U([_.O(),_.W("design:type",Object)],JL.prototype,"cropCoordinatesSaved",void 0);_.U([_.O(),_.W("design:type",Object)],JL.prototype,"previewSize",void 0);
_.U([_.O(),_.W("design:type",Object)],JL.prototype,"startPicker",void 0);_.U([_.O(),_.W("design:type",Number)],JL.prototype,"pickerOffsetX",void 0);_.U([_.O(),_.W("design:type",Number)],JL.prototype,"pickerOffsetY",void 0);_.U([_.O(),_.W("design:type",Object)],JL.prototype,"repositionOptional",void 0);_.U([_.gr("#picker-container"),_.W("design:type",HTMLElement)],JL.prototype,"JSC$12965_pickerContainer",void 0);_.U([_.gr("#picker"),_.W("design:type",HTMLElement)],JL.prototype,"picker",void 0);
_.U([_.gr("#image-in-picker-background"),_.W("design:type",HTMLImageElement)],JL.prototype,"JSC$12965_imageInBackground",void 0);_.U([_.gr("#image-in-picker"),_.W("design:type",HTMLImageElement)],JL.prototype,"JSC$12965_imageInPicker",void 0);_.U([_.gr("#image-in-preview-clipper"),_.W("design:type",HTMLImageElement)],JL.prototype,"JSC$12965_imageInPreviewClipper",void 0);_.U([_.gr("#full-image-as-preview"),_.W("design:type",HTMLImageElement)],JL.prototype,"imageAsPreview",void 0);
_.U([_.K("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.W("design:type",String),_.W("design:paramtypes",[])],JL.prototype,"altLabelForImage",null);_.U([_.K("imageHeight","imageWidth"),_.W("design:type",Number),_.W("design:paramtypes",[])],JL.prototype,"pickerSize",null);_.U([_.K("imageHeight","imageWidth"),_.W("design:type",Object),_.W("design:paramtypes",[])],JL.prototype,"imageOrientationStyle",null);
_.U([_.K("instruction.previewInstruction.editButtonLabel"),_.W("design:type",Object),_.W("design:paramtypes",[])],JL.prototype,"editButton",null);_.U([_.K("instruction.editInstruction.saveButtonLabel"),_.W("design:type",Object),_.W("design:paramtypes",[])],JL.prototype,"saveButton",null);_.U([_.K("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.W("design:type",Number),_.W("design:paramtypes",[])],JL.prototype,"cropOffsetTop",null);
_.U([_.K("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.W("design:type",Number),_.W("design:paramtypes",[])],JL.prototype,"cropOffsetLeft",null);_.U([_.K("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.W("design:type",String),_.W("design:paramtypes",[])],JL.prototype,"pickerBackgroundStyle",null);_.U([_.K("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.W("design:type",String),_.W("design:paramtypes",[])],JL.prototype,"pickerDisplayStyle",null);
_.U([_.K("cropOffsetLeft","cropOffsetTop"),_.W("design:type",String),_.W("design:paramtypes",[])],JL.prototype,"imageInPickerStyle",null);_.U([_.K("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.W("design:type",String),_.W("design:paramtypes",[])],JL.prototype,"previewClipperStyle",null);_.U([_.N("imageData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],JL.prototype,"onImageDataChange",null);
_.U([_.K("cropCoordinatesSaved"),_.W("design:type",String),_.W("design:paramtypes",[])],JL.prototype,"pickerModeStyle",null);_.U([_.K("instruction.editInstruction.learnMore"),_.W("design:type",Object),_.W("design:paramtypes",[])],JL.prototype,"learnMore",null);_.U([_.K("learnMore"),_.W("design:type",Object),_.W("design:paramtypes",[])],JL.prototype,"learnMoreUrl",null);JL=_.U([_.ur({is:"yt-img-crop-picker",disableElementRegistration:!0})],JL);
_.S(JL,"yt-img-crop-picker",function(){if(Z0b===void 0){var a=document.createElement("template");_.B(a,'\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>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;Y0b===void 0&&(Y0b=document.createElement("template"));var d=Y0b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Z0b=a}a=Z0b;return a},{mode:2});var a1b=function(){var a=_.P.apply(this,arguments)||this;a.errorMessage="";a.hasPreview=!1;a.isBackstagePost=!1;a.dismissButtonOverrides={size:"XS"};return a};
_.z(a1b,_.P);_.f=a1b.prototype;_.f.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"}}}};
_.f.detached=function(){this.removeOverlay()};
_.f.setPreview=function(a){_.E(this.hostElement).querySelector("#preview-picker").imageData=a;this.hasPreview=!0;_.go(this.hostElement,"yt-backstage-image-select-preview")};
_.f.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var a=_.E(this.hostElement).querySelector("#dropzone");a.classList.remove("dragover");a.classList.remove("error");_.go(this.hostElement,"yt-backstage-image-select-cancel")};
_.f.setupOverlay=function(){var a=this.imageUploadEndpoint;this.removeOverlay();if(a&&a.imageValidationInfo){var b=_.E(this.hostElement).querySelector("#dropzone"),c=_.E(this.hostElement).querySelector("#select");this.overlay=new $E(a.uploadUrl,a.channelId,a.imageValidationInfo.maxFileSizeMb,a.imageValidationInfo.allowedMaxAspectRatio,b,c,!0);_.ss(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.ss(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.ss(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.ss(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.ss(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.f.removeOverlay=function(){this.overlay&&(_.Cz(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.Cz(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.Cz(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.Cz(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.Cz(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.f.onDragOver=function(a){var b=_.E(this.hostElement).querySelector("#dropzone");_.$q(b,"dragover",a.value)};
_.f.onPreview=function(a){this.setPreview(a.value)};
_.f.onImageError=function(a){if(a.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var b;a=(b=this.data)==null?void 0:b.fileSizeError}else if(a.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var c;a=(c=this.data)==null?void 0:c.invalidError}else if(a.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var d;a=(d=this.data)==null?void 0:d.invalidAspectRatioError}else return;this.errorMessage=_.Vp(a);_.E(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.f.onImageAlert=function(a){this.onImageError(a)};
_.f.uploadPromise=function(){var a=this,b=this.overlay&&this.overlay.uploadPromise();if(b)return b.catch(function(){throw Error(a.data?_.Vp(a.data.uploadFailureError):"");})};
_.Vm.Object.defineProperties(a1b.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var a,b;if((a=this.data)==null?0:(b=a.icon)==null?0:b.iconType)return _.fs(this.data.icon.iconType)}}});
var KL=a1b;KL.prototype.setupOverlay=KL.prototype.setupOverlay;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],KL.prototype,"rendererStamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],KL.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],KL.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],KL.prototype,"imageUploadEndpoint",void 0);_.U([_.O(),_.W("design:type",Object)],KL.prototype,"errorMessage",void 0);
_.U([_.O(),_.W("design:type",$E)],KL.prototype,"overlay",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],KL.prototype,"hasPreview",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],KL.prototype,"isBackstagePost",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],KL.prototype,"selectionCancel",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],KL.prototype,"previewCancel",null);
_.U([_.K("data.icon.iconType"),_.W("design:type",Object),_.W("design:paramtypes",[])],KL.prototype,"icon",null);_.U([_.O(),_.W("design:type",Object)],KL.prototype,"dismissButtonOverrides",void 0);_.U([_.N("imageUploadEndpoint"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],KL.prototype,"setupOverlay",null);KL=_.U([_.Q({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],KL);
_.S(KL,"ytd-backstage-image-select-renderer",function(){if(W0b!==void 0)return W0b;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return W0b=a},{mode:1});var b1b={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 c1b;var d1b=function(){var a=_.P.apply(this,arguments)||this;a.a11yConfig=b1b;a.imageDisplayOffsetTop=0;a.imageDisplayOffsetLeft=0;a.pickerDisplayOffsetTop=0;a.pickerDisplayOffsetLeft=0;a.showPreviewContainer=!0;a.startPicker=!1;a.repositionOptional=!1;a.editOnlyMode=!1;a.savedImageDisplayOffsetTop=0;a.savedImageDisplayOffsetLeft=0;return a};
_.z(d1b,_.P);_.f=d1b.prototype;_.f.created=function(){_.TD.requestAvailability()};
_.f.ready=function(){};
_.f.onArrowKeysDown=function(a){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){a.detail.keyboardEvent.preventDefault();var b=0,c=0,d="";switch(a.detail.keyboardEvent.key){case "ArrowUp":k_a(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?d=this.a11yConfig.reachBottomOfImage:b=this.imageHeight*.05*-1;break;case "ArrowDown":k_a(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?d=this.a11yConfig.reachTopOfImage:
b=this.imageHeight*.05;break;case "ArrowLeft":k_a(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?d=this.a11yConfig.reachRightOfImage:c=this.imageWidth*.05*-1;break;case "ArrowRight":k_a(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?d=this.a11yConfig.reachLeftOfImage:c=this.imageWidth*.05}d&&_.to(d)&&_.go(this.hostElement,"iron-announce",{text:_.to(d)});if(c||b)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+b)),a=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),a=_.to(this.a11yConfig.imageVerticalPosition,{x_percent:""+a,y_percent:""+(100-a)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+c)),a=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),a=_.to(this.a11yConfig.imageHorizontalPosition,{x_percent:""+a,y_percent:""+(100-a)})),a&&_.go(this.hostElement,"iron-announce",{text:a})}};
_.f.getPreviewPosition=function(a,b,c,d){return Math.round(100*(a+b*.5-c)/d)};
_.f.calculateDisplayPosition=function(){var a=this.imageData.naturalWidth,b=this.imageData.naturalHeight;this.displayScale=Math.max(200/a,200/b);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var c=a*this.displayScale*this.imageData.previewCoordinates.left,d=b*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=b>a?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-c;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=a>b?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-d;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=a*this.displayScale;this.imageHeight=b*this.displayScale};
_.f.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.f.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.f.getSignedPosition=function(a,b,c){return b==="X"&&_.Ei("HTML_DIR")==="rtl"?c==="-"?a+"px":a*-1+"px":c==="-"?a*-1+"px":a+"px"};
_.f.pickerMove=function(a){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var b=this.pickerOffsetX-a.clientX,c=this.pickerOffsetY-a.clientY;this.pickerOffsetX=a.clientX;this.pickerOffsetY=a.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
c)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-b))}};
_.f.pickerMoveStart=function(a){this.startPicker=!0;this.pickerOffsetX=a.clientX;this.pickerOffsetY=a.clientY};
_.f.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var a=this.generateCropPreview();a&&_.go(this.hostElement,"ytd-backstage-image-preview-coordinates-update",a)};
_.f.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.go(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.f.deleteImage=function(){_.go(this.hostElement,"ytd-backstage-image-preview-delete")};
_.f.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.f.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var a=this.generateCropPreview();a&&_.go(this.hostElement,"ytd-backstage-image-preview-coordinates-save",a)};
_.f.getPreviewOffset=function(a,b,c){return b&&a?(c==="X"&&_.Ei("HTML_DIR")==="rtl"?300/b*a:300/b*a*-1)+"px":"0px"};
_.f.getSimpleText=function(a){return a?_.Vp(a):""};
_.f.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}};
_.Vm.Object.defineProperties(d1b.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var a=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.to(this.a11yConfig.imageVerticalPosition,{x_percent:""+a,y_percent:""+(100-a)})+"\n"+_.to(this.a11yConfig.verticalRepositionInstruction)}a=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.to(this.a11yConfig.imageHorizontalPosition,{x_percent:""+a,y_percent:""+(100-a)})+"\n"+_.to(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 a,b,c=(a=this.instruction)==null?void 0:(b=a.previewInstruction)==null?void 0:b.editButtonLabel;return c?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:c,accessibilityData:{accessibilityData:{label:this.getSimpleText(c)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d,e=this.editOnlyMode?(a=this.instruction)==null?void 0:(b=a.editInstruction)==null?void 0:b.saveImagesButtonLabel:(c=this.instruction)==null?void 0:(d=c.editInstruction)==null?void 0:d.saveButtonLabel;return e?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:e,accessibilityData:{accessibilityData:{label:this.getSimpleText(e)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var a,b,c=(a=this.instruction)==null?void 0:(b=a.previewInstruction)==null?void 0:b.deleteButtonLabel;return c?{size:"SIZE_SMALL",text:c,accessibilityData:{accessibilityData:{label:this.getSimpleText(c)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var a,b,c=(a=this.instruction)==null?void 0:(b=a.editInstruction)==null?void 0:b.cancelButtonLabel;a=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return c?{style:a,size:"SIZE_SMALL",text:c,accessibilityData:{accessibilityData:{label:this.getSimpleText(c)}}}:void 0}},
cropOffsetTop:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetTop===void 0||this.pickerDisplayOffsetTop===void 0?0:this.pickerDisplayOffsetTop-this.imageDisplayOffsetTop}},
cropOffsetLeft:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetLeft===void 0||this.pickerDisplayOffsetLeft===void 0?0:this.pickerDisplayOffsetLeft-this.imageDisplayOffsetLeft}},
pickerBackgroundStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.imageDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.imageDisplayOffsetTop,"Y",void 0)+");"}},
pickerDisplayStyle:{configurable:!0,enumerable:!0,get:function(){return"width:"+this.pickerSize+"px;height:"+this.pickerSize+"px;transform:translateX("+this.getSignedPosition(this.pickerDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.pickerDisplayOffsetTop,"Y",void 0)+");"}},
imageInPickerStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.cropOffsetLeft,"X","-")+") translateY("+this.getSignedPosition(this.cropOffsetTop,"Y","-")+");"}},
previewClipperStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getPreviewOffset(this.cropOffsetLeft,this.pickerSize,"X")+") translateY("+this.getPreviewOffset(this.cropOffsetTop,this.pickerSize,"Y")+");"}},
pickerModeStyle:{configurable:!0,enumerable:!0,get:function(){return this.showPreviewContainer?"preview":"edit"}}});
var LL=d1b;LL.prototype.onEditOnlyModeUpdate=LL.prototype.onEditOnlyModeUpdate;LL.prototype.onImageChange=LL.prototype.onImageChange;_.U([_.O(),_.W("design:type",h_a)],LL.prototype,"imageData",void 0);_.U([_.O(),_.W("design:type",Object)],LL.prototype,"instruction",void 0);_.U([_.O(),_.W("design:type",Object)],LL.prototype,"a11yConfig",void 0);_.U([_.O(),_.W("design:type",Number)],LL.prototype,"imageWidth",void 0);_.U([_.O(),_.W("design:type",Number)],LL.prototype,"imageHeight",void 0);
_.U([_.O(),_.W("design:type",Number)],LL.prototype,"displayScale",void 0);_.U([_.O(),_.W("design:type",Object)],LL.prototype,"imageDisplayOffsetTop",void 0);_.U([_.O(),_.W("design:type",Object)],LL.prototype,"imageDisplayOffsetLeft",void 0);_.U([_.O(),_.W("design:type",Object)],LL.prototype,"pickerDisplayOffsetTop",void 0);_.U([_.O(),_.W("design:type",Object)],LL.prototype,"pickerDisplayOffsetLeft",void 0);_.U([_.O(),_.W("design:type",Object)],LL.prototype,"showPreviewContainer",void 0);
_.U([_.O(),_.W("design:type",Object)],LL.prototype,"startPicker",void 0);_.U([_.O(),_.W("design:type",Number)],LL.prototype,"pickerOffsetX",void 0);_.U([_.O(),_.W("design:type",Number)],LL.prototype,"pickerOffsetY",void 0);_.U([_.O(),_.W("design:type",Object)],LL.prototype,"repositionOptional",void 0);_.U([_.O(),_.W("design:type",Object)],LL.prototype,"editOnlyMode",void 0);_.U([_.gr("#picker-container"),_.W("design:type",HTMLElement)],LL.prototype,"JSC$12978_pickerContainer",void 0);
_.U([_.gr("#picker"),_.W("design:type",HTMLElement)],LL.prototype,"picker",void 0);_.U([_.gr("#preview-clipper"),_.W("design:type",HTMLElement)],LL.prototype,"previewClipper",void 0);_.U([_.gr("#image-in-picker-background"),_.W("design:type",HTMLImageElement)],LL.prototype,"JSC$12978_imageInBackground",void 0);_.U([_.gr("#image-in-picker"),_.W("design:type",HTMLImageElement)],LL.prototype,"JSC$12978_imageInPicker",void 0);
_.U([_.gr("#image-in-preview-clipper"),_.W("design:type",HTMLImageElement)],LL.prototype,"JSC$12978_imageInPreviewClipper",void 0);_.U([_.K("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.W("design:type",String),_.W("design:paramtypes",[])],LL.prototype,"altLabelForImage",null);_.U([_.K("imageHeight","imageWidth"),_.W("design:type",Number),_.W("design:paramtypes",[])],LL.prototype,"pickerSize",null);
_.U([_.K("imageHeight","imageWidth"),_.W("design:type",Object),_.W("design:paramtypes",[])],LL.prototype,"imageOrientationStyle",null);_.U([_.K("instruction"),_.W("design:type",Object),_.W("design:paramtypes",[])],LL.prototype,"editButton",null);_.U([_.K("instruction","editOnlyMode"),_.W("design:type",Object),_.W("design:paramtypes",[])],LL.prototype,"saveButton",null);_.U([_.K("instruction"),_.W("design:type",Object),_.W("design:paramtypes",[])],LL.prototype,"deleteButton",null);
_.U([_.K("instruction","editOnlyMode"),_.W("design:type",Object),_.W("design:paramtypes",[])],LL.prototype,"cancelButton",null);_.U([_.K("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.W("design:type",Number),_.W("design:paramtypes",[])],LL.prototype,"cropOffsetTop",null);_.U([_.K("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.W("design:type",Number),_.W("design:paramtypes",[])],LL.prototype,"cropOffsetLeft",null);
_.U([_.K("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.W("design:type",String),_.W("design:paramtypes",[])],LL.prototype,"pickerBackgroundStyle",null);_.U([_.K("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.W("design:type",String),_.W("design:paramtypes",[])],LL.prototype,"pickerDisplayStyle",null);_.U([_.K("cropOffsetLeft","cropOffsetTop"),_.W("design:type",String),_.W("design:paramtypes",[])],LL.prototype,"imageInPickerStyle",null);
_.U([_.K("cropOffsetLeft","cropOffsetTop","pickerSize"),_.W("design:type",String),_.W("design:paramtypes",[])],LL.prototype,"previewClipperStyle",null);_.U([_.kr("imageData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],LL.prototype,"onImageChange",null);_.U([_.kr("editOnlyMode"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],LL.prototype,"onEditOnlyModeUpdate",null);
_.U([_.K("showPreviewContainer"),_.W("design:type",String),_.W("design:paramtypes",[])],LL.prototype,"pickerModeStyle",null);LL=_.U([_.Q({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],LL);
_.S(LL,"ytd-backstage-image-preview-renderer",function(){if(c1b!==void 0)return c1b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return c1b=a},{mode:1});var e1b;var f1b;var g1b=function(){var a=_.P.apply(this,arguments)||this;a.selected=!1;return a};
_.z(g1b,_.P);_.f=g1b.prototype;_.f.computeSelected=function(a){return a==null?void 0:a.selected};
_.f.computeTransform=function(a,b,c){var d,e,g=(e=(d=this.imageContainer)==null?void 0:d.getBoundingClientRect())!=null?e:{width:0,height:0};d=Math.max(g.width/b,g.height/c);c=c*d*a.top;return"translateX("+this.getSignedPosition(b*d*a.left,"X","-")+") translateY("+this.getSignedPosition(c,"Y","-")+")"};
_.f.getSignedPosition=function(a,b,c){return b==="X"&&_.Ei("HTML_DIR")==="rtl"?c==="-"?a+"px":a*-1+"px":c==="-"?a*-1+"px":a+"px"};
_.f.onClick=function(){var a;_.go(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(a=this.data)==null?void 0:a.image)};
_.f.onKeyPress=function(a){if(a.keyCode===13)this.onClick()};
_.Vm.Object.defineProperties(g1b.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.data)==null?void 0:(b=a.image)==null?void 0:b.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)!=null&&a.image){var b;a=(b=this.data)==null?void 0:b.image;return a.previewCoordinates.top!==0||a.previewCoordinates.left!==0?(b=this.computeTransform(a.previewCoordinates,a.naturalWidth,a.naturalHeight),a.naturalHeight>=a.naturalWidth?"width:inherit;transform:"+b+";":"height:inherit;transform:"+b+";"):a.naturalHeight>=a.naturalWidth?"width:inherit;":"height:inherit;"}}}});
var ML=g1b;ML.prototype.onKeyPress=ML.prototype.onKeyPress;_.U([_.gr(".image-container"),_.W("design:type",HTMLElement)],ML.prototype,"imageContainer",void 0);_.U([_.O(),_.W("design:type",Object)],ML.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.W("design:type",Object)],ML.prototype,"selected",void 0);_.U([_.K("data.image"),_.W("design:type",Object),_.W("design:paramtypes",[])],ML.prototype,"thumbnailUrl",null);
_.U([_.K("data.image","data.image.previewCoordinates"),_.W("design:type",Object),_.W("design:paramtypes",[])],ML.prototype,"thumbnailStyle",null);_.U([_.M("keypress"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],ML.prototype,"onKeyPress",null);ML=_.U([_.Q({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],ML);
_.S(ML,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(f1b!==void 0)return f1b;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return f1b=a},{mode:2});var NL=function(a,b,c){c=c===void 0?!1:c;_.Dz.call(this);var d=this;this.dropZoneOverlay=new sE(a);this.selectOverlay=c?new tE(b,"multiple_file",["image/*"]):new tE(b,"single_file",["image/*"]);this.handler=new _.bn(this);_.gg(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(b,"click",function(){d.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.z(NL,_.Dz);NL.prototype.onChange=function(a){var b;(b=a.files)!=null&&b.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:a.files}))};var h1b=function(){var a=_.P.apply(this,arguments)||this;a.addImageErrorMessage="";a.errorMessage="";a.images=[];a.selectedImageIndex=0;a.modern=_.x("web_modern_buttons");a.JSC$12991_imageId=0;return a};
_.z(h1b,_.P);_.f=h1b.prototype;_.f.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.go(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.f.observeDragToReorder=function(){var a=this;if(this.showImagesPreview){var b,c=PKb(_.hG.getInstance(),(b=this.data)==null?void 0:b.dragToReorderTooltip);_.zk.addLowPriorityJob(function(){_.no(a.hostElement,c,a.thumbnailDragDropArea)})}};
_.f.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}}};
_.f.computeThumbnail=function(a){return(a==null?void 0:a.localImageSrc)||void 0};
_.f.onRendererstamperFinished=function(){_.UVb(this.ytReorderableBehavior,_.E(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.E(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.f.handleDrop=function(a){var b=a.currDragItem;if(b!=null&&b.data){a=this.images[this.selectedImageIndex];var c=b.data.image,d=this.images.indexOf(c)||0;b=_.Na(b.parentNode.children,b);this.images.splice(d,1);this.images.splice(b,0,c);this.images=[].concat(_.Be(this.images));this.selectedImageIndex=this.images.indexOf(a)}};
_.f.setUpImagePicker=function(){var a=this.imageUploadEndpoint;a&&a.imageValidationInfo&&(this.uploadManager=new HL(a.uploadUrl,a.channelId),this.initialPicker||(this.initialPicker=new NL(this.dropzone,this.selectLink,!0),_.ss(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new NL(this.addImageButtonContainer,this.addImageSelectButton),_.ss(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.ss(this.JSC$12991_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.ss(this.JSC$12991_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.ss(_.E(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.f.detached=function(){this.initialPicker&&(_.Cz(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.Cz(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.f.onInitialSelectImages=function(a){var b=this;return _.l(function(c){return _.p(c,b.onSelectImages(a,!1),0)})};
_.f.onAddImage=function(a){var b=this;return _.l(function(c){return _.p(c,b.onSelectImages(a,!0),0)})};
_.f.onSelectImages=function(a,b){var c=this,d,e,g,k,m,n,r,t,u,w,A,C,G,J,I,R,ca,V,fa,aa;return _.l(function(ma){switch(ma.nextAddress){case 1:b?c.addImageErrorMessage="":(c.images=[],c.errorMessage="");d=a.detail;e=c.validateImages([].concat(_.Be(d)));if(e!=="")return b?c.addImageErrorMessage=e:c.errorMessage=e,ma.return();g=[].concat(_.Be(d)).map(function(Ba){return(new YE(c.maxAspectRatio,!1,!0)).transform(Ba)});
return _.p(ma,Promise.allSettled(g),2);case 2:k=ma.yieldResult,m=_.h(k.entries()),n=m.next();case 3:if(n.done){ma.jumpTo(5);break}r=n.value;t=_.h(r);u=t.next().value;w=t.next().value;A=u;C=w;if(C.status!=="fulfilled"){I=J=G=void 0;b?c.addImageErrorMessage=_.Vp((G=c.data)==null?void 0:G.invalidError):c.errorMessage=c.errorMessage===""?_.Vp((J=c.data)==null?void 0:J.invalidError):_.Vp((I=c.data)==null?void 0:I.multiFileError);ma.jumpTo(4);break}R=C.value;R.cropped&&_.go(c.hostElement,"yt-backstage-multi-image-cropped");
if(R.invalidAspectRatio){fa=V=ca=void 0;b?c.addImageErrorMessage=_.Vp((ca=c.data)==null?void 0:ca.invalidAspectRatioError):c.errorMessage=c.errorMessage===""?_.Vp((V=c.data)==null?void 0:V.invalidAspectRatioError):_.Vp((fa=c.data)==null?void 0:fa.multiFileError);ma.jumpTo(4);break}return _.p(ma,i_a(c.JSC$12991_imageId,a.detail[A],R.transformedData),8);case 8:aa=ma.yieldResult,c.images.push(aa),c.JSC$12991_imageId++;case 4:n=m.next();ma.jumpTo(3);break;case 5:if(c.errorMessage!==""||c.addImageErrorMessage!==
"")return ma.return();b?P0b(c.uploadManager,[c.images[c.images.length-1]]):P0b(c.uploadManager,c.images);c.images=[].concat(_.Be(c.images));c.selectedImageIndex=b?Math.max(c.images.length-1,0):0;_.go(c.hostElement,"yt-backstage-multi-image-select");_.se(ma)}})};
_.f.onThumbnailClick=function(a){if(a=a.event_.detail)this.selectedImageIndex=this.images.indexOf(a)};
_.f.validateImages=function(a){if(a.length>5){var b;return _.Vp((b=this.data)==null?void 0:b.multiImageExceedMaxImageCountError)}var c=1048576*this.maxFileSizeMb;a=a.filter(function(g){return g.size>c}).length;
if(a===0)return"";var d,e;a=a>1?(d=this.data)==null?void 0:d.multiFileError:(e=this.data)==null?void 0:e.fileSizeError;return _.Vp(a)};
_.f.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.Be(this.images));this.selectedImageIndex=0};
_.f.repositionImage=function(a){this.images[this.selectedImageIndex].previewCoordinates=a.event_.detail;this.images=[].concat(_.Be(this.images))};
_.f.getAllUploadStatuses=function(){var a=this,b,c,d,e;return _.l(function(g){if(g.nextAddress==1)return _.p(g,a.uploadManager.getAllUploadStatuses(),2);b=g.yieldResult;c=_.h(b);for(d=c.next();!d.done;d=c.next())if(e=d.value,e.encryptedBlobId===void 0)return g.return(Q0b(a.uploadManager));return g.return(b)})};
_.f.hasImages=function(){return this.images.length>0};
_.f.cancel=function(){for(var a=this.uploadManager,b=_.h(a.imagesUploadData),c=b.next();!c.done;c=b.next())a.cancel(c.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.go(this.hostElement,"yt-backstage-multi-image-cancel")};
_.Vm.Object.defineProperties(h1b.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.imageUploadEndpoint)==null?void 0:(b=a.imageValidationInfo)==null?void 0:b.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.imageUploadEndpoint)==null?void 0:(b=a.imageValidationInfo)==null?void 0:b.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var a,b;if((a=this.data)==null?0:(b=a.icon)==null?0:b.iconType)return _.fs(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.addImageButton}},
dropzoneClass:{configurable:!0,enumerable:!0,get:function(){return this.errorMessage===""?"":"error"}},
showImagesPreview:{configurable:!0,enumerable:!0,get:function(){return this.images.length>0&&this.errorMessage===""}},
containMaxImages:{configurable:!0,enumerable:!0,get:function(){return this.images.length>=5}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]||void 0}},
thumbnailRenderers:{configurable:!0,enumerable:!0,get:function(){var a=this;return(this.images||[]).map(function(b,c){return{renderer:{image:b,selected:c===a.selectedImageIndex}}})}}});
var OL=h1b;OL.prototype.setUpImagePicker=OL.prototype.setUpImagePicker;OL.prototype.onRendererstamperFinished=OL.prototype.onRendererstamperFinished;OL.prototype.observeDragToReorder=OL.prototype.observeDragToReorder;OL.prototype.observeAddImageError=OL.prototype.observeAddImageError;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],OL.prototype,"rendererStamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],OL.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.WVb),_.W("design:type",Object)],OL.prototype,"ytReorderableBehavior",void 0);_.U([_.gr("#dropzone"),_.W("design:type",HTMLElement)],OL.prototype,"dropzone",void 0);_.U([_.gr("#select-link"),_.W("design:type",HTMLElement)],OL.prototype,"selectLink",void 0);_.U([_.gr("#thumbnail-drag-drop-area"),_.W("design:type",HTMLElement)],OL.prototype,"thumbnailDragDropArea",void 0);_.U([_.gr("#add-image-button-container"),_.W("design:type",HTMLElement)],OL.prototype,"addImageButtonContainer",void 0);
_.U([_.gr("#add-image-button"),_.W("design:type",HTMLElement)],OL.prototype,"addImageSelectButton",void 0);_.U([_.gr("#image-preview-container"),_.W("design:type",Object)],OL.prototype,"JSC$12991_imagePreviewContainer",void 0);_.U([_.O(),_.W("design:type",Object)],OL.prototype,"addImageErrorMessage",void 0);_.U([_.O(),_.W("design:type",Object)],OL.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],OL.prototype,"errorMessage",void 0);
_.U([_.O(),_.W("design:type",Object)],OL.prototype,"imageUploadEndpoint",void 0);_.U([_.O(),_.W("design:type",Array)],OL.prototype,"images",void 0);_.U([_.O(),_.W("design:type",NL)],OL.prototype,"initialPicker",void 0);_.U([_.O(),_.W("design:type",NL)],OL.prototype,"addImagePicker",void 0);_.U([_.O(),_.W("design:type",HL)],OL.prototype,"uploadManager",void 0);_.U([_.O(),_.W("design:type",Object)],OL.prototype,"selectedImageIndex",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],OL.prototype,"modern",void 0);_.U([_.K("imageUploadEndpoint"),_.W("design:type",Number),_.W("design:paramtypes",[])],OL.prototype,"maxAspectRatio",null);_.U([_.K("imageUploadEndpoint"),_.W("design:type",Number),_.W("design:paramtypes",[])],OL.prototype,"maxFileSizeMb",null);_.U([_.K("data.icon.iconType"),_.W("design:type",Object),_.W("design:paramtypes",[])],OL.prototype,"dropIcon",null);
_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],OL.prototype,"selectionCancel",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],OL.prototype,"previewCancel",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],OL.prototype,"dataForAddImageButton",null);_.U([_.K("errorMessage"),_.W("design:type",String),_.W("design:paramtypes",[])],OL.prototype,"dropzoneClass",null);
_.U([_.K("images"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],OL.prototype,"showImagesPreview",null);_.U([_.K("images"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],OL.prototype,"containMaxImages",null);_.U([_.N("addImageErrorMessage"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],OL.prototype,"observeAddImageError",null);
_.U([_.N("showImagesPreview"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],OL.prototype,"observeDragToReorder",null);_.U([_.K("images","selectedImageIndex"),_.W("design:type",Object),_.W("design:paramtypes",[])],OL.prototype,"selectedImageData",null);_.U([_.K("images","selectedImageIndex"),_.W("design:type",Array),_.W("design:paramtypes",[])],OL.prototype,"thumbnailRenderers",null);
_.U([_.M("yt-rendererstamper-finished"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],OL.prototype,"onRendererstamperFinished",null);_.U([_.N("imageUploadEndpoint"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],OL.prototype,"setUpImagePicker",null);OL=_.U([_.Q({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],OL);
_.S(OL,"ytd-backstage-multi-image-select-renderer",function(){if(e1b!==void 0)return e1b;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return e1b=a},{mode:1});var i1b;var j1b=function(){var a=_.P.apply(this,arguments)||this;a.quizOptions=[];a.explanationPlaceholderText="";a.optionPlaceholderText="";a.correctAnswerIndex=-1;a.isMarkAnswerTooltipShown=!1;a.timer=0;return a};
_.z(j1b,_.P);_.f=j1b.prototype;_.f.dataChanged=function(){this.optionPlaceholderText=_.Vp(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.Vp(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.f.onMarkCorrectAnswer=function(a){var b,c=((b=this.quizOptions[this.correctAnswerIndex])==null?void 0:b.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[a.model.index]=Object.assign({},this.quizOptions[a.model.index],{explanationText:c,isCorrect:!0});this.correctAnswerIndex=a.model.index;this.quizOptions=[].concat(_.Be(this.quizOptions))};
_.f.updatePlaceholderTexts=function(){for(var a=!1,b=[],c=0;c<this.quizOptions.length;c++){var d=this.optionPlaceholderText+" "+(c+1),e=void 0;((e=this.quizOptions[c])==null?void 0:e.placeholderText)!==d?(a=!0,b.push(Object.assign({},this.quizOptions[c],{placeholderText:d}))):b.push(this.quizOptions[c])}a&&(this.quizOptions=b);this.isValid()?_.go(this.hostElement,"yt-commentbox-post-enable"):_.go(this.hostElement,"yt-commentbox-post-disable")};
_.f.getSimpleString=function(a){return _.Vp(a)};
_.f.createQuizOptions=function(a){var b=[],c;a=(c=a==null?void 0:a.minQuizOptions)!=null?c:0;for(c=0;c<a;c++)b.push(this.createQuizOption());return b};
_.f.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.Be(this.quizOptions),[this.createQuizOption()]))};
_.f.onInput=function(){this.quizOptions=[].concat(_.Be(this.quizOptions))};
_.f.onExplanationInput=function(){_.go(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.f.onRemoveQuizOption=function(a){this.quizOptions.splice(a.model.index,1);a.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:a.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.Be(this.quizOptions));this.quizOptions.length===0&&_.go(this.hostElement,"yt-quiz-attachment-dismiss")};
_.f.updateHintRenderer=function(){var a=this;clearTimeout(this.timer);this.timer=setTimeout(function(){a.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.f.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var a=0,b=0,c=_.h(this.quizOptions),d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0;if(((e=d.optionText)==null?void 0:e.trim())!==""||d.isCorrect){d.isCorrect&&b++;e=void 0;if(this.hasCustomOptionText&&((e=d.optionText)==null?void 0:e.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;a++}}return a>=
Number(this.editorInfo.minQuizOptions)&&b===1};
_.f.getPostCreateOptions=function(){for(var a=[],b=_.h(this.quizOptions),c=b.next();!c.done;c=b.next()){c=c.value;var d=void 0;((d=c.optionText)==null?void 0:d.trim())!==""&&a.push({pollOption:{text:c.optionText,explanation:c.explanationText},isCorrect:c.isCorrect})}return a};
_.f.getExplanationText=function(){var a;return((a=this.quizOptions[this.correctAnswerIndex])==null?void 0:a.explanationText)||""};
_.f.maybeDisplayMarkAnswerEduToolTip=function(){var a,b,c,d,e,g,k;this.shouldShowMarkAnswerTooltip()&&((a=this.editorInfo)==null?0:(b=a.markAnswerButton)==null?0:(c=b.buttonRenderer)==null?0:(d=c.hint)==null?0:(e=d.hintRenderer)==null?0:(g=e.content)==null?0:(k=g.bubbleHintRenderer)==null?0:k.text)&&(_.hG.getInstance(),a=iG(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,(a==null?void 0:a.length)>0&&this.optionSelectors&&_.is(a[0],this.optionSelectors[0]))};
_.f.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var a=0,b=_.h(this.quizOptions),c=b.next();!c.done;c=b.next()){c=c.value;var d=void 0;((d=c.optionText)==null?void 0:d.trim())!==""&&a++;if(c.isCorrect)return!1}return a<2?!1:!0};
_.f.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.f.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.f.updateOptionTextFromBinding=function(a){if(a.target){var b=Array.from(_.E(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(a.target);if(b>=0){var c;this.quizOptions[b].optionText=(c=a.detail.value)!=null?c:""}}};
_.Vm.Object.defineProperties(j1b.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var a,b,c=(a=this.editorInfo)==null?void 0:(b=a.addOptionButton)==null?void 0:b.buttonRenderer;c&&(c.style="STYLE_SUGGESTIVE",c.size="SIZE_SMALL",c.isDisabled=!this.isAllowedToAddOption);return(c==null?0:c.text)?c:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var a,b;return this.quizOptions.length<((b=(a=this.editorInfo)==null?void 0:a.maxQuizOptions)!=null?b:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(a){var b;return(b=a.optionText)==null?void 0:b.trim()})}}});
var PL=j1b;PL.prototype.updatePlaceholderTexts=PL.prototype.updatePlaceholderTexts;PL.prototype.dataChanged=PL.prototype.dataChanged;_.U([_.O(),_.W("design:type",Object)],PL.prototype,"editorInfo",void 0);_.U([_.O(),_.W("design:type",Array)],PL.prototype,"quizOptions",void 0);_.U([_.O(),_.W("design:type",Object)],PL.prototype,"explanationPlaceholderText",void 0);_.U([_.hr(".option-selector-button"),_.W("design:type",Array)],PL.prototype,"optionSelectors",void 0);
_.U([_.kr("editorInfo"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],PL.prototype,"dataChanged",null);_.U([_.K("editorInfo","isAllowedToAddOption","quizOptions"),_.W("design:type",Object),_.W("design:paramtypes",[])],PL.prototype,"addAnswerButton",null);_.U([_.K("editorInfo","quizOptions"),_.W("design:type",Object),_.W("design:paramtypes",[])],PL.prototype,"isAllowedToAddOption",null);
_.U([_.kr("quizOptions"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],PL.prototype,"updatePlaceholderTexts",null);_.U([_.K("quizOptions"),_.W("design:type",Object),_.W("design:paramtypes",[])],PL.prototype,"hasCustomOptionText",null);PL=_.U([_.Q({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],PL);
_.S(PL,"ytd-backstage-quiz-editor-renderer",function(){if(i1b!==void 0)return i1b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-backstage-quiz-editor-renderer">\n  <template is="dom-repeat" items="[[quizOptions]]" index="quizAnswerIndex" class="style-scope ytd-backstage-quiz-editor-renderer">\n    <div class="quiz-option style-scope ytd-backstage-quiz-editor-renderer">\n      <div class="quiz-option-container style-scope ytd-backstage-quiz-editor-renderer">\n        <div class="quiz-thumbnail-container style-scope ytd-backstage-quiz-editor-renderer">\n          <div class="quiz-select-container style-scope ytd-backstage-quiz-editor-renderer">\n            <yt-icon-button class="option-selector-button style-scope ytd-backstage-quiz-editor-renderer" aria-label="[[editorInfo.markAnswerButton.buttonRenderer.accessibilityData.accessibilityData.label]]" on-click="onMarkCorrectAnswer">\n              <yt-icon class="option-selector style-scope ytd-backstage-quiz-editor-renderer" hidden="[[item.isCorrect]]" icon="yt-icons:radio-button-unchecked">\n              </yt-icon>\n              <yt-icon class="option-selector-correct style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" default-to-filled="true" icon="yt-icons:check-circle">\n              </yt-icon>\n            </yt-icon-button>\n          </div>\n        </div>\n        <tp-yt-paper-input-container class="quiz-option-input style-scope ytd-backstage-quiz-editor-renderer" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-option-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizOptionChars]]" no-label-float="" placeholder$="[[item.placeholderText]]" value="[[item.optionText]]" on-input="onInput" on-keyup="updateHintRenderer" on-value-changed="updateOptionTextFromBinding">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="option-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n        <yt-icon-button class="remove-button style-scope ytd-backstage-quiz-editor-renderer" aria-label="[[editorInfo.removeOptionButtonA11yText.accessibilityData.label]]" on-click="onRemoveQuizOption">\n          <yt-icon class="remove-option style-scope ytd-backstage-quiz-editor-renderer" icon="yt-icons:delete"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div class="quiz-explanation style-scope ytd-backstage-quiz-editor-renderer">\n        <tp-yt-paper-input-container class="quiz-explanation-input style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-explanation-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizExplanationChars]]" no-label-float="" placeholder$="[[explanationPlaceholderText]]" value="{{item.explanationText}}" on-input="onExplanationInput">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="explanation-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n      </div>\n    </div>\n  </template>\n</div>\n<div class="button-container style-scope ytd-backstage-quiz-editor-renderer">\n  <yt-button-renderer class="add-answer style-scope ytd-backstage-quiz-editor-renderer" data="[[addAnswerButton]]" hidden="[[!isAllowedToAddOption]]" on-click="onAddQuizOption">\n  </yt-button-renderer>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return i1b=a},{mode:2});var k1b;var l1b=(Fv.FIRSTDAYOFWEEK+1)%7;var m1b;var n1b=[],o1b=0,p1b=0;o1b=0;p1b=24;if(.25*(p1b-o1b)<0)m1b=[];else{for(var q1b=o1b;q1b<p1b;q1b+=.25)n1b.push(q1b);m1b=n1b}var r1b=m1b.map(function(a){a=a*60*60;return{secondsSinceMidnight:a,text:(new Sp(7)).format(new Date(0,0,0,0,0,a))}});var s1b;var t1b=function(){var a=_.P.apply(this,arguments)||this;a.skipNextOpenDialog=!1;a.errorMessage="";return a};
_.z(t1b,_.P);_.f=t1b.prototype;_.f.attached=function(){var a=this,b=new MutationObserver(function(){a.JSC$13023_calendarMain.scrollHeight>0&&(b.disconnect(),a.calendarConfig&&a.calendarConfig.selectedDate&&a.scrollToDate())});
b.observe(this.JSC$13023_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){b.disconnect()},1E3)};
_.f.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.f.onDateTextChange=function(){if(this.calendarConfig){var a=this.validateDateText();a.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(a.details)):this.textbox.setAttribute("invalid","")}};
_.f.handleDayClick=function(a){a.model.day.date&&(this.commitDate(a.model.day.date),this.dialog.close())};
_.f.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var a=t_a(this.calendarConfig.selectedDate,this.renderData);a!==void 0&&this.JSC$13023_calendarMain.scrollToIndex(a)}};
_.f.scrollToNextMonth=function(){this.JSC$13023_calendarMain.scrollToIndex(this.JSC$13023_calendarMain.firstVisibleIndex+1)};
_.f.scrollToPrevMonth=function(){this.JSC$13023_calendarMain.firstVisibleIndex===0&&this.JSC$13023_calendarMain.scrollTo(0,0);this.JSC$13023_calendarMain.scrollToIndex(this.JSC$13023_calendarMain.firstVisibleIndex-1)};
_.f.onFormSubmit=function(a){a.preventDefault();this.calendarConfig&&(a=this.validateDateText(),a.isValid&&(this.commitDate(a.details),this.dialog.close()))};
_.f.onEscOrClickingOutside=function(a){a=a.detail.path&&!!a.detail.path.length&&a.detail.path[0];if(a.classList.contains("ytd-calendar-date-picker")){a===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var b=0;b<this.dropdownButton.children.length;b++)this.dropdownButton.children[b]===a&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}a=this.textbox.value!==this.dateText;b=this.validateDateText();a&&b.isValid&&this.commitDate(b.details);this.dialog.close();this.textbox.value=
this.dateText};
_.f.commitDate=function(a){this.calendarConfig&&(this.set("calendarConfig.selectedDate",a),_.go(this.hostElement,"ytd-calendar-date-selected",a))};
_.f.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var a=this.textbox.value;var b=new Date;a=(new w0a(2)).parse(a,b,{validate:!0})===a.length?r_a(b):void 0;if(!a)return this.errorMessage=_.to("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};b=this.calendarConfig.start;var c=this.calendarConfig.end;if(m_a(a,b))return this.errorMessage=_.to("ENTER_DATE_OR_LATER",{allowed_date:q_a(b)}),{isValid:!1,details:void 0};if(m_a(c,a))return this.errorMessage=
_.to("ENTER_DATE_OR_EARLIER",{allowed_date:q_a(c)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:a}};
_.Vm.Object.defineProperties(t1b.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?q_a(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var a=this.calendarConfig,b=[],c=0;c<7;c++)b.push(Fv.NARROWWEEKDAYS[(c+l1b)%7]);c=[];for(var d=new Date(a.start.year,a.start.month);d.getFullYear()<a.end.year||d.getFullYear()===a.end.year&&d.getMonth()<=a.end.month;){var e=c,g=e.push,k=d.getFullYear(),m=d.getMonth(),n=a,r=void 0,t=[],u=Object.freeze({extraCssClass:"invisible",debugClass:""}),w=new Date(k,m),A=r_a(w);w=w.getDay();for(var C=r_a(new Date);A.month===
m;){w!==l1b&&r||(r=Array.from({length:7}).fill(u),t.push(r));var G={date:{year:k,month:m,day:A.day},extraCssClass:"",debugClass:""};n.selectedDate&&G.date&&l_a(G.date,n.selectedDate)&&(G.extraCssClass+=" selected");if(m_a(A,n.start)||m_a(n.end,A))G.extraCssClass+=" disabled";l_a(A,C)&&(G.extraCssClass+=" today");G.extraCssClass=G.extraCssClass.trim();r[(w-l1b+7)%7]=G;A=o_a(A);w=(w+1)%7}g.call(e,{weeks:t,monthLabel:Fv.SHORTMONTHS[m]+" "+k,year:k,month:m,monthLabelExtraCssClass:t[0][2]===u?"shift-down-label":
""});d.setMonth(d.getMonth()+1)}return{months:c,daysOfWeekLabel:b}}}}});
var QL=t1b;QL.prototype.onEscOrClickingOutside=QL.prototype.onEscOrClickingOutside;QL.prototype.scrollToDate=QL.prototype.scrollToDate;_.U([_.O(),_.W("design:type",Object)],QL.prototype,"calendarConfig",void 0);_.U([_.O(),_.W("design:type",Object)],QL.prototype,"skipNextOpenDialog",void 0);_.U([_.O(),_.W("design:type",Object)],QL.prototype,"errorMessage",void 0);_.U([_.gr("#textbox"),_.W("design:type",HTMLInputElement)],QL.prototype,"textbox",void 0);
_.U([_.gr("#calendar-dialog"),_.W("design:type",Object)],QL.prototype,"dialog",void 0);_.U([_.gr("#calendar-main"),_.W("design:type",Object)],QL.prototype,"JSC$13023_calendarMain",void 0);_.U([_.gr("#date-picker"),_.W("design:type",HTMLElement)],QL.prototype,"dropdownButton",void 0);_.U([_.K("calendarConfig.selectedDate"),_.W("design:type",String),_.W("design:paramtypes",[])],QL.prototype,"dateText",null);
_.U([_.K("calendarConfig","calendarConfig.selectedDate"),_.W("design:type",Object),_.W("design:paramtypes",[])],QL.prototype,"renderData",null);_.U([_.N("renderData","calendarConfig.selectedDate"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],QL.prototype,"scrollToDate",null);_.U([_.M("iron-overlay-canceled"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],QL.prototype,"onEscOrClickingOutside",null);
QL=_.U([_.ur({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],QL);
_.S(QL,"ytd-calendar-date-picker",function(){if(s1b!==void 0)return s1b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-calendar-date-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button class="style-scope ytd-calendar-date-picker">\n  <tp-yt-paper-button id="date-picker" class="dropdown-trigger style-scope ytd-calendar-date-picker" slot="dropdown-trigger" aria-labelledby="date-label-text" on-tap="openPicker">\n    <div id="date-label-text" class="style-scope ytd-calendar-date-picker">[[dateText]]</div>\n    <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-calendar-date-picker">\n    </yt-icon>\n  </tp-yt-paper-button>\n</tp-yt-paper-menu-button>\n\n<tp-yt-paper-dialog id="calendar-dialog" dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-calendar-date-picker">\n  <div id="control-area" class="style-scope ytd-calendar-date-picker">\n    <form id="date-input" on-submit="onFormSubmit" autocomplete="off" class="style-scope ytd-calendar-date-picker">\n      <tp-yt-paper-input-container aria-label="Enter date" invalid="[[errorMessage]]" no-label-float="" use-v2-underline="" on-input="onDateTextChange" class="style-scope ytd-calendar-date-picker">\n        <tp-yt-iron-input slot="input" bind-value="[[dateText]]" class="style-scope ytd-calendar-date-picker">\n          <input id="textbox" autofocus="" class="style-scope ytd-calendar-date-picker"></tp-yt-iron-input>\n        <tp-yt-paper-input-error slot="add-on" class="style-scope ytd-calendar-date-picker">[[errorMessage]]</tp-yt-paper-input-error>\n      </tp-yt-paper-input-container>\n    </form>\n    <div id="month-controller" class="style-scope ytd-calendar-date-picker">\n      <yt-icon-button id="prev-month" on-tap="scrollToPrevMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n      <yt-icon-button id="next-month" on-tap="scrollToNextMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div class="calendar-container style-scope ytd-calendar-date-picker">\n    <div class="calendar-header style-scope ytd-calendar-date-picker">\n      <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-calendar-date-picker">\n        <span class="calendar-header-day style-scope ytd-calendar-date-picker">[[dayLabel]]</span>\n      </template>\n    </div>\n    <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-calendar-date-picker">\n      <template class="style-scope ytd-calendar-date-picker">\n        <div class="calendar-month style-scope ytd-calendar-date-picker">\n          <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-calendar-date-picker">\n            [[month.monthLabel]]\n          </div>\n          <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-calendar-date-picker">\n            <div class="calendar-week style-scope ytd-calendar-date-picker">\n              <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-calendar-date-picker">\n                <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-calendar-date-picker" on-tap="handleDayClick">\n                  [[day.date.day]]\n                </span>\n              </template> \n            </div>\n          </template> \n        </div>\n      </template>\n    </tp-yt-iron-list> \n  </div>\n</tp-yt-paper-dialog>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return s1b=a},{mode:2});var u1b=_.to("UTC_OFFSET_FORMAT",{utc_offset:(new Sp("Z")).format(new Date)}),v1b=(new Date).getTimezoneOffset()*-60,w1b=new Date,x1b,y1b=Rp(w1b.getTimezoneOffset());x1b=vrb(xrb(y1b,w1b));var z1b=_.to("LOCAL_TIME_GMT_LABEL",{gmt_text:x1b.replace("+0","+").replace("-0","-").replace(":00","")}),A1b=function(){var a=_.P.apply(this,arguments)||this;a.selectedTimeIndex=0;a.selectedTimezoneIndex=0;a.timeOfDayOptions=r1b;return a};
_.z(A1b,_.P);_.f=A1b.prototype;_.f.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.f.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var a=p_a();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=a,this.selectedTimeIndex=0;else{var b=s_a(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},a,{selectedDate:b.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(c){return c.secondsSinceMidnight===b.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.f.onDatePicked=function(a){this.selectedDate=a.detail};
_.f.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.go(this.hostElement,"ytd-date-time-selection-cancelled")};
_.f.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var a=this.selectedDate;a=new Date(a.year,a.month,a.day);_.go(this.hostElement,"ytd-date-time-selection-update",Math.floor(a.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+a.getTimezoneOffset()*60))}};
_.f.getTimezoneFormat=function(a){return a.localizedDisplayText?a.localizedDisplayText:_.to("TIMEZONE_FORMAT",{utc_offset_text:""+a.localizedUtcOffset,city_name:""+a.localizedName})};
_.f.updateSelectedTimeIndexFromBinding=function(a){this.selectedTimeIndex=a.detail.value};
_.f.updateSelectedTimezoneIndexFromBinding=function(a){this.selectedTimezoneIndex=a.detail.value};
_.Vm.Object.defineProperties(A1b.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var a=this.data.timezoneOptions;var b={name:"Etc/Unknown",localizedName:_.to("LOCAL_TIME_LABEL"),localizedUtcOffset:u1b,utcOffsetSec:""+v1b,localizedDisplayText:z1b};a?a.length&&a[0].name!==b.name&&(a[0].localizedDisplayText||(b.localizedDisplayText=""),a.unshift(b)):a=[b];return a}}},
selectedTimezone:{configurable:!0,enumerable:!0,get:function(){if(this.timeZones&&!(this.selectedTimezoneIndex>=this.timeZones.length))return this.timeZones[this.selectedTimezoneIndex]}},
selectedTime:{configurable:!0,enumerable:!0,get:function(){return this.timeOfDayOptions[this.selectedTimeIndex]}}});
var RL=A1b;RL.prototype.onDateTimeTimezoneChange=RL.prototype.onDateTimeTimezoneChange;RL.prototype.onDatePicked=RL.prototype.onDatePicked;RL.prototype.updateDefaultSelectedValue=RL.prototype.updateDefaultSelectedValue;_.U([_.O(),_.W("design:type",Object)],RL.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],RL.prototype,"calendarConfig",void 0);_.U([_.O(),_.W("design:type",Object)],RL.prototype,"selectedDate",void 0);
_.U([_.O(),_.W("design:type",Object)],RL.prototype,"selectedTimeIndex",void 0);_.U([_.O(),_.W("design:type",Object)],RL.prototype,"selectedTimezoneIndex",void 0);_.U([_.gr("#time-listbox"),_.W("design:type",Object)],RL.prototype,"timeListBox",void 0);_.U([_.gr("#timezone-listbox"),_.W("design:type",Object)],RL.prototype,"timezoneListBox",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],RL.prototype,"rendererStamperBehavior",void 0);
_.U([_.K("data.timezoneOptions"),_.W("design:type",Object),_.W("design:paramtypes",[])],RL.prototype,"timeZones",null);_.U([_.kr("data","timeZones"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],RL.prototype,"updateDefaultSelectedValue",null);_.U([_.K("selectedTimezoneIndex","timeZones"),_.W("design:type",Object),_.W("design:paramtypes",[])],RL.prototype,"selectedTimezone",null);
_.U([_.K("selectedTimeIndex"),_.W("design:type",Object),_.W("design:paramtypes",[])],RL.prototype,"selectedTime",null);_.U([_.M("ytd-calendar-date-selected"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],RL.prototype,"onDatePicked",null);_.U([_.N("selectedTimezone","selectedTime","selectedDate"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],RL.prototype,"onDateTimeTimezoneChange",null);
RL=_.U([_.Q({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],RL);
_.S(RL,"ytd-date-time-picker-renderer",function(){if(k1b!==void 0)return k1b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-date-time-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="cancel-button-wrapper" hidden="[[!data.dismissButton]]" on-tap="onCancelButtonTap" class="style-scope ytd-date-time-picker-renderer">\n</div>\n<div id="hint" hidden="[[!data.header]]" class="style-scope ytd-date-time-picker-renderer">\n  <yt-formatted-string text="[[data.header]]" class="style-scope ytd-date-time-picker-renderer"></yt-formatted-string>\n</div>\n<div id="picker-component" class="style-scope ytd-date-time-picker-renderer">\n  <ytd-calendar-date-picker calendar-config="[[calendarConfig]]" class="style-scope ytd-date-time-picker-renderer"></ytd-calendar-date-picker>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="time-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="time-label-text">\n      <div id="time-label-text" class="style-scope ytd-date-time-picker-renderer">[[selectedTime.text]]</div>\n      <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="time-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimeIndex]]" on-selected-changed="updateSelectedTimeIndexFromBinding">\n      <template is="dom-repeat" items="[[timeOfDayOptions]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[item.text]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="timezone-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="timezone-label-text">\n      <div id="timezone-label-text" class="style-scope ytd-date-time-picker-renderer">[[getTimezoneFormat(selectedTimezone)]]</div>\n      <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="timezone-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimezoneIndex]]" on-selected-changed="updateSelectedTimezoneIndexFromBinding">\n      <template is="dom-repeat" items="[[timeZones]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[getTimezoneFormat(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return k1b=a},{mode:1});var B1b;var SL=function(){var a=_.P.apply(this,arguments)||this;a.boundOnTapDismissButton=function(){a.dismissTapHandler()};
a.dismissButtonOverrides={size:"XS"};return a};
_.z(SL,_.P);SL.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}}}}}};
SL.prototype.dismissTapHandler=function(){_.go(this.hostElement,"yt-backstage-attachment-dismissed")};
SL.prototype.computeAttachmentType=function(a){return a?a.backstageImageRenderer?"image":a.videoRenderer?"video":"none":"none"};
var TL=SL;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],TL.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],TL.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],TL.prototype,"attachmentPreview",void 0);_.U([_.O(),_.W("design:type",Object)],TL.prototype,"dismissButton",void 0);_.U([_.O(),_.W("design:type",Object)],TL.prototype,"boundOnTapDismissButton",void 0);
_.U([_.O(),_.W("design:type",Object)],TL.prototype,"dismissButtonOverrides",void 0);_.U([_.O({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.W("design:type",String)],TL.prototype,"attachmentType",void 0);TL=_.U([_.Q({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],TL);
_.S(TL,"ytd-backstage-dismissable-attachment",function(){if(B1b!==void 0)return B1b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return B1b=a},{mode:1});var C1b;var D1b=function(){var a=_.P.apply(this,arguments)||this;a.selectedVideoId=void 0;a.picker=void 0;a.dismissButtonOverrides={size:"XS"};a.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return a};
_.z(D1b,_.P);_.f=D1b.prototype;_.f.onServiceRequestCompleted=function(a){a.stopPropagation()};
_.f.handleAddVideoPreviewAction=function(a){a=this.get("addVideoPreviewAction",a);this.onGetVideoPreviewSuccess(a)};
_.f.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}}}}}};
_.f.onLaunchVideoPicker=function(a){var b=this,c=_.Vp(this.get("addVideoLinkAction.title",a)),d=this.get("addVideoLinkAction.onePickHostId",a);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",a);d&&(this.picker||(c=_.Ajb(_.hIa(d).setTitle(c).addView(wjb()).addView(vjb()),function(e){b.onPickVideo(e)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",a)||c.addView("youtube"),this.picker=c.build()),this.picker.setVisible(!0))};
_.f.onPickVideo=function(a){if(a)if(a.action==="cancel")_.go(this.hostElement,"yt-video-link-button-cancel");else if(a.action==="picked"){a=a.docs;if(!a||a.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(a=(a==null?0:a.length)?a[0]:void 0)?a.id:void 0;this.setVideoPreview()}};
_.f.setVideoPreview=function(){var a=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){a.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.f.onGetVideoPreviewSuccess=function(a){if(a&&a.videoPreview&&a.cancelButton)this.videoPreview=a.videoPreview,this.cancelButton=a.cancelButton,_.go(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.f.onGetVideoPreviewError=function(){this.cancel()};
_.f.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.go(this.hostElement,"yt-video-link-cancel")};
_.f.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
var UL=D1b;UL.prototype.onServiceRequestCompleted=UL.prototype.onServiceRequestCompleted;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],UL.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],UL.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],UL.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],UL.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],UL.prototype,"videoPreview",void 0);_.U([_.O(),_.W("design:type",Object)],UL.prototype,"cancelButton",void 0);_.U([_.O(),_.W("design:type",Object)],UL.prototype,"getVideoPreviewCommand",void 0);_.U([_.O(),_.W("design:type",Object)],UL.prototype,"dismissButtonOverrides",void 0);
_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],UL.prototype,"onServiceRequestCompleted",null);UL=_.U([_.Q({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],UL);
_.S(UL,"ytd-backstage-video-link-attachment",function(){if(C1b!==void 0)return C1b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return C1b=a},{mode:1});var E1b;var F1b;var G1b;var VL=function(){return _.P.apply(this,arguments)||this};
_.z(VL,_.P);VL.prototype.dataChanged=function(){this.active=!1};
VL.prototype.onTap=function(){_.go(this.hostElement,"yt-select-emoji-suggestion",this.data)};
VL.prototype.identity=function(a){return a};
_.Vm.Object.defineProperties(VL.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d;if((a=this.data)==null?0:(b=a.image)==null?0:(c=b.thumbnails)==null?0:(d=c[0])==null?0:d.url)return a=this.data.image.thumbnails[0].url,a.startsWith("data:image/svg+xml")?Ad(a):_.Gd(a)}}});
var WL=VL;WL.prototype.dataChanged=WL.prototype.dataChanged;_.U([_.O(),_.W("design:type",Object)],WL.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],WL.prototype,"active",void 0);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],WL.prototype,"dataChanged",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],WL.prototype,"imageSrc",null);
WL=_.U([_.Q({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],WL);
_.S(WL,"ytd-emoji-suggestion",function(){if(G1b!==void 0)return G1b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return G1b=a},{mode:1});var H1b=/.*([:@#].*?)$/,I1b=function(){var a=_.P.apply(this,arguments)||this;a.suggestions=[];a.suggestionIndex=-1;a.JSC$13051_lastSuggestionRange=null;return a};
_.z(I1b,_.P);_.f=I1b.prototype;_.f.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.f.getSuggestions=function(a){var b=[],c=aRb(this.emojiManager,a.substr(0,3));if(c)for(var d in c)if(d.toLocaleLowerCase().indexOf(a)===0){var e=c[d];if(e&&e.emojiId){e=OH(this.emojiManager,e.emojiId);var g=void 0,k=void 0,m=void 0,n=void 0,r=((g=e)==null?0:g.isCustomEmoji)?(k=e)==null?void 0:(m=k.shortcuts)==null?void 0:m[0]:(n=e)==null?void 0:n.emojiId;g=void 0;b.push({suggestion:{image:(g=e)==null?void 0:g.image,alt:r,text:d}});if(b.length>=64)break}}return b?b.sort(function(t,u){return u.suggestion.text<
t.suggestion.text?-1:u.suggestion.text===t.suggestion.text?0:1}):null};
_.f.insertSuggestion=function(a){_.go(this.hostElement,"yt-insert-suggestion",{range:this.JSC$13051_lastSuggestionRange,text:a.alt});this.dropdown.opened=!1};
_.f.updateSuggestionsAtCaret=function(a){this.updateSuggestions(a,this.retrieveTextBeforeRange(a))};
_.f.offsetStartOfRangeBy=function(a,b){a.startOffset>=b&&a.setStart(a.startContainer,a.startOffset-b)};
_.f.updateSuggestions=function(a,b){var c=this;this.JSC$13051_lastSuggestionRange&&(this.JSC$13051_lastSuggestionRange.detach(),this.JSC$13051_lastSuggestionRange=null);if((b=H1b.exec(b))&&b.length&&(b=b[b.length-1].toLocaleLowerCase(),b.length>2||b===":_")&&(this.offsetStartOfRangeBy(a,b.length),this.JSC$13051_lastSuggestionRange=a,(a=this.getSuggestions(b))&&a.length)){this.suggestions=a;_.Tm(this,function(){c.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(a.length-1);return}this.dropdown.opened=!1};
_.f.onKeyDown=function(a){if(this.dropdown.opened)switch(a.key){case "Escape":this.dropdown.opened=!1;a.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);a.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);a.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),a.preventDefault()}};
_.f.onKeyUp=function(a,b){switch(a.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(b);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(b)}};
_.f.onKeyPress=function(a){a.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),a.preventDefault())};
_.f.changeSuggestionIndex=function(a){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(a+this.suggestions.length)%this.suggestions.length,a=this.dropdownContent.children[this.suggestionIndex],a.active=!0,this.dropdownContent.scrollTop=a.offsetTop)};
_.f.retrieveTextBeforeRange=function(a){var b=a.startContainer;return b&&b.nodeType===Node.TEXT_NODE?b.textContent.substr(0,a.startOffset):""};
var XL=I1b;XL.prototype.onKeyPress=XL.prototype.onKeyPress;XL.prototype.onKeyUp=XL.prototype.onKeyUp;XL.prototype.onKeyDown=XL.prototype.onKeyDown;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],XL.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Array)],XL.prototype,"suggestions",void 0);_.U([_.O(),_.W("design:type",_.MH)],XL.prototype,"emojiManager",void 0);_.U([_.O(),_.W("design:type",Number)],XL.prototype,"verticalSuggestionsOffset",void 0);
_.U([_.gr("#dropdown"),_.W("design:type",Object)],XL.prototype,"dropdown",void 0);_.U([_.gr("#dropdown-content"),_.W("design:type",HTMLDivElement)],XL.prototype,"dropdownContent",void 0);_.U([_.M("keydown"),_.W("design:type",Function),_.W("design:paramtypes",[KeyboardEvent]),_.W("design:returntype")],XL.prototype,"onKeyDown",null);_.U([_.M("keyup"),_.W("design:type",Function),_.W("design:paramtypes",[KeyboardEvent,Range]),_.W("design:returntype")],XL.prototype,"onKeyUp",null);
_.U([_.M("keypress"),_.W("design:type",Function),_.W("design:paramtypes",[KeyboardEvent]),_.W("design:returntype")],XL.prototype,"onKeyPress",null);XL=_.U([_.Q({disableElementRegistration:!0,is:"ytd-emoji-input"})],XL);
_.S(XL,"ytd-emoji-input",function(){if(F1b!==void 0)return F1b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return F1b=a},{mode:2});var J1b;var K1b=function(){var a=_.P.apply(this,arguments)||this;a.hasMaxOptions=!1;return a};
_.z(K1b,_.P);_.f=K1b.prototype;_.f.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.f.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.f.setPrefilledChoices=function(a){var b=this;this.set("pollOptions",[]);var c;for(c=0;c<Math.min(a.length,this.data.maxPollOptions);c++)this.push("pollOptions",a[c].substring(0,this.data.maxPollOptionChars));for(;c<this.data.minPollOptions;c++)this.push("pollOptions","");this.hasMaxOptions=c>=this.data.maxPollOptions;_.Tm(this,function(){for(var d=b.pollOptions,e=_.E(b.hostElement).querySelectorAll(".poll-option-input"),g=0;g<e.length;g++)e[g].value=d[g]})};
_.f.focusChanged=function(){_.dr(this.hostElement)};
_.f.onInput=function(){var a=this;_.Dr(this,"onInput",function(){a.isValid()?_.go(a.hostElement,"yt-commentbox-post-enable"):_.go(a.hostElement,"yt-commentbox-post-disable")},300)};
_.f.setPollOptions=function(){var a=[],b,c=((b=this.data)==null?0:b.minPollOptions)?this.data.minPollOptions:0;for(b=0;b<c;b++)a.push("");return a};
_.f.addPollOption=function(){var a=this;_.go(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.zk.addLowPriorityJob(function(){var b;(b=_.E(a.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||b.focus()})};
_.f.onRemovePollOption=function(a){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.go(this.hostElement,"yt-poll-attachment-dismiss")):(a=this.repeat.indexForElement(a.target.parentNode),a!==null&&(this.splice("pollOptions",a,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.go(this.hostElement,"yt-commentbox-post-enable"))))};
_.f.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.f.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var a=0,b=this.pollOptions.length;a<b;a++)if(this.pollOptions[a].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.f.getPollOptions=function(){return this.pollOptions};
_.f.setPollOptionsFromInputs=function(){for(var a=_.E(this.hostElement).querySelectorAll(".poll-option-input"),b=0;b<a.length;b++)this.pollOptions[b]=a[b].value.trim()};
_.f.clearPollOptions=function(){var a=_.E(this.hostElement).querySelectorAll(".poll-option-input");a=_.h(a);for(var b=a.next();!b.done;b=a.next())b.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.f.getSimpleString=function(a){return _.Vp(a)};
_.f.updateValueFromBinding=function(a){if(a.target&&this.pollOptions){var b=Array.from(_.E(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(a.target);if(b>=0){var c;this.pollOptions[b]=(c=a.detail.value)!=null?c:"";this.notifyPath("pollOptions."+b)}}};
var YL=K1b;YL.prototype.dataChanged=YL.prototype.dataChanged;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],YL.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],YL.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Array)],YL.prototype,"pollOptions",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],YL.prototype,"hasMaxOptions",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],YL.prototype,"enableCreationBox",void 0);_.U([_.gr("#repeat"),_.W("design:type",rr)],YL.prototype,"repeat",void 0);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],YL.prototype,"dataChanged",null);YL=_.U([_.Q({disableElementRegistration:!0,is:"ytd-poll-attachment"})],YL);
_.S(YL,"ytd-poll-attachment",function(){if(J1b!==void 0)return J1b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return J1b=a},{mode:2});var L1b;var M1b;var N1b;var O1b;var P1b=function(){return _.P.apply(this,arguments)||this};
_.z(P1b,_.P);_.Vm.Object.defineProperties(P1b.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
var ZL=P1b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],ZL.prototype,"rendererBehaviors",void 0);_.U([_.O(),_.W("design:type",Object)],ZL.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],ZL.prototype,"focused",void 0);_.U([_.O({reflectToAttribute:!0}),_.K("focused"),_.W("design:type",Object),_.W("design:paramtypes",[])],ZL.prototype,"ariaSelected",null);ZL=_.U([_.ur({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],ZL);
_.S(ZL,"yt-user-mention-suggestion-renderer",function(){if(O1b===void 0){var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;N1b===void 0&&(N1b=document.createElement("template"));var d=N1b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);O1b=a}a=O1b;return a},{mode:2});var Q1b;var R1b;var S1b=function(){var a=_.P.apply(this,arguments)||this;a.focusedSuggestionIndex=-1;return a};
_.z(S1b,_.P);_.f=S1b.prototype;_.f.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.f.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.f.setFocusedSuggestionIndex=function(a){!this.data||!this.data.suggestions||a<0||a>=this.data.suggestions.length||(this.focusedSuggestionIndex=a,a=this.getSuggestionId(a),this._setFocusedSuggestionId(a))};
_.f.advanceSuggestion=function(a){this.focusedSuggestionIndex===-1||a!==-1&&a!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+a),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.f.ensureSuggestionVisible=function(a){a=this.getSuggestionId(a);a=_.E(this.hostElement).querySelector("[id="+a+"]");a!=null&&(a.offsetTop<this.hostElement.scrollTop?a.scrollIntoView(!0):a.offsetTop+a.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&a.scrollIntoView(!1))};
_.f.getSuggestionId=function(a){return"user-mention-suggestion-"+a};
_.f.onSuggestionTap=function(a){var b=_.y(a.model.item,XEb);this.ytRendererBehavior.logExplicitClick(b);_.go(this.hostElement,"yt-user-mention-suggestion-selected",{data:b,index:a.model.index})};
_.f.onSuggestionMouseMove=function(a){a.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(a.model.index)};
_.f.isSuggestionFocused=function(a,b){return a===b};
_.f.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.f.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.TH("focused-suggestion-id-changed",this.focusedSuggestionId))};
var $L=S1b;$L.prototype.focusedSuggestionIdChangedForBinding=$L.prototype.focusedSuggestionIdChangedForBinding;$L.prototype.onDomChange=$L.prototype.onDomChange;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],$L.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],$L.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],$L.prototype,"focusedSuggestionIndex",void 0);_.U([_.O({readOnly:!0}),_.W("design:type",String)],$L.prototype,"focusedSuggestionId",void 0);
_.U([_.M("dom-change"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],$L.prototype,"onDomChange",null);_.U([_.N("focusedSuggestionId"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],$L.prototype,"focusedSuggestionIdChangedForBinding",null);$L=_.U([_.ur({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],$L);
_.S($L,"yt-user-mention-suggestions-dropdown",function(){if(R1b===void 0){var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;Q1b===void 0&&(Q1b=document.createElement("template"));var d=Q1b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);R1b=a}a=R1b;return a},{mode:2});var T1b=function(){var a=_.P.apply(this,arguments)||this;a.suggestionsResponse=null;a.activeMention=null;a.selectionChangeListener=a.onSelectionChange.bind(a);a.handlesEnabled=_.x("enable_handles_in_mention_suggest_posts");a.handlesInMentionSuggestionsEnabled=_.x("handles_in_mention_suggest_posts");a.zeroPrefixMentionSuggestionEnabled=_.x("enable_zero_prefix_mention_suggestion_web");a.pendingQuery=null;a.flowNonce=null;return a};
_.z(T1b,_.P);_.f=T1b.prototype;_.f.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.f.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.f.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.f.hasSuggestions=function(a){return!!(a&&a.suggestions&&a.suggestions.length>0)};
_.f.onInput=function(){var a=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var b=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),c=this.activeMention.JSC$9073_getText().slice(-1)===" ",d=this.activeMention.JSC$9073_getText().slice(-2,-1)===" ",e="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$9073_getText().slice(-2,-1))>=
0;e=this.zeroPrefixMentionSuggestionEnabled&&e;if(this.activeMention.isCollapsed()||(b||d||e)&&c)this.cancelActiveMention();else{var g=this.activeMention.JSC$9073_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.Dr(this,"requestSuggestions",function(){a.requestSuggestions(g)},100)}}}};
_.f.onServiceRequestSent=function(a){a.stopPropagation()};
_.f.onServiceRequestCompleted=function(a){a.stopPropagation();a=a.detail.data;a.query&&(!this.pendingQuery||this.pendingQuery!==a.query)||!this.zeroPrefixMentionSuggestionEnabled&&a.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=a,this.hasSuggestions(a)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.f.onServiceRequestError=function(a){a.stopPropagation()};
_.f.onUserMentionSuggestionSelected=function(a){this.selectSuggestion(a.detail.data,a.detail.index)};
_.f.onSelectionChange=function(){if(this.activeMention){var a=_.lv(),b=this.activeMention.JSC$9073_containsRange(a);a=a&&this.containsHelper(this.dropdown,a.getContainer());b||a||this.cancelActiveMention()}};
_.f.containsHelper=function(a,b){var c;if(((c=window.ShadyDOM)==null?void 0:c.noPatch)===!0)return a.contains(b);for(;b;){if(b===a)return!0;b=b instanceof ShadowRoot?b.host:b.parentNode}return!1};
_.f.maybeStartSuggest=function(){var a=_.lv();if(a&&a.isCollapsed()){var b=a.JSC$9073_getStartNode(),c=a.JSC$9073_getStartOffset();if(b instanceof Text&&!(c<1)){var d=b.textContent;!(d=d&&d.charAt(c-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(d)<0||(this.activeMention=_.QC(b,c-1,a.JSC$9073_getEndNode(),a.JSC$9073_getEndOffset()),this.flowNonce=Cn(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.f.updateActiveMention=function(){if(this.activeMention){var a=_.lv();a&&a.isCollapsed()&&(this.activeMention=_.QC(this.activeMention.JSC$9073_getStartNode(),this.activeMention.JSC$9073_getStartOffset(),a.JSC$9073_getEndNode(),a.JSC$9073_getEndOffset()))}};
_.f.requestSuggestions=function(a){if(this.activeMention){var b={suggestions_query:a};this.pendingQuery=a;_.mo(this.hostElement,[this.suggestionsEndpoint,b])}};
_.f.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()};
_.f.focusPreviousSuggestion=function(a){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),a.preventDefault())};
_.f.focusNextSuggestion=function(a){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),a.preventDefault())};
_.f.selectFocusedSuggestion=function(a){if(this.hasSuggestions(this.suggestionsResponse)){var b=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.y(b,XEb)&&(this.selectSuggestion(_.y(b,XEb),this.dropdown.focusedSuggestionIndex),a.preventDefault())}};
_.f.selectSuggestion=function(a,b){if(a){var c=this.activeMention;if(c){var d=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&a.handle?_.Vy(d,"\u00a0\u2068@"+a.handle+"\u2069\u00a0"):this.handlesEnabled?_.Vy(d,"\u00a0"+a.displayName+"\u00a0"):_.Vy(d,"\u00a0@"+a.displayName+"\u00a0");Ld(d,"/channel/"+a.channelId);d.classList.add("yt-formatted-string","yt-simple-endpoint");d.setAttribute("spellcheck","false");c.isCollapsed()||c.JSC$9073_removeContents();c.insertNode(d,!0);a=document.createTextNode(" ");
d.parentNode.insertBefore(a,d.nextSibling);window.getSelection().collapse(a,1);b={suggestionSelected:{suggestionIndex:b}};if(this.zeroPrefixMentionSuggestionEnabled){var e;b.suggestionSelected.isZeroPrefix=((e=this.suggestionsResponse)==null?void 0:e.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",b);this.cancelActiveMention();_.go(this.hostElement,"yt-mention-inserted")}}};
_.f.getPositionTarget=function(a){return a&&a.getBrowserRangeObject()};
_.f.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.f.onFocusedSuggestionIdChanged=function(a){var b=_.qKa(this.hostElement)[0];b&&(a.detail.value?b.setAttribute("aria-activedescendant",a.detail.value):b.removeAttribute("aria-activedescendant"))};
_.f.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.f.logGELEvent=function(a,b){a={eventType:a,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};b&&(a=Object.assign(a,b));_.zl("userMentionAutoCompleteBoxEvent",a)};
var aM=T1b;aM.prototype.onDomChange=aM.prototype.onDomChange;aM.prototype.onUserMentionSuggestionSelected=aM.prototype.onUserMentionSuggestionSelected;aM.prototype.onServiceRequestError=aM.prototype.onServiceRequestError;aM.prototype.onServiceRequestCompleted=aM.prototype.onServiceRequestCompleted;aM.prototype.onServiceRequestSent=aM.prototype.onServiceRequestSent;aM.prototype.onInput=aM.prototype.onInput;_.U([_.H(_.BD),_.W("design:type",Object)],aM.prototype,"ironA11yKeysBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],aM.prototype,"suggestionsEndpoint",void 0);_.U([_.O(),_.W("design:type",Object)],aM.prototype,"suggestionsResponse",void 0);_.U([_.O(),_.W("design:type",Object)],aM.prototype,"activeMention",void 0);_.U([_.gr("#dropdown"),_.W("design:type",Object)],aM.prototype,"dropdown",void 0);_.U([_.gr("#iron-dropdown"),_.W("design:type",Object)],aM.prototype,"ironDropdown",void 0);
_.U([_.M("input"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],aM.prototype,"onInput",null);_.U([_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],aM.prototype,"onServiceRequestSent",null);_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],aM.prototype,"onServiceRequestCompleted",null);
_.U([_.M("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],aM.prototype,"onServiceRequestError",null);_.U([_.M("yt-user-mention-suggestion-selected"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],aM.prototype,"onUserMentionSuggestionSelected",null);
_.U([_.M("dom-change"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],aM.prototype,"onDomChange",null);aM=_.U([_.ur({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],aM);
_.S(aM,"yt-user-mention-autosuggest-input",function(){if(M1b===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;L1b===void 0&&(L1b=document.createElement("template"));var d=L1b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);M1b=a}a=M1b;return a},{mode:2});var bM=null;
_.qr({is:"ytd-commentbox",_template:function(){if(E1b!==void 0)return E1b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commentbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="identity-chip" hidden="[[computeHideIdentityChipRenderer_(isLoading, zeroStepChannelCreationRenderer)]]" class="style-scope ytd-commentbox"></div>\n<div id="thumbnail-input-row" class="style-scope ytd-commentbox">\n  <yt-img-shadow id="author-thumbnail" height="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" hidden="[[computeHideAuthorThumbnail_(isLoading, zeroStepChannelCreationRenderer)]]" thumbnail="[[data.authorThumbnail]]" width="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" class="style-scope ytd-commentbox">\n  </yt-img-shadow>\n  <div id="main" hidden="[[isLoading]]" class="style-scope ytd-commentbox">\n    <div id="divider-line" class="style-scope ytd-commentbox"></div>\n    \n    <div id="creation-box" class$="[[computeCreationBoxClass_(isInputFocus_)]] style-scope ytd-commentbox" hidden="[[hasPollOrQuizRendererInEditDialog_]]">\n      <tp-yt-paper-input-container id="input-container" focused="{{isInputFocus_}}" no-label-float="" use-v2-underline="" class="style-scope ytd-commentbox">\n        <div slot="after-input" class="paper-input-input style-scope ytd-commentbox">\n          <ytd-emoji-input id="emoji" emoji-manager="[[emojiManager]]" vertical-suggestions-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-commentbox">\n            <yt-user-mention-autosuggest-input slot="input" suggestions-endpoint="[[data.userMentionSuggestionsEndpoint]]" class="style-scope ytd-commentbox">\n              <yt-formatted-string id="contenteditable-textarea" slot="input" enable-content-editable="true" maxlength="10000" override-aria-label="[[getSimpleString(placeholderFormattedText_)]]" plaintext-only="true" required="true" split-lines="1" text="[[data.editableText]]" on-dragenter="preventDefault_" on-dragleave="preventDefault_" on-dragover="preventDefault_" on-drop="plaintextDrop_" on-focus="focus" on-input="onInput_" on-keyup="onKeyUp_" on-paste="onPaste_" class="style-scope ytd-commentbox"></yt-formatted-string>\n            </yt-user-mention-autosuggest-input>\n          </ytd-emoji-input>\n          <div id="external-links-banner" hidden="[[!isExternalLinksBannerDisplayed]]" class="style-scope ytd-commentbox">\n            <yt-formatted-string text="[[data.advancedTierFeatures.externalLinks.verificationBannerMessage]]" class="style-scope ytd-commentbox">\n            </yt-formatted-string>\n            <ytd-button-renderer id="verification-button" data="[[data.advancedTierFeatures.externalLinks.verificationButton.buttonRenderer]]" class="style-scope ytd-commentbox">\n            </ytd-button-renderer>\n          </div>\n        </div>\n        <ytd-backstage-dismissable-attachment id="dismissable-attachment" slot="after-input" attachment-preview="[[prefilledContent_]]" dismiss-button="[[data.attachmentDismissButton]]" hidden="[[computeHideDismissableAttachment_(prefilledAttachment_)]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-dismissable-attachment>\n        <div id="attachment-preview" slot="after-input" class="style-scope ytd-commentbox"></div>\n        <div id="image-select" class="paper-input-input style-scope ytd-commentbox" hidden="[[!hasImage_]]" slot="after-input"></div>\n        <ytd-backstage-video-link-attachment id="video-link-attachment" slot="after-input" hidden="[[!hasVideo_]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-video-link-attachment>\n      </tp-yt-paper-input-container>\n    </div>\n    <ytd-poll-attachment id="poll-attachment" data="[[data.pollEditorInfo]]" hidden="[[!hasPoll_]]" class="style-scope ytd-commentbox">\n    </ytd-poll-attachment>\n    <ytd-backstage-image-poll-editor-renderer id="image-poll-attachment" data="[[data.imagePollEditorRenderer.imagePollEditorRenderer]]" editor-info="[[data.imagePollEditorInfo]]" hidden="[[!hasImagePoll_]]" class="style-scope ytd-commentbox">\n    </ytd-backstage-image-poll-editor-renderer>\n    <ytd-backstage-quiz-editor-renderer id="quiz-attachment" editor-info="[[data.quizEditorInfo]]" hidden="[[!hasQuiz_]]" class="style-scope ytd-commentbox">\n  </ytd-backstage-quiz-editor-renderer>\n    <slot name="repost-preview" class="style-scope ytd-commentbox"></slot>\n    <div id="poll-preview-edit-dialog" hidden="[[!hasPollOrQuizRendererInEditDialog_]]" class="style-scope ytd-commentbox">\n      <yt-formatted-string text="[[data.editableText]]" class="style-scope ytd-commentbox"></yt-formatted-string>\n      <div id="poll-preview" class="style-scope ytd-commentbox"></div>\n    </div>\n    <div id="footer" class="style-scope ytd-commentbox">\n      <span id="emoji-button" on-tap="onEmojiButtonTap_" hidden="[[!isEmojiButtonDisplayed]]" class="style-scope ytd-commentbox"></span>\n      <div id="attachments" hidden="[[computeHideAttachmentButtons_(data, addedAttachment, prefilledAttachment_, errorMessage_)]]" class="style-scope ytd-commentbox">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-commentbox">\n          <ytd-button-renderer id="[[buttonId]]" data="[[getButtonRenderer(data, buttonId)]]" class="style-scope ytd-commentbox">\n          </ytd-button-renderer>\n        </template>\n      </div>\n      <div id="inline-scheduling-panel" hidden="[[!inlineSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n      <div id="footer-text" class="style-scope ytd-commentbox">\n        <yt-formatted-string id="footer-message" class$="[[computeFooterMessageClass_(alertMessage_, errorMessage_)]] style-scope ytd-commentbox" hidden="[[computeFooterMessageHidden_(alertMessage_, errorMessage_)]]" text="[[computeFooterMessage_(alertMessage_, errorMessage_)]]">\n        </yt-formatted-string>\n        <yt-formatted-string id="zero-step-footer-text" hidden="[[!zeroStepChannelCreationRenderer.footerText]]" text="[[zeroStepChannelCreationRenderer.footerText]]" class="style-scope ytd-commentbox">\n        </yt-formatted-string>\n      </div>\n      <div id="access-restrictions-selector" class="style-scope ytd-commentbox"></div>\n      <span id="char-count" hidden="[[!charLimit_]]" class="style-scope ytd-commentbox">[[charCount_]]/[[charLimit_]]</span>\n      <div id="buttons" class$="[[computeSubmitButtonClass_(dropdownSchedulePanel_, data.postOptionsMenu)]] style-scope ytd-commentbox">\n        <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-tap="onCancel_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <ytd-button-renderer id="submit-button" data="[[computeSubmitButton_(data, scheduleButton_)]]" disabled="[[submitButtonDisabled]]" overrides="[[computeSubmitButtonOverride(data, submitButtonDisabled, dropdownSchedulePanel_)]]" on-tap="onSubmit_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <div id="option-menu" hidden="[[dropdownSchedulePanel_]]" class="style-scope ytd-commentbox">\n          <ytd-menu-renderer data="[[data.postOptionsMenu.menuRenderer]]" disable-upgrade="[[!data.postOptionsMenu.menuRenderer]]" hidden="[[!data.postOptionsMenu.menuRenderer]]" icon="yt-icons:arrow_drop_down" no-ink-on-dropdown-button="" three-dot-button-override="[[computeThreeDotButtonOverride(submitButtonDisabled)]]" tonal-override="[[modern]]" class="style-scope ytd-commentbox">\n          </ytd-menu-renderer>\n        </div>\n      </div>\n    </div>\n    <div id="scheduling-panel" hidden="[[!dropdownSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n    <div id="emojis" hidden="[[!isEmojiPickerDisplayed]]" class="style-scope ytd-commentbox">\n      <span id="emoji-picker" class="style-scope ytd-commentbox"></span>\n    </div>\n  </div>\n  <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-commentbox"></tp-yt-paper-spinner-lite>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return E1b=a},
behaviors:[_.bLa.YtHostElementBehavior,_.BD,_.bH.YtActionHandlerBehavior,_.LG.YtComponentBehavior,_.aH.YtRendererstamperBehavior,_.mVb.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(a,b){return _.mp(a.entities,"aadcGuidelinesStateEntityPayload",b)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(a,b){return _.mp(a.entities,"commentboxStateEntity",b)},
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 _.PH}},
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:_.x("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.x("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",_.er(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(a){this.fire(a?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(a){this.set("submitButtonDisabled",void 0);this.clear();a&&this.computeIsEmojiButtonDisplayed_(a)&&(a=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&a.updateEmojiCategories()},
observePrefilledImage_:function(a,b,c){this.isValidPrefilledImage_(a,b,c)&&(this.prefilledAttachment_="image",this.prefilledImageData_=b,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(a,b){this.isValidPrefilledVideo_(a,b)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(a){a&&a.pollData&&a.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(a.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.sC();this.focus()},
detached:function(){document.removeEventListener("tap",_.er(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(a){a=a.detail;a=a.isCustomEmoji?a.shortcuts[0]:a.emojiId;var b=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(b,a);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var a=_.lv();if(a){a=a.getBrowserRangeObject();for(var b=a.commonAncestorContainer;b;){if(b===this.getEditableTextArea_())return a;b=b.parentNode}}a=this.getEditableTextArea_();a=_.PC(a,a.childNodes.length);a.select();return a.getBrowserRangeObject()},
insertTextWithEmojis_:function(a,b,c){(b=this.emojiManager.createDocumentFragment(b,!0,!1,c===void 0?!0:c))&&b.childNodes.length!==0&&(a.collapsed||a.deleteContents(),c=b.lastChild,a.insertNode(b),_.Qqb(c).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var a=_.lv();if(a){var b=a.JSC$9073_getStartNode(),c=a.JSC$9073_getEndNode();if(u_a(b)&&u_a(c)){var d=a.JSC$9073_getStartOffset(),e;if(_.vx&&b.nodeType===Node.ELEMENT_NODE&&(e=_.Ccb(b)))_.PC(e,0).select();else{e=iv(b)?b:_.Ef(b,iv);var g=iv(c)?c:_.Ef(c,iv);if(e||g)if(a.isCollapsed()){if(b.nodeType===Node.TEXT_NODE){a=!0;d===b.length&&(a=!1);if(bM==="end"||bM==="right")a=!1;b=b.parentNode;a=[].concat(_.Be(b.parentNode.childNodes)).indexOf(b)+(a?0:1);_.PC(b.parentNode,a).select()}}else e?
e.previousSibling&&e.previousSibling.length>0?_.QC(c,a.JSC$9073_getEndOffset(),e.previousSibling,e.previousSibling.length-1).select():(b=document.createTextNode("\u200b"),e.parentNode.insertBefore(b,e),_.QC(c,a.JSC$9073_getEndOffset(),b,0).select()):g&&(g.nextSibling&&g.nextSibling.length>0?_.QC(b,a.JSC$9073_getStartOffset(),g.nextSibling,1).select():(c=document.createTextNode("\u200b"),g.parentNode.insertBefore(c,g.nextSibling),_.QC(b,a.JSC$9073_getStartOffset(),c,c.length).select()));bM=null}}else bM=
null}else bM=null},
leftKeyPressed_:function(){bM="left"},
rightKeyPressed_:function(){bM="right"},
endKeyPressed_:function(){bM="end"},
maybeDeleteChip_:function(){var a=A_a(!0);if(a){var b=_.lv(),c=b.JSC$9073_getStartNode();b=b.JSC$9073_getStartOffset();_.KC(c,b,a,a.childNodes.length).select()}},
maybeBackspaceChip_:function(){var a=A_a(!1);if(a){var b=_.lv(),c=b.JSC$9073_getStartNode();b=b.JSC$9073_getStartOffset();_.KC(c,b,a,0).select()}},
maybeBackspaceChipWordMode_:function(a){var b=_.lv();if(b.isCollapsed()){var c=b.JSC$9073_getStartNode();b=b.JSC$9073_getStartOffset();var d=B_a(c,b,!0);d&&(_.KC(c,b,d,0).select(),document.execCommand("delete"),a.preventDefault(),a.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(a){var b=_.lv();if(b.isCollapsed()){var c=b.JSC$9073_getStartNode();b=b.JSC$9073_getStartOffset();var d=B_a(c,b,!1);d&&(_.KC(c,b,d,d.childNodes.length).select(),document.execCommand("delete"),a.preventDefault(),a.stopImmediatePropagation())}},
onTap_:function(a){if(!a.defaultPrevented&&(a.currentTarget.tagName==="YTD-COMMENTBOX"&&iv(a.target)&&a.preventDefault(),this.isEmojiPickerDisplayed)){var b=this.$$("#emojis"),c=this.$$("#emoji-button"),d=this.getEditableTextArea_();if((a=a.path?a.path:a.composedPath&&a.composedPath())&&!a.includes(b)&&!a.includes(d)&&!a.includes(c))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(a,b,c){return a==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&b!==void 0&&b.encryptedBlobId!==null&&b.sourceExternalVideoId!==null&&c!==void 0&&c.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(a,b){return a==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!b&&!!b.videoRenderer&&!!b.videoRenderer.videoId},
isValidPrefilledAttachment_:function(a,b,c){return this.isValidPrefilledImage_(a,b,c)||this.isValidPrefilledVideo_(a,c)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.x("enable_multi_image_post_creation")){var a=this.$$("ytd-backstage-multi-image-select-renderer");a&&a.hasImages()&&a.cancel()}else(a=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&a.cancel();(a=this.$["poll-attachment"])&&this.hasPoll_&&a.clearPollOptions();(a=this.$["image-poll-attachment"])&&this.hasImagePoll_&&a.resetPollOptions();(a=this.$["quiz-attachment"])&&this.hasQuiz_&&a.resetQuizOptions();
(a=this.$["video-link-attachment"])&&this.hasVideo_&&a.cancel();(a=this.$["access-restrictions-selector"].firstElementChild)&&a.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 _.E(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.E(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(a,b){a=w_a(a,this.emojiManager,b).cloneNode(!0);for(b=a.firstChild;b;)if(b.nodeType!==1)b=b.nextSibling;else switch(b.tagName){case "BR":var c=_.Py();_.Kcb(c,b);b=c.nextSibling;break;case "DIV":(c=b.lastChild)&&b.nextSibling&&_.Ty(_.Py(),c);b.previousSibling&&(b.previousSibling.nodeType===1||b.previousSibling.nodeType===3&&!b.previousSibling.textContent.endsWith("\n"))&&_.Sy(_.Py(),b);c&&c.nodeName==="BR"&&_.mg(c);c=b;b.hasChildNodes()?(b=b.firstChild,
_.Lcb(c)):(b=b.nextSibling,_.mg(c));break;default:b=b.nextSibling}return C_a(a)},
onAddImageError_:function(a){a.stopPropagation();this.errorMessage_=_.Up(a.detail)},
setTextAreaValue_:function(a){a||(a="");var b=this.getEditableFormattedString_();b.text="";this.getEditableTextArea_().innerText="";typeof a==="string"&&(a={runs:[{text:a}]});b.text=a},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();bM=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var a=this.getEditableTextArea_();a&&(_.PC(a,a.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.Ei("HTML_DIR")==="rtl"){var a=this.getEditableTextArea_(),b=this.getTextAreaValue()!==""?"auto":"rtl";a.setAttribute("dir",b)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var a;return IAa((a=this.$["quiz-attachment"])==null?void 0:a.getExplanationText())||IAa(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var a=null;if(this.isEmojiButtonDisplayed){var b=this.getInputRange_();b&&(a=this.emojiInput.retrieveTextBeforeRange(b))}this.insertText_(a,!0);this.updateCharCount_();this.setSubmitButton_();a=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=a.scrollHeight>a.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var a=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:a})},
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(a){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(a)},
onPasteEmoji_:function(a){a.preventDefault();a.stopImmediatePropagation();a=a.clipboardData.getData("text/plain");this.insertText_(a,!1,!1)},
insertText_:function(a,b,c){b=b===void 0?!1:b;c=c===void 0?!0:c;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&a){var d=this.getInputRange_().cloneRange();this.emojiManager&&d&&(b&&this.emojiInput.offsetStartOfRangeBy(d,a.length),this.insertTextWithEmojis_(d,a,c),v_a(this.getEditableTextArea_().lastChild)||(d=this.getInputRange_().cloneRange()),d&&(this.emojiInput.updateSuggestions(d,a),this.updateSuggestionOffset_(d)))}},
setSubmitButton_:function(){if(this.data){var a=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",b=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(a||b){var c=this.getTextAreaValue().trim();b=c===this.previousText_;c=!c||this.aboveCharLimit_;a&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(c=this.aboveCharLimit_);this.submitButtonDisabled=
b||c||!this.getTextLength();a&&_.x("enable_post_scheduling")&&(this.submitButtonDisabled=b&&!this.scheduledPublishTimeSec_||c)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.Vp,computeCreationBoxClass_:function(a){return a?"focused":"not-focused"},
computeFooterMessageClass_:function(a,b){return b?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(a,b){return b?b:a},
computeFooterMessageHidden_:function(a,b){return!b&&!a},
computePlaceholderText_:function(a,b,c){return(c==="video"||c==="image")&&(a==null?0:a.prefilledPlaceholderText)?a==null?void 0:a.prefilledPlaceholderText:b==="poll"||b==="image-poll"?a==null?void 0:a.pollPostPlaceholderText:b==="quiz"?a==null?void 0:a.quizPostPlaceholderText:b==="image"?a==null?void 0:a.imagePostPlaceholderText:a==null?void 0:a.placeholderText},
computeHideAttachmentButtons_:function(a,b,c,d){return a===void 0?!1:d&&this.getSimpleString(d)===this.getSimpleString(a.rateLimitErrorMessage)?!0:b!=="none"||c!=="none"||!a.videoLinkButton&&!a.pollButton&&!a.imagePollButton&&!a.quizButton&&!a.imageButton},
computeHideDismissableAttachment_:function(a){return a!=="image"&&a!=="video"},
computeHasVideo_:function(a){return a==="video"},
computeHasImage_:function(a){return a==="image"},
computeHasPoll_:function(a){return a==="poll"},
computeHasImagePoll_:function(a){return a==="image-poll"},
computeHasQuiz_:function(a){return a==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(a){return a&&a.backstageAttachment?a.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!a.backstageAttachment.quizRenderer&&!a.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(a){if(this.isValidPrefilledAttachment_(a.purpose,a.prefilledImageData,a.backstageAttachment))return a.backstageAttachment},
computeEditAttachment_:function(a){if(this.computePrefilledContent_(a)===void 0)return a.backstageAttachment},
computeAuthorThumbnailDimension_:function(a,b){return a&&!b?24:40},
computeImageUploadEndpoint_:function(a){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",a)},
computeRateLimitErrorCommands_:function(a){var b,c;return a==null?void 0:(b=a.advancedTierFeatures)==null?void 0:(c=b.rateLimit)==null?void 0:c.rateLimitCommands},
computeIsBackstageComment_:function(a){return!(!a||a!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(a){return this.get("submitButton.buttonRenderer.serviceEndpoint",a)||this.get("replyButton.buttonRenderer.serviceEndpoint",a)||this.get("postButton.buttonRenderer.serviceEndpoint",a)},
computeSubmitButtonOverride:function(){if(_.x("web_modern_buttons")){var a,b;return{segmentedPosition:this.dropdownSchedulePanel_||!((a=this.data)==null?0:(b=a.postOptionsMenu)==null?0:b.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.x("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(a,b){a=this.get("submitButton.buttonRenderer",a)||this.get("replyButton.buttonRenderer",a)||this.get("postButton.buttonRenderer",a);b&&(a=b);a&&(a=Object.assign({},a),a.serviceEndpoint=void 0,a.isDisabled=this.submitButtonDisabled);return a},
computeHasExternalLinksAccess_:function(a){if(_.x("enable_rfa_external_links")){var b,c,d;return(d=a==null?void 0:(b=a.advancedTierFeatures)==null?void 0:(c=b.externalLinks)==null?void 0:c.allowExternalLinks)!=null?d:!0}return!0},
computeIsEmojiButtonDisplayed_:function(a){return a.emojiButton&&a.emojiPicker&&a.emojiPicker.emojiPickerRenderer&&a.emojiPicker.emojiPickerRenderer.categories?a.emojiPicker.emojiPickerRenderer.categories.find(function(b){return b.emojiPickerCategoryRenderer?b.emojiPickerCategoryRenderer.emojiIds&&b.emojiPickerCategoryRenderer.emojiIds.length>0:b.emojiPickerUpsellCategoryRenderer?b.emojiPickerUpsellCategoryRenderer.emojis&&b.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(a){return a.charLimit?a.charLimit:null},
computeDropdownSchedulingPanel_:function(a,b){if(a==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&b)return b},
computeInlineSchedulingPanel_:function(a,b){if(a==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&b)return b},
computeHideAuthorThumbnail_:function(a,b){return a||this.computeUseIdentityChip_(b)},
computeHideIdentityChipRenderer_:function(a,b){return a||!this.computeUseIdentityChip_(b)},
computeUseIdentityChip_:function(a){return!!a&&!!a.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(a){var b,c,d,e;(a==null?0:(b=a.detail)==null?0:(c=b.endpoint)==null?0:c.ypcGetOffersEndpoint)||(a==null?0:(d=a.detail)==null?0:(e=d.endpoint)==null?0:e.ypcOffersEndpoint)?(a.stopPropagation(),_.mo(this,[a.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",a)&&(a.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(a){this.addedAttachment="video";this.selectedVideoId_=a.detail.videoId},
commentboxStateEntityChanged_:function(a){var b=this;(a==null?void 0:a.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(a==null?void 0:a.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){b.focus()})},
onYtServiceRequestSent_:function(a,b){if(b.actions)for(a=_.h(b.actions),b=a.next();!b.done;b=a.next())b.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(a){this.isLoading=!1;var b=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",a),c,d,e,g=a==null?void 0:(c=a.detail)==null?void 0:(d=c.data)==null?void 0:(e=d.actionResult)==null?void 0:e.commentboxStateEntityKey;if(b)this.errorMessage_=b;else if(g){var k;this.dismissData_=a==null?void 0:(k=a.detail)==null?void 0:k.data;this.commentboxStateKey_=g}else{this.clear();var m;this.fire("yt-commentbox-dismiss",a==null?void 0:(m=a.detail)==
null?void 0:m.data)}},
onYtServiceRequestError_:function(a){a.stopPropagation();this.isLoading=!1;var b,c;if(((b=this.data)==null?void 0:b.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((c=this.data)==null?void 0:c.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(b=this.get("detail.error.args",a)||[],b.length>1&&b[1].message){this.handlePostsServiceRequestError_(b[1].message);return}(a=this.get("detail.error.message",a))?this.errorMessage_=this.data.errorMessage||_.Up(a):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(a){if(_.x("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var b=_.h(this.rateLimitErrorCommands),c=b.next();!c.done;c=b.next())if(c=c.value,c.errorLabel===a){_.is(c.command,this.hostElement);return}this.errorMessage_=_.Up(a)},
submitIfNotBackstagePost_:function(a){if(!this.isBackstagePost)this.onSubmit_(a)},
onSubmit_:function(a){var b=this,c,d,e,g,k,m,n,r,t,u,w,A,C,G,J;return _.l(function(I){switch(I.nextAddress){case 1:a.stopPropagation();if(!b.serviceEndpoint||!b.isValidInput_())return I.return();if(b.shouldShowPostAadcNotice_())return b.showPostAadcNotice_(),I.return();if(b.shouldShowCommentAadcNotice_())return b.showCommentAadcNotice_(),I.return();if(!(b.$$("ytd-backstage-multi-image-select-renderer")&&b.hasImage_&&_.x("enable_multi_image_post_creation"))){I.jumpTo(2);break}c=b.$$("ytd-backstage-multi-image-select-renderer");
return _.p(I,c.getAllUploadStatuses(),3);case 3:d=I.yieldResult;if(!d)return I.return();e=_.h(d);for(g=e.next();!g.done;g=e.next())if(k=g.value,k.encryptedBlobId===void 0)return b.isLoading=!1,n=m=void 0,b.errorMessage_=(n=(m=b.imageUploadEndpoint_)==null?void 0:m.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?n:null,I.return();return I.return(b.submitForm_(void 0,void 0,void 0,void 0,c.images,b.taggedVideoId_));case 2:if(!b.hasImagePoll_||!b.$["image-poll-attachment"]){I.jumpTo(4);
break}return _.p(I,b.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:r=I.yieldResult;if(!r)return I.return();t=_.h(r);for(u=t.next();!u.done;u=t.next())if(w=u.value,!w.encryptedBlobId)return b.isLoading=!1,A=void 0,b.errorMessage_=(A=b.data.errorMessage)!=null?A:null,I.return();case 4:G=(C=b.$$("ytd-backstage-image-select-renderer"))&&C.uploadPromise(),J=b.getSharedPostId_(),G?G.then(function(){b.submitForm_.apply(b,_.Be(_.Id.apply(0,arguments)))}).catch(function(R){b.isLoading=!1;
b.errorMessage_=_.Up(R.message)}):b.selectedVideoId_?b.submitForm_(void 0,b.selectedVideoId_):b.prefilledAttachment_==="image"?b.submitForm_(b.prefilledImageData_.encryptedBlobId,void 0,void 0,b.prefilledImageData_.sourceExternalVideoId,void 0,b.taggedVideoId_):b.prefilledAttachment_==="video"?b.submitForm_(void 0,b.data.backstageAttachment.videoRenderer.videoId):J?b.submitForm_(void 0,void 0,J):b.taggedVideoId_!==void 0?b.submitForm_(void 0,void 0,void 0,void 0,void 0,b.taggedVideoId_):b.submitForm_(),
_.se(I)}})},
openSchedulingPanel:function(a){a&&a.scheduleButton&&a.scheduleButton.buttonRenderer&&(this.scheduleButton_=a.scheduleButton.buttonRenderer);a&&a.dateTimePicker&&this.set("data.schedulingDateTimePicker",a.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(a){a.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(a){a.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(a){a.stopPropagation();a.detail.alertMessage&&(this.alertMessage_=a.detail.alertMessage)},
onImageSelected_:function(a){a.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(a){a.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(a){a.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(a.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(a){a.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(a){var b=this.$["video-link-attachment"];b&&b.onLaunchVideoPicker(a)},
onAttachmentDismiss_:function(a){a.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"&&_.x("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.x("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 a;if(this.addedAttachment==="image-poll"&&((a=this.$["image-poll-attachment"])==null||!a.isValid()))return!1;var b;if(this.addedAttachment==="quiz"&&((b=this.$["quiz-attachment"])==null||!b.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;a=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(a=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")a=!0;return a||!!this.getTextAreaValue().trim()},
submitForm_:function(a,b,c,d,e,g){var k=this.getTextAreaValue().trim(),m={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&k===this.previousText_&&(k=void 0);k!==void 0&&(m.comment_text=k);this.isLoading=!0;g!=void 0&&(m.tagged_video_id=g);a?(m.image_blob_id=a,this.imagePreviewCoordinates_&&(m.image_preview_coordinates=this.imagePreviewCoordinates_)):b?m.attached_video_id=b:c?m.shared_post_id=c:e&&e.length>0&&(m.images_data=e.map(function(n){return{encryptedBlobId:n.encryptedBlobId,
previewCoordinates:n.previewCoordinates}}));
d&&(m.source_video_id=d);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(m.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(m.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(m.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.x("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(m.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.x("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(m.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.mo(this,[this.serviceEndpoint,m])},
onIsInputFocusChanged_:function(a,b){a?this.fire("yt-autonav-pause-focus"):b!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(a){var b=this.getEditableTextArea_();[].concat(_.Be(a.dataTransfer.items)).forEach(function(c){c.kind==="string"&&c.type.match("^text/plain")&&c.getAsString(function(d){b.appendChild(document.createTextNode(d))})});
a.preventDefault()},
preventDefault_:function(a){a.preventDefault()},
onSuggestionInsert_:function(a){this.insertTextWithEmojis_(a.detail.range,a.detail.text)},
onEmojiSuggestionClick_:function(a){this.emojiInput.insertSuggestion(a.detail)},
computeSubmitButtonClass_:function(a,b){return!b||a?"":"with-options"},
updateSuggestionOffset_:function(a){if(this.emojiInput&&_.E(this.emojiInput).querySelector("#dropdown")){var b=this.getEditableTextArea_().getBoundingClientRect().bottom,c=a.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(b-c)+5;b=this.getEditableTextArea_().getBoundingClientRect().left;a=a.getBoundingClientRect().left-b;_.E(this.emojiInput).querySelector("#dropdown").style.marginLeft=a+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(a){if(_.x("enable_post_scheduling")&&this.data&&this.data.purpose){a=a.detail;if(Math.floor(Date.now()/1E3)>=a)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var b=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(b)||b!==a?this.scheduledPublishTimeSec_=a:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=a;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var a=["image-button","image-poll-button","poll-button"];_.x("enable_quiz_creation")&&a.push("quiz-button");_.x("auto_convert_posts_video_tag")||a.push("video-link-button");return a},
getButtonRenderer:function(a,b){if(a)switch(b){case "video-link-button":var c;return((c=a.videoLinkButton)==null?void 0:c.buttonRenderer)||void 0;case "image-button":var d;return((d=a.imageButton)==null?void 0:d.buttonRenderer)||void 0;case "poll-button":var e;return((e=a.pollButton)==null?void 0:e.buttonRenderer)||void 0;case "image-poll-button":var g;return((g=a.imagePollButton)==null?void 0:g.buttonRenderer)||void 0;case "quiz-button":var k;return((k=a.quizButton)==null?void 0:k.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var a;return(a=this.data)==null||!a.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var a,b;return!((a=this.data)==null||!a.openAadcDialog)&&!((b=this.aadcGuidelinesState_)==null||!b.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.Ei("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var a;((a=this.data)==null?0:a.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.Ek("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(a){a.clickTrackingParams&&_.ms().clickCommand(a);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.ho(this,"yt-close-popup-action")},
onHideIdentityChip:function(a){var b;this.set("data.placeholderText",(b=a.hideIdentityChipAction)==null?void 0:b.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var U1b=function(){var a=_.P.apply(this,arguments)||this;a.isOpen=!1;a.modern=_.x("web_modern_buttons");a.roundedContainer=!0;a.dropdownButtonOverride=_.x("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;a.inPopupContainer=!1;a.isCommentboxLoading=!1;var b=["image-button","image-poll-button","poll-button"];_.x("enable_quiz_creation")&&b.push("quiz-button");_.x("auto_convert_posts_video_tag")||b.push("video-link-button");a.attachmentButtonIds=b;a.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 a};
_.z(U1b,_.P);_.f=U1b.prototype;_.f.computeButtonOverride=function(){var a;return((a=this.data)==null?0:a.postOptionsMenu)&&_.x("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.f.configureRendererStamper=function(){var a={"data.accessRestrictionsSelector":{id:"access-restrictions-selector",mapping:{dropdownRenderer:{component:"ytd-flat-dropdown-renderer",classListBinding:"[[dropdownRendererClasses]]"}}},"data.pollButton":{id:"poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imagePollButton":{id:"image-poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imageButton":{id:"image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.quizButton":{id:"quiz-button",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.postOptionsMenu":{id:"option-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:arrow_drop_down"},properties:{tonalOverride:"[[modern]]",threeDotButtonOverride:"[[dropdownButtonOverride]]"}}}}};_.x("auto_convert_posts_video_tag")||(a["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return a};
_.f.ready=function(){var a=this,b=_.E(this.hostElement).querySelector("#placeholder-area"),c=function(d){a.onOpen(d)};
b.addEventListener("tap",c);b.addEventListener("keypress",c)};
_.f.showButtonEduTooltip=function(){var a,b,c,d,e,g,k;if(_.x("enable_quiz_creation")&&((a=this.data)==null?0:(b=a.quizButton)==null?0:(c=b.buttonRenderer)==null?0:(d=c.hint)==null?0:(e=d.hintRenderer)==null?0:(g=e.content)==null?0:(k=g.bubbleHintRenderer)==null?0:k.text)&&(_.hG.getInstance(),a=iG(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(a==null?void 0:
a.length)>0)){this.ytComponentBehavior.resolveCommand(a[0],{form:{element:this.quizButton}});return}var m;if((m=this.data)==null?0:m.imagePollButtonTooltip)if(_.hG.getInstance(),m=iG(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(m==null?void 0:m.length)>0){this.ytComponentBehavior.resolveCommand(m[0],{form:{element:this.imagePollButton}});return}var n;_.x("enable_multi_image_post_creation")&&
((n=this.data)==null?0:n.multiImageButtonTooltip)&&(_.hG.getInstance(),n=iG(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(n==null?void 0:n.length)>0&&this.ytComponentBehavior.resolveCommand(n[0],{form:{element:this.imageButton}}))};
_.f.onCreatePollAction=function(a){_.y(a,qzb)&&(this.JSC$13108_commentbox.addedAttachment="poll",this.openDialog())};
_.f.onAddVideoLinkAction=function(a){if(_.y(a,pzb))this.JSC$13108_commentbox.onAddVideoLink(a)};
_.f.onShowSchedulingPanelCommand=function(a){(a=_.y(a,Syb))&&this.openSchedulingPanel(a)};
_.f.onCreateImagePollCommand=function(a){_.y(a,VDb)&&(this.JSC$13108_commentbox.openImagePollComponent(),this.openDialog())};
_.f.onCreateQuizCommand=function(a){_.y(a,WDb)&&(this.JSC$13108_commentbox.openQuizComponent(),this.openDialog())};
_.f.openSchedulingPanel=function(a){_.x("enable_post_scheduling")&&(this.openDialog(),this.JSC$13108_commentbox.openSchedulingPanel(a))};
_.f.onCreateCommentAction=function(a){this.get("createCommentAction.contents",a)&&(this.JSC$13108_commentbox.clear(),this.closeDialog())};
_.f.onOpen=function(a){a instanceof KeyboardEvent&&a.type==="keypress"&&a.keyCode!==13&&a.keyCode!==32||(this.data.prepareAccountEndpoint?_.go(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.f.onYtCommentboxDismiss=function(){this.closeDialog()};
_.f.onYtCommentboxLoadingStart=function(a){a.stopPropagation();this.isCommentboxLoading=!0};
_.f.onYtCommentboxLoadingEnd=function(a){a.stopPropagation();this.isCommentboxLoading=!1};
_.f.onYtVideoLinkButtonCancel=function(a){a.stopPropagation();this.onOpen(a)};
_.f.onYtVideoLinkSelected=function(a){a.stopPropagation();this.onOpen(a)};
_.f.onIronSelect=function(a){a.stopPropagation();a.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=a.detail.item.value&&(this.accessRestriction?(this.accessRestriction=a.detail.item.value,this.onOpen(a)):this.accessRestriction=a.detail.item.value)};
_.f.onYtNavigate=function(a){this.get("detail.endpoint.backstageImageUploadEndpoint",a)&&(this.JSC$13108_commentbox.addedAttachment="image",this.JSC$13108_commentbox.submitButtonDisabled=!0,this.onOpen(a))};
_.f.onRequestSent=function(a){if(_.x("web_button_rework"))for(var b=_.h(a.detail),c=b.next();!c.done;c=b.next())_.y(c.value,gDb)&&(this.JSC$13108_commentbox.addedAttachment="image",this.JSC$13108_commentbox.submitButtonDisabled=!0,this.onOpen(a))};
_.f.openDialog=function(){this.JSC$13108_commentbox.accessRestriction=this.accessRestriction;this.isOpen=!0;this.JSC$13108_commentbox.focus()};
_.f.onPopupClosed=function(){_.hG.getInstance()};
_.f.computeCreationDisabled=function(a){return!!a};
_.f.computeIsCreationDialog=function(a){return!!a&&a==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.f.computeDisabledPostButton=function(a){if(!a)return null;a.isDisabled=!0;return a};
_.f.computeIsCreationDialogWithHeader=function(a){return!this.inPopupContainer&&!!a&&!!a.authorText&&a.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.f.computeIsHeaderHidden=function(a,b){return!a||b};
_.f.computeDropdownRendererClasses=function(a){return a?["text-secondary-style"]:[]};
_.f.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var a=_.E(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;a&&a.reset()};
var cM=U1b;cM.prototype.onPopupClosed=cM.prototype.onPopupClosed;cM.prototype.onRequestSent=cM.prototype.onRequestSent;cM.prototype.onYtNavigate=cM.prototype.onYtNavigate;cM.prototype.onIronSelect=cM.prototype.onIronSelect;cM.prototype.onYtVideoLinkSelected=cM.prototype.onYtVideoLinkSelected;cM.prototype.onYtVideoLinkButtonCancel=cM.prototype.onYtVideoLinkButtonCancel;cM.prototype.onYtCommentboxLoadingEnd=cM.prototype.onYtCommentboxLoadingEnd;cM.prototype.onYtCommentboxLoadingStart=cM.prototype.onYtCommentboxLoadingStart;
cM.prototype.onYtCommentboxDismiss=cM.prototype.onYtCommentboxDismiss;cM.prototype.showButtonEduTooltip=cM.prototype.showButtonEduTooltip;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],cM.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],cM.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],cM.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],cM.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],cM.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],cM.prototype,"isOpen",void 0);_.U([_.O({computed:"computeButtonOverride(data)"}),_.W("design:type",Object)],cM.prototype,"buttonOverride",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],cM.prototype,"modern",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],cM.prototype,"roundedContainer",void 0);_.U([_.O(),_.W("design:type",Object)],cM.prototype,"dropdownButtonOverride",void 0);_.U([_.O({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.W("design:type",Boolean)],cM.prototype,"creationDisabled",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],cM.prototype,"enableCreationBox",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.W("design:type",Boolean)],cM.prototype,"isCreationDialog",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],cM.prototype,"inPopupContainer",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.W("design:type",Boolean)],cM.prototype,"isCreationDialogWithHeader",void 0);_.U([_.O(),_.W("design:type",Object)],cM.prototype,"accessRestriction",void 0);
_.U([_.O({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.W("design:type",Array)],cM.prototype,"dropdownRendererClasses",void 0);_.U([_.O(),_.W("design:type",Object)],cM.prototype,"isCommentboxLoading",void 0);_.U([_.O(),_.W("design:type",Array)],cM.prototype,"attachmentButtonIds",void 0);_.U([_.gr("#image-button"),_.W("design:type",HTMLElement)],cM.prototype,"imageButton",void 0);
_.U([_.gr("#image-poll-button"),_.W("design:type",HTMLElement)],cM.prototype,"imagePollButton",void 0);_.U([_.gr("#quiz-button"),_.W("design:type",HTMLElement)],cM.prototype,"quizButton",void 0);_.U([_.gr("#commentbox"),_.W("design:type",Object)],cM.prototype,"JSC$13108_commentbox",void 0);_.U([_.N("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],cM.prototype,"showButtonEduTooltip",null);
_.U([_.M("yt-commentbox-dismiss"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],cM.prototype,"onYtCommentboxDismiss",null);_.U([_.M("yt-commentbox-loading-start"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],cM.prototype,"onYtCommentboxLoadingStart",null);
_.U([_.M("yt-commentbox-loading-end"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],cM.prototype,"onYtCommentboxLoadingEnd",null);_.U([_.M("yt-video-link-button-cancel"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],cM.prototype,"onYtVideoLinkButtonCancel",null);
_.U([_.M("yt-video-link-selected"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],cM.prototype,"onYtVideoLinkSelected",null);_.U([_.M("iron-select"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],cM.prototype,"onIronSelect",null);_.U([_.M("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],cM.prototype,"onYtNavigate",null);
_.U([_.M("yt-service-request-sent-button-renderer"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],cM.prototype,"onRequestSent",null);_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],cM.prototype,"onPopupClosed",null);cM=_.U([_.Q({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],cM);
_.S(cM,"ytd-backstage-post-dialog-renderer",function(){if(E0b!==void 0)return E0b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="disabled-message" hidden="[[!creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="disabled-message-annotation" class="style-scope ytd-backstage-post-dialog-renderer">\n  [[getSimpleString(data.postCreationDisabledAnnotation)]]\n  </div>\n  <yt-formatted-string id="disabled-message-text" text="[[data.postCreationDisabledText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  </yt-formatted-string>\n</div>\n<div hidden="[[creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="dialog-header" hidden="[[computeIsHeaderHidden(isCreationDialogWithHeader, isCommentboxLoading)]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="header-author-thumbnail" thumbnail="[[data.authorThumbnail]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="header-channel-name" text="[[data.authorText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="header-visibility-label" text="[[data.visibilityLabel]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n    <div id="access-restrictions-selector" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n    <yt-formatted-string id="header-default-visibility" hidden="[[!data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" text="[[data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <div id="main" class="style-scope ytd-backstage-post-dialog-renderer">\n      <div id="placeholder-area" class="style-scope ytd-backstage-post-dialog-renderer">\n        <yt-formatted-string id="commentbox-placeholder" role="button" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <div id="attachments" class="style-scope ytd-backstage-post-dialog-renderer">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-backstage-post-dialog-renderer">\n          <span id="[[buttonId]]" class="style-scope ytd-backstage-post-dialog-renderer"></span>\n        </template>\n        <div id="post-buttons-wrapper" class="style-scope ytd-backstage-post-dialog-renderer">\n          <ytd-button-renderer id="post-button" data="[[computeDisabledPostButton(data.postButton.buttonRenderer)]]" hidden="[[!isCreationDialog]]" overrides="[[buttonOverride]]" class="style-scope ytd-backstage-post-dialog-renderer">\n          </ytd-button-renderer>\n          <div id="option-menu" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-backstage-post="" is-creation-box="[[isCreationDialog]]" is-popup-box="[[inPopupContainer]]" is-post-creation-dialog-v2="[[isCreationDialogWithHeader]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <div slot="repost-preview" hidden="[[!data.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      <slot name="repost-preview" class="style-scope ytd-backstage-post-dialog-renderer"></slot>\n    </div>\n  </ytd-commentbox>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return E0b=a},{mode:1});var V1b;var W1b;var X1b=function(){return _.P.apply(this,arguments)||this};
_.z(X1b,_.P);_.f=X1b.prototype;_.f.computeHeartButtonStyle=function(a){return(a==null?0:a.styleType)?a.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.f.onYtButtonTap=function(){if(this.data.isEnabled){var a=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(a=this.getEndpoint(a))&&_.mo(this.hostElement,[a])}else(a=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(a)};
_.f.toggle=function(a){this.set("data.isHearted",a!==void 0?a:!this.data.isHearted)};
_.f.getEndpoint=function(a){var b,c=(b=this.data)==null?void 0:b.heartEndpoint,d;b=(d=this.data)==null?void 0:d.unheartEndpoint;if(c&&b)return a?b:c};
_.f.computeButtonAccessibility=function(a,b){var c,d,e=a==null?void 0:(c=a.heartedAccessibility)==null?void 0:(d=c.accessibilityData)==null?void 0:d.label,g,k;a=a==null?void 0:(g=a.unheartedAccessibility)==null?void 0:(k=g.accessibilityData)==null?void 0:k.label;return b?e:a};
_.Vm.Object.defineProperties(X1b.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 a;return _.x("kevlar_system_icons")&&!((a=this.data)==null||!a.isHearted)}}});
var dM=X1b;dM.prototype.onYtButtonTap=dM.prototype.onYtButtonTap;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],dM.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.YH),_.W("design:type",Object)],dM.prototype,"ytdOpenPopupBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],dM.prototype,"data",void 0);_.U([_.K("data.isHearted"),_.W("design:type",Object),_.W("design:paramtypes",[])],dM.prototype,"heartTooltip",null);
_.U([_.K("data.isHearted"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],dM.prototype,"iconFilled",null);_.U([_.O({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.W("design:type",String)],dM.prototype,"buttonAccessibility",void 0);_.U([_.O({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.W("design:type",String)],dM.prototype,"heartButtonStyle",void 0);
_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],dM.prototype,"onYtButtonTap",null);dM=_.U([_.Q({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],dM);
_.S(dM,"ytd-creator-heart-renderer",function(){if(W1b!==void 0)return W1b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return W1b=a},{mode:1});var Y1b=function(){var a=_.P.apply(this,arguments)||this;a.hasCreatorReply=!1;a.buttonOverrides={size:"S",iconPosition:"icon-only"};a.replyButtonOverrides={size:"S",type:"text"};a.forceIconButton=!_.x("web_modern_buttons");a.modern=_.x("web_modern_buttons");a.buttonTooltipPosition="bottom";a.systemIcons=_.x("kevlar_system_icons");a.replyDialog=null;return a};
_.z(Y1b,_.P);_.f=Y1b.prototype;
_.f.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]]"}}}}}};
_.f.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.f.dataChange=function(){this.replyDialog&&_.E(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var a,b,c;this.isLiked=this.systemIcons&&!!((a=this.data)==null?0:(b=a.likeButton)==null?0:(c=b.toggleButtonRenderer)==null?0:c.isToggled)};
_.f.computeShowVoteCountBeginning=function(a,b){return a===void 0||b===void 0?!0:a.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!b&&this.ytRendererBehavior.getSimpleString(b)!=="0"};
_.f.computeShowVoteCountEnd=function(a,b){return a===void 0||b===void 0?!0:a.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!b&&this.ytRendererBehavior.getSimpleString(b)!=="0"};
_.f.computeShowCommentCount=function(a,b){return a===void 0||b===void 0?!0:a.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!b&&this.ytRendererBehavior.getSimpleString(b)!=="0"};
_.f.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.f.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.f.showReplyDialog=function(a){a&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.E(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=a,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.f.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.f.onRequestSent=function(a){if(_.x("web_button_rework")){a=_.h(a.detail);for(var b=a.next();!b.done;b=a.next())(b=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",b.value))&&this.showReplyDialog(b)}};
_.f.onYtNavigate=function(a){var b,c;(a=(b=_.y(a.detail.endpoint,_.iDb))==null?void 0:(c=b.dialog)==null?void 0:c.commentReplyDialogRenderer)&&this.showReplyDialog(a)};
_.f.onYtServiceRequestSent=function(a,b){a.stopPropagation();if(b.actions)for(a=0;a<b.actions.length;a++){var c=_.y(b.actions[a],tzb);c&&this.handleUpdateCommentVoteAction(c)}};
_.f.handleUpdateCommentVoteAction=function(a){this.voteCount=a.voteCount||_.Up("0");a.voteStatus==="LIKE"?this.JSC$13120_ytdDislikeToggleButtonRenderer.toggle(!1):a.voteStatus==="DISLIKE"?this.JSC$13120_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$13120_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$13120_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.f.computeReplyButtonHidden=function(a){return a};
_.f.computeReplyButtonBeginning=function(a){return(a==null?0:a.replyButton)&&a.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?a.replyButton:void 0};
_.f.computeReplyButtonEnd=function(a){return(a==null?0:a.replyButton)&&a.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?a.replyButton:void 0};
_.f.computeActionButtonStyle=function(a){return(a==null?0:a.style)?a.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.f.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.f.onYtToggleButton=function(a){var b,c;this.isLiked=this.systemIcons&&!!((b=a.detail)==null?0:(c=b.actions)==null?0:c.like)};
var eM=Y1b;eM.prototype.onYtToggleButton=eM.prototype.onYtToggleButton;eM.prototype.onButtonTooltipPositionChanged=eM.prototype.onButtonTooltipPositionChanged;eM.prototype.onYtServiceRequestSent=eM.prototype.onYtServiceRequestSent;eM.prototype.onYtNavigate=eM.prototype.onYtNavigate;eM.prototype.onRequestSent=eM.prototype.onRequestSent;eM.prototype.onYtCommentboxDismiss=eM.prototype.onYtCommentboxDismiss;eM.prototype.dataChange=eM.prototype.dataChange;
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],eM.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],eM.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],eM.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],eM.prototype,"voteCount",void 0);_.U([_.O(),_.W("design:type",Object)],eM.prototype,"commentCount",void 0);_.U([_.O(),_.W("design:type",Object)],eM.prototype,"replyThumbnail",void 0);
_.U([_.O(),_.W("design:type",Object)],eM.prototype,"hasCreatorReply",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],eM.prototype,"enableCreationBox",void 0);_.U([_.O({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.W("design:type",String)],eM.prototype,"actionButtonsStyle",void 0);_.U([_.O({computed:"computeReplyButtonBeginning(data)"}),_.W("design:type",Object)],eM.prototype,"replyButtonBeginning",void 0);
_.U([_.O({computed:"computeReplyButtonEnd(data)"}),_.W("design:type",Object)],eM.prototype,"replyButtonEnd",void 0);_.U([_.O(),_.W("design:type",Object)],eM.prototype,"buttonOverrides",void 0);_.U([_.O(),_.W("design:type",Object)],eM.prototype,"replyButtonOverrides",void 0);_.U([_.O(),_.W("design:type",Object)],eM.prototype,"forceIconButton",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],eM.prototype,"useCommentIcon",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],eM.prototype,"modern",void 0);_.U([_.O(),_.W("design:type",Object)],eM.prototype,"buttonTooltipPosition",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],eM.prototype,"systemIcons",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],eM.prototype,"isLiked",void 0);_.U([_.gr("ytd-button-renderer"),_.W("design:type",Object)],eM.prototype,"ytdReplyButtonRenderer",void 0);
_.U([_.gr("#like-button"),_.W("design:type",Object)],eM.prototype,"JSC$13120_ytdLikeToggleButtonRenderer",void 0);_.U([_.gr("#dislike-button"),_.W("design:type",Object)],eM.prototype,"JSC$13120_ytdDislikeToggleButtonRenderer",void 0);_.U([_.gr("#reply-dialog"),_.W("design:type",HTMLElement)],eM.prototype,"replyDialogElement",void 0);_.U([_.gr("#reply-button"),_.W("design:type",HTMLElement)],eM.prototype,"replyButtonElement",void 0);
_.U([_.gr("#reply-button-end"),_.W("design:type",HTMLElement)],eM.prototype,"replyButtonEndElement",void 0);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],eM.prototype,"dataChange",null);_.U([_.M("yt-commentbox-dismiss"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],eM.prototype,"onYtCommentboxDismiss",null);
_.U([_.M("yt-service-request-sent-button-renderer"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],eM.prototype,"onRequestSent",null);_.U([_.M("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],eM.prototype,"onYtNavigate",null);
_.U([_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Ot]),_.W("design:returntype")],eM.prototype,"onYtServiceRequestSent",null);_.U([_.N("buttonTooltipPosition"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],eM.prototype,"onButtonTooltipPositionChanged",null);_.U([_.M("yt-toggle-button"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],eM.prototype,"onYtToggleButton",null);
eM=_.U([_.Q({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],eM);
_.S(eM,"ytd-comment-action-buttons-renderer",function(){if(V1b!==void 0)return V1b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return V1b=a},{mode:1});var Z1b;var $1b=function(){return _.P.apply(this,arguments)||this};
_.z($1b,_.P);$1b.prototype.focus=function(){_.E(this.hostElement).querySelector("#commentbox").focus()};
var fM=$1b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],fM.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],fM.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],fM.prototype,"zeroStepChannelCreationRenderer",void 0);fM=_.U([_.Q({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],fM);
_.S(fM,"ytd-comment-dialog-renderer",function(){if(Z1b!==void 0)return Z1b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Z1b=a},{mode:1});var a2b;var b2b=function(){return _.P.apply(this,arguments)||this};
_.z(b2b,_.P);var gM=b2b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],gM.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],gM.prototype,"data",void 0);gM=_.U([_.Q({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],gM);
_.S(gM,"ytd-comment-inline-thumbnail-renderer",function(){if(a2b!==void 0)return a2b;var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return a2b=a},{mode:1});var c2b;var d2b;var e2b=function(){var a=_.P.apply(this,arguments)||this;a.isOpen=!1;return a};
_.z(e2b,_.P);_.f=e2b.prototype;_.f.dataChanged=function(){this.isOpen=!1};
_.f.onTap=function(){this.data&&(this.data.navigationEndpoint?_.go(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.f.focus=function(){this.JSC$13130_commentbox.focus()};
_.f.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.f.openDialog=function(){this.isOpen=!0;this.JSC$13130_commentbox.focus();this.JSC$13130_commentbox.maybeHeightChanged()};
var hM=e2b;hM.prototype.onYtCommentboxDismiss=hM.prototype.onYtCommentboxDismiss;hM.prototype.dataChanged=hM.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],hM.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],hM.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],hM.prototype,"isOpen",void 0);_.U([_.gr("#commentbox"),_.W("design:type",Object)],hM.prototype,"JSC$13130_commentbox",void 0);
_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],hM.prototype,"dataChanged",null);_.U([_.M("yt-commentbox-dismiss"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],hM.prototype,"onYtCommentboxDismiss",null);hM=_.U([_.Q({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],hM);
_.S(hM,"ytd-comment-reply-dialog-renderer",function(){if(d2b!==void 0)return d2b;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return d2b=a},{mode:1});var f2b;var g2b=function(){return _.P.apply(this,arguments)||this};
_.z(g2b,_.P);_.Vm.Object.defineProperties(g2b.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var a,b,c=(a=this.data)==null?void 0:(b=a.icon)==null?void 0:b.iconType;return c?"yt-icons:"+c.toLowerCase():null}}});
var iM=g2b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],iM.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],iM.prototype,"data",void 0);_.U([_.O(),_.K("data.icon"),_.W("design:type",Object),_.W("design:paramtypes",[])],iM.prototype,"icon",null);iM=_.U([_.Q({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],iM);
_.S(iM,"ytd-pinned-comment-badge-renderer",function(){if(f2b!==void 0)return f2b;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return f2b=a},{mode:1});var h2b;var i2b={},j2b={input:!0,meta:!0,br:!0,link:!0,img:!0},jM=null;i2b.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(){jM==null&&(jM=document.createElement("tp-yt-paper-tooltip"),jM.offset=8,jM.fitToVisibleBounds=!0)},
onMouseOver_:function(a){if(a=_.Ef(a.target,function(e){return e==this||e.getAttribute&&e.getAttribute("shared-tooltip-text")}.bind(this),!0)){var b=a.getAttribute("shared-tooltip-text");
if(b){var c=this,d=null;a!=this&&(a.tagName.toLowerCase()in j2b?c=a.parentElement:c=a,a.id&&(d=a.id));this.polymerController.createTooltipIfRequired_();if(jM.parentElement!=c||jM.for!=d)(0,_.br)(jM).textContent=b,_.E(c).appendChild(jM),jM.for=d,jM.animationDelay=this.polymerController.sharedTooltipAnimationDelay,jM.position=this.polymerController.sharedTooltipPosition}}}};var kM=function(){return _.P.apply(this,arguments)||this};
_.z(kM,_.P);kM.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]]"}}}}}};
kM.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img")};
kM.prototype.colorChanged=function(){var a,b,c,d=(a=this.data)==null?void 0:(b=a.color)==null?void 0:(c=b.basicColorPaletteData)==null?void 0:c.foregroundBodyColor;d&&(this.rgbBadgeColor=_.Bq(d));_.E(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
kM.prototype.tooltipChanged=function(){var a;((a=this.data)==null?0:a.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
var lM=kM;lM.prototype.tooltipChanged=lM.prototype.tooltipChanged;lM.prototype.colorChanged=lM.prototype.colorChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],lM.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],lM.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(i2b.YtSharedTooltipBehavior),_.W("design:type",Object)],lM.prototype,"ytSharedTooltipBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],lM.prototype,"data",void 0);_.U([_.O({value:"#4285F4"}),_.W("design:type",String)],lM.prototype,"rgbBadgeColor",void 0);_.U([_.N("data.color"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],lM.prototype,"colorChanged",null);_.U([_.N("data.tooltip"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],lM.prototype,"tooltipChanged",null);
lM=_.U([_.Q({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],lM);
_.S(lM,"ytd-sponsor-comment-badge-renderer",function(){if(h2b!==void 0)return h2b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return h2b=a},{mode:1});var k2b;var l2b;var mM=function(){var a=_.P.apply(this,arguments)||this;a.defaultIconToFilled=!_.x("kevlar_fill_comment_chip_icon_killswitch");return a};
_.z(mM,_.P);mM.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
mM.prototype.dataChanged=function(){if(this.data){var a,b;((a=this.data.chipColorPalette)==null?0:a.backgroundColor)&&((b=this.data.chipColorPalette)==null?0:b.foregroundTitleColor)&&_.dr(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.Cq(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.Cq(this.data.chipColorPalette.foregroundTitleColor)});var c;((c=this.data)==null?0:c.command)?(_.dr(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.dr(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}};
mM.prototype.onTap=function(){var a;if(this.data&&(a=this.data)!=null&&a.command){var b;this.ytComponentBehavior.resolveCommand((b=this.data)==null?void 0:b.command)}};
mM.prototype.getIconSize=function(){return _.x("kevlar_fill_comment_chip_icon_killswitch")?24:12};
var nM=mM;nM.prototype.onTap=nM.prototype.onTap;nM.prototype.dataChanged=nM.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],nM.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],nM.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.BD),_.W("design:type",Object)],nM.prototype,"ironA11yKeysBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],nM.prototype,"data",void 0);
_.U([_.O(),_.W("design:type",Object)],nM.prototype,"basePriceText",void 0);_.U([_.O(),_.W("design:type",Object)],nM.prototype,"chipIcon",void 0);_.U([_.O(),_.W("design:type",Object)],nM.prototype,"defaultIconToFilled",void 0);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],nM.prototype,"dataChanged",null);_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],nM.prototype,"onTap",null);
nM=_.U([_.ur({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],nM);
_.S(nM,"yt-pdg-comment-chip-renderer",function(){if(l2b===void 0){var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;k2b===void 0&&(k2b=document.createElement("template"));var d=k2b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);l2b=a}a=l2b;return a},{mode:2});var m2b=function(){var a=_.P.apply(this,arguments)||this;a.isReply=!1;a.isCreatorReply=!1;a.useSmallAvatarsEngagementPanelOnly=_.x("small_avatars_for_comments_ep");a.useSmallAvatars=_.x("small_avatars_for_comments");a.editDialog=null;a.hasPendingRequest=!1;a.linkedBadgeEl=null;a.shouldShowReadMoreInitially=!1;a.JSC$13150_spinnerEl=null;a.attachedResolver=_.Tt();return a};
_.z(m2b,_.P);_.f=m2b.prototype;
_.f.configureRendererStamper=function(){return{"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.authorCommentBadge":{id:"author-comment-badge",mapping:{authorCommentBadgeRenderer:"ytd-author-comment-badge-renderer"}},"data.pinnedCommentBadge":{id:"pinned-comment-badge",mapping:{pinnedCommentBadgeRenderer:"ytd-pinned-comment-badge-renderer"}},"data.sponsorCommentBadge":{id:"sponsor-comment-badge",mapping:{sponsorCommentBadgeRenderer:"ytd-sponsor-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",
mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer",commentDialogRenderer:"ytd-comment-dialog-renderer",commentReplyDialogRenderer:"ytd-comment-reply-dialog-renderer"}}}};
_.f.contentTextChanged=function(){var a;(a=this.expander)==null||a.reset()};
_.f.attached=function(){this.attachedResolver.resolve()};
_.f.detached=function(){this.editDialog=null};
_.f.dataChanged=function(){if(this.data&&(this.hasPendingRequest=!1,this.editDialog=null,this.linkedBadgeEl&&(this.linkedCommentBadge.removeChild(this.linkedBadgeEl),this.linkedBadgeEl=null),this.data.hiddenByDefault&&(this.hostElement.hidden=!0),this.data.actions))for(var a=0,b=this.data.actions.length;a<b;a++)this.openEditDialog(_.y(this.data.actions[a],szb))};
_.f.hasPendingRequestChanged=function(){!this.hasPendingRequest||this.editDialog||this.JSC$13150_spinnerEl||(this.JSC$13150_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.E(this.hostElement).appendChild(this.JSC$13150_spinnerEl));this.JSC$13150_spinnerEl&&(this.JSC$13150_spinnerEl.active=this.hasPendingRequest)};
_.f.backgroundExtendedDetailsChanged=function(){var a,b;((a=this.data)==null?0:(b=a.backgroundExtendedDetails)==null?0:b.backgroundColorArgb)?(a={"--ytd-comment-paid-background-color":_.Cq(this.data.backgroundExtendedDetails.backgroundColorArgb),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"},_.dr(this.hostElement,a)):_.dr(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.f.linkedCommentBadgeChanged=function(){var a=this,b;if((b=this.data)!=null&&b.linkedCommentBadge){this.linkedBadgeEl||(this.linkedBadgeEl=document.createElement("ytd-badge-supported-renderer"));this.linkedBadgeEl.topStandaloneBadge=this.data.linkedCommentBadge;this.linkedCommentBadge.appendChild(this.linkedBadgeEl);if(!_.x("disable_pause_on_linked_comment_nav"))try{var c=_.bu();c&&c.pause()}catch(d){}this.attachedResolver.promise.then(this.afterNextRender).then(function(){var d,e=(d=_.v().resolve(_.Wi(_.$t)))==
null?void 0:d.getCurrentPage();e&&e.getScrollTop()===0&&e.setScrollTop(a.hostElement.offsetTop+a.hostElement.offsetHeight-document.documentElement.clientHeight+32)})}};
_.f.onShow=function(){_.Ko("cmv",void 0,"wn_comments")};
_.f.onYtNavigate=function(a){a=a.detail.endpoint;this.openEditDialog(_.y(a,_.jDb)||_.y(a,_.kDb))};
_.f.onYtCommentboxDismiss=function(){this.editDialog=null;_.dr(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.f.onYtCommentboxResize=function(a){var b;(a==null?0:(b=a.detail)==null?0:b.height)&&_.dr(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":a.detail.height+"px"})};
_.f.onYtServiceRequestSent=function(a,b){a.stopPropagation();a=b==null?void 0:b.endpoint;b=_.x("enable_profile_cards_on_comments")&&(_.y(a,NEb)||_.y(a,bFb)||_.y(a,yyb)||_.y(a,_.KE)||_.y(a,_.Kt));if(_.y(a,GDb)||b)this.hasPendingRequest=!1;else{var c;if(_.y(a,FEb)||_.y(a,GEb)||(c=_.y(a,QE))==null||!c.clientActions||_.y(a,Ezb))this.hasPendingRequest=!0}};
_.f.onAuthorThumbnailClicked=function(){var a=this;if(_.x("enable_profile_cards_on_comments")){var b;(b=this.data)!=null&&b.authorEndpoint&&this.componentBehavior.resolveCommand(this.data.authorEndpoint,{commandController:{onSuccess:function(c,d){a.onAuthorEndpointSuccess(d)},
onServerError:function(c,d){_.Dl(new _.qj("Failed to resolve the command",d))}}})}};
_.f.onAuthorEndpointSuccess=function(a){if(a=a==null?void 0:a.popupCommand){this.componentBehavior.resolveCommand(a,{form:{element:this.authorThumbnail}});this.logScreenVe();a=a==null?void 0:a.clickTrackingParams;var b=_.En();a&&b&&_.ms().graftServerVe(a,b)}};
_.f.logScreenVe=function(){_.mF(_.ms(),66557)};
_.f.onYtServiceRequestCompleted=function(){this.hasPendingRequest=!1};
_.f.openEditDialog=function(a){this.data&&a&&a.dialog&&(this.editDialog=a.dialog,this.JSC$13150_editReplyDialogContainer?this.JSC$13150_editReplyDialogContainer.openDialog():this.JSC$13150_editCommentDialogContainer&&this.JSC$13150_editCommentDialogContainer.focus())};
_.f.computeAuthorTextClass=function(a){return a.authorIsChannelOwner?"channel-owner":""};
_.f.computeIsBodyHidden=function(a,b){return!!a||b};
_.f.computeCommentStyle=function(a){return a.style?a.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.f.onYtExpanderMoreTapped=function(){var a,b,c=(a=this.data)==null?void 0:(b=a.expandButton)==null?void 0:b.buttonRenderer;c&&this.ytRendererBehavior.logExplicitClick(c)};
_.f.afterNextRender=function(){var a=this;return new Promise(function(b){_.Tm(a,b)})};
_.Vm.Object.defineProperties(m2b.prototype,{optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.x("web_watch_compact_comments")||_.x("optimal_reading_width_comments_ep")&&this.engagementPanel}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.voteCount)||_.Up("0")}},
replyThumbnail:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.currentUserReplyThumbnail}},
hasCreatorReply:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return!!(((a=this.data)==null?0:(b=a.creatorReply)==null?0:b.commentRenderer)||((c=this.data)==null?0:c.containsCreatorReply))}},
authorTextCommand:{configurable:!0,enumerable:!0,get:function(){var a;if(_.x("enable_profile_cards_on_comments")&&((a=this.data)==null?0:a.channelPageEndpoint)){var b;return(b=this.data)==null?void 0:b.channelPageEndpoint}var c;return(c=this.data)==null?void 0:c.authorEndpoint}},
hidePaidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null?0:a.paidCommentChipRenderer)}}});
var oM=m2b;oM.prototype.onYtExpanderMoreTapped=oM.prototype.onYtExpanderMoreTapped;oM.prototype.onYtServiceRequestCompleted=oM.prototype.onYtServiceRequestCompleted;oM.prototype.onYtServiceRequestSent=oM.prototype.onYtServiceRequestSent;oM.prototype.onYtCommentboxResize=oM.prototype.onYtCommentboxResize;oM.prototype.onYtCommentboxDismiss=oM.prototype.onYtCommentboxDismiss;oM.prototype.onYtNavigate=oM.prototype.onYtNavigate;oM.prototype.linkedCommentBadgeChanged=oM.prototype.linkedCommentBadgeChanged;
oM.prototype.backgroundExtendedDetailsChanged=oM.prototype.backgroundExtendedDetailsChanged;oM.prototype.hasPendingRequestChanged=oM.prototype.hasPendingRequestChanged;oM.prototype.dataChanged=oM.prototype.dataChanged;oM.prototype.contentTextChanged=oM.prototype.contentTextChanged;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],oM.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],oM.prototype,"componentBehavior",void 0);
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],oM.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtVisibilityBehavior),_.W("design:type",Object)],oM.prototype,"ytVisibilityBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],oM.prototype,"data",void 0);_.U([_.O({computed:"computeCommentStyle(data)",reflectToAttribute:!0}),_.W("design:type",String)],oM.prototype,"commentStyle",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],oM.prototype,"isReply",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],oM.prototype,"isCreatorReply",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],oM.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],oM.prototype,"useSmallAvatars",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],oM.prototype,"engagementPanel",void 0);
_.U([_.O({reflectToAttribute:!0}),_.K("data","engagementPanel"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],oM.prototype,"optimalReadingWidthComments",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],oM.prototype,"voteCount",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],oM.prototype,"replyThumbnail",null);_.U([_.O(),_.W("design:type",Object)],oM.prototype,"editDialog",void 0);
_.U([_.K("data","data.containsCreatorReply"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],oM.prototype,"hasCreatorReply",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],oM.prototype,"authorTextCommand",null);_.U([_.O(),_.W("design:type",Object)],oM.prototype,"hasPendingRequest",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],oM.prototype,"noActions",void 0);_.U([_.O(),_.W("design:type",Object)],oM.prototype,"linkedBadgeEl",void 0);
_.U([_.O(),_.W("design:type",Object)],oM.prototype,"shouldShowReadMoreInitially",void 0);_.U([_.gr("ytd-expander"),_.W("design:type",Object)],oM.prototype,"expander",void 0);_.U([_.gr("#linked-comment-badge"),_.W("design:type",HTMLElement)],oM.prototype,"linkedCommentBadge",void 0);_.U([_.gr("#body"),_.W("design:type",HTMLElement)],oM.prototype,"body",void 0);_.U([_.gr("#author-thumbnail > a"),_.W("design:type",HTMLElement)],oM.prototype,"authorThumbnail",void 0);
_.U([_.gr("ytd-comment-dialog-renderer"),_.W("design:type",Object)],oM.prototype,"JSC$13150_editCommentDialogContainer",void 0);_.U([_.gr("ytd-comment-reply-dialog-renderer"),_.W("design:type",Object)],oM.prototype,"JSC$13150_editReplyDialogContainer",void 0);_.U([_.N("data.contentText"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],oM.prototype,"contentTextChanged",null);
_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],oM.prototype,"dataChanged",null);_.U([_.N("hasPendingRequest"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],oM.prototype,"hasPendingRequestChanged",null);_.U([_.N("data.backgroundExtendedDetails"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],oM.prototype,"backgroundExtendedDetailsChanged",null);
_.U([_.N("data.linkedCommentBadge"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],oM.prototype,"linkedCommentBadgeChanged",null);_.U([_.M("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],oM.prototype,"onYtNavigate",null);_.U([_.M("yt-commentbox-dismiss"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],oM.prototype,"onYtCommentboxDismiss",null);
_.U([_.M("yt-commentbox-resize"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],oM.prototype,"onYtCommentboxResize",null);_.U([_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Ot]),_.W("design:returntype")],oM.prototype,"onYtServiceRequestSent",null);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],oM.prototype,"hidePaidCommentChipRenderer",null);
_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],oM.prototype,"onYtServiceRequestCompleted",null);_.U([_.M("yt-expander-more-tapped"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],oM.prototype,"onYtExpanderMoreTapped",null);oM=_.U([_.Q({is:"ytd-comment-renderer",disableElementRegistration:!0})],oM);
_.S(oM,"ytd-comment-renderer",function(){if(c2b!==void 0)return c2b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="paid-comment-background" class="style-scope ytd-comment-renderer"></div>\n<div id="linked-comment-badge" hidden="[[!data.linkedCommentBadge]]" class="style-scope ytd-comment-renderer"></div>\n<div id="body" hidden="[[computeIsBodyHidden(editDialog, isLoading)]]" class="style-scope ytd-comment-renderer">\n  <div id="author-thumbnail" class="style-scope ytd-comment-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-comment-renderer" href$="[[computeOptionalHref_(data.authorEndpoint)]]" on-click="onAuthorThumbnailClicked" data="[[data.authorEndpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-comment-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="main" class="style-scope ytd-comment-renderer">\n    <div id="header" class="style-scope ytd-comment-renderer">\n      <div id="pinned-comment-badge" hidden="[[!data.pinnedCommentBadge]]" class="style-scope ytd-comment-renderer"></div>\n      <div id="header-author" class="style-scope ytd-comment-renderer">\n        <h3 class="style-scope ytd-comment-renderer">\n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-renderer" href$="[[computeOptionalHref_(authorTextCommand)]]" data="[[authorTextCommand]]" hidden="[[data.authorCommentBadge]]">\n            <yt-formatted-string class$="[[computeAuthorTextClass(data)]] style-scope ytd-comment-renderer" respect-lang-dir="" text="[[data.authorText]]">\n            </yt-formatted-string>\n          </a>\n        </h3>\n        <span id="author-comment-badge" hidden="[[!data.authorCommentBadge]]" class="style-scope ytd-comment-renderer"></span>\n        <span id="sponsor-comment-badge" hidden="[[!data.sponsorCommentBadge]]" class="style-scope ytd-comment-renderer"></span>\n        <yt-formatted-string class="published-time-text style-scope ytd-comment-renderer" link-inherit-color="" text="[[data.publishedTimeText]]">\n        </yt-formatted-string>\n        <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-comment-renderer"></span>\n      </div>\n    </div>\n    <div id="comment-content" class="style-scope ytd-comment-renderer">\n      \n      <ytd-comment-inline-thumbnail-renderer id="inline-thumbnail-renderer" data="[[data.videoThumbnail.commentVideoThumbnailRenderer]]" hidden="[[!data.videoThumbnail]]" class="style-scope ytd-comment-renderer">\n      </ytd-comment-inline-thumbnail-renderer>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" class="style-scope ytd-comment-renderer">\n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[data.paidCommentChipRenderer.pdgCommentChipRenderer]]" hidden="[[hidePaidCommentChipRenderer]]" class="style-scope ytd-comment-renderer">\n      </yt-pdg-comment-chip-renderer>\n      <yt-formatted-string id="content-text" slot="content" split-lines="" text="[[data.contentText]]" user-input="" class="style-scope ytd-comment-renderer">\n      </yt-formatted-string>\n      <span class="more-button style-scope ytd-comment-renderer" slot="more-button">[[getSimpleString(data.expandButton.buttonRenderer.text)]]</span>\n      <span class="less-button style-scope ytd-comment-renderer" slot="less-button">[[getSimpleString(data.collapseButton.buttonRenderer.text)]]</span>\n    </ytd-expander>\n  </div>\n    <ytd-comment-action-buttons-renderer id="action-buttons" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-creator-reply="[[hasCreatorReply]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" reply-thumbnail="[[replyThumbnail]]" vote-count="[[voteCount]]" class="style-scope ytd-comment-renderer">\n    </ytd-comment-action-buttons-renderer>\n  </div>\n  <div id="action-menu" class="style-scope ytd-comment-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-renderer"></div>\n\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return c2b=a},{mode:1});var n2b;var o2b;var pM=function(){return _.P.apply(this,arguments)||this};
_.z(pM,_.P);pM.prototype.attached=function(){var a=this;this.networkStatusManager||(this.networkStatusManager=new _.Lk,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){a.onlineHandler()}))};
pM.prototype.detached=function(){var a=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){a.onlineHandler()}),delete this.networkStatusManager)};
pM.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
var qM=pM;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],qM.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],qM.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],qM.prototype,"data",void 0);qM=_.U([_.Q({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],qM);
_.S(qM,"ytd-reload-page-button-renderer",function(){if(o2b!==void 0)return o2b;var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);
return o2b=a},{mode:1});var p2b={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"},q2b=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a};
_.z(q2b,_.P);_.f=q2b.prototype;_.f.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.f.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.f.computeHasBodyText=function(a){return!!a.bodyText};
_.f.computeButtons=function(a){var b=[];a.ctaButton&&b.push(a.ctaButton);a.secondaryButton&&b.push(a.secondaryButton);return b};
_.f.computeRendererStyle=function(a){return a.style?a.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():a.icon?"":"no-icon"};
_.f.getIconName=function(a,b){b=b===void 0?!1:b;if(a===void 0)return"";a=this.get("icon.iconType",a);var c;_.x("enable_hlp_client_icon_pick")?c=this.getThemedIcon(a,b):c=a;(b=p2b[c])||(b="yt-icons");return[b,c].join(":")};
_.f.getThemedIcon=function(a,b){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(a)?b?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(a)?b?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":a};
_.f.isThumbnail=function(a){return!!a.thumbnail};
_.f.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.f.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
var rM=q2b;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],rM.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],rM.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],rM.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],rM.prototype,"data",void 0);
_.U([_.O({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.W("design:type",String)],rM.prototype,"rendererStyle",void 0);_.U([_.O({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.W("design:type",String)],rM.prototype,"iconName",void 0);_.U([_.O({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],rM.prototype,"thumbnail",void 0);_.U([_.O({computed:"computeButtons(data)"}),_.W("design:type",Array)],rM.prototype,"buttons",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],rM.prototype,"isDarkTheme",void 0);_.U([_.O({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],rM.prototype,"hasBodyText",void 0);rM=_.U([_.Q({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],rM);
_.S(rM,"ytd-background-promo-renderer",function(){if(n2b!==void 0)return n2b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return n2b=a},{mode:1});var r2b;var s2b=function(){var a=_.P.apply(this,arguments)||this;a.collections=_.x("web_modern_collections_v2");return a};
_.z(s2b,_.P);_.Vm.Object.defineProperties(s2b.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d,e,g;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(a=this.data)==null?void 0:(b=a.thumbnail)==null?void 0:b.sampledThumbnailColor,vibrantColorPalette:(c=this.data)==null?void 0:(d=c.thumbnail)==null?void 0:d.vibrantColorPalette,darkColorPalette:(e=this.data)==null?void 0:(g=e.thumbnail)==null?void 0:g.darkColorPalette,experimentEnabled:this.collections}}}});
var sM=s2b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],sM.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],sM.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],sM.prototype,"collections",void 0);_.U([_.K("data","collections"),_.W("design:type",Object),_.W("design:paramtypes",[])],sM.prototype,"collectionStack",null);sM=_.U([_.Q({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],sM);
_.S(sM,"ytd-compact-station-renderer",function(){if(r2b!==void 0)return r2b;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return r2b=a},{mode:1});var t2b;var u2b=function(){var a=_.P.apply(this,arguments)||this;a.isRichGrid=!1;return a};
_.z(u2b,_.P);u2b.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}}}};
var tM=u2b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],tM.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],tM.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],tM.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],tM.prototype,"isRichGrid",void 0);tM=_.U([_.Q({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],tM);
_.S(tM,"ytd-grid-channel-renderer",function(){if(t2b!==void 0)return t2b;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return t2b=a},{mode:1});var v2b;var w2b=function(){return _.P.apply(this,arguments)||this};
_.z(w2b,_.P);var uM=w2b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],uM.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],uM.prototype,"data",void 0);uM=_.U([_.Q({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],uM);
_.S(uM,"ytd-grid-movie-playlist-renderer",function(){if(v2b!==void 0)return v2b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return v2b=a},{mode:1});var x2b;var vM=function(){var a=_.P.apply(this,arguments)||this;a.downloadProgress=0;a.transferState="TRANSFER_STATE_UNKNOWN";a.modernButtons=_.x("web_modern_buttons");a.useModernCollectionsV2=_.x("web_modern_collections_v2");return a};
_.z(vM,_.P);vM.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
vM.prototype.configureRendererStamper=function(){return{"data.menu":xK}};
vM.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
vM.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.x("woffle_playlist_renderer_killswitch")){var a,b=gGa(this.entityInfo,this.transferState,this.downloadProgress,(a=this.data)==null?void 0:a.playlistId,this.isOnline);a=b.viewPlaylistText;var c=b.badges;b=b.thumbnailOverlays;this.isDownloads=!!a||!!c;this.set("data.viewPlaylistText",a);c&&c.length>0&&this.set("data.badges",c);b&&b.length>0&&this.set("data.thumbnailOverlays",
b)}};
_.Vm.Object.defineProperties(vM.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 a;return!((a=this.data)==null?0:a.menu)}}});
var wM=vM;wM.prototype.transferStateChanged=wM.prototype.transferStateChanged;wM.prototype.dataChanged=wM.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],wM.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.VI),_.W("design:type",Object)],wM.prototype,"ytdLockupBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],wM.prototype,"ytdReduxBehavior",void 0);
_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],wM.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O({selector:_.wFa,selectorArgs:["data.playlistId"]}),_.W("design:type",Object)],wM.prototype,"downloadProgress",void 0);_.U([_.O({selector:_.Kp,selectorArgs:["data.playlistId"]}),_.W("design:type",Object)],wM.prototype,"transferState",void 0);_.U([_.O({selector:vFa,selectorArgs:["data.playlistId"]}),_.W("design:type",Object)],wM.prototype,"entityInfo",void 0);
_.U([_.O({selector:Ip}),_.W("design:type",Boolean)],wM.prototype,"isOnline",void 0);_.U([_.O(),_.W("design:type",Object)],wM.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],wM.prototype,"downloadRenderData",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],wM.prototype,"modernButtons",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],wM.prototype,"isDownloads",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],wM.prototype,"useModernCollectionsV2",void 0);_.U([_.K("transferState"),_.O({reflectToAttribute:!0}),_.W("design:type",String),_.W("design:paramtypes",[])],wM.prototype,"downloadState",null);_.U([_.K("data"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],wM.prototype,"menuHidden",null);
_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],wM.prototype,"dataChanged",null);_.U([_.kr("transferState","downloadProgress","isOnline"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],wM.prototype,"transferStateChanged",null);wM=_.U([_.Q({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],wM);
_.S(wM,"ytd-grid-playlist-renderer",function(){if(x2b!==void 0)return x2b;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return x2b=a},{mode:1});var y2b;var z2b=function(){var a=_.P.apply(this,arguments)||this;a.collections=_.x("web_modern_collections_v2");return a};
_.z(z2b,_.P);z2b.prototype.configureRendererStamper=function(){return{"data.menu":xK,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.Vm.Object.defineProperties(z2b.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d,e,g;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(a=this.data)==null?void 0:(b=a.thumbnail)==null?void 0:b.sampledThumbnailColor,vibrantColorPalette:(c=this.data)==null?void 0:(d=c.thumbnail)==null?void 0:d.vibrantColorPalette,darkColorPalette:(e=this.data)==null?void 0:(g=e.thumbnail)==null?void 0:g.darkColorPalette,experimentEnabled:this.collections}}}});
var xM=z2b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],xM.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.NI),_.W("design:type",Object)],xM.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.H(_.VI),_.W("design:type",Object)],xM.prototype,"ytdLockupBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],xM.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],xM.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],xM.prototype,"collections",void 0);_.U([_.K("data","collections"),_.W("design:type",Object),_.W("design:paramtypes",[])],xM.prototype,"collectionStack",null);xM=_.U([_.Q({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],xM);
_.S(xM,"ytd-grid-radio-renderer",function(){if(y2b!==void 0)return y2b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return y2b=a},{mode:1});var A2b;var B2b=function(){var a=_.P.apply(this,arguments)||this;a.useModernCollectionsV2=_.x("web_modern_collections_v2");return a};
_.z(B2b,_.P);B2b.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
B2b.prototype.computeNavigationEndpoint=function(a){return qDa(a==null?void 0:a.navigationEndpoint)};
var yM=B2b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],yM.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],yM.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.VI),_.W("design:type",Object)],yM.prototype,"ytdLockupBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],yM.prototype,"data",void 0);
_.U([_.O({computed:"computeNavigationEndpoint(data)"}),_.W("design:type",Object)],yM.prototype,"computedNavigationEndpoint",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],yM.prototype,"useModernCollectionsV2",void 0);yM=_.U([_.Q({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],yM);
_.S(yM,"ytd-grid-show-renderer",function(){if(A2b!==void 0)return A2b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return A2b=a},{mode:1});var C2b;_.zM=function(a){this.playerClient=a};
_.D2b=function(a,b,c){c=c===void 0?{}:c;return a.playerClient.setOption("ad",b,c)};
_.zM.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.zM.prototype.executeCommand=function(a,b){this.getOptions().includes("executeCommand")?_.D2b(this,"executeCommand",{command:a,layoutId:b}):_.nv("Calling executeCommand when adModule is not loaded")};var E2b=function(){return _.P.apply(this,arguments)||this};
_.z(E2b,_.P);E2b.prototype.getLayoutId=function(){var a=_.Ji("yt.www.ads.eventcache.getLastCompanionData");return a?(a=a())&&a.layoutId:null};
E2b.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var a=_.bu(),b=this.getLayoutId(),c=this.data.clickthroughEndpoint;a&&b&&_.x("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?a.getPlayerPromise().then(function(d){(new _.zM(d)).executeCommand(c,b)}):_.go(this.hostElement,"yt-navigate",{endpoint:c})}};
var AM=E2b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],AM.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],AM.prototype,"data",void 0);AM=_.U([_.Q({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],AM);
_.S(AM,"ytd-shopping-companion-item-renderer",function(){if(C2b!==void 0)return C2b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return C2b=a},{mode:1});var F2b;var G2b=function(){var a=_.P.apply(this,arguments)||this;a.isExpandableContent=!1;return a};
_.z(G2b,_.P);_.Vm.Object.defineProperties(G2b.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return((a=this.data)==null?void 0:a.price)||((b=this.data)==null?void 0:(c=b.dealsData)==null?void 0:c.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var a,b;if((a=this.data)!=null&&a.dealsData&&((b=this.data)==null||!b.priceReplacementText)){a=this.data.dealsData;var c,d,e;return((c=a.salesData)==null?void 0:c.originalPrice)||((d=a.priceDropData)==null?void 0:d.referencePrice)||((e=a.promotionData)==null?void 0:e.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var a,b;return(a=this.data)==null?void 0:(b=a.dealsData)==null?void 0:b.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
var BM=G2b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],BM.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],BM.prototype,"componentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],BM.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],BM.prototype,"isExpandableContent",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],BM.prototype,"showCta",null);
_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],BM.prototype,"ctaText",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],BM.prototype,"hasPriceTopPosition",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],BM.prototype,"hasPriceBottomPosition",null);_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],BM.prototype,"useNewStyle",null);
_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],BM.prototype,"showPriceReplacementText",null);_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],BM.prototype,"priceValue",null);_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],BM.prototype,"showDeal",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],BM.prototype,"showAffiliateDisclaimer",null);
_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],BM.prototype,"useSaleStyle",null);_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],BM.prototype,"useFromBrandCtaStyle",null);_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],BM.prototype,"useFromVendorCtaStyle",null);
_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],BM.prototype,"useShoppingCollectionCtaStyle",null);BM=_.U([_.Q({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],BM);
_.S(BM,"ytd-vertical-product-card-renderer",function(){if(F2b!==void 0)return F2b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return F2b=a},{mode:1});var H2b;var I2b=function(){return _.P.apply(this,arguments)||this};
_.z(I2b,_.P);I2b.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
var CM=I2b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],CM.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],CM.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.VI),_.W("design:type",Object)],CM.prototype,"ytdLockupBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],CM.prototype,"data",void 0);CM=_.U([_.Q({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],CM);
_.S(CM,"ytd-grid-movie-renderer",function(){if(H2b!==void 0)return H2b;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return H2b=a},{mode:1});var J2b;var K2b=function(){var a=_.P.apply(this,arguments)||this;a.rounded=!0;a.itemStyle="small-item";return a};
_.z(K2b,_.P);K2b.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var a,b,c,d,e=(b=_.y((a=this.data)==null?void 0:a.buttonCommand,_.Eyb))==null?void 0:(c=b.item)==null?void 0:(d=c.notificationTextRenderer)==null?void 0:d.successResponseText;e&&_.D_a(this.hostElement,e)}};
_.Vm.Object.defineProperties(K2b.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.data)==null?void 0:a.isProductPlaceholder)!==void 0&&((b=this.data)==null?void 0:b.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.showOpenInNewIcon)===!1}},
ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityTitle?this.data.accessibilityTitle:this.data.title+", "+this.data.price+", "+this.data.additionalFeesText+", "+this.data.vendorName}}});
var DM=K2b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],DM.prototype,"ytRendererBehavior",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],DM.prototype,"rounded",void 0);_.U([_.O(),_.W("design:type",Object)],DM.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],DM.prototype,"itemStyle",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],DM.prototype,"hasPrice",null);
_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],DM.prototype,"hasPriceReplacementText",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],DM.prototype,"hasAdditionalFeesText",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],DM.prototype,"hasAffiliateDisclaimer",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],DM.prototype,"isProductPlaceholder",null);
_.U([_.O(),_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],DM.prototype,"hideOpenInNewIcon",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],DM.prototype,"ariaLabel",null);DM=_.U([_.Q({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],DM);
_.S(DM,"ytd-merch-shelf-item-renderer",function(){if(J2b!==void 0)return J2b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return J2b=a},{mode:1});var L2b=_.Rr(function(a){var b=_.Rl();_.Vu(b,function(){return a.data().rendererContext});
return _.q("button-card-view-model",{el:b,class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return a.data().title},
role:"button"},_.q(_.xt,{model:{}}),_.q("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.q("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.q(_.oi,{cond:function(){return a.data().image},
then:function(c){return _.q(_.Ss,{data:c,alt:function(){var d;return(d=a.data().title)!=null?d:""},
className:"ytwButtonCardViewModelHostImage"})}})),_.q("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return a.data().title})))});_.x("web_button_view_model_wcw_registration_killswitch")||_.Ws(L2b,"button-card-view-model",{props:{data:_.SG}});_.Ws(_.Rr(function(a){a=_.Or(a,{className:void 0});var b=a.data;a=a.className;var c=_.kh(function(){return b().onTapCommand},void 0,"NprDr");
return _.q("ytd-shopping-item-card",{class:_.jt("ytdShoppingItemCardHost",a)},_.q(_.ut,{command:c,className:"ytdShoppingItemCardHostLink"},_.q("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.q(_.Eu,{data:function(){return b().thumbnailViewModel}},{thumbnailViewModel:function(d){return _.q(mL,{data:d.data,
aspectRatio:3})}})),_.q("div",null,_.q("p",{class:"ytdShoppingItemCardHostItemTitle"},_.q(_.wt,{text:function(){return b().itemTitle}})),_.q("p",{class:"ytdShoppingItemCardHostPrice"},_.q(_.wt,{text:function(){return b().priceOrStatus}})))))}),"ytd-shopping-item-card",{props:{data:_.SG,
className:_.SG}});var ov=null,E_a={};var H_a="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(" "),EM={},I_a=(EM.FEwhat_to_watch="home",EM.FEhashtag="hashtag",EM.FEtrending="trending",EM.FEhistory="history",EM.SPunlimited="premium",EM.FEmemberships_and_purchases="paid_memberships",EM.SPredeem_code="redeem",EM.SPverify_location="locate",EM.SPminor_moment="minor_moment",
EM.FEmini_app_container="mini_app",EM.FEnews_destination="news",EM.SPopen_in_app="open_in_app",EM.FEexplore="explore",EM.FEsubscriptions="subscriptions",EM.FEsfv_audio_pivot="sfv_audio_pivot",EM.FEplaylist_aggregation="playlist_aggregation",EM);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");_.oo("init");var O_a=_.Au({badgeViewModel:P0a}),L_a=function(){},M2b=_.mt(R_a),N2b=_.Rr(function(a){var b=_.kh(function(){var c=a.data().entityId;
return c?c.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"tvSCZd");
return _.q("ytm-shorts-lockup-view-model-v2",{class:_.jt("shortsLockupViewModelHost",a.className)},_.q(_.j0b,{contentId:b,aspectRatio:function(){var c;if(((c=a.aspectRatio)==null?void 0:c.call(a))===1)return 1;var d;return((d=a.aspectRatio)==null?void 0:d.call(a))===2?2:4}},function(){return _.q(M2b,Object.assign({},a))}))}),O2b=_.x("enable_shorts_lockup_view_model_with_dismissible")?N2b:M2b;
_.am(R_a);_.am(N_a);_.am(Q_a);_.am(S_a);_.am(P_a);_.x("enable_shorts_lockup_view_model_with_dismissible")?_.Ws(N2b,"ytm-shorts-lockup-view-model-v2",{props:{data:_.Vs,inlineMetadata:_.Vs,aspectRatio:_.Vs,scrimStyle:_.Vs,className:_.Vs,useDefaultStyle:_.Vs}}):_.Ws(O2b,"ytm-shorts-lockup-view-model",{props:{data:_.Vs,inlineMetadata:_.Vs,aspectRatio:_.Vs,scrimStyle:_.Vs,className:_.Vs,useDefaultStyle:_.Vs}});var P2b=16/9*210,FM=function(){var a=_.P.apply(this,arguments)||this;a.isExpandableContent=!1;a.hideShelfHeader=!1;a.engagementPanel=!1;a.buttonClasses=["arrow"];a.isSearch=!1;a.disableScrollEventListener=!1;a.containsLockup=!1;a.overrideArrowPositionForProductCard=!1;a.overrideArrowPositionForShoppingItemCard=!1;a.overrideArrowPositionForReelItems=!1;a.overrideArrowPositionForGridMovie=!1;a.overrideArrowPositionToCenter=!1;a.isSearchPostShelf=!1;a.overrideArrowPositionForMixedShelf=!1;a.overrideArrowPositionForMixedShelfShortsOnly=
!1;a.hasBigThumbsReelItems=!1;a.shouldUseMixedListHeight=!1;a.shouldUseShortsListHeight=!1;a.gridVideoWidth=0;a.isSearchVodShelf=!1;a.disableWheelScroll=!1;a.sizing="COMPACT";a.shortsLockupAspectRatio=0;return a};
_.z(FM,_.P);_.f=FM.prototype;
_.f.configureRendererStamper=function(){return{shownItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"yt-horizontal-list-renderer lockup",containerType:4},properties:{force16By9ThumbnailAspectRatio:"[[data.force16By9ThumbnailAspectRatio]]",sizing:"[[sizing]]"}},backgroundPromoRenderer:"ytd-background-promo-renderer",compactStationRenderer:"ytd-compact-station-renderer",gridChannelRenderer:"ytd-grid-channel-renderer",gridMoviePlaylistRenderer:"ytd-grid-movie-playlist-renderer",shoppingItemCardViewModel:{component:"ytd-shopping-item-card",
params:{className:"yt-horizontal-list-renderer"}},gridMovieRenderer:"ytd-grid-movie-renderer",gridPlaylistRenderer:"ytd-grid-playlist-renderer",gridRadioRenderer:"ytd-grid-radio-renderer",gridShowRenderer:"ytd-grid-show-renderer",gridVideoRenderer:{component:"ytd-grid-video-renderer",properties:{isSearch:"[[isSearch]]",width:"[[gridVideoWidth]]"}},merchShelfItemRenderer:"ytd-merch-shelf-item-renderer",shoppingCompanionCarouselItemRenderer:"ytd-shopping-companion-item-renderer",displayAdRenderer:"ytd-display-ad-renderer",
commentRenderer:"ytd-comment-renderer",compactChannelRecommendationCardRenderer:"ytd-compact-channel-recommendation-card-renderer",postRenderer:"ytd-post-renderer",reelItemRenderer:{component:"ytd-reel-item-renderer",properties:{isSearch:"[[isSearch]]"}},shortsLockupViewModel:{component:_.x("enable_shorts_lockup_view_model_with_dismissible")?"ytm-shorts-lockup-view-model-v2":"ytm-shorts-lockup-view-model",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]]"}}}}};
_.f.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.x("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.f.computeInitialCountNumber=function(a){if(!a)return 6;var b=a.items.some(function(g){return!!g.topicRecommendationsChipRenderer}),c=a.items.some(function(g){return!!g.displayAdRenderer}),d=this.computeShouldListItemsHaveEqualHeight(a),e=a.items.some(function(g){return!!g.gridPlaylistRenderer});
a=a.items.some(function(g){return!!g.shoppingItemCardViewModel});
return b?9:c?8:e||d?10:a?7:6};
_.f.computeContainsPost=function(a){return!!a&&!!a.items&&a.items.some(function(b){return!!b.postRenderer})};
_.f.computeContainsLockup=function(){if(_.x("web_horizontal_list_lockup_arrow_killswitch"))return!1;var a,b;return(a=this.data)==null?void 0:(b=a.items)==null?void 0:b.some(function(c){return!!c.lockupViewModel})};
_.f.maybeUpdateLockupAspectRatio=function(){var a,b;if(this.computeContainsLockup()&&((a=this.data)==null?0:(b=a.items)==null?0:b.length)){var c;a=mZa((c=this.data.items[0].lockupViewModel)==null?void 0:c.contentType,this.data.force16By9ThumbnailAspectRatio);c=pUa(a);c=this.computeLockupWidth()/c;_.dr(this.hostElement,{"--yt-horizontal-list-content-height":c+"px"})}};
_.f.computeOverrideArrowPositionForProductCard=function(a){if(this.isExpandableContent)return!1;var b;return!!(a==null?0:(b=a.items)==null?0:b.some(function(c){return!!c.verticalProductCardRenderer}))};
_.f.computeOverrideArrowPositionForShoppingItemCard=function(a){var b;return!!(a==null?0:(b=a.items)==null?0:b.some(function(c){return!!c.shoppingItemCardViewModel}))};
_.f.computeOverrideArrowPositionForReelItemRenderer=function(a){return this.containsReelItemRenderer(a)};
_.f.computeHasBigThumbsReelItems=function(a,b){return a&&this.containsReelItemRenderer(b)};
_.f.computeShouldListItemsHaveEqualHeight=function(a){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(a==null?void 0:a.itemSizeConstraint)};
_.f.computeShouldListItemsHaveShortsHeight=function(a){return this.computeShouldListItemsHaveEqualHeight(a)&&!this.containsGridVideoRenderer(a)};
_.f.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.f.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.f.containsReelItemRenderer=function(a){var b;return!!(a==null?0:(b=a.items)==null?0:b.some(function(c){return!(!c.reelItemRenderer&&!c.shortsLockupViewModel)}))};
_.f.containsGridVideoRenderer=function(a){var b;return!!(a==null?0:(b=a.items)==null?0:b.some(function(c){return!!c.gridVideoRenderer||!!c.lockupViewModel}))};
_.f.computeContainsGridMovieRenderer=function(a){var b;return!!(a==null?0:(b=a.items)==null?0:b.some(function(c){return!!c.gridMovieRenderer}))};
_.f.computeOverrideArrowPositionToCenter=function(a){return this.computeIsSearchPostShelf(a)};
_.f.computeIsSearchPostShelf=function(a){var b;return!!(a==null?0:(b=a.items)==null?0:b.some(function(c){var d,e;return((e=(d=c.postRenderer)==null?void 0:d.surface)!=null?e:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.f.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(a){var b;return!!(a==null?0:(b=a.items)==null?0:b.some(function(c){var d,e,g;return((g=(d=c.backgroundPromoRenderer)==null?void 0:(e=d.style)==null?void 0:e.value)!=null?g:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.f.computeIsSearchVodShelf=function(a,b){return a&&this.containsGridVideoRenderer(b)};
_.f.computeDisableWheelScroll=function(a,b){return this.computeIsSearchVodShelf(a,b)};
_.f.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.f.computeShortsLockupAspectRatio=function(a){return a&&_.x("web_shorts_2_by_3_lockups_no_search")?0:1};
_.f.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.dr(this.hostElement,{"--ytd-reel-item-thumbnail-height":P2b+"px"})};
FM.prototype.dataChanged=FM.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],FM.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],FM.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.hJ.YtdHorizontalListBehavior),_.W("design:type",Object)],FM.prototype,"ytdHorizontalListBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],FM.prototype,"data",void 0);
_.U([_.O(),_.W("design:type",Object)],FM.prototype,"isExpandableContent",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],FM.prototype,"hideShelfHeader",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],FM.prototype,"engagementPanel",void 0);_.U([_.O(),_.W("design:type",Array)],FM.prototype,"buttonClasses",void 0);_.U([_.O(),_.W("design:type",Object)],FM.prototype,"isSearch",void 0);
_.U([_.O(),_.W("design:type",Object)],FM.prototype,"disableScrollEventListener",void 0);_.U([_.O({computed:"computeInitialCountNumber(data)"}),_.W("design:type",Number)],FM.prototype,"initialCount",void 0);_.U([_.O({computed:"computeContainsPost(data)"}),_.W("design:type",Boolean)],FM.prototype,"supportComponentResize",void 0);_.U([_.O({computed:"computeContainsPost(data)"}),_.W("design:type",Boolean)],FM.prototype,"containsPost",void 0);
_.U([_.O({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.W("design:type",Object)],FM.prototype,"containsLockup",void 0);_.U([_.O({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],FM.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.U([_.O({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.W("design:type",Object)],FM.prototype,"overrideArrowPositionForProductCard",void 0);_.U([_.O({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.W("design:type",Object)],FM.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.U([_.O({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.W("design:type",Object)],FM.prototype,"overrideArrowPositionForReelItems",void 0);_.U([_.O({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.W("design:type",Object)],FM.prototype,"overrideArrowPositionForGridMovie",void 0);
_.U([_.O({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.W("design:type",Object)],FM.prototype,"overrideArrowPositionToCenter",void 0);_.U([_.O({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.W("design:type",Object)],FM.prototype,"isSearchPostShelf",void 0);_.U([_.O({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.W("design:type",Object)],FM.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.U([_.O({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.W("design:type",Object)],FM.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.U([_.O({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.W("design:type",Object)],FM.prototype,"hasBigThumbsReelItems",void 0);
_.U([_.O({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.W("design:type",Object)],FM.prototype,"shouldUseMixedListHeight",void 0);_.U([_.O({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.W("design:type",Object)],FM.prototype,"shouldUseShortsListHeight",void 0);_.U([_.O({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.W("design:type",Object)],FM.prototype,"gridVideoWidth",void 0);
_.U([_.O({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.W("design:type",Object)],FM.prototype,"isSearchVodShelf",void 0);_.U([_.O({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.W("design:type",Object)],FM.prototype,"disableWheelScroll",void 0);_.U([_.O({computed:"computeSizing(isSearch)"}),_.W("design:type",Object)],FM.prototype,"sizing",void 0);
_.U([_.O({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.W("design:type",Object)],FM.prototype,"shortsLockupAspectRatio",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],FM.prototype,"dataChanged",null);
_.S(FM,"yt-horizontal-list-renderer",function(){if(TWb===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);TWb=a}a=TWb;return a},{mode:1});var Q2b;var R2b=[10,12,14,16,18,20,24,28,32,36],S2b=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],T2b=function(){var a=_.P.apply(this,arguments)||this;a.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";a.hideOverflow=!1;a.useRoboto=!1;a.fontClass="";a.overflown=!1;a.actionMap={"yt-window-resized":"resize"};return a};
_.z(T2b,_.P);_.f=T2b.prototype;
_.f.attached=function(){var a=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();_.Tm(this,function(){a.resize()});
if(!_.sx){var b,c,d;(b=document)==null||(c=b.fonts)==null||(d=c.ready)==null||d.then(function(){a.resize()})}};
_.f.dataChanged=function(){this.resize()};
_.f.guideIsExpandedChanged=function(){this.resize()};
_.f.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 a=this.getMaxNumLines(),b=this.getMinFont(),c=this.getMaxFont(),d=this.useRoboto?R2b:S2b;for(d=d.filter(function(g){return g<=c&&g>=b});d.length>1;){var e=Math.floor(d.length/2);
this.updateFontSize(d[e]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=a)d=d.slice(e,d.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>a)d=d.slice(0,e);else break}this.updateFontSize(d[d.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(a)}};
_.f.handleOverflow=function(a){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>a&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",a.toString()))};
_.f.updateFontSize=function(a){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+a;this.textNode.classList.add(this.fontClass)};
_.f.getMaxFont=function(){var a=this.useRoboto?R2b:S2b;a=a[a.length-1];return this.maxFontSize&&this.maxFontSize<=a?this.maxFontSize:a};
_.f.getMinFont=function(){var a=(this.useRoboto?R2b:S2b)[0];return this.minFontSize&&this.minFontSize>=a?this.minFontSize:a};
_.f.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.f.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.f.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.Vp(this.text).split("\n").length-1:Infinity};
_.f.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("Dh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
var GM=T2b;GM.prototype.guideIsExpandedChanged=GM.prototype.guideIsExpandedChanged;GM.prototype.dataChanged=GM.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],GM.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],GM.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],GM.prototype,"actionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],GM.prototype,"text",void 0);
_.U([_.O(),_.W("design:type",String)],GM.prototype,"fontFamily",void 0);_.U([_.O(),_.W("design:type",Number)],GM.prototype,"maxWidth",void 0);_.U([_.O(),_.W("design:type",Number)],GM.prototype,"maxHeight",void 0);_.U([_.O(),_.W("design:type",Number)],GM.prototype,"maxFontSize",void 0);_.U([_.O(),_.W("design:type",Number)],GM.prototype,"minFontSize",void 0);_.U([_.O(),_.W("design:type",Number)],GM.prototype,"maxLines",void 0);_.U([_.O(),_.W("design:type",Object)],GM.prototype,"hideOverflow",void 0);
_.U([_.O({selector:_.kFa}),_.W("design:type",Boolean)],GM.prototype,"guideIsExpanded",void 0);_.U([_.gr("#container"),_.W("design:type",HTMLElement)],GM.prototype,"containerNode",void 0);_.U([_.gr("#text"),_.W("design:type",HTMLElement)],GM.prototype,"textNode",void 0);_.U([_.kr("text"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],GM.prototype,"dataChanged",null);
_.U([_.kr("guideIsExpanded"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],GM.prototype,"guideIsExpandedChanged",null);GM=_.U([_.Q({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],GM);
_.S(GM,"yt-dynamic-sizing-formatted-string",function(){if(Q2b!==void 0)return Q2b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Q2b=a},{mode:1});var U2b;_.V2b=function(a){_.da.call(this,a)};
_.z(_.V2b,_.da);var W2b=function(a){_.da.call(this,a)};
_.z(W2b,_.V2b);var HM=function(){return _.P.apply(this,arguments)||this};
_.z(HM,_.P);HM.prototype.onTapSuspendedChannel=function(){var a;if((a=this.data)!=null&&a.serviceEndpoint){var b,c;(a=(c=_.y((b=this.data)==null?void 0:b.serviceEndpoint,_.Ml))==null?void 0:c.url)?_.Fq(a,void 0,void 0,window.top):(b=new W2b("Did not handle suspended account tap. No appealUrl."),_.Bl(b))}else b=new W2b("Did not handle suspended account tap. No serviceEndpoint."),_.Bl(b)};
HM.prototype.onTap=function(){var a=this,b=_.ms(),c,d=(c=_.ls(b,{veType:7116}))!=null?c:void 0;_.Pt(b,{visualElement:d});_.ZIa();this.saveRoleText();var e;if((e=this.data)==null?0:e.youtubeSuspended)this.onTapSuspendedChannel();else{var g=!1,k,m;(b=(m=_.y((k=this.data)==null?void 0:k.serviceEndpoint,_.LEb))==null?void 0:m.supportedTokens)&&b.forEach(function(n){if(n.accountSigninToken)if(g=!0,a.onAccountItemTap)a.onAccountItemTap(n.accountSigninToken.signinUrl);else _.Fq(n.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!g){if(k=this.get("serviceEndpoint",this.data))g=!0,this.ytComponentBehavior.resolveCommand(k);g||_.Cl(new W2b("Did not handle account switch tap. No token."))}}};
HM.prototype.saveRoleText=function(){if(this.data){var a=this.data,b=a.channelDelegationRole;if(b){var c,d=(c=_.y(a==null?void 0:a.serviceEndpoint,_.LEb))==null?void 0:c.supportedTokens;if(!d){var e,g,k,m;d=(e=_.y(a==null?void 0:a.serviceEndpoint,_.GE))==null?void 0:(g=e.popup)==null?void 0:(k=g.confirmDialogRenderer)==null?void 0:(m=k.confirmButton)==null?void 0:m.buttonRenderer;var n;d=(n=_.y(d==null?void 0:d.command,_.po))==null?void 0:n.commands;if(!d)return;var r;d=(r=_.y(d[1],_.LEb))==null?
void 0:r.supportedTokens}if(d){n=void 0;r=_.h(d);for(d=r.next();!d.done;d=r.next())if(d=d.value,d.datasyncIdToken){n=d.datasyncIdToken.datasyncIdToken;break}if(n){var t;a:{if(_.PIa()&&(r=_.Soa(n+"::pom"))){r=new uG(r);break a}r=void 0}(t=r)==null||t.set("role_text",b);if((bJa?bJa:window.location).href.indexOf("studio")!==-1&&(t=QIa())){r=t.src?(new URL(t.src)).origin:"*";var u;(u=t.contentWindow)==null||u.postMessage({action:"save_pom_role",datasyncId:n,roleText:b},r)}}}}}};
_.Vm.Object.defineProperties(HM.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var a,b,c=(a=this.data)==null?void 0:(b=a.accountPhoto)==null?void 0:b.thumbnails;return c&&c.length>0&&(c[0].height===36||c[0].height===48)?c[0].height:40}}});
var IM=HM;IM.prototype.onTap=IM.prototype.onTap;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],IM.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],IM.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],IM.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!1}),_.W("design:type",Function)],IM.prototype,"onAccountItemTap",void 0);
_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],IM.prototype,"enableRingForActiveAccount",null);_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Number),_.W("design:paramtypes",[])],IM.prototype,"thumbnailSize",null);_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],IM.prototype,"onTap",null);IM=_.U([_.Q({is:"ytd-account-item-renderer",disableElementRegistration:!0})],IM);
_.S(IM,"ytd-account-item-renderer",function(){if(U2b!==void 0)return U2b;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return U2b=a},{mode:1});var X2b;var Y2b;var Z2b;var $2b;var a3b=function(){var a=_.P.apply(this,arguments)||this;a.richItemMinWidth=_.$i("wn_grid_min_item_width",310);a.isShorts=!1;a.isWatchNext=!1;a.isExploreHub=!1;return a};
_.z(a3b,_.P);_.Vm.Object.defineProperties(a3b.prototype,{cardItems:{configurable:!0,enumerable:!0,get:function(){var a=[],b=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.dr(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var c;if(((c=this.data)==null?0:c.rows)&&b)for(b*=this.data.rows,c=0;c<b;c++)a.push({});return a}}});
var JM=a3b;_.U([_.H(_.LI),_.W("design:type",Object)],JM.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],JM.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],JM.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,selector:_.Fp,value:3}),_.W("design:type",Number)],JM.prototype,"itemsPerRow",void 0);_.U([_.O({selector:_.jFa,value:6}),_.W("design:type",Number)],JM.prototype,"slimItemsPerRow",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Number)],JM.prototype,"richItemMinWidth",void 0);_.U([_.O({reflectToAttribute:!0,selector:_.Ep}),_.W("design:type",Boolean)],JM.prototype,"miniMode",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],JM.prototype,"isShorts",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],JM.prototype,"isWatchNext",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],JM.prototype,"isExploreHub",void 0);
_.U([_.K("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.W("design:type",Array),_.W("design:paramtypes",[])],JM.prototype,"cardItems",null);JM=_.U([_.Q({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],JM);
_.b3b=_.$r()(JM,"ytd-ghost-grid-renderer",function(){if($2b===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);$2b=a}a=$2b;return a},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.Ws(_.Rr(function(a){var b=_.Or(a,{numberOfComments:3}).numberOfComments,c=_.Or(a,{isInitialLoad:!1}).isInitialLoad,d=_.Mr(_.Hp),e=function(){return Math.min(Number(b==null?void 0:b())||20,20)};
return _.q("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.q(_.oi,{cond:function(){return(d==null?void 0:d())&&(c==null?void 0:c())},
then:function(){return _.q("div",{class:"ytGhostCommentsComments"},_.q("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.q("div",{class:_.jt("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.q("div",{class:_.jt("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.q("div",{class:"ytGhostCommentsGhostCard"},_.q("div",{class:"ytGhostCommentsAvatar"},_.q("div",{class:"ytGhostCommentsCircle"})),_.q("div",{class:"ytGhostCommentsComments"},_.q("div",{class:"ytGhostCommentsMeta"},
_.q("div",{class:_.jt("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.q("div",{class:_.jt("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.q("div",{class:"ytGhostCommentsComments"},_.q(_.ni,{each:function(){return Array((e==null?void 0:e())||3)}},function(){return _.q("div",{class:"ytGhostCommentsGhostCard"},_.q("div",{class:"ytGhostCommentsAvatar"},_.q("div",{class:"ytGhostCommentsCircle"})),_.q("div",{class:"ytGhostCommentsHost"},_.q("div",{class:"ytGhostCommentsMeta"},
_.q("div",{class:_.jt("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.q("div",{class:_.jt("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.q("div",{class:_.jt("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.q("div",{class:"ytGhostCommentsGhostLikeDislike"},_.q("div",{class:_.jt("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.q("div",{class:_.jt("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))}),"yt-ghost-comments",{props:{numberOfComments:_.SG,
isInitialLoad:_.SG}});_.It("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var c3b=function(){var a=_.P.apply(this,arguments)||this;a.isOverridable=!1;a.spinnerActive=!1;a.showButton=!1;a.isCommentsSection=!1;a.isShortsGrid=!1;a.isShortsPage=!1;a.isWatchPage=!1;a.ghostCardExperimentEnabled=_.x("show_ghost_comments_shorts_watch")||_.x("show_ghost_comments_desktop_watch");a.originalShowButton=!1;a.endOfList=!1;return a};
_.z(c3b,_.P);_.f=c3b.prototype;_.f.resetIntersectionObserver=function(){var a;(a=this.observer)==null||a.disconnect();this.observer=void 0};
_.f.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var a,b;((a=this.data)==null?void 0:a.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((b=this.data)==null?0:b.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.f.initializeIntersectionObserver=function(){var a=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(b){b=_.h(b);for(var c=b.next();!c.done;c=b.next())c.value.isIntersecting&&(a.triggerContinuation(),a.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.f.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},isShortsCommentsSection:{id:"ghost-comment-section",mapping:{ghostEngagementPanelRenderer:{component:"yt-ghost-comments"}}},"data.ghostCards":{id:"ghost-cards",mapping:{ghostGridRenderer:{component:"ytd-ghost-grid-renderer",properties:{isShorts:"[[isShortsGrid]]"}}}}}};
_.f.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var a;((a=this.data)==null?0:a.continuationEndpoint)&&(a=_.y(this.data.continuationEndpoint,_.Kt))&&this.ytdReduxBehavior.dispatch(_.gp({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:a}}))};
_.f.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.f.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.f.onServiceRequestCompleted=function(a,b){if(!_.x("kevlar_hide_spinner_on_empty_continuation_killswitch")){var c;(c=b.actions)!=null&&c.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.f.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.f.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.f.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.f.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var a=3;if(this.isShortsPage){var b,c,d;a=Math.floor(((((b=this.hostElement)==null?void 0:(c=b.parentElement)==null?void 0:(d=c.parentElement)==null?void 0:d.scrollHeight)||112)-112)/112);a=this.isInitialLoad?Math.max(a,3):3}b=[].concat(_.Be(this.hostElement.querySelectorAll("yt-ghost-comments")));b=_.h(b);for(c=b.next();!c.done;c=b.next())c=c.value,c.numberOfComments=a,c.isInitialLoad=this.isInitialLoad}};
_.f.detached=function(){this.resetIntersectionObserver()};
_.Vm.Object.defineProperties(c3b.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return _.x("show_ghost_comments_shorts_watch")&&this.isShortsPage&&this.isCommentsSection&&!this.showButton||_.x("show_ghost_comments_desktop_watch")&&this.isWatchPage&&this.isCommentsSection&&!this.showButton?{ghostEngagementPanelRenderer:!0}:!1}}});
var KM=c3b;KM.prototype.numberOfGhostCommentsChanged=KM.prototype.numberOfGhostCommentsChanged;KM.prototype.continuationTriggerOffsetChanged=KM.prototype.continuationTriggerOffsetChanged;KM.prototype.showButtonChanged=KM.prototype.showButtonChanged;KM.prototype.onYtServiceRequestCompletedForButtonRenderer=KM.prototype.onYtServiceRequestCompletedForButtonRenderer;KM.prototype.onServiceRequestCompleted=KM.prototype.onServiceRequestCompleted;KM.prototype.onYtServiceRequestSentForButtonRenderer=KM.prototype.onYtServiceRequestSentForButtonRenderer;
KM.prototype.observeData=KM.prototype.observeData;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],KM.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],KM.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtVisibilityBehavior),_.W("design:type",Object)],KM.prototype,"ytVisibilityBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],KM.prototype,"ytComponentBehavior",void 0);
_.U([_.H(_.LI),_.W("design:type",Object)],KM.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],KM.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],KM.prototype,"isOverridable",void 0);_.U([_.O(),_.W("design:type",Object)],KM.prototype,"spinnerActive",void 0);_.U([_.O(),_.W("design:type",Object)],KM.prototype,"showButton",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],KM.prototype,"isCommentsSection",void 0);
_.U([_.O(),_.W("design:type",Object)],KM.prototype,"isShortsGrid",void 0);_.U([_.O({reflectToAttribute:!0,selector:_.mFa}),_.W("design:type",Object)],KM.prototype,"isShortsPage",void 0);_.U([_.O({reflectToAttribute:!0,selector:_.Hp}),_.W("design:type",Object)],KM.prototype,"isWatchPage",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],KM.prototype,"ghostCardExperimentEnabled",void 0);_.U([_.O(),_.W("design:type",Number)],KM.prototype,"continuationTriggerOffset",void 0);
_.U([_.O(),_.W("design:type",Object)],KM.prototype,"endOfList",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],KM.prototype,"isInitialLoad",void 0);_.U([_.gr("ytd-button-renderer"),_.W("design:type",_.$H)],KM.prototype,"buttonRenderer",void 0);_.U([_.O(),_.W("design:type",Object)],KM.prototype,"buttonOverrides",void 0);
_.U([_.O(),_.K("isCommentsSection","showButton","isShortsPage","isWatchPage"),_.W("design:type",Object),_.W("design:paramtypes",[])],KM.prototype,"isShortsCommentsSection",null);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],KM.prototype,"observeData",null);_.U([_.M("yt-service-request-sent-button-renderer"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],KM.prototype,"onYtServiceRequestSentForButtonRenderer",null);
_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Wt]),_.W("design:returntype")],KM.prototype,"onServiceRequestCompleted",null);_.U([_.M("yt-service-request-completed-button-renderer"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],KM.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);
_.U([_.kr("showButton"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],KM.prototype,"showButtonChanged",null);_.U([_.kr("continuationTriggerOffset"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],KM.prototype,"continuationTriggerOffsetChanged",null);_.U([_.N("isInitialLoad","isShortsPage"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],KM.prototype,"numberOfGhostCommentsChanged",null);
KM=_.U([_.Q({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],KM);
_.S(KM,"ytd-continuation-item-renderer",function(){if(Z2b!==void 0)return Z2b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Z2b=a},{mode:1});var d3b;var LM=function(){var a=_.P.apply(this,arguments)||this;a.downloadProgress=0;a.transferState="TRANSFER_STATE_UNKNOWN";a.downloadState="DOWNLOAD_STATE_UNKNOWN";a.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";a.offlineVideoPolicyExpirationTimestamp=0;a.downloadedVideoPlaybackPosition=0;return a};
_.z(LM,_.P);LM.prototype.dataChanged=function(){var a;this.videoData=_.y((a=this.data)==null?void 0:a.renderer,rEb);this.transferStateChanged()};
LM.prototype.downloadProgressChanged=function(){if(this.entityInfo){var a=Object.assign({},this.videoData),b=hGa(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),c=b.publishedTimeText,d=b.badges;a.shortViewCountText=b.shortViewCountText;a.publishedTimeText=c;a.badges=d;this.set("videoData",a)}};
LM.prototype.transferStateChanged=function(){if(this.entityInfo){var a=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",b=_.wp(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!vp(this.entityInfo.policyEntity),c=Object.assign({},this.videoData),d=hGa(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),e=d.publishedTimeText,g=d.badges;c.shortViewCountText=
d.shortViewCountText;c.publishedTimeText=e;c.badges=g;c.isDisabled=b;c.isWatched=this.downloadedVideoPlaybackPosition>0;c.navigationEndpoint=b?void 0:oDa(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var k;a&&((k=this.videoData)==null?0:k.videoId)&&!_.x("dl_resume_click_killswitch")&&(c.isDisabled=!1,c.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});c.thumbnailOverlays=fGa(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",c)}};
var MM=LM;MM.prototype.transferStateChanged=MM.prototype.transferStateChanged;MM.prototype.downloadProgressChanged=MM.prototype.downloadProgressChanged;MM.prototype.dataChanged=MM.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],MM.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],MM.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],MM.prototype,"data",void 0);
_.U([_.O(),_.W("design:type",Object)],MM.prototype,"videoData",void 0);_.U([_.O({selector:Lp,selectorArgs:["videoData.videoId"]}),_.W("design:type",Object)],MM.prototype,"downloadProgress",void 0);_.U([_.O(),_.W("design:type",Number)],MM.prototype,"relativeDateReference",void 0);_.U([_.O({selector:_.Jp,selectorArgs:["videoData.videoId"]}),_.W("design:type",Object)],MM.prototype,"transferState",void 0);
_.U([_.O({selector:EFa,selectorArgs:["videoData.videoId"]}),_.W("design:type",Object)],MM.prototype,"downloadState",void 0);_.U([_.O({selector:rFa,selectorArgs:["videoData.videoId"]}),_.W("design:type",Object)],MM.prototype,"offlinePolicyAction",void 0);_.U([_.O({selector:sFa,selectorArgs:["videoData.videoId"]}),_.W("design:type",Object)],MM.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.U([_.O({selector:Mp,selectorArgs:["videoData.videoId"]}),_.W("design:type",Object)],MM.prototype,"downloadedVideoPlaybackPosition",void 0);_.U([_.O({selector:uFa,selectorArgs:["videoData.videoId"]}),_.W("design:type",Object)],MM.prototype,"entityInfo",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],MM.prototype,"isDownloading",void 0);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],MM.prototype,"dataChanged",null);
_.U([_.kr("downloadProgress"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],MM.prototype,"downloadProgressChanged",null);_.U([_.kr("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],MM.prototype,"transferStateChanged",null);
MM=_.U([_.Q({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],MM);
_.S(MM,"ytd-downloaded-video-grid-video-renderer",function(){if(d3b!==void 0)return d3b;var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return d3b=a},{mode:_.as("kevlar_poly_si_batch_j025")?1:2});var e3b;var NM=function(){};
NM.prototype.resolve=function(a,b){var c=this;return _.l(function(d){return _.p(d,c.resolveCommand(a,b),0)})};var f3b,OM;f3b=CWa(function(a){return a.targetId},{shouldPersist:!1});
OM=f3b.updateData;_.g3b=f3b.useUpdatableData;var h3b,i3b;h3b=CWa(function(a){return a.targetId});
i3b=h3b.updateData;_.j3b=h3b.useUpdatableData;var k3b=T_a.bind(null,OM),l3b=T_a.bind(null,i3b);(function(a,b,c){var d=_.y(c==null?void 0:c.updatedRenderer,_.UDb);return d?a({targetId:b},function(){return d}):!1}).bind(null,OM);var PM=function(){};
_.z(PM,NM);PM.prototype.resolveCommand=function(a){var b;return _.l(function(c){b=_.y(a,_.gUa);if(!b)return c.return();k3b(b.targetId,b);_.se(c)})};var m3b=function(){var a=_.ir.apply(this,arguments)||this;a.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return a};
_.z(m3b,_.ir);_.f=m3b.prototype;_.f.configureContinuationPathMap=function(){return{}};
_.f.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.f.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.f.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.f.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.f.handleAppendContinuationItemsAction=function(a){var b=_.y(a,_.Czb);if(this.data&&this.data.targetId&&b&&this.continuationPathMap&&b.targetId===this.data.targetId){var c=kua(a);if((a=c&&this.continuationPathMap[c])&&c){c=this.get(a,this.data);var d;a:{for(d=0;d<c.length;d++){var e=c[d],g=void 0,k=!!_.y((g=_.y(e,jAb))==null?void 0:g.content,_.nEb);if(_.y(e,_.lw)||k)break a}d=c.length}a="data."+a;b.continuationItems?d===c.length-1?(this.pop(a),this.push.apply(this,[a].concat(_.Be(b.continuationItems)))):
d===c.length?this.push.apply(this,[a].concat(_.Be(b.continuationItems))):this.splice.apply(this,[a,d,1].concat(_.Be(b.continuationItems))):this.splice(a,d,1);(_.x("web_enable_voting_animation")||_.x("enable_music_web_cairo_voting_animation"))&&_.go(this.hostElement,"yt-append-continuation-items-action-finished");_.go(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.Dl(new _.qj("append continuation path does not exist",c))}};
_.f.handleReloadContinuationItemsCommand=function(a){var b=_.y(a,_.gUa);if(this.data&&b){if(_.x("web_explore_hub")||_.x("web_client_explore_hub"))try{_.v().resolve(PM).resolveCommand(a)}catch(g){}if(this.data.targetId&&this.continuationPathMap&&b.targetId===this.data.targetId&&(!_.x("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||b.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var c,d=(c=b.slot)==null?void 0:c.replace("RELOAD_CONTINUATION_SLOT_","");c=(a=kua(a)+
"-"+(d==null?void 0:d.toLowerCase()))&&this.continuationPathMap[a];if(!c||!a||!d)_.Dl(new _.qj("reload continuation path does not exist",a));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(b)){if(b.replaceWithFirstItem){var e;this.set("data."+c,((e=b.continuationItems)==null?0:e.length)?b.continuationItems[0]:{})}else this.set("data."+c,b.continuationItems?b.continuationItems:[]);this.continuationIsReloading=!1;_.go(this.hostElement,"yt-reload-continuation-finish",
null,{bubbles:!1})}}}};
_.f.handleShowReloadUiCommand=function(a){a=_.y(a,Pzb);var b;((b=this.data)==null?0:b.targetId)&&(a==null?0:a.targetId)&&a.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
var QM=m3b;QM.prototype.observeData=QM.prototype.observeData;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],QM.prototype,"actionHandlerBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],QM.prototype,"componentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],QM.prototype,"data",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],QM.prototype,"continuationIsReloading",void 0);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],QM.prototype,"observeData",null);QM=_.U([_.jr()],QM);_.RM=[_.LG.YtComponentBehavior,_.bH.YtActionHandlerBehavior,QM.prototype];_.SM={};_.SM.YtNextContinuationBehavior=[_.XG.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",_.er(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.er(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(a,b){a.stopPropagation();if(this.nextContinuation.requestPath){a=this.nextContinuation.requestPath;var c={};_.x("direct_innertube_click_tracking_reporting")&&(c={context:{clickTracking:{clickTrackingParams:this.nextContinuation.clickTrackingParams}}});this.makeNextContinuationRequest_(a,b,c)}else a={locationRetrieved:function(d,e){var g={};_.x("direct_innertube_click_tracking_reporting")&&e.clickTrackingParams&&Object.assign(g,{context:{clickTracking:{clickTrackingParams:e.clickTrackingParams}}});
this.makeNextContinuationRequest_(d,b,g)}.bind(this)},_.go(this.hostElement,"yt-retrieve-location",a)},
makeNextContinuationRequest_:function(a,b,c){_.Ko("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();a=b(a);var d;this.canUseContextualNetworkManager_()&&(d=this.getNetworkManager());d||(d=_.v().resolve(_.wq));b=_.Qt.instance;if(_.Ei("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&b){d=_.Zp([a.startsWith("/")?a.substr(1):a]);var e,g;c=_.OF(b,{},d,c==null?void 0:(e=c.context)==null?void 0:(g=e.clickTracking)==null?void 0:g.clickTrackingParams).then(function(k){return{response:k}})}else c=
this.nextContinuation.usePost?d.postData(a,c):d.fetchData(a);
c.then(this.updateNextContinuationData_.bind(this,a));this.pendingContinuationRequest_=c;this.startListeningForNavigate_()},
updateNextContinuationData_:function(a,b){var c=this;_.Ko("ncl");this.pendingContinuationRequest_=void 0;if(b){var d={};this.nextContinuation&&(d=this.nextContinuation);if(b.response&&b.response.continuationContents&&b.response.continuationContents[d.continuationType]){a=b.response.continuationContents[d.continuationType];var e=d.header||"data.header",g=a[d.responseHeaderKey||"header"];g&&this.set(e,g);e=d.contentsArray||"data.contents";g=this.getContents_(a,d.responseContentsKey||"contents")||[];
this.pathExists_(e)?(g.unshift(e),this.push.apply(this,g)):this.set(e,g);g&&(U_a(_.ms(),b.response,this.hostElement,function(k){_.ho(c.hostElement,"yt-store-grafted-ve-action",[k])}),_.go(this.hostElement,"yt-next-continuation-data-updated",{continuationData:b,
page:this,contentsArray:e}));this.set(d.continuationsArray||"data.continuations",a[d.responseContinuationsKey||"continuations"]||[])}else b.reload?_.Dl(new _.qj("Reloading from continuation is unsupported")):b.responseContext&&b.responseContext.errors||(delete b.xsrf_token,delete b.timing,delete b.endpoint,delete b.csn,b.responseContext&&delete b.responseContext.serviceTrackingParams,e={request:_.Pi(a,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(b).sort()},b.response&&(e.responseContentKeys=
Object.keys(b.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(e.continuationType=this.nextContinuation.continuationType.substr(0,256)),b=new _.qj("Malformed continuation",e),a.indexOf("/comment_service_ajax")==0?_.Dl(b):_.Bl(b)),this.set(d.continuationsArray||"data.continuations",[])}else _.Cl(new _.qj("Missing continuation response",a))},
getContents_:function(a,b){b=b.split(".");return _.yf.getValueByKeys(a,b)},
pathExists_:function(a){var b=this;a=a.toString().split(".");for(var c=0;c<a.length;c++)if(b=b[a[c]],b===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var n3b;var o3b;var p3b=function(){var a=_.P.apply(this,arguments)||this;a.triggered_=!1;return a};
_.z(p3b,_.P);_.f=p3b.prototype;_.f.attached=function(){this.maybeTriggerAutoload()};
_.f.detached=function(){this.hasBeenTriggered_=!1};
_.f.onPrescanVisible=function(){this.onShow()};
_.f.onShow=function(){this.showButton||this.trigger()};
_.f.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.go(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.f.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.f.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.f.computeLabel_=function(a,b){return a===void 0?null:a.label||!b?a.label:this.showMoreText_};
_.f.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.f.getContinuationUrl=function(a){var b={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(b.itct=this.data.clickTrackingParams);return _.Qi(a,b)};
_.f.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
var TM=p3b;TM.prototype.showButtonChanged_=TM.prototype.showButtonChanged_;TM.prototype.observeData_=TM.prototype.observeData_;_.U([_.H(_.OG.YtVisibilityBehavior),_.W("design:type",Object)],TM.prototype,"ytVisibilityBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],TM.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],TM.prototype,"data",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],TM.prototype,"showButton",void 0);
_.U([_.O({value:!1}),_.W("design:type",Boolean)],TM.prototype,"showIcon",void 0);_.U([_.O({computed:"computeLabel_(data, showButton)"}),_.W("design:type",Object)],TM.prototype,"label",void 0);_.U([_.O({value:_.Up(_.to("SHOW_MORE",void 0,"Show More"))}),_.W("design:type",Object)],TM.prototype,"showMoreText_",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],TM.prototype,"spinnerActive_",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],TM.prototype,"hasBeenTriggered_",void 0);
_.U([_.O({value:void 0}),_.W("design:type",String)],TM.prototype,"observeVisibleOption",void 0);_.U([_.O({value:void 0}),_.W("design:type",String)],TM.prototype,"observeHiddenOption",void 0);_.U([_.O({value:"observe_once"}),_.W("design:type",Object)],TM.prototype,"observePrescanOption",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],TM.prototype,"observeData_",null);
_.U([_.N("showButton"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],TM.prototype,"showButtonChanged_",null);TM=_.U([_.ur({is:"yt-next-continuation",disableElementRegistration:!0})],TM);
_.S(TM,"yt-next-continuation",function(){if(o3b===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;n3b===void 0&&(n3b=document.createElement("template"));var d=n3b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);o3b=a}a=o3b;return a},{mode:2});var q3b;var r3b;var s3b=function(){return _.P.apply(this,arguments)||this};
_.z(s3b,_.P);s3b.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
var UM=s3b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],UM.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],UM.prototype,"data",void 0);UM=_.U([_.ur({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],UM);
_.S(UM,"yt-music-pass-small-feature-info-renderer",function(){if(r3b===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;q3b===void 0&&(q3b=document.createElement("template"));var d=q3b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);r3b=a}a=r3b;return a},{mode:2});_.It("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var t3b=function(){var a=_.P.apply(this,arguments)||this;a.isCollapsible=!1;a.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return a};
_.z(t3b,_.P);_.f=t3b.prototype;_.f.computeIsCollapsible=function(a){return!!(((a==null?0:a.showMoreText)||(a==null?0:a.visibleRowCount))&&(a==null?0:a.isCollapsible))};
_.f.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"}}}};
_.f.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.f.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.f.onIronResize=function(){var a=this;_.Dr(this,"updateGridInitItems",function(){a.maybeUpdateInitialItemsDisplayed()})};
_.f.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var a=this.getVisibleWidth();a!==0&&(a=Math.floor(a/214)*(this.data.visibleRowCount||2),a!==this.initialCount&&(this.initialCount=a,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.f.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.f.computeExpandVisible=function(a,b,c,d){return a&&b&&c&&!!d&&!!d.showMoreText};
_.f.computeShowMoreButton=function(a){return{text:a,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.f.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.f.initCollapsed=function(){var a=this;this.ytLazyListBehavior.canShowMore=!1;var b;(this.collapsed=!((b=this.data)==null||!b.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.Tm(this,function(){_.ko(a.hostElement,"yt-refit-popups-action")})};
_.f.fillRestIfNotCollapsible=function(){var a=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!a||this.ytLazyListBehavior.fillRemainingListItems()};
_.f.computeViewAllHidden=function(a,b){return a||!b.viewAllEndpoint};
var VM=t3b;VM.prototype.fillRestIfNotCollapsible=VM.prototype.fillRestIfNotCollapsible;VM.prototype.initCollapsed=VM.prototype.initCollapsed;VM.prototype.onIronResize=VM.prototype.onIronResize;VM.prototype.persistentGuideChanged=VM.prototype.persistentGuideChanged;_.U([_.H(_.KD),_.W("design:type",Object)],VM.prototype,"ironResizableBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],VM.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],VM.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.gJ.YtLazyListBehavior),_.W("design:type",Object)],VM.prototype,"ytLazyListBehavior",void 0);_.U([_.H(_.SM.YtNextContinuationBehavior),_.W("design:type",Object)],VM.prototype,"ytNextContinuationBehavior",void 0);_.U([_.H(_.SI.YtdGuideStateAwareBehavior),_.W("design:type",Object)],VM.prototype,"ytdGuideStateAwareBehavior",void 0);
_.U([_.H(_.RM),_.W("design:type",Object)],VM.prototype,"ytContinuationHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],VM.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Boolean)],VM.prototype,"collapsed",void 0);_.U([_.O(),_.W("design:type",Number)],VM.prototype,"initialCount",void 0);_.U([_.O({computed:"computeShowMoreButton(data.showMoreText)"}),_.W("design:type",Object)],VM.prototype,"showMoreButton",void 0);
_.U([_.O({computed:"computeIsCollapsible(data)"}),_.W("design:type",Object)],VM.prototype,"isCollapsible",void 0);_.U([_.gr("#items"),_.W("design:type",HTMLElement)],VM.prototype,"items",void 0);_.U([_.kr("guidePersistentAndVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],VM.prototype,"persistentGuideChanged",null);_.U([_.M("iron-resize"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],VM.prototype,"onIronResize",null);
_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],VM.prototype,"initCollapsed",null);_.U([_.kr("canShowMore"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],VM.prototype,"fillRestIfNotCollapsible",null);VM=_.U([_.Q({is:"ytd-grid-renderer",disableElementRegistration:!0})],VM);
_.S(VM,"ytd-grid-renderer",function(){if(e3b!==void 0)return e3b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return e3b=a},{mode:_.as("kevlar_poly_si_batch_j025")?1:2});var u3b=function(){return _.P.apply(this,arguments)||this};
_.z(u3b,_.P);
u3b.prototype.configureRendererStamper=function(){return{"data.adMetadata.displayAdRenderer":{id:"badge",mapping:{badge:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adMetadata.displayAdRenderer.badge]]"},params:{largeFontAdBadge:!0}}}},"data.adMetadata.displayAdRenderer.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{horizontalListRenderer:{component:"yt-horizontal-list-renderer",params:{useFloorScrolling:!0}},gridRenderer:"ytd-grid-renderer"}}}};
var WM=u3b;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],WM.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],WM.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],WM.prototype,"data",void 0);WM=_.U([_.Q({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],WM);
_.S(WM,"ytd-carousel-ad-renderer",function(){if(Y2b!==void 0)return Y2b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Y2b=a},{mode:1});var v3b;var XM,w3b=function(){return _.P.apply(this,arguments)||this};
_.z(w3b,_.P);_.f=w3b.prototype;_.f.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"}}}};
_.f.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,XM.JSC$13315_CLICK_LOCATION_ID_MAP))};
_.f.onSitelinkTap=function(a){a.stopPropagation();var b,c,d=a==null?void 0:(b=a.model)==null?void 0:(c=b.item)==null?void 0:c.onTap;d&&this.ytSparklesClickLocationBehavior.handleClick(d,a,!1)};
_.f.onTap=function(a){var b=this.data&&this.data.content&&this.data.content.navigationEndpoint;b&&this.ytSparklesClickLocationBehavior.handleClick(b,a,!1)};
_.f.sendImpression=function(){if(this.data&&this.data.content)for(var a=_.h(this.data.content.impressionEndpoints||[]),b=a.next();!b.done;b=a.next()){b=_.h(b.value.loggingUrls||[]);for(var c=b.next();!c.done;c=b.next())c=c.value,c.baseUrl&&Kk(c.baseUrl,c.attributionSrcMode)}};
var YM=XM=w3b;XM.prototype.onTap=XM.prototype.onTap;XM.prototype.dataChanged=XM.prototype.dataChanged;YM.JSC$13315_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"]]);
_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],YM.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],YM.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.fJ.YtSparklesClickLocationBehavior),_.W("design:type",Object)],YM.prototype,"ytSparklesClickLocationBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],YM.prototype,"data",void 0);
_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],YM.prototype,"dataChanged",null);_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],YM.prototype,"onTap",null);YM=XM=_.U([_.Q({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],YM);
_.S(YM,"ytd-promoted-sparkles-text-search-renderer",function(){if(v3b!==void 0)return v3b;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return v3b=a},{mode:1});var x3b;var ZM,y3b=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-mute-ad-action":"handleMuteAd"};return a};
_.z(y3b,_.P);_.f=y3b.prototype;
_.f.configureRendererStamper=function(){return{"data.menu":{id:_.x("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]]"}}}}}};
_.f.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.f.computeHasAdBadge=function(a){return!(a==null||!a.adBadge)};
_.f.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",ZM.JSC$13322_DEFAULT_AD_BADGE_RENDERER),_.$q(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,ZM.JSC$13322_CLICK_LOCATION_ID_MAP))};
_.f.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var a;(((a=this.data)==null?void 0:a.impressionCommands)||[]).forEach(function(b){b=_.h(b.loggingUrls||[]);for(var c=b.next();!c.done;c=b.next())c=c.value,c.baseUrl&&Kk(c.baseUrl,c.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.f.onTap=function(a){var b,c=(b=this.data)==null?void 0:b.navigationEndpoint,d;(b=(d=this.data)==null?void 0:d.thumbnailNavigationEndpoint)&&_.Yt(_.Pq(a),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(b,a,!1):c&&this.ytSparklesClickLocationBehavior.handleClick(c,a,!1)};
_.f.handleMuteAd=function(){this.collapsed=!0};
_.f.attached=function(){var a=this;_.x("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&a.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.f.detached=function(){_.x("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.Vm.Object.defineProperties(y3b.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var a;return!(((a=this.data)==null?void 0:a.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var a;return!(((a=this.data)==null?void 0:a.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
hideActionButton:{configurable:!0,enumerable:!0,get:function(){return!(this.data&&this.data.actionButton)}},
useRoundedBadge:{configurable:!0,enumerable:!0,get:function(){return this.webSearchLayout}}});
var $M=ZM=y3b;ZM.prototype.dataChanged=ZM.prototype.dataChanged;
$M.JSC$13322_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"]]);
$M.JSC$13322_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.to("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],$M.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],$M.prototype,"ytRendererBehavior",void 0);_.U([_.H(KI),_.W("design:type",Object)],$M.prototype,"ytdActiveViewBehavior",void 0);
_.U([_.H([_.bH.YtActionHandlerBehavior]),_.W("design:type",Object)],$M.prototype,"actionHandlerBehavior",void 0);_.U([_.H(_.fJ.YtSparklesClickLocationBehavior),_.W("design:type",Object)],$M.prototype,"ytSparklesClickLocationBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],$M.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],$M.prototype,"collapsed",void 0);_.U([_.O({reflectToAttribute:!0,value:function(){return _.x("enable_desktop_search_bigger_thumbs")}}),
_.W("design:type",Boolean)],$M.prototype,"useBiggerThumbs",void 0);_.U([_.O({reflectToAttribute:!0,value:function(){return _.aj("desktop_search_bigger_thumbs_style")}}),
_.W("design:type",String)],$M.prototype,"biggerThumbsStyle",void 0);_.U([_.O({reflectToAttribute:!0,value:function(){return _.x("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.W("design:type",Boolean)],$M.prototype,"fixAlignmentSmallScreens",void 0);_.U([_.O({reflectToAttribute:!0,value:function(){return _.x("enable_desktop_search_bigger_thumbs_square")}}),
_.W("design:type",Boolean)],$M.prototype,"useBiggerThumbsSquare",void 0);_.U([_.O({reflectToAttribute:!0}),_.K("data.mediaHoverOverlay"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],$M.prototype,"hideHoverOverlay",null);_.U([_.O({reflectToAttribute:!0}),_.K("data.promotedSparklesWebStyle"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],$M.prototype,"webSearchLayout",null);
_.U([_.O({reflectToAttribute:!0}),_.K("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],$M.prototype,"webSearchLayoutLandscape",null);_.U([_.O({reflectToAttribute:!0}),_.K("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],$M.prototype,"webSearchLayoutSquare",null);
_.U([_.O({reflectToAttribute:!0}),_.K("data.promotedSparklesWebStyle"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],$M.prototype,"sparklesCtaNoBackground",null);_.U([_.O({reflectToAttribute:!0}),_.K("data.actionButton"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],$M.prototype,"hideActionButton",null);_.U([_.O({computed:"computeButtonOverride(uiUpdate)"}),_.W("design:type",Object)],$M.prototype,"buttonOverride",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.W("design:type",Boolean)],$M.prototype,"hasNewAdBadge",void 0);_.U([_.K("data.promotedSparklesWebStyle"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],$M.prototype,"useRoundedBadge",null);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],$M.prototype,"dataChanged",null);$M=ZM=_.U([_.Q({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],$M);
_.S($M,"ytd-promoted-sparkles-web-renderer",function(){if(x3b!==void 0)return x3b;var a=document.createElement("template");_.B(a,'\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>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return x3b=a},{mode:1});var z3b;var aN,A3b=function(){return _.P.apply(this,arguments)||this};
_.z(A3b,_.P);_.f=A3b.prototype;_.f.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]]"}}}}}};
_.f.computeShowCta=function(a){return!(a==null||!a.ctaRenderer)};
_.f.onCtaClick=function(){var a,b,c,d=(a=this.data)==null?void 0:(b=a.ctaRenderer)==null?void 0:(c=b.buttonRenderer)==null?void 0:c.command;d&&this.ytComponentBehavior.resolveCommand(d)};
_.f.onWatchButtonClick=function(){var a,b,c,d=(a=this.data)==null?void 0:(b=a.watchButtonRenderer)==null?void 0:(c=b.buttonRenderer)==null?void 0:c.command;d&&this.ytComponentBehavior.resolveCommand(d)};
_.f.onTap=function(){};
_.f.dataChanged=function(){if(this.data&&(this.data.adBadge||this.set("data.adBadge",aN.JSC$13325_DEFAULT_AD_BADGE_RENDERER),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",aN.JSC$13325_DEFAULT_CLICK_LOCATION_BEHAVIOR,aN.JSC$13325_CLICK_LOCATION_ID_MAP),this.thumbnail)){var a=this.thumbnail.getElementsByTagName("a");a.length>0&&(a=a.namedItem("thumbnail"))&&a.removeAttribute("href")}};
_.f.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var a=_.h(this.data.impressionUrls),b=a.next();!b.done;b=a.next())b=b.value,Ura(b,Wra(b));this.data.impressionsFired=!0}};
_.f.maybeComputeHref=function(){return null};
_.f.computeIsShortDR=function(a){return!(a==null||!a.watchButtonRenderer)&&!(a==null||!a.ctaRenderer)&&!!this.enableShortDR};
_.f.computeIsNewUiOrShortDr=function(a){return!!this.enableUiUpdate||this.computeIsShortDR(a)};
_.f.computeIsNewUiAndNotShortDr=function(a){return!!this.enableUiUpdate&&!this.computeIsShortDR(a)};
_.f.computeHideAvatar=function(a){return!((a==null?0:a.channelThumbnail)&&this.computeIsNewUiOrShortDr(a))};
_.f.onClick=function(a){var b,c=(b=this.data)==null?void 0:b.navigationEndpoint;if(this.enableShortDR&&c&&(_.y(c,_.Vn)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(c,a,!!_.y(c,_.Vn)),a.stopPropagation();else if(c&&_.y(c,_.Vn))this.ytSparklesClickLocationBehavior.handleClick(c,a,!0),a.stopPropagation();else if(c){var d,e;((d=this.data)==null?0:d.navigationEndpoint)&&((e=this.data)==null?0:e.adPlaybackContextParams)&&MBa(this.data.navigationEndpoint,this.data.adPlaybackContextParams);
this.ytComponentBehavior.resolveCommand(c)}};
_.f.computeButtonOverride=function(a){if(this.computeIsNewUiOrShortDr(a))return{style:"call-to-action",type:"tonal",iconPosition:"none"}};
_.f.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.f.onThumbnailContainerClick=function(a){this.onClick(a)};
_.f.computeThumbnailWidth=function(a,b){return a?b==="MASSIVE"?600:b==="BIG"?500:b==="MEDIUM"?450:420:360};
_.f.attached=function(){var a=this;_.x("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&a.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.f.detached=function(){_.x("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
var bN=aN=A3b;aN.prototype.dataChanged=aN.prototype.dataChanged;aN.prototype.onTap=aN.prototype.onTap;bN.JSC$13325_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.to("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};bN.JSC$13325_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
bN.JSC$13325_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"}];_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],bN.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],bN.prototype,"ytRendererBehavior",void 0);_.U([_.H(KI),_.W("design:type",Object)],bN.prototype,"ytdActiveViewBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],bN.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.fJ.YtSparklesClickLocationBehavior),_.W("design:type",Object)],bN.prototype,"ytSparklesClickLocationBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],bN.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0,value:function(){return _.x("enable_desktop_search_bigger_thumbs")}}),
_.W("design:type",Boolean)],bN.prototype,"useBiggerThumbs",void 0);_.U([_.O({reflectToAttribute:!0,value:function(){return _.x("enable_video_display_compact_button_group_for_desktop_search")}}),
_.W("design:type",Boolean)],bN.prototype,"enableShortDR",void 0);_.U([_.O({reflectToAttribute:!0,value:function(){return _.x("enable_vac_ui_update_for_desktop_search")}}),
_.W("design:type",Boolean)],bN.prototype,"enableUiUpdate",void 0);_.U([_.O({reflectToAttribute:!0,value:function(){return _.aj("desktop_search_bigger_thumbs_style")}}),
_.W("design:type",String)],bN.prototype,"biggerThumbsStyle",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.W("design:type",Boolean)],bN.prototype,"showCta",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.W("design:type",Boolean)],bN.prototype,"isShortDr",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.W("design:type",Boolean)],bN.prototype,"isShortDrOrNewUi",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.W("design:type",Boolean)],bN.prototype,"isNewUiAndNotShortDr",void 0);_.U([_.O({computed:"computeButtonOverride(data)"}),_.W("design:type",Object)],bN.prototype,"buttonOverride",void 0);_.U([_.O({computed:"computeSecondaryButtonOverride(data)"}),_.W("design:type",Object)],bN.prototype,"secondaryButtonOverride",void 0);_.U([_.gr("ytd-thumbnail"),_.W("design:type",HTMLElement)],bN.prototype,"thumbnail",void 0);
_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],bN.prototype,"onTap",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],bN.prototype,"dataChanged",null);bN=aN=_.U([_.Q({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],bN);
_.S(bN,"ytd-promoted-video-renderer",function(){if(z3b!==void 0)return z3b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return z3b=a},{mode:1});var B3b;var cN,C3b=function(){var a=_.P.apply(this,arguments)||this;a.useRoundedBadge=!0;a.sitelinkIds=[];return a};
_.z(C3b,_.P);_.f=C3b.prototype;
_.f.configureRendererStamper=function(){return{"data.menu":{id:_.x("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]]"}}}}}};
_.f.dataChanged=function(){var a;(a=this.data)!=null&&a.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,cN.JSC$13332_CLICK_LOCATION_ID_MAP)};
_.f.onTap=function(a){var b,c=(b=this.data)==null?void 0:b.navigationCommand;c&&!_.Yt(_.Pq(a),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(c,a,!1)};
_.f.onSitelinkTap=function(a){var b,c,d=a==null?void 0:(b=a.model)==null?void 0:(c=b.item)==null?void 0:c.onTap;d&&this.ytSparklesClickLocationBehavior.handleClick(d,a,!1)};
_.f.configureSitelinkClickTargets=function(){var a=this,b,c,d=(b=this.data)==null?void 0:(c=b.clickLocationTargets)==null?void 0:c.find(function(e){return e.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
d&&_.E(this.hostElement).querySelectorAll(".sitelink").forEach(function(e){_.$q(e,"yt-simple-endpoint",!0);a.sitelinkIds.push(e.id);var g,k;(g=a.ytSparklesClickLocationBehavior)==null||(k=g.clickTargetMap)==null||k.set(e.id,d)})};
_.f.sendImpression=function(){var a,b,c=((a=this.data)==null?void 0:(b=a.impressionCommand)==null?void 0:b.loggingUrls)||[];a=_.h(c);for(b=a.next();!b.done;b=a.next())b=b.value,b.baseUrl&&Kk(b.baseUrl,b.attributionSrcMode)};
_.f.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.Vm.Object.defineProperties(C3b.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
var dN=cN=C3b;cN.prototype.onTap=cN.prototype.onTap;cN.prototype.dataChanged=cN.prototype.dataChanged;
dN.JSC$13332_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"]]);
_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],dN.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],dN.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.fJ.YtSparklesClickLocationBehavior),_.W("design:type",Object)],dN.prototype,"ytSparklesClickLocationBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],dN.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],dN.prototype,"showFavicon",null);_.U([_.O({reflectToAttribute:!0,value:function(){return _.x("enable_desktop_search_bigger_thumbs")}}),
_.W("design:type",Boolean)],dN.prototype,"useBiggerThumbs",void 0);_.U([_.O({reflectToAttribute:!0,value:function(){return _.aj("desktop_search_bigger_thumbs_style")}}),
_.W("design:type",String)],dN.prototype,"biggerThumbsStyle",void 0);_.U([_.O({reflectToAttribute:!0,value:function(){return _.x("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.W("design:type",Boolean)],dN.prototype,"enableThumbnailScalingFix",void 0);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],dN.prototype,"dataChanged",null);_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],dN.prototype,"onTap",null);dN=cN=_.U([_.Q({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],dN);
_.S(dN,"ytd-text-image-no-button-layout-renderer",function(){if(B3b!==void 0)return B3b;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return B3b=a},{mode:_.as("kevlar_poly_si_batch_j028")?1:2});var D3b;var eN,E3b=function(){var a=_.P.apply(this,arguments)||this;a.isInlinePlaybackState=!1;a.uiUpdate=_.x("web_modern_buttons");a.hideCta=_.x("hide_cta_for_home_web_video_ads");a.noBottomMargin=!1;a.animateInTimeStamp=_.$i("hide_cta_for_home_web_video_ads_animate_in_time");a.animateInCta=!1;a.isHovered=!1;a.player=null;a.JSC$13339_playerEvents=new Map;a.JSC$13339_preventProgressSaveTimer=null;return a};
_.z(E3b,_.P);_.f=E3b.prototype;_.f.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]]"}}}}}};
_.f.attached=function(){this.JSC$13339_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$13339_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer()};
_.f.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$13339_playerEvents)};
_.f.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",eN.JSC$13338_DEFAULT_CLICK_LOCATION_BEHAVIOR,eN.JSC$13338_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.f.setPlayer=function(){var a=this,b;return _.l(function(c){if(c.nextAddress==1)return(b=_.ko(a.hostElement,"yt-get-inline-preview-player-action"))&&b[0]?_.p(c,b[0].getPlayerPromise(),3):c.jumpTo(0);a.player=c.yieldResult;a.ytPlayerListenerBehavior.listenToPlayerEvents(a.player,a.JSC$13339_playerEvents);_.se(c)})};
_.f.onPlaybackStart=function(){var a=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$13339_preventProgressSaveTimer=_.at(_.zk,function(){a.JSC$13339_preventProgressSaveTimer=null},1E4))};
_.f.onVideoProgress=function(a){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&a>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.f.resetPreventProgressSaveTimer=function(){_.zk.cancelJob(this.JSC$13339_preventProgressSaveTimer);this.JSC$13339_preventProgressSaveTimer=null};
_.f.getSimpleString=function(a){return _.Vp(a)};
_.f.onClick=function(a){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var b,c=(b=this.data)==null?void 0:b.navigationEndpoint,d;b=(d=this.data)==null?void 0:d.channelEndpoint;var e,g;(d=(g=_.y((e=this.data)==null?void 0:e.adCtaButton,_.OE))==null?void 0:g.command)&&_.Yt(_.Pq(a),this.hostElement,["call-to-action"])?this.ytSparklesClickLocationBehavior.handleClick(d,a,!1):b&&_.Yt(_.Pq(a),this.hostElement,["channel-thumbnail-container","short-byline-text"])?this.ytSparklesClickLocationBehavior.handleClick(b,
a,!1):!_.Yt(_.Pq(a),this.hostElement,["secondary-button"])&&c&&(_.x("enable_short_dr_for_desktop_launchable")?(e=!!_.y(c,_.Vn),this.isInlinePlaybackState&&e&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(c,a,e)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(c,a,!0)))}};
_.f.updateWatchEndpointStartTime=function(){var a,b;this.player&&((a=this.data)==null?0:a.inlinePlaybackEndpoint)&&((b=this.data)==null?0:b.navigationEndpoint)&&!this.JSC$13339_preventProgressSaveTimer&&(a=Math.floor(this.player.getCurrentTime()),_.y(this.data.navigationEndpoint,_.Vn).startTimeSeconds=a,_.y(this.data.inlinePlaybackEndpoint,_.Vn).startTimeSeconds=a)};
_.f.computeButtonOverride=function(){if(this.uiUpdate)return{style:"call-to-action",type:"tonal"}};
_.f.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.Vm.Object.defineProperties(E3b.prototype,{isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var a,b;return!((a=this.data)==null||!a.watchButton)&&!((b=this.data)==null||!b.adCtaButton)}}});
var fN=eN=E3b;eN.prototype.dataChanged=eN.prototype.dataChanged;fN.JSC$13338_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"]]);
fN.JSC$13338_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"}];
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],fN.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],fN.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],fN.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.fJ.YtSparklesClickLocationBehavior),_.W("design:type",Object)],fN.prototype,"ytSparklesClickLocationBehavior",void 0);
_.U([_.H(_.YI.YtPlayerListenerBehavior),_.W("design:type",_.ZI)],fN.prototype,"ytPlayerListenerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],fN.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],fN.prototype,"isInlinePlaybackState",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],fN.prototype,"miniMode",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],fN.prototype,"uiUpdate",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],fN.prototype,"hideCta",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],fN.prototype,"noBottomMargin",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],fN.prototype,"animateInCta",void 0);_.U([_.O({computed:"computeButtonOverride(uiUpdate)"}),_.W("design:type",Object)],fN.prototype,"buttonOverride",void 0);
_.U([_.O({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.W("design:type",Object)],fN.prototype,"secondaryButtonOverride",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],fN.prototype,"isHovered",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],fN.prototype,"dataChanged",null);_.U([_.K("data"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],fN.prototype,"isButtonGroup",null);
fN=eN=_.U([_.Q({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],fN);
_.S(fN,"ytd-ad-inline-playback-meta-block",function(){if(D3b!==void 0)return D3b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return D3b=a},{mode:_.as("kevlar_poly_si_batch_j065")?1:2});var F3b;var gN,G3b=function(){var a=_.P.apply(this,arguments)||this;a.noBottomMargin=!1;a.isInlinePreviewTriggered=!1;a.JSC$13344_activeViewMeasurementDataResolver=_.Tt();return a};
_.z(G3b,_.P);_.f=G3b.prototype;_.f.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.f.attached=function(){var a=this;this.updateInlinePreviewHoverListeners();this.JSC$13344_activeViewMeasurementDataResolver.promise.then(function(b){a.ytdActiveViewBehavior.enableActiveViewMeasurement(b,15)});
_.x("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&a.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.f.detached=function(){this.clearInlinePreviewHoverListeners();_.x("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.f.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13344_inlinePreviewHoverListener=$u({mediaRenderer:this,lockupElement:this.JSC$13344_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:p_b})};
_.f.clearInlinePreviewHoverListeners=function(){var a;(a=this.JSC$13344_inlinePreviewHoverListener)==null||qv(a)};
_.f.onDataChanged=function(){var a;((a=this.data)==null?0:a.activeView)&&this.JSC$13344_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",gN.JSC$13343_DEFAULT_CLICK_LOCATION_BEHAVIOR,gN.JSC$13343_CLICK_LOCATION_ID_MAP);this.thumbnail&&(a=this.thumbnail.getElementsByTagName("a"),a.length>0&&(a=a.namedItem("thumbnail"))&&a.removeAttribute("href"));var b;if((b=this.data)==
null?0:b.hasAutoplay){var c;(c=this.JSC$13344_inlinePreviewHoverListener)==null||IZb(c)}};
_.f.onThumbnailContainerClick=function(a){if(this.data&&this.data.navigationEndpoint){var b,c=(b=this.data)==null?void 0:b.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(c,a,!!_.y(c,_.Vn));a.stopPropagation()}};
_.f.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.f.impressionLog=function(){var a=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var b,c,d=(c=_.y((b=this.data)==null?void 0:b.onImpression,_.po))==null?void 0:c.commands;d&&(d.forEach(function(e){e.clickTrackingParams&&delete e.clickTrackingParams;a.ytComponentBehavior.resolveCommand(e)}),this.data.impressionsFired=!0)}};
_.Vm.Object.defineProperties(G3b.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.JSC$13344_inlinePreviewHoverListener)==null?0:PK(a))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
var hN=gN=G3b;gN.prototype.onDataChanged=gN.prototype.onDataChanged;hN.JSC$13343_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);hN.JSC$13343_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"}];_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],hN.prototype,"ytComponentBehavior",void 0);
_.U([_.H(KI),_.W("design:type",Object)],hN.prototype,"ytdActiveViewBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],hN.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],hN.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.NI),_.W("design:type",Object)],hN.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.H(_.VI),_.W("design:type",Object)],hN.prototype,"ytdLockupBehavior",void 0);
_.U([_.H(_.LI),_.W("design:type",Object)],hN.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.fJ.YtSparklesClickLocationBehavior),_.W("design:type",Object)],hN.prototype,"ytSparklesClickLocationBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],hN.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],hN.prototype,"noBottomMargin",void 0);_.U([_.O(),_.W("design:type",Object)],hN.prototype,"isInlinePreviewTriggered",void 0);
_.U([_.O({reflectToAttribute:!0,selector:_.Ep}),_.W("design:type",Boolean)],hN.prototype,"miniMode",void 0);_.U([_.gr("ytd-thumbnail"),_.W("design:type",HTMLElement)],hN.prototype,"thumbnail",void 0);_.U([_.gr("#dismissible"),_.W("design:type",HTMLElement)],hN.prototype,"JSC$13344_dismissibleMedia",void 0);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],hN.prototype,"onDataChanged",null);
_.U([_.K("lockupIsHovered"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],hN.prototype,"isHovered",null);hN=gN=_.U([_.Q({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],hN);
_.S(hN,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(F3b!==void 0)return F3b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-display-full-buttoned-and-button-group-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n  <div id="root" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n    <div id="thumbnail-container" role="button" aria-label$="[[data.title.accessibility.accessibilityData.label]]" on-click="onThumbnailContainerClick" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n      <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n      </ytd-thumbnail>\n    </div>\n    <ytd-ad-inline-playback-meta-block data="[[data]]" is-hovered="[[isInlinePreviewTriggered]]" mini-mode="[[miniMode]]" no-bottom-margin="[[noBottomMargin]]" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n    </ytd-ad-inline-playback-meta-block>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n  <div id="dismissed-content" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer"></div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return F3b=a},{mode:1});var H3b;var iN,I3b=function(){var a=_.P.apply(this,arguments)||this;a.isInlinePreviewTriggered=!1;a.JSC$13347_activeViewMeasurementDataResolver=_.Tt();return a};
_.z(I3b,_.P);_.f=I3b.prototype;_.f.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.f.attached=function(){var a=this;this.updateInlinePreviewHoverListeners();this.JSC$13347_activeViewMeasurementDataResolver.promise.then(function(b){a.ytdActiveViewBehavior.enableActiveViewMeasurement(b,15)})};
_.f.detached=function(){this.clearInlinePreviewHoverListeners()};
_.f.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13347_inlinePreviewHoverListener=$u({mediaRenderer:this,lockupElement:this.JSC$13347_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:p_b})};
_.f.clearInlinePreviewHoverListeners=function(){var a;(a=this.JSC$13347_inlinePreviewHoverListener)==null||qv(a)};
_.f.onDataChanged=function(){var a;((a=this.data)==null?0:a.activeView)&&this.JSC$13347_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",iN.JSC$13346_DEFAULT_CLICK_LOCATION_BEHAVIOR,iN.JSC$13346_CLICK_LOCATION_ID_MAP);this.thumbnail&&(a=this.thumbnail.getElementsByTagName("a"),a.length>0&&(a=a.namedItem("thumbnail"))&&a.removeAttribute("href"))};
_.f.onThumbnailContainerClick=function(a){if(this.data&&this.data.navigationEndpoint){var b,c=(b=this.data)==null?void 0:b.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(c,a,!0);a.stopPropagation()}};
_.f.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.f.impressionLog=function(){var a=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var b,c,d=(c=_.y((b=this.data)==null?void 0:b.onImpression,_.po))==null?void 0:c.commands;d&&(d.forEach(function(e){e.clickTrackingParams&&delete e.clickTrackingParams;_.x("web_ytd_video_display_full_buttoned_renderer_command_resolver_ks")?_.mo(a.hostElement,[e]):_.v().resolve(_.Xi).resolveCommand(e,{form:{element:a.hostElement}})}),this.data.impressionsFired=!0)}};
_.Vm.Object.defineProperties(I3b.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.JSC$13347_inlinePreviewHoverListener)==null?0:PK(a))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
var jN=iN=I3b;iN.prototype.onDataChanged=iN.prototype.onDataChanged;jN.JSC$13346_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);jN.JSC$13346_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];_.U([_.H(KI),_.W("design:type",Object)],jN.prototype,"ytdActiveViewBehavior",void 0);
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],jN.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],jN.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.NI),_.W("design:type",Object)],jN.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.H(_.VI),_.W("design:type",Object)],jN.prototype,"ytdLockupBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],jN.prototype,"ytdReduxBehavior",void 0);
_.U([_.H(_.fJ.YtSparklesClickLocationBehavior),_.W("design:type",Object)],jN.prototype,"ytSparklesClickLocationBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],jN.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],jN.prototype,"isInlinePreviewTriggered",void 0);_.U([_.O({reflectToAttribute:!0,selector:_.Ep}),_.W("design:type",Boolean)],jN.prototype,"miniMode",void 0);_.U([_.gr("ytd-thumbnail"),_.W("design:type",HTMLElement)],jN.prototype,"thumbnail",void 0);
_.U([_.gr("#dismissible"),_.W("design:type",HTMLElement)],jN.prototype,"JSC$13347_dismissibleMedia",void 0);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],jN.prototype,"onDataChanged",null);_.U([_.K("lockupIsHovered"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],jN.prototype,"isHovered",null);jN=iN=_.U([_.Q({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],jN);
_.S(jN,"ytd-video-display-full-buttoned-renderer",function(){if(H3b!==void 0)return H3b;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return H3b=a},{mode:1});var wv=function(a,b,c,d){d=d===void 0?!1:d;_.da.call(this,a);this.adsClientErrorMessage=c;this.aggressivelySample=d;this.args=[];b&&this.args.push(b)};
_.z(wv,_.da);var uv=function(a,b,c,d){d=d===void 0?!1:d;_.da.call(this,a);this.adsClientErrorMessage=c;this.aggressivelySample=d;this.args=[];b&&this.args.push(b)};
_.z(uv,_.da);var J3b=function(a){_.tg.call(this);var b=this;this.initializationFunction=a;this.instance=null;this.addOnDisposeCallback(function(){_.Tf(b.instance);b.instance=null})};
_.z(J3b,_.tg);J3b.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.nv("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var b0a=function(){var a=new Map;[].forEach(function(b){a.set(b.getType(),b)})};new Promise(function(){});var X_a=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"]]),V_a=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"}]]),K3b=function(a){this.experimentApiProvider=a;a=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=a<.1};var kN=function(a,b,c,d){_.tg.call(this);this.adsControlFlowEventListeners=b;this.adEventLogger=c;this.experimentApiProvider=d;this.adsControlFlowManagerHelper=a(this,this,this,this,this);_.gg(this,this.adsControlFlowManagerHelper);a=_.h(b);for(b=a.next();!b.done;b=a.next())_.gg(this,b.value)};
_.z(kN,_.tg);var L3b=function(a,b,c,d){lN(a.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",b,c,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,d);a=_.h(a.adsControlFlowEventListeners);for(d=a.next();!d.done;d=a.next())L3b(d.value,b,c)};
_.f=kN.prototype;_.f.onOpportunityProcessedExternallyManaged=function(a,b,c,d){lN(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",a,c,b,void 0,void 0,void 0,void 0,void 0,void 0,void 0,d)};
_.f.onSlotReceivedExternallyManaged=function(a,b){mN(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",a,b)};
_.f.onSlotEntered=function(a){if(nN(this.adsControlFlowManagerHelper,a)!=null){mN(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",a);this.adsControlFlowManagerHelper.onSlotEntered(a);for(var b=_.h(this.adsControlFlowEventListeners),c=b.next();!c.done;c=b.next())c.value.onSlotEntered(a);if(nN(this.adsControlFlowManagerHelper,a)!=null&&nN(this.adsControlFlowManagerHelper,a).isOccupyingSlotType()&&oN(this.adsControlFlowManagerHelper,a)&&!M3b(this.adsControlFlowManagerHelper,a)){var d;pN(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",a,(d=oN(this.adsControlFlowManagerHelper,a))!=null?d:void 0);a=nN(this.adsControlFlowManagerHelper,a);a.slotLifecycleStage!=="entered"&&qN(a.slot,a.slotLifecycleStage,"enterLayoutForSlot");a.slotLifecycleStage="rendering";a.registeredLayoutRenderingAdapter.startRendering(a.layout)}}};
_.f.onSlotExited=function(a){if(nN(this.adsControlFlowManagerHelper,a)!=null){mN(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",a);this.adsControlFlowManagerHelper.onSlotExited(a);for(var b=_.h(this.adsControlFlowEventListeners),c=b.next();!c.done;c=b.next())c.value.onSlotExited(a);nN(this.adsControlFlowManagerHelper,a)!=null&&nN(this.adsControlFlowManagerHelper,a).markedForUnscheduleAfterOutboundAdapterRequests&&N3b(this,a)}};
_.f.onLayoutReceivedExternallyManaged=function(a,b,c){a.managerLayer!=="core"&&pN(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",a,b,c)};
var O3b=function(a,b,c){if(nN(a.adsControlFlowManagerHelper,b)!=null){pN(a.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",b,c);a=_.h(a.adsControlFlowEventListeners);for(var d=a.next();!d.done;d=a.next())O3b(d.value,b,c)}};
kN.prototype.onLayoutExited=function(a,b,c){if(nN(this.adsControlFlowManagerHelper,a)!=null){pN(this.adEventLogger,W_a(c),a,b);this.adsControlFlowManagerHelper.onLayoutExited(a,b);for(var d=_.h(this.adsControlFlowEventListeners),e=d.next();!e.done;e=d.next())e.value.onLayoutExited(a,b,c);(c=oN(this.adsControlFlowManagerHelper,a))&&b.layoutId===c.layoutId&&P3b(this,a)}};
kN.prototype.disposeInternal=function(){var a=Q3b(this.adsControlFlowManagerHelper);a=_.h(a);for(var b=a.next();!b.done;b=a.next())N3b(this,b.value);_.tg.prototype.disposeInternal.call(this)};
var N3b=function(a,b){if(nN(a.adsControlFlowManagerHelper,b)!=null)if(nN(a.adsControlFlowManagerHelper,b).JSC$26647_isSlotExitRequested()||nN(a.adsControlFlowManagerHelper,b).JSC$26647_isLayoutExitRequested())nN(a.adsControlFlowManagerHelper,b).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(nN(a.adsControlFlowManagerHelper,b).isOccupyingSlotType())nN(a.adsControlFlowManagerHelper,b).markedForUnscheduleAfterOutboundAdapterRequests=!0,P3b(a,b);else if(nN(a.adsControlFlowManagerHelper,b).JSC$26647_isSlotFillRequested())nN(a.adsControlFlowManagerHelper,
b).markedForUnscheduleAfterOutboundAdapterRequests=!0,nN(a.adsControlFlowManagerHelper,b)!=null&&(mN(a.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",b),b=nN(a.adsControlFlowManagerHelper,b),b.fulfillmentLifecycleStage="fill_cancel_requested",b.registeredFulfillmentAdapter.cancelSlotFilling());else{var c=oN(a.adsControlFlowManagerHelper,b),d;a.experimentApiProvider.get();(d=_.x("h5_enable_layout_unscheduling_events"))&&(c?R3b(a,b,c):_.nv(Error("Fh"),b,c,void 0,!1));mN(a.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",b);var e=nN(a.adsControlFlowManagerHelper,b),g=b.slotEntryTrigger,k=e.registeredSlotEntryTriggerAdapters.get(g.triggerId);k&&(k.unregisterTrigger(g),e.registeredSlotEntryTriggerAdapters.delete(g.triggerId));g=_.h(b.slotFulfillmentTriggers);for(k=g.next();!k.done;k=g.next()){k=k.value;var m=e.registeredFulfillmentTriggerAdapters.get(k.triggerId);m&&(m.unregisterTrigger(k),e.registeredFulfillmentTriggerAdapters.delete(k.triggerId))}g=_.h(b.slotExpirationTriggers);
for(k=g.next();!k.done;k=g.next())if(k=k.value,m=e.registeredExpirationTriggerAdapters.get(k.triggerId))m.unregisterTrigger(k),e.registeredExpirationTriggerAdapters.delete(k.triggerId);e.hasLayout()&&(g=e.layout,rN(e,g.layoutExitNormalTriggers),rN(e,g.layoutExitSkipTriggers),rN(e,g.layoutExitMuteTriggers),rN(e,g.layoutExitUserInputSubmittedTriggers),rN(e,g.layoutExitUserCancelledTriggers));e.registeredFulfillmentAdapter=void 0;e.registeredSlotAdapter!=null&&(e.registeredSlotAdapter.release(),e.registeredSlotAdapter=
void 0);e.registeredLayoutRenderingAdapter!=null&&(e.registeredLayoutRenderingAdapter.release(),e.registeredLayoutRenderingAdapter=void 0);e=a.adsControlFlowManagerHelper;nN(e,b)&&(e=S3b(e,b.slotType+"_"+b.slotPhysicalPosition))&&e.delete(b.slotId);mN(a.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",b);a=_.h(a.adsControlFlowEventListeners);for(e=a.next();!e.done;e=a.next())e=e.value,e.onSlotUnscheduled(b),c&&!d&&R3b(e,b,c)}},R3b=function(a,b,c){pN(a.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
b,c);
pN(a.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",b,c);a=_.h(a.adsControlFlowEventListeners);for(var d=a.next();!d.done;d=a.next())d=d.value,c&&R3b(d,b,c)},P3b=function(a,b){if(nN(a.adsControlFlowManagerHelper,b)!=null&&nN(a.adsControlFlowManagerHelper,b).isOccupyingSlotType()){var c=oN(a.adsControlFlowManagerHelper,b);
if(c&&M3b(a.adsControlFlowManagerHelper,b)){if(nN(a.adsControlFlowManagerHelper,b)!=null){var d=a.adEventLogger,e;var g=((e=V_a.get("abandoned"))==null?void 0:e.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";pN(d,g,b,c);a=nN(a.adsControlFlowManagerHelper,b);a.slotLifecycleStage!=="rendering"&&qN(a.slot,a.slotLifecycleStage,"exitLayout");a.slotLifecycleStage="rendering_stop_requested";a.registeredLayoutRenderingAdapter.stopRendering(c,"abandoned")}}else{mN(a.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
b);try{d=nN(a.adsControlFlowManagerHelper,b);if(!d)throw new uv("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");d.slotLifecycleStage!=="enter_requested"&&d.slotLifecycleStage!=="entered"&&d.slotLifecycleStage!=="rendering"&&qN(d.slot,d.slotLifecycleStage,"exitSlot");d.slotLifecycleStage="exit_requested";if(d.registeredSlotAdapter===void 0)throw d.slotLifecycleStage="scheduled",new uv("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
d.registeredSlotAdapter.exit()}catch(k){k instanceof uv&&k.adsClientErrorMessage?(T3b(a.adEventLogger,k.adsClientErrorMessage,b),_.nv(k,b,void 0,void 0,k.aggressivelySample)):(T3b(a.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",b),_.nv(k,b))}}}};var sN=function(a,b,c,d,e,g){_.tg.call(this);this.registry=a;this.experimentApiProvider=g;this.slotMap=new Map};
_.z(sN,_.tg);var S3b=function(a,b){return(a=a.slotMap.get(b))?a:new Map},nN=function(a,b){return S3b(a,b.slotType+"_"+b.slotPhysicalPosition).get(b.slotId)},Q3b=function(a){var b=[];
a.slotMap.forEach(function(c){c=_.h(c.values());for(var d=c.next();!d.done;d=c.next())b.push(d.value.slot)});
return b};
sN.prototype.onSlotEntered=function(a){a=nN(this,a);a.slotLifecycleStage!=="enter_requested"&&qN(a.slot,a.slotLifecycleStage,"onSlotEntered");a.slotLifecycleStage="entered"};
var M3b=function(a,b){a=nN(a,b);return a.hasLayout()&&a.isRendering()},oN=function(a,b){(a=nN(a,b))?a.hasLayout()&&!a.layout&&_.nv("Unexpected empty layout",b):_.nv("Unexpected undefined slotState",b);
return(a==null?void 0:a.layout)||null};
sN.prototype.onSlotExited=function(a){a=nN(this,a);a.slotLifecycleStage!=="exit_requested"&&qN(a.slot,a.slotLifecycleStage,"onSlotExited");a.slotLifecycleStage="scheduled"};
sN.prototype.onLayoutExited=function(a,b){a=nN(this,a);a.isPrimaryLayout(b)&&(a.slotLifecycleStage!=="rendering_stop_requested"&&qN(a.slot,a.slotLifecycleStage,"onLayoutExited"),a.slotLifecycleStage="entered")};
var rN=function(a,b){b=_.h(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=a.registeredLayoutExitTriggerAdapters.get(c.triggerId);d&&(d.unregisterTrigger(c),a.registeredLayoutExitTriggerAdapters.delete(c.triggerId))}},qN=function(a,b,c){_.nv("Slot stage was "+b+" when calling method "+c,a)};var V3b=function(a){_.tg.call(this);this.deps=a;this.JSC$13396_adsControlFlowManager=U3b(this)};
_.z(V3b,_.tg);var U3b=function(a){var b=new kN(function(c,d,e,g){return new sN(a.deps.registry,c,d,e,g,a.deps.experimentApiProvider)},new Set(a0a(a.deps.registry).concat(a.deps.listeners)),a.deps.adEventLogger,a.deps.experimentApiProvider);
_.gg(a,b);return b};var W3b=function(a,b){_.tg.call(this);this.experimentApiProvider=a;this.eventLoggingSettingsProvider=b;this.eventCount=0};
_.z(W3b,_.tg);W3b.prototype.logEvent=function(a){lN(this,a)};
var mN=function(a,b,c,d){lN(a,b,void 0,void 0,void 0,c,void 0,void 0,void 0,c.adSlotLoggingData,void 0,void 0,d)},pN=function(a,b,c,d,e){lN(a,b,void 0,void 0,void 0,c,d?d:void 0,void 0,void 0,c.adSlotLoggingData,d?d.adLayoutLoggingData:void 0,void 0,e)},T3b=function(a,b,c){lN(a,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,c,void 0,void 0,void 0,c.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:b})},lN=function(a,b,c,d,e,g,k,m,n,r,t,u,w){w=w===void 0?0:w;
X3b(a.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+b,"slot:",g,"layout:",k,"ping:",m,"Opportunity:",{opportunityType:c,associatedSlotId:d,slotsFromOpportunity:e,triggerBundle:n,adSlotLoggingData:r,adLayoutLoggingData:t});try{var A=function(){a.experimentApiProvider.get();if(b!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){b||_.nv("Empty PACF event type",g,k);var C=a.eventLoggingSettingsProvider.get();var G;(G=C.alwaysIncludeDebugData)||(C.experimentApiProvider.get(),G=
!1);C=G;G={eventType:b,eventOrder:++a.eventCount};var J={};g&&(J.slotData=Z_a(C,g));if(k){var I={type:k.layoutType,controlFlowManagerLayer:X_a.get(k.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};C&&(I.debugData={layoutId:k.layoutId});J.layoutData=I}m&&(J.pingData={pingDispatchStatus:m.dispatchStatus,serializedAdPingMetadata:m.ping.serializedAdPingMetadata,pingIndex:m.index});n&&(J.triggerData=Y_a(n.trigger,n.category));c&&(J.opportunityData=$_a(C,c,d,e));G.adClientData=J;r&&(G.serializedSlotAdServingData=
r.serializedSlotAdServingDataEntry);t&&(G.serializedAdServingData=t.serializedAdServingDataEntry);u&&(G.errorInfo=u);_.zl("adsClientStateChange",{adsClientEvent:G})}};
w&&w>0?_.ul(_.Lw(),function(){return A()},w):A()}catch(C){X3b(a.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.ul(_.Lw(),function(){_.nv(C instanceof Error?C:String(C),g,k,{pacf_message:"exception during pacf logging"})})}};var Y3b=function(a,b){W3b.call(this,a,b)};
_.z(Y3b,W3b);var Z3b=function(){},X3b=function(a,b){return _.x(b)};var a4b=function(){var a=new $3b;this.JSC$13415_adsControlFlowManager=(new V3b(a)).JSC$13396_adsControlFlowManager},$3b=function(){_.tg.call(this);
var a=this;this.experimentApiProvider=new J3b(function(){return new Z3b});
var b=new J3b(function(){return new K3b(a.experimentApiProvider)});
this.adEventLogger=new Y3b(this.experimentApiProvider,b);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.z($3b,_.tg);var b4b=function(){},c4b,tN=function(){c4b||(c4b=new b4b);
return c4b},uN=function(a){if(!a.JSC$13426_externallyManagedSlotAdapterCallback){var b=(new a4b).JSC$13415_adsControlFlowManager;
a.JSC$13426_externallyManagedSlotAdapterCallback=b}return a.JSC$13426_externallyManagedSlotAdapterCallback},d4b=function(a,b,c){var d=b.opportunityType,e=Error("Gh");
if(d!==void 0){var g=uN(a);L3b(g,d,void 0,c)}else _.nv(e,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});g=[];if(b.adSlotAndLayoutMetadata!==void 0){b=_.h(b.adSlotAndLayoutMetadata);for(var k=b.next();!k.done;k=b.next()){var m=k.value;if(k=m.adSlotMetadata)if(g.push(k),a.onSlotReceivedExternallyManaged(k,c),m.adLayoutMetadata){m=_.h(m.adLayoutMetadata);for(var n=m.next();!n.done;n=m.next())a.onLayoutReceivedExternallyManaged(k,n.value,c)}else c>0&&_.nv("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
d,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else c>0&&_.nv("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+d,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else c>0&&_.nv("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+d,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(d!==void 0)a.onOpportunityProcessedExternallyManaged(d,g,void 0,c);else _.nv(e,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
b4b.prototype.onSlotReceivedExternallyManaged=function(a,b){a=vv(a);if(a instanceof uv)_.nv(a,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else uN(this).onSlotReceivedExternallyManaged(a,b)};
b4b.prototype.onLayoutReceivedExternallyManaged=function(a,b,c){a=vv(a);b=c0a(b);if(a instanceof uv)_.nv(a,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(b instanceof wv)_.nv(b,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else uN(this).onLayoutReceivedExternallyManaged(a,b,c)};
b4b.prototype.onOpportunityProcessedExternallyManaged=function(a,b,c,d){var e=[];b=_.h(b);for(var g=b.next();!g.done;g=b.next())g=vv(g.value),g instanceof uv?_.nv(g,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):e.push(g);uN(this).onOpportunityProcessedExternallyManaged(a,e,c,d)};
var e4b=function(a,b){b=vv(b);if(b instanceof uv)_.nv(b,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var c=uN(a);mN(c.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",b);c=_.h(c.adsControlFlowEventListeners);for(var d=c.next();!d.done;d=c.next())d=nN(d.value,b),d.slotLifecycleStage!=="not_scheduled"&&qN(d.slot,d.slotLifecycleStage,"onSlotScheduled"),d.slotLifecycleStage="scheduled";a=uN(a);mN(a.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",b);a=_.h(a.adsControlFlowEventListeners);
for(c=a.next();!c.done;c=a.next())c.value.onSlotEntered(b)}},f4b=function(a,b){b=vv(b);
if(b instanceof uv)_.nv(b,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var c=uN(a);mN(c.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",b);c=_.h(c.adsControlFlowEventListeners);for(var d=c.next();!d.done;d=c.next())d.value.onSlotExited(b);a=uN(a);mN(a.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",b);a=_.h(a.adsControlFlowEventListeners);for(c=a.next();!c.done;c=a.next())c.value.onSlotUnscheduled(b)}},g4b=function(a,b,c){b=vv(b);
c=c0a(c);if(b instanceof uv)_.nv(b,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(c instanceof wv)_.nv(c,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var d=uN(a);pN(d.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",b,c);d=_.h(d.adsControlFlowEventListeners);for(var e=d.next();!e.done;e=d.next())e.value.onLayoutScheduled(b,c);a=uN(a);pN(a.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",b,c);a=_.h(a.adsControlFlowEventListeners);
for(d=a.next();!d.done;d=a.next())O3b(d.value,b,c)}},vN=function(a,b,c){b=vv(b);
c=c0a(c);if(b instanceof uv)_.nv(b,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(c instanceof wv)_.nv(c,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var d=uN(a);pN(d.adEventLogger,W_a("normal"),b,c);d=_.h(d.adsControlFlowEventListeners);for(var e=d.next();!e.done;e=d.next())e.value.onLayoutExited(b,c,"normal");a=uN(a);a=_.h(a.adsControlFlowEventListeners);for(d=a.next();!d.done;d=a.next())R3b(d.value,b,c)}};_.wN=_.Rr(function(a){var b=_.Or(a,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});a=Object.assign({},b);var c=b.data;b=b.customCommandResolver;var d=(delete a.data,delete a.customCommandResolver,a),e=_.Rl();_.cv(e,function(){return c().interaction},b,function(){var m;
return(m=d.listenToTapEvent)==null?void 0:m.call(d)});
_.$l(e,{visibilityCallback:function(m){var n,r=(n=c().interaction)==null?void 0:n.onFirstVisible;m&&(r&&_.Js(r),d.setOnErrorHandler()&&d0a(e))},
showOption:_.nL});a=_.h(_.fh(!1,"eiYvIe"));var g=a.next().value,k=a.next().value;a=_.ot(function(){var m;((m=d.setTouchEndHandler)==null?0:m.call(d))&&!g()&&(e.value.click(),k(!0),setTimeout(function(){k(!1)},100));
return!1});
return _.q("ad-image-view-model",{class:function(){var m,n=[((m=c().interaction)==null?0:m.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],r;((r=d.isGridViewEnabled)==null?0:r.call(d))&&n.push("ytwAdImageViewModelHostInGridView");return n.join(" ")},
el:e,"on:touchend":a},_.q("div",{class:"ytwAdImageViewModelHostImageContainer"},_.q(_.Ss,{data:function(){var m;return{sources:c().imageSources,contentMode:(m=c().imageProperties)==null?void 0:m.contentMode}},
alt:function(){var m,n;return((m=c().interaction)==null?void 0:(n=m.accessibility)==null?void 0:n.label)||""},
targetHeight:d.targetHeight,targetWidth:d.targetWidth,preserveHeight:d.preserveHeight,preserveWidth:d.preserveWidth,useWidth:d.useWidth,style:function(){var m,n;return"vertical-align: bottom;"+(((m=c().background)==null?0:m.color)?"background-color:"+_.Bq((n=c().background)==null?void 0:n.color)+";":"")},
className:function(){return d.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var m,n;return(n=(m=d.setDraggable)==null?void 0:m.call(d))!=null?n:void 0}})))});var h4b=_.Rr(function(a){var b=a.data,c=a.listenToTapEvent,d=_.Rl();_.x("enable_web_home_top_landscape_image_layout_legacy_click_command")||_.cv(d,function(){return b().interaction},void 0,function(){return c==null?void 0:c()});
_.$l(d,{visibilityCallback:function(g){var k,m=(k=b().interaction)==null?void 0:k.onFirstVisible;g&&m&&_.Js(m)},
showOption:_.nL});a=_.ot(function(){if(_.x("enable_web_home_top_landscape_image_layout_legacy_click_command")){var g,k=(g=b().interaction)==null?void 0:g.onTap;k&&_.go(d.value,"yt-navigate",{endpoint:_.Es(k)})}});
var e=function(){};
return _.q("ad-button-hover-overlay-view-model",{"on:click":a,class:function(){var g;return((g=b().interaction)==null?0:g.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:d},function(){return _.x("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.q(_.Eu,{data:function(){return b().button}},{adButtonViewModel:function(g){return _.q(_.pL,{data:g.data,
customCommandResolver:e})}}):_.q(_.Eu,{data:function(){return b().button}},{adButtonViewModel:_.pL})}())});var xv;_.Ws(_.Rr(function(a){var b=a.data;var c=_.Rl();_.x("stop_av_measurement_on_detach")&&_.wh(function(){zv(c)});
_.cv(c,function(){return b().interaction},void 0,function(){return!0});
_.$l(c,{visibilityCallback:function(g){if(g){var k;(g=(k=b().interaction)==null?void 0:k.onFirstVisible)&&_.Js(g);var m;if(k=(m=b().adLayoutData)==null?void 0:m.activeViewData)yv(c,k),_.x("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&zv(c)})}else _.x("stop_av_measurement_on_detach")&&zv(c)},
showOption:_.nL,hideOption:oL});a=_.h(_.fh(!1,"yzu6qe"));var d=a.next().value,e=a.next().value;_.Tl(c,"mouseenter",function(){e(!0)});
_.Tl(c,"mouseleave",function(){e(!1)});
return _.q("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:c},_.q("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.rt({"max-width":function(){return _.x("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.q("div",{class:function(){var g;
a:{var k;switch((g=_.y(b().thumbnailImage,CE))==null?void 0:(k=g.imageProperties)==null?void 0:k.renderingAspect){case "RENDERING_ASPECT_SQUARE":g="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":g="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}g=void 0}return g}},_.q(_.Eu,{data:function(){return b().thumbnailImage}},{adImageViewModel:function(g){return _.q(_.wN,
{data:g.data,
listenToTapEvent:!0,setTouchEndHandler:_.x("enable_top_landscape_image_experiment_dom_id_web")})}})),_.q("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.q(_.oi,{cond:function(){var g,k,m;
return(g=_.y(b().thumbnailImage,CE))==null?void 0:(k=g.imageProperties)==null?void 0:(m=k.overlayIcon)==null?void 0:m.iconImage},
then:function(g){return _.q(_.Ss,{data:g,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.q("div",{class:function(){return d()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.q(_.Eu,{data:function(){return b().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(g){return _.q(h4b,
{data:g.data,
listenToTapEvent:!0})}}))),_.q("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.q(_.Eu,{data:function(){return b().feedAdMetadata}},{feedAdMetadataViewModel:function(g){return _.q(o0b,{data:g.data,
listenToTapEvent:!0,setTouchEndHandler:_.x("enable_top_landscape_image_experiment_dom_id_web")})}})))}),"compact-landscape-no-button-layout-view-model",{props:{data:_.SG}});_.Ws(_.Rr(function(a){var b=a.data;var c=_.Rl();_.x("stop_av_measurement_on_detach")&&_.wh(function(){zv(c)});
var d=_.Mr(_.Lu);_.cv(c,function(){return b().interaction});
_.$l(c,{visibilityCallback:function(r){if(r){var t;(r=(t=b().interaction)==null?void 0:t.onFirstVisible)&&_.Js(r);var u;if(t=(u=b().adLayoutData)==null?void 0:u.activeViewData)yv(c,t),_.x("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&zv(c)})}else _.x("stop_av_measurement_on_detach")&&zv(c)},
showOption:_.nL,hideOption:oL});var e=_.ot(function(r){var t,u,w=(t=_.y(b().adImage,CE))==null?void 0:(u=t.interaction)==null?void 0:u.onTap;w&&(_.x("enable_square_image_components_ui_web_with_custom_event")?_.go(c.value,"yt-navigate",{endpoint:_.Es(w)}):XYa(r,w))}),g=_.ot(function(){var r,t,u=(r=_.y(b().adButton,Qyb))==null?void 0:(t=r.interaction)==null?void 0:t.onTap;
u&&_.go(c.value,"yt-navigate",{endpoint:_.Es(u)})}),k=function(){};
a={};var m={},n={};return _.q("square-image-layout-view-model",{class:_.jt("ytwSquareImageLayoutViewModelHost",(a.ytwSquareImageLayoutViewModelHostColumn=d,a)),el:c},_.q("div",{class:_.jt("ytwSquareImageLayoutViewModelHostImage",(m.ytwSquareImageLayoutViewModelHostColumnImage=d,m))},function(){return _.x("enable_square_image_components_ui_web_with_native_img")?_.q("img",{class:"ytwSquareImageLayoutViewModelHostImageExp",src:function(){var r,t,u;return((r=_.y(b().adImage,CE))==null?void 0:(t=r.imageSources)==
null?void 0:(u=t[0])==null?void 0:u.url)||"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="},
draggable:!1,"on:click":e}):_.q(_.Eu,{data:function(){return b().adImage}},{adImageViewModel:function(r){return _.q(_.wN,{data:r.data,
isGridViewEnabled:d,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.q("div",{class:_.jt("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(n.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=d,n))},_.q(_.Eu,{data:function(){return b().feedAdMetadata}},{feedAdMetadataViewModel:o0b}),function(){return _.x("enable_square_image_components_ui_web_with_float_button")?_.q("div",{"on:click":g},_.q(_.Eu,{data:function(){return b().adButton}},
{adButtonViewModel:function(r){var t={};
return _.q(_.pL,{data:r.data,customCommandResolver:k,className:_.jt((t.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,t.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=d,t))})}})):_.q(_.Eu,{data:function(){return b().adButton}},{adButtonViewModel:function(r){var t={};
return _.q(_.pL,{data:r.data,className:_.jt((t.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,t.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=d,t))})}})}()))}),"square-image-layout-view-model",{props:{data:_.SG}});_.Ws(_.Rr(function(a){var b=a.data;var c=a.noBottomMargin;var d=_.Rl();_.x("stop_av_measurement_on_detach")&&_.wh(function(){zv(d)});
_.x("enable_web_home_top_landscape_image_layout_level_click")&&_.cv(d,function(){return b().interaction},void 0,function(){return!0});
a=function(){return b().interaction};
a!==void 0&&a!==null||_.Ki(Error("Hh"));_.$l(d,{visibilityCallback:function(n){if(n){var r;(n=(r=b().interaction)==null?void 0:r.onFirstVisible)&&_.Js(n);var t;if(r=(t=b().adLayoutData)==null?void 0:t.activeViewData)yv(d,r),_.x("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&zv(d)})}else _.x("stop_av_measurement_on_detach")&&zv(d)},
showOption:_.nL,hideOption:oL});var e=function(){var n,r,t;return(n=_.y(b().thumbnailImage,CE))==null?void 0:(r=n.background)==null?void 0:(t=r.backgroundImageSource)==null?void 0:t.imageSources};
a=_.h(_.fh(!1,"rWKgsf"));var g=a.next().value,k=a.next().value;_.Tl(d,"mouseenter",function(){k(!0)});
_.Tl(d,"mouseleave",function(){k(!1)});
var m=function(){return g()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.q("top-landscape-image-layout-view-model",{class:function(){var n;return((n=b().interaction)==null?0:n.onTap)&&_.x("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:d},_.q("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.q(_.oi,{cond:function(){return e()&&e().length>0},
then:function(){return _.q("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.rt({top:"0","background-image":function(){return"url("+String(e()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.q(_.oi,{cond:function(){return!!b().adButtonHoverOverlay},
then:function(){return _.q("div",{class:m},_.q(_.Eu,{data:function(){return b().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:h4b}))}}),_.q("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.q(_.Eu,{data:function(){return b().thumbnailImage}},{adImageViewModel:function(n){return _.q(_.wN,{data:n.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.x("enable_web_home_top_landscape_image_layout_level_click")})}})),_.q("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.q(_.Ss,{data:{sources:[{clientResource:{imageName:"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.q("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.q(_.Eu,{data:function(){return b().feedAdMetadata}},{feedAdMetadataViewModel:function(n){return _.q(o0b,{data:n.data,
noBottomMargin:function(){return c==null?void 0:c()},
listenToTapEvent:function(){return _.x("enable_web_home_top_landscape_image_layout_level_click")}})}})))}),"top-landscape-image-layout-view-model",{props:{data:_.SG,
noBottomMargin:_.SG}});_.Ws(_.Rr(function(a){var b=a.data;var c=_.Rl();_.x("stop_av_measurement_on_detach")&&_.wh(function(){zv(c)});
_.$l(c,{visibilityCallback:function(d){if(d){var e;(d=(e=b().interaction)==null?void 0:e.onFirstVisible)&&_.Js(d);var g;if(e=(g=b().adLayoutData)==null?void 0:g.activeViewData)yv(c,e),_.x("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&zv(c)})}else _.x("stop_av_measurement_on_detach")&&zv(c)},
showOption:_.nL,hideOption:oL});return _.q("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:c},_.q("div",null,_.q(_.Eu,{data:function(){return b().videoLockup}},{lockupViewModel:function(d){return _.q(uL,{data:d.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999})}})))}),"video-display-button-group-layout-view-model",{props:{data:_.SG,
noBottomMargin:_.SG}});_.Ws(_.Rr(function(a){var b=a.data;var c=_.Rl();_.x("stop_av_measurement_on_detach")&&_.wh(function(){zv(c)});
_.$l(c,{visibilityCallback:function(d){if(d){var e;(d=(e=b().interaction)==null?void 0:e.onFirstVisible)&&_.Js(d);var g;if(e=(g=b().adLayoutData)==null?void 0:g.activeViewData)yv(c,e),_.x("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&zv(c)})}else _.x("stop_av_measurement_on_detach")&&zv(c)},
showOption:_.nL,hideOption:oL});return _.q("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:c},_.q("div",null,_.q(_.Eu,{data:function(){return b().videoLockup}},{lockupViewModel:function(d){return _.q(uL,{data:d.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999})}})))}),"video-display-full-layout-view-model",{props:{data:_.SG,
noBottomMargin:_.SG}});_.i4b=_.Rr(function(a){var b=a.data;a=_.Rl();return _.q("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:a},_.q(_.oi,{cond:function(){return b().imageBadge},
then:function(c){return _.q(_.Ss,{data:c,alt:""})}}))});var j4b=_.Rr(function(a){var b=a.data;var c=a.customCommandResolver;a=_.Rl();_.cv(a,function(){return b().interaction},c);
_.$l(a,{visibilityCallback:function(d){var e,g=(e=b().interaction)==null?void 0:e.onFirstVisible;d&&g&&_.Js(g)},
showOption:_.nL});return _.q("carousel-ad-card-image-view-model",{class:function(){var d;return((d=b().interaction)==null?0:d.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:a,"aria-label":function(){var d,e;return(d=b().interaction)==null?void 0:(e=d.accessibility)==null?void 0:e.label}},_.q(_.Eu,{data:function(){return b().adImage}},{adImageViewModel:function(d){return _.q(_.wN,{data:d.data,
customCommandResolver:c})}}),_.q("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.q(_.Eu,{data:function(){return b().badge}},{adCardBadgeViewModel:_.i4b})),_.q(_.xt,{model:{color:4}}))});var k4b=_.Rr(function(a){var b=_.h(_.fh(0,"RmZkje")),c=b.next().value,d=b.next().value,e=_.h(_.fh(!1,"uS7ese"));b=e.next().value;var g=e.next().value,k;_.wh(function(){clearTimeout(k)});
e=_.ot(function(){var r;((r=a.animate)==null?0:r.call(a))?(g(!0),k=setTimeout(function(){g(!1);m()},200)):m();
return!1});
var m=function(){d(Jka(function(r){return(r+a.numShownItems())%a.data().length}))},n={};
return _.q("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.q("div",{class:_.jt("ytwHorizontalCarouselCarouselWrapper")},_.q("div",{class:_.jt("ytwHorizontalCarouselCarouselInnerWrapper",(n.ytwHorizontalCarouselAnimating=b,n))},_.q(_.ni,{each:a.data,keyBy:"INDEX"},function(r,t){return _.q("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.rt({"flex-basis":function(){return"calc((100% - (8px * "+(a.numShownItems()-1)+")) / "+a.numShownItems()+")"},
order:function(){var u=t-c();u<0&&(u+=a.data().length);return u}})},a.children(r,t))}))),_.q("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":e},a.nextButton()))});var l4b=_.Rr(function(a){var b=a.data;var c=a.customCommandResolver;a=_.Rl();_.$l(a,{visibilityCallback:function(d){var e,g=(e=b().interaction)==null?void 0:e.onFirstVisible;d&&g&&_.Js(g)},
showOption:_.nL});return _.q("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:a},_.q(k4b,{data:function(){var d;return((d=b())==null?void 0:d.carouselAdCards)||[]},
nextButton:function(){return _.q(_.Eu,{data:function(){return b().nextButton}},{buttonViewModel:function(d){return _.q(_.Ju,{data:d.data,
className:_.x("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(d){return _.q(_.Eu,{data:d},{carouselAdCardImageViewModel:function(e){return _.q(j4b,{data:e.data,customCommandResolver:c})}})}))});var m4b=_.Rr(function(a){var b=a.data;var c=a.customCommandResolver;var d=a.className;var e=a.buttonClassName;var g=a.animationEntityKey;return _.q("carousel-button-view-model",{class:_.jt("ytwCarouselButtonViewModelHost",d)},_.q(_.Eu,{data:function(){return b().carousel}},{carouselAdCardCollectionViewModel:function(k){return _.q(l4b,{data:k.data,
customCommandResolver:c})}}),_.q(_.Eu,{data:function(){return b().button}},{adButtonViewModel:function(k){return _.q(_.pL,{data:k.data,
className:e,customCommandResolver:c,animationEntityKey:g})}}))});_.n4b=_.Rr(function(a){var b=a.data;a=a.className;var c=_.Rl();_.vi(function(){var d;((d=b())==null?0:d.backgroundColor)&&c.value.setAttribute("data-background-color",String(b().backgroundColor))});
return _.q("pivot-button-view-model",{el:c,class:_.jt("ytwPivotButtonViewModelHost",a)},_.q(_.ut,{command:function(){var d=b();d=d.onClickCommand?_.Es(d.onClickCommand):d.contentDescription?_.aq(d.contentDescription):void 0;return d},
ariaLabel:function(){return b().contentDescription}},_.q(_.oi,{cond:function(){return b().thumbnail},
then:function(d){return _.q(_.Ss,{data:d,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.q(_.oi,{cond:function(){return b().icon},
then:function(d){return _.q(_.tt,{icon:function(){return d().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))});_.o4b=_.Rr(function(a){var b=a.data;var c=a.buttonShapeOverrideables;return _.q("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.q(_.Eu,{data:function(){return b().buttonViewModels}},{buttonViewModel:function(d){return _.q(_.Ju,{data:d.data,
buttonOverrides:c})},
likeButtonViewModel:function(d){return _.q(_.wXb,{data:d.data,buttonShapeOverrideables:c})},
dislikeButtonViewModel:function(d){return _.q(_.vXb,{data:d.data,buttonShapeOverrideables:c})}}))});var p4b=_.Rr(function(a){var b=a.avatar;var c=a.headline;var d=a.badge;a=a.description;return _.q("yt-ad-metadata-shape",{class:"ytAdMetadataShapeHost"},_.q("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.q(_.oi,{cond:b,then:function(e){return _.q(_.k0b,{data:e})}}),_.q("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.q(_.wt,{text:c,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.q(_.oi,{cond:d,then:function(e){return _.q(_.sL,{data:e,adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.q("h2",{class:"ytAdMetadataShapeHostDescription"},_.q(_.wt,{text:a,
linkInheritColor:!0})))});var q4b=_.Rr(function(a){var b=a.data;var c=a.onShow;a=_.Rl();_.cv(a,function(){return b().interaction});
_.vi(function(){var d,e=(d=b().animatedRenderingConfig)==null?void 0:d.delayedSecondsToVisible;if(e){var g=setTimeout(c,e*1E3);_.wh(function(){clearTimeout(g)})}});
return _.q("reels-ad-card-buttoned-view-model",{class:function(){var d;return((d=b().interaction)==null?0:d.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},
el:a},_.q(p4b,{avatar:function(){return _.y(b().avatar,Oyb)},
headline:function(){return b().headline},
badge:function(){return _.y(b().adBadge,Pyb)},
description:function(){return b().description}}),_.q(_.Eu,{data:function(){return b().ctaButton}},{adButtonViewModel:_.pL}))});var r4b=_.Rr(function(a){var b=a.data;a=_.Rl();_.x("web_ad_metadata_clickable")&&_.cv(a,function(){return b().interaction});
var c={};c=_.lt("ytwReelsAdMetadataViewModelHost",(c.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.x("web_ad_metadata_clickable"),c));return _.q("reels-ad-metadata-view-model",{class:c,el:a},_.q(p4b,{avatar:function(){return _.y(b().avatar,Oyb)},
headline:function(){return b().headline},
badge:function(){return _.y(b().adBadge,Pyb)},
description:function(){return b().description}}))});var s4b={iconPosition:"icon-with-label",size:"L"},t4b=_.Rr(function(a){var b=a.data;a=a.overlayDensity;var c=_.Rl(),d=_.Nr(a,0);_.yh(function(){c.value.setAttribute("overlay-density",String(d()))},"zAQT5c");
var e=function(){var u;return(u=b().reelsAdCardButtonedEntityKey)!=null?u:""},g=function(){return e()+"/ad_button"},k=_.tu(mSa,e),m=function(){var u,w;
return(w=(u=k())==null?void 0:u.value)!=null?w:!1},n=_.Mr(j0a),r=function(){return Object.assign({},s4b,(n()||d()===2)&&{style:"overlay-dark"})};
a={};var t={};return _.q("reels-player-overlay-layout-view-model",{class:_.jt("ytwReelsPlayerOverlayLayoutViewModelHost",(a.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!b().extension},a.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},a)),
el:c},_.q("div",{class:_.jt("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(t.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},t))},_.q("div",{"aria-hidden":function(){return m()},
class:_.jt("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return m()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.rt({"transition-duration":function(){return m0a(b())}})},_.q(_.Eu,{data:function(){return b().adMetadata}},{reelsAdMetadataViewModel:r4b}),_.q(_.oi,{cond:function(){return b().extension},
then:function(u){return _.q("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.q(_.Eu,{data:u},{adButtonViewModel:function(w){return _.q(_.pL,{data:w.data,animationEntityKey:g,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(w){return _.q(m4b,{data:w.data,animationEntityKey:g,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})}}))}})),_.q("div",{"aria-hidden":function(){return!m()},
class:_.jt("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return m()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.rt({"transition-duration":function(){return m0a(b())}})},_.q(_.Eu,{data:function(){return b().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(u){return _.q(q4b,{data:u.data,
onShow:function(){_.Kr(_.vu("booleanEntity",e(),{key:e(),value:!0}))}})}}))),_.q("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.q(_.Eu,{data:function(){return b().actions}},{reelActionBarViewModel:function(u){return _.q(_.o4b,{data:u.data,
buttonShapeOverrideables:r})}}),_.q(_.Eu,{data:function(){return b().menu}},{buttonViewModel:function(u){return _.q(_.Ju,{data:u.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},r(),{type:"tonal"})}})}}),_.q(_.Eu,{data:function(){return b().pivotButton}},{pivotButtonViewModel:function(u){return _.q(_.n4b,{data:u.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))});_.Ws(t4b,"reels-player-overlay-layout-view-model",{props:{data:_.SG,overlayDensity:_.SG}});var u4b=function(){var a=_.P.apply(this,arguments)||this;a.noBottomMargin=!1;a.overlayDensity=0;return a};
_.z(u4b,_.P);_.f=u4b.prototype;
_.f.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{carouselAdRenderer:"ytd-carousel-ad-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",displayAdRenderer:{component:"ytd-display-ad-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",squareImageLayoutViewModel:"square-image-layout-view-model",topLandscapeImageLayoutViewModel:{component:"top-landscape-image-layout-view-model",
properties:{noBottomMargin:"[[noBottomMargin]]"}},videoDisplayButtonGroupLayoutViewModel:{component:"video-display-button-group-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]"}},videoDisplayFullLayoutViewModel:{component:"video-display-full-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.x("enable_short_dr_for_desktop_launchable")?
{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}}:"ytd-video-display-full-buttoned-renderer",videoDisplayButtonGroupRenderer:{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},textImageNoButtonLayoutRenderer:"ytd-text-image-no-button-layout-renderer",reelsPlayerOverlayLayoutViewModel:{component:"reels-player-overlay-layout-view-model",properties:{overlayDensity:"[[overlayDensity]]"}}}}}};
_.f.ready=function(){var a=this;JUa(function(){a.isAttached&&sv(a.JSC$13464_storedAdSlotMetadata,a.JSC$13464_storedAdLayoutMetadata,a.adSlotMetadata,a.adLayoutMetadata)&&vN(tN(),a.JSC$13464_storedAdSlotMetadata,a.JSC$13464_storedAdLayoutMetadata)})};
_.f.attached=function(){sv(this.JSC$13464_storedAdSlotMetadata,this.JSC$13464_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&g4b(tN(),this.JSC$13464_storedAdSlotMetadata,this.JSC$13464_storedAdLayoutMetadata)};
_.f.detached=function(){sv(this.JSC$13464_storedAdSlotMetadata,this.JSC$13464_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&vN(tN(),this.JSC$13464_storedAdSlotMetadata,this.JSC$13464_storedAdLayoutMetadata)};
_.f.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13464_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13464_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13464_storedAdLayoutMetadata!==void 0&&this.JSC$13464_storedAdSlotMetadata!==void 0&&vN(tN(),this.JSC$13464_storedAdSlotMetadata,this.JSC$13464_storedAdLayoutMetadata),g4b(tN(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13464_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13464_storedAdSlotMetadata=this.adSlotMetadata)};
_.Vm.Object.defineProperties(u4b.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.adLayoutMetadata}}});
var xN=u4b;xN.prototype.onAdMetadataChanged=xN.prototype.onAdMetadataChanged;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],xN.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],xN.prototype,"rendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],xN.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],xN.prototype,"data",void 0);
_.U([_.O(),_.W("design:type",Object)],xN.prototype,"noBottomMargin",void 0);_.U([_.O(),_.W("design:type",Object)],xN.prototype,"overlayDensity",void 0);_.U([_.K("data.adLayoutMetadata"),_.W("design:type",Object),_.W("design:paramtypes",[])],xN.prototype,"adLayoutMetadata",null);_.U([_.O(),_.W("design:type",Object)],xN.prototype,"adSlotMetadata",void 0);
_.U([_.N("adLayoutMetadata","adSlotMetadata"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],xN.prototype,"onAdMetadataChanged",null);xN=_.U([_.Q({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],xN);
_.S(xN,"ytd-in-feed-ad-layout-renderer",function(){if(X2b!==void 0)return X2b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return X2b=a},
{mode:_.as("kevlar_poly_si_batch_j028")?1:2});var v4b;var w4b;var x4b=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return a};
_.z(x4b,_.P);_.f=x4b.prototype;_.f.computeHasLiveDescription=function(a){return!(a==null||!a.liveDescription)};
_.f.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.f.onYtToggleButton=function(a){var b,c=(b=this.data)==null?void 0:b.videoReminderEntityKey;c&&this.ytdReduxBehavior.dispatch(_.vu("upcomingEventReminderStateEntity",c,{key:c,state:a.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.f.attached=function(){this.updateChannelBanner()};
_.f.dataChanged=function(){this.updateChannelBanner()};
_.f.videoReminderStateChanged=function(){var a;this.videoReminderState&&_.y((a=this.data)==null?void 0:a.cta,_.PE)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.f.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var a=_.Xs(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);a&&(a.startsWith("//")&&(a="https:"+a),this.hostElement.classList.add("channel-banner"),_.dr(this.hostElement,{"--ytvmh-channel-banner":"url("+a+")"}))}else _.x("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.f.onPlayerReady=function(){this.onIronResize()};
_.f.maybeFlushDebouncer=function(){_.x("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(a){var b;a=(b=a.getElementsByTagName("yt-attributed-string"))==null?void 0:b[0];aNa(a==null?void 0:a.polymerController)})};
_.f.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var a=_.E(this.hostElement).querySelector("#live-description"),b;a&&((b=this.data)==null?0:b.shortLiveDescription)&&a.clientWidth<a.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
var yN=x4b;yN.prototype.onIronResize=yN.prototype.onIronResize;yN.prototype.videoReminderStateChanged=yN.prototype.videoReminderStateChanged;yN.prototype.dataChanged=yN.prototype.dataChanged;yN.prototype.onYtToggleButton=yN.prototype.onYtToggleButton;_.U([_.H(_.KD),_.W("design:type",Object)],yN.prototype,"ironResizableBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],yN.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],yN.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],yN.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],yN.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],yN.prototype,"data",void 0);_.U([_.O({selectorArgs:["data.videoReminderEntityKey"],selector:fVa}),_.W("design:type",Object)],yN.prototype,"videoReminderState",void 0);
_.U([_.O({reflectToAttribute:!0,value:_.x("web_modern_buttons")}),_.W("design:type",Boolean)],yN.prototype,"rounded",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.W("design:type",Boolean)],yN.prototype,"hasLiveDescription",void 0);_.U([_.O({reflectToAttribute:!0,value:_.x("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.W("design:type",Boolean)],yN.prototype,"resizableAdBannerSafariFix",void 0);
_.U([_.O({reflectToAttribute:!0,value:_.x("align_three_dot_menu_with_title_description")}),_.W("design:type",Boolean)],yN.prototype,"menuFix",void 0);_.U([_.hr("yt-formatted-string"),_.W("design:type",Array)],yN.prototype,"formattedStrings",void 0);_.U([_.gr("#cta-button"),_.W("design:type",HTMLElement)],yN.prototype,"ctaButton",void 0);_.U([_.M("yt-toggle-button"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],yN.prototype,"onYtToggleButton",null);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yN.prototype,"dataChanged",null);_.U([_.N("videoReminderState"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yN.prototype,"videoReminderStateChanged",null);_.U([_.M("iron-resize"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yN.prototype,"onIronResize",null);
yN=_.U([_.Q({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],yN);
_.S(yN,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(w4b!==void 0)return w4b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-advertiser-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="banner" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n</a>\n<div id="info-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <a id="thumbnail-endpoint" class="yt-simple-endpoint inline-block style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.channelThumbnail]]" width="80" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <div id="title-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <div id="menu" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n    <div id="byline-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-badge-supported-renderer>\n      <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n        <div id="live-description-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <div id="cta-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-button-renderer id="cta-button" data="[[data.cta.buttonRenderer]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-button-renderer>\n      <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-toggle-button-renderer>\n    </div>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return w4b=a},{mode:1});var y4b;var z4b=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};a.isLocked=!1;return a};
_.z(z4b,_.P);_.f=z4b.prototype;_.f.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.f.onExpandedChanged=function(){this.expanded&&_.ko(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.f.onMouseOver=function(){this.maybeExpand()};
_.f.onTap=function(){this.maybeExpand()};
_.f.onExpandableTileExpanding=function(a){a!==this&&(this.expanded=!1)};
_.f.onExpandableTileLockAndCollapse=function(a){this.isLocked=!0;a!==this&&(this.expanded=!1)};
_.f.onExpandableTileUnlock=function(){this.isLocked=!1};
var zN=z4b;zN.prototype.onTap=zN.prototype.onTap;zN.prototype.onMouseOver=zN.prototype.onMouseOver;zN.prototype.onExpandedChanged=zN.prototype.onExpandedChanged;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],zN.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],zN.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],zN.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],zN.prototype,"expanded",void 0);_.U([_.kr("expanded"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],zN.prototype,"onExpandedChanged",null);_.U([_.M("mouseover"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],zN.prototype,"onMouseOver",null);_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],zN.prototype,"onTap",null);
zN=_.U([_.Q({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],zN);
_.S(zN,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(y4b!==void 0)return y4b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return y4b=a},{mode:1});var A4b;var AN,B4b=function(){var a=_.P.apply(this,arguments)||this;a.buttonOverrides={style:"overlay"};a.useYtdPlayer=_.x("use_ytd_player_for_desktop_masthead");a.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};a.playbackFinished=!1;a.JSC$13476_playerManager=null;a.JSC$13476_mastheadCounter=new Vgb;return a};
_.z(B4b,_.P);_.f=B4b.prototype;_.f.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"}}}};
_.f.created=function(){this.JSC$13476_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$13476_playerManager=new vG)};
_.f.ready=function(){var a=this;this.JSC$13476_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var b=_.E(this.hostElement).querySelector("#player");this.useYtdPlayer?b.style.display="none":(this.ytdPlayer.style.display="none",ULb(this.JSC$13476_playerManager,b,function(){a.onPlaybackEnded()}),_.E(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var c;
((c=a.data)==null?0:c.navigationEndpoint)&&_.go(a.hostElement,"yt-navigate",{endpoint:a.data.navigationEndpoint})}))};
_.f.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$13476_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.f.attached=function(){var a=this;_.Cr(function(){a.maybePlayVideo()})};
_.f.maybePlayVideo=function(){var a=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$13476_playerManager.playVideo(),this.getPlayerPromise().then(function(){a.JSC$13476_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.f.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13476_playerManager.stopVideo()};
_.f.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var a,b={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((a=this.data.playbackStartMs)!=null?a:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(b);this.setupYtdPlayer()}else WLb(this.JSC$13476_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(VLb(this.JSC$13476_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.f.getPlayerPromise=function(){return this.JSC$13476_playerManager.getPlayerPromise()};
_.f.onYtToggleButton=function(a){this.useYtdPlayer?this.toggleMute(a.detail.toggled):a.detail.toggled?this.JSC$13476_playerManager.mute():this.JSC$13476_playerManager.unMute()};
_.f.onYtNavigate=function(a){var b=dJa(a.detail.endpoint),c=eJa(this.data.clickthroughReportingData);b&&c&&(a.detail.endpoint.watchEndpoint?a.detail.tempData=c:_.Zn(b,c,30))};
_.f.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.f.onExpandedChanged=function(){this.expanded?(_.ko(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.f.onMouseOver=function(){this.maybeExpand()};
_.f.onTap=function(){this.maybeExpand()};
_.f.onExpandableTileExpanding=function(a){a!==this&&(this.stopVideo(),this.expanded=!1)};
_.f.onExpandableTileLockAndCollapse=function(a){a!==this&&(this.isLocked=!0,this.expanded=!1)};
_.f.onExpandableTileUnlock=function(){this.isLocked=!1};
_.f.lockAndCollapseExpandableTiles=function(){_.ho(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.f.unlockExpandableTiles=function(){_.ho(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.f.setupYtdPlayer=function(){var a=this,b;return _.l(function(c){if(c.nextAddress==1)return _.p(c,a.ytdPlayer.getPlayerPromise(),2);b=c.yieldResult;b.addEventListener("onStateChange",function(d){a.onPlayerStateChange(d)});
b.addEventListener("onCueRangeExit",function(d){a.onCueRangeExit(d)});
_.se(c)})};
_.f.onPlayerStateChange=function(a){if(a===1&&(a=this.ytdPlayer.getPlayer())){var b=a.getCurrentTime(),c,d,e=b+((d=(c=this.data)==null?void 0:c.playbackDurationMs)!=null?d:0)/1E3;a.addCueRange("playback",b,e);this.JSC$13476_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.f.onCueRangeExit=function(a){a==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.f.toggleMute=function(a){var b=this,c;return _.l(function(d){if(d.nextAddress==1)return _.p(d,b.ytdPlayer.getPlayerPromise(),2);c=d.yieldResult;a?c.mute():c.unMute();_.se(d)})};
var BN=AN=B4b;AN.prototype.onTap=AN.prototype.onTap;AN.prototype.onMouseOver=AN.prototype.onMouseOver;AN.prototype.onExpandedChanged=AN.prototype.onExpandedChanged;AN.prototype.onYtNavigate=AN.prototype.onYtNavigate;AN.prototype.onYtToggleButton=AN.prototype.onYtToggleButton;AN.prototype.dataChanged=AN.prototype.dataChanged;BN.JSC$13475_PLAYBACK_CUE_RANGE="playback";_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],BN.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],BN.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],BN.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],BN.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],BN.prototype,"expanded",void 0);_.U([_.O(),_.W("design:type",Object)],BN.prototype,"buttonOverrides",void 0);
_.U([_.O(),_.W("design:type",Object)],BN.prototype,"useYtdPlayer",void 0);_.U([_.gr("#ytd-player"),_.W("design:type",Object)],BN.prototype,"ytdPlayer",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],BN.prototype,"dataChanged",null);_.U([_.M("yt-toggle-button"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],BN.prototype,"onYtToggleButton",null);
_.U([_.M("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],BN.prototype,"onYtNavigate",null);_.U([_.kr("expanded"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],BN.prototype,"onExpandedChanged",null);_.U([_.M("mouseover"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],BN.prototype,"onMouseOver",null);
_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],BN.prototype,"onTap",null);BN=AN=_.U([_.Q({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],BN);
_.S(BN,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(A4b!==void 0)return A4b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return A4b=a},{mode:1});var C4b;var CN=function(){return _.P.apply(this,arguments)||this};
_.z(CN,_.P);CN.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
CN.prototype.onShow=function(){var a=_.E(this.hostElement).querySelector("#live-description"),b;a&&((b=this.data)==null?0:b.shortLiveDescription)&&a.clientWidth<a.scrollWidth&&this.hostElement.classList.add("short-live-description")};
CN.prototype.onYtToggleButton=function(a){var b,c=(b=this.data)==null?void 0:b.videoReminderEntityKey;c&&this.ytdReduxBehavior.dispatch(_.vu("upcomingEventReminderStateEntity",c,{key:c,state:a.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
CN.prototype.videoReminderStateChanged=function(){var a;this.videoReminderState&&_.y((a=this.data)==null?void 0:a.cta,_.PE)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
var DN=CN;DN.prototype.videoReminderStateChanged=DN.prototype.videoReminderStateChanged;DN.prototype.onYtToggleButton=DN.prototype.onYtToggleButton;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],DN.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],DN.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],DN.prototype,"ytdReduxBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],DN.prototype,"data",void 0);_.U([_.O({selectorArgs:["data.videoReminderEntityKey"],selector:fVa}),_.W("design:type",Object)],DN.prototype,"videoReminderState",void 0);_.U([_.M("yt-toggle-button"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],DN.prototype,"onYtToggleButton",null);
_.U([_.N("videoReminderState"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],DN.prototype,"videoReminderStateChanged",null);DN=_.U([_.Q({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],DN);
_.S(DN,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(C4b!==void 0)return C4b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return C4b=a},{mode:_.as("kevlar_poly_si_batch_j065")?1:2});var D4b;var EN,E4b=function(){var a=_.P.apply(this,arguments)||this;a.useYtdPlayer=_.x("use_ytd_player_for_desktop_masthead");a.buttonOverrides={style:"overlay"};a.JSC$13484_playerManager=null;a.JSC$13484_mastheadCounter=new Vgb;a.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return a};
_.z(E4b,_.P);_.f=E4b.prototype;_.f.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"}}}};
_.f.created=function(){this.JSC$13484_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$13484_playerManager=new vG)};
_.f.ready=function(){var a=this;this.JSC$13484_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var b;(b=this.embeddedPlayer)==null||b.remove()}else{var c;(c=this.ytdPlayer)==null||c.remove();ULb(this.JSC$13484_playerManager,this.embeddedPlayer,function(){a.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){a.data&&a.data.navigationEndpoint&&_.go(a.hostElement,"yt-navigate",{endpoint:a.data.navigationEndpoint})})}};
_.f.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$13484_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.f.dataChanged=function(){var a=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var b=!this.data.disableAutoPlayback,c,d={autoplay:b,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((c=this.data.playbackStartMs)!=null?c:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(b?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(d);this.setupYtdPlayer()}else WLb(this.JSC$13484_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(VLb(this.JSC$13484_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$13484_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.ho(a.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");a.JSC$13484_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.f.getPlayerPromise=function(){return this.JSC$13484_playerManager.getPlayerPromise()};
_.f.onYtToggleButton=function(a){this.useYtdPlayer?this.toggleMute(a.detail.toggled):a.detail.toggled?this.JSC$13484_playerManager.mute():this.JSC$13484_playerManager.unMute()};
_.f.onYtNavigate=function(a){var b=dJa(a.detail.endpoint),c=eJa(this.data.clickthroughReportingData);b&&c&&(a.detail.endpoint.watchEndpoint?a.detail.tempData=c:_.Zn(b,c,30))};
_.f.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13484_playerManager.stopVideo()};
_.f.setupYtdPlayer=function(){var a=this,b;return _.l(function(c){if(c.nextAddress==1)return _.p(c,a.ytdPlayer.getPlayerPromise(),2);b=c.yieldResult;b.addEventListener("onStateChange",function(d){a.onPlayerStateChange(d)});
b.addEventListener("onCueRangeExit",function(d){a.onCueRangeExit(d)});
_.se(c)})};
_.f.onPlayerStateChange=function(a){if(a===1&&(a=this.ytdPlayer.getPlayer())){var b=a.getCurrentTime(),c,d,e=b+((d=(c=this.data)==null?void 0:c.playbackDurationMs)!=null?d:0)/1E3;a.addCueRange("playback",b,e);_.ho(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$13484_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.f.onCueRangeExit=function(a){a==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.f.toggleMute=function(a){var b=this,c;return _.l(function(d){if(d.nextAddress==1)return _.p(d,b.ytdPlayer.getPlayerPromise(),2);c=d.yieldResult;a?c.mute():c.unMute();_.se(d)})};
_.Vm.Object.defineProperties(E4b.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var a,b;if(!((a=this.data)==null?0:(b=a.accessibilityData)==null?0:b.label))return"Ad primary link";var c,d;return _.to("AD_TITLE",{title:(c=this.data)==null?void 0:(d=c.accessibilityData)==null?void 0:d.label})}}});
var FN=EN=E4b;EN.prototype.onYtMastheadHidden=EN.prototype.onYtMastheadHidden;EN.prototype.onYtNavigate=EN.prototype.onYtNavigate;EN.prototype.onYtToggleButton=EN.prototype.onYtToggleButton;EN.prototype.dataChanged=EN.prototype.dataChanged;FN.JSC$13483_PLAYBACK_CUE_RANGE="playback";_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],FN.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],FN.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],FN.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],FN.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],FN.prototype,"useYtdPlayer",void 0);_.U([_.gr("ytd-toggle-button-renderer"),_.W("design:type",Object)],FN.prototype,"muteButton",void 0);_.U([_.O(),_.W("design:type",Object)],FN.prototype,"buttonOverrides",void 0);
_.U([_.K("data.accessibilityData.label"),_.W("design:type",String),_.W("design:paramtypes",[])],FN.prototype,"titleAriaLabel",null);_.U([_.gr("#replay-button"),_.W("design:type",Object)],FN.prototype,"replayButton",void 0);_.U([_.gr("#player-container"),_.W("design:type",Object)],FN.prototype,"playerContainer",void 0);_.U([_.gr("#player"),_.W("design:type",Object)],FN.prototype,"embeddedPlayer",void 0);_.U([_.gr("#ytd-player"),_.W("design:type",Object)],FN.prototype,"ytdPlayer",void 0);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],FN.prototype,"dataChanged",null);_.U([_.M("yt-toggle-button"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],FN.prototype,"onYtToggleButton",null);_.U([_.M("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],FN.prototype,"onYtNavigate",null);
_.U([_.M("yt-masthead-hidden"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],FN.prototype,"onYtMastheadHidden",null);FN=EN=_.U([_.Q({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],FN);
_.S(FN,"ytd-video-masthead-ad-primary-video-renderer",function(){if(D4b!==void 0)return D4b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return D4b=a},{mode:2});var F4b;var G4b=function(){var a=_.P.apply(this,arguments)||this;a.collapsed=!1;a.impressionResolver=_.Tt();a.JSC$13488_activeViewMeasurementDataResolver=_.Tt();a.actionMap={"yt-mute-ad-action":"handleMuteAd"};return a};
_.z(G4b,_.P);_.f=G4b.prototype;_.f.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"}}}};
_.f.ready=function(){var a=this;_.E(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){a.expandAd()});
this.hostElement.addEventListener("yt-action",function(b){if(b.detail.actionName==="yt-service-request"){var c=b.detail.args[1];c.videoMastheadAdMuteCommand&&(a.collapseAd(c.videoMastheadAdMuteCommand.encryptedMastheadId),b.stopPropagation())}})};
_.f.attached=function(){var a=this;_.Cr(function(){a.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(b){if(!a.collapsed){b=_.h(b);for(var c=b.next();!c.done;c=b.next())c=c.value,Kk(c.baseUrl,c.attributionSrcMode);a.data.impressionCommand=void 0}});
this.JSC$13488_activeViewMeasurementDataResolver.promise.then(function(b){a.ytdActiveViewBehavior.enableActiveViewMeasurement(b,15)});
_.x("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&a.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.f.dataChanged=function(){var a;((a=this.data.impressionCommand)==null?0:a.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var b;((b=this.data)==null?0:b.activeView)&&this.JSC$13488_activeViewMeasurementDataResolver.resolve(this.data.activeView);(a=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(a.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.f.computeWidescreen=function(a){var b;return!!(a&&((b=_.y(a,Jyb))==null?0:b.isWidescreen))};
_.f.computeExpandable=function(a){return!!(a&&a.length>0)};
_.f.onIronResize=function(){if(this.expandable){var a=_.E(this.hostElement).querySelector("#expandable-tile-container :first-child");a&&!a.expanded&&(a.expanded=!0)}};
_.f.handleMuteAd=function(){this.collapseAd(null)};
_.f.restoreCollapsedState=function(a){this.collapsed=_.wo().get("HIDDEN_MASTHEAD_ID")===a};
_.f.collapseAd=function(a){if(a){var b=_.wo();b.set("HIDDEN_MASTHEAD_ID",a);b.save()}(a=_.E(this.hostElement).querySelector("#video"))&&_.go(a,"yt-masthead-hidden");this.collapsed=!0};
_.f.expandAd=function(){var a=_.wo();a.set("HIDDEN_MASTHEAD_ID",!1);a.save();location.reload()};
_.f.detached=function(){_.x("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
var GN=G4b;GN.prototype.onIronResize=GN.prototype.onIronResize;GN.prototype.dataChanged=GN.prototype.dataChanged;_.U([_.H(_.KD),_.W("design:type",Object)],GN.prototype,"ironResizableBehavior",void 0);_.U([_.H(KI),_.W("design:type",Object)],GN.prototype,"ytdActiveViewBehavior",void 0);_.U([_.H(_.QI),_.W("design:type",Object)],GN.prototype,"ytdGridStateAwareBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],GN.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],GN.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],GN.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],GN.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.W("design:type",Boolean)],GN.prototype,"widescreen",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.W("design:type",Boolean)],GN.prototype,"expandable",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],GN.prototype,"collapsed",void 0);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],GN.prototype,"dataChanged",null);
_.U([_.M("iron-resize"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],GN.prototype,"onIronResize",null);GN=_.U([_.Q({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],GN);
_.S(GN,"ytd-video-masthead-ad-v3-renderer",function(){if(F4b!==void 0)return F4b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return F4b=a},{mode:2});var H4b=function(){return _.P.apply(this,arguments)||this};
_.z(H4b,_.P);_.f=H4b.prototype;_.f.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.f.ready=function(){var a=this;JUa(function(){a.isAttached&&sv(a.JSC$13493_storedAdSlotMetadata,a.JSC$13493_storedAdLayoutMetadata,a.adSlotMetadata,a.adLayoutMetadata)&&vN(tN(),a.JSC$13493_storedAdSlotMetadata,a.JSC$13493_storedAdLayoutMetadata)})};
_.f.attached=function(){sv(this.JSC$13493_storedAdSlotMetadata,this.JSC$13493_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&g4b(tN(),this.JSC$13493_storedAdSlotMetadata,this.JSC$13493_storedAdLayoutMetadata)};
_.f.detached=function(){sv(this.JSC$13493_storedAdSlotMetadata,this.JSC$13493_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&vN(tN(),this.JSC$13493_storedAdSlotMetadata,this.JSC$13493_storedAdLayoutMetadata)};
_.f.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13493_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13493_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13493_storedAdLayoutMetadata!==void 0&&this.JSC$13493_storedAdSlotMetadata!==void 0&&vN(tN(),this.JSC$13493_storedAdSlotMetadata,this.JSC$13493_storedAdLayoutMetadata),g4b(tN(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13493_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13493_storedAdSlotMetadata=this.adSlotMetadata)};
_.Vm.Object.defineProperties(H4b.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.adLayoutMetadata}}});
var HN=H4b;HN.prototype.onAdMetadataChanged=HN.prototype.onAdMetadataChanged;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],HN.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],HN.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],HN.prototype,"data",void 0);_.U([_.K("data.adLayoutMetadata"),_.W("design:type",Object),_.W("design:paramtypes",[])],HN.prototype,"adLayoutMetadata",null);
_.U([_.O(),_.W("design:type",Object)],HN.prototype,"adSlotMetadata",void 0);_.U([_.N("adLayoutMetadata","adSlotMetadata"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],HN.prototype,"onAdMetadataChanged",null);HN=_.U([_.Q({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],HN);
_.S(HN,"ytd-page-top-ad-layout-renderer",function(){if(v4b!==void 0)return v4b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return v4b=
a},{mode:_.as("kevlar_poly_si_batch_j070")?1:2});var I4b;var J4b=function(){var a=_.P.apply(this,arguments)||this;a.noBottomMargin=!1;a.overlayDensity=0;return a};
_.z(J4b,_.P);_.f=J4b.prototype;
_.f.configureRendererStamper=function(){return{"data.fulfillmentContent.fulfilledLayout":{id:"fulfilled-layout",mapping:{inFeedAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]"}},pageTopAdLayoutRenderer:{component:"ytd-page-top-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]"}},sequenceItemInPlayerAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",
noBottomMargin:"[[noBottomMargin]]",overlayDensity:"[[overlayDensity]]"}}}}}};
_.f.ready=function(){var a=this;JUa(function(){a.isAttached&&a.adSlotMetadata&&f4b(tN(),a.adSlotMetadata)})};
_.f.attached=function(){if(this.adSlotMetadata){var a;if(this.adSlotMetadata===((a=this.data)==null?void 0:a.adSlotMetadata))e4b(tN(),this.adSlotMetadata);else{var b;_.Dl(Error("Ih`"+this.adSlotMetadata+"`"+((b=this.data)==null?void 0:b.adSlotMetadata)))}}};
_.f.detached=function(){this.adSlotMetadata&&f4b(tN(),this.adSlotMetadata)};
_.f.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&f4b(tN(),this.adSlotMetadata),e4b(tN(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.Vm.Object.defineProperties(J4b.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var a,b,c=_.y((a=this.data)==null?void 0:(b=a.fulfillmentContent)==null?void 0:b.fulfilledLayout,_.Lyb),d;return(a=(d=_.y(c==null?void 0:c.renderingContent,Kyb))==null?void 0:d.layout)?a.toLowerCase().replace(/_/g,"-"):""}}});
var IN=J4b;IN.prototype.onAdSlotMetadataChanged=IN.prototype.onAdSlotMetadataChanged;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],IN.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],IN.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],IN.prototype,"rendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],IN.prototype,"data",void 0);
_.U([_.O(),_.W("design:type",Object)],IN.prototype,"noBottomMargin",void 0);_.U([_.O(),_.W("design:type",Object)],IN.prototype,"overlayDensity",void 0);_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",String),_.W("design:paramtypes",[])],IN.prototype,"layout",null);_.U([_.N("data.adSlotMetadata"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],IN.prototype,"onAdSlotMetadataChanged",null);
IN=_.U([_.Q({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],IN);
_.S(IN,"ytd-ad-slot-renderer",function(){if(I4b!==void 0)return I4b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return I4b=a},{mode:_.as("kevlar_poly_si_batch_j077")?
1:2});var K4b;var L4b=function(){return _.P.apply(this,arguments)||this};
_.z(L4b,_.P);_.f=L4b.prototype;_.f.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"}}}};
_.f.onTap=function(){this.data&&this.data.navigationEndpoint&&this.data.adPlaybackContextParams&&MBa(this.data.navigationEndpoint,this.data.adPlaybackContextParams)};
_.f.dataChanged=function(){if(this.data&&this.data.impressionUrls)for(var a=_.h(this.data.impressionUrls),b=a.next();!b.done;b=a.next())b=b.value,Ura(b,Wra(b));this.data&&this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)};
_.f.attached=function(){var a=this;_.x("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&a.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.f.detached=function(){_.x("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.Vm.Object.defineProperties(L4b.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.x("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.x("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
var JN=L4b;JN.prototype.dataChanged=JN.prototype.dataChanged;JN.prototype.onTap=JN.prototype.onTap;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],JN.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],JN.prototype,"ytRendererBehavior",void 0);_.U([_.H(KI),_.W("design:type",Object)],JN.prototype,"ytdActiveViewBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],JN.prototype,"ytdReduxBehavior",void 0);
_.U([_.O({selector:_.Lu}),_.W("design:type",Object)],JN.prototype,"isGridViewEnabled",void 0);_.U([_.K("isGridViewEnabled"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],JN.prototype,"watchFeedBigThumbs",null);_.U([_.K("isGridViewEnabled"),_.O({reflectToAttribute:!0}),_.W("design:type",String),_.W("design:paramtypes",[])],JN.prototype,"thumbnailWidth",null);_.U([_.O(),_.W("design:type",Object)],JN.prototype,"data",void 0);
_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],JN.prototype,"onTap",null);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],JN.prototype,"dataChanged",null);JN=_.U([_.Q({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],JN);
_.S(JN,"ytd-compact-promoted-video-renderer",function(){if(K4b!==void 0)return K4b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-promoted-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-promoted-video-renderer">\n</ytd-thumbnail>\n<div class="details style-scope ytd-compact-promoted-video-renderer">\n  <a id="endpoint-link" class="yt-simple-endpoint style-scope ytd-compact-promoted-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-compact-promoted-video-renderer">\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-promoted-video-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-promoted-video-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <div class="secondary-metadata style-scope ytd-compact-promoted-video-renderer">\n      <ytd-video-meta-block class="compact style-scope ytd-compact-promoted-video-renderer" data="[[data]]" watch-feed-big-thumbs="[[watchFeedBigThumbs]]">\n      </ytd-video-meta-block>\n      <div id="ad-badge-container" class="style-scope ytd-compact-promoted-video-renderer">\n        <div id="ad-badge" class="style-scope ytd-compact-promoted-video-renderer"></div>\n      </div>\n    </div>\n  </a>\n  <div id="menu" class="style-scope ytd-compact-promoted-video-renderer"></div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return K4b=a},{mode:1});var M4b;_.It("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var N4b=function(){return _.P.apply(this,arguments)||this};
_.z(N4b,_.P);N4b.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
var KN=N4b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],KN.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],KN.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],KN.prototype,"data",void 0);KN=_.U([_.Q({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],KN);
_.S(KN,"ytd-search-pyv-renderer",function(){if(M4b!==void 0)return M4b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return M4b=a},{mode:1});var O4b;var P4b;var Q4b=function(){var a=_.P.apply(this,arguments)||this;a.hasSpam=!1;a.showButton=!0;a.actionMap={"yt-approve-comment-action":"approveCommentAction","yt-ban-author-action":"banAuthorAction","yt-hide-reported-comment-action":"hideReportedCommentAction","yt-remove-comment-action":"removeCommentAction","yt-load-next-continuation":"onLoadNextContinuation"};a.nextContinuation={contentsArray:"data.contents",continuationType:"commentModerationPanelContinuation",requestPath:"/comment_service_ajax?action_get_comment_replies=1&pbj=1",
usePost:!0};return a};
_.z(Q4b,_.P);_.f=Q4b.prototype;_.f.configureRendererStamper=function(){return{"data.continuations":{id:"continuation",mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]"}}}},"data.contents":{id:"held-comments",mapping:{commentRenderer:{component:"ytd-comment-renderer"}}},"data.likelySpamContents":{id:"likely-spam-comments",mapping:{commentRenderer:{component:"ytd-comment-renderer"}}}}};
_.f.ready=function(){var a=this,b=_.E(this.hostElement).querySelector("#moderation-contents");b&&b.addEventListener("scroll",function(){a.onPanelScroll()})};
_.f.dataChanged=function(){this.expander.collapsed=!0};
_.f.computeSettingsButton=function(a){var b,c,d;return(d=a==null?void 0:(b=a.expander)==null?void 0:(c=b.commentModerationPanelExpanderRenderer)==null?void 0:c.settingsButton)==null?void 0:d.buttonRenderer};
_.f.onPanelScroll=function(){var a=this;_.Dr(this,"onPanelScroll",function(){var b=_.E(a.hostElement).querySelector("#moderation-contents");if(b){b=b.scrollTop===0;var c,d;_.$q((d=(c=a.expander.children[1])==null?void 0:c.offsetParent)!=null?d:a.hostElement,"scrolling",b)}},50)};
_.f.onNextContinuationDataUpdated=function(a,b){a=b.continuationData.response;var c,d;if(!((c=a.continuationContents)==null?0:(d=c.commentModerationPanelContinuation)==null?0:d.contents)){var e,g;if((e=a.continuationContents)==null?0:(g=e.commentModerationPanelContinuation)==null?0:g.likelySpamContents){var k;this.data.spamHeaderText=(k=a.continuationContents)==null?void 0:k.commentModerationPanelContinuation.spamHeaderText;var m;this.set("data.likelySpamContents",(m=a.continuationContents)==null?
void 0:m.commentModerationPanelContinuation.likelySpamContents);this.nextContinuation={contentsArray:"data.likelySpamContents",continuationType:"commentModerationPanelContinuation",responseContentsKey:"likelySpamContents",usePost:!0};this.hasSpam=!0}}};
_.f.computeHasContinuation=function(a){return!!a};
_.f.hideSpamDivider=function(a){return!a||a&&this.data.contents.length===0};
_.f.computeSpamHeaderText=function(a,b){return a?b:_.Up("")};
_.f.triggerContinuation=function(){this.hostElement.querySelector("yt-next-continuation").trigger();this.showButton=!1};
_.f.approveCommentAction=function(a){(a=this.get("approveCommentAction.commentId",a))&&this.removeComment(a)};
_.f.banAuthorAction=function(a){(a=this.get("banAuthorAction.commentId",a))&&this.removeComment(a)};
_.f.removeCommentAction=function(a){(a=this.get("removeCommentAction.commentId",a))&&this.removeComment(a)};
_.f.hideReportedCommentAction=function(a){(a=this.get("hideReportedCommentAction.commentId",a))&&this.removeComment(a)};
_.f.removeComment=function(a){var b=this.commentIdToHeldCommentsIndex(a);a=this.commentIdToLikelySpamCommentsIndex(a);b>=0?this.splice("data.contents",b,1):a>=0&&this.splice("data.likelySpamContents",a,1);this.data.contents&&this.data.contents.length!==0||this.data.likelySpamContents&&this.data.likelySpamContents.length!==0||_.go(this.hostElement,"ytd-comment-moderation-panel-empty")};
_.f.commentIdToHeldCommentsIndex=function(a){var b;if((b=this.data)==null||!b.contents)return-1;for(b=0;b<this.data.contents.length;b++)if(this.data.contents[b].commentRenderer.commentId===a)return b;return-1};
_.f.commentIdToLikelySpamCommentsIndex=function(a){var b;if((b=this.data)==null||!b.likelySpamContents)return-1;for(b=0;b<this.data.likelySpamContents.length;b++)if(this.data.likelySpamContents[b].commentRenderer.commentId===a)return b;return-1};
var LN=Q4b;LN.prototype.onNextContinuationDataUpdated=LN.prototype.onNextContinuationDataUpdated;LN.prototype.dataChanged=LN.prototype.dataChanged;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],LN.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],LN.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],LN.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.SM.YtNextContinuationBehavior),_.W("design:type",Object)],LN.prototype,"ytNextContinuationBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],LN.prototype,"data",void 0);_.U([_.O({computed:"computeSettingsButton(data)"}),_.W("design:type",Object)],LN.prototype,"settingsButton",void 0);_.U([_.O(),_.W("design:type",Object)],LN.prototype,"hasSpam",void 0);_.U([_.O({computed:"computeHasContinuation(data.continuations)"}),_.W("design:type",Boolean)],LN.prototype,"hasContinuation",void 0);
_.U([_.O(),_.W("design:type",Object)],LN.prototype,"showButton",void 0);_.U([_.gr("#expander"),_.W("design:type",Object)],LN.prototype,"expander",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],LN.prototype,"dataChanged",null);_.U([_.M("yt-next-continuation-data-updated"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],LN.prototype,"onNextContinuationDataUpdated",null);
LN=_.U([_.Q({is:"ytd-comment-moderation-panel-renderer",disableElementRegistration:!0})],LN);
_.S(LN,"ytd-comment-moderation-panel-renderer",function(){if(P4b!==void 0)return P4b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-moderation-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-expander id="expander" align-auto="" always-toggleable="" collapsed-height="0" reversed="" class="style-scope ytd-comment-moderation-panel-renderer">\n  <div class="more-button style-scope ytd-comment-moderation-panel-renderer" slot="more-button" on-click="triggerContinuation">\n    <span class="expander-text style-scope ytd-comment-moderation-panel-renderer">\n      [[getSimpleString(data.expander.commentModerationPanelExpanderRenderer.text)]]\n    </span>\n    <div class="icons style-scope ytd-comment-moderation-panel-renderer">\n      <ytd-button-renderer class="settings-button style-scope ytd-comment-moderation-panel-renderer" data="[[settingsButton]]">\n      </ytd-button-renderer>\n      <yt-icon id="expander-icon" icon="yt-icons:expand-more" class="style-scope ytd-comment-moderation-panel-renderer"></yt-icon>\n    </div>\n  </div>\n  <div class="less-button style-scope ytd-comment-moderation-panel-renderer" slot="less-button">\n    <span class="expander-text style-scope ytd-comment-moderation-panel-renderer">\n      [[getSimpleString(data.expander.commentModerationPanelExpanderRenderer.text)]]\n    </span>\n    <div class="icons style-scope ytd-comment-moderation-panel-renderer">\n      <ytd-button-renderer class="settings-button style-scope ytd-comment-moderation-panel-renderer" data="[[settingsButton]]">\n      </ytd-button-renderer>\n      <yt-icon id="expander-icon" icon="yt-icons:expand-less" class="style-scope ytd-comment-moderation-panel-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="moderation-contents" slot="content" class="style-scope ytd-comment-moderation-panel-renderer">\n    <div id="held-comments" class="style-scope ytd-comment-moderation-panel-renderer"></div>\n    <div id="likely-spam-divider" hidden="[[hideSpamDivider(hasSpam)]]" class="style-scope ytd-comment-moderation-panel-renderer"></div>\n    <yt-formatted-string id="likely-spam-header" text="[[computeSpamHeaderText(data.likelySpamContents, data.spamHeaderText)]]" class="style-scope ytd-comment-moderation-panel-renderer">\n    </yt-formatted-string>\n    <div id="likely-spam-comments" class="style-scope ytd-comment-moderation-panel-renderer"></div>\n    <div id="continuation" class="style-scope ytd-comment-moderation-panel-renderer"></div>\n  </div>\n</ytd-expander>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return P4b=a},{mode:1});_.It("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var R4b=function(){var a=_.P.apply(this,arguments)||this;a.roundedContainer=!0;a.JSC$13522_handleOpenPostCommentDialogActionAfterStamp=!1;a.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return a};
_.z(R4b,_.P);_.f=R4b.prototype;
_.f.configureRendererStamper=function(){return{"data.post":{id:"post",mapping:{backstagePostRenderer:{component:"ytd-backstage-post-renderer",properties:{hasInlineCommentSection:"[[hasInlineCommentSection]]",shouldHideAuthor:"[[isInEngagementPanel]]",shouldShowVideoTime:"[[isInEngagementPanel]]",shouldShowMenuInCompactView:"[[isInEngagementPanel]]",isInEngagementPanel:"[[isInEngagementPanel]]",usesFullLockup:"[[usesFullLockup]]",hideBorder:"[[hideBorder]]"}},postRenderer:"ytd-post-renderer",sharedPostRenderer:{component:"ytd-shared-post-renderer",
properties:{usesFullLockup:"[[usesFullLockup]]"}}}},"data.moderationPanel":{id:"moderation-panel",mapping:{commentModerationPanelRenderer:"ytd-comment-moderation-panel-renderer"}},"data.commentDialog":{id:"comment-dialog",mapping:{commentReplyDialogRenderer:"ytd-comment-reply-dialog-renderer"},events:!0}}};
_.f.onStampFinished=function(){this.JSC$13522_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.f.handleSignalActionOpenPostCommentDialogAction=function(){var a=_.E(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");a?a.openDialog():this.JSC$13522_handleOpenPostCommentDialogActionAfterStamp=!0};
_.f.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.f.computeHasInlineCommentSection=function(a){return!!a};
_.f.computeHideBorder=function(){return this.isInEngagementPanel};
_.f.computeIsCompact=function(){return this.isInEngagementPanel};
_.f.computeUsesCompactLockup=function(a){return a==="BACKSTAGE_SURFACE_TYPE_HOME"||a==="BACKSTAGE_SURFACE_TYPE_SEARCH"||a==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||a==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||a==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||a==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.f.computeUsesFullLockup=function(){var a,b=(a=this.data)==null?void 0:a.post,c;a=(c=_.y(b,Vyb))==null?void 0:c.surface;var d;c=(d=_.y(b,Xyb))==null?void 0:d.originalPost;var e;if(d=a||((e=_.y(c,Vyb))==null?void 0:e.surface))return!this.computeUsesCompactLockup(d)&&this.useUpdatedRepostUi;var g;return((g=_.y(b,Xyb))==null?void 0:g.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.Vm.Object.defineProperties(R4b.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var a,b;return((b=_.y((a=this.data)==null?void 0:a.post,Vyb))==null?void 0:b.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.useUpdatedRepostUi}}});
var MN=R4b;MN.prototype.onYtCommentModerationPanelEmpty=MN.prototype.onYtCommentModerationPanelEmpty;MN.prototype.onStampFinished=MN.prototype.onStampFinished;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],MN.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],MN.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],MN.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],MN.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],MN.prototype,"roundedContainer",void 0);_.U([_.O({computed:"computeHasInlineCommentSection(data.comments)"}),_.W("design:type",Boolean)],MN.prototype,"hasInlineCommentSection",void 0);_.U([_.O({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.W("design:type",Boolean)],MN.prototype,"hideBorder",void 0);
_.U([_.O({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.W("design:type",Boolean)],MN.prototype,"isCompact",void 0);_.U([_.O({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.W("design:type",Boolean)],MN.prototype,"usesFullLockup",void 0);_.U([_.M("yt-rendererstamper-finished"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],MN.prototype,"onStampFinished",null);
_.U([_.M("ytd-comment-moderation-panel-empty"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],MN.prototype,"onYtCommentModerationPanelEmpty",null);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],MN.prototype,"isInEngagementPanel",null);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],MN.prototype,"useUpdatedRepostUi",null);
MN=_.U([_.Q({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],MN);
_.S(MN,"ytd-backstage-post-thread-renderer",function(){if(O4b!==void 0)return O4b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="post" hidden="[[!data.post]]" class="style-scope ytd-backstage-post-thread-renderer"></div>\n<div id="comments-disabled" hidden="[[!data.commentsDisabledMessage]]" class="style-scope ytd-backstage-post-thread-renderer">[[getSimpleString(data.commentsDisabledMessage)]]</div>\n<div id="moderation-panel" hidden="[[!data.moderationPanel]]" class="style-scope ytd-backstage-post-thread-renderer"></div>\n<div id="comment-dialog" hidden="[[!data.commentDialog]]" class="style-scope ytd-backstage-post-thread-renderer"></div>\n<div id="comments" hidden="[[!data.comments]]" class="style-scope ytd-backstage-post-thread-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return O4b=a},{mode:1});var S4b;var NN=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a};
_.z(NN,_.P);NN.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
NN.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var a=this.data.thumbnail.thumbnails;this.isDarkTheme&&(a=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(a=_.Xs(a,24,void 0,"height"))?a:void 0}};
NN.prototype.onDarkModeToggledAction=function(a){this.isDarkTheme=a};
NN.prototype.computeHasText=function(){var a;return!((a=this.data)==null||!a.text)};
_.Vm.Object.defineProperties(NN.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.Gd(this.bannerImageUrl))+'");'}}});
var ON=NN;ON.prototype.computeHasText=ON.prototype.computeHasText;ON.prototype.computeBannerImageUrl=ON.prototype.computeBannerImageUrl;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],ON.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],ON.prototype,"actionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],ON.prototype,"ytRendererBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],ON.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Boolean)],ON.prototype,"isDarkTheme",void 0);_.U([_.O(),_.W("design:type",String)],ON.prototype,"bannerImageUrl",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.W("design:type",Boolean)],ON.prototype,"hasText",void 0);_.U([_.N("data","isDarkTheme"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ON.prototype,"computeBannerImageUrl",null);
_.U([_.N("data.text"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ON.prototype,"computeHasText",null);_.U([_.K("bannerImageUrl"),_.W("design:type",Object),_.W("design:paramtypes",[])],ON.prototype,"bannerStyle",null);ON=_.U([_.Q({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],ON);
_.S(ON,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(S4b!==void 0)return S4b;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return S4b=a},{mode:1});var T4b;var U4b=function(){return _.P.apply(this,arguments)||this};
_.z(U4b,_.P);var PN=U4b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],PN.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],PN.prototype,"data",void 0);PN=_.U([_.Q({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],PN);
_.S(PN,"ytd-backstage-zero-state-renderer",function(){if(T4b!==void 0)return T4b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return T4b=a},{mode:1});var V4b;var W4b=function(){return _.P.apply(this,arguments)||this};
_.z(W4b,_.P);var QN=W4b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],QN.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],QN.prototype,"data",void 0);_.U([_.O({computed:"computeIcon_(data.icon)"}),_.W("design:type",String)],QN.prototype,"icon",void 0);QN=_.U([_.Q({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],QN);
_.S(QN,"ytd-post-filter-zero-state-renderer",function(){if(V4b!==void 0)return V4b;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return V4b=a},{mode:1});var X4b;var Y4b={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},Z4b=function(){return _.P.apply(this,arguments)||this};
_.z(Z4b,_.P);Z4b.prototype.configureRendererStamper=function(){return Y4b};
var RN=Z4b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],RN.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],RN.prototype,"rendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],RN.prototype,"data",void 0);_.U([_.O({computed:"computeIcon_(data.icon)"}),_.W("design:type",String)],RN.prototype,"icon",void 0);RN=_.U([_.Q({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],RN);
_.S(RN,"ytd-post-scheduling-zero-state-renderer",function(){if(X4b!==void 0)return X4b;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return X4b=a},{mode:1});var $4b;var SN=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return a};
_.z(SN,_.P);SN.prototype.onTabsActivate=function(a){this.data&&this.data.tabs&&_.go(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[a.detail.selected].navigationEndpoint})};
SN.prototype.shouldShowTotalCount=function(a){return a&&a.totalCount!==void 0};
SN.prototype.handleUpdatePostsTotalCountAction=function(a){var b=this.get(["data.tabs",1,"totalCount"]),c=this.get("updatePostsTotalCountAction.updateType",a);a=this.get("updatePostsTotalCountAction.number",a);b!==void 0&&c!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&a&&(c==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(b)+a):c==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(b)-a))};
_.Vm.Object.defineProperties(SN.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var a=0,b=this.data.tabs.length;a<b;a++)if(this.data.tabs[a].selected)return a;return 0}}});
var TN=SN;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],TN.prototype,"actionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],TN.prototype,"rendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],TN.prototype,"data",void 0);_.U([_.K("data.tabs"),_.W("design:type",Number),_.W("design:paramtypes",[])],TN.prototype,"selected",null);TN=_.U([_.Q({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],TN);
_.S(TN,"ytd-post-stream-filter-renderer",function(){if($4b!==void 0)return $4b;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return $4b=a},{mode:1});var a5b;var b5b=function(){return _.P.apply(this,arguments)||this};
_.z(b5b,_.P);var UN=b5b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],UN.prototype,"kevlarBehaviors",void 0);_.U([_.O(),_.W("design:type",Object)],UN.prototype,"data",void 0);UN=_.U([_.Q({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],UN);
_.S(UN,"ytd-channel-age-gate-renderer",function(){if(a5b!==void 0)return a5b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return a5b=a},{mode:1});var c5b;_.It("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var d5b=function(){var a=_.P.apply(this,arguments)||this;a.data=null;return a};
_.z(d5b,_.P);d5b.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Vm.Object.defineProperties(d5b.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return((a=this.data)==null?0:(b=a.title)==null?0:(c=b.runs)==null?0:c.length)?147:160}}});
var VN=d5b;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],VN.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],VN.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Number),_.W("design:paramtypes",[])],VN.prototype,"imageSizePx",null);VN=_.U([_.Q({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],VN);
_.S(VN,"ytd-channel-owner-empty-state-renderer",function(){if(c5b!==void 0)return c5b;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return c5b=a},{mode:1});var e5b;var f5b;var g5b=function(){var a=_.P.apply(this,arguments)||this;a.boundSubmitSearch=function(){a.submitSearch()};
a.boundClearSearch=function(){a.clearSearch()};
return a};
_.z(g5b,_.P);_.f=g5b.prototype;_.f.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]]"}}}}}};
_.f.toggleClearButton=function(){this.hideClearButton=T8a||!this.input.value};
_.f.submitOnEnterKeyUp=function(a){a.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.f.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.f.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.f.submit=function(){_.go(this.hostElement,"search-query-changed",this.input.value)};
var WN=g5b;WN.prototype.toggleClearButton=WN.prototype.toggleClearButton;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],WN.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],WN.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],WN.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],WN.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],WN.prototype,"hideClearButton",void 0);_.U([_.O(),_.W("design:type",Object)],WN.prototype,"boundSubmitSearch",void 0);_.U([_.O(),_.W("design:type",Object)],WN.prototype,"boundClearSearch",void 0);_.U([_.gr("#input"),_.W("design:type",Object)],WN.prototype,"input",void 0);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],WN.prototype,"toggleClearButton",null);
WN=_.U([_.Q({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],WN);
_.S(WN,"ytd-channel-switcher-search-box-renderer",function(){if(f5b!==void 0)return f5b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return f5b=a},{mode:1});var h5b;var i5b=function(){var a=_.P.apply(this,arguments)||this;a.boundSubmit=function(){a.submit()};
return a};
_.z(i5b,_.P);_.f=i5b.prototype;_.f.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"}}}}};
_.f.ready=function(){var a=this;this.form.addEventListener("submit",function(b){return a.onSubmit(b)})};
_.f.onSubmit=function(a){a.preventDefault();return!1};
_.f.toggleClearButton=function(){this.hideClearButton=T8a||!this.input.value};
_.f.submitOnEnterKeyUp=function(a){a.keyCode===13&&this.submit()};
_.f.submit=function(){var a=this.data.endpoint,b=(0,_.yf.unsafeClone)(a);_.y(b,_.pq)?_.y(b,_.pq).query=this.input.value:_.y(b,_.qq)&&(_.y(b,_.qq).query=this.input.value);var c=_.y(b.commandMetadata,_.ao);(c==null?0:c.url)?(c.url=_.Il(c.url,"query",this.input.value),_.go(this.hostElement,"yt-navigate",{endpoint:b})):_.y(b,Dyb)?(_.y(b,Dyb).channelSwitcherQuery=this.input.value,_.x("web_ytd_search_box_renderer_command_resolver_ks")?_.mo(this.hostElement,[b]):_.v().resolve(_.Xi).resolveCommand(b,{form:{element:this.hostElement}})):
(a=Error("Jh`"+JSON.stringify(a)),_.Bl(a))};
_.f.getUrl=function(a){return this.get("commandMetadata.webCommandMetadata.url",a)};
var XN=i5b;XN.prototype.toggleClearButton=XN.prototype.toggleClearButton;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],XN.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],XN.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],XN.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],XN.prototype,"hideClearButton",void 0);
_.U([_.O(),_.W("design:type",Object)],XN.prototype,"boundSubmit",void 0);_.U([_.gr("#form"),_.W("design:type",HTMLFormElement)],XN.prototype,"form",void 0);_.U([_.gr("#input"),_.W("design:type",Object)],XN.prototype,"input",void 0);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],XN.prototype,"toggleClearButton",null);XN=_.U([_.Q({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],XN);
_.S(XN,"ytd-search-box-renderer",function(){if(h5b!==void 0)return h5b;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return h5b=a},{mode:2});var j5b=function(){var a=_.P.apply(this,arguments)||this;a.showSearchBox=!0;return a};
_.z(j5b,_.P);j5b.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
var YN=j5b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],YN.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],YN.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],YN.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],YN.prototype,"showSearchBox",void 0);YN=_.U([_.Q({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],YN);
_.S(YN,"ytd-channel-switcher-header-renderer",function(){if(e5b!==void 0)return e5b;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return e5b=a},{mode:1});var k5b;var l5b;var m5b=function(){var a=_.P.apply(this,arguments)||this;a.isDisplayed=!0;return a};
_.z(m5b,_.P);_.f=m5b.prototype;_.f.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.f.dataChanged=function(){this.isDisplayed=!0};
_.f.computeType=function(a){return a||"UNKNOWN"};
_.f.onYtServiceRequestCompleted=function(a){a.stopPropagation();this.isDisplayed=!1};
_.f.onClose=function(){this.isDisplayed=!1};
var ZN=m5b;ZN.prototype.onYtServiceRequestCompleted=ZN.prototype.onYtServiceRequestCompleted;ZN.prototype.dataChanged=ZN.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],ZN.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],ZN.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],ZN.prototype,"data",void 0);
_.U([_.O({computed:"computeType(data.type)",reflectToAttribute:!0}),_.W("design:type",String)],ZN.prototype,"type",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],ZN.prototype,"isDisplayed",void 0);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ZN.prototype,"dataChanged",null);
_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],ZN.prototype,"onYtServiceRequestCompleted",null);ZN=_.U([_.Q({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],ZN);
_.S(ZN,"ytd-alert-with-button-renderer",function(){if(l5b!==void 0)return l5b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return l5b=a},{mode:1});var n5b=function(){var a=_.P.apply(this,arguments)||this;a.noResult=!1;a.enableAlertBanner=!1;a.dismissedAlertBanner=!1;a.hideCreateChannelButton=!1;a.boundDismissAlertBanner=function(){a.dismissAlertBanner()};
a.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return a};
_.z(n5b,_.P);_.f=n5b.prototype;_.f.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.f.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.f.updateChannelSwitcherAction=function(a){var b;a=(b=_.y(a,iAb))==null?void 0:b.page;_.y(a,hAb)!==void 0&&(this.data=_.y(a,hAb))};
_.f.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]]"}}}}}};
_.f.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.f.searchQueryChanged=function(a,b){if(this.data&&this.data.contents&&this.data.contents.length){a=[];var c=[];this.hideCreateChannelButton=this.noResult=!1;for(var d=document.querySelectorAll("ytd-account-item-renderer"),e=_.h(d),g=e.next();!g.done;g=e.next())g=g.value,c.push(g),g.style.display="block";this.resetRightBorder(c);if(b){this.hideCreateChannelButton=!0;for(c=1;c<this.data.contents.length;c++)if(g=this.data.contents[c],_.y(g,Ayb)){var k=void 0,m=void 0;e=(k=_.y(g,Ayb))==null?void 0:(m=
k.accountName)==null?void 0:m.simpleText;m=k=void 0;g=(k=_.y(g,Ayb))==null?void 0:(m=k.channelHandle)==null?void 0:m.simpleText;(k=d[c-1])&&e&&_.ta(e,b)?a.push(k):_.x("enable_handle_search_on_channel_switcher")&&k&&g&&_.ta(g.toString(),b.toString())?a.push(k):k.style.display="none"}a.length===0&&(this.noResult=!0);this.resetRightBorder(a)}}};
_.f.resetRightBorder=function(a){for(var b=0;b<a.length;b++)a[b].style.borderRight=!this.hideCreateChannelButton&&(b+2)%3===0||this.hideCreateChannelButton&&(b+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.f.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.f.setShowSearchBox=function(a){if(a&&a.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var b=0;b<a.contents.length;b++)_.y(a.contents[b],_.lw)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.f.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.Vm.Object.defineProperties(n5b.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null?0:a.contents)}}});
var $N=n5b;$N.prototype.onContinuationItemsUpdated=$N.prototype.onContinuationItemsUpdated;$N.prototype.searchQueryChanged=$N.prototype.searchQueryChanged;$N.prototype.onDataChanged=$N.prototype.onDataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],$N.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],$N.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],$N.prototype,"actionHandlerBehavior",void 0);_.U([_.H(_.RM),_.W("design:type",Object)],$N.prototype,"ytContinuationHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],$N.prototype,"data",void 0);_.U([_.gr("ytd-channel-switcher-header-renderer"),_.W("design:type",Object)],$N.prototype,"channelSwitcherHeaderRenderer",void 0);_.U([_.O(),_.W("design:type",Object)],$N.prototype,"noResult",void 0);
_.U([_.O(),_.W("design:type",Object)],$N.prototype,"enableAlertBanner",void 0);_.U([_.O(),_.W("design:type",Object)],$N.prototype,"dismissedAlertBanner",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],$N.prototype,"hideCreateChannelButton",void 0);_.U([_.K("data.contents"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],$N.prototype,"isLoading",null);_.U([_.O(),_.W("design:type",Object)],$N.prototype,"boundDismissAlertBanner",void 0);
_.U([_.O({computed:"computeButtonOverride()"}),_.W("design:type",Object)],$N.prototype,"buttonOverride",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],$N.prototype,"onDataChanged",null);_.U([_.M("search-query-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,String]),_.W("design:returntype")],$N.prototype,"searchQueryChanged",null);
_.U([_.M("yt-next-continuation-data-updated"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],$N.prototype,"onContinuationItemsUpdated",null);$N=_.U([_.Q({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],$N);
_.S($N,"ytd-channel-switcher-page-renderer",function(){if(k5b!==void 0)return k5b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return k5b=a},{mode:1});var o5b;var p5b=function(){var a=_.P.apply(this,arguments)||this;a.buttonOverrides={size:"S",iconPosition:"icon-only"};a.replyButtonOverrides={size:"S",type:"text"};return a};
_.z(p5b,_.P);_.f=p5b.prototype;_.f.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.f.detached=function(){this.replyBox&&this.replyBox.remove()};
_.f.showReplyDialog=function(a){if(a){var b=this.replyBox;b||(b=document.createElement("ytd-comment-reply-dialog-renderer"),b.id="replybox",_.E(this.replyDialogDiv).appendChild(b));b.data=a;this.replyDialogDiv.hidden=!1;b.openDialog()}};
_.f.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.f.onYtServiceRequestSent=function(a,b){a.stopPropagation();if(b.actions)for(var c=0;c<b.actions.length;c++){var d=_.y(b.actions[c],tzb);d?this.handleUpdateCommentVoteAction(d):a.target===this.heartButton&&this.toggleHeartState()}};
_.f.handleUpdateCommentVoteAction=function(a){var b;(b=this.toolbarState)!=null&&b.key&&this.ytdReduxBehavior.dispatch(_.Iu("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:a.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":a.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.f.toggleHeartState=function(){var a;(a=this.toolbarState)!=null&&a.key&&this.ytdReduxBehavior.dispatch(_.Iu("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.Vm.Object.defineProperties(p5b.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return(((a=this.toolbarState)==null?void 0:a.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(b=this.toolbarData)==null?void 0:b.likeCountLiked:(c=this.toolbarData)==null?void 0:c.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.toolbarSurface)==null?void 0:a.commentDisabledActionCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.toolbarSurface)==null?void 0:a.prepareAccountCommand)!==void 0&&!_.x("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var a,b=_.y((a=this.toolbarSurface)==null?void 0:a.prepareAccountCommand,_.Ds),c,d,e,g,k,m,n,r,t;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((c=this.toolbarSharedData)==null||!c.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((d=this.toolbarState)==null?void 0:d.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:b!=null?b:_.y((e=this.toolbarSurface)==null?void 0:e.likeCommand,_.Ds),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:b!=null?b:_.y((g=this.toolbarSurface)==null?void 0:g.unlikeCommand,_.Ds),defaultCommand:this.isVisiblyDisabled?_.y((k=this.toolbarSurface)==null?void 0:k.commentDisabledActionCommand,_.Ds):void 0,defaultTooltip:(m=this.toolbarData)==null?void 0:m.likeInactiveTooltip,toggledTooltip:(n=this.toolbarData)==null?void 0:n.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(r=this.toolbarData)==null?void 0:r.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(t=this.toolbarSharedData)==null?void 0:t.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var a,b=_.y((a=this.toolbarSurface)==null?void 0:a.prepareAccountCommand,_.Ds),c,d,e,g,k,m,n,r,t,u;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((c=this.toolbarSharedData)==null||!c.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((d=this.toolbarState)==null?void 0:d.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:b!=null?b:_.y((e=this.toolbarSurface)==null?void 0:e.dislikeCommand,_.Ds),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:b!=null?b:_.y((g=this.toolbarSurface)==null?void 0:g.undislikeCommand,_.Ds),defaultCommand:this.isVisiblyDisabled?_.y((k=this.toolbarSurface)==null?void 0:k.commentDisabledActionCommand,_.Ds):void 0,defaultTooltip:(m=this.toolbarData)==null?void 0:m.dislikeInactiveTooltip,toggledTooltip:(n=this.toolbarData)==null?void 0:
n.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(r=this.toolbarSharedData)==null?void 0:r.dislikeReplyButtonA11y:(t=this.toolbarSharedData)==null?void 0:t.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 a,b,c;if(((a=this.toolbarState)==null?void 0:a.heartState)!==void 0&&((b=this.toolbarState)==null?void 0:b.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((c=this.toolbarState)==null?void 0:c.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var d,e,g,k,m,n,r,t,u,w,A,C,G,J;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(d=this.toolbarData)==null?void 0:d.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((e=this.toolbarState)==null?void 0:e.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((g=this.toolbarState)==null?void 0:g.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((k=this.toolbarState)==null?void 0:k.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((m=this.toolbarState)==null?void 0:m.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.y((n=this.toolbarSurface)==null?void 0:n.heartCommand,
_.Ds),unheartEndpoint:this.isVisiblyDisabled?void 0:_.y((r=this.toolbarSurface)==null?void 0:r.unheartCommand,_.Ds),disabledEndpoint:this.isVisiblyDisabled?_.y((t=this.toolbarSurface)==null?void 0:t.commentDisabledActionCommand,_.Ds):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(u=this.toolbarData)==null?void 0:u.heartActiveTooltip,unheartedTooltip:(w=this.toolbarData)==null?void 0:w.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((A=
this.toolbarState)==null?void 0:A.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(C=this.toolbarSharedData)==null?void 0:C.unheartButtonA11y:(G=this.toolbarSharedData)==null?void 0:G.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(J=this.toolbarSharedData)==null?void 0:J.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.toolbarSurface)==null||!a.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(a=this.commentStrings)==null?void 0:a.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled?void 0:_.y((b=this.toolbarSurface)==null?void 0:b.replyCommand,_.Ds),command:this.isVisiblyDisabled?_.y((c=this.toolbarSurface)==null?void 0:c.commentDisabledActionCommand,_.Ds):void 0}}}});
var aO=p5b;aO.prototype.onYtServiceRequestSent=aO.prototype.onYtServiceRequestSent;aO.prototype.hideReplyDialogDiv=aO.prototype.hideReplyDialogDiv;_.U([_.O(),_.W("design:type",Object)],aO.prototype,"commentStrings",void 0);_.U([_.O(),_.W("design:type",Boolean)],aO.prototype,"isReply",void 0);_.U([_.O(),_.W("design:type",Object)],aO.prototype,"toolbarData",void 0);_.U([_.O(),_.W("design:type",Object)],aO.prototype,"toolbarSharedData",void 0);
_.U([_.O(),_.W("design:type",String)],aO.prototype,"toolbarStateKey",void 0);_.U([_.O(),_.W("design:type",String)],aO.prototype,"toolbarSurfaceKey",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],aO.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],aO.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],aO.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.gr("#reply-dialog"),_.W("design:type",HTMLElement)],aO.prototype,"replyDialogDiv",void 0);_.U([_.gr("#replybox"),_.W("design:type",Object)],aO.prototype,"replyBox",void 0);_.U([_.gr("ytd-creator-heart-renderer"),_.W("design:type",Object)],aO.prototype,"heartButton",void 0);_.U([_.O({selector:function(a,b){return _.mp(a.entities,"engagementToolbarStateEntityPayload",b)},
selectorArgs:["toolbarStateKey"]}),_.W("design:type",Object)],aO.prototype,"toolbarState",void 0);_.U([_.O({selector:gVa,selectorArgs:["toolbarSurfaceKey"]}),_.W("design:type",Object)],aO.prototype,"toolbarSurface",void 0);_.U([_.O(),_.W("design:type",Object)],aO.prototype,"buttonOverrides",void 0);_.U([_.M("yt-commentbox-dismiss"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],aO.prototype,"hideReplyDialogDiv",null);
_.U([_.K("toolbarData","toolbarState"),_.W("design:type",String),_.W("design:paramtypes",[])],aO.prototype,"likeCount",null);_.U([_.K("likeCount"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],aO.prototype,"showLikeCount",null);_.U([_.K("toolbarSurface"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],aO.prototype,"isVisiblyDisabled",null);_.U([_.K("toolbarSurface"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],aO.prototype,"hasPrepareAccountCommand",null);
_.U([_.K("toolbarData","toolbarState","toolbarSurface"),_.W("design:type",Object),_.W("design:paramtypes",[])],aO.prototype,"likeToggleButtonRenderer",null);_.U([_.K("isReply","toolbarData","toolbarState","toolbarSurface"),_.W("design:type",Object),_.W("design:paramtypes",[])],aO.prototype,"dislikeToggleButtonRenderer",null);_.U([_.K("toolbarData","toolbarState","toolbarSurface"),_.W("design:type",Object),_.W("design:paramtypes",[])],aO.prototype,"creatorHeartSupportedRenderer",null);
_.U([_.K("toolbarSurface"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],aO.prototype,"hasReplyCommand",null);_.U([_.K("toolbarSurface","commentStrings","isVisiblyDisabled"),_.W("design:type",Object),_.W("design:paramtypes",[])],aO.prototype,"replyButtonRenderer",null);_.U([_.O(),_.W("design:type",Object)],aO.prototype,"replyButtonOverrides",void 0);
_.U([_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Ot]),_.W("design:returntype")],aO.prototype,"onYtServiceRequestSent",null);aO=_.U([_.Q({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],aO);
_.S(aO,"ytd-comment-engagement-bar",function(){if(o5b!==void 0)return o5b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-engagement-bar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-engagement-bar">\n  \n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="bottom" data="[[likeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!showLikeCount]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-engagement-bar">\n    [[likeCount]]\n  </span>\n  \n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="bottom" data="[[dislikeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  \n  <div id="creator-heart" class="style-scope ytd-comment-engagement-bar"></div>\n  \n  <ytd-button-renderer id="reply-button-end" data="[[replyButtonRenderer]]" force-icon-button="true" hidden="[[!hasReplyCommand]]" overrides="[[replyButtonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-button-renderer>\n</div>\n\n<div id="reply-dialog" class="style-scope ytd-comment-engagement-bar"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return o5b=a},{mode:1});var q5b;var r5b=function(){return _.P.apply(this,arguments)||this};
_.z(r5b,_.P);var s5b=r5b;_.U([_.O(),_.W("design:type",Object)],s5b.prototype,"data",void 0);s5b=_.U([_.Q({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],s5b);
_.S(s5b,"ytd-comment-pause-composer-renderer",function(){if(q5b!==void 0)return q5b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-pause-composer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pause-composer" class="style-scope ytd-comment-pause-composer-renderer">\n  <yt-attributed-string data="[[data.text]]" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.termsText]]" force-default-style="" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n</div>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return q5b=a},{mode:1});var t5b;var u5b;var v5b;var bO=function(){return _.P.apply(this,arguments)||this};
_.z(bO,_.P);bO.prototype.computeState=function(a){switch(a==null?void 0:a.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"}};
bO.prototype.updateStateIdentifier=function(a){if(this.viewModel.triStateKey){var b=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.Iu("triStateButtonStateEntityPayload",b,{key:b,stateIdentifier:a}))}};
bO.prototype.onClick=function(){var a=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(){a.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){a.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.Vm.Object.defineProperties(bO.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 a;return((a=this.data)==null?void 0:a.buttonText)||""}}});
var cO=bO;_.U([_.O(),_.W("design:type",Object)],cO.prototype,"viewModel",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],cO.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],cO.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],cO.prototype,"ytRendererBehavior",void 0);
_.U([_.O({selector:hVa,selectorArgs:["viewModel.triStateKey"]}),_.W("design:type",Object)],cO.prototype,"triStateButtonStateEntity",void 0);_.U([_.O({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.W("design:type",String)],cO.prototype,"state",void 0);_.U([_.K("viewModel","state"),_.W("design:type",Object),_.W("design:paramtypes",[])],cO.prototype,"data",null);_.U([_.K("data"),_.W("design:type",String),_.W("design:paramtypes",[])],cO.prototype,"buttonText",null);
cO=_.U([_.Q({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],cO);
_.S(cO,"ytd-tri-state-button-view-model",function(){if(v5b!==void 0)return v5b;var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return v5b=a},{mode:1});var w5b=function(){var a=_.P.apply(this,arguments)||this;a.useSmallAvatars=_.x("small_avatars_for_comments");a.webWatchCompactComments=_.x("web_watch_compact_comments");a.editDialog=null;return a};
_.z(w5b,_.P);_.f=w5b.prototype;_.f.onShow=function(){_.Ko("cmv",void 0,"wn_comments")};
_.f.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"}}}};
_.f.detached=function(){this.editDialog=null;this.expander.reset()};
_.f.updateBackgroundColor=function(){if(this.backgroundColor){var a={"--ytd-comment-paid-background-color":_.Cq(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.dr(this.hostElement,a)}else _.dr(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.f.resetExpander=function(){var a;(a=this.expander)==null||a.reset()};
_.f.openEditDialog=function(a){a.dialog&&(this.editDialog=a.dialog,this.JSC$13590_editReplyDialogContainer?this.JSC$13590_editReplyDialogContainer.openDialog():this.JSC$13590_editCommentDialogContainer&&this.JSC$13590_editCommentDialogContainer.focus())};
_.f.onYtNavigate=function(a){var b=a.detail.endpoint;if(b=_.y(b,_.jDb)||_.y(b,_.kDb))a.stopPropagation(),this.openEditDialog(b)};
_.f.onYtCommentboxDismiss=function(){this.editDialog=null;_.dr(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.f.onAuthorThumbnailClicked=function(){var a=this;_.x("enable_profile_cards_on_comments")&&this!=null&&this.authorThumbnailEndpoint&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{commandController:{onSuccess:function(b,c){a.onAuthorThumbnailEndpointSuccess(c)},
onServerError:function(b,c){_.Dl(new _.qj("Failed to resolve the command",c))}}})};
_.f.onAuthorThumbnailEndpointSuccess=function(a){if((a=a==null?void 0:a.popupCommand)&&this.authorThumbnailAnchor){this.ytComponentBehavior.resolveCommand(a,{form:{element:this.authorThumbnailAnchor}});this.logScreenVe();a=a==null?void 0:a.clickTrackingParams;var b=_.En();a&&b&&_.ms().graftServerVe(a,b)}};
_.f.logScreenVe=function(){_.mF(_.ms(),66557)};
_.f.onYtCommentboxResize=function(a){var b;(a==null?0:(b=a.detail)==null?0:b.height)&&_.dr(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":a.detail.height+"px"})};
_.Vm.Object.defineProperties(w5b.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 a,b=(a=this.commentEntity)==null?void 0:a.author;return b&&(b.isCreator||b.isVerified||b.isArtist)?{renderer:{authorEndpoint:b.channelPageEndpoint?_.y(b.channelPageEndpoint,_.Ds):_.y(b.channelCommand,_.Ds),authorText:{runs:[{text:b.displayName}]},color:b.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:b.isArtist?{iconType:"AUDIO_BADGE"}:
b.isVerified?{iconType:b.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:b.isArtist||b.isVerified?b.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var a,b=(a=this.commentEntity)==null?void 0:a.author;return b!=null&&b.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:b.sponsorBadgeUrl}]},tooltip:b.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var a;return _.y((a=this.commentSurfaceEntity)==null?void 0:a.pdgCommentChip,_.MDb)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var a;return this.voiceReplyContainerViewModel&&((a=this.voiceReplyContainerViewModel)==null?void 0:a.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var a;return _.y((a=this.commentSurfaceEntity)==null?void 0:a.voiceReplyContainerViewModel,Azb)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var a;return this.voiceReplyContainerViewModel&&(a=this.voiceReplyContainerViewModel)!=null&&a.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var a,b;return(b=(a=this.commentSurfaceEntity)==null?void 0:a.commentBackgroundColor)!=null?b:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.x("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var a,b;return(((a=this.commentEntity)==null?void 0:(b=a.properties)==null?void 0:b.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var a,b;if(_.x("enable_profile_cards_on_comments")&&((a=this.commentEntity)==null?0:(b=a.author)==null?0:b.profileCardEndpoint)&&this.viewModel.allowProfileCard){var c,d;return _.y((c=this.commentEntity)==null?void 0:(d=c.author)==null?void 0:d.profileCardEndpoint,_.Ds)}var e,g;return _.y((e=this.commentEntity)==null?void 0:(g=e.avatar)==null?void 0:g.endpoint,_.Ds)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var a,b;if(_.x("enable_profile_cards_on_comments")&&((a=this.commentEntity)==null?0:(b=a.author)==null?0:b.channelPageEndpoint)){var c,d;return _.y((c=this.commentEntity)==null?void 0:(d=c.author)==null?void 0:d.channelPageEndpoint,_.Ds)}var e,g;return _.y((e=this.commentEntity)==null?void 0:(g=e.avatar)==null?void 0:g.endpoint,_.Ds)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d,e=(a=this.commentEntity)==null?void 0:(b=a.avatar)==null?void 0:(c=b.image)==null?void 0:(d=c.sources)==null?void 0:d[0];return e?{thumbnails:[{url:e.url,width:e.width,height:e.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.commentEntity)==null?0:(b=a.author)==null?0:b.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.commentEntity)==null?void 0:(b=a.author)==null?void 0:b.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.commentEntity)==null?void 0:(b=a.properties)==null?void 0:b.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var a;return _.y((a=this.commentSurfaceEntity)==null?void 0:a.publishedTimeCommand,_.Ds)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var a,b;if(((a=this.commentEntity)==null?0:a.translatedContent)&&((b=this.translateButtonState)==null?void 0:b.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var c;if((c=this.voiceReplyContainerViewModel)==null?0:c.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var d,e;return((d=this.commentEntity)==null?void 0:(e=d.properties)==null?void 0:e.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.commentSharedEntity)==null?void 0:(b=a.strings)==null?void 0:b.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.commentSharedEntity)==null?void 0:(b=a.strings)==null?void 0:b.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.commentEntity)==null||!a.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var a,b,c=(b=_.y((a=this.viewModel)==null?void 0:a.translateButton,zzb))!=null?b:{},d,e,g,k,m,n,r,t,u,w,A;return Object.assign({},c,{untoggledStateData:Object.assign({},c.untoggledStateData,{buttonText:(d=this.commentEntity)==null?void 0:(e=d.translateData)==null?void 0:e.text}),togglingStateData:Object.assign({},c.togglingStateData,{buttonText:(g=this.commentSharedEntity)==null?
void 0:(k=g.strings)==null?void 0:k.translatingText}),toggledStateData:Object.assign({},c.toggledStateData,{buttonText:(m=this.commentSharedEntity)==null?void 0:(n=m.strings)==null?void 0:n.seeOriginalText}),transitionCommand:((r=this.commentEntity)==null?0:r.translatedContent)?void 0:_.y((t=this.commentEntity)==null?void 0:(u=t.translateData)==null?void 0:u.translateComment,_.Ds),triStateKey:(w=this.commentEntity)==null?void 0:(A=w.properties)==null?void 0:A.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return((b=_.y(_.y((a=this.toolbarSurface)==null?void 0:a.menuCommand,_.Ds),lDb))==null?void 0:(c=b.menu)==null?void 0:c.menuRenderer)||null}}});
var dO=w5b;dO.prototype.onYtCommentboxResize=dO.prototype.onYtCommentboxResize;dO.prototype.onYtCommentboxDismiss=dO.prototype.onYtCommentboxDismiss;dO.prototype.onYtNavigate=dO.prototype.onYtNavigate;dO.prototype.resetExpander=dO.prototype.resetExpander;dO.prototype.updateBackgroundColor=dO.prototype.updateBackgroundColor;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],dO.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.LI),_.W("design:type",Object)],dO.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],dO.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],dO.prototype,"ytRendererstamperBehavior",void 0);_.U([_.gr("#author-thumbnail > button"),_.W("design:type",HTMLElement)],dO.prototype,"authorThumbnailAnchor",void 0);
_.U([_.O({reflectToAttribute:!0}),_.K("viewModel"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],dO.prototype,"linked",null);_.U([_.K("viewModel","linked"),_.W("design:type",Object),_.W("design:paramtypes",[])],dO.prototype,"linkedCommentBadge",null);_.U([_.O({reflectToAttribute:!0}),_.K("viewModel"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],dO.prototype,"pinned",null);
_.U([_.K("viewModel","pinned"),_.W("design:type",Object),_.W("design:paramtypes",[])],dO.prototype,"pinnedCommentBadge",null);_.U([_.K("commentEntity","commentSharedEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],dO.prototype,"authorCommentBadge",null);_.U([_.O({reflectToAttribute:!0}),_.K("authorCommentBadge"),_.W("design:type",Object),_.W("design:paramtypes",[])],dO.prototype,"hasAuthorBadge",null);
_.U([_.K("commentEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],dO.prototype,"sponsorCommentBadge",null);_.U([_.O({reflectToAttribute:!0}),_.K("sponsorCommentBadge"),_.W("design:type",Object),_.W("design:paramtypes",[])],dO.prototype,"hasSponsorBadge",null);_.U([_.K("commentSurfaceEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],dO.prototype,"pdgCommentChipRenderer",null);
_.U([_.O({reflectToAttribute:!0}),_.K("voiceReplyContainerViewModel"),_.W("design:type",Object),_.W("design:paramtypes",[])],dO.prototype,"hasVoiceReply",null);_.U([_.K("commentSurfaceEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],dO.prototype,"voiceReplyContainerViewModel",null);_.U([_.K("voiceReplyContainerViewModel"),_.W("design:type",Object),_.W("design:paramtypes",[])],dO.prototype,"voiceReplyUnavailableText",null);_.U([_.O(),_.W("design:type",Object)],dO.prototype,"data",void 0);
_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],dO.prototype,"viewModel",null);_.U([_.O({selector:function(a,b){return _.mp(a.entities,"commentSharedEntityPayload",b)},
selectorArgs:["viewModel.sharedKey"]}),_.W("design:type",Object)],dO.prototype,"commentSharedEntity",void 0);_.U([_.O({selector:function(a,b){return _.mp(a.entities,"commentEntityPayload",b)},
selectorArgs:["viewModel.commentKey"]}),_.W("design:type",Object)],dO.prototype,"commentEntity",void 0);_.U([_.O({selector:function(a,b){return _.mp(a.entities,"commentSurfaceEntityPayload",b)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.W("design:type",Object)],dO.prototype,"commentSurfaceEntity",void 0);_.U([_.O({selector:gVa,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.W("design:type",Object)],dO.prototype,"toolbarSurface",void 0);_.U([_.O({selector:hVa,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.W("design:type",Object)],dO.prototype,"translateButtonState",void 0);
_.U([_.K("commentSurfaceEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],dO.prototype,"backgroundColor",null);_.U([_.O({reflectToAttribute:!0}),_.K("viewModel"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],dO.prototype,"optimalReadingWidthComments",null);_.U([_.gr("ytd-expander"),_.W("design:type",Object)],dO.prototype,"expander",void 0);
_.U([_.N("backgroundColor"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],dO.prototype,"updateBackgroundColor",null);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],dO.prototype,"useSmallAvatars",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],dO.prototype,"webWatchCompactComments",void 0);_.U([_.O({reflectToAttribute:!0}),_.K("commentEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],dO.prototype,"isReply",null);
_.U([_.K("commentEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],dO.prototype,"authorThumbnailEndpoint",null);_.U([_.K("commentEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],dO.prototype,"authorNameEndpoint",null);_.U([_.K("commentEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],dO.prototype,"authorThumbnail",null);_.U([_.K("commentEntity"),_.W("design:type",String),_.W("design:paramtypes",[])],dO.prototype,"authorTextClass",null);
_.U([_.K("commentEntity"),_.W("design:type",String),_.W("design:paramtypes",[])],dO.prototype,"authorChannelName",null);_.U([_.K("commentEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],dO.prototype,"publishedTime",null);_.U([_.K("commentSurfaceEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],dO.prototype,"publishedTimeCommand",null);
_.U([_.K("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.W("design:type",Object),_.W("design:paramtypes",[])],dO.prototype,"contentText",null);_.U([_.N("contentText"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],dO.prototype,"resetExpander",null);_.U([_.K("commentEntity"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],dO.prototype,"shouldShowReadMoreInitially",null);
_.U([_.K("commentSharedEntity"),_.W("design:type",String),_.W("design:paramtypes",[])],dO.prototype,"expandText",null);_.U([_.K("commentSharedEntity"),_.W("design:type",String),_.W("design:paramtypes",[])],dO.prototype,"collapseText",null);_.U([_.K("commentEntity"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],dO.prototype,"shouldShowTranslateButton",null);
_.U([_.K("commentEntity","commentSharedEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],dO.prototype,"translateButton",null);_.U([_.K("toolbarSurface"),_.W("design:type",Object),_.W("design:paramtypes",[])],dO.prototype,"overflowMenuRenderer",null);_.U([_.O(),_.W("design:type",Object)],dO.prototype,"editDialog",void 0);_.U([_.gr("ytd-comment-dialog-renderer"),_.W("design:type",Object)],dO.prototype,"JSC$13590_editCommentDialogContainer",void 0);
_.U([_.gr("ytd-comment-reply-dialog-renderer"),_.W("design:type",Object)],dO.prototype,"JSC$13590_editReplyDialogContainer",void 0);_.U([_.M("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],dO.prototype,"onYtNavigate",null);_.U([_.M("yt-commentbox-dismiss"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],dO.prototype,"onYtCommentboxDismiss",null);
_.U([_.M("yt-commentbox-resize"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],dO.prototype,"onYtCommentboxResize",null);dO=_.U([_.Q({disableElementRegistration:!0,is:"ytd-comment-view-model"})],dO);
_.S(dO,"ytd-comment-view-model",function(){if(u5b!==void 0)return u5b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="paid-comment-background" class="style-scope ytd-comment-view-model"></div>\n<div id="linked-comment-badge" class="style-scope ytd-comment-view-model"></div>\n\n<div id="body" hidden="[[editDialog]]" class="style-scope ytd-comment-view-model">\n  \n  <div id="author-thumbnail" class="style-scope ytd-comment-view-model">\n    <button id="author-thumbnail-button" aria-label="[[authorChannelName]]" on-click="onAuthorThumbnailClicked" class="style-scope ytd-comment-view-model">\n      <yt-img-shadow fit="" height="40" thumbnail="[[authorThumbnail]]" width="40" class="style-scope ytd-comment-view-model">\n      </yt-img-shadow>\n    </button>\n  </div>\n  <div id="main" class="style-scope ytd-comment-view-model">\n    <div id="header" class="style-scope ytd-comment-view-model">\n      <div id="pinned-comment-badge" class="style-scope ytd-comment-view-model"></div>\n      <div id="header-author" class="style-scope ytd-comment-view-model">\n        \n        <h3 class="style-scope ytd-comment-view-model"> \n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeOptionalHref_(authorNameEndpoint)]]" data="[[authorNameEndpoint]]" hidden="[[authorCommentBadge]]">\n            <span class$="[[authorTextClass]] style-scope ytd-comment-view-model">\n              [[authorChannelName]]\n            </span>\n          </a>\n        </h3>\n        <span id="author-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span id="sponsor-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span dir="auto" id="published-time-text" class="style-scope ytd-comment-view-model">\n          <a class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeHref_(publishedTimeCommand)]]" data="[[publishedTimeCommand]]">\n            [[publishedTime]]\n          </a>\n        </span>\n      </div>\n    </div>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" class="style-scope ytd-comment-view-model">\n      \n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[pdgCommentChipRenderer]]" hidden="[[!pdgCommentChipRenderer]]" class="style-scope ytd-comment-view-model">\n      </yt-pdg-comment-chip-renderer>\n      <yt-attributed-string id="content-text" slot="content" data="[[contentText]]" user-input="" class="style-scope ytd-comment-view-model">\n      </yt-attributed-string>\n      <span class="more-button style-scope ytd-comment-view-model" slot="more-button">[[expandText]]</span>\n      <span class="less-button style-scope ytd-comment-view-model" slot="less-button">[[collapseText]]</span>\n    </ytd-expander>\n    <yt-attributed-string id="error-text" data="[[voiceReplyUnavailableText]]" hidden="[[!voiceReplyUnavailableText]]" class="style-scope ytd-comment-view-model">\n    </yt-attributed-string>\n    <ytd-tri-state-button-view-model class="translate-button style-scope ytd-comment-view-model" hidden="[[!shouldShowTranslateButton]]" view-model="[[translateButton]]">\n    </ytd-tri-state-button-view-model>\n    <ytd-comment-engagement-bar id="action-buttons" comment-strings="[[commentSharedEntity.strings]]" is-reply="[[isReply]]" toolbar-data="[[commentEntity.toolbar]]" toolbar-shared-data="[[commentSharedEntity.toolbarShared]]" toolbar-state-key="[[viewModel.toolbarStateKey]]" toolbar-surface-key="[[viewModel.toolbarSurfaceKey]]" class="style-scope ytd-comment-view-model">\n    </ytd-comment-engagement-bar>\n  </div>\n  \n  <div id="action-menu" class="style-scope ytd-comment-view-model">\n    <ytd-menu-renderer data="[[overflowMenuRenderer]]" class="style-scope ytd-comment-view-model"></ytd-menu-renderer>\n  </div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-view-model"></div>\n\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return u5b=a},{mode:_.as("kevlar_poly_si_batch_j025")?1:2});var x5b=function(){var a=_.P.apply(this,arguments)||this;a.modern=_.x("web_modern_buttons");a.isWatchGrid=_.x("kevlar_watch_grid");a.buttonOverrides={style:"call-to-action"};a.JSC$13607_spinnerEl=null;a.nextContinuation={continuationType:"commentRepliesContinuation",usePost:!0};return a};
_.z(x5b,_.P);_.f=x5b.prototype;_.f.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.f.configureRendererStamper=function(){return{"data.continuations":{id:"continuation",mapping:{nextContinuationData:{component:"yt-next-continuation",params:{showButton:!0,showIcon:!0}}}},"data.teaserContents":{id:"teaser-replies",mapping:{commentRenderer:{component:"ytd-comment-renderer",params:{isReply:!0}},commentViewModel:{component:"ytd-comment-view-model"}}},"data.contents":{id:"contents",mapping:{commentRenderer:{component:"ytd-comment-renderer",params:{isReply:!0}},commentViewModel:{component:"ytd-comment-view-model"},
continuationItemRenderer:{component:"ytd-continuation-item-renderer",params:{showButton:!0,isCommentsSection:!1},properties:{buttonOverrides:"[[buttonOverrides]]"}}}}}};
_.f.attached=function(){this.isShowRepliesVisible=!0};
_.f.created=function(){this.domRepeatInitialCount=10};
_.f.dataChanged=function(){var a=this.expanderContents;a&&(a.hidden=!0);this.isLoading=!1};
_.f.onContentsDomChange=function(){this.domRepeatInitialCount=_.E(this.hostElement).querySelectorAll("ytd-comment-renderer").length};
_.f.onRetrieveLocation=function(a,b){b.locationRetrieved("/comment_service_ajax?action_get_comment_replies=1&pbj=1",void 0);a.stopPropagation()};
_.f.triggerFirstContinuation=function(){this.data.contents||this.continuation&&this.continuation.trigger();this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.f.isLoadingChanged=function(){this.isLoading&&!this.JSC$13607_spinnerEl&&(this.JSC$13607_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.E(this.expanderContents).appendChild(this.JSC$13607_spinnerEl));this.JSC$13607_spinnerEl&&(this.JSC$13607_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var a;(a=this.contents)==null||a.classList.remove("reloading")}};
_.f.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.triggerFirstContinuation();var a=_.y(this.data.viewReplies,_.OE);a&&this.ytRendererBehavior.logExplicitClick(a)};
_.f.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var a=_.y(this.data.hideReplies,_.OE);a&&this.ytRendererBehavior.logExplicitClick(a)};
_.f.isShowMoreChanged=function(){var a=_.E(this.hostElement).querySelector("#expander-contents");a&&(a.hidden=this.isShowRepliesVisible)};
_.f.computeAlign=function(){if(this.modern){var a;return!((a=this.data)==null?0:a.viewRepliesCreatorThumbnail)}};
_.Vm.Object.defineProperties(x5b.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var a,b=(a=this.data)==null?void 0:a.contents,c;return!((c=this.data)==null||!c.continuations)||!!b&&b.length>0&&!!b[b.length-1].continuationItemRenderer}}});
var eO=x5b;eO.prototype.isShowMoreChanged=eO.prototype.isShowMoreChanged;eO.prototype.isLoadingChanged=eO.prototype.isLoadingChanged;eO.prototype.triggerFirstContinuation=eO.prototype.triggerFirstContinuation;eO.prototype.onRetrieveLocation=eO.prototype.onRetrieveLocation;eO.prototype.dataChanged=eO.prototype.dataChanged;_.U([_.H(_.SM.YtNextContinuationBehavior),_.W("design:type",Object)],eO.prototype,"ytNextContinuationBehavior",void 0);
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],eO.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],eO.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.RM),_.W("design:type",Object)],eO.prototype,"ytContinuationHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],eO.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],eO.prototype,"modern",void 0);
_.U([_.O(),_.W("design:type",Boolean)],eO.prototype,"isLoading",void 0);_.U([_.O({value:!0}),_.W("design:type",Boolean)],eO.prototype,"isShowRepliesVisible",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],eO.prototype,"useNewFormatting",void 0);_.U([_.O({value:10}),_.W("design:type",Number)],eO.prototype,"domRepeatInitialCount",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],eO.prototype,"isWatchGrid",void 0);
_.U([_.O(),_.W("design:type",Object)],eO.prototype,"buttonOverrides",void 0);_.U([_.gr("#expander-contents"),_.W("design:type",HTMLElement)],eO.prototype,"expanderContents",void 0);_.U([_.gr("yt-next-continuation"),_.W("design:type",Object)],eO.prototype,"continuation",void 0);_.U([_.gr("ytd-continuation-item-renderer"),_.W("design:type",Object)],eO.prototype,"continuationItemRenderer",void 0);_.U([_.gr("#contents"),_.W("design:type",HTMLElement)],eO.prototype,"contents",void 0);
_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],eO.prototype,"dataChanged",null);_.U([_.K("data.continuations","data.contents"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],eO.prototype,"hasContinuation",null);_.U([_.M("yt-retrieve-location"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],eO.prototype,"onRetrieveLocation",null);
_.U([_.M("yt-expander-more-tapped"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],eO.prototype,"triggerFirstContinuation",null);_.U([_.N("isLoading"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],eO.prototype,"isLoadingChanged",null);_.U([_.N("isShowRepliesVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],eO.prototype,"isShowMoreChanged",null);
eO=_.U([_.Q({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],eO);
_.S(eO,"ytd-comment-replies-renderer",function(){if(t5b!==void 0)return t5b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-replies-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expander" hidden="[[!hasContinuation]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="expander-header style-scope ytd-comment-replies-renderer" teaser$="[[data.viewRepliesCreatorThumbnail]]">\n    <div class="more-button style-scope ytd-comment-replies-renderer" aria-expanded="false" hidden="[[!isShowRepliesVisible]]" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="more-replies-icon" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.viewRepliesIcon.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n            <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n            </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.viewReplies.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n    <div class="less-button style-scope ytd-comment-replies-renderer" aria-expanded="true" hidden="[[isShowRepliesVisible]]" on-click="handleIsShowLessTap">\n      <template is="dom-if" if="[[data.hideRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-icon" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.hideRepliesIcon.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n            <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n            </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="less-replies" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.hideReplies.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="expander-contents" class="style-scope ytd-comment-replies-renderer">\n    <div id="contents" class="style-scope ytd-comment-replies-renderer"></div>\n    <div class="cont-button style-scope ytd-comment-replies-renderer" id="continuation"></div>\n  </div>\n</div>\n<div hidden="[[!isShowRepliesVisible]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return t5b=a},{mode:1});var y5b;var z5b=function(){var a=_.P.apply(this,arguments)||this;a.isOpen=!1;a.commentDialog=null;a.useSmallAvatars=_.x("small_avatars_for_comments");a.useSmallAvatarsEngagementPanelOnly=_.x("small_avatars_for_comments_ep");a.placeholderFocusListener=null;a.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return a};
_.z(z5b,_.P);_.f=z5b.prototype;_.f.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]]"}}}}}};
_.f.ready=function(){var a=this,b=_.E(this.hostElement).querySelector("#placeholder-area"),c=_.E(this.hostElement).querySelector("#simplebox-placeholder"),d=function(e){e.stopPropagation();e instanceof KeyboardEvent&&e.type==="keypress"&&e.keyCode!==13&&e.keyCode!==32||a.openDialog()};
this.placeholderFocusListener=d;c.addEventListener("focus",this.placeholderFocusListener);b.addEventListener("tap",d);b.addEventListener("keypress",d)};
_.f.maybeRemoveFocusEventListener=function(){var a;(a=this.data)!=null&&a.prepareAccountEndpoint&&!_.x("web_comments_simplebox_modal_focus_on_tap_ks")&&(a=_.E(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(a.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.f.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.f.openDialog=function(){this.data&&(this.data.prepareAccountEndpoint?_.x("web_comment_simplebox_resolve_polymer_command_ks")?_.hs.instance.resolveCommand(this.data.prepareAccountEndpoint):_.is(this.data.prepareAccountEndpoint,this.hostElement):(this.commentDialog||(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)}),this.isOpen=!0,_.E(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()))};
_.f.onYtCommentboxDismiss=function(a){a.stopPropagation();this.isOpen=!1};
_.f.onCreateCommentAction=function(a){this.get("createCommentAction.contents",a)&&(this.isOpen=!1)};
_.f.computeCommentDialog=function(a){return{placeholderText:a.placeholderText,authorThumbnail:a.authorThumbnail,submitButton:a.submitButton,imageButton:a.imageButton,cancelButton:a.cancelButton,emojiButton:a.emojiButton,emojis:a.emojis,emojiPicker:a.emojiPicker,aadcGuidelinesStateEntityKey:a.aadcGuidelinesStateEntityKey,openAadcDialog:a.openAadcDialog,unicodeEmojisUrl:a.unicodeEmojisUrl}};
_.f.onHideIdentityChip=function(a){_.y(a,rzb)&&this.set("data.placeholderText",_.y(a,rzb).placeholderText)};
var fO=z5b;fO.prototype.onYtCommentboxDismiss=fO.prototype.onYtCommentboxDismiss;fO.prototype.dataChanged=fO.prototype.dataChanged;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],fO.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],fO.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],fO.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],fO.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],fO.prototype,"isOpen",void 0);_.U([_.O(),_.W("design:type",Object)],fO.prototype,"commentDialog",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],fO.prototype,"engagementPanel",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],fO.prototype,"useSmallAvatars",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],fO.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],fO.prototype,"enableCreationBox",void 0);_.U([_.O(),_.W("design:type",Boolean)],fO.prototype,"showCreateDialog",void 0);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],fO.prototype,"dataChanged",null);
_.U([_.M("yt-commentbox-dismiss"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],fO.prototype,"onYtCommentboxDismiss",null);fO=_.U([_.Q({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],fO);
_.S(fO,"ytd-comment-simplebox-renderer",function(){if(y5b!==void 0)return y5b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return y5b=a},{mode:1});var A5b;_.It("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");var gO=function(){var a=_.P.apply(this,arguments)||this;a.addHoverEffect=_.x("swatcheroo_comments_hover_effect");return a};
_.z(gO,_.P);gO.prototype.onTap=function(a){if(this.addHoverEffect&&!this.engagementPanel&&!_.Xt(_.Pq(a)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var b;((b=window.getSelection())==null?0:b.toString().length)||_.is({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
gO.prototype.configureRendererStamper=function(){return{"data.replies":{id:"replies",mapping:{commentRepliesRenderer:{component:"ytd-comment-replies-renderer",noInjection:!0}}}}};
_.Vm.Object.defineProperties(gO.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)!=null&&a.commentViewModel)return _.y(this.data.commentViewModel,yzb)}}});
var hO=gO;hO.prototype.onTap=hO.prototype.onTap;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],hO.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],hO.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],hO.prototype,"addHoverEffect",void 0);_.U([_.O(),_.W("design:type",Object)],hO.prototype,"data",void 0);
_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],hO.prototype,"commentViewModel",null);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],hO.prototype,"engagementPanel",void 0);_.U([_.M("tap"),_.M("click"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],hO.prototype,"onTap",null);hO=_.U([_.Q({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],hO);
_.S(hO,"ytd-comment-thread-renderer",function(){if(A5b!==void 0)return A5b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[data.comment.commentRenderer]]" class="style-scope ytd-comment-thread-renderer">\n  <ytd-comment-renderer id="comment" data="[[data.comment.commentRenderer]]" engagement-panel="[[engagementPanel]]" class="style-scope ytd-comment-thread-renderer">\n  </ytd-comment-renderer>\n</template>\n<template is="dom-if" if="[[data.commentViewModel]]" class="style-scope ytd-comment-thread-renderer">\n  <ytd-comment-view-model id="comment" data="[[commentViewModel]]" class="style-scope ytd-comment-thread-renderer">\n  </ytd-comment-view-model>\n</template>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return A5b=a},{mode:_.as("kevlar_poly_si_batch_j025")?1:2});var B5b;var C5b=function(){var a=_.P.apply(this,arguments)||this;a.modernTypography=_.x("web_modern_typography");a.compactHeader=_.x("web_watch_compact_comments_header");a.hidePanelButton=!1;a.isPostSchedulingEnabled=_.x("enable_post_scheduling");a.hasFinishedStamping=!1;a.JSC$13625_handleOpenPostCommentDialogActionAfterStamp=!1;a.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return a};
_.z(C5b,_.P);_.f=C5b.prototype;
_.f.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"}}}};
_.f.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.f.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$13625_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.f.onYtServiceRequestSent=function(a,b){if(!_.x("kevlar_command_handler")&&b.actions)for(a=0;a<b.actions.length;a++){var c=b.actions[a];_.y(c,Syb)&&_.E(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.y(c,Syb))}};
_.f.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var a;if(this.getPrefilledBackstagePostDialog((a=this.data)==null?void 0:a.actions)){_.E(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var b=_.E(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;b&&_.Tm(this,function(){b.focus();b.openDialog&&b.openDialog()})}}else this.hasActionsChange=!0};
_.f.computeIsBackstage=function(a){return a};
_.f.onYtCommentboxDismiss=function(){_.E(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.f.removePrefilledDialog=function(a){if(a==null?0:a.actions){for(var b=a.actions.length-1;b>=0;b--){var c=void 0;((c=_.y(a.actions[b],hDb))==null?0:c.dialog)&&delete a.actions[b]}this.set("data",void 0);this.set("data",a)}};
_.f.getPrefilledBackstagePostDialog=function(a){if(a)for(var b=0;b<a.length;b++){var c=a[b],d=void 0;if((d=_.y(c,hDb))==null?0:d.dialog)return _.y(c,hDb).dialog}return null};
_.f.computeBackstagePostDialog=function(a){return a&&(this.getPrefilledBackstagePostDialog(a.actions)||a.createRenderer)};
_.f.dataChanged=function(){if(this.data){var a=this.data.customEmojis,b=this.data.unicodeEmojisUrl;_.PH.clear();b&&_.WQb(_.PH,b);a&&_.PH.load(a)}};
_.f.handleSignalActionOpenPostCommentDialogAction=function(){var a=_.E(this.hostElement).querySelector("ytd-comment-simplebox-renderer");a?a.openDialog():this.JSC$13625_handleOpenPostCommentDialogActionAfterStamp=!0};
_.Vm.Object.defineProperties(C5b.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.x("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d,e,g,k;return!this.hidePanelButton&&_.x("kevlar_watch_comments_panel_button")&&((k=_.y((a=this.data)==null?void 0:(b=a.sortMenu)==null?void 0:(c=b.sortFilterSubMenuRenderer)==null?void 0:(d=c.subMenuItems)==null?void 0:(e=d[0])==null?void 0:(g=e.serviceEndpoint)==null?void 0:g.commandMetadata,_.ao))==null?void 0:k.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.to("MINIPLAYER_EXPAND_LABEL"),text:_.Up(_.to("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
var iO=C5b;iO.prototype.dataChanged=iO.prototype.dataChanged;iO.prototype.onYtCommentboxDismiss=iO.prototype.onYtCommentboxDismiss;iO.prototype.observePrefilledBackstagePostDialog=iO.prototype.observePrefilledBackstagePostDialog;iO.prototype.onYtServiceRequestSent=iO.prototype.onYtServiceRequestSent;iO.prototype.onStampFinished=iO.prototype.onStampFinished;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],iO.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],iO.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],iO.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],iO.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],iO.prototype,"modernTypography",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],iO.prototype,"compactHeader",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],iO.prototype,"engagementPanel",void 0);_.U([_.O(),_.W("design:type",Object)],iO.prototype,"hidePanelButton",void 0);_.U([_.O({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.W("design:type",Boolean)],iO.prototype,"isBackstage",void 0);_.U([_.O({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.W("design:type",Object)],iO.prototype,"backstagePostDialog",void 0);
_.U([_.O(),_.W("design:type",Object)],iO.prototype,"isPostSchedulingEnabled",void 0);_.U([_.O({reflectToAttribute:!0}),_.K("data","showCommentsPanelButton"),_.W("design:type",Object),_.W("design:paramtypes",[])],iO.prototype,"useSpaceBetween",null);_.U([_.O({reflectToAttribute:!0}),_.K("data","hidePanelButton"),_.W("design:type",Object),_.W("design:paramtypes",[])],iO.prototype,"showCommentsPanelButton",null);
_.U([_.K("data","showCommentsPanelButton"),_.W("design:type",Object),_.W("design:paramtypes",[])],iO.prototype,"commentsPanelButtonData",null);_.U([_.M("yt-rendererstamper-finished"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],iO.prototype,"onStampFinished",null);_.U([_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Ot]),_.W("design:returntype")],iO.prototype,"onYtServiceRequestSent",null);
_.U([_.N("data.actions"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],iO.prototype,"observePrefilledBackstagePostDialog",null);_.U([_.M("yt-commentbox-dismiss"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],iO.prototype,"onYtCommentboxDismiss",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],iO.prototype,"dataChanged",null);
iO=_.U([_.Q({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],iO);
_.S(iO,"ytd-comments-header-renderer",function(){if(B5b!==void 0)return B5b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.countText]]" class="style-scope ytd-comments-header-renderer">\n  <div id="leading-section" class="style-scope ytd-comments-header-renderer">\n    <h2 id="count" class="style-scope ytd-comments-header-renderer">\n      <yt-formatted-string class="count-text style-scope ytd-comments-header-renderer" text="[[data.countText]]"> </yt-formatted-string>\n    </h2>\n  </div>\n  <div id="additional-section" class="style-scope ytd-comments-header-renderer">\n    <span id="sort-menu" class="style-scope ytd-comments-header-renderer"></span>\n    <div id="panel-button" hidden="[[!showCommentsPanelButton]]" class="style-scope ytd-comments-header-renderer">\n      <ytd-button-renderer data="[[commentsPanelButtonData]]" class="style-scope ytd-comments-header-renderer"> </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="red-commenting-div" hidden="[[!data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  <yt-formatted-string id="red-commenting-text" text="[[data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  </yt-formatted-string>\n</div>\n<div id="alert" class="style-scope ytd-comments-header-renderer"></div>\n<div id="prefilled-dialog-header" class="style-scope ytd-comments-header-renderer"></div>\n<div id="simple-box" class="style-scope ytd-comments-header-renderer"></div>\n<div id="paused-comments-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="backstage-post-dialog" class="style-scope ytd-comments-header-renderer"></div>\n<div id="post-stream-filter" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n<div id="zero-state-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="scheduling-zero-state-message" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return B5b=a},{mode:1});var D5b;var E5b=function(){return _.P.apply(this,arguments)||this};
_.z(E5b,_.P);var jO=E5b;_.U([_.O(),_.W("design:type",Object)],jO.prototype,"data",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],jO.prototype,"ytRendererBehavior",void 0);jO=_.U([_.Q({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],jO);
_.S(jO,"ytd-destination-button-renderer",function(){if(D5b!==void 0)return D5b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return D5b=a},{mode:1});var F5b;var G5b=function(){var a=_.P.apply(this,arguments)||this;a.isRichGrid=!1;a.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};a.modernTypography=_.x("web_modern_typography");return a};
_.z(G5b,_.P);_.f=G5b.prototype;_.f.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.f.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.f.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.f.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var a;if((a=this.data)==null||!a.isExpanded){a=this.hostElement.clientWidth;var b;if(a&&(b=this.data)!=null&&b.destinationButtons){b=Math.floor((a+4)/214);a=this.data.destinationButtons.length;var c=Math.ceil(a/b);this.fullyVisibleRows=a%b===1&&c===2?1:Math.min(c,2);this.isShowMoreVisible=this.fullyVisibleRows<c}}}};
_.f.updateRichGridDestinationButtonsVisibility=function(){var a,b;if(this.isRichGrid&&((a=this.data)==null||!a.isExpanded)&&(b=this.data)!=null&&b.destinationButtons){a=this.richGridItemsPerRow+1;b=this.data.destinationButtons.length;var c=Math.ceil(b/a);this.fullyVisibleRows=b%a===1&&c===2?1:Math.min(c,2);this.isShowMoreVisible=this.fullyVisibleRows<c}};
_.f.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
var kO=G5b;kO.prototype.updateRichGridDestinationButtonsVisibility=kO.prototype.updateRichGridDestinationButtonsVisibility;_.U([_.O(),_.W("design:type",Object)],kO.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Number)],kO.prototype,"fullyVisibleRows",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],kO.prototype,"isShowMoreVisible",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],kO.prototype,"isRichGrid",void 0);
_.U([_.O({selector:_.Fp,value:0}),_.W("design:type",Number)],kO.prototype,"richGridItemsPerRow",void 0);_.U([_.O(),_.W("design:type",Object)],kO.prototype,"gridStateActionMap",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],kO.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],kO.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],kO.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],kO.prototype,"ytdReduxBehavior",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],kO.prototype,"modernTypography",void 0);_.U([_.N("data","richGridItemsPerRow"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],kO.prototype,"updateRichGridDestinationButtonsVisibility",null);
kO=_.U([_.Q({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],kO);
_.S(kO,"ytd-destination-shelf-renderer",function(){if(F5b!==void 0)return F5b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return F5b=a},{mode:1});var H5b;var I5b=function(){return _.P.apply(this,arguments)||this};
_.z(I5b,_.P);I5b.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}},"data.informationButton":{id:"information-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
var lO=I5b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],lO.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],lO.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],lO.prototype,"data",void 0);lO=_.U([_.Q({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],lO);
_.S(lO,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(H5b!==void 0)return H5b;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return H5b=a},{mode:1});var J5b;var K5b=function(){var a=_.P.apply(this,arguments)||this;a.disableAnimation=!1;a.isSlimlineSurvey=!1;a.isSlimlineSurveyFollowUp=!1;a.isShortsStyle=!1;return a};
_.z(K5b,_.P);K5b.prototype.onTap=function(a){a.preventDefault();this.data&&_.go(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.Vm.Object.defineProperties(K5b.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 a,b,c,d,e;return((a=this.data)==null?0:a.checked)?(b=this.data)==null?void 0:(c=b.onStateIcon)==null?void 0:c.iconType:(d=this.data)==null?void 0:(e=d.defaultStateIcon)==null?void 0:e.iconType}}});
var mO=K5b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],mO.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],mO.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],mO.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],mO.prototype,"disableAnimation",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],mO.prototype,"isSlimlineSurvey",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],mO.prototype,"isSlimlineSurveyFollowUp",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],mO.prototype,"isShortsStyle",void 0);_.U([_.K("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],mO.prototype,"isAnimatedIcon",null);
_.U([_.K("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.W("design:type",Number),_.W("design:paramtypes",[])],mO.prototype,"iconSize",null);_.U([_.K("isShortsStyle"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],mO.prototype,"isDarkTheme",null);_.U([_.K("data.checked"),_.W("design:type",Object),_.W("design:paramtypes",[])],mO.prototype,"icon",null);mO=_.U([_.Q({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],mO);
_.S(mO,"ytd-rating-survey-option-renderer",function(){if(J5b!==void 0)return J5b;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return J5b=a},{mode:2});var L5b;var M5b=function(){var a=_.P.apply(this,arguments)||this;a.firstResponseText=null;a.lastResponseText=null;a.selectedNonStarOption=null;a.hideOptions=!1;a.hideUndoButton=!0;a.disableAnimation=!1;a.showResponseRangeText=!1;a.selectedRatingIndex=-1;a.isSlimlineSurvey=!1;a.isSlimlineSurveyFollowUp=!1;a.isShortsStyle=!1;a.slimlineSurveyRatingSelectedIndex=-1;return a};
_.z(M5b,_.P);_.f=M5b.prototype;_.f.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.f.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.f.onOptionChange=function(a,b){var c=this;a=b.onStateIcon&&b.defaultStateIcon&&b.onStateIcon.iconType===b.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(k,m){k.responseText===b.responseText?c.isSlimlineSurvey?(c.selectedRatingIndex=m,c.ytdReduxBehavior.dispatch(DJb(m))):(c.setSurveyOptionValue(m,!0,"checked"),c.setSurveyOptionValue(m,!0,"selected")):(c.setSurveyOptionValue(m,!1,"checked"),c.setSurveyOptionValue(m,
!1,"selected"))});
else if(a)this.selectedNonStarOption=b,this.hideOptions=!0;else{var d=this.ytRendererBehavior.getSimpleString(b.responseText),e=!0;this.getOptionRenderers().forEach(function(k,m){c.setSurveyOptionValue(m,e,"checked");c.setSurveyOptionValue(m,!1,"selected");c.ytRendererBehavior.getSimpleString(k.responseText)===d&&(e=!1,c.setSurveyOptionValue(m,!0,"selected"))})}a=b.responseEndpoint;
var g;b.followUpCommand&&(g=_.y(b.followUpCommand,JAb));this.isSlimlineSurvey?(this.resetComponent(),_.ho(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.ho(this.hostElement,"ytd-inline-survey-rating-select-action",[a,g])};
_.f.showSelectedOption=function(){var a=this;_.zk.addJob(function(){var b=a.getOptionRenderers()[a.slimlineSurveyRatingSelectedIndex];a.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),b)},8,100)};
_.f.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(a){var b;return(b=_.y(a,LAb))!=null?b:{}}):[]};
_.f.onUndoClick=function(){this.resetComponent();_.ho(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.f.setSurveyOptionValue=function(a,b,c){this.notifyPath("data.ratings."+a+".ratingSurveyOptionRenderer."+c);this.set("data.ratings."+a+".ratingSurveyOptionRenderer."+c,b)};
_.f.resetComponent=function(){var a=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var b=this.getOptionRenderers(),c,d;this.firstResponseText=(d=(c=b[0])==null?void 0:c.responseText)!=null?d:null;var e,g;this.lastResponseText=(g=(e=b[b.length-1])==null?void 0:e.responseText)!=null?g:null;b.forEach(function(k,m){a.setSurveyOptionValue(m,!1,"checked");a.setSurveyOptionValue(m,!1,"selected")})};
_.Vm.Object.defineProperties(M5b.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
var nO=M5b;nO.prototype.onOptionChange=nO.prototype.onOptionChange;nO.prototype.dataChanged=nO.prototype.dataChanged;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],nO.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],nO.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],nO.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],nO.prototype,"data",void 0);
_.U([_.O(),_.W("design:type",Object)],nO.prototype,"firstResponseText",void 0);_.U([_.O(),_.W("design:type",Object)],nO.prototype,"lastResponseText",void 0);_.U([_.O(),_.W("design:type",Object)],nO.prototype,"selectedNonStarOption",void 0);_.U([_.O(),_.W("design:type",Object)],nO.prototype,"hideOptions",void 0);_.U([_.O(),_.W("design:type",Object)],nO.prototype,"hideUndoButton",void 0);_.U([_.O(),_.W("design:type",Object)],nO.prototype,"disableAnimation",void 0);
_.U([_.O(),_.W("design:type",Object)],nO.prototype,"showResponseRangeText",void 0);_.U([_.O(),_.W("design:type",Object)],nO.prototype,"selectedRatingIndex",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],nO.prototype,"isSlimlineSurvey",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],nO.prototype,"isSlimlineSurveyFollowUp",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],nO.prototype,"isShortsStyle",void 0);_.U([_.O({selector:function(a){return a.ui.slimlineSurveyRatingSelectedIndex}}),
_.W("design:type",Object)],nO.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.U([_.K("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],nO.prototype,"isSingleSelect",null);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],nO.prototype,"dataChanged",null);
_.U([_.M("ytd-rating-survey-option-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],nO.prototype,"onOptionChange",null);nO=_.U([_.Q({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],nO);
_.S(nO,"ytd-rating-survey-renderer",function(){if(L5b!==void 0)return L5b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return L5b=a},{mode:1});var N5b;var O5b;var P5b;var t0a=(Fv.FIRSTDAYOFWEEK+1)%7,Q5b=function(a,b,c,d){var e="";if(d.selection&&p0a(d.selection))Cv(a,d.selection)&&(e+=" selected");else if(d.selection&&q0a(d.selection)){var g=d.selection.selectionState||"START_DATE";Cv(a,d.selection.start)&&(e+=" period-start ",g==="START_DATE"&&(e+="selected"));Cv(a,d.selection.end)&&(e+=" period-end ",g==="END_DATE"&&(e+="selected"));Dv(a,d.selection.start)||Dv(d.selection.end,a)||(e+=" highlighted")}if(Dv(b,d.start)||Dv(d.end,b))e+=" disabled";d.circleToday&&
Cv(b,c)&&(e+=" today");return e};var R5b=function(){return _.P.apply(this,arguments)||this};
_.z(R5b,_.P);_.f=R5b.prototype;_.f.attached=function(){var a=this;_.Tm(this,function(){a.JSC$13659_calendarMain.scrollHeight>0&&(a.calendarConfig.selection?a.scrollToDate(r0a(a.calendarConfig.selection)):a.scrollToDate(a.calendarConfig.end))})};
_.f.updateSelection=function(a){a=u0a(Object.assign({},this.calendarConfig,{selection:a}),Q5b);this.splice.apply(this,["renderData.months",0,a.length].concat(_.Be(a)))};
_.f.scrollToDate=function(a){this.renderData&&(a=v0a(a,this.renderData),a!==void 0&&this.JSC$13659_calendarMain.scrollToIndex(a))};
_.f.scrollToNextMonth=function(){this.JSC$13659_calendarMain.scrollToIndex(this.JSC$13659_calendarMain.firstVisibleIndex+1)};
_.f.scrollToPrevMonth=function(){this.JSC$13659_calendarMain.firstVisibleIndex===0&&this.JSC$13659_calendarMain.scrollTo(0,0);this.JSC$13659_calendarMain.scrollToIndex(this.JSC$13659_calendarMain.firstVisibleIndex-1)};
_.f.handleDayClick=function(a){_.ho(this.hostElement,"ytd-calendar-date-clicked",[a.model.day.date])};
_.f.handleDayMouseDown=function(a){a.preventDefault();_.ho(this.hostElement,"ytd-calendar-date-mousedown",[a.model.day.date])};
_.f.handleDayMouseUp=function(a){_.ho(this.hostElement,"ytd-calendar-date-mouseup",[a.model.day.date])};
_.f.handleDayMouseEnter=function(a){a.preventDefault();_.ho(this.hostElement,"ytd-calendar-date-mouseenter",[a.model.day.date])};
_.f.handleDayMouseLeave=function(a){_.ho(this.hostElement,"ytd-calendar-date-mouseleave",[a.model.day.date])};
_.Vm.Object.defineProperties(R5b.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var a=this.calendarConfig,b=Q5b;b=b===void 0?Q5b:b;for(var c=[],d=0;d<7;d++)c.push(Fv.NARROWWEEKDAYS[(d+t0a)%7]);return{months:u0a(a,b),daysOfWeekLabel:c}}}});
var oO=R5b;_.U([_.O(),_.W("design:type",Object)],oO.prototype,"calendarConfig",void 0);_.U([_.gr("#calendar-main"),_.W("design:type",Object)],oO.prototype,"JSC$13659_calendarMain",void 0);_.U([_.K("calendarConfig"),_.W("design:type",Object),_.W("design:paramtypes",[])],oO.prototype,"renderData",null);oO=_.U([_.Q({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],oO);
_.S(oO,"ytd-scrollable-calendar",function(){if(P5b!==void 0)return P5b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return P5b=a},{mode:2});var S5b;var T5b;var U5b=function(){var a=_.P.apply(this,arguments)||this;a.hideCharCounter=!1;a.hideLabel=!1;a.noLabelFloat=!1;a.autoValidate=!0;a.invalid=!1;a.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return a};
_.z(U5b,_.P);_.f=U5b.prototype;_.f.reset=function(a){this.value=a&&this.data?this.data.value=a:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.f.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.f.focusTextInput=function(){this.input.focus()};
_.f.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()};
_.f.valueChanged=function(){var a,b;if(((a=this.data)==null?0:a.value)||((b=this.data)==null?void 0:b.value)==="")this.value=this.data.value;else{var c;((c=this.data)==null?void 0:c.value)!==void 0||this.value||(this.value="")}};
_.f.computeLabel=function(a,b){return b?"":_.Vp(a)};
_.f.computeAriaLabel=function(a,b){return b?_.Vp(a):""};
_.f.computeErrorMessage=function(a,b,c,d){!a&&b?a=c||this.strings.REQUIRED_LABEL:(a=_.Vp(d),a=_.ra(a,"&")?"document"in _.ja?$ab(a):abb(a):a);return a};
_.f.computeType=function(a){return a==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.f.onTextValueChanged=function(a){this.value=a.detail.value;var b;(b=this.onValueChanged)==null||b.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.f.handleUpdateTextInputFormFieldRendererCommand=function(a){(a=_.y(a,dAb))&&this.data&&this.data.id===a.id&&(a.invalid!==void 0&&(this.invalid=a.invalid),a.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",a.invalidValueErrorMessage))};
_.f.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.TH("value-changed",this.value))};
_.f.updateInvalidFromBinding=function(a){this.invalid=a.detail.value};
_.Vm.Object.defineProperties(U5b.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var a;return!((a=this.data)==null||!a.isMultiline)}}});
var pO=U5b;pO.prototype.valueChangedForBinding=pO.prototype.valueChangedForBinding;pO.prototype.valueChanged=pO.prototype.valueChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],pO.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],pO.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],pO.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],pO.prototype,"data",void 0);_.U([_.O(),_.W("design:type",String)],pO.prototype,"value",void 0);_.U([_.O(),_.W("design:type",String)],pO.prototype,"pattern",void 0);_.U([_.O(),_.W("design:type",String)],pO.prototype,"errorMessage",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],pO.prototype,"componentStyle",void 0);_.U([_.O(),_.W("design:type",Object)],pO.prototype,"hideCharCounter",void 0);
_.U([_.O(),_.W("design:type",Object)],pO.prototype,"hideLabel",void 0);_.U([_.O(),_.W("design:type",Object)],pO.prototype,"noLabelFloat",void 0);_.U([_.O(),_.W("design:type",Function)],pO.prototype,"onValueChanged",void 0);_.U([_.O(),_.W("design:type",Boolean)],pO.prototype,"isMultilineOverride",void 0);_.U([_.O(),_.W("design:type",Object)],pO.prototype,"autoValidate",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],pO.prototype,"invalid",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],pO.prototype,"enableOverlayTheme",void 0);_.U([_.O({value:{REQUIRED_LABEL:_.to("REQUIRED_LABEL",void 0,"Required")}}),_.W("design:type",Object)],pO.prototype,"strings",void 0);_.U([_.gr("#input"),_.W("design:type",Object)],pO.prototype,"input",void 0);_.U([_.K("data","isMultilineOverride"),_.W("design:type",Object),_.W("design:paramtypes",[])],pO.prototype,"isMultiline",null);
_.U([_.kr("data.value"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],pO.prototype,"valueChanged",null);_.U([_.N("value"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],pO.prototype,"valueChangedForBinding",null);pO=_.U([_.ur({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],pO);
_.S(pO,"yt-text-input-form-field-renderer",function(){if(T5b===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-text-input-form-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.playlist.yt_text_input_form_field_renderer.yt.text.input.form.field.renderer.css.js--\x3e<template is="dom-if" if="[[isMultiline]]" class="style-scope yt-text-input-form-field-renderer">\n  <tp-yt-paper-textarea id="input" always-float-label="" aria-label$="[[computeAriaLabel(data.label, hideLabel)]]" char-counter="" error-message="[[computeErrorMessage(value, data.required, requiredErrorMessage, data.invalidValueErrorMessage)]]" invalid="[[invalid]]" label="[[computeLabel(data.label, hideLabel)]]" max-rows="5" maxlength="[[data.maxCharacterLimit]]" no-label-float="[[noLabelFloat]]" pattern="[[data.validValueRegexp]]" placeholder="[[data.placeholderText]]" required="[[data.required]]" rows="[[data.rows]]" use-v2-underline="" value="[[value]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="onTextValueChanged" class="style-scope yt-text-input-form-field-renderer">\n  </tp-yt-paper-textarea>\n</template>\n<template is="dom-if" if="[[!isMultiline]]" class="style-scope yt-text-input-form-field-renderer">\n  <tp-yt-paper-input id="input" always-float-label="" aria-label$="[[computeAriaLabel(data.label, hideLabel)]]" char-counter="[[!data.hideCharCounter]]" error-message="[[computeErrorMessage(value, data.required, requiredErrorMessage, data.invalidValueErrorMessage)]]" invalid="[[invalid]]" label="[[computeLabel(data.label, hideLabel)]]" maxlength="[[data.maxCharacterLimit]]" no-label-float="[[noLabelFloat]]" pattern="[[data.validValueRegexp]]" placeholder="[[data.placeholderText]]" required="[[data.required]]" type="[[computeType(data.type)]]" use-v2-underline="" value="[[value]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="onTextValueChanged" class="style-scope yt-text-input-form-field-renderer">\n  </tp-yt-paper-input>\n</template>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;S5b===void 0&&(S5b=document.createElement("template"));var d=S5b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);T5b=a}a=T5b;return a},{mode:2});var V5b=function(){var a=_.P.apply(this,arguments)||this;a.data=void 0;a.selectionState="START_DATE";a.isStartDateInvalid=!1;a.isEndDateInvalid=!1;a.autoapply=!1;a.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 a};
_.z(V5b,_.P);_.f=V5b.prototype;_.f.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"}}}}};
_.f.focus=function(){this.startDateInput.focus()};
_.f.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:Ev(this.data.selection.start),end:Ev(this.data.selection.end)})};
_.f.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.f.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.Sb(this.selectionState)}};
_.f.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.f.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.f.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.f.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var a=this.calendar.calendarConfig,b=a.end;a=x0a({start:a.start,end:this.endDate||b},this.startDateInput.value||"");this.isStartDateInvalid=!a.isValid;a.isValid&&(a=a.value,this.selection=this.endDate?{start:a,end:this.endDate}:a,this.calendar.scrollToDate(a));this.updateInvalidState()}};
_.f.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var a=this.calendar.calendarConfig,b=a.start;a=x0a({start:this.startDate||b,end:a.end},this.endDateInput.value||"");this.isEndDateInvalid=!a.isValid;a.isValid&&(a=a.value,this.selection={start:this.startDate,end:a},this.calendar.scrollToDate(a));this.updateInvalidState()}};
_.f.handleCalendarDateClicked=function(a){var b=this.selection&&r0a(this.selection),c=this.selection&&s0a(this.selection);b&&!Dv(a,b)&&this.selectionState==="END_DATE"?(this.selection={start:b,end:a},this.selectionState="START_DATE"):(c&&!Dv(c,a)?this.selection={start:a,end:c}:this.selection=a,this.selectionState="END_DATE")};
_.f.handleCalendarDateMouseDown=function(a){this.selection&&!p0a(this.selection)&&(this.dragPivot=Cv(a,this.selection.start)?this.selection.end:Cv(a,this.selection.end)?this.selection.start:a)};
_.f.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.f.handleCalendarDateMouseEnter=function(a){this.dragPivot&&(this.selection={start:function(b,c){return Dv(b,c)?b:c}(this.dragPivot,a),
end:function(b,c){return Dv(b,c)?c:b}(this.dragPivot,a)},this.dragPivot||(this.selectionState="START_DATE"))};
_.f.handleCalendarDateMouseLeave=function(){};
_.f.handleCalendarSubmitDateRange=function(){this.selection&&!p0a(this.selection)&&_.ho(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.f.updateInvalidState=function(){var a=function(b,c){c?b.setAttribute("invalid",""):b.removeAttribute("invalid")};
a(this.startDateInput,this.isStartDateInvalid);a(this.endDateInput,this.isEndDateInvalid)};
_.f.updateDateStrings=function(){this.selection&&(p0a(this.selection)?o0a(this.selection):(o0a(this.selection.start),o0a(this.selection.end)))};
_.f.updateCalendarSelection=function(a){this.calendar.updateSelection(Object.assign({},a,{selectionState:this.selectionState}))};
_.f.updateIsStartDateInvalidFromBinding=function(a){this.isStartDateInvalid=a.detail.value};
_.f.updateIsEndDateInvalidFromBinding=function(a){this.isEndDateInvalid=a.detail.value};
_.f.updateStartDateStringFromBinding=function(){};
_.f.updateEndDateStringFromBinding=function(){};
_.Vm.Object.defineProperties(V5b.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:Ev(this.data.dateRangeStart),end:Ev(this.data.dateRangeEnd),selection:{start:Ev(this.data.selection.start),end:Ev(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&r0a(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&s0a(this.selection)}}});
var qO=V5b;qO.prototype.resetTextboxes=qO.prototype.resetTextboxes;qO.prototype.observeSelection=qO.prototype.observeSelection;qO.prototype.dataChanged=qO.prototype.dataChanged;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],qO.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],qO.prototype,"ytRendererstamperBehavior",void 0);_.U([_.gr("#calendar"),_.W("design:type",Object)],qO.prototype,"calendar",void 0);
_.U([_.gr("#start-date"),_.W("design:type",Object)],qO.prototype,"startDateInput",void 0);_.U([_.gr("#end-date"),_.W("design:type",Object)],qO.prototype,"endDateInput",void 0);_.U([_.O(),_.W("design:type",Object)],qO.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],qO.prototype,"selection",void 0);_.U([_.O(),_.W("design:type",String)],qO.prototype,"selectionState",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],qO.prototype,"calendarConfig",null);
_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],qO.prototype,"errorMessage",null);_.U([_.K("selection"),_.W("design:type",Object),_.W("design:paramtypes",[])],qO.prototype,"startDate",null);_.U([_.K("selection"),_.W("design:type",Object),_.W("design:paramtypes",[])],qO.prototype,"endDate",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],qO.prototype,"dataChanged",null);
_.U([_.N("selection","selectionState"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],qO.prototype,"observeSelection",null);_.U([_.N("selectionState"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],qO.prototype,"resetTextboxes",null);qO=_.U([_.Q({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],qO);
_.S(qO,"ytd-date-period-picker-renderer",function(){if(O5b!==void 0)return O5b;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return O5b=a},{mode:1});var W5b=function(){var a=_.P.apply(this,arguments)||this;var b={};a.actionMap=(b["ytd-date-period-picker-apply"]="handleDateRangeUpdated",b);return a};
_.z(W5b,_.P);W5b.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
W5b.prototype.handleDateRangeUpdated=function(){};
var rO=W5b;_.U([_.O(),_.W("design:type",Object)],rO.prototype,"data",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],rO.prototype,"actionHandlerBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],rO.prototype,"rendererstamperBehavior",void 0);rO=_.U([_.Q({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],rO);
_.S(rO,"ytd-report-history-section-header-renderer",function(){if(N5b!==void 0)return N5b;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return N5b=a},{mode:1});var X5b;var Y5b;var Z5b;var $5b=function(){return _.P.apply(this,arguments)||this};
_.z($5b,_.P);_.Vm.Object.defineProperties($5b.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.data)==null?0:(b=a.icon)==null?0:b.iconType)?_.fs(this.data.icon.iconType):""}}});
var sO=$5b;_.U([_.O(),_.W("design:type",Object)],sO.prototype,"data",void 0);_.U([_.K("data"),_.W("design:type",String),_.W("design:paramtypes",[])],sO.prototype,"icon",null);sO=_.U([_.Q({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],sO);
_.S(sO,"ytd-report-history-table-text-cell-renderer",function(){if(Z5b!==void 0)return Z5b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Z5b=a},{mode:1});var a6b=function(){return _.P.apply(this,arguments)||this};
_.z(a6b,_.P);a6b.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
var tO=a6b;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],tO.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],tO.prototype,"data",void 0);tO=_.U([_.Q({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],tO);
_.S(tO,"ytd-report-history-table-reason-cell-renderer",function(){if(Y5b!==void 0)return Y5b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Y5b=a},{mode:1});var b6b=function(){return _.P.apply(this,arguments)||this};
_.z(b6b,_.P);b6b.prototype.configureRendererStamper=function(){return{"data.cell":{id:"cell-container",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer",reportHistoryTableReasonCellRenderer:"ytd-report-history-table-reason-cell-renderer"}}}};
var uO=b6b;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],uO.prototype,"rendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],uO.prototype,"data",void 0);uO=_.U([_.Q({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],uO);
_.S(uO,"ytd-report-history-table-cell-renderer",function(){if(X5b!==void 0)return X5b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);
return X5b=a},{mode:1});var c6b;var vO=function(){var a=_.P.apply(this,arguments)||this;a.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 a};
_.z(vO,_.P);vO.prototype.onDataChanged=function(){var a;if((a=this.data)==null?0:a.style)this.componentStyle=this.getStyleName(this.data.style)};
vO.prototype.getCellForColumn=function(a){return this.cells.find(function(b){var c;return((c=_.y(b==null?void 0:b.cell,OAb)||_.y(b==null?void 0:b.cell,NAb))==null?void 0:c.columnId)===a.type})};
vO.prototype.getClassForColumn=function(a){switch(a){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
vO.prototype.getStyleName=function(a){switch(a){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.Vm.Object.defineProperties(vO.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var a;return(((a=this.data)==null?void 0:a.cells)||[]).map(function(b){return _.y(b,MAb)})}}});
var wO=vO;wO.prototype.onDataChanged=wO.prototype.onDataChanged;_.U([_.O(),_.W("design:type",Object)],wO.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Array)],wO.prototype,"columnRenderData",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],wO.prototype,"componentStyle",void 0);_.U([_.K("data"),_.W("design:type",Array),_.W("design:paramtypes",[])],wO.prototype,"cells",null);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],wO.prototype,"onDataChanged",null);wO=_.U([_.Q({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],wO);
_.S(wO,"ytd-report-history-table-row-renderer",function(){if(c6b!==void 0)return c6b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return c6b=a},{mode:1});var d6b;var e6b;var y0a={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},z0a={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var xO=function(){return _.P.apply(this,arguments)||this};
_.z(xO,_.P);xO.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"}}}}}};
xO.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.Vm.Object.defineProperties(xO.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?0:a.columns)?E0a(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return C0a(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var a=this.tableSpec,b=y0a;b=b===void 0?z0a:b;b=D0a(a.columnDimensions,a.columnsToShow||[],b);a=0;b=_.h(b);for(var c=b.next();!c.done;c=b.next())c=c.value,a+=c.minWidth+c.paddingLeft+c.paddingRight;return a}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
var yO=xO;_.U([_.H(_.RM),_.W("design:type",Object)],yO.prototype,"ytContinuationHandlerBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],yO.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],yO.prototype,"data",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],yO.prototype,"tableSpec",null);_.U([_.K("tableSpec"),_.W("design:type",Array),_.W("design:paramtypes",[])],yO.prototype,"columnRenderData",null);
_.U([_.K("tableSpec"),_.W("design:type",Number),_.W("design:paramtypes",[])],yO.prototype,"totalMinWidth",null);_.U([_.K("totalMinWidth"),_.W("design:type",String),_.W("design:paramtypes",[])],yO.prototype,"tableWidthStyle",null);yO=_.U([_.Q({is:"ytd-table-renderer",disableElementRegistration:!0})],yO);
_.S(yO,"ytd-table-renderer",function(){if(e6b!==void 0)return e6b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return e6b=a},{mode:1});var f6b=function(){return _.P.apply(this,arguments)||this};
_.z(f6b,_.P);f6b.prototype.configureRendererStamper=function(){return{"data.reportedContent":{id:"content-info",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}},"data.reasonsTable":{id:"reasons-table",mapping:{tableRenderer:"ytd-table-renderer"}},"data.doneButton":{id:"done-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
var zO=f6b;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],zO.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],zO.prototype,"data",void 0);zO=_.U([_.Q({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],zO);
_.S(zO,"ytd-report-reason-history-modal-renderer",function(){if(d6b!==void 0)return d6b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return d6b=a},{mode:1});var g6b;var h6b;var i6b;var j6b=function(){return _.P.apply(this,arguments)||this};
_.z(j6b,_.P);var AO=j6b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],AO.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],AO.prototype,"data",void 0);AO=_.U([_.Q({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],AO);
_.S(AO,"ytd-profile-column-stats-entry-renderer",function(){if(i6b!==void 0)return i6b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return i6b=a},{mode:1});var k6b;var l6b=function(){return _.P.apply(this,arguments)||this};
_.z(l6b,_.P);l6b.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
var BO=l6b;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],BO.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],BO.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],BO.prototype,"data",void 0);BO=_.U([_.Q({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],BO);
_.S(BO,"ytd-profile-column-stats-renderer",function(){if(k6b!==void 0)return k6b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return k6b=a},{mode:1});var m6b;var n6b=function(){return _.P.apply(this,arguments)||this};
_.z(n6b,_.P);_.Vm.Object.defineProperties(n6b.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)==null||!a.useThumbnailSize)return 80;var b,c;a=(b=this.data)==null?void 0:(c=b.thumbnail)==null?void 0:c.thumbnails;var d;return a&&((d=a[0])==null?void 0:d.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)==null||!a.useThumbnailSize)return 80;var b,c;a=(b=this.data)==null?void 0:(c=b.thumbnail)==null?void 0:c.thumbnails;var d;return a&&((d=a[0])==null?void 0:d.height)||80}}});
var CO=n6b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],CO.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],CO.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],CO.prototype,"componentStyle",void 0);_.U([_.K("data.useThumbnailSize"),_.W("design:type",Object),_.W("design:paramtypes",[])],CO.prototype,"thumbnailWidth",null);
_.U([_.K("data.useThumbnailSize"),_.W("design:type",Object),_.W("design:paramtypes",[])],CO.prototype,"thumbnailHeight",null);CO=_.U([_.Q({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],CO);
_.S(CO,"ytd-profile-column-user-info-renderer",function(){if(m6b!==void 0)return m6b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return m6b=a},{mode:1});var o6b=function(){return _.P.apply(this,arguments)||this};
_.z(o6b,_.P);o6b.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsRenderer:{component:"ytd-profile-column-stats-renderer",noInjection:!0},profileColumnUserInfoRenderer:{component:"ytd-profile-column-user-info-renderer",noInjection:!0,properties:{componentStyle:"[[componentStyle]]"}}}}}};
var DO=o6b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],DO.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],DO.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],DO.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],DO.prototype,"componentStyle",void 0);DO=_.U([_.Q({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],DO);
_.S(DO,"ytd-profile-column-renderer",function(){if(h6b!==void 0)return h6b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return h6b=a},{mode:1});var p6b=function(){var a=_.P.apply(this,arguments)||this;a.componentStyle="NON_CENTERED_PROFILE";return a};
_.z(p6b,_.P);p6b.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
p6b.prototype.getIcon=function(a){return a?"settings:"+a.toLowerCase():null};
var EO=p6b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],EO.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],EO.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],EO.prototype,"data",void 0);EO=_.U([_.Q({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],EO);
_.S(EO,"ytd-page-introduction-renderer",function(){if(g6b!==void 0)return g6b;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return g6b=a},{mode:1});var q6b;var r6b=function(){return _.P.apply(this,arguments)||this};
_.z(r6b,_.P);var FO=r6b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],FO.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],FO.prototype,"data",void 0);FO=_.U([_.Q({is:"ytd-report-description-renderer",disableElementRegistration:!0})],FO);
_.S(FO,"ytd-report-description-renderer",function(){if(q6b!==void 0)return q6b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return q6b=a},{mode:1});var s6b;var t6b;var u6b=function(){return _.P.apply(this,arguments)||this};
_.z(u6b,_.P);u6b.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
var GO=u6b;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],GO.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],GO.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],GO.prototype,"data",void 0);GO=_.U([_.Q({is:"ytd-video-report-renderer",disableElementRegistration:!0})],GO);
_.S(GO,"ytd-video-report-renderer",function(){if(t6b!==void 0)return t6b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return t6b=a},{mode:1});var v6b;_.It("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.It("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var HO=function(){return _.P.apply(this,arguments)||this};
_.z(HO,_.P);HO.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]]"}}}}}};
HO.prototype.computeMessageStyle=function(a){return a};
HO.prototype.computeButtonOverride=function(a){var b;if((a==null?0:(b=a.style)==null?0:b.value)&&a.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
var IO=HO;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],IO.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],IO.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],IO.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],IO.prototype,"shelf",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],IO.prototype,"panel",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.W("design:type",Boolean)],IO.prototype,"componentStyle",void 0);_.U([_.O({computed:"computeButtonOverride(data)"}),_.W("design:type",Object)],IO.prototype,"buttonOverride",void 0);IO=_.U([_.Q({is:"ytd-message-renderer",disableElementRegistration:!0})],IO);
_.S(IO,"ytd-message-renderer",function(){if(v6b!==void 0)return v6b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon" class="style-scope ytd-message-renderer"></div>\n<yt-formatted-string id="message" hidden$="[[!data.text]]" split-lines="" text="[[data.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<yt-formatted-string id="submessage" hidden$="[[!data.subtext]]" split-lines="" text="[[data.subtext.messageSubtextRenderer.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<div id="message-button" class="style-scope ytd-message-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return v6b=a},{mode:1});var JO=function(){return _.P.apply(this,arguments)||this};
_.z(JO,_.P);JO.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"}}}};
JO.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
JO.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.Vm.Object.defineProperties(JO.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!(((a=this.data)==null?0:a.header)&&((b=this.data)==null?0:b.table))}}});
var KO=JO;KO.prototype.onRequestError=KO.prototype.onRequestError;_.U([_.H(_.RM),_.W("design:type",Object)],KO.prototype,"ytContinuationHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],KO.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],KO.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],KO.prototype,"data",void 0);
_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],KO.prototype,"isUnifiedReportHistory",null);_.U([_.M("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],KO.prototype,"onRequestError",null);KO=_.U([_.Q({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],KO);
_.S(KO,"ytd-report-history-section-renderer",function(){if(s6b!==void 0)return s6b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return s6b=a},{mode:1});var w6b;var x6b=function(){var a=_.P.apply(this,arguments)||this;a.answerExpanded=!1;return a};
_.z(x6b,_.P);x6b.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
var LO=x6b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],LO.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],LO.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],LO.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],LO.prototype,"answerExpanded",void 0);LO=_.U([_.Q({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],LO);
_.S(LO,"ytd-handles-claiming-faq-renderer",function(){if(w6b!==void 0)return w6b;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return w6b=a},{mode:1});var y6b;var z6b=function(){return _.P.apply(this,arguments)||this};
_.z(z6b,_.P);var A6b=z6b;_.U([_.O(),_.W("design:type",Object)],A6b.prototype,"data",void 0);A6b=_.U([_.Q({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],A6b);
_.S(A6b,"ytd-handles-claiming-faq-section-renderer",function(){if(y6b!==void 0)return y6b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return y6b=a},{mode:1});var B6b;var C6b=function(){var a=_.P.apply(this,arguments)||this;a.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";a.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";a.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";a.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";a.leftSquiggly=a.leftSquigglyLight;a.rightSquiggly=a.rightSquigglyLight;
a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};a.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return a};
_.z(C6b,_.P);_.f=C6b.prototype;_.f.updateLeftSquigglyStyle=function(){_.dr(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.f.updateRightSquigglyStyle=function(){_.dr(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.f.ready=function(){var a=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(a)};
_.f.onDarkModeToggledAction=function(a){a!==this.isDarkTheme&&(this.set("isDarkTheme",a),a?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.f.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
var MO=C6b;MO.prototype.updateRightSquigglyStyle=MO.prototype.updateRightSquigglyStyle;MO.prototype.updateLeftSquigglyStyle=MO.prototype.updateLeftSquigglyStyle;_.U([_.O(),_.W("design:type",Object)],MO.prototype,"data",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],MO.prototype,"isDarkTheme",void 0);_.U([_.O(),_.W("design:type",String)],MO.prototype,"leftSquiggly",void 0);_.U([_.O(),_.W("design:type",String)],MO.prototype,"rightSquiggly",void 0);
_.U([_.N("leftSquiggly"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],MO.prototype,"updateLeftSquigglyStyle",null);_.U([_.N("rightSquiggly"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],MO.prototype,"updateRightSquigglyStyle",null);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],MO.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],MO.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],MO.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],MO.prototype,"actionButtonOverride",void 0);MO=_.U([_.Q({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],MO);
_.S(MO,"ytd-handles-claiming-header-renderer",function(){if(B6b!==void 0)return B6b;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return B6b=a},{mode:1});var D6b;var E6b=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};a.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";a.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";a.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";a.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
a.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";a.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";a.image0SquigglyBackground=a.image0LightSquigglyBackground;a.image1SquigglyBackground=a.image1LightSquigglyBackground;a.image3SquigglyBackground=a.image3LightSquigglyBackground;return a};
_.z(E6b,_.P);_.f=E6b.prototype;_.f.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.f.onDataChanged=function(){this.updateTitleAndImages()};
_.f.onThemeChanged=function(){this.updateTitleAndImages()};
_.f.onDarkModeToggledAction=function(a){a!==this.isDarkTheme&&(this.isDarkTheme=a)};
_.f.updateImage0SquigglyBackground=function(){_.dr(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.f.updateImage1SquigglyBackground=function(){_.dr(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.f.updateImage3SquigglyBackground=function(){_.dr(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.f.updateTitleAndImages=function(){var a,b;((a=this.data)==null?void 0:(b=a.titleImages)==null?void 0:b.length)===5&&(this.title0=this.data.titleImages[0].title,this.title1=this.data.titleImages[1].title,this.title2=this.data.titleImages[2].title,this.title3=this.data.titleImages[3].title,this.title4=this.data.titleImages[4].title,this.isDarkTheme?(this.image0=this.data.titleImages[0].darkImage,this.image1=this.data.titleImages[1].darkImage,this.image2=this.data.titleImages[2].darkImage,this.image3=
this.data.titleImages[3].darkImage,this.image4=this.data.titleImages[4].darkImage,this.image0SquigglyBackground=this.image0DarkSquigglyBackground,this.image1SquigglyBackground=this.image1DarkSquigglyBackground,this.image3SquigglyBackground=this.image3DarkSquigglyBackground):(this.image0=this.data.titleImages[0].lightImage,this.image1=this.data.titleImages[1].lightImage,this.image2=this.data.titleImages[2].lightImage,this.image3=this.data.titleImages[3].lightImage,this.image4=this.data.titleImages[4].lightImage,
this.image0SquigglyBackground=this.image0LightSquigglyBackground,this.image1SquigglyBackground=this.image1LightSquigglyBackground,this.image3SquigglyBackground=this.image3LightSquigglyBackground))};
var NO=E6b;NO.prototype.updateImage3SquigglyBackground=NO.prototype.updateImage3SquigglyBackground;NO.prototype.updateImage1SquigglyBackground=NO.prototype.updateImage1SquigglyBackground;NO.prototype.updateImage0SquigglyBackground=NO.prototype.updateImage0SquigglyBackground;NO.prototype.onThemeChanged=NO.prototype.onThemeChanged;NO.prototype.onDataChanged=NO.prototype.onDataChanged;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],NO.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],NO.prototype,"isDarkTheme",void 0);_.U([_.O(),_.W("design:type",Object)],NO.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],NO.prototype,"title0",void 0);_.U([_.O(),_.W("design:type",Object)],NO.prototype,"title1",void 0);_.U([_.O(),_.W("design:type",Object)],NO.prototype,"title2",void 0);_.U([_.O(),_.W("design:type",Object)],NO.prototype,"title3",void 0);
_.U([_.O(),_.W("design:type",Object)],NO.prototype,"title4",void 0);_.U([_.O(),_.W("design:type",Object)],NO.prototype,"image0",void 0);_.U([_.O(),_.W("design:type",Object)],NO.prototype,"image1",void 0);_.U([_.O(),_.W("design:type",Object)],NO.prototype,"image2",void 0);_.U([_.O(),_.W("design:type",Object)],NO.prototype,"image3",void 0);_.U([_.O(),_.W("design:type",Object)],NO.prototype,"image4",void 0);_.U([_.O(),_.W("design:type",String)],NO.prototype,"image0SquigglyBackground",void 0);
_.U([_.O(),_.W("design:type",String)],NO.prototype,"image1SquigglyBackground",void 0);_.U([_.O(),_.W("design:type",String)],NO.prototype,"image3SquigglyBackground",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],NO.prototype,"onDataChanged",null);_.U([_.N("isDarkTheme"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],NO.prototype,"onThemeChanged",null);
_.U([_.N("image0SquigglyBackground"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],NO.prototype,"updateImage0SquigglyBackground",null);_.U([_.N("image1SquigglyBackground"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],NO.prototype,"updateImage1SquigglyBackground",null);
_.U([_.N("image3SquigglyBackground"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],NO.prototype,"updateImage3SquigglyBackground",null);NO=_.U([_.Q({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],NO);
_.S(NO,"ytd-handles-claiming-title-images-section-renderer",function(){if(D6b!==void 0)return D6b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return D6b=a},{mode:1});var F6b;var OO=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a};
_.z(OO,_.P);OO.prototype.ready=function(){var a=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(a)};
OO.prototype.onDarkModeToggledAction=function(a){a!==this.isDarkTheme&&this.set("isDarkTheme",a)};
OO.prototype.onCopyButtonClick=function(){var a=this,b,c,d;return _.l(function(e){return(b=a.data)!=null&&b.primaryChannelUrl?_.p(e,navigator.clipboard.writeText(((c=a.data)==null?0:c.encodedChannelUrl)?a.data.encodedChannelUrl:"https://"+_.Vp((d=a.data)==null?void 0:d.primaryChannelUrl)),0):e.jumpTo(0)})};
var PO=OO;_.U([_.O(),_.W("design:type",Object)],PO.prototype,"data",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],PO.prototype,"ytComponentBehavior",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],PO.prototype,"isDarkTheme",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],PO.prototype,"ytActionHandlerBehavior",void 0);PO=_.U([_.Q({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],PO);
_.S(PO,"ytd-handles-claiming-update-social-renderer",function(){if(F6b!==void 0)return F6b;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return F6b=a},{mode:1});var G6b;var QO=function(){var a=_.P.apply(this,arguments)||this;a.JSC$13754_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";a.JSC$13754_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};a.squigglyBackground=a.JSC$13754_squigglyBackgroundLight;return a};
_.z(QO,_.P);QO.prototype.updateSquigglyBackgroundStyle=function(){_.dr(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
QO.prototype.ready=function(){var a=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",a);this.squigglyBackground=a?this.JSC$13754_squigglyBackgroundDark:this.JSC$13754_squigglyBackgroundLight};
QO.prototype.onDarkModeToggledAction=function(a){a!==this.isDarkTheme&&(this.set("isDarkTheme",a),this.squigglyBackground=a?this.JSC$13754_squigglyBackgroundDark:this.JSC$13754_squigglyBackgroundLight)};
var RO=QO;RO.prototype.updateSquigglyBackgroundStyle=RO.prototype.updateSquigglyBackgroundStyle;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],RO.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],RO.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],RO.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],RO.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],RO.prototype,"isDarkTheme",void 0);_.U([_.O(),_.W("design:type",String)],RO.prototype,"squigglyBackground",void 0);_.U([_.N("squigglyBackground"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],RO.prototype,"updateSquigglyBackgroundStyle",null);RO=_.U([_.Q({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],RO);
_.S(RO,"ytd-handles-claiming-vanity-info-renderer",function(){if(G6b!==void 0)return G6b;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return G6b=a},{mode:1});var H6b;var I6b=function(){var a=_.P.apply(this,arguments)||this;a.JSC$13757_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";a.JSC$13757_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";a.squigglyBackground=a.JSC$13757_squigglyBackgroundLight;a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a};
_.z(I6b,_.P);_.f=I6b.prototype;_.f.ready=function(){var a=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(a)};
_.f.onDarkModeToggledAction=function(a){a!==this.isDarkTheme&&(this.set("isDarkTheme",a),this.squigglyBackground=a?this.JSC$13757_squigglyBackgroundDark:this.JSC$13757_squigglyBackgroundLight)};
_.f.updateSquigglyBackgroundStyle=function(){_.dr(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.f.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.f.detached=function(){this.stop()};
_.f.stop=function(){this.playerElement.stop()};
_.f.setupVideoPlayer=function(){var a=this,b,c;return _.l(function(d){b=a.data.videoId;c="http://i1.ytimg.com/vi/"+b+"/maxresdefault.jpg";a.playerElement.loadVideoWithPlayerVars({video_id:b,iurlhq:c});_.se(d)})};
var SO=I6b;SO.prototype.onDataChanged=SO.prototype.onDataChanged;SO.prototype.updateSquigglyBackgroundStyle=SO.prototype.updateSquigglyBackgroundStyle;_.U([_.O({value:!1}),_.W("design:type",Boolean)],SO.prototype,"isDarkTheme",void 0);_.U([_.O(),_.W("design:type",String)],SO.prototype,"squigglyBackground",void 0);_.U([_.gr("#player"),_.W("design:type",Object)],SO.prototype,"playerElement",void 0);_.U([_.O(),_.W("design:type",Object)],SO.prototype,"data",void 0);
_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],SO.prototype,"ytActionHandlerBehavior",void 0);_.U([_.N("squigglyBackground"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],SO.prototype,"updateSquigglyBackgroundStyle",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],SO.prototype,"onDataChanged",null);
SO=_.U([_.Q({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],SO);
_.S(SO,"ytd-handles-claiming-video-item-renderer",function(){if(H6b!==void 0)return H6b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return H6b=a},{mode:1});var J6b;var UO=function(){var a=_.ir.apply(this,arguments)||this;a.dragging=!1;a.dragMouseStart=0;a.dragOffsetStart=0;a.containerWidthDiff=0;a.boundPrevClick=function(){a.set("offset",TO(a,a.offset-(a.scrollDistance||320)))};
a.boundNextClick=function(){a.set("offset",TO(a,a.offset+(a.scrollDistance||320)))};
a.boundScrollContainerMouseDown=function(b){a.dragMouseStart=b.clientX;a.dragOffsetStart=a.offset;a.dragging=!0};
a.boundScrollContainerDrag=function(b){a.dragging&&a.set("offset",TO(a,a.dragOffsetStart-(b.clientX-a.dragMouseStart)))};
a.boundMouseUp=function(){a.onMouseUp()};
a.boundWheelScroll=function(b){var c=0;Math.abs(b.deltaX)>=Math.abs(b.deltaY)?c=b.deltaX:b.shiftKey&&(c=b.deltaY);c!==0&&(a.offset+=c,b.stopPropagation(),b.preventDefault())};
a.boundChipCloudChipScrollIntoView=function(b){(b=b.detail)&&a.scrollChipIntoView(b)};
return a};
_.z(UO,_.ir);UO.prototype.attached=function(){var a=_.E(this.hostElement).querySelector("#scroll-container");a.addEventListener("wheel",this.boundWheelScroll);a.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);a.style.touchAction="pan-y";a.addEventListener("pointerdown",this.boundScrollContainerMouseDown);a.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
UO.prototype.detached=function(){var a=_.E(this.hostElement).querySelector("#scroll-container");a.removeEventListener("wheel",this.boundWheelScroll);a.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);a.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);a.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
UO.prototype.reset=function(){this.set("offset",0);_.Tm(this,this.setContainerWidthDiff);VO(this)};
var TO=function(a,b){return Math.min(Math.max(b,0),a.containerWidthDiff)};
UO.prototype.onMouseUp=function(){this.dragging=!1};
UO.prototype.transformContainer=function(){this.offset=TO(this,this.offset);var a=_.Ei("HTML_DIR")==="rtl"?"":"-";_.E(this.hostElement).querySelector("#chips").style.transform="translateX("+a+this.offset+"px)";VO(this)};
var VO=function(a){_.Tm(a,a.setButtonsState)};
UO.prototype.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=TO(this,this.offset));this.atStart=this.offset<=0};
UO.prototype.setContainerWidthDiff=function(){var a=_.E(this.hostElement).querySelector("#scroll-container"),b=_.E(this.hostElement).querySelector("#chips");a&&b&&(this.containerWidthDiff=b.clientWidth-a.clientWidth)};
UO.prototype.scrollChipIntoView=function(a){var b=_.E(this.hostElement).querySelector("#scroll-container");if(b){var c=this.atStart?0:106,d=this.atEnd?0:106;a.offsetLeft<this.offset+c?this.offset=TO(this,a.offsetLeft-c):a.offsetLeft+a.clientWidth>this.offset+b.clientWidth-d&&(this.offset=TO(this,a.offsetLeft+a.clientWidth+d-b.clientWidth))}};
var WO=UO;WO.prototype.transformContainer=WO.prototype.transformContainer;_.U([_.O({value:0}),_.W("design:type",Number)],WO.prototype,"offset",void 0);_.U([_.O({value:!0,reflectToAttribute:!0}),_.W("design:type",Boolean)],WO.prototype,"atStart",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],WO.prototype,"atEnd",void 0);_.U([_.O(),_.W("design:type",Number)],WO.prototype,"scrollDistance",void 0);
_.U([_.N("offset"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],WO.prototype,"transformContainer",null);WO=_.U([_.jr()],WO);var K6b;var L6b;var O6b=_.Rr(function(a){var b=a.data;a=_.h(_.fh(!1,"icHmSe"));var c=a.next().value,d=a.next().value;a={};a=_.jt("ytChipShapeChip",function(){a:switch(b==null?void 0:b().state){case 0:var m="ytChipShapeActive";break a;case 1:m="ytChipShapeDisabled";break a;default:m="ytChipShapeInactive"}return m},function(){var m=b().type===1||b().type===2,n=b();
return m||n!=null&&n.startIcon?n==null||!n.startIcon||n!=null&&n.text?m?"ytChipShapeEndIconPadding":(n==null?0:n.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(a.ytChipShapeFocused=function(){var m;
return c()&&((m=b())==null?void 0:m.state)!==1},a));
var e=function(m){if((b==null?void 0:b().state)!==1){var n,r;(r=(n=b()).onTap)==null||r.call(n,m)}},g=_.ot(function(){var m=_.v().resolve(_.Wi(_.yu));
m&&d(m.isKeyBoardInUse());return!1}),k=_.ot(function(){d(!1);
return!1});
return _.q("chip-shape",{class:"ytChipShapeHost","on:focusin":g,"on:focusout":k},_.q(M6b,{shouldWrapInButton:function(){return b().type!==2},
selected:function(){return b().state===0},
onClick:e,isDropdown:function(){return b().type===1},
accessibilityLabel:function(){return b().accessibilityLabel}},_.q("div",{class:a},_.q(_.oi,{cond:function(){return b().startIcon},
then:function(){return _.q(_.tt,{icon:function(){var m;return(m=b())==null?void 0:m.startIcon},
className:function(){return b().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return b().text},_.q(N6b,{shape:b,
onClick:e}))))});
O6b.idomCompat=!0;var M6b=_.Rr(function(a){var b=_.ot(function(c){a.onClick(c);return!1});
return _.q(_.oi,{cond:a.shouldWrapInButton,then:function(){return _.q("button",{class:"ytChipShapeButtonReset","on:click":b,role:function(){return a.isDropdown()?"combobox":"tab"},
"aria-label":a.accessibilityLabel,"aria-selected":a.selected},a.children)},
else:function(){return a.children}})}),N6b=_.Rr(function(a){var b=a.shape;
var c=a.onClick;var d=_.ot(function(e){c(e);return!1});
return _.q(_.qi,null,_.q(_.pi,{when:function(){return b().type===1}},function(){return _.q(_.tt,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.q(_.pi,{when:function(){return b().type===2}},function(){return _.q("button",{class:"ytChipShapeButtonReset",
"on:click":d},_.q(_.tt,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.q(_.pi,{when:function(){return b().type===0}},function(){return _.q(_.Vh,null)}))});_.Ws(O6b,"chip-shape",{props:{data:_.SG}});var P6b=function(){var a=_.P.apply(this,arguments)||this;a.disableDeselectEvent=!1;a.modern=_.x("web_modern_typography");a.useChipShape=_.x("web_chip_shape_defrag");a.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return a};
_.z(P6b,_.P);_.f=P6b.prototype;_.f.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
_.f.attached=function(){this.useChipShape||(this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","tab"),this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0"))};
_.f.onSelectChipCommand=function(a){if(!this.selected&&this.data&&(a=_.y(a,Vzb),a.targetId&&a.targetId===this.data.targetId))this.onTap()};
_.f.onFilterChipTransformCommand=function(a){if(!this.selected&&this.data){var b;(a=(b=_.y(a,azb))==null?void 0:b.chipUniqueId)&&a===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.f.dataChanged=function(){var a=this;_.Tm(this,function(){a.data&&a.data.isSelected&&!a.selected&&(a.scrollChipIntoView(),a.onTap())})};
_.f.selectionChanged=function(){this.useChipShape?this.data&&this.set("data.isSelected",this.selected):this.hostElement.setAttribute("aria-selected",""+this.selected)};
_.f.computeChipStyle=function(a){return a!=null?a:"STYLE_DEFAULT"};
_.f.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.ho(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.ho(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.f.onFocus=function(){var a=_.v().resolve(_.Wi(_.yu));a&&a.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.f.scrollChipIntoView=function(){_.go(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.Vm.Object.defineProperties(P6b.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){var a=this.data;var b=this.onTap.bind(this);if(a){var c=a.style&&a.style.styleType;var d=!b9a&&c==="STYLE_EXPLORE_LAUNCHER_CHIP";var e;c=G0a(a,d);var g=(e=a.icon)==null?void 0:e.iconType;e=a.isSelected?0:2;b=H0a(a,b);if(d){var k,m,n;d=(n=(k=a.accessibilityData)==null?void 0:(m=k.accessibilityData)==null?void 0:m.label)!=null?n:G0a(a,!1)}else d=void 0;a={text:c,startIcon:g,state:e,type:0,onTap:b,accessibilityLabel:d}}else a={};return a}}});
var XO=P6b;XO.prototype.onFocus=XO.prototype.onFocus;XO.prototype.onTap=XO.prototype.onTap;XO.prototype.selectionChanged=XO.prototype.selectionChanged;XO.prototype.dataChanged=XO.prototype.dataChanged;_.U([_.H(_.ED),_.W("design:type",Object)],XO.prototype,"ironButtonState",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],XO.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],XO.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],XO.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.BD),_.W("design:type",Object)],XO.prototype,"ironA11yKeysBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],XO.prototype,"disableDeselectEvent",void 0);_.U([_.O(),_.W("design:type",Object)],XO.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.K("data.icon"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],XO.prototype,"hasIcon",null);
_.U([_.O({reflectToAttribute:!0}),_.K("data.uniqueId"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],XO.prototype,"isGnomeChip",null);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],XO.prototype,"modern",void 0);_.U([_.O({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.W("design:type",String)],XO.prototype,"chipStyle",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],XO.prototype,"selected",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],XO.prototype,"useChipShape",void 0);_.U([_.O({reflectToAttribute:!0}),_.K("data.isSelected"),_.W("design:type",Object),_.W("design:paramtypes",[])],XO.prototype,"chipShapeData",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],XO.prototype,"dataChanged",null);
_.U([_.N("selected"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],XO.prototype,"selectionChanged",null);_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],XO.prototype,"onTap",null);_.U([_.M("focus"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],XO.prototype,"onFocus",null);XO=_.U([_.ur({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],XO);
_.S(XO,"yt-chip-cloud-chip-renderer",function(){if(L6b===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-chip-cloud-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_chip_cloud_chip_renderer.yt.chip.cloud.chip.renderer.css.js--\x3e<div id="chip-shape-container" class="style-scope yt-chip-cloud-chip-renderer">\n    <chip-shape data="[[chipShapeData]]" class="style-scope yt-chip-cloud-chip-renderer"></chip-shape>\n</div>\n<div id="chip-container" class="style-scope yt-chip-cloud-chip-renderer">\n    <yt-icon class="leading-icon style-scope yt-chip-cloud-chip-renderer" hidden="[[!hasIcon]]" icon="[[data.icon.iconType]]">\n    </yt-icon>\n    <yt-formatted-string id="text" ellipsis-truncate="" text="[[data.text]]" class="style-scope yt-chip-cloud-chip-renderer">\n    </yt-formatted-string>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;K6b===void 0&&(K6b=document.createElement("template"));var d=K6b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);L6b=a}a=L6b;return a},{mode:2});var Q6b=function(){var a=_.P.apply(this,arguments)||this;a.isDarkTheme=!1;a.notSticky=!1;a.transparentBackground=!1;a.shouldHide=!1;a.disableSticky=!1;a.fluidWidth=!1;a.isClipList=!1;a.defaultChipIndex=0;a.isPlaylist=!1;a.playlistVotingAnimationEnabled=_.x("web_enable_voting_animation");a.toolbarHeight=0;a.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return a};
_.z(Q6b,_.P);_.f=Q6b.prototype;
_.f.configureRendererStamper=function(){return{"data.contents":{id:"chips",mapping:{chipCloudChipRenderer:{component:"yt-chip-cloud-chip-renderer",properties:{disableDeselectEvent:"[[isDisableDeselectEvent]]"}}}},sortFilterHeaderRendererData:{id:"filter",mapping:{sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isClipList:"[[isClipList]]",isPlaylistPageWithFilters:"[[isPlaylistPage]]"}}}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",
properties:{"on-tap":"[[boundPrevClick]]"},params:{iconSize:16}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.f.attached=function(){var a=this;document.addEventListener("scroll",_.er(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var b;this.toolbarHeight=((b=document.querySelector("ytd-masthead"))==null?void 0:b.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(c){a.handleIntersect(c)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){a.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.f.detached=function(){var a;(a=this.intersectionObserver)==null||a.disconnect();var b;(b=this.resizeObserver)==null||b.disconnect();document.removeEventListener("scroll",_.er(this,this.updateChipBarWidthAndTop))};
_.f.dataChanged=function(){var a=this,b,c,d;((d=_.y((b=this.data)==null?void 0:(c=b.contents)==null?void 0:c[0],pEb))==null?void 0:d.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var e=this.findSelectedChipIndex();this.selectedIndex!==e&&(this.selectedIndex=-1);_.Tm(this,function(){a.selectedIndex=e;a.updating=!1;a.ytScrollableChipCloudBehavior.reset()})};
_.f.findSelectedChipIndex=function(){var a;if((a=this.data)==null||!a.contents)return 0;a=this.data.contents;for(var b=0;b<a.length;b++){var c=void 0;if((c=_.y(a[b],pEb))==null?0:c.isSelected)return b}return 0};
_.f.computeStyle=function(a){return a};
_.f.handleChipCloudChipSelectAction=function(a){a=this.JSC$13776_chipsSelector.indexOf(a);a>-1&&this.JSC$13776_chipsSelector.selectIndex(a)};
_.f.handleChipCloudChipDeselectAction=function(){if(_.x("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var a,b,c,d=(c=_.y((a=this.data)==null?void 0:(b=a.contents)==null?void 0:b[0],pEb))==null?void 0:c.navigationEndpoint;d&&_.ho(this.hostElement,"yt-browse-section-list-reload-endpoint",[d]);this.JSC$13776_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.f.onGuideIsExpandedChanged=function(){var a=this.ytScrollableChipCloudBehavior;_.Tm(a,a.setContainerWidthDiff);VO(this.ytScrollableChipCloudBehavior)};
_.f.onResize=function(){var a=this.ytScrollableChipCloudBehavior;_.Tm(a,a.setContainerWidthDiff);VO(this.ytScrollableChipCloudBehavior)};
_.f.onDarkModeToggledAction=function(a){this.isDarkTheme=a};
_.f.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.f.handleIntersect=function(a){_.x("disable_chips_intersection_observer")||(this.notSticky=this.isChannelPageGrid||this.disableSticky||a[0].intersectionRatio===1)};
_.f.updateDimensions=function(){var a=this.ytRendererBehavior.parentComponent;if(a){var b,c=(b=a.headerElement)!=null?b:a;_.dr(this.hostElement,{"--ytd-rich-grid-chips-bar-width":c.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.f.updateSelectedIndexFromBinding=function(a){this.selectedIndex=a.detail.value};
_.f.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var a;(a=this.sortFilterHeaderRendererElement)==null||a.setAttribute("is-playlist-page-with-filters","")}};
_.f.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(_.gp({type:"SET_CHIP_BAR_IS_STICKY",payload:!this.notSticky}))};
_.Vm.Object.defineProperties(Q6b.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 a,b,c=(a=this.data)==null?void 0:(b=a.contents)==null?void 0:b.find(function(d){return _.y(d,tEb)});
return{sortFilterHeaderRenderer:_.y(c,tEb)}}}});
var YO=Q6b;YO.prototype.dispatchChipBarIsSticky=YO.prototype.dispatchChipBarIsSticky;YO.prototype.isPlaylistPageChanged=YO.prototype.isPlaylistPageChanged;YO.prototype.updateChipBarWidthAndTop=YO.prototype.updateChipBarWidthAndTop;YO.prototype.onResize=YO.prototype.onResize;YO.prototype.onGuideIsExpandedChanged=YO.prototype.onGuideIsExpandedChanged;YO.prototype.dataChanged=YO.prototype.dataChanged;
_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],YO.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],YO.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],YO.prototype,"actionHandlerBehavior",void 0);_.U([_.H(_.KD),_.W("design:type",Object)],YO.prototype,"ironResizableBehavior",void 0);_.U([_.H(),_.W("design:type",WO)],YO.prototype,"ytScrollableChipCloudBehavior",void 0);
_.U([_.H(_.LI),_.W("design:type",Object)],YO.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],YO.prototype,"data",void 0);_.U([_.O({value:0}),_.W("design:type",Number)],YO.prototype,"selectedIndex",void 0);_.U([_.O({value:320}),_.W("design:type",Number)],YO.prototype,"scrollDistance",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],YO.prototype,"isDarkTheme",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],YO.prototype,"notSticky",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],YO.prototype,"transparentBackground",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.W("design:type",String)],YO.prototype,"componentStyle",void 0);_.U([_.O({selector:_.kFa}),_.W("design:type",Boolean)],YO.prototype,"guideIsExpanded",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],YO.prototype,"shouldHide",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],YO.prototype,"disableSticky",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],YO.prototype,"fluidWidth",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],YO.prototype,"isClipList",void 0);_.U([_.O(),_.W("design:type",Object)],YO.prototype,"defaultChipIndex",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],YO.prototype,"isPlaylist",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],YO.prototype,"playlistVotingAnimationEnabled",void 0);_.U([_.gr("#chips"),_.W("design:type",Object)],YO.prototype,"JSC$13776_chipsSelector",void 0);_.U([_.gr("ytd-sort-filter-header-renderer"),_.W("design:type",HTMLElement)],YO.prototype,"sortFilterHeaderRendererElement",void 0);
_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],YO.prototype,"updating",void 0);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],YO.prototype,"dataChanged",null);_.U([_.N("guideIsExpanded"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],YO.prototype,"onGuideIsExpandedChanged",null);
_.U([_.M("iron-resize"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],YO.prototype,"onResize",null);_.U([_.kr("isChannelPageGrid","disableSticky","data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],YO.prototype,"updateChipBarWidthAndTop",null);_.U([_.K("componentStyle"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],YO.prototype,"isChannelPageGrid",null);
_.U([_.K("componentStyle"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],YO.prototype,"isHashtagLandingPage",null);_.U([_.N("isPlaylistPage"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],YO.prototype,"isPlaylistPageChanged",null);_.U([_.K("componentStyle"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],YO.prototype,"isPlaylistPage",null);
_.U([_.K("componentStyle"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],YO.prototype,"isDisableDeselectEvent",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],YO.prototype,"sortFilterHeaderRendererData",null);_.U([_.O({reflectToAttribute:!0,selector:_.qFa}),_.W("design:type",String)],YO.prototype,"frostedGlassMode",void 0);
_.U([_.N("notSticky"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],YO.prototype,"dispatchChipBarIsSticky",null);YO=_.U([_.Q({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],YO);
_.S(YO,"ytd-feed-filter-chip-bar-renderer",function(){if(J6b!==void 0)return J6b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-filter-chip-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="chips-wrapper" class="style-scope ytd-feed-filter-chip-bar-renderer">\n  <div id="chips-content" class="style-scope ytd-feed-filter-chip-bar-renderer">\n    <div id="left-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="left-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n    <div id="filter" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    <div id="scroll-container" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <iron-selector id="chips" activate-event="" role="tablist" selected="[[selectedIndex]]" selected-attribute="selected" on-selected-changed="updateSelectedIndexFromBinding" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      </iron-selector>\n    </div>\n    <div id="right-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="right-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return J6b=a},{mode:1});var R6b;var S6b=_.Rr(function(a){var b=a.data;var c=a.buttonIndex;var d=a.selectedIndex;var e=a.onSelect;var g=function(){return c()===d()},k=function(){var n,r;
return(r=(n=b().text)==null?void 0:n.content)!=null?r:""};
_.ot(function(){});
a=_.Nu();var m=_.ot(function(){e(b().onSubmitCommand);return!1});
return _.q("yt-toggleable-image-button-view-model",{class:function(){var n={};n=(n["toggleable-image-button-view-model-wiz"]=!0,n[""]=!0,n["toggleable-image-button-view-model-wiz__semi-transparent"]=d()!==-1&&!g(),n);return _.lt(n)},
tabindex:0,"aria-label":k,"aria-pressed":g,role:"button","on:keydown":a,"on:click":m},_.q(_.oi,{cond:function(){return b().logo},
then:function(n){return _.q(_.Ss,{data:n,className:function(){var r={};r=(r["toggleable-image-button-view-model-wiz__image"]=!0,r["toggleable-image-button-view-model-wiz__circular-radius"]=!(!b().backgroundColor||!b().backgroundColorDarkMode),r["toggleable-image-button-view-model-wiz__gradient-ring"]=!!(g()&&b().backgroundColor&&b().backgroundColorDarkMode),r);return _.lt(r)},
alt:k,useWidth:!1,style:function(){if(g()&&b().backgroundColor&&b().backgroundColorDarkMode){var r=Dq(Number(b().backgroundColorDarkMode),"1");var t=Dq(Number(b().backgroundColor),"1");r="background: linear-gradient(180deg,"+r+","+t+") border-box;"}else r="";return r}})}}),_.q(_.xt,{model:{borderRadius:"16px"}}),_.q("p",{class:function(){var n={};
n=(n["toggleable-image-button-view-model-wiz__label"]=!0,n["toggleable-image-button-view-model-wiz__bold-text"]=g(),n);return _.lt(n)}},_.q(_.wt,{text:function(){return b().text}})))});
S6b.idomCompat=!0;var U6b=_.Rr(function(a){var b=a.data;a=_.h(_.fh({index:-1,command:{}},"Zcqtsb"));var c=a.next().value,d=a.next().value;return _.q("yt-nudge-form-view-model",{class:"nudge-form-view-model-wiz"},_.q("div",{class:"nudge-form-view-model-wiz__form-options"},_.q(_.Eu,{data:function(){return b().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(e,g){return _.q(S6b,{data:e.data,buttonIndex:g,selectedIndex:function(){return c().index},
onSelect:function(k){d({index:g(),command:k})}})}})),_.q(_.wt,{text:function(){return b().subtitle},
className:"nudge-form-view-model-wiz__subtitle"}),_.q("div",{class:"nudge-form-view-model-wiz__submit"},_.q(_.Eu,{data:function(){return b().submitButton}},{buttonViewModel:function(e){return _.q(T6b,{data:e.data,
isDisabled:function(){return c().index===-1},
onClick:function(){_.Js(c().command)}})}})))});
U6b.idomCompat=!0;var T6b=_.Rr(function(a){var b=_.kh(function(){return Object.assign({},a.data(),{state:a.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"rgD0re");
return _.q(_.Ju,{data:b,onClick:a.onClick})});_.Ws(U6b,"yt-nudge-form-view-model",{props:{data:_.SG}});var V6b=function(){var a=_.P.apply(this,arguments)||this;a.roundedContainer=!0;a.buttonUpdate=_.x("web_modern_buttons");a.isDarkMode=!1;a.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return a};
_.z(V6b,_.P);_.f=V6b.prototype;_.f.computeNudgeStyle=function(a){return a?"modernized-nudge":""};
_.f.handleDarkModeToggledAction=function(a){this.isDarkMode=a};
_.f.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.f.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"}}}};
_.f.computeIsHorizontalButtons=function(a){return a?!!a.applyModernizedStyle&&!!a.enableHorizontalButtons&&!!a.secondaryButton:!1};
_.Vm.Object.defineProperties(V6b.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var a,b;return(b=(a=this.data)==null?void 0:a.backgroundStyle)!=null?b:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var a,b;return(b=(a=this.data)==null?void 0:a.contentsLocation)!=null?b:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null?0:a.lightIconImage)}}});
var ZO=V6b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],ZO.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],ZO.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.NI),_.W("design:type",Object)],ZO.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],ZO.prototype,"actionHandlerBehavior",void 0);
_.U([_.O({reflectToAttribute:!0}),_.K("isHideEnclosingAction"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],ZO.prototype,"isHidden",null);_.U([_.O(),_.W("design:type",Object)],ZO.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],ZO.prototype,"roundedContainer",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],ZO.prototype,"buttonUpdate",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.W("design:type",String)],ZO.prototype,"nudgeStyle",void 0);_.U([_.O({reflectToAttribute:!0}),_.K("data.trimStyle"),_.W("design:type",String),_.W("design:paramtypes",[])],ZO.prototype,"trimStyle",null);_.U([_.O({reflectToAttribute:!0}),_.K("data.backgroundStyle"),_.W("design:type",String),_.W("design:paramtypes",[])],ZO.prototype,"backgroundStyle",null);
_.U([_.O({reflectToAttribute:!0}),_.K("data.contentsLocation"),_.W("design:type",String),_.W("design:paramtypes",[])],ZO.prototype,"contentsLocation",null);_.U([_.O({reflectToAttribute:!0}),_.K("data.disableDropShadow"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],ZO.prototype,"noShadow",null);_.U([_.O({reflectToAttribute:!0}),_.K("data.lightIconImage"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],ZO.prototype,"noIcon",null);
_.U([_.O({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.W("design:type",Boolean)],ZO.prototype,"isHorizontalButtons",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Object)],ZO.prototype,"isDarkMode",void 0);ZO=_.U([_.Q({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],ZO);
_.S(ZO,"ytd-feed-nudge-renderer",function(){if(R6b!==void 0)return R6b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return R6b=a},{mode:_.as("kevlar_poly_si_batch_j028")?1:2});var W6b;var X6b;var $O=function(){var a=_.P.apply(this,arguments)||this;a.collapsed=!1;a.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return a};
_.z($O,_.P);$O.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"}}}};
$O.prototype.handleRatingSelect=function(){var a;((a=this.data)==null?0:a.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
$O.prototype.handleShowSurvey=function(){this.collapsed=!1};
var aP=$O;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],aP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],aP.prototype,"actionHandlerBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],aP.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],aP.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.NI),_.W("design:type",Object)],aP.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],aP.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],aP.prototype,"collapsed",void 0);aP=_.U([_.Q({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],aP);
_.S(aP,"ytd-slimline-survey-renderer",function(){if(X6b!==void 0)return X6b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return X6b=a},{mode:1});var Y6b;var Z6b=function(){return _.P.apply(this,arguments)||this};
_.z(Z6b,_.P);Z6b.prototype.maybeGetBackgroundColor=function(a){return this.isDarkMode?a.section2Color:a.section3Color};
Z6b.prototype.colorPaletteChanged=function(){var a=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;a&&(a==null?0:a.secondaryTitleColor)&&this.maybeGetBackgroundColor(a)?(this.hostElement.style.backgroundColor=_.Bq(this.maybeGetBackgroundColor(a)),this.hostElement.style.color=_.Bq(a.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
var bP=Z6b;bP.prototype.colorPaletteChanged=bP.prototype.colorPaletteChanged;_.U([_.H(_.LI),_.W("design:type",Object)],bP.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],bP.prototype,"data",void 0);_.U([_.O({selector:function(a){return a.ui.darkModeIsEnabled}}),
_.W("design:type",Boolean)],bP.prototype,"isDarkMode",void 0);_.U([_.O(),_.W("design:type",Object)],bP.prototype,"lightColorPalette",void 0);_.U([_.O(),_.W("design:type",Object)],bP.prototype,"darkColorPalette",void 0);_.U([_.N("darkColorPalette","lightColorPalette","data","isDarkMode"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],bP.prototype,"colorPaletteChanged",null);bP=_.U([_.Q({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],bP);
_.S(bP,"ytd-endorsement-header-renderer",function(){if(Y6b!==void 0)return Y6b;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Y6b=a},{mode:1});_.Ws(_.MK,"yt-decorated-avatar-view-model",{props:{data:_.SG,className:_.SG}});var $6b=function(){var a=_.P.apply(this,arguments)||this;a.fullHeight=_.x("web_rich_grid_media_full_height");a.showChannelAvatar=!0;a.hasPlaylistThumbnail=!1;a.prepareThumbnailForPageTransition=function(){_.x("web_thumbnail_to_watch_transition")&&(a.thumbnail.style.viewTransitionName="thumbnail-to-watch",a.cleanupThumbnailAfterPageTransition(a.thumbnail))};
return a};
_.z($6b,_.P);_.f=$6b.prototype;
_.f.configureRendererStamper=function(){return{lazyLoadMenu:xK,immediateLoadMenu:{id:"immediate-load-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},"data.thumbnailUnderlay":{id:"thumbnail-underlay",mapping:{endorsementHeaderRenderer:{component:"ytd-endorsement-header-renderer",properties:{lightColorPalette:"[[data.thumbnail.lightColorPalette]]",darkColorPalette:"[[data.thumbnail.darkColorPalette]]"}}}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyRenderer:"ytd-slimline-survey-renderer"}},"data.buttons":{id:"buttons",
mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonTooltipPosition:"top"}},upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}},"data.avatar":{id:"decorated-avatar",mapping:{decoratedAvatarViewModel:"yt-decorated-avatar-view-model"}}}};
_.f.attached=function(){this.updateInlinePreviewHoverListeners()};
_.f.detached=function(){this.clearInlinePreviewHoverListeners()};
_.f.shouldLazyLoadMenu=function(){var a=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.x("kevlar_modern_downloads_page")||!a};
_.f.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13801_inlinePreviewHoverListener=$u({mediaRenderer:this,lockupElement:this.JSC$13801_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.f.getVideoPreviewOpts=function(){var a={},b;if((b=this.data)==null?0:b.multipleInlinePlaybackEndpoint)a=r_b;this.isRadio&&(a=q_b);return _.x("web_thumbnail_to_watch_transition")?Object.assign({},a,{onNavigateToWatchCallback:this.prepareThumbnailForPageTransition}):a};
_.f.clearInlinePreviewHoverListeners=function(){var a;(a=this.JSC$13801_inlinePreviewHoverListener)==null||qv(a)};
_.f.getOwner=function(){var a,b,c;return((a=this.data)==null?void 0:(b=a.channelThumbnailSupportedRenderers)==null?void 0:b.channelThumbnailWithLinkRenderer)||_.y((c=this.data)==null?void 0:c.showProviderChannelThumbnail,lzb)};
_.f.updateLockupSize=function(){var a;((a=this.getOwner())==null?0:a.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.f.getFeedbackEndpoint=function(a){if(_.y(a,_.Pw))return a;var b,c;a=(c=(b=_.y(a,_.po))==null?void 0:b.commands)!=null?c:[];b=_.h(a);for(c=b.next();!c.done;c=b.next())if(c=this.getFeedbackEndpoint(c.value))return c;return null};
_.f.computeNavigationEndpoint=function(a){return qDa(a==null?void 0:a.navigationEndpoint)};
_.f.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var a=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(a)!==JSON.stringify(this.data)&&this.set("data",a)}};
_.f.onDataChanged=function(){var a=this,b=this.getOwner();if(b){this.set("data.owner",b);var c,d,e,g,k,m=((c=this.data)==null?void 0:(d=c.shortBylineText)==null?void 0:(e=d.runs)==null?void 0:(g=e[0])==null?void 0:g.text)||((k=b.name)==null?void 0:k.simpleText);this.set("data.owner.title",m)}var n,r,t,u,w,A;b=((n=this.data)==null?void 0:(r=n.thumbnailRenderer)==null?void 0:r.playlistVideoThumbnailRenderer)||((t=this.data)==null?void 0:(u=t.thumbnailRenderer)==null?void 0:u.playlistCustomThumbnailRenderer)||
((w=this.data)==null?void 0:(A=w.thumbnailRenderer)==null?void 0:A.showCustomThumbnailRenderer);var C;((C=this.data)==null?0:C.thumbnail)||!b||this.set("data.thumbnail",b.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){a.updateLockupSize()});
var G;if(n=((G=this.data)==null?void 0:G.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(n);var J;((J=this.dismissActionToReplayEntity)==null?0:J.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.f.onHiddenChanged=function(){this.updateLockupSize()};
_.f.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.ho(this.hostElement,"yt-terminate-video-preview-action");else{var a;(a=this.videoTitleLink)==null||a.focus()}};
_.f.metadataColorChanged=function(){var a;if(this.metadataColor&&((a=this.videoTitle)==null?0:a.style))this.videoTitle.style.color=_.Bq(this.metadataColor);else{var b,c;!this.metadataColor&&((b=this.videoTitle)==null?0:(c=b.style)==null?0:c.color)&&(this.videoTitle.style.color="")}};
_.f.onDetailsClick=function(a){var b=this.computedNavigationEndpoint;b&&(_.Xt(_.Pq(a),this.hostElement,["A","BUTTON"])||_.go(this.hostElement,"yt-navigate",{endpoint:b}))};
_.f.cleanupThumbnailAfterPageTransition=function(a){_.ssa(document,"yt-page-type-changed",function(){a.style.viewTransitionName=""})};
_.f.onRendererTap=function(){this.prepareThumbnailForPageTransition();var a,b,c=((a=this.data)==null?void 0:a.serviceEndpoint)||this.getFeedbackEndpoint((b=this.data)==null?void 0:b.navigationEndpoint);c&&_.y(c,_.Pw)&&this.ytComponentBehavior.resolveCommand(c)};
_.f.onMouseDown=function(a){var b=a.target,c=this.computedNavigationEndpoint,d;a=b.href||((d=_.y(c==null?void 0:c.commandMetadata,_.ao))==null?void 0:d.url);d=b.data||c;a&&d&&BTa(a,d)};
_.f.computeVideoTitleText=function(){var a;if((a=this.data)==null?0:a.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.f.computeHasPlaylistThumbnail=function(a){var b,c,d,e,g;if((((b=a.thumbnailRenderer)==null?0:b.playlistVideoThumbnailRenderer)||((c=a.thumbnailRenderer)==null?0:c.playlistCustomThumbnailRenderer)||((d=a.thumbnailRenderer)==null?0:d.showCustomThumbnailRenderer)||((e=a.thumbnailRenderer)==null?0:e.playlistVideoThumbnailRenderer)||((g=a.thumbnailRenderer)==null?0:g.playlistCustomThumbnailRenderer))&&a.thumbnailOverlays)for(b=0;b<a.thumbnailOverlays.length;b++)if(c=void 0,(c=a.thumbnailOverlays[b])==
null?0:c.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.Vm.Object.defineProperties($6b.prototype,{lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var a;return(a=this.data)==null?void 0:a.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var a;return(a=this.data)==null?void 0:a.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.JSC$13801_inlinePreviewHoverListener)==null?0:PK(a))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.WHa(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.data)==null?void 0:a.videoId)||((b=this.data)==null?void 0:b.playlistId)||""}}});
var cP=$6b;cP.prototype.onMouseDown=cP.prototype.onMouseDown;cP.prototype.metadataColorChanged=cP.prototype.metadataColorChanged;cP.prototype.onIsDismissedChanged=cP.prototype.onIsDismissedChanged;cP.prototype.onHiddenChanged=cP.prototype.onHiddenChanged;cP.prototype.onDataChanged=cP.prototype.onDataChanged;cP.prototype.handleReloadDownloadsInfo=cP.prototype.handleReloadDownloadsInfo;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],cP.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],cP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],cP.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.NI),_.W("design:type",Object)],cP.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.H(_.VI),_.W("design:type",Object)],cP.prototype,"ytdLockupBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],cP.prototype,"ytdReduxBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],cP.prototype,"data",void 0);_.U([_.O(),_.W("design:type",String)],cP.prototype,"entitySelectorType",void 0);_.U([_.O(),_.W("design:type",Boolean)],cP.prototype,"noEndpoints",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],cP.prototype,"isRadio",void 0);_.U([_.O({reflectToAttribute:!0,selector:_.Ep}),_.W("design:type",Boolean)],cP.prototype,"miniMode",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],cP.prototype,"fullHeight",void 0);
_.U([_.O(),_.W("design:type",Boolean)],cP.prototype,"showDarkVideoMetadata",void 0);_.U([_.O(),_.W("design:type",Boolean)],cP.prototype,"showLightVideoMetadata",void 0);_.U([_.O(),_.W("design:type",Number)],cP.prototype,"metadataColor",void 0);_.U([_.O(),_.W("design:type",Object)],cP.prototype,"showChannelAvatar",void 0);_.U([_.O(),_.W("design:type",Boolean)],cP.prototype,"hidden",void 0);_.U([_.O({value:!0}),_.W("design:type",Boolean)],cP.prototype,"showYtInteraction",void 0);
_.U([_.O(),_.W("design:type",String)],cP.prototype,"dismissedContentId",void 0);_.U([_.O({selectorArgs:["dismissedContentId"],selector:kVa}),_.W("design:type",Object)],cP.prototype,"dismissActionToReplayEntity",void 0);
_.U([_.O({selectorArgs:["entitySelectorType","mediaId"],selector:function(a,b,c){if(_.x("kevlar_modern_downloads_page")&&c&&b&&b!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(b){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var d=uFa(a,c);if(d){b=_.Jp(a,c);var e=Lp(a,c),g=EFa(a,c);a=Mp(a,c);var k=hGa(d,b,e,g);e=k.shortViewCountText;var m=k.publishedTimeText;k=k.badges;var n=a>0;g=fGa(d,b,g,a);d=_.wp(b)||b==="TRANSFER_STATE_FAILED"||b==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!vp(d.policyEntity)?
void 0:oDa(c,a,d.videoEntity.lengthSeconds);b==="TRANSFER_STATE_PAUSED_BY_USER"&&c&&!_.x("dl_resume_click_killswitch")&&(d={offlineVideoEndpoint:{videoId:c,action:"ACTION_RESUME"}});c={shortViewCountText:e,publishedTimeText:m,badges:k,isWatched:n,navigationEndpoint:d,thumbnailOverlays:g}}else c=void 0;return c;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(b=vFa(a,c))if(d=_.Kp(a,c),g=_.wFa(a,c),d!=="TRANSFER_STATE_UNKNOWN"){c=gGa(b,d,g,c,Ip(a));break a}c=void 0}return c;default:_.Dl(new _.qj("Error: entitySelectorType defined but not matched in selector.",
a,b))}}}),
_.W("design:type",Object)],cP.prototype,"entityDrivenState",void 0);_.U([_.O({computed:"computeVideoTitleText(data)"}),_.W("design:type",Object)],cP.prototype,"videoTitleText",void 0);_.U([_.O({computed:"computeHasPlaylistThumbnail(data)"}),_.W("design:type",Object)],cP.prototype,"hasPlaylistThumbnail",void 0);_.U([_.O({computed:"computeNavigationEndpoint(data)"}),_.W("design:type",Object)],cP.prototype,"computedNavigationEndpoint",void 0);
_.U([_.gr("#video-title"),_.W("design:type",HTMLElement)],cP.prototype,"videoTitle",void 0);_.U([_.gr("#video-title-link"),_.W("design:type",HTMLElement)],cP.prototype,"videoTitleLink",void 0);_.U([_.gr("#thumbnail"),_.W("design:type",HTMLElement)],cP.prototype,"thumbnail",void 0);_.U([_.gr("#dismissible"),_.W("design:type",HTMLElement)],cP.prototype,"JSC$13801_dismissibleMedia",void 0);_.U([_.K("data.menu"),_.W("design:type",Object),_.W("design:paramtypes",[])],cP.prototype,"lazyLoadMenu",null);
_.U([_.K("data.menu"),_.W("design:type",Object),_.W("design:paramtypes",[])],cP.prototype,"immediateLoadMenu",null);_.U([_.kr("entityDrivenState"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],cP.prototype,"handleReloadDownloadsInfo",null);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],cP.prototype,"onDataChanged",null);
_.U([_.kr("hidden"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],cP.prototype,"onHiddenChanged",null);_.U([_.N("isDismissed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],cP.prototype,"onIsDismissedChanged",null);_.U([_.N("metadataColor"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],cP.prototype,"metadataColorChanged",null);
_.U([_.M("mousedown"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],cP.prototype,"onMouseDown",null);_.U([_.K("lockupIsHovered"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],cP.prototype,"isHovered",null);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],cP.prototype,"useAvatar",null);_.U([_.K("data","entitySelectorType"),_.W("design:type",String),_.W("design:paramtypes",[])],cP.prototype,"mediaId",null);
cP=_.U([_.Q({is:"ytd-rich-grid-media",disableElementRegistration:!0})],cP);
var a7b=_.$r()(cP,"ytd-rich-grid-media",function(){if(W6b!==void 0)return W6b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-media--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" dark$="[[showDarkVideoMetadata]]" hidden="[[hidden]]" light$="[[showLightVideoMetadata]]" on-click="onRendererTap" class="style-scope ytd-rich-grid-media"><div id="thumbnail" class="style-scope ytd-rich-grid-media"><ytd-thumbnail data="[[data]]" hidden$="[[hasPlaylistThumbnail]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-media"></ytd-thumbnail><ytd-playlist-thumbnail data="[[data]]" hidden="[[!hasPlaylistThumbnail]]" hovered="[[isHovered]]" is-double-stack="" thumbnail-size="[[stackThumbnailSize]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-media"></ytd-playlist-thumbnail></div><div id="thumbnail-underlay" on-click="onDetailsClick" hidden="[[!data.thumbnailUnderlay]]" class="style-scope ytd-rich-grid-media"></div><div id="details" on-click="onDetailsClick" class="style-scope ytd-rich-grid-media"><div id="avatar-container" class="yt-simple-endpoint style-scope ytd-rich-grid-media" hidden="[[!showChannelAvatar]]"><a id="avatar-link" class="yt-simple-endpoint style-scope ytd-rich-grid-media" href$="[[computeHref_(data.owner.navigationEndpoint)]]" data="[[data.owner.navigationEndpoint]]" title="[[data.owner.title]]" tabindex="-1" hidden="[[useAvatar]]"><yt-img-shadow id="avatar" thumbnail="[[data.owner.thumbnail]]" width="48" class="style-scope ytd-rich-grid-media"></yt-img-shadow></a><div id="decorated-avatar" hidden="[[!useAvatar]]" class="style-scope ytd-rich-grid-media"></div></div><div id="meta" class="style-scope ytd-rich-grid-media"><h3 class="style-scope ytd-rich-grid-media"><ytd-badge-supported-renderer class="top-badge style-scope ytd-rich-grid-media" collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]"></ytd-badge-supported-renderer><a id="video-title-link" class="yt-simple-endpoint focus-on-expand style-scope ytd-rich-grid-media" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[computedNavigationEndpoint]]"><yt-formatted-string id="video-title" text="[[videoTitleText]]" class="style-scope ytd-rich-grid-media"></yt-formatted-string></a></h3><ytd-video-meta-block class="grid style-scope ytd-rich-grid-media" data="[[data]]" metadata-color="[[metadataColor]]" mini-mode="[[miniMode]]" radio-meta="[[isRadio]]" rich-meta=""></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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return W6b=a},{mode:_.as("kevlar_poly_si_batch_j072")?1:2});var b7b;var c7b=function(){var a=_.P.apply(this,arguments)||this;a.removeMaxWidth=!0;a.insetMetadata=!1;return a};
_.z(c7b,_.P);_.f=c7b.prototype;_.f.configureRendererStamper=function(){return{innerMenu:xK,outerMenu:Object.assign({},xK,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.f.onDataChanged=function(){var a,b=((a=this.data)==null?void 0:a.trackingParams)||"";b&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(b));var c;((c=this.dismissActionToReplayEntity)==null?0:c.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.f.attached=function(){this.updateInlinePreviewHoverListeners()};
_.f.detached=function(){this.clearInlinePreviewHoverListeners()};
_.f.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$13807_inlinePreviewHoverListener=$u({mediaRenderer:this,lockupElement:this.JSC$13807_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:M_a})};
_.f.clearInlinePreviewHoverListeners=function(){var a;(a=this.JSC$13807_inlinePreviewHoverListener)==null||qv(a)};
_.f.onRendererTap=function(){var a,b,c=(a=this.data)==null?void 0:(b=a.serviceEndpoints)==null?void 0:b[0];_.y(c,_.Pw)&&this.componentBehavior.resolveCommand(c)};
_.f.onDetailsClick=function(a){var b,c=(b=this.data)==null?void 0:b.navigationEndpoint;c&&(_.Xt(_.Pq(a),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(c))};
_.f.onShow=function(){var a=this.data;a.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(a.onFirstVisibleCommand),delete a.onFirstVisibleCommand)};
_.Vm.Object.defineProperties(c7b.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var a;return this.insetMetadata?void 0:(a=this.data)==null?void 0:a.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var a;return this.insetMetadata?(a=this.data)==null?void 0:a.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var a=this.data;if(a!=null&&a.badge&&(a=_.y(a.badge,iEb))){var b,c,d;return[{metadataBadgeRenderer:{label:((b=a.label)==null?void 0:(c=b.runs)==null?void 0:c[0].text)||((d=a.label)==null?void 0:d.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var a=this.data;return Object.assign({},a.headline,{accessibility:a.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return this.isSlimShort?(a=this.computedTitle)==null?void 0:(b=a.accessibility)==null?void 0:(c=b.accessibilityData)==null?void 0:c.label:void 0}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.JSC$13807_inlinePreviewHoverListener)==null?0:PK(a))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
var dP=c7b;dP.prototype.onDataChanged=dP.prototype.onDataChanged;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],dP.prototype,"componentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],dP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.VI),_.W("design:type",Object)],dP.prototype,"ytdLockupBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],dP.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.H(_.NI),_.W("design:type",Object)],dP.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],dP.prototype,"ytdReduxBehavior",void 0);_.U([_.gr("ytd-thumbnail"),_.W("design:type",HTMLElement)],dP.prototype,"thumbnail",void 0);_.U([_.gr("#dismissible"),_.W("design:type",HTMLElement)],dP.prototype,"JSC$13807_dismissibleMedia",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],dP.prototype,"removeMaxWidth",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],dP.prototype,"insetMetadata",void 0);_.U([_.O(),_.W("design:type",String)],dP.prototype,"dismissedContentId",void 0);_.U([_.O({selectorArgs:["dismissedContentId"],selector:kVa}),_.W("design:type",Object)],dP.prototype,"dismissActionToReplayEntity",void 0);_.U([_.K("insetMetadata"),_.W("design:type",Object),_.W("design:paramtypes",[])],dP.prototype,"thumbnailObjectFit",null);
_.U([_.K("data","insetMetadata"),_.W("design:type",Object),_.W("design:paramtypes",[])],dP.prototype,"innerMenu",null);_.U([_.K("data","insetMetadata"),_.W("design:type",Object),_.W("design:paramtypes",[])],dP.prototype,"outerMenu",null);_.U([_.O(),_.W("design:type",Object)],dP.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,selector:_.Ep}),_.W("design:type",Boolean)],dP.prototype,"miniMode",void 0);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],dP.prototype,"onDataChanged",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],dP.prototype,"shortsBadges",null);_.U([_.K("data"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],dP.prototype,"isShort",null);_.U([_.K("data"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],dP.prototype,"isSlimShort",null);
_.U([_.K("data","isShort"),_.W("design:type",Object),_.W("design:paramtypes",[])],dP.prototype,"computedTitle",null);_.U([_.K("isSlimShort","computedTitle"),_.W("design:type",Object),_.W("design:paramtypes",[])],dP.prototype,"computedAccessibilityLabel",null);_.U([_.K("lockupIsHovered"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],dP.prototype,"isHovered",null);dP=_.U([_.Q({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],dP);
_.S(dP,"ytd-rich-grid-slim-media",function(){if(b7b!==void 0)return b7b;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return b7b=a},{mode:_.as("kevlar_poly_si_batch_j063")?1:2});var d7b;var e7b;var eP=function(){var a=_.P.apply(this,arguments)||this;a.darkerDarkTheme=_.x("web_darker_dark_theme");return a};
_.z(eP,_.P);eP.prototype.computeIcon=function(a){return a&&a.iconType?"yt-sys-icons:"+a.iconType.toLowerCase():""};
eP.prototype.onMouseEnter=function(){this.isHovered=!0};
eP.prototype.onMouseLeave=function(){this.isHovered=!1};
var fP=eP;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],fP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],fP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],fP.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],fP.prototype,"data",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],fP.prototype,"isHovered",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],fP.prototype,"darkerDarkTheme",void 0);fP=_.U([_.Q({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],fP);
_.S(fP,"ytd-expand-on-hover-card-renderer",function(){if(e7b!==void 0)return e7b;var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return e7b=a},{mode:1});var f7b,g7b=function(){if(f7b!==void 0)return f7b;var a=document.createElement("template");_.B(a,'\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>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return f7b=a};_.It("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var h7b=function(){var a=_.P.apply(this,arguments)||this;a.compactStyle=!1;a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a};
_.z(h7b,_.P);_.f=h7b.prototype;_.f.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.f.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"}}}};
_.f.computeHideDot=function(a){return!(a&&a.subscriberCountText&&a.videoCountText)||this.compactStyle};
_.f.hasDualButtons=function(a){return a&&a.purchaseButton&&a.subscribeButton};
_.f.backgroundColorChanged=function(){if(this.data!==void 0){var a=this.data.backgroundColor;this.isDarkTheme&&(a=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=a!=null?_.Bq(a):"transparent"}};
_.f.onDarkModeToggledAction=function(a){this.isDarkTheme=a};
_.f.onTap=function(a){var b,c,d=((b=this.data)==null?void 0:b.navigationEndpoint)||((c=this.data)==null?void 0:c.serviceEndpoint);_.y(d,_.pv)&&(d&&(_.x("web_ytd_channel_renderer_command_resolver_ks")?_.mo(this.hostElement,[d]):_.v().resolve(_.Xi).resolveCommand(d,{form:{element:this.hostElement}})),a.preventDefault())};
_.f.computeChannelEndpoint=function(a){return _.y(a,_.pv)?null:a};
_.f.computeHrefEndpoint=function(a){return _.y(a,_.pv)?null:this.componentBehavior.computeHref_(a)};
_.f.computeChannelRendererStyle=function(a){return a};
_.f.computeIconSize=function(a){return a?108:136};
_.Vm.Object.defineProperties(h7b,{template:{configurable:!0,enumerable:!0,get:function(){return g7b()}}});
var gP=h7b;gP.prototype.backgroundColorChanged=gP.prototype.backgroundColorChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],gP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],gP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.YH),_.W("design:type",Object)],gP.prototype,"ytdOpenPopupBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],gP.prototype,"componentBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],gP.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Boolean)],gP.prototype,"isDarkTheme",void 0);_.U([_.O({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.W("design:type",String)],gP.prototype,"channelRendererStyle",void 0);_.U([_.O({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],gP.prototype,"dualButtons",void 0);_.U([_.O({reflectToAttribute:!0,value:function(){return _.x("enable_desktop_search_bigger_thumbs")}}),
_.W("design:type",Boolean)],gP.prototype,"useBiggerThumbs",void 0);_.U([_.O({reflectToAttribute:!0,value:function(){return _.aj("desktop_search_bigger_thumbs_style")}}),
_.W("design:type",String)],gP.prototype,"biggerThumbStyle",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],gP.prototype,"compactStyle",void 0);_.U([_.N("data","isDarkTheme"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],gP.prototype,"backgroundColorChanged",null);gP=_.U([_.Q({is:"ytd-channel-renderer",disableElementRegistration:!0})],gP);_.S(gP,"ytd-channel-renderer",function(){return g7b()},{mode:1});var i7b;var j7b;_.It("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var k7b=function(){var a=_.P.apply(this,arguments)||this;a.displayItemCount=2;a.collections=_.x("web_modern_collections_v2");a.hasPlaylistThumbnail=!1;a.stackThumbnailSize="large";return a};
_.z(k7b,_.P);_.f=k7b.prototype;_.f.attached=function(){this.updateInlinePreviewHoverListeners()};
_.f.detached=function(){this.clearInlinePreviewHoverListeners()};
_.f.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.f.computeFirstVideos=function(a,b){return a&&b?a.slice(0,b):[]};
_.f.computeThumbnailWidth=function(a,b){return a?b==="BIG"?500:b==="MASSIVE"?600:b==="MEDIUM"?450:420:360};
_.f.computeThumbnailHeight=function(a,b){return a?b==="BIG"?280:b==="MASSIVE"?337:234:202};
_.f.clearInlinePreviewHoverListeners=function(){var a;(a=this.JSC$13820_inlinePreviewHoverListener)==null||qv(a)};
_.f.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13820_inlinePreviewHoverListener=$u({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:r_b,thumbnailElement:this.thumbnail})};
_.f.computeHasPlaylistThumbnail=function(a){var b,c;if((((b=a.thumbnailRenderer)==null?0:b.playlistVideoThumbnailRenderer)||((c=a.thumbnailRenderer)==null?0:c.playlistCustomThumbnailRenderer))&&a.thumbnailOverlays)for(b=0;b<a.thumbnailOverlays.length;b++)if(c=void 0,(c=a.thumbnailOverlays[b])==null?0:c.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.Vm.Object.defineProperties(k7b.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.JSC$13820_inlinePreviewHoverListener)==null?0:PK(a))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
var hP=k7b;hP.prototype.dataChanged=hP.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],hP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.VI),_.W("design:type",Object)],hP.prototype,"ytdLockupBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],hP.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],hP.prototype,"displayItemCount",void 0);_.U([_.O({reflectToAttribute:!0,value:function(){return _.x("enable_desktop_search_bigger_thumbs")}}),
_.W("design:type",Boolean)],hP.prototype,"useBiggerThumbs",void 0);_.U([_.O({reflectToAttribute:!0,value:function(){return _.aj("desktop_search_bigger_thumbs_style")}}),
_.W("design:type",String)],hP.prototype,"biggerThumbsStyle",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],hP.prototype,"collections",void 0);_.U([_.O({computed:"computeHasPlaylistThumbnail(data)"}),_.W("design:type",Object)],hP.prototype,"hasPlaylistThumbnail",void 0);_.U([_.O(),_.W("design:type",String)],hP.prototype,"stackThumbnailSize",void 0);_.U([_.gr("ytd-thumbnail"),_.W("design:type",HTMLElement)],hP.prototype,"thumbnail",void 0);
_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],hP.prototype,"dataChanged",null);_.U([_.K("lockupIsHovered"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],hP.prototype,"isHovered",null);hP=_.U([_.Q({is:"ytd-radio-renderer",disableElementRegistration:!0})],hP);
_.S(hP,"ytd-radio-renderer",function(){if(j7b!==void 0)return j7b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return j7b=a},{mode:_.as("kevlar_poly_si_batch_j058")?1:2});var l7b;_.It("itemSectionRenderer","showRenderer","ytd-show-renderer");var iP=function(){return _.P.apply(this,arguments)||this};
_.z(iP,_.P);iP.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
iP.prototype.computeThumbnailWidth=function(a){return a?360:246};
iP.prototype.computeUseProminentThumbs=function(a){return a};
var jP=iP;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],jP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],jP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],jP.prototype,"data",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],jP.prototype,"isSearch",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.W("design:type",Boolean)],jP.prototype,"useProminentThumbs",void 0);jP=_.U([_.Q({is:"ytd-show-renderer",disableElementRegistration:!0})],jP);
_.S(jP,"ytd-show-renderer",function(){if(l7b!==void 0)return l7b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return l7b=a},{mode:1});_.It("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var m7b=function(){var a=_.P.apply(this,arguments)||this;a.isRichGrid=!1;return a};
_.z(m7b,_.P);m7b.prototype.configureRendererStamper=function(){return{"data.item":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:{matcher:function(){return this.isRichGrid?"ytd-rich-grid-media":"ytd-video-renderer"}}}}}};
var kP=m7b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],kP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],kP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],kP.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],kP.prototype,"isRichGrid",void 0);kP=_.U([_.Q({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],kP);
_.S(kP,"ytd-feed-entry-renderer",function(){if(i7b!==void 0)return i7b;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return i7b=a},{mode:1});var n7b;var o7b=function(){return _.P.apply(this,arguments)||this};
_.z(o7b,_.P);o7b.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
var lP=o7b;_.U([_.H(_.LI),_.W("design:type",Object)],lP.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],lP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],lP.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],lP.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,selector:_.Fp,value:3}),_.W("design:type",Number)],lP.prototype,"itemsPerRow",void 0);
lP=_.U([_.Q({is:"ytd-link-card-renderer",disableElementRegistration:!0})],lP);
_.S(lP,"ytd-link-card-renderer",function(){if(n7b!==void 0)return n7b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return n7b=a},{mode:1});var p7b;var q7b=function(){return _.P.apply(this,arguments)||this};
_.z(q7b,_.P);_.f=q7b.prototype;_.f.configureRendererStamper=function(){return{"data.menu":xK,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.f.onRendererTap=function(a){if(!this.ytdDismissibleItemBehavior.isDismissed){var b,c=(b=this.data)==null?void 0:b.navigationEndpoint;c&&!_.Xt(_.Pq(a),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(c)?_.Xt(_.Pq(a),this.hostElement,["A"])||_.go(this.hostElement,"yt-navigate",{endpoint:c}):this.ytComponentBehavior.resolveCommand(c,{}))}};
_.f.maybeComputeHref=function(a){return this.ytComponentBehavior.computeHref_(a,!0)};
_.f.getNavigationCommand=function(a){return this.isNavigationCommand(a)?a:null};
_.f.isNavigationCommand=function(a){return a?_.y(a,_.pq)||_.y(a,_.Vn)||_.y(a,_.Ml)?!0:!1:!1};
var mP=q7b;mP.prototype.onRendererTap=mP.prototype.onRendererTap;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],mP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],mP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.NI),_.W("design:type",Object)],mP.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],mP.prototype,"ytComponentBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],mP.prototype,"data",void 0);_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],mP.prototype,"onRendererTap",null);mP=_.U([_.Q({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],mP);
_.S(mP,"ytd-lumiere-promo-item-image-renderer",function(){if(p7b!==void 0)return p7b;var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return p7b=a},{mode:1});var r7b;var s7b=function(){return _.P.apply(this,arguments)||this};
_.z(s7b,_.P);s7b.prototype.computeLandscapeThumbnail=function(){var a;return((a=this.data)==null?void 0:a.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
var nP=s7b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],nP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],nP.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],nP.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,selector:_.Ep}),_.W("design:type",Boolean)],nP.prototype,"miniMode",void 0);_.U([_.O({reflectToAttribute:!0,selector:_.Fp}),_.W("design:type",Number)],nP.prototype,"itemsPerRow",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.W("design:type",Boolean)],nP.prototype,"landscapeThumbnail",void 0);nP=_.U([_.Q({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],nP);
_.S(nP,"ytd-lumiere-shelf-details-renderer",function(){if(r7b!==void 0)return r7b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return r7b=a},{mode:_.as("kevlar_poly_si_batch_j076")?1:2});var t7b;var u7b=function(){return _.P.apply(this,arguments)||this};
_.z(u7b,_.P);u7b.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
var oP=u7b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],oP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],oP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],oP.prototype,"data",void 0);oP=_.U([_.Q({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],oP);
_.S(oP,"ytd-primetime-promo-details-renderer",function(){if(t7b!==void 0)return t7b;var a=document.createElement("template");_.B(a,'\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>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return t7b=a},{mode:1});var v7b;var w7b=function(){return _.P.apply(this,arguments)||this};
_.z(w7b,_.P);var pP=w7b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],pP.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],pP.prototype,"data",void 0);pP=_.U([_.Q({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],pP);
_.S(pP,"ytd-panel-show-style-metadata-renderer",function(){if(v7b!==void 0)return v7b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return v7b=a},{mode:1});var x7b;var y7b=function(){return _.P.apply(this,arguments)||this};
_.z(y7b,_.P);_.f=y7b.prototype;_.f.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.f.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.f.computeThumbnail=function(a){if(a)return a.smallFormFactorBackgroundThumbnail||a.largeFormFactorBackgroundThumbnail};
_.f.maybeComputeHref=function(a){return this.ytComponentBehavior.computeHref_(a,!0)};
_.f.isNavigationCommand=function(a){return a?_.y(a,_.pq)||_.y(a,_.Vn)||_.y(a,_.Ml)?!0:!1:!1};
_.f.getNavigationCommand=function(a){return this.isNavigationCommand(a)?a:null};
var qP=y7b;qP.prototype.onPanelTap=qP.prototype.onPanelTap;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],qP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],qP.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],qP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],qP.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0,value:!0}),_.W("design:type",Boolean)],qP.prototype,"roundedContainer",void 0);_.U([_.O({reflectToAttribute:!0,value:_.x("web_modern_buttons")}),_.W("design:type",Boolean)],qP.prototype,"modernButtons",void 0);_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],qP.prototype,"onPanelTap",null);qP=_.U([_.Q({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],qP);
_.S(qP,"ytd-primetime-promo-panel-renderer",function(){if(x7b!==void 0)return x7b;var a=document.createElement("template");_.B(a,'\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>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return x7b=a},{mode:1});_.Ws(_.Rr(function(a){a=_.Or(a,{data:{},useFullWidth:!1});var b=a.data,c=a.useFullWidth,d=function(){return b().caption},e=function(){return b().image},g=function(){return _.Es(b().onTap)};
a={};a=_.jt("ytTeaserCardViewModelHost",(a.ytTeaserCardViewModelUseFullWidth=function(){return c()},a));
return _.q("teaser-card-view-model",{class:a},_.q(_.oi,{cond:function(){return g()},
then:function(){return _.q(B_b,{className:"ytTeaserCardViewModelLink",command:g,forceNewState:!0,useATagConfig:!0},_.q("div",{class:"ytTeaserCardViewModelImageContainer"},_.q(_.oi,{cond:e,then:function(k){return _.q(_.Ss,{data:k,className:"ytTeaserCardViewModelImage",alt:""})}})),_.q("p",{class:"ytTeaserCardViewModelCaption"},d))}}))}),"teaser-card-view-model",{props:{data:_.SG,
useFullWidth:_.SG}});var z7b=new _.fB("RICH_GRID_VIDEO_RENDERER_TOKEN");_.Ws(_.Rr(function(a){var b=a.data;var c=a.showYtInteractionInContent;var d=function(){return!!b().selectableFeedback};
a=_.h(_.fh(!1,"nblDw"));var e=a.next().value,g=a.next().value;_.vi(function(){var w=_.y(b().primaryButton,_.Gu);(w==null?0:w.isToggled)&&g(w.isToggled)});
a=_.ot(function(w){if(!d())return!1;if(e()){var A;var C=(A=b().selectableFeedback)==null?void 0:A.onDeselect}else{var G;C=(G=b().selectableFeedback)==null?void 0:G.onSelect}C&&_.Js(C,{form:{element:w.target}});g(!e());if(w=_.y(b().primaryButton,_.Gu))w.isToggled=e();return!1});
var k=function(){if(!d()){var w,A=(w=b().loggingDirectives)==null?void 0:w.trackingParams;A&&_.qF(_.v().resolve(_.xH),A)}},m=_.vXa(),n=function(){var w;
return d()?(w=b().selectableFeedback)==null?void 0:w.a11yLabel:void 0},r=function(){return d()?{toggled:e()}:{}},t=_.v().resolve(_.Wi(z7b)),u={};
return _.q("yt-feedback-item-renderer",{class:_.jt("ytFeedbackItemRendererHost",(u.ytFeedbackItemRendererSelectableFeedback=d,u)),"on:click":a,"on:keydown":m,title:n,"aria-label":n,"aria-pressed":function(){return d()?e():void 0},
tabindex:function(){return d()?0:void 0},
role:function(){return d()?"button":void 0}},_.q("div",{class:"ytFeedbackItemRendererContentContainer"},_.q(_.Eu,{data:function(){return b().content}},{videoRenderer:function(w){return _.q(t,{data:w.data,
showYtInteraction:c})},
lockupViewModel:function(w){return _.q(uL,{data:w.data,containerType:2})}})),_.q("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.q(_.Eu,{data:function(){return b().primaryButton}},{toggleButtonViewModel:function(w){return _.q(_.Hu,{data:w.data,
buttonShapeOverrides:r,disableExplicitClickLogging:!0,onToggle:k})}})))}),"yt-feedback-item-renderer",{props:{data:_.SG,
showYtInteractionInContent:_.SG}});var A7b=function(){var a=_.P.apply(this,arguments)||this;a.isShortsGrid=!1;a.isCompactGrid=!1;a.isShortsPanelGrid=!1;a.enablePlayablesReducedCardCount=_.x("enable_playables_reduced_card_count");a.renderedFromRichGrid=!1;a.isInFirstColumn=!1;a.noGutterMargins=!1;a.isInlineGroupItem=!1;a.insetMetadata=!1;a.noBottomMarginInAds=_.x("web_no_bottom_margin_for_home_ad_buttons");a.force16By9ThumbnailAspectRatio=!1;a.useCompactList=!1;a.containerType=2;a.thumbnailTargetWidth=9999;a.isResponsiveGrid=!1;a.lockupExperiments=
{useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0};a.actionMap={"ytd-rich-item-index-update-action":"onIndexUpdateAction"};a.hoverListener=a.hover.bind(a);a.leaveListener=a.leave.bind(a);a.highlighted=!1;a.JSC$13855_unsubscribeFromInlinePreviewIsActive=function(){};
return a};
_.z(A7b,_.P);_.f=A7b.prototype;_.f.computeContainerType=function(){return this.useCompactList?3:2};
_.f.computeThumbnailTargetWidth=function(){var a;return(a=this.itemWidth)!=null?a:9999};
_.f.updateIsInFirstColumn=function(){var a;this.isInFirstColumn=((a=this.data)==null?void 0:a.colIndex)===0};
_.f.observerContainerType=function(){if(this.lockup){var a=this.lockup;a.containerType=this.containerType;a.sizing=this.sizing;a.typographyBump=this.typographyBump;a.itemWidth=this.itemWidth}};
_.f.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:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]"}},reelItemRenderer:{component:"ytd-rich-grid-slim-media",properties:{insetMetadata:"[[insetMetadata]]"}},
shortsLockupViewModel:{component:_.x("enable_shorts_lockup_view_model_with_dismissible")?"ytm-shorts-lockup-view-model-v2":"ytm-shorts-lockup-view-model",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]]"}},radioRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]"}},playlistRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]"}},gridShowRenderer:{component:"ytd-rich-grid-media",
params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]"}},promotedVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1,isPromotedVideo:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]"}},feedEntryRenderer:{component:"ytd-feed-entry-renderer",params:{isRichGrid:!0}},displayAdRenderer:{component:"ytd-display-ad-renderer"},adSlotRenderer:{component:"ytd-ad-slot-renderer",properties:{noBottomMargin:"[[noBottomMarginInAds]]"}},lumiereShelfDetailsRenderer:"ytd-lumiere-shelf-details-renderer",
lumierePromoItemImageRenderer:"ytd-lumiere-promo-item-image-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gameCardRenderer:{component:"ytd-game-card-renderer",params:{isRichGrid:!0}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",params:{isRichGrid:!0}},expandOnHoverCardRenderer:"ytd-expand-on-hover-card-renderer",linkCardRenderer:"ytd-link-card-renderer",gridMovieRenderer:{component:"ytd-rich-grid-slim-media"},gridChannelRenderer:{component:"ytd-grid-channel-renderer",params:{isRichGrid:!0}},
teaserCardViewModel:{component:"teaser-card-view-model",params:{useFullWidth:!0}},gridVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]"}}}}}};
_.f.leave=function(a){a=a.relatedTarget;var b=document.querySelector("ytd-video-preview");a&&b&&_.Zq(b).contains(a)||this.removeAndCleanupHighlight()};
_.f.hover=function(){var a;if(!this.highlighted&&(!_.x("web_enable_rich_item_on_focus_effect")||(a=this.data)!=null&&a.onFocusEffect)){var b,c;((b=this.data)==null?void 0:(c=b.onFocusEffect)==null?void 0:c.onFocusStyle)==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(a=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:a,boxShadow:"0 0 0 10px "+a}));var d,e;((d=this.data)==null?void 0:(e=d.onFocusEffect)==null?void 0:
e.onFocusStyle)==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border");this.highlighted=!0}};
_.f.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};
_.f.registerHoverHighlightListeners=function(){var a=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$13855_unsubscribeFromInlinePreviewIsActive=_.wF(_.Yp(),_.nFa,function(b){a.highlighted&&!b&&a.removeAndCleanupHighlight()})};
_.f.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$13855_unsubscribeFromInlinePreviewIsActive()};
_.f.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.f.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.f.getBackgroundColor=function(){var a,b,c=(a=this.data)==null?void 0:(b=a.onFocusEffect)==null?void 0:b.onFocusColor;if(c){if(document.documentElement.hasAttribute("dark")&&(c==null?0:c.darkTheme))return _.Bq(c==null?void 0:c.darkTheme);if(c==null?0:c.lightTheme)return _.Bq(c==null?void 0:c.lightTheme)}};
_.f.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var a=_.Fn(),b,c,d;a&&((b=this.data)==null?0:b.trackingParams)&&((c=this.data)==null?void 0:c.colIndex)!=null&&((d=this.data)==null?void 0:d.rowIndex)!=null&&_.Xo(a,_.qs(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.f.isSlimMediaRenderer=function(a){return!!_.y(a==null?void 0:a.content,_.MCb)||!!_.y(a==null?void 0:a.content,LCb)||!!_.y(a==null?void 0:a.content,_.NE)||!!_.y(a==null?void 0:a.content,fEb)};
_.f.isPostRenderer=function(){var a,b;return!!_.y((a=this.data)==null?void 0:a.content,Wyb)||!!_.y((b=this.data)==null?void 0:b.content,Xyb)};
_.f.computeIsGameCardShelf=function(){var a;return!!_.y((a=this.data)==null?void 0:a.content,UAb)};
_.f.computeIsMiniGameCardShelf=function(){var a,b;return!!_.y((a=this.data)==null?void 0:a.content,jBb)||!!_.y((b=this.data)==null?void 0:b.content,kBb)};
_.f.computeIsTeaserCard=function(){var a;return!!_.y((a=this.data)==null?void 0:a.content,kBb)};
_.f.computeIsSelectableFeedbackItem=function(){var a,b;return!((b=_.y((a=this.data)==null?void 0:a.content,_.mBb))==null||!b.selectableFeedback)};
_.f.computeContainsLumierePosters=function(){var a,b;return((b=_.y((a=this.data)==null?void 0:a.content,gzb))==null?void 0:b.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.f.computeIsExpandOnHoverCardShelf=function(){var a;return!!_.y((a=this.data)==null?void 0:a.content,fzb)};
_.f.computeIsLinkCardShelf=function(){var a;return!!_.y((a=this.data)==null?void 0:a.content,WFb)};
_.f.computeIsReelItemStyleAvatarCircle=function(a){var b;return((b=_.y(a==null?void 0:a.content,_.NE))==null?void 0:b.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.f.computeIsLinkCardFullWidth=function(a,b){var c;return((c=_.y(a==null?void 0:a.content,WFb))==null?void 0:c.useFullWidth)||b<=2};
_.Vm.Object.defineProperties(A7b.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){return this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){return _.x("web_enable_rich_item_on_focus_effect")||_.x("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return _.x("web_shorts_2_by_3_lockups_no_home")&&this.isHomeShelf?0:this.isInlineGroupItem?2:this.isShortsPanelGrid||_.x("web_shorts_2_by_3_lockups_study")||_.x("web_shorts_2_by_3_lockups_home")&&this.isHomeShelf?1:0}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}}});
var rP=A7b;rP.prototype.richGridHoverHighlightChanged=rP.prototype.richGridHoverHighlightChanged;rP.prototype.observerContainerType=rP.prototype.observerContainerType;rP.prototype.updateIsInFirstColumn=rP.prototype.updateIsInFirstColumn;_.U([_.H(_.LI),_.W("design:type",Object)],rP.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],rP.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],rP.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],rP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.VI),_.W("design:type",Object)],rP.prototype,"ytdLockupBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],rP.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.W("design:type",Boolean)],rP.prototype,"isPost",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.W("design:type",Boolean)],rP.prototype,"containsLumierePosters",void 0);_.U([_.O({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.W("design:type",Boolean)],rP.prototype,"isSlimMedia",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.W("design:type",Boolean)],rP.prototype,"isGameCardShelf",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.W("design:type",Boolean)],rP.prototype,"isMiniGameCardShelf",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.W("design:type",Boolean)],rP.prototype,"isTeaserCard",void 0);_.U([_.O({computed:"computeIsSelectableFeedbackItem(data)"}),_.W("design:type",Boolean)],rP.prototype,"isSelectableFeedbackItem",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],rP.prototype,"isShortsGrid",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],rP.prototype,"isSlimGrid",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],rP.prototype,"isCompactGrid",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],rP.prototype,"isShortsPanelGrid",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.W("design:type",Boolean)],rP.prototype,"isExpandOnHoverCardShelf",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],rP.prototype,"enablePlayablesReducedCardCount",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.W("design:type",Boolean)],rP.prototype,"isLinkCardShelf",void 0);
_.U([_.O({reflectToAttribute:!0,selector:_.Fp,value:3}),_.W("design:type",Number)],rP.prototype,"itemsPerRow",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],rP.prototype,"renderedFromRichGrid",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],rP.prototype,"isInFirstColumn",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],rP.prototype,"noGutterMargins",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],rP.prototype,"isInlineGroupItem",void 0);_.U([_.O(),_.W("design:type",Object)],rP.prototype,"insetMetadata",void 0);_.U([_.O(),_.W("design:type",Object)],rP.prototype,"noBottomMarginInAds",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],rP.prototype,"isShelfItem",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.W("design:type",Boolean)],rP.prototype,"isReelItemStyleAvatarCircle",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.W("design:type",Boolean)],rP.prototype,"isLinkCardFullWidth",void 0);_.U([_.O(),_.W("design:type",Object)],rP.prototype,"force16By9ThumbnailAspectRatio",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],rP.prototype,"useCompactList",void 0);_.U([_.O(),_.W("design:type",String)],rP.prototype,"sizing",void 0);_.U([_.O(),_.W("design:type",Boolean)],rP.prototype,"typographyBump",void 0);_.U([_.O(),_.W("design:type",Number)],rP.prototype,"itemWidth",void 0);_.U([_.O(),_.W("design:type",Boolean)],rP.prototype,"isHomeShelf",void 0);_.U([_.gr("yt-lockup-view-model"),_.W("design:type",HTMLElement)],rP.prototype,"lockup",void 0);
_.U([_.O({computed:"computeContainerType(useCompactList)"}),_.W("design:type",Object)],rP.prototype,"containerType",void 0);_.U([_.O({computed:"computeThumbnailTargetWidth(itemWidth)"}),_.W("design:type",Object)],rP.prototype,"thumbnailTargetWidth",void 0);_.U([_.K("showYtInteractionOnRichItem"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],rP.prototype,"showYtInteractionOnRichGridMedia",null);
_.U([_.K("isSelectableFeedbackItem","richGridHoverHighlight"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],rP.prototype,"showYtInteractionOnRichItem",null);_.U([_.O({reflectToAttribute:!0}),_.K("isShortsGrid","isCompactGrid"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],rP.prototype,"richGridHoverHighlight",null);
_.U([_.K("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.W("design:type",Number),_.W("design:paramtypes",[])],rP.prototype,"shortsLockupViewModelAspectRatio",null);_.U([_.K("isInlineGroupItem"),_.W("design:type",Number),_.W("design:paramtypes",[])],rP.prototype,"shortsLockupViewModelScrimStyle",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],rP.prototype,"updateIsInFirstColumn",null);
_.U([_.N("containerType","sizing","typographyBump"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],rP.prototype,"observerContainerType",null);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],rP.prototype,"isResponsiveGrid",void 0);_.U([_.O(),_.W("design:type",Object)],rP.prototype,"lockupExperiments",void 0);
_.U([_.N("richGridHoverHighlight"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],rP.prototype,"richGridHoverHighlightChanged",null);rP=_.U([_.Q({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],rP);
_.B7b=_.$r()(rP,"ytd-rich-item-renderer",function(){if(d7b===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);d7b=a}a=d7b;return a},{mode:_.as("kevlar_poly_si_batch_j028")?1:2});var C7b;var D7b=function(){var a=_.P.apply(this,arguments)||this;a.useResponsiveGrid=!1;a.hidden=!1;a.standardShelfMargins=_.x("web_rich_grid_standard_shelf_margins");a.isShowMoreHidden=!1;a.isExpanded=!1;a.isInnerShelf=!1;a.isShowLessHidden=!0;a.restrictContentsOverflow=!1;a.firstShownIndex=0;a.horizontalOffset=0;a.atEnd=!0;a.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved","yt-section-reactive-dismissal":"onSectionReactiveDismissal"};
a.nextClick=function(){var b;(b=a.data)!=null&&b.contents&&(a.firstShownIndex+=a.currentElementsPerRow,a.updateHorizontalOffset(),a.updateHorizontalItemVisibility())};
a.previousClick=function(){var b;(b=a.data)!=null&&b.contents&&(a.firstShownIndex-=a.currentElementsPerRow,a.updateHorizontalOffset(),a.updateHorizontalItemVisibility())};
return a};
_.z(D7b,_.P);_.f=D7b.prototype;
_.f.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isResponsiveGrid:"[[useResponsiveGrid]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",isHomeShelf:"[[isHomePage]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]"},params:{isShelfItem:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:_.Ei("HTML_DIR")===
"rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.f.attached=function(){this.requestElementsPerRow()};
_.f.refreshGridLayoutNew=function(){var a;if((a=this.data)!=null&&a.contents&&this.containerWidth){var b;((b=this.data.responsiveContainerConfiguration)==null?0:b.responsiveSize)?(a=_.I0a(this.data.responsiveContainerConfiguration,this.containerWidth),a=_.dv(Object.assign({},a,{standardUnitMinWidth:this.standardUnitMinWidth}))):a=_.dv({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=a.typographyBump;if(this.elementsPerRow!==
a.numItems||this.gutter!==a.gutter)this.elementsPerRow=a.numItems,this.gutter=a.gutter,this.itemWidth=a.itemWidth,_.dr(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":a.gutter+"px"})}};
_.f.computeSizing=function(){if(!(this.isLumiere||this.isShortsShelf()&&_.x("web_use_layout_library_for_rich_grid_disable_shorts"))){var a=_.iZa(this.data);if(a)return a;if(_.x("web_use_layout_library_for_rich_grid"))return this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.f.computeUseResponsiveGrid=function(){return this.isShortsShelf()&&_.x("web_use_layout_library_for_rich_grid_disable_shorts")?!1:!this.isLumiere&&this.sizing};
_.f.computeButton=function(a){var b=_.y(a,_.OE);a=Object.assign({},_.y(a,_.OE));return b?(a.text||(a.text={simpleText:a.tooltip}),a.style="STYLE_MONO_OUTLINE",a.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",a):b};
_.f.onRowIndexChange=function(){var a=_.Fn(),b,c;((b=this.data)==null?0:b.trackingParams)&&((c=this.data)==null?void 0:c.rowIndex)!=null&&a&&_.Xo(a,_.qs(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.f.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var a,b=((a=this.getRichItemRenderers()[0])==null?void 0:a.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*b;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.f.requestElementsPerRow=function(){_.go(this.hostElement,"yt-request-elements-per-row")};
_.f.onUpdateElementsPerRowAction=function(a,b,c,d,e,g){if(this.containerWidth!==g&&(this.containerWidth=g,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&a&&b&&c&&d&&e&&(this.elementsPerRow!==a||this.postsPerRow!==b||this.slimItemsPerRow!==c||this.gameCardsPerRow!==d||this.miniGameCardsPerRow!==e)&&(this.elementsPerRow=a,this.postsPerRow=b,this.slimItemsPerRow=c,this.gameCardsPerRow=d,this.miniGameCardsPerRow=e,this.updateItemVisibility())};
_.f.getRichItemRenderers=function(){return _.E(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.f.updateItemVisibility=function(){var a=this;if(this.data&&this.data.contents){var b=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(d,e){var g;((g=a.data)==null?0:g.isExpanded)?(d.hidden=e>b-1,d.ytRendererBehavior.markDirty()):d.hidden=e>a.currentElementsPerRow-1||e>b-1});
var c=this.data.contents.length<=this.currentElementsPerRow;this.isExpanded=!!this.data.isExpanded;this.isShowMoreHidden=!this.data.showMoreButton||c||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||c||!this.data.isExpanded||this.isTruncated}this.contents.style.visibility="visible"}};
_.f.setHeightToSingleRow=function(){var a=this.getRichItemRenderers(),b=Number.parseInt(getComputedStyle(a[0]).marginBottom,10)||0;a=a.slice(0,this.currentElementsPerRow).reduce(function(c,d){return Math.max(c,d.getBoundingClientRect().height+b)},0);
this.contents.style.height=a+"px"};
_.f.focusNextExpandedItem=function(){var a;((a=this.data)==null?0:a.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.f.focusItem=function(a,b){var c=this.getRichItemRenderers();if(c[a]&&(a=c[a].querySelector(".focus-on-expand"))){if(b){var d;(d=c[this.currentElementsPerRow])==null||d.scrollIntoView({behavior:"smooth",block:"center"})}a.focus({preventScroll:!0})}};
_.f.onDataChange=function(){var a=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();_.Tm(this,function(){a.updateItemVisibility()});
var b;if((b=this.data)==null?0:b.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.dr(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),b=0;b<this.data.contents.length;b++){var c=_.y(this.data.contents[b],_.IE)||{};c.colIndex=b;c.rowIndex=this.data.rowIndex}};
_.f.blockInlinePreview=function(a){var b=this,c;return _.l(function(d){(c=b.inlinePreviewIsEnabled)&&b.ytdReduxBehavior.dispatch(_.FJb(!1));return d.return(new Promise(function(e){a(function(){c&&b.ytdReduxBehavior.dispatch(_.FJb(!0));e()})}))})};
_.f.expandShelf=function(){var a=this;if(this.data){var b,c=(b=_.y(this.data.showMoreButton,_.OE))==null?void 0:b.trackingParams;c&&_.qF(_.ms(),c);this.data.isExpanded=!0;this.blockInlinePreview(function(d){a.setHeightToSingleRow();a.updateItemVisibility();a.contents.style.height=a.contents.scrollHeight+"px";_.zk.addJob(function(){a.contents.style.height="auto";a.focusNextExpandedItem();d()},2,200)})}};
_.f.collapseShelf=function(){var a=this;return _.l(function(b){if(b.nextAddress==1){if(!a.data)return b.return();a.data.isExpanded=!1;return _.p(b,a.blockInlinePreview(function(c){a.contents.style.height=a.contents.scrollHeight+"px";a.setHeightToSingleRow();_.zk.addJob(function(){a.updateItemVisibility();a.contents.style.height="auto";c()},2,200)}),2)}_.go(a.hostElement,"yt-rich-shelf-renderer-collapse",a.data.trackingParams);
a.focusItem(0,!1);_.se(b)})};
_.f.updateArrowButtonStatus=function(){var a=this.getRichItemRenderers().length;if(!_.x("web_rich_shelf_renderer_use_data_contents_killswitch")){var b,c;a=((b=this.data)==null?void 0:(c=b.contents)==null?void 0:c.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=a};
_.f.onChildElementFocus=function(a){this.hasChevronButtons&&(a=a.target.closest("#contents > *"),this.contents.contains(a)&&(a.offsetLeft<this.horizontalOffset?this.previousClick():a.offsetLeft+a.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.f.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.Ei("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.f.updateHorizontalOffset=function(){var a=this.getRichItemRenderers(),b=a.length;if(!_.x("web_rich_shelf_renderer_use_data_contents_killswitch")){var c,d;b=((c=this.data)==null?void 0:(d=c.contents)==null?void 0:d.length)||0}var e;a=((e=a[0])==null?void 0:e.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>b?this.firstShownIndex=b-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*a};
_.f.isSlimMediaShelfRenderer=function(){var a,b,c,d=(c=_.y((a=this.data)==null?void 0:(b=a.contents)==null?void 0:b[0],_.IE))==null?void 0:c.content;return!!(_.y(d,_.MCb)||_.y(d,LCb)||_.y(d,_.NE)||_.y(d,fEb))};
_.f.isGameCardShelf=function(){var a,b,c,d=(c=_.y((a=this.data)==null?void 0:(b=a.contents)==null?void 0:b[0],_.IE))==null?void 0:c.content;return!!_.y(d,UAb)};
_.f.isGnomeShelf=function(){var a,b,c,d=(c=_.y((a=this.data)==null?void 0:(b=a.contents)==null?void 0:b[0],_.IE))==null?void 0:c.content;return!!_.y(d,_.mBb)};
_.f.isMiniGameCardShelf=function(){var a,b,c,d=(c=_.y((a=this.data)==null?void 0:(b=a.contents)==null?void 0:b[0],_.IE))==null?void 0:c.content;return!!_.y(d,jBb)||!!_.y(d,kBb)};
_.f.hasGameBoxArtAvatarStyle=function(){var a;return((a=this.data)==null?void 0:a.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.f.hasRoundedGameBoxArtAvatarStyle=function(){var a;return((a=this.data)==null?void 0:a.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.f.isShortsShelf=function(){var a,b,c,d=(c=_.y((a=this.data)==null?void 0:(b=a.contents)==null?void 0:b[0],_.IE))==null?void 0:c.content;return!!_.y(d,_.NE)||!!_.y(d,fEb)};
_.f.isPostShelfRenderer=function(){var a,b,c,d=(c=_.y((a=this.data)==null?void 0:(b=a.contents)==null?void 0:b[0],_.IE))==null?void 0:c.content;return!(!_.y(d,Wyb)&&!_.y(d,Xyb))};
_.f.isLumiereShelf=function(){var a,b,c=_.y((a=this.data)==null?void 0:(b=a.contents)==null?void 0:b[0],_.IE);return!!_.y(c==null?void 0:c.content,gzb)};
_.f.isLumiereShelfWithPosters=function(){var a,b,c=_.y((a=this.data)==null?void 0:(b=a.contents)==null?void 0:b[0],_.IE),d;return((d=_.y(c==null?void 0:c.content,gzb))==null?void 0:d.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.f.isExpandOnHoverCardShelf=function(){var a,b,c,d=(c=_.y((a=this.data)==null?void 0:(b=a.contents)==null?void 0:b[0],_.IE))==null?void 0:c.content;return!!_.y(d,fzb)};
_.f.computeHasFeaturedBadge=function(){var a,b,c=_.y((a=this.data)==null?void 0:(b=a.badges)==null?void 0:b[0],_.lAb);return c?c.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.f.computeHasPaygatedFeaturedBadge=function(){var a,b,c=_.y((a=this.data)==null?void 0:(b=a.badges)==null?void 0:b[0],_.lAb);return c?(c==null?void 0:c.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.f.computeHeaderHidden=function(){var a,b,c,d,e,g;return!((a=this.data)==null?0:a.icon)&&!((b=this.data)==null?0:b.title)&&!((c=this.data)==null?0:c.subtitle)&&!((d=this.data)==null?0:d.thumbnail)&&!((e=this.data)==null?0:e.badges)&&!((g=this.data)==null?0:g.menu)};
_.f.showCtaButton=function(){var a;return!((a=this.data)==null||!a.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.f.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.f.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.f.computeForce16By9ThumbnailAspectRatio=function(){var a,b;return((a=this.data)==null?void 0:(b=a.responsiveContainerConfiguration)==null?void 0:b.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.f.onSectionReactiveDismissal=function(a,b,c){var d,e;var g=(d=this.data)==null?void 0:(e=d.targetingContext)==null?void 0:e.targetGroupId;this&&g&&b.targetGroupId&&g.includes(b.targetGroupId)?(d=this.rowIndex,a=d===void 0?!1:!(b.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&d<=a)):a=!1;a&&(this.hidden=c)};
_.Vm.Object.defineProperties(D7b.prototype,{currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var a=this.elementsPerRow;this.isPostShelfRenderer()?a=this.postsPerRow:this.isSlimMediaShelfRenderer()?a=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?a=this.slimItemsPerRow-1:this.isGameCardShelf()?a=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(a=this.miniGameCardsPerRow);return a}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.x("kevlar_clean_feeds_show_more")&&this.isHomePage}},
hideBottomDivider:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var a,b;return!((a=this.data)==null||!a.previousButton)&&!((b=this.data)==null||!b.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 a;return((a=_.v().resolve(_.$t).getCurrentPage())==null?void 0:a.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d;return!((a=this.data)==null?0:(b=a.thumbnail)==null?0:(c=b.accessibility)==null?0:(d=c.accessibilityData)==null?0:d.label)}},
initiallyIsExpanded:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.isExpanded)}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
var sP=D7b;sP.prototype.onChildElementFocus=sP.prototype.onChildElementFocus;sP.prototype.onDataChange=sP.prototype.onDataChange;sP.prototype.onRowIndexChange=sP.prototype.onRowIndexChange;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],sP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],sP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.NI),_.W("design:type",Object)],sP.prototype,"ytdDismissibleItemBehavior",void 0);
_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],sP.prototype,"actionHandlerBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],sP.prototype,"ytdReduxBehavior",void 0);_.U([_.O({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.W("design:type",Object)],sP.prototype,"useResponsiveGrid",void 0);_.U([_.O(),_.W("design:type",Object)],sP.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Number)],sP.prototype,"standardUnitMinWidth",void 0);
_.U([_.O({reflectToAttribute:!0,value:3}),_.W("design:type",Number)],sP.prototype,"elementsPerRow",void 0);_.U([_.O({value:3}),_.W("design:type",Number)],sP.prototype,"postsPerRow",void 0);_.U([_.O({value:6}),_.W("design:type",Number)],sP.prototype,"slimItemsPerRow",void 0);_.U([_.O({value:6}),_.W("design:type",Number)],sP.prototype,"gameCardsPerRow",void 0);_.U([_.O({value:6}),_.W("design:type",Number)],sP.prototype,"miniGameCardsPerRow",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],sP.prototype,"hidden",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],sP.prototype,"standardShelfMargins",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],sP.prototype,"isShowMoreHidden",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],sP.prototype,"isExpanded",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],sP.prototype,"isInnerShelf",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.W("design:type",Boolean)],sP.prototype,"isShorts",void 0);_.U([_.O({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.W("design:type",Boolean)],sP.prototype,"isLumiere",void 0);_.U([_.O({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.W("design:type",Boolean)],sP.prototype,"hasBoxArtThumbnailStyle",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.W("design:type",Boolean)],sP.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.W("design:type",Boolean)],sP.prototype,"hasFeaturedBadge",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.W("design:type",Boolean)],sP.prototype,"hasPaygatedFeaturedBadge",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.W("design:type",Boolean)],sP.prototype,"isHeaderHidden",void 0);_.U([_.O({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.W("design:type",Boolean)],sP.prototype,"hasTopCtaButton",void 0);_.U([_.O({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.W("design:type",Boolean)],sP.prototype,"hasBottomCtaButton",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.W("design:type",Boolean)],sP.prototype,"force16By9ThumbnailAspectRatio",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],sP.prototype,"isShowLessHidden",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],sP.prototype,"restrictContentsOverflow",void 0);_.U([_.O({selector:_.oFa}),_.W("design:type",Boolean)],sP.prototype,"inlinePreviewIsEnabled",void 0);
_.U([_.O({computed:"computeSizing(data)"}),_.W("design:type",String)],sP.prototype,"sizing",void 0);_.U([_.O(),_.W("design:type",Boolean)],sP.prototype,"typographyBump",void 0);_.U([_.O(),_.W("design:type",Number)],sP.prototype,"itemWidth",void 0);_.U([_.O(),_.W("design:type",Object)],sP.prototype,"firstShownIndex",void 0);_.U([_.O(),_.W("design:type",Object)],sP.prototype,"horizontalOffset",void 0);_.U([_.O(),_.W("design:type",Object)],sP.prototype,"atEnd",void 0);
_.U([_.gr("#contents"),_.W("design:type",HTMLElement)],sP.prototype,"contents",void 0);_.U([_.N("data.rowIndex"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],sP.prototype,"onRowIndexChange",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],sP.prototype,"onDataChange",null);
_.U([_.M("focusin"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],sP.prototype,"onChildElementFocus",null);_.U([_.O({reflectToAttribute:!0}),_.K("data","isHomePage"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],sP.prototype,"isTruncated",null);_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],sP.prototype,"hideBottomDivider",null);
_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],sP.prototype,"hasChevronButtons",null);_.U([_.K("firstShownIndex"),_.W("design:type",Object),_.W("design:paramtypes",[])],sP.prototype,"previousButtonOverride",null);_.U([_.K("atEnd"),_.W("design:type",Object),_.W("design:paramtypes",[])],sP.prototype,"nextButtonOverride",null);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],sP.prototype,"isHomePage",null);
_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],sP.prototype,"thumbnailAriaHidden",null);_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],sP.prototype,"initiallyIsExpanded",null);sP=_.U([_.Q({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],sP);
_.E7b=_.$r()(sP,"ytd-rich-shelf-renderer",function(){if(C7b===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);C7b=a}a=C7b;return a},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.as("kevlar_poly_si_batch_j028")?1:2});var F7b;var G7b=function(){var a=_.P.apply(this,arguments)||this;a.tileLottieAnimationRef={};a.backgroundLottieAnimationRef={};a.isOnHoverBehaviorForLottieEnabled=!0;a.useBiggerShowcaseImage=_.x("enable_desktop_search_bigger_thumbs");a.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return a};
_.z(G7b,_.P);_.f=G7b.prototype;_.f.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.f.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},
dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.f.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var a=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);a!==this.hasTile&&this.set("hasTile",a);a=this.hasLogo(this.data)||!!this.data.badgeText;a!==this.hasMetadata&&this.set("hasMetadata",a);a=this.data.overflowButton?!1:a;a!==this.showLogoImage&&this.set("showLogoImage",a);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.f.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.f.currentColorChanged=function(){this.updateButtonPalette()};
_.f.computeBackgroundStyle=function(a){if(a&&this.data){var b=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var c=_.Ys((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);c&&b.push('background-image: url("'+c+'");')}var d;((d=a.basicColorData)==null?void 0:d.backgroundColor)!==void 0&&b.push("background-color: "+_.Cq(a.basicColorData.backgroundColor)+";");return b.join("")}};
_.f.onDarkModeToggledAction=function(a){a!==this.isDarkTheme&&this.set("isDarkTheme",a)};
_.f.getCurrentLogo=function(a,b){if(a)return b?a.darkLogoImage:a.lightLogoImage};
_.f.getCurrentStaticTileImage=function(a,b){if(this.hasStaticTile(a))return a.darkTileImage?b?a.darkTileImage:a.tileImage:a.tileImage};
_.f.computeTitleStyle=function(a){if(this.data&&this.data.title&&a&&a.basicColorData&&a.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.Bq(a.basicColorData.foregroundTitleColor)+";"};
_.f.computeSubtitleStyle=function(a){if(this.data&&this.data.subtitle&&a&&a.basicColorData&&a.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.Bq(a.basicColorData.foregroundBodyColor)+";"};
_.f.computeSupplementalStyle=function(a){if(this.data&&this.data.supplementalText&&a&&a.supplementalTextColor!==void 0)return a=_.Bq(a.supplementalTextColor),"color:"+a+";--yt-endpoint-color:"+a+";--yt-endpoint-hover-color:"+a+";--yt-endpoint-visited-color:"+a+";--yt-formatted-string-bold-font-weight:700;"};
_.f.computeBadgeStyle=function(a){if(this.data&&this.data.badgeText&&a&&a.basicColorData&&a.basicColorData.foregroundActivatedColor!==void 0)return"color:"+_.Bq(a.basicColorData.foregroundActivatedColor)+";"};
_.f.computeDismissIconStyle=function(a){var b,c;if((a==null?0:(b=a.dismissButtonColorData)==null?0:b.foregroundTitleColor)&&(a==null?0:(c=a.dismissButtonColorData)==null?0:c.backgroundColor))return"--yt-button-color:"+_.Cq(a.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.Cq(a.dismissButtonColorData.backgroundColor)+";"};
_.f.computeOverflowIconStyle=function(a){var b,c;if((a==null?0:(b=a.dismissButtonColorData)==null?0:b.foregroundTitleColor)&&(a==null?0:(c=a.dismissButtonColorData)==null?0:c.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.Cq(a.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.Cq(a.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.Cq(a.dismissButtonColorData.foregroundTitleColor)+";"};
_.f.computeBannerStyle=function(a){return a?a.toLowerCase().replace(/_/g,"-"):""};
_.f.computeLocation=function(a){switch(a==null?void 0:a.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.f.shouldShowTileSection=function(a,b,c){return!this.shouldExpandLogo(a,b,c)&&b};
_.f.shouldShowExpandedLogoSection=function(a,b,c){return this.shouldExpandLogo(a,b,c)&&a!==void 0&&this.hasLogo(a)};
_.f.shouldExpandLogo=function(a,b,c){return a&&b?!1:c>=2};
_.f.hasStaticTile=function(a){return!(a==null||!a.tileImage)};
_.f.hasTileLottie=function(a){var b;return!!(a==null?0:(b=a.tileLottie)==null?0:b.url)};
_.f.hasLogo=function(a){return this.getCurrentLogo(a,this.isDarkTheme)!==void 0};
_.f.getLogoHeight=function(a){return this.logoWithPadding(a)?"26":"20"};
_.f.getExpandedLogoHeight=function(a){return this.logoWithPadding(a)?"31":"24"};
_.f.getLogoImageId=function(a){return this.logoWithPadding(a)?"logo-image-with-padding":"logo-image"};
_.f.hasBackgroundLottie=function(a){var b;return!!(a==null?0:(b=a.backgroundLottie)==null?0:b.url)};
_.f.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var a,b;(a=this.tileLottieAnimationRef)==null||(b=a.lottieEl)==null||b.play();var c,d;(c=this.backgroundLottieAnimationRef)==null||(d=c.lottieEl)==null||d.play()}};
_.f.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var a,b;(a=this.tileLottieAnimationRef)==null||(b=a.lottieEl)==null||b.pause();var c,d;(c=this.backgroundLottieAnimationRef)==null||(d=c.lottieEl)==null||d.pause()}};
_.f.pauseLottie=function(){var a,b;(a=this.tileLottieAnimationRef)==null||(b=a.lottieEl)==null||b.pause();var c,d;(c=this.backgroundLottieAnimationRef)==null||(d=c.lottieEl)==null||d.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.f.performPrimaryButtonAction=function(){var a,b,c;((a=this.data)==null?0:(b=a.primaryButton)==null?0:(c=b.buttonRenderer)==null?0:c.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.f.requestElementsPerRow=function(){_.go(this.hostElement,"yt-request-elements-per-row")};
_.f.updateButtonPalette=function(){if(this.data&&this.currentColorData){var a;((a=this.data.dismissButton)==null?0:a.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 b;if((b=this.data.primaryButton)==null?0:b.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 c;if((c=this.data.secondaryButton)==
null?0:c.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 d;((d=this.data.primaryButton)==null?0:d.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var e;((e=this.data.secondaryButton)==null?0:e.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)})}};
_.f.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var a=this.getTileLottieDataBasedOnTheme(),b,c;if(a.url!==((b=this.tileLottiePlayerProps)==null?void 0:(c=b.animationConfig)==null?void 0:c.path)){var d,e;(d=this.tileLottieAnimationRef)==null||(e=d.lottieEl)==null||e.destroy();var g;this.isOnHoverBehaviorForLottieEnabled=!((g=a.settings)==null?0:g.autoplay);var k,m;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(m=(k=a.settings)==null?void 0:k.autoplay)!=null?m:!1,loop:this.getLottieLoopValue(a.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof a.url==="string"?this.tileLottiePlayerProps.animationConfig.path=a.url:this.tileLottiePlayerProps.animationConfig.animationData=a.url}}};
_.f.getOverflowButton=function(a){return _.y(a.overflowButton,kEb)};
_.f.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var a=this.getBackgroundLottieDataBasedOnTheme(),b,c;if(a.url!==((b=this.backgroundLottiePlayerProps)==null?void 0:(c=b.animationConfig)==null?void 0:c.path)){var d,e;(d=this.backgroundLottieAnimationRef)==null||(e=d.lottieEl)==null||e.destroy();var g;this.isOnHoverBehaviorForLottieEnabled=!((g=a.settings)==null?0:g.autoplay);var k,m;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(m=(k=a.settings)==null?void 0:k.autoplay)!=null?m:!1,loop:this.getLottieLoopValue(a.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof a.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=a.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
a.url}}};
_.f.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var a;((a=this.tileLottieAnimationRef)==null?void 0:a.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var b;((b=this.backgroundLottieAnimationRef)==null?void 0:b.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.f.getTileLottieDataBasedOnTheme=function(){var a;if(this.isDarkTheme&&((a=this.data)==null?0:a.darkThemeTileLottie))return this.data.darkThemeTileLottie;var b;return((b=this.data)==null?0:b.tileLottie)?this.data.tileLottie:{}};
_.f.getBackgroundLottieDataBasedOnTheme=function(){var a;if(this.isDarkTheme&&((a=this.data)==null?0:a.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var b;return((b=this.data)==null?0:b.backgroundLottie)?this.data.backgroundLottie:{}};
_.f.onUpdateElementsPerRowAction=function(a){a&&this.elementsPerRow!==a&&(this.elementsPerRow=a)};
_.f.getLottieLoopValue=function(a){return a?a.loop!==void 0?a.loop:a.loopCount?a.loopCount-1:!0:!0};
_.f.logoWithPadding=function(a){var b,c,d;return(a=(b=this.getCurrentLogo(a,this.isDarkTheme))==null?void 0:(c=b.thumbnails)==null?void 0:(d=c[0])==null?void 0:d.height)&&a%31===0?!0:!1};
var tP=G7b;tP.prototype.currentColorChanged=tP.prototype.currentColorChanged;tP.prototype.themeChanged=tP.prototype.themeChanged;tP.prototype.dataChanged=tP.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],tP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],tP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.NI),_.W("design:type",Object)],tP.prototype,"ytdDismissibleItemBehavior",void 0);
_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],tP.prototype,"actionHandlerBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],tP.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],tP.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],tP.prototype,"primaryButton",void 0);_.U([_.O(),_.W("design:type",Object)],tP.prototype,"secondaryButton",void 0);
_.U([_.O({reflectToAttribute:!0,value:3}),_.W("design:type",Number)],tP.prototype,"elementsPerRow",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],tP.prototype,"isDarkTheme",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],tP.prototype,"hasTile",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],tP.prototype,"hasMetadata",void 0);
_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],tP.prototype,"showLogoImage",void 0);_.U([_.O(),_.W("design:type",Object)],tP.prototype,"currentColorData",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.W("design:type",String)],tP.prototype,"bannerStyle",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.W("design:type",String)],tP.prototype,"location",void 0);
_.U([_.O(),_.W("design:type",Object)],tP.prototype,"tileLottiePlayerProps",void 0);_.U([_.O(),_.W("design:type",Object)],tP.prototype,"tileLottieAnimationRef",void 0);_.U([_.O(),_.W("design:type",Object)],tP.prototype,"backgroundLottiePlayerProps",void 0);_.U([_.O(),_.W("design:type",Object)],tP.prototype,"backgroundLottieAnimationRef",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],tP.prototype,"useBiggerShowcaseImage",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],tP.prototype,"isHideEnclosingAction",void 0);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],tP.prototype,"dataChanged",null);_.U([_.kr("isDarkTheme"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],tP.prototype,"themeChanged",null);
_.U([_.kr("currentColorData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],tP.prototype,"currentColorChanged",null);tP=_.U([_.Q({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],tP);
_.S(tP,"ytd-statement-banner-renderer",function(){if(F7b!==void 0)return F7b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-statement-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-mouseleave="maybePauseLottie" on-mouseover="maybePlayLottie" class="style-scope ytd-statement-banner-renderer">\n  <div id="background-content" style$="[[computeBackgroundStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n    <ytd-lottie-player id="background-lottie" data="[[backgroundLottiePlayerProps]]" hidden="[[!hasBackgroundLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n  </ytd-lottie-player></div>\n  <div id="foreground-content" class="style-scope ytd-statement-banner-renderer">\n    <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowTileSection(data, hasTile, elementsPerRow)]]">\n      <div hidden="[[!hasTile]]" id="tile-container" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n        <yt-img-shadow id="tile-image" hidden="[[!hasStaticTile(data)]]" object-fit="CONTAIN" thumbnail="[[getCurrentStaticTileImage(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n        </yt-img-shadow>\n        <ytd-lottie-player id="tile-lottie" data="[[tileLottiePlayerProps]]" hidden="[[!hasTileLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n      </ytd-lottie-player></div>\n    </div>\n    <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowExpandedLogoSection(data, hasTile, elementsPerRow)]]" id="logo-container">\n      <div id="logo-wrapper" class="style-scope ytd-statement-banner-renderer">\n        <yt-img-shadow id="logo-image" height="[[getExpandedLogoHeight(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n        </yt-img-shadow>\n      </div>\n    </div>\n    <div id="details-container" class="style-scope ytd-statement-banner-renderer">\n      <div id="text-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="metadata-container" hidden="[[!showLogoImage]]" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow dimension="height" height$="[[getLogoHeight(data)]]" hidden="[[shouldExpandLogo(data, hasTile, elementsPerRow)]]" id$="[[getLogoImageId(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n          <div id="badge-container" style$="[[computeBadgeStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n        </div>\n        <div id="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n          <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="36" max-height="110" max-lines="2" min-font-size="20" text="[[data.title]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-dynamic-sizing-formatted-string>\n          <div id="new-badge-container" hidden="[[!data.overflowButton]]" style$="[[computeTitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n        </div>\n        <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n          <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n        </div>\n        <div id="supplemental-text-container" hidden="[[!data.supplementalText]]" style$="[[computeSupplementalStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n          <yt-formatted-string id="supplemental-text" text="[[data.supplementalText]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-formatted-string>\n        </div>\n      </div>\n      <div id="button-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="button-wrapper" class="style-scope ytd-statement-banner-renderer">\n          <div id="primary-button" class="style-scope ytd-statement-banner-renderer"></div>\n          <div id="secondary-button" class="style-scope ytd-statement-banner-renderer"></div>\n        </div>\n      </div>\n    </div>\n    <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorData, elementsPerRow)]]" class="style-scope ytd-statement-banner-renderer"></div>\n    <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowIconStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-statement-banner-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return F7b=a},{mode:1});var H7b;var I7b=function(){var a=_.P.apply(this,arguments)||this;a.isSearch=!1;a.hideShelfHeader=!1;a.engagementPanel=!1;a.disableMouseScroll=!0;a.useFloorScrolling=!0;a.modernTypography=_.x("web_modern_typography");return a};
_.z(I7b,_.P);I7b.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.to("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.to("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
I7b.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
var uP=I7b;uP.prototype.onDataChanged=uP.prototype.onDataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],uP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],uP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],uP.prototype,"isSearch",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],uP.prototype,"hideShelfHeader",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],uP.prototype,"engagementPanel",void 0);_.U([_.O(),_.W("design:type",Object)],uP.prototype,"disableMouseScroll",void 0);_.U([_.O(),_.W("design:type",Object)],uP.prototype,"useFloorScrolling",void 0);_.U([_.O(),_.W("design:type",Object)],uP.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],uP.prototype,"modernTypography",void 0);
_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],uP.prototype,"onDataChanged",null);uP=_.U([_.Q({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],uP);
_.S(uP,"ytd-reel-shelf-renderer",function(){if(H7b!==void 0)return H7b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-reel-shelf-renderer">\n  <h2 class="style-scope ytd-reel-shelf-renderer">\n    <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-reel-shelf-renderer">\n    </yt-icon>\n    <span id="title" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.title)]]</span>\n    <span id="title-superscript" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.titleSuperscript)]]</span>\n  </h2>\n  <div id="menu" class="style-scope ytd-reel-shelf-renderer"></div>\n</div>\n<div id="contents" class="style-scope ytd-reel-shelf-renderer">\n  <yt-horizontal-list-renderer data="[[data]]" disable-scroll-event-listener="[[disableMouseScroll]]" engagement-panel="[[engagementPanel]]" hide-shelf-header="[[hideShelfHeader]]" is-search="[[isSearch]]" thumbnail-height="[[thumbnailHeight]]" use-floor-scrolling="[[useFloorScrolling]]" class="style-scope ytd-reel-shelf-renderer">\n  </yt-horizontal-list-renderer>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return H7b=a},{mode:_.as("kevlar_poly_si_batch_j028")?1:2});var J7b;var K7b=_.Rr(function(a){var b=a.data;a=a.useSmallFont;var c={},d={};return _.q("yt-channel-external-link-view-model",{class:"yt-channel-external-link-view-model-wiz"},_.q(_.oi,{cond:function(){return b().favicon},
then:function(e){return _.q(_.Ss,{data:e,className:"yt-channel-external-link-view-model-wiz__favicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.q("div",{class:"yt-channel-external-link-view-model-wiz__container"},_.q(_.wt,{text:function(){return b().title},
className:_.jt("yt-channel-external-link-view-model-wiz__title",(c["yt-channel-external-link-view-model-wiz__title--title-small-font"]=a,c)),ellipsisTruncate:!0,userInput:!0}),_.q(_.wt,{text:function(){return b().link},
className:_.jt("yt-channel-external-link-view-model-wiz__link",(d["yt-channel-external-link-view-model-wiz__link--link-small-font"]=a,d)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))});
K7b.idomCompat=!0;_.Ws(K7b,"yt-channel-external-link-view-model",{props:{data:_.SG,useSmallFont:_.SG}});_.It("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var L7b=function(){var a=_.P.apply(this,arguments)||this;a.revealButtonClass="button";a.businessEmailDisplayState="HIDE_SECTION";return a};
_.z(L7b,_.P);_.f=L7b.prototype;_.f.refit=function(){var a=this;_.Cr(function(){_.ko(a.hostElement,"yt-refit-popups-action")});
_.Tm(this,function(){_.ko(a.hostElement,"yt-refit-popups-action")})};
_.f.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.Ln("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA")};
_.f.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"};
_.f.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.f.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"}}}};
_.f.computeEmailHref=function(a){return"mailto:"+a};
_.f.computeSafeUrl=function(a){if(a)return _.Gd(a)};
_.f.linkEndpoint=function(a){return _.y(a.onTap,_.Ds)};
_.f.linkEndpointToHref=function(a){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(a))};
_.f.onYtServiceRequestCompleted=function(a){var b;if((b=a.detail.data)==null?0:b.businessEmail)this.businessEmail=a.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var c;if((c=a.detail.data)==null?0:c.errorMessage)this.businessEmailErrorMessage=a.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.f.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var a=this.JSC$13893_captchaTextarea.value;if(a){a={recaptcha_response_token:a,channel_id:this.metadata.channelId};var b=_.y(this.metadata.onBusinessEmailRevealClickCommand,_.Ds);b&&this.ytComponentBehavior.resolveCommand(b,{form:a})}}};
_.f.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.Vm.Object.defineProperties(L7b.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var a;return _.y((a=this.data)==null?void 0:a.metadata,kzb)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.y(this.metadata.businessEmailRevealButton,_.Fu)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var a=new URL(this.metadata.canonicalChannelUrl);return a.host+a.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 _.y(this.metadata.learnMoreOnTap,_.Ds)}}});
var vP=L7b;vP.prototype.onYtServiceRequestCompleted=vP.prototype.onYtServiceRequestCompleted;vP.prototype.businessEmailMetadataChanged=vP.prototype.businessEmailMetadataChanged;vP.prototype.refit=vP.prototype.refit;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],vP.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],vP.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],vP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.gr("#g-recaptcha-response"),_.W("design:type",HTMLTextAreaElement)],vP.prototype,"JSC$13893_captchaTextarea",void 0);_.U([_.O(),_.W("design:type",Object)],vP.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],vP.prototype,"revealButtonClass",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],vP.prototype,"metadata",null);
_.U([_.K("metadata"),_.W("design:type",Object),_.W("design:paramtypes",[])],vP.prototype,"revealButton",null);_.U([_.K("metadata"),_.W("design:type",Object),_.W("design:paramtypes",[])],vP.prototype,"channelDisplayUrl",null);_.U([_.kr("metadata"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],vP.prototype,"refit",null);_.U([_.K("metadata"),_.W("design:type",Object),_.W("design:paramtypes",[])],vP.prototype,"formattedDescription",null);
_.U([_.K("metadata","learnMoreCommand"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],vP.prototype,"shouldRendereVerifiedPhoneStatus",null);_.U([_.K("metadata"),_.W("design:type",Object),_.W("design:paramtypes",[])],vP.prototype,"learnMoreCommand",null);_.U([_.O(),_.W("design:type",String)],vP.prototype,"businessEmailDisplayState",void 0);_.U([_.O(),_.W("design:type",String)],vP.prototype,"businessEmail",void 0);
_.U([_.O(),_.W("design:type",String)],vP.prototype,"businessEmailErrorMessage",void 0);_.U([_.kr("metadata"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],vP.prototype,"businessEmailMetadataChanged",null);_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],vP.prototype,"onYtServiceRequestCompleted",null);
vP=_.U([_.Q({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],vP);
_.S(vP,"ytd-about-channel-renderer",function(){if(J7b!==void 0)return J7b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-about-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="about-container" class="style-scope ytd-about-channel-renderer">\n  <div id="header-row" hidden="[[!metadata.aboutPanelTitle]]" class="style-scope ytd-about-channel-renderer">\n    <h1 class="style-scope ytd-about-channel-renderer">[[metadata.aboutPanelTitle]]</h1>\n    <div id="dismiss-button" class="style-scope ytd-about-channel-renderer"></div>\n  </div>\n\n  <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.descriptionLabel]]" hidden="[[!formattedDescription]]">\n  </yt-attributed-string>\n  <yt-attributed-string id="description-container" class="about-section style-scope ytd-about-channel-renderer" data="[[formattedDescription]]" hidden="[[!formattedDescription]]" user-input="true">\n  </yt-attributed-string>\n\n  <div id="bio-container" class="about-section style-scope ytd-about-channel-renderer" hidden="[[!metadata.formattedBio]]">\n    <h2 class="subheadline style-scope ytd-about-channel-renderer">[[metadata.artistBioLabel]]</h2>\n    <yt-attributed-string id="bio-container" class="about-section style-scope ytd-about-channel-renderer" data="[[metadata.artistBio]]" hidden="[[!metadata.artistBio]]" user-input="true">\n    </yt-attributed-string>\n    <p class="style-scope ytd-about-channel-renderer">[[metadata.artistBio]]</p>\n  </div>\n\n  <div id="links-section" hidden="[[!metadata.links]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <div id="link-list-container" class="style-scope ytd-about-channel-renderer">\n    </div>\n  </div>\n  <div id="custom-links-section" hidden="[[!metadata.customLinks]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <table id="links-container" class="about-section style-scope ytd-about-channel-renderer">\n      <template is="dom-repeat" items="[[metadata.customLinks]]" as="link" class="style-scope ytd-about-channel-renderer">\n        <tr hidden="[[!linkEndpointToHref(link)]]" class="style-scope ytd-about-channel-renderer">\n          <td class="image-container style-scope ytd-about-channel-renderer">\n            <yt-image data="[[link.favicon]]" width="32" class="style-scope ytd-about-channel-renderer"></yt-image>\n          </td>\n          <td class="href-container style-scope ytd-about-channel-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[linkEndpointToHref(link)]]" data="[[linkEndpoint(link)]]">[[link.label]]</a>\n          </td>\n        </tr>\n      </template>\n    </table>\n  </div>\n\n  <div id="additional-info-container" class="about-section style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.additionalInfoLabel]]"></yt-attributed-string>\n    <table class="style-scope ytd-about-channel-renderer">\n      <tbody class="style-scope ytd-about-channel-renderer"><tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[equals(businessEmailDisplayState, \'HIDE_SECTION\')]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="mail" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'SIGN_IN_REQUIRED\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.signInForBusinessEmail]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n\n        <td id="view-email-button-container" hidden="[[!equals(businessEmailDisplayState, \'REVEAL_BUTTON\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-button-view-model classes="[[revealButtonClass]]" data="[[revealButton]]" scoping-class-name="[[is]]" on-click="onBusinessEmailClick" class="style-scope ytd-about-channel-renderer">\n          </yt-button-view-model>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'CAPTCHA\')]]" class="style-scope ytd-about-channel-renderer">\n          \n          <div id="recaptcha" class="g-recaptcha style-scope ytd-about-channel-renderer" data-sitekey$="[[recaptchaSiteKey()]]"></div>\n          <button id="submit-btn" class="yt-uix-button yt-uix-button-size-default yt-uix-button-primary style-scope ytd-about-channel-renderer" on-click="onBusinessEmailCaptchaSubmit">\n            <span class="yt-uix-button-content style-scope ytd-about-channel-renderer">[[metadata.businessEmailSubmitCaptchaLabel]] </span>\n          </button>\n        </td>\n        <td hidden="[[!equals(businessEmailDisplayState, \'ERROR_MESSAGE\')]]" class="style-scope ytd-about-channel-renderer">\n          [[businessEmailErrorMessage]]\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'BUSINESS_EMAIL\')]]" class="style-scope ytd-about-channel-renderer">\n          <a id="email" class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[computeEmailHref(businessEmail)]]" target="_blank">[[businessEmail]]</a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!shouldRendereVerifiedPhoneStatus]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="phone" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <span class="style-scope ytd-about-channel-renderer">[[metadata.phoneVerifiedLabel]]</span>\n          <a class="yt-simple-endpoint phone-status-info style-scope ytd-about-channel-renderer" href$="[[computeHref_(learnMoreCommand)]]" target="_blank">\n            <yt-icon icon="info" class="style-scope ytd-about-channel-renderer"></yt-icon>\n          </a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!channelDisplayUrl]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="language" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[metadata.canonicalChannelUrl]]">[[channelDisplayUrl]]</a>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.country]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.country]]" icon="privacy_public" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.country]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.joinedDateText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.joinedDateText]]" icon="info_outline" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.joinedDateText]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.subscriberCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="person_radar" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.subscriberCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.videoCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.videoCountText]]" icon="my_videos" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.videoCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.viewCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.viewCountText]]" icon="trending_up" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.viewCountText]]</td>\n      </tr>\n    </tbody></table>\n  </div>\n\n  <div id="button-container" class="style-scope ytd-about-channel-renderer">\n    <div id="share-channel" class="button style-scope ytd-about-channel-renderer"></div>\n    <div id="flagging-button" class="button style-scope ytd-about-channel-renderer"></div>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return J7b=a},{mode:1});var M7b;var N7b=function(){return _.P.apply(this,arguments)||this};
_.z(N7b,_.P);var wP=N7b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],wP.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],wP.prototype,"data",void 0);wP=_.U([_.Q({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],wP);
_.S(wP,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(M7b!==void 0)return M7b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return M7b=a},{mode:1});var O7b;var P7b=function(){return _.P.apply(this,arguments)||this};
_.z(P7b,_.P);P7b.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
var xP=P7b;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],xP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],xP.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],xP.prototype,"aligment",void 0);xP=_.U([_.Q({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],xP);
_.S(xP,"ytd-channel-list-sub-menu-renderer",function(){if(O7b!==void 0)return O7b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return O7b=
a},{mode:1});var Q7b;var R7b=function(){return _.P.apply(this,arguments)||this};
_.z(R7b,_.P);R7b.prototype.configureRendererStamper=function(){return{"data.playAllButton":{id:"play-all",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.rightButtons":{id:"right-buttons",mapping:{buttonRenderer:"ytd-button-renderer",menuRenderer:"ytd-menu-renderer"}},"data.sortSetting":{id:"sort-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",params:{isRightAligned:!0}}}}}};
var yP=R7b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],yP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],yP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],yP.prototype,"data",void 0);yP=_.U([_.Q({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],yP);
_.S(yP,"ytd-channel-sub-menu-renderer",function(){if(Q7b!==void 0)return Q7b;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Q7b=a},{mode:1});var S7b;var T7b;var U7b=function(){var a=_.P.apply(this,arguments)||this;a.isCompact=!1;return a};
_.z(U7b,_.P);_.Vm.Object.defineProperties(U7b.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var a,b;return((b=_.y((a=this.data)==null?void 0:a.endpoint,_.Ml))==null?void 0:b.target)==="TARGET_NEW_WINDOW"}}});
var zP=U7b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],zP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],zP.prototype,"componentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],zP.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],zP.prototype,"isCompact",void 0);_.U([_.K("isCompact"),_.W("design:type",Number),_.W("design:paramtypes",[])],zP.prototype,"thumbnailWidth",null);
_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],zP.prototype,"openNewWindow",null);zP=_.U([_.Q({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],zP);
_.S(zP,"ytd-media-lockup-renderer",function(){if(T7b!==void 0)return T7b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return T7b=a},{mode:1});var V7b;var W7b=function(){return _.P.apply(this,arguments)||this};
_.z(W7b,_.P);var AP=W7b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],AP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],AP.prototype,"componentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],AP.prototype,"data",void 0);AP=_.U([_.Q({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],AP);
_.S(AP,"ytd-structured-description-channel-lockup-renderer",function(){if(V7b!==void 0)return V7b;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return V7b=a},{mode:1});var X7b;var Y7b=function(){var a=_.P.apply(this,arguments)||this;a.isCompact=!1;a.collections=_.x("web_modern_collections_v2");a.collectionsStackColor=_.x("modernize_structured_description_playlist_lockups_v2");return a};
_.z(Y7b,_.P);Y7b.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:_.x("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.Vm.Object.defineProperties(Y7b.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d,e,g;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(a=this.data)==null?void 0:(b=a.thumbnail)==null?void 0:b.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(c=this.data)==null?void 0:(d=c.thumbnail)==null?void 0:d.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(e=this.data)==null?void 0:(g=e.thumbnail)==
null?void 0:g.vibrantColorPalette:void 0}}}});
var BP=Y7b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],BP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],BP.prototype,"componentBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],BP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],BP.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],BP.prototype,"showSidePanelThumbnailOverlay",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],BP.prototype,"isCompact",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],BP.prototype,"collections",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],BP.prototype,"collectionsStackColor",void 0);
_.U([_.K("data"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],BP.prototype,"twoLineTitle",null);_.U([_.K("data","collections","collectionsStackColor"),_.W("design:type",Object),_.W("design:paramtypes",[])],BP.prototype,"collectionStack",null);BP=_.U([_.Q({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],BP);
_.S(BP,"ytd-structured-description-playlist-lockup-renderer",function(){if(X7b!==void 0)return X7b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-playlist-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-structured-description-playlist-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]">\n  <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-structured-description-playlist-lockup-renderer"></yt-collections-stack>\n  <div id="playlist-thumbnail" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    </yt-img-shadow>\n    <span id="overlay" hidden="[[showSidePanelThumbnailOverlay]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.videoCountShortText)]]</span>\n    <div id="overlays" class="style-scope ytd-structured-description-playlist-lockup-renderer"></div>\n  </div>\n</a>\n<div id="description" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  <div id="title" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="subtitle" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return X7b=a},{mode:1});var Z7b;var $7b=function(){return _.P.apply(this,arguments)||this};
_.z($7b,_.P);var CP=$7b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],CP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],CP.prototype,"componentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],CP.prototype,"data",void 0);CP=_.U([_.Q({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],CP);
_.S(CP,"ytd-structured-description-video-lockup-renderer",function(){if(Z7b!==void 0)return Z7b;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Z7b=a},{mode:2});var a8b=function(){return _.P.apply(this,arguments)||this};
_.z(a8b,_.P);
a8b.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{structuredDescriptionPlaylistLockupRenderer:{component:"ytd-structured-description-playlist-lockup-renderer",params:{showSidePanelThumbnailOverlay:!0,isCompact:!0}},structuredDescriptionVideoLockupRenderer:"ytd-structured-description-video-lockup-renderer",structuredDescriptionChannelLockupRenderer:"ytd-structured-description-channel-lockup-renderer",mediaLockupRenderer:{component:"ytd-media-lockup-renderer",params:{isCompact:!0}}}}}};
var DP=a8b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],DP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],DP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],DP.prototype,"data",void 0);DP=_.U([_.Q({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],DP);
_.S(DP,"ytd-compact-infocard-renderer",function(){if(S7b!==void 0)return S7b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return S7b=a},{mode:1});var b8b;var c8b=function(){var a=_.P.apply(this,arguments)||this;a.useModernCollectionsV2=_.x("web_modern_collections_v2");return a};
_.z(c8b,_.P);c8b.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.Vm.Object.defineProperties(c8b.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.x("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.x("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.x("kevlar_watch_feed_big_thumbs")?"":"94"}}});
var EP=c8b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],EP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],EP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.NI),_.W("design:type",Object)],EP.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],EP.prototype,"ytdReduxBehavior",void 0);_.U([_.O({selector:_.Lu}),_.W("design:type",Object)],EP.prototype,"isGridViewEnabled",void 0);
_.U([_.K("isGridViewEnabled"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],EP.prototype,"watchFeedBigThumbs",null);_.U([_.K("isGridViewEnabled","data"),_.O({reflectToAttribute:!0,value:"168"}),_.W("design:type",String),_.W("design:paramtypes",[])],EP.prototype,"thumbnailWidth",null);_.U([_.K("isGridViewEnabled","data"),_.O({reflectToAttribute:!0,value:"94"}),_.W("design:type",String),_.W("design:paramtypes",[])],EP.prototype,"customThumbnailSize",null);
_.U([_.O(),_.W("design:type",Object)],EP.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],EP.prototype,"useModernCollectionsV2",void 0);EP=_.U([_.Q({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],EP);
_.S(EP,"ytd-compact-playlist-renderer",function(){if(b8b!==void 0)return b8b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return b8b=a},{mode:1});var d8b;var e8b=function(){var a=_.P.apply(this,arguments)||this;a.darkerDarkTheme=_.x("web_darker_dark_theme");a.roundedContainer=!0;a.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return a};
_.z(e8b,_.P);_.f=e8b.prototype;_.f.attached=function(){this.requestElementsPerRow()};
_.f.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"}}}};
_.f.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.f.computeViewStyle=function(a){return a.style?a.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.f.onUpdateElementsPerRowAction=function(a){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&a===1};
_.f.requestElementsPerRow=function(){_.go(this.hostElement,"yt-request-elements-per-row")};
var FP=e8b;FP.prototype.dataChanged=FP.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],FP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],FP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.NI),_.W("design:type",Object)],FP.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],FP.prototype,"actionHandlerBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],FP.prototype,"data",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],FP.prototype,"hideThumbnail",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.W("design:type",String)],FP.prototype,"viewStyle",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],FP.prototype,"darkerDarkTheme",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],FP.prototype,"roundedContainer",void 0);
_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],FP.prototype,"dataChanged",null);FP=_.U([_.Q({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],FP);
_.S(FP,"ytd-compact-promoted-item-renderer",function(){if(d8b!==void 0)return d8b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return d8b=a},{mode:1});var f8b;var GP=function(){var a=_.P.apply(this,arguments)||this;a.collections=_.x("web_modern_collections_v2");return a};
_.z(GP,_.P);GP.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
GP.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
GP.prototype.onYtNavigate=function(a,b){var c=this;if(b.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",b)){var d=this.get("watchEndpoint.videoId",b.endpoint),e=_.ko(this.hostElement,"yt-get-current-video-id-action")[0];_.x("kevlar_mix_handle_first_endpoint_different")&&d&&e&&d!==e||(a.stopPropagation(),_.cu().getPlayerPromise().then(function(g){if(g.getPlayerState()===0&&c.data.secondaryNavigationEndpoint)var k=c.data.secondaryNavigationEndpoint;else{k=
Object.assign({},b.endpoint);var m=_.y(k.commandMetadata,_.ao);m&&(g=Math.floor(g.getCurrentTime()),m.url=_.Qi(m.url,{t:g}),!_.x("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(m=_.y(k,_.Vn)))&&(m.startTimeSeconds=g)}_.go(c.hostElement,"yt-navigate",{endpoint:k})}))}};
_.Vm.Object.defineProperties(GP.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.x("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.x("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d,e,g;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(a=this.data)==null?void 0:(b=a.thumbnail)==null?void 0:b.sampledThumbnailColor,vibrantColorPalette:(c=this.data)==null?void 0:(d=c.thumbnail)==null?void 0:d.vibrantColorPalette,darkColorPalette:(e=this.data)==null?void 0:(g=e.thumbnail)==null?void 0:g.darkColorPalette,experimentEnabled:this.collections}}}});
var HP=GP;HP.prototype.onYtNavigate=HP.prototype.onYtNavigate;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],HP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.nH.YtEndpointBehavior),_.W("design:type",Object)],HP.prototype,"ytEndpointBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],HP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.NI),_.W("design:type",Object)],HP.prototype,"ytdDismissibleItemBehavior",void 0);
_.U([_.H(_.VI),_.W("design:type",Object)],HP.prototype,"ytdLockupBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],HP.prototype,"ytdReduxBehavior",void 0);_.U([_.O({selector:_.Lu}),_.W("design:type",Object)],HP.prototype,"isGridViewEnabled",void 0);_.U([_.K("isGridViewEnabled"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],HP.prototype,"watchFeedBigThumbs",null);
_.U([_.K("isGridViewEnabled"),_.O({reflectToAttribute:!0}),_.W("design:type",String),_.W("design:paramtypes",[])],HP.prototype,"thumbnailWidth",null);_.U([_.O(),_.W("design:type",Object)],HP.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],HP.prototype,"collections",void 0);_.U([_.K("data","collections"),_.W("design:type",Object),_.W("design:paramtypes",[])],HP.prototype,"collectionStack",null);
_.U([_.M("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],HP.prototype,"onYtNavigate",null);HP=_.U([_.Q({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],HP);
_.S(HP,"ytd-compact-radio-renderer",function(){if(f8b!==void 0)return f8b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return f8b=a},{mode:1});var g8b;var h8b=function(){return _.P.apply(this,arguments)||this};
_.z(h8b,_.P);h8b.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
h8b.prototype.computeRendererStyle=function(a){return a.style?a.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
var IP=h8b;_.U([_.O(),_.W("design:type",Object)],IP.prototype,"data",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],IP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],IP.prototype,"rendererBehavior",void 0);_.U([_.O({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.W("design:type",String)],IP.prototype,"rendererStyle",void 0);
IP=_.U([_.Q({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],IP);
_.S(IP,"ytd-compact-text-promo-renderer",function(){if(g8b!==void 0)return g8b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return g8b=a},{mode:1});var i8b;var j8b=function(){var a=_.P.apply(this,arguments)||this;a.isShortsStyle=!1;return a};
_.z(j8b,_.P);_.f=j8b.prototype;_.f.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"}}}};
_.f.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.go(this.hostElement,"yt-disable-lockup-interaction"):_.go(this.hostElement,"yt-enable-lockup-interaction"))};
_.f.isMetaBlockEmpty=function(a){return!a||!a.longBylineText&&!a.shortBylineText&&!a.shortViewCountText&&!a.viewCountText};
_.f.computeHasOneLineTitle=function(a){return this.forceOneLineTitle||!(a==null||!a.buttons)};
_.f.computeDisableInteraction=function(){var a;return!((a=this.data)==null?0:a.navigationEndpoint)};
_.f.hasSingularTopStandaloneBadge=function(){var a;return!((a=this.data)==null||!a.topStandaloneBadge)};
_.Vm.Object.defineProperties(j8b.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.x("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.x("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 a;return this.hasSingularTopStandaloneBadge()?[(a=this.data)==null?void 0:a.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var a;return this.shouldShowTopBadges?((a=this.data)==null?void 0:a.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
var JP=j8b;JP.prototype.disableInteractionChanged=JP.prototype.disableInteractionChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],JP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],JP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.NI),_.W("design:type",Object)],JP.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.H(_.VI),_.W("design:type",Object)],JP.prototype,"ytdLockupBehavior",void 0);
_.U([_.H(_.LI),_.W("design:type",Object)],JP.prototype,"ytdReduxBehavior",void 0);_.U([_.O({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.W("design:type",Boolean)],JP.prototype,"metaBlockEmpty",void 0);_.U([_.O({selector:_.Lu}),_.W("design:type",Object)],JP.prototype,"isGridViewEnabled",void 0);_.U([_.K("isGridViewEnabled"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],JP.prototype,"watchFeedBigThumbs",null);
_.U([_.K("isGridViewEnabled"),_.O({reflectToAttribute:!0}),_.W("design:type",String),_.W("design:paramtypes",[])],JP.prototype,"thumbnailWidth",null);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],JP.prototype,"isShortsStyle",void 0);_.U([_.O(),_.W("design:type",Object)],JP.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.W("design:type",Boolean)],JP.prototype,"hasOneLineTitle",void 0);
_.U([_.O(),_.W("design:type",Boolean)],JP.prototype,"hideThumbnail",void 0);_.U([_.O(),_.W("design:type",Boolean)],JP.prototype,"forceOneLineTitle",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.W("design:type",Boolean)],JP.prototype,"disableInteraction",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],JP.prototype,"musicMetadataVideoLockup",void 0);
_.U([_.N("disableInteraction"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],JP.prototype,"disableInteractionChanged",null);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],JP.prototype,"shouldShowTopBadges",null);_.U([_.K("data"),_.W("design:type",Array),_.W("design:paramtypes",[])],JP.prototype,"topBadges",null);
_.U([_.K("shouldShowTopBadges","data"),_.W("design:type",Array),_.W("design:paramtypes",[])],JP.prototype,"inlineMetadataBadges",null);_.U([_.K("shouldShowTopBadges"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],JP.prototype,"shouldShowBadgesBelowMetadata",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],JP.prototype,"compactTitleClass",null);JP=_.U([_.Q({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],JP);
_.S(JP,"ytd-compact-video-renderer",function(){if(i8b!==void 0)return i8b;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return i8b=a},{mode:_.as("kevlar_poly_si_batch_j067")?1:2});var k8b;_.It("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var l8b=function(){return _.P.apply(this,arguments)||this};
_.z(l8b,_.P);var KP=l8b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],KP.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],KP.prototype,"data",void 0);KP=_.U([_.Q({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],KP);
_.S(KP,"ytd-counterfactual-renderer",function(){if(k8b!==void 0)return k8b;var a=document.createElement("template");_.B(a,"\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");a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return k8b=a},{mode:1});var m8b;var LP=function(){var a=_.P.apply(this,arguments)||this;a.hidden=!1;return a};
_.z(LP,_.P);LP.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&(_.x("web_ytd_dropdown_item_renderer_command_resolver_ks")?_.mo(this.hostElement,[this.data.onSelectCommand]):_.v().resolve(_.Xi).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}}))};
LP.prototype.computeHidden=function(a){return!!a};
_.Vm.Object.defineProperties(LP.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.ytRendererBehavior.getSimpleString(this.data.label)}},
value:{configurable:!0,enumerable:!0,get:function(){if(this.data&&(typeof this.data.stringValue==="string"||typeof this.data.int32Value==="number"))return this.data.stringValue?this.data.stringValue:this.data.int32Value}}});
var MP=LP;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],MP.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],MP.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.W("design:type",Object)],MP.prototype,"hidden",void 0);_.U([_.K("data.label"),_.W("design:type",String),_.W("design:paramtypes",[])],MP.prototype,"label",null);
_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],MP.prototype,"value",null);MP=_.U([_.Q({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],MP);
_.S(MP,"ytd-dropdown-item-renderer",function(){if(m8b!==void 0)return m8b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return m8b=a},{mode:1});var n8b;var o8b;var p8b=function(){return _.P.apply(this,arguments)||this};
_.z(p8b,_.P);var NP=p8b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],NP.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],NP.prototype,"data",void 0);_.U([_.O({computed:"getSimpleString(data.label)"}),_.W("design:type",String)],NP.prototype,"label",void 0);NP=_.U([_.Q({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],NP);
_.S(NP,"ytd-navigation-dropdown-item-renderer",function(){if(o8b!==void 0)return o8b;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return o8b=a},{mode:1});var q8b=function(){var a=_.P.apply(this,arguments)||this;a.disabled=!1;a.value="";a.noLabelFloat=!1;a.noUnderline=!1;a.usePrimaryColor=!1;a.hasBackground=!1;a.verticalAlign="top";a.autosize=!1;a.minAutosizeWidth=100;a.autosizeFont="14px Roboto";return a};
_.z(q8b,_.P);_.f=q8b.prototype;_.f.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"}}}};
_.f.open=function(){this.inputEl.open()};
_.f.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.f.dataChanged=function(){this.reset()};
_.f.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.TH("value-changed",this.value))};
_.f.stopPropagation=function(a){a.stopPropagation()};
_.f.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var a=this.canvas.getContext("2d");a&&(a.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(a.measureText(this.inputEl.value).width)+24)+"px")}};
_.f.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var a=0,b=this.data.entries.length;a<b;a++){var c=this.data.entries[a],d;for(d in c)if(c.hasOwnProperty(d)){var e=c[d];if("isSelected"in e&&e.isSelected)return"stringValue"in e?e.stringValue||"":"int32Value"in e?e.int32Value||0:0}}return null};
_.f.updateValueFromBinding=function(a){this.value=a.detail.value};
_.Vm.Object.defineProperties(q8b.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 a=0,b=this.data.entries.length;a<b;a++){var c=this.data.entries[a],d;for(d in c)if(c.hasOwnProperty(d)){var e=c[d];if("isSelected"in e&&e.isSelected&&"label"in e)return this.ytRendererBehavior.getSimpleString(e.label)}}return null}}});
var OP=q8b;OP.prototype.autoSizeLabel=OP.prototype.autoSizeLabel;OP.prototype.stopPropagation=OP.prototype.stopPropagation;OP.prototype.valueChangedForBinding=OP.prototype.valueChangedForBinding;OP.prototype.dataChanged=OP.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],OP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],OP.prototype,"ytRendererStamperBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],OP.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],OP.prototype,"disabled",void 0);_.U([_.O(),_.W("design:type",Object)],OP.prototype,"value",void 0);_.U([_.O(),_.W("design:type",Object)],OP.prototype,"noLabelFloat",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],OP.prototype,"noUnderline",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],OP.prototype,"theme",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],OP.prototype,"usePrimaryColor",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],OP.prototype,"hasBackground",void 0);_.U([_.O(),_.W("design:type",Object)],OP.prototype,"verticalAlign",void 0);_.U([_.O(),_.W("design:type",Object)],OP.prototype,"autosize",void 0);_.U([_.O(),_.W("design:type",Object)],OP.prototype,"minAutosizeWidth",void 0);_.U([_.O(),_.W("design:type",Object)],OP.prototype,"autosizeFont",void 0);
_.U([_.gr("#entries"),_.W("design:type",Object)],OP.prototype,"entries",void 0);_.U([_.gr("#input"),_.W("design:type",Object)],OP.prototype,"inputEl",void 0);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],OP.prototype,"dataChanged",null);_.U([_.kr("value"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],OP.prototype,"valueChangedForBinding",null);
_.U([_.M("iron-overlay-opened"),_.M("iron-overlay-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],OP.prototype,"stopPropagation",null);_.U([_.M("iron-select"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],OP.prototype,"autoSizeLabel",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],OP.prototype,"label",null);
OP=_.U([_.Q({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],OP);
_.S(OP,"ytd-dropdown-renderer",function(){if(n8b!==void 0)return n8b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return n8b=a},{mode:1});var r8b;var PP=function(){var a=_.P.apply(this,arguments)||this;a.isConstrainedList=!1;return a};
_.z(PP,_.P);PP.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"}}}};
PP.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
PP.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
PP.prototype.computeViewAllHidden=function(a,b){return a||!b.viewAllEndpoint};
var QP=PP;QP.prototype.fillRestIfNoShowMore=QP.prototype.fillRestIfNoShowMore;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],QP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],QP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.gJ.YtLazyListBehavior),_.W("design:type",Object)],QP.prototype,"ytLazyListBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],QP.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],QP.prototype,"isConstrainedList",void 0);_.U([_.kr("data","canShowMore"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],QP.prototype,"fillRestIfNoShowMore",null);QP=_.U([_.Q({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],QP);
_.S(QP,"ytd-expanded-shelf-contents-renderer",function(){if(r8b!==void 0)return r8b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return r8b=a},{mode:_.as("kevlar_poly_si_batch_j025")?1:2});var s8b;var t8b=function(){return _.P.apply(this,arguments)||this};
_.z(t8b,_.P);t8b.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.viewChannelButton":{id:"view-channel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
var RP=t8b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],RP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],RP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],RP.prototype,"data",void 0);RP=_.U([_.Q({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],RP);
_.S(RP,"ytd-feed-channel-filter-header-renderer",function(){if(s8b!==void 0)return s8b;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return s8b=a},{mode:1});var u8b;var v8b;var w8b;var x8b=function(){return _.P.apply(this,arguments)||this};
_.z(x8b,_.P);_.f=x8b.prototype;_.f.onClick=function(a){var b,c=(b=this.data)==null?void 0:b.sectionEndpoint;!_.Xt(_.Pq(a),this.hostElement,["A".toString()])&&c&&_.go(this.hostElement,"yt-navigate",{endpoint:c})};
_.f.computeHasSectionEndpoint=function(a){return(a==null?void 0:a.sectionEndpoint)!==void 0};
_.f.computeShowHeaderAsLink=function(a){return(a==null?void 0:a.header)!==void 0&&(a==null?void 0:a.sectionEndpoint)!==void 0};
_.f.computeShowSubheaderAsLink=function(a){return(a==null?void 0:a.subheader)!==void 0&&(a==null?void 0:a.sectionEndpoint)!==void 0&&(a==null?void 0:a.header)===void 0};
_.f.getHeaderAsLinkClass=function(a){var b=[],c;(a==null?0:(c=a.headerIcon)==null?0:c.iconType)&&b.push("header-link-active");return b.join(" ")};
var SP=x8b;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],SP.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],SP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],SP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],SP.prototype,"data",void 0);
_.U([_.O({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],SP.prototype,"hasSectionEndpoint",void 0);_.U([_.O({computed:"computeShowHeaderAsLink(data)"}),_.W("design:type",Boolean)],SP.prototype,"showHeaderAsLink",void 0);_.U([_.O({computed:"computeShowSubheaderAsLink(data)"}),_.W("design:type",Boolean)],SP.prototype,"showSubheaderAsLink",void 0);SP=_.U([_.Q({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],SP);
_.S(SP,"ytd-medical-panel-section-renderer",function(){if(w8b!==void 0)return w8b;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return w8b=a},{mode:1});var y8b=function(){var a=_.P.apply(this,arguments)||this;a.isExpanded=!1;a.roundedContainer=!0;a.skipRoundingTop=!1;a.toggleExpandableSection=function(){a.isExpanded=!a.isExpanded};
return a};
_.z(y8b,_.P);
y8b.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]]"}}}}}};
y8b.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
var TP=y8b;TP.prototype.dataChanged=TP.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],TP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],TP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],TP.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],TP.prototype,"isExpanded",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],TP.prototype,"roundedContainer",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],TP.prototype,"skipRoundingTop",void 0);_.U([_.O(),_.W("design:type",Object)],TP.prototype,"toggleExpandableSection",void 0);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],TP.prototype,"dataChanged",null);
TP=_.U([_.Q({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],TP);
_.S(TP,"ytd-medical-panel-content-renderer",function(){if(v8b!==void 0)return v8b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return v8b=a},{mode:1});_.It("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var UP=function(){var a=_.P.apply(this,arguments)||this;a.roundedContainer=!0;a.amsterdamEnabled=_.x("enable_desktop_amsterdam_info_panels");a.hasTitle=!1;a.linkIcon="OPEN_IN_NEW";a.isDismissed=!1;return a};
_.z(UP,_.P);
UP.prototype.configureRendererStamper=function(){return{"data.menu":{id:"header-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{infoPanelContentRenderer:{component:"ytd-info-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",disableTopPadding:"[[data.disableBottomDivider]]",roundedContainer:"[[roundedContainer]]"}},medicalPanelContentRenderer:{component:"ytd-medical-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",roundedContainer:"[[roundedContainer]]"}},
horizontalCardListRenderer:"ytd-horizontal-card-list-renderer"}}}};
UP.prototype.computeHasTitle=function(a){return!(a==null||!a.title)};
UP.prototype.onClick=function(a){var b,c=(b=this.data)==null?void 0:b.headerEndpoint;!_.Xt(_.Pq(a),this.hostElement,["BUTTON".toString()])&&c&&this.ytComponentBehavior.resolveCommand(c)};
_.Vm.Object.defineProperties(UP.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 a;return((a=this.data)==null?void 0:a.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.data)==null?void 0:a.disableBottomDivider)||!((b=this.data)==null?0:b.title)}}});
var VP=UP;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],VP.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],VP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],VP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],VP.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],VP.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],VP.prototype,"roundedContainer",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],VP.prototype,"amsterdamEnabled",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.W("design:type",Object)],VP.prototype,"hasTitle",void 0);
_.U([_.O({type:_.x("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.K("data.background"),_.W("design:type",Object),_.W("design:paramtypes",[])],VP.prototype,"background",null);_.U([_.O({type:_.x("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.K("data.titleStyle"),_.W("design:type",Object),_.W("design:paramtypes",[])],VP.prototype,"titleStyle",null);
_.U([_.O({type:_.x("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.K("data.titleStyle"),_.W("design:type",Object),_.W("design:paramtypes",[])],VP.prototype,"showLinkIcon",null);_.U([_.O(),_.W("design:type",String)],VP.prototype,"linkIcon",void 0);_.U([_.O({type:_.x("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],VP.prototype,"hideDivider",null);
_.U([_.O({selectorArgs:["data.dismissStateEntityKey"],selector:function(a,b){a=_.mp(a.entities,"dismissState",b);return(a==null?void 0:a.isDismissed)||(a==null?void 0:a.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(a==null?void 0:a.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.W("design:type",Object)],VP.prototype,"isDismissed",void 0);VP=_.U([_.Q({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],VP);
_.S(VP,"ytd-info-panel-container-renderer",function(){if(u8b!==void 0)return u8b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return u8b=a},{mode:1});var z8b;_.It("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var A8b=function(){var a=_.P.apply(this,arguments)||this;a.modernTypography=_.x("web_modern_typography");return a};
_.z(A8b,_.P);A8b.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
A8b.prototype.computeStyle=function(a){return a?a:""};
var WP=A8b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],WP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],WP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],WP.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.W("design:type",String)],WP.prototype,"titleStyle",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],WP.prototype,"modernTypography",void 0);WP=_.U([_.Q({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],WP);
_.S(WP,"ytd-item-section-header-renderer",function(){if(z8b!==void 0)return z8b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return z8b=a},{mode:1});var B8b;var C8b,D8b=function(){return C8b!==void 0?C8b:C8b=document.createElement("template")};
document.head.appendChild(D8b().content);var E8b;_.XP=new _.fB("VOTING_ANIMATION_CONTROLLER_TOKEN");var G8b=_.Rr(function(a){var b=a.data;var c=_.Rl(),d=_.Rl();a=_.h(_.fh("VOTE_STATUS_NONE","FVF7mc"));var e=a.next().value,g=a.next().value,k=_.tu(J0a,function(){var w;return(w=b())==null?void 0:w.entityKey}),m=_.x("web_enable_voting_animation")||_.x("enable_music_web_cairo_voting_animation");
_.vi(function(){var w;((w=b().initialState)==null?0:w.status)&&g(b().initialState.status)});
var n=function(){var w,A,C=(A=(w=b().initialState)==null?void 0:w.votes)!=null?A:0,G;w=(G=b().initialState)==null?void 0:G.status;return w==="VOTE_STATUS_UPVOTED"?C-1:w==="VOTE_STATUS_DOWNVOTED"?C+1:C},r=function(){return e()==="VOTE_STATUS_UPVOTED"?n()+1:e()==="VOTE_STATUS_DOWNVOTED"?n()-1:n()},t=function(w){var A=w?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
g(A);var C=r(),G=_.v().resolve(_.Wi(_.XP)),J=k();J&&(w&&(J==null?0:J.upvoteDefaultButtonOnTap)?_.Js(J.upvoteDefaultButtonOnTap,{form:{element:c.value},disableClickTracking:!0}):(J==null?0:J.upvoteToggledButtonOnTap)&&_.Js(J.upvoteToggledButtonOnTap,{form:{element:c.value},disableClickTracking:!0}));var I;w=(I=J==null?void 0:J.enableOptimisticReordering)!=null?I:b().enableOptimisticReordering;m&&G&&b().itemId&&w&&F8b(G,b().itemId,C,A)},u=function(w){var A=w?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
g(A);var C=r(),G=_.v().resolve(_.Wi(_.XP)),J=k();J&&(w&&(J==null?0:J.downvoteDefaultButtonOnTap)?_.Js(J.downvoteDefaultButtonOnTap,{form:{element:d.value},disableClickTracking:!0}):(J==null?0:J.downvoteToggledButtonOnTap)&&_.Js(J.downvoteToggledButtonOnTap,{form:{element:d.value},disableClickTracking:!0}));var I;w=(I=J==null?void 0:J.enableOptimisticReordering)!=null?I:b().enableOptimisticReordering;m&&G&&b().itemId&&w&&F8b(G,b().itemId,C,A)};
a={};a=_.jt("ytVotingViewModelVoteCount",(a.ytVotingViewModelVoteCountDisabled=function(){return b().isDisabled},a));
return _.q("voting-view-model",{class:"ytVotingViewModelHost"},_.q("div",{el:c},_.q(_.Eu,{data:function(){var w=_.y(b().upvoteButton,_.Gu);return{toggleButtonViewModel:Object.assign({},w,{isToggled:e()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(w){return _.q(_.Hu,{data:w.data,
onToggle:t})}})),_.q("div",{class:a},function(){var w,A,C;
return e()==="VOTE_STATUS_UPVOTED"?(w=b().initialState)==null?void 0:w.compactVotesUpvoted:e()==="VOTE_STATUS_DOWNVOTED"?(A=b().initialState)==null?void 0:A.compactVotesDownvoted:(C=b().initialState)==null?void 0:C.compactVotes}),_.q("div",{el:d},_.q(_.Eu,{data:function(){var w=_.y(b().downvoteButton,_.Gu);
return{toggleButtonViewModel:Object.assign({},w,{isToggled:e()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(w){return _.q(_.Hu,{data:w.data,
onToggle:u})}})))});_.Ws(_.Rr(function(a){var b=a.data;return _.q("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.q("div",{class:_.jt("ytEngagementBarViewModelEngagementBarWrapper",a.className)},_.q(_.Eu,{data:function(){return b().actions}},{votingViewModel:G8b})))}),"engagement-bar-view-model",{props:{data:_.SG,
className:_.SG}});var H8b=function(){var a=_.P.apply(this,arguments)||this;a.amsterdamPostMvp=_.x("web_amsterdam_post_mvp_playlists");a.cairoCollabPlaylistPostMvp=_.x("web_collab_playlist_thumbnail_size");a.playlistVotingAnimationEnabled=_.x("web_enable_voting_animation");a.downloadProgress=0;a.transferState="TRANSFER_STATE_UNKNOWN";a.downloadState="DOWNLOAD_STATE_UNKNOWN";a.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";a.offlineVideoPolicyExpirationTimestamp=0;return a};
_.z(H8b,_.P);_.f=H8b.prototype;_.f.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"}}}};
_.f.canReorderChanged=function(){this.persistentDragHandle=_.x("kevlar_playlist_drag_handles")&&this.canReorder};
_.f.onDrag=function(){if(this.thumbnail){var a=_.E(this.thumbnail).querySelector("yt-image");a&&(a.shouldRenderLazy=!1)}};
_.f.onMenuOverlayChanged=function(a,b){this.menuOpened=b};
_.f.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.f.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.f.onContentsTap=function(a){var b,c=(b=this.data)==null?void 0:b.serviceEndpoints;if(c&&c.length===1&&_.y(c[0],J_a)&&!_.Xt(_.Pq(a),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(c[0]);else{var d;(b=(d=this.data)==null?void 0:d.navigationEndpoint)&&_.x("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?I8b(_.v().resolve(_.Vw),b):(_.uF().playlistSuggestionsShelfActivation=
!0,_.J8b(_.v().resolve(_.Vw),b)):b&&!_.Xt(_.Pq(a),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.x("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.go(this.hostElement,"yt-navigate",{endpoint:b}):this.ytComponentBehavior.resolveCommand(b))}};
_.f.computeStyle=function(a){return a?a.toLowerCase().replace(/_/g,"-"):""};
_.f.computeThumbnailWidth=function(a){return a==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:this.amsterdamPostMvp?160:this.cairoCollabPlaylistPostMvp?200:120};
_.f.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=hGa(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))}};
_.f.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.f.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.f.dataChanged=function(){if(this.data){var a,b,c,d=((a=this.downloadRenderData)==null?void 0:a.badges)&&((b=this.downloadRenderData)==null?void 0:b.badges)!==((c=this.data)==null?void 0:c.badges),e,g,k;a=((e=this.downloadRenderData)==null?void 0:e.thumbnailOverlays)&&((g=this.downloadRenderData)==null?void 0:g.thumbnailOverlays)!==((k=this.data)==null?void 0:k.thumbnailOverlays);(!this.downloadRenderData||d||a)&&this.downloadStateChanged()}};
_.f.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var a,b,c=(a=this.data.menu)==null?void 0:(b=a.menuRenderer)==null?void 0:b.items;if(c)for(a=_.h(c),b=a.next();!b.done;b=a.next())if(b=b.value,c=void 0,_.y((c=b.menuServiceItemRenderer)==null?void 0:c.serviceEndpoint,_.LE)){var d=c=void 0,e=void 0;b=(c=b)==null?void 0:(d=c.menuServiceItemRenderer)==null?void 0:(e=d.serviceEndpoint)==null?void 0:e.playlistEditEndpoint;e=d=void 0;if(c=(d=b)==null?void 0:(e=d.actions)==null?void 0:
e[0])d=void 0,c.setVideoId=(d=this.data)==null?void 0:d.setVideoId;e=d=c=void 0;if(b=(c=b)==null?void 0:(d=c.clientActions)==null?void 0:(e=d[0])==null?void 0:e.playlistRemoveVideosAction)c=void 0,b.setVideoIds=[(c=this.data)==null?void 0:c.setVideoId]}}};
_.Vm.Object.defineProperties(H8b.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
var YP=H8b;YP.prototype.setVideoIdChanged=YP.prototype.setVideoIdChanged;YP.prototype.dataChanged=YP.prototype.dataChanged;YP.prototype.downloadStateChanged=YP.prototype.downloadStateChanged;YP.prototype.onMenuOverlayChanged=YP.prototype.onMenuOverlayChanged;YP.prototype.canReorderChanged=YP.prototype.canReorderChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],YP.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],YP.prototype,"ytdReduxBehavior",void 0);
_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],YP.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.VI),_.W("design:type",Object)],YP.prototype,"ytdLockupBehavior",void 0);_.U([_.H(_.NI),_.W("design:type",Object)],YP.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],YP.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],YP.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],YP.prototype,"amsterdamPostMvp",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],YP.prototype,"canReorder",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],YP.prototype,"menuOpened",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],YP.prototype,"handleIsHovered",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],YP.prototype,"persistentDragHandle",void 0);
_.U([_.O(),_.W("design:type",Object)],YP.prototype,"downloadRenderData",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.W("design:type",String)],YP.prototype,"styleType",void 0);_.U([_.O({computed:"computeThumbnailWidth(data.style)"}),_.W("design:type",Number)],YP.prototype,"thumbnailWidth",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],YP.prototype,"isDownloads",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],YP.prototype,"cairoCollabPlaylistPostMvp",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],YP.prototype,"playlistVotingAnimationEnabled",void 0);_.U([_.O({selector:Lp,selectorArgs:["data.videoId"]}),_.W("design:type",Object)],YP.prototype,"downloadProgress",void 0);_.U([_.O(),_.W("design:type",Number)],YP.prototype,"relativeDateReference",void 0);
_.U([_.O({selector:_.Jp,selectorArgs:["data.videoId"]}),_.W("design:type",Object)],YP.prototype,"transferState",void 0);_.U([_.O({selector:EFa,selectorArgs:["data.videoId"]}),_.W("design:type",Object)],YP.prototype,"downloadState",void 0);_.U([_.O({selector:rFa,selectorArgs:["data.videoId"]}),_.W("design:type",Object)],YP.prototype,"offlinePolicyAction",void 0);_.U([_.O({selector:sFa,selectorArgs:["data.videoId"]}),_.W("design:type",Object)],YP.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.U([_.O({selector:uFa,selectorArgs:["data.videoId"]}),_.W("design:type",Object)],YP.prototype,"entityInfo",void 0);_.U([_.O({selector:_.Gp}),_.W("design:type",Boolean)],YP.prototype,"miniplayerIsActive",void 0);_.U([_.K("data"),_.W("design:type",String),_.W("design:paramtypes",[])],YP.prototype,"playlistVideoId",null);_.U([_.gr("#thumbnail"),_.W("design:type",Object)],YP.prototype,"thumbnail",void 0);
_.U([_.kr("canReorder"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],YP.prototype,"canReorderChanged",null);_.U([_.M("yt-menu-overlay-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Boolean]),_.W("design:returntype")],YP.prototype,"onMenuOverlayChanged",null);
_.U([_.kr("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],YP.prototype,"downloadStateChanged",null);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],YP.prototype,"dataChanged",null);
_.U([_.kr("data.setVideoId"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],YP.prototype,"setVideoIdChanged",null);YP=_.U([_.Q({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],YP);
_.S(YP,"ytd-playlist-video-renderer",function(){if(E8b!==void 0)return E8b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);a.content.insertBefore(D8b().content.cloneNode(!0),a.content.firstChild);return E8b=a},{mode:1});var K8b;var L8b=function(){return _.P.apply(this,arguments)||this};
_.z(L8b,_.P);var ZP=L8b;_.U([_.O(),_.W("design:type",Object)],ZP.prototype,"data",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],ZP.prototype,"rendererBehavior",void 0);ZP=_.U([_.Q({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],ZP);
_.S(ZP,"ytd-premium-browse-footer-renderer",function(){if(K8b!==void 0)return K8b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return K8b=a},{mode:1});var M8b;var N8b=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return a};
_.z(N8b,_.P);_.f=N8b.prototype;_.f.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.f.handleDarkModeToggledAction=function(a){this.isDarkTheme=a};
_.f.computeHeaderLogoThumbnail=function(a,b){if(a)return b?a.darkLogo:a.lightLogo};
_.f.computeHeaderLogoHeight=function(a,b){var c,d,e;return(a=(c=this.computeHeaderLogoThumbnail(a,b))==null?void 0:(d=c.thumbnails)==null?void 0:(e=d[0])==null?void 0:e.height)&&a%31===0?"31":"24"};
_.f.computeHeaderLogoMarginBottom=function(a,b){return this.computeHeaderLogoHeight(a,b)==="24"?"0":"-7"};
var $P=N8b;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],$P.prototype,"actionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],$P.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],$P.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Boolean)],$P.prototype,"isDarkTheme",void 0);_.U([_.O({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.W("design:type",Object)],$P.prototype,"themeLogo",void 0);
_.U([_.O({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.W("design:type",String)],$P.prototype,"logoHeight",void 0);_.U([_.O({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.W("design:type",String)],$P.prototype,"logoMarginBottom",void 0);$P=_.U([_.Q({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],$P);
_.S($P,"ytd-primetime-promo-header-renderer",function(){if(M8b!==void 0)return M8b;var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return M8b=a},{mode:1});var O8b;_.am(M0a);var S0a;S0a=_.Au({flexibleActionsViewModel:SWa});_.aQ=_.mt(T0a);_.am(T0a);_.Ws(_.aQ,"yt-section-header-view-model",{props:{data:_.SG,className:_.SG,disableHorizontalPadding:_.SG,disableVerticalPadding:_.SG,forceSmallLayout:_.SG,useResponsiveLayout:_.SG,isOverlay:_.SG}});_.It("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var P8b=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return a};
_.z(P8b,_.P);_.f=P8b.prototype;_.f.attached=function(){this.requestElementsPerRow()};
_.f.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"}}}};
_.f.onDataChange=function(){var a=this;_.Tm(this,function(){a.updateItemVisibility()})};
_.f.onUpdateElementsPerRowAction=function(a){a&&this.elementsPerRow!==a&&(this.elementsPerRow=a,this.updateItemVisibility())};
_.f.updateItemVisibility=function(){var a=this;this.data&&this.data.panels&&_.E(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(b,c){b.hidden=c>a.elementsPerRow-1})};
_.f.requestElementsPerRow=function(){_.go(this.hostElement,"yt-request-elements-per-row")};
var bQ=P8b;bQ.prototype.onDataChange=bQ.prototype.onDataChange;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],bQ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.NI),_.W("design:type",Object)],bQ.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],bQ.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],bQ.prototype,"actionHandlerBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],bQ.prototype,"data",void 0);_.U([_.O({value:3}),_.W("design:type",Number)],bQ.prototype,"elementsPerRow",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],bQ.prototype,"onDataChange",null);bQ=_.U([_.Q({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],bQ);
_.S(bQ,"ytd-primetime-promo-renderer",function(){if(O8b!==void 0)return O8b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return O8b=a},{mode:1});var Q8b;var cQ=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return a};
_.z(cQ,_.P);cQ.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
cQ.prototype.handleButtonRefreshAction=function(a){if(a=_.y(a,_.Gyb))this.set("data.button",a.membershipButton),this.notifyPath("data.button")};
_.Vm.Object.defineProperties(cQ.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.data)==null?void 0:(b=a.avatars)==null?void 0:b.slice(0,8))||[]}}});
var dQ=cQ;_.U([_.O(),_.W("design:type",Object)],dQ.prototype,"data",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],dQ.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],dQ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],dQ.prototype,"rendererBehavior",void 0);_.U([_.K("data"),_.W("design:type",Array),_.W("design:paramtypes",[])],dQ.prototype,"avatars",null);
dQ=_.U([_.Q({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],dQ);
_.S(dQ,"ytd-recognition-shelf-renderer",function(){if(Q8b!==void 0)return Q8b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Q8b=a},{mode:1});var R8b;var S8b;var T8b=function(){var a=_.P.apply(this,arguments)||this;a.modernButtons=_.x("web_modern_buttons");return a};
_.z(T8b,_.P);_.f=T8b.prototype;
_.f.configureRendererStamper=function(){return{visibleItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-vertical-list-renderer lockup",containerType:3,force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",typographyBump:"[[typographyBump]]"}},channelRenderer:"ytd-channel-renderer",playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",
videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}}}}}};
_.f.dataChanged=function(){this.collapsed=!0};
_.f.computeVisibleItems=function(a,b){return a!==void 0&&a.items?b?a.items.slice(0,this.data.collapsedItemCount):a.items:[]};
_.f.computeHideShowMore=function(a,b,c){return a>=b||!c};
_.f.computeHideShowAll=function(a,b,c){return!(a&&b)||c};
_.f.onMoreClick=function(){this.collapsed=!1};
_.Vm.Object.defineProperties(T8b.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.x("use_modern_typography_on_search")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
var eQ=T8b;eQ.prototype.dataChanged=eQ.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],eQ.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],eQ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],eQ.prototype,"data",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],eQ.prototype,"isSearch",void 0);
_.U([_.O({computed:"computeVisibleItems(data,collapsed)"}),_.W("design:type",Array)],eQ.prototype,"visibleItems",void 0);_.U([_.O({value:!0}),_.W("design:type",Boolean)],eQ.prototype,"collapsed",void 0);_.U([_.O({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.W("design:type",Boolean)],eQ.prototype,"hideShowMore",void 0);
_.U([_.O({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.W("design:type",Boolean)],eQ.prototype,"hideShowAll",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],eQ.prototype,"modernButtons",void 0);_.U([_.K("isSearch"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],eQ.prototype,"typographyBump",null);
_.U([_.K("isSearch"),_.W("design:type",String),_.W("design:paramtypes",[])],eQ.prototype,"thumbnailWidth",null);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],eQ.prototype,"dataChanged",null);eQ=_.U([_.Q({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],eQ);
_.S(eQ,"ytd-vertical-list-renderer",function(){if(S8b!==void 0)return S8b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return S8b=a},{mode:1});var U8b=_.cx(["#"]);_.It("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var V8b=function(){var a=_.P.apply(this,arguments)||this;a.isConstrainedList=!1;a.modernTypography=_.x("web_modern_typography");return a};
_.z(V8b,_.P);_.f=V8b.prototype;
_.f.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"}}}};
_.f.computeThumbnailStyle=function(a){return a||""};
_.f.computePlaceAnnotationUnderTitle=function(){var a;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((a=this.data)==null?void 0:a.thumbnailStyle)||"")};
_.f.computeHrefWithDefault=function(a){return this.ytComponentBehavior.computeHref_(a)||_.Jd(U8b)};
_.f.computeIsPromoShelf=function(a){var b;return(a=a==null?void 0:(b=a[0])==null?void 0:b.metadataBadgeRenderer)?a.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.f.computePlaceBadgeBesideTitle=function(a){var b;return(a==null?0:(b=a[0])==null?0:b.metadataBadgeRenderer)?!this.computeIsPromoShelf(a):!1};
_.f.computeMenuIcon=function(a){return this.computeIsPromoShelf(a)?"yt-icons:more_vert":"yt-icons:more"};
_.f.onDataChange=function(){var a,b;((a=this.data)==null?0:(b=a.content)==null?0:b.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.f.onLockupRequested=function(a){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&a.detail&&a.detail.videoIds){for(var b=this.data.content.gridRenderer.items,c=new Set,d=_.h(a.detail.videoIds),e=d.next();!e.done;e=d.next())c.add(e.value);a.detail.returnValue=b.filter(function(g){return g.gridVideoRenderer&&g.gridVideoRenderer.videoId&&c.has(g.gridVideoRenderer.videoId)}).map(function(g){return g.gridVideoRenderer})}};
_.f.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
var fQ=V8b;fQ.prototype.onLockupRequested=fQ.prototype.onLockupRequested;fQ.prototype.onDataChange=fQ.prototype.onDataChange;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],fQ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.NI),_.W("design:type",Object)],fQ.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],fQ.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],fQ.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.KD),_.W("design:type",Object)],fQ.prototype,"ironResizableBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],fQ.prototype,"data",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],fQ.prototype,"isSearch",void 0);_.U([_.O(),_.W("design:type",Object)],fQ.prototype,"isConstrainedList",void 0);_.U([_.O({reflectToAttribute:!0,value:function(){return _.x("kevlar_fluid_dismiss")}}),
_.W("design:type",Boolean)],fQ.prototype,"enableFluidDismiss",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.W("design:type",String)],fQ.prototype,"thumbnailStyle",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],fQ.prototype,"modernTypography",void 0);_.U([_.O({computed:"computeMenuIcon(data.badges)"}),_.W("design:type",String)],fQ.prototype,"menuIcon",void 0);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],fQ.prototype,"onDataChange",null);_.U([_.M("yt-lockup-requested"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],fQ.prototype,"onLockupRequested",null);fQ=_.U([_.Q({is:"ytd-shelf-renderer",disableElementRegistration:!0})],fQ);
_.S(fQ,"ytd-shelf-renderer",function(){if(R8b!==void 0)return R8b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-shelf-renderer">\n  <div class="grid-subheader style-scope ytd-shelf-renderer" hidden="[[data.hideHeader]]">\n    <div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-shelf-renderer">\n      <h2 class="style-scope ytd-shelf-renderer">\n        <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n          </yt-icon>\n          <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n        </template>\n        <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <div id="image-container" class="style-scope ytd-shelf-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" aria-hidden="true" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" tabindex="-1" title="[[getSimpleString(data.title)]]">\n              <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-shelf-renderer">\n              </yt-img-shadow>\n              <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n              </yt-icon>\n            </a>\n            <div id="title-text" class="style-scope ytd-shelf-renderer">\n              <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" href$="[[computeHrefWithDefault(data.endpoint)]]" data="[[data.endpoint]]">\n                <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n              </a>\n              <ytd-badge-supported-renderer id="title-featured-badge" badges="[[data.badges]]" hidden="[[!computeIsPromoShelf(data.badges)]]" class="style-scope ytd-shelf-renderer">\n              </ytd-badge-supported-renderer>\n              <yt-formatted-string id="title-annotation" hidden="[[!computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n              </yt-formatted-string>\n            </div>\n          </div>\n        </template>\n        <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!computePlaceBadgeBesideTitle(data.badges)]]" class="style-scope ytd-shelf-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="title-annotation" hidden="[[computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n        </yt-formatted-string>\n        <div id="play-button" class="style-scope ytd-shelf-renderer"></div>\n        <div id="sort-filter" class="style-scope ytd-shelf-renderer"></div>\n      </h2>\n      <div id="spacer" class="style-scope ytd-shelf-renderer"></div>\n      <div id="subscribe-button" class="style-scope ytd-shelf-renderer"></div>\n      <div id="menu" class="style-scope ytd-shelf-renderer"></div>\n    </div>\n    <yt-formatted-string id="subtitle" class="can-be-empty style-scope ytd-shelf-renderer" text="[[data.subtitle]]">\n    </yt-formatted-string>\n  </div>\n  <div id="contents" class="style-scope ytd-shelf-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-shelf-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return R8b=a},{mode:1});var W8b;var X8b=function(){return _.P.apply(this,arguments)||this};
_.z(X8b,_.P);X8b.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.Vm.Object.defineProperties(X8b.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
var gQ=X8b;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],gQ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],gQ.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],gQ.prototype,"data",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],gQ.prototype,"isPlaylist",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],gQ.prototype,"isClipList",void 0);
_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],gQ.prototype,"isPlaylistPageWithFilters",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],gQ.prototype,"hasTitle",null);_.U([_.O(),_.K("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.W("design:type",Object),_.W("design:paramtypes",[])],gQ.prototype,"isRightAligned",null);
gQ=_.U([_.Q({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],gQ);
_.S(gQ,"ytd-sort-filter-header-renderer",function(){if(W8b!==void 0)return W8b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return W8b=a},{mode:1});var Y8b;var hQ=function(){return _.P.apply(this,arguments)||this};
_.z(hQ,_.P);
hQ.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]]"}}}}}};
hQ.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.Vm.Object.defineProperties(hQ.prototype,{creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.x("enable_creator_details_shelf_m2")){var a=[],b;((b=this.data)==null?0:b.creatorVideosButton)&&a.push(this.data.creatorVideosButton);var c;((c=this.data)==null?0:c.creatorAboutButton)&&a.push(this.data.creatorAboutButton);b=_.h(this.data.creatorCustomUrlButtons||[]);for(c=b.next();!c.done;c=b.next())a.push(c.value);return a}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.x("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
var iQ=hQ;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],iQ.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],iQ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.hJ.YtdHorizontalListBehavior),_.W("design:type",Object)],iQ.prototype,"ytdHorizontalListBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],iQ.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],iQ.prototype,"engagementPanel",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],iQ.prototype,"creatorCustomUrlButtons",null);_.U([_.O({reflectToAttribute:!0}),_.K("data","creatorCustomUrlButtons"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],iQ.prototype,"showCreatorCustomUrlButtons",null);
_.U([_.K("showCreatorCustomUrlButtons"),_.W("design:type",Number),_.W("design:paramtypes",[])],iQ.prototype,"channelAvatarSize",null);iQ=_.U([_.Q({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],iQ);
_.S(iQ,"ytd-video-description-infocards-section-renderer",function(){if(Y8b!==void 0)return Y8b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-infocards-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="header" class="yt-simple-endpoint style-scope ytd-video-description-infocards-section-renderer" data="[[data.channelEndpoint]]" href$="[[computeOptionalHref_(data.channelEndpoint)]]">\n  <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.sectionTitle)]]" hidden="[[!data.channelAvatar]]" thumbnail="[[data.channelAvatar]]" width="[[channelAvatarSize]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  </yt-img-shadow>\n  <div id="header-text" class="style-scope ytd-video-description-infocards-section-renderer">\n    <h3 id="title" class="style-scope ytd-video-description-infocards-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n    <div id="subtitle" hidden="[[!data.sectionSubtitle]]" class="style-scope ytd-video-description-infocards-section-renderer">\n      [[getSimpleString(data.sectionSubtitle)]]\n    </div>\n  </div>\n</a>\n<div id="action-buttons" hidden="[[showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="infocard-videos-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  <div id="infocard-channel-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n</div>\n<div id="social-links" hidden="[[!showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="left-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="prevClick_" hidden="[[atStart]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-video-description-infocards-section-renderer">\n    <div id="items" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="nextClick_">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n<div id="infocards-section" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Y8b=a},{mode:_.as("kevlar_poly_si_batch_j067")?1:2});var Z8b;var $8b=function(){return _.P.apply(this,arguments)||this};
_.z($8b,_.P);var jQ=$8b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],jQ.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],jQ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],jQ.prototype,"data",void 0);_.U([_.O({computed:"computeIcon_(data.infoIcon)"}),_.W("design:type",Object)],jQ.prototype,"infoIcon",void 0);
jQ=_.U([_.Q({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],jQ);
_.S(jQ,"ytd-eom-settings-disclaimer-renderer",function(){if(Z8b!==void 0)return Z8b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Z8b=a},{mode:1});var a9b;var b9b=function(){return _.P.apply(this,arguments)||this};
_.z(b9b,_.P);_.Vm.Object.defineProperties(b9b.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.suppressPaddingDisclaimer)}}});
var kQ=b9b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],kQ.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],kQ.prototype,"componentBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],kQ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],kQ.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],kQ.prototype,"suppressPaddingDisclaimer",null);kQ=_.U([_.Q({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],kQ);
_.S(kQ,"ytd-product-list-header-renderer",function(){if(a9b!==void 0)return a9b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return a9b=a},{mode:1});var c9b;var d9b=function(){return _.P.apply(this,arguments)||this};
_.z(d9b,_.P);d9b.prototype.computeThumbnailStyle=function(a){if(a&&(a=_.Bq(a)))return"background-color:"+a+";"};
var lQ=d9b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],lQ.prototype,"rendererBehaviors",void 0);_.U([_.O(),_.W("design:type",Object)],lQ.prototype,"data",void 0);lQ=_.U([_.Q({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],lQ);
_.S(lQ,"ytd-hashtag-tile-renderer",function(){if(c9b!==void 0)return c9b;var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return c9b=a},{mode:1});var e9b;var f9b=function(){return _.P.apply(this,arguments)||this};
_.z(f9b,_.P);f9b.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.secondaryActionButton":{id:"secondary-action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
var mQ=f9b;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],mQ.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],mQ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],mQ.prototype,"data",void 0);mQ=_.U([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],mQ);
_.S(mQ,"ytd-sponsorships-alert-renderer",function(){if(e9b!==void 0)return e9b;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return e9b=a},{mode:1});var g9b;var h9b=function(){return _.P.apply(this,arguments)||this};
_.z(h9b,_.P);h9b.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.Vm.Object.defineProperties(h9b.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.x("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.x("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
var nQ=h9b;_.U([_.H(_.NI),_.W("design:type",Object)],nQ.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.H(_.VI),_.W("design:type",Object)],nQ.prototype,"ytdLockupBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],nQ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],nQ.prototype,"ytRendererBehavior",void 0);_.U([_.O({selector:_.Lu}),_.W("design:type",Object)],nQ.prototype,"isGridViewEnabled",void 0);
_.U([_.K("isGridViewEnabled"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],nQ.prototype,"watchFeedBigThumbs",null);_.U([_.K("isGridViewEnabled"),_.O({reflectToAttribute:!0}),_.W("design:type",String),_.W("design:paramtypes",[])],nQ.prototype,"thumbnailWidth",null);_.U([_.O(),_.W("design:type",Object)],nQ.prototype,"data",void 0);nQ=_.U([_.Q({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],nQ);
_.S(nQ,"ytd-compact-movie-renderer",function(){if(g9b!==void 0)return g9b;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return g9b=a},{mode:1});var i9b;var j9b;var k9b=_.Ei("HTML_DIR")==="rtl",l9b=function(){var a=_.P.apply(this,arguments)||this;a.engagementPanel=!1;a.maxLines=2;a.expandButtonOffset=0;a.showExpandButton=!1;a.isTruncated=!1;a.isExpanded=!1;a.currentSnippetType=2;a.alwaysShowExpandButton=!1;a.JSC$14041_lastWidth=NaN;a.observer=null;a.left=0;a.right=0;a.mid=0;a.longestSnippetLength=0;a.isFinalSnippet=!1;a.isFirstMutation=!1;a.isResetMutation=!1;a.OVERFLOW_THRESHOLD=5;return a};
_.z(l9b,_.P);_.f=l9b.prototype;_.f.onClick=function(a){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.Xt(_.Pq(a)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var b;if((b=window.getSelection())==null||!b.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.f.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.f.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.f.updateTextOnSnippetTypeChange=function(){_.x("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.f.setUpBinarySearch=function(a){a=a*this.maxLines/8;this.left=0;var b,c;this.right=Math.min(a*2,(c=(b=this.simpleText)==null?void 0:b.length)!=null?c:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0};
_.f.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.f.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.Dl(new _.qj("AttributedSnippet is empty when the description is not empty",this.text))};
_.f.mutationCallback=function(){if(this.observer!=null){var a=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var b=Math.floor(a*this.maxLines/8);this.setSnippetText(this.text,b);b!==0||this.attributedTextIsEmpty()||_.Dl(new _.qj("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;a=a*this.maxLines/8;this.left=0;var c;this.right=Math.min(a*2,(c=(b=this.simpleText)==null?void 0:b.length)!=null?c: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)}}};
_.f.mutationObserve=function(a){var b=this;this.observer||(this.observer=new MutationObserver(function(){b.mutationCallback()}));
this.observer.observe(a,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.f.attached=function(){var a=this;_.Tm(this,function(){a.resize()})};
_.f.isExpandedChanged=function(){_.go(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.f.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)};
_.f.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var a="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((k9b?"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",a);this.snippetContainer.style.setProperty("mask-image",
a)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(k9b?"right":"left",this.expandButtonOffset+"px")};
_.f.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.f.setSnippetText=function(a,b){a||(a={});if(_.Os(a)){var c=AQa(a,b);c.attachmentRuns||c.commandRuns||c.decorationRuns||c.styleRuns||c.alignment||c.lineBreakMode?this.attributedSnippetTextEl?(_.x("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=AQa(a,b),this.attributedSnippetTextEl.headerRuns=zQa(b,this.headerRuns)):this.attributedSnippetText={data:AQa(a,b),headerRuns:zQa(b,this.headerRuns)},this.currentSnippetType=0):_.Dl(new _.qj("Tried to set snippet text when HTML element was null",
a)):(this.plainSnippetText.textContent=Ls(a.content||"",b),this.currentSnippetType=2)}else{a:{c=U0a(a,b);if(c.runs){c=_.h(c.runs);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.bold||d.deemphasize||d.italics||d.strikethrough||d.textColor||d.navigationEndpoint||_.y(d,Bs)){c=!0;break a}}c=!1}c?this.formattedSnippetText?(this.formattedSnippetText.text=U0a(a,b),this.currentSnippetType=1):_.Dl(new _.qj("Tried to set snippet text when HTML element was null",a)):(this.plainSnippetText.textContent=
Ls(_.Vp(a),b),this.currentSnippetType=2)}};
_.f.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.f.attributedTextIsEmpty=function(){var a=this.text;if(!_.Os(a))return!0;var b;return((b=a.content)==null?void 0:b.length)===0?!0:!1};
_.f.resize=function(a){if(this.snippetText){if(a===void 0?0:a)this.JSC$14041_lastWidth=NaN;var b=this.hostElement.offsetWidth;if(b!==this.JSC$14041_lastWidth&&!this.isExpanded)if(this.JSC$14041_lastWidth=b,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;a=0;var c,d;b=Math.min(b*this.maxLines/8*2,(d=(c=this.simpleText)==null?void 0:c.length)!=null?d:0)-1;for(c=0;a<=b;)d=Math.floor(a+(b-a)/2),this.setSnippetText(this.text,d),this.isOverflowing()?b=d-1:(a=d+1,c=d);this.setSnippetText(this.text,c);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.f.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.f.onExpandClick=function(){var a=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.x("inline_expander_reset_focus_killswitch")||_.Tm(this,function(){var b;((b=_.v().resolve(_.Wi(_.yu)))==null?0:b.isKeyBoardInUse())&&_.Ok(a.hostElement)});
_.go(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.f.onCollapseClick=function(){this.collapse();_.go(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.f.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.f.computeExpandButtonOffset=function(){var a=this.expandSizer;return a?k9b?a.offsetParent?a.offsetParent.offsetWidth-a.offsetWidth-a.offsetLeft:0:a.offsetLeft:0};
_.Vm.Object.defineProperties(l9b.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.Os(this.text)?this.text.content||"":_.Vp(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 _.Os(this.text)?!0:this.text&&_.x("web_replace_formatted_with_attributed_string")&&UPa(this.text)?(this.text=_.As(this.text),!0):!1}},
showCollapseButton:{configurable:!0,enumerable:!0,get:function(){return!!this.collapseLabel&&this.isExpanded}},
useAttributedSnippet:{configurable:!0,enumerable:!0,get:function(){return this.currentSnippetType===0}},
useFormattedSnippet:{configurable:!0,enumerable:!0,get:function(){return this.currentSnippetType===1}},
usePlainSnippet:{configurable:!0,enumerable:!0,get:function(){return this.currentSnippetType===2}}});
var oQ=l9b;oQ.prototype.onTextChanged=oQ.prototype.onTextChanged;oQ.prototype.updateMaskAndExpandButtonOffset=oQ.prototype.updateMaskAndExpandButtonOffset;oQ.prototype.updateSnippetContainerMaxHeight=oQ.prototype.updateSnippetContainerMaxHeight;oQ.prototype.isExpandedChanged=oQ.prototype.isExpandedChanged;oQ.prototype.updateTextOnSnippetTypeChange=oQ.prototype.updateTextOnSnippetTypeChange;oQ.prototype.updateIsFormattedExpanded=oQ.prototype.updateIsFormattedExpanded;
oQ.prototype.updateIsAttributedExpanded=oQ.prototype.updateIsAttributedExpanded;oQ.prototype.onClick=oQ.prototype.onClick;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],oQ.prototype,"componentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],oQ.prototype,"text",void 0);_.U([_.O(),_.W("design:type",Array)],oQ.prototype,"headerRuns",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],oQ.prototype,"engagementPanel",void 0);
_.U([_.O(),_.W("design:type",Object)],oQ.prototype,"maxLines",void 0);_.U([_.O(),_.W("design:type",String)],oQ.prototype,"expandLabel",void 0);_.U([_.O(),_.W("design:type",String)],oQ.prototype,"collapseLabel",void 0);_.U([_.O(),_.W("design:type",Object)],oQ.prototype,"expandCommand",void 0);_.U([_.O(),_.W("design:type",Object)],oQ.prototype,"expandButtonOffset",void 0);_.U([_.K("text"),_.W("design:type",String),_.W("design:paramtypes",[])],oQ.prototype,"simpleText",null);
_.U([_.M("click"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],oQ.prototype,"onClick",null);_.U([_.K("text","isExpanded"),_.W("design:type",Object),_.W("design:paramtypes",[])],oQ.prototype,"expandedText",null);_.U([_.K("headerRuns","isExpanded"),_.W("design:type",Object),_.W("design:paramtypes",[])],oQ.prototype,"expandedHeaderRuns",null);
_.U([_.K("text"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],oQ.prototype,"hasAttributedStringText",null);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],oQ.prototype,"showExpandButton",void 0);_.U([_.K("collapseLabel","isExpanded"),_.W("design:type",Object),_.W("design:paramtypes",[])],oQ.prototype,"showCollapseButton",null);_.U([_.O(),_.W("design:type",Object)],oQ.prototype,"isTruncated",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],oQ.prototype,"isExpanded",void 0);_.U([_.O(),_.W("design:type",Boolean)],oQ.prototype,"isAttributedExpanded",void 0);_.U([_.N("isExpanded","hasAttributedStringText"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],oQ.prototype,"updateIsAttributedExpanded",null);_.U([_.O(),_.W("design:type",Boolean)],oQ.prototype,"isFormattedExpanded",void 0);
_.U([_.N("isExpanded","hasAttributedStringText"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],oQ.prototype,"updateIsFormattedExpanded",null);_.U([_.O(),_.W("design:type",Number)],oQ.prototype,"currentSnippetType",void 0);_.U([_.K("currentSnippetType"),_.W("design:type",Object),_.W("design:paramtypes",[])],oQ.prototype,"useAttributedSnippet",null);
_.U([_.K("currentSnippetType"),_.W("design:type",Object),_.W("design:paramtypes",[])],oQ.prototype,"useFormattedSnippet",null);_.U([_.K("currentSnippetType"),_.W("design:type",Object),_.W("design:paramtypes",[])],oQ.prototype,"usePlainSnippet",null);_.U([_.O(),_.W("design:type",Object)],oQ.prototype,"alwaysShowExpandButton",void 0);_.U([_.N("currentSnippetType"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],oQ.prototype,"updateTextOnSnippetTypeChange",null);
_.U([_.O(),_.W("design:type",Object)],oQ.prototype,"attributedSnippetText",void 0);_.U([_.gr("#snippet"),_.W("design:type",HTMLElement)],oQ.prototype,"snippetContainer",void 0);_.U([_.gr("#snippet-text"),_.W("design:type",HTMLElement)],oQ.prototype,"snippetText",void 0);_.U([_.gr("#plain-snippet-text"),_.W("design:type",HTMLElement)],oQ.prototype,"plainSnippetText",void 0);_.U([_.gr("#formatted-snippet-text"),_.W("design:type",Object)],oQ.prototype,"formattedSnippetText",void 0);
_.U([_.gr("#attributed-snippet-text"),_.W("design:type",Object)],oQ.prototype,"attributedSnippetTextEl",void 0);_.U([_.gr("#expand"),_.W("design:type",HTMLElement)],oQ.prototype,"expandButton",void 0);_.U([_.gr("#expand-sizer"),_.W("design:type",HTMLElement)],oQ.prototype,"expandSizer",void 0);_.U([_.kr("isExpanded"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],oQ.prototype,"isExpandedChanged",null);
_.U([_.N("isExpanded","maxLines"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],oQ.prototype,"updateSnippetContainerMaxHeight",null);_.U([_.N("isTruncated","showExpandButton","expandButtonOffset"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],oQ.prototype,"updateMaskAndExpandButtonOffset",null);
_.U([_.kr("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],oQ.prototype,"onTextChanged",null);oQ=_.U([_.Q({is:"ytd-text-inline-expander",disableElementRegistration:!0})],oQ);
_.S(oQ,"ytd-text-inline-expander",function(){if(j9b===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-inline-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-attributed-string data="[[expandedText]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[expandedHeaderRuns]]" hidden="[[!isAttributedExpanded]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!isFormattedExpanded]]" split-lines="[[!hasAttributedStringText]]" text="[[expandedText]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string><div id="snippet" class="style-scope ytd-text-inline-expander"><span id="snippet-text" hidden="[[isExpanded]]" class="style-scope ytd-text-inline-expander"><span id="plain-snippet-text" hidden="[[!usePlainSnippet]]" class="style-scope ytd-text-inline-expander"></span><yt-attributed-string id="attributed-snippet-text" data="[[attributedSnippetText.data]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[attributedSnippetText.headerRuns]]" hidden="[[!useAttributedSnippet]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string id="formatted-snippet-text" disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!useFormattedSnippet]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></span><span hidden="[[!showExpandButton]]" class="style-scope ytd-text-inline-expander">\u00a0</span><span id="ellipsis" hidden="[[!isTruncated]]" class="style-scope ytd-text-inline-expander">\u2026</span><tp-yt-paper-button id="expand-sizer" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]">[[expandLabel]]</tp-yt-paper-button></div><tp-yt-paper-button id="expand" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]" on-click="onExpandClick">[[expandLabel]]</tp-yt-paper-button><slot name="extra-content" class="style-scope ytd-text-inline-expander"></slot><tp-yt-paper-button id="collapse" class="button style-scope ytd-text-inline-expander" hidden="[[!showCollapseButton]]" on-click="onCollapseClick">[[collapseLabel]]</tp-yt-paper-button>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);j9b=a}a=j9b;return a},{mode:2});var pQ=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return a};
_.z(pQ,_.P);pQ.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
pQ.prototype.handleUpdateDescriptionAction=function(a){if(a=_.y(a,_.vFb))if(a.attributedDescription)this.set("data.attributedDescriptionBodyText",a.attributedDescription);else if(a.description){var b;((b=this.data)==null?0:b.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.As(a.description)):this.set("data.descriptionBodyText",a.description)}};
_.Vm.Object.defineProperties(pQ.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var a,b;return!((a=this.data)==null||!a.attributedDescriptionBodyText)||!((b=this.data)==null||!b.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)==null?0:a.collapsedLineCount){var b;return(b=this.data)==null?void 0:b.collapsedLineCount}a=_.$i("web_watch_description_collapsed_default_lines",12);if(_.x("ww_desc_line_page_size_ks"))return a;b=Math.round(_.sq().height*_.$i("web_watch_description_screen_height_percentage",.5)/20);return Math.max(b,a)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return(c=(a=this.data)==null?void 0:a.descriptionBodyText)!=null?c:(b=this.data)==null?void 0:b.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.sourceAttributions}}});
var qQ=pQ;qQ.prototype.panelContentVisibleChanged=qQ.prototype.panelContentVisibleChanged;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],qQ.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],qQ.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],qQ.prototype,"componentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],qQ.prototype,"data",void 0);
_.U([_.O(),_.W("design:type",Boolean)],qQ.prototype,"panelContentVisible",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],qQ.prototype,"engagementPanel",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],qQ.prototype,"shortsPanel",void 0);_.U([_.gr("#inline-expander"),_.W("design:type",Object)],qQ.prototype,"inlineExpander",void 0);
_.U([_.N("panelContentVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],qQ.prototype,"panelContentVisibleChanged",null);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],qQ.prototype,"hasDescriptionText",null);_.U([_.K("data"),_.W("design:type",Number),_.W("design:paramtypes",[])],qQ.prototype,"collapsedLines",null);
_.U([_.K("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.W("design:type",Object),_.W("design:paramtypes",[])],qQ.prototype,"descriptionText",null);_.U([_.K("data","data.headerRuns"),_.W("design:type",Object),_.W("design:paramtypes",[])],qQ.prototype,"headerRuns",null);_.U([_.K("data","data.sourceAttributions"),_.W("design:type",Object),_.W("design:paramtypes",[])],qQ.prototype,"sourceAttributions",null);
qQ=_.U([_.Q({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],qQ);
_.S(qQ,"ytd-expandable-video-description-body-renderer",function(){if(i9b!==void 0)return i9b;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-video-description-body-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-text-inline-expander id="inline-expander" collapse-label="[[getSimpleString(data.showLessText)]]" engagement-panel="[[engagementPanel]]" expand-label="[[getSimpleString(data.showMoreText)]]" header-runs="[[headerRuns]]" max-lines="[[collapsedLines]]" text="[[descriptionText]]" class="style-scope ytd-expandable-video-description-body-renderer">\n</ytd-text-inline-expander>\n<div id="source-attributions-wrapper" engagement-panel="[[engagementPanel]]" class="style-scope ytd-expandable-video-description-body-renderer">\n<template is="dom-repeat" items="[[sourceAttributions]]" as="sourceAttribution" class="style-scope ytd-expandable-video-description-body-renderer">\n  <yt-attributed-string class="source-attribution style-scope ytd-expandable-video-description-body-renderer" data="[[sourceAttribution]]" link-inherit-color="">\n  </yt-attributed-string>\n  </template>\n</div>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return i9b=a},{mode:_.as("kevlar_poly_si_batch_j028")?1:2});var m9b;var n9b=_.Rr(function(a){var b=a.data;return _.q("factoid-renderer",{class:"ytwFactoidRendererHost"},_.q("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return b().accessibilityText}},_.q("span",{class:"ytwFactoidRendererValue"},_.q(_.wt,{text:function(){return b().value}})),_.q("span",{class:"ytwFactoidRendererLabel"},_.q(_.wt,{text:function(){return b().label}}))))});_.Ws(n9b,"factoid-renderer",{props:{data:_.SG}});_.Ws(_.Rr(function(a){var b=a.data;return _.q("upload-time-factoid-renderer",null,_.q(_.Eu,{data:function(){return b().factoid}},{factoidRenderer:n9b}))}),"upload-time-factoid-renderer",{props:{data:_.Vs}});_.Ws(_.Rr(function(a){var b=a.data;return _.q("view-count-factoid-renderer",null,_.q(_.Eu,{data:function(){return b().factoid}},{factoidRenderer:n9b}))}),"view-count-factoid-renderer",{props:{data:_.Vs}});var o9b=function(){var a=_.P.apply(this,arguments)||this;a.shortsPanel=!1;a.engagementPanel=!1;a.watchWhileSdp=_.x("shorts_desktop_watch_while_sdp");return a};
_.z(o9b,_.P);o9b.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"}}}}};
_.Vm.Object.defineProperties(o9b.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var a;return(a=this.data)==null?void 0:a.channel}}});
var rQ=o9b;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],rQ.prototype,"componentBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],rQ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],rQ.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],rQ.prototype,"shortsPanel",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],rQ.prototype,"engagementPanel",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],rQ.prototype,"watchWhileSdp",void 0);_.U([_.K("shortsPanel","engagementPanel","data.channel"),_.W("design:type",Object),_.W("design:paramtypes",[])],rQ.prototype,"showChannelInfo",null);rQ=_.U([_.Q({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],rQ);
_.S(rQ,"ytd-video-description-header-renderer",function(){if(m9b!==void 0)return m9b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return m9b=a},{mode:1});var p9b;var q9b=function(){return _.P.apply(this,arguments)||this};
_.z(q9b,_.P);var sQ=q9b;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],sQ.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],sQ.prototype,"ytRendererBehavior",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],sQ.prototype,"noPadding",void 0);_.U([_.O(),_.W("design:type",Object)],sQ.prototype,"data",void 0);sQ=_.U([_.Q({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],sQ);
_.S(sQ,"ytd-list-item-view-model",function(){if(p9b!==void 0)return p9b;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return p9b=a},{mode:1});var r9b;var s9b;var t9b;var u9b;var tQ=function(){var a=_.P.apply(this,arguments)||this;a.adaptiveFullWidth=!1;a.modernButtons=_.x("web_modern_buttons");a.buttonOverrides={style:"call-to-action",type:"filled"};a.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return a};
_.z(tQ,_.P);tQ.prototype.handleSetTimestamp_=function(a){this.data&&this.data.shortUrl&&(_.E(this.hostElement).querySelector("#share-url").value=a.isSet?_.Fy(this.data.shortUrl,"t",a.timestamp):this.data.shortUrl)};
tQ.prototype.handleSignalActionCopyShareUrl_=function(a,b){(_.x("killswitch_copy_link_target_check")||_.E(this.hostElement).querySelector("#copy-button")===b)&&this.copyUrlToClipboard()};
tQ.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.E(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
tQ.prototype.computeStyle_=function(a){return a?a.toLowerCase().replace(/_/g,"-"):""};
var uQ=tQ;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],uQ.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],uQ.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],uQ.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.W("design:type",String)],uQ.prototype,"rendererStyle",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],uQ.prototype,"adaptiveFullWidth",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],uQ.prototype,"modernButtons",void 0);_.U([_.O(),_.W("design:type",Object)],uQ.prototype,"buttonOverrides",void 0);uQ=_.U([_.ur({is:"yt-copy-link-renderer",disableElementRegistration:!0})],uQ);
_.S(uQ,"yt-copy-link-renderer",function(){if(u9b===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;t9b===void 0&&(t9b=document.createElement("template"));var d=t9b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);u9b=a}a=u9b;return a},{mode:2});_.It("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var v9b=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return a};
_.z(v9b,_.P);_.f=v9b.prototype;_.f.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.f.attached=function(){this.keyboardFocused=!1};
_.f.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var a=_.v().resolve(_.Wi(_.yu));a&&(this.keyboardFocused=a.isKeyBoardInUse())}};
_.f.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.f.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}};
_.f.onChange_=function(){if(this.data){var a=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;a&&this.ytComponentBehavior.resolveCommand(a);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.f.handleUpdateToggleAction_=function(a){(a=_.y(a,Szb))&&this.data&&a.targetId==this.data.targetId&&this.set("data.toggled",a.toggled)};
_.f.toBoolean_=function(a){return!!a};
_.f.reset=function(){};
_.f.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.TH("data-changed",this.data))};
_.f.updateDataToggledFromBinding=function(a){this.set("data.toggled",a.detail.value)};
var vQ=v9b;vQ.prototype.dataChangedForBinding=vQ.prototype.dataChangedForBinding;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],vQ.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],vQ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],vQ.prototype,"ytComponentBehavior",void 0);
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],vQ.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],vQ.prototype,"data",void 0);_.U([_.O({computed:"computeDescription_(data.*)"}),_.W("design:type",Object)],vQ.prototype,"description_",void 0);_.U([_.O({value:function(){return!!_.v().resolve(_.Wi(_.yu))&&_.x("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.W("design:type",Boolean)],vQ.prototype,"useKeyboardFocused",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],vQ.prototype,"keyboardFocused",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],vQ.prototype,"dataChangedForBinding",null);vQ=_.U([_.ur({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],vQ);
_.S(vQ,"yt-toggle-form-field-renderer",function(){if(s9b===void 0){var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;r9b===void 0&&(r9b=document.createElement("template"));var d=r9b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);s9b=a}a=s9b;return a},{mode:2});var w9b;var x9b;var y9b=function(){var a=_.P.apply(this,arguments)||this;a.isDarkTheme=!1;a.isSearch=!1;a.darkerDarkTheme=_.x("web_darker_dark_theme");a.noTopMargin=_.x("kevlar_watch_no_top_margin");a.maskFade=_.x("web_watch_chips_mask_fade");a.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 a};
_.z(y9b,_.P);_.f=y9b.prototype;_.f.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}}}}}};
_.f.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.f.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.f.dataChanged=function(){var a=this.getSelectedIndex();if(a>0)this.selected=a;else{this.selected=0;var b,c;(b=this.ytScrollableChipCloudBehavior)==null||(c=b.reset)==null||c.call(b)}};
_.f.getSelectedIndex=function(){var a;if((a=this.data)==null||!a.chips)return-1;a=-1;for(var b,c=0;c<((b=this.data)==null?void 0:b.chips.length);c++){var d=void 0,e=void 0;if((d=this.data)==null?0:(e=d.chips[c].chipCloudChipRenderer)==null?0:e.isSelected){a=c;break}}return a};
_.f.onResize=function(){var a=this.ytScrollableChipCloudBehavior;_.Tm(a,a.setContainerWidthDiff);VO(this.ytScrollableChipCloudBehavior)};
_.f.onDarkModeToggledAction=function(a){this.isDarkTheme=a};
_.f.handleRelatedChipCommand=function(a,b){a=this.JSC$14068_chipsSelector.indexOf(b);a!==-1&&this.JSC$14068_chipsSelector.selectIndex(a)};
_.f.handleChipCloudChipSelectAction=function(a){a=this.JSC$14068_chipsSelector.indexOf(a);a>-1&&this.JSC$14068_chipsSelector.selectIndex(a)};
_.f.handleChipCloudChipDeselectAction=function(){var a=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$14068_chipsSelector&&((a==null?0:a.continuationCommand)?_.mo(this.hostElement,[a]):(a==null?0:a.searchEndpoint)?this.ytComponentBehavior.resolveCommand(a):a&&_.no(this.hostElement,[a],this.hostElement),this.JSC$14068_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.f.updateSelectedFromBinding=function(a){this.selected=a.detail.value};
var wQ=y9b;wQ.prototype.onResize=wQ.prototype.onResize;wQ.prototype.dataChanged=wQ.prototype.dataChanged;wQ.prototype.isSearchChanged=wQ.prototype.isSearchChanged;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],wQ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],wQ.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],wQ.prototype,"actionHandlerBehavior",void 0);
_.U([_.H(_.KD),_.W("design:type",Object)],wQ.prototype,"ironResizableBehavior",void 0);_.U([_.H(),_.W("design:type",WO)],wQ.prototype,"ytScrollableChipCloudBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],wQ.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],wQ.prototype,"data",void 0);_.U([_.O({value:0}),_.W("design:type",Number)],wQ.prototype,"selected",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],wQ.prototype,"isDarkTheme",void 0);_.U([_.O({value:160}),_.W("design:type",Number)],wQ.prototype,"scrollDistance",void 0);_.U([_.O(),_.W("design:type",Object)],wQ.prototype,"isSearch",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],wQ.prototype,"darkerDarkTheme",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],wQ.prototype,"noTopMargin",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],wQ.prototype,"maskFade",void 0);_.U([_.gr("#chips"),_.W("design:type",Object)],wQ.prototype,"JSC$14068_chipsSelector",void 0);_.U([_.N("isSearch"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],wQ.prototype,"isSearchChanged",null);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],wQ.prototype,"dataChanged",null);
_.U([_.M("iron-resize"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],wQ.prototype,"onResize",null);wQ=_.U([_.ur({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],wQ);
_.S(wQ,"yt-chip-cloud-renderer",function(){if(x9b===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;w9b===void 0&&(w9b=document.createElement("template"));var d=w9b;c.call(b,d.content.cloneNode(!0),a.content.firstChild);x9b=a}a=x9b;return a},{mode:2});var z9b,A9b=function(){return z9b!==void 0?z9b:z9b=document.createElement("template")};
document.head.appendChild(A9b().content);var B9b;var C9b=document.head,D9b=C9b.appendChild,E9b;if(B9b===void 0){var F9b=document.createElement("template");_.B(F9b,"");F9b.content.insertBefore(A9b().content.cloneNode(!0),F9b.content.firstChild);B9b=F9b}E9b=B9b;D9b.call(C9b,E9b.content);var G9b=_.Rr(function(a){var b=a.data;return _.q("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.q("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.q("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.q(_.oi,{cond:function(){return _.fv(b().image)},
then:function(c){return _.q("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.q(_.Ss,{data:c,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.q("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.q(_.wt,{text:function(){return b().title}})),_.q("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.q(_.wt,{text:function(){return b().subtitle}})))),_.q(_.oi,{cond:function(){var c;
return(c=b())==null?void 0:c.hasBottomDivider},
then:function(){return _.q("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))});var H9b=_.Rr(function(a){var b=a.data;return _.q("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.q("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.q(_.Eu,{data:function(){var c;return(c=b().offerPlanDetailsItem)!=null?c:[]}},{offerPlanDetailsItemViewModel:function(c){return _.q("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.q(G9b,{data:c.data}))}})),_.q("div",null,_.q(_.oi,{cond:function(){return b().hasBottomDivider},
then:function(){return _.q("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.q("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.q("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.q("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.q("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))});var I9b=_.Rr(function(a){var b=a.data;a=_.h(_.fh(!1,"SpEGQd"));var c=a.next().value,d=a.next().value,e=_.ot(function(){d(!c());return!1}),g=function(){var k;
return(k=b().offerPlanDetailsContainer)!=null?k:[]};
return _.q("lp-complex-offer-card-details-view-model",null,_.q("div",null,_.q(_.oi,{cond:function(){return c()},
then:function(){return _.q("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.q("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":e,"aria-expanded":c},_.q(_.wt,{text:function(){return b().expandedTitle}})),_.q("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.q(_.Eu,{data:g},{offerPlanDetailsContainerViewModel:function(k){return _.q("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.q(H9b,{data:k.data}))}})),_.q("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.q(_.wt,{text:function(){return b().legalText}})))},
else:function(){return _.q("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":e,"aria-expanded":c},_.q(_.wt,{text:function(){return b().collapsedTitle}}),_.q("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.q(_.tt,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))});var J9b=_.Rr(function(a){var b=a.data;var c=function(){var g;return((g=b())==null?void 0:g.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
a={};var d={},e={};return _.q("ytm-lp-complex-offer-card-view-model",null,_.q("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.q("div",{class:_.jt((a.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=c,a),"ytmLpComplexOfferCardViewModelCardContainer")},_.q(_.oi,{cond:function(){var g;return(g=b())==null?void 0:g.bannerText},
then:function(){return _.q("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.q("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.q(_.wt,{text:function(){return b().bannerText}})))}}),_.q(_.oi,{cond:function(){return _.fv(b().logo)},
then:function(g){var k={};return _.q("div",{class:_.jt((k.ytmLpComplexOfferCardViewModelLogoAlignLeft=c,k),"ytmLpComplexOfferCardViewModelLogo")},_.q(_.Ss,{data:g,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.q("div",{class:_.jt((d.ytmLpComplexOfferCardViewModelTitleAlignLeft=c,d),"ytmLpComplexOfferCardViewModelTitle")},_.q(_.wt,{text:function(){return b().title}})),_.q(_.oi,{cond:function(){var g;
return(g=b())==null?void 0:g.subtitle},
then:function(){var g={};return _.q("div",{class:_.jt((g.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=c,g),"ytmLpComplexOfferCardViewModelSubtitle")},_.q(_.wt,{text:function(){return b().subtitle}}))}}),_.q(_.oi,{cond:function(){return b().planPricingPrimary},
then:function(){return _.q("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.q(_.wt,{text:function(){return b().planPricingPrimary}}))}}),_.q(_.oi,{cond:function(){return b().planPricingSecondary},
then:function(){return _.q("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.q(_.wt,{text:function(){return b().planPricingSecondary}}))}}),_.q(_.oi,{cond:function(){return b().purchaseButton},
then:function(){return _.q("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.q(_.Eu,{data:function(){return b().purchaseButton}},{buttonViewModel:function(g){return _.q(_.Ju,{data:g.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.q("div",{class:_.jt((e.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=c,e),"ytmLpComplexOfferCardViewModelLegalText")},_.q(_.wt,{text:function(){return b().legalText}})),_.q(_.oi,{cond:function(){var g;
return(g=b())==null?void 0:g.offerCardDetails},
then:function(){return _.q("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.q(_.Eu,{data:function(){return b().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:I9b}))}}))))});var K9b=_.Rr(function(a){var b=a.data;var c=function(){var k;return((k=b())==null?void 0:k.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
a={};var d={},e={},g={};return _.q("ytm-lp-complex-offer-card-section-view-model",null,_.q("div",{class:_.jt("ytmLpComplexOfferCardSectionViewModelHost")},_.q("div",{class:_.jt((a.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=c,a),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.q("div",{class:_.jt((d.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=c,d),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.q("h2",{class:_.jt((e.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
c,e),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.q(_.wt,{text:function(){return b().title}}))),_.q(_.oi,{cond:function(){var k;
return(k=b())==null?void 0:k.subtitle},
then:function(){var k={},m={};return _.q("div",{class:_.jt((k.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=c,k),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.q("div",{class:_.jt((m.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=c,m),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.q(_.wt,{text:function(){return b().subtitle}})))}}),_.q("div",{class:_.jt((g.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=c,g),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.q(_.Eu,{data:function(){var k;
return(k=b().offerPlans)!=null?k:[]}},{lpComplexOfferCardViewModel:function(k){return _.q("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.q(J9b,{data:k.data}))}})))))});_.Lv=okb.getInstance();var L9b=_.Rr(function(a){return _.q("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-question","aria-hidden":a.shouldAriaHideContent},_.q("h2",{class:"yt-lp-faq-entry-view-model__lp-faq-question",id:a.questionId},_.q(_.wt,{text:a.question})))}),M9b=_.Rr(function(a){var b=a.data;
var c=a.themeOverride;a=_.h(_.fh(!1,"ljTVPd"));var d=a.next().value,e=a.next().value;a=_.ot(function(){e(!d());return!1});
var g=function(){return d()?"EXPAND_LESS":"EXPAND_MORE"},k=("faq-container"+_.Kv(_.Lv)).toString(),m="faq-question-and-answers-section-question"+_.Kv(_.Lv),n={},r={};
return _.q("faq-entry-view-model-c3",null,_.q("div",{class:_.jt("yt-lp-faq-entry-view-model",(n["yt-lp-faq-entry-view-model--premium-force-dark-mode"]=function(){return c==null?void 0:c().useDarkTheme},n))},_.q("div",{class:"yt-lp-faq-entry-view-model__faq-question-and-answers-section",
"on:click":a,role:"button","aria-expanded":d,"aria-labelledby":m.toString(),"tab-index":"0"},_.q(L9b,{question:function(){return b().question},
questionId:m,shouldAriaHideContent:!0}),_.q(_.oi,{cond:function(){return d()!==void 0},
then:function(){return _.q("div",{class:"yt-lp-faq-entry-view-model__icon-container"},_.q(_.tt,{icon:g,ariaHidden:!0}),_.q("div",{class:"yt-lp-faq-entry-view-model__icon-hover-highlighting"}))}})),_.q("div",{class:_.jt("yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer",(r["yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer--collapsed"]=function(){return!d()},r))},_.q("div",{id:k},_.q(_.ni,{each:function(){return b().answers||[]}},function(t){return _.q("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-answer"},
_.q(_.wt,{text:t}))})))))});
M9b.idomCompat=!0;var N9b=_.Rr(function(a){var b=a.data;var c=a.themeOverride;a={};return _.q("lp-faq-section-view-model-c3",null,_.q("div",{class:_.jt("yt-lp-faq-section-view-model",(a["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return b().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},a["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(c==null||!c().useDarkTheme)},a))},_.q("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.q(_.oi,{cond:function(){return b().header},
then:function(d){return _.q("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.q(_.wt,{text:d}))}}),_.q("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.q(_.Eu,{data:function(){return b().faqs}},{faqEntryViewModel:function(d){return _.q(M9b,{data:d.data,
themeOverride:c})}})),_.q("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.q(_.ni,{each:function(){return b().footers||[]}},function(d){return _.q(_.wt,{text:d})})),_.q(_.oi,{cond:function(){return b().legal},
then:function(d){return _.q("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.q(_.wt,{text:d}))}}))))});
N9b.idomCompat=!0;var O9b=_.Rr(function(a){var b=a.data;var c=a.themeOverride;_.vi(function(){var k=b().gtmId;k&&_.yG(k,_.Ei("GL",""))});
var d={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var k,m,n;return(n=(k=b().logo)==null?void 0:(m=k.accessibilityData)==null?void 0:m.label)!=null?n:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},e=_.v().resolve(_.Wi(_.Ns)),g=function(){return e&&e()||(c==null?void 0:c().useDarkTheme)};
return _.q("lp-header-section-view-model",null,_.q("div",{class:function(){var k=b().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",m=b().marginType==="LP_SECTION_MARGIN_TYPE_TOP",n=c==null?void 0:c().useDarkTheme,r=["lp-header-section-view-model"];k&&r.push("lp-header-section-view-model--ptc-layout-type");m&&r.push("lp-header-section-view-model__lp-header-section-margin");n&&r.push("lp-header-section-view-model--premium-force-dark-mode");return r.join(" ")}},_.q(_.oi,{cond:function(){return b().logo},
then:function(){return _.q("div",null,_.q(_.oi,{cond:g,then:function(){return _.q(_.oi,{cond:function(){var k;return(k=b().logo)==null?void 0:k.imageDark},
then:function(k){return _.q(_.Ss,Object.assign({},{data:k},d))}})},
else:function(){return _.q(_.oi,{cond:function(){var k;return(k=b().logo)==null?void 0:k.imageLight},
then:function(k){return _.q(_.Ss,Object.assign({},{data:k},d))}})}}))}}),_.q(_.oi,{cond:function(){return b().title},
then:function(k){return _.q("div",{class:"lp-header-section-view-model__lp-header-title"},_.q(_.wt,{text:k}))}}),_.q("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.q(_.oi,{cond:function(){return b().subtitles},
then:function(k){return _.q(_.ni,{each:k},function(m){return _.q("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.q(_.wt,{text:m}))})}})),_.q(_.oi,{cond:function(){return b().additionalInfo},
then:function(k){return _.q("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.q(_.wt,{text:k}))}}),_.q("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.q(_.oi,{cond:function(){return b().primaryButton},
then:function(k){return _.q("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.q(_.Eu,{data:k},{buttonViewModel:_.Ju}))}}),_.q(_.oi,{cond:function(){return b().secondaryButton},
then:function(k){return _.q("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.q(_.Eu,{data:k},{buttonViewModel:_.Ju}))}})),_.q(_.oi,{cond:function(){return b().otherOffersInfo},
then:function(k){return _.q("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.q(_.wt,{text:k}))}}),_.q("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.q(_.oi,{cond:function(){return b().billingInfo},
then:function(k){return _.q(_.ni,{each:k},function(m){return _.q("div",null,_.q(_.wt,{text:m}))})}}))))});
O9b.idomCompat=!0;var P9b=_.Rr(function(a){var b=a.data;var c=_.Nr(a.themeOverride,{useDarkTheme:!1});a={};a=_.jt("ytm-lp-headline-section-view-model",(a["ytm-lp-headline-section-view-model--premium-force-dark-mode"]=function(){return c().useDarkTheme},a));
return _.q("lp-headline-section-view-model",null,_.q("div",{class:a},_.q("div",{class:"ytm-lp-headline-section-view-model__title-text"},_.q(_.wt,{text:function(){return b().title}})),_.q(_.oi,{cond:function(){return b().subtitle},
then:function(d){return _.q("div",{class:"ytm-lp-headline-section-view-model__subtitle-text"},_.q(_.wt,{text:d}))}})))});var Q9b=_.Rr(function(a){var b=a.data;var c=a.themeOverride;var d=_.v().resolve(_.Wi(_.Ns)),e=function(){return d&&d()||(c==null?void 0:c().useDarkTheme)},g=function(){var r,t;
var u=e()?(r=b().textBackgroundImage)==null?void 0:r.imageDark:(t=b().textBackgroundImage)==null?void 0:t.imageLight;return WQa((u==null?void 0:u.sources)||[])},k=function(){var r,t;
return e()?(r=b().featureImage)==null?void 0:r.imageDark:(t=b().featureImage)==null?void 0:t.imageLight},m=function(){return b().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},n=function(){var r,t;
return e()?(r=b().logo)==null?void 0:r.imageDark:(t=b().logo)==null?void 0:t.imageLight};
return _.q("ytm-lp-large-feature-section-view-model",null,_.q("div",{class:function(){var r=b().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",t=b().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",u=(b().index||0)%2===1,w=c==null?void 0:c().useDarkTheme,A=["yt-lp-large-feature-section-view-model"];r?A.push("yt-lp-large-feature-section-view-model--music-feature-type"):t?A.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):u||A.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
w&&A.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return A.join(" ")}},_.q("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.q(_.oi,{cond:k,
then:function(){return _.q(_.Ss,{data:function(){return k()},
alt:function(){var r,t,u;return(u=(r=b().featureImage)==null?void 0:(t=r.accessibilityData)==null?void 0:t.label)!=null?u:""},
contentMode:m})}})),_.q("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var r;return((r=g())==null?0:r.url)?"background-image: url("+_.Gd(g().url)+");":""}},_.q("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.q(_.oi,{cond:n,
then:function(){return _.q(_.Ss,{data:function(){return n()},
alt:function(){var r,t,u;return(u=(r=b().logo)==null?void 0:(t=r.accessibilityData)==null?void 0:t.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"})}}),_.q(_.oi,{cond:function(){return b().eyebrowText},
then:function(){return _.q("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.q(_.wt,{text:function(){return b().eyebrowText}}))}}),_.q(_.oi,{cond:function(){return b().title},
then:function(){return _.q("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.q(_.wt,{text:function(){return b().title}}))}}),_.q(_.oi,{cond:function(){return b().subtitles},
then:function(){return _.q("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.q(_.ni,{each:function(){return b().subtitles||[]}},function(r){return _.q(_.wt,{text:r})}))}})))))});
Q9b.idomCompat=!0;var R9b=_.Rr(function(a){return _.q("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.q("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.q(_.tt,{icon:function(){var b;return(b=a.data())==null?void 0:b.iconType},
className:function(){var b;return((b=a.data())==null?void 0:b.style)==="LP_FEATURE_LIST_ITEM_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"ytLpFeatureListItemViewModelFeatureListIconGreen":"ytLpFeatureListItemViewModelFeatureListIconDefault"}}),_.q("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.q(_.wt,{text:function(){var b;
return(b=a.data())==null?void 0:b.text}}))))});var S9b=_.Rr(function(a){a=_.Or(a,{config:void 0,themeOverride:void 0});var b=a.data,c=a.config,d=a.themeOverride;a={};a=_.jt("ytm-lp-offer-card-option-view-model",(a["ytm-lp-offer-card-option-view-model--premium-force-dark-mode"]=function(){var n;return(n=d())==null?void 0:n.useDarkTheme},a));
var e=_.ot(function(){var n,r;(n=c())==null||(r=n.handleRadioButtonClick)==null||r.call(n,b());return!1}),g=function(){var n;
return(n=c())==null?void 0:n.shouldDisplayRadioButton},k=_.ot(function(){if(g()){var n,r;
(n=c())==null||(r=n.handleRadioButtonClick)==null||r.call(n,b())}return!1}),m=function(){var n;
return(n=b().featureListItems)!=null?n:[]};
return _.q("ytm-lp-offer-card-option-view-model",null,_.q("div",{class:a,"on:click":k},_.q(_.oi,{cond:g,then:function(){return _.q("div",null,_.q("input",{type:"radio","on:click":e,class:"ytm-lp-offer-card-option-view-model__input-el","prop:checked":function(){var n;return!((n=c())==null||!n.isOptionSelected)}}))}}),_.q("div",null,_.q("div",{class:"ytm-lp-offer-card-option-view-model__eyebrow-text"},_.q(_.wt,{text:function(){return b().eyebrowText}})),_.q("div",{class:"ytm-lp-offer-card-option-view-model__title"},
_.q(_.wt,{text:function(){return b().title}})),_.q("div",{class:"ytm-lp-offer-card-option-view-model__subtitle"},_.q(_.wt,{text:function(){return b().subtitle}})),_.q(_.oi,{cond:function(){return m().length>0},
then:function(){return _.q("div",{class:"ytm-lp-offer-card-option-view-model__feature-list-items"},_.q(_.Eu,{data:m},{lpFeatureListItemViewModel:R9b}))}}),_.q("div",{class:"ytm-lp-offer-card-option-view-model__description"},_.q(_.wt,{text:function(){return b().description}})))))});
S9b.idomCompat=!0;var T9b=_.Rr(function(a){var b=a.data;var c=a.themeOverride;a=_.h(_.qt(function(){var g,k=(g=b().offerOptions)==null?void 0:g[0];return _.y(k,$Db)||{}}));
var d=a.next().value,e=a.next().value;a={};return _.q("ytm-lp-offer-card-view-model",null,_.q("div",{class:_.jt("ytm-lp-offer-card-view-model",(a["ytm-lp-offer-card-view-model--premium-force-dark-mode"]=function(){return!(c==null||!c().useDarkTheme)},a))},_.q("div",{class:"ytm-lp-offer-card-view-model__title-container"},_.q(_.oi,{cond:function(){return b().titleIconType},
then:function(){return _.q("div",{class:"ytm-lp-offer-card-view-model__icon-container"},_.q(_.tt,{icon:function(){var g;return((g=b().titleIconType)==null?void 0:g.toString())||""}}))}}),_.q("div",{class:"ytm-lp-offer-card-view-model__title-text"},_.q(_.wt,{text:function(){return b().title}})),_.q(_.Eu,{data:function(){return b().titleBadge}},{badgeViewModel:function(g){return _.q("div",{class:"ytm-lp-offer-card-view-model__title-badge"},_.q(_.qL,{data:g.data}))}})),_.q("div",{class:"ytm-lp-offer-card-view-model__offer-options-container"},
_.q(_.Eu,{data:function(){return b().offerOptions}},{lpOfferCardOptionViewModel:function(g){var k=g.data;
return _.q(_.Vh,null,_.q("div",{class:"ytm-lp-offer-card-view-model__divider"}),_.q(S9b,{data:k,config:function(){var m;return{shouldDisplayRadioButton:(b().offerOptions||[]).length>1,isOptionSelected:k().id===((m=d())==null?void 0:m.id),handleRadioButtonClick:function(n){return void e(n)}}},
themeOverride:c}))}})),_.q("div",{class:"ytm-lp-offer-card-view-model__purchase-button-container"},_.q(_.Eu,{data:function(){var g;
return(g=d())==null?void 0:g.purchaseButtonOverride}},{buttonViewModel:_.Ju}))))});
T9b.idomCompat=!0;var U9b=_.Rr(function(a){var b=a.data;var c=a.themeOverride;a={};a=_.jt("ytm-lp-offer-card-section-view-model",(a["ytm-lp-offer-card-section-view-model--premium-force-dark-mode"]=function(){var d;return c==null?void 0:(d=c())==null?void 0:d.useDarkTheme},a));
return _.q("ytm-lp-offer-card-section-view-model",null,_.q("div",{class:a},_.q(_.oi,{cond:function(){return b().title!==void 0},
then:function(){return _.q("div",{class:"ytm-lp-offer-card-section-view-model__title-container"},_.q("div",{class:"ytm-lp-offer-card-section-view-model__title-text"},_.q(_.wt,{text:function(){return b().title}})),_.q(_.oi,{cond:function(){return b().subtitle},
then:function(){return _.q("div",{class:"ytm-lp-offer-card-section-view-model__subtitle-text"},_.q(_.wt,{text:function(){return b().subtitle}}))}}))}}),_.q("div",{class:"ytm-lp-offer-card-section-view-model__offer-cards-container"},_.q(_.Eu,{data:function(){return b().offerCards}},{lpOfferCardViewModel:function(d){return _.q("div",{class:"ytm-lp-offer-card-section-view-model__offer-card-container"},_.q(T9b,{data:d.data,
themeOverride:c}))}})),_.q(_.oi,{cond:function(){return b().footer},
then:function(){return _.q("div",{class:"ytm-lp-offer-card-section-view-model__footer-text"},_.q(_.wt,{text:function(){return b().footer}}))}})))});var V9b=_.Rr(function(a){var b=a.data;return _.q("lp-offer-table-cell-content-view-model",null,_.q("div",{class:"yt-lp-offer-table-cell-content-view-model"},_.q(_.qi,null,_.q(_.pi,{when:function(){return b().title}},function(){return _.q(_.wt,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-title",
text:function(){return b().title}})}),_.q(_.pi,{when:function(){return b().subTitle}},function(){return _.q(_.wt,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-subtitle",
text:function(){return b().subTitle}})}),_.q(_.pi,{when:function(){return b().featureDescription}},function(){return _.q(_.wt,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-description",
text:function(){return b().featureDescription}})}),_.q(_.pi,{when:function(){return b().description}},function(){return _.q(_.wt,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-description",
text:function(){return b().description}})}),_.q(_.pi,{when:function(){return b().iconType}},function(){return _.q("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-icon"},_.q(_.tt,{icon:function(){return b().iconType.toString()}}))}),_.q(_.pi,{when:function(){return b().purchaseButton}},function(){return _.q(_.Eu,{data:function(){return b().purchaseButton}},{buttonViewModel:function(c){return _.q("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-purchase-button"},
_.q(_.Ju,{data:c.data}))}})}),_.q(_.pi,{when:function(){return b().note}},function(){return _.q(_.wt,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-note",
text:function(){return b().note}})}),_.q(_.pi,{when:function(){return b().featureDetail}},function(){return _.q(_.wt,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-detail",
text:function(){return b().featureDetail}})}),_.q(_.pi,{when:function(){return b().badge}},function(){return _.q(_.Eu,{data:function(){return b().badge}},{badgeViewModel:_.qL})}))))});
V9b.idomCompat=!0;var W9b=_.Rr(function(a){var b=a.data;return _.q("lp-offer-table-cell-view-model",null,_.q("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(b().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;"}}},_.q(_.Eu,{data:function(){return b().contents}},{lpOfferTableCellContentViewModel:V9b})))});
W9b.idomCompat=!0;var X9b=_.Rr(function(a){var b=a.data;var c=a.lpTableIsFirstRow;var d=a.lpTableIsLastRow;var e=function(){return(c==null?0:c())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-header-cell":"yt-lp-offer-table-row-view-model__lp-offer-table-row-header-cell"},g=function(){return(c==null?0:c())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-content-cell":(d==null?0:d())?"yt-lp-offer-table-row-view-model__lp-offer-table-last-row-content-cell":"yt-lp-offer-table-row-view-model__lp-offer-table-row-content-cell"};
return _.q("ytm-lp-offer-table-row-view-model",null,_.q("div",{class:"yt-lp-offer-table-row-view-model"},_.q(_.Eu,{data:function(){return b().rowHeaderCell}},{lpOfferTableCellViewModel:function(k){return _.q("div",{class:e},_.q(W9b,{data:k.data}))}}),_.q(_.Eu,{data:function(){return b().contentCells}},{lpOfferTableCellViewModel:function(k){return _.q("div",{class:g},_.q(W9b,{data:k.data}))}})))});
X9b.idomCompat=!0;var Y9b=_.Rr(function(a){var b=a.data;var c=a.themeOverride;var d=_.v().resolve(_.Wi(_.Ns)),e=function(){return _.y(b().logo,YFb)||{}};
a={};return _.q("ytm-lp-offer-table-section-view-model",null,_.q("div",{class:"yt-lp-offer-table-view-model"},_.q(_.oi,{cond:function(){var g,k;return d&&d()||(c==null?0:c().useDarkTheme)?(g=e())==null?void 0:g.imageDark:(k=e())==null?void 0:k.imageLight},
then:function(g){return _.q(_.Ss,{data:g,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var k,m,n;return(n=(k=e())==null?void 0:(m=k.accessibilityData)==null?void 0:m.label)!=null?n:""},
targetWidth:140,targetHeight:40,height:40,className:"yt-lp-offer-table-view-model__lp-offer-table-section-logo",useWidth:!1})}}),_.q("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-title"},_.q(_.wt,{text:function(){return b().title}})),_.q("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-subtitle"},_.q(_.wt,{text:function(){return b().subtitle}})),_.q(_.oi,{cond:function(){return b().disclaimers},
then:function(g){return _.q("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-disclaimers"},_.q(_.ni,{each:g},function(k){return _.q("div",null,_.q(_.wt,{text:k}))}))}}),_.q("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-rows"},_.q(_.Eu,{data:function(){return b().rows}},{lpOfferTableRowViewModel:function(g,k){return _.q(X9b,{data:g.data,
lpTableIsFirstRow:function(){return k()===0},
lpTableIsLastRow:function(){return k()===b().rows.length-1}})}})),_.q("div",{class:_.jt((a["yt-lp-offer-table-view-model__lp-offer-table-section-footer-wrapper"]=function(){return b().hasFooterBackground},a))},_.q(_.oi,{cond:function(){return b().footer},
then:function(){return _.q("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer"},_.q(_.wt,{text:function(){return b().footer}}))}}),_.q(_.oi,{cond:function(){return b().footerTitle},
then:function(){return _.q("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-title"},_.q(_.wt,{text:function(){return b().footerTitle}}))}}),_.q(_.oi,{cond:function(){return b().footerDescription},
then:function(){return _.q("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-description"},_.q(_.wt,{text:function(){return b().footerDescription}}))}}))))});
Y9b.idomCompat=!0;var Z9b=_.Rr(function(a){var b=a.data;var c=a.themeOverride;var d=_.v().resolve(_.Wi(_.Ns)),e=function(){var m;return c==null?void 0:(m=c())==null?void 0:m.useDarkTheme},g=function(){var m,n;
return d&&d()||e()?(m=b().image)==null?void 0:m.imageDark:(n=b().image)==null?void 0:n.imageLight};
a={};a=_.jt("ytm-lp-small-feature-section-view-model",(a["ytm-lp-small-feature-section-view-model--premium-force-dark-mode"]=e,a));var k=function(){var m,n,r;return(r=(m=b().image)==null?void 0:(n=m.accessibilityData)==null?void 0:n.label)!=null?r:""};
return _.q("ytm-lp-small-feature-section-view-model",{class:a},_.q(_.oi,{cond:function(){return g()&&!b9a},
then:function(){return _.q("div",{class:"ytm-lp-small-feature-section-view-model__feature-image-container"},_.q(_.Ss,{data:function(){return g()},
alt:k,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.q("div",{class:"ytm-lp-small-feature-section-view-model__content-section"},_.q("div",{class:"ytm-lp-small-feature-section-view-model__title-text"},_.q(_.oi,{cond:function(){return b().title},
then:function(m){return _.q(_.wt,{text:m})}})),_.q("div",{class:"ytm-lp-small-feature-section-view-model__description-text"},_.q(_.wt,{text:function(){return b().description}}))))});
Z9b.idomCompat=!0;var $9b=_.Rr(function(a){var b=a.data;var c=a.themeOverride;a={};return _.q("ytm-lp-small-feature-section-group-view-model",null,_.q("div",{class:_.jt("ytm-lp-small-feature-section-group-view-model",(a["ytm-lp-small-feature-section-group-view-model--premium-force-dark-mode"]=function(){return!(c==null||!c().useDarkTheme)},a))},_.q("div",{class:"ytm-lp-small-feature-section-group-view-model__small-features-container"},_.q(_.Eu,{data:function(){return b().smallFeatures}},{lpSmallFeatureSectionViewModel:function(d){return _.q("div",
{class:"ytm-lp-small-feature-section-group-view-model__small-feature-container"},_.q(Z9b,{data:d.data,
themeOverride:c}))}}))))});
$9b.idomCompat=!0;_.Ws(_.Rr(function(a){var b=a.data;var c=function(){return b().forcedTheme==="USER_INTERFACE_THEME_DARK"},d=function(){return b().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},e=function(){var k="",m,n;
var r=_.v().resolve(_.Wi(_.Ns));r=c()||(r==null?0:r())?(m=b().themedImageViewModel)==null?void 0:m.imageDark:(n=b().themedImageViewModel)==null?void 0:n.imageLight;(m=WQa((r==null?void 0:r.sources)||[]))&&m.url&&(k=d()?"background-image: linear-gradient(to bottom, transparent, "+(b().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.Gd(m.url)+");":"background-image: url("+_.Gd(m.url)+");");return k},g=function(){return{useDarkTheme:c()}};
a={};return _.q("yt-section-group-view-model",null,_.q("div",{class:_.jt("yt-lp-section-group-view-model",(a["yt-lp-section-group-view-model--premium-force-dark-mode"]=c,a["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return b().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},a))},_.q(_.oi,{cond:function(){return e().length},
then:function(){var k={};return _.q("div",{class:_.jt("yt-lp-section-group-view-model__bg-image",(k["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=d,k)),style:e})}}),_.q("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.q(_.Eu,{data:function(){return b().sections}},{lpFaqSectionViewModel:function(k){return _.q(N9b,{data:k.data,
themeOverride:g})},
lpHeaderSectionViewModel:function(k){return _.q(O9b,{data:k.data,themeOverride:g})},
lpHeadlineSectionViewModel:function(k){return _.q(P9b,{data:k.data,themeOverride:g})},
lpLargeFeatureSectionViewModel:function(k){return _.q(Q9b,{data:k.data,themeOverride:g})},
lpOfferCardSectionViewModel:function(k){return _.q(U9b,{data:k.data,themeOverride:g})},
lpComplexOfferCardSectionViewModel:function(k){return _.q(K9b,{data:k.data})},
lpOfferTableSectionViewModel:function(k){return _.q(Y9b,{data:k.data,themeOverride:g})},
lpSmallFeatureSectionGroupViewModel:function(k){return _.q($9b,{data:k.data,themeOverride:g})}}))))}),"yt-section-group-view-model",{props:{data:_.SG}});var X0a=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.a$b=_.Rr(function(a){function b(){if(X0a.has(a.data().displayType)){var r=!d(),t;if((t=a.disableDeselection)==null||!t.call(a)||r){a.data().selected=r;t=Object.assign({},k(),{selected:r});m(t);var u;(u=a.callback)==null||u.call(a,t,r)}}}
var c=_.Rl(),d=function(){var r,t;return!!(((r=a.selected)==null?void 0:r.call(a))!==void 0?(t=a.selected)==null?0:t.call(a):k().selected)},e=_.h(_.qt(a.data)),g=e.next().value;
e=e.next().value;var k=g,m=e,n=_.tu(W0a,function(){return a.data().chipEntityKey||""});
return _.q("chip-view-model",{class:"ytChipViewModelHost",el:c},_.q(O6b,{data:function(){var r,t=Object.assign({},k(),{selected:d()}),u=n(),w=(r=a.disableDeselection)==null?void 0:r.call(a);a:switch(t.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":r=1;break a;default:r=0}return{text:(u==null?void 0:u.text)||t.text,state:t.disabled?1:t.selected?0:2,type:r,onTap:Y0a(t,c,b,w)}}}))});
_.a$b.idomCompat={callbacks:{callback:!0}};_.Ws(_.Rr(function(a){var b=_.tu(V0a,function(){var g;return(g=a.data())==null?void 0:g.chipBarStateEntityKey}),c=_.h(_.qt(function(){var g;
if(((g=b())==null?void 0:g.selectedIndex)!=void 0)return b().selectedIndex;var k,m;g=_.h(((k=a.data())==null?void 0:(m=k.chips)==null?void 0:m.entries())||[]);for(k=g.next();!k.done;k=g.next()){k=_.h(k.value);m=k.next().value;k=k.next().value;var n=void 0;if((n=_.y(k,_.SE))==null?0:n.selected)return m}return-1})),d=c.next().value,e=c.next().value;
return _.q("chip-bar-view-model",{class:_.jt("ytChipBarViewModelHost",a.className),role:"tablist"},_.q(_.Eu,{data:function(){return a.data().chips}},{chipViewModel:function(g,k){return _.q("div",{class:"ytChipBarViewModelChipWrapper"},_.q(_.a$b,{data:g.data,
selected:function(){return k()===d()},
callback:function(m,n){m=!!n;n=k();e(m?n:-1);var r,t=(r=a.data())==null?void 0:r.chipBarStateEntityKey;t&&m&&_.Kr(_.vu("chipBarStateEntity",t,{key:t,selectedIndex:n}))},
disableDeselection:a.disableDeselection}))}}))}),"chip-bar-view-model",{props:{data:_.Vs,
className:_.Vs,disableDeselection:_.Vs}});var Iv=new Map,Hv=new Map,a1a=0,Jv;var h1a=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],k1a={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var b$b,c$b;b$b=function(a){return function(b){return function(){return String(b())+a}}};
_.xQ=b$b("px");c$b=b$b("s");var d$b=function(){},h$b=_.Rr(function(a){var b=a.data;
var c=a.inlineMetadata;var d=a.aspectRatio;var e=a.scrimStyle;var g=a.className;var k=a.useDefaultStyle;var m=new d$b,n=_.x("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",r=_.kh(function(){return(k==null?0:k())?n==="SHORTS_LOCKUP_STYLE_SLIM":b().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"x5GdUe"),t=_.kh(function(){return _.zh(c)||r()||!1},void 0,"pcPnBf"),u=function(){return(e==null?void 0:e())!==void 0?e==null?void 0:e():1};
a=_.Rl(function(ca){m&&(m.hostElement=ca,G())});
_.$l(a,{visibilityCallback:function(ca){var V=b().onFirstVisible;ca&&V&&_.Js(V)},
showOption:{calledOnce:!0,state:"visible"}});g=_.jt("shortsLockupViewModelHost",g);var w=_.Rl(),A={};A=_.jt(function(){return r(),"shortsLockupViewModelHostThumbnailContainer"},(A.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.zh(d)===1},A.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.zh(d)===2},A.shortsLockupViewModelHostThumbnailContainerRounded=function(){return!r()},A.shortsLockupViewModelHostThumbnailContainerCustomDimensions=
function(){return!_.x("web_shorts_2_by_3_lockups_study")},A));
var C,G=function(){if(m){var ca;(ca=C)==null||qv(ca);var V;m.hostElement&&((V=m.data)==null?0:V.inlinePlayerData)&&(C=$u({mediaRenderer:m,lockupElement:m.hostElement,thumbnailElement:w.value,videoPreviewOpts:M_a}))}};
_.yh(function(){m&&(m.data=b(),G())},"APeWre");
var J=_.kh(function(){return b().thumbnail},void 0,"jwSp8c"),I=_.kh(function(){return b().badge},void 0,"NRZnWc"),R=_.kh(function(){return b().onTap},void 0,"da2xac");
return _.q("ytm-shorts-lockup-view-model",{el:a,class:g},_.q(_.Vh,null,_.q(_.ut,{command:R,className:_.jt("shortsLockupViewModelHostEndpoint","reel-item-endpoint","")},_.q("div",{el:w,class:A},_.q(_.oi,{cond:J,then:function(){return _.q(_.Ss,{data:function(){return J()},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),null),_.q(_.oi,{cond:t,
then:function(){return _.q(e$b,{data:b,scrimStyle:u,useDefaultStyle:k})}}),_.q(_.Eu,{data:I},{badgeViewModel:function(ca){return _.q(_.qL,{data:ca.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.q(_.oi,{cond:function(){return t()&&b().menuOnTap},
then:function(){return _.q(f$b,{data:b,inlineMetadata:!0})}}),_.q(_.oi,{cond:function(){return!t()},
then:function(){return _.q(g$b,{data:b,useDefaultStyle:k})}})))}),e$b=_.Rr(function(a){var b=a.data;
var c=a.scrimStyle;var d=a.useDefaultStyle;var e=_.x("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",g=d&&_.x("web_hide_primary_text_for_pivot_panel"),k=_.kh(function(){return(d==null?0:d())?e==="SHORTS_LOCKUP_STYLE_SLIM":b().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"syQ36");
a={};a=_.jt("shortsLockupViewModelHostInlineMetadata",(a.shortsLockupViewModelHostMetadataRounded=function(){return!k()},a.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(c==null?void 0:c())===3&&!_.x("enable_shorts_lockup_new_scrim")},a.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(c==null?void 0:c())===3&&_.x("enable_shorts_lockup_new_scrim")},a.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(c==null?void 0:c())===2||(c==null?void 0:
c())===4},a.shortsLockupViewModelHostShowOverPlayer=function(){return!0},a),"image-overlay-text");
var m={};return _.q("div",{class:a},_.q("h3",{class:_.jt("shortsLockupViewModelHostMetadataTitle",(m.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(c==null?void 0:c())===4},m)),
"aria-label":function(){return b().accessibilityText}},_.q(_.oi,{cond:function(){var n;
return!((n=b().overlayMetadata)==null||!n.primaryText)&&!g},
then:function(){return _.q(_.wt,{text:function(){var n;return(n=b().overlayMetadata)==null?void 0:n.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.q(_.oi,{cond:function(){var n;
return(n=b().overlayMetadata)==null?void 0:n.secondaryText},
then:function(){return _.q(i$b,{data:b,scrimStyle:c,className:void 0})}}))}),g$b=_.Rr(function(a){var b=a.data;
var c=a.useDefaultStyle;var d=_.x("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",e=_.kh(function(){return(c==null?0:c())?d==="SHORTS_LOCKUP_STYLE_SLIM":b().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"xmC9G");
a=_.jt(function(){return e()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},"image-overlay-text");
var g,k=_.ot(function(){var n;(n=g)==null||n.click();return!1}),m={};
return _.q("div",{class:a,"on:click":k},_.q("h3",{class:_.jt("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(m.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var n,r;return!((n=b().overlayMetadata)==null?0:(r=n.primaryText)==null?0:r.content)},m)),
"aria-label":function(){return b().accessibilityText}},_.q(_.ut,{ref:function(n){return void(g=n)},
command:function(){return b().onTap},
className:_.jt("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var n,r;return(n=b().overlayMetadata)==null?void 0:(r=n.primaryText)==null?void 0:r.content}},_.q(_.oi,{cond:function(){return!!b().overlayMetadata},
then:function(){return _.q(_.wt,{text:function(){var n;return(n=b().overlayMetadata)==null?void 0:n.primaryText},
noEndpoints:!0,noStyleRuns:!0})}}))),_.q(_.oi,{cond:function(){var n;
return(n=b().overlayMetadata)==null?void 0:n.secondaryText},
then:function(){return _.q(i$b,{data:b,className:"shortsLockupViewModelHostOutsideMetadataSubhead"})}}),_.q(_.oi,{cond:function(){return b().menuOnTap},
then:function(){return _.q(f$b,{data:b,inlineMetadata:!1})}}))}),i$b=_.Rr(function(a){var b=a.data;
var c=a.scrimStyle;a=a.className;var d={};return _.q("div",{class:_.jt((d.shortsLockupViewModelHostMetadataSubhead=function(){return(c==null?void 0:c())!==4},d.shortsLockupViewModelHostMetadataSubheadNew=_.x("enable_shorts_lockup_new_scrim"),d.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(c==null?void 0:c())===4},d),a),
"aria-label":function(){var e,g;return _.x("disable_extra_shorts_aria_label_ks")?(e=b().overlayMetadata)==null?void 0:(g=e.secondaryText)==null?void 0:g.content:void 0}},_.q(_.wt,{text:function(){var e;
return(e=b().overlayMetadata)==null?void 0:e.secondaryText},
noStyleRuns:!0}))}),f$b=_.Rr(function(a){var b=a.data;
var c=a.inlineMetadata;a={};a=_.jt((a.shortsLockupViewModelHostInlineMetadataMenu=function(){return c()},a.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!c()},a.shortsLockupViewModelHostShowOverPlayer=function(){return!0},a),"image-overlay-text");
return _.q("div",{class:a},_.q(rv,{data:function(){return{style:c()?"overlay":"mono",accessibilityLabel:b().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(d){d.preventDefault();d.stopPropagation();var e=_.Gs({elementsCommand:b().menuOnTap,forceNewState:!0});if(e==null?0:e.onclick)e.onclick(d)}}},
iconName:"MORE_VERT"}))});var k$b=_.Rr(function(a){function b(V){return function(){var fa=A().numItemsPerGridRow,aa=V()*fa;fa=aa+fa;var ma,Ba;return(Ba=(ma=d().contents)==null?void 0:ma.slice(aa,fa))!=null?Ba:[]}}
var c=_.Or(a,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),d=c.data,e=c.layoutContainerWidth,g=c.shouldUseOwnContainerSize,k=c.marginSettings;c=_.h(_.fh(!0,"JZzjVd"));var m=c.next().value,n=c.next().value,r=function(){var V,fa=(V=_.y(d().showMoreButton,_.Fu))==null?void 0:V.trackingParams;fa&&_.qF(_.ms(),fa);n(!1)},t=function(){var V,fa=(V=_.y(d().showLessButton,_.Fu))==null?void 0:V.trackingParams;
fa&&_.qF(_.ms(),fa);n(!0)};
c=_.Rl();var u=m1a(c),w=function(){var V;return(V=d().contentAspectRatio)!=null?V:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},A=_.kh(function(){var V=_.dv({containerWidth:g()&&u.width()>0?u.width()||e():e(),
sizing:"EXTRA_COMPACT",marginSettings:k(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:V.maxContainerWidth,numItemsPerGridRow:V.numItems,contentPadding:g()?V.margin:V.contentMargin,itemWidth:V.itemWidth,itemMargin:V.gutter/2}},void 0,"IhuGL"),C=function(){if(d().enableVerticalExpansion){if(m())return 1;
var V,fa,aa=(fa=(V=d().contents)==null?void 0:V.length)!=null?fa:0;return Math.ceil(aa/A().numItemsPerGridRow)}return A().numItemsPerGridRow<=2?2:1},G=function(){return d().enableVerticalExpansion&&d().showLessButton&&!m()&&C()>1},J=function(){var V,fa;
return d().enableVerticalExpansion&&d().showMoreButton&&m()&&((fa=(V=d().contents)==null?void 0:V.length)!=null?fa:0)>A().numItemsPerGridRow},I=function(){return!G()},R=function(){return!J()},ca={};
return _.q("grid-shelf-view-model",{class:_.jt("ytGridShelfViewModelHost",a.className,(ca.ytGridShelfViewModelHostHasBottomButton=function(){return G()||J()},ca)),
el:c,style:_.rt({"margin-left":(0,_.xQ)(function(){return A().contentPadding}),
"margin-right":(0,_.xQ)(function(){return A().contentPadding})})},_.q(_.oi,{cond:function(){return _.y(d().header,kFb)},
then:function(V){return _.q(_.aQ,{data:V,disableHorizontalPadding:!0})}}),_.q("div",null,_.q(_.ni,{each:function(){return Array(C())}},function(V,fa){return _.q(j$b,{className:a.className,
items:b(fa),responsiveGridShelfLayout:A,contentAspectRatio:w})})),_.q("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.q(_.Eu,{data:function(){return d().showMoreButton}},{buttonViewModel:function(V){return _.q("div",{hidden:R},_.q(_.Ju,{data:V.data,
onClick:r}))}}),_.q(_.Eu,{data:function(){return d().showLessButton}},{buttonViewModel:function(V){return _.q("div",{hidden:I},_.q(_.Ju,{data:V.data,
onClick:t}))}})))});
k$b.idomCompat=!0;var j$b=_.Rr(function(a){var b=a.items;var c=a.responsiveGridShelfLayout;var d=a.contentAspectRatio;a=a.className;var e=_.Rl();$0a(e,function(){a:{var m=e.value;for(var n=b(),r=[],t=0;t<n.length;t++){var u=_.y(n[t],fEb);if(!u||u==null||!u.inlinePlayerData){m=null;break a}var w=m.children.item(t);if(!w){m=null;break a}r.push({thumbnailElement:w,videoData:u})}m={gridVideoPreviewData:{gridItems:r}}}return m});
var g=(0,_.xQ)(function(){return-c().itemMargin}),k=_.x("mweb_home_reactive_shorts")?h$b:O2b;
return _.q("div",{el:e,class:_.jt("ytGridShelfViewModelGridShelfRow",a),style:_.rt({"margin-left":g,"margin-right":g})},_.q(_.Eu,{data:b,replacementWrapper:function(m){return _.q(l$b,{responsiveGridShelfLayout:c},m)}},{shortsLockupViewModel:function(m){return _.q(l$b,{responsiveGridShelfLayout:c},_.q(k,{data:m.data,
aspectRatio:function(){return d()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,className:void 0}))}}))}),l$b=_.Rr(function(a){return _.q("div",{style:_.rt({width:(0,_.xQ)(function(){return a.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+a.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},a.children)});_.Ws(k$b,"grid-shelf-view-model",{props:{data:_.SG,layoutContainerWidth:_.SG,shouldUseOwnContainerSize:_.SG,marginSettings:_.SG,className:_.SG}});_.Ws(_.Rr(function(a){var b=_.h(_.fh(!1,"YYtxR")),c=b.next().value,d=b.next().value;b={};return _.q("yt-alert-banner-view-model",{class:_.jt("ytAlertBannerViewModelHost",function(){var e;a:switch((e=a.data())==null?void 0:e.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":e="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":e="ytAlertBannerViewModelWarning";break a;default:e="ytAlertBannerViewModelInformational"}return e},(b.ytAlertBannerViewModelDismissed=c,b.ytAlertBannerViewModelFullbleed=
a.fullbleed,b.ytAlertBannerViewModelNarrow=a.narrow,b.ytAlertBannerViewModelIsInRichGrid=a.isInRichGrid,b))},_.q(_.oi,{cond:function(){var e;
return!((e=a.data())==null?0:e.hideIcon)},
then:function(){return _.q("div",{class:"ytAlertBannerViewModelIcon"},_.q(_.tt,{icon:function(){return"info_circle"}}))}}),_.q("div",{class:"ytAlertBannerViewModelOuterContainer"},_.q("div",{class:"ytAlertBannerViewModelContainer"},_.q("div",{class:"ytAlertBannerViewModelContent"},_.q("div",{class:"ytAlertBannerViewModelHeading"},_.q(_.wt,{text:function(){var e;
return(e=a.data())==null?void 0:e.heading}})),_.q("div",{class:"ytAlertBannerViewModelBody"},_.q(_.wt,{text:function(){var e;
return(e=a.data())==null?void 0:e.body}})))),_.q(_.Eu,{data:function(){var e;
return(e=a.data())==null?void 0:e.actionButton}},{buttonViewModel:function(e){return _.q(_.Ju,{data:e.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.q(_.Eu,{data:function(){var e;
return(e=a.data())==null?void 0:e.dismissButton}},{buttonViewModel:function(e){return _.q(_.Ju,{data:e.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var g;((g=a.data())==null?0:g.disableLocalDismissBehavior)||d(!0)}})}}))}),"yt-alert-banner-view-model",{props:{data:_.SG,
fullbleed:_.SG,narrow:_.SG,isInRichGrid:_.SG}});var n1a;n1a=_.Au({chipViewModel:_.a$b,buttonViewModel:_.Ju});_.m$b=_.mt(o1a,{callbacks:{callback:!0}});_.am(o1a);_.Ws(_.m$b,"chips-shelf-view-model",{props:{data:_.SG,callback:_.Vs,enableSingleChipSelection:_.SG}});var n$b=_.Rr(function(a){a=_.Or(a,{disabled:!1});var b=a.active,c=a.disabled;a={};a=_.jt("ytSwitchShapeTrack",(a.ytSwitchShapeTrackActive=function(){return b()},a.ytSwitchShapeTrackDisabled=function(){return c()},a));
var d={};d=_.jt("ytSwitchShapeKnob",(d.ytSwitchShapeKnobActive=function(){return b()},d));
return _.q("switch-shape",{class:"ytSwitchShapeHost"},_.q("div",{class:a}),_.q("div",{class:d}))});var o$b=_.Rr(function(a){var b=_.Or(a,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),c=b.data;a=b.className;var d=b.handleOnTapEventInParent,e=b.parentActive;b=_.h(_.qt(function(){var u;return(u=e())!=null?u:c().switchedOnByDefault||!1}));
var g=b.next().value,k=b.next().value,m=function(){return c().isDisabled},n=_.Rl();
b=_.ot(function(u){return u.key==="Enter"?(u.preventDefault(),n.value.click(),!1):!0});
var r=_.ot(function(u){if(c().handleOnTapEventInParent||d())return!0;if(m())return!1;q1a(c(),g(),u);k(!g());return!1}),t={};
t=_.jt("ytSwitchButtonViewModelButton",(t.ytSwitchButtonViewModelTappable=function(){return!m()},t));
return _.q("switch-button-view-model",{class:_.jt("ytSwitchButtonViewModelHost",a)},_.q("button",{el:n,class:t,"on:click":r,"on:keydown":b,"aria-label":function(){return g()?c().a11yLabelSwitchedOn:c().a11yLabelSwitchedOff},
"aria-pressed":g,"aria-disabled":m},_.q(n$b,{active:g,disabled:m})))});_.am(u1a);_.p$b=_.mt(w1a,{callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}});_.am(w1a);var x1a;x1a=_.Au({buttonViewModel:_.Ju,switchButtonViewModel:o$b,avatarViewModel:_.Gv,accountLinkButtonViewModel:gXa});_.yQ=_.mt(A1a,{callbacks:{onTap:!0}});_.am(A1a);_.q$b=_.Rr(function(a){var b=a.data;var c=a.onTap;var d=a.onSwitch;var e=a.overrideDisabled;a=_.h(_.qt(function(){var t;return((t=s1a(r()))==null?void 0:t.switchedOnByDefault)||!1}));
var g=a.next().value,k=a.next().value;a=_.h(_.fh(!1,"Ri8Twb"));var m=a.next().value,n=a.next().value,r=function(){var t;if(!(t=b().switchButton)){var u=b();t=e==null?void 0:e();u={switchOnCommand:u.switchOnCommand,switchOffCommand:u.switchOffCommand,switchedOnByDefault:u.switchedOnByDefault,isDisabled:u.isDisabled,handleOnTapEventInParent:!0,a11yLabelSwitchedOn:u.a11yLabelSwitchedOn,a11yLabelSwitchedOff:u.a11yLabelSwitchedOff};t!==void 0&&(u.isDisabled=t);t={switchButtonViewModel:u}}return t};
return _.q("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.q(_.yQ,{data:function(){return{title:b().title,subtitle:b().attributedSubtitle,leadingImage:b().leadingImage,leadingAccessory:b().leadingAccessory,isDisabled:b().isDisabled}},
onTap:function(t){var u=s1a(r());!u||u.isDisabled||b().ignoreTapUntilCommandCompletes&&m()||(c==null||c(t),q1a(u,g(),t,b().ignoreTapUntilCommandCompletes,n),k(!g()),d==null||d(g()))},
trailingAccessory:_.q(_.Eu,{data:r},{switchButtonViewModel:function(t){return _.q(o$b,{data:t.data,parentActive:g,handleOnTapEventInParent:!!c})}})}))});var r$b=_.to("DOWNLOAD",{},"Download"),s$b=_.to("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),t$b=_.to("RETRY",{},"Retry"),u$b=_.to("PAUSE_DOWNLOADING",{},"Pause downloading"),v$b=_.to("RESUME_DOWNLOAD",{},"Resume download"),B1a={text:r$b,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},Mv={text:s$b,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},E1a={text:t$b,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
C1a={text:u$b,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},D1a={text:v$b,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var w$b=_.Rr(function(a){var b=function(){var m=a.data();m=_.Pu(m.rendererContext);var n;return(n=_.y(m,_.qu))==null?void 0:n.videoId},c=_.Mr(function(m){var n=b(),r=H1a(a.data());
return n?_.Jp(m,n):r?_.Kp(m,r):"TRANSFER_STATE_UNKNOWN"}),d=_.tu(_.DFa,b),e=_.Mr(function(m){return _.yFa(m,b(),H1a(a.data()))}),g=function(){return G1a(c(),d(),_.Pu(a.data().rendererContext),!!H1a(a.data()))},k=function(){return e()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.q("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:k},_.q(_.oi,{cond:function(){return!k()},
then:function(){return _.q(_.oi,{cond:g,then:function(m){return _.q(_.ni,{each:m},function(n){return _.q(_.yQ,{data:n,isCompact:a.isCompact,isMenuItem:a.isMenuItem,inPopup:a.inPopup})})}})}}))});
w$b.idomCompat=!0;var J1a;J1a=_.Au({listItemViewModel:A1a,downloadListItemViewModel:w$b,switchListItemViewModel:_.q$b});_.x$b=_.mt(_.K1a);_.am(_.K1a);var y$b=_.Rr(function(a){var b=a.data;var c=a.isOverlay;a={};return _.q("yt-course-perks-view-model",{class:_.jt("ytwCoursePerksViewModelHost",(a.ytwCoursePerksViewModelHostOverlay=c,a))},_.q("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.q(_.wt,{text:function(){return b().title}})),_.q("div",null,_.q(_.oi,{cond:function(){return b().perks},
then:function(d){return _.q(_.x$b,{data:function(){return{listItems:d()}},
isCompact:!0,isOverlay:c})}})))});_.Ws(y$b,"yt-course-perks-view-model",{props:{data:_.Vs,isOverlay:_.Vs}});_.Ws(_.Rr(function(a){var b=a.data;return _.q("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.q("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.q(_.wt,{text:function(){return b().title}})),_.q("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.q(_.wt,{text:function(){return b().progressSummary}})),_.q("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.q("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.rt({width:function(){return b().progressPercentage*100+"%"}})})))}),"yt-course-progress-view-model",{props:{data:_.SG}});var z$b=_.Rr(function(a){var b=_.Or(a,{}).data;return _.q("yt-progress-view-model",{class:"ytwProgressViewModelHost"},_.q(_.oi,{cond:function(){return b().progressSummary},
then:function(c){return _.q("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.q(_.wt,{text:c}))}}),_.q("div",{class:"ytwProgressViewModelHostProgressContainer"},_.q("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.q(_.wt,{text:function(){var c;
return(c=b())==null?void 0:c.leadingLabel}})),_.q("div",{class:"ytwProgressViewModelHostProgressBar"},_.q("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){var c;return"width: "+(((c=b())==null?void 0:c.progressPercentage)||0)*100+"%"}}))))});var zQ=_.Rr(function(a){var b=a.starNumber;var c=a.data;var d=function(){var e;return((e=c())==null?void 0:e.rating)||0};
return _.q(_.oi,{cond:function(){return b()},
then:function(e){return _.q(_.qi,null,_.q(_.pi,{when:function(){return d()>=e()-.25}},function(){return _.q("div",{class:"ytStarRatingViewModelHostStar"},_.q(_.tt,{icon:"STAR_FILLED"}))}),_.q(_.pi,{when:function(){return d()>=e()-.75}},function(){return _.q("div",{class:"ytStarRatingViewModelHostStar"},_.q(_.tt,{icon:"STAR_HALF"}))}),_.q(_.wna,null,function(){return _.q("div",{class:"ytStarRatingViewModelHostStar"},_.q(_.tt,{icon:"STAR_BORDER"}))}))}})}),A$b=_.Rr(function(a){a=a.data;
return _.q("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.q(zQ,{starNumber:1,data:a}),_.q(zQ,{starNumber:2,data:a}),_.q(zQ,{starNumber:3,data:a}),_.q(zQ,{starNumber:4,data:a}),_.q(zQ,{starNumber:5,data:a}))});_.Ws(_.Rr(function(a){var b=_.Or(a,{}).data;return _.q("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.q("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.q(_.wt,{text:function(){var c;return(c=b())==null?void 0:c.title}})),_.q("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.q(_.oi,{cond:function(){return b().starProgressViewModels},
then:function(c){return _.q("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.q(_.Eu,{data:c},{progressViewModel:z$b}))}}),_.q("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.q("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.q(_.wt,{text:function(){var c;
return(c=b())==null?void 0:c.averageRatingLabel}})),_.q(_.oi,{cond:function(){return b().zeroStateText},
then:function(c){return _.q("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.q(_.wt,{text:c}))}}),_.q(_.oi,{cond:function(){return b().starRatingViewModel},
then:function(c){return _.q("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.q(_.Eu,{data:c},{starRatingViewModel:A$b}))}}),_.q("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.q(_.wt,{text:function(){var c;
return(c=b())==null?void 0:c.totalRatingsCountLabel}})))))}),"yt-course-ratings-view-model",{props:{data:_.Vs}});var B$b;B$b={animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:"learningJourneyLoaderViewModelLoadingSvg"},name:"LEARNING_JOURNEY_LOADER_ICON",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}};_.C$b=_.Rr(function(a){var b=_.ou();_.ti(function(){requestAnimationFrame(function(){var c;(c=b.lottieEl)==null||c.addEventListener("DOMLoaded",function(){var d;(d=a.onLottieLoaded)==null||d.call(a)})})});
return _.q("yt-learning-journey-loader-view-model",{class:_.jt("learningJourneyLoaderViewModelHost",a.className),"data-target-id":function(){var c;return((c=a.data)==null?void 0:c.call(a).targetId)||""}},_.q(_.kt,{className:a.className,
animationName:function(){return B$b.animationConfig.name},
data:B$b,animationRef:b}))});_.Ws(_.C$b,"yt-learning-journey-loader-view-model",{props:{data:_.SG,className:_.Vs,onLottieLoaded:_.Vs}});var D$b=_.Rr(function(a){var b=a.data;a=_.h(_.fh(-1,"r4B6h"));var c=a.next().value,d=a.next().value,e=function(n){return c()===n},g=function(n){return b().correctAnswerIndex===n},k=function(){return c()!==-1},m=_.ot(function(){d(-1);
return!1});
return _.q("learning-journey-quiz-view-model",{class:"learningJourneyQuizViewModelHost",style:_.rt({background:function(){return Pv(Nv(b())).backgroundColor}})},_.q(_.oi,{cond:function(){return!!b().video},
then:function(){return _.q("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.rt({background:function(){return Pv(Nv(b())).videoBackgroundColor}})},_.q(_.Eu,{data:function(){return b().video}},{lockupViewModel:function(n){return _.q(uL,{data:n.data,
className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.q("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.q("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.q("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.q("div",{class:"learningJourneyQuizViewModelHostQuizHeader"},_.q("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
style:_.rt({color:function(){return Pv(Nv(b())).primaryTextColor}})},_.q(_.wt,{text:function(){var n=b(),r=k(),t=c()===b().correctAnswerIndex;
return r?t?n.successTitle:n.failureTitle:n.questionHeaderText}})),_.q(_.oi,{cond:k,
then:function(){return _.q("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover","on:click":m,role:"button","aria-label":"Reset","tab-index":"0"},_.q("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.rt({fill:function(){return Pv(Nv(b())).primaryTextColor}})},_.q("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"})))}})),
_.q("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
style:_.rt({color:function(){return Pv(Nv(b())).secondaryTextColor}})},_.q(_.wt,{text:function(){var n=b();
return k()?n.explanationText:n.questionSubheaderText}}))),_.q("div",{class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.q(_.ni,{each:function(){return b().optionsData||[]}},function(n,r){var t={};
return _.q("div",{class:_.jt("learningJourneyQuizViewModelHostQuizOptions",(t.learningJourneyQuizViewModelHostQuizHover=function(){return!k()},t.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return c()===b().correctAnswerIndex&&e(r())},t.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return c()!==b().correctAnswerIndex&&e(r())},t.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return k()&&!e(r())},t)),
"on:click":_.ot(function(){if(k())return!1;d(r());return!1}),
style:_.rt({background:function(){return k()&&e(r())?"":Pv(Nv(b())).optionColor}}),
role:"button","aria-disabled":k,"tab-index":"0"},_.q(_.oi,{cond:k,then:function(){return _.q("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var u=r();return g(u)?"0 0 24 24":"0 -960 960 960"},
style:_.rt({fill:function(){return Pv(Nv(b())).primaryTextColor}})},_.q("path",{d:function(){var u=r();
return g(u)?"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"}}))}}),_.q(_.wt,{text:n.optionText}))})))))});
D$b.idomCompat=!0;_.Ws(D$b,"learning-journey-quiz-view-model",{props:{data:_.SG}});var E$b=_.Rr(function(a){var b=_.Rl();_.Vu(b,function(){return a.data().rendererContext});
var c=_.Or(a,{palette:void 0,isLastItem:!1}),d=c.palette,e=c.isLastItem,g=function(){return a.data().isHighlighted},k=function(){var r;
return L1a((r=d())==null?void 0:r.iconDisabledColor)},m=function(){var r;
return L1a((r=d())==null?void 0:r.primaryTitleColor)},n=function(){var r;
return L1a((r=d())==null?void 0:r.secondaryTitleColor)};
c={};return _.q("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:b},_.q(_.Eu,{data:function(){return a.data().thumbnail}},{thumbnailViewModel:mL}),_.q("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.q("div",{class:_.jt("ytMacroMarkerListItemViewModelTimeDescription",(c.ytMacroMarkerListItemViewModelHighlighted=g,c)),
style:_.rt({"background-color":function(){return g()?m():k()},
color:function(){return g()?"":n()}})},_.q(_.wt,{text:function(){return a.data().timestamp}})),_.q("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.rt({"background-color":function(){return e()?"transparent":k()}})}),_.q("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(g()?m():n())}},_.q(_.wt,{text:function(){return a.data().title}}))))});_.AQ=_.Rr(function(a){function b(Tb){I("transform:translateX("+(_.Ei("HTML_DIR")==="rtl"?"":"-")+Tb+"px)")}
function c(Tb){return Math.min(Math.max(Tb,0),J()-aa())}
function d(){var Tb=V()+za();return e()?(Math.round(aa()/Tb)||1)*Tb:0}
var e=function(){return a.data().items||[]},g=function(){return a.data().previousButton},k=function(){return a.data().nextButton},m=function(){var Tb,tb;
return(tb=(Tb=a.disableArrows)==null?void 0:Tb.call(a))!=null?tb:!1},n=function(){var Tb;
return!((Tb=a.forceNarrowLayout)==null||!Tb.call(a))},r=_.Rl(),t=_.Rl(),u=_.h(_.fh(0,"yngx7d")),w=u.next().value,A=u.next().value;
u=_.h(_.fh(0,"rUOyGb"));var C=u.next().value,G=u.next().value,J=C;C=_.h(_.fh("","jv2kWc"));u=C.next().value;var I=C.next().value;C=_.h(_.fh(0,"Xb0f0d"));var R=C.next().value,ca=C.next().value,V=R;C=_.h(_.fh(0,"pt5wQ"));R=C.next().value;var fa=C.next().value,aa=R;C=_.h(_.fh(!1,"FfPefe"));var ma=C.next().value,Ba=C.next().value;C=_.h(_.fh(0,"kB5mhb"));R=C.next().value;var Da=C.next().value,za=R;C=_.h(_.fh(0,"dnDmUd"));var Fa=C.next().value,bb=C.next().value,kb=function(){var Tb,tb=(Tb=a.data())==null?
void 0:Tb.responsiveContainerConfiguration,Fb,dd;return tb?hZa(tb==null?void 0:tb.responsiveSize):(dd=(Fb=a.sizing)==null?void 0:Fb.call(a))!=null?dd:"STANDARD"};
C=_.kh(function(){return!m()&&w()>0},void 0,"ZIGxke");
R=_.kh(function(){return!m()&&w()<J()-aa()},void 0,"OJzhRd");
var Ua=function(){A(c(w()-d()));b(w())},Fc=function(){A(c(w()+d()));
b(w())},id=function(){r.value!==null&&wd()},Mb;
_.vi(function(){wd();window.ResizeObserver?(Mb=new ResizeObserver(_.Dy(id,0)),Mb.observe(r.value)):window.addEventListener("resize",id)});
_.wh(function(){if(window.ResizeObserver){var Tb;(Tb=Mb)==null||Tb.disconnect()}else window.removeEventListener("resize",id)});
var wd=function(){var Tb=r.value.clientWidth,tb=a.includeMargin!==void 0?a.includeMargin():!1,Fb;var dd=a.hasPeek!==void 0?a.hasPeek():!((Fb=a.data())==null||!Fb.hasPeek);Tb=_.dv({containerWidth:Tb,hasPeek:dd,sizing:kb(),marginSettings:tb?n()?4:1:0});Da(Tb.gutter);bb(Tb.margin);ca(Tb.itemWidth);Ba(Tb.maxContainerWidth<528||n());fa(Tb.maxContainerWidth);e()&&G((Tb.itemWidth+Tb.gutter)*e().length-Tb.gutter)};
return _.q("horizontal-shelf-view-model",{class:_.jt("ytwHorizontalShelfViewModelHost",a.className),el:r},_.q(_.oi,{cond:function(){return a.data().header},
then:function(){return _.q("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.rt({width:function(){return aa()+"px"},
padding:function(){return"0 "+Fa()+"px"}})},_.q(_.Eu,{data:function(){return a.data().header}},{sectionHeaderViewModel:function(Tb){return _.q(_.aQ,{data:Tb.data,
disableHorizontalPadding:!0,forceSmallLayout:ma,useResponsiveLayout:!0})}}))}}),_.q("div",{class:"ytwHorizontalShelfViewModelOuterContainer"},_.q("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.rt({width:function(){return aa()+"px"},
padding:function(){return"0 "+Fa()+"px"},
overflow:function(){return m()?"auto":"hidden"}})},_.q("div",{class:"ytwHorizontalShelfViewModelItems",
el:t,style:u},_.q(_.Eu,{data:e},{macroMarkerListItemViewModel:function(Tb,tb){return _.q("div",{style:_.rt({width:function(){return V()+"px"},
"margin-right":function(){return(tb()===e().length-1?0:za())+"px"}})},_.q(E$b,{data:Tb.data,
palette:_.Nr(a.palette),isLastItem:function(){return tb()===e().length-1}}))},
lockupViewModel:function(Tb,tb){var Fb=Tb.data;return _.q("div",{style:_.rt({width:function(){return V()+"px"},
"margin-right":function(){return(tb()===e().length-1?0:za())+"px"}})},_.q(uL,{data:Fb,
containerType:4,sizing:kb,protectBackground:a.protectBackground,thumbnailFixedWidth:function(){return M1a(Fb())+"px"},
thumbnailTargetWidth:function(){return M1a(Fb())}}))}}))),_.q(_.oi,{cond:C,
then:function(){return _.q("div",{class:"ytwHorizontalShelfViewModelLeftArrow"},_.q(_.Eu,{data:g},{buttonViewModel:function(Tb){return _.q(_.Ju,{data:Tb.data,onClick:Ua})}}))}}),_.q(_.oi,{cond:R,
then:function(){return _.q("div",{class:"ytwHorizontalShelfViewModelRightArrow"},_.q(_.Eu,{data:k},{buttonViewModel:function(Tb){return _.q(_.Ju,{data:Tb.data,onClick:Fc})}}))}})))});
_.AQ.idomCompat=!0;var F$b=_.Rr(function(a){var b=function(){return a.data().targetId||""},c=function(){var m;
return((m=a.data())==null?void 0:m.expansionEntityKey)||""},d=_.tu(_.bPa,c),e=function(){var m;
return d()?d().value===b():(m=a.data())==null?void 0:m.isExpanded},g=function(){e()?_.Kr(_.vu("stringEntity",c(),{key:c(),
value:""})):_.Kr(_.vu("stringEntity",c(),{key:c(),value:b()}))},k={};
return _.q("yt-accordion-item-view-model",{class:_.jt("ytAccordionItemViewModelHost",a.className),"data-target-id":b},_.q("div",{class:"ytAccordionItemViewModelContainer"},_.q("div",{class:"ytAccordionItemViewModelLeftSection"},_.q(_.wt,{text:function(){return a.data().title},
className:"ytAccordionItemViewModelLabel"})),_.q("div",{class:"ytAccordionItemViewModelRightSection"},_.q(_.Eu,{data:function(){return e()?a.data().expandButton:a.data().collapseButton}},{buttonViewModel:function(m){return _.q(_.Ju,{data:m.data,
className:"ytAccordionItemViewModelToggleButton",onClick:g})}}))),_.q("div",{class:"ytAccordionItemViewModelContainer"},_.q("div",{class:_.jt("ytAccordionItemViewModelContent",(k.ytAccordionItemViewModelExpanded=function(){return e()},k))},_.q(_.wt,{text:function(){return a.data().description},
className:"ytAccordionItemViewModelSubtitle"}),_.q(_.Eu,{data:function(){return a.data().content}},{horizontalShelfViewModel:function(m){return _.q(_.AQ,{data:m.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))});_.G$b=_.Rr(function(a){var b=_.h((0,_.g3b)(a.data)).next().value;return _.q("yt-accordion-view-model",{class:"ytAccordionViewModelHost","data-target-id":function(){return a.data().targetId||""}},_.q(_.Eu,{data:function(){return b().contents}},{accordionItemViewModel:function(c){return _.q(F$b,{data:c.data,
className:"ytAccordionViewModelRow"})}}))});_.Ws(_.G$b,"yt-accordion-view-model",{props:{data:_.SG}});_.Ws(_.Rr(function(a){var b=_.ot(function(){_.Js(a.data().searchEndpoint||{});return!1});
return _.q("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},"hello world",_.q("button",{"on:click":b,"aria-label":"Search"},_.q(_.tt,{icon:"SEARCH"})))}),"yt-learning-journey-zero-state",{props:{data:_.SG}});var H$b=_.Rr(function(a){var b=a.data;return _.q("ytvl-live-leaderboard-item-action-content-view-model",{class:_.jt("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.q(_.wt,{text:function(){var c;return(c=b())==null?void 0:c.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.q(_.Eu,{data:function(){return b().actionButton}},{buttonViewModel:function(c){return _.q(_.Ju,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:c.data})}}))});var I$b=_.Rr(function(a){var b=a.data;return _.q("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.jt("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.q(_.wt,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var c;return(c=b())==null?void 0:c.displayName},
ellipsisTruncate:!0}),_.q(_.Eu,{data:function(){return b().badge}},{buttonViewModel:function(c){return _.q(_.Ju,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:c.data})}}))});_.Ws(_.Rr(function(a){var b=a.data;return _.q("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.q("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.q(_.wt,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var c;return(c=b())==null?void 0:c.rank}})),_.q("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.q(_.Eu,{data:function(){return b().avatar}},{avatarViewModel:_.LK})),_.q("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.q(_.Eu,{data:function(){return b().content}},{liveLeaderboardItemChannelContentViewModel:I$b,
liveLeaderboardItemActionContentViewModel:H$b})),_.q(_.wt,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var c;return(c=b())==null?void 0:c.points}}))}),"ytvl-live-leaderboard-item-view-model",{props:{data:_.SG}});_.Ws(_.Rr(function(a){var b=a.data;return _.q("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.q(_.wt,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var c,d;return(c=b())==null?void 0:(d=c.ranking)==null?void 0:d.rank}}),_.q("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.q(_.Eu,{data:function(){return b().avatar}},{avatarViewModel:_.LK})),_.q(_.wt,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var c,d;return(c=b())==null?void 0:(d=c.channelContent)==null?void 0:d.channelName}}),_.q(_.wt,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var c;return(c=b())==null?void 0:c.points}}))}),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.SG}});var J$b=_.Rr(function(a){a=_.Or(a,{wrapper:!1}).wrapper;return _.q(_.oi,{cond:a,then:function(){return _.q("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.q("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.q("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})});
J$b.idomCompat=!0;var K$b=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],L$b=_.Rr(function(a){var b=a.data;var c=_.Rl(),d=_.kh(function(){return b().command},void 0,"CGDtVe");
_.yh(function(){d()&&_.Fs(d(),{form:{element:c.value}})},"TMrrEb");
return _.q("div",{el:c},_.q(_.oi,{cond:function(){return b().qrCodeImage},
then:function(e){return _.q(_.Ss,{data:e,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.q(_.oi,{cond:function(){return b().spinner},
then:function(){return _.q(J$b,null)}})}}),_.q(_.oi,{cond:function(){return b().label},
then:function(e){return _.q(_.wt,{text:e,className:"YtQrCodeRendererHostLabel"})}}),_.q(_.oi,{cond:function(){return b().labels},
then:function(e){return _.q("div",{class:"YtQrCodeRendererHostLabels"},_.q(_.ni,{each:e},function(g){return _.q(_.wt,{text:g})}))}}))});_.Ws(_.Rr(function(a){var b=a.data;var c=_.kh(function(){return b().qrEntityKey},void 0,"joYCxd"),d=_.kh(function(){return b().deleteEntityOnDismiss},void 0,"x3yAde"),e=_.kh(function(){return b().command},void 0,"dJe1Re"),g=_.tu(nSa,c);
a=_.kh(function(){return b().style&&K$b.includes(b().style)},void 0,"rGILzf");
var k=_.Rl();_.$l(k,{visibilityCallback:function(m){m&&e()&&_.Fs(e())},
showOption:{calledOnce:!0,state:"visible"}});_.vi(function(){_.wh(function(){d()&&c()&&_.Ir().dispatch(_.vu("qrCodeEntity",c()))})});
return _.q("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:k},_.q(_.oi,{cond:a,then:function(){return _.q(_.oi,{cond:g,then:function(m){return _.q(L$b,{data:m})}})}}))}),"yt-qr-code-renderer",{props:{data:_.SG}});var M$b=_.Rr(function(a){var b=a.data;var c=a.topbarOffset;var d,e=((d=_.v().resolve(_.Wi(_.Ns)))==null?void 0:d())||!1;return _.q("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var g=b();var k,m,n=e?(k=g.config)==null?void 0:k.darkThemeBackgroundColor:(m=g.config)==null?void 0:m.lightThemeBackgroundColor;g=n?_.Bq(n):void 0;g="background-color: "+g+";";c!==void 0&&(g+="top: -"+c()+"px;");return g},
"aria-hidden":!0},_.q(_.oi,{cond:function(){var g,k,m;return!!((g=b().backgroundImageConfig)==null?0:(k=g.image)==null?0:(m=k.sources)==null?0:m.length)},
then:function(){return _.q(_.Ss,{data:function(){var g;return(g=b().backgroundImageConfig)==null?void 0:g.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.q("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+N1a(e,b().gradientColorConfig)+";"}}))});
M$b.idomCompat=!0;var N$b=_.mt(O1a);_.am(O1a);var O$b=_.Rr(function(a){var b=a.data;var c=a.isOverlay;return _.q("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.q("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.q(_.Eu,{data:function(){return b().header}},{sectionHeaderViewModel:function(d){return _.q(_.aQ,{data:d.data,
isOverlay:c})}})),_.q("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.q(_.Eu,{data:function(){return b().channelInfoButtons}},{flexibleActionsViewModel:uXb})),_.q("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.q(_.Eu,{data:function(){return b().description}},{descriptionPreviewViewModel:function(d){return _.q(N$b,{data:d.data,
isOverlay:c})}})))});
O$b.idomCompat=!0;var P$b=_.Rr(function(a){var b=a.data;var c={};return _.q("factoid-view-model",{class:_.jt("ytwFactoidViewModelHost",(c.ytwFactoidViewModelHostOverlay=a.isOverlay,c))},_.q(_.wt,{text:function(){return b().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.q(_.wt,{text:function(){return b().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))});
P$b.idomCompat=!0;var Q$b=_.Rr(function(a){var b=a.data;var c=a.isOverlay;return _.q("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.q(_.Eu,{data:function(){return b().factoids}},{factoidViewModel:function(d){return _.q(P$b,{data:d.data,
isOverlay:c})}}))});
Q$b.idomCompat=!0;_.R$b=_.Rr(function(a){var b=a.data;var c=a.isOverlay;return _.q("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.q(_.Eu,{data:function(){return b().items}},{channelInfoViewModel:function(d){return _.q("div",{class:"ytwCourseMetadataViewModelHostItem"},_.q(O$b,{data:d.data,
isOverlay:c}))},
coursePerksViewModel:function(d){return _.q("div",{class:"ytwCourseMetadataViewModelHostItem"},_.q(y$b,{data:d.data,isOverlay:c}))},
descriptionPreviewViewModel:function(d){return _.q("div",{class:"ytwCourseMetadataViewModelHostItem"},_.q(N$b,{data:d.data,isOverlay:c}))},
factoidsRowViewModel:function(d){return _.q("div",{class:"ytwCourseMetadataViewModelHostItem"},_.q(Q$b,{data:d.data,isOverlay:c}))}}))});var S$b=_.Rr(function(a){return _.q("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.q(_.Eu,{data:function(){return a.data().content}},{courseMetadataViewModel:function(b){return _.q(_.R$b,{data:b.data,
isOverlay:a.isOverlay})}}))});var T$b=_.Rr(function(a){var b=a.data;a=a.className;var c=_.Rl(),d=function(){var g;return _.Qu((g=b())==null?void 0:g.rendererContext)},e={};
e=(e["dynamic-text-view-model-wiz"]=!0,e["dynamic-text-view-model-wiz--tappable"]=function(){return d()},e);
_.Vu(c,function(){var g;return(g=b())==null?void 0:g.rendererContext});
return _.q("yt-dynamic-text-view-model",{el:c,role:function(){return d()?"link":void 0},
tabindex:function(){return d()?0:void 0},
class:_.jt(a,e)},_.q("h1",{class:"dynamic-text-view-model-wiz__h1","aria-label":function(){var g,k,m;return(m=(k=_.y((g=b())==null?void 0:g.rendererContext,_.Wu))==null?void 0:k.label)!=null?m:""}},_.q(_.wt,{text:function(){return b().text},
userInput:!0})))});
T$b.idomCompat=!0;_.U$b=_.Rr(function(a){var b=a.data;var c=a.isPositionRelative;var d=_.Rl(),e=_.S1a("(max-width: 527.9px)"),g=function(){var k,m;return(m=(k=b())==null?void 0:k.style)!=null?m:"IMAGE_BANNER_STYLE_FULL_BLEED"};
a={};a=(a["yt-image-banner-view-model-wiz"]=!0,a["yt-image-banner-view-model-wiz--inset"]=function(){return T1a(g())},a["yt-image-banner-view-model-wiz--position-absolute"]=function(){return _.zh(!0)&&!(c==null?0:c())},a["yt-image-banner-view-model-wiz--small-inset"]=function(){return T1a(g())&&e()},a["yt-image-banner-view-model-wiz--tappable"]=function(){var k;
return _.zh(d==null?void 0:d.value)&&_.Qu((k=b())==null?void 0:k.rendererContext)},a);
_.Vu(d,function(){var k;return(k=b())==null?void 0:k.rendererContext});
return _.q("yt-image-banner-view-model",{el:d,class:_.jt(a)},_.q(_.oi,{cond:function(){var k;return(k=b())==null?void 0:k.image},
then:function(){return _.q(_.Ss,{data:function(){return b().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.q(_.Eu,{data:function(){var k;
return(k=b())==null?void 0:k.overlays}},{thumbnailHoverOverlayViewModel:qZb}))});
_.U$b.idomCompat=!0;var Qv;Qv=_.Au({descriptionPreviewViewModel:O1a,dynamicTextViewModel:T$b,contentPreviewImageViewModel:_.rL,contentMetadataViewModel:d0b,flexibleActionsViewModel:SWa,attributionViewModel:X_b,imageBannerViewModel:_.U$b,decoratedAvatarViewModel:uZb,cinematicContainerViewModel:M$b,flexibleContainer:S$b});_.V$b=_.mt(_.Z1a);_.am(_.Z1a);_.Ws(_.Rr(function(a){var b=_.h(_.fh(!1,"vVRl3b")),c=b.next().value,d=b.next().value;return _.q("yt-official-card-view-model",{class:_.jt("ytOfficialCardViewModelHost",a.className),style:_.rt({"background-color":function(){var e,g=K0a((e=a.data())==null?void 0:e.backgroundColor);return g?_.Cq(g):void 0}})},_.q(_.Eu,{data:function(){return a.data().header}},{pageHeaderViewModel:function(e){return _.q(_.V$b,{data:e.data,
noPadding:!0})}}),_.q(_.Eu,{data:function(){return a.data().contents}},{horizontalShelfViewModel:_.AQ}),_.q(_.oi,{cond:c,
then:function(){return _.q("div",{class:"ytOfficialCardViewModelExpandedContent"},_.q(_.Eu,{data:function(){return a.data().expandedContents}},{horizontalShelfViewModel:function(e){return _.q(_.AQ,{data:e.data,
sizing:"MINI"})}}),_.q("div",{class:"ytOfficialCardViewModelCollapseButton"},_.q(_.Eu,{data:function(){return a.data().collapseButton}},{buttonViewModel:function(e){return _.q(_.Ju,{data:e.data,
onClick:function(){d(!c())}})}})))},
else:function(){return _.q("div",{class:"ytOfficialCardViewModelExpandButton"},_.q(_.Eu,{data:function(){return a.data().expandButton}},{buttonViewModel:function(e){return _.q(_.Ju,{data:e.data,
onClick:function(){d(!c())}})}}))}}))}),"yt-official-card-view-model",{props:{data:_.SG,
className:_.SG}});var $1a=_.Au({buttonViewModel:_.Ju});_.am(a2a);_.dt(a2a,"ytw-search-friction-view-model",{propNames:["data"]});_.BQ=_.Rr(function(a){var b=_.Rl(),c,d=(c=_.v().resolve(_.Wi(_.Ns)))==null?void 0:c();_.yh(function(){var e=b.value;var g=new jcb,k=new Map(g.JSC$7159_sanitizerTable.globalAttributePolicies);k.set("style",{policyAction:4});g.JSC$7159_sanitizerTable=new Gy(g.JSC$7159_sanitizerTable.allowedElements,g.JSC$7159_sanitizerTable.elementPolicies,g.JSC$7159_sanitizerTable.allowedGlobalAttributes,k,g.JSC$7159_sanitizerTable.globallyAllowedAttributePrefixes);var m=["data-time"];if(m===void 0)k=new Set(g.JSC$7159_sanitizerTable.globallyAllowedAttributePrefixes),
k.add("data-"),g.JSC$7159_sanitizerTable=new Gy(g.JSC$7159_sanitizerTable.allowedElements,g.JSC$7159_sanitizerTable.elementPolicies,g.JSC$7159_sanitizerTable.allowedGlobalAttributes,g.JSC$7159_sanitizerTable.globalAttributePolicies,k);else{k=new Set(g.JSC$7159_sanitizerTable.allowedGlobalAttributes);m=_.h(m);for(var n=m.next();!n.done;n=m.next()){n=n.value;if(n.indexOf("data-")!==0)throw Error("ta`"+n);k.add(n)}g.JSC$7159_sanitizerTable=new Gy(g.JSC$7159_sanitizerTable.allowedElements,g.JSC$7159_sanitizerTable.elementPolicies,
k,g.JSC$7159_sanitizerTable.globalAttributePolicies,g.JSC$7159_sanitizerTable.globallyAllowedAttributePrefixes)}k=new Set(g.JSC$7159_sanitizerTable.allowedGlobalAttributes);k.add("class");g.JSC$7159_sanitizerTable=new Gy(g.JSC$7159_sanitizerTable.allowedElements,g.JSC$7159_sanitizerTable.elementPolicies,k,g.JSC$7159_sanitizerTable.globalAttributePolicies,g.JSC$7159_sanitizerTable.globallyAllowedAttributePrefixes);_.Yd(e,_.ecb(g.build(),c2a(a.text())));d2a(b.value)},"nNTkgb");
c={};return _.q("div",null,_.q("markdown-div",{class:_.jt("ytwMarkdownDivHost",(c.ytwMarkdownDivDark=d,c.ytwMarkdownDivHostSmall=function(){var e;return((e=a.isSmallText)==null?void 0:e.call(a))||!1},c)),
el:b}))});
_.BQ.idomCompat=!0;var W$b=_.Rr(function(a){var b=a.imageData;var c=_.Nr(a.isInList,!1),d=function(){return c()?{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 _.q("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.q(_.oi,{cond:function(){return b().image},
then:function(e){return _.q(_.Ss,{data:e,alt:function(){return d().alt},
contentMode:function(){return d().contentMode},
targetWidth:function(){return d().targetWidth},
targetHeight:function(){return d().targetHeight},
className:function(){return d().className}})}}),_.q("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.q("div",{class:_.jt("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.q(_.wt,{text:function(){return b().title}})),_.q(_.ni,{each:function(){var e;
return(e=b().description)!=null?e:[]}},function(e){return _.q("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.q(CQ,{content:e}))})))}),X$b=_.Rr(function(a){var b=a.list;
var c=function(){var d;return(d=b().items)!=null?d:[]};
return _.q("div",{class:"ytwGenAiRichTextViewModelListContent"},_.q(_.oi,{cond:function(){return b().title},
then:function(d){return _.q("div",{class:_.jt("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.q(_.wt,{text:d}))}}),_.q(_.oi,{cond:function(){return b().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.q("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.q(_.ni,{each:c},function(d){return _.q("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.q(CQ,{content:d,isInList:!0}))}))}}),_.q(_.oi,{cond:function(){return b().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.q("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.q(_.ni,{each:c},function(d){return _.q("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.q(CQ,{content:d,isInList:!0}))}))}}),_.q(_.oi,{cond:function(){return b().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.q("div",{class:"ytwGenAiRichTextViewModelImageList"},_.q(_.ni,{each:c},function(d){return _.q("div",{class:"ytwGenAiRichTextViewModelListItem"},_.q(CQ,{content:d,isInList:!0}))}))}}))}),Y$b=_.Rr(function(a){var b=a.table;
return _.q("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.q("thead",null,_.q("tr",null,_.q(_.ni,{each:function(){var c,d;return(d=(c=b().header)==null?void 0:c.cells)!=null?d:[]}},function(c){return _.q("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.q(_.ni,{each:function(){return c.contents}},function(d){return _.q(CQ,{content:d})}))}))),_.q("tbody",null,_.q(_.ni,{each:function(){var c;
return(c=b().rows)!=null?c:[]}},function(c){return _.q("tr",null,_.q(_.ni,{each:function(){return c.cells}},function(d){return _.q("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.q(_.ni,{each:function(){return d.contents}},function(e){return _.q(CQ,{content:e})}))}))})))}),CQ=_.Rr(function(a){var b=a.content;
var c=_.Nr(a.isInList,!1),d=function(){var e,g;return(g=(e=b().contentBlock)==null?void 0:e.contents)!=null?g:[]};
return _.q("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.q(_.oi,{cond:function(){return b().text},
then:function(e){return _.q(_.wt,{className:"ytwGenAiRichTextViewModelText",text:e})}}),_.q(_.oi,{cond:function(){return b().image},
then:function(e){return _.q(W$b,{imageData:e,isInList:c})}}),_.q(_.oi,{cond:function(){return b().list},
then:function(e){return _.q(X$b,{list:e})}}),_.q(_.oi,{cond:function(){return b().contentBlock},
then:function(){return _.q("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.q(_.ni,{each:d},function(e){return _.q(CQ,{content:e,isInList:!1})}))}}),_.q(_.oi,{cond:function(){return b().table},
then:function(e){return _.q(Y$b,{table:e})}}))}),Z$b=_.Rr(function(a){var b={};
b=_.lt("ytwGenAiRichTextViewModelHost",(b.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.aj("search_overview_link_style")),b));return _.q("gen-ai-rich-text-view-model",{class:b},_.q(CQ,{content:function(){return a.data().content}}))});_.am(e2a);_.am(Rv);_.$$b=_.Rr(function(a){var b=a.data;var c=function(){var G;return((G=b().loadingUi)!=null?G:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},d=function(){return b().isLoading&&(c()==="UNSPECIFIED"||c()==="GHOST_CARD")},e=function(){return!b().isLoading},g=function(){return!!b().content&&!b().contents},k=function(){return!!b().contents},m=function(){return!!b().nextQueryButtons},n=function(){return b().isLoading&&c()==="INVISIBLE"},r=function(){var G,J;
return(J=(G=b().headerIcon)==null?void 0:G.iconType)!=null?J:""},t=function(){var G;
return(G=b().content)!=null?G:""},u=function(){return!!b().sourcesSection},w,A=!((w=_.v().resolve(_.Wi(_.Ns)))==null||!w()),C=_.kh(function(){var G=[],J=b().contents;
if(J)for(var I=0;I<J.length;I++){var R=_.y(J&&J[I],yEb);R&&G.push(R)}return G},void 0,"ycU97e");
_.vi(function(){b().isLoading||_.Jo("so_re",void 0,"search_overview_answer")});
return _.q("ytd-overview-answer-view-model",{class:function(){var G={};G=(G.ytdOverviewAnswerViewModelHost=!0,G.ytdOverviewAnswerViewModelDarkBackground=A&&!n(),G.ytdOverviewAnswerViewModelLightBackground=!A&&!n(),G);return _.lt(G)}},_.q(_.oi,{cond:function(){return!n()},
then:function(){return _.q(_.Vh,null,_.q("h2",null,_.q("div",{class:"ytdOverviewAnswerViewModelHeader"},_.q(_.oi,{cond:r,then:function(G){return _.q("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.q(_.tt,{icon:G}))}}),_.q("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.q("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return b().headerText}),_.q("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.q(_.wt,{text:function(){return b().headerSubtext}}))))),_.q(_.oi,
{cond:d,
then:function(){return e2a()}}),_.q(_.oi,{cond:e,
then:function(){return _.q(_.Vh,null,_.q(_.oi,{cond:g,then:function(){return _.q("div",{class:"ytdOverviewAnswerViewModelText"},_.q(_.BQ,{text:t,isSmallText:!0}))}}),_.q(_.oi,{cond:k,
then:function(){return _.q("div",{class:"ytdOverviewAnswerViewModelRichText"},_.q(_.ni,{each:C},function(G){return _.q(Z$b,{data:G})}))}}),_.q(_.oi,{cond:m,
then:function(){return _.q("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.q(_.Eu,{data:function(){return b().nextQueryButtons}},{buttonViewModel:function(G){return _.q(_.Ju,{data:G.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.AQ}))}}),_.q("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.q("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.q(_.oi,{cond:function(){return!!_.y(b().likeButtonViewModel,WWa)&&!!_.y(b().dislikeButtonViewModel,XWa)},
then:function(){return _.q("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.q(_.wXb,{data:function(){return _.y(b().likeButtonViewModel,WWa)},
disableIconAnimation:!0}),_.q(_.vXb,{data:function(){return _.y(b().dislikeButtonViewModel,XWa)}}))}})),_.q(_.oi,{cond:function(){var G;
return(G=b().sourcesSection)==null?void 0:G.headerText},
then:function(G){return _.q("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.q(_.wt,{text:G}))}})),_.q(_.oi,{cond:u,
then:function(){return _.q("div",{class:"ytdOverviewAnswerViewModelSources"},_.q(_.Eu,{data:function(){var G;return(G=b().sourcesSection)==null?void 0:G.sourcesShelf}},{buttonViewModel:_.Ju,
horizontalShelfViewModel:function(G){return _.q(_.AQ,{data:G.data,includeMargin:!0,hasPeek:!0})}}))}}),_.q(_.oi,{cond:function(){return b().disclaimerText},
then:function(){return _.q("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.q(_.wt,{text:function(){return b().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))});var aac=_.Rr(function(a){var b=a.data;var c={};return _.q("transcript-segment-view-model",{class:_.jt("ytwTranscriptSegmentViewModelHost",(c.ytwTranscriptSegmentViewModelHostActive=a.active,c.ytwTranscriptSegmentViewModelHostModern=_.x("enable_timeline_view_modern_transcript"),c))},_.q(_.wt,{text:function(){var d,e,g;return(g=(d=b())==null?void 0:d.attributedText)!=null?g:{content:(e=b())==null?void 0:e.simpleText}},
linkInheritColor:!0}))});var bac=_.Rr(function(a){var b=a.data;return _.q("div",{class:"yt-video-attributes-section-view-model__header"},_.q("h3",{class:"yt-video-attributes-section-view-model__title"},function(){return b().headerTitle}),_.q(_.oi,{cond:function(){return b().headerSubtitle},
then:function(){return _.q("span",{class:"yt-video-attributes-section-view-model__subtitle"},function(){return b().headerSubtitle})}}))}),cac=_.Rr(function(a){function b(C){return Math.max(Math.min(C,0),r()-m())}
var c=a.data;var d=_.Rl(),e=_.Rl();a=_.h(_.fh(0,"ucDlDf"));var g=a.next().value,k=a.next().value,m=g;a=_.h(_.fh(0,"lHzSub"));g=a.next().value;var n=a.next().value,r=g;a=_.h(_.fh(0,"Q8fDIe"));var t=a.next().value,u=a.next().value;_.vi(function(){var C=function(){k(e.value.scrollWidth);n(d.value.clientWidth)};
C();if(window.ResizeObserver){var G=new ResizeObserver(C);G.observe(d.value);_.wh(function(){G.disconnect()})}});
var w=function(){u(b(t()+r()))},A=function(){u(b(t()-r()))};
return _.q("yt-video-attributes-section-view-model",null,_.q("div",{class:"yt-video-attributes-section-view-model"},_.q(_.oi,{cond:function(){return c().headerTitle},
then:function(){return _.q(bac,{data:c})}}),_.q("div",{class:_.jt("yt-video-attributes-section-view-model__video-attributes","yt-video-attributes-section-view-model__scroll-container"),
el:d},_.q("div",{class:"yt-video-attributes-section-view-model__video-attributes-container",style:_.rt({transform:function(){var C=t();_.Ei("HTML_DIR")==="rtl"&&(C*=-1);return"translateX("+C+"px)"}}),
el:e},_.q(_.Eu,{data:function(){return c().videoAttributeViewModels}},{videoAttributeViewModel:q0b}))),_.q(_.Eu,{data:function(){return c().footerButton}},{buttonViewModel:function(C){return _.q(_.Ju,{data:C.data,
className:"yt-video-attributes-section-view-model__footer-button"})}}),_.q(_.oi,{cond:function(){return t()<0&&c().previousButton},
then:function(){return _.q("div",{class:"yt-video-attributes-section-view-model__left-arrow"},_.q(_.Eu,{data:function(){return c().previousButton}},{buttonViewModel:function(C){return _.q(_.Ju,{data:C.data,
onClick:w})}}))}}),_.q(_.oi,{cond:function(){return t()>r()-m()&&c().nextButton},
then:function(){return _.q("div",{class:"yt-video-attributes-section-view-model__right-arrow"},_.q(_.Eu,{data:function(){return c().nextButton}},{buttonViewModel:function(C){return _.q(_.Ju,{data:C.data,
onClick:A})}}))}})))});
cac.idomCompat=!0;var dac=_.Rr(function(a){var b=a.data;var c=a.active;var d={},e={};return _.q("timeline-item-view-model",{class:_.jt("ytwTimelineItemViewModelHost",(d.ytwTimelineItemViewModelHostChapterChild=a.chapterChild,d.ytwTimelineItemViewModelModern=_.x("enable_timeline_view_modern_transcript"),d))},_.q("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.q("div",{class:_.jt("ytwTimelineItemViewModelTimestamp",(e.ytwTimelineItemViewModelTimestampActive=c,e))},function(){return b().timestamp})),_.q("div",
{class:"ytwTimelineItemViewModelContentItems"},_.q(_.Eu,{data:function(){return b().contentItems}},{transcriptSegmentViewModel:function(g){return _.q(aac,{data:g.data,
active:c})},
videoAttributesSectionViewModel:cac})))});var eac=_.Rr(function(a){var b=a.data;a={};return _.q("timeline-chapter-view-model",{class:_.jt("ytwTimelineChapterViewModelHost")},_.q("div",{class:_.jt("ytwTimelineChapterViewModelTitle",(a.ytwTimelineChapterViewModelModern=_.x("enable_timeline_view_modern_transcript"),a))},function(){return b().title}),_.q(_.Eu,{data:function(){return b().contents}},{timelineItemViewModel:function(c){return _.q(dac,{data:c.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(c){return _.q(cac,{data:c.data})}}))});var fac=_.Rr(function(a){var b=a.data;var c=_.Rl(),d=_.tu(_.iSa,function(){var g;return(g=b().markersEngagementPanelSyncEntityKey)!=null?g:""}),e=function(){var g;
return((g=d())==null?void 0:g.activeItemIndex)===b().index};
a=_.ot(function(g){var k,m,n,r,t;return _.l(function(u){if(u.nextAddress==1)return g.stopPropagation(),_.wXa(_.Ou(g),c.value,["A".toString(),"BUTTON".toString()])?u.return():(k=_.Es(b().onTap))?_.p(u,_.nu(),2):u.return();m=u.yieldResult;r=(n=_.y(k,_.Vn))==null?void 0:n.startTimeSeconds;r===void 0||(t=m)!=null&&t.seekTo(r,!0);_.se(u)})});
return _.q("macro-markers-panel-item-view-model",{class:_.jt("ytwMacroMarkersPanelItemViewModelHost",{"is-active":e}),el:c,"on:click":a,tabindex:0},_.q(_.Eu,{data:function(){var g;return(g=b())==null?void 0:g.item}},{timelineChapterViewModel:function(g){return _.q(eac,{data:g.data,
active:e})},
timelineItemViewModel:function(g){return _.q(dac,{data:g.data,active:e})},
videoAttributeViewModel:q0b}))});
fac.idomCompat=!0;_.Ws(fac,"macro-markers-panel-item-view-model",{props:{data:_.SG}});_.Ws(cac,"yt-video-attributes-section-view-model",{props:{data:_.SG}});var gac=_.Rr(function(a){var b=function(){var c,d,e;return(e=(c=a.data().leadingLogoAccessibility)==null?void 0:(d=c.accessibilityData)==null?void 0:d.label)!=null?e:""};
return _.q("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.q(_.oi,{cond:function(){return a.data().leadingLogo},
then:function(c){return _.q(_.Ss,{className:"ytwFantasySectionHeaderViewModelLogo",data:c,alt:b})}}),_.q("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.q(_.wt,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return a.data().title}}),_.q(_.wt,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return a.data().subtitle}})),_.q(_.Eu,{data:function(){return a.data().trailingButton}},{buttonViewModel:function(c){return _.q(_.Ju,{data:c.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))});var hac=_.Rr(function(a){var b={};b=_.jt("ytwFantasyTeamViewModelHost",(b.ytwFantasyTeamViewModelCompact=function(){var e;return!((e=a.compact)==null||!e.call(a))},b.ytwFantasyTeamViewModelUser=function(){return a.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},b.ytwFantasyTeamViewModelOpponent=function(){return a.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},b));
var c=function(){var e,g,k;return(k=(e=a.data().teamLogoAccessibility)==null?void 0:(g=e.accessibilityData)==null?void 0:g.label)!=null?k:""},d=_.tu(kSa,function(){return a.data().teamEntityKey});
return _.q("ytw-fantasy-team-view-model",{class:b},_.q(_.oi,{cond:function(){return a.data().teamLogo},
then:function(e){return _.q(_.Ss,{className:"ytwFantasyTeamViewModelLogo",data:e,alt:c})}}),_.q("div",{class:"ytwFantasyTeamViewModelMetadata"},_.q("div",{class:"ytwFantasyTeamViewModelHeader"},_.q(_.wt,{className:"ytwFantasyTeamViewModelScore",
text:function(){var e;return(e=d())==null?void 0:e.score}}),_.q(_.tt,{icon:function(){var e;
return(e=d())==null?void 0:e.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.q(_.wt,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var e;return(e=d())==null?void 0:e.projectedScore}})),_.q(_.wt,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return a.data().primaryText}}),_.q(_.wt,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return a.data().secondaryText}}),_.q(_.wt,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return a.data().tertiaryText}})),_.q(_.wt,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var e;return(e=d())==null?void 0:e.score}}))});_.Ws(_.Rr(function(a){return _.q("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.q("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.q(_.Eu,{data:function(){return a.data().summaryHeader}},{fantasySectionHeaderViewModel:gac})),_.q(_.Eu,{data:function(){return a.data().userTeam}},{fantasyTeamViewModel:hac}),_.q(_.Eu,{data:function(){return a.data().opponentTeam}},{fantasyTeamViewModel:hac}))}),"fantasy-league-summary-view-model",{props:{data:_.SG}});var iac=_.Rr(function(a){var b=_.Or(a,{shape:{},useCustomTabRenderable:!1}),c=b.shape;b=b.useCustomTabRenderable;var d=a.customTabRenderable,e=function(){return c().disabled},g=function(){return c().selected},k=function(){return c().title},m=_.Rl();
a=_.ot(function(t){var u;if(!e()&&((u=c().aTagConfig)==null?0:u.onclick))c().aTagConfig.onclick(t);return!1});
var n=_.ot(function(t){if(t.key==="Enter"||t.key==="ArrowUp"||t.key==="ArrowDown")t.preventDefault(),m.value.click();return!1}),r={};
return _.q("yt-tab-shape",{class:_.jt("yt-tab-shape-wiz",function(){return c().className},(r["yt-tab-shape-wiz__tab--last-tab"]=function(){return c().isLastTab},r["yt-tab-shape-wiz--host-disabled"]=e,r["yt-tab-shape-wiz--host-clickable"]=!d,r)),
role:d?void 0:"tab","aria-selected":g!=null?g:!1,"aria-disabled":e,tabindex:d?void 0:0,"on:click":a,"on:keydown":n,el:m,"tab-identifier":function(){return c().identifier},
"tab-title":k},_.q(_.oi,{cond:b,then:function(){return d()},
else:function(){var t={},u={};return _.q(_.Vh,null,_.q("div",{class:_.jt("yt-tab-shape-wiz__tab",(t["yt-tab-shape-wiz__tab--tab-selected"]=g,t))},k),_.q("div",{class:_.jt("yt-tab-shape-wiz__tab-bar",(u["yt-tab-shape-wiz__tab-bar--tab-bar-selected"]=g,u))}))}}))});
iac.idomCompat={callbacks:{customTabRenderable:!0}};_.kac=_.Rr(function(a){var b=a.shape;a=_.h(_.fh(48,"S7XsSd"));var c=a.next().value,d=a.next().value;a=_.h(_.fh(0,"CzMxb"));var e=a.next().value,g=a.next().value,k=function(){return b().tabs},m=_.Rl(),n=function(){var r,t;
return(t=(r=k())==null?void 0:r.findIndex(function(u){return u.selected}))!=null?t:-1};
_.vi(function(){var r=m.value.querySelectorAll("yt-tab-shape"),t=n()>-1?r[n()]:void 0;requestAnimationFrame(function(){d((t==null?void 0:t.getBoundingClientRect().width)||0)})});
_.yh(function(){var r=n();requestAnimationFrame(function(){var t=m.value.querySelectorAll("yt-tab-shape"),u;d(((u=r>-1?t[r]:void 0)==null?void 0:u.getBoundingClientRect().width)||0);for(var w=u=0;w<r;w++)u+=t[w].offsetWidth+24;_.Ei("HTML_DIR")==="rtl"&&(u=-u);g(u)})},"BW2y2e");
a={};return _.q("yt-tab-group-shape",{class:_.jt("yt-tab-group-shape-wiz",(a["yt-tab-group-shape-wiz--overflow-hidden"]=function(){return b().isOverflowHidden},a)),
el:m},_.q(_.oi,{cond:k,then:function(r){return _.q(_.Vh,null,_.q("div",{class:"yt-tab-group-shape-wiz__tabs",role:"tablist"},_.q(_.ni,{each:r},function(t,u){return _.q(iac,{shape:function(){return Object.assign({},t,{isLastTab:u()===r().length-1})},
customTabRenderable:t.customTabRenderable,useCustomTabRenderable:!!t.customTabRenderable})})),_.q(jac,{width:c,
sliderOffset:e}))}}))});
_.kac.idomCompat=!0;var jac=_.Rr(function(a){var b=_.Nr(a.sliderOffset,0),c=a.width;return _.q("div",{class:"yt-tab-group-shape-wiz__slider",style:_.rt({width:function(){return c()+"px"},
transform:function(){return"translateX("+b()+"px)"}})})});var lac=_.Rr(function(a){var b=function(){var g,k,m;return(m=(g=a.data().playerLogoAccessibility)==null?void 0:(k=g.accessibilityData)==null?void 0:k.label)!=null?m:""},c=_.tu(lSa,function(){return a.data().playerEntityKey}),d={};
d=_.jt("ytwFantasyPlayerViewModelHost",(d.ytwFantasyPlayerViewModelPlaying=function(){var g;return!((g=c())==null||!g.isPlayerPlaying)},d.ytwFantasyPlayerViewModelOnField=function(){var g;
return((g=c())==null?void 0:g.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},d.ytwFantasyPlayerViewModelRedZone=function(){var g;
return((g=c())==null?void 0:g.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},d));
var e=function(){var g,k,m,n=((g=_.v().resolve(_.Wi(_.Ns)))==null?0:g())?(k=a.data().playerLogoBackgroundColor)==null?void 0:k.darkTheme:(m=a.data().playerLogoBackgroundColor)==null?void 0:m.lightTheme;return n===void 0?"":_.Cq(n)};
return _.q("ytw-fantasy-player-view-model",{class:d},_.q(_.oi,{cond:function(){return a.data().playerLogo},
then:function(g){return _.q("div",{class:"ytwFantasyPlayerViewModelLogo"},_.q("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.q(_.Ss,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.rt({"background-color":e}),data:g,alt:b})),_.q("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.q(_.tt,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.q("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.q("div",{class:"ytwFantasyPlayerViewModelHeader"},_.q(_.wt,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var g;return(g=a.data())==null?void 0:g.playerNameText}}),_.q(_.wt,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var g;return(g=a.data())==null?void 0:g.playerDescriptionText}})),_.q("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.q(_.wt,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var g;return(g=c())==null?void 0:g.gamePeriodText}}),_.q(_.wt,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var g;return(g=a.data())==null?void 0:g.opponentTeamText}}),_.q(_.wt,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var g;return(g=c())==null?void 0:g.gameStatusText}}),_.q(_.wt,{className:_.jt("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var g;return(g=c())==null?void 0:g.playerStatusText}})),_.q("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.q(_.wt,{text:function(){var g;
return(g=c())==null?void 0:g.playerStatsText}}))),_.q(_.wt,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var g;return(g=c())==null?void 0:g.fantasyScore}}))});var mac=_.Rr(function(a){return _.q("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.q(_.oi,{cond:function(){return a.data().players},
then:function(b){return _.q(_.Eu,{data:b},{fantasyPlayerViewModel:lac})}}))});var nac=_.Rr(function(a){var b=_.h(_.qt(function(){var e;return(e=a.data().selectedTabIdentifierKey)!=null?e:""})),c=b.next().value,d=b.next().value;
_.ti(function(){var e;(e=a.setSelectedTabSignal)==null||e.call(a,c)});
return _.q("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.q("div",{class:"ytTabbedViewModelTabGroup"},_.q(_.kac,{shape:function(){var e=a.data(),g=[],k={tabs:g};if(!e.tabs)return k;e=_.h(e.tabs);for(var m=e.next(),n={};!m.done;n={tabViewModel:void 0},m=e.next())if(n.tabViewModel=_.y(m.value,sFb),n.tabViewModel){var r=m=void 0;g.push({aTagConfig:{onclick:function(t){return function(){var u;d((u=t.tabViewModel.tabIdentifier)!=null?u:"")}}(n)},
identifier:n.tabViewModel.tabIdentifier,selected:c()===n.tabViewModel.tabIdentifier,title:(r=(m=n.tabViewModel.title)==null?void 0:m.content)!=null?r:""})}return k}})),_.q(_.Eu,{data:function(){var e,g=_.h((e=a.data().tabs)!=null?e:[]);
for(e=g.next();!e.done;e=g.next())if((e=_.y(e.value,sFb))&&e.tabIdentifier===c())return e.content}},{fantasyRosterViewModel:mac}))});_.Ws(_.Rr(function(a){var b=_.h(f2a()),c=b.next().value,d=b.next().value;return _.q("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.q(_.wt,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return a.data().title}}),_.q(_.oi,{cond:function(){return a.data().tabbedViewModel},
then:function(e){return _.q(_.Eu,{data:e},{tabbedViewModel:function(g){return _.q(nac,{data:g.data,setSelectedTabSignal:d})}})}}),_.q(_.oi,{cond:function(){var e,g=(e=_.y(a.data().tabbedViewModel,tFb))==null?void 0:e.tabs;
e=_.y(g==null?void 0:g[0],sFb);g=_.y(g==null?void 0:g[1],sFb);var k=e==null?void 0:e.tabIdentifier;if(c()===k){var m,n;if(!((m=_.y(e==null?void 0:e.content,IAb))==null?0:(n=m.players)==null?0:n.length))return a.data().noUserTeamPlayersText}else{var r,t;if(!((r=_.y(g==null?void 0:g.content,IAb))==null?0:(t=r.players)==null?0:t.length))return a.data().noOpponentTeamPlayersText}},
then:function(e){return _.q(_.wt,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:e})}}))}),"ytw-fantasy-matchup-view-model",{props:{data:_.SG}});_.Ws(_.Rr(function(a){return _.q("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.q(_.wt,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return a.data().title}}),_.q(_.oi,{cond:function(){return a.data().matchupTeamPairs},
then:function(b){return _.q(_.ni,{each:b,keyBy:"INDEX"},function(c){return _.q("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.q(_.Eu,{data:function(){return[c().firstTeam,c().secondTeam]}},{fantasyTeamViewModel:function(d){return _.q(hac,{data:d.data,
compact:!0})}}))})}}))}),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.SG}});_.Ws(_.Rr(function(a){var b=function(){var e,g,k;return(k=(e=a.data().userLogoAccessibility)==null?void 0:(g=e.accessibilityData)==null?void 0:g.label)!=null?k:""},c=function(){var e,g,k;
return(k=(e=a.data().opponentLogoAccessibility)==null?void 0:(g=e.accessibilityData)==null?void 0:g.label)!=null?k:""},d=_.tu(jSa,function(){return a.data().entityKey});
return _.q("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.q("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.q(_.oi,{cond:function(){return a.data().userLogo},
then:function(e){return _.q(_.Ss,{className:"ytwFantasyWinProbabilityViewModelLogo",data:e,alt:b})}}),_.q("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.q(_.wt,{text:function(){return a.data().title}})),_.q(_.oi,{cond:function(){return a.data().opponentLogo},
then:function(e){return _.q(_.Ss,{className:"ytwFantasyWinProbabilityViewModelLogo",data:e,alt:c})}})),_.q("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.q("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.q(_.wt,{text:function(){var e;
return(e=d())==null?void 0:e.userWinNumberLabel}})),_.q("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.q("div",{class:_.jt("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.rt({flex:function(){var e,g;return(g=(e=d())==null?void 0:e.userWinNumber)!=null?g:50}})}),_.q("div",{class:_.jt("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.rt({flex:function(){var e,g;return(g=(e=d())==null?void 0:e.opponentWinNumber)!=null?g:50}})})),_.q("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.q(_.wt,{text:function(){var e;
return(e=d())==null?void 0:e.opponentWinNumberLabel}}))))}),"fantasy-win-probability-view-model",{props:{data:_.SG}});_.It("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var oac=function(){var a=_.P.apply(this,arguments)||this;a.darkerPanels=_.x("web_watch_darker_panels");a.commentsHidePanelButton=!1;a.isWatchGrid=!1;a.continuationShowButton=!1;a.isSearch=!1;a.isConstrainedList=!1;a.isWatch=!1;a.eligibleToSwitchToGrid=!1;a.epRestyle=!1;a.isCarouselInFeed=!0;a.topSpacingZero=!1;a.continuationIsInitialLoad=!0;a.enableSqueezebackPanels=_.x("web_shorts_enable_squeezeback_panels");a.enableAnchoredPanel=_.x("desktop_shorts_v2_anchored_panel");a.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation",
"yt-item-section-replace-action":"handleYtItemSectionReplace"};a.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return a};
_.z(oac,_.P);_.f=oac.prototype;_.f.updateLockupContainerTypes=function(a){if(this.eligibleToSwitchToGrid){var b;(b=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||b.forEach(function(c){c.containerType=a})}};
_.f.getItemsPath=function(){return"data.contents"};
_.f.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.f.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",buttonRenderer:"ytd-button-renderer",carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",
properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:"ytd-channel-featured-content-renderer",channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",
chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",commentThreadRenderer:{component:"ytd-comment-thread-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",
compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",
emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",faqSectionRenderer:"yt-faq-section-renderer",fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",
feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",
handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",hashtagTileRenderer:"ytd-hashtag-tile-renderer",horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",
labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",labsItemRenderer:"ytd-labs-item-renderer",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",messageRenderer:{component:"ytd-message-renderer",properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",
newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",offerItemRenderer:"yt-offer-item-renderer",offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},
pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",
purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",
className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",searchNoResultsRenderer:"yt-search-no-results-renderer",searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:"yt-section-header-view-model",settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",
properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",showRenderer:{component:"ytd-show-renderer",properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",
subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},
webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",isInitialLoad:"[[continuationIsInitialLoad]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",
properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},
learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.x("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.x("kevlar_low_priority_continuation")}}};
_.f.created=function(){this.JSC$14260_cachedViewportHeight=_.Ei("initialInnerHeight")||window.innerHeight};
_.f.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var a=_.E(this.hostElement).querySelector("ytd-comments-header-renderer");a&&(a.hidePanelButton=this.commentsHidePanelButton)}};
_.f.onRetrieveLocation=function(a,b){this.containsComments()&&(this.firstCommentsLoaded=b.hasComments=!0)};
_.f.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.f.onLoadReloadContinuation=function(a,b){var c=this;a.stopPropagation();this.isReloading=!0;_.go(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(d){var e=_.v().resolve(_.wq);d=b(d);e.postData(d).then(function(g){c.onReloadContinuationData(g)})}})};
_.f.onReloadContinuationData=function(a){if(a=this.get("response.continuationContents.itemSectionContinuation",a)||this.get("response.contents.itemSectionRenderer",a)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",a)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",a))this.set("data.contents",a.contents||a.results),a.header&&this.set("data.header",a.header),this.set("data.continuations",
a.continuations||[]);this.isReloading=!1};
_.f.computeContentsClass=function(a){return a?"reloading":""};
_.f.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.f.computeSectionIdentifier=function(a){return a==null?void 0:a.sectionIdentifier};
_.f.computeFitContainer=function(a){return(a==null?void 0:a.sectionIdentifier)==="youchat-item-section"};
_.f.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.x("kevlar_disable_comments_auto_load")};
_.f.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.f.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.f.computeHasDestinationShelfRenderer=function(a){var b,c;return!!(a==null?0:(b=a.contents)==null?0:(c=b[0])==null?0:c.destinationShelfRenderer)};
_.f.computeHasSectionGroupViewModel=function(a){var b,c;return!!(a==null?0:(b=a.contents)==null?0:(c=b[0])==null?0:c.sectionGroupViewModel)};
_.f.computeStaticCommentsHeader=function(a){return a&&this.containsComments()};
_.f.computeEpRestyle=function(a){return _.x("web_ep_restyling")&&a&&this.containsComments()};
_.f.computeIsContinuationCommentSection=function(a){return(a==null?void 0:a.targetId)==="shorts-engagement-panel-comments-section"||(a==null?void 0:a.targetId)==="comments-section"};
_.f.computeSuppressPaddingDisclaimer=function(){var a,b,c,d;return!!((a=this.data)==null?0:(b=a.contents)==null?0:(c=b[0])==null?0:(d=c.productListHeaderRenderer)==null?0:d.suppressPaddingDisclaimer)};
_.f.computeHeaderStyle=function(a){switch(a==null?void 0:a.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.f.dataChanged=function(){this.firstCommentsLoaded=!1};
_.f.observeDataContentsLength=function(){var a,b;((a=this.data)==null?0:(b=a.contents)==null?0:b.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.f.onYtDismissibleItemDismissedChange=function(a){this._setItemDismissed(a.type==="yt-dismissible-item-dismissed")};
_.f.triggerContinuations=function(){for(var a=_.E(this.hostElement).querySelector("#continuations").children,b=0;b<a.length;b++)a[b].trigger()};
_.f.triggerInitialContinuations=function(){for(var a=_.E(this.hostElement).querySelector("#continuations").children,b=0;b<a.length;b++)a[b].triggerIfNotPreviouslyTriggered()};
_.f.handleYtItemSectionContinuation=function(a,b){var c;b&&((c=this.data)==null?void 0:c.sectionIdentifier)!==b||(this.set("data.continuations",[a]),this.triggerContinuations())};
_.f.handleYtItemSectionReplace=function(a,b){var c;b&&((c=this.data)==null?void 0:c.sectionIdentifier)!==b||(this.set("data.contents",a),this.set("data.continuations",[]))};
_.f.computeUseHeightHack=function(a){return a&&!_.x("kevlar_disable_height_hack")};
_.f.computeTopSpacingZero=function(a){return a};
_.f.continuationShowButtonChanged=function(){var a=_.E(this.hostElement).querySelector("ytd-continuation-item-renderer");a&&(a.showButton=this.continuationShowButton)};
_.f.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.TH("data-changed",this.data))};
_.Vm.Object.defineProperties(oac.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.x("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return!!((a=this.data)==null?0:(b=a.contents)==null?0:(c=b[0])==null?0:c.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d,e,g,k;return!!((a=this.data)==null?0:(b=a.contents)==null?0:(c=b[0])==null?0:(d=c.shelfRenderer)==null?0:(e=d.content)==null?0:(g=e.gridRenderer)==null?0:(k=g.targetId)==null?0:k.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return!!((a=this.data)==null?0:(b=a.contents)==null?0:(c=b[0])==null?0:c.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return!!((a=this.data)==null?0:(b=a.contents)==null?0:(c=b[0])==null?0:c.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.aj("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.x("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.x("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){if(this.isSearchDova)return Math.ceil((this.JSC$14260_cachedViewportHeight-130)/150)},
set:function(){}}});
var DQ=oac;DQ.prototype.dataChangedForBinding=DQ.prototype.dataChangedForBinding;DQ.prototype.continuationShowButtonChanged=DQ.prototype.continuationShowButtonChanged;DQ.prototype.onYtDismissibleItemDismissedChange=DQ.prototype.onYtDismissibleItemDismissedChange;DQ.prototype.observeDataContentsLength=DQ.prototype.observeDataContentsLength;DQ.prototype.dataChanged=DQ.prototype.dataChanged;DQ.prototype.onServiceRequestCompleted=DQ.prototype.onServiceRequestCompleted;
DQ.prototype.onLoadReloadContinuation=DQ.prototype.onLoadReloadContinuation;DQ.prototype.onRetrieveLocation=DQ.prototype.onRetrieveLocation;DQ.prototype.commentsHidePanelButtonChanged=DQ.prototype.commentsHidePanelButtonChanged;DQ.prototype.updateLockupContainerTypes=DQ.prototype.updateLockupContainerTypes;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],DQ.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],DQ.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],DQ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.gJ.YtLazyListBehavior),_.W("design:type",Object)],DQ.prototype,"ytLazyListBehavior",void 0);_.U([_.H(_.SM.YtNextContinuationBehavior),_.W("design:type",Object)],DQ.prototype,"ytNextContinuationBehavior",void 0);
_.U([_.H(_.RM),_.W("design:type",Object)],DQ.prototype,"ytContinuationHandlerBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],DQ.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],DQ.prototype,"ytdReduxBehavior",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],DQ.prototype,"darkerPanels",void 0);_.U([_.O(),_.W("design:type",Object)],DQ.prototype,"data",void 0);
_.U([_.O(),_.W("design:type",Boolean)],DQ.prototype,"engagementPanel",void 0);_.U([_.O(),_.W("design:type",Object)],DQ.prototype,"commentsHidePanelButton",void 0);_.U([_.O(),_.W("design:type",Object)],DQ.prototype,"isWatchGrid",void 0);_.U([_.O(),_.W("design:type",Object)],DQ.prototype,"continuationShowButton",void 0);_.U([_.O({computed:"computeIsContinuationCommentSection(data)"}),_.W("design:type",Boolean)],DQ.prototype,"continuationIsCommentsSection",void 0);
_.U([_.O({value:!0}),_.W("design:type",Boolean)],DQ.prototype,"autoFill",void 0);_.U([_.O(),_.W("design:type",Boolean)],DQ.prototype,"continuationDisablePrescanVisibility",void 0);_.U([_.O(),_.W("design:type",Boolean)],DQ.prototype,"isReloading",void 0);_.U([_.O(),_.W("design:type",Object)],DQ.prototype,"isSearch",void 0);_.U([_.O(),_.W("design:type",Object)],DQ.prototype,"isConstrainedList",void 0);_.U([_.O(),_.W("design:type",Object)],DQ.prototype,"isWatch",void 0);
_.U([_.O(),_.W("design:type",Object)],DQ.prototype,"eligibleToSwitchToGrid",void 0);_.U([_.O({selector:_.Lu}),_.W("design:type",Object)],DQ.prototype,"isGridViewEnabled",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.W("design:type",Object)],DQ.prototype,"epRestyle",void 0);_.U([_.K("isWatch"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],DQ.prototype,"hideShortsShelfHeader",null);
_.U([_.K("isSearch","isWatch"),_.W("design:type",String),_.W("design:paramtypes",[])],DQ.prototype,"thumbnailWidth",null);_.U([_.K("isSearch","isWatch"),_.W("design:type",String),_.W("design:paramtypes",[])],DQ.prototype,"sizing",null);_.U([_.K("isWatch","isGridViewEnabled","data"),_.O({reflectToAttribute:!0}),_.W("design:type",Number),_.W("design:paramtypes",[])],DQ.prototype,"lockupContainerType",null);
_.U([_.N("lockupContainerType","data"),_.W("design:type",Function),_.W("design:paramtypes",[Number]),_.W("design:returntype")],DQ.prototype,"updateLockupContainerTypes",null);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],DQ.prototype,"pageSubtype",void 0);_.U([_.O({computed:"computeContainerWidth()"}),_.W("design:type",Number)],DQ.prototype,"containerWidth",void 0);_.U([_.O(),_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],DQ.prototype,"isPlaylist",null);
_.U([_.O(),_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],DQ.prototype,"isClipList",null);_.U([_.O(),_.W("design:type",Object)],DQ.prototype,"isCarouselInFeed",void 0);_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],DQ.prototype,"isPlaylistVideoContainer",null);_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],DQ.prototype,"isSearchFrictionPage",null);
_.U([_.O({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.W("design:type",Boolean)],DQ.prototype,"useHeightHack",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.W("design:type",Object)],DQ.prototype,"topSpacingZero",void 0);_.U([_.O({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.W("design:type",Boolean)],DQ.prototype,"showButton",void 0);
_.U([_.O(),_.W("design:type",Boolean)],DQ.prototype,"firstCommentsLoaded",void 0);_.U([_.O(),_.W("design:type",Object)],DQ.prototype,"continuationIsInitialLoad",void 0);_.U([_.O(),_.W("design:type",Boolean)],DQ.prototype,"isSearchDova",void 0);_.U([_.O({reflectToAttribute:!0,readOnly:!0}),_.W("design:type",Boolean)],DQ.prototype,"itemDismissed",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.W("design:type",String)],DQ.prototype,"sectionIdentifier",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.W("design:type",String)],DQ.prototype,"fitContainer",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.W("design:type",Boolean)],DQ.prototype,"hasDestinationShelfRenderer",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.W("design:type",Boolean)],DQ.prototype,"staticCommentsHeader",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],DQ.prototype,"enableSqueezebackPanels",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],DQ.prototype,"enableAnchoredPanel",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.W("design:type",Boolean)],DQ.prototype,"hasSectionGroupViewModel",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.W("design:type",Boolean)],DQ.prototype,"suppressDisclaimerSeparator",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.W("design:type",String)],DQ.prototype,"headerStyle",void 0);_.U([_.K("isSearch"),_.W("design:type",Object),_.W("design:paramtypes",[])],DQ.prototype,"lockupExperiments",null);
_.U([_.K("isSearch"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],DQ.prototype,"typographyBump",null);_.U([_.gr("#header"),_.W("design:type",HTMLElement)],DQ.prototype,"header",void 0);_.U([_.N("commentsHidePanelButton"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],DQ.prototype,"commentsHidePanelButtonChanged",null);
_.U([_.M("yt-retrieve-location"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],DQ.prototype,"onRetrieveLocation",null);_.U([_.M("yt-load-reload-continuation"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Function]),_.W("design:returntype")],DQ.prototype,"onLoadReloadContinuation",null);
_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],DQ.prototype,"onServiceRequestCompleted",null);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],DQ.prototype,"dataChanged",null);_.U([_.kr("data.contents.length"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],DQ.prototype,"observeDataContentsLength",null);
_.U([_.M("yt-dismissible-item-dismissed"),_.M("yt-dismissible-item-undismissed"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],DQ.prototype,"onYtDismissibleItemDismissedChange",null);_.U([_.N("continuationShowButton"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],DQ.prototype,"continuationShowButtonChanged",null);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],DQ.prototype,"dataChangedForBinding",null);DQ=_.U([_.Q({is:"ytd-item-section-renderer",disableElementRegistration:!0})],DQ);
_.S(DQ,"ytd-item-section-renderer",function(){if(B8b!==void 0)return B8b;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return B8b=a},{mode:1});var pac;var o2a={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var v2a=_.Up(_.to("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var q2a={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"};var qac={},u2a=(qac[0]={title:_.dp(_.to("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.dp(_.to("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:bp("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},qac[1]={title:_.dp(_.to("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:bp("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},qac);_.It("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var EQ=function(){var a=_.P.apply(this,arguments)||this;a.allVideosCount=0;a.allPlaylistCount=0;a.shouldRenderDownloadsBanner=!1;a.hasOptedIntoSmartDownloads=!1;a.areAllSmartDownloadsDeleted=!1;a.smartDownloadsCompleted=!1;return a};
_.z(EQ,_.P);EQ.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
EQ.prototype.attached=function(){this.downloadsToRenderChanged()};
EQ.prototype.detached=function(){this.set("renderableData",{})};
EQ.prototype.downloadsToRenderChanged=function(){var a=_.Yp().getState().entities,b=_.Cp(a),c=_.x("kevlar_playlist_dl_page_killswitch")?hFa(a):_.fFa(a),d=_.bFa(a),e=_.mEa(b);a=_.Dp(a);this.set("renderableData",x2a(c,b,d,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,e,a))};
var FQ=EQ;FQ.prototype.downloadsToRenderChanged=FQ.prototype.downloadsToRenderChanged;_.U([_.H(_.LI),_.W("design:type",Object)],FQ.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],FQ.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],FQ.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],FQ.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],FQ.prototype,"renderableData",void 0);_.U([_.O({selector:_.tFa}),_.W("design:type",Object)],FQ.prototype,"allVideosCount",void 0);_.U([_.O({selector:_.y2a}),_.W("design:type",Object)],FQ.prototype,"allPlaylistCount",void 0);_.U([_.O({selector:_.AFa}),_.W("design:type",Object)],FQ.prototype,"shouldRenderDownloadsBanner",void 0);_.U([_.O({selector:_.BFa}),_.W("design:type",Object)],FQ.prototype,"hasOptedIntoSmartDownloads",void 0);
_.U([_.O({selector:_.CFa}),_.W("design:type",Object)],FQ.prototype,"areAllSmartDownloadsDeleted",void 0);_.U([_.O({selector:function(a){return _.Cp(a.entities).every(function(b){var c;return(b==null?void 0:(c=b.transferEntity)==null?void 0:c.transferState)&&!hEa.includes(b.transferEntity.transferState)})}}),
_.W("design:type",Object)],FQ.prototype,"smartDownloadsCompleted",void 0);_.U([_.kr("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","allPlaylistCount"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],FQ.prototype,"downloadsToRenderChanged",null);FQ=_.U([_.Q({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],FQ);
_.S(FQ,"ytd-offline-item-section-renderer",function(){if(pac!==void 0)return pac;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return pac=a},
{mode:1});var rac;var sac;var tac=function(){return _.P.apply(this,arguments)||this};
_.z(tac,_.P);
tac.prototype.onDataChanged=function(){if(this.JSC$14329_lastData){var a=this.getFilterClass(this.JSC$14329_lastData.status);a&&this.hostElement.classList.remove(a)}var b;(a=this.getFilterClass((b=this.data)==null?void 0:b.status))&&this.hostElement.classList.add(a);a==="selected"?_.E(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.E(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");a==="disabled"?_.E(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.E(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$14329_lastData=this.data};
tac.prototype.getFilterClass=function(a){switch(a){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
var GQ=tac;GQ.prototype.onDataChanged=GQ.prototype.onDataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],GQ.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],GQ.prototype,"data",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],GQ.prototype,"onDataChanged",null);GQ=_.U([_.Q({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],GQ);
_.S(GQ,"ytd-search-filter-renderer",function(){if(sac!==void 0)return sac;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return sac=a},{mode:_.as("kevlar_poly_si_batch_j075")?1:2});var uac=function(){return _.P.apply(this,arguments)||this};
_.z(uac,_.P);var HQ=uac;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],HQ.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],HQ.prototype,"data",void 0);HQ=_.U([_.Q({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],HQ);
_.S(HQ,"ytd-search-filter-group-renderer",function(){if(rac!==void 0)return rac;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return rac=a},{mode:_.as("kevlar_poly_si_batch_j075")?1:2});var vac;var IQ=function(){return _.P.apply(this,arguments)||this};
_.z(IQ,_.P);IQ.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.sC());this.isCollapsed=!this.isCollapsed};
IQ.prototype.navigateToAboutTheseResultsPage=function(){var a=Ed("https://www.youtube.com/howyoutubeworks/product-features/search/");a?_.Rd(window,a,"_blank"):_.Hi(Error("Oh"))};
IQ.prototype.dataChanged=function(){this.isCollapsed=!0};
IQ.prototype.computeShowBottomBorder=function(){var a,b,c;return!!((a=this.data)==null?0:(b=a.button)==null?0:b.toggleButtonRenderer)||!((c=this.data)==null||!c.aboutTheseResultsButton)};
var JQ=IQ;JQ.prototype.dataChanged=JQ.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],JQ.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],JQ.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.W("design:type",Boolean)],JQ.prototype,"showBottomBorder",void 0);_.U([_.O(),_.W("design:type",Boolean)],JQ.prototype,"renderCollapsibleMenu",void 0);
_.U([_.O(),_.W("design:type",Boolean)],JQ.prototype,"isCollapsed",void 0);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],JQ.prototype,"dataChanged",null);JQ=_.U([_.Q({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],JQ);
_.S(JQ,"ytd-search-sub-menu-renderer",function(){if(vac!==void 0)return vac;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return vac=a},{mode:1});var wac;var xac=new _.fB("SECTION_LIST_RENDERER_TOKEN");var yac;var zac=function(){return _.P.apply(this,arguments)||this};
_.z(zac,_.P);zac.prototype.computeStyle=function(a){return a?a.toLowerCase().replace(/_/g,"-"):""};
var KQ=zac;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],KQ.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],KQ.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.W("design:type",String)],KQ.prototype,"headerStyle",void 0);KQ=_.U([_.Q({is:"ytd-text-header-renderer",disableElementRegistration:!0})],KQ);
_.S(KQ,"ytd-text-header-renderer",function(){if(yac!==void 0)return yac;var a=document.createElement("template");_.B(a,"\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");a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return yac=a},{mode:1});var Aac;var Bac=function(){return _.P.apply(this,arguments)||this};
_.z(Bac,_.P);var LQ=Bac;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],LQ.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],LQ.prototype,"data",void 0);LQ=_.U([_.Q({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],LQ);
_.S(LQ,"ytd-minor-moment-header-renderer",function(){if(Aac!==void 0)return Aac;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Aac=a},{mode:1});var Cac;var Dac=function(){return _.P.apply(this,arguments)||this};
_.z(Dac,_.P);var MQ=Dac;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],MQ.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],MQ.prototype,"data",void 0);MQ=_.U([_.Q({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],MQ);
_.S(MQ,"ytd-minor-moment-setting-alert-renderer",function(){if(Cac!==void 0)return Cac;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Cac=a},{mode:1});var Eac;var Fac;var Gac=function(){var a=_.P.apply(this,arguments)||this;a.booleanSettingById=!1;a.smartDownloadsEnabledVE=_.lu(128287);a.smartDownloadsDisabledVE=_.lu(128286);a.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return a};
_.z(Gac,_.P);_.f=Gac.prototype;_.f.attachSmartDownloadsSettingVes=function(){var a;this.activeVeForLogging||((a=this.data)==null?void 0:a.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.nF(_.ms(),this.smartDownloadsEnabledVE),_.nF(_.ms(),this.smartDownloadsDisabledVE))};
_.f.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.go(this.hostElement,"yt-settings-switch-ready")};
_.f.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.f.onSwitchChange=function(a){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(a=_.Qq(a).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.x("kevlar_settings_switch_resolve_command_killswitch")?_.x("web_ytd_settings_switch_renderer_command_resolver_ks")?_.mo(this.hostElement,[a]):_.v().resolve(_.Xi).resolveCommand(a,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(a)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.f.handleUpdateSettingsSwitch=function(a){(a=_.y(a,bAb))&&this.data&&this.data.id===a.id&&this.set("data.enabled",!!a.enabled)};
_.f.onToggleSettingsSwitch=function(a,b){this.data&&this.data.id===a&&this.set("data.enabled",b!=null?b:!this.data.enabled)};
_.f.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.cF.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.f.maybeLogSmartDownloadsSettingVisibility=function(){var a=_.Fn(),b;a&&((b=this.data)==null?void 0:b.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.To(a,[this.smartDownloadsEnabledVE]),_.Uo(a,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.To(a,[this.smartDownloadsDisabledVE]),_.Uo(a,[this.smartDownloadsEnabledVE])))};
_.f.maybeLogSmartDownloadsSettingClick=function(){var a;((a=this.data)==null?void 0:a.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.pF(_.ms(),this.activeVeForLogging)};
_.f.updateDataEnabledFromBinding=function(a){this.set("data.enabled",a.detail.value)};
_.Vm.Object.defineProperties(Gac.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var a=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!a&&(a=this.ytRendererBehavior.getSimpleString(this.data.title));return a}}});
var NQ=Gac;NQ.prototype.dataChanged=NQ.prototype.dataChanged;_.U([_.H(_.LI),_.W("design:type",Object)],NQ.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],NQ.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],NQ.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],NQ.prototype,"ytComponentBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],NQ.prototype,"data",void 0);_.U([_.O({selector:function(a,b){if(Object.keys(a==null?void 0:a.entities).length)switch(b){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return iFa(a.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.W("design:type",Object)],NQ.prototype,"booleanSettingById",void 0);_.U([_.O(),_.W("design:type",_.Dn)],NQ.prototype,"activeVeForLogging",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],NQ.prototype,"toggleAriaLabel",null);_.U([_.kr("data"),_.kr("booleanSettingById"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],NQ.prototype,"dataChanged",null);
NQ=_.U([_.Q({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],NQ);
_.S(NQ,"ytd-settings-switch-renderer",function(){if(Fac!==void 0)return Fac;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Fac=a},{mode:1});var Hac=function(){return _.P.apply(this,arguments)||this};
_.z(Hac,_.P);Hac.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}}}}};
_.Vm.Object.defineProperties(Hac.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var a=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(a+=" remove-left-margin");this.data.extraBottomSpace&&(a+=" extra-bottom-space");return a}}});
var OQ=Hac;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],OQ.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],OQ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],OQ.prototype,"data",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],OQ.prototype,"contentsClassName",null);OQ=_.U([_.Q({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],OQ);
_.S(OQ,"ytd-minor-moment-setting-section-renderer",function(){if(Eac!==void 0)return Eac;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Eac=a},{mode:1});var Iac;var Jac=function(){return _.P.apply(this,arguments)||this};
_.z(Jac,_.P);var PQ=Jac;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],PQ.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],PQ.prototype,"componentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],PQ.prototype,"data",void 0);PQ=_.U([_.Q({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],PQ);
_.S(PQ,"ytd-empty-product-details-renderer",function(){if(Iac!==void 0)return Iac;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Iac=a},{mode:1});var Kac;var Lac;var Mac=function(){var a=_.P.apply(this,arguments)||this;a.expanded=!0;return a};
_.z(Mac,_.P);Mac.prototype.getBadgeRowClass=function(a,b,c){for(var d=_.h(this.hostElement.querySelectorAll("yt-img-shadow")),e=d.next();!e.done;e=d.next())e.value.onShow();a=a.selected;return c?a!==-1?a===b?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(a!==void 0?a:0)===b?"badge-line":"badge-hidden"};
var QQ=Mac;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],QQ.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],QQ.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],QQ.prototype,"expanded",void 0);QQ=_.U([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],QQ);
_.S(QQ,"ytd-sponsorships-loyalty-badges-renderer",function(){if(Lac!==void 0)return Lac;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Lac=a},{mode:1});var Nac;var Oac=function(){var a=_.P.apply(this,arguments)||this;a.expanded=!0;return a};
_.z(Oac,_.P);Oac.prototype.getContainerClasses=function(a,b){a=a?"expanded":"collapsed";b&&(a+=" item");return a};
var RQ=Oac;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],RQ.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],RQ.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],RQ.prototype,"expanded",void 0);RQ=_.U([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],RQ);
_.S(RQ,"ytd-sponsorships-perk-renderer",function(){if(Nac!==void 0)return Nac;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Nac=a},{mode:1});var Pac;var Qac=function(){var a=_.P.apply(this,arguments)||this;a.expanded=!0;return a};
_.z(Qac,_.P);var SQ=Qac;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],SQ.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],SQ.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],SQ.prototype,"expanded",void 0);SQ=_.U([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],SQ);
_.S(SQ,"ytd-sponsorships-perks-renderer",function(){if(Pac!==void 0)return Pac;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Pac=a},{mode:1});var TQ=function(){var a=_.P.apply(this,arguments)||this;a.isCollapsed=!1;return a};
_.z(TQ,_.P);TQ.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
TQ.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
TQ.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var a;this.expandCollapseButton=_.y((a=this.data)==null?void 0:a.expandButton,_.OE)}else{var b;this.expandCollapseButton=_.y((b=this.data)==null?void 0:b.collapseButton,_.OE)}};
var UQ=TQ;UQ.prototype.updateExpandCollapseButton=UQ.prototype.updateExpandCollapseButton;UQ.prototype.onDataChanged=UQ.prototype.onDataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],UQ.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],UQ.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],UQ.prototype,"isCollapsed",void 0);_.U([_.O(),_.W("design:type",Object)],UQ.prototype,"expandCollapseButton",void 0);
_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],UQ.prototype,"onDataChanged",null);_.U([_.kr("data","isCollapsed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],UQ.prototype,"updateExpandCollapseButton",null);UQ=_.U([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],UQ);
_.S(UQ,"ytd-sponsorships-expandable-perks-renderer",function(){if(Kac!==void 0)return Kac;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Kac=a},{mode:1});var Rac;var Sac=function(){return _.P.apply(this,arguments)||this};
_.z(Sac,_.P);Sac.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
var VQ=Sac;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],VQ.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],VQ.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],VQ.prototype,"data",void 0);VQ=_.U([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],VQ);
_.S(VQ,"ytd-sponsorships-actionable-message-renderer",function(){if(Rac!==void 0)return Rac;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Rac=a},{mode:1});var Tac;var Uac=function(){return _.P.apply(this,arguments)||this};
_.z(Uac,_.P);_.f=Uac.prototype;_.f.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.f.getExpansionIcon=function(a){return a?"yt-icons:arrow_drop_up":"yt-icons:arrow_drop_down"};
_.f.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.f.computeMessageContainerStyle=function(a){var b=a.expandableItems?" style-clickable":"";return a.messageContainerStyle?a.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+b:"style-unspecified"+b};
_.f.isSinglePerk=function(a){return!!a.messageContainerStyle&&(a.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||a.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.f.onExpandedChanged=function(){var a=this;if(this.expanded)for(var b=_.h(this.hostElement.querySelectorAll("yt-img-shadow")),c=b.next();!c.done;c=b.next())c.value.onShow();_.Tm(this,function(){_.go(a.hostElement,"yt-refit")})};
_.f.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
var WQ=Uac;WQ.prototype.onDataChanged=WQ.prototype.onDataChanged;WQ.prototype.onExpandedChanged=WQ.prototype.onExpandedChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],WQ.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],WQ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],WQ.prototype,"data",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],WQ.prototype,"expanded",void 0);
_.U([_.N("expanded"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],WQ.prototype,"onExpandedChanged",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],WQ.prototype,"onDataChanged",null);WQ=_.U([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],WQ);
_.S(WQ,"ytd-sponsorships-expandable-message-renderer",function(){if(Tac!==void 0)return Tac;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Tac=a},{mode:_.as("kevlar_poly_si_batch_j028")?1:2});var Vac;var Wac=function(){return _.P.apply(this,arguments)||this};
_.z(Wac,_.P);Wac.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"}}}}};
Wac.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.y(this.data.endButton,_.OE).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
var XQ=Wac;XQ.prototype.onDataChanged=XQ.prototype.onDataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],XQ.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],XQ.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],XQ.prototype,"data",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],XQ.prototype,"onDataChanged",null);
XQ=_.U([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],XQ);
_.S(XQ,"ytd-sponsorships-heading-renderer",function(){if(Vac!==void 0)return Vac;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Vac=a},{mode:1});var Xac;var Yac=function(){return _.P.apply(this,arguments)||this};
_.z(Yac,_.P);var YQ=Yac;_.U([_.O(),_.W("design:type",Object)],YQ.prototype,"data",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],YQ.prototype,"ytRendererBehavior",void 0);YQ=_.U([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],YQ);
_.S(YQ,"ytd-sponsorships-links-renderer",function(){if(Xac!==void 0)return Xac;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Xac=a},{mode:1});var Zac;var $ac=function(){return _.P.apply(this,arguments)||this};
_.z($ac,_.P);_.f=$ac.prototype;_.f.onDataChanged=function(){if(this.data&&this.data.expandableItems){var a;(a=_.E(this.hostElement).querySelector("tp-yt-paper-button"))==null||a.setAttribute("role","button")}else{var b;(b=_.E(this.hostElement).querySelector("tp-yt-paper-button"))==null||b.removeAttribute("role")}};
_.f.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.f.getExpansionIcon=function(a){return a?"yt-icons:arrow_drop_up":"yt-icons:arrow_drop_down"};
_.f.getTileClasses=function(a){return a?"tile expandable-tile":"tile"};
_.f.getButtonDisabled=function(a){return a?void 0:""};
var ZQ=$ac;ZQ.prototype.onDataChanged=ZQ.prototype.onDataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],ZQ.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],ZQ.prototype,"data",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],ZQ.prototype,"expanded",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],ZQ.prototype,"onDataChanged",null);
ZQ=_.U([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],ZQ);
_.S(ZQ,"ytd-sponsorships-list-tile-renderer",function(){if(Zac!==void 0)return Zac;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Zac=a},{mode:1});var abc;var bbc;var cbc=function(){return _.P.apply(this,arguments)||this};
_.z(cbc,_.P);cbc.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
var $Q=cbc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],$Q.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],$Q.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],$Q.prototype,"data",void 0);$Q=_.U([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],$Q);
_.S($Q,"ytd-sponsorships-promotion-renderer",function(){if(bbc!==void 0)return bbc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return bbc=a},{mode:1});var dbc;var ebc=function(){return _.P.apply(this,arguments)||this};
_.z(ebc,_.P);ebc.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
var aR=ebc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],aR.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],aR.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],aR.prototype,"data",void 0);aR=_.U([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],aR);
_.S(aR,"ytd-sponsorships-purchase-option-renderer",function(){if(dbc!==void 0)return dbc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return dbc=a},{mode:1});var fbc;var gbc;var hbc=function(){return _.P.apply(this,arguments)||this};
_.z(hbc,_.P);var ibc=hbc;_.U([_.O(),_.W("design:type",Object)],ibc.prototype,"data",void 0);ibc=_.U([_.Q({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],ibc);
_.S(ibc,"ytd-ypc-offer-promo-renderer",function(){if(gbc!==void 0)return gbc;var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return gbc=a},{mode:1});var jbc=function(){return _.P.apply(this,arguments)||this};
_.z(jbc,_.P);_.f=jbc.prototype;
_.f.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"}}}}};
_.f.expansionCTA=function(a,b){return a&&(b?a.collapseCallToAction:a.expansionCallToAction)};
_.f.getExpansionIcon=function(a){return a?"arrow_drop_up":"arrow_drop_down"};
_.f.expansionCallToActionTap=function(){var a=this;this.expanded=!this.expanded;_.Tm(this,function(){_.go(a.hostElement,"yt-refit")})};
_.f.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var a,b=(a=this.data)==null?void 0:a.onVisible;b&&this.ytComponentBehavior.resolveCommand(b)};
_.f.computeDisplayTitle=function(a){return!(!a||this.titledisplaystatus!=="show")};
_.f.computeDisplaySeparator=function(){return!1};
_.f.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
var bR=jbc;bR.prototype.onDataChanged=bR.prototype.onDataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],bR.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],bR.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],bR.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],bR.prototype,"data",void 0);
_.U([_.O({value:!1}),_.W("design:type",Boolean)],bR.prototype,"expanded",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],bR.prototype,"purchaseButtonClicked",void 0);_.U([_.O({reflectToAttribute:!0,value:"show"}),_.W("design:type",String)],bR.prototype,"titledisplaystatus",void 0);_.U([_.O({computed:"computeDisplayTitle(data.title)"}),_.W("design:type",Boolean)],bR.prototype,"displayTitle",void 0);
_.U([_.O({computed:"computeDisplaySeparator(data)"}),_.W("design:type",Boolean)],bR.prototype,"displaySeparator",void 0);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],bR.prototype,"onDataChanged",null);bR=_.U([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],bR);
_.S(bR,"ytd-sponsorships-tier-renderer",function(){if(fbc!==void 0)return fbc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return fbc=a},{mode:2});var kbc=function(){return _.P.apply(this,arguments)||this};
_.z(kbc,_.P);
kbc.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"},sponsorshipsHeadingRenderer:{component:"ytd-sponsorships-heading-renderer"},sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"},sponsorshipsExpandableMessageRenderer:{component:"ytd-sponsorships-expandable-message-renderer"}}},"data.sidebar":{id:"sidebar",mapping:{sponsorshipsHeadingRenderer:{component:"ytd-sponsorships-heading-renderer"},sponsorshipsActionableMessageRenderer:{component:"ytd-sponsorships-actionable-message-renderer"},
sponsorshipsLinksRenderer:{component:"ytd-sponsorships-links-renderer"},sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}},"data.alert":{id:"alert-renderer",mapping:{sponsorshipsAlertRenderer:{component:"ytd-sponsorships-alert-renderer"}}}}};
var cR=kbc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],cR.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],cR.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],cR.prototype,"data",void 0);cR=_.U([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],cR);
_.S(cR,"ytd-sponsorships-management-renderer",function(){if(abc!==void 0)return abc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return abc=a},{mode:1});var lbc;var mbc=function(){return _.P.apply(this,arguments)||this};
_.z(mbc,_.P);var dR=mbc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],dR.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],dR.prototype,"data",void 0);dR=_.U([_.Q({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],dR);
_.S(dR,"ytd-open-in-native-app-view-model",function(){if(lbc!==void 0)return lbc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return lbc=a},{mode:_.as("kevlar_poly_si_batch_j028")?1:2});var nbc;var obc;var pbc=_.cx(["top-"]),qbc=_.cx(["bottom-"]),rbc=_.cx(["left-"]),sbc=_.cx(["right-"]),tbc={},ubc=function(a,b,c){a.removeAttribute("top-"+c);a.removeAttribute("bottom-"+c);a.removeAttribute("left-"+c);a.removeAttribute("right-"+c);b&&(b.top&&_.Zd([_.cf(pbc)],a,"top-"+c,b.top),b.bottom&&_.Zd([_.cf(qbc)],a,"bottom-"+c,b.bottom),b.left&&_.Zd([_.cf(rbc)],a,"left-"+c,b.left),b.right&&_.Zd([_.cf(sbc)],a,"right-"+c,b.right))};
tbc.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(a){var b,c=_.E((b=this.hostElement)!=null?b:this),d;b=this.cardItemBoxBehaviorMarginTargetId&&c?c.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(d=this.hostElement)!=null?d:this;ubc(b,a,"margin")},
cardItemContainerPaddingChanged_:function(a){var b,c=_.E((b=this.hostElement)!=null?b:this),d;b=this.cardItemBoxBehaviorPaddingTargetId&&c?c.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(d=this.hostElement)!=null?d:this;ubc(b,a,"padding")}}];var eR={CARD_ITEM_COLOR_GENERAL_BACKGROUND_A:"var(--yt-spec-general-background-a)",CARD_ITEM_COLOR_GENERAL_BACKGROUND_B:"var(--yt-spec-general-background-b)",CARD_ITEM_COLOR_BRAND_BACKGROUND_SOLID:"var(--yt-spec-brand-background-solid)",CARD_ITEM_COLOR_ERROR_BACKGROUND:"var(--yt-spec-error-background)",CARD_ITEM_COLOR_TEXT_PRIMARY:"var(--yt-spec-text-primary)",CARD_ITEM_COLOR_TEXT_SECONDARY:"var(--yt-spec-text-secondary)",CARD_ITEM_COLOR_TEXT_DISABLED:"var(--yt-spec-text-disabled)",CARD_ITEM_COLOR_CALL_TO_ACTION:"var(--yt-spec-call-to-action)",
CARD_ITEM_COLOR_ICON_INACTIVE:"var(--yt-spec-icon-inactive)",CARD_ITEM_COLOR_ICON_DISABLED:"var(--yt-spec-icon-disabled)",CARD_ITEM_COLOR_BRAND_ICON_ACTIVE:"var(--yt-spec-brand-icon-active)",CARD_ITEM_COLOR_BRAND_ICON_INACTIVE:"var(--yt-spec-brand-icon-inactive)",CARD_ITEM_COLOR_10_PERCENT_LAYER:"var(--yt-spec-10-percent-layer)",CARD_ITEM_COLOR_TEXT_PRIMARY_INVERSE:"var(--yt-spec-text-primary-inverse)",CARD_ITEM_COLOR_ICON_ACTIVE_OTHER:"var(--yt-spec-icon-active-other)",CARD_ITEM_COLOR_THEMED_GREEN:"var(--yt-spec-themed-green)",
CARD_ITEM_COLOR_ERROR_INDICATOR:"var(--yt-spec-error-indicator)"};var vbc;var wbc;var xbc=function(){return _.P.apply(this,arguments)||this};
_.z(xbc,_.P);xbc.prototype.textColorChanged_=function(){this.hostElement.style.color=eR[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
var fR=xbc;fR.prototype.textColorChanged_=fR.prototype.textColorChanged_;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],fR.prototype,"ytRendererBehavior",void 0);_.U([_.H(tbc.YtCardItemBoxBehavior),_.W("design:type",Object)],fR.prototype,"ytCardItemBoxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],fR.prototype,"data",void 0);_.U([_.N("data.textColor"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],fR.prototype,"textColorChanged_",null);
fR=_.U([_.ur({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],fR);
_.S(fR,"yt-card-item-text-renderer",function(){if(wbc===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;vbc===void 0&&(vbc=document.createElement("template"));var d=vbc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);wbc=a}a=wbc;return a},{mode:2});var ybc;var zbc;var Abc=function(){return _.P.apply(this,arguments)||this};
_.z(Abc,_.P);var gR=Abc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],gR.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],gR.prototype,"data",void 0);gR=_.U([_.ur({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],gR);
_.S(gR,"yt-card-item-badge-renderer",function(){if(zbc===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;ybc===void 0&&(ybc=document.createElement("template"));var d=ybc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);zbc=a}a=zbc;return a},{mode:2});var Bbc;var Cbc;var Dbc=function(){return _.P.apply(this,arguments)||this};
_.z(Dbc,_.P);Dbc.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
var hR=Dbc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],hR.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],hR.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],hR.prototype,"data",void 0);hR=_.U([_.ur({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],hR);
_.S(hR,"yt-card-item-text-collection-renderer",function(){if(Cbc===void 0){var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;Bbc===void 0&&(Bbc=document.createElement("template"));var d=Bbc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Cbc=a}a=Cbc;return a},{mode:2});var Ebc;var Fbc;var Gbc=function(){return _.P.apply(this,arguments)||this};
_.z(Gbc,_.P);Gbc.prototype.configureRendererStamper=function(){return{"data.textCollectionRenderer":{id:"card-item-text-collection-renderer",mapping:{cardItemTextCollectionRenderer:"yt-card-item-text-collection-renderer"}},"data.buttonRenderer":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{iconSize:"[[iconSize]]"}}}}}};
var iR=Gbc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],iR.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],iR.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],iR.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Number)],iR.prototype,"iconSize",void 0);iR=_.U([_.ur({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],iR);
_.S(iR,"yt-card-item-text-with-button-renderer",function(){if(Fbc===void 0){var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;Ebc===void 0&&(Ebc=document.createElement("template"));var d=Ebc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Fbc=a}a=Fbc;return a},{mode:2});var Hbc=function(){return _.P.apply(this,arguments)||this};
_.z(Hbc,_.P);Hbc.prototype.configureRendererStamper=function(){return{"data.summaryText":{id:"summary-text",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer",cardItemTextWithButtonRenderer:{component:"yt-card-item-text-with-button-renderer",params:{iconSize:18}}}},"data.additionalMetadataText":{id:"additional-metadata-text",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.price":{id:"price",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}}}};
var jR=Hbc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],jR.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],jR.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],jR.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],jR.prototype,"data",void 0);jR=_.U([_.Q({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],jR);
_.S(jR,"ytd-commerce-cart-summary-line-item-renderer",function(){if(obc!==void 0)return obc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return obc=a},{mode:1});_.It("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var Ibc=function(){var a=_.P.apply(this,arguments)||this;a.hidden=!1;return a};
_.z(Ibc,_.P);_.f=Ibc.prototype;_.f.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"}}}}};
_.f.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.f.updateSummary=function(){var a=this.commerceCartCheckoutButtonEntity,b;if(((b=this.data)==null?0:b.cartButton)&&a.checkoutSummaryText){var c,d=Tv((c=this.data)==null?void 0:c.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+d+".cardItemTextRenderer.text",Uv(a.checkoutSummaryText));if(a.checkoutDetailText){var e;c=Tv((e=this.data)==null?void 0:e.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+c+".cardItemTextRenderer.text",Uv(a.checkoutDetailText))}if(a.checkoutAdditionalMetadataText){var g;
e=Tv((g=this.data)==null?void 0:g.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+e+".cardItemTextRenderer.text",Uv(a.checkoutAdditionalMetadataText))}}else a.estimatedTotalPrice&&(g=Tv((d=this.data)==null?void 0:d.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+g+".cardItemTextRenderer.text",Uv(a.estimatedTotalPrice)))};
_.f.updateIsHidden=function(){var a,b=(a=this.commerceCartCheckoutButtonEntity)==null?void 0:a.isHidden;b!==void 0&&(this.hidden=b)};
_.f.updateCheckoutButton=function(){var a,b=(a=this.commerceCartCheckoutButtonEntity)==null?void 0:a.isDisabled;b!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",b);var c;a=(c=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:c.innertubeCommand;a!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",a);var d;c=(d=this.commerceCartCheckoutButtonEntity)==null?void 0:d.checkoutButtonText;c!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:c})};
var kR=Ibc;kR.prototype.entityChanged=kR.prototype.entityChanged;_.U([_.H(_.LI),_.W("design:type",Object)],kR.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],kR.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],kR.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],kR.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],kR.prototype,"fullWidth",void 0);_.U([_.O(),_.W("design:type",Object)],kR.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],kR.prototype,"compact",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],kR.prototype,"hidden",void 0);
_.U([_.O({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:iVa}),_.W("design:type",Object)],kR.prototype,"commerceCartCheckoutButtonEntity",void 0);_.U([_.N("commerceCartCheckoutButtonEntity","data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],kR.prototype,"entityChanged",null);kR=_.U([_.Q({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],kR);
_.S(kR,"ytd-commerce-cart-checkout-button-renderer",function(){if(nbc!==void 0)return nbc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return nbc=a},{mode:2});var Jbc;_.Kbc={};
_.Kbc.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",_.er(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.er(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(a){!this.tappableItemBehaviorTapEnabled||a.keyCode!==13&&a.keyCode!==32||a.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var a=this.data.onTap;a.ypcGetCartEndpoint?(_.mo(this.hostElement,[a]),this.tappableItemBehaviorTapEnabled=!1):a.ypcOffersEndpoint?_.mo(this.hostElement,[a]):_.no(this.hostElement,[a],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(a){this.tappableItemBehaviorTapEnabled=!!a},
tappableItemBehaviorOnTapEnabledChanged_:function(){var a=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(a.setAttribute("tabIndex",0),a.setAttribute("role","button")):(a.removeAttribute("tabIndex"),a.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(a){a.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var Lbc;var Mbc;var Nbc=function(){return _.P.apply(this,arguments)||this};
_.z(Nbc,_.P);Nbc.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.Jt("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.Jt("sharingToggleButtonAndDefaultButton")}}};
var lR=Nbc;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],lR.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],lR.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],lR.prototype,"data",void 0);lR=_.U([_.ur({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],lR);
_.S(lR,"yt-card-item-actions-renderer",function(){if(Mbc===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;Lbc===void 0&&(Lbc=document.createElement("template"));var d=Lbc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Mbc=a}a=Mbc;return a},{mode:2});var Obc;var Pbc;var Qbc;var Rbc;var Sbc;var Tbc;var mR=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return a};
_.z(mR,_.P);mR.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
mR.prototype.handleDarkModeToggledAction_=function(a){this.isDarkTheme_=a};
mR.prototype.computeThemeImage_=function(a,b){if(!a||!a.imageLight)return!1;this.isCircular_=a.isCircular;a.imageWidth&&(this.hostElement.style.width=a.imageWidth+"px");a.imageHeight&&(this.hostElement.style.height=a.imageHeight+"px");a.borderWidth&&(this.image.style.borderWidth=a.borderWidth+"px",this.image.style.borderStyle="solid");a.borderColor&&(this.image.style.borderColor=_.Cq(a.borderColor));return b&&a.imageDark?a.imageDark:a.imageLight};
mR.prototype.computeThemeIcon_=function(a){var b,c;if(!(a==null?0:(b=a.themedIcon)==null?0:(c=b.icon)==null?0:c.iconType))return!1;this.icon.style.color=eR[a.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(a.imageWidth||18)+"px";this.icon.style.height=(a.imageHeight||18)+"px";return _.fs(a.themedIcon.icon.iconType)};
var nR=mR;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],nR.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],nR.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(tbc.YtCardItemBoxBehavior),_.W("design:type",Object)],nR.prototype,"ytCardItemBoxBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],nR.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],nR.prototype,"data",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],nR.prototype,"fit",void 0);_.U([_.O(),_.W("design:type",Boolean)],nR.prototype,"isDarkTheme_",void 0);_.U([_.O({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.W("design:type",Object)],nR.prototype,"themeImage_",void 0);_.U([_.O({computed:"computeThemeIcon_(data)"}),_.W("design:type",Object)],nR.prototype,"themeIcon_",void 0);
_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Object)],nR.prototype,"isCircular_",void 0);_.U([_.gr("#image"),_.W("design:type",Object)],nR.prototype,"image",void 0);_.U([_.gr("#icon"),_.W("design:type",Object)],nR.prototype,"icon",void 0);nR=_.U([_.ur({is:"yt-themed-image-renderer",disableElementRegistration:!0})],nR);
_.S(nR,"yt-themed-image-renderer",function(){if(Tbc===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;Sbc===void 0&&(Sbc=document.createElement("template"));var d=Sbc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Tbc=a}a=Tbc;return a},{mode:2});var Ubc=function(){return _.P.apply(this,arguments)||this};
_.z(Ubc,_.P);Ubc.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"}}}}};
Ubc.prototype.computeImagePlacement_=function(a){return a||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
var oR=Ubc;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],oR.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],oR.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],oR.prototype,"data",void 0);_.U([_.O({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.W("design:type",String)],oR.prototype,"imagePlacement",void 0);
oR=_.U([_.ur({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],oR);
_.S(oR,"yt-card-item-text-with-image-renderer",function(){if(Rbc===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;Qbc===void 0&&(Qbc=document.createElement("template"));var d=Qbc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Rbc=a}a=Rbc;return a},{mode:2});var Vbc=function(){return _.P.apply(this,arguments)||this};
_.z(Vbc,_.P);Vbc.prototype.configureRendererStamper=function(){return{"data.errorTextRenderer":{id:"error-text-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"},cardItemTextWithImageRenderer:{component:"yt-card-item-text-with-image-renderer"}}}}};
var pR=Vbc;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],pR.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],pR.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],pR.prototype,"data",void 0);pR=_.U([_.ur({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],pR);
_.S(pR,"yt-card-item-error-renderer",function(){if(Pbc===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;Obc===void 0&&(Obc=document.createElement("template"));var d=Obc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Pbc=a}a=Pbc;return a},{mode:2});var Wbc;var Xbc;_.It("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var Ybc=function(){return _.P.apply(this,arguments)||this};
_.z(Ybc,_.P);_.f=Ybc.prototype;
_.f.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"}}}}};
_.f.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.f.backgroundColorChanged_=function(){var a,b=(a=this.data)==null?void 0:a.backgroundColor;a=eR[b||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.E(this.hostElement).querySelector("#main-content").style.backgroundColor=a};
_.f.headerPromoBackgroundColorChanged_=function(){var a,b=(a=this.data)==null?void 0:a.headerPromoBackgroundColor;a=eR[b||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.E(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=a};
_.f.errorRendererVisibilityChanged_=function(){var a=this.isExpanded_,b;this.isErrorRendererVisible_=!((b=this.data)==null||!b.errorRenderer)&&!a};
_.f.onYtToggleButton_=function(a,b){this.isExpanded_=b.toggled};
var qR=Ybc;qR.prototype.onYtToggleButton_=qR.prototype.onYtToggleButton_;qR.prototype.errorRendererVisibilityChanged_=qR.prototype.errorRendererVisibilityChanged_;qR.prototype.headerPromoBackgroundColorChanged_=qR.prototype.headerPromoBackgroundColorChanged_;qR.prototype.backgroundColorChanged_=qR.prototype.backgroundColorChanged_;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],qR.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],qR.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(tbc.YtCardItemBoxBehavior),_.W("design:type",Object)],qR.prototype,"ytCardItemBoxBehavior",void 0);_.U([_.H(_.Kbc.YtTappableItemBehavior),_.W("design:type",Object)],qR.prototype,"ytTappableItemBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],qR.prototype,"data",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],qR.prototype,"isExpanded_",void 0);
_.U([_.O({value:!1}),_.W("design:type",Boolean)],qR.prototype,"isErrorRendererVisible_",void 0);_.U([_.N("data.backgroundColor"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],qR.prototype,"backgroundColorChanged_",null);_.U([_.N("data.headerPromoBackgroundColor"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],qR.prototype,"headerPromoBackgroundColorChanged_",null);
_.U([_.N("data.errorRenderer","isExpanded_"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],qR.prototype,"errorRendererVisibilityChanged_",null);_.U([_.M("yt-toggle-button"),_.W("design:type",Function),_.W("design:paramtypes",[Event,Object]),_.W("design:returntype")],qR.prototype,"onYtToggleButton_",null);qR=_.U([_.ur({is:"yt-card-item-renderer",disableElementRegistration:!0})],qR);
_.S(qR,"yt-card-item-renderer",function(){if(Xbc===void 0){var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;Wbc===void 0&&(Wbc=document.createElement("template"));var d=Wbc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Xbc=a}a=Xbc;return a},{mode:2});_.It("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var Zbc=function(){var a=_.P.apply(this,arguments)||this;a.hidden=!1;return a};
_.z(Zbc,_.P);_.f=Zbc.prototype;_.f.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.f.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.f.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var a,b=(a=this.commerceCartHeaderEntity)==null?void 0:a.isHidden;b!==void 0&&(this.hidden=b)}};
_.f.updateTitle=function(){var a=this.commerceCartHeaderEntity.isDisabled,b,c,d=(c=_.y((b=this.data)==null?void 0:b.item,TFb))==null?void 0:c.headingRenderer;d&&(b=Tv(d,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+b+".0.cardItemTextRenderer.textColor",a?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.f.updateSummaryText=function(){var a=this.commerceCartHeaderEntity;if(this.compact){var b,c,d=(c=_.y((b=this.data)==null?void 0:b.item,TFb))==null?void 0:c.headingRenderer;d&&(b=Tv(d,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+b+".1.cardItemTextRenderer.text",a.shortHeaderSummaryText?Uv(a.shortHeaderSummaryText):a.headerSummaryText?Uv(a.headerSummaryText):""))}else{var e;if(b=(e=_.y((d=this.data)==null?void 0:d.item,TFb))==null?void 0:e.additionalInfoRenderer)b=Tv(b,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+b+".text",a.headerSummaryText?Uv(a.headerSummaryText):"")}};
_.f.updateCheckoutButton=function(){var a=this.commerceCartHeaderEntity,b,c,d=(c=_.y((b=this.data)==null?void 0:b.item,TFb))==null?void 0:c.additionalInfoRenderer;b=Tv(d,"buttonRenderer");var e;c=(e=this.commerceCartHeaderEntity)==null?void 0:e.isButtonDisabled;var g;e=(g=this.commerceCartHeaderEntity)==null?void 0:g.isButtonHidden;c!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+b+".buttonRenderer.isDisabled",c);e!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
e);var k;a=(k=a.checkoutButtonCommand)==null?void 0:k.innertubeCommand;a!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+b+".buttonRenderer.command",a)};
var rR=Zbc;rR.prototype.entityChanged=rR.prototype.entityChanged;_.U([_.H(_.LI),_.W("design:type",Object)],rR.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],rR.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],rR.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],rR.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],rR.prototype,"compact",void 0);_.U([_.O({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(a,b){return _.mp(a.entities,"commerceCartHeaderEntity",b)}}),
_.W("design:type",Object)],rR.prototype,"commerceCartHeaderEntity",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],rR.prototype,"hidden",void 0);_.U([_.N("commerceCartHeaderEntity","data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],rR.prototype,"entityChanged",null);rR=_.U([_.Q({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],rR);
_.S(rR,"ytd-commerce-cart-header-renderer",function(){if(Jbc!==void 0)return Jbc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Jbc=a},{mode:1});var $bc;var acc=_.Dy(function(a,b){var c;return(c=a.onChangeCallback)==null?void 0:c.call(a,b)},1E3),bcc=_.Rr(function(a){var b=a.data;
var c=a.iconMinus;a=a.iconPlus;var d=function(){return!!b().disabled},e=_.h(_.fh(0,"r56zNb")),g=e.next().value,k=e.next().value;
e={};e=_.jt("yt-spec-quantity-incrementer-shape__icon",(e["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return d()||g()===(b().onRemoveCommand?0:1)},e));
var m={};m=_.jt("yt-spec-quantity-incrementer-shape__icon",(m["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return g()>=b().maxValue||d()},m));
var n={};n=_.jt("yt-spec-quantity-incrementer-shape__text",(n["yt-spec-quantity-incrementer-shape__text--invalid"]=function(){return g()>b().maxValue},n["yt-spec-quantity-incrementer-shape__text--text-disabled"]=d,n));
var r=_.ot(function(){if(g()===1){var u,w;(w=(u=b()).onRemoveCommand)==null||w.call(u)}u=g()>b().maxValue?b().maxValue:g()-1;k(u);acc(b(),u);return!1}),t=_.ot(function(){if(g()===b().maxValue)return!1;
var u=g()+1;k(u);acc(b(),u);return!1});
_.ti(function(){k(b().value)});
return _.q("quantity-incrementer-shape",null,_.q("div",{class:"yt-spec-quantity-incrementer-shape"},_.q("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return g()===(b().onRemoveCommand?0:1)||d()},
"aria-label":function(){return g()!==1?b().minusLabel:b().minimumReachedLabel},
"on:click":r},_.q(_.xt,{model:{circular:!0}}),_.q("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.q("div",{class:e},c()))),_.q("div",{class:n},g),_.q("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return g()>=b().maxValue||d()},
"aria-label":function(){return g()!==b().maxValue?b().plusLabel:b().maximumReachedLabel},
"on:click":t},_.q(_.xt,{model:{circular:!0}}),_.q("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.q("div",{class:m},a())))))});_.Ws(_.Rr(function(a){function b(){c().onRemoveCommand&&_.Js(c().onRemoveCommand)}
var c=a.data;var d=_.tu(bXa,function(){return c().quantityIncrementerEntityKey});
return _.q("yt-quantity-incrementer-view-model",null,_.q(bcc,{data:function(){var e=c(),g;var k=d()?!((g=d())==null||!g.disabled):!1;var m;g=d()?(m=d())==null?void 0:m.quantity:c().quantity;return B2a(e,k,b,g)},
iconMinus:function(){return _.q(_.tt,{icon:"BAR_HORIZONTAL",className:_.lt("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-minus-icon")})},
iconPlus:function(){return _.q(_.tt,{icon:"ADD",className:_.lt("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-plus-icon")})}}))}),"yt-quantity-incrementer-view-model",{props:{data:_.SG}});var sR=function(){var a=_.P.apply(this,arguments)||this;a.compact=!1;a.hasQuantityIncrementer=!1;return a};
_.z(sR,_.P);sR.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"}}}};
sR.prototype.computeHasQuantityIncrementer=function(){var a;return!!_.y((a=this.data)==null?void 0:a.picker,XFb)};
sR.prototype.onLabelClick=function(){var a;(a=this.dropdownEl)==null||a.open()};
var tR=sR;_.U([_.gr("ytd-dropdown-renderer"),_.W("design:type",Object)],tR.prototype,"dropdownEl",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],tR.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],tR.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],tR.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],tR.prototype,"quantityColor",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],tR.prototype,"compact",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.W("design:type",Object)],tR.prototype,"hasQuantityIncrementer",void 0);tR=_.U([_.Q({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],tR);
_.S(tR,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if($bc!==void 0)return $bc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return $bc=a},{mode:1});var ccc;var dcc;var uR=function(){return _.P.apply(this,arguments)||this};
_.z(uR,_.P);uR.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
uR.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
uR.prototype.updateTitle=function(){var a=this.disabledCartItemEntity;a.disableActionName&&this.set("data.title",Uv(a.disableActionName))};
uR.prototype.updateButton=function(){var a,b=(a=this.disabledCartItemEntity.undoCommand)==null?void 0:a.innertubeCommand;b!==void 0&&(this.set("data.actionButton.buttonRenderer.command",b),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
var vR=uR;vR.prototype.entityChanged=vR.prototype.entityChanged;_.U([_.H(_.LI),_.W("design:type",Object)],vR.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],vR.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],vR.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(a,b){return _.mp(a.entities,"disabledCartItemEntity",b)}}),
_.W("design:type",Object)],vR.prototype,"disabledCartItemEntity",void 0);_.U([_.O(),_.W("design:type",Object)],vR.prototype,"data",void 0);_.U([_.N("disabledCartItemEntity","data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],vR.prototype,"entityChanged",null);vR=_.U([_.Q({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],vR);
_.S(vR,"ytd-disabled-cart-item-renderer",function(){if(dcc!==void 0)return dcc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return dcc=a},{mode:1});_.It("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var ecc=function(){var a=_.P.apply(this,arguments)||this;a.compact=!1;a.hidden=!1;a.errorHidden=!1;a.noOnTap=!1;return a};
_.z(ecc,_.P);_.f=ecc.prototype;
_.f.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"}}}};
_.f.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.f.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var a=this.firstButtonElement;a.alignByText=!0;a.iconAlignByText=!0}};
_.f.computeNoOnTap=function(a){return!a};
_.f.updateQuantityColor=function(){if(this.pickerElement){var a,b=(a=this.commerceCartItemEntity)==null?void 0:a.quantityColor;this.pickerElement.quantityColor=b}};
_.f.updateTotalPriceColor=function(){var a,b=(a=this.commerceCartItemEntity)==null?void 0:a.totalPriceColor;if(b){var c;a=_.y((c=this.data)==null?void 0:c.quantityPicker,VFb);if(c=_.y(a==null?void 0:a.price,UFb))c.textColor=b}};
_.f.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var a,b=(a=this.commerceCartItemEntity)==null?void 0:a.isHidden;b!==void 0&&(this.hidden=b)}};
_.f.updateHideErrorMessage=function(){var a,b=(a=this.commerceCartItemEntity)==null?void 0:a.hideErrorMessage;b!==void 0&&(this.errorHidden=b)};
_.f.updateQuantity=function(){var a=this,b,c=(b=this.commerceCartItemEntity)==null?void 0:b.quantity,d;b=(d=this.commerceCartItemEntity)==null?void 0:d.totalPrice;if(c){this.updateTotalPriceColor();this.updateQuantityColor();var e;d=_.y((e=this.data)==null?void 0:e.quantityPicker,VFb);if(e=_.y(d==null?void 0:d.price,UFb))e.text=b?{simpleText:b.content}:void 0;if(b=_.y(d==null?void 0:d.picker,XFb))b.quantity=c;var g;if(e=(g=_.y(d==null?void 0:d.picker,qEb))==null?void 0:g.entries){g=!1;b=void 0;e=
_.h(e);for(d=e.next();!d.done;d=e.next())d=d.value,d.dropdownItemRenderer&&(b||(b=d.dropdownItemRenderer),d.dropdownItemRenderer.isSelected=!1,c===d.dropdownItemRenderer.int32Value&&(g=!0,d.dropdownItemRenderer.isSelected=!0));!g&&b&&(b.isSelected=!0)}_.Tm(this,function(){var k;a.set("data.quantityPicker",_.yf.unsafeClone((k=a.data)==null?void 0:k.quantityPicker))})}};
var wR=ecc;wR.prototype.onYtRendererstamperFinished=wR.prototype.onYtRendererstamperFinished;wR.prototype.entityChanged=wR.prototype.entityChanged;_.U([_.O(),_.W("design:type",Object)],wR.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],wR.prototype,"compact",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],wR.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],wR.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],wR.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],wR.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(a,b){return _.mp(a.entities,"commerceCartItemEntity",b)}}),
_.W("design:type",Object)],wR.prototype,"commerceCartItemEntity",void 0);_.U([_.O(),_.W("design:type",Object)],wR.prototype,"quantityPicker",void 0);_.U([_.O(),_.W("design:type",Object)],wR.prototype,"compactQuantityPicker",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],wR.prototype,"hidden",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],wR.prototype,"errorHidden",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.W("design:type",Object)],wR.prototype,"noOnTap",void 0);_.U([_.gr("ytd-commerce-cart-item-quantity-picker-renderer"),_.W("design:type",Object)],wR.prototype,"pickerElement",void 0);_.U([_.gr("yt-button-renderer"),_.W("design:type",Element)],wR.prototype,"firstButtonElement",void 0);
_.U([_.N("commerceCartItemEntity","data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],wR.prototype,"entityChanged",null);_.U([_.M("yt-rendererstamper-finished"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],wR.prototype,"onYtRendererstamperFinished",null);wR=_.U([_.Q({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],wR);
_.S(wR,"ytd-commerce-cart-item-renderer",function(){if(ccc!==void 0)return ccc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return ccc=a},{mode:_.as("kevlar_poly_si_batch_j028")?1:2});var fcc;var gcc;var xR=function(){return _.P.apply(this,arguments)||this};
_.z(xR,_.P);xR.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}}}}}};
xR.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
xR.prototype.updateCheckoutLineItems=function(){var a,b=(a=this.commerceCartCheckoutButtonEntity)==null?void 0:a.checkoutLineItems;b&&(a=b.map(function(c){a:{var d=c.price;var e=c.description;switch(c.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":c={cardItemTextRenderer:{text:Uv(e),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"}}};
d={cardItemTextRenderer:{text:Uv(d),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"}}};d={commerceCartSummaryLineItemRenderer:{summaryText:c,price:d}};break a;default:c={cardItemTextRenderer:{text:Uv(e),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"}}},d={cardItemTextRenderer:{text:Uv(d),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"}}},d={commerceCartSummaryLineItemRenderer:{summaryText:c,price:d}}}}return d}),this.set("data.summaryLineItems",a))};
xR.prototype.updateIsHidden=function(){var a,b=(a=this.commerceCartCheckoutButtonEntity)==null?void 0:a.isHidden;b!==void 0&&(this.hostElement.hidden=b)};
var yR=xR;yR.prototype.entityChanged=yR.prototype.entityChanged;_.U([_.H(_.LI),_.W("design:type",Object)],yR.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],yR.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],yR.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],yR.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],yR.prototype,"data",void 0);_.U([_.O({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:iVa}),_.W("design:type",Object)],yR.prototype,"commerceCartCheckoutButtonEntity",void 0);_.U([_.N("commerceCartCheckoutButtonEntity","data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],yR.prototype,"entityChanged",null);yR=_.U([_.Q({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],yR);
_.S(yR,"ytd-commerce-cart-summary-renderer",function(){if(gcc!==void 0)return gcc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return gcc=a},{mode:1});var hcc={};hcc.InjectBehavior=[YKa.InjectBehavior];var icc;var jcc;var GR=function(){return _.P.apply(this,arguments)||this};
_.z(GR,_.P);
GR.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:_.Jt("menuRenderer")}}};
GR.prototype.onMenuTap=function(a){a.stopPropagation()};
_.Vm.Object.defineProperties(GR.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 a,b;return!(((a=this.data)==null||!a.sectionHeading)&&((b=this.data)==null?void 0:b.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var a,b;return!(((a=this.data)==null||!a.image)&&((b=this.data)==null?void 0:b.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var a,b;return!(((a=this.data)==null||!a.menu)&&((b=this.data)==null?void 0:b.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
var HR=GR;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],HR.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],HR.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Kbc.YtTappableItemBehavior),_.W("design:type",Object)],HR.prototype,"ytTappableItemBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],HR.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.K("data.accessibilityData"),_.W("design:type",String),_.W("design:paramtypes",[])],HR.prototype,"ariaLabel",null);_.U([_.K("data.sectionHeading","data.layout"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],HR.prototype,"sectionHeadingVisible",null);_.U([_.K("data.image","data.layout"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],HR.prototype,"imageVisible",null);
_.U([_.K("data.menu","data.layout"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],HR.prototype,"menuVisible",null);HR=_.U([_.ur({is:"yt-activity-item-renderer",disableElementRegistration:!0})],HR);
_.S(HR,"yt-activity-item-renderer",function(){if(jcc===void 0){var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;icc===void 0&&(icc=document.createElement("template"));var d=icc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);jcc=a}a=jcc;return a},{mode:2});var kcc;var lcc;var mcc;var ncc;var occ=function(){return _.P.apply(this,arguments)||this};
_.z(occ,_.P);
occ.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"}}}}};
occ.prototype.backgroundColorChanged_=function(){var a,b=(a=this.data)==null?void 0:a.backgroundColor;this.hostElement.style.backgroundColor=eR[b||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
var IR=occ;IR.prototype.backgroundColorChanged_=IR.prototype.backgroundColorChanged_;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],IR.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],IR.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],IR.prototype,"data",void 0);
_.U([_.N("data.backgroundColor"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],IR.prototype,"backgroundColorChanged_",null);IR=_.U([_.ur({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],IR);
_.S(IR,"yt-offer-item-upsell-renderer",function(){if(ncc===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;mcc===void 0&&(mcc=document.createElement("template"));var d=mcc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);ncc=a}a=ncc;return a},{mode:2});_.It("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var pcc=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};a.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return a};
_.z(pcc,_.P);_.f=pcc.prototype;
_.f.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:_.Jt("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.f.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.f.computeContainerStyle_=function(a){return a};
_.f.computeContainerIsHidden_=function(a){return a&&!!a.isHidden};
_.f.computeShowSpinner_=function(a,b){return a&&b==="in-progress"};
_.f.computeShowMoreContentsButton_=function(a,b,c,d,e){return!(!(d&&d.length||e&&e.length&&c)||!a||b)};
_.f.onToggleButton_=function(a){var b=this;a.stopPropagation();this.isExpanded_=a.detail&&a.detail.toggled;var c,d;this.isExpanded_&&!this.data.continuationSection.length&&((c=this.data)==null?0:(d=c.continuation)==null?0:d.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.go(this.hostElement,"yt-load-next-continuation",function(e){return b.getContinuationUrl_(b.data.continuation.onClickContinuationData,e)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.mo(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.f.onShowMoreContentsButtonClicked_=function(a){var b=this;a.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.go(this.hostElement,"yt-load-next-continuation",function(c){return b.getContinuationUrl_(b.data.continuations[0].nextContinuationData,c)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.mo(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.f.getContinuationUrl_=function(a,b){var c=a.continuation;a=a.clickTrackingParams;var d=_.Fn();a&&d&&_.Vo(d,_.qs(a));return _.Qi(b,{continuation:c})};
_.f.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var a=_.E(this.hostElement).querySelector("#continuation-section");a&&(a=a.querySelectorAll("ytmusic-item-section-renderer"))&&a.forEach(function(b){return b.classList.add("memberships-and-purchases")})};
_.f.dataChanged_=function(){var a;this.isExpanded_=!((a=this.data)==null||!a.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.f.updateCardOnClickCommand_=function(a){a=_.y(a,LFb);var b,c;this.data&&((b=this.data)==null?0:b.targetId)&&a&&a.targetId===((c=this.data)==null?void 0:c.targetId)&&a.onClickCommand&&(this.data.onClickCommand=a.onClickCommand,this.isOnClickCommand_=!0)};
_.f.backgroundColorChanged_=function(){var a,b=(a=this.data)==null?void 0:a.backgroundColor;this.hostElement.style.backgroundColor=eR[b||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
var JR=pcc;JR.prototype.backgroundColorChanged_=JR.prototype.backgroundColorChanged_;JR.prototype.dataChanged_=JR.prototype.dataChanged_;JR.prototype.nextContinuationDataUpdated_=JR.prototype.nextContinuationDataUpdated_;JR.prototype.onToggleButton_=JR.prototype.onToggleButton_;_.U([_.H(_.RM),_.W("design:type",Object)],JR.prototype,"ytContinuationHandlerBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],JR.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],JR.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.SM.YtNextContinuationBehavior),_.W("design:type",Object)],JR.prototype,"ytNextContinuationBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],JR.prototype,"ytRendererBehavior",void 0);_.U([_.H(hcc.InjectBehavior),_.W("design:type",Object)],JR.prototype,"injectBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],JR.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],JR.prototype,"compact",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],JR.prototype,"isExpanded_",void 0);_.U([_.O({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.W("design:type",String)],JR.prototype,"containerStyle_",void 0);_.U([_.O({value:"not-started"}),_.W("design:type",String)],JR.prototype,"continuationStatus_",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.W("design:type",Boolean)],JR.prototype,"showSpinner_",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],JR.prototype,"isOnClickCommand_",void 0);_.U([_.O({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.W("design:type",Boolean)],JR.prototype,"showMoreContentsButton_",void 0);
_.U([_.O({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(a,b){return!b||a.entities?null:_.mp(a.entities,"cardItemContainerEntity",b)}}),
_.W("design:type",Object)],JR.prototype,"cardItemContainerEntity_",void 0);_.U([_.M("yt-toggle-button"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],JR.prototype,"onToggleButton_",null);_.U([_.M("yt-next-continuation-data-updated"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],JR.prototype,"nextContinuationDataUpdated_",null);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],JR.prototype,"dataChanged_",null);_.U([_.N("data.backgroundColor"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],JR.prototype,"backgroundColorChanged_",null);JR=_.U([_.ur({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],JR);
_.S(JR,"yt-card-item-container-renderer",function(){if(lcc===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;kcc===void 0&&(kcc=document.createElement("template"));var d=kcc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);lcc=a}a=lcc;return a},{mode:2});var KR=function(){return _.P.apply(this,arguments)||this};
_.z(KR,_.P);KR.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"}}}};
KR.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
KR.prototype.computeLoadingHidden=function(){var a;return!((a=this.commerceCartPageStateEntity)==null?0:a.cartActionInProgress)};
KR.prototype.updateNotification=function(){var a,b=(a=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:a.summaryText;b&&this.set("data.cartNotification",Uv(b))};
var LR=KR;LR.prototype.notificationEntityChanged=LR.prototype.notificationEntityChanged;_.U([_.H(_.LI),_.W("design:type",Object)],LR.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],LR.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],LR.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],LR.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],LR.prototype,"data",void 0);_.U([_.O({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(a,b){return _.mp(a.entities,"commerceCartExpandableNotificationEntity",b)}}),
_.W("design:type",Object)],LR.prototype,"commerceCartExpandableNotificationEntity",void 0);_.U([_.O({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(a,b){return _.mp(a.entities,"commerceCartPageStateEntity",b)}}),
_.W("design:type",Object)],LR.prototype,"commerceCartPageStateEntity",void 0);_.U([_.gr("#spinner"),_.W("design:type",HTMLElement)],LR.prototype,"spinner",void 0);_.U([_.N("commerceCartExpandableNotificationEntity","data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],LR.prototype,"notificationEntityChanged",null);LR=_.U([_.Q({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],LR);
_.S(LR,"ytd-commerce-cart-renderer",function(){if(fcc!==void 0)return fcc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return fcc=a},{mode:1});var qcc;var rcc=function(){var a=_.P.apply(this,arguments)||this;a.bigImage=!1;return a};
_.z(rcc,_.P);_.Vm.Object.defineProperties(rcc.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.placeholderImageUrl}}});
var MR=rcc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],MR.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],MR.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],MR.prototype,"bigImage",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],MR.prototype,"placeholderImageUrl",null);MR=_.U([_.Q({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],MR);
_.S(MR,"ytd-empty-product-shelf-renderer",function(){if(qcc!==void 0)return qcc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return qcc=a},{mode:1});var scc;var tcc=function(){var a=_.P.apply(this,arguments)||this;a.itemStyle="link-item";a.watchMetadataRefresh=!1;a.skinnyMode=!1;a.metaPanel=!1;a.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};a.updateOnResizeDebouncer=null;return a};
_.z(tcc,_.P);_.f=tcc.prototype;_.f.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.f.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"}}}}};
_.f.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.f.attachVEs=function(a){a.trackingParams&&_.ms().graftServerVe(a.trackingParams)};
_.f.handleUpdateMerchShelfAction=function(a){var b=this,c=_.y(a.updateMerchandiseShelfAction.merchandiseShelf,_.KCb);c&&(c.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){b.attachVEs(c);b.data=c},Number(c.renderDelayMs))):(this.attachVEs(c),this.data=c))};
_.f.updateOnResize=function(){if(this.JSC$14497_scrollContainer!==void 0&&this.JSC$14497_scrollContainer.clientWidth!==0&&this.items!==void 0){var a=this.JSC$14497_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-a));this.ytdHorizontalListBehavior.reposition_();var b;switch((b=this.data)==null?void 0:b.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var c,
d;((c=this.data)==null?void 0:(d=c.items)==null?void 0:d.length)===1?this.itemStyle="cta-item":this.itemStyle=a>=740?"large-item":"small-item"}}};
_.f.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.nC(this.updateOnResizeDebouncer,_.bC.after(100),this.updateOnResize)};
var NR=tcc;NR.prototype.debouncedUpdateOnResize=NR.prototype.debouncedUpdateOnResize;NR.prototype.dataChanged=NR.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],NR.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],NR.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.hJ.YtdHorizontalListBehavior),_.W("design:type",Object)],NR.prototype,"ytdHorizontalListBehavior",void 0);
_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],NR.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],NR.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],NR.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],NR.prototype,"itemStyle",void 0);_.U([_.O({value:6}),_.W("design:type",Number)],NR.prototype,"initialCount",void 0);
_.U([_.O({value:"data.items"}),_.W("design:type",String)],NR.prototype,"itemsPath",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],NR.prototype,"watchMetadataRefresh",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],NR.prototype,"skinnyMode",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],NR.prototype,"metaPanel",void 0);_.U([_.gr("#items"),_.W("design:type",HTMLDivElement)],NR.prototype,"items",void 0);
_.U([_.gr("#scroll-container"),_.W("design:type",HTMLDivElement)],NR.prototype,"JSC$14497_scrollContainer",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],NR.prototype,"dataChanged",null);_.U([_.M("iron-resize"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],NR.prototype,"debouncedUpdateOnResize",null);NR=_.U([_.Q({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],NR);
_.S(NR,"ytd-merch-shelf-renderer",function(){if(scc!==void 0)return scc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return scc=a},{mode:2});var ucc;var vcc=function(){var a=_.P.apply(this,arguments)||this;a.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 a};
_.z(vcc,_.P);_.f=vcc.prototype;
_.f.addBackstagePostAction=function(a){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(a=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",a))&&(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:a}):this.set("data.contents",[{backstagePostThreadRenderer:a}]))};
_.f.addBackstageCommentAction=function(a){var b=this.get("addBackstageCommentAction.parentId",a);a=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",a);if(b&&a){b=this.postIdToIndices(b);for(var c=0;c<b.length;c++){var d=b[c];if(d<0)break;d="data.contents."+d+".backstagePostThreadRenderer.comments";this.get(d)&&(this.get(d+".backstageCommentsRenderer.contents")&&this.push(d+".backstageCommentsRenderer.contents",{commentThreadRenderer:a}),this.get(d+".backstageCommentsRenderer.teaserContents")?
this.push(d+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:a}):this.set(d+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:a}]))}}};
_.f.addBackstageReplyAction=function(a){var b=this.get("addBackstageReplyAction.parentId",a);a=this.get("addBackstageReplyAction.renderer.commentRenderer",a);b&&a&&this.setCreatorReply(b,a)};
_.f.banAuthorAction=function(a){var b=this.get("banAuthorAction.commentId",a);b&&(a=this.get("banAuthorAction.parentCommentId",a)||this.getParentPostId(b),this.removeFromStream(b,a))};
_.f.hideReportedCommentAction=function(a){var b=this.get("hideReportedCommentAction.commentId",a);b&&((a=this.get("hideReportedCommentAction.parentCommentId",a))||(a=this.getParentPostId(b)),this.removeFromStream(b,a))};
_.f.replaceBackstageCommentAction=function(a){var b=this.get("replaceBackstageCommentAction.commentId",a),c=this.get("replaceBackstageCommentAction.parentId",a);a=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",a);if(b&&c&&a){c=this.postIdToIndices(c);for(var d=0;d<c.length;d++){var e=c[d];if(e<0)break;var g=this.commentIdToIndex(b,e,!1);if(g>=0){var k=this.get("data.contents."+e+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+g+".commentThreadRenderer.replies.commentRepliesRenderer");
k&&(a.replies={commentRepliesRenderer:k});this.splice("data.contents."+e+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",g,1,{commentThreadRenderer:a})}g=this.commentIdToIndex(b,e,!0);if(g>=0){if(k=this.get("data.contents."+e+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(g+".commentThreadRenderer.replies.commentRepliesRenderer")))a.replies={commentRepliesRenderer:k};this.splice("data.contents."+e+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
g,1,{commentThreadRenderer:a})}}}};
_.f.replaceBackstagePostAction=function(a){var b=this.get("replaceBackstagePostAction.itemId",a);if(b){b=this.postIdToIndices(b);for(var c=0;c<b.length;c++){var d=b[c];if(d<0)break;var e=this.getPostRendererType(d),g=this.get("replaceBackstagePostAction.renderer."+e,a);if(!g&&e!=="sharedPostRenderer")break;var k=!1;g||(k=!0,g=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",a));if(!g)break;var m={};k?(_.zs(m,Vyb,g),this.set("data.contents."+d+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
m)):(_.zs(m,new _.X(e),g),this.set("data.contents."+d+".backstagePostThreadRenderer.post",m))}}};
_.f.replaceBackstageReplyAction=function(a){var b=this.get("replaceBackstageReplyAction.replyId",a),c=this.get("replaceBackstageReplyAction.parentId",a);a=this.get("replaceBackstageReplyAction.renderer.commentRenderer",a);b&&a&&c&&this.setCreatorReply(c,a)};
_.f.removeCommentAction=function(a){var b=this.get("removeCommentAction.commentId",a);if(b){var c=this.get("removeCommentAction.parentCommentId",a);c&&this.get("removeCommentAction.isCreatorReply",a)?this.setCreatorReply(c,void 0):(c||(c=this.getParentPostId(b)),this.removeFromStream(b,c))}};
_.f.setCreatorReply=function(a,b){var c=this.getParentPostId(a);if(c){c=this.postIdToIndices(c);for(var d=0;d<c.length;d++){var e=c[d];if(e<0)break;var g=this.commentIdToIndex(a,e,!1);if(g>=0){var k="data.contents."+e+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+g;g=k+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";k+=".commentThreadRenderer.replies";b==void 0?(this.set(k,{}),this.set(g,!1)):(this.set(k,{commentRepliesRenderer:{teaserContents:[{commentRenderer:b}]}}),
this.set(k+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(g,!0))}g=this.commentIdToIndex(a,e,!0);g>=0&&(g="data.contents."+e+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+g,e=g+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",g+=".commentThreadRenderer.replies",b==void 0?(this.set(g,{}),this.set(e,!1)):(this.set(g,{commentRepliesRenderer:{teaserContents:[{commentRenderer:b}]}}),this.set(e,!0)))}}};
_.f.removeFromStream=function(a,b){if(b){b=this.postIdToIndices(b);for(var c=0;c<b.length;c++){var d=b[c];if(d<0)break;var e=this.commentIdToIndex(a,d,!1);e>=0&&this.splice("data.contents."+d+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",e,1);e=this.commentIdToIndex(a,d,!0);e>=0&&this.splice("data.contents."+d+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",e,1);d="data.contents."+d+".backstagePostThreadRenderer.post.backstagePostRenderer";
e=d+".backstageAttachment.pollRenderer.votedCommentId";this.get(e)===a&&(this.set(e,null),this.set(d+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(b=this.postIdToIndices(a).reverse(),c=0;c<b.length;c++){d=b[c];if(d<0)break;e=this.getPostRendererType(d);var g=this.get("backstagePostThreadRenderer.post."+e,this.data.contents[d]);g.postId===a?this.splice("data.contents",d,1):e==="sharedPostRenderer"&&this.set("data.contents."+d+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);g.scheduledPublishTimeSec&&_.ho(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.f.postIdToIndices=function(a){for(var b=[],c=0;c<this.data.contents.length;c++){var d=this.getPostRendererType(c);this.get("backstagePostThreadRenderer.post."+d+".postId",this.data.contents[c])===a&&b.push(c);if(d==="sharedPostRenderer"){var e=this.get("backstagePostThreadRenderer.post."+d+".originalPost.backstagePostRenderer.postId",this.data.contents[c]);d=this.get("backstagePostThreadRenderer.post."+d+".originalPost.postRenderer.postId",this.data.contents[c]);e!==a&&d!==a||b.push(c)}}return b};
_.f.commentIdToIndex=function(a,b,c){if(b<0)return-1;var d,e,g,k,m=_.y((d=this.data)==null?void 0:(e=d.contents)==null?void 0:(g=e[b])==null?void 0:(k=g.backstagePostThreadRenderer)==null?void 0:k.comments,Tyb);return(b=c?m==null?void 0:m.teaserContents:m==null?void 0:m.contents)&&b.length?b.findIndex(function(n){return _.y(n,uzb).comment.commentRenderer.commentId===a}):-1};
_.f.getParentPostId=function(a){a=a.split(".");if(a[1])return a[0]};
_.f.getPostRendererType=function(a){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[a])?"sharedPostRenderer":"backstagePostRenderer"};
var OR=vcc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],OR.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],OR.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],OR.prototype,"data",void 0);OR=_.U([_.Q({disableElementRegistration:!0,is:"ytd-backstage-items"})],OR);
_.S(OR,"ytd-backstage-items",function(){if(ucc!==void 0)return ucc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return ucc=
a},{mode:1});var wcc;_.qr({is:"ytd-comments",_template:function(){if(wcc!==void 0)return wcc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-spinner-lite active="[[canShowDefaultSpinner_]]" class="style-scope ytd-comments"></tp-yt-paper-spinner-lite>\n<ytd-item-section-renderer id="sections" can-schedule-jobs="[[canScheduleJobs]]" comments-hide-panel-button="[[hidePanelButton]]" continuation-disable-prescan-visibility="[[disablePrescanVisibility]]" data="{{data}}" engagement-panel="[[engagementPanel]]" initial-count="2" is-watch-grid="[[isWatchGrid]]" class="style-scope ytd-comments">\n</ytd-item-section-renderer>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return wcc=a},
behaviors:[_.bLa.YtHostElementBehavior,_.YI.YtPlayerListenerBehavior,_.Z.YtRendererBehavior,_.bH.YtActionHandlerBehavior],properties:{data:{type:Object,observer:"dataChanged_"},isBackstage:{type:Boolean,computed:"computeIsBackstage_(data.header.commentsHeaderRenderer.isBackstageContent)",reflectToAttribute:!0},disablePrescanVisibility:{type:Boolean,value:!0},canScheduleJobs:{type:Boolean,value:!0},canShowDefaultSpinner_:{type:Boolean,computed:"computeCanShowDefaultSpinner_(data, canScheduleJobs)"},
engagementPanel:{type:Boolean,reflectToAttribute:!0},hidePanelButton:{type:Boolean,value:!1},isWatchGrid:{type:Boolean,value:!1}},actionMap:{"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-create-comment-reply-action":"createCommentReplyAction_","yt-hide-reported-comment-action":"hideReportedCommentAction_","yt-pin-comment-action":"pinCommentAction_","yt-reload-comments-command":"reloadComments_","yt-remove-comment-action":"removeCommentAction_","yt-unpin-comment-action":"unpinCommentAction_",
"yt-update-comment-action":"updateCommentAction_","yt-update-comment-reply-action":"updateCommentReplyAction_"},listeners:{"yt-retrieve-location":"onRetrieveLocation_"},observers:["contentsChanged_(data.contents.*)","headerChanged_(data.header)"],created:function(){var a=this;this.RenderingPriority={RENDERING_PRIORITY_UNKNOWN:0,RENDERING_PRIORITY_PINNED_COMMENT:10,RENDERING_PRIORITY_LINKED_COMMENT:20,RENDERING_PRIORITY_REALTIME_COMMENT:30,RENDERING_PRIORITY_COMMUNITY_GUIDELINES_BELOW_HEADER:80,RENDERING_PRIORITY_FAN_COMMUNITY_SETUP_CARD:90,
RENDERING_PRIORITY_COMMENT_HEADER:100};this.initCommentsCsi_();this.player=null;this.JSC$14509_PLAYER_EVENTS_=new Map;this.JSC$14509_PLAYER_EVENTS_.set("onVideoProgress",function(){a.onVideoProgress_()})},
attached:function(){this.maybeGetAndSetPlayer_()},
maybeGetAndSetPlayer_:function(){var a=this,b=_.bu(this);b&&b.getPlayerPromise().then(function(c){a.playerApiReady_(c)})},
playerApiReady_:function(a){this.setPlayer_(a)},
setPlayer_:function(a){this.player_&&this.unlistenFromPlayerEvents(this.player_,this.JSC$14509_PLAYER_EVENTS_);(this.player_=a)&&this.listenToPlayerEvents(a,this.JSC$14509_PLAYER_EVENTS_)},
detached:function(){this.setPlayer_(null)},
onVideoProgress_:function(){var a=this,b=_.$i("prefetch_comments_ms_after_video");b>0&&setTimeout(function(){return a.loadComments()},b);
_.x("prefetch_comments_idle_job")&&_.ul(_.zk,function(){return a.loadComments()});
this.setPlayer_(null)},
dataChanged_:function(){this.player_||this.maybeGetAndSetPlayer_()},
contentsChanged_:function(a){a&&a.value&&a.path==="data.contents"&&this.tickForCommentsTimer_("cml")},
headerChanged_:function(a){a&&this.tickForCommentsTimer_("cmhl")},
initCommentsCsi_:function(){_.Io("wn_comments");var a=_.Fn();a&&_.Ho({clientScreenNonce:a},"wn_comments");this.tickForCommentsTimer_("cmi")},
createCommentAction_:function(a){a=Vv(a);var b,c,d;if(a=(b=a)==null?void 0:(c=b.createCommentAction)==null?void 0:(d=c.contents)==null?void 0:d.commentThreadRenderer){var e,g,k,m,n,r;!this.isBackstage&&((e=this.data)==null?0:(g=e.header)==null?0:(k=g.commentsHeaderRenderer)==null?0:(m=k.createRenderer)==null?0:(n=m.commentSimpleboxRenderer)==null?0:(r=n.zeroStep)==null?0:r.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",
{});var t,u,w,A;this.isBackstage&&((t=this.data)==null?0:(u=t.header)==null?0:(w=u.commentsHeaderRenderer)==null?0:(A=w.zeroStateMessage)==null?0:A.backstageZeroStateRenderer)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(a)}},
doReplyInsert_:function(a,b,c,d){d?this.splice(a,d,0,b):this.push(a,b)},
getRepliesPath_:function(a){return"data.contents."+a+".commentThreadRenderer.replies"},
getRepliesContentsPath_:function(a,b){a=this.getRepliesPath_(a);return b?a+".commentRepliesRenderer.teaserContents":a+".commentRepliesRenderer.contents"},
createCommentReplyAction_:function(a){a=Vv(a);var b,c,d=(b=a)==null?void 0:(c=b.createCommentReplyAction)==null?void 0:c.parentCommentId,e,g;if(b=(e=a)==null?void 0:(g=e.createCommentReplyAction)==null?void 0:g.contents)if(d=this.commentIdToIndex_(d),!(d<0))if(e=this.getRepliesPath_(d),this.get(e)){var k,m;a=(k=a)==null?void 0:(m=k.createCommentReplyAction)==null?void 0:m.replyToCommentId;k=this.getRepliesContentsPath_(d,!1);this.get(k)&&(m=this.get(k).length,e=k+"."+(m-1)+".continuationItemRenderer",
this.get(e+".button")?(e=this.replyIdToIndex_(a,d,!1),this.doReplyInsert_(k,b,e,m-1)):this.get(e)||(m=this.replyIdToIndex_(a,d,!1),this.doReplyInsert_(k,b,m,null)));k=this.getRepliesContentsPath_(d,!0);this.get(k)?(d=this.replyIdToIndex_(a,d,!0),(!a||d>=0)&&this.doReplyInsert_(k,b,d,null)):this.set(k,[b])}else this.set(e,{commentRepliesRenderer:{teaserContents:[b]}})},
hideReportedCommentAction_:function(a){var b,c=a==null?void 0:(b=a.hideReportedCommentAction)==null?void 0:b.commentId;if(c){var d;a=a==null?void 0:(d=a.hideReportedCommentAction)==null?void 0:d.parentCommentId;c=c.replace("#",".");a||(a=this.getParentCommentId_(c));this.remove_(c,a)}},
getParentCommentId_:function(a){a=a.split(".");if(a[1])return a[0]},
removeCommentAction_:function(a){var b,c=a==null?void 0:(b=a.removeCommentAction)==null?void 0:b.commentId;if(c){var d;a=a==null?void 0:(d=a.removeCommentAction)==null?void 0:d.parentCommentId;c=c.replace("#",".");a||(a=this.getParentCommentId_(c));this.remove_(c,a)}},
pinCommentAction_:function(a){a=Vv(a);var b,c,d=(b=a)==null?void 0:(c=b.pinCommentAction)==null?void 0:c.commentId;d&&(a=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",a))&&(this.remove_(d),this.insert_(a,!0))},
unpinCommentAction_:function(a){a=Vv(a);var b,c,d=(b=a)==null?void 0:(c=b.unpinCommentAction)==null?void 0:c.commentId;if(d){var e,g,k;if(a=(e=a.unpinCommentAction)==null?void 0:(g=e.actionResult)==null?void 0:(k=g.update)==null?void 0:k.commentThreadRenderer)this.remove_(d),this.insert_(a)}},
updateCommentAction_:function(a){a=Vv(a);var b,c,d=(b=a)==null?void 0:(c=b.updateCommentAction)==null?void 0:c.commentId,e,g;a=(e=a)==null?void 0:(g=e.updateCommentAction)==null?void 0:g.contents;d&&a&&this.update_(d,a)},
updateCommentReplyAction_:function(a){a=Vv(a);var b,c,d=(b=a)==null?void 0:(c=b.updateCommentReplyAction)==null?void 0:c.commentId,e,g;a=(e=a)==null?void 0:(g=e.updateCommentReplyAction)==null?void 0:g.contents;d&&a&&(d=d.replace("#","."),e=this.getParentCommentId_(d),this.update_(d,a,e))},
banAuthorAction_:function(a){var b,c=a==null?void 0:(b=a.banAuthorAction)==null?void 0:b.commentId;if(c){var d;a=a==null?void 0:(d=a.banAuthorAction)==null?void 0:d.parentCommentId;c=c.replace("#",".");a||(a=this.getParentCommentId_(c));this.remove_(c,a)}},
commentIdToIndex_:function(a){var b;return a&&(b=this.data)!=null&&b.contents?this.data.contents.findIndex(function(c){var d,e,g,k,m;return a===((c==null?void 0:(d=c.commentThreadRenderer)==null?void 0:(e=d.comment)==null?void 0:(g=e.commentRenderer)==null?void 0:g.commentId)||(c==null?void 0:(k=c.commentThreadRenderer)==null?void 0:k.commentViewModel)&&((m=_.y(c.commentThreadRenderer.commentViewModel,yzb))==null?void 0:m.commentId))}):-1},
insert_:function(a,b){var c,d;if((c=this.data)==null?0:(d=c.contents)==null?0:d.some(function(g){return!(g==null||!g.commentThreadRenderer)}))for(c=0,d=this.data.contents.length;c<d;c++){var e=this.data.contents[c].commentThreadRenderer;
if(this.RenderingPriority[a.renderingPriority]>=this.RenderingPriority[e.renderingPriority]){b&&this.RenderingPriority[a.renderingPriority]==this.RenderingPriority[e.renderingPriority]?this.splice("data.contents",c,1,{commentThreadRenderer:a}):this.splice("data.contents",c,0,{commentThreadRenderer:a});break}}else this.set("data.contents",[{commentThreadRenderer:a}])},
doReplyRemove_:function(a,b,c){a=this.replyIdToIndex_(a,b,c);a<0||(b=this.getRepliesContentsPath_(b,c),this.splice(b,a,1))},
remove_:function(a,b){b=this.commentIdToIndex_(b);b<0?(b=this.commentIdToIndex_(a),b<0||this.splice("data.contents",b,1)):(this.doReplyRemove_(a,b,!1),this.doReplyRemove_(a,b,!0),b="data.contents."+b+".commentThreadRenderer.comment.commentRenderer",this.get(b+".backstageAttachment.pollRenderer.votedCommentId")==a&&(this.set(b+".backstageAttachment.pollRenderer.votedCommentId",null),this.set(b+".backstageAttachment.pollRenderer.commentDelete",null)))},
replyIdToIndex_:function(a,b,c){if(b<0)return-1;b=this.getRepliesContentsPath_(b,c);b=this.get(b);if(!b||!b.length)return-1;c=0;for(var d=b.length;c<d;c++){var e=void 0,g=void 0,k=void 0,m=void 0;if((((e=b[c])==null?void 0:(g=e.commentRenderer)==null?void 0:g.commentId)||((k=b[c])==null?void 0:(m=k.commentViewModel)==null?void 0:m.commentId))===a)return c}return-1},
doReplyUpdate_:function(a,b,c,d){a=this.replyIdToIndex_(a,b,d);if(!(a<0)){b=this.getRepliesContentsPath_(b,d);if(d=this.get(b+"."+a+".commentRenderer.creatorReply"))c.commentRenderer.creatorReply=d;this.splice(b,a,1,c)}},
update_:function(a,b,c){var d=this.commentIdToIndex_(c);!c||d<0?(d=this.commentIdToIndex_(a),d<0||this.set("data.contents."+d+".commentThreadRenderer.comment",b)):(this.doReplyUpdate_(a,d,b,!1),this.doReplyUpdate_(a,d,b,!0))},
computeIsBackstage_:function(a){return!!a},
computeCanShowDefaultSpinner_:function(a,b){return b?(b=_.v().resolve(_.Wi(_.$t)))&&b.isOnWatch&&b.isOnWatch()?!(a&&(a.contents||a.header||a.continuations)):!1:!1},
onRetrieveLocation_:function(a,b){b&&b.hasComments&&this.tickForCommentsTimer_("lss")},
tickForCommentsTimer_:function(a){_.Ko(a,void 0,"wn_comments")},
reloadComments_:function(a){a&&a.reloadCommentsCommand&&a.reloadCommentsCommand.command&&a.reloadCommentsCommand.command.continuationCommand&&_.mo(this,[a.reloadCommentsCommand.command])},
loadComments:function(){_.$i("prefetch_comments_ms_after_video")||_.x("prefetch_comments_idle_job")?this.$.sections.triggerInitialContinuations():this.$.sections.triggerContinuations()}});var xcc=function(){return _.ir.apply(this,arguments)||this};
_.z(xcc,_.ir);_.f=xcc.prototype;_.f.bindIf=function(a,b,c){return a?b:c};
_.f.bindIfDefined=function(a,b){return a!==void 0?a:b};
_.f.booleanString=function(a){return(!!a).toString()};
_.f.equals=function(){for(var a=_.Id.apply(0,arguments),b=a[0],c=1;c<a.length;c++)if(b!=a[c])return!1;return!0};
_.f.isGreaterThan=function(a,b){return a>b};
_.f.isLessThan=function(a,b){return a<b};
_.f.logicalAND=function(){for(var a=_.Id.apply(0,arguments),b=!!a[0],c=1;c<a.length;c++)b=b&&!!a[c];return b};
_.f.logicalOR=function(){for(var a=_.Id.apply(0,arguments),b=!!a[0],c=1;c<a.length;c++)b=b||!!a[c];return b};
_.f.toBool=function(a){return!!a};
var PR=xcc;PR.prototype.toBool=PR.prototype.toBool;PR.prototype.logicalOR=PR.prototype.logicalOR;PR.prototype.logicalAND=PR.prototype.logicalAND;PR.prototype.isLessThan=PR.prototype.isLessThan;PR.prototype.isGreaterThan=PR.prototype.isGreaterThan;PR.prototype.equals=PR.prototype.equals;PR.prototype.booleanString=PR.prototype.booleanString;PR.prototype.bindIfDefined=PR.prototype.bindIfDefined;PR.prototype.bindIf=PR.prototype.bindIf;PR=_.U([_.jr()],PR);_.ycc=[PR.prototype];var zcc;var Acc;var Bcc=function(){return _.P.apply(this,arguments)||this};
_.z(Bcc,_.P);Bcc.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
Bcc.prototype.onBackIconTap_=function(){window.history.back()};
var QR=Bcc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],QR.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],QR.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],QR.prototype,"data",void 0);QR=_.U([_.ur({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],QR);
_.S(QR,"yt-header-with-back-renderer",function(){if(Acc===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;zcc===void 0&&(zcc=document.createElement("template"));var d=zcc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Acc=a}a=Acc;return a},{mode:2});var Ccc;var Dcc;var Ecc=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a};
_.z(Ecc,_.P);_.f=Ecc.prototype;_.f.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.f.onDarkModeToggledAction=function(a){a!==this.isDarkTheme&&(this.isDarkTheme=a,this.setUrl())};
_.f.dataChanged=function(){var a=this;if(this.data){var b=this.setUrl();b&&_.jy({destination:window,iframe:this.iframe,origin:_.Nbb(b.toString()),channelName:"yt-iframe",onMessage:function(c){(c=a.getCommunicationCommand(c.data))&&a.ytComponentBehavior.resolveCommand(c)},
onEstablished:function(){}})}};
_.f.setUrl=function(){if(this.data&&this.data.iframeUrl){var a=_.Ak(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(a)return _.Qd(this.iframe,a),a}};
_.f.getCommunicationCommand=function(a){var b;if((b=this.data)!=null&&b.onCommunicationCommandsMap){b=this.data.onCommunicationCommandsMap.find(function(e){return e.key===a});
if(b==null?0:b.value)return b==null?void 0:b.value;try{var c=DFb(_.db(a)),d=this.data.onCommunicationCommandsMap.find(function(e){return e.key===(c==null?void 0:_.Ox(c,1))});
if(d==null?0:d.value)return d==null?void 0:d.value}catch(e){}}};
var RR=Ecc;RR.prototype.dataChanged=RR.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],RR.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],RR.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],RR.prototype,"actionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],RR.prototype,"data",void 0);
_.U([_.O({value:!1}),_.W("design:type",Boolean)],RR.prototype,"isDarkTheme",void 0);_.U([_.gr("#iframe"),_.W("design:type",HTMLIFrameElement)],RR.prototype,"iframe",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],RR.prototype,"dataChanged",null);RR=_.U([_.ur({is:"yt-iframe-renderer",disableElementRegistration:!0})],RR);
_.S(RR,"yt-iframe-renderer",function(){if(Dcc===void 0){var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;Ccc===void 0&&(Ccc=document.createElement("template"));var d=Ccc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Dcc=a}a=Dcc;return a},{mode:2});_.SR=function(a){_.tg.call(this);this.callback=a;this.bezier=new Bsb(0,0,.4,0,.2,1,1,1);this.delay=new _.Ym(this.next,window,this);this.JSC$14527_animating=!1;_.gg(this,this.delay)};
_.z(_.SR,_.tg);_.SR.prototype.isAnimating=function(){return this.JSC$14527_animating};
_.SR.prototype.start=function(a,b,c){this.config={from:a,to:b,duration:c,startTime:(0,_.Uj)()};this.JSC$14527_animating=!0;this.next()};
_.SR.prototype.stop=function(){this.delay.stop();this.JSC$14527_animating=!1;this.config=void 0};
_.SR.prototype.next=function(){if(this.config){var a=this.config,b=a.from,c=a.to,d=a.duration;a=a.startTime;var e=(0,_.Uj)()-a;a=this.bezier;d=Dsb(a,e/d);if(d==0)a=a.y0;else if(d==1)a=a.y3;else{e=Ey(a.y0,a.y1,d);var g=Ey(a.y1,a.y2,d);a=Ey(a.y2,a.y3,d);e=Ey(e,g,d);g=Ey(g,a,d);a=Ey(e,g,d)}a=_.Qw(a,0,1);this.callback(b+(c-b)*a);a<1?this.delay.start():this.JSC$14527_animating=!1}};_.TR=new _.fB("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var Fcc={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},Hcc=function(a,b,c,d){_.tg.call(this);this.JSC$14535_miniAppId=a;this.localReleaseId=b;this.derivedDeviceInterface=c;this.isForeground=d;this.JSC$14535_playNonceResolver=new _.gq;this.playPingTimerId=NaN;this.playPingIntervalMs=_.$i("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.$i("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.x("enable_displaying_ppn");this.JSC$14535_miniAppClientDataProvider=_.v().resolve(_.TR);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;Gcc(this);var e=setTimeout(function(){_.Dl(new _.qj("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$14535_playNonceResolver.promise.then(function(){clearTimeout(e)})};
_.z(Hcc,_.tg);var Jcc=function(a,b){a.JSC$14535_playNonceResolver.resolve(b!=null?b:Cn(8));a.enableDisplayingPpn&&Icc(a).then(function(c){a.JSC$14535_miniAppClientDataProvider.clientData.set("post_play_nonce",c)})},Icc=function(a){return _.l(function(b){return b.nextAddress==1?_.p(b,a.JSC$14535_playNonceResolver.promise,2):b.return(b.yieldResult)})},Gcc=function(a){var b,c;
_.l(function(d){if(d.nextAddress==1)return _.p(d,a.JSC$14535_playNonceResolver.promise,2);b=d.yieldResult;c={miniAppInfo:{externalPostId:a.JSC$14535_miniAppId,localReleaseId:a.localReleaseId,postPlayNonce:b,derivedDeviceInterface:a.derivedDeviceInterface}};_.Ho(c);_.se(d)})},Lcc=function(a){a.state!==0?_.Dl(new _.qj("[MiniAppPlayLogger] recordPlayStart failed with state "+Fcc[a.state])):(a.state=1,UR(a,"ma_cl"),VR(a,"PLAY_EVENT_TYPE_PLAY_START"),Kcc(a))},Mcc=function(a){a.isForeground=!1;
VR(a,"PLAY_EVENT_TYPE_PLAY_PAUSE")},Ncc=function(a){a.state!==1&&a.state!==2?_.Dl(new _.qj("[MiniAppPlayLogger] recordPlayEnd failed with state "+Fcc[a.state])):(a.state=3,window.clearInterval(a.playPingTimerId),a.playPingTimerId=NaN,ICa(),VR(a,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},Occ=function(a,b){a.state===2&&a.gameReady&&(a.firstClickRecorded?Date.now()-a.clickRecordedMs<a.playClickIntervalMs||(a.clickRecordedMs=Date.now(),VR(a,"PLAY_EVENT_TYPE_PLAY_CLICK")):b&&(UR(a,"ma_fua"),VR(a,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),a.firstClickRecorded=!0,a.clickRecordedMs=Date.now()))};
Hcc.prototype.logError=function(a){var b=this,c;_.l(function(d){if(d.nextAddress==1)return a.metadata.externalPostId=b.JSC$14535_miniAppId,c=a.metadata,_.p(d,Promise.race([b.JSC$14535_playNonceResolver.promise,new Promise(function(e){setTimeout(function(){e("")},3E4)})]),2);
c.postPlayNonce=d.yieldResult;a.metadata.localReleaseId=b.localReleaseId;a.loggingError.level="WARNING";_.Bl(a.loggingError,a.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:a.metadata});_.se(d)})};
var Pcc=function(a,b,c,d){var e,g,k,m,n,r;_.l(function(t){if(t.nextAddress==1)return _.p(t,a.JSC$14535_playNonceResolver.promise,2);e=t.yieldResult;g={externalPostId:a.JSC$14535_miniAppId,localReleaseId:a.localReleaseId,postPlayNonce:e,sdkVersion:c,api:b};d!==void 0&&(g.networkRequestsMeasurement={networkRequests:_.Xf(d,1),cachedRequests:_.Xf(d,2),transferredBytes:_.Xf(d,3)},(k=d)==null?0:_.zx(k,eE,6))&&(g.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((m=_.Xj(d,
eE,6))==null?void 0:Qx(m,1))||"0",cacheHits:((n=_.Xj(d,eE,6))==null?void 0:Qx(n,2))||"0",cachedBytes:((r=_.Xj(d,eE,6))==null?void 0:Qx(r,3))||"0"});_.zl("miniAppSdkUsage",g);_.se(t)})},Rcc=function(a,b,c){var d,e,g,k,m,n,r,t,u,w,A,C,G,J,I,R;
_.l(function(ca){if(ca.nextAddress==1)return _.p(ca,a.JSC$14535_playNonceResolver.promise,2);d=ca.yieldResult;e={externalPostId:a.JSC$14535_miniAppId,localReleaseId:a.localReleaseId,postPlayNonce:d,sdkVersion:c,measurementWindow:{startTimestampMs:String(Mx(b,1)),endTimestampMs:String(Mx(b,2))},frameRate:{averageFrameTimeDeltaMs:Nx(b,3),averageFrameIdleTimeMs:Nx(b,4)}};_.zx(b,fE,5)&&(e.networkRequests={networkRequests:(g=mE(b))==null?void 0:_.Xf(g,1),cachedRequests:(k=mE(b))==null?void 0:_.Xf(k,2),
transferredBytes:(m=mE(b))==null?void 0:_.Xf(m,3),sameOriginStatusCodeToCounts:Qcc((n=mE(b))==null?void 0:jca(n,4)),crossOriginStatusCodeToCounts:Qcc((r=mE(b))==null?void 0:jca(r,5))},(t=mE(b))==null?0:_.zx(t,eE,6))&&(e.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((u=mE(b))==null?void 0:(w=_.Xj(u,eE,6))==null?void 0:Qx(w,1))||"0",cacheHits:((A=mE(b))==null?void 0:(C=_.Xj(A,eE,6))==null?void 0:Qx(C,2))||"0",cachedBytes:((G=mE(b))==null?void 0:(J=_.Xj(G,eE,6))==null?void 0:
Qx(J,3))||"0"});_.zx(b,Pxb,7)&&(e.gameCapture={averageFrameTimeDeltaMs:(I=_.Xj(b,Pxb,7))==null?void 0:Nx(I,1),averageFrameIdleTimeMs:(R=_.Xj(b,Pxb,7))==null?void 0:Nx(R,2)});_.zl("miniAppPerformanceMetrics",e);_.se(ca)})},Scc=function(a,b,c){var d,e;
return _.l(function(g){if(g.nextAddress==1)return _.p(g,a.JSC$14535_playNonceResolver.promise,2);d=g.yieldResult;e={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:a.JSC$14535_miniAppId,postPlayNonce:d,miniAppReleaseId:a.localReleaseId},derivedDeviceInterface:a.derivedDeviceInterface,adTriggerType:b};e.rejectedReason=c||"MINI_APP_AD_REJECTED_REASON_UNSPECIFIED";_.zl("miniAppAdEvent",e);_.se(g)})};
Hcc.prototype.disposeInternal=function(){_.tg.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var VR=function(a,b,c,d){c=c===void 0?{}:c;d=d===void 0?!1:d;var e,g,k,m;_.l(function(n){if(n.nextAddress==1)return e=a.isForeground,g=a.beforeReady,_.p(n,a.JSC$14535_playNonceResolver.promise,2);k=n.yieldResult;m={externalPostId:a.JSC$14535_miniAppId,localReleaseId:a.localReleaseId,derivedDeviceInterface:a.derivedDeviceInterface,postPlayNonce:k,type:b};c.sequenceGroup=k;m.playState=g?"PLAY_STATE_NOT_READY":e?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.zl("miniAppPlayEvent",m,c);
d&&_.Al();_.se(n)})},UR=function(a,b){var c;
_.l(function(d){if(d.nextAddress==1)return c=(0,_.Uj)(),_.p(d,a.JSC$14535_playNonceResolver.promise,2);_.Jo(b,c);_.se(d)})},Kcc=function(a){isNaN(a.playPingTimerId)&&(a.playPingTimerId=_.ej(function(){a.state!==1&&a.state!==2?_.Dl(new _.qj("[MiniAppPlayLogger] reportPlayPing failed with state "+Fcc[a.state])):VR(a,"PLAY_EVENT_TYPE_PLAY_PING")},a.playPingIntervalMs))},Qcc=function(a){return Array.from(a.entries()).map(function(b){var c=_.h(b);
b=c.next().value;c=c.next().value;return{key:b,value:c}})};var Tcc=_.$i("show_mini_app_ad_frequency_cap_ms",0),Ucc=function(){this.showAdIntervalMs=Tcc;this.isRateLimited=!0},Vcc=function(a,b){setTimeout(function(){return a.isRateLimited=!1},a.showAdIntervalMs);
a.showMiniAppAdCommand=b.showMiniAppAdCommand;a.isEmbeddedInWebview=b.isEmbeddedInWebview;a.playLogger=b.playLogger},Xcc=function(a,b){var c;
return _.l(function(d){if(d.nextAddress==1){if(!a.showMiniAppAdCommand||!a.isEmbeddedInWebview)return d.return(Wcc(a,b,"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"));if(a.isRateLimited)return d.return(Wcc(a,b,"MINI_APP_AD_REJECTED_REASON_RATE_LIMITED"));a.adResolver=new _.gq;c=gBb(fBb(new eBb,I2a(b)),b);Xv(a.showMiniAppAdCommand,hBb(c));a.isRateLimited=!0;setTimeout(function(){return a.isRateLimited=!1},a.showAdIntervalMs);
return _.p(d,a.adResolver.promise,2)}return d.return(d.yieldResult)})};
Ucc.prototype.onAdFinished=function(a){a=vxb(a);var b;(b=this.adResolver)==null||b.resolve(a)};
var Wcc=function(a,b,c){var d;return _.l(function(e){if(e.nextAddress==1)e=_.p(e,(d=a.playLogger)==null?void 0:Scc(d,H2a(b),c),2);else{var g=e.return;var k=new uxb;k=_.Yj(k,1,2);e=g.call(e,k)}return e})};var Ycc=new _.fB("INNERTUBE_MANAGER_TOKEN");var Zcc=function(){this.callbacks={}};
Zcc.prototype.initialize=function(a){var b=this;this.callbacks=a;window.youtubewebview?window.youtubewebview.onmessage=function(c){$cc(b,c)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(c){$cc(b,c)})};
var $cc=function(a,b){if(b.data)try{var c=DFb(b.data);if(_.kg(c,1)!=null){var d=$Ab(_.Ox(c,2));switch(_.Ox(c,1)){case "yt-mini-app-load-audio-state":var e,g;(g=(e=a.callbacks).onAudioStateLoaded)==null||g.call(e,_.Lx(d,ql(d,JE,1)));break;case "yt-mute-mini-app":var k,m;(m=(k=a.callbacks).onMuteMiniApp)==null||m.call(k);break;case "yt-unmute-mini-app":var n,r;(r=(n=a.callbacks).onUnmuteMiniApp)==null||r.call(n);break;case "yt-playable-exit":var t,u;(u=(t=a.callbacks).onExit)==null||u.call(t);break;
case "yt-post-play-nonce":var w,A;(A=(w=a.callbacks).onPostPlayNonceReceived)==null||A.call(w,Rx(d,2,JE));break;case "yt-confirm-exit-mini-app":var C,G;(G=(C=a.callbacks).confirmExitMiniApp)==null||G.call(C);break;case "yt-confirm-exit-mini-app-edu":var J,I;(I=(J=a.callbacks).confirmExitMiniAppEdu)==null||I.call(J);break;case "yt-benchmarking-response":var R,ca;(ca=(R=a.callbacks).onNativeBenchmarkingMessageReceived)==null||ca.call(R,Rx(d,2,JE));break;case "yt-mini-app-load-3p-consent-state":var V,
fa;(fa=(V=a.callbacks).multiplayer3pAckStateLoaded)==null||fa.call(V,_.Lx(d,ql(d,JE,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var aa,ma;(ma=(aa=a.callbacks).exitMiniAppSeenStateLoaded)==null||ma.call(aa,_.Lx(d,ql(d,JE,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var Ba,Da;(Da=(Ba=a.callbacks).onNavigateToNewMiniApp)==null||Da.call(Ba);break;case "yt-game-data-available":var za,Fa;(Fa=(za=a.callbacks).onGameDataAvailable)==null||Fa.call(za,Rx(d,2,JE));break;case "yt-pause-mini-app":var bb,
kb;(kb=(bb=a.callbacks).onPauseMiniApp)==null||kb.call(bb);break;case "yt-resume-mini-app":var Ua,Fc;(Fc=(Ua=a.callbacks).onResumeMiniApp)==null||Fc.call(Ua);break;case "yt-playable-ad-finished":var id,Mb;(Mb=(id=a.callbacks).onAdFinished)==null||Mb.call(id,Rx(d,2,JE))}}else _.Dl(Error("Ph"))}catch(wd){_.Bl(Error("Qh"))}else _.Dl(Error("Rh"))};var K2a=function(a){this.rpcErrorCode=a};var WR=function(a,b,c){this.intervalMs=a;this.apiFunc=b;this.type=c;this.schedulerReady=!0};
WR.prototype.call=function(a){var b=this,c;return _.l(function(d){if(d.nextAddress==1){if(b.type!==1&&a===b.cachedValue)return d.return();b.pendingApiRequestResolver||(b.pendingApiRequestResolver=new _.gq);c=b.pendingApiRequestResolver.promise;b.cachedValue=a;return _.p(d,adc(b),2)}return d.return(c)})};
WR.prototype.flush=function(a){a=a===void 0?!1:a;var b=this;return _.l(function(c){return b.cachedValue===void 0?c.return():_.p(c,b.apiFunc(b.cachedValue,a),0)})};
var adc=function(a){var b,c,d;return _.l(function(e){switch(e.nextAddress){case 1:if(!a.schedulerReady||!a.pendingApiRequestResolver)return e.return();a.schedulerReady=!1;b=a.pendingApiRequestResolver;a.pendingApiRequestResolver=void 0;_.me(e,2);if(a.cachedValue===void 0){e.jumpTo(4);break}return _.p(e,a.apiFunc(a.cachedValue),5);case 5:c=e.yieldResult,b.resolve(c);case 4:_.Jj(e,3);break;case 2:d=_.re(e),b.reject(d);case 3:setTimeout(function(){return _.l(function(g){a.schedulerReady=!0;return _.p(g,
adc(a),0)})},a.intervalMs),_.se(e)}})};var N2a=window.location.origin+"/miniapp_cloudsaves",L2a=[400,401],bdc=_.$i("cloud_save_game_data_rate_limit_ms",3E3),edc=function(a){var b=this;this.JSC$14579_miniAppId=a;this.loadAttempts=0;this.cloudSaveIntervalMs=bdc;this.initialDownloadDataSucceeded=!1;this.JSC$14579_playNonceResolver=new _.gq;this.scottyUploadRateLimiter=new WR(this.cloudSaveIntervalMs,function(c,d){return cdc(b,c,d)},2);
this.downloadDataPromise=ddc(this);this.downloadDataPromise.then(function(){b.initialDownloadDataSucceeded=!0}).catch(function(){})},fdc=function(a,b){b.then(function(c){return a.JSC$14579_playNonceResolver.resolve(c)})},gdc=function(a){return _.l(function(b){return a.cachedData===void 0?b.return(a.downloadDataPromise):b.return(a.cachedData)})},hdc=function(a,b){return _.l(function(c){a.cachedData=b;
if(!a.initialDownloadDataSucceeded)throw Error("Sh");return _.p(c,a.scottyUploadRateLimiter.call(b),0)})},idc=function(){return new Promise(function(a){setTimeout(a,1E3,"")})},jdc=function(a,b){var c,d;
return _.l(function(e){if(e.nextAddress==1)return c=a.JSC$14579_miniAppId,_.p(e,Promise.race([a.JSC$14579_playNonceResolver.promise,idc()]),2);d={"X-YouTube-MiniAppId":c,"X-YouTube-PostPlayNonce":e.yieldResult};"DELEGATED_SESSION_ID"in _.Ai&&noa(b,d);return e.return(d)})},cdc=function(a,b,c){c=c===void 0?!1:c;
return _.l(function(d){return J2a()?_.x("enable_cloud_save_error_popup_after_retry")?d.return(new Promise(function(e,g){var k,m,n,r,t;return _.l(function(u){switch(u.nextAddress){case 1:k=0,m=!0,r=n=null;case 2:if(!(m&&k++<2)){u.jumpTo(4);break}_.me(u,5);return _.p(u,kdc(a,b,c),7);case 7:n=u.yieldResult;m=n.ok?!1:!L2a.includes(n.status);_.Jj(u,2);break;case 5:r=t=_.re(u);m=M2a(r);u.jumpTo(2);break;case 4:n?n.ok?(YR(a,bdc),e()):(YR(a,a.cloudSaveIntervalMs*2),g(Error("Th`"+String(n.status),{cause:{rpcErrorCode:n.status}}))):
(YR(a,a.cloudSaveIntervalMs*2),g(r||Error("Uh"))),_.se(u)}})})):d.return(new Promise(function(e,g){var k,m;
return _.l(function(n){if(n.nextAddress==1){if(a.JSC$14579_miniAppId==="")return g(Error("Vh")),n.return();_.me(n,2);return _.p(n,kdc(a,b,c),4)}if(n.nextAddress!=2)return k=n.yieldResult,k.ok?(YR(a,bdc),e()):(YR(a,a.cloudSaveIntervalMs*2),g(Error("Th`"+String(k.status),{cause:{rpcErrorCode:k.status}}))),_.Jj(n,0);m=_.re(n);YR(a,a.cloudSaveIntervalMs*2);g(m);_.se(n)})})):d.return()})},kdc=function(a,b,c){c=c===void 0?!1:c;
var d,e,g;return _.l(function(k){if(k.nextAddress==1)return d=_.wc((new TextEncoder).encode(b)),e=O2a(),_.p(k,jdc(a,e),2);g=k.yieldResult;return k.return(fetch(e,{method:"POST",body:new Blob([d]),headers:g,keepalive:c}))})},ddc=function(a){var b,c;
return _.l(function(d){if(d.nextAddress==1){if(!J2a())return d.return("");if(a.JSC$14579_miniAppId==="")throw Error("Vh");if(a.loadAttempts>2)return d.return(a.downloadDataPromise);_.me(d,2);return _.p(d,ldc(a),4)}if(d.nextAddress!=2)return b=d.yieldResult,d.return(b);c=_.re(d);if(M2a(c)&&++a.loadAttempts<2)return d.return(ddc(a));throw c;})},ldc=function(a){var b,c,d,e,g;
return _.l(function(k){switch(k.nextAddress){case 1:return _.me(k,2),b=O2a(),_.p(k,jdc(a,b),4);case 4:return c=k.yieldResult,_.p(k,fetch(b,{method:"GET",headers:c}),5);case 5:return d=k.yieldResult,d.ok?_.p(k,d.text(),6):k.return(Promise.reject(Error("Wh`"+String(d.status),{cause:new K2a(d.status)})));case 6:return e=k.yieldResult,k.return((new TextDecoder).decode(_.db(e)));case 2:return g=_.re(k),k.return(Promise.reject(g))}})},YR=function(a,b){a.cloudSaveIntervalMs=b;
a.scottyUploadRateLimiter.intervalMs=a.cloudSaveIntervalMs};
edc.prototype.flush=function(){var a=this;return _.l(function(b){return a.initialDownloadDataSucceeded?_.p(b,a.scottyUploadRateLimiter.flush(!0),0):b.return()})};var mdc=kE(jE(1),hE(1)),ndc=kE(jE(1),hE(3)),ZR=function(a){this.callbacks=a};
_.f=ZR.prototype;_.f.onAudioToggled=function(a,b){(b===void 0||b)&&_.rG("yt-mini-app-is-audio-enabled",a,2592E3)};
_.f.onPause=function(){this.onAudioToggled(!1,!1)};
_.f.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.f.returnNativeBenchmarkingMessage=function(){};
_.f.sendGameData=function(){};
_.f.sendStartGameFrameCapture=function(){};
var P2a=function(a,b,c){this.callbacks=a;var d=this;this.sdkVersion=new _.gq;this.channel=new kab(_.jy({destination:window,iframe:b,origin:(new URL(c.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var e=$R;var g=jE(5);var k=new Dxb;k=_.Tx(k,1,1E4);g=_.qd(g,4,Lxb,k);e(d,g);d.onAudioToggled(d.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){d.sdkVersion.resolve("")},1E4)};
_.z(P2a,ZR);_.f=P2a.prototype;_.f.onAudioToggled=function(a,b){ZR.prototype.onAudioToggled.call(this,a,b===void 0?!0:b);b=$R;var c=jE(2),d=new Bxb;a=_.cg(d,1,a);a=_.qd(c,3,Lxb,a);b(this,a)};
_.f.onPause=function(){ZR.prototype.onPause.call(this);$R(this,jE(3))};
_.f.onResume=function(){ZR.prototype.onResume.call(this);$R(this,jE(4))};
_.f.returnNativeBenchmarkingMessage=function(a){var b=$R,c=jE(6);var d=hE(_.zx(a,cz,1)?1:2);a=_.zx(a,cz,1)?a:null;d=_.qd(d,5,iE,a);b(this,kE(c,d))};
_.f.sendGameData=function(a){var b=$R,c=jE(7);a=_.qd(c,5,Lxb,a);b(this,a)};
_.f.sendStartGameFrameCapture=function(){$R(this,jE(9))};
var aS=function(a,b,c){var d,e,g;return _.l(function(k){if(k.nextAddress==1)return d=a.callbacks,e=d.onSdkCalled,g=b,_.p(k,a.sdkVersion.promise,2);e.call(d,g,k.yieldResult,c);_.se(k)})};
P2a.prototype.onMessage=function(){var a=this;return nab(nE,function(b){var c,d,e,g,k,m,n,r,t,u,w,A,C,G,J,I,R,ca,V,fa,aa,ma,Ba,Da,za,Fa,bb,kb,Ua,Fc,id,Mb,wd,Tb,tb,Fb,dd,be,ia,gc,Pb,Lc,qb,Ab;return _.l(function(Ya){switch(Ya.nextAddress){case 1:if(!Txb(b.data))return _.Dl(Error("Xh")),Ya.return();c=b.data.getType();_.x("enable_iframe_message_get_type_via_fields")&&(d=b.data,c=e=d.getType());switch(c){case 8:if(b.data.hasMetadata()){var Oa=a.sdkVersion,pb=Oa.resolve;var Yb=b.data.getMetadata();Yb=_.Ox(Yb,
1);pb.call(Oa,Yb);clearTimeout(a.sdkVersionTimeoutId)}break;case 6:return Ya.jumpTo(2);case 16:if(!_.Ax(b.data,Nxb,14,oE))return Ya.return();g=_.Sx(b.data,Nxb,14,oE);(m=(k=a.callbacks).onGameFrameReceived)==null||m.call(k,g);return Ya.return();case 1:if(Oa=_.Sx(b.data,Gxb,2,oE))switch(_.Px(Oa,1)){case 1:a.callbacks.onFirstFrameReady();if(_.x("enable_network_request_logging_on_game_events")&&_.zx(Oa,fE,4)){aS(a,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.Xj(Oa,fE,4));break}aS(a,"MINI_APP_SDK_API_FIRST_FRAME_READY");
break;case 2:(Yb=(pb=a.callbacks).onGameReady)==null||Yb.call(pb);if(_.x("enable_network_request_logging_on_game_events")&&_.zx(Oa,fE,4)){aS(a,"MINI_APP_SDK_API_GAME_READY",_.Xj(Oa,fE,4));break}aS(a,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.aj("loading_bar_progress_calculation")&&_.Ax(Oa,gE,3,Hxb))a.callbacks.onResourceLoaded(_.Sx(Oa,gE,3,Hxb))}return Ya.return();case 3:return Ya.jumpTo(3);case 4:return Ya.jumpTo(4);case 2:return Ya.jumpTo(5);case 9:return Ya.jumpTo(6);case 10:return a.callbacks.onClick(),
Ya.return();case 5:return Ya.jumpTo(7);case 11:if(!_.Ax(b.data,bE,9,oE))return Ya.return();n=_.Sx(b.data,bE,9,oE);(t=(r=a.callbacks).onBenchmarkingMessageReceived)==null||t.call(r,n);Oa=b.reply;pb=jE(1);Yb=hE(1);var Pc=new bE;var Db=new Uint8Array(J9a(n,ql(n,xxb,6))|0);Pc=ll(Pc,5,xxb,_.yb(Db,!1));Yb=_.qd(Yb,5,iE,Pc);Oa.call(b,kE(pb,Yb));return Ya.return();case 12:return Ya.jumpTo(8);case 13:return Ya.jumpTo(9);case 15:if(!_.x("enable_open_yt_content"))return b.reply(ndc),Ya.return();if(!_.Ax(b.data,
Mxb,12,oE))return b.reply(kE(jE(1),hE(2))),Ya.return();Oa=_.Sx(b.data,Mxb,12,oE);u=_.Ox(Oa,1);a.callbacks.onOpenYTContent(u);b.reply(mdc);return Ya.return();case 14:return Ya.jumpTo(10);default:return Ya.return()}Ya.jumpTo(0);break;case 2:if(!_.Ax(b.data,lE,5,oE))return Ya.return();pb=b.data;Oa=ql(pb,oE,5);pb=pb.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;(Oa=oca(pb,pb[_.lb]|0,lE,Oa))||(Oa=lE[Dba])||(Oa=new lE,rb(Oa.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),Oa=lE[Dba]=Oa);
w=Oa;Oa=_.Vf(w,dE,1,_.Wf());A=_.h(Oa);C=A.next();case 12:if(C.done){Ya.jumpTo(14);break}G=C.value;J=new _.qj;J.level=_.Px(G,2)===1?"WARNING":"ERROR";I=R2a(G.getSource());return _.p(Ya,a.sdkVersion.promise,15);case 15:R={source:I,sdkVersion:Ya.yieldResult};_.Zb(_.Nc(G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,6))!=null?(J.message=G.getMessage(),J.stack=_.Ox(G,5),R.sdkErrorType=S2a(_.Px(G,6)),_.Zb(_.Nc(G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,7))!=null&&(R.sdkApi=T2a(_.Px(G,
7)))):J.stack=void 0;V=ca=void 0;(V=(ca=a.callbacks).onError)==null||V.call(ca,{loggingError:J,metadata:R});C=A.next();Ya.jumpTo(12);break;case 14:return Ya.return();case 3:return _.me(Ya,16),Oa=a.callbacks,pb=Oa.onSave,Yb=_.Sx(b.data,Cxb,4,oE),Yb=_.Ox(Yb,1),_.p(Ya,pb.call(Oa,Yb),18);case 18:b.reply(mdc);_.Jj(Ya,17);break;case 16:return fa=_.re(Ya),aa=Yv,ma=fa,Ba=a.callbacks,Da="MINI_APP_SDK_API_SAVE_DATA",_.p(Ya,a.sdkVersion.promise,19);case 19:aa(ma,Ba,Da,Ya.yieldResult),b.reply(ndc);case 17:return _.p(Ya,
aS(a,"MINI_APP_SDK_API_SAVE_DATA"),20);case 20:return Ya.return();case 4:return _.me(Ya,21),_.p(Ya,a.callbacks.onLoad(),23);case 23:za=Ya.yieldResult;Oa=b.reply;pb=jE(1);Yb=hE(1);Pc=new Cxb;Pc=_.sf(Pc,1,za);Yb=_.qd(Yb,3,iE,Pc);Oa.call(b,kE(pb,Yb));_.Jj(Ya,22);break;case 21:return Fa=_.re(Ya),bb=Yv,kb=Fa,Ua=a.callbacks,Fc="MINI_APP_SDK_API_LOAD_DATA",_.p(Ya,a.sdkVersion.promise,24);case 24:bb(kb,Ua,Fc,Ya.yieldResult),b.reply(ndc);case 22:return _.p(Ya,aS(a,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return Ya.return();
case 5:_.me(Ya,26);a.callbacks.onSendHighScore(vja(_.Sx(b.data,Rxb,3,oE).getValue()));b.reply(kE(jE(1),hE(1)));_.Jj(Ya,27);break;case 26:return id=_.re(Ya),Mb=Yv,wd=id,Tb=a.callbacks,tb="MINI_APP_SDK_API_SEND_SCORE",_.p(Ya,a.sdkVersion.promise,28);case 28:Mb(wd,Tb,tb,Ya.yieldResult),b.reply(ndc);case 27:return _.p(Ya,aS(a,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return Ya.return();case 6:if(!_.Ax(b.data,Sxb,8,oE)){Ya.jumpTo(30);break}Oa=_.Sx(b.data,Sxb,8,oE);Oa=_.Px(Oa,1);return _.p(Ya,aS(a,T2a(Oa)),
30);case 30:return Ya.return();case 7:return Oa=b.reply,pb=jE(1),Yb=hE(1),Pc=a.callbacks.getLanguage(),Yb=ll(Yb,4,iE,mc(Pc)),Oa.call(b,kE(pb,Yb)),_.p(Ya,aS(a,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return Ya.return();case 8:if(!_.Ax(b.data,Qxb,10,oE))return Ya.return();Fb=_.Sx(b.data,Qxb,10,oE);dd=a.callbacks;be=dd.onSdkPerformanceUpdate;return _.p(Ya,a.sdkVersion.promise,33);case 33:return be.call(dd,Fb,Ya.yieldResult),Ya.return();case 9:Oa=b.data;if(_.kg(Oa,ql(Oa,oE,11))==null)return b.reply(kE(jE(1),
hE(2))),Ya.return();ia=Rx(b.data,11,oE);a.callbacks.onShareInviteCode(ia);b.reply(mdc);return _.p(Ya,aS(a,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return Ya.return();case 10:if(_.Ax(b.data,cE,13,oE)){Ya.jumpTo(35);break}return _.p(Ya,a.callbacks.onShowMiniAppAd(2),36);case 36:return gc=Ya.yieldResult,b.reply(kE(jE(1),Jxb(gc))),_.p(Ya,aS(a,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return Ya.return();case 35:a:switch(_.Sx(b.data,cE,13,oE).getType()){case 1:Oa={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:Oa={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:Oa={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}Pb=Oa;Lc=Pb.adType;qb=Pb.sdkApi;Oa=a.callbacks;pb=Oa.onShowMiniAppAd;Yb=_.Sx(b.data,cE,13,oE);Yb=_.Ox(Yb,2);return _.p(Ya,pb.call(Oa,Lc,Yb||void 0),38);case 38:return Ab=Ya.yieldResult,b.reply(kE(jE(1),Jxb(Ab))),_.p(Ya,aS(a,qb),39);case 39:return Ya.return()}})})};
var $R=function(a,b){_.l(function(c){a.channel.send(b);_.se(c)})},Zv=function(a,b,c){this.callbacks=a;
var d=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;a=xda(b,(new URL(c.toString())).origin);this.gameSnacks=new Aab(a);this.gameSnacks.page.onReady(function(){d.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){d.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var e,g;(g=(e=d.callbacks).onGameReady)==null||g.call(e)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(e,g){try{d.callbacks.onSendHighScore(g)}catch(k){Yv(k,d.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(e,g){var k;return _.l(function(m){if(m.nextAddress==1)return _.me(m,2),_.p(m,d.callbacks.onSave(d.decoder.decode(g)),4);if(m.nextAddress!=2)return _.Jj(m,0);k=_.re(m);Yv(k,d.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return m.return()})});
this.gameSnacks.storage.onLoad(function(){var e,g;return _.l(function(k){if(k.nextAddress==1)return _.me(k,2),_.p(k,d.callbacks.onLoad(),4);if(k.nextAddress!=2)return e=k.yieldResult,k.return(d.encoder.encode(e));g=_.re(k);Yv(g,d.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return k.return(d.encoder.encode(""))})});
this.gameSnacks.init()};
_.z(Zv,ZR);Zv.prototype.onAudioToggled=function(a,b){ZR.prototype.onAudioToggled.call(this,a,b===void 0?!0:b);var c;(c=this.gameSnacks)==null||c.audio.update(a)};
Zv.prototype.onPause=function(){ZR.prototype.onPause.call(this);if(_.x("enable_gamesnacks_pause_resume_bugfix")){var a;(a=this.gameSnacks)==null||a.game.pause()}};
Zv.prototype.onResume=function(){ZR.prototype.onResume.call(this);if(_.x("enable_gamesnacks_pause_resume_bugfix")){var a;(a=this.gameSnacks)==null||a.game.resume()}};var odc=U2a,pdc=_.Rr(function(a){var b=a.data;var c=a.loadingProgress;a=_.h(_.fh("","n5hiSd"));var d=a.next().value,e=a.next().value;a=_.h(_.fh(!1,"sAQOoc"));var g=a.next().value,k=a.next().value,m=[],n=function(){return"transform: scaleX("+(_.zh(c)||0)+")"},r="mini-app-splash-screen-view-model-wiz__loading-bar-segment "+(_.aj("loading_bar_progress_calculation")==="latency-motion"?"mini-app-splash-screen-view-model-wiz__loading-bar-segment-latency-motion-animation":_.aj("loading_bar_progress_calculation")===
"latency-mood"?"mini-app-splash-screen-view-model-wiz__loading-bar-segment-latency-mood-animation":"mini-app-splash-screen-view-model-wiz__loading-bar-segment-resource-animation"),t=null,u=function(){var G;
return(G=b()&&t)!=null?G:t=odc()};
_.yh(function(){var G;if(b().timeOutMessages&&((G=b().timeOutMessages)==null?0:G.length)){t=null;G=_.h(m);for(var J=G.next();!J.done;J=G.next())clearTimeout(J.value);m.length=0;V2a(b().timeOutMessages,m,e,k)}},"fSPG4d");
var w=function(){return!!b().persistentErrorMessageTitle},A=function(){return!!_.aj("loading_bar_progress_calculation")&&c!==void 0},C=function(){return b().title};
return _.q("yt-mini-splash-screen-view-model",{class:"mini-app-splash-screen-view-model-wiz"},_.q("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen",role:"region",tabindex:0},_.q("div",{class:"mini-app-splash-screen-view-model-wiz__background-base"}),_.q("div",{class:"mini-app-splash-screen-view-model-wiz__background-blur",style:function(){var G,J=(G=b().backgroundImage)==null?void 0:G.sources,I;return(J==null?0:J.length)?"background-image: url("+((I=J[0])==null?void 0:I.url)+")":
""}}),_.q("div",{class:"mini-app-splash-screen-view-model-wiz__background-scrim"}),_.q(_.oi,{cond:function(){return!w()},
then:function(){var G={};return _.q("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen-content"},_.q("div",{class:"mini-app-splash-screen-view-model-wiz__loading-icon"},_.q(_.kt,{className:"mini-app-splash-screen-view-model-wiz__loading-icon-animation",animationName:function(){return"loading_animation_"+u()},
data:function(){var J="loading_animation_"+u();return{animationConfig:{name:J,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+J+".json",loop:!0,autoplay:!0}}}})),_.q("div",{class:"mini-app-splash-screen-view-model-wiz__timeout-message-container"},_.q(_.oi,{cond:C,
then:function(){return _.q("h3",{class:"mini-app-splash-screen-view-model-wiz__timeout-heading"},C)}}),_.q("p",{class:_.jt("mini-app-splash-screen-view-model-wiz__timeout-message",(G["mini-app-splash-screen-view-model-wiz__timeout-message-fade-out"]=function(){return g()},G)),
"aria-live":"polite"},d),_.q(_.oi,{cond:A,then:function(){return _.q("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-track"},_.q("div",{class:r,style:n}))}})))}}),_.q(_.oi,{cond:w,
then:function(){return _.q("div",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-content"},_.q("h3",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-title"},function(){return b().persistentErrorMessageTitle}),_.q(_.oi,{cond:function(){return!!b().persistentErrorMessageDescription},
then:function(){return _.q("p",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-description"},function(){return b().persistentErrorMessageDescription})}}))}})))});var qdc=new _.fB("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var rdc=Ph;Ph=function(a){function b(c){if(c){var d,e;(d=c.__spec)==null||(e=d.didUnmount)==null||e.call(d);for(d=0;d<c.childNodes.length;d++)b(c.childNodes[d])}}
rdc==null||rdc(a);us(function(){for(var c=0;c<a.length;c++)b(a[c])})};var sdc=_.Rr(function(a){var b=a.data;var c=a.score;var d=a.formattedScore;var e=a.onScoreChanged;var g=a.isEmbeddedInWebview;var k=_.Sl(),m=function(){var A;return _.y(b==null?void 0:(A=b())==null?void 0:A.buttonViewModel,_.Fu)},n=function(){var A;
return(c==null?void 0:c())||Number(b==null?void 0:(A=b())==null?void 0:A.lastScore)||0},r=function(){var A;
return(d==null?void 0:d())||((A=m())==null?void 0:A.title)||""},t,u=1;
if(a=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))a=Number(a),u=isNaN(a)?1:a/100;_.yh(function(){e==null||e(n());var A;var C=_.Es((A=m())==null?void 0:A.onTap);if(C){A=_.y(C,dFb);var G,J,I;A=_.y(A==null?void 0:(G=A.panelLoadingStrategy)==null?void 0:(J=G.inlineContent)==null?void 0:(I=J.dialogViewModel)==null?void 0:I.customContent,iBb)}else A=void 0;if(G=A)G.score=r()},"QDsY1c");
a=_.ot(function(){var A,C,G=b==null?void 0:(A=b())==null?void 0:(C=A.loggingDirectives)==null?void 0:C.trackingParams;G&&_.qF(_.v().resolve(_.xH),G);return!1});
_.vi(function(){if(k.value){var A=k.value.querySelector("button"),C=m();A&&C&&W2a(A,C);Yl("yt-share-playable-with-high-score",function(){var G=n().toString(),J=b==null?void 0:b().onShareHighScoreCommand,I=b==null?void 0:b().highScoreShareClientParamIdentifier,R=g==null?void 0:g();J&&(R?(I=new UEb,G=_.sf(I,2,G),Xv(J,G.JSC$10085_serializeBinary())):I&&(_.v().resolve(qdc).clientParams.set(I,{miniAppClientParams:{highScore:G}}),E2a(J,!1)))})}});
var w=function(){var A=m();A&&(c==null?0:c())&&A.accessibilityText&&(A.accessibilityText=A.accessibilityText.replace(t,r()));t=r();return{numberValue:n(),numberText:r(),heightPx:36,fontSizeMultiplier:u,shouldAnimate:!(c==null||!c())&&!0}};
return _.q("yt-mini-app-score-button-view-model",{class:function(){var A={};return _.lt("mini-app-score-button-view-model-wiz",(A["mini-app-score-button-view-model-wiz--is-visible"]=n()!==0,A))},
el:k,"on:click":a},_.Qg(!1,function(){return _.q("span",{style:"display:none;"},n)}),_.q(_.Eu,{data:function(){var A;
return b==null?void 0:(A=b())==null?void 0:A.buttonViewModel}},{buttonViewModel:function(A){return _.q(_.Ju,{data:A.data,
animatedTextProps:w})}}))});var xdc=_.Rr(function(a){var b,c=(b=_.sG("yt-mini-app-is-theater-mode-enabled"))!=null?b:!1,d=_.x("enable_playable_container_save_button"),e=_.x("enable_play_next_destination_page_in_toolbar");b={};return _.q("ytm-mini-app-top-bar-view-model",null,_.q("div",{class:_.jt("yt-mini-app-top-bar-view-model",(b["yt-mini-app-top-bar-view-model--mobile"]=!1,b["yt-mini-app-top-bar-view-model--desktop"]=!0,b))},_.q("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.q(_.oi,{cond:function(){var g;
return!!a.data().backButtonEdu&&!((g=a.isExitMiniAppSeen)==null?0:g.call(a))},
then:function(){return _.q(_.Eu,{data:function(){return a.data().backButtonEdu}},{buttonViewModel:_.Ju})},
else:function(){return _.q(_.Eu,{data:function(){return a.data().backButton}},{buttonViewModel:_.Ju})}}),_.q(_.oi,{cond:function(){return a.data().viewAllButton&&!0},
then:function(){return _.q(_.Eu,{data:function(){return a.data().viewAllButton}},{buttonViewModel:_.Ju})}}),_.q(_.oi,{cond:function(){return a.data().title&&!0},
then:function(){return _.q("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return a.data().title})}})),_.q("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.q(_.oi,{cond:function(){var g;
return(g=a.isDesktopPlayPage)==null?void 0:g.call(a)},
then:function(){return _.q(_.Vh,null,_.q(tdc,{highScoreButton:function(){return a.data().highScoreButton},
score:a.score,formattedScore:a.formattedScore,onScoreChanged:a.onScoreChanged,isEmbeddedInWebview:a.isEmbeddedInWebview}),_.q(udc,{enableSaveButton:function(){return _.zh(d)},
saveButton:function(){return a.data().saveButton},
isSaved:a.isSaved,onSaveToggled:function(){return a.onSaveToggled}}),_.q(vdc,{menuButton:function(){return a.data().menuButton}}))},
else:function(){return _.q(_.oi,{cond:function(){return!1},
then:function(){return _.q(_.Eu,{data:function(){return a.data().playPageButton}},{buttonViewModel:function(g){return _.q(_.Ju,{data:g.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.q(tdc,{highScoreButton:function(){return a.data().highScoreButton},
score:a.score,formattedScore:a.formattedScore,onScoreChanged:a.onScoreChanged,isEmbeddedInWebview:a.isEmbeddedInWebview})}})}})),_.q("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.q(_.Eu,{data:function(){return a.data().muteButton}},{toggleButtonViewModel:function(g){var k=g.data;
return _.q(_.Hu,{data:function(){var m,n;return Object.assign({},k(),{isToggled:(n=(m=a.isAudioEnabled)==null?void 0:m.call(a))!=null?n:!0})},
onToggle:a.onAudioToggled,useOutlinedIcon:!0})}}),_.q(_.Eu,{data:function(){return a.data().theatreModeButton}},{toggleButtonViewModel:function(g){var k=g.data;
return _.q("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.q(_.Hu,{data:function(){return Object.assign({},k(),{isToggled:c})},
useOutlinedIcon:!0}))}}),_.q(wdc,{fullscreenButton:function(){return a.data().fullscreenButton}}),_.q(_.oi,{cond:function(){return _.zh(e)&&a.data().viewAllButton&&!1},
then:function(){return _.q(_.Eu,{data:function(){return a.data().viewAllButton}},{buttonViewModel:_.Ju})}}),_.q(_.oi,{cond:function(){var g;
return!((g=a.isDesktopPlayPage)==null?0:g.call(a))},
then:function(){return _.q(_.Vh,null,_.q(udc,{enableSaveButton:function(){return _.zh(d)},
saveButton:function(){return a.data().saveButton},
isSaved:a.isSaved,onSaveToggled:function(){return a.onSaveToggled}}),_.q(vdc,{menuButton:function(){return a.data().menuButton}}))}}))))});
xdc.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var vdc=_.Rr(function(a){return _.q("div",{class:"yt-mini-app-top-bar-view-model__center-buttons-child"},_.q(_.Eu,{data:a.menuButton},{buttonViewModel:_.Ju}))}),udc=_.Rr(function(a){var b=a.enableSaveButton;
var c=a.saveButton;var d=a.isSaved;var e=a.onSaveToggled;return _.q(_.oi,{cond:function(){return b()&&!(c==null||!c())},
then:function(){return _.q("div",{class:"yt-mini-app-top-bar-view-model__center-buttons-child"},_.q(_.Eu,{data:function(){var g=_.y(c==null?void 0:c(),_.Gu),k;return{toggleButtonViewModel:Object.assign({},g,{isToggled:(k=d==null?void 0:d())!=null?k:!(g==null||!g.isToggled)})}}},{toggleButtonViewModel:function(g){return _.q(_.Hu,{data:g.data,
onToggle:e})}}))}})}),tdc=_.Rr(function(a){var b=a.highScoreButton;
var c=a.score;var d=a.formattedScore;var e=a.onScoreChanged;var g=a.isEmbeddedInWebview;return _.q(_.Eu,{data:b},{miniAppScoreButtonViewModel:function(k){return _.q("div",{class:"yt-mini-app-top-bar-view-model__center-buttons-child"},_.q(sdc,{data:k.data,score:c,formattedScore:d,onScoreChanged:e,isEmbeddedInWebview:g}))}})}),wdc=_.Rr(function(a){a=a.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.q(_.Vh,null):_.q(_.Eu,{data:a},{buttonViewModel:_.Ju})});_.ydc=new _.fB("DESKTOP_CURRENT_PAGE");var Edc=_.Rr(function(a){var b=a.data;var c=_.x("force_active_time_logging_webview"),d=_.x("skip_logs_after_end_event"),e=_.aj("loading_bar_progress_calculation"),g=!1,k=new Zcc,m=void 0,n=void 0,r=_.v().resolve(Ycc),t=new Ucc,u=void 0,w=void 0,A=[],C=void 0,G=void 0,J=!1,I=!1,R=!1,ca=!1,V=new _.gq,fa=_.v().resolve(qdc),aa=_.v().resolve(_.TR),ma=_.v().resolve(_.Wi(tJ)),Ba,Da=(Ba=_.v().resolve(_.Wi(_.ydc)))==null?void 0:Ba.getCurrentPage(),za=void 0,Fa=!1,bb=0,kb=function(Za){Za.preventDefault();return Za.returnValue=
""},Ua;
a=_.h(_.fh(!((Ua=_.sG("yt-mini-app-is-audio-enabled"))!=null&&!Ua),"GW2lGe"));var Fc=a.next().value,id=a.next().value,Mb;Ua=_.h(_.fh(!((Mb=_.sG("exit-mini-app-seen-state"))==null||!Mb),"hVbKTe"));var wd=Ua.next().value,Tb=Ua.next().value;Mb=_.h(_.fh(!1,"oaorFb"));var tb=Mb.next().value,Fb=Mb.next().value;Mb=_.h(_.fh(void 0,"hCOVsb"));var dd=Mb.next().value,be=Mb.next().value;Mb=_.h(_.fh(void 0,"saKCod"));var ia=Mb.next().value,gc=Mb.next().value;Mb=_.h(_.fh(!0,"L2PoTb"));var Pb=Mb.next().value,Lc=
Mb.next().value;Mb=_.h(_.fh(!1,"AsJEvf"));var qb=Mb.next().value,Ab=Mb.next().value;Mb=_.h(_.fh(void 0,"c55ogf"));var Ya=Mb.next().value,Oa=Mb.next().value;Mb=_.h(_.fh(0,"UuaLqf"));var pb=Mb.next().value,Yb=Mb.next().value,Pc=_.Rl(),Db=function(){return b().isEmbeddedInWebview},Vc=function(){return b().hasPlayNextShelf};
Yl("yt-page-type-changed",function(Za){if(_.x("enable_is_mini_app_page_active_bugfix"))Za.detail.newPageSubtype!=="mini_app"&&Pb()&&jd();else if(Za=_.K_a()==="mini_app",Za!==Pb())if(Lc(Za),Za){var $b;Za=($b=b().playableId)==null?void 0:$b.toString();Za!==void 0&&window.location.href.includes(Za)&&!I&&(ca=!0,zd(),pk(Yf.value))}else Za||jd()});
Yl("yt-action",function(Za){Za.detail.actionName==="yt-engagement-panel-visible-changed"&&Za.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&Za.detail.args[2]==="PAmini_app_panel"&&jd();_.x("enable_is_mini_app_page_active_bugfix")?Za.detail.actionName==="yt-history-load"&&!Pb()&&(Da==null?0:Da.active)?(Lc(!0),zd(),pk(Yf.value)):Za.detail.actionName==="yt-history-load"&&Pb()&&!b().isEmbeddedInWebview&&Yg():Pb()&&Za.detail.actionName==="yt-history-load"&&(ca?ca=!1:b().isEmbeddedInWebview||Yg())});
_.wh(function(){pm()});
_.yh(function(){zd()},"Gj0Zn");
var zd=function(){var Za=b().playableId,$b=b().localReleaseId,Uc=b().derivedDeviceInterface;if(I)_.Dl(new _.qj("[MiniAppContainerViewModel] onEnter was called more than once"));else{I=!0;m=new Hcc(Za,$b,Uc,document.visibilityState==="visible");Lcc(m);n=new edc(Za);zdc(r,Za);Vcc(t,{showMiniAppAdCommand:b().showMiniAppAdCommand,isEmbeddedInWebview:b().isEmbeddedInWebview,playLogger:m});Zoa()&&(G=document.body.style.backgroundColor,_.Xy(document.body,"background-color","black"));nh();sd();V=new _.gq;
if(b().isEmbeddedInWebview){if(Za=(new URLSearchParams(window.location.search)).get("postPlayNonce"))Jcc(m,Za),Fa=!0;k.initialize({onAudioStateLoaded:function(od){Ye(od)},
onMuteMiniApp:function(){Ye(!1)},
onUnmuteMiniApp:function(){Ye(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(od){Fa||(Jcc(m,od),Fa=!0)},
confirmExitMiniApp:function(){var od,Jc,hg;return _.l(function(di){if(di.nextAddress==1)return b().confirmExitMiniAppCommand?_.p(di,Promise.race([V.promise,Promise.resolve(!1)]),2):di.return();(od=di.yieldResult)?!b().confirmExitMiniAppCommandEdu||(hg=(Jc=wd)==null?void 0:Jc())!=null&&hg?Gh(b().confirmExitMiniAppCommand):(Gh(b().confirmExitMiniAppCommandEdu),_.rG("exit-mini-app-seen-state","true",2592E6)):Gh(b().closeMiniAppCommand);_.se(di)})},
onNativeBenchmarkingMessageReceived:function(od){od=zxb(_.C3a(od));if(_.Ax(od,_.Wv,3,wxb)){var Jc=_.Sx(od,_.Wv,3,wxb),hg=F2a();var di=vja(hg.getSeconds())-vja(Jc.getSeconds());Jc=_.Xf(hg,2)-_.Xf(Jc,2);di<0&&Jc>0?(di+=1,Jc-=1E9):di>0&&Jc<0&&(--di,Jc+=1E9);di=(new cz).setSeconds(di);di=_.Qc(di,2,_.ac(Jc),0);_.pd(od,1,di)}var Is;(Is=w)==null||Is.returnNativeBenchmarkingMessage(od)},
multiplayer3pAckStateLoaded:function(od){Yg(od)},
exitMiniAppSeenStateLoaded:function(od){b().confirmExitMiniAppCommandEdu&&Tb(od)},
onNavigateToNewMiniApp:function(){Gh(b().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(od){od=new URLSearchParams(od);var Jc=void 0;od.has("invite_code")&&(Jc=new Fxb,od=od.get("invite_code"),Jc=_.sf(Jc,1,od));if(od=Jc){var hg;(hg=w)==null||hg.sendGameData(od)}},
onPauseMiniApp:function(){g=!0;Mf()},
onResumeMiniApp:function(){g=!0;$o()},
onAdFinished:function(od){t.onAdFinished(od)}});
b().showMultiplayer3pConsentDialogCommand||V.resolve(!0);Gh(b().onContainerReadyCommand)}else Jcc(m),_.x("enable_uss_for_multiplayer_ack_dialog_client")||(za=RLb("yt-mini-app-"+Za)),V.resolve(!0);fdc(n,Icc(m));Icc(m).then(function(od){od={miniAppPlayData:{postPlayNonce:od}};var Jc,hg=(Jc=b().loggingDirectives)==null?void 0:Jc.trackingParams;hg&&_.ms().stateChanged(hg,od)});
Za=b().showSignInDialogCommand;!J2a()&&Za&&(_.rG("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),Gh(Za));b().confirmExitMiniAppCommand&&ma&&(Za=C2a(b().confirmExitMiniAppCommand))&&(ma.customConfirmationCommand=Za)}},pm=function(){if(!d||I)G&&_.Xy(document.body,"background-color",G),J=!1,C&&C.release(),n.flush().catch(function(Za){_.Dl(Za)}),r.flush().catch(function(Za){_.Dl(Za)}),Ncc(m),Rk(),w=void 0,d&&(I=!1),Adc(fa)},jd=function(){Lc(!1);
pm();Fb(!1);Oa(void 0);be(void 0);gc(void 0);e&&(bb=0,Yb(0));d||(I=!1)},Mf=function(){var Za;
(Za=w)==null||Za.onPause();C&&C.release();n.flush().catch(function($b){_.Dl($b)});
r.flush().catch(function($b){_.Dl($b)});
Mcc(m)},$o=function(){var Za;
(Za=w)==null||Za.onResume();sd();Za=m;Za.isForeground=!0;VR(Za,"PLAY_EVENT_TYPE_PLAY_RESUME")},Ye=function(Za){var $b;
($b=w)==null||$b.onAudioToggled(Za);id(Za)},Yg=function(Za){if(b().showMultiplayer3pConsentDialogCommand){if(b().isEmbeddedInWebview||Za!==void 0)b().isEmbeddedInWebview&&V.resolve(Za);
else if(!_.x("enable_uss_for_multiplayer_ack_dialog_client")){var $b;Za=!(($b=za.get("multiplayer-3p-ack-state"))==null||!$b)}!Za&&_.K_a()==="mini_app"&&Gh(b().showMultiplayer3pConsentDialogCommand)}},Ci=function(){var Za,$b,Uc,od;
return _.l(function(Jc){if(Jc.nextAddress==1){if(d&&!I)return Jc.return();!b().isLivestream||b().disableVideoCapture||(Za=w)!=null&&Za.sendStartGameFrameCapture();$b=(new URL(window.location.href)).searchParams;if($b.has("invite_code")){var hg=new Fxb,di=$b.get("invite_code");Uc=_.sf(hg,1,di);(od=w)==null||od.sendGameData(Uc)}tb()||(Fb(!0),hg=m,hg.state!==1?_.Dl(new _.qj("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+Fcc[hg.state])):(_.bj("mini_app_ids_without_game_ready").includes(hg.JSC$14535_miniAppId)&&
(hg.gameReady=!0),hg.state=2,hg.beforeReady=!1,UR(hg,"ma_ffr"),VR(hg,"PLAY_EVENT_TYPE_PLAY_READY")));return _.p(Jc,V.promise,2)}Gh(b().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();b().isEmbeddedInWebview||Yg();_.se(Jc)})},nd=function(){var Za=m;
Za.gameReady=!0;UR(Za,"ma_gr")},Xp=function(Za){var $b;
return _.l(function(Uc){if(Uc.nextAddress==1)return _.me(Uc,2),_.p(Uc,hdc(n,Za),4);if(Uc.nextAddress!=2)return _.Jj(Uc,0);$b=_.re(Uc);Gh(b().showSavingErrorPopupCommand);throw $b;})},Qk=function(){var Za,$b;
return _.l(function(Uc){if(Uc.nextAddress==1)return _.me(Uc,2),_.p(Uc,gdc(n),4);if(Uc.nextAddress!=2)return Za=Uc.yieldResult,Uc.return(Za);$b=_.re(Uc);Gh(b().showLoadingErrorDialogCommand);throw $b;})},Zi=function(Za){m.logError(Za)},Di=function(Za,$b,Uc){Pcc(m,Za,$b,Uc)},Ke=function(Za,$b){Rcc(m,Za,$b)},ap=function(){!c&&b().isEmbeddedInWebview||_.Zk();
Occ(m,!0);J||(window.addEventListener("beforeunload",kb,{capture:!0}),J=!0)},sa=function(Za){var $b,Uc,od,Jc,hg,di,Is;
return _.l(function(dy){if(dy.nextAddress==1)return r&&(!u||u<Za)&&Za>0?_.p(dy,Bdc(r,Za),3):dy.jumpTo(0);$b=dy.yieldResult;Uc=_.h($b);od=Uc.next().value;Jc=Uc.next().value;hg=od;di=Jc;((Is=hg)==null?0:Is.displayString)&&di&&(be(di),gc(hg.displayString));_.se(dy)})},Ga=function(Za){var $b=b().onBenchmarkingMessageReceivedCommand;
if($b){var Uc=F2a();_.qd(Za,3,wxb,Uc);Xv($b,Axb(Za))}},La=function(Za){var $b=b().onGameFrameReceivedCommand;
if($b){var Uc=new eBb;var od=new bBb;var Jc=Mx(Za,1);od=_.sl(od,1,Jc);Za=_.Ox(Za,2);Za=_.sf(od,2,Za);Uc=_.pd(Uc,2,Za);Xv($b,hBb(Uc))}},mb=function(){var Za=new URLSearchParams(window.location.search);
if(b().isEmbeddedInWebview&&Za&&Za.get("override_hl")==="true"&&Za.get("hl"))return Za.get("hl");Za=document.documentElement.lang;return Za!==""?Za:_.Np},fc=function(Za){var $b=b().onShareInviteCodeCommand;
if($b)if(b().isEmbeddedInWebview){var Uc=new UEb;Za=_.sf(Uc,1,Za);Xv($b,WEb(Za))}else Uc=b().inviteCodeShareClientParamIdentifier,fa.clientParams.set(Uc,{miniAppClientParams:{inviteCode:Za}}),Gh($b)},fb=function(Za){var $b,Uc,od;
return _.l(function(Jc){if(Jc.nextAddress==1)return $b=b().onMiniAppOpenYtContentRequested,r&&_.x("enable_open_yt_content")&&$b?_.p(Jc,Cdc(r,Za),3):Jc.jumpTo(0);Uc=Jc.yieldResult;if(Uc==="OK")if(b().isEmbeddedInWebview){var hg=new YAb;od=ll(hg,2,JE,mc(Za));Xv($b,aBb(od))}else aa.clientData.set("video_id",Za),Gh($b);_.se(Jc)})},ib=function(Za){bb+=_.Xf(Za,3);
if(e==="logarithmic")Za=Math.min(Math.log(1+bb/15E6*9)/Math.log(10),.99),Yb(Za),Qb(Za);else if(e==="linear")Za=Math.min(bb/15E6,.99),Yb(Za),Qb(Za);else if(e==="latency-mood"||e==="latency-motion")Yb(1),Qb(1)},Qb=_.Dy(function(Za){var $b=b().updateLoadingProgressCommand;
if($b){var Uc=new YAb;Za=ll(Uc,3,JE,_.Ub(Za));Xv($b,aBb(Za))}},100),xb=function(Za){return Xcc(t,Za)},sd=function(){var Za,$b;
((Za=_.k5a())==null?void 0:($b=Za.wakeLock)==null?void 0:$b.request)!=null&&_.k5a().wakeLock.request("screen").then(function(Uc){C=Uc}).catch(function(){})},Yf=_.Rl();
_.yh(function(){b().isSupportedCountry&&(J2a()||_.x("enable_sign_in_promo")||!b().showSignInDialogCommand?pk(Yf.value):Gh(b().onMiniAppReadyCommand))},"w9EW0d");
var zb=function(){return _.q("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return tb()?0:-1},
el:Yf})},pk=function(Za,$b){$b=$b===void 0?!1:$b;
var Uc=Hs();Uc&&($b||Uc.toString()!==Za.getAttribute("src"))&&(w=Q2a(b().source,{isAudioEnabled:Fc,onFirstFrameReady:Ci,onGameReady:nd,onSave:Xp,onLoad:Qk,onError:Zi,onSdkCalled:Di,onSdkPerformanceUpdate:Ke,onClick:ap,onSendHighScore:sa,onBenchmarkingMessageReceived:Ga,getLanguage:mb,onShareInviteCode:fc,onResourceLoaded:ib,onOpenYTContent:fb,onShowMiniAppAd:xb,onGameFrameReceived:La},Za,Uc),os(Za,"load",function(){UR(m,"ma_il");os(Za,"load",function(){pk(Za,!0)})}),_.Qd(Za,Uc))},Hs=function(){var Za=
b().url;
if(Za&&(Za=_.Ak(Za),Za!==null)){if(b().source&&b().source==="MINI_APP_SOURCE_GAMESNACKS")Za=_.ff(Za,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.x("enable_origin_query_parameter_bugfix")){var $b=_.Kw(_.QUa(Za.toString()));$b=new URLSearchParams($b||"");$b.set("origin",window.location.origin);$b=$b.toString();Za=_.xd(Za).toString();Za=_.vd(kcb.exec(Za)[0]+($b.trim()?"#"+$b:""))}return Za}},Vd=function(){var Za={};
Za=_.jt("yt-mini-app-container-view-model__loading-screen",(Za["yt-mini-app-container-view-model__loading-screen--fade-out"]=tb,Za));var $b=function(){return e?tb()?1:pb():void 0};
return _.q("div",{class:Za},_.q(_.Eu,{data:function(){return b().splashScreen}},{miniAppSplashScreenViewModel:function(Uc){return _.q(pdc,{data:Uc.data,
loadingProgress:$b})}}))},nh=function(){A=[];
A.push(_.ss(window,"visibilitychange",function(){R||g&&Db()||(document.visibilityState==="visible"?$o():Mf())}));
A.push(_.ss(window,"pagehide",function(){pm()}));
A.push(_.ss(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&Pc.value.dispatchEvent(new Event("tap"))},0)}));
A.push(_.ss(Pc.value,"pointerdown",function(){Occ(m,!1)},!0));
A.push(_.ss(Pc.value,"pause",function(){R=!0;Mf()}));
A.push(_.ss(Pc.value,"play",function(){R=!1;$o()}));
A.push(_.ss(Pc.value,"exit",function(){pm()}));
var Za=navigator.keyboard,$b=Za&&Za.lock;A.push(_.ss(window,Tqb,function(){Ab(Vqb());if(Vqb()){if(_.x("enable_play_next_shelf_styling_in_playable_container")&&b().hasPlayNextShelf){cr("yt-mini-app-container-view-model","yt-mini-app-container-view-model--desktop-with-play-next-shelf");for(var Uc=document.getElementsByClassName("ytd-rich-grid-renderer"),od=0;od<Uc.length;od++)Uc[od].style.display="none"}sg("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen");
$b&&Za.lock(["Escape"])}else{if(_.x("enable_play_next_shelf_styling_in_playable_container")&&b().hasPlayNextShelf)for(sg("yt-mini-app-container-view-model","yt-mini-app-container-view-model--desktop-with-play-next-shelf"),Uc=document.getElementsByClassName("ytd-rich-grid-renderer"),od=0;od<Uc.length;od++)Uc[od].style.display="flex";cr("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen");$b&&Za.unlock()}}));
b().showMultiplayer3pConsentDialogCommand&&A.push(_.ss(window,"yt-playables-ack-3p-data-usage",function(){_.x("enable_uss_for_multiplayer_ack_dialog_client")?Ddc(r):za.set("multiplayer-3p-ack-state","true",15552E6)}));
b().confirmExitMiniAppCommandEdu&&A.push(_.ss(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.rG("exit-mini-app-seen-state","true",2592E6)}))},Rk=function(){A.forEach(function(Za){ps(Za)});
window.removeEventListener("beforeunload",kb,{capture:!0})},Gh=function(Za){Za&&E2a(Za,b().isEmbeddedInWebview||!1)},sg=function(Za,$b){Za=_.h(Pc.value.getElementsByClassName(Za));
for(var Uc=Za.next();!Uc.done;Uc=Za.next())Uc.value.classList.add($b)},cr=function(Za,$b){Za=_.h(Pc.value.getElementsByClassName(Za));
for(var Uc=Za.next();!Uc.done;Uc=Za.next())Uc.value.classList.remove($b)};
return function(){var Za={};Za=_.jt("yt-mini-app-container-view-model",(Za["yt-mini-app-container-view-model--desktop"]=!0,Za["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return b().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},Za["yt-mini-app-container-view-model--ios-web-view"]=Zoa(),Za["yt-mini-app-container-view-model--no-top-bar"]=function(){return!b().topBar},Za["yt-mini-app-container-view-model--desktop-with-play-next-shelf"]=function(){return b().hasPlayNextShelf&&_.x("enable_play_next_shelf_styling_in_playable_container")},
Za["yt-mini-app-container-view-model--desktop-play-page"]=function(){return b().hasPlayNextShelf},Za));
var $b={};$b=_.jt("yt-mini-app-container-view-model__content",($b["yt-mini-app-container-view-model__content--desktop-content"]=!0,$b["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return b().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},$b["yt-mini-app-container-view-model--desktop-play-page"]=function(){return b().hasPlayNextShelf},$b));
return _.q("mini-app-container-view-model",{el:Pc},_.q("div",{class:Za},_.q(_.oi,{cond:function(){return b().topBar&&!qb()},
then:function(){return _.q(_.Eu,{data:function(){return b().topBar}},{miniAppTopBarViewModel:function(Uc){return _.q(xdc,{data:Uc.data,
isAudioEnabled:Fc,onAudioToggled:function(od){Ye(od)},
score:dd,formattedScore:ia,onScoreChanged:function(od){u=od},
isEmbeddedInWebview:Db,isSaved:Ya,onSaveToggled:function(od){Oa(od)},
isExitMiniAppSeen:wd,isDesktopPlayPage:Vc})}})}}),_.q("div",{class:$b},_.q(_.oi,{cond:Pb,
then:function(){return zb()}}),_.q(_.oi,{cond:function(){return!b().isEmbeddedInWebview},
then:function(){return Vd()}}))))}()});
Edc.idomCompat=!0;_.Ws(Edc,"mini-app-container-view-model",{props:{data:_.SG}});var Fdc=_.Rr(function(a){var b=a.data;return _.q("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.q("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.ot(function(){var c=b().onTap;c&&_.Js(c)})},_.q(_.oi,{cond:function(){return b().icon},
then:function(c){return _.q(_.tt,{icon:function(){return c().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.q("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return b().title})))});
Fdc.idomCompat=!0;var Hdc=_.Rr(function(a){var b=a.data;return _.q("yt-sponsorships-hub",{class:"ytdSponsorshipsHubHost"},_.q("div",{class:"ytdSponsorshipsHubHeader"},_.q("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.q("div",{class:"ytdSponsorshipsHubAvatar"},_.q(_.Eu,{data:function(){return b().avatar}},{avatarViewModel:_.LK})),_.q(_.oi,{cond:function(){return b().badgeImage},
then:function(c){return _.q("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.q("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.q("div",{class:"ytdSponsorshipsHubBadge"},_.q(_.Ss,{data:c,targetWidth:24,targetHeight:24,alt:""}))))}})),_.q("div",{class:"ytdSponsorshipsHubDetails"},_.q("div",{class:"ytdSponsorshipsHubTierName"},function(){return b().tierName}),_.q("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return b().membershipType}),_.q("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return b().membershipDurationOrExpiry})),_.q("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.q(_.oi,{cond:function(){return b().manageButton},
then:function(c){return _.q(_.Eu,{data:c},{buttonViewModel:function(d){return _.q(_.Ju,{data:d.data,className:"ytdSponsorshipsHubManageButton"})}})}}),_.q(_.oi,{cond:function(){return b().actionMenuButton},
then:function(c){return _.q(_.Eu,{data:c},{buttonViewModel:function(d){return _.q(_.Ju,{data:d.data,className:"ytdSponsorshipsHubActionMenuButton"})}})}}))),_.q("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return b().perksTitle}),_.q(Gdc,{data:b}))});
Hdc.idomCompat=!0;var Gdc=_.Rr(function(a){var b=a.data;var c=_.Rl();a=_.h(_.fh(void 0,"KP9Bw"));var d=a.next().value,e=a.next().value,g=function(){var A=d();if(c.value&&A!==void 0)return Math.abs(A)},k=function(){var A=g();
return A===void 0||A<=3},m=function(){var A=g();
A=c.value&&A!==void 0?c.value.scrollWidth-c.value.clientWidth-A:void 0;return A===void 0||A<=3},n=function(A){c.value&&c.value.scrollBy({top:0,
left:(_.Ei("HTML_DIR")==="rtl"?-1:1)*A*c.value.clientWidth,behavior:"smooth"})},r=function(){var A;
e((A=c.value)==null?void 0:A.scrollLeft)},t=function(){n(-.5)},u=function(){n(.5)};
a=_.ot(function(){r()});
_.ti(function(){r()});
var w={};return _.q("div",null,_.q("div",{class:_.jt("ytdSponsorshipsHubPerksShelf",(w.ytdSponsorshipsHubPerksShelfFadingEffectBothSides=function(){return!k()&&!m()},w.ytdSponsorshipsHubPerksShelfFadingEffectStart=function(){return!k()&&m()},w.ytdSponsorshipsHubPerksShelfFadingEffectEnd=function(){return k()&&!m()},w)),
el:c,"on:scroll":a},_.q(_.Eu,{data:function(){return b().perkCards}},{sponsorshipsHubPerkCardViewModel:Fdc})),_.q(_.oi,{cond:function(){return!k()},
then:function(){return _.q(_.Eu,{data:function(){return b().previousPerkButton}},{buttonViewModel:function(A){return _.q(_.Ju,{data:A.data,
className:"ytdSponsorshipsHubPreviousPerkButton",onClick:t})}})}}),_.q(_.oi,{cond:function(){return!m()},
then:function(){return _.q(_.Eu,{data:function(){return b().nextPerkButton}},{buttonViewModel:function(A){return _.q(_.Ju,{data:A.data,
className:"ytdSponsorshipsHubNextPerkButton",onClick:u})}})}}))});
Gdc.idomCompat=!0;_.Ws(Hdc,"yt-sponsorships-hub",{props:{data:_.SG}});_.Idc=_.Rr(function(a){var b=a.data;return _.q("yt-dual-avatar-view-model",{class:"ytDualAvatarViewModelHost",style:_.rt({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var c;return((c=b().badgeCutoutRadius)!=null?c:14)+"px"}})},_.q("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.q(_.Eu,{data:function(){return b().startAvatar}},{avatarViewModel:_.LK}),_.q(_.Eu,{data:function(){return b().endAvatar}},{avatarViewModel:_.LK})),_.q(_.Eu,{data:function(){return b().badge}},{contentPreviewImageViewModel:function(c){return _.q("div",
{class:"ytDualAvatarViewModelBadge"},_.q(_.rL,{data:c.data}))}}))});
_.Idc.idomCompat=!0;var Jdc=_.Rr(function(a){var b=a.data;var c,d=!((c=_.v().resolve(_.Wi(_.Ns)))==null||!c());a=_.kh(function(){var k,m,n=d?(k=b().header)==null?void 0:k.backgroundColorDarkMode:(m=b().header)==null?void 0:m.backgroundColorLightMode;if(n!==void 0)return _.Cq(n)},void 0,"WIeGU");
c=_.kh(function(){var k,m;return d?(k=b().header)==null?void 0:k.backgroundImagePart1Dark:(m=b().header)==null?void 0:m.backgroundImagePart1Light},void 0,"tuXTab");
var e=_.kh(function(){var k,m;return d?(k=b().header)==null?void 0:k.backgroundImagePart2Dark:(m=b().header)==null?void 0:m.backgroundImagePart2Light},void 0,"uChE0e"),g=function(k,m){return k===m};
_.vi(function(){for(var k=document.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer"),m=0;m<k.length;++m){var n=k[m];n instanceof HTMLElement&&n.scrollIntoView({inline:"start"})}});
return _.q("yt-sponsorships-perks-list",{class:"ytdSponsorshipsPerksListHost"},_.q("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.q("div",{class:"ytdSponsorshipsPerksListHeader",style:_.rt({"background-color":a})},_.q("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.q(_.oi,{cond:c,then:function(k){var m={};return _.q("div",{class:_.jt((m.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=d,m.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!d,m))},_.q(_.Ss,{data:k,
alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.q("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.q(_.oi,{cond:e,
then:function(k){var m={};return _.q("div",{class:_.jt((m.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=d,m.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!d,m))},_.q(_.Ss,{data:k,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.q("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.q(_.Eu,{data:function(){var k;
return(k=b().header)==null?void 0:k.dualAvatar}},{dualAvatarViewModel:_.Idc})))),_.q("div",{class:"ytdSponsorshipsPerksListBody"},_.q("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return b().title}),_.q(_.oi,{cond:function(){return b().perks},
then:function(k){return _.q(_.ni,{each:k},function(m,n){return _.q("div",{class:"ytdSponsorshipsPerksListPerkContainer"},_.q(_.oi,{cond:function(){return n()>0},
then:function(){return _.q("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.q("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.q(_.oi,{cond:function(){return m.icon},
then:function(r){return _.q(_.tt,{icon:function(){return r().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.q("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.q("div",{class:"ytdSponsorshipsPerksListPerkTitle"},m.title),_.q("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.q(_.wt,{text:m.description})),_.q(_.oi,{cond:function(){return m.instructions},
then:function(){var r,t;return _.q("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.q("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(r=m.instructions)==null?void 0:r.title),_.q("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.q(_.wt,{text:(t=m.instructions)==null?void 0:t.text})))}}))),_.q(_.oi,{cond:function(){return m.emoji},
then:function(r){return _.q("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.q(_.ni,{each:function(){return r()}},function(t){return _.q(_.Ss,{data:t,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.q(_.oi,{cond:function(){return m.badges},
then:function(r){return _.q("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer"},_.q(_.ni,{each:function(){return r()}},function(t,u){var w={},A={},C={};
return _.q("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.q(_.oi,{cond:function(){return u()>0},
then:function(){return _.q("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.q("div",{class:_.jt("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(w.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return g(u(),m.currentBadgeIndex)},w.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!g(u(),m.currentBadgeIndex)},w))},_.q("div",{class:_.jt("ytdSponsorshipsPerksListLoyaltyBadge",(A.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return g(u(),
m.currentBadgeIndex)},A.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!g(u(),m.currentBadgeIndex)},A))},_.q(_.oi,{cond:function(){return t.image},
then:function(G){var J={};return _.q("div",{class:_.jt((J.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return g(u(),m.currentBadgeIndex)},J.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!g(u(),m.currentBadgeIndex)},J))},_.q(_.Ss,{data:G,
alt:""}))}})),_.q("div",{class:_.jt("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(C.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return g(u(),m.currentBadgeIndex)},C))},t.title)))}))}}))})}})))});
Jdc.idomCompat=!0;_.Ws(Jdc,"yt-sponsorships-perks-list",{props:{data:_.SG}});_.Ws(_.Rr(function(a){return _.q("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.q(_.oi,{cond:function(){return a.data().image},
then:function(b){return _.q(_.Ss,{className:"ytwFantasyEmptyStateViewModelImage",data:b,ariaHidden:!0,alt:""})}}),_.q(_.wt,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return a.data().title}}),_.q(_.wt,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return a.data().subtitle}}),_.q(_.Eu,{data:function(){return a.data().primaryButton}},{buttonViewModel:function(b){return _.q(_.Ju,{data:b.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))}),"ytw-fantasy-empty-state-view-model",{props:{data:_.SG}});_.Ws(_.Rr(function(a){var b=a.data;var c;a=_.h(_.fh(!((c=_.sG("yt-mini-app-is-theater-mode-enabled"))==null||!c),"CUtq5"));var d=a.next().value,e=a.next().value,g;c=(g=_.v().resolve(_.Wi(xac)))!=null?g:function(){return _.q("div",null)};
_.Ql("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){e(!0);_.rG("yt-mini-app-is-theater-mode-enabled",!0)});
_.Ql("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){e(!1);_.rG("yt-mini-app-is-theater-mode-enabled",!1)});
g={};a={};var k={};return _.q("mini-app-play-page-renderer",{class:_.jt("miniAppPlayPageRendererHost",(g.miniAppPlayPageRendererHostDetailsView=function(){return!d()},g))},_.q("div",{class:_.jt("miniAppPlayPageRendererGameContainer",(a.miniAppPlayPageRendererGameContainerDetailsView=function(){return!d()},a))},_.q(_.Eu,{data:function(){return b().containerViewModel}},{miniAppContainerViewModel:Edc}),_.q(_.oi,{cond:function(){return!d()&&b().description},
then:function(){return _.q("div",{class:"miniAppPlayPageRendererMiniAppDescriptionWrapper"},_.q("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return b().description}))}})),_.q("div",{class:_.jt("miniAppPlayPageRendererPlayNextContainer",(k.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!d()},k))},_.q(_.Eu,{data:function(){return b().sectionList}},{sectionListRenderer:c})))}),"mini-app-play-page-renderer",{props:{data:_.SG}});var Kdc=function(){var a=_.P.apply(this,arguments)||this;a.isSearch=!1;a.isConstrainedList=!1;a.hasChipsBar=!1;a.inReplyPanel=!1;a.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"}};a.monitorScroll=!0;a.SCROLL_ANIMATION_DURATION_MS=300;a.nextContinuation={continuationType:"sectionListContinuation"};return a};
_.z(Kdc,_.P);_.f=Kdc.prototype;
_.f.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(a){switch(a.sectionIdentifier){case "comment-item-section":return"ytd-comments";case "backstage-item-section":return"ytd-backstage-items";default:return"ytd-item-section-renderer"}},
properties:{isSearchDova:"[[isSearchDova]]",isSearch:"[[isSearch]]",hasChipsBar:"[[hasChipsBar]]",engagementPanel:"[[engagementPanel]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]"},noInjection:!0},channelOwnerEmptyStateRenderer:{component:"ytd-channel-owner-empty-state-renderer",noInjection:!0},channelAgeGateRenderer:{component:"ytd-channel-age-gate-renderer",noInjection:!0},emptyProductDetailsRenderer:{component:"ytd-empty-product-details-renderer",noInjection:!0},iframeRenderer:{component:"yt-iframe-renderer",
noInjection:!0},commerceCartRenderer:{component:"ytd-commerce-cart-renderer",noInjection:!0},minorMomentHeaderRenderer:{component:"ytd-minor-moment-header-renderer",noInjection:!0},minorMomentSettingSectionRenderer:{component:"ytd-minor-moment-setting-section-renderer",noInjection:!0},pageIntroductionRenderer:{component:"ytd-page-introduction-renderer",noInjection:!0},reportHistorySectionRenderer:{component:"ytd-report-history-section-renderer",noInjection:!0},sponsorshipsManagementRenderer:{component:"ytd-sponsorships-management-renderer",
noInjection:!0},sponsorshipsExpandablePerksRenderer:{component:"ytd-sponsorships-expandable-perks-renderer",noInjection:!0},sponsorshipsHubViewModel:{component:"yt-sponsorships-hub",noInjection:!0},sponsorshipsPerksListViewModel:{component:"yt-sponsorships-perks-list",noInjection:!0},shelfRenderer:{component:"ytd-shelf-renderer",noInjection:!0},offlineItemSectionRenderer:{component:"ytd-offline-item-section-renderer",noInjection:!0},merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",noInjection:!0},
miniAppContainerViewModel:{component:"mini-app-container-view-model",noInjection:!0},miniAppPlayPageRenderer:{component:"mini-app-play-page-renderer",noInjection:!0},openInNativeAppViewModel:{component:"ytd-open-in-native-app-view-model",noInjection:!0},continuationItemRenderer:"ytd-continuation-item-renderer",liveChatProfileIdentityViewModel:{component:"yt-live-chat-identity-view-model",noInjection:!0},liveChatItemDisplayListRenderer:{component:"yt-live-chat-item-display-list-renderer",noInjection:!0},
liveChatChannelActivityReputationRenderer:{component:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0},liveChatEmptyFeedViewModel:{component:"yt-live-chat-empty-feed-view-model",noInjection:!0},listItemViewModel:{component:"ytd-list-item-view-model",params:{noPadding:!0},noInjection:!0},emojiCustomizationPanelViewModel:{component:"yt-emoji-customization-panel-view-model",noInjection:!0},creatorGoalProgressFlowViewModel:{component:"yt-creator-goal-progress-flow-view-model",noInjection:!0},
fantasyEmptyStateViewModel:{component:"ytw-fantasy-empty-state-view-model",noInjection:!0}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",noInjection:!0}},renderPriority:_.x("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.x("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.f.created=function(){var a=this;this.JSC$14662_scrollAnimation=new _.SR(function(b){a.hostElement.scrollTop=b})};
_.f.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.f.getItemsPath=function(){return"data.contents"};
_.f.replacePrimaryContent=function(a){this.set("data.contents",a)};
_.f.computeHasSortFilter=function(a){return!!a&&!!a.sortFilterSubMenuRenderer};
_.f.computeShouldScrollInPanel=function(a){var b;return!!(a==null?0:(b=a.scrollPaneStyle)==null?0:b.scrollable)};
_.f.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.$q(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.f.scrollToTop=function(){this.hostElement.scrollTop=0};
_.f.scrollToItemSection=function(a){if(a=this.getItemByIdentifier(a))a=this.getScrollPositionForItem(a),this.hostElement.scrollTop!==a&&this.JSC$14662_scrollAnimation.start(this.hostElement.scrollTop,a,this.SCROLL_ANIMATION_DURATION_MS)};
_.f.getItemByIdentifier=function(a){var b=this.contents.querySelectorAll("ytd-item-section-renderer");if(b&&b.length!==0){var c=Array.from(b).findIndex(function(d){return d.sectionIdentifier===a});
return b[c===-1?0:c]}};
_.f.getScrollPositionForItem=function(a){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===a)return 0;a=_.Df(a).y+this.hostElement.scrollTop-_.Df(this.hostElement).y;return Math.min(a,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.Vm.Object.defineProperties(Kdc.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.targetId)==="browse-feedFEclips"}}});
var bS=Kdc;bS.prototype.onScroll=bS.prototype.onScroll;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],bS.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],bS.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.gJ.YtLazyListBehavior),_.W("design:type",Object)],bS.prototype,"ytLazyListBehavior",void 0);_.U([_.H(_.SM.YtNextContinuationBehavior),_.W("design:type",Object)],bS.prototype,"ytNextContinuationBehavior",void 0);
_.U([_.H(_.ycc),_.W("design:type",Object)],bS.prototype,"ytBooleanLogicBehavior",void 0);_.U([_.H(_.RM),_.W("design:type",Object)],bS.prototype,"ytContinuationHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],bS.prototype,"data",void 0);_.U([_.O({value:2}),_.W("design:type",Number)],bS.prototype,"initialCount",void 0);_.U([_.O({value:!0}),_.W("design:type",Boolean)],bS.prototype,"autoFill",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.W("design:type",Boolean)],bS.prototype,"hasSortFilter",void 0);_.U([_.O({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.W("design:type",Boolean)],bS.prototype,"hideBottomSeparator",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.W("design:type",Boolean)],bS.prototype,"shouldScrollInPanel",void 0);
_.U([_.O(),_.W("design:type",Object)],bS.prototype,"isSearch",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],bS.prototype,"isConstrainedList",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],bS.prototype,"responsiveSizing",void 0);_.U([_.O(),_.W("design:type",Object)],bS.prototype,"hasChipsBar",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],bS.prototype,"pageSubtype",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],bS.prototype,"engagementPanel",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],bS.prototype,"liveChatEngagementPanel",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],bS.prototype,"inReplyPanel",void 0);_.U([_.gr("#action-button"),_.W("design:type",HTMLElement)],bS.prototype,"actionButton",void 0);_.U([_.O(),_.W("design:type",Object)],bS.prototype,"scrollUpButtonData",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],bS.prototype,"engagementPanelDropdown",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],bS.prototype,"engagementPanelDialog",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],bS.prototype,"isClipList",null);_.U([_.gr("#contents"),_.W("design:type",HTMLElement)],bS.prototype,"monitorScrollElement",void 0);_.U([_.gr("#contents"),_.W("design:type",HTMLElement)],bS.prototype,"contents",void 0);
_.U([_.M("scroll"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],bS.prototype,"onScroll",null);bS=_.U([_.Q({is:"ytd-section-list-renderer",disableElementRegistration:!0})],bS);
var Ldc=_.$r()(bS,"ytd-section-list-renderer",function(){if(wac===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);wac=a}a=wac;return a},{mode:1});var Mdc;var Ndc;var Odc;var Pdc;var cS=function(){return _.P.apply(this,arguments)||this};
_.z(cS,_.P);cS.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
cS.prototype.onLikeButtonClick=function(a){a.stopPropagation();a.preventDefault()};
_.Vm.Object.defineProperties(cS.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)!=null&&a.button){if(!this.likeStatusEntity)return this.data.button;this.set("data.button.toggleButtonRenderer.isToggled",!(!this.data.isLike||this.likeStatusEntity.likeStatus!=="LIKE")||!(!this.data.isDislike||this.likeStatusEntity.likeStatus!=="DISLIKE"));this.set("data.likeStatus",this.likeStatusEntity.likeStatus);return Object.assign({},this.data.button,{toggleButtonRenderer:Object.assign({},
this.data.button.toggleButtonRenderer)})}}}});
var dS=cS;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],dS.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],dS.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],dS.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],dS.prototype,"ytRendererStamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],dS.prototype,"data",void 0);
_.U([_.O({selectorArgs:["data.likeStatusEntityKey"],selector:ds}),_.W("design:type",Object)],dS.prototype,"likeStatusEntity",void 0);_.U([_.K("data","likeStatusEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],dS.prototype,"likeButtonRenderer",null);dS=_.U([_.Q({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],dS);
_.S(dS,"ytd-slim-metadata-toggle-button-renderer",function(){if(Pdc!==void 0)return Pdc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);
return Pdc=a},{mode:1});var Qdc=function(){var a=_.P.apply(this,arguments)||this;a.minimizePipBreakages=_.x("web_pip_minimize_breakages");a.showEqualizer=_.x("web_enable_playlist_video_lockup_equalizer");a.watchColorUpdate=_.x("kevlar_watch_color_update");a.actionMap={};return a};
_.z(Qdc,_.P);_.f=Qdc.prototype;_.f.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:"left"}}}},"data.actionButtons":{id:"action-buttons",mapping:{slimMetadataToggleButtonRenderer:"ytd-slim-metadata-toggle-button-renderer"}}}};
_.f.computeEditableClass=function(a){return a&&a.menu?"editable":""};
_.f.computeSelected=function(a){return!(a==null||!a.selected)};
_.f.computeUseColorPalette=function(a){return!!((a==null?0:a.lightColorPalette)&&(a==null?0:a.darkColorPalette))};
_.f.computeLargerPlaylistThumbs=function(a,b){return _.x("web_enable_playlist_bigger_thumbnails")&&!b};
_.f.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.f.onYtServiceRequestSent=function(a,b){b.endpoint&&this.isHideEnclosingAction(b.endpoint)&&!this.selected&&jKb(_.VF(),this.data.videoId)};
_.f.isHideEnclosingAction=function(a){var b=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",a);a=this.get("likeEndpoint.status",a)==="INDIFFERENT";return b||a};
_.f.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.f.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.Vm.Object.defineProperties(Qdc.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var a;return!!(this.withinMiniplayer&&((a=this.data)==null?0:a.actionButtons))}}});
var eS=Qdc;eS.prototype.onYtServiceRequestSent=eS.prototype.onYtServiceRequestSent;eS.prototype.canReorderChanged=eS.prototype.canReorderChanged;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],eS.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],eS.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],eS.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.VI),_.W("design:type",Object)],eS.prototype,"ytdLockupBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],eS.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],eS.prototype,"withinMiniplayer",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],eS.prototype,"minimizePipBreakages",void 0);_.U([_.O({computed:"computeSelected(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],eS.prototype,"selected",void 0);
_.U([_.O({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],eS.prototype,"useColorPalette",void 0);_.U([_.O({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.W("design:type",Boolean)],eS.prototype,"largerPlaylistThumbs",void 0);_.U([_.O(),_.W("design:type",Object)],eS.prototype,"showEqualizer",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],eS.prototype,"canReorder",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],eS.prototype,"touchPersistentDragHandle",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],eS.prototype,"handleIsHovered",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],eS.prototype,"watchColorUpdate",void 0);_.U([_.K("largerPlaylistThumbs"),_.W("design:type",Number),_.W("design:paramtypes",[])],eS.prototype,"thumbnailWidth",null);
_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],eS.prototype,"showActionButtons",null);_.U([_.kr("canReorder"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],eS.prototype,"canReorderChanged",null);_.U([_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Ot]),_.W("design:returntype")],eS.prototype,"onYtServiceRequestSent",null);
eS=_.U([_.Q({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],eS);
_.S(eS,"ytd-playlist-panel-video-renderer",function(){if(Odc!==void 0)return Odc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-playlist-panel-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div id="container" class="style-scope ytd-playlist-panel-video-renderer">\n    <div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-panel-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n      <span id="reorder" class="style-scope ytd-playlist-panel-video-renderer">\n        <yt-icon icon="yt-icons:drag_handle" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n      </span>\n      <span id="index" class="style-scope ytd-playlist-panel-video-renderer">[[getSimpleString(data.indexText)]]</span>\n    </div>\n    <div id="thumbnail-container" class="style-scope ytd-playlist-panel-video-renderer">\n      <ytd-thumbnail data="[[data]]" disable-now-playing="[[!showEqualizer]]" disable-tooltips="" now-playing-equalizer-only="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </ytd-thumbnail>\n    </div>\n    <div id="meta" class$="[[computeEditableClass(data)]] style-scope ytd-playlist-panel-video-renderer">\n      <yt-formatted-string id="unplayableText" disable-upgrade$="[[!data.unplayableText]]" hidden="[[!data.unplayableText]]" no-endpoints="" text="[[data.unplayableText]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <h4 class="style-scope ytd-playlist-panel-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h4>\n      <div id="byline-container" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="byline" hidden="[[!data.shortBylineText]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.shortBylineText)]]\n        </span>\n        <ytd-badge-supported-renderer badges="[[data.ownerBadges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n      <yt-formatted-string id="video-info" disable-upgrade$="[[!data.videoInfo]]" hidden="[[!data.videoInfo]]" no-endpoints="" text="[[data.videoInfo]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <div id="action-buttons" hidden="[[!showActionButtons]]" class="style-scope ytd-playlist-panel-video-renderer"></div>\n    </div>\n  </div>\n</a>\n<div id="menu" class="style-scope ytd-playlist-panel-video-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Odc=a},{mode:2});var Rdc=function(){return _.P.apply(this,arguments)||this};
_.z(Rdc,_.P);Rdc.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
var fS=Rdc;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],fS.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],fS.prototype,"data",void 0);fS=_.U([_.Q({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],fS);
_.S(fS,"ytd-playlist-panel-supported-items",function(){if(Ndc!==void 0)return Ndc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Ndc=
a},{mode:1});Urb=!0;jvb("\\P{N}");var X2a;var Sdc=_.to("END_OF_PLAYLIST",void 0,"End of playlist"),Tdc=_.to("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists Youtube makes for you"),Udc=function(){var a=_.P.apply(this,arguments)||this;a.minimizePipBreakages=_.x("web_pip_minimize_breakages");a.updatedCoursePanel=_.x("move_three_dot_menu_to_playlist_panel_header_for_courses");a.reducedPlaylistHeight=_.x("web_playlist_mini_playlist_height");a.hideHeaderText=!1;a.useColorPalette=!1;a.collapsed=!1;a.collapsedPreServerOverride="not_tracked";
a.isHovered=!1;a.jsPanelHeight=_.x("kevlar_watch_js_panel_height");a.modernPanels=_.x("kevlar_watch_modern_panels");a.expandLabel=_.to("MINIPLAYER_EXPAND_LABEL");a.collapseLabel=_.to("MINIPLAYER_COLLAPSE_LABEL");a.isFloating=!1;a.metaPanel=!1;a.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};a.currentIndex=void 0;return a};
_.z(Udc,_.P);_.f=Udc.prototype;
_.f.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"}}}};
_.f.created=function(){this.scrollThrottle=new _.hv(this.onThrottledScroll,1E3,this)};
_.f.onMouseEnter=function(){this.isHovered=!0};
_.f.onMouseLeave=function(){this.isHovered=!1};
_.f.computeOverflowMenuData=function(a){return a&&a.menu?a.menu:null};
_.f.computeCollapsible=function(a){return!a};
_.f.computeHasPlaylistButtons=function(a){return!(!a||!a.playlistButtons)};
_.f.computeHasSeparateSaveButton=function(a){return!(!a||!a.saveButton)};
_.f.computeHasToolbarButton=function(a,b){return!(!a||!(b||a.saveButton||a.menu))};
_.f.computePlaylistType=function(a){if(a&&a.playlistId)return a.playlistId.substring(0,4)};
_.f.computeCanReorder=function(a){return a?a.playlistId&&a.playlistId.startsWith("TLPQ")?!0:!!a.isEditable&&!a.isInfinite:!1};
_.f.attached=function(){var a=this;try{_.v().resolve(_.QF).setPlaylistComponent(this.hostElement)}catch(b){if(_.x("kevlar_park_on_playlist_token_killswitch"))throw b;_.SF().parkOrScheduleJob(function(){_.v().resolve(_.QF).setPlaylistComponent(a.hostElement)},2,"ci")}_.eo(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.f.detached=function(){_.fo(this.hostElement)};
_.f.computeTrailingIcon=function(a,b,c){return c?b?"yt-icons:collapse":"yt-icons:close":b?"yt-icons:expand":_.x("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.f.computeIndexMessage=function(a,b){return $2a(a+1)+" / "+$2a(b)};
_.f.onRenderStamperFinished=function(){if(this.scrollForStampDom){var a=!0;this.isHovered&&(a=!1);if(this.collapsed||this.hidden)a=!1;a&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.f.collapseChanged=function(){var a=this;this.collapsed||(_.Du(this.ytTaskEmitterBehavior.getTaskManager(),function(){a.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.f.hiddenChanged=function(){var a=this;this.hidden||_.Du(this.ytTaskEmitterBehavior.getTaskManager(),function(){a.scrollToCurrentVideo()})};
_.f.setupReordering=function(){var a=_.E(this.hostElement).querySelector("#items");ELb?_.UVb(this.ytReorderableBehavior,a,a,"playlist-drag-handle"):_.UVb(this.ytReorderableBehavior,a,a)};
_.f.scrollToCurrentVideo=function(){var a=this;_.zk.addJob(function(){var b=_.E(a.hostElement).querySelector("#items");if(b){b.style.setProperty("padding-bottom","");var c=_.E(a.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(c){b=c.parentElement||_.Ny(document);var d=b||_.Ny(document);var e=_.Df(c),g=_.Df(d),k=_.mdb(d);if(d==_.Ny(document)){var m=e.x-d.scrollLeft;e=e.y-d.scrollTop}else m=e.x-g.x-k.left,e=e.y-g.y-k.top;c=idb(c);g=d.clientHeight-
c.height;k=d.scrollLeft;var n=d.scrollTop;k+=m-(d.clientWidth-c.width)/2;d=new _.Af(k,n+(e-g/2));b.scrollLeft=d.x;b.scrollTop=d.y}}},8)};
_.f.dataChanged=function(){var a=this;_.TVb(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.Tm(this,function(){_.ul(a.ytTaskEmitterBehavior.getTaskManager(),function(){a.ytRendererBehavior.markDirty();a.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.f.updateNowPlayingOverlay=function(){_.x("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.f.onPlaylistLockupNowPlaying=function(a,b){b&&(this.activeNowPlayingRenderer=b);this.updateNowPlayingOverlay()};
_.f.onScroll=function(){this.scrollThrottle.fire()};
_.f.onThrottledScroll=function(){var a=this;_.ul(this.ytTaskEmitterBehavior.getTaskManager(),function(){a.ytRendererBehavior.markDirty()})};
_.f.onToggleExpanded=function(a){this.collapsible&&_.Qq(a).tagName!=="A"&&!_.Xt(_.Pq(a),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])&&(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.f.setCollapsed=function(a){this.collapsible&&(this.collapsed=a,_.ko(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.f.handleCollapsedFromData=function(a){if(a){var b=a.playlistPanelCollapseState;b==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||b==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),b=b==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==b&&this.setCollapsed(b)):this.currentPlaylistId!==a.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(b=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==b&&this.setCollapsed(b),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=a.playlistId}};
_.f.handleDrop=function(a){var b=a.currDragItem;a=b.data.playlistSetVideoId;var c=_.Na(b.parentNode.childNodes,b),d=void 0;c>0&&(d=b.parentNode.childNodes[c-1].data.playlistSetVideoId);b=_.VF();if(b.responsePlaylistData&&b.responsePlaylistData.contents){var e=UGa(a,b.responsePlaylistData);b.responsePlaylistData=(0,_.yf.unsafeClone)(b.responsePlaylistData);Daa(b.responsePlaylistData.contents,e,c);b.queueProxy?NJb(b.queueProxy,e,c,a,d):b.playlistProxy&&NJb(b.playlistProxy,e,c,a,d);_.WF(b,_.XF(b,b.response?
b.response.autoplayRenderer:void 0))}};
_.f.handleDarkModeChange=function(a){a!==this.isDarkTheme&&(this.isDarkTheme=a)};
_.f.colorPaletteChanged=function(){var a,b=((a=this.data)==null?void 0:a.contents)||[],c;a=_.h(b);for(b=a.next();!b.done;b=a.next()){b=b.value;var d=void 0;if((d=b.playlistPanelVideoRenderer)==null?0:d.selected){a=b.playlistPanelVideoRenderer;d=b=void 0;(c=this.isDarkTheme?(b=a)==null?void 0:b.darkColorPalette:(d=a)==null?void 0:d.lightColorPalette)&&_.Gt(this.hostElement,c);break}}this.useColorPalette=!!c};
_.Vm.Object.defineProperties(Udc.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var a,b;return!((a=this.data)==null||!a.playlistId)&&!((b=this.data)==null||!b.isCourse)&&this.updatedCoursePanel}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var a=_.v().resolve(_.Wi(_.QF)),b;if(((b=this.data)==null?0:b.contents)&&(a==null?0:a.hasAutoplayData())){var c;if(((c=this.playlistLoopStateEntity)==null?void 0:c.state)==="PLAYLIST_LOOP_STATE_ONE"){if(a=this.data.currentIndex,a!==void 0){var d,e;var g=(d=this.data.contents[a])==null?void 0:(e=d.playlistPanelVideoRenderer)==null?void 0:e.title}}else{var k,m=(k=_.y(a.getAutoplayEndpoint(),_.Vn))==null?void 0:k.videoId,n,r;g=(n=this.data.contents.find(function(t){var u;
return((u=t.playlistPanelVideoRenderer)==null?void 0:u.videoId)===m}))==null?void 0:(r=n.playlistPanelVideoRenderer)==null?void 0:r.title}return g}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)!=null&&a.nextVideoLabel?this.nextVideoTitle?_.Vp(this.data.nextVideoLabel)+":":Sdc:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var a;if(((a=this.data)==null?0:a.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN")return _.Up(Tdc);var b;return(b=this.data)==null?void 0:b.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d=(a=this.data)==null?void 0:(b=a.playlistButtons)==null?void 0:(c=b.menuRenderer)==null?void 0:c.topLevelButtons;if(d)for(a=_.h(d),b=a.next();!b.done;b=a.next())if(b=b.value,b.playlistLoopButtonRenderer)return b.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var a;return!!(this.collapsed&&((a=this.data)==null?0:a.nextVideoLabel))}}});
var gS=Udc;gS.prototype.colorPaletteChanged=gS.prototype.colorPaletteChanged;gS.prototype.onPlaylistLockupNowPlaying=gS.prototype.onPlaylistLockupNowPlaying;gS.prototype.updateNowPlayingOverlay=gS.prototype.updateNowPlayingOverlay;gS.prototype.dataChanged=gS.prototype.dataChanged;gS.prototype.hiddenChanged=gS.prototype.hiddenChanged;gS.prototype.collapseChanged=gS.prototype.collapseChanged;gS.prototype.onRenderStamperFinished=gS.prototype.onRenderStamperFinished;gS.prototype.onMouseLeave=gS.prototype.onMouseLeave;
gS.prototype.onMouseEnter=gS.prototype.onMouseEnter;_.U([_.H(_.KD),_.W("design:type",Object)],gS.prototype,"ironResizableBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],gS.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],gS.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(RVb.YtPlaylistPanelBehavior),_.W("design:type",Object)],gS.prototype,"ytPlaylistPanelBehavior",void 0);
_.U([_.H(_.XG.YtTaskEmitterBehavior),_.W("design:type",Object)],gS.prototype,"ytTaskEmitterBehavior",void 0);_.U([_.H(_.WVb),_.W("design:type",Object)],gS.prototype,"ytReorderableBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],gS.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],gS.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],gS.prototype,"actionHandlerBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],gS.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],gS.prototype,"autoplayData",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],gS.prototype,"withinMiniplayer",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],gS.prototype,"minimizePipBreakages",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],gS.prototype,"updatedCoursePanel",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],gS.prototype,"reducedPlaylistHeight",void 0);_.U([_.O({computed:"setMenuData_(data)"}),_.W("design:type",Object)],gS.prototype,"menuRendererData",void 0);_.U([_.O({computed:"computeOverflowMenuData(data)"}),_.W("design:type",Object)],gS.prototype,"overflowMenuDataTopRow",void 0);_.U([_.O({computed:"computeOverflowMenuData(data)"}),_.W("design:type",Object)],gS.prototype,"overflowMenuData",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],gS.prototype,"hideHeaderText",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],gS.prototype,"useColorPalette",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.W("design:type",Boolean)],gS.prototype,"collapsible",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],gS.prototype,"collapsed",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],gS.prototype,"hidden",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.W("design:type",Boolean)],gS.prototype,"hasPlaylistButtons",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.W("design:type",Boolean)],gS.prototype,"hasSeparateSaveButton",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.W("design:type",Boolean)],gS.prototype,"hasToolbar",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.W("design:type",String)],gS.prototype,"playlistType",void 0);_.U([_.O(),_.W("design:type",Object)],gS.prototype,"isHovered",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],gS.prototype,"jsPanelHeight",void 0);
_.U([_.O({selectorArgs:["playlistLoopStateEntityKey"],selector:_.jVa}),_.W("design:type",Object)],gS.prototype,"playlistLoopStateEntity",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],gS.prototype,"modernPanels",void 0);_.U([_.O({value:56}),_.W("design:type",Number)],gS.prototype,"scrollMargin",void 0);_.U([_.O({computed:"computeCanReorder(data)"}),_.W("design:type",Boolean)],gS.prototype,"canReorder",void 0);_.U([_.O(),_.W("design:type",Object)],gS.prototype,"expandLabel",void 0);
_.U([_.O(),_.W("design:type",Object)],gS.prototype,"collapseLabel",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],gS.prototype,"isFloating",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],gS.prototype,"metaPanel",void 0);_.U([_.O({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.W("design:type",String)],gS.prototype,"trailingIcon",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],gS.prototype,"isDarkTheme",void 0);
_.U([_.O({selector:_.Gp}),_.W("design:type",Boolean)],gS.prototype,"miniplayerIsActive",void 0);_.U([_.O({selector:function(a){return a.watch.playerState}}),
_.W("design:type",Number)],gS.prototype,"playerState",void 0);_.U([_.O(),_.W("design:type",Object)],gS.prototype,"activeNowPlayingRenderer",void 0);_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],gS.prototype,"moveThreeDotMenuToTopRow",null);_.U([_.K("data","autoplayData","playlistLoopStateEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],gS.prototype,"nextVideoTitle",null);
_.U([_.K("data","nextVideoTitle"),_.W("design:type",String),_.W("design:paramtypes",[])],gS.prototype,"nextVideoLabel",null);_.U([_.K("collapsed"),_.W("design:type",String),_.W("design:paramtypes",[])],gS.prototype,"buttonAriaLabel",null);_.U([_.K("data","playlistId","longBylineText"),_.W("design:type",Object),_.W("design:paramtypes",[])],gS.prototype,"mixLongByLine",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],gS.prototype,"playlistLoopStateEntityKey",null);
_.U([_.M("mouseenter"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],gS.prototype,"onMouseEnter",null);_.U([_.M("mouseleave"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],gS.prototype,"onMouseLeave",null);_.U([_.O({reflectToAttribute:!0}),_.K("data","collapsed"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],gS.prototype,"showNextVideoHeader",null);
_.U([_.M("yt-rendererstamper-finished"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],gS.prototype,"onRenderStamperFinished",null);_.U([_.N("collapsed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],gS.prototype,"collapseChanged",null);_.U([_.N("hidden"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],gS.prototype,"hiddenChanged",null);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],gS.prototype,"dataChanged",null);_.U([_.N("playerState","miniplayerIsActive"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],gS.prototype,"updateNowPlayingOverlay",null);_.U([_.M("yt-playlist-lockup-now-playing-active"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],gS.prototype,"onPlaylistLockupNowPlaying",null);
_.U([_.N("data","isDarkTheme"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],gS.prototype,"colorPaletteChanged",null);gS=_.U([_.Q({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],gS);
_.Vdc=_.$r()(gS,"ytd-playlist-panel-renderer",function(){if(Mdc===void 0){var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);Mdc=a}a=Mdc;return a},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel jsPanelHeight".split(" ")});var Wdc;var hS=function(){var a=_.P.apply(this,arguments)||this;a.modern=_.x("web_button_rework");return a};
_.z(hS,_.P);hS.prototype.computeShouldButtonBeVertical=function(a,b){return a||b};
hS.prototype.onYtServiceRequestSent=function(a,b){(a=_.y(b.endpoint,_.$v))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.vu("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:a.status})):this.handleLikeEndpoint(a))};
hS.prototype.computelikeStatusEntityKey=function(a){return a==null?void 0:a.likeStatusEntityKey};
hS.prototype.handleLikeEndpoint=function(a){a.status==="LIKE"?this.JSC$14687_ytdDislikeToggleButtonRenderer.toggle(!1):a.status==="DISLIKE"?this.JSC$14687_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$14687_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$14687_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.Vm.Object.defineProperties(hS.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var a;return d3a(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(a=this.likeStatusEntity)==null?void 0:a.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var a;return d3a(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(a=this.likeStatusEntity)==null?void 0:a.likeStatus)}}});
var iS=hS;iS.prototype.onYtServiceRequestSent=iS.prototype.onYtServiceRequestSent;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],iS.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],iS.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],iS.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],iS.prototype,"vertical",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],iS.prototype,"textTransform",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],iS.prototype,"useShortsIcon",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],iS.prototype,"underIconLabel",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],iS.prototype,"modern",void 0);_.U([_.O({value:"left"}),_.W("design:type",String)],iS.prototype,"buttonTooltipPosition",void 0);
_.U([_.O(),_.W("design:type",Object)],iS.prototype,"overrides",void 0);_.U([_.gr("#like-button"),_.W("design:type",Object)],iS.prototype,"JSC$14687_ytdLikeToggleButtonRenderer",void 0);_.U([_.gr("#dislike-button"),_.W("design:type",Object)],iS.prototype,"JSC$14687_ytdDislikeToggleButtonRenderer",void 0);_.U([_.K("data","likeStatusEntity.likeStatus"),_.W("design:type",Object),_.W("design:paramtypes",[])],iS.prototype,"likeButton",null);
_.U([_.K("data","likeStatusEntity.likeStatus"),_.W("design:type",Object),_.W("design:paramtypes",[])],iS.prototype,"dislikeButton",null);_.U([_.O({computed:"computelikeStatusEntityKey(data)"}),_.W("design:type",String)],iS.prototype,"likeStatusEntityKey",void 0);_.U([_.O({selectorArgs:["likeStatusEntityKey"],selector:ds}),_.W("design:type",Object)],iS.prototype,"likeStatusEntity",void 0);
_.U([_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Ot]),_.W("design:returntype")],iS.prototype,"onYtServiceRequestSent",null);iS=_.U([_.Q({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],iS);
var Xdc=_.$r()(iS,"ytd-like-button-renderer",function(){if(Wdc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-like-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-toggle-button-renderer id="like-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[likeButton]]" is-shorts="" overrides="[[overrides]]" vertically-aligned$="[[computeShouldButtonBeVertical(vertical, underIconLabel)]]" class="style-scope ytd-like-button-renderer">\n</ytd-toggle-button-renderer>\n<ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[dislikeButton]]" is-shorts="" overrides="[[overrides]]" vertically-aligned$="[[computeShouldButtonBeVertical(vertical, underIconLabel)]]" class="style-scope ytd-like-button-renderer">\n</ytd-toggle-button-renderer>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);Wdc=a}a=Wdc;return a},{mode:1});_.Ydc={};
_.Ydc.YtConditionalRendererBehavior=[_.Z.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(a,b){var c=this,d,e;return _.l(function(g){switch(g.nextAddress){case 1:if(!b)return c.hidden=!0,c.showSpinner=!1,g.return();if((d=a)==null?0:(e=d.visibilityCondition)==null?0:e.mode)switch(a.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return g.jumpTo(5);default:return g.jumpTo(6)}c.showSpinner=
!1;c.hidden=!0;return _.p(g,c.shouldShow_(a),4);case 4:c.hidden=!g.yieldResult;g.jumpTo(0);break;case 5:return _.p(g,c.shouldShow_(a),8);case 8:c.showSpinner=g.yieldResult;c.hidden=!1;g.jumpTo(0);break;case 6:return c.showSpinner=!1,_.p(g,c.shouldShow_(a),9);case 9:c.hidden=!g.yieldResult,_.se(g)}})},
shouldShow_:function(a){return a&&a.supportedDatas&&a.supportedDatas.rendererVisibilityConditionData&&a.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(a.supportedDatas.rendererVisibilityConditionData.showIf):a&&a.visibilityCondition&&a.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(a.visibilityCondition.showIf):a&&a.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(a.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(a){switch(a){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(a){switch(a){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var a=_.ho(this.hostElement,"yt-get-mdx-status");return a.length==1&&a[0].connected},
isLocationPermissionGranted_:function(){var a;return _.l(function(b){return b.nextAddress==1?navigator.permissions?_.p(b,navigator.permissions.query({name:"geolocation"}),3):b.jumpTo(2):b.nextAddress!=2?(a=b.yieldResult,b.return(Promise.resolve(a.state==="granted"))):b.return(Promise.resolve(!1))})}}];var Zdc=function(a,b){b=b===void 0?{}:b;return function(c){var d=document.createElement(a),e;var g=(e=d.polymerController)!=null?e:d;xOa(d,g,c,b);return d}}("yt-icon");var $dc=function(a){var b=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];usa();_.Rj("ytglobal.ytUtilActivityCallback_",function(){_.ko(a,"yt-user-activity")});
new Wk(function(){return b.JSC$14699_onMouseMove});
document.addEventListener("scroll",function(){return b.onScroll});
window.addEventListener("resize",function(){return b.onResize})},aec=function(a,b,c){b in a.eventJobIds||(c=_.Lw().addLowPriorityJob(function(){_.Zk();
delete a.eventJobIds[b]},c),a.eventJobIds[b]=c)};
$dc.prototype.onScroll=function(a){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):a.target===document&&aec(this,"scroll",200)};
$dc.prototype.onResize=function(){aec(this,"resize",200)};
$dc.prototype.JSC$14699_onMouseMove=function(){aec(this,"mousemove",100)};
_.QVb=function(a){a.scrollEventsToIgnore+=1;a.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){a.scrollEventsToIgnore--},500))};var bec=function(a){this.element=a;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
bec.prototype.showFeedbackDialog=function(a,b,c,d){var e=cec();if(!e)return!1;var g=p3a();g.productId=e;b&&(g.flow="submit",g.report={description:b});c&&(cec()==="59"?g.callback=_.Ii(function(){_.zl("userFeedbackEvent",{});c()}):g.callback=_.Ii(c));
g.bucket=d||_.Ei("GOOGLE_FEEDBACK_BUCKET","Other");dec(g);a=eec(this,"GFEEDBACK",a);try{_.uyb(g,a)}catch(k){return _.Hi(k),!1}return!0};
bec.prototype.showHelpDialog=function(a,b,c){var d=this,e=cec();if(!e)return!1;var g={helpCenterPath:"/youtube",productData:eec(this,"GUIDED_HELP",c)};dec(g);var k=p3a();k.context=a||g.productData.context||"default";k.defaultHelpArticleId=b;k.enableSendFeedback=!0;(_.Ji("gapi.load")||function(m,n){return n()})("client",function(){try{var m=ihb(e,g);
if(_.x("web_always_load_chat_support")&&!d.chatSupportLoaded)try{m.JSC$7821_loadChatSupport(k),d.chatSupportLoaded=!0}catch(n){}m.startHelp(k)}catch(n){_.Hi(n)}})};
var cec=function(){var a=_.Ei("GOOGLE_FEEDBACK_PRODUCT_ID");a||_.Hi(Error("ai"));return a},dec=function(a){a&&(a.locale=_.x("kevlar_help_use_locale")?_.Ei("INNERTUBE_CONTEXT_HL","en"):_.Ei("HTML_LANG","en"))},eec=function(a,b,c){var d=a.productData;
delete d.origin;d.device=_.ua();var e;a:{if(e=document.createElement("canvas")){var g=e.getContext("experimental-webgl",{stencil:!0});if(g){var k=g.getExtension("WEBGL_debug_renderer_info");if(k){e=g.getParameter(k.UNMASKED_RENDERER_WEBGL);break a}}if(g=e.getContext("webgl")){e=g.getParameter(g.RENDERER);break a}}e=null}d.gpu=e;d.isSDC=!!_.Ei("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(e=_.Ei("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.yf.extend(d,e);_.n3a(b,d);_.o3a(d);(a=_.ko(a.element,"yt-get-autonav-pause-debug-state"))&&
a.length&&(d.autonav_pause_state=a[0]);a=_.pf();d.browser_resolution=a.width+"\u00d7"+a.height+"@"+(window.devicePixelRatio||1)+"x";c&&_.yf.extend(d,c);return d};
bec.prototype.resetProductData=function(){this.productData={}};var fec=function(a){this.feedbackManager=new bec(a)};
fec.prototype.showFeedbackDialog=function(a,b,c,d){return this.feedbackManager.showFeedbackDialog(a,b,c,d)};
fec.prototype.showHelpDialog=function(a,b,c){return this.feedbackManager.showHelpDialog(a,b,c)};var gec=function(){this.baseUrl="";this.aTag=document.createElement("a")},cRb=function(a,b,c){c=c===void 0?{}:c;
c.pbj||(c.pbj=1);c=_.gua(b,c);a.baseUrl&&c&&!_.Ri(c)[1]&&!_.Si(c)&&(b=a.baseUrl,oa(b,"/")&&(b=b.slice(0,-1)),_.na(c,"/")&&(c=c.slice(1)),c=b+"/"+c);Ld(a.aTag,Ed(c||""));return a.aTag.href};
gec.prototype.fetchData=function(a){return _.h3a(a)};
gec.prototype.postData=function(a,b){var c={method:"POST"};if(b){for(var d=_.h(Object.keys(b)),e=d.next();!e.done;e=d.next()){e=e.value;var g=b[e];_.$a(g)&&(b[e]=JSON.stringify(g))}c.postParams=b}return _.h3a(a,c)};
_.dRb=function(a,b,c,d,e){a=cRb(a,b,c);if(!a)throw d=Error("bi"),Object.assign(d,{params:b}),d;return _.h3a(a,e,d)};
gec.prototype.requestDataForServiceEndpoint=function(a,b){if(_.y(a,_.aUa))return this.fetchData("/getAccountSwitcherEndpoint");b=b||{};var c=_.y(a,CEb);c?b.se=c.base64EncodedServiceEndpoint:b.sej=JSON.stringify(a);(c=_.Fn())&&_.x("enable_service_ajax_csn")&&(b.csn=c);b.theme=_.Hq();_.y(a,ZTa)&&_.Ei("DELEGATION_CONTEXT")&&(b.delegation_context=JSON.stringify(_.Ei("DELEGATION_CONTEXT")));c=null;for(var d in a)if(oa(d,"Endpoint")||oa(d,"Command")){c=d;break}if(!c){var e=Error("ci");Object.assign(e,{params:a});
_.dua(e,"WARNING");return new _.kl(function(k,m){m(e)})}d={name:c};
var g;(c=(g=_.y(a,_.ro))==null?void 0:g.signal)&&(d.signal=c);(g=_.Oi(window.location.href))&&g.internalcountrycode&&(d.internalcountrycode=g.internalcountrycode);g="/service_ajax";_.x("debug_forward_web_query_parameters")&&(g=_.roa(g,window.location.search));g=_.Qi(g,d);a.clickTrackingParams&&_.Zn(g,{itct:a.clickTrackingParams});return this.postData(g,b)};_.hec=new _.fB("GFEEDBACK_TOKEN");var iec;var jec;var kec;var lec;var jS=function(){var a=_.P.apply(this,arguments)||this;a.compact=!1;return a};
_.z(jS,_.P);jS.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
jS.prototype.computeHasIcon_=function(a){return!!a};
jS.prototype.isSignInIcon_=function(a){return a=="yt-icons:prompted_sign_in"};
var kS=jS;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],kS.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],kS.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.Ydc.YtConditionalRendererBehavior),_.W("design:type",Object)],kS.prototype,"ytConditionalRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],kS.prototype,"data",void 0);
_.U([_.O({computed:"computeIcon_(data.icon)"}),_.W("design:type",Object)],kS.prototype,"icon_",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.W("design:type",Boolean)],kS.prototype,"hasIcon_",void 0);_.U([_.O({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.W("design:type",Boolean)],kS.prototype,"signInIcon_",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],kS.prototype,"compact",void 0);
kS=_.U([_.ur({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],kS);
_.S(kS,"yt-player-error-message-renderer",function(){if(lec===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_error_message_renderer.yt.player.error.message.renderer.css.js--\x3e<div id="player-error-message-container" hidden="[[showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <yt-icon id="icon" hidden="[[!icon_]]" icon="[[icon_]]" class="style-scope yt-player-error-message-renderer"></yt-icon>\n  <div id="info" class="style-scope yt-player-error-message-renderer">\n    <div id="reason" class="style-scope yt-player-error-message-renderer">[[getSimpleString(data.reason)]]</div>\n    <yt-formatted-string id="subreason" is-overlay="" text="[[data.subreason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="more" is-overlay="" text="[[data.learnMore]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope yt-player-error-message-renderer">\n      <div id="dismiss-button" class="style-scope yt-player-error-message-renderer"></div>\n      <div id="button" class="style-scope yt-player-error-message-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="spinner" hidden="[[!showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <tp-yt-paper-spinner-lite active="" class="style-scope yt-player-error-message-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;kec===void 0&&(kec=document.createElement("template"));var d=kec;c.call(b,d.content.cloneNode(!0),a.content.firstChild);lec=a}a=lec;return a},{mode:2});var mec;var nec;var oec=function(){return _.P.apply(this,arguments)||this};
_.z(oec,_.P);oec.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
oec.prototype.computeIcon_=function(a){return a?"yt-icons:"+a.iconType.toLowerCase():"error_outline"};
var lS=oec;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],lS.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],lS.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],lS.prototype,"data",void 0);_.U([_.O({computed:"computeIcon_(data.icon)"}),_.W("design:type",Object)],lS.prototype,"icon_",void 0);lS=_.U([_.ur({is:"yt-player-kav-renderer",disableElementRegistration:!0})],lS);
_.S(lS,"yt-player-kav-renderer",function(){if(nec===void 0){var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;mec===void 0&&(mec=document.createElement("template"));var d=mec;c.call(b,d.content.cloneNode(!0),a.content.firstChild);nec=a}a=nec;return a},{mode:2});_.Ws(_.Rr(function(a){var b=_.Rl(),c=_.h(_.fh(0,"gCmSbf")),d=c.next().value,e=c.next().value;c=_.h(_.fh(null,"Rj9zMe"));var g=c.next().value,k=c.next().value;_.vi(function(){s3a(b.value,e,k);b.value.scrollIntoView()});
c=t3a.bind(null,a.data,d);Yl("resize",function(){var m=g();if(d()===1&&m!==null){var n;(n=window.grecaptcha)==null||n.reset(m)}});
return _.q("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.q("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.q("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var m,n;return(m=a.data().accessibility)==null?void 0:(n=m.accessibilityData)==null?void 0:n.label}),_.q(_.wt,{text:c,
className:_.jt("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.q("div",{el:b,class:"ytwPlayerCaptchaViewModelGridItem"})))}),"yt-player-captcha-view-model",{props:{data:_.Vs}});var u3a=!1;_.pec=_.Rr(function(a){var b=a.data;return _.q("yt-interstitial-view-model",{class:"interstitial-view-model-wiz"},_.q(_.oi,{cond:function(){return b().icon},
then:function(c){return _.q("div",{class:"interstitial-view-model-wiz__interstitial-icon interstitial-view-model-wiz__flex-item"},_.q(_.Ss,{data:c,alt:"",className:"interstitial-view-model-wiz__icon-image",preserveWidth:!0}))}}),_.q(_.oi,{cond:function(){return b().title},
then:function(c){return _.q("div",{class:"interstitial-view-model-wiz__interstitial-title interstitial-view-model-wiz__flex-item"},_.q(_.wt,{text:c}))}}),_.q(_.oi,{cond:function(){return b().description},
then:function(c){return _.q("div",{class:"interstitial-view-model-wiz__interstitial-description interstitial-view-model-wiz__flex-item"},_.q(_.wt,{text:c}))}}),_.q(_.Eu,{data:function(){return b().primaryButton}},{buttonViewModel:function(c){return _.q(_.Ju,{data:c.data,
className:"interstitial-view-model-wiz__flex-item"})}}),_.q(_.Eu,{data:function(){return b().secondaryButton}},{buttonViewModel:function(c){return _.q(_.Ju,{data:c.data,
className:"interstitial-view-model-wiz__flex-item"})}}))});
_.pec.idomCompat=!0;var qec=_.Rr(function(a){var b=a.data;_.cw();return _.q("yt-player-interstitial-renderer",{class:"player-interstitial-renderer-wiz"},_.q("div",{class:"player-interstitial-renderer-wiz__scrim"},_.q(_.Eu,{data:function(){return b().content}},{interstitialViewModel:_.pec})))});
qec.idomCompat=!0;_.Ws(qec,"yt-player-interstitial-renderer",{props:{data:_.SG}});var rec=function(){var a=_.P.apply(this,arguments)||this;a.noBackground=!1;a.compact=!1;a.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return a};
_.z(rec,_.P);rec.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"}}}};
rec.prototype.onUpdatePlayerErrorMessageCommand_=function(a){if(_.y(a,QDb)){var b;if(a=(b=_.y(a,QDb))==null?void 0:b.newPlayerErrorMessageRenderer)this.data=a}};
var mS=rec;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],mS.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],mS.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],mS.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],mS.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],mS.prototype,"status",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],mS.prototype,"noBackground",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],mS.prototype,"compact",void 0);mS=_.U([_.ur({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],mS);
var sec=_.$r()(mS,"yt-playability-error-supported-renderers",function(){if(jec===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;iec===void 0&&(iec=document.createElement("template"));var d=iec;c.call(b,d.content.cloneNode(!0),a.content.firstChild);jec=a}a=jec;return a},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var v3a=void 0,x3a=void 0;var A3a=new Wgb;var sw=new _.fB("ENTITY_STATE_TOKEN"),nS=new _.fB("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var tec=function(a){this.store=a;this.JSC$14750_enforcementCounter=new _.Xgb},Q7a=function(a,b,c){var d,e;
if(!(e=((d=b.playabilityStatus)==null?void 0:d.status)!=="OK")){a=a.store;var g;e=b.offlineState&&((g=b.videoDetails)==null?0:g.videoId)?_.x("enable_pl_r_c_cd")?zp(a.getState().entities,b.videoDetails.videoId):!!ZEa(a.getState().entities,b.videoDetails.videoId):!1}if(e)return!0;e=F3a(b);if(e===1){if(_.x("ab_v_vid_sig")){var k,m=(k=b.videoDetails)==null?void 0:k.videoId;if(!m||!c||m!==c){var n;b=new _.qj("282054944_vid",{rvid:c,gvid:(n=b.videoDetails)==null?void 0:n.videoId});_.Bl(b)}}return!0}xHa=
0;var r,t;n=(m=b.auxiliaryUi)==null?void 0:(r=m.messageRenderers)==null?void 0:(t=r.bkaEnforcementMessageViewModel)==null?void 0:t.displayType;if(e!==3&&(n==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||n==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;n={reason:_.dp(_.to("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.x("ks_something_wrong_learn_more")?j2a("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.dp(_.to("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:_.dp("282054944")};uec(b,{playerErrorMessageRenderer:n});return!1},R7a=function(a,b){if(OHa(b)){_.kq(1,!0);
var c=(c=OHa(b))&&_.w3a()?c:void 0;c?(uec(b,{enforcementMessageViewModel:c}),a.JSC$14750_enforcementCounter.increment("IN_PLAYER"),_.kq(5)):(a.JSC$14750_enforcementCounter.increment("SKIP_DISPLAY"),_.kq(2))}},uec=function(a,b){a.playabilityStatus=Object.assign({},a.playabilityStatus,{status:"ERROR",
errorScreen:b});a.videoDetails=void 0};
tec.prototype.handleResponse=function(a,b){if(a.playabilityStatus){var c,d,e,g=(b==null?void 0:(c=b.innerTubeRequest)==null?void 0:c.videoId)||(b==null?void 0:(d=b.innerTubeRequest)==null?void 0:(e=d.playerRequest)==null?void 0:e.videoId);Q7a(this,a,g)&&R7a(this,a)}};
tec[eB]=[sw];var O7a=new _.fB("ADBLOCK_DETECTION_SERVICE_TOKEN");var gw=function(a){this.eUa=a};
gw.prototype.bindInnertubeChallengeFetcher=function(a){this.eUa.bicf(a)};
gw.prototype.registerChallengeFetchedCallback=function(a){this.eUa.bcr(a)};
gw.prototype.getLatestChallengeResponse=function(){return this.eUa.blc()};var yec;_.oS=function(a,b,c){var d=this;this.network=a;this.options=b;this.networkStatusManager=c;this.zN=null;if(b.useBotguardEverywhere){var e=new _.gq;this.zN=e.promise;_.ja.ytAtRC&&_.wu(_.zk,function(){var g,k;return _.l(function(m){if(m.nextAddress==1){if(!_.ja.ytAtRC)return m.return();g=vec(null);return _.p(m,d.pV(g),2)}k=m.yieldResult;_.ja.ytAtRC&&_.ja.ytAtRC(JSON.stringify(k));_.se(m)})});
K3a().then(function(g){var k,m,n,r;return _.l(function(t){if(t.nextAddress==1)return g.bindInnertubeChallengeFetcher(function(u){return d.pV(vec(u))}),_.p(t,kia(),2);
k=t.yieldResult;m=g.getLatestChallengeResponse();n=m.challenge;if(!n)throw Error("di");r={challenge:n,cU:fw(n),qc:k,bgChallenge:new dw};e.resolve(r);g.registerChallengeFetchedCallback(function(u){u=u.challenge;if(!u)throw Error("ei");u={challenge:u,cU:fw(u),qc:k,bgChallenge:new dw};d.zN=Promise.resolve(u)});
_.se(t)})})}else b.preload&&wec(this,new Promise(function(g){_.ul(_.zk,function(){g(xec(d))},0)}))};
yec=function(a){var b={preload:!0,useBotguardEverywhere:_.x("attmusi")},c=!1;if(typeof b==="boolean")var d={preload:b};else typeof b==="undefined"?d={preload:!0}:(d=b,c=!!b.yre);b=c?void 0:new _.Lk;_.oS.instance=new _.oS(a,d,b);return _.oS.instance};
_.oS.prototype.bSc=function(){var a=this;return _.l(function(b){return b.nextAddress==1?_.p(b,Promise.race([a.zN,null]),2):b.return(!!b.yieldResult)})};
_.oS.prototype.k1a=function(a,b,c){var d=this,e,g,k;return _.l(function(m){d.zN===null&&wec(d,xec(d));e=!1;g={};k=function(){var n,r,t;return _.l(function(u){switch(u.nextAddress){case 1:return _.p(u,d.zN,2);case 2:n=u.yieldResult;g.challenge=n.challenge;if(!n.qc){"c1a"in n.cU&&(g.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");u.jumpTo(3);break}r=Object.assign({},{c:n.challenge,e:a},b);_.me(u,4);e=!0;if(_.x("attbs")&&!_.x("attmusi")){t=_.Xfb(n.qc,{aw:r});u.jumpTo(6);break}return _.p(u,n.qc.snapshot({aw:r}),
7);case 7:t=u.yieldResult;case 6:t?g.webResponse=t:g.error="ATTESTATION_ERROR_VM_NO_RESPONSE";_.Jj(u,3);break;case 4:_.re(u),g.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(a==="ENGAGEMENT_TYPE_PLAYBACK"){var w=n.cU,A={};if(w.c6a){var C=Number(_.Ei("DCLKSTAT",0));A.reportingStatus=String(Number(w.c)^(isNaN(C)?0:C))}w.c6b&&(A.broadSpectrumDetectionResult=String(Number(w.c)^Number(_.Ei("CATSTAT",0))));g.adblockReporting=A}return u.return(g)}})};
return m.return(Promise.race([k(),zec(c,function(){var n=Object.assign({},g);e&&(n.error="ATTESTATION_ERROR_VM_TIMEOUT");return n})]))})};
var vec=function(a){var b={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};a&&(b.interpreterHash=a);return b},xec=function(a,b){b=b===void 0?0:b;
var c,d,e,g,k,m,n,r,t,u,w,A;return _.l(function(C){switch(C.nextAddress){case 1:c=vec(Zfb().ddb);if(_.x("att_fet_ks"))return _.me(C,7),_.p(C,a.pV(c),9);_.me(C,4);return _.p(C,Aec(a,c),6);case 6:k=C.yieldResult;e=k.e5c;g=k.f5c;d=k;_.Jj(C,3);break;case 4:return _.re(C),_.Dl(Error("fi`"+b)),Bec(a,864E5),C.return({challenge:"",cU:{},qc:void 0,bgChallenge:void 0});case 9:d=C.yieldResult;if(!d)throw Error("gi");if(!d.challenge)throw Error("hi");e=d.challenge;g=fw(e);if("c1a"in g&&(!d.bgChallenge||!d.bgChallenge.program))throw Error("ii");
_.Jj(C,3);break;case 7:m=_.re(C);_.Dl(m);b++;if(b>=5)return _.Dl(Error("fi`"+b)),Bec(a,864E5),C.return({challenge:"",cU:{},qc:void 0,bgChallenge:void 0});n=1E3*Math.pow(2,b-1)+Math.random()*1E3;return C.return(new Promise(function(G){_.ul(_.zk,function(){G(xec(a,b))},n)}));
case 3:r=J3a(g);Bec(a,r*1E3);t=void 0;if(!("c1a"in g&&d.bgChallenge)){C.jumpTo(10);break}u=I3a(d.bgChallenge);_.me(C,11);return _.p(C,agb(Zfb(),u),13);case 13:_.Jj(C,12);break;case 11:return w=_.re(C),_.Dl(w),C.return({challenge:e,cU:g,qc:t,bgChallenge:u});case 12:return _.me(C,14),t=new _.Pz({challenge:u,u8:{ou:"aGIf"}}),_.p(C,t.gba,16);case 16:_.Jj(C,10);break;case 14:A=_.re(C),_.Dl(A),t=void 0;case 10:return C.return({challenge:e,cU:g,qc:t,bgChallenge:u})}})};
_.oS.prototype.pV=function(a){var b=this,c;return _.l(function(d){c=b.networkStatusManager;if(!c||c.isNetworkAvailable())return d.return(b.network.pV(a));_.Lo("att_pna",void 0,"attestation_challenge_fetch");return d.return(new Promise(function(e){c.listenOnce("publicytnetworkstatus-online",function(){b.network.pV(a).then(e)})}))})};
var Cec=function(a){if(!a)throw Error("gi");if(!a.challenge)throw Error("hi");var b=a.challenge,c=fw(b);if("c1a"in c&&(!a.bgChallenge||!a.bgChallenge.program))throw Error("ii");return Object.assign({},a,{e5c:b,f5c:c})},Aec=function(a,b){var c,d,e,g,k;
return _.l(function(m){switch(m.nextAddress){case 1:c=void 0,d=0,e={};case 2:if(!(d<5)){m.jumpTo(4);break}if(!(d>0)){m.jumpTo(5);break}e.hJb=1E3*Math.pow(2,d-1)+Math.random()*1E3;return _.p(m,new Promise(function(n){return function(r){_.ul(_.zk,function(){r(void 0)},n.hJb)}}(e)),5);
case 5:return _.me(m,7),_.p(m,a.pV(b),9);case 9:return g=m.yieldResult,m.return(Cec(g));case 7:c=k=_.re(m),k instanceof Error&&_.Dl(k);case 8:d++;e={hJb:void 0};m.jumpTo(2);break;case 4:throw c;}})},wec=function(a,b){a.zN=b},Dec=function(a){var b,c,d;
return _.l(function(e){if(e.nextAddress==1)return _.p(e,Promise.race([a.zN,null]),2);b=e.yieldResult;var g=xec(a);a.zN=g;(c=b)==null||(d=c.qc)==null||d.dispose();_.se(e)})},Bec=function(a,b){var c=Date.now()+b,d=function(){var e;
return _.l(function(g){e=c-Date.now();return e<1E3?_.p(g,Dec(a),0):(_.ul(_.zk,d,Math.min(e,6E4)),g.jumpTo(0))})};
d()},zec=function(a,b){return new Promise(function(c){_.ul(_.zk,function(){c(b())},a)})};var Eec=function(){};
Eec.prototype.processContext=function(a){var b=_.oS.instance;if(!b)return _.XE();var c=P3a(a);return c?new WE(b.k1a(c,N3a(a),500).then(function(d){var e;(a==null?0:(e=a.innerTubeRequest)==null?0:e.context)||(a.innerTubeRequest.context={});e=a.innerTubeRequest.context;e.request||(e.request={});e.request.attestationResponseData=d})):_.XE()};var Fec=function(a){this.innertubeTransportService=a};
Fec.prototype.pV=function(a){_.Lo("att_fsr",void 0,"attestation_challenge_fetch");return _.OF(this.innertubeTransportService,a,_.Zp(_.zGb)).then(function(b){_.Lo("att_frr",void 0,"attestation_challenge_fetch");return b})};_.Gec=function(a){this.innertubeTransportService=a};var Hec=new _.fB("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var Iec=function(){},Kec=function(a,b,c,d,e){var g=_.Ei("YPC_MB_URL");
_.v4a(g).then(function(){Jec(g,a,b,c,d,e)})},Jec=function(a,b,c,d,e,g){try{var k=payments.business.integration,m=payments.business.integration.Style.create().withMaterialDesignStyle(),n=k.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.x("enable_window_constrained_buy_flow_dialog")&&(n=n.usingPopupStyle("windowConstrained"));g&&(n=n.usingCloseCallback(g));var r=c?c:_.Ei("YPC_GB_LANGUAGE"),t=_.Ei("SESSION_INDEX");k.bootstrap.fromPaymentsUrl(a);k.bootstrap.asMashupMode(n).usingGaiaIndex(t).usingLocale(r).usingStyle(m).usingDefaultActivityStatusChangeHandler().inStandaloneContext(k.standaloneContextAuthId.forGaia()).purchaseManager(b,function(u){d&&d(u)}).load(void 0,e)}catch(u){throw e&&e(u),_.Bl(u),u;
}};var Lec=new _.fB("PURCHASE_MANAGER_TOKEN");var Mec=function(){var a=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return a.videos},
getContinuationsPresent:function(){return a.continuationsPresent},
setVideos:function(b){a.videos=b},
getRecommendedVideos:function(){return a.recommendedVideos},
setRecommendedVideos:function(b){a.recommendedVideos=b}}};
Mec.prototype.addVideos=function(a){a&&(this.videos=a.filter(function(b){return!!_.R3a(b)}).map(function(b){var c=_.R3a(b);
a:{var d;if(b.playlistVideoRenderer&&((d=b.playlistVideoRenderer)==null?0:d.voteSortTiebreaker))var e=b.playlistVideoRenderer.voteSortTiebreaker;else{if(_.y(b,iw)){var g;if(d=(e=_.y(b,iw))==null?void 0:(g=e.playlistItemData)==null?void 0:g.voteSortTiebreaker){e=d;break a}}e=""}}return{itemId:c,videoId:_.U3a(b),voteCount:_.V3a(b),voteSortTiebreaker:e}}),this.continuationsPresent=!!_.y(a[a.length-1],_.lw))};
var Nec=function(a,b){return a.videos.findIndex(function(c){return c.itemId===b})},Oec=function(a,b){return a.recommendedVideos.findIndex(function(c){return c.itemId===b})},Pec=function(a){a={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:a}}}}};_.v().resolve(_.Xi).resolveCommand(a)};var Qec=function(){Mec.apply(this,arguments)};
_.z(Qec,Mec);
var F8b=function(a,b,c,d){if(!a.parentElem)throw Error("ni");var e=Nec(a,b);e===-1&&(e=Oec(a,b),e=e!==-1?e+a.videos.length:-1);if(e===-1)throw Error("oi");var g=e>=a.videos.length?a.recommendedVideos[e-a.videos.length]:a.videos[e];g.voteCount=c;g.voteSortTiebreaker=Date.now().toString();e>=a.videos.length?a.recommendedVideos.splice(e-a.videos.length,1):a.videos.splice(e,1);var k=a.videos;for(var m=0,n=k.length-1;m<=n;){var r=Math.floor((m+n)/2);if(k[r].voteCount<g.voteCount)n=r-1;else if(k[r].voteCount>g.voteCount)m=
r+1;else{a:{var t=g.voteSortTiebreaker;var u=k[r].voteSortTiebreaker;if(t.length!==u.length)t=t.length>u.length;else{for(var w=0;w<t.length;w++){var A=t.charCodeAt(w),C=u.charCodeAt(w);if(A>C){t=!0;break a}if(A<C)break}t=!1}}t?n=r-1:m=r+1}}k=m;if(k===-1)throw Error("pi");a.videos.splice(k,0,g);e!==k&&Rec(a,e,k,b,c,d)},Rec=function(a,b,c,d,e,g){var k,m=(k=a.parentElem)==null?void 0:k.children,n=Math.min(b,c),r=Math.max(b,c);
if(m)for(k=n;k<=r;k++)m[k].style.viewTransitionName="item-"+String(k);document.startViewTransition(function(){if(a.parentElem){var t=a.parentElem.children;if(!(!t||b<0||b>=t.length||c<0||c>=t.length)){var u=t[b];if(u){u.remove();a.showRefreshPill=c>=a.videos.length-1&&a.continuationsPresent;if(!a.showRefreshPill){t=t[c]||null;var w;(w=a.parentElem)==null||w.insertBefore(u,t)}_.go(a.parentElem,"yt-update-video-data-voting-animation",{toIdx:c,itemId:d,newVoteCount:e,voteStatus:g,hideItem:a.showRefreshPill})}}}}).finished.then(function(){if(m)for(var t=
n;t<=r;t++)m[t].style.viewTransitionName="";
if(a.showRefreshPill)Pec(_.to("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var u;if(u=t=(u=a.parentElem)==null?void 0:u.children[c])u=t.getBoundingClientRect(),t=u.bottom,u=!(u.top>=0&&t<=a.clientHeight);u&&(u=_.uo(b>c?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(b-c)),Pec(u))}})};var Sec=_.$i("innertube_request_limit_ms",3E3),Vec=function(a,b){var c=this;a?this.innertubeTransportServicePromise=Promise.resolve(a):b&&(this.innertubeTransportServicePromise=b(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new WR(Sec,function(d){return Tec(c,d)},0);
this.validateMiniAppVideoIdRateLimiter=new WR(Sec,function(d){return Uec(c,d)},1)},zdc=function(a,b){a.JSC$14813_miniAppId=b;
a.reportMiniAppValueRateLimiter=new WR(Sec,function(c){return Tec(a,c)},0);
a.validateMiniAppVideoIdRateLimiter=new WR(Sec,function(c){return Uec(a,c)},1)},Bdc=function(a,b){var c;
return _.l(function(d){if(d.nextAddress==1)return _.p(d,a.reportMiniAppValueRateLimiter.call(b),2);c=d.yieldResult;return d.return([c,b])})},Tec=function(a,b){var c,d,e,g,k,m,n;
return _.l(function(r){switch(r.nextAddress){case 1:return _.p(r,a.innertubeTransportServicePromise,2);case 2:return c=r.yieldResult,d=_.Zp(GHb),e=Date.now(),g={externalPostId:a.JSC$14813_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(e/1E3),nanos:Math.round(e%1E3*1E6)},intValue:""+b}},_.me(r,3),_.p(r,_.OF(c,g,d),5);case 5:k=r.yieldResult;_.Jj(r,4);break;case 3:throw m=_.re(r),m;case 4:if(k){if("error"in k&&k.error)throw k.error;if(k.errorMetadata)throw Error("qi`"+
k.errorMetadata.status);if(n=k.userStatResult)return r.return(n);throw Error("ri");}throw Error("si");}})},Ddc=function(a){var b,c,d,e,g;
_.l(function(k){switch(k.nextAddress){case 1:return _.p(k,a.innertubeTransportServicePromise,2);case 2:return b=k.yieldResult,c=_.Zp(GHb),d={externalPostId:a.JSC$14813_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.me(k,3),_.p(k,_.OF(b,d,c),5);case 5:e=k.yieldResult;_.Jj(k,4);break;case 3:throw g=_.re(k),g;case 4:if(e==null)throw Error("si");if("error"in e&&e.error)throw e.error;if(e.errorMetadata)throw Error("qi`"+e.errorMetadata.status);_.se(k)}})};
Vec.prototype.flush=function(){var a=this;return _.l(function(b){return b.nextAddress==1?_.p(b,a.reportMiniAppValueRateLimiter.flush(),2):_.p(b,a.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var Cdc=function(a,b){return _.l(function(c){return c.nextAddress==1?_.p(c,a.validateMiniAppVideoIdRateLimiter.call(b),2):c.return(c.yieldResult)})},Uec=function(a,b){var c,d,e,g,k,m;
return _.l(function(n){switch(n.nextAddress){case 1:return _.p(n,a.innertubeTransportServicePromise,2);case 2:return c=n.yieldResult,d=_.Zp(yHb),e={videoId:b},_.me(n,3),_.p(n,_.OF(c,e,d),5);case 5:g=n.yieldResult;_.Jj(n,4);break;case 3:throw k=_.re(n),k;case 4:if(g){if("error"in g&&g.error)throw g.error;if(g.errorMetadata)throw Error("qi`"+g.errorMetadata.status);if(m=g.playabilityStatus)return n.return(m.status);throw Error("ti");}throw Error("si");}})};
Vec[eB]=[_.Wi(_.xq),_.Wi(aKb)];var Wec=function(){this.clientData=new Map};
Wec.prototype.getData=function(a){return this.clientData.get(a)};var Xec=function(a){this.store=a};
Xec.prototype.handleResponse=function(a){(a=_.y(a.frameworkUpdates,Vt))&&_.sp(a,this.store)};
Xec[eB]=[_.IG];var Yec=new _.fB("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var Zec={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]],dollarsign_color:[[1,2,24]],email:[[0,1,60]],embed:[[0,1,60]],emoji_activities:[[0,1,24]],emoji_food:[[0,1,24]],emoji_nature:[[0,1,24]],emoji_symbols:[[0,1,24]],emoji_travel:[[0,1,24]],empty_search:[[0,1,230]],equalizer:[[0,1,24]],face_filled_happy:[[0,1,36]],face_filled_meh:[[0,1,36]],face_filled_sad:[[0,1,36]],face_filled_unhappy:[[0,
1,36]],face_filled_very_happy:[[0,1,36]],face_outlined_happy:[[1,1,36]],face_outlined_meh:[[1,1,36]],face_outlined_sad:[[1,1,36]],face_outlined_unhappy:[[1,1,36]],face_outlined_very_happy:[[1,1,36]],facebook:[[0,1,60]],fotka:[[0,1,60]],g_translate:[[1,1,24]],game_console_dpad:[[0,1,24]],game_console_face_buttons:[[0,1,24]],goo:[[0,1,60]],google:[[0,1,24]],hashtag_landing_page_empty:[[0,1,200]],hashtag_landing_page_empty_dark_mode:[[0,1,200]],hashtag_landing_page_error:[[0,1,300]],hashtag_landing_page_error_dark_mode:[[0,
1,300]],hi5:[[0,1,60]],kakao:[[0,1,60]],"keyboard-arrow-down":[[1,1,24]],"keyboard-arrow-up":[[1,1,24]],language:[[0,1,24],[1,1,24]],library_remove:[[1,1,24]],linkedin:[[0,1,60]],livejournal:[[0,1,60]],member:[[1,2,16]],meneame:[[0,1,60]],mixi:[[0,1,60]],moderator:[[1,1,16]],money_fill:[[0,3,24]],music:[[1,1,24]],myspace:[[0,1,60]],naver:[[0,1,60]],odnoklassniki:[[0,1,60]],offline_download:[[0,1,24]],offline_downloading_eighty:[[0,1,24]],offline_downloading_forty:[[0,1,24]],offline_downloading_sixty:[[0,
1,24]],offline_downloading_spinner:[[0,1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_zero:[[0,1,24]],offline_no_content:[[0,1,192]],offline_pause:[[1,1,24]],offline_pin:[[0,1,24]],open_in_panel:[[0,1,24]],owner:[[1,1,16]],pinterest:[[0,1,60]],"play-arrow":[[0,1,24]],play_disabled:[[0,1,24]],premium:[[0,1,14]],premium_standalone:[[0,1,24]],premium_standalone_cairo:[[0,1,24]],"radio-button-unchecked":[[1,1,24]],rakuten:[[0,1,60]],reddit:[[0,2,192]],refresh:[[1,1,24]],schedule_fanzone:[[0,
1,100]],screen_light:[[1,1,24]],search_prominent:[[1,1,24]],"shorts-comment":[[0,2,32]],"shorts-dislike":[[0,2,32]],"shorts-like":[[0,2,32]],"shorts-pause":[[0,1,24]],"shorts-share":[[0,2,32]],skyblog:[[0,1,60]],skype:[[0,1,60]],sms:[[0,1,24]],sort:[[0,1,24]],spark:[[0,1,24],[1,1,24]],spark_search:[[0,1,24]],stumbleupon:[[0,1,60]],subdirectory_arrow_right:[[1,1,24]],tuenti:[[0,1,60]],tumblr:[[0,1,60]],twitter:[[0,3,192]],unplugged_logo:[[0,2,24]],verified:[[1,2,16]],vertical_align_top:[[1,1,24]],
video_call:[[0,1,24]],view_list:[[0,1,24]],view_module:[[0,1,24],[1,1,24]],vkontakte:[[0,1,60]],"volume-off":[[0,1,24]],"volume-up":[[0,1,24]],watermark:[[0,1,110]],waveform:[[1,1,24]],web_system_activity_dialog:[[0,1,60]],weibo:[[0,1,60]],whatsapp:[[0,1,60]],wykop:[[0,1,60]],yahoo:[[0,1,60]],yahoo_japan:[[0,1,192]],yensign_color:[[1,1,24]],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 $ec=new _.fB("ICON_SET_TOKEN"),afc=new _.fB("ICON_URL_PROVIDER_TOKEN"),bfc=new _.fB("PREFETCH_ICONS_TOKEN"),cfc=new _.fB("ICON_MAP_FN_TOKEN");var pS={},dfc=(pS.ACCESS_TIME="clock",pS.ACCOUNT_BOX="person_account",pS.ACCOUNT_BOX_CAIRO="person_account_cairo",pS.ACCOUNT_CIRCLE="person_circle",pS.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",pS.ACCOUNT_LINKED="account_link_success",pS.ACCOUNT_UNLINKED="account_link",pS.ADD_FRIEND="people",pS.ADD_TO_LIBRARY=kw("add"),pS.ADD_TO_PLAYLIST="add",pS.ADD_TO_QUEUE_TAIL="list_queue",pS.ADD_TO_REMOTE_QUEUE="list_music",pS.ADD_TO_WATCH_LATER="clock",pS.ADD_VIDEO_LINK="film_strip_add",pS.ALERT_WARN_RED="alert_triangle",
pS.ARROW_BACK="arrow_left",pS.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",pS.ARROW_DROP_DOWN="chevron_down",pS.ARROW_DROP_UP="chevron_up",pS.ARROW_FORWARD="arrow_right",pS.AUDIOTRACK="audio",pS.AUTO_AWESOME="sparkle",pS.AVATAR_ANONYMOUS="person_circle",pS.AVATAR_LOGGED_OUT="person_circle",pS.BACK="arrow_left",pS.BAR_CHART="bar_graph",pS.BLOCK="slash_circle_left",pS.BLOCK_USER="slash_circle_left",pS.BOOKMARK_BORDER="bookmark",pS.BREAKING_NEWS_ALT_1="article_alert",pS.BROADCAST_CAIRO="podcast_cairo",
pS.BUG_REPORT="bug",pS.CAMERA_ALT="camera",pS.CAMPAIGN="megaphone",pS.CANCEL="x_circle",pS.CAPTIONS="closed_caption",pS.CAST_OUTLINE="chromecast",pS.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",pS.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",pS.CHAT="message_bubble_left",pS.CHAT_BUBBLE="message_bubble_empty",pS.CHECK_BOX_OUTLINE_BLANK="box_empty",pS.CHECK_CIRCLE_OUTLINE="check_circle",pS.CHECK_CIRCLE_THICK="check_circle",pS.CLARIFY="article_clarify",pS.CLOSED_CAPTION_SELECTED="closed_caption",pS.CLOSE=
"x_mark",pS.CLOUD_UPLOAD="cloud_arrow_up",pS.COLLAPSE="chevron_up",pS.COLLAPSE_CAIRO="chevron_up_cairo",pS.COLLECTION="layers",pS.COLOR_LENS="palette",pS.COMMENT="message_bubble_right",pS.CONSENT_SHIELD="person_shield",pS.CONTENT_CUT="scissors",pS.CONTENT_CUT_CAIRO="scissors_cairo",pS.COURSE=_.x("web_enable_course_icon_update")?"creator_academy":"lightbulb",pS.COURSE_CAIRO=_.x("web_enable_course_icon_update")?"creator_academy_cairo":"lightbulb_cairo",pS.CREATION_LIVE="radar_live",pS.CREATION_UPLOAD=
"my_videos",pS.CREATION_UPLOAD_RED="upload",pS.CREATOR_STUDIO="youtube_studio",pS.DELETE="trash_can",pS.DELETE_SWEEP="trash_can",pS.DESKTOP="laptop",pS.DISLIKE="thumb_down",pS.DISLIKE_SELECTED="thumb_down",pS.DISMISSAL="x_mark",pS.DISMISS_QUEUE="list_remove",pS.DOWN_ARROW="arrow_down",pS.DO_NOT_DISTURB="slash_circle_left",pS.DRAFT="paper_corner_folded",pS.DRAG_HANDLE="bars_2",pS.EDIT="pencil",pS.EMOJI="face_very_happy",pS.EMOJI_FLAGS="flag",pS.EMOJI_OBJECTS="lightbulb",pS.EMOJI_PEOPLE="face_very_happy",
pS.EMOJI_RECENT="clock",pS.EMPTY_HEART="heart",pS.EMPTY_LIKE="thumb_up",pS.ERROR_BLACK="alert_circle",pS.ERROR_OUTLINE="alert_circle",pS.EXIT_APP="arrow_in",pS.EXIT_TO_APP="arrow_in",pS.EXPAND="chevron_down",pS.EXPAND_ALL="chevron_expand",pS.EXPAND_CAIRO="chevron_down_cairo",pS.EXPAND_LESS="chevron_up",pS.EXPAND_MORE="chevron_down",pS.EXPLORE="compass",pS.EXPLORE_DESTINATION="compass",pS.EXTERNAL_LINK="open_new",pS.FAB_UPLOAD="upload",pS.FACE_HAPPY_OUTLINE="face_happy",pS.FACT_CHECK="article_check",
pS.FASHION_LOGO="fashion",pS.FASHION_LOGO_CAIRO="fashion_cairo",pS.FAVORITE="heart",pS.FEEDBACK="message_bubble_alert",pS.FEEDBACK_CAIRO="message_bubble_alert_cairo",pS.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",pS.FILL_ARROW_SOLID_UP_16="arrow_solid_up",pS.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",pS.FLAG="flag",pS.FULL_HEART="heart",pS.GAME_CONSOLE_DPAD="game_console_dpad",pS.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",pS.GAMING_LOGO="gaming",pS.GAMING_LOGO_CAIRO="gaming_cairo",pS.GO_TO_PAGE=
"arrow_right",pS.GROUPS="people_group",pS.HAPPY="face_happy",pS.HEALTH_AND_SAFETY="shield_plus",pS.HELP="question_circle",pS.HELP_CAIRO="question_circle_cairo",pS.HELP_OUTLINE="question_circle",pS.HIDE="slash_circle_left",pS.IMAGE="image",pS.INFINITY_ICON="infinity",pS.INFO="info_circle",pS.INFO_OUTLINE="info_circle",pS.INSERT_CHART_OUTLINED="bar_graph_box_vertical",pS.INSERT_PHOTO="image",pS.KEEP="pin",pS.KEEP_OFF="pin_off",pS.KEYBOARD="keyboard",pS.KEYBOARD_ARROW_DOWN="chevron_down",pS.KEYBOARD_ARROW_UP=
"chevron_up",pS.KIDS_BLOCK="slash_circle_left",pS.LANGUAGE="globe",pS.LAUNCH="open_new",pS.LEARNING="lightbulb",pS.LEARNING_CAIRO="lightbulb_cairo",pS.LIBRARY_ADD=kw("library_add"),pS.LIBRARY_OUTLINE="library",pS.LIBRARY_REMOVE=kw(),pS.LIKES_PLAYLIST="thumb_up",pS.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",pS.LIKE="thumb_up",pS.LIKE_SELECTED="thumb_up",pS.LIVE="radar_live",pS.LIVE_CAIRO="radar_live_cairo",pS.LIVE_UNLISTED="link",pS.LOCATION_ON="location_point",pS.LOCATION_PIN="location_point",pS.LOOP=
"arrow_repeat",pS.LOOP_ACTIVE="arrow_repeat",pS.LOOP_ONE="arrow_repeat_1",pS.LOOP_ONE_ACTIVE="arrow_repeat_1",pS.MEH="face_meh",pS.MEMBERS_ONLY_MODE_OFF="message_bubble_left",pS.MESSAGE="message_bubble_left",pS.MICROPHONE_ON="mic",pS.MIX="youtube_mix",pS.MONETIZATION_ON="dollar_sign_circle",pS.MONEY_FILL="dollar_sign_container",pS.MONEY_FILL_JPY="yen_sign_container",pS.MONEY_HEART="dollar_sign_heart",pS.MORE_HORIZ="overflow_horizontal",pS.MORE_VERT="overflow_vertical",pS.MUSIC="audio",pS.MUSIC_CAIRO=
"audio_cairo",pS.MUSIC_NOTE_SYMBOL="music",pS.MUSIC_SHUFFLE="arrow_shuffle",pS.MY_CHANNEL="person_circle",pS.MY_LOCATION="location_point",pS.NEWS_STORY="news",pS.NEXT="chevron_right",pS.NOTIFICATIONS="bell",pS.NOTIFICATIONS_ACTIVE="bell_on",pS.NOTIFICATIONS_CAIRO="bell_cairo",pS.NOTIFICATIONS_DONE_CHECKMARK="check",pS.NOTIFICATIONS_INBOX="bell",pS.NOTIFICATIONS_NONE="bell",pS.NOTIFICATIONS_OFF="bell_off",pS.NOT_INTERESTED="slash_circle_left",pS.OFFICIAL_ARTIST_BADGE="audio",pS.OFFLINE_CLOUD="cloud_off",
pS.OFFLINE_DOWNLOAD="download",pS.OFFLINE_DOWNLOAD_CAIRO="download_cairo",pS.OFFLINE_PAUSE="pause",pS.OPEN_IN_NEW="open_new",pS.OUTLINE_ADJUST="adjust",pS.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",pS.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",pS.OUTLINE_BAG="bag",pS.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",pS.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",pS.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",pS.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",pS.PAID="dollar_sign",pS.PAUSE_OUTLINED=
"pause",pS.PAYMENT="credit_card",pS.PERSON_RADAR_FILLED="person_radar",pS.PHONE_DOWNLOAD="mobile_download",pS.PLAYABLES_LOGO="tic_tac_toe",pS.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",pS.PLAYLISTS="list_play_arrow",pS.PLAYLISTS_CAIRO="list_play_arrow_cairo",pS.PLAYLIST_ADD=kw("list_add"),pS.PLAYLIST_ADD_CHECK=kw("list_check"),pS.PLAY_ALL="play_arrow",pS.PLAY_CIRCLE="play_arrow_circle",pS.PLAY_OUTLINED="play_arrow_circle",pS.PRIVACY_INFO="shield",pS.PRIVACY_PRIVATE="lock",pS.PRIVACY_PUBLIC="earth",
pS.PRIVACY_UNLISTED="link",pS.PROMOTE="megaphone",pS.PURCHASES="price_tag",pS.PURCHASE_SUPER_CHAT="super_chat",pS.PURCHASE_SUPER_STICKER="super_sticker",pS.QUESTION_ANSWER="message_bubble_question",pS.QUEUE_PLAY_LAST="list_queue_last",pS.QUEUE_PLAY_NEXT="list_play_arrow",pS.REMIX_FILLED="youtube_shorts_remix",pS.REMOVE="bar_circle",pS.REMOVE_CIRCLE="bar_circle",pS.REMOVE_CIRCLE_OUTLINE="bar_circle",pS.REMOVE_FROM_HISTORY="bar_circle",pS.REMOVE_FROM_PLAYLIST="bar_circle",pS.REPLAY="arrow_circle",pS.REPORT_PROBLEM=
"alert_triangle",pS.SAD="face_sad",pS.SAVE_PLAYLIST=kw("library_add"),pS.SCHEDULE="clock",pS.SCHOOL="creator_academy",pS.SCREEN_FULLSCREEN="screen_full",pS.SEARCH_HISTORY="arrow_time",pS.SELL="price_tag",pS.SETTINGS="gear",pS.SETTINGS_CAIRO="gear_cairo",pS.SETTINGS_LIGHT="gear",pS.SETTINGS_MATERIAL="gear",pS.SHARE_ARROW="share",pS.SHIELD_WITH_AVATAR="person_shield",pS.SHOPPING_BAG="bag",pS.SHOPPING_BAG_CAIRO="bag_cairo",pS.SHOPPING_CART="cart",pS.SHORTS_COMMENT="youtube_shorts_message_bubble_right",
pS.SHORTS_DISLIKE="youtube_shorts_thumb_down",pS.SHORTS_LIKE="youtube_shorts_thumb_up",pS.SHORTS_SHARE="youtube_shorts_share",pS.SHUFFLE="arrow_shuffle",pS.SLOW_MODE_OFF="message_bubble_left",pS.SOCIAL="people",pS.SORT="menu_sort",pS.SPEED_1X="1x",pS.SPEED_1_POINT_2X="1_point_2x",pS.SPEED_1_POINT_5X="1_point_5x",pS.SPEED_1_POINT_8X="1_point_8x",pS.SPEED_2X="2x",pS.SPEED_POINT_2X="point_2x",pS.SPEED_POINT_8X="point_8x",pS.SPONSORSHIP_STAR=_.x("web_sponsorship_star_icon_killswitch")?"memberships":"star_circle",
pS.STAFF_PICK="spotlight",pS.START_DVR="add",pS.STAR_BORDER="star",pS.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",pS.STICKER_EMOTICON="face_happy",pS.STOP_DVR="stop",pS.SUBSCRIBE="youtube_logo_icon",pS.SUBSCRIBE_PLUS="add_cairo",pS.SUBSCRIPTION_MANAGER="gear",pS.SUPERVISOR_ACCOUNT="people",pS.SWAP_HORIZ="arrow_swap_horizontal",pS.SWITCH_ACCOUNTS="person_account",pS.TAB_ACCOUNT="person",pS.TAB_ACTIVITY="bell",pS.TAB_EXPLORE="compass",pS.TAB_HOME="home",pS.TAB_HOME_CAIRO="home_cairo",pS.TAB_INBOX=
"mail",pS.TAB_LIKED="thumb_up",pS.TAB_MUSIC_PREMIUM="youtube_music",pS.TAB_SHORTS="youtube_shorts",pS.TAB_SHORTS_CAIRO="youtube_shorts_cairo",pS.TAB_SUBSCRIPTIONS="subscriptions",pS.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",pS.TAB_TRENDING="fire",pS.TIMER="stopwatch",pS.TRENDING="fire",pS.TRENDING_CAIRO="fire_cairo",pS.TRENDING_UP="rating_up",pS.TROPHY="trophy",pS.TROPHY_CELEBRATIONS="fireworks",pS.TUNE="adjust",pS.UNBLOCK_USER="bar_circle",pS.UNLIMITED="youtube_logo_icon",pS.UNPLUGGED_LIVE_GUIDE=
"radar_live",pS.UNPLUGGED_SPORTS="eye_off",pS.UPLOADS="library",pS.UP_ARROW="arrow_up",pS.VERTICAL_ALIGN_BOTTOM="download",pS.VERY_HAPPY="face_very_happy",pS.VERY_SAD="face_very_sad",pS.VIDEOS="play_arrow_circle",pS.VIDEO_CALL="video_camera_add",pS.VIDEO_LIBRARY_WHITE="library",pS.VIDEO_YOUTUBE="youtube_logo_icon",pS.VIEW_LIST="list_view",pS.VIEW_LIST_CAIRO="list_view_cairo",pS.VISIBILITY="eye",pS.VISIBILITY_OFF="eye_off",pS.VOLUME_MUTE="volume_off",pS.VOLUME_UP="volume_on",pS.WALLPAPER="image",pS.WARNING=
"alert_triangle",pS.WATCH_HISTORY="arrow_time",pS.WATCH_HISTORY_CAIRO="arrow_time_cairo",pS.WATCH_LATER="clock",pS.WATCH_LATER_CAIRO="clock_cairo",pS.WATCH_RELATED_MIX="youtube_mix",pS.WHAT_TO_WATCH="home",pS.YOUTUBE_MUSIC_MONOCHROME="youtube_music",pS.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",pS.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",pS.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="youtube_shorts_no_triangle",pS.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",pS.YT_OUTLINE_MUSIC_24=
"music",pS);var efc={},ffc=(efc.TAB_SHORTS="youtube_shorts",efc.TAB_SHORTS_CAIRO="youtube_shorts",efc.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",efc);var gfc={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,2,24],[1,2,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,2,24]],account_link:[[1,6,24]],account_link_error:[[1,5,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,7,16],[1,7,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,3,24],
[1,3,36]],add_half_circle:[[1,2,24]],adjust:[[0,6,24],[1,6,24]],airplane:[[0,2,24],[1,2,20],[1,2,24]],airplay:[[1,5,16],[1,5,24]],airplay_off:[[1,1,24]],album:[[0,4,24],[1,4,24]],alert_circle:[[0,7,24],[1,7,16],[1,7,24]],alert_triangle:[[0,6,12],[0,6,24],[1,6,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,36],[1,1,48]],
arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,2,24],[1,2,24]],arrow_down_circle:[[0,2,12],[0,2,16],[0,2,18],[0,2,24]],arrow_flip:[[1,8,16],[1,8,24]],arrow_in:[[0,6,24],[1,6,24]],arrow_left:[[1,6,24,!0]],arrow_left_cairo:[[1,2,24]],arrow_merge:[[1,
1,24]],arrow_out:[[0,1,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,2,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],arrow_solid_up:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],arrow_split:[[0,2,24],[1,2,24]],arrow_swap_horizontal:[[0,3,24],[1,3,24]],arrow_time:[[0,8,24],[1,8,24]],arrow_time_cairo:[[0,2,24],
[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,2,24],[1,2,24]],arrow_up_circle:[[0,2,12],[0,2,16],[0,2,18],[0,2,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,7,12],[0,7,16],[0,7,24],[1,7,24]],audio_badge:[[0,1,12],[0,1,16],[0,1,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,1,24],[1,1,24]],background:[[1,1,24]],backspace:[[0,3,24],[1,3,24]],bag:[[0,5,12],
[0,5,18],[0,5,24],[1,5,18],[1,5,24]],bag_bookmark:[[1,1,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,1,24]],bell:[[0,8,24],[1,8,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,2,24]],blur:[[1,1,24]],book:[[1,1,24]],bookmark:[[0,6,24],[1,6,24]],bookmark_cairo:[[0,
2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,1,24]],briefcase_slash:[[0,1,24]],brightness:[[0,1,24],[1,1,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,1,24],[1,
1,24]],business:[[1,2,24]],cable:[[1,1,24]],calculator:[[0,1,24],[1,1,24]],calendar:[[0,2,24],[1,2,24]],camera:[[0,7,24],[1,7,24]],camera_audio:[[1,4,24]],camera_effects:[[1,4,24]],camera_flip:[[1,3,24]],camera_hashtag:[[1,4,24]],camera_switch:[[0,1,24],[1,1,24]],card:[[0,2,12],[0,2,16],[0,2,24]],cart:[[0,2,24],[1,2,24]],celebration:[[1,1,24]],check:[[0,9,12],[0,9,16],[0,9,24],[1,9,16],[1,9,24]],check_circle:[[0,8,18],[0,8,24],[1,8,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,
2,24]],chevron_down:[[1,7,18],[1,7,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,1,24]],chevron_expand:[[1,4,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,8,16,!0],[1,8,18,!0],[1,8,24,!0]],chevron_left_circle:[[0,1,24]],chevron_left_ios:[[1,1,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,5,16,!0],[0,5,18,!0],[0,5,24,!0],[1,5,16,!0],[1,5,18,!0],[1,5,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,1,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,
7,16],[1,7,18],[1,7,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,1,24]],chromecast:[[0,6,24],[1,6,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,2,24],[1,2,36]],chromecast_waveform:[[1,1,24]],circle:[[0,5,24],[1,5,24]],circle_full:[[0,2,24]],circle_half_full:[[1,1,24]],circles_6:[[0,1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,
1,24]],clapperboard:[[0,1,24],[1,1,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,7,24],[1,7,16],[1,7,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,1,24]],cloud_arrow_down:[[1,2,24]],cloud_arrow_up:[[0,3,24],[1,3,24]],cloud_check:[[0,1,24],[1,1,24]],cloud_ellipsis:[[0,1,24],[1,1,24]],cloud_off:[[1,2,24]],code:[[1,1,24]],compass:[[0,6,24],[1,6,24]],compass_cairo:[[0,
1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,2,24]],copyright:[[0,2,24],[1,2,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,2,24]],crop:[[1,2,16],[1,2,24]],crop_rotate:[[1,1,24]],crown:[[0,2,16],[0,2,24],[1,2,12],[1,2,16],[1,2,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,2,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,
8,16],[0,8,24],[1,8,16],[1,8,24]],dollar_sign_circle_pause:[[1,1,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,20,12],[0,20,24],[1,20,16],[1,20,24]],dollar_sign_off:[[1,3,24]],download:[[0,9,24],[1,9,16],[1,9,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,24]],downloading:[[1,5,24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,
6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,5,18],[0,5,24],[1,5,24]],eye:[[0,3,24],[1,3,24]],eye_off:[[1,4,24]],eyedropper:[[1,1,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_image:[[1,1,24]],face_meh:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,1,24]],face_sad:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_unhappy:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],
face_upset:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_very_happy:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_very_sad:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],fashion:[[0,2,24],[1,2,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[1,2,24]],fast_forward:[[0,3,24]],film_strip:[[0,4,24],[1,4,24]],film_strip_add:[[1,1,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,6,24],[1,6,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,2,24]],flag:[[0,6,24],[1,6,24]],
flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,1,24],[1,1,24]],flash_circle:[[0,3,18],[0,3,24],[1,3,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,3,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,2,16],[0,2,24],[1,2,24]],football:[[0,1,24],[1,1,24]],gaming:[[0,1,24],[1,1,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,6,24],[1,6,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[1,3,24]],gif:[[1,1,24]],gift:[[0,1,24],[1,1,24]],globe:[[1,2,
24]],glow:[[1,1,24]],google_lens:[[1,3,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,1,24],[1,1,24]],hand:[[1,1,24]],hand_long_press:[[0,3,24],[1,3,24]],hand_pinch_in:[[1,2,24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,24]],hand_wave:[[1,1,24]],hands_heart:[[0,1,24],[1,1,24]],hashtag:[[1,1,16],[1,1,18],[1,1,20],[1,1,24]],hd:[[0,6,24],[1,6,24]],headset:[[0,6,24],[1,6,24]],heart:[[0,15,13],[0,15,24],[1,
15,16],[1,15,24]],heart_box:[[1,1,24]],heart_circle:[[1,1,16],[1,1,18],[1,1,20],[1,1,24]],heart_off:[[1,2,24]],hierarchy:[[0,2,24],[1,2,24]],highlights:[[1,1,24]],home:[[0,7,24],[1,7,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,1,16],[1,1,24]],image:[[0,6,24],[1,6,24]],image_add:[[1,2,24]],image_wallpaper:[[1,1,24]],incognito:[[0,7,24],[1,7,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,1,24]],info_circle:[[1,8,16],[1,8,18],[1,8,20],[1,8,24]],key:[[1,4,24]],keyboard:[[0,
2,24],[1,2,24]],label:[[0,2,24],[1,2,24]],laptop:[[1,2,24]],laptop_mobile:[[0,2,24],[1,2,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,1,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],library:[[0,6,24],[1,6,24]],library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],library_saved:[[0,6,24]],lightbulb:[[0,2,12],[0,2,24],[1,2,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],link:[[1,6,18],[1,6,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],
list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,3,24],[1,3,24]],list_queue_next:[[1,1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,1,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,9,12],[0,9,24],[1,9,12],[1,9,16],[1,9,18],[1,9,24]],lock_open:[[1,2,24]],magic_wand:[[0,
1,24],[1,1,24]],mail:[[0,6,24],[1,6,24]],map:[[1,2,24]],math_add:[[0,3,24]],math_and:[[0,3,24]],math_divide:[[0,3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,3,24]],math_greater_than:[[0,3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,1,24]],medal:[[1,1,24]],medal_star:[[1,1,24]],meet:[[1,1,24]],megaphone:[[0,2,24],[1,2,24]],
memberships:[[0,6,12],[0,6,16],[0,6,18],[0,6,24],[1,6,24]],mention:[[1,3,16],[1,3,24]],menu_filter:[[0,1,24],[1,1,24]],menu_sort:[[1,4,24]],message_bubble_alert:[[0,6,24],[1,6,24]],message_bubble_alert_cairo:[[1,2,24]],message_bubble_empty:[[1,1,24]],message_bubble_gear:[[1,1,24]],message_bubble_left:[[0,1,24],[1,1,24]],message_bubble_left_boost:[[1,1,24]],message_bubble_overlap:[[0,7,24],[1,7,24]],message_bubble_question:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],message_bubble_right:[[0,14,24],[0,14,
32],[1,14,16],[1,14,24]],message_bubble_right_caption:[[1,1,24]],mic:[[0,8,24],[1,8,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,1,24]],mobile:[[0,3,24],[1,3,24]],mobile_check:[[1,1,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,1,24]],mobile_screen_horizontal:[[1,1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,1,24],[1,1,24]],motion:[[1,1,24]],move:[[1,1,24]],music:[[0,6,24],[1,6,16],
[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1,3,24]],music_shape:[[1,3,24]],music_video:[[1,3,24]],music_video_off:[[1,1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,2,24],[1,2,12],[1,2,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,1,24]],node_right:[[1,1,24]],note_add:[[1,1,16],[1,1,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,4,24],[1,4,32]],overflow_vertical:[[1,10,24]],overflow_vertical_cairo:[[1,1,24]],paint_bucket:[[1,
2,24]],palette:[[1,1,24]],panels:[[0,1,24],[1,1,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,6,24]],pause_circle:[[0,1,12],[0,1,16],[0,1,24]],pdf:[[1,1,24]],pencil:[[1,6,16],[1,6,24]],people:[[0,6,12],[0,6,24],[1,6,24]],people_2:[[0,1,24],[1,1,24]],people_group:[[0,4,24],[1,4,16],[1,4,24]],people_note:[[0,1,18],[0,1,24],[1,1,24]],person:[[0,5,12],[0,5,13],[0,5,16],[0,5,24],[0,5,48],[1,5,13],[1,5,16],[1,5,24]],person_2:[[1,1,24]],person_account:[[1,6,
24]],person_account_cairo:[[1,1,24]],person_add:[[1,5,24]],person_box:[[1,5,24]],person_circle:[[0,8,24],[1,8,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,1,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,6,12],[0,6,24],[1,6,16],[1,6,24]],person_setting:[[1,6,24]],person_shield:[[1,6,24]],phone:[[0,1,24],[1,1,24]],picture_in_picture:[[0,1,24],[1,1,24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,5,12],[0,5,24],[1,5,16],[1,5,24]],pin_off:[[1,
1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,2,24],[1,2,12],[1,2,16],[1,2,18],[1,2,24]],podcast_add:[[0,1,24],[1,1,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,1,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,7,16],[1,7,24],[1,7,40]],pound:[[1,3,24]],presentation:[[1,1,24]],presentation_remove:[[1,1,24]],price_tag:[[0,
6,12],[0,6,24],[1,6,24]],price_tag_heart:[[1,1,24]],qr_code:[[1,2,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],quotation_mark:[[0,1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,1,24]],remix:[[1,1,16],[1,1,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,1,24]],rotate_90_clockwise:[[1,2,24]],rss:[[1,1,16],[1,1,24]],rss_off:[[1,1,
16],[1,1,24]],ruby:[[1,1,12],[1,1,16],[1,1,18],[1,1,24]],samples:[[0,1,24],[1,1,24]],saturation:[[1,1,24]],scale:[[1,3,24]],scissors:[[0,6,12],[0,6,24],[1,6,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,2,16],[1,2,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_exit:[[1,6,24]],screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],
screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,1,24],[1,1,24]],screen_theatre:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,1,24]],sd:[[0,2,24],[1,2,24]],search:[[0,9,24],[1,9,24]],search_cairo:[[1,2,24]],send:[[0,3,24,!0],[1,3,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,1,24]],shadow_soft:[[0,1,24]],shapes:[[0,2,24],[1,2,24]],share:[[0,9,24,!0],[0,9,32,!0],[1,9,16,!0],[1,9,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,1,24]],share_link:[[0,
1,24],[1,1,24]],shield:[[1,4,24]],shield_add:[[1,1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,1,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,1,24]],shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],
shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,3,24]],skip_forward_10:[[0,1,24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,1,24]],skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,3,24]],skip_previous:[[0,3,24]],skip_up:[[0,3,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,
2,24]],soccer_ball:[[1,2,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,1,24]],spark:[[0,6,12],[0,6,16],[0,6,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_message_bubble:[[1,4,16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,4,24],[1,4,24]],speaker:[[1,1,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],speaker_headset:[[1,
1,24]],speaker_off:[[1,1,24]],split:[[1,3,24]],sports:[[0,1,24]],spotlight:[[0,1,24],[1,1,24]],star:[[0,3,16],[0,3,24],[1,3,16],[1,3,24]],star_circle:[[0,1,12],[0,1,16],[0,1,18],[0,1,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],[1,1,16],[1,1,20],[1,1,24],[1,1,36]],star_half:[[0,2,16],[0,2,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,1,24]],stop:[[0,1,24]],stopwatch:[[0,3,16],[0,3,24],[1,3,16],[1,3,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],
subscriptions:[[0,8,24],[1,8,18],[1,8,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,2,12],[0,2,24],[1,2,24]],super_chat:[[1,6,18],[1,6,24]],super_sticker:[[0,6,16],[0,6,24],[1,6,16],[1,6,24]],super_store:[[1,1,24]],superstar:[[1,1,24]],tablet:[[1,1,24]],target:[[0,1,24],[1,1,16],[1,1,24]],target_add:[[0,1,24],[1,1,16],[1,1,24]],template_add:[[1,1,24]],template_play:[[0,1,24],[1,1,24]],text:[[0,8,24],[1,8,16],[1,8,24]],text_bold:[[1,1,24]],text_box:[[1,5,24]],text_italic:[[1,1,24]],text_outline:[[1,
2,24]],text_preset:[[1,1,24]],text_serif:[[1,1,24]],text_shadow:[[1,2,24]],text_strikethrough:[[1,1,24]],text_underline:[[1,1,24]],theme_switch:[[0,1,24],[1,1,24]],thermometer:[[1,1,24]],thumb_down:[[0,19,16],[0,19,24],[0,19,36],[1,19,16],[1,19,24],[1,19,36]],thumb_up:[[0,17,16],[0,17,24],[0,17,36],[1,17,16],[1,17,24],[1,17,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,1,24],[1,1,24]],tic_tac_toe:[[0,4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],tilt:[[1,3,24]],
time_stamp_plus:[[1,1,24]],timeline:[[1,2,24]],toolbox:[[1,2,24]],transcript:[[1,1,16],[1,1,24]],transcript_search:[[1,1,16],[1,1,24]],transition:[[0,3,24],[1,3,24]],translate:[[1,1,24]],trash_can:[[1,6,16],[1,6,24]],triangle_down:[[1,5,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,1,24],[1,1,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,3,24],[1,3,24]],tv:[[0,5,12],[0,5,16],[0,5,24],[1,5,16],[1,5,24]],tv_arrow_left:[[1,1,24]],tv_circle:[[0,
1,24],[1,1,24]],tv_dollar_sign:[[0,1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,24]],upload:[[1,4,24]],uploading:[[1,1,24]],variable:[[1,3,24]],verified_circle:[[1,4,24]],video_camera:[[0,7,24],[1,7,24]],video_camera_add:[[1,1,24]],video_camera_off:[[1,1,24]],video_link:[[1,3,16],[1,3,24]],video_stitch:[[1,1,24]],volume_down:[[0,2,24],[1,2,24]],volume_fade:[[1,1,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],volume_stable:[[0,1,24],[1,1,24]],vr:[[0,
5,24],[1,5,24]],waveform:[[1,1,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],wrench:[[0,1,24],[1,1,24]],x:[[1,8,18],[1,8,24]],x_cairo:[[1,1,24]],x_circle:[[1,5,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,1,24]],yen_sign_container:[[0,2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,3,24],[1,3,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,6,24],[1,6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]],youtube_music:[[0,5,24],[1,5,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,
6,24],[1,6,24]],youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],youtube_shorts_heart:[[0,2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0,2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,
4,32],[1,4,16],[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],[0,2,32]],youtube_shorts_waveform:[[1,2,18],[1,2,24]],youtube_studio:[[0,6,24],[1,6,24]],youtube_tv:[[0,6,24],[1,6,24]]};var hfc={youtube_shorts:[[0,10,24],[1,10,24]]};var qS=function(a){this.iconUrlProvider=a};
qS.prototype.resolveIcon=function(a,b){var c=a.iconName;c=c.replace(/-/g,"_");a=Object.assign({},a,{iconName:this.mapIconTypeToStandardName(c)||c.toLowerCase()});if(_.x("enable_web_delhi_icons")){var d;return X3a(hfc,a,((d=this.iconUrlProvider)==null?void 0:d.getYtStandardUrl)||$3a,b)}var e;return X3a(gfc,a,((e=this.iconUrlProvider)==null?void 0:e.getYtStandardUrl)||Z3a,b)};
qS.prototype.mapIconTypeToStandardName=function(a){return _.x("enable_web_delhi_icons")?ffc[a.toUpperCase()]:dfc[a.toUpperCase()]};
qS[eB]=[_.Wi(afc)];var ifc=function(a){this.urlProvider=this.iconUrlProvider=a};
_.z(ifc,qS);
ifc.prototype.resolveIcon=function(a,b){a.iconName==="youtube_logo"&&(a.iconName="yt-logo-updated");if(a.iconName==="youtube_premium_logo"||a.iconName==="youtube_red_logo")a.iconName="yt-logo-red-updated";var c=Object.assign({},a);a.iconName==="menu"&&(c.iconName="bars_3",c.iconStyle="youtube_outline");a.iconName==="youtube_music"&&(c.iconStyle="youtube_fill");a.iconName==="mail"&&a.iconSetName==="socialNetworksRound"&&(c.iconName="email");a.iconName==="more"&&(c.iconName="overflow_horizontal");a.iconName===
"fullscreen"&&(c.iconName="screen_full");if(a.iconName==="play_all"||a.iconName==="play_arrow")c.iconStyle="youtube_fill";a.iconName==="premium_standalone"&&(c.iconName="premium_standalone_cairo");_.x("enable_connect_icon_update_web")&&a.iconName==="account_linked"&&(c.iconName="circles_overlap_check",c.iconStyle="youtube_fill");_.x("enable_connect_icon_update_web")&&a.iconName==="account_unlinked"&&(c.iconName="circles_overlap",c.iconStyle="youtube_outline");a=Object.assign({},c,{iconName:(qS.prototype.mapIconTypeToStandardName.call(this,
c.iconName)||c.iconName).toLowerCase()});var d;return(a=X3a(Zec,a,((d=this.urlProvider)==null?void 0:d.getUrl)||a4a,b))?a:qS.prototype.resolveIcon.call(this,c,b)};
ifc[eB]=[_.Wi(afc)];_.jfc=1;var rS=function(){};
_.z(rS,NM);rS.prototype.resolveCommand=function(a){var b,c;return _.l(function(d){b=_.y(a,Hyb);if(!b)return d.return();c=Number(b.enableDelayedPacfLoggingTvMs);if(isNaN(c)){var e=tN();d4b(e,b,0)}else d4b(tN(),b,c);_.se(d)})};_.sS=function(){};
_.z(_.sS,NM);
_.sS.prototype.resolveCommand=function(a,b){var c=this,d,e,g,k,m,n,r;return _.l(function(t){d=_.y(a,Iyb);g=(e=b.form)==null?void 0:e.element;m=(k=g)==null?void 0:k.closest("ytd-enforcement-message-view-model");if(!d||!m)return t.return();c.allowAdsAction||(n=d.fundingChoiceInstructionPageUrl,c.allowAdsAction=new lib(window,_.Ak(n)));var u=c.allowAdsAction;u.wallElement=m;u.allowAdsPopup.style.setProperty("display","flex","important");var w=u.scrollManager;w.originalBodyOverflow=w.JSC$7847_domHelper.JSC$7221_document_.body.style.overflow;w.JSC$7847_domHelper.JSC$7221_document_.body.style.overflow=
"hidden";u.wallElement.style.setProperty("display","none","important");whb(u.accessibilityManager,u.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((r=c.allowAdsAction.allowAdsPopup)&&r instanceof HTMLElement)for(u=_.h(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),w=u.next();!w.done;w=u.next()){var A=_.h(w.value);w=A.next().value;A=A.next().value;r.style.setProperty(w,A)}_.se(t)})};
_.sS.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var tS=function(){};
_.z(tS,NM);tS.prototype.resolveCommand=function(a){var b;return _.l(function(c){b=_.y(a,KEb);if(!b)return c.return();lQa(a);_.se(c)})};var uS=function(a){this.JSC$14852_commandHandler=a};
_.z(uS,NM);
uS.prototype.resolveCommand=function(a){var b=this,c,d,e,g,k,m,n,r;return _.l(function(t){if(t.nextAddress==1){c=_.y(a,nDb);if((d=c)==null||!d.text||!navigator.clipboard)return t.return();_.me(t,2);return _.p(t,navigator.clipboard.writeText(c.text),4)}if(t.nextAddress!=2){if(!c.successActions||c.successActions.length===0)return t.return();e=_.h(c.successActions);for(g=e.next();!g.done;g=e.next())k=g.value,b.JSC$14852_commandHandler.resolveCommand(k);return _.Jj(t,0)}_.re(t);if(!c.failureActions||c.failureActions.length===
0)return t.return();m=_.h(c.failureActions);for(n=m.next();!n.done;n=m.next())r=n.value,b.JSC$14852_commandHandler.resolveCommand(r);_.se(t)})};
uS[eB]=[_.Xi];var vS=function(a){this.JSC$14856_commandHandler=a};
_.z(vS,NM);
vS.prototype.resolveCommand=function(a,b){var c=this,d,e,g,k,m,n,r,t,u,w;return _.l(function(A){switch(A.nextAddress){case 1:d=_.y(a,REb);if(!d)return A.return();_.me(A,2);if(!d.imageBytes&&!d.imageUrl)throw Error("ui");if(!d.imageUrl){if(d.imageBytes){g=d.imageBytes;k=g.replace(/-/g,"+").replace(/_/g,"/");var C=c4a(k);e=Hd(C)}A.jumpTo(4);break}return _.p(A,fetch(d.imageUrl),5);case 5:return m=A.yieldResult,_.p(A,m.blob(),6);case 6:n=A.yieldResult,e=Hd(n);case 4:u=(r=b)==null?void 0:(t=r.form)==null?
void 0:t.element;w=document.createElement("a");Ld(w,e);u.appendChild(w);w.download="";w.click();u.removeChild(w);URL.revokeObjectURL(_.Cd(e));d.successCommand&&c.JSC$14856_commandHandler.resolveCommand(d.successCommand);_.Jj(A,0);break;case 2:_.re(A),d.errorCommand&&c.JSC$14856_commandHandler.resolveCommand(d.errorCommand),_.se(A)}})};
vS[eB]=[_.Xi];var wS=function(a){this.store=a};
_.z(wS,NM);wS.prototype.resolveCommand=function(a){var b=this,c,d,e;return _.l(function(g){d=(c=_.y(a,_.BAb))==null?void 0:c.entityBatchUpdate;if(!d)return g.jumpTo(0);e=Object.assign({},d,{mutations:[].concat(_.Be(d.mutations||[]))});return _.p(g,_.sp(e,b.store),0)})};var kfc=function(a){this.JSC$14863_commandHandler=a;this.feedbackDialogMap=new Map};
kfc.prototype.openDialog=function(a,b){(a=this.feedbackDialogMap.get(a))&&this.JSC$14863_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:a}},b)};
kfc[eB]=[_.Xi];var xS=new _.fB("FEEDBACK_CONTROLLER_TOKEN");var yS=new _.fB("APP_STORE_TOKEN");var zS=function(a,b){this.store=a;this.controller=b};
_.z(zS,NM);zS.prototype.resolveCommand=function(a,b){var c=this,d,e,g,k,m,n,r,t,u,w,A,C,G,J,I,R,ca;return _.l(function(V){if(V.nextAddress==1){d=_.y(a,_.Pw);if(g=(e=d)==null?void 0:e.contentId)for(m=_.h(((k=d)==null?void 0:k.actions)||[]),n=m.next();!n.done;n=m.next())r=n.value,lfc(c,r,g);w=(t=b)==null?void 0:(u=t.form)==null?void 0:u.element;return _.p(V,_.mo(w,[a]).catch(function(){}),2)}A=V.yieldResult;
((C=A)==null?0:(G=C.data)==null?0:(J=G.feedbackResponses)==null?0:J.length)&&(R=(I=A.data.feedbackResponses[0])==null?void 0:I.followUpDialog)&&g&&(ca=c.controller)!=null&&ca.feedbackDialogMap.set(g,R);_.se(V)})};
var lfc=function(a,b,c){var d=_.y(b,_.po);if(d){d=_.h(d.commands||[]);for(var e=d.next();!e.done;e=d.next())lfc(a,e.value,c)}_.y(b,_.BE)&&a.store.dispatch(_.vu("commandEntity",OZa(c),{key:c,command:b}));_.y(b,Fyb)&&a.store.dispatch(_.vu("commandEntity",OZa(c),{key:c,command:b}))};
zS[eB]=[yS,xS];var AS=function(a){this.controller=a};
_.z(AS,NM);AS.prototype.resolveCommand=function(a,b){var c=this,d,e,g,k;return _.l(function(m){d=_.y(a,_.Kl);g=(e=d)==null?void 0:e.targetId;if(((k=d)==null?void 0:k.signal)!=="TELL_US_WHY"||!g)return m.return();c.controller.openDialog(g,b);_.se(m)})};
AS[eB]=[xS];var BS=function(a){this.store=a};
_.z(BS,NM);BS.prototype.resolveCommand=function(a,b){var c=this,d,e,g,k,m,n,r;return _.l(function(t){d=_.y(a,y6a);g=(e=d)==null?void 0:e.contentId;n=(k=b)==null?void 0:(m=k.form)==null?void 0:m.element;r=_.mo(n,[a]);g&&c.undo(g);return _.p(t,r,0)})};
BS.prototype.undo=function(a){this.store.dispatch(_.vu("commandEntity",OZa(a),{key:a,command:void 0}))};
BS[eB]=[yS];var CS=function(a){this.JSC$14878_commandHandler=a};
_.z(CS,NM);CS.prototype.resolveCommand=function(a){var b=this,c,d,e,g,k,m,n,r;return _.l(function(t){c=_.y(a,RAb);d=c.flowStateKey;e=c.validationFailureCommand;g=c.submitValidFormCommand;k=Jr(_.jw,[d||""]);m=_.y(k,TAb);((n=m)==null?0:n.isValid)&&g&&b.JSC$14878_commandHandler.resolveCommand(g);((r=m)==null?0:r.isValid)||!e||b.JSC$14878_commandHandler.resolveCommand(e);_.se(t)})};
CS[eB]=[_.Xi];var DS=function(a){this.innertubeTransportService=a};
_.z(DS,NM);DS.prototype.resolveCommand=function(a,b){var c=this,d;return _.l(function(e){return _.p(e,_.St(c.innertubeTransportService,a,(d=b)==null?void 0:d.form).then(function(g){var k,m;b==null||(k=b.commandController)==null||(m=k.onSuccess)==null||m.call(k,a,g)},function(g){var k,m;
b==null||(k=b.commandController)==null||(m=k.onServerError)==null||m.call(k,a,g)}),0)})};
DS[eB]=[_.xq];var ES=function(){};
_.z(ES,NM);ES.prototype.resolveCommand=function(a){var b,c,d,e;return _.l(function(g){if(b=_.y(a,_.KFb)){if(c=b.gtmId)d=_.Ei("GL",""),_.yG(c,d);(e=b.gtmData)&&_.zG(e)}_.se(g)})};var FS=function(a,b){this.innertubeTransportService=a;this.JSC$14889_actionRouter=b};
_.z(FS,NM);FS.prototype.resolveCommand=function(a){var b=this,c,d;return _.l(function(e){c=_.y(a,bzb);if(!c)return e.return();d=c.command;if(!d)return e.return();b.JSC$14889_actionRouter.triggerAction("yt-insert-rich-section-action",c);return _.p(e,_.St(b.innertubeTransportService,d,{disableCache:!0}),0)})};
FS[eB]=[_.xq,bF];e4a.bind(null,OM);var mfc=e4a.bind(null,i3b);g4a.bind(null,OM);var nfc=g4a.bind(null,i3b);j4a.bind(null,OM);var ofc=j4a.bind(null,i3b);var GS=function(){};
_.z(GS,NM);
GS.prototype.resolveCommand=function(a){var b,c,d,e,g,k,m,n,r,t;return _.l(function(u){b=_.y(a,Fzb);if(!b)return u.return();d=((c=b.operations)==null?void 0:c.operations)||[];e=_.h(d);for(g=e.next();!g.done;g=e.next())if(k=g.value,k.insertItemSectionContent){var w=k.insertItemSectionContent,A=w.contents||[];w.insertByPositionInSection?mfc(w.insertByPositionInSection.sectionTargetId,A,w.insertByPositionInSection.position):w.insertByRelativePositionInSection&&w.insertByRelativePositionInSection.sectionTargetId&&w.insertByRelativePositionInSection.itemTargetId&&
nfc(w.insertByRelativePositionInSection.sectionTargetId,w.insertByRelativePositionInSection.itemTargetId,A,w.insertByRelativePositionInSection.relativePosition)}else k.replaceSection?(w=k.replaceSection,A={},w.replaceByTargetId?A=w.replaceByTargetId:w.replaceByGroupId&&(A={targetId:w.replaceByGroupId.groupId,newContent:w.replaceByGroupId.newContent,undoKey:""}),A.newContent&&l3b(A.targetId,{continuationItems:[A.newContent]})):k.removeItem?(w=k.removeItem,w.removeByTargetId&&w.sectionTargetId&&ofc(w.sectionTargetId,
w.removeByTargetId.targetIds||[])):k.removeSection&&(k.removeSection.removeByTargetId?(m=void 0,pfc(((m=k.removeSection)==null?void 0:m.removeByTargetId.targetIds)||[])):k.removeSection.removeByGroupId&&(n=void 0,pfc(((n=k.removeSection)==null?void 0:n.removeByGroupId.groupIds)||[])));t=((r=b.operations)==null?void 0:r.scrollConfig)||{};qfc(t);_.se(u)})};
var pfc=function(a){a=_.h(a);for(var b=a.next();!b.done;b=a.next())l3b(b.value,{continuationItems:[]})},qfc=function(a){if(a.scrollToItem){var b=a.scrollToItem.item||{},c=b.itemTargetId;
b=b.sectionTargetId;if(c&&b){var d=document.querySelector("[data-target-id="+b+"]"),e=d==null?void 0:d.querySelector("[data-target-id="+c+"]");d&&e&&setTimeout(function(){var g=e.offsetTop-d.offsetTop,k;if(((k=a.scrollToItem)==null?void 0:k.scrollPosition)==="SCROLL_POSITION_CENTER")g-=d.offsetHeight/2,g+=e.offsetHeight/2;else{var m;((m=a.scrollToItem)==null?void 0:m.scrollPosition)==="SCROLL_POSITION_END"&&(g-=d.offsetHeight,g+=e.offsetHeight)}d.scroll({top:g,behavior:"smooth"})},100)}}};var HS=new _.fB("CLIENT_NAME_TOKEN");var rfc=new _.fB("DEFAULT_STORE_EXPIRATION_TOKEN");var P7a=new _.fB("CLIENT_LOCATION_SERVICE_TOKEN");var IS=function(a,b,c){this.clientName=a||_.Ei("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=b||_.Kq.getInstance();this.JSC$14917_commandHandler=c||_.hs.instance};
_.z(IS,NM);IS.prototype.resolveCommand=function(a){var b=this,c,d;return _.l(function(e){d=(c=_.y(a,LBb))==null?void 0:c.onComplete;b.clientLocationService.clearLocationPlayabilityToken(b.clientName);d&&b.JSC$14917_commandHandler.resolveCommand(d);_.se(e)})};
IS[eB]=[HS,P7a,_.Xi];var JS=function(a){this.innertubeTransportService=a};
_.z(JS,NM);JS.prototype.resolveCommand=function(a,b){var c=this,d,e,g,k;return _.l(function(m){g=(d=b)==null?void 0:(e=d.form)==null?void 0:e.element;return _.p(m,_.St(c.innertubeTransportService,a,(k=b)==null?void 0:k.form).then(function(n){sTa(g,new CustomEvent("yt-service-request-completed"),{data:n},_.Ei("openPopupConfig"))}),0)})};
JS[eB]=[_.xq];var KS=function(){};
_.z(KS,NM);KS.prototype.resolveCommand=function(a){var b,c;return _.l(function(d){b=_.y(a,XAb);c=document.querySelector("mini-app-container-view-model");if(!b||!c)return d.return();b.isPlaying?c.dispatchEvent(new Event("play")):c.dispatchEvent(new Event("pause"));_.se(d)})};var sfc=function(){this.dropdownMap=new Map};_.tfc=new _.fB("DROPDOWN_CONTROLLER_TOKEN");var LS=function(a){this.controller=a};
_.z(LS,NM);LS.prototype.resolveCommand=function(a){var b=this,c,d,e,g;return _.l(function(k){c=_.y(a,lFb);if(!c)return k.return();d=c;e=d.dropdownId;g=d.selectedOptionIndex;if(e===void 0||g===void 0)return k.return();var m=b.controller.dropdownMap.get(e);m&&m(g);_.se(k)})};
LS[eB]=[_.tfc];var MS=function(a){this.controller=a};
_.z(MS,NM);MS.prototype.resolveCommand=function(a){var b=this,c;return _.l(function(d){return(c=_.y(a,TBb))?_.p(d,b.controller.closeDialog(),0):d.return()})};
MS[eB]=[_.HJ];var NS=function(a){this.controller=a};
_.z(NS,NM);NS.prototype.resolveCommand=function(a){var b=this,c,d;return _.l(function(e){c=_.y(a,zCb);if(!c)return e.return();var g,k=c.panelIdentifier||((g=c.identifier)==null?void 0:g.tag);if(!k)throw Error("vi");return(d=k)?_.p(e,b.controller.hidePanel(d),0):e.jumpTo(0)})};
NS[eB]=[_.FJ];var OS=function(a,b){this.innertubeTransportService=a;this.controller=b};
_.z(OS,NM);OS.prototype.resolveCommand=function(a){var b=this,c,d,e,g;return _.l(function(k){if(k.nextAddress==1)return c=_.y(a,ACb),(d=c)!=null&&d.panelId?_.p(k,b.controller.getReloadContinuation(c.panelId),2):k.return();if(k.nextAddress!=3)return(e=k.yieldResult)?_.p(k,_.St(b.innertubeTransportService,a,{continuation:e}),3):k.return();g=k.yieldResult;return _.p(k,b.controller.updatePanel(c.panelId,g.content,!1),0)})};
OS[eB]=[_.xq,_.FJ];var PS=function(a,b,c){this.innertubeTransportService=a;this.JSC$14950_screenManager=b;this.JSC$14950_commandHandler=c};
_.z(PS,NM);
PS.prototype.resolveCommand=function(a){var b=this,c,d,e,g,k,m;return _.l(function(n){if(n.nextAddress==1){c=_.y(a,_.qDb);if(!c)return n.return();if(c.commands)for(d=_.h(c.commands),e=d.next();!e.done;e=d.next())g=e.value,b.JSC$14950_commandHandler.resolveCommand(g,{disableClickTracking:!0});k=_.qs(a.clickTrackingParams);_.mF(b.JSC$14950_screenManager,21760,k,{layer:7,parentLayer:0});return _.p(n,_.St(b.innertubeTransportService,a),2)}m=n.yieldResult;if(!m)return n.return();b.JSC$14950_screenManager.graftServerVe(m.trackingParams,k,
7);_.se(n)})};
PS[eB]=[_.xq,_.xH,_.Xi];var QS=new _.fB("PANEL_LOADING_STRATEGY_TOKEN");var RS=function(a,b){this.controller=a;this.panelLoadingStrategy=b};
_.z(RS,NM);
RS.prototype.resolveCommand=function(a,b){var c=this,d,e,g;return _.l(function(k){d=_.y(a,dFb);if((e=d)==null||!e.panelLoadingStrategy)return k.return();g=function(m){var n,r,t,u,w,A,C,G,J;return _.l(function(I){r=_.y((n=m.dialogViewModel)==null?void 0:n.header,mFb);t={viewModel:m.dialogViewModel};u={};if(C=_.x("web_enable_dialog_header_label")?(w=r)==null?void 0:(A=w.headline)==null?void 0:A.content:void 0)u.ariaLabel=C;d.dismissOnBackgroundTap===!1&&(u.isModal=!0);return m.dialogViewModel?_.p(I,
c.controller.openDialog(t,(G=b)==null?void 0:(J=G.form)==null?void 0:J.element,u),0):I.return()})};
return _.p(k,c.panelLoadingStrategy.execute({command:a,data:d.panelLoadingStrategy,renderFn:g,createScreenConfig:{layer:4}}),0)})};
RS[eB]=[_.HJ,QS];var SS=function(a,b,c){this.innertubeTransportService=a;this.controller=b;this.JSC$14970_screenManager=c};
_.z(SS,NM);
SS.prototype.resolveCommand=function(a,b){var c=this,d,e,g,k,m,n,r,t,u,w,A,C;return _.l(function(G){switch(G.nextAddress){case 1:d=_.y(a,_.Ow);if(!d)return G.return();var J,I=d.panelIdentifier||((J=d.identifier)==null?void 0:J.tag);if(!I)throw Error("vi");e=I;return _.p(G,c.controller.isVisible(e,!0),2);case 2:if((g=G.yieldResult)&&d.blockIfPanelOpen)return G.return();n=(m=(k=c.controller).getPanelContent)==null?void 0:m.call(k,e);if(!(J=n))if(d){var R;J=((R=d.globalConfiguration)==null?void 0:R.initialState)||
d.engagementPanel;if(R=!J)R=!!(d==null?0:(I=d.engagementPanelPresentationConfigs)==null?0:I.engagementPanelPopupPresentationConfig);R&&(J=_.k4a(d.panelIdentifier,d.identifier))}else J=void 0;r=J;t=d.engagementPanelPresentationConfigs;u=d.engagementPanelExtras;return _.p(G,c.controller.showPanel(e,r,t,u,(w=b)==null?void 0:(A=w.form)==null?void 0:A.element),3);case 3:if(!d.globalConfiguration){G.jumpTo(0);break}return _.p(G,_.St(c.innertubeTransportService,a),5);case 5:return C=G.yieldResult,c.JSC$14970_screenManager.graftServerVe(C.trackingParams),
_.p(G,c.controller.updatePanel(e,C.content,!0,u,void 0,C.updatePanelContinuationData),0)}})};
SS[eB]=[_.xq,_.FJ,_.xH];var TS=function(a,b){this.controller=a;this.panelLoadingStrategy=b};
_.z(TS,NM);TS.prototype.resolveCommand=function(a,b){var c=this,d,e,g;return _.l(function(k){d=_.y(a,_.kWa);if((e=d)==null||!e.panelLoadingStrategy)return k.return();g=function(m){var n,r;return _.l(function(t){return m.sheetViewModel?_.p(t,c.controller.openSheet({viewModel:m.sheetViewModel},(n=b)==null?void 0:(r=n.form)==null?void 0:r.element),0):t.return()})};
return _.p(k,c.panelLoadingStrategy.execute({command:a,data:d.panelLoadingStrategy,renderFn:g,createScreenConfig:{layer:0}}),0)})};
TS[eB]=[_.GJ,QS];var US=function(a,b){this.controller=a;this.JSC$14978_commandHandler=b};
_.z(US,NM);US.prototype.resolveCommand=function(a,b){var c=this,d,e,g;return _.l(function(k){if(k.nextAddress==1){d=_.y(a,ECb);var m=_.y(d.showCommand,_.Ow),n,r,t=(r=m==null?void 0:m.panelIdentifier)!=null?r:m==null?void 0:(n=m.identifier)==null?void 0:n.tag;if(!t)throw Error("wi");e=t;return _.p(k,c.controller.isVisible(e),2)}return(g=k.yieldResult)?_.p(k,c.controller.hidePanel(e),0):_.p(k,c.JSC$14978_commandHandler.resolveCommand(d.showCommand,b),0)})};
US[eB]=[_.FJ,_.Xi];var VS=function(a,b,c){this.innertubeTransportService=a;this.controller=b;this.JSC$14981_screenManager=c};
_.z(VS,NM);
VS.prototype.resolveCommand=function(a){var b=this,c,d,e,g,k,m,n,r,t,u,w,A,C,G,J,I,R,ca,V,fa,aa,ma;return _.l(function(Ba){switch(Ba.nextAddress){case 1:return d=c=_.y(a,FDb),e=d.targetPanelIdentifier,g=d.contentSourcePanelIdentifier,k=d.globalConfiguration,((m=e)==null?0:m.tag)&&((n=g)==null?0:n.tag)?k?_.p(Ba,b.controller.showPanel(e.tag,_.k4a(e.tag,e),void 0,void 0,void 0),5):_.p(Ba,(w=(u=b.controller).getPanel)==null?void 0:w.call(u,g.tag),4):Ba.return();case 4:A=Ba.yieldResult;r=(C=A)==null?void 0:
(J=(G=C).getPanelContent)==null?void 0:J.call(G);Ba.jumpTo(3);break;case 5:return _.p(Ba,_.St(b.innertubeTransportService,a),6);case 6:I=Ba.yieldResult,((R=I)==null?0:R.trackingParams)&&b.JSC$14981_screenManager.graftServerVe(I.trackingParams),r=(ca=I)==null?void 0:ca.content,t=(V=I)==null?void 0:V.updatePanelContinuationData;case 3:if(aa=(fa=r)==null?void 0:fa.engagementPanelSectionListRenderer)return _.p(Ba,b.controller.showPanel(e.tag,void 0,void 0,void 0,void 0,{content:aa.content,secondaryHeaderContent:(ma=
aa.header)!=null?ma:{},targetId:aa.targetId},t),0);Ba.jumpTo(0)}})};
VS[eB]=[_.xq,_.FJ,_.xH];var WS=function(a,b){this.JSC$14989_commandHandler=a;this.store=b};
_.z(WS,NM);WS.prototype.resolveCommand=function(a){var b=this,c,d,e,g,k;return _.l(function(m){if(m.nextAddress==1)return(c=_.y(a,RBb))?_.p(m,_.nu(),2):m.return();d=m.yieldResult;if(!d)return m.return();n4a(d,b.store,(e=c)==null?void 0:e.languageCode);g=d.isSubtitlesOn()?_.to("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):_.to("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");k=_.aq(g);b.JSC$14989_commandHandler.resolveCommand(k);_.se(m)})};
WS[eB]=[_.Xi,sw];var XS=function(a,b){this.shortsPlayerPromise=a;this.JSC$14993_commandHandler=b};
_.z(XS,NM);
XS.prototype.resolveCommand=function(a){var b=this,c,d,e,g,k,m,n,r;return _.l(function(t){if(t.nextAddress==1)return(c=_.y(a,eDb))?_.p(t,b.shortsPlayerPromise,2):t.return();d=t.yieldResult;var u=o4a(d);u!=null&&u.length||(d.loadModule("captions"),u=o4a(d));e=u;if((g=e)==null||!g.length)return k=_.to("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),m=_.aq(k),b.JSC$14993_commandHandler.resolveCommand(m),t.return();d.toggleSubtitles();n=d.isSubtitlesOn()?_.to("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.to("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");r=_.aq(n);b.JSC$14993_commandHandler.resolveCommand(r);_.se(t)})};
XS[eB]=[_.zJb,_.Xi];var YS=function(a){this.JSC$14996_playerPromise=a};
_.z(YS,NM);YS.prototype.resolveCommand=function(a){var b=this,c,d,e,g;return _.l(function(k){if(k.nextAddress==1)return(c=_.y(a,CCb))?_.p(k,b.JSC$14996_playerPromise,2):k.return();d=k.yieldResult;e=d.getVideoData().video_id;c.videoId===e&&(g=Number(c.offsetFromVideoStartMilliseconds),g>=0&&d.seekTo(g/1E3));_.se(k)})};
YS[eB]=[_.gu];var ufc=_.lp("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),ZS=function(a){this.store=a};
_.z(ZS,NM);
var vfc=function(a){var b,c,d,e;return _.l(function(g){if(g.nextAddress==1)return b=_.Ei("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,c=_.Ei("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,d=b||c,a.mainAppPlayer=new $I(d),_.p(g,a.mainAppPlayer.api,2);e=g.yieldResult;e.addEventListener("onStateChange",a.JSC$15000_playerStateChangeListener.bind(a));document.addEventListener("yt-page-data-updated",a.pauseOnNavigation.bind(a));window.addEventListener("state-navigatestart",
a.pauseOnNavigation.bind(a));_.se(g)})};
ZS.prototype.JSC$15000_playerStateChangeListener=function(a){switch(a){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"}wfc(this)};
var wfc=function(a){a.store.dispatch(_.vu("sfvAudioItemCurrentlyPlayingEntity",ufc,{key:ufc,externalVideoId:a.externalVideoId,sfvAudioItemPlaybackState:a.playbackState,nowPlayingEntityValue:a.nowPlayingEntityValue}))};
ZS.prototype.pauseOnNavigation=function(){var a=this,b,c,d,e;return _.l(function(g){if(g.nextAddress==1){if(!a.mainAppPlayer){var k=new _.qj("Error: mainAppPlayer is unavailable",a.mainAppPlayer);_.Bl(k);return g.return()}return _.p(g,a.mainAppPlayer.api,2)}b=g.yieldResult;d=(c=b)==null?void 0:c.getPlayerState();d!==1||(e=b)!=null&&e.pauseVideo();_.se(g)})};
ZS.prototype.playVideo=function(a,b,c){var d=this,e,g;return _.l(function(k){if(k.nextAddress==1)return _.p(k,(e=d.mainAppPlayer)==null?void 0:e.api,2);g=k.yieldResult;if(!d.mainAppPlayer||!g){var m=new _.qj("Error: mainAppPlayer is unavailable",d.mainAppPlayer);_.Bl(m);return k.return()}return _.p(k,d.mainAppPlayer.loadVideoWithPlayerVars({videoId:d.externalVideoId,audio_only:"1",start:a/1E3,end:a/1E3+b,player_params:c}),0)})};
ZS.prototype.pauseVideo=function(){var a=this,b,c;return _.l(function(d){if(d.nextAddress==1){if(!a.mainAppPlayer){var e=new _.qj("Error: mainAppPlayer is unavailable",a.mainAppPlayer);_.Bl(e);return d.return()}return _.p(d,a.mainAppPlayer.api,2)}b=d.yieldResult;(c=b)==null||c.pauseVideo();_.se(d)})};
ZS.prototype.resolveCommand=function(a){var b=this,c,d,e,g,k,m,n,r,t,u,w,A,C,G,J,I,R,ca,V;return _.l(function(fa){if(fa.nextAddress==1)return c=_.y(a,aEb),e=(d=c)==null?void 0:d.nowPlayingEntityValue,k=(g=c)==null?void 0:g.externalVideoId,u=Number((t=(m=c)==null?void 0:(n=m.defaultStartPoints)==null?void 0:(r=n[0])==null?void 0:r.offsetMs)!=null?t:"0"),I=Number((J=(w=c)==null?void 0:(A=w.defaultStartPoints)==null?void 0:(C=A[0])==null?void 0:(G=C.duration)==null?void 0:G.seconds)!=null?J:"15"),V=
(ca=(R=c)==null?void 0:R.playerParams)!=null?ca:"",e&&k?b.mainAppPlayer?fa.jumpTo(2):_.p(fa,vfc(b),2):fa.return();if(fa.nextAddress!=6){if(b.nowPlayingEntityValue&&e===b.nowPlayingEntityValue)return b.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?_.p(fa,b.pauseVideo(),0):_.p(fa,b.playVideo(u,I,V),0);b.externalVideoId=k;b.nowPlayingEntityValue=e;b.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return _.p(fa,b.playVideo(u,I,V),6)}wfc(b);return fa.jumpTo(0)})};
ZS[eB]=[sw];var $S=function(a){this.JSC$15017_commandHandler=a};
_.z($S,NM);$S.prototype.resolveCommand=function(a,b){var c=this,d,e,g,k,m;return _.l(function(n){if(n.nextAddress==1)return(d=_.y(a,SBb))?_.p(n,_.nu(),2):n.return();e=n.yieldResult;if(!e)return n.return();(g=s4a(e))?c.JSC$15017_commandHandler.resolveCommand(g,b):(k=_.to("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),m=_.aq(k),c.JSC$15017_commandHandler.resolveCommand(m));_.se(n)})};
$S[eB]=[_.Xi];var aT=function(a){this.JSC$15020_playerPromise=a};
_.z(aT,NM);aT.prototype.resolveCommand=function(a){var b=this,c,d,e,g,k;return _.l(function(m){if(m.nextAddress==1){c=_.y(a,DCb);if(!c)return m.return();d=c.overlayRenderer;return d?(e=_.y(d,AFb))?_.p(m,b.JSC$15020_playerPromise,3):m.jumpTo(0):m.return()}g=m.yieldResult;g.renderChapterSeekingAnimation(1,_.Vp(e.text),(k=e.icon)==null?void 0:k.iconType);_.se(m)})};
aT[eB]=[_.gu];var bT=function(a){this.store=a};
_.z(bT,NM);bT.prototype.resolveCommand=function(a){var b=this,c,d,e;return _.l(function(g){if(g.nextAddress==1){c=_.y(a,Tzb);if(!c)return g.return();d="";(e=b.store.getState().collabInviteLink)&&c.id===e.playlistId?d=e.inviteLinkURL:c.shortUrl&&(d=c.shortUrl);return d?_.p(g,navigator.clipboard.writeText(d),3):g.jumpTo(0)}var k={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.to("COPY_LINK_SUCCESS_TOAST")}}}}};_.v().resolve(_.Xi).resolveCommand(k);_.se(g)})};
bT[eB]=[yS];var cT=function(a,b){this.innertubeTransportService=a;this.JSC$15030_commandHandler=b};
_.z(cT,NM);cT.prototype.resolveCommand=function(a,b){var c=this,d,e,g,k,m,n,r,t,u,w;return _.l(function(A){if(A.nextAddress==1)return(d=_.y(a,_.RE))?_.p(A,_.St(c.innertubeTransportService,a,(e=b)==null?void 0:e.form),2):A.return();(g=A.yieldResult)&&g.errorMetadata&&(k=g,m=_.aq(k.error.message),c.JSC$15030_commandHandler.resolveCommand(m));n=g;if((r=n)==null?0:r.actions)for(t=_.h(n.actions),u=t.next();!u.done;u=t.next())w=u.value,c.JSC$15030_commandHandler.resolveCommand(w);_.se(A)})};
cT[eB]=[_.xq,_.Xi];var dT=function(){};
_.z(dT,NM);dT.prototype.resolveCommand=function(a){var b;return _.l(function(c){b=_.y(a,Nzb);if(!b)return c.return();(new oLb(b)).show();_.se(c)})};_.eT=new _.fB("PLAYLIST_EDIT_CONTROLLER_TOKEN");var fT=function(a,b,c,d){this.store=a;this.innertubeTransportService=b;this.controller=c;this.JSC$15038_commandHandler=d};
_.z(fT,NM);
fT.prototype.resolveCommand=function(a,b){var c=this,d,e,g,k,m,n,r,t,u,w,A,C,G,J,I,R,ca,V,fa,aa,ma,Ba,Da,za,Fa,bb;return _.l(function(kb){if(kb.nextAddress==1){d=_.y(a,_.LE);if(!d)return kb.return();if(d.clientActions){e=_.h(d.clientActions);for(g=e.next();!g.done;g=e.next())k=g.value,c.JSC$15038_commandHandler.resolveCommand(k);var Ua,Fc=b==null?void 0:(Ua=b.form)==null?void 0:Ua.element;Fc&&_.go(Fc,"yt-dismissible-item-action",d.clientActions)}return _.p(kb,_.St(c.innertubeTransportService,a,(m=
b)==null?void 0:m.form),2)}if(n=kb.yieldResult)n.errorMetadata?(r=n,t=_.aq(r.error.message),c.JSC$15038_commandHandler.resolveCommand(t),"error"in n&&((u=b)==null?0:(w=u.commandController)==null?0:w.onServerError)&&((A=b)==null||(C=A.commandController)==null||C.onServerError(a,n))):(G=b)==null||(J=G.commandController)==null||(R=(I=J).onSuccess)==null||R.call(I,a,n);ca=n;((V=ca)==null?0:V.collaborationInviteLink)&&d.playlistId&&(_.x("web_enable_invite_collaborators_link")||_.x("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
c.store.dispatch(_.gp({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:d.playlistId,inviteLinkUrl:ca.collaborationInviteLink}}));((fa=ca)==null?0:fa.redirectEndpoint)&&c.JSC$15038_commandHandler.resolveCommand(ca.redirectEndpoint);((aa=ca)==null?0:(ma=aa.newHeader)==null?0:ma.playlistHeaderRenderer)?xfc(c.controller,ca.newHeader.playlistHeaderRenderer):((Ba=ca)==null?0:(Da=Ba.newHeader)==null?0:Da.musicEditablePlaylistDetailHeaderRenderer)&&xfc(c.controller,ca.newHeader.musicEditablePlaylistDetailHeaderRenderer);
c.controller.playlistVideoListElement&&((za=ca)==null?0:(Fa=za.playlistEditResults)==null?0:(bb=Fa[0])==null?0:bb.playlistEditVideoAddedResultData)&&((Fc=c.controller.playlistVideoListElement)==null||Fc.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:ca.playlistEditResults[0].playlistEditVideoAddedResultData})));_.se(kb)})};
fT[eB]=[yS,_.xq,_.eT,_.Xi];var gT=function(a,b){this.controller=a;this.JSC$15048_commandHandler=b};
_.z(gT,NM);gT.prototype.resolveCommand=function(a,b){var c=this,d,e,g;return _.l(function(k){d=_.y(a,Uzb);c.controller.showRefreshPill&&((e=d)==null?0:e.command)&&(c.JSC$15048_commandHandler.resolveCommand((g=d)==null?void 0:g.command,b),c.controller.showRefreshPill=!1);_.se(k)})};
gT[eB]=[_.XP,_.Xi];var hT=function(a,b){this.store=a;this.JSC$15052_commandHandler=b||_.hs.instance};
_.z(hT,NM);hT.prototype.resolveCommand=function(a,b){var c=this,d,e,g,k,m,n,r,t,u,w;return _.l(function(A){d=_.y(a,gAb);e=c.store.getState().radioButtonGroup;if((g=d)==null?0:g.command)c.JSC$15052_commandHandler.resolveCommand((k=d)==null?void 0:k.command,b);else if(((m=d)==null?void 0:m.formId)===e.currentFormId)for(n=Object.values(e.commandsMap),r=_.h(n),t=r.next();!t.done;t=r.next()){u=t.value;w=_.Es(u);if(!w)return A.return();c.JSC$15052_commandHandler.resolveCommand(w,b)}_.se(A)})};
hT[eB]=[yS];var yfc=new _.fB("USER_PREFS");var iT=function(a){this.JSC$15056_prefCookie=a};
_.z(iT,NM);iT.prototype.resolveCommand=function(a){var b=this,c,d;return _.l(function(e){c=_.y(a,Wzb);if(!c)return e.return();d=!1;c.flagNum&&typeof c.value==="boolean"?(_.xo(0,c.flagNum,c.value),d=!0):c.key&&typeof c.stringValue==="string"&&(b.JSC$15056_prefCookie.set(c.key,c.stringValue),d=!0);d&&b.JSC$15056_prefCookie.save();_.se(e)})};
iT[eB]=[yfc];var jT=new _.fB("PREF_STORAGE_PROMISE_TOKEN");var kT=function(a){this.JSC$15060_prefStoragePromise=a};
_.z(kT,NM);kT.prototype.resolveCommand=function(a){var b=this,c,d;return _.l(function(e){if(e.nextAddress==1)return(c=_.y(a,Yzb))?_.p(e,b.JSC$15060_prefStoragePromise,2):e.return();d=e.yieldResult;return d===void 0||c.key===void 0||c.value===void 0?e.return():_.p(e,d.set(c.key,c.value),0)})};
kT[eB]=[jT];var zfc=function(a){this.innertubeTransportService=a};
_.z(zfc,NM);zfc.prototype.resolveCommand=function(a,b){var c=this,d,e;return _.l(function(g){(d=_.y(a,_.xEb))&&d&&d.isFirstRequest&&(_.Io("search_overview_answer"),_.Jo("so_rq",void 0,"search_overview_answer"));return _.p(g,_.St(c.innertubeTransportService,a,(e=b)==null?void 0:e.form),0)})};
zfc[eB]=[_.xq];var Afc=function(){};
_.z(Afc,NM);
Afc.prototype.resolveCommand=function(a){var b,c,d,e,g,k,m,n,r;return _.l(function(t){b=_.y(a,BCb);if((c=b)==null?0:c.sectionIdentifier){if(b.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(e=(d=document.getElementsByTagName(b.sectionIdentifier))==null?void 0:d.item(0))e.scrollIntoView({behavior:"smooth"}),(g=msa(e))&&g.focus({preventScroll:!0});return t.return()}k=document.querySelector("[section-identifier="+b.sectionIdentifier+"]");m=document.querySelector("[section-identifier="+b.referenceSectionIdentifier+
"]");if(!k)return t.return();n=b.verticalScrollOffsetDp?b.verticalScrollOffsetDp:0;m&&(n-=m.offsetTop);window.scrollTo({top:k.offsetTop+n,behavior:"smooth"});(r=msa(k))&&r.focus({preventScroll:!0})}_.se(t)})};var lT=function(){};
_.z(lT,NM);
lT.prototype.resolveCommand=function(a){var b,c,d,e,g,k,m;return _.l(function(n){if(n.nextAddress==1){b=_.y(a,SEb);if(!b||!b.imageBytes||!navigator.clipboard)return n.return();if(b.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.Bl(Error("xi")),n.return();_.me(n,2);d=(c=b)==null?void 0:c.imageBytes;e=d.replace(/-/g,"+").replace(/_/g,"/");g=c4a(e);k={};m=[new ClipboardItem((k[g.type]=g,k))];return _.p(n,navigator.clipboard.write(m),4)}if(n.nextAddress!=2)return _.Jj(n,0);
_.re(n);_.se(n)})};var mT=function(a,b){this.innertubeTransportService=a;this.JSC$15075_commandHandler=b};
_.z(mT,NM);mT.prototype.resolveCommand=function(a,b){var c=this,d,e,g,k;return _.l(function(m){if(m.nextAddress==1)return(d=_.y(a,TEb))?_.p(m,_.St(c.innertubeTransportService,a,(e=b)==null?void 0:e.form),2):m.return();g=m.yieldResult;((k=g)==null?0:k.shareCommand)&&c.JSC$15075_commandHandler.resolveCommand(g.shareCommand,b);_.se(m)})};
mT[eB]=[_.xq,_.Xi];var nT=function(){};
_.z(nT,NM);nT.prototype.resolveCommand=function(){return _.l(function(a){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.se(a)})};var oT=function(a){this.JSC$15081_navigationConfirmationService=a};
_.z(oT,NM);oT.prototype.resolveCommand=function(){var a=this;return _.l(function(b){a.JSC$15081_navigationConfirmationService.cancelPendingNavigation();_.se(b)})};
oT[eB]=[tJ];var pT=function(a){this.JSC$15084_screenManager=a};
_.z(pT,NM);pT.prototype.resolveCommand=function(a,b){var c=this,d,e,g,k,m,n,r;return _.l(function(t){e=(d=b.form)==null?void 0:d.event;k=(g=b.form)==null?void 0:g.element;if(!e)throw new _.qj("Event not passed in when resolving command");m=_.h(e.composedPath());for(n=m.next();!n.done;n=m.next())if(r=n.value,r.tagName==="YT-COPY-LINK-RENDERER")return r.copyUrlToClipboard(),k&&_.Pt(c.JSC$15084_screenManager,k),t.return();_.se(t)})};
pT[eB]=[_.xH];var qT=function(){this.JSC$15088_miniAppClientDataProvider=_.v().resolve(_.TR)};
_.z(qT,NM);qT.prototype.resolveCommand=function(){var a=this,b,c;return _.l(function(d){if(a.JSC$15088_miniAppClientDataProvider.clientData.has("video_id")){var e=a.JSC$15088_miniAppClientDataProvider,g=e.clientData.get("video_id");g&&e.clientData.delete("video_id");b="https://youtube.com/watch?v="+g;c=Ed(b);if(c===void 0)throw Error("yi`"+b);_.Rd(window,c)}_.se(d)})};var rT=function(){};
_.z(rT,NM);rT.prototype.resolveCommand=function(){return _.l(function(a){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.se(a)})};var sT=function(){};
_.z(sT,NM);sT.prototype.resolveCommand=function(){var a;return _.l(function(b){if(b.nextAddress==1)return _.p(b,_.NBa(window.document.documentElement),2);(a=document.querySelector("mini-app-container-view-model iframe"))&&a.focus();_.se(b)})};var tT=function(a){this.JSC$15095_navigationConfirmationService=a};
_.z(tT,NM);
tT.prototype.resolveCommand=function(){var a=this;return _.l(function(b){var c=a.JSC$15095_navigationConfirmationService,d=_.v().resolve(_.oG),e;if(((e=c.navigateParams)==null?void 0:e.data)!==void 0){var g;_.PWb(d,c.navigateParams.endpoint,c.navigateParams.data,(g=c.navigateParams.navigationType)!=null?g:1,c.navigateParams.tempData,c.navigateParams.isMiniplayer,!0);c.navigateParams=void 0;c.customConfirmationCommand=void 0}else c.navigateParams&&(d.navigate(c.navigateParams.endpoint,c.navigateParams.reload,c.navigateParams.params,
c.navigateParams.tempData,c.navigateParams.requestType,c.navigateParams.createScreenConfig,!0),c.navigateParams=void 0,c.customConfirmationCommand=void 0);_.se(b)})};
tT[eB]=[tJ];var uT=function(){};
_.z(uT,NM);uT.prototype.resolveCommand=function(){return _.l(function(a){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.se(a)})};var vT=function(a){this.JSC$15100_prefStorage=a};
_.z(vT,NM);vT.prototype.resolveCommand=function(){var a=this,b,c;return _.l(function(d){switch(d.nextAddress){case 1:return _.p(d,a.JSC$15100_prefStorage,2);case 2:return(b=d.yieldResult)?_.p(d,b.set("sfvle",!1),3):d.return();case 3:return _.p(d,b.set("sfvles",!0),4);case 4:c=_.wo(),_.xo(0,203,!1),_.xo(0,204,!0),c.save(),_.se(d)}})};
vT[eB]=[jT];var wT=function(a){this.JSC$15103_prefStorage=a};
_.z(wT,NM);wT.prototype.resolveCommand=function(){var a=this,b,c;return _.l(function(d){switch(d.nextAddress){case 1:return _.p(d,a.JSC$15103_prefStorage,2);case 2:return(b=d.yieldResult)?_.p(d,b.set("sfvle",!0),3):d.return();case 3:return _.p(d,b.set("sfvles",!0),4);case 4:c=_.wo(),_.xo(0,203,!0),_.xo(0,204,!0),c.save(),_.se(d)}})};
wT[eB]=[jT];var xT=function(){};
_.z(xT,NM);xT.prototype.resolveCommand=function(a){var b;return _.l(function(c){b=_.y(a,Xzb);if(!b||typeof b.key!=="string"||typeof b.value!=="string")return c.return();window.localStorage.setItem(b.key,b.value);_.se(c)})};var yT=function(a){this.store=a};
_.z(yT,NM);yT.prototype.resolveCommand=function(a){var b=this,c;return _.l(function(d){c=_.y(a,x6a);if(!c||!c.stepId||!c.token)return d.return();b.store.dispatch(BJb({stepId:c.stepId,token:c.token,isSelected:!1}));_.se(d)})};
yT[eB]=[yS];var zT=function(a,b,c){this.innertubeTransportService=a;this.store=b;this.JSC$15114_screenManager=c};
_.z(zT,NM);
zT.prototype.resolveCommand=function(a){var b=this,c,d,e,g,k,m,n,r,t,u,w,A,C,G,J,I,R,ca,V,fa,aa,ma,Ba;return _.l(function(Da){c=_.y(a,czb);if(!c||(d=c.stepIds)==null||!d.length)return Da.return();e=b.store.getState().talkToRecs;g=[];k=[];m=_.h(c.stepIds);for(n=m.next();!n.done;n=m.next())for(r=n.value,t=void 0,(u=(t=e.stepStates[r])==null?void 0:t.userQuery)&&k.push({userQuery:u.userQuery,userQueryToken:u.token}),w=void 0,A=(w=e.stepStates[r])==null?void 0:w.selectionStates,C=_.h(Object.entries(A)),G=
C.next();!G.done;G=C.next())J=G.value,I=_.h(J),R=I.next().value,ca=I.next().value,V=R,fa=ca,fa.isSelected&&g.push(V);aa={selectedChipTokens:g,userQueries:k,submittedStepIds:c.stepIds};ma={browseTalk2recsFormData:aa};c.browseEndpoint?(Ba=a,_.zs(Ba,_.pq,c.browseEndpoint)):c.command&&(Ba=c.command);return Ba?_.p(Da,_.St(b.innertubeTransportService,Ba,{formData:ma,disableCache:!0}).then(function(za){(za==null?0:za.trackingParams)&&b.JSC$15114_screenManager.graftServerVe(za==null?void 0:za.trackingParams)}),
0):Da.return()})};
zT[eB]=[_.xq,yS,_.xH];var AT=function(a){this.store=a};
_.z(AT,NM);AT.prototype.resolveCommand=function(a){var b=this,c;return _.l(function(d){c=_.y(a,w6a);if(!c||!c.stepId||!c.token)return d.return();b.store.dispatch(BJb({stepId:c.stepId,token:c.token,isSelected:!0}));_.se(d)})};
AT[eB]=[yS];var BT=function(a){this.store=a};
_.z(BT,NM);BT.prototype.resolveCommand=function(a,b){var c=this,d,e,g,k,m;return _.l(function(n){d=_.y(a,dzb);if(!d||!d.stepId||!d.userQueryToken)return n.return();m=(k=(e=b)==null?void 0:(g=e.form)==null?void 0:g.userQuery)!=null?k:"";c.store.dispatch(_.gp({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:d.stepId,userQueryToken:d.userQueryToken,userQuery:m}}));_.se(n)})};
BT[eB]=[yS];_.Bfc=new _.fB("TIMELY_ACTIONS_CONTROLLER_TOKEN");var CT=function(a){this.controller=a};
_.z(CT,NM);CT.prototype.resolveCommand=function(a){var b=this,c,d,e,g;return _.l(function(k){c=_.y(a,yCb);if(!c)return k.return();d=c;e=d.id;g=d.isVisible;if(e===void 0||g===void 0)return k.return();var m;(m=b.controller.timelyActionsMap.get(e))==null||m(e,g);_.se(k)})};
CT[eB]=[_.Bfc];var Cfc=function(){this.timelyActionsMap=new Map};var DT=function(a){this.JSC$15141_commandHandler=a};
_.z(DT,NM);DT.prototype.resolveCommand=function(a){var b=this,c,d,e,g,k;return _.l(function(m){c=_.y(a,_.Eyb);if(!c)return m.return();g=(d=c.item)==null?void 0:(e=d.notificationTextRenderer)==null?void 0:e.successResponseText;if(!g)return m.return();k=_.$p(g);b.JSC$15141_commandHandler.resolveCommand(k);_.se(m)})};
DT[eB]=[_.Xi];var ET=function(a,b){this.innertubeTransportService=a;this.JSC$15146_playerApiPromise=b};
_.z(ET,NM);
ET.prototype.resolveCommand=function(a){var b=this,c,d,e,g,k,m,n,r,t;return _.l(function(u){if(u.nextAddress==1)return _.p(u,b.JSC$15146_playerApiPromise,2);c=u.yieldResult;d=c.getOption("captions","track");e=Object.assign({},_.y(a,_.rAb));(k=(g=c.getVideoData())==null?void 0:g.video_id)?e.externalVideoId=k:_.Ki(Error("zi"));if((m=d)==null?0:m.languageCode)e.languageCode=d.languageCode;if((n=d)==null?0:n.kind)e.kind=d.kind;if((r=d)==null?0:r.name)e.name=d.name;t=Object.assign({},a,{getTranscriptEndpoint:e});return _.p(u,
_.St(b.innertubeTransportService,t),0)})};
ET[eB]=[_.xq,_.gu];var FT=function(){};
_.z(FT,NM);FT.prototype.resolveCommand=function(a){var b,c,d,e,g,k,m,n;return _.l(function(r){b=_.y(a,fAb);if((c=b)==null||!c.paramKeyValuePairs)return r.return();d=window.location.href;e=_.h(b.paramKeyValuePairs);for(g=e.next();!g.done;g=e.next())k=g.value,k.key&&k.value&&(m={},d=_.Pi(d,(m[k.key]=k.value,m)));n=_.v().resolve(_.pWb);n.replaceUrl(d);_.se(r)})};var GT=function(a,b){this.JSC$15153_commandHandler=a;this.innertubeTransportService=b};
_.z(GT,NM);
GT.prototype.resolveCommand=function(a,b){var c=this,d,e,g,k,m,n,r,t,u,w,A,C,G,J,I,R,ca;return _.l(function(V){switch(V.nextAddress){case 1:return(g=(d=b)==null?void 0:(e=d.form)==null?void 0:e.element)&&_.aw(g),k=_.wo().get("hl"),m="",_.me(V,2),_.p(V,w4a(k),4);case 4:m=V.yieldResult;_.Jj(V,3);break;case 2:return _.re(V),g&&_.bw(g),_.Bl(Error("Bi"),"ERROR"),V.return();case 3:n=_.y(a,HFb);if(!n)return g&&_.bw(g),V.return();(u=(r=n.commerceActionConfig)==null?void 0:(t=r.commandLifeCycleConfig)==null?
void 0:t.onStartCommand)&&c.JSC$15153_commandHandler.resolveCommand(u);return _.p(V,_.St(c.innertubeTransportService,a,{client_data:{paymentsClientToken:{token:m}}}),5);case 5:(w=V.yieldResult)?(g&&_.bw(g),((J=w)==null?0:J.command)&&c.JSC$15153_commandHandler.resolveCommand(w.command),(ca=(I=n.commerceActionConfig)==null?void 0:(R=I.commandLifeCycleConfig)==null?void 0:R.onSuccessCommand)&&c.JSC$15153_commandHandler.resolveCommand(ca)):(g&&_.bw(g),_.Bl(Error("Ci")),(G=(A=n.commerceActionConfig)==
null?void 0:(C=A.commandLifeCycleConfig)==null?void 0:C.onFailureCommand)&&c.JSC$15153_commandHandler.resolveCommand(G)),_.se(V)}})};
GT[eB]=[_.Xi,_.xq];var HT=function(a,b,c){this.store=a;this.JSC$15169_commandHandler=b;this.innertubeTransportService=c};
_.z(HT,NM);
HT.prototype.resolveCommand=function(a,b){var c=this,d,e,g,k,m,n,r,t,u;return _.l(function(w){d=_.y(a,IFb);e=d.googlePaymentPayload;d.onStartCommand&&c.JSC$15169_commandHandler.resolveCommand(d.onStartCommand);g=e.encryptedPurchaseParams;k=e.ypcLogWalletAnalyticDataEndpoint;m=d.serializedTransactionFlowLoggingParams;n=e.serializedPaymentsClientParams;r=d.ypcCujContext;u=z4a(c.innertubeTransportService,(t=b)==null?void 0:t.form,g,k,m,n,r);return w.return(u.then(function(A){x4a(b==null?void 0:b.form,
!1);var C=c.store,G=c.JSC$15169_commandHandler,J=A.integratorData;J==null||J===""||A.error!=null?(String(A.error)==="-1"&&d.onDismissCommand?G.resolveCommand(d.onDismissCommand):String(A.error)!=="-1"&&d.onFailureCommand&&G.resolveCommand(d.onFailureCommand),String(A.error)!=="-1"&&String(A.error)!=="132"&&_.Bl(Error("Di"),"ERROR")):(d.googlePaymentEntityKey&&C.dispatch(_.vu("commerceAcquisitionClientPayloadEntity",d.googlePaymentEntityKey,{key:d.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:J,
fundsGuaranteeCallbackClientData:A.integratorClientCallbackData}}})),d.onSuccessCommand&&G.resolveCommand(d.onSuccessCommand));_.oo()},function(A){x4a(b==null?void 0:b.form,!1);
_.Bl(A,"ERROR");d.onFailureCommand&&c.JSC$15169_commandHandler.resolveCommand(d.onFailureCommand)}))})};
HT[eB]=[sw,_.Xi,_.xq];var IT=function(a,b){this.JSC$15173_commandHandler=a;this.purchaseManager=b};
_.z(IT,NM);
IT.prototype.resolveCommand=function(a){var b=this,c,d,e,g,k,m,n,r,t;return _.l(function(u){c=_.y(a,JFb);((d=c)==null?0:(e=d.commandLifeCycleConfig)==null?0:e.onStartCommand)&&b.JSC$15173_commandHandler.resolveCommand(c.commandLifeCycleConfig.onStartCommand);if(!((g=c)==null?0:(k=g.googlePaymentPurchaseManagerPayload)==null?0:k.securePayloadBytes))return _.Bl(Error("Ei"),"ERROR"),u.return();m=uqb(_.db(c.googlePaymentPurchaseManagerPayload.securePayloadBytes));n=_.wo().get("hl");r=_.Tt();Kec(m.serialize(),
n,function(w){r.resolve(w)},function(w){r.reject(w)},r.resolve);
t=r.promise;return u.return(t.then(function(w){if(w)if(w==null?0:w.errorCode){_.Bl(Error("Fi`"+w.errorCode),"ERROR");var A,C;((A=c)==null?0:(C=A.commandLifeCycleConfig)==null?0:C.onFailureCommand)&&b.JSC$15173_commandHandler.resolveCommand(c.commandLifeCycleConfig.onFailureCommand)}else if(w==null?0:w.isCancelled){var G,J;((G=c)==null?0:(J=G.commandLifeCycleConfig)==null?0:J.onCancelCommand)&&b.JSC$15173_commandHandler.resolveCommand(c.commandLifeCycleConfig.onCancelCommand)}else{var I,R;((I=c)==
null?0:(R=I.commandLifeCycleConfig)==null?0:R.onSuccessCommand)&&b.JSC$15173_commandHandler.resolveCommand(c.commandLifeCycleConfig.onSuccessCommand)}},function(w){_.Bl(w,"ERROR");
var A,C;((A=c)==null?0:(C=A.commandLifeCycleConfig)==null?0:C.onFailureCommand)&&b.JSC$15173_commandHandler.resolveCommand(c.commandLifeCycleConfig.onFailureCommand)}))})};
IT[eB]=[_.Xi,Lec];var Dfc=function(a,b){this.JSC$15181_commandHandler=a;this.commandAllowlistOverride=b;var c;this.commandAllowlist=(c=this.commandAllowlistOverride)!=null?c:Ut};
Dfc.prototype.handleResponse=function(a,b,c){var d,e=b==null?void 0:(d=b.config)==null?void 0:d.command;if(!e||this.commandAllowlist.some(function(g){return!!_.y(e,g)})){b=void 0;
c!==void 0&&(b={form:{element:c}});a.onResponseReceivedCommand&&this.JSC$15181_commandHandler.resolveCommand(a.onResponseReceivedCommand,b);a.onResponseReceivedAction&&this.JSC$15181_commandHandler.resolveCommand(a.onResponseReceivedAction,b);a.onResponseReceivedEndpoint&&this.JSC$15181_commandHandler.resolveCommand(a.onResponseReceivedEndpoint,b);a.command&&this.JSC$15181_commandHandler.resolveCommand(a.command,b);if(a.onResponseReceivedCommands)for(c=_.h(a.onResponseReceivedCommands),d=c.next();!d.done;d=
c.next())this.JSC$15181_commandHandler.resolveCommand(d.value,b);if(a.onResponseReceivedActions)for(c=_.h(a.onResponseReceivedActions),d=c.next();!d.done;d=c.next())this.JSC$15181_commandHandler.resolveCommand(d.value,b);if(a.onResponseReceivedEndpoints)for(c=_.h(a.onResponseReceivedEndpoints),d=c.next();!d.done;d=c.next())this.JSC$15181_commandHandler.resolveCommand(d.value,b);if(a.actions)for(a=_.h(a.actions),c=a.next();!c.done;c=a.next())this.JSC$15181_commandHandler.resolveCommand(c.value,b)}};
Dfc[eB]=[_.Xi,_.Wi(eUa)];var Efc=new _.fB("INNERTUBE_TOKEN_SERVICE");var Ffc=new _.fB("SCHEDULER_TOKEN");var Gfc=function(a){this.scheduler=a;a={};this.tokenMap=(a.app={},a.user={},a)};
Gfc.prototype.handleResponse=function(a,b){if(!b)throw Error("Gi");var c;if(a=(c=a.responseContext)==null?void 0:c.innertubeTokenJar){if(a.appTokens){var d,e,g;c=(d=b.innerTubeRequest.context)==null?void 0:(e=d.request)==null?void 0:(g=e.innertubeTokenJar)==null?void 0:g.appTokens;Hfc(this,a.appTokens,this.tokenMap.app,c)}if(a.userTokens){var k,m,n;b=(k=b.innerTubeRequest.context)==null?void 0:(m=k.request)==null?void 0:(n=m.innertubeTokenJar)==null?void 0:n.userTokens;Hfc(this,a.userTokens,this.tokenMap.user,
b)}}};
Gfc.prototype.processContext=function(a){a.request||(a.request={});var b=Object.keys(this.tokenMap.app).length,c=Object.keys(this.tokenMap.user).length;if(b||c)a.request.innertubeTokenJar={},b&&(a.request.innertubeTokenJar.appTokens=[].concat(_.Be(Object.values(this.tokenMap.app).flat()))),c&&(a.request.innertubeTokenJar.userTokens=[].concat(_.Be(Object.values(this.tokenMap.user).flat())))};
var Hfc=function(a,b,c,d){b=_.h(b);for(var e=b.next(),g={};!e.done;g={token$jscomp$137:void 0},e=b.next()){g.token$jscomp$137=e.value;if(g.token$jscomp$137.type===void 0)throw new _.qj("InnerTube token has no type",g.token$jscomp$137);if(g.token$jscomp$137.clearTokens)c[g.token$jscomp$137.type]=[];else if(g.token$jscomp$137.value!==void 0){c[g.token$jscomp$137.type]||(c[g.token$jscomp$137.type]=[]);if(d!==void 0&&d.length){e=_.h(d);for(var k=e.next(),m={};!k.done;m={requestToken:void 0},k=e.next())m.requestToken=
k.value,k=c[g.token$jscomp$137.type].findIndex(function(n){return function(r){return r===n.requestToken||(0,_.yf.equals)(r,n.requestToken)}}(m)),k>-1&&c[g.token$jscomp$137.type].splice(k,1)}c[g.token$jscomp$137.type].push(g.token$jscomp$137);
g.token$jscomp$137.maxAgeSeconds&&Number(g.token$jscomp$137.maxAgeSeconds)>0&&a.scheduler.addLowPriorityJob(function(n){return function(){var r=c[n.token$jscomp$137.type].indexOf(n.token$jscomp$137);r>-1&&c[n.token$jscomp$137.type].splice(r,1)}}(g),Number(g.token$jscomp$137.maxAgeSeconds)*1E3)}else throw new _.qj("InnerTube token has no value",g.token$jscomp$137);
}};
Gfc[eB]=[Ffc];var Ifc=new _.fB("LOCAL_INNERTUBE_ROUTER_TOKEN"),Jfc=new _.fB("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var JT=function(a){this.serviceMap=a};
JT.prototype.shouldPreferLocalResponse=function(a,b){return(a=Kfc(this,a))?a.shouldPreferLocalResponse(b):!1};
JT.prototype.localInnertubeResponse=function(a,b){var c=this,d;return _.l(function(e){return(d=Kfc(c,a))?e.return(d.localInnertubeResponse(b)):e.return(Promise.reject(Error("Hi")))})};
JT.prototype.canProvideFallbackResponse=function(a,b){return(a=Kfc(this,a))?a.canProvideFallbackResponse(b):!1};
JT.prototype.localFallbackInnertubeResponse=function(a,b){var c=this,d;return _.l(function(e){return(d=Kfc(c,a))?e.return(d.localFallbackInnertubeResponse(b)):e.return(Promise.reject(Error("Hi")))})};
var Kfc=function(a,b){b=_.gj(b);return b?(a=a.serviceMap[b])?a:null:null};
JT[eB]=[Jfc];var H4a=_.Up(_.to("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var Gw=function(){};
Gw.prototype.shouldPreferLocalResponse=function(){return!1};
Gw.prototype.localInnertubeResponse=function(){return _.l(function(a){return a.return(Promise.reject(Error("Ii")))})};
Gw.prototype.canProvideFallbackResponse=function(){return!0};
Gw.prototype.localFallbackInnertubeResponse=function(){var a,b,c;return _.l(function(d){a=Sv("CLOSE_POPUP");b={openPopupAction:B4a()};c={actions:[a,b]};return d.return(c)})};var yw=function(a,b){this.JSC$15250_upliftPromise=a;this.store=b};
yw.prototype.shouldPreferLocalResponse=function(a){if(!_.x("kevlar_offline_download_unplayable_error_ve")&&!Lfc(this,a))return!1;var b=a.videoId;return!_.x("kevlar_offline_download_unplayable_error_ve")||b&&Lfc(this,a)&&zEa(this.store.getState().entities,b)?J4a(this.store.getState().entities,a.playlistId):!1};
yw.prototype.localInnertubeResponse=function(a){var b=this,c;return _.l(function(d){return(c=b.getPlayerResponse(a))?d.return(Promise.resolve(c)):_.x("kevlar_offline_download_unplayable_error_ve")||Ip(b.store.getState())?d.return(Promise.reject(Error("Ji"))):d.return(Promise.resolve({}))})};
yw.prototype.canProvideFallbackResponse=function(a){return!!a.videoId};
yw.prototype.localFallbackInnertubeResponse=function(a){var b=this,c;return _.l(function(d){if(d.nextAddress==1)return _.p(d,b.JSC$15250_upliftPromise,2);if(c=b.getPlayerResponse(a))d=d.return(Promise.resolve(c));else{var e;if(e=_.x("kevlar_offline_download_unplayable_error_ve"))e=!!yp(b.store.getState().entities,a.videoId);d=e?d.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.dp(_.to("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),
proceedButton:{buttonRenderer:k2a()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):d.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.dp(_.to("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:j2a()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}})}return d})};
var Lfc=function(a,b){return zp(a.store.getState().entities,b.videoId)};
yw.prototype.getPlayerResponse=function(a){return ZEa(this.store.getState().entities,a.videoId)};var Fw=function(a,b){this.localPlayerService=a;this.localWatchNextService=b};
Fw.prototype.shouldPreferLocalResponse=function(a){var b=a.playerRequest;a=a.watchNextRequest;return!!(b&&this.localPlayerService.shouldPreferLocalResponse(b)&&a&&this.localWatchNextService.shouldPreferLocalResponse(a))};
Fw.prototype.localInnertubeResponse=function(a){var b=this,c,d,e,g;return _.l(function(k){if(k.nextAddress==1){c=a.playerRequest;d=a.watchNextRequest;if(!c||!d)throw new _.qj("Missing streaming request",a);return _.p(k,b.localPlayerService.localInnertubeResponse(c),2)}if(k.nextAddress!=3)return e=k.yieldResult,_.p(k,b.localWatchNextService.localInnertubeResponse(d),3);g=k.yieldResult;return k.return({playerResponse:e,watchNextResponse:g})})};
Fw.prototype.canProvideFallbackResponse=function(a){var b=a.playerRequest;a=a.watchNextRequest;return!!(b&&this.localPlayerService.canProvideFallbackResponse(b)&&a&&this.localWatchNextService.canProvideFallbackResponse(a))};
Fw.prototype.localFallbackInnertubeResponse=function(a){var b=this,c,d,e,g;return _.l(function(k){if(k.nextAddress==1)return c=a.playerRequest,d=a.watchNextRequest,c&&d?_.p(k,b.localPlayerService.localFallbackInnertubeResponse(c),2):k.return(Promise.reject(new _.qj("Missing streaming request",a)));if(k.nextAddress!=3)return e=k.yieldResult,_.p(k,b.localWatchNextService.localFallbackInnertubeResponse(d),3);g=k.yieldResult;return k.return({playerResponse:e,watchNextResponse:g})})};var Cw=function(a){this.JSC$15260_persistentStorePromiseAccessor=a};
Cw.prototype.shouldPreferLocalResponse=function(){return!1};
Cw.prototype.localInnertubeResponse=function(){return _.l(function(a){return a.return(Promise.reject(Error("Ki")))})};
Cw.prototype.canProvideFallbackResponse=function(){return!0};
Cw.prototype.localFallbackInnertubeResponse=function(){var a=this,b,c;return _.l(function(d){return d.nextAddress==1?_.p(d,a.JSC$15260_persistentStorePromiseAccessor(),2):d.nextAddress!=3?(b=d.yieldResult)?_.p(d,b.get("service:guide:fallback"),3):d.return(Promise.reject(Error("Li"))):(c=d.yieldResult)&&_.pw(c)?d.return(K4a(_.pw(c))):d.return(Promise.reject(Error("Mi")))})};var Hw=function(){};
Hw.prototype.shouldPreferLocalResponse=function(){return!1};
Hw.prototype.localInnertubeResponse=function(){return _.l(function(a){return a.return(Promise.reject(Error("Ni")))})};
Hw.prototype.canProvideFallbackResponse=function(){return!0};
Hw.prototype.localFallbackInnertubeResponse=function(){var a,b,c;return _.l(function(d){a=Sv("CLOSE_POPUP");b={openPopupAction:B4a()};c={actions:[a,b]};return d.return(c)})};var Bw=function(){this.urlMap=Mfc;this.fallbackCommand=_.vF};
Bw.prototype.shouldPreferLocalResponse=function(a){return(a=a.url)?!!Nfc(this,a):!1};
Bw.prototype.localInnertubeResponse=function(a){var b=this,c;return _.l(function(d){return(c=a.url)?d.return(Ofc(a,Nfc(b,c))):d.return(Promise.reject(Error("Oi")))})};
Bw.prototype.canProvideFallbackResponse=function(){return!0};
Bw.prototype.localFallbackInnertubeResponse=function(a){var b=this,c,d,e,g,k,m,n;return _.l(function(r){c=a.url;if(!c)return r.return(Ofc(a,b.fallbackCommand));if(d=Nfc(b,c))return r.return(Ofc(a,d));e=void 0;g=_.gj(c);g==="/watch"&&(k=_.Hg(c,"v"))&&(n=(m=_.Hg(c,"list"))!=null?m:void 0,e=_.cp(k,n));e||(e=b.fallbackCommand);return r.return(Ofc(a,e))})};
var Nfc=function(a,b){if(b)return a.urlMap[_.Qn(b)]},Ofc=function(a,b){b&&a.parentTrackingParams&&(b.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:a.parentTrackingParams}},b.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:b})};var Dw=function(a,b,c){this.JSC$15270_upliftPromise=a;this.store=b;this.JSC$15270_persistentStorePromiseAccessor=c};
Dw.prototype.shouldPreferLocalResponse=function(){return!1};
Dw.prototype.localInnertubeResponse=function(){return _.l(function(a){return a.return(Promise.reject(Error("Pi")))})};
Dw.prototype.canProvideFallbackResponse=function(){return!0};
Dw.prototype.localFallbackInnertubeResponse=function(){var a=this;return _.l(function(b){return b.return(Pfc(a))})};
var Pfc=function(a){var b,c;return _.l(function(d){if(d.nextAddress==1)return _.p(d,ow(a.JSC$15270_upliftPromise,a.store),2);b=d.yieldResult;c={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[nw(b)]}}}};return d.return(Qfc(a,c))})},Qfc=function(a,b){var c,d;
return _.l(function(e){if(e.nextAddress==1)return _.p(e,a.JSC$15270_persistentStorePromiseAccessor(),2);if(e.nextAddress!=3)return c=e.yieldResult,_.p(e,qw(c),3);d=e.yieldResult;return e.return({responseContext:{},contents:b,topbar:d})})};var zw=function(a,b,c){this.JSC$15277_upliftPromise=a;this.store=b;this.JSC$15277_persistentStorePromiseAccessor=c};
zw.prototype.shouldPreferLocalResponse=function(a){var b=a.videoId;return(_.x("kevlar_offline_download_unplayable_error_ve")||b&&zp(this.store.getState().entities,b))&&(!_.x("kevlar_offline_download_unplayable_error_ve")||b&&zp(this.store.getState().entities,b)&&zEa(this.store.getState().entities,b))?J4a(this.store.getState().entities,a.playlistId):!1};
zw.prototype.localInnertubeResponse=function(a){var b=this,c,d;return _.l(function(e){if(e.nextAddress==1)return _.x("kevlar_offline_download_unplayable_error_ve")?(c=a.videoId)?_.p(e,b.JSC$15277_upliftPromise,2):e.return(Promise.reject(Error("Qi"))):e.return(b.localFallbackInnertubeResponse(a));if(e.nextAddress!=3)return _.p(e,Rfc(b,a,c),3);d=e.yieldResult;return e.return(Sfc(b,d,c))})};
zw.prototype.canProvideFallbackResponse=function(a){return a.videoId?!0:!1};
zw.prototype.localFallbackInnertubeResponse=function(a){var b=this,c,d,e,g,k,m,n,r,t;return _.l(function(u){switch(u.nextAddress){case 1:if(_.x("kevlar_offline_download_unplayable_error_ve"))return u.return(Tfc(b,a));c=a.videoId;if(!c)return u.return(Promise.reject(Error("Qi")));d=a.playlistId;e=_.cp(c,d);return _.p(u,b.JSC$15277_persistentStorePromiseAccessor(),2);case 2:return g=u.yieldResult,_.p(u,qw(g),3);case 3:return k=u.yieldResult,m={responseContext:{},currentVideoEndpoint:e,topbar:k},_.p(u,
b.JSC$15277_upliftPromise,4);case 4:if(zp(b.store.getState().entities,c)){if(!zEa(b.store.getState().entities,c)&&!Ip(b.store.getState()))return n=n2a(),m.contents={singleColumnWatchNextResults:{results:{results:{contents:[nw(n)]}}}},u.return(m);u.jumpTo(5);break}return _.p(u,ow(b.JSC$15277_upliftPromise,b.store),6);case 6:return r=u.yieldResult,m.contents={singleColumnWatchNextResults:{results:{results:{contents:[nw(r)]}}}},u.return(m);case 5:if(t=yp(b.store.getState().entities,c))m.contents=I4a(t);
return u.return(m)}})};
var Tfc=function(a,b){var c,d,e,g;return _.l(function(k){switch(k.nextAddress){case 1:return(c=b.videoId)?_.p(k,a.JSC$15277_upliftPromise,2):k.return(Promise.reject(Error("Qi")));case 2:return _.p(k,Rfc(a,b,c),3);case 3:d=k.yieldResult;if(yp(a.store.getState().entities,c)){k.jumpTo(4);break}return _.p(k,ow(a.JSC$15277_upliftPromise,a.store),5);case 5:return e=k.yieldResult,k.return(Ufc(d,e));case 4:return zp(a.store.getState().entities,c)&&zEa(a.store.getState().entities,c)?k.return(Sfc(a,d,c)):(g=
n2a(),k.return(Ufc(d,g)))}})},Rfc=function(a,b,c){var d,e,g,k,m;
return _.l(function(n){if(n.nextAddress==1)return d=b.playlistId,e=_.cp(c,d),_.p(n,a.JSC$15277_persistentStorePromiseAccessor(),2);if(n.nextAddress!=3)return g=n.yieldResult,_.p(n,qw(g),3);k=n.yieldResult;m={responseContext:{},currentVideoEndpoint:e,topbar:k};return n.return(m)})},Sfc=function(a,b,c){if(a=yp(a.store.getState().entities,c))b.contents=I4a(a);
return b},Ufc=function(a,b){a.contents={singleColumnWatchNextResults:{results:{results:{contents:[nw(b)]}}}};
return a};var Ew=function(a,b,c){this.JSC$15283_upliftPromise=a;this.store=b;this.JSC$15283_persistentStorePromiseAccessor=c};
Ew.prototype.shouldPreferLocalResponse=function(){return!1};
Ew.prototype.localInnertubeResponse=function(){return _.l(function(a){return a.return(Promise.reject(Error("Ri")))})};
Ew.prototype.canProvideFallbackResponse=function(){return!0};
Ew.prototype.localFallbackInnertubeResponse=function(){var a=this,b,c,d,e;return _.l(function(g){switch(g.nextAddress){case 1:return _.p(g,a.JSC$15283_persistentStorePromiseAccessor(),2);case 2:return b=g.yieldResult,_.p(g,qw(b),3);case 3:return c=g.yieldResult,d={responseContext:{},topbar:c},_.p(g,a.JSC$15283_upliftPromise,4);case 4:return _.p(g,ow(a.JSC$15283_upliftPromise,a.store),5);case 5:return e=g.yieldResult,d.watchStatus={backgroundPromoRenderer:e},g.return(d)}})};var Vfc=new _.fB("ENDPOINT_MAP");var Wfc=function(){var a=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return a.sequenceMap}}},PQb=function(a,b,c){var d,e=(d=b.config)==null?void 0:d.sequenceStrategy;
if(!e)return c();a.sequenceMap.has(e.sequenceKey)||a.sequenceMap.set(e.sequenceKey,[]);a=a.sequenceMap.get(e.sequenceKey);switch(e.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return Xfc(a,b,c);case "REQUEST_SEQUENCE_TYPE_REPLACE":return Yfc(a,b,c);default:throw new _.qj("Request could not be sequenced",b);}},Xfc=function(a,b,c){var d,e,g;
return _.l(function(k){a.length>0?(e=a[a.length-1],d=e.responsePromise.then(function(){return c()})):d=c();
g={request:b,responsePromise:d};a.push(g);Zfc(a,g);return k.return(g.responsePromise)})},Yfc=function(a,b,c){c=c();
if(a.length>0)for(var d=_.h(a),e=d.next();!e.done;e=d.next())e.value.responsePromise=c;var g={request:b,responsePromise:c};a.push(g);Zfc(a,g);return Promise.resolve().then(function(){return a.indexOf(g)>0?g.responsePromise.then(function(k){return Object.assign({},k,{sequenceMetaData:{skipProcessing:!0}})}):g.responsePromise})},Zfc=function(a,b){b.responsePromise.then(function(){var c=a.indexOf(b);
c>-1&&a.splice(c,1)})};var $fc=new _.fB("REQUEST_SEQUENCING");var KT=function(){};
_.z(KT,JH);KT.prototype.getApiPaths=function(){return[]};
KT.prototype.getExtension=function(a){return _.y(a,wyb)};
KT.prototype.JSC$11736_buildRequest=function(a,b){a.recaptchaToken=b.recaptchaToken};
KT.prototype.getApiUrl=function(){return"/das_captcha"};var LT=function(){};
_.z(LT,JH);LT.prototype.getApiPaths=function(){return GGb};
LT.prototype.getExtension=function(a){return _.y(a,Yyb)};
LT.prototype.JSC$11736_buildRequest=function(a,b,c){c=c===void 0?{}:c;b.createBackstagePostParams&&(a.createBackstagePostParams=b.createBackstagePostParams);c.comment_text&&(a.commentText=c.comment_text);if(c.attached_video_id)a.videoAttachment={videoId:c.attached_video_id};else if(c.image_poll_options)a.pollAttachmentData={options:c.image_poll_options};else if(c.poll_options)a.pollAttachment={choices:c.poll_options};else if(c.quiz_options)a.quizAttachmentData={options:c.quiz_options};else if(c.image_blob_id)a.imageAttachment=
{encryptedBlobId:c.image_blob_id},c.source_video_id&&(a.imageAttachment.sourceExternalVideoId=c.source_video_id),c.image_preview_coordinates&&(a.imageAttachment.previewCoordinates=JSON.parse(c.image_preview_coordinates));else if(c.images_data)a.imagesAttachment={imagesData:c.images_data};else if(c.clip_external_video_id!==void 0||c.clip_offset_ms!==void 0||c.clip_duration_ms!==void 0){var d,e,g,k,m;a.clipAttachment={externalVideoId:(g=c.clip_external_video_id)!=null?g:"",offsetMs:(k=(d=c.clip_offset_ms)==
null?void 0:d.toString())!=null?k:"",durationMs:(m=(e=c.clip_duration_ms)==null?void 0:e.toString())!=null?m:""}}else c.shared_post_id&&(a.sharedPostAttachment={postId:c.shared_post_id});c.tagged_video_id&&(a.postCreationData={taggedVideoId:c.tagged_video_id});c.access_restrictions&&(typeof c.access_restrictions==="number"&&(b=c.access_restrictions,a.accessRestrictions={restriction:b!==1&&b===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof c.access_restrictions==="string"&&
(a.accessRestrictionsParams=c.access_restrictions));c.scheduled_publish_time_sec&&(a.scheduledPublishTimeSec=c.scheduled_publish_time_sec.toString())};var MT=function(){};
_.z(MT,JH);MT.prototype.getApiPaths=function(){return NGb};
MT.prototype.getExtension=function(a){return _.y(a,ZDb)};
MT.prototype.JSC$11736_buildRequest=function(a,b,c){c=c===void 0?{}:c;b.decorateMessageParams&&(a.params=b.decorateMessageParams);c.text&&(a.text=c.text)};var NT=function(){};
_.z(NT,JH);NT.prototype.getApiPaths=function(){return gHb};
NT.prototype.getExtension=function(a){return _.y(a,Zyb)};
NT.prototype.JSC$11736_buildRequest=function(a,b,c){c=c===void 0?{}:c;c.video_id&&(a.videoId=c.video_id)};var OT=function(){};
_.z(OT,JH);OT.prototype.getApiPaths=function(){return mHb};
OT.prototype.getExtension=function(a){return _.y(a,_.ro)};
OT.prototype.JSC$11736_buildRequest=function(a,b,c){c.suggestions_query&&(a.input=c.suggestions_query)};var PT=function(){};
_.z(PT,JH);PT.prototype.getApiPaths=function(){return SHb};
PT.prototype.getExtension=function(a){return _.y(a,$yb)};
PT.prototype.JSC$11736_buildRequest=function(a,b,c){c.comment_text!==void 0&&(a.commentText=c.comment_text);c.scheduled_publish_time_sec&&(a.scheduledPublishTimeSec=c.scheduled_publish_time_sec.toString());a.updateBackstagePostParams=b.updateBackstagePostParams};var QT=function(){};
_.z(QT,JH);QT.prototype.getApiPaths=function(){return hw};
QT.prototype.getExtension=function(a){return _.y(a,_.Kt)};
QT.prototype.JSC$11736_buildRequest=function(a,b,c){c.formData&&(a.formData=c.formData);b.token?a.continuation=b.token:b.continuationTokenKey&&(c=_.Yp().getState(),b=_.mp(c.entities,"continuationTokenEntity",b.continuationTokenKey))&&(a.continuation=String(b.continuationToken))};
var agc=function(){};
_.z(agc,JH);_.f=agc.prototype;_.f.getApiPaths=function(){return hw};
_.f.getExtension=function(a){return _.y(a,_.pq)};
_.f.isNavigationCommand=function(){return!0};
_.f.JSC$11743_getStoreKey=function(a){if((a=this.getExtension(a))&&a.browseId){var b={browseId:a.browseId};a.browseEndpointContextSupportedConfigs&&(b.browseEndpointContextSupportedConfigs=JSON.stringify(a.browseEndpointContextSupportedConfigs));a.params&&(b.params=a.params);a.query&&(b.query=a.query);return _.Un("browse",b)}};
_.f.JSC$11736_buildRequest=function(a,b,c){b.browseId&&(a.browseId=b.browseId);b.params&&(a.params=b.params);b.query&&(a.query=b.query);c.formData?a.formData=c.formData:b.formData&&(a.formData=b.formData);b.browseId==="FEsubscriptions"&&_.wo().getFlag(155)&&(a.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");b.browseId==="SPaccount_playback"&&(c=_.wo(),a.formData||(a.formData={}),a.formData.accountSettingsFormData={flagCaptionsDefaultOff:c.getFlag(65),flagAutoCaptionsDefaultOn:c.getFlag(66),
flagDisableInlinePreview:c.getFlag(186),flagAudioDescriptionDefaultOn:c.getFlag(198)});if(b.browseId==="FEwhat_to_watch"){c=_.wo();var d=c.getFlag(196);c.getFlag(197)&&(a.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:d}}})}b.browseId==="FEwhat_to_watch"&&(b=_.wo().getFlag(186),a.inlineSettingStatus=b?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.f.getRequestConfig=function(a,b){b=b===void 0?{}:b;var c={};if(a=this.JSC$11743_getStoreKey(a,b))c.storeStrategy={storeKey:a,disableCache:b.disableCache};_.x("web_log_browse_ticks_ks")||(c.requestTick="br_s",c.responseTick="br_r");return c};var RT=function(){};
_.z(RT,JH);RT.prototype.getApiPaths=function(){return AGb};
RT.prototype.getExtension=function(a){return _.y(a,oAb)};
RT.prototype.JSC$11736_buildRequest=function(a,b,c){a.legacyYoutubeChannelUsername=c.legacyYouTubeChannelUsername||"";a.legacyYoutubeChannelPassword=c.legacyYouTubeChannelPassword||""};var ST=function(){};
_.z(ST,JH);ST.prototype.getApiPaths=function(){return IHb};
ST.prototype.getExtension=function(a){return _.y(a,hzb)};
ST.prototype.JSC$11736_buildRequest=function(a,b,c){c.recaptcha_response_token&&(a.recaptchaResponseToken=c.recaptcha_response_token);c.channel_id&&(a.channelId=c.channel_id)};var TT=function(){};
_.z(TT,JH);TT.prototype.getApiPaths=function(){return THb};
TT.prototype.getExtension=function(a){return _.y(a,nzb)};
TT.prototype.JSC$11736_buildRequest=function(a,b,c){b.externalChannelId&&(a.externalChannelId=b.externalChannelId);c.handle&&(a.handleUpdate={handle:c.handle},b.handleEditSource&&(a.handleUpdate.handleEditSource=b.handleEditSource))};var UT=function(){};
_.z(UT,JH);UT.prototype.getApiPaths=function(){return XHb};
UT.prototype.getExtension=function(a){return _.y(a,Bzb)};
UT.prototype.JSC$11736_buildRequest=function(a,b,c){b.request&&(a.channelId=b.request.channelId);var d;if(c==null?0:(d=c.uploadDefaults)==null?0:d.emojiReactionSet)a.uploadDefaultsRequest||(a.uploadDefaultsRequest={}),a.uploadDefaultsRequest.emojiReactionSet=c.uploadDefaults.emojiReactionSet};var VT=function(){};
_.z(VT,JH);VT.prototype.getApiPaths=function(){return $Hb};
VT.prototype.getExtension=function(a){return _.y(a,izb)};
VT.prototype.JSC$11736_buildRequest=function(a,b,c){b.externalChannelId&&(a.externalChannelId=b.externalChannelId);b.channelHandleEntityKey&&(a.channelHandleEntityKey=b.channelHandleEntityKey);b.handleEditSource&&(a.handleEditSource=b.handleEditSource);c.handle?a.handle=c.handle:c.name&&(a.name=c.name)};var WT=function(){};
_.z(WT,JH);WT.prototype.getApiPaths=function(){return DGb};
WT.prototype.getExtension=function(a){return _.y(a,QE)};
WT.prototype.JSC$11736_buildRequest=function(a,b){b.actions?a.actions=b.actions:b.action&&(a.actions=[b.action])};var XT=function(){};
_.z(XT,JH);XT.prototype.getApiPaths=function(){return EGb};
XT.prototype.getExtension=function(a){return _.y(a,_.Kt)};
XT.prototype.JSC$11736_buildRequest=function(a,b){b.token&&(a.continuation=b.token)};var ZT=function(){};
_.z(ZT,JH);ZT.prototype.getApiPaths=function(){return eHb};
ZT.prototype.getExtension=function(a){return _.y(a,_.Kt)};
ZT.prototype.JSC$11736_buildRequest=function(a,b){a.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";b.token&&(a.fetchCommentsParams={continuation:b.token})};var $T=function(){};
_.z($T,JH);$T.prototype.getApiPaths=function(){return JGb};
$T.prototype.getExtension=function(a){return _.y(a,EEb)};
$T.prototype.JSC$11736_buildRequest=function(a,b,c){c=c===void 0?{}:c;b.createReplyParams&&(a.createReplyParams=b.createReplyParams);b.commentText&&(a.commentText=_.Vp(b.commentText));c.comment_text&&(a.commentText=c.comment_text);c.image_blob_id&&(a.imageAttachment={encryptedBlobId:c.image_blob_id});c.botguard_response&&(a.botguardResponse=c.botguard_response)};
_.Vm.Object.defineProperties($T.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var aU=function(){};
_.z(aU,JH);aU.prototype.getApiPaths=function(){return KGb};
aU.prototype.getExtension=function(a){return _.y(a,_.DEb)};
aU.prototype.JSC$11736_buildRequest=function(a,b,c){c=c===void 0?{}:c;b.createCommentParams&&(a.createCommentParams=b.createCommentParams);b.commentText&&(a.commentText=_.Vp(b.commentText));b.videoPositionMention&&(a.videoPositionMention=b.videoPositionMention);b.sources&&(a.sources=b.sources);c.comment_text&&(a.commentText=c.comment_text);c.attached_video_id?a.videoAttachment={videoId:c.attached_video_id}:c.poll_options?a.pollAttachment={choices:c.poll_options}:c.image_blob_id?a.imageAttachment=
{encryptedBlobId:c.image_blob_id}:c.shared_post_id&&(a.sharedPostAttachment={postId:c.shared_post_id});c.access_restrictions&&typeof c.access_restrictions==="number"&&(b=c.access_restrictions,a.accessRestrictions={restriction:b!==1&&b===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});c.botguard_response&&(a.botguardResponse=c.botguard_response)};
_.Vm.Object.defineProperties(aU.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var bU=function(){};
_.z(bU,JH);bU.prototype.getApiPaths=function(){return UHb};
bU.prototype.getExtension=function(a){return _.y(a,GEb)};
bU.prototype.JSC$11736_buildRequest=function(a,b,c){b.commentText&&(a.replyText=_.Vp(b.commentText));c.comment_text&&(a.replyText=c.comment_text);a.updateReplyParams=b.updateReplyParams};
_.Vm.Object.defineProperties(bU.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var cU=function(){};
_.z(cU,JH);cU.prototype.getApiPaths=function(){return VHb};
cU.prototype.getExtension=function(a){return _.y(a,FEb)};
cU.prototype.JSC$11736_buildRequest=function(a,b,c){b.commentText&&(a.commentText=_.Vp(b.commentText));c.comment_text&&(a.commentText=c.comment_text);a.updateCommentParams=b.updateCommentParams};
_.Vm.Object.defineProperties(cU.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var dU=function(){};
_.z(dU,JH);dU.prototype.getApiPaths=function(){return WHb};
dU.prototype.getExtension=function(a){return _.y(a,xzb)};
dU.prototype.JSC$11736_buildRequest=function(a,b){b.settings&&(a.settings=b.settings)};var eU=function(){};
_.z(eU,JH);eU.prototype.getApiPaths=function(){return YGb};
eU.prototype.getExtension=function(a){return _.y(a,jzb)};
eU.prototype.JSC$11736_buildRequest=function(a,b){b.channelCreationToken&&(a.channelCreationToken=b.channelCreationToken);b.source&&(a.source=b.source)};var fU=function(){};
_.z(fU,JH);fU.prototype.getApiPaths=function(){return IGb};
fU.prototype.getExtension=function(a){return _.y(a,mzb)};
fU.prototype.JSC$11736_buildRequest=function(a,b,c){c=c===void 0?{}:c;if(c.name&&(c.given_name||c.family_name))a=new _.qj("channel creation cannot set both GAIA and YouTube names",b),_.Bl(a);else{if(b.zeroStepChannelCreationParams){if(!c.comment_text){a=new _.qj("zero_step_create_comment_params but no zero_step_texts",b);_.Bl(a);return}a.zeroStepChannelCreationParams=b.zeroStepChannelCreationParams;a.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(a.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
c.comment_text,c.botguard_response&&(a.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=c.botguard_response))}a.channelCreationToken=b.channelCreationToken;c.given_name&&(a.givenName=c.given_name);c.family_name&&(a.familyName=c.family_name);b.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(a.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(c.name||c.handle||c.avatar_url||c.encryptedBlobId||c.isNameChanged!==void 0||c.isHandleChanged!==void 0||c.isDefaultProfilePhoto!==
void 0||c.obakeImageSource)a.overrideChannelCreationParams={},c.name&&(a.overrideChannelCreationParams.name=c.name),c.handle&&(a.overrideChannelCreationParams.handle=c.handle),c.avatar_url&&(a.overrideChannelCreationParams.avatarUrl=c.avatar_url),c.encryptedBlobId&&(a.overrideChannelCreationParams.blobEncryptionId=c.encryptedBlobId),c.enableIdentityForAllChannelCreationDialog&&(c.encryptedBlobId?a.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
c.isDefaultProfilePhoto!==void 0&&(a.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=c.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),c.isNameChanged!==void 0&&(a.overrideChannelCreationParams.identityForAllChannelCreationNameTag=c.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),c.isHandleChanged!==
void 0&&(a.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=c.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),c.obakeImageSource&&(a.overrideChannelCreationParams.obakeImageSourceType=c.obakeImageSource))}};var gU=function(){};
_.z(gU,JH);gU.prototype.getApiPaths=function(a){return(a=this.getExtension(a))&&a.status==="DISLIKE"?RGb:a&&a.status==="INDIFFERENT"?DHb:rHb};
gU.prototype.getExtension=function(a){return _.y(a,_.$v)};
gU.prototype.JSC$11736_buildRequest=function(a,b){b.target&&(a.target=b.target);if(b=this.getParams(b))a.params=b};
gU.prototype.getParams=function(a){switch(a==null?void 0:a.status){case "DISLIKE":return a.dislikeParams;case "INDIFFERENT":return a.removeLikeParams;default:return a==null?void 0:a.likeParams}};var hU=function(){};
_.z(hU,JH);hU.prototype.getApiPaths=function(){return NHb};
hU.prototype.getExtension=function(a){return _.y(a,MEb)};
hU.prototype.JSC$11736_buildRequest=function(a,b){b.settingItemId&&(a.settingItemId=b.settingItemId);b.stringValue!=null&&b.stringValue!==void 0?a.newValue={stringValue:b.stringValue}:b.intValue?a.newValue={intValue:b.intValue}:b.boolValue!==null&&b.boolValue!==void 0?a.newValue={boolValue:b.boolValue}:(a=new _.qj("Unknown value type for SetSettingEndpoint.",b),_.Bl(a))};var iU=function(){};
_.z(iU,JH);iU.prototype.getApiPaths=function(){return PHb};
iU.prototype.getExtension=function(a){return _.y(a,bFb)||void 0};
iU.prototype.JSC$11736_buildRequest=function(a,b,c){c=c===void 0?{}:c;b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params);c.botguardResponse&&(a.botguardResponse=c.botguardResponse);c.feature&&(a.clientFeature=c.feature)};
_.Vm.Object.defineProperties(iU.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var jU=function(){};
_.z(jU,JH);jU.prototype.getApiPaths=function(){return RHb};
jU.prototype.getExtension=function(a){return _.y(a,NEb)||void 0};
jU.prototype.JSC$11736_buildRequest=function(a,b){b.channelIds&&(a.channelIds=b.channelIds);b.siloName&&(a.siloName=b.siloName);b.params&&(a.params=b.params)};
_.Vm.Object.defineProperties(jU.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var kU=function(a){this.shareClientParamsProvider=a};
_.z(kU,JH);kU.prototype.getApiPaths=function(){return iHb};
kU.prototype.getExtension=function(a){return _.y(a,pDb)||_.y(a,_.qDb)||_.y(a,oDb)};
kU.prototype.JSC$11736_buildRequest=function(a,b){b.serializedShareEntity&&(a.serializedSharedEntity=b.serializedShareEntity);if(b.clientParamIdentifier){var c;if((c=this.shareClientParamsProvider)==null?0:c.clientParams.has(b.clientParamIdentifier)){c=this.shareClientParamsProvider;b=b.clientParamIdentifier;var d=c.clientParams.get(b);d&&c.clientParams.delete(b);a.clientParams=d}}};
kU[eB]=[qdc];var lU=function(){};
_.z(lU,JH);lU.prototype.getApiPaths=function(){return xGb};
lU.prototype.getExtension=function(a){return _.y(a,yAb)};
lU.prototype.JSC$11736_buildRequest=function(a,b){b.params&&(a.params=b.params)};var mU=function(){};
_.z(mU,JH);mU.prototype.getApiPaths=function(){return SGb};
mU.prototype.getExtension=function(a){return _.y(a,vAb)};
mU.prototype.JSC$11736_buildRequest=function(a,b){b.dismissal&&(a.items=[b.dismissal])};
_.Vm.Object.defineProperties(mU.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var nU=function(){};
_.z(nU,JH);nU.prototype.getApiPaths=function(){return pHb};
nU.prototype.getExtension=function(a){return _.y(a,_.Pw)||void 0};
nU.prototype.JSC$11736_buildRequest=function(a,b,c){a.feedbackTokens=[];b.feedbackToken&&a.feedbackTokens.push(b.feedbackToken);if(b=b.cpn||c.cpn)a.feedbackContext={cpn:b};a.isFeedbackTokenUnencrypted=!!c.is_feedback_token_unencrypted;a.shouldMerge=!1;c.extra_feedback_tokens&&(a.shouldMerge=!0,a.feedbackTokens=a.feedbackTokens.concat(c.extra_feedback_tokens))};
_.Vm.Object.defineProperties(nU.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var oU=function(){};
_.z(oU,JH);oU.prototype.getApiPaths=function(){return pHb};
oU.prototype.getExtension=function(a){return _.y(a,_.ro)};
oU.prototype.JSC$11736_buildRequest=function(a,b,c){c.feedback_tokens&&(a.feedbackTokens=c.feedback_tokens,a.shouldMerge=!0)};
_.Vm.Object.defineProperties(oU.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var pU=function(){};
_.z(pU,JH);pU.prototype.getApiPaths=function(){return pHb};
pU.prototype.getExtension=function(a){return _.y(a,y6a)};
pU.prototype.JSC$11736_buildRequest=function(a,b){b.undoToken&&(a.feedbackTokens=[b.undoToken]);b.isUndoTokenUnencrypted&&(a.isFeedbackTokenUnencrypted=b.isUndoTokenUnencrypted)};
_.Vm.Object.defineProperties(pU.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var qU=function(){};
_.z(qU,JH);qU.prototype.getApiPaths=function(){return aIb};
qU.prototype.getExtension=function(a){return _.y(a,sAb)};
qU.prototype.JSC$11736_buildRequest=function(a,b){b.nextEndpoint&&_.y(b.nextEndpoint,_.Ml)?a.nextEndpoint={urlEndpoint:_.y(b.nextEndpoint,_.Ml)}:b.nextEndpoint&&_.y(b.nextEndpoint,_.Vn)&&(a.nextEndpoint={watchEndpoint:_.y(b.nextEndpoint,_.Vn)});b.setRacy&&(a.setRacy=b.setRacy);b.setControvercy&&(a.setControvercy=b.setControvercy)};var rU=function(a){this.JSC$15465_storeWithEntities=a};
_.z(rU,JH);rU.prototype.getApiPaths=function(){return UGb};
rU.prototype.getExtension=function(a){return _.y(a,QAb)};
rU.prototype.JSC$11736_buildRequest=function(a,b){b.flowId&&(a.flowId=b.flowId);b.targetId&&(a.targetId=b.targetId);b.continuation&&(a.continuation=b.continuation);var c=b.flowStateEntityKey;if(b.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&c&&this.JSC$15465_storeWithEntities){var d;if(b=(d=this.JSC$15465_storeWithEntities.getState())==null?void 0:d.entities)if(d=_.ip(c).entityType,d=_.mp(b,d,c))a.flowState=d,a.flowStateEntityKey=c}};
rU[eB]=[sw];var bgc=function(){};
_.z(bgc,JH);_.f=bgc.prototype;_.f.getApiPaths=function(){return oHb};
_.f.JSC$11743_getStoreKey=function(){return _.Un("guide")};
_.f.getRequestConfig=function(){var a=this.JSC$11743_getStoreKey(),b;a&&(b={storeStrategy:{storeKey:a}});return b};
_.f.isNavigationCommand=function(){return!0};
_.f.getExtension=function(a){return _.y(a,_.ro)};
_.f.JSC$11736_buildRequest=function(a){a.fetchLiveState=!0};var sU=function(){};
_.z(sU,JH);sU.prototype.getApiPaths=function(){return BGb};
sU.prototype.getExtension=function(a){return _.y(a,AEb)};
sU.prototype.JSC$11736_buildRequest=function(){};var tU=function(){};
_.z(tU,JH);tU.prototype.getApiPaths=function(){return CGb};
tU.prototype.getExtension=function(a){return _.y(a,BEb)};
tU.prototype.JSC$11736_buildRequest=function(){};var uU=function(){};
_.z(uU,JH);uU.prototype.getApiPaths=function(){return wGb};
uU.prototype.getExtension=function(a){return _.y(a,_.Kt)};
uU.prototype.JSC$11736_buildRequest=function(a,b){b.token&&(a.continuation=b.token);var c,d;a==null||(c=a.context)==null||(d=c.user)==null||delete d.onBehalfOfUser};
uU.prototype.getRequestConfig=function(a){var b={},c;if(((c=this.getExtension(a))==null?void 0:c.sessionIndex)!==void 0){var d;b={authStrategy:{sessionIndex:(d=this.getExtension(a))==null?void 0:d.sessionIndex}}}return b};var vU=function(){};
_.z(vU,JH);vU.prototype.JSC$11736_getRequest=function(a){var b=this.getExtension(a),c=a="";if(b==null?0:b.popup)a="true";if(b==null?0:b.disableSignout)c="true";b={};return{input:"/getAccountSwitcherEndpoint",requestShell:Tn("/getAccountSwitcherEndpoint","GET",(b["X-YouTube-Delegation-Context"]=_.Ei("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),b["X-YouTube-Account-Switcher-Popup"]=a,b["X-YouTube-Account-Switcher-Disable-Signout"]=c,b)),innerTubeRequest:{}}};
vU.prototype.getApiPaths=function(){return[]};
vU.prototype.getExtension=function(a){return _.y(a,_.aUa)};
vU.prototype.JSC$11736_buildRequest=function(){};var wU=function(){};
_.z(wU,JH);wU.prototype.JSC$11736_getRequest=function(a){var b="/cross_account_channel_transfer";(a=this.getExtension(a))&&(b=Wna(b,{target_session:a.targetSessionIndex,source_rapt:a.sourceRapt,rapt:a.targetRapt}));return{input:b,requestShell:Tn(b,"GET"),innerTubeRequest:{}}};
wU.prototype.getApiPaths=function(){return[]};
wU.prototype.getExtension=function(a){return _.y(a,Cyb)};
wU.prototype.JSC$11736_buildRequest=function(){};var xU=function(){};
_.z(xU,JH);xU.prototype.getApiPaths=function(){return VGb};
xU.prototype.isNavigationCommand=function(){return!0};
xU.prototype.getExtension=function(a){return _.y(a,_.ro)};
xU.prototype.JSC$11736_buildRequest=function(a){var b=_.wo().get("gsml","");b&&(a.safetyModeLockerObfuscatedGaiaId=b);a.userInterfaceTheme=_.Hq(!0);_.Iq()?a.deviceTheme="DEVICE_THEME_SELECTED":_.gJa()?a.deviceTheme="DEVICE_THEME_SUPPORTED":a.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var yU=function(){};
_.z(yU,JH);yU.prototype.getApiPaths=function(){return wGb};
yU.prototype.getExtension=function(a){return _.y(a,Dyb)};
yU.prototype.JSC$11736_buildRequest=function(a,b){if(b&&b.requestType&&(a.requestType=b.requestType,b.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||b.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var c=b.nextUrl;c&&(_.Yna(c)||Ui(c))&&(a.nextNavendpoint={urlEndpoint:{url:c}})}b&&b.channelSwitcherQuery&&(a.channelSwitcherQuery=b.channelSwitcherQuery);b&&b.triggerChannelCreation&&(a.triggerChannelCreation=b.triggerChannelCreation);var d;if(b==null?0:(d=b.contentOwnerConfig)==
null?0:d.externalContentOwnerId)a.contentOwnerConfig=b.contentOwnerConfig;a.callCircumstance=b&&b.requestType&&b.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var e,g;b=a==null?void 0:(e=a.context)==null?void 0:(g=e.user)==null?void 0:g.onBehalfOfUser;if(b!==void 0){a.obfuscatedSelectedGaiaId=b;var k,m;a==null||(k=a.context)==null||(m=k.user)==null||delete m.onBehalfOfUser}var n,r;if(e=a==null?void 0:(n=a.context)==null?void 0:(r=n.user)==null?
void 0:r.serializedDelegationContext)a.selectedSerializedDelegationContext=e};var zU=function(){};
_.z(zU,JH);zU.prototype.getApiPaths=function(){return hHb};
zU.prototype.getExtension=function(a){return _.y(a,yyb)};
zU.prototype.JSC$11736_buildRequest=function(a,b){b.profileOwnerExternalChannelId&&(a.profileOwnerExternalChannelId=b.profileOwnerExternalChannelId);b.profileCardContext&&(a.profileCardContext=b.profileCardContext)};var AU=function(){};
_.z(AU,JH);AU.prototype.getApiPaths=function(){return yGb};
AU.prototype.getExtension=function(a){return _.y(a,rDb)};
AU.prototype.JSC$11736_buildRequest=function(a,b){b.params&&(a.params=b.params)};var BU=function(){};
_.z(BU,JH);BU.prototype.getApiPaths=function(){return HGb};
BU.prototype.getExtension=function(a){return _.y(a,_.FCb)};
BU.prototype.JSC$11736_buildRequest=function(a,b){if(b=b.createBroadcastRequest)a.useMasks=b.useMasks,a.broadcastType=b.broadcastType,a.broadcastSource=b.broadcastSource,a.broadcastMetadata=b.broadcastMetadata,a.broadcastMetadataMask=b.broadcastMetadataMask,a.videoMetadata=b.videoMetadata,a.videoMetadataMask=b.videoMetadataMask,a.liveChatSettingsUpdate=b.liveChatSettingsUpdate,a.liveChatSettingsUpdateMask=b.liveChatSettingsUpdateMask,a.cloneVideoId=b.cloneVideoId,a.cloneWithOverrides=b.cloneWithOverrides,
a.targetEntity=b.targetEntity,a.scheduledRedirectMetadata=b.scheduledRedirectMetadata};var CU=function(){};
_.z(CU,JH);CU.prototype.getApiPaths=function(){return LGb};
CU.prototype.getExtension=function(a){return _.y(a,GBb)};
CU.prototype.JSC$11736_buildRequest=function(a,b,c){c=c===void 0?{}:c;b.params&&(a.params=b.params);c.questionText&&(a.questionText=c.questionText);c.optionText&&c.optionText.length>0&&(a.optionText=c.optionText)};var DU=function(){};
_.z(DU,JH);DU.prototype.getApiPaths=function(){return OGb};
DU.prototype.getExtension=function(a){return _.y(a,EBb)};
DU.prototype.JSC$11736_buildRequest=function(a,b){b.params&&(a.params=b.params)};var EU=function(){};
_.z(EU,JH);EU.prototype.getApiPaths=function(){return $Gb};
EU.prototype.getExtension=function(a){return _.y(a,ABb)};
EU.prototype.JSC$11736_buildRequest=function(a,b){b.params&&(a.params=b.params)};var FU=function(){};
_.z(FU,JH);FU.prototype.getApiPaths=function(){return bHb};
FU.prototype.getExtension=function(a){return _.y(a,BBb)};
FU.prototype.JSC$11736_buildRequest=function(a,b,c){b.params&&(a.params=b.params);b.continuation&&(a.continuation=b.continuation);c.currentPlayerState&&c.currentPlayerState.playerOffsetMs&&(a.currentPlayerState={playerOffsetMs:c.currentPlayerState.playerOffsetMs.toString()})};var GU=function(){};
_.z(GU,JH);GU.prototype.getApiPaths=function(){return cHb};
GU.prototype.getExtension=function(a){return _.y(a,zBb)};
GU.prototype.JSC$11736_buildRequest=function(a,b,c){b.params&&(a.params=b.params);c.continuation&&(a.continuation=c.continuation);"hidden"in c&&(a.webClientInfo={isDocumentHidden:c.hidden});c.isInvalidationTimeoutRequest&&(a.isInvalidationTimeoutRequest=c.isInvalidationTimeoutRequest);c.invalidationPayload&&(b=yBb(_.db(Vi(c.invalidationPayload))),a.invalidationPayloadLastPublishAtUsec=Qx(b,2));c.reloadActionPanel&&(a.reloadActionPanel=c.reloadActionPanel);c.fullReload&&(a.fullReload=c.fullReload);
c.currentPlayerState&&(a.currentPlayerState=c.currentPlayerState)};var HU=function(){};
_.z(HU,JH);HU.prototype.getApiPaths=function(){return sHb};
HU.prototype.getExtension=function(a){return _.y(a,FBb)};
HU.prototype.JSC$11736_buildRequest=function(a,b){a.params=b.params};var IU=function(){};
_.z(IU,JH);IU.prototype.getApiPaths=function(){return aHb};
IU.prototype.getExtension=function(a){return _.y(a,HDb)};
IU.prototype.JSC$11736_buildRequest=function(a,b){b.params&&(a.params=b.params)};var JU=function(){};
_.z(JU,JH);JU.prototype.getApiPaths=function(){return dHb};
JU.prototype.getExtension=function(a){return _.y(a,IDb)};
JU.prototype.JSC$11736_buildRequest=function(a,b){b.params&&(a.params=b.params)};var KU=function(){};
_.z(KU,JH);KU.prototype.getApiPaths=function(){return tHb};
KU.prototype.getExtension=function(a){return _.y(a,HBb)};
KU.prototype.JSC$11736_buildRequest=function(a,b){b.params&&(a.params=b.params)};var LU=function(){};
_.z(LU,JH);LU.prototype.getApiPaths=function(){return vHb};
LU.prototype.getExtension=function(a){return _.y(a,IBb)};
LU.prototype.JSC$11736_buildRequest=function(a,b){b.params&&(a.params=b.params)};var MU=function(){};
_.z(MU,JH);MU.prototype.getApiPaths=function(){return EHb};
MU.prototype.getExtension=function(a){return _.y(a,uDb)};
MU.prototype.JSC$11736_buildRequest=function(a,b){b.params&&(a.params=b.params)};var NU=function(){};
_.z(NU,JH);NU.prototype.getApiPaths=function(){return LHb};
NU.prototype.getExtension=function(a){return _.y(a,_.JBb)};
NU.prototype.JSC$11736_buildRequest=function(a,b,c){c=c===void 0?{}:c;b.params&&(a.params=b.params);c.client_message_id&&(a.clientMessageId=c.client_message_id);c.recaptcha_token&&(a.recaptchaToken=c.recaptcha_token);c.rich_message&&c.rich_message.text_segments?(b=c.rich_message.text_segments.map(function(d){var e={};d.text&&(e.text=d.text);d.emoji_id&&(e.emojiId=d.emoji_id);return e}),a.richMessage={textSegments:b}):c.message&&(a.message=c.message);
c.currentPlayerState&&(a.currentPlayerState=c.currentPlayerState)};var OU=function(){};
_.z(OU,JH);OU.prototype.getApiPaths=function(){return MHb};
OU.prototype.getExtension=function(a){return _.y(a,KBb)};
OU.prototype.JSC$11736_buildRequest=function(a,b){b.params&&(a.params=b.params)};var PU=function(){};
_.z(PU,JH);PU.prototype.getApiPaths=function(){return QHb};
PU.prototype.getExtension=function(a){return _.y(a,MBb)};
PU.prototype.JSC$11736_buildRequest=function(a,b,c){b.isUserInitiated&&(a.isUserInitiated=b.isUserInitiated);b.initiationSource&&(a.initiationSource=b.initiationSource);c.locationInfo&&(a.context.client.locationInfo=c.locationInfo)};var QU=function(){};
_.z(QU,JH);QU.prototype.getApiPaths=function(){return uHb};
QU.prototype.getExtension=function(a){return _.y(a,GCb)};
QU.prototype.JSC$11736_buildRequest=function(a,b,c){b.metadataUpdateRequest&&(b=b.metadataUpdateRequest,a.encryptedVideoId=b.encryptedVideoId,b.liveChat&&(b=b.liveChat,a.liveChat||(a.liveChat={}),b.performAsExternalChannelId&&(a.liveChat.performAsExternalChannelId=b.performAsExternalChannelId),b.source&&(a.liveChat.source=b.source)));var d;if(c==null?0:(d=c.liveChat)==null?0:d.liveChatSettings)a.liveChat||(a.liveChat={}),c=c.liveChat.liveChatSettings,a.liveChat.newLiveChatSettings=c,a.liveChat.newLiveChatSettingsMask||
(a.liveChat.newLiveChatSettingsMask={}),c.emojiReactionSet&&(a.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var RU=function(){};
_.z(RU,JH);RU.prototype.getApiPaths=function(){return ZHb};
RU.prototype.getExtension=function(a){return _.y(a,_.OEb)};
RU.prototype.JSC$11736_buildRequest=function(a,b,c){c.continuation?a.continuation=c.continuation:b.videoId&&(a.videoId=b.videoId);c.clientParams&&(a.clientParams=c.clientParams)};var SU=function(){};
_.z(SU,JH);SU.prototype.getApiPaths=function(){return eHb};
SU.prototype.getExtension=function(a){return _.y(a,_.KE)};
SU.prototype.JSC$11736_buildRequest=function(a,b){a.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";a.fetchCommentsParams={};b.videoId&&(a.fetchCommentsParams.encryptedVideoId=b.videoId);b.postId&&(a.fetchCommentsParams.postId=b.postId);b.externalChannelId&&(a.fetchCommentsParams.externalChannelId=b.externalChannelId);b.linkedCommentId&&(a.fetchCommentsParams.linkedCommentId=b.linkedCommentId);(0,_.yf.isEmpty)(a.fetchCommentsParams)&&delete a.fetchCommentsParams};var TU=function(){};
_.z(TU,JH);TU.prototype.getApiPaths=function(){return hw};
TU.prototype.JSC$11736_buildRequest=function(a){a.browseId="FEnotifications_inbox"};
TU.prototype.getExtension=function(a){return _.y(a,_.ro)};var UU=function(){};
_.z(UU,JH);UU.prototype.getApiPaths=function(){return eHb};
UU.prototype.JSC$11736_buildRequest=function(a,b){b.signal==="GET_NOTIFICATIONS_MENU"&&(a.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");b.ctoken&&(a.ctoken=b.ctoken)};
var cgc=function(){};
_.z(cgc,UU);cgc.prototype.getExtension=function(a){return _.y(a,_.ro)};
var dgc=function(){};
_.z(dgc,UU);dgc.prototype.getExtension=function(a){return _.y(a,pAb)};var VU=function(){};
_.z(VU,JH);VU.prototype.getApiPaths=function(){return lHb};
VU.prototype.getExtension=function(a){return _.y(a,_.ro)};
VU.prototype.JSC$11736_buildRequest=function(){};var WU=function(){};
_.z(WU,JH);WU.prototype.getApiPaths=function(){return wHb};
WU.prototype.getExtension=function(a){return _.y(a,JEb)||void 0};
WU.prototype.JSC$11736_buildRequest=function(a,b){b.params&&(a.params=b.params);b.secondaryParams&&(a.secondaryParams=b.secondaryParams)};var XU=function(){};
_.z(XU,JH);XU.prototype.getApiPaths=function(){return xHb};
XU.prototype.getExtension=function(a){return _.y(a,sDb)};
XU.prototype.JSC$11736_buildRequest=function(a,b){b.undo&&(a.undo=b.undo);b.serializedOptOut&&(a.serializedOptOut=b.serializedOptOut);b.serializedRecordInteractionsRequest&&(a.serializedRecordInteractionsRequest=b.serializedRecordInteractionsRequest)};var YU=function(){};
_.z(YU,JH);YU.prototype.getApiPaths=function(){return AHb};
YU.prototype.getExtension=function(a){return _.y(a,tDb)};
YU.prototype.JSC$11736_buildRequest=function(a,b){b.serializedInteractionsRequest&&(a.serializedRecordNotificationInteractionsRequest=b.serializedInteractionsRequest)};var ZU=function(){};
_.z(ZU,JH);ZU.prototype.getApiPaths=function(){return O3a};
ZU.prototype.getExtension=function(a){return _.y(a,iUa)};
ZU.prototype.JSC$11736_buildRequest=function(a,b,c){b=b===void 0?{}:b;c=c===void 0?{}:c;b.videoId?a.videoId=b.videoId:b.playlistId&&(a.playlistId=b.playlistId);var d,e=(d=b.offlineWebClientEligibility)!=null?d:c.offlineWebClientEligibility;e&&(a.offlineWebClientEligibility=e);var g;if(d=(g=b.preferredFormatType)!=null?g:c.preferredFormatType)a.preferredFormatType=d;var k;if(g=(k=b.lastOfflineQualitySettingsSavedMs)!=null?k:c.lastOfflineQualitySettingsSavedMs)a.lastOfflineQualitySettingsSavedMs=g;
b.params&&(a.params=b.params)};var $U=function(){};
_.z($U,JH);$U.prototype.getApiPaths=function(){return aF};
$U.prototype.getExtension=function(a){return _.y(a,_.Kt)};
$U.prototype.JSC$11736_buildRequest=function(a,b,c){c=c===void 0?{}:c;b.token&&(a.continuation=b.token);c.formData&&(a.formData=c.formData)};var aV=function(){};
_.z(aV,JH);aV.prototype.getApiPaths=function(){return aF};
aV.prototype.getExtension=function(a){return _.y(a,ACb)};
aV.prototype.JSC$11736_buildRequest=function(a,b,c){c=c===void 0?{}:c;a.continuation=c.continuation};var bV=function(){};
_.z(bV,JH);bV.prototype.getApiPaths=function(){return aF};
bV.prototype.getExtension=function(a){return _.y(a,_.Ow)};
bV.prototype.JSC$11736_buildRequest=function(a,b){var c,d=b.panelIdentifier||((c=b.identifier)==null?void 0:c.tag);d&&(a.panelId=d);var e;if((e=b.globalConfiguration)==null?0:e.params){var g;a.params=(g=b.globalConfiguration)==null?void 0:g.params}};var cV=function(){};
_.z(cV,JH);cV.prototype.getApiPaths=function(){return aF};
cV.prototype.getExtension=function(a){return _.y(a,dFb)};
cV.prototype.JSC$11736_buildRequest=function(a,b){b.panelLoadingStrategy&&O4a(a,b.panelLoadingStrategy)};var dV=function(){};
_.z(dV,JH);dV.prototype.getApiPaths=function(){return aF};
dV.prototype.getExtension=function(a){return _.y(a,EDb)};
dV.prototype.JSC$11736_buildRequest=function(a,b){b.loadingStrategy&&O4a(a,b.loadingStrategy)};var eV=function(){};
_.z(eV,JH);eV.prototype.getApiPaths=function(){return aF};
eV.prototype.getExtension=function(a){return _.y(a,_.kWa)};
eV.prototype.JSC$11736_buildRequest=function(a,b){b.panelLoadingStrategy&&O4a(a,b.panelLoadingStrategy)};var fV=function(){};
_.z(fV,JH);fV.prototype.getApiPaths=function(){return aF};
fV.prototype.getExtension=function(a){return _.y(a,FDb)};
fV.prototype.JSC$11736_buildRequest=function(a,b){var c,d=(c=b.contentSourcePanelIdentifier)==null?void 0:c.tag;d&&(a.panelId=d);var e;if((e=b.globalConfiguration)==null?0:e.params){var g;a.params=(g=b.globalConfiguration)==null?void 0:g.params}};var gV=function(){};
_.z(gV,JH);gV.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
gV.prototype.getExtension=function(a){return _.y(a,GDb)};
gV.prototype.JSC$11736_buildRequest=function(a,b){b.params&&(a.params=b.params)};var hV=function(){};
_.z(hV,JH);hV.prototype.getApiPaths=function(){return YHb};
hV.prototype.getExtension=function(a){return _.y(a,JDb)};
hV.prototype.JSC$11736_buildRequest=function(a,b){b.externalChannelId&&(a.externalChannelId=b.externalChannelId);b.superChatAction&&(a.superChatAction=b.superChatAction);b.superStickersAction&&(a.superStickersAction=b.superStickersAction)};var iV=function(){};
_.z(iV,JH);iV.prototype.getApiPaths=function(){return WGb};
iV.prototype.getExtension=function(a){return _.y(a,zEb)||_.y(a,kUa)};
iV.prototype.JSC$11736_buildRequest=function(a,b){b.videoIds?a.videoIds=b.videoIds:b.videoId&&(a.videoIds=[b.videoId]);b.playlistId&&(a.playlistId=b.playlistId);b.params&&(a.params=b.params);a.excludeWatchLater=!1};var jV=function(){};
_.z(jV,JH);jV.prototype.getApiPaths=function(){return MGb};
jV.prototype.getExtension=function(a){return _.y(a,_.RE)};
jV.prototype.JSC$11736_buildRequest=function(a,b,c){c.create_playlist_title?a.title=c.create_playlist_title:b.title&&(a.title=b.title);if(c.create_playlist_privacy_status&&typeof c.create_playlist_privacy_status==="number"){a:{var d=c.create_playlist_privacy_status;if(d!==0){if(d===1){d="PUBLIC";break a}if(d===2){d="UNLISTED";break a}}d="PRIVATE"}a.privacyStatus=d}else b.privacyStatus&&(a.privacyStatus=b.privacyStatus);c.create_playlist_description&&(a.description=c.create_playlist_description);b.videoIds&&
(a.videoIds=b.videoIds);b.params&&(a.params=b.params);b.sourcePlaylistId&&(a.sourcePlaylistId=b.sourcePlaylistId)};var kV=function(){};
_.z(kV,JH);kV.prototype.getApiPaths=function(){return PGb};
kV.prototype.getExtension=function(a){return _.y(a,HEb)};
kV.prototype.JSC$11736_buildRequest=function(a,b){a.playlistId=b.playlistId};var lV=function(){};
_.z(lV,JH);lV.prototype.getApiPaths=function(){return fHb};
lV.prototype.getExtension=function(a){return _.y(a,mDb)};
lV.prototype.JSC$11736_buildRequest=function(a,b){b.playlistId&&(a.playlistId=b.playlistId);b.params&&(a.params=b.params)};var mV=function(){};
_.z(mV,JH);mV.prototype.getApiPaths=function(){return zHb};
mV.prototype.getExtension=function(a){return _.y(a,_.LE)||void 0};
mV.prototype.JSC$11736_buildRequest=function(a,b){b.actions&&(a.actions=b.actions);b.params&&(a.params=b.params);b.playlistId&&(a.playlistId=b.playlistId)};var nV=function(){};
_.z(nV,JH);_.f=nV.prototype;_.f.getApiPaths=function(){return BHb};
_.f.getExtension=function(a){return _.y(a,_.tq)};
_.f.JSC$11736_buildRequest=function(a,b){b.videoId&&(a.playerRequest={videoId:b.videoId},b.playerParams&&(a.playerRequest.params=b.playerParams),b.racyCheckOk&&(a.playerRequest.racyCheckOk=!!b.racyCheckOk),b.contentCheckOk&&(a.playerRequest.contentCheckOk=!!b.contentCheckOk));b.params&&(a.params=b.params);b.inputType&&(a.inputType=b.inputType);a.disablePlayerResponse=!0};
_.f.getRequestConfig=function(a){var b;(a=this.JSC$11743_getStoreKey(a))&&(b={storeStrategy:{storeKey:a}});_.x("web_log_reels_ticks")&&(b=b||{},b.requestTick="r_wrs",b.responseTick="r_wrr");return b};
_.f.JSC$11743_getStoreKey=function(a){a=this.getExtension(a);if(_.x("shorts_controller_retrieve_seedless_sequence_v2")){if((a==null?void 0:a.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS")return _.Un("reel_item_watch",{inputType:"REEL_WATCH_INPUT_TYPE_SEEDLESS"})}else if((_.x("web_prefetch_riw_for_next_video")||_.x("web_shorts_prefetch_service_enabled"))&&a!=null&&a.videoId){var b={videoId:a.videoId};a.params&&(b.params=a.params);return _.Un("reel_item_watch",b)}};var oV=function(){};
_.z(oV,JH);_.f=oV.prototype;_.f.getApiPaths=function(){return CHb};
_.f.getExtension=function(a){return _.y(a,_.tq)};
_.f.JSC$11736_buildRequest=function(a,b,c){c=c===void 0?{}:c;a.sequenceParams=b.sequenceParams;var d;((d=c)==null?0:d.contentPlaybackContext)&&_.x("web_shorts_prefetch_service_enabled")&&(a.playbackContext={contentPlaybackContext:c.contentPlaybackContext})};
_.f.JSC$11743_getStoreKey=function(a){if(_.x("shorts_controller_retrieve_seedless_sequence_v2")&&(a=this.getExtension(a),a==null?0:a.sequenceParams))return _.Un("reel_watch_sequence",{sequenceParams:a.sequenceParams})};
_.f.getRequestConfig=function(a){a=this.JSC$11743_getStoreKey(a);var b;a&&(b={storeStrategy:{storeKey:a}});_.x("reel_watch_sequence_request_log_ticks")&&(b=b||{},b.requestTick="r_wsrs",b.responseTick="r_wsrr",b.processorTick="r_wsrp");return b};
var pV=function(){};
_.z(pV,JH);pV.prototype.getApiPaths=function(){return CHb};
pV.prototype.getExtension=function(a){return _.y(a,_.Kt)};
pV.prototype.JSC$11736_buildRequest=function(a,b,c){c=c===void 0?{}:c;b.token&&(a.continuation=b.token);var d;((d=c)==null?0:d.contentPlaybackContext)&&_.x("web_shorts_prefetch_service_enabled")&&(a.playbackContext={contentPlaybackContext:c.contentPlaybackContext})};
pV.prototype.getRequestConfig=function(a){a=this.JSC$11743_getStoreKey(a);var b;a&&(b={storeStrategy:{storeKey:a}});_.x("reel_watch_sequence_request_log_ticks")&&(b=b||{},b.requestTick="r_wsrs",b.responseTick="r_wsrr",b.processorTick="r_wsrp");return b};var qV=function(){};
_.z(qV,JH);qV.prototype.getApiPaths=function(){return TGb};
qV.prototype.getExtension=function(a){return _.y(a,_.PAb)};
qV.prototype.JSC$11736_buildRequest=function(a,b,c){c=c===void 0?{}:c;b.flagAction&&(a.action=b.flagAction);b.flagRequestType&&(a.flagRequestType=b.flagRequestType);b.additionalDetailCheckboxChecked&&(a.additionalDetailCheckboxChecked=b.additionalDetailCheckboxChecked);b.legalCheckboxChecked&&(a.legalCheckboxChecked=b.legalCheckboxChecked);b={};c.flag_issue_type!==void 0&&(b.issue=c.flag_issue_type);c.flag_affiliation!==void 0&&(b.affiliation=c.flag_affiliation);c.flag_full_name&&(b.fullName=c.flag_full_name);
Object.keys(b).length&&(a.legalReportDetails=b);if(c.flag_description||c.text)a.userComments=c.flag_description||c.text;b={};c.minutes!==void 0&&c.seconds!==void 0&&(b.minutes=c.minutes,b.seconds=c.seconds);c.vss_id&&(b.vssId=c.vss_id);Object.keys(b).length&&(a.videoReportDetails=b);b={};c.video_ids&&(b.videoIds=c.video_ids);c.impersonated_channel_url&&(b.impersonatedChannelUrl=c.impersonated_channel_url);Object.keys(b).length&&(a.channelAbuseReportDetails=b)};
_.Vm.Object.defineProperties(qV.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var rV=function(){};
_.z(rV,JH);rV.prototype.getApiPaths=function(){return ZGb};
rV.prototype.getExtension=function(a){return _.y(a,qBb)};
rV.prototype.JSC$11736_buildRequest=function(a,b){b.blockedForKidsContent&&(a.blockedForKidsContent=b.blockedForKidsContent)};var sV=function(){};
_.z(sV,JH);sV.prototype.getApiPaths=function(){return FHb};
sV.prototype.getExtension=function(a){return _.y(a,jUa)};
sV.prototype.JSC$11736_buildRequest=function(a,b,c){a.params=b.params;c.impersonated_channel_url&&(a.impersonatedChannelUrl=c.impersonated_channel_url)};var tV=function(){};
_.z(tV,JH);tV.prototype.getApiPaths=function(){return qHb};
tV.prototype.getExtension=function(a){return _.y(a,_.rBb)};
tV.prototype.JSC$11736_buildRequest=function(a,b){b.items&&(a.items=b.items);b.kidGaiaId&&(a.kidGaiaId=b.kidGaiaId)};var uV=function(){};
_.z(uV,JH);uV.prototype.getApiPaths=function(){return XGb};
uV.prototype.getExtension=function(a){return _.y(a,_.xEb)};
uV.prototype.JSC$11736_buildRequest=function(a,b){b.params&&(a.params=b.params);b.targetId&&(a.targetId=b.targetId)};var vV=function(){};
_.z(vV,JH);vV.prototype.getApiPaths=function(){return JHb};
vV.prototype.getExtension=function(a){return _.y(a,qAb)};
vV.prototype.JSC$11736_buildRequest=function(a,b){b.externalVideoId&&(a.externalVideoId=b.externalVideoId);b.query&&(a.query=b.query);b.sourceTimelines&&(a.sourceTimelines=b.sourceTimelines)};var wV=function(){};
_.z(wV,JH);wV.prototype.getApiPaths=function(){return KHb};
wV.prototype.getExtension=function(a){return _.y(a,_.Kt)||void 0};
wV.prototype.JSC$11736_buildRequest=function(a,b){b.token&&(a.continuation=b.token)};
_.egc=function(){};
_.z(_.egc,JH);_.f=_.egc.prototype;_.f.getApiPaths=function(){return KHb};
_.f.getExtension=function(a){return _.y(a,_.qq)||void 0};
_.f.isNavigationCommand=function(){return!0};
_.f.JSC$11743_getStoreKey=function(a,b){b=b===void 0?{}:b;if(!b.disableCache&&(a=this.getExtension(a))&&a.query)return b={query:a.query},a.params&&(b.params=a.params),_.Un("search",b)};
_.f.JSC$11736_buildRequest=function(a,b,c){b.query&&(a.query=b.query);b.params&&(a.params=b.params);if(!_.x("web_forward_suggest_stats_killswitch")){var d=_.y(b,fDb);d&&(a.suggestStats=d)}var e;!_.x("kevlar_searchbox_stats_killswitch")&&((e=c.tempData)==null?0:e.gs_l)&&!_.y(b,fDb)&&(a.webSearchboxStatsUrl="/search?oq="+(c.tempData.oq||"")+"&gs_l="+c.tempData.gs_l)};
_.f.getRequestConfig=function(a,b){b=b===void 0?{}:b;a=this.JSC$11743_getStoreKey(a,b);var c;a&&(c={storeStrategy:{storeKey:a}});_.x("web_log_search_ticks_ks")||(c=c||{},c.requestTick="sr_s",c.responseTick="sr_r");return c};var xV=function(){};
_.z(xV,JH);xV.prototype.getApiPaths=function(){return jHb};
xV.prototype.getExtension=function(a){return _.y(a,TEb)};
xV.prototype.JSC$11736_buildRequest=function(a,b){b.serializedGetSharingProviderDataParams&&(a.serializedGetSharingProviderDataParams=b.serializedGetSharingProviderDataParams)};var yV=function(){};
_.z(yV,JH);yV.prototype.getApiPaths=function(){return kHb};
yV.prototype.getExtension=function(a){return _.y(a,KAb)};
yV.prototype.JSC$11736_buildRequest=function(a,b){b.endpoint&&(a.endpoint=b.endpoint);b.action&&(a.action=b.action)};var zV=function(){};
_.z(zV,JH);zV.prototype.getApiPaths=function(){return QGb};
zV.prototype.getExtension=function(a){return _.y(a,IEb)};
zV.prototype.JSC$11736_buildRequest=function(a,b){a.videoId=b.videoId;b.scheduledRedirectMetadataSourceVideoId&&(a.scheduledRedirectMetadata={sourceVideoId:b.scheduledRedirectMetadataSourceVideoId})};var fgc=XMLHttpRequest.prototype.fetch,ggc=fgc&&fgc.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!_.Pj?!0:!1;var AV=function(a){this.JSC$15733_storeWithEntities=a};
_.z(AV,JH);_.f=AV.prototype;_.f.getApiPaths=function(){return yHb};
_.f.getExtension=function(a){return _.y(a,_.Vn)||_.y(a,_.tq)||_.y(a,PDb)};
_.f.isNavigationCommand=function(){return!0};
_.f.JSC$11743_getStoreKey=function(a){if((_.x("kevlar_cache_on_ttl_player")||_.x("mweb_enable_shorts_innertube_player_prefetch")||_.x("mweb_use_new_history_manager")||_.x("web_shorts_prefetch_service_enabled"))&&(a=this.getExtension(a))&&a.videoId){var b={videoId:a.videoId};a.playlistId&&(b.playlistId=a.playlistId);a.playerParams&&(b.params=a.playerParams);return _.Un("player",b)}};
_.f.JSC$11736_getClientScreen=function(a){var b;return((b=a.contentPlaybackContext)==null?void 0:b.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.f.JSC$11736_buildRequest=function(a,b,c){if(_.x("enable_interstitial_entity_check")){var d=this.JSC$15733_storeWithEntities;if(b.videoId)for(var e=_.h(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),g=e.next();!g.done;g=e.next()){g=g.value;var k;var m=void 0,n=void 0,r=b.videoId,t=g;(k=d)?(r=_.lp(r+t,"interstitialInteractionStateEntity"),k=(m=(n=_.mp(k.getState().entities,"interstitialInteractionStateEntity",r))==null?void 0:n.primaryButtonClicked)!=null?m:!1):k=!1;if(k)switch(g){case "CONTENT_CHECK_REQUIRED":b.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":b.racyCheckOk=!0}}}b.videoId&&(a.videoId=b.videoId);b.playlistId&&(a.playlistId=b.playlistId);b.index!==void 0&&(a.playlistIndex=b.index+1);b.playerParams&&(a.params=b.playerParams);"startTimeSeconds"in b&&b.startTimeSeconds&&(_.x("enable_player_request_builder_start_time_floor")?a.startTimeSecs=Math.floor(b.startTimeSeconds):a.startTimeSecs=b.startTimeSeconds);c.contentPlaybackContext&&(a.playbackContext={contentPlaybackContext:c.contentPlaybackContext});c.prefetchPlaybackContext&&
(a.playbackContext=Object.assign({},a.playbackContext,{prefetchPlaybackContext:c.prefetchPlaybackContext}),a.context.request||(a.context.request={}),a.context.request.isPrefetch=!0);_.x("html5_report_supports_vp9_encoding")&&(a.playbackContext||(a.playbackContext={}),d=TKb(),a.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!d,supportXhr:ggc});c.overrideMutedAtStart&&(a.overrideMutedAtStart=c.overrideMutedAtStart);a.racyCheckOk=!!b.racyCheckOk;a.contentCheckOk=!!b.contentCheckOk;
!_.x("captions_prefs_killswitch")&&(c=(c=_.sG("yt-player-caption-language-preferences"))?c:[],c==null?0:c.length)&&(a.captionParams={viewerSelectedCaptionLangs:c})};
_.f.getRequestConfig=function(a){a=this.JSC$11743_getStoreKey(a);var b;a&&(b={storeStrategy:{storeKey:a}});_.x("web_log_player_watch_next_ticks")&&(b=b||{},b.requestTick="ps_s",b.responseTick="ps_r");return b};
AV[eB]=[sw];var BV=function(){};
_.z(BV,JH);BV.prototype.getApiPaths=function(){return OHb};
BV.prototype.getExtension=function(a){return _.y(a,_.qFb)};
BV.prototype.JSC$11736_buildRequest=function(a,b){a.params=b.params;a.correctionText=b.correctionText};var CV=function(){};
_.z(CV,JH);CV.prototype.getApiPaths=function(){return M3a};
CV.prototype.getExtension=function(a){return _.y(a,_.rAb)};
CV.prototype.JSC$11736_buildRequest=function(a,b){b.params&&(a.params=b.params);a.searchQuery=b.searchQuery;a.languageCode=b.languageCode;a.kind=b.kind;a.name=b.name;a.externalVideoId=b.externalVideoId};var DV=function(){};
_.z(DV,JH);_.f=DV.prototype;_.f.getApiPaths=function(){return bIb};
_.f.getExtension=function(a){return _.y(a,_.Vn)};
_.f.isNavigationCommand=function(){return!0};
_.f.JSC$11743_getStoreKey=function(a){if((a=this.getExtension(a))&&a.videoId){var b={videoId:a.videoId};a.playlistId&&(b.playlistId=a.playlistId);a.index&&(b.index=a.index);a.params&&(b.params=a.params);return _.Un("next",b)}};
_.f.JSC$11736_getClientScreen=function(a){var b;return((b=a.contentPlaybackContext)==null?void 0:b.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.f.JSC$11736_buildRequest=function(a,b,c){b.videoId&&(a.videoId=b.videoId);b.playlistId&&(a.playlistId=b.playlistId);b.params&&(a.params=b.params);b.index!==void 0&&(a.playlistIndex=b.index);a.racyCheckOk=!(!c.racyCheckOk&&!b.racyCheckOk);a.contentCheckOk=!!b.contentCheckOk;c.contentPlaybackContext&&(a.autonavState=c.contentPlaybackContext.autonavState,a.playbackContext={vis:c.contentPlaybackContext.vis,lactMilliseconds:c.contentPlaybackContext.lactMilliseconds});c.prefetchPlaybackContext&&(a.context.request||
(a.context.request={}),a.context.request.isPrefetch=!0);_.x("captions_hats_killswitch")||(b=_.wo().getFlag(65),b=b!=null?!b:!1,c=!!_.sG("yt-player-sticky-caption"),a.captionsRequested=b&&c)};
_.f.getRequestConfig=function(a){a=this.JSC$11743_getStoreKey(a);var b;a&&(b={storeStrategy:{storeKey:a}});_.x("web_log_player_watch_next_ticks")&&(b=b||{},b.requestTick="wn_s",b.responseTick="wn_r");return b};
var EV=function(){};
_.z(EV,JH);EV.prototype.getApiPaths=function(){return bIb};
EV.prototype.getExtension=function(a){return _.y(a,_.Kt)};
EV.prototype.JSC$11736_buildRequest=function(a,b){b.token&&(a.continuation=b.token)};var FV=function(a,b){this.playerRequestBuilder=a;this.watchNextRequestBuilder=b};
_.z(FV,FQb);FV.prototype.getApiPaths=function(){return nHb};
FV.prototype.getExtension=function(a){return _.y(a,_.Vn)};
FV.prototype.isNavigationCommand=function(){return!0};
FV.prototype.JSC$11736_buildRequest=function(a,b,c){a.playerRequest={};a.watchNextRequest={};this.playerRequestBuilder.JSC$11736_buildRequest(a.playerRequest,b,c);this.watchNextRequestBuilder.JSC$11736_buildRequest(a.watchNextRequest,b,c)};
FV[eB]=[AV,DV];var GV=function(){};
_.z(GV,JH);GV.prototype.getApiPaths=function(){return cIb};
GV.prototype.getExtension=function(a){return _.y(a,EFb)};
GV.prototype.JSC$11736_buildRequest=function(a,b){b.params&&(a.params=b.params)};var HV=function(a){this.JSC$15760_storeWithEntities=a};
_.z(HV,JH);HV.prototype.getApiPaths=function(){return FGb};
HV.prototype.getExtension=function(a){return _.y(a,FFb)||_.y(a,HFb)};
HV.prototype.JSC$11736_buildRequest=function(a,b,c){c.client_data&&(a.clientData=c.client_data);if(b.commerceActionConfig){var d=b.commerceActionConfig;b=d.actionId;d=d.commerceActionParams;b&&(a.actionId=b);d&&(a.commerceActionParams=d)}else{var e=b.actionId,g=b.commerceActionParams;c=b.entityKeys;e&&(a.actionId=e);g&&(a.commerceActionParams=g);var k;b=(d=this.JSC$15760_storeWithEntities)==null?void 0:(k=d.getState())==null?void 0:k.entities;if(c&&b){d=[];k=_.h(c);for(c=k.next();!c.done;c=k.next())if(e=
c.value,c=_.ip(e).entityType,e=_.mp(b,c,e))g={},d.push((g[c]=e,g));a.entityMutationPayloads=d}}};
HV.prototype.getRequestConfig=function(a){var b,c=(b=_.y(a,FFb))==null?void 0:b.requestSequenceType;if(c&&a.clickTrackingParams&&c!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:a.clickTrackingParams,sequenceType:c}}};
HV[eB]=[sw];var IV=function(){};
_.z(IV,JH);IV.prototype.getApiPaths=function(){return dIb};
IV.prototype.getExtension=function(a){return _.y(a,_.ZFb)};
IV.prototype.JSC$11736_buildRequest=function(a,b){b.feedbackData&&(a.feedbackData=b.feedbackData);b.params&&(a.itemParams=b.params)};
_.Vm.Object.defineProperties(IV.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var JV=function(){};
_.z(JV,JH);JV.prototype.getApiPaths=function(){return eIb};
JV.prototype.getExtension=function(a){return _.y(a,$Fb)};
JV.prototype.JSC$11736_buildRequest=function(a,b,c){c.payments_payload&&(a.paymentsPayload=c.payments_payload);c.offer_params&&(a.offerParams=c.offer_params);b.transactionParams&&(a.transactionParams=b.transactionParams)};var KV=function(){};
_.z(KV,JH);KV.prototype.getApiPaths=function(){return fIb};
KV.prototype.getExtension=function(a){return _.y(a,_.aGb)};
KV.prototype.JSC$11736_buildRequest=function(a,b,c){c=c===void 0?{}:c;b.buybucketParams&&(a.buybucketData={params:b.buybucketParams},b.stickerParams?a.buybucketData.stickerParams=b.stickerParams:(c.rich_chat_message?a.buybucketData.richChatMessage=c.rich_chat_message:c.chat_message_text&&(a.buybucketData.chatMessageText=c.chat_message_text),c.purchase_price_micros&&(a.buybucketData.purchasePriceMicros=c.purchase_price_micros.toString())));b.donationAmountMicros&&(a.tipAmountMicros=b.donationAmountMicros,
b.tipParams&&(a.tipParams=b.tipParams));b.offerParams&&(a.offerParams=b.offerParams);b.productData&&(a.productData=b.productData);b.transactionParams&&(a.transactionParams=b.transactionParams)};var LV=function(){};
_.z(LV,JH);LV.prototype.getApiPaths=function(){return gIb};
LV.prototype.getExtension=function(a){return _.y(a,dGb)};
LV.prototype.JSC$11736_buildRequest=function(a,b){b.updateFopParams&&(a.updateFopParams=b.updateFopParams)};var MV=function(){};
_.z(MV,JH);MV.prototype.getApiPaths=function(){return hIb};
MV.prototype.getExtension=function(a){return _.y(a,_.pv)};
MV.prototype.JSC$11736_buildRequest=function(a,b){b.couponCode&&(a.couponCode=b.couponCode);b.params&&(a.itemParams=b.params)};var NV=function(){};
_.z(NV,JH);NV.prototype.getApiPaths=function(){return iIb};
NV.prototype.getExtension=function(a){return _.y(a,_.GFb)};
NV.prototype.JSC$11736_buildRequest=function(a,b,c){c=c===void 0?{}:c;b.params&&(a.params=b.params);c.ctk&&(a.clientToken=c.ctk)};var OV=function(a){this.JSC$15795_storeWithEntities=a};
_.z(OV,JH);OV.prototype.getApiPaths=function(){return jIb};
OV.prototype.getExtension=function(a){return _.y(a,_.TE)};
OV.prototype.JSC$11736_buildRequest=function(a,b,c){c.purchase_price_micros&&(a.productData={pdgData:{purchasePriceMicros:c.purchase_price_micros.toString()}},c.rich_chat_message&&(a.productData.pdgData.richChatMessage=c.rich_chat_message),c.currency_code&&(a.productData.pdgData.currencyCode=c.currency_code));b.transactionParams&&(a.transactionParams=b.transactionParams);b.clientLocationContext&&(a.clientLocationContext=b.clientLocationContext);c.payments_payload&&(a.paymentsPayload=c.payments_payload);
c.funds_guarantee_callback_client_data&&(a.fundsGuaranteeCallbackClientData=c.funds_guarantee_callback_client_data);var d,e;c=(d=this.JSC$15795_storeWithEntities)==null?void 0:(e=d.getState())==null?void 0:e.entities;if(b.entityKeys&&c){d=[];b=_.h(b.entityKeys);for(e=b.next();!e.done;e=b.next()){var g=e.value;e=_.ip(g).entityType;if(g=_.mp(c,e,g)){var k={};d.push((k[e]=g,k))}}a.entityMutationPayloads=d}};
OV[eB]=[sw];var PV=function(){};
_.z(PV,JH);PV.prototype.getApiPaths=function(){return kIb};
PV.prototype.getExtension=function(a){return _.y(a,bGb)};
PV.prototype.JSC$11736_buildRequest=function(a,b,c){c=c===void 0?{}:c;c.backend_analytics&&(a.serializedBackendAnalyticsEvent=c.backend_analytics);b.offerParams&&(a.offerParams=b.offerParams)};var QV=function(){};
_.z(QV,JH);QV.prototype.getApiPaths=function(){return hIb};
QV.prototype.getExtension=function(a){return _.y(a,J_a)};
QV.prototype.JSC$11736_buildRequest=function(a,b){b.params&&(a.itemParams=b.params)};var RV=function(){};
_.z(RV,JH);RV.prototype.getApiPaths=function(){return lIb};
RV.prototype.getExtension=function(a){return _.y(a,_.MFb)};
RV.prototype.JSC$11736_buildRequest=function(a,b,c){c.resume_time_ms&&(a.resumeTimeMs=c.resume_time_ms);b.pauseParams&&(a.pauseParams=b.pauseParams)};var SV=function(){};
_.z(SV,JH);SV.prototype.getApiPaths=function(){return mIb};
SV.prototype.getExtension=function(a){return _.y(a,_.cGb)};
SV.prototype.JSC$11736_buildRequest=function(a,b,c){c=c===void 0?{}:c;c.c&&(a.redeemCode=c.c);c.rd&&(a.riskData=c.rd);c.ctk&&(a.clientToken=c.ctk)};var TV=function(){};
_.z(TV,JH);TV.prototype.getApiPaths=function(){return nIb};
TV.prototype.getExtension=function(a){return _.y(a,_.NFb)};
TV.prototype.JSC$11736_buildRequest=function(a,b){b.resumeParams&&(a.resumeParams=b.resumeParams)};var UV=function(a,b){this.clientName=a;this.defaultExpirationDelayMs=b};
UV.prototype.put=function(a,b){var c=this,d;return _.l(function(e){d=Object.assign({},b.data);d.key=a;d.clientName=c.clientName;d.expireTimestampMs===void 0&&(d.expireTimestampMs=(Math.round((0,_.Uj)())+c.defaultExpirationDelayMs).toString());return e.return(c.putInternal(a,d))})};
UV[eB]=[HS,rfc];var hgc=function(){UV.apply(this,arguments);this.JSC$15825_responseStore=new Map};
_.z(hgc,UV);_.f=hgc.prototype;_.f.get=function(a){var b=this;return _.l(function(c){return c.return(pJ(b,a))})};
_.f.putInternal=function(a,b){var c=this,d,e,g;return _.l(function(k){d=c.defaultExpirationDelayMs;b.expireTimestampMs&&(d=Number(b.expireTimestampMs)-Math.round((0,_.Uj)()),e=_.$i("mweb_override_response_store_expiration_ms"),e>0&&e<d&&(d=e));g=setTimeout(function(){c.remove(a)},d);
c.JSC$15825_responseStore.set(a,{entryData:b,timer:g});_.se(k)})};
_.f.remove=function(a){var b=this;return _.l(function(c){igc(b,a);_.se(c)})};
_.f.removeAll=function(){var a=this;return _.l(function(b){a.JSC$15825_responseStore.forEach(function(c){clearTimeout(c.timer)});
a.JSC$15825_responseStore.clear();_.se(b)})};
_.f.has=function(a){return!!this.JSC$15825_responseStore.get(a)};
_.f.getKeys=function(){return this.JSC$15825_responseStore.keys()};
var pJ=function(a,b){if(a=a.JSC$15825_responseStore.get(b))return new _.oJ(a.entryData)},igc=function(a,b){var c=a.JSC$15825_responseStore.get(b);
c&&(clearTimeout(c.timer),a.JSC$15825_responseStore.delete(b))};var P4a;var S4a=function(a,b,c){UV.call(this,a,b);this.token=c};
_.z(S4a,UV);_.f=S4a.prototype;_.f.get=function(a){var b=this,c,d;return _.l(function(e){return e.nextAddress==1?_.p(e,R4a(b.token),2):e.nextAddress!=3?(c=e.yieldResult,_.p(e,c.get("ResponseStore",[a,b.clientName]),3)):(d=e.yieldResult)?e.return(new _.oJ(d)):e.return(void 0)})};
_.f.putInternal=function(a,b){var c=this,d;return _.l(function(e){if(e.nextAddress==1)return _.p(e,R4a(c.token),2);d=e.yieldResult;return _.p(e,d.put("ResponseStore",b),0)})};
_.f.remove=function(a){var b=this,c;return _.l(function(d){if(d.nextAddress==1)return _.p(d,R4a(b.token),2);c=d.yieldResult;return d.return(c.delete("ResponseStore",[a,b.clientName]))})};
_.f.removeAll=function(){var a=this,b;return _.l(function(c){if(c.nextAddress==1)return _.p(c,R4a(a.token),2);b=c.yieldResult;return _.p(c,vmb(b,IDBKeyRange.only(a.clientName)),0)})};
_.f.has=function(){throw Error("Si");};_.VV=new _.fB("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var jgc=function(a){var b;this.stateTagsData=(b=a.responseContext)==null?void 0:b.stateTags},kgc=function(a){var b;
return((b=a.stateTagsData)==null?void 0:b.stateTagsModified)||[]};var lgc;lgc=function(a){this.JSC$15838_responseStore=a};
_.Zw=function(a,b,c){if(!_.x("state_tags_killswitch")){var d=new jgc(b);if(kgc(d).length>0){var e=a.JSC$15838_responseStore.getKeys();e=_.h(e);for(var g=e.next();!g.done;g=e.next()){g=g.value;var k=pJ(a.JSC$15838_responseStore,g);if(k){var m=_.pw(k);a:{var n=void 0;k=kgc(d);m=((n=(new jgc(m)).stateTagsData)==null?void 0:n.relevantStateTags)||[];n=_.h(m);for(m=n.next();!m.done;m=n.next())if(m=m.value,m.stateTag!=null&&k.includes(m.stateTag)&&m.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){k=
!0;break a}k=!1}k&&igc(a.JSC$15838_responseStore,g)}}}}var r;d=(r=b.responseContext)==null?void 0:r.maxAgeSeconds;_.x("web_prefetch_riw_for_next_video")&&!d&&b.status==="REEL_ITEM_WATCH_STATUS_SUCCEEDED"&&(d=3600);c&&d&&Number(d)>0&&(b=iu(b,d),a.JSC$15838_responseStore.put(c,new _.oJ(b)))};
lgc.prototype.handleResponse=function(a,b){if(!b)throw Error("Ti");var c,d;b=(c=b.config)==null?void 0:(d=c.storeStrategy)==null?void 0:d.storeKey;_.Zw(this,a,b)};
lgc[eB]=[_.nJ];_.L7a=new _.fB("STORE_RESPONSE_PROCESSOR_TOKEN");var mgc=function(a){this.JSC$15841_responseStore=a};
mgc.prototype.handleResponse=function(a,b){if(b.input.match(_.Zp(CHb))){var c;if(a==null?0:(c=a.entries)==null?0:c.length)for(a=_.h(a.entries),b=a.next();!b.done;b=a.next()){c=b.value.command;var d=void 0;b=(d=_.y(c,_.tq))==null?void 0:d.unserializedPrefetchData;if(!c||!b)break;d=(new nV).JSC$11743_getStoreKey(c);var e=_.y(b,hEb),g=void 0,k=void 0,m=void 0,n=_.$i("web_shorts_prefetch_service_ttl_seconds")>0?_.$i("web_shorts_prefetch_service_ttl_seconds"):Number((m=(g=e)==null?void 0:(k=g.responseContext)==
null?void 0:k.maxAgeSeconds)!=null?m:3600);d&&n>0&&(e=iu(e,n),this.JSC$15841_responseStore.put(d,new _.oJ(e)));c=(new AV).JSC$11743_getStoreKey(c);b=_.y(b,SDb);g=e=d=void 0;k=_.$i("web_shorts_prefetch_service_ttl_seconds")>0?_.$i("web_shorts_prefetch_service_ttl_seconds"):Number((g=(d=b)==null?void 0:(e=d.responseContext)==null?void 0:e.maxAgeSeconds)!=null?g:3600);c&&k>0&&(b=iu(b,k),this.JSC$15841_responseStore.put(c,new _.oJ(b)))}}};
mgc[eB]=[_.nJ];var WV=function(){this.scheduler=_.Lw()},ngc;
WV.prototype.pause=function(){throw Error("Ui");};
WV.prototype.resume=function(){throw Error("Ui");};
WV.prototype.queue=function(a){var b=this,c=_.Tt(),d=_.ul(this.scheduler,function(){try{var e;if(_.hs.instance)var g=_.hs.instance;else{var k=new _.qj("Error: Unexpected uninitialized CommandHandler.");_.Bl(k);g=void 0}(e=g)==null||e.resolveCommand(a.command);c.resolve()}catch(m){c.reject(m)}});
c.promise.thenCatch(function(e){e instanceof _.On&&b.scheduler.cancelJob(d)});
return c.promise};
WV.prototype.queueAll=function(a){var b=new Map;a=_.h(a);for(var c=a.next();!c.done;c=a.next())c=c.value,b.set(c.id,this.queue(c));return b};var pgc=function(a,b){var c=this;this.taskModel=a;this.onTaskCancelledCallback=b;this.resolver=_.Tt();a=a.proto.prefetchConfig;if(!a)throw Error("Vi");if(!a.prefetchAction)throw Error("Wi");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(d){d instanceof _.On&&(ogc(c,c.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),c.onTaskCancelledCallback(c.taskModel.id,c.jobId),c.tick("pcc"));
throw d;});
this.timerName=this.taskModel.id;_.Io(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)},qgc=function(a){switch(a.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;
case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}},ogc=function(a,b){_.Ho({prefetchInfo:{cancellationReason:b}},a.timerName)};
pgc.prototype.tick=function(a){_.Jo(a,void 0,this.timerName)};var YV=function(){var a=this;this.scheduler=_.Lw();this.maxInflightTasks=_.$i("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.$i("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new Rsb;this.onTaskCancelled=function(b,c){c&&a.scheduler.cancelJob(c);rgc(a,b);XV(a,3)}},sgc=function(){YV.instance||(YV.instance=new YV);
return YV.instance};
YV.prototype.pause=function(){this.prefetchCoordinatorState=0};
YV.prototype.resume=function(){XV(this,0)};
YV.prototype.queue=function(a){a=tgc(this,a);XV(this,1);return a};
YV.prototype.queueAll=function(a){var b=new Map;a=_.h(a);for(var c=a.next();!c.done;c=a.next())c=c.value,b.set(c.id,tgc(this,c));XV(this,1);return b};
var tgc=function(a,b){var c=a.allPrefetchTasks.get(b.id);if(c)return c.cancellablePromise;try{var d=new pgc(b,a.onTaskCancelled)}catch(g){return _.Pn(g)}c=d;c.tick("pcq");var e={prefetchInfo:{taskId:c.taskModel.id,isPrefetch:!0,fetchAction:c.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:c.taskModel.command.clickTrackingParams}};c.taskModel.csn&&(e.clientScreenNonce=c.taskModel.csn);_.Ho(e,c.timerName);a.allPrefetchTasks.set(b.id,d);a.drainingHeap.insert(-qgc(d),d);return d.cancellablePromise},
XV=function(a,b){a.prefetchCoordinatorState===b&&(a.prefetchCoordinatorState=2,ugc(a))},ugc=function(a){for(var b={};a.prefetchCoordinatorState!==0;b={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(a.inflightPrefetchTasks.size>=a.maxInflightTasks){a.prefetchCoordinatorState=3;break}b.prefetchTask$jscomp$1=a.drainingHeap.remove();if(!b.prefetchTask$jscomp$1){a.prefetchCoordinatorState=1;break}b.taskId$jscomp$3=b.prefetchTask$jscomp$1.taskModel.id;if(a.allPrefetchTasks.has(b.taskId$jscomp$3)){var c=-1;a.coordinatorTimeoutMs>0&&(c=_.ul(a.scheduler,function(d){return function(){ZV(a,d.taskId$jscomp$3,Error("Xi"))}}(b),a.coordinatorTimeoutMs));
a.inflightPrefetchTasks.set(b.taskId$jscomp$3,c);if(!a.JSC$15857_commandHandler){if(!_.hs.instance){ZV(a,b.taskId$jscomp$3,Error("Yi"));continue}a.JSC$15857_commandHandler=_.hs.instance}a:switch(b.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":c=1;break a;default:c=0}b.prefetchTask$jscomp$1.jobId=a.scheduler.addJob(function(d){return function(){d.prefetchTask$jscomp$1.tick("pcr");try{a.JSC$15857_commandHandler.resolveCommand(d.prefetchTask$jscomp$1.taskModel.command)||
ZV(a,d.taskId$jscomp$3,Error("Zi"))}catch(e){ZV(a,d.taskId$jscomp$3,e)}}}(b),c,0)}}},vgc=function(a,b){(b=rgc(a,b))!=null&&(b.resolver.resolve(),b.tick("pce"));
XV(a,3)},ZV=function(a,b,c){(b=rgc(a,b,c))!=null&&(b.resolver.reject(c),b.tick("pcc"),ogc(b,"CANCELLATION_REASON_ERROR"),Math.random()<=_.$i("prefetch_coordinator_error_logging_sampling_rate")&&(c=new _.qj("Prefetch Command failed.",b.taskModel.id,c.message),_.Bl(c)));
XV(a,3)},rgc=function(a,b,c){var d=a.allPrefetchTasks.get(b);
d?((c=a.inflightPrefetchTasks.get(b))&&c!==-1&&a.scheduler.cancelJob(c),a.inflightPrefetchTasks.delete(b),a.allPrefetchTasks.delete(b)):_.Dl(new _.qj("Unexpected missing prefetch task when deleting task.",b,c==null?void 0:c.message));return d};var wgc=function(a,b,c,d,e){this.id=a;this.triggerOn=b;this.cancelOn=c;this.command=d;this.proto=e};
_.Vm.Object.defineProperties(wgc.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var xgc=function(){this.JSC$15862_prefetchCoordinator=sgc();ngc||(ngc=new WV);this.defaultCoordinator=ngc},ygc;
xgc.getInstance=function(){ygc||(ygc=new xgc);return ygc};
xgc.prototype.get=function(a){switch(a){case 0:return this.JSC$15862_prefetchCoordinator;default:return this.defaultCoordinator}};var $V=function(){this.coordinatorSupplier=xgc.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},Bgc=function(a){var b=_.Fn()||void 0,c=Object.keys(zgc)[0];
if(c){var d=a.taskIdByTriggerId.get(c);if(d!=null){a.taskIdByTriggerId.delete(c);c=[];d=_.h(d);for(var e=d.next();!e.done;e=d.next())if(e=a.tasks.get(e.value))b!=="UNDEFINED_CSN"&&(e.csn=b),c.push(e);c=V4a(c);b=[];c=_.h(c);for(d=c.next();!d.done;d=c.next()){e=_.h(d.value);d=e.next().value;e=e.next().value;d=a.coordinatorSupplier.get(d).queueAll(e);d=_.h(d);var g=d.next();for(e={};!g.done;e={taskId$jscomp$9:void 0},g=d.next()){var k=_.h(g.value);g=k.next().value;k=k.next().value;e.taskId$jscomp$9=
g;g=k;b.push(e.taskId$jscomp$9);a.queuedPromisesByTask.set(e.taskId$jscomp$9,_.Hz(g,function(m){return function(){Agc(a,m.taskId$jscomp$9)}}(e)))}}}}else _.Dl(new _.qj("Unexpected malformed TriggerEvent."))};
$V.prototype.trigger=function(a,b){var c=this,d=this.tasks.get(a);if(!d||this.queuedPromisesByTask.has(a))return!1;Cgc(this,a,d.triggerOn);b!=="UNDEFINED_CSN"&&(d.csn=b);b=this.coordinatorSupplier.get(d.taskType).queue(d);this.queuedPromisesByTask.set(a,_.Hz(b,function(){Agc(c,a)}));
return!0};
$V.prototype.cancel=function(a){var b=this.queuedPromisesByTask.get(a);if(b)b.cancel();else return Agc(this,a)};
var Agc=function(a,b){a.queuedPromisesByTask.delete(b);var c=a.tasks.get(b);if(!c)return!1;a.tasks.delete(b);Cgc(a,b,c.triggerOn);(c=U4a(c.cancelOn))&&(a=a.taskIdByCancelId.get(c))&&a.delete(b);return!0},Cgc=function(a,b,c){(c=Object.keys(c)[0])&&(a=a.taskIdByTriggerId.get(c))&&a.delete(b)};var zgc={taskRegistered:{}},aW=function(){$V.instance||($V.instance=new $V);this.JSC$15871_taskManager=$V.instance};
_.z(aW,NM);
aW.prototype.resolveCommand=function(a){var b=this,c,d;return _.l(function(e){c=_.y(a,cFb);if((d=c)==null||!d.tasks){var g=new _.qj("RegisterTasksCommand is missing tasks.");_.Bl(g);return e.return()}g=b.JSC$15871_taskManager;for(var k=_.h(c.tasks),m=k.next();!m.done;m=k.next())if(m=m.value,m=m.id&&m.triggerOn&&m.cancelOn&&m.command?new wgc(m.id,m.triggerOn,m.cancelOn,m.command,m):void 0,m){var n=Object.keys(m.triggerOn)[0];if(n){var r=U4a(m.cancelOn);r?(g.tasks.set(m.id,m),g.taskIdByTriggerId.has(n)||g.taskIdByTriggerId.set(n,
new Set),g.taskIdByTriggerId.get(n).add(m.id),g.taskIdByCancelId.has(r)||g.taskIdByCancelId.set(r,new Set),g.taskIdByCancelId.get(r).add(m.id)):_.Dl(new _.qj("Unexpected malformed cancelOn field."))}else _.Dl(new _.qj("Unexpected malformed triggerOn field."))}else _.Dl(new _.qj("Unexpected malformed Task proto."));Bgc(b.JSC$15871_taskManager);_.se(e)})};var Dgc={},Egc=(Dgc.rendered={priority:0,callback:function(){var a={};a.numCpu=navigator.hardwareConcurrency;var b={};b.ramGb=_.ja.navigator.deviceMemory;var c={staticContext:{}};b.ramGb&&W4a(b.ramGb)&&(c.staticContext.memoryTotalKbytes=(b.ramGb*1048576).toString());a.numCpu&&W4a(a.numCpu)&&(c.staticContext.cpuCores=a.numCpu);if(_.x("web_enable_adaptive_appl_signal")){a={};b=_.Mo("rses_dpj");var d=_.Mo("rsef_dpj");b&&b>0&&d&&d>0&&(b=Math.ceil(d-b),b>0&&(a.loadLatency=b));a.loadLatency&&W4a(a.loadLatency)&&
(c.appL=a.loadLatency.toString())}_.zl("applicationStarted",c)}},Dgc);var Fgc=new _.fB("WINDOW_ON_ERROR"),Ggc=new _.fB("ERROR_WEIGHT_MAPS"),Hgc=new _.fB("INIT_ERROR");var Igc={},Jgc=(Igc.initialized={priority:10,callback:function(a){a.injector.resolve(Hgc)()}},Igc);var Kgc=function(){},Lgc=function(){var a=_.Ji("meta_logger_impl");
a||(a=new Kgc,_.Rj("meta_logger_impl",a));return a},Mgc=function(){Lgc().csiSubscriptionKey=Qqa("meta_logging_csi_event",function(a){var b=a.timerName;
if(a=a.timelineData){_.Io(b,{startTime:a.startTime},b);a.infos&&_.Ho(a.infos,b);for(var c=_.h(Object.keys(a.ticks)),d=c.next();!d.done;d=c.next())d=d.value,_.Jo(d,a.ticks[d],b)}})};
Kgc.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&Tqa(this.csiSubscriptionKey)};var Ngc={},Ogc=(Ngc.initialized={priority:10,callback:function(){Mgc()}},Ngc);var Pgc=function(a,b){this.innertubeClientName=a;this.JSC$15887_prefCookie=b};
Pgc.prototype.record=function(){if(_.x("web_li_record_binary_eval_tick")){var a=_.Mo("rsef_dpj");var b=_.Mo("rses_dpj");a=a!==void 0&&b!==void 0?Math.round(a-b):void 0;if(a!==void 0&&a>0){b=_.sG(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var c=this.poolSize;if(!(b.valuesSeen>=1E9)){if(b.valuesSample.length<c)b.valuesSample.push(a);else{var d=Math.floor(Math.random()*(b.valuesSeen+1));d<c&&(b.valuesSample[d]=a)}b.valuesSeen+=1}_.rG(this.storagePrefix+"-"+this.innertubeClientName,
b,2592E3);a=b.valuesSample;b=X4a(a);a=a.length<5?void 0:b<400?1:b<1700?2:3;a!==void 0&&(this.JSC$15887_prefCookie.set(this.cookiePrefix+this.innertubeClientName,a),this.JSC$15887_prefCookie.save())}}else _.tG(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$15887_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$15887_prefCookie.save()};
Pgc[eB]=[HS,yfc];var Qgc=function(){Pgc.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.z(Qgc,Pgc);var Y4a=!1;var Rgc=new _.fB("PAGE_LOAD_TIME_TOKEN");var Sgc=new _.fB("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var bW=function(a,b){this.JSC$15910_storeWithEntities=a;this.JSC$15910_commandHandler=b;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
bW.prototype.start=function(){this.JSC$15910_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
bW.prototype.observeDownloadingEntities=function(){var a=_.uEa(this.JSC$15910_storeWithEntities.getState().entities).map(function(d){return vEa(d)});
if(a.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var b=_.fl({openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:l2a()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.dp(_.to("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}});this.JSC$15910_commandHandler.resolveCommand(b)}this.downloadingEntities=a}else if(this.downloadingEntities.length){var c=tEa(this.JSC$15910_storeWithEntities.getState().entities).map(function(d){return vEa(d)});
this.downloadingEntities.filter(function(d){return c.includes(d)}).length&&(a=_.fl({openPopupAction:A4a()}),this.JSC$15910_commandHandler.resolveCommand(a));
this.downloadingEntities=[]}};
bW[eB]=[sw,_.Xi];var Tgc;_.cW=function(a,b,c,d,e,g,k,m){this.JSC$15913_playerApiPromise=a;this.JSC$15913_commandHandler=b;this.JSC$15913_screenManager=c;this.offlineWebClientEligibility=d;this.JSC$15913_prefStorage=e;this.JSC$15913_actionRouter=g;this.entityTypeMap=k;this.JSC$15913_persistentStorePromiseAccessor=m;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
Tgc=function(){var a=_.v().resolve(_.cW),b;_.l(function(c){if(c.nextAddress==1)return a.downloadFailureListenerBound?c.return():_.p(c,a.JSC$15913_playerApiPromise,2);b=c.yieldResult;b.addEventListener("onOfflineOperationFailure",function(d){if(d.failureReason&&d.entityKey&&d.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(d.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var e=_.ip(d.entityKey).entityId;e&&a.JSC$15913_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
e)}else if(_.x("kevlar_woffle")){e=a.JSC$15913_commandHandler;var g=e.resolveCommand;d=d.failureReason;var k=_.to("TRANSFER_FAILED",void 0,"Download failed");d==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(k=_.to("STORAGE_FULL",void 0,"Storage full"));g.call(e,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.dp(k),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
a.downloadFailureListenerBound=!0;_.se(c)})};
_.cW.prototype.deleteVideo=function(a,b){var c=this,d,e,g;return _.l(function(k){if(k.nextAddress==1)return _.p(k,c.JSC$15913_playerApiPromise,2);d=k.yieldResult;g={offlineLoggingData:{offlineDeleteReason:(e=b)!=null?e:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return _.p(k,d.queueOfflineAction(a,c.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",g),0)})};
_.cW.prototype.pauseVideoDownload=function(a){var b=this,c;return _.l(function(d){if(d.nextAddress==1)return _.p(d,b.JSC$15913_playerApiPromise,2);c=d.yieldResult;c.pauseVideoDownload(a);_.se(d)})};
_.cW.prototype.resumeVideoDownload=function(a){var b=this,c;return _.l(function(d){if(d.nextAddress==1)return _.p(d,b.JSC$15913_playerApiPromise,2);c=d.yieldResult;return _.p(d,c.resumeVideoDownload(a),0)})};
_.cW[eB]=[_.gu,_.Xi,_.xH,Sgc,jT,bF,qJb,nS];var Ugc=new _.fB("DOWNLOAD_STATE_STORE_TOKEN");var Vgc=function(a,b){this.JSC$15932_persistentStorePromiseAccessor=a;this.store=b;this.upliftCompletionResolver=new _.gq},Ygc=function(){var a=_.v().resolve(Wgc),b;
_.l(function(c){switch(c.nextAddress){case 1:if(a.upliftImplPromise)return c.return(a.upliftImplPromise);_.me(c,2);a.upliftImplPromise=Xgc(a);return _.p(c,a.upliftImplPromise,4);case 4:a.upliftCompletionResolver.resolve();_.Jj(c,3);break;case 2:throw b=_.re(c),a.upliftCompletionResolver.reject(b),b;case 3:return c.return(a.upliftImplPromise)}})},Xgc=function(a){var b,c,d;
return _.l(function(e){switch(e.nextAddress){case 1:return _.Gi("LOGGED_IN")?_.p(e,a.JSC$15932_persistentStorePromiseAccessor(),2):e.return();case 2:b=e.yieldResult;if(!b)return _.Jo("vdeur"),e.return();_.Jo("vdeus");_.me(e,3);return _.p(e,Zgc(b),5);case 5:c=e.yieldResult;a.store.dispatch(eEa(c));b.observe(function(g){fEa(a.store,g)});
_.Jj(e,4);break;case 3:throw d=_.re(e),_.Jo("vdeur"),d;case 4:_.Jo("vdeuc"),_.se(e)}})},Zgc=function(a){var b;
return _.l(function(c){if(c.nextAddress==1)return _.p(c,f5a(a),2);b=c.yieldResult;return c.return(b.reduce(function(d,e){if(!e.data||!e.key||!e.entityType)return d;d[e.entityType]||(d[e.entityType]={});d[e.entityType][e.key]=e.data;return d},{}))})};
Vgc[eB]=[nS,_.IG];var Wgc;Wgc=new _.fB("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.dW=new _.fB("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var eW=function(a,b){this.JSC$15935_persistentStorePromiseAccessor=a;this.transportService=b};
eW.prototype.refresh=function(){var a=this,b,c,d,e;return _.l(function(g){if(g.nextAddress==1)return _.Gi("LOGGED_IN")?_.p(g,a.JSC$15935_persistentStorePromiseAccessor(),2):g.return();if(g.nextAddress!=3)return(b=g.yieldResult)?_.p(g,M4a(b),3):g.return();if((c=g.yieldResult)&&!(Number(c.data.refreshTimestampMs||0)<(0,_.Uj)()))return g.return();d={browseId:"SPaccount_downloads"};e=_.Zp(hw);_.OF(a.transportService,d,e).then(function(k){var m;if(b&&(k==null?void 0:(m=k.responseContext)==null?void 0:
m.maxAgeSeconds)!==0){var n;m=(k==null?void 0:(n=k.responseContext)==null?void 0:n.maxAgeSeconds)||604800;n=String(Math.floor((0,_.Uj)())+m*1E3);b.put("service:downloads_settings:fallback",new _.oJ({innertubeResponse:k,refreshTimestampMs:n}))}});
_.se(g)})};
eW[eB]=[_.VV,_.xq];var fW=function(a,b){this.JSC$15939_playerPromise=a;this.store=b;this.started=!1};
fW.prototype.start=function(){var a=this,b;return _.l(function(c){if(c.nextAddress==1)return a.started?c.return():_.p(c,a.JSC$15939_playerPromise,2);b=c.yieldResult;b.addEventListener("onOrchestrationBecameLeader",a.updateIsLeader.bind(a,!0));b.addEventListener("onOrchestrationLostLeader",a.updateIsLeader.bind(a,!1));if(b.isOrchestrationLeader)a.updateIsLeader(b.isOrchestrationLeader());else{var d=new _.qj("Function isOrchestrationLeader is undefined",{"player.isReady":b.isReady(),"player.playVideo":b.playVideo?
"defined":"undefined"});_.Bl(d);a.updateIsLeader(!1)}a.started=!0;_.se(c)})};
fW.prototype.updateIsLeader=function(a){this.store.dispatch(_.gp({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:a}}))};
fW[eB]=[_.gu,_.IG];var $gc=function(a,b){this.networkStatusManager=a;this.JSC$15942_prefStoragePromise=b;this.redirectsToPreload=["https://youtube.com"]},ahc=function(){var a=_.v().resolve($gc),b,c,d,e,g,k;
_.l(function(m){switch(m.nextAddress){case 1:return _.p(m,a.JSC$15942_prefStoragePromise,2);case 2:b=m.yieldResult;if(!(c=b)){m.jumpTo(3);break}return _.p(m,b.get("yt-redirect-prefetch-id"),4);case 4:c=m.yieldResult;case 3:if(c||!a.networkStatusManager.isNetworkAvailable())return m.return();d={cache:"reload",redirect:"manual"};e=_.h(a.redirectsToPreload);g=e.next();case 5:if(g.done){if(!b){m.jumpTo(0);break}return _.p(m,b.set("yt-redirect-prefetch-id",!0,86400),0)}k=g.value;_.me(m,8);return _.p(m,
_.ja.fetch(k,d),10);case 10:_.Jj(m,6);break;case 8:_.re(m);case 6:g=e.next(),m.jumpTo(5)}})};var gW=function(a){a?(this.container=a,this.containerWasInjected=!0):this.containerWasInjected=!1};
gW.prototype.openDialog=function(a,b,c){var d=this,e;return _.l(function(g){(e=d.container)==null||e.openDialog(a,b,c);_.se(g)})};
gW.prototype.closeDialog=function(){var a=this,b;return _.l(function(c){(b=a.container)==null||b.closeDialog();_.se(c)})};
gW.prototype.isDialogOpen=function(){var a=this,b,c;return _.l(function(d){return d.return((c=(b=a.container)==null?void 0:b.isDialogOpen())!=null?c:!1)})};
gW[eB]=[_.Wi(nXb)];_.bhc=new _.fB("POPUP_CONTROLLER_TOKEN");var chc=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
chc.prototype.registerPanel=function(a,b){if(a){this.panelMap.set(a,b);var c=this.pendingPanelResolvers.get(a);c&&(c.resolve(b),this.pendingPanelResolvers.delete(a))}};
chc.prototype.getPanel=function(a){var b=this,c;return _.l(function(d){return(c=b.panelMap.get(a))?d.return(c):d.return(dhc(b,a))})};
var dhc=function(a,b){var c,d;return _.l(function(e){if(c=a.pendingPanelResolvers.get(b))return e.return(c.promise);d=new _.gq;a.pendingPanelResolvers.set(b,d);return e.return(d.promise)})},ehc=function(a){chc.call(this);
var b=this;this.popupController=a;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return b.panelMap.size}}};
_.z(ehc,chc);_.f=ehc.prototype;_.f.getReloadContinuation=function(a){var b=this,c;return _.l(function(d){if(d.nextAddress==1)return _.p(d,b.getPanel(a),2);c=d.yieldResult;return d.return(c.getReloadContinuation())})};
_.f.showPanel=function(a,b,c,d,e,g,k){var m=this,n,r,t,u;return _.l(function(w){if(w.nextAddress==1){k&&m.updatePanelContinuationDatas.set(a,k);if((n=c)==null?0:(r=n.engagementPanelPopupPresentationConfig)==null?0:r.popupType){t=c.engagementPanelPopupPresentationConfig.popupType;e===void 0&&(e=document.body);var A=w.return,C=m.popupController,G=C.openPopup;a:switch(t){case "PANEL_POPUP_TYPE_DIALOG":var J="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":J="DROPDOWN";break a;default:throw Error("aj`"+
t);}return A.call(w,G.call(C,a,b,J,e))}return _.p(w,m.getPanel(a),2)}u=w.yieldResult;(b||g)&&u.updatePanel(b,!1,d,g);u.showPanel(d);_.se(w)})};
_.f.hidePanel=function(a){var b=this,c;return _.l(function(d){if(d.nextAddress==1)return _.p(d,b.getPanel(a),2);c=d.yieldResult;c.hidePanel();b.popupController.closePopup(a);_.se(d)})};
_.f.isVisible=function(a,b){var c=this,d;return _.l(function(e){if(e.nextAddress==1)return b&&!c.panelMap.has(a)?e.return(!1):_.p(e,c.getPanel(a),2);d=e.yieldResult;return e.return(d.isVisible())})};
_.f.updatePanel=function(a,b,c,d,e,g){c=c===void 0?!1:c;var k=this,m;return _.l(function(n){if(n.nextAddress==1){if(!b&&!e)return n.return();g&&k.updatePanelContinuationDatas.set(a,g);return _.p(n,k.getPanel(a),2)}m=n.yieldResult;m.updatePanel(b,c,d,e);_.se(n)})};
_.f.registerPanelContent=function(a,b){a&&this.panelContentMap.set(a,b)};
_.f.getPanelContent=function(a){return this.panelContentMap.get(a)};
_.f.getUpdatePanelContinuationData=function(a){return this.updatePanelContinuationDatas.get(a)};
ehc[eB]=[_.bhc];var fhc=function(a,b){this.innertubeTransportService=a;this.JSC$15958_screenManager=b},ghc=function(a){var b;
return!((b=a.panelLoadingStrategy)==null||!b.requestTemplate)};
fhc.prototype.makeRequest=function(a){var b=this,c,d;return _.l(function(e){switch(e.nextAddress){case 1:if(!ghc(b)){e.jumpTo(2);break}_.me(e,3);return _.p(e,_.St(b.innertubeTransportService,a),5);case 5:return c=e.yieldResult,c?e.return(c.content):(_.Bl(Error("bj")),e.return(void 0));case 3:d=_.re(e),_.Bl(d);case 2:return e.return(void 0)}})};
fhc.prototype.execute=function(a){var b=this,c,d,e,g,k,m,n,r,t,u;return _.l(function(w){if(w.nextAddress==1){c=a;d=c.data;e=c.fallbackVe;g=c.parentVe;k=c.createScreenConfig;m=c.renderFn;n=c.command;b.panelLoadingStrategy=d;var A,C,G=((A=b.panelLoadingStrategy)==null?0:A.screenVe)?(C=b.panelLoadingStrategy)==null?void 0:C.screenVe:e;G&&_.mF(b.JSC$15958_screenManager,G,g,k);A=b.panelLoadingStrategy&&b.panelLoadingStrategy.inlineContent?b.panelLoadingStrategy.inlineContent:void 0;return(r=A)?_.p(w,m(r),
2):w.jumpTo(2)}return w.nextAddress!=4?ghc(b)?_.p(w,b.makeRequest(n),4):w.return():(u=t=w.yieldResult)?_.p(w,m(u),0):w.return()})};
fhc[eB]=[_.xq,_.xH];var hW=function(){};
hW.prototype.getContainer=function(){return _.bo()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
hW.prototype.openSheet=function(a,b){var c=this,d,e,g,k,m,n;return _.l(function(r){switch(r.nextAddress){case 1:return d={stack:[],error:void 0,hasError:!1},_.me(r,2,3),e=_.Rg,_.p(r,c.isSheetOpen(),5);case 5:g=r.yieldResult;_.Pr(d,_.Ug(e));if(g&&!_.x("delay_sheet_open_killswitch")){if(b&&c.currentTarget===b)return(k=c.getContainer())==null||k.closeSheet(),r.return();c.pendingData={data:a,target:b};return r.return()}a.viewModel&&(a={viewModel:a.viewModel});(m=c.getContainer())==null||m.openSheet(a,
b);c.currentTarget=b;case 3:_.oe(r);_.Qr(d);_.qe(r,0);break;case 2:n=_.re(r),d.error=n,d.hasError=!0,r.jumpTo(3)}})};
hW.prototype.closeSheet=function(){var a=this,b;return _.l(function(c){if(c.nextAddress==1)return _.p(c,(b=a.getContainer())==null?void 0:b.closeSheet(),2);if(c.nextAddress!=4)return a.currentTarget=void 0,!a.pendingData||_.x("delay_sheet_open_killswitch")?c.jumpTo(0):_.p(c,a.openSheet(a.pendingData.data,a.pendingData.target),4);a.pendingData=void 0;_.se(c)})};
hW.prototype.isSheetOpen=function(){var a=this,b,c;return _.l(function(d){return d.return((c=(b=a.getContainer())==null?void 0:b.isSheetOpen())!=null?c:!1)})};var tw=window.documentPictureInPicture;var hhc=new _.fB("APP_ROOT");var r5a=_.cx(["dark"]),s5a=_.cx(["system-icons"]),t5a=_.cx(["typography"]),u5a=_.cx(["lang"]),v5a=_.cx(["style"]),n5a=_.cx(["dir"]),o5a=_.cx(["rounded-container"]),p5a=_.cx(["style"]),x5a=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],iW=function(a){this.JSC$15970_clientRoot=a;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
iW.prototype.openWindow=function(a){var b=this,c,d;return _.l(function(e){if(e.nextAddress==1)return window.documentPictureInPicture&&_.Ea()&&!b.currentPipWindow?_.p(e,(c=tw?tw:null)==null?void 0:c.requestWindow(a),2):e.return(!1);if(e.nextAddress!=3){d=e.yieldResult;if(!d)return e.return(!1);d.addEventListener("pagehide",function(){ihc(b)});
d.addEventListener("resize",b.handlePipWindowResize);b.pipWindowResizeDelay=new _.Ym(function(){b.currentPipWindow&&_.ho(b.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.of(b.currentPipWindow.innerWidth,b.currentPipWindow.innerHeight)])},d);
w5a(d);z5a(d);return _.p(e,m5a(d),3)}if(!j5a())return e.return(!1);b.currentPipWindow=d;b.JSC$15970_eventForwarder=y5a(d,b.JSC$15970_clientRoot);b.pipWindowResizeDelay.start();return e.return(!0)})};
iW.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var ihc=function(a){if(a.currentPipWindow){var b,c;(b=tw?tw:null)==null||(c=b.window)==null||c.close();a.currentPipWindow.removeEventListener("resize",a.handlePipWindowResize);var d;(d=a.pipWindowResizeDelay)==null||d.dispose();a.pipWindowResizeDelay=void 0;var e;(e=a.JSC$15970_eventForwarder)==null||e.stop();a.JSC$15970_eventForwarder=void 0;b=_.h(a.onCloseCallbacks);for(c=b.next();!c.done;c=b.next())c=c.value,c();a.onCloseCallbacks=[];a.currentPipWindow=null}};
iW.prototype.getWindow=function(){return this.currentPipWindow};
var jhc=function(a,b){var c;(c=a.onCloseCallbacks)==null||c.push(b)};
_.Vm.Object.defineProperties(iW.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
iW[eB]=[hhc];var khc=new _.fB("PICTURE_IN_PICTURE_CONTROLLER");var A5a=function(a,b){this.lengthY=this.lengthX=0;this.lengthX=b.x-a.x;this.lengthY=b.y-a.y};var lhc=function(){},xfc=function(a,b){var c;
(c=a.headerElement)==null||c.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:b}))};var mhc=function(){};
mhc.prototype.openPopup=function(a,b,c,d){var e=this,g;return _.l(function(k){if(!e.container)return k.return();g={openPopupAction:{popup:b,popupType:c,uniqueId:a}};return k.return(e.container.handleOpenPopupAction(g,d))})};
mhc.prototype.closePopup=function(a){this.container&&this.container.closePopup(a)};var nhc=function(){this.openTunnels=new Map},WUa=function(a,b,c){if(E5a(c)){c={handleEvent:function(k){b&&!b.closed&&typeof b.postMessage==="function"&&k&&k.origin&&k.source===b&&k.data&&k.data.action==="gcl_setup"&&b.postMessage({action:"gcl_transfer",
gadSource:2},k.origin)}};
for(var d=_.h(a.openTunnels),e=d.next();!e.done;e=d.next()){var g=_.h(e.value);e=g.next().value;g=g.next().value;if(e.closed)try{window.removeEventListener("message",g),a.openTunnels.delete(e)}catch(k){_.Bl(k)}}b&&a.openTunnels.size<15&&(a.openTunnels.set(b,c),window.addEventListener("message",c))}};var ohc=function(){this.clientParams=new Map},Adc=function(a){for(var b=_.h(a.clientParams.keys()),c=b.next();!c.done;c=b.next())c=c.value,c.startsWith("yt-mini-app-share")&&a.clientParams.delete(c)};var phc=function(a,b){_.tg.call(this);var c=this;this.shortsController=a;this.storeWithShorts=b;a=_.wF(this.storeWithShorts,_.k0a,function(d){if(d){var e,g=(e=c.shortsController.getRoot())==null?void 0:e.getPlayer(),k;(e=(k=c.shortsController.alternativePlayerContainerElement)==null?void 0:k.getPlayerContainer())&&(g==null||g.appendTo(e))}else{var m;k=(m=c.shortsController.alternativePlayerContainerElement)==null?void 0:m.getPlayerContainer().querySelector("#player");e=c.shortsController.activeIndex;
(m=(g=c.shortsController.getRoot())==null?void 0:g.querySelector('ytd-reel-video-renderer[id="'+e+'"] #player-container'))&&(k==null||k.appendTo(m,void 0,!0))}});
this.addOnDisposeCallback(a)};
_.z(phc,_.tg);var jW=function(a,b,c,d,e){var g=this;this.storeWithShorts=a;this.ephemeralResponseStore=b;this.store=c;this.innertubeTransportService=d;this.innertubeTransportLoader=e;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.Mr(_.Av);this.isShortsPipActive=_.Mr(_.Bv);this.nextReelVe=_.lu(56921);this.prevReelVe=_.lu(56922);this.backButtonVe=_.lu(22156);this.TEST_ONLY={getActiveModules:function(){return g.activeModules}}},kLb,lLb,qhc;
jW.prototype.initOrDisposeActiveModules=function(a){a?this.activeModules.push(new phc(this,this.storeWithShorts)):(_.iia(this.activeModules),this.activeModules.length=0)};
jW.prototype.getRoot=function(){return this.rootElement};
jW.prototype.setActiveIndex=function(a){this.activeIndex=a};
_.eLb=function(a,b){var c,d,e,g,k,m;return _.l(function(n){switch(n.nextAddress){case 1:return c=new nV,(d=c.JSC$11743_getStoreKey(b))&&a.ephemeralResponseStore.has(d)?_.p(n,a.ephemeralResponseStore.get(d),7):_.p(n,qhc(a,b),4);case 4:e=n.yieldResult;if(!d){n.jumpTo(3);break}g=iu(e,3600);return _.p(n,a.ephemeralResponseStore.put(d,new _.oJ(g)),3);case 7:e=(k=n.yieldResult)==null?void 0:_.pw(k);case 3:return e.replacementEndpoint&&(m=_.y(e.replacementEndpoint,_.tq))&&e.sequenceContinuation&&(m.sequenceParams=
e.sequenceContinuation),n.return(e)}})};
kLb=function(a,b){b=(new oV).JSC$11743_getStoreKey(b);return!!b&&a.ephemeralResponseStore.has(b)};
lLb=function(a,b,c){var d,e,g,k,m;_.l(function(n){if(n.nextAddress==1){d=new oV;e=d.JSC$11743_getStoreKey(b);if(!e)return n.return();if(c.reelWatchSequenceResponse)return g=iu(c.reelWatchSequenceResponse,3600),a.ephemeralResponseStore.put(e,new _.oJ(g)),n.jumpTo(0);if(!a.ephemeralResponseStore.has(e))return n.jumpTo(0);m=c;return _.p(n,a.ephemeralResponseStore.get(e),4)}m.reelWatchSequenceResponse=(k=n.yieldResult)==null?void 0:_.pw(k);_.se(n)})};
qhc=function(a,b){var c=c===void 0?{}:c;var d,e,g;return _.l(function(k){switch(k.nextAddress){case 1:if(a.innertubeTransportService){d=a.innertubeTransportService;k.jumpTo(2);break}if(!a.innertubeTransportLoader){_.Hi(Error("dj"));k.jumpTo(2);break}return _.p(k,a.innertubeTransportLoader(),4);case 4:d=k.yieldResult;case 2:return _.p(k,(e=d)==null?void 0:_.St(e,b,c),5);case 5:return g=k.yieldResult,k.return(g)}})};
_.Vm.Object.defineProperties(jW.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
jW[eB]=[UKb,_.nJ,sw,_.Wi(_.xq),_.Wi(aKb)];_.rhc=new _.fB("STORAGE_MANAGER_TOKEN");var shc=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},thc;
shc.prototype.enqueue=function(a,b){b===1?this.currentPersistentToast=a:this.queue.push(a);this.openToast()};
shc.prototype.openToast=function(){var a;(a=this.currentToast)!=null&&a.opened||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.uhc=new _.fB("TOAST_MANAGER_TOKEN");var vhc;_.whc=_.Rr(function(a){return _.q("basic-content-view-model",{class:_.jt("ytBasicContentViewModelHost",_.Nr(a.className))},_.q(_.oi,{cond:function(){return a.data().headline},
then:function(b){return _.q("div",{class:"ytBasicContentViewModelHeadline"},_.q(_.wt,{text:b}))}}),_.q(_.ni,{each:function(){return a.data().paragraphs||[]},
keyBy:"INDEX"},function(b){return _.q("div",{class:"ytBasicContentViewModelParagraph"},_.q(_.oi,{cond:function(){var c=b();return!!(c.header||c.customHeader||c.headline)},
then:function(){return _.q(vhc,{paragraph:b})}}),_.q(_.oi,{cond:function(){return b().asset||b().text},
then:function(){return _.q("div",{class:"ytBasicContentViewModelParagraphContent"},_.q(_.oi,{cond:function(){return b().asset},
then:function(c){return _.q("div",{class:"ytBasicContentViewModelParagraphAsset"},_.q(_.Eu,{data:c},{contentPreviewImageViewModel:_.rL}))}}),_.q(_.oi,{cond:function(){return b().text},
then:function(c){return _.q("div",{class:"ytBasicContentViewModelParagraphText"},_.q(_.wt,{text:c}))}}))}}))}))});
vhc=_.Rr(function(a){var b=a.paragraph;return _.q(_.Vh,null,_.q(_.oi,{cond:function(){return b().headline},
then:function(c){return _.q(_.wt,{text:c,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.q(_.Eu,{data:function(){return b().header||b().customHeader}},{sectionHeaderViewModel:function(c){return _.q(_.aQ,{data:c.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))});var yhc=_.Rr(function(a){return _.q("yt-expandable-metadata-header-view-model",{class:"ytExpandableMetadataHeaderViewModelHost"},_.q(_.oi,{cond:function(){return a.expanded()},
then:function(){return _.q("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader"},_.q("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.q(_.oi,{cond:function(){return a.data().expandedTitleImage},
then:function(b){return _.q("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.q(_.Ss,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:b}))}}),_.q("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.q("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.q(_.wt,{text:function(){return a.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.q(_.wt,{text:function(){return a.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.q(_.wt,{text:function(){return a.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.q("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.q(_.Eu,{data:function(){return a.data().infoButton}},{buttonViewModel:_.Ju}),_.q(_.Eu,{data:function(){return a.data().collapseButton}},{buttonViewModel:function(b){return _.q(_.Ju,{data:b.data,
onClick:function(){var c;(c=a.expandedCallback)==null||c.call(a,!1)}})}})))},
else:function(){return _.q(xhc,Object.assign({},a))}}))}),zhc=_.Rr(function(a){return _.q("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.q(_.oi,{cond:function(){return a.data().collapsedLabelImage},
then:function(b){return _.q("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.q(_.Ss,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:b,alt:""}))}}),_.q(_.wt,{text:function(){return a.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))}),xhc=_.Rr(function(a){var b=_.ot(function(){var c;
return void((c=a.expandedCallback)==null?void 0:c.call(a,!0))});
return _.q("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader","on:click":b},_.q("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.q(_.oi,{cond:function(){return a.data().collapsedImage},
then:function(c){return _.q("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.q(_.Ss,{width:16,height:16,data:c,alt:""}))}}),_.q(_.oi,{cond:function(){return a.data().showLeadingCollapsedLabel},
then:function(){return _.q(zhc,Object.assign({},a))}}),_.q("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.q(_.wt,{text:function(){return a.data().collapsedTitle}}))),_.q("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.q(_.oi,{cond:function(){return!a.data().showLeadingCollapsedLabel},
then:function(){return _.q(zhc,Object.assign({},a))}}),_.q(_.Eu,{data:function(){return a.data().infoButton}},{buttonViewModel:_.Ju}),_.q(_.Eu,{data:function(){return a.data().expandButton}},{buttonViewModel:function(c){return _.q(_.Ju,{data:c.data,
onClick:function(){var d;(d=a.expandedCallback)==null||d.call(a,!0)}})}})))});var Ahc=_.Rr(function(a){var b=_.h(_.qt(function(){return a.data().initiallyExpanded})),c=b.next().value,d=b.next().value,e,g=(e=_.v().resolve(_.Wi(_.Ns)))==null?void 0:e(),k=function(){var m=a.data().colorData;
if(m)return g?m==null?void 0:m.darkColorPalette:m==null?void 0:m.lightColorPalette};
return _.q("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.rt({"background-color":function(){var m=k();return(m==null?0:m.section2Color)?_.Cq(m.section2Color):""}})},_.q(_.Eu,{data:function(){return a.data().header}},{expandableMetadataHeaderViewModel:function(m){return _.q(yhc,{data:m.data,
expanded:function(){return!!c()},
expandedCallback:function(n){d(n)}})}}),_.q(_.oi,{cond:function(){return c()},
then:function(){return _.q("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.q(_.Eu,{data:function(){return a.data().expandedContent}},{horizontalShelfViewModel:function(m){return _.q(_.AQ,{data:m.data,
includeMargin:!0,forceNarrowLayout:!0,palette:k})},
videoSummaryContentViewModel:function(m){return _.q(s0b,{data:m.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(m){return _.q(uL,{data:m.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(m){return _.q(_.whc,{data:m.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.q(_.Eu,{data:function(){return a.data().expandedBottomButtons}},{buttonViewModel:function(m){return _.q("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.q(_.Ju,{data:m.data}))}}))}}))});var Bhc=_.Rr(function(a){var b=a.text;var c=a.marqueeSpacing;var d=a.scrollDelay;var e=a.scrollDuration;var g=a.enableMarqueeScroll;a=_.h(_.fh(!1,"WyNYFf"));var k=a.next().value,m=a.next().value,n=_.h(_.fh(0,"OoTdhe"));a=n.next().value;var r=n.next().value,t=_.Rl();n=_.Rl();var u=_.Rl(),w=_.v().resolve(_.Ps);_.yh(function(){if(g()){var C=u.value.getBoundingClientRect().width,G=t.value.getBoundingClientRect().width;if(C>G){var J=(w==="ltr"?-1:1)*(C+(c?c():16));Promise.resolve().then(function(){m(!0);
r(J)})}}},"gFN33c");
var A={};return _.q("marquee-scroll",{class:"ytMarqueeScrollHost",el:t},_.q("div",{id:"marquee-scroll-inner-container",class:_.jt("ytMarqueeScrollInnerContainer",(A.ytMarqueeScrollAnimationEnabled=function(){return k()},A)),
el:n,style:_.rt({gap:c?(0,_.xQ)(c):"16px","animation-duration":e?c$b(e):"16s","animation-delay":d?c$b(d):"3s","--marquee-translate":(0,_.xQ)(a)})},_.q("span",{el:u,dir:"auto"},_.q(_.wt,{text:b,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.q(_.oi,{cond:k,then:function(){return _.q("span",{"aria-hidden":"true",dir:"auto"},_.q(_.wt,{text:b,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))});_.Chc=_.Rr(function(a){var b=a.data;a=_.ot(function(){b().onTapCommand&&_.Js(b().onTapCommand);return!1});
var c=_.Nu();return _.q("reel-sound-metadata-view-model",{class:"ytReelSoundMetadataViewModelHost","on:click":a,tabindex:0,role:"button","on:keydown":c},_.q("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.q(_.oi,{cond:function(){return b().musicIcon},
then:function(d){return _.q(_.Ss,{data:d,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon"})}}),_.q("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.q(Bhc,{text:function(){return b().soundMetadata},
enableMarqueeScroll:function(){return!!b().enableMarqueeScroll}}))))});var Dhc,Ehc,kW,Ihc,Khc,Hhc,Nhc,Mhc;Dhc=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];Ehc=_.$i("wil_icon_max_concurrent_fetches",Infinity);
kW=function(a,b,c){var d=this;this.iconSet=a;this.appDirection=b;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.ja.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.x("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.x("wil_icon_network_first");this.renderWhenIdle=_.x("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.x("wil_icon_load_immediately");this.isPurging=!1;a=function(){d.cacheStorageAvailable&&(d.cacheStorageAsync=_.ja.caches.open("yt-icons").then(function(g){return d.cacheStorageSync=g}).catch(function(){d.cacheStorageAvailable=!1}))};
c=(c==null?void 0:c())||{};c=_.h(Object.entries(c));for(b=c.next();!b.done;b=c.next()){var e=_.h(b.value);b=e.next().value;e=e.next().value;e=fi(e);Fhc(e);this.iconCache[b]=e.cloneNode(!0)}this.isPurging=Ghc(this);this.isPurging instanceof Promise?this.isPurging.then(a):a()};
_.BSa=function(a,b){var c=a.resolveIcon(b);return c?a.renderingMode===1?Hhc(a,c,a.renderingMode):(b=a.iconCache[c.url])?(b=b.cloneNode(!0),Ihc(a,b),Hhc(a,c,a.renderingMode,b)):_.Jhc(a,c).then(function(d){var e=d?0:1;Ihc(a,d);return Hhc(a,c,e,d)}):(_.Cl(new _.qj("Icon not found",{iconShape:b})),function(){})};
Ihc=function(a,b){if(b){a.counter+=1;a="_yt"+a.counter;b=[b].concat(_.Be(b.getElementsByTagName("*")));b=_.h(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,c.tagName==="style"&&c.textContent)c.textContent=Khc(c.textContent,a,!0);else for(var d=_.h(c.attributes),e=d.next();!e.done;e=d.next()){e=e.value;e.name==="id"&&(e.value+=a);["mask","fill","clip-path"].includes(e.name)&&(e.value=Khc(e.value,a));if(e.name==="style"){var g=c.style;try{g.cssText=Khc(g.cssText,a,!0)}catch(t){var k=void 0,m=
void 0,n=void 0,r=void 0;lW({error:((k=t)==null?void 0:(n=(m=k).toString)==null?void 0:n.call(m))||"",el:c.outerHTML,style:!!g,cssText:(r=g)==null?void 0:r.cssText})}}e.name==="xlink:href"&&(e.value=e.value.replace(/#(.*)/,"#$1"+a))}}};
Khc=function(a,b,c){var d=/url\(["']?#(.*?)["']?\)/;(c===void 0?0:c)&&(d=/url\(["']?#(.*?)["']?\)/g);return a.replace(d,"url(#$1"+b+")")};
Hhc=function(a,b,c,d){return function(e,g){var k=Object.assign({},{iconColor:"currentcolor",iconWidth:b.size+"px",iconHeight:b.size+"px",iconDisplay:"block"},g);g=_.lg("DIV");var m=k.iconColor,n=k.iconFilter;k="width: "+k.iconWidth+"; height: "+k.iconHeight+"; display: "+k.iconDisplay+";";n&&(k+=" filter: "+n+";");c===0&&(k+=" fill: "+m+";");c===1&&(n=b.url,k+=" -webkit-mask: url("+n+") no-repeat center / cover; mask: url("+(n+") no-repeat center / cover; background-color: ")+m);b.allowMirroring&&
a.appDirection==="rtl"&&(k+=" transform: scale(-1, 1); transform-origin: center center;");g.setAttribute("style",k);c===0&&d&&g.appendChild(d);e.appendChild(g)}};
_.Jhc=function(a,b){var c,d,e;return _.l(function(g){c=function(k){return Nd(k)};
d=b.url;if(!Lhc(d))throw Error("ej");e=Mhc(a,d);return g.return(e.then(function(k){return k.clone().text()}).then(function(k){var m=c(k);
k=b.size;var n=_.lg("DIV");_.Yd(n,m);m=_.mg(n.firstElementChild!==void 0?n.firstElementChild:_.Mcb(n.firstChild,!0));k=Fhc(m,k);a.iconCache[d]=k.cloneNode(!0);delete a.responsePromises[d];return k}).catch(function(){}))})};
Nhc=function(a){var b,c=(b=a.requestAninmationFrameResolver)==null?void 0:b.promise;c||(a.requestAninmationFrameResolver=new _.gq,c=a.requestAninmationFrameResolver.promise,_.ja.requestAnimationFrame(function(){var d;(d=a.requestAninmationFrameResolver)==null||d.resolve();a.requestAninmationFrameResolver=null}));
return c};
Mhc=function(a,b){var c,d;return _.l(function(e){if(e.nextAddress==1)return a.waitForAnimationFrame?_.p(e,Nhc(a),2):e.jumpTo(2);c=a.responsePromises[b];c||(d=function(){var g,k,m;return _.l(function(n){switch(n.nextAddress){case 1:if(!a.cacheStorageAvailable){g=void 0;n.jumpTo(2);break}if(k=a.cacheStorageSync){n.jumpTo(3);break}return _.p(n,a.cacheStorageAsync,4);case 4:k=n.yieldResult;case 3:g=k;case 2:return m=g,a.isNetworkFirstStrategy?n.return(a.fetchAndUpdateCache(b,m).catch(a.getCacheStorageResponse.bind(a,
b,m))):n.return(a.getCacheStorageResponse(b,m).catch(a.fetchAndUpdateCache.bind(a,b,m)))}})},c=a.renderWhenIdle?new Promise(function(g,k){_.ul(_.zk,function(){d().then(g).catch(k)},10)}):d(),a.responsePromises[b]=c);
return e.return(c.catch(function(g){delete a.responsePromises[b];lW({error:(g==null?0:g.toString)?g.toString():"",url:b});throw g;}))})};
kW.prototype.fetchAndUpdateCache=function(a,b){var c=this;return _.l(function(d){return d.return(Ohc(c,a).then(function(e){Phc(c,a,e,b);return e}))})};
var Ohc=function(a,b){var c;return _.l(function(d){if(a.numFetches<Ehc)return a.numFetches+=1,d.return(Qhc(a,b).finally(function(){--a.numFetches;if(Object.keys(a.queuedResponseResolvers).length){var e=Object.keys(a.queuedResponseResolvers)[0],g=a.queuedResponseResolvers[e];delete a.queuedResponseResolvers[e];g.resolve(Ohc(a,e))}}));
c=new _.gq;a.queuedResponseResolvers[b]=c;return d.return(c.promise)})},Qhc=function(a,b,c){c=c===void 0?2:c;
var d;return _.l(function(e){d={credentials:"same-origin",priority:"low"};return e.return(_.ja.fetch(b,d).then(function(g){return g.ok?g:Promise.reject(Error("fj`"+g.status+"`"+g.statusText))}).catch(function(g){if(c>0)return Qhc(a,b,c-1);
throw g;}))})},Phc=function(a,b,c,d){_.l(function(e){return d?e.return(new Promise(function(g){_.ul(_.zk,function(){var k,m;
return _.l(function(n){switch(n.nextAddress){case 1:if(!a.isNetworkFirstStrategy){k=void 0;n.jumpTo(2);break}return _.p(n,d.match(b).catch(function(){}),3);
case 3:k=n.yieldResult;case 2:if(m=k){n.jumpTo(4);break}return _.p(n,d.put(b,c.clone()).catch(function(r){lW({error:(r==null?0:r.toString)?r.toString():"",url:b})}),4);
case 4:g(),_.se(n)}})},50)})):e.return()})};
kW.prototype.getCacheStorageResponse=function(a,b){return _.l(function(c){return b?c.return(b.match(a).then(function(d){return d&&d.ok?d:Promise.reject()})):c.return(Promise.reject())})};
var Fhc=function(a,b){b===void 0||a.getAttribute("viewBox")||a.setAttribute("viewBox","0 0 "+b+" "+b);a.setAttribute("focusable","false");a.setAttribute("aria-hidden","true");try{a.style.pointerEvents="none",a.style.display="inherit",a.style.width="100%",a.style.height="100%"}catch(e){var c;lW({error:((c=e)==null?0:c.toString)?e.toString():""});try{a.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(g){var d;lW({error:((d=g)==null?0:d.toString)?g.toString():
""})}}return a},Lhc=function(a){for(var b=_.h(Dhc),c=b.next();!c.done;c=b.next())if(a.startsWith(c.value)&&a.endsWith(".svg"))return!0;
return!1};
kW.prototype.resolveIcon=function(a){return this.iconSet.resolveIcon(a)};
var lW=function(a){_.Dl(new _.qj("Error in IconManager",a))},Ghc=function(a){if(_.x("wil_icons_cache_purge_killswitch"))return!1;
try{var b=_.ja.localStorage}catch(g){return!1}if(!b||!a.cacheStorageAvailable)return!1;var c=function(g){try{var k;(k=b)==null||k.setItem("yt-icons-last-purged",g.toString())}catch(n){var m;lW({error:((m=n)==null?0:m.toString)?n.toString():""})}},d=Number(b.getItem("yt-icons-last-purged"));
if(!d)return d=new Date,d=d.setDate(d.getDate()-Math.floor(Math.random()*90+1)),c(d),!1;if(function(g,k){g=new Date(g);k=new Date(k);return k.getMonth()-g.getMonth()+12*(k.getFullYear()-g.getFullYear())}(d,Date.now())<3)return!1;
try{return _.ja.caches.delete("yt-icons").then(function(g){g&&c(Date.now());return g}).catch(function(){return!1}).finally(function(){a.isPurging=!1})}catch(g){var e;
lW({error:((e=g)==null?0:e.toString)?g.toString():""});return!1}};
kW[eB]=[$ec,_.Ps,_.Wi(cfc)];_.mW=function(a,b){this.iconManager=a;this.iconsToFetch=b};
_.mW[eB]=[_.gs,_.Wi(bfc)];var Rhc=function(a,b,c){this.requestKey=a;this.mRc=b;this.xYb=c;this.ekd=function(){return new XMLHttpRequest};
this.sab=void 0;this.j2b=[]};
Rhc.prototype.getLatestChallengeResponse=function(){return this.xYb};
var ogb=function(a,b,c){var d,e,g,k;return _.l(function(m){if(m.nextAddress==1){_.Io("attestation_challenge_fetch");_.Jo("att_fs",void 0,"attestation_challenge_fetch");if(!a.sab)throw new _.Jz(9,"Missing fetcher");return _.p(m,a.sab(b,c),2)}d=m.yieldResult;g=(e=d)==null?void 0:e.bgChallenge;if(!g)throw new _.Jz(15,"Missing field");a.xYb=d;a.j2b.forEach(function(n){n(d)});
k=I3a(g);_.Jo("att_fc",void 0,"attestation_challenge_fetch");HCa("attestation_challenge_fetch");return m.return(k)})},Lgb=function(a,b){var c,d,e,g,k;
return _.l(function(m){switch(m.nextAddress){case 1:c=new dg(100,3E5,.25,2),d=void 0;case 2:if(!(c.currBackoffCount_<10)){m.jumpTo(4);break}_.me(m,5);if(!(c.currBackoffCount_>0)){m.jumpTo(7);break}return _.p(m,F5a(c.getValue()),7);case 7:return _.p(m,Shc(a,b),9);case 9:return e=m.yieldResult,m.return(e);case 5:g=_.re(m);g instanceof _.Jz?d=g:(k=g instanceof Error?g.message:"Unknown",d=new _.Jz(9,k));xeb(c);m.jumpTo(2);break;case 4:if(d)throw d;throw new _.Jz(9,"Unknown error");}})},Shc=function(a,
b){b=cgb(dgb(new bgb,b),a.requestKey);
var c=new _.gq,d=a.ekd();d.open("POST",a.mRc);d.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");d.setRequestHeader("Content-Type","application/json+protobuf");d.onload=function(){if(joa(d)){var e=khb(d.responseText);c.resolve(e)}else c.reject(new _.Jz(_.Eia(cj(d)),d.statusText))};
d.onerror=function(){c.reject(new _.Jz(_.Eia(cj(d)),d.statusText))};
d.send(b.serialize());return c.promise};var Uhc=function(a){this.networkStatusManager=a;this.isDownloaded=N4a===void 0?function(){return!1}:N4a;
this.isReady=!1;this.wjd=Thc(this)},Thc=function(a){var b;
return _.l(function(c){if(c.nextAddress==1)return _.p(c,kia(),2);if(c.nextAddress!=3)return b=c.yieldResult,_.p(c,Mdb(b),3);a.nR=c.yieldResult;H5a(a.nR).then(function(){a.isReady=!0});
return c.return(a.nR)})},Vhc=function(a,b,c){a.nR?(a=a.nR.v8({aw:c,
jfb:!0,kfb:!0}),b.serviceIntegrityDimensions={poToken:a}):_.Bl(Error("gj"))};
Uhc.prototype.processContext=function(a){var b=this;if(!a.input.match(_.Zp(yHb)))return _.XE();var c=a.innerTubeRequest,d=c.videoId;return!d||this.isDownloaded(c)||this.networkStatusManager&&!this.nR&&!this.networkStatusManager.isNetworkAvailable()?_.XE():this.nR?this.isReady?(Vhc(this,c,d),_.XE()):new WE(H5a(this.nR).then(function(){Vhc(b,c,d)})):new WE(this.wjd.then(function(e){return _.l(function(g){if(g.nextAddress==1)return _.p(g,H5a(e),2);
Vhc(b,c,d);_.se(g)})}))};var Whc=new _.fB("WEB_PO_CONTEXT_PROCESSOR");var Xhc=function(a,b){var c=this;this.adb=0;var d;this.jCa=(d=b==null?void 0:b.jCa)!=null?d:window;this.networkStatusManagerPromise=b==null?void 0:b.networkStatusManagerPromise;var e;this.requestKey=(e=b==null?void 0:b.requestKey)!=null?e:_.aj("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var g;this.nfc=(g=b==null?void 0:b.nfc)!=null?g:function(n){return new Qz(n)};
var k;d=(k=b==null?void 0:b.cte)!=null?k:function(n,r,t){return new Rhc(n,r,t)};
this.bgChallenge=I3a(a.bgChallenge);this.ttlSeconds=J3a(fw(a.challenge||""));this.nJ=d(this.requestKey,_.x("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.ja.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",a);G5a(this.nJ);var m;this.g7b=(m=b==null?void 0:b.g7b)!=null?m:function(n){_.ss(c.jCa.document,"visibilitychange",function(){c.jCa.document.visibilityState===
"visible"&&n()})}},Zhc=function(a){if(!a.qc){var b={maxAttempts:5,
e7b:a.ttlSeconds*1E3};I5a(a.jCa);a.qc=a.nfc({nJ:a.nJ,u8:{disable:_.x("html5_web_po_disable_remote_logging"),ou:"aGIf",cJc:eoa("html5_web_po_experiment_ids"),dXc:_.x("wpo_dis_lfdms")?0:1E3},gta:b,vQc:a.bgChallenge,i0c:J5a});a.adb=Date.now();jgb(a.qc,function(){a.adb=Date.now()});
oia(a.qc,function(){return _.l(function(d){return d.return(Yhc(a))})});
var c=a.lWc.bind(a);a.networkStatusManagerPromise&&a.ttlSeconds>0&&a.networkStatusManagerPromise.then(function(d){d.listen("publicytnetworkstatus-online",c)});
a.g7b(c)}};
Xhc.prototype.lWc=function(){if(Date.now()>this.adb+this.ttlSeconds*1E3){var a;(a=this.qc)==null||igb(a)}};
var Yhc=function(a){if(a.vtb)return a.vtb;if(!a.qc)throw Error("hj");a.vtb=new Uz({qc:a.qc,nJ:a.nJ,cub:!0,onError:J5a});return a.vtb},L5a=function(a,b){a=new Xhc(a,b);
Zhc(a);Yhc(a)};var nW=function(a,b){this.store=a;this.queue=[];b==null||b.addEventListener("yt-navigate-start",this.reset.bind(this))};
nW.prototype.enqueue=function(a){var b=_.to("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:a.announcement,shortcut:_.to("SHIFT_PLUS_ENTER")});a=Object.assign({},a,{announcement:b});this.queue.push(a);$hc(this)};
nW.prototype.activate=function(){var a=_.c5a(this.store.getState());a&&(_.Fs(a.command),this.store.dispatch(sJb(null)))};
var $hc=function(a){if(!_.c5a(a.store.getState())&&a.queue.length){var b=a.queue.shift();b&&(a.previousAnnouncement===b.announcement&&(b.announcement+="\u00a0"),a.store.dispatch(sJb(b)),a.previousAnnouncement=b.announcement,a.timeoutId=setTimeout(function(){a.store.dispatch(sJb(null));$hc(a)},b.durationMs))}};
nW.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(sJb(null));this.queue.length=0;this.timeoutId=void 0};
nW[eB]=[_.IG,_.oG];_.aic=new _.fB("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var bic=new _.fB("AUTH_SERVICE_TOKEN");var O5a=_.cx(["about:blank"]),N5a;var cic=new _.fB("API_IFRAME_TOKEN"),dic=new _.fB("FETCH_FN_TOKEN"),eic=new _.fB("PARSE_FN_TOKEN"),fic=new _.fB("WINDOW_REQUEST_TOKEN");var mhb;mhb=new _.fB("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.gic=new _.fB("MISC_UI_SHARED_FLAGS_TOKEN");var hic=function(){};
hic.prototype.getFlag=function(a){if(a.configType!==2)throw Error("ij");return iic(a)};
var iic=function(a){switch(a.flagType){case "bool":return _.x(a.flagName);case "int":return _.Ib(_.$i(a.flagName));case "double":return _.$i(a.flagName);case "string":return _.aj(a.flagName);case "int32_list":return eoa(a.flagName);case "int64_list":return eoa(a.flagName).map(function(b){return _.Ib(b)});
case "string_list":return _.bj(a.flagName);default:throw Error("jj");}};var oW=function(a,b,c){b=b===void 0?{}:b;LB.call(this,c===void 0?"uninitialized":c);this.env=a;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}];b.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=b.shouldWaitOnAsyncImmediate)};
_.z(oW,LB);oW.prototype.init=function(a){var b=this,c;return _.l(function(d){if(d.nextAddress==1)return b.processPluginOptions.shouldWaitOnAsyncImmediate?_.p(d,a(b.env),2):(a(b.env),d.jumpTo(2));if(d.nextAddress!=4)return b.jobSet?_.p(d,b.jobSet.completedResolver.promise,4):d.jumpTo(4);c=_.SF();c.parkOrScheduleJob(function(){b.transition("rendering")},10,"ci");
_.se(d)})};
oW.prototype.initialRender=function(a){var b=this,c;return _.l(function(d){if(d.nextAddress==1)return b.processPluginOptions.shouldWaitOnAsyncImmediate?_.p(d,a(b.env),2):(a(b.env),d.jumpTo(2));if(d.nextAddress!=4)return b.jobSet?_.p(d,b.jobSet.completedResolver.promise,4):d.jumpTo(4);c=_.SF();c.parkOrScheduleJob(function(){b.transition("rendered")},10,"cr");
_.se(d)})};
oW.prototype.afterRenderImmediate=function(a){var b=this,c;return _.l(function(d){if(d.nextAddress==1)return b.processPluginOptions.shouldWaitOnAsyncImmediate?_.p(d,a(b.env),2):(a(b.env),d.jumpTo(2));if(d.nextAddress!=4)return b.jobSet?_.p(d,b.jobSet.completedResolver.promise,4):d.jumpTo(4);c=_.SF();c.parkOrScheduleJob(function(){b.transition("after-render-deferred")},10,"carml");
_.se(d)})};
oW.prototype.afterRenderDeferred=function(a){var b=this;return _.l(function(c){a(b.env);_.se(c)})};var jic={},kic=(jic.rendered={priority:0,callback:function(a){Pmb(a.injector.resolve(vl))}},jic);var lic=!1,X5a=0,T5a=null,W5a=null;var mic=new _.fB("NETWORK_SLI_TOKEN");var nic=function(a,b,c,d){this.networkSli=a;this.fetchFn=b;this.parseFn=c;this.requestFn=d};
nic.prototype.fetch=function(a,b,c){var d=this,e,g,k;return _.l(function(m){e=oic(d,a,b);k=(g=d.fetchFn)!=null?g:fetch;return m.return(k(e).then(function(n){return d.handleResponse(n,c)}).catch(function(n){_.Dl(n);
if((c==null?0:c.expectJsonStrict)&&n instanceof lG&&n.errorType===1)return Promise.reject(n)}))})};
var OQb=function(a,b,c,d){var e,g,k,m,n,r;return _.l(function(t){switch(t.nextAddress){case 1:return e=oic(a,b,c),_.me(t,2),_.p(t,fetch(e),4);case 4:g=t.yieldResult;_.Jj(t,3);break;case 2:throw _.re(t),new lG(2,"Failed to parse streaming response",e.url);case 3:if(!g.redirected&&!g.ok)throw(k=a.networkSli)==null||k.failure(),new _.qj("Streaming fetch request not ok",e.url);if(!g.body)throw new _.qj("No response body in streaming response",e.url);m=g.body.pipeThrough(new TextDecoderStream).getReader();
n=new _.lD;r={};return t.return(pic(a,m,n,QTa,r,d))}})},oic=function(a,b,c){if(a.networkSli){var d=_.gj(_.$n(b,"key"))||"/UNKNOWN_PATH";
a.networkSli.start(d)}d=c;_.x("wug_networking_gzip_request")&&(d=qra(c));var e;return new ((e=a.requestFn)!=null?e:window.Request)(b,d)},pic=function(a,b,c,d,e,g){var k,m,n,r,t,u,w,A,C;
return _.l(function(G){if(G.nextAddress==1)return _.p(G,b.read(),2);k=G.yieldResult;m=k.value;if(n=k.done)return(r=a.networkSli)==null||r.success(),G.return(e);try{t=c.parse(m)}catch(J){throw new lG(1,"Failed to parse streaming response",m);}if(t!=null)for(u=_.h(t),w=u.next();!w.done;w=u.next())A=w.value,d(e,A),C=void 0,(C=g)==null||C(e,A);return G.return(pic(a,b,c,d,e,g))})};
nic.prototype.handleResponse=function(a,b){var c,d=(c=this.parseFn)!=null?c:JSON.parse;c=a.text().then(function(e){if((b==null?0:b.jspbResponseCtor)&&a.ok)return tda(b.jspbResponseCtor,e);e=e.replace(")]}'","");if((b==null?0:b.expectJsonStrict)&&e)try{var g=d(e)}catch(m){throw new lG(1,"JSON parsing failed after fetch");}var k;return(k=g)!=null?k:d(e)});
a.redirected||a.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),c=c.then(function(e){_.Dl(new _.qj("Error: API fetch failed",a.status,a.url,e));return Object.assign({},e,{errorMetadata:{status:a.status}})}));
return c};
nic[eB]=[_.Wi(mic),_.Wi(dic),_.Wi(eic),_.Wi(fic)];var qic=new _.fB("NETWORK_MANAGER_TOKEN");var ric=[1,2,4,8,16,30],tic=function(a){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=a.maxTimeMs;this.maxFrameCount=a.maxFrameCount===void 0?Math.ceil(60*a.maxTimeMs/1E3):a.maxFrameCount;a=_.h(ric);for(var b=a.next();!b.done;b=a.next())this.brokenFrameSummarizers.push(new sic(b.value/60*1E3))},uic=function(a){var b=a.frameCountInternal>=a.maxFrameCount;
return a.elapsedTimeMs>=a.maxTimeMs||b},vic=function(a){for(var b=[],c=_.h(a.brokenFrameSummarizers),d=c.next();!d.done;d=c.next())d=d.value,d=d.brokenFrameCount!==0?{severityMs:Math.round(d.targetFrameTimeMs),
eventCount:d.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(d.averageDurationBetweenEventsMs)}:void 0,d&&b.push(d);return{summaries:b,monitoringDurationMs:Math.round(a.elapsedTimeMs)}};
_.Vm.Object.defineProperties(tic.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 sic=function(a){this.targetFrameTimeMs=a;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.Vm.Object.defineProperties(sic.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var wic=function(){};
wic.prototype.start=function(a,b){var c=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var d=new tic({maxTimeMs:a});this.monitor=d;this.lastSummaryInternal=void 0;this.metadataToLog=b;return new Promise(function(e){var g=function(k){if(k===void 0)c.stop(),e(void 0);else if(c.monitor!==d)k=Object.assign({},vic(d),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),e(k);else{var m=c.monitor;if(!uic(m)){m.frameCountInternal++;if(m.prevTime===void 0)m.startTime=
k;else for(var n=k-m.prevTime,r=_.h(m.brokenFrameSummarizers),t=r.next();!t.done;t=r.next()){t=t.value;var u=t.currTimeMs;t.currTimeMs+=n;n>t.targetFrameTimeMs+2&&(t.brokenFrameCount++,t.timeOfFirstBrokenFrameMs===void 0&&(t.timeOfFirstBrokenFrameMs=u),t.timeOfLastBrokenFrameMs=u)}m.prevTime=k}uic(c.monitor)?e(c.stop()):_.zk.addJob(g,5,0)}};
_.zk.addJob(g,5,0)})};
wic.prototype.stop=function(a){if(!this.monitor)return this.lastSummaryInternal;var b=Object.assign({},vic(this.monitor),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(b.monitoringDurationMs){a=a!=null?a:this.metadataToLog;var c={droppedFramesSummary:b,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};a&&(c[a.type]=a.data);_.zl("manualSmoothnessMeasurement",c)}this.monitor=void 0;this.lastSummaryInternal=b;this.metadataToLog=void 0;return b};_.xic=new _.fB("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var yic;yic=function(a){this.JSC$16084_expiringStorage=new sj(a)};
_.zic=function(a){if(_.Y5a()&&(a=_.Toa(_.oj()+"::"+a)))return new yic(a)};
yic.prototype.set=function(a,b,c){c=c!==void 0?Date.now()+c:void 0;this.JSC$16084_expiringStorage.set(a,b,c)};
yic.prototype.get=function(a){return this.JSC$16084_expiringStorage.get(a)};
yic.prototype.remove=function(a){this.JSC$16084_expiringStorage.remove(a)};var Aic=new _.fB("SESSION_STORAGE");_.pW=function(){};
_.pW.getInstance=function(){var a=_.Ji("ytglobal.storage_");a||(a=new _.pW,_.Rj("ytglobal.storage_",a));return a};
_.pW.prototype.estimate=function(){var a,b,c;return _.l(function(d){a=navigator;return((b=a.storage)==null?0:b.estimate)?d.return(a.storage.estimate()):((c=a.webkitTemporaryStorage)==null?0:c.queryUsageAndQuota)?d.return(Z5a()):d.return()})};
_.Rj("ytglobal.storageClass_",_.pW);var e6a=0;var Bic=_.cx(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),Cic=_.cx(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var Mfc={"/":_.vF,"/?feature=ytca":_.vF,"/feed/downloads":_.h2a};var Aw=function(a,b,c){this.JSC$16097_upliftPromise=a;this.store=b;this.JSC$16097_persistentStorePromiseAccessor=c};
Aw.prototype.shouldPreferLocalResponse=function(a){return a.browseId==="FEdownloads"||a.browseId==="FEsmart_downloads"&&_.x("kevlar_modern_downloads_page")?!0:!1};
Aw.prototype.localInnertubeResponse=function(a){var b=this;return _.l(function(c){return a.browseId==="FEdownloads"?_.x("kevlar_modern_downloads_page")?c.return(Dic(b)):c.return(Eic(b)):a.browseId==="FEsmart_downloads"&&_.x("kevlar_modern_downloads_page")?c.return(Fic(b)):c.return(Promise.reject(Error("lj")))})};
Aw.prototype.canProvideFallbackResponse=function(){return!0};
Aw.prototype.localFallbackInnertubeResponse=function(a){var b=this,c,d,e;return _.l(function(g){switch(g.nextAddress){case 1:return _.p(g,b.JSC$16097_persistentStorePromiseAccessor(),2);case 2:c=g.yieldResult;if(a.browseId!=="SPaccount_downloads"||!c){g.jumpTo(3);break}return _.p(g,M4a(c),4);case 4:if(d=g.yieldResult)return g.return(_.pw(d));case 3:return a.browseId==="FEwhat_to_watch"?g.return(Gic(b)):(e=_.x("web_offline_continuation_automatic_retry")||_.x("web_offline_continuation_retry_button"))&&
a.continuation?g.return(Hic(b)):g.return(Iic(b))}})};
var Gic=function(a){var b;return _.l(function(c){if(c.nextAddress==1)return _.p(c,a.JSC$16097_upliftPromise,2);b=_.YEa(a.store.getState().entities);return b.length?c.return(Jic(a,b)):c.return(Iic(a))})},Eic=function(a){var b,c;
return _.l(function(d){if(d.nextAddress==1)return _.p(d,a.JSC$16097_upliftPromise,2);if(d.nextAddress!=3)return b=Kic([{offlineItemSectionRenderer:{}}]),_.p(d,Lic(a,b),3);c=d.yieldResult;c.onResponseReceivedActions=[Sv("REFRESH_DOWNLOADS")];return d.return(c)})},Dic=function(a){var b,c,d,e,g,k,m,n,r,t,u,w,A;
return _.l(function(C){if(C.nextAddress==1)return _.p(C,a.JSC$16097_upliftPromise,2);if(C.nextAddress!=3)return b=a.store.getState(),c=b.entities,d=_.Cp(c),e=_.fFa(c),g=_.BFa(b),k=_.AFa(b),m=_.CFa(b),n=_.bFa(c),r=_.mEa(d),t=_.Dp(c),u={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.E4a(d,e,n,g,k,r,t,m),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},w=_.to("DOWNLOADS",void 0,"Downloads"),_.p(C,Mic(a,u,w),3);A=C.yieldResult;
A.onResponseReceivedActions=[Sv("REFRESH_DOWNLOADS")];return C.return(A)})},Fic=function(a){var b,c,d,e,g,k,m,n,r;
return _.l(function(t){if(t.nextAddress==1)return _.p(t,a.JSC$16097_upliftPromise,2);if(t.nextAddress!=3)return b=a.store.getState(),c=b.entities,d=_.Cp(c),e=_.mEa(d),g=_.Dp(c),k={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.F4a(d),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},m=_.to("SMART_DOWNLOADS",void 0,"Smart downloads"),n=C4a(e,g),_.p(t,Mic(a,k,m,n),3);r=t.yieldResult;r.onResponseReceivedActions=
[Sv("REFRESH_DOWNLOADS")];return t.return(r)})},Iic=function(a){var b,c;
return _.l(function(d){if(d.nextAddress==1)return _.p(d,ow(a.JSC$16097_upliftPromise,a.store),2);b=d.yieldResult;c=Kic([nw(b)]);return d.return(Lic(a,c))})},Hic=function(a){var b,c,d,e;
return _.l(function(g){if(g.nextAddress==1)return b={},c=a.store.getState().continuation.continuationCommand,_.zs(b,_.Kt,c),_.p(g,ow(a.JSC$16097_upliftPromise,a.store,b,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);d=g.yieldResult;e={};_.zs(e,_.Czb,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:d}}}],targetId:"browse-feedFEwhat_to_watch"});return g.return({responseContext:{},onResponseReceivedActions:[e]})})},Kic=function(a){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:a}}}}]}}},Jic=function(a,b){var c,d;
return _.l(function(e){var g={contents:G4a(b)};c=g&&g.contents?g:{};_.x("kevlar_modern_downloads_page")&&(c=Object.assign({},_.F4a(b),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));d={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:c}}}]}};return e.return(Lic(a,d))})},Lic=function(a,b){var c,d;
return _.l(function(e){if(e.nextAddress==1)return _.p(e,a.JSC$16097_persistentStorePromiseAccessor(),2);if(e.nextAddress!=3)return c=e.yieldResult,_.p(e,qw(c),3);d=e.yieldResult;return e.return({responseContext:{},contents:b,topbar:d})})},Mic=function(a,b,c,d){var e,g;
return _.l(function(k){if(k.nextAddress==1)return _.p(k,a.JSC$16097_persistentStorePromiseAccessor(),2);if(k.nextAddress!=3)return e=k.yieldResult,_.p(k,qw(e),3);g=k.yieldResult;var m=k.return,n=d;n=n===void 0?"":n;var r={dynamicTextViewModel:{text:{content:c}}};var t={flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.to("SETTINGS",void 0,"Settings"),accessibilityText:_.to("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:bp("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}};return m.call(k,{responseContext:{},contents:b,topbar:g,header:{pageHeaderRenderer:{content:{pageHeaderViewModel:{title:r,actions:t,metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:n}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},
pageTitle:c}}})})};var Nic=function(){this.moduleRegistry={};this.fetchCount=0};
Nic.prototype.isFetching=function(){return this.fetchCount>0};
var Ww=function(a,b){a.moduleRegistry[b.toString()]={asyncId:b,isFetching:!1};return a};
Nic.prototype.JSC$16108_loadModules=function(){for(var a=this,b=new Map,c=[],d=_.h(_.Id.apply(0,arguments)),e=d.next();!e.done;e=d.next()){e=e.value;var g=this.moduleRegistry[e];g?g.resolver?b.set(e,g.resolver):(g.resolver=new _.gq,b.set(e,g.resolver),c.push(g.asyncId),g.isFetching=!0):(g=new _.gq,b.set(e,g),g.resolve(void 0))}c.length&&(this.fetchCount+=1,_.Hz(_.IH.getMultipleAsync.apply(_.IH,_.Be(c)).then(function(k){for(var m=0;m<c.length;m++){var n=k[m],r=a.moduleRegistry[c[m].toString()];r.isFetching=
!1;r.resolver.resolve(n)}}).catch(function(k){for(var m=_.h(c),n=m.next();!n.done;n=m.next()){n=n.value;
var r=a.moduleRegistry[n.toString()];r.resolver=void 0;r.isFetching=!1;b.get(n.toString()).reject(k)}}),function(){--a.fetchCount}));
return Promise.all([].concat(_.Be(b.values())).map(function(k){return k.promise}))};_.Xw=new _.fB("MODULE_REGISTRY_TOKEN");var Oic={},Pic=(Oic.rendered={priority:0,callback:function(a){a:{var b=void 0;try{var c,d=(c=RLb("pom"))==null?void 0:c.get("role_text");if(!d)break a;b={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:d}]}}}}}}catch(k){}b&&a.injector.resolve(_.Xi).resolveCommand(b)}try{var e=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(e){var g=JSON.parse(e);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");g&&a.injector.resolve(_.Xi).resolveCommand(g)}}catch(k){}}},
Oic);var Qic,Ric={},Sic=(Ric.initialized={priority:10,callback:function(){Qic=Jw()}},Ric.rendering={callback:function(a){var b;
return _.l(function(c){if(c.nextAddress==1)return _.p(c,Qic,2);b=c.yieldResult;if(!b.endpoint)throw Error("nj`"+_.ja.location.href);Nw(a,b);_.se(c)})}},Ric);var Tic={messageWeights:[{messageRegExp:/.*(window.customElements|HTMLTemplateElement).* is undefined/,weight:500},{messageRegExp:/.*(protonpass).*/,weight:0},{messageRegExp:/.*property '(configurable|polyfillWrapFlushCallback)'.*/,weight:500},{messageRegExp:/.*__shady_(native_addEventListener|getRootNode).*/,weight:500}].concat(_.Be(_.x("web_pip_minimize_breakages")?[{messageRegExp:/.*__shady_dispatchEvent.*/,weight:0}]:[]),[{messageRegExp:/ytsignals missing/,weight:500},{messageRegExp:/MutationObserver is not defined/,
weight:100},{messageRegExp:/Cannot call 'patch'/,weight:500},{messageRegExp:/ShadyDOM.patch is not a function/,weight:500},{messageRegExp:/Illegal invocation/,weight:500},{messageRegExp:/no such interface supported/,weight:500},{messageRegExp:/play.*request was interrupted/,weight:500},{messageRegExp:/Failed to .* ServiceWorker.*/,weight:500},{messageRegExp:/Cannot call 'onIdle'/,weight:500},{messageRegExp:/Failed to sanitize attribute of <div>: <div style="--nx:82;">/,weight:500},{messageRegExp:/(DOMPurify|vid_mate_check) is not defined/,
weight:0},{messageRegExp:/A network error occurred/,weight:500},{messageRegExp:/Ticking CPT when CPT already ticked/,weight:100},{messageRegExp:/Unexpected end of .*(input|data)/,weight:500},{messageRegExp:/JSON .* unexpected/,weight:500},{messageRegExp:/Unexpected token </,weight:500},{messageRegExp:/^undefined$/,weight:500},{messageRegExp:/The YouTube player is not attached to the DOM/,weight:500},{messageRegExp:/Malformed continuation/,weight:500},{messageRegExp:/Offset is outside the bounds of the DataView/,
weight:500},{messageRegExp:/Cannot call 'push'/,weight:0},{messageRegExp:/.*push is not a function/,weight:0},{messageRegExp:/.*\.find is not a function/,weight:0},{messageRegExp:/Cannot redefine property: BetterJsPop/,weight:0},{messageRegExp:/cdn.paddle.com/,weight:0},{messageRegExp:/^network error$/,weight:0},{messageRegExp:/Cannot read property 'snippet'.*/,weight:0},{messageRegExp:/Cannot read property 'insertBefore'.*/,weight:0},{messageRegExp:/The play method is not allowed by the user agent or the platform in the current context, possibly because the user denied permission./,
weight:0},{messageRegExp:/Unhandled action/,weight:100},{messageRegExp:/UrlEndpoint should not be used for same origin navigations. Use a better typed endpoint instead./,weight:100},{messageRegExp:/VisibilityLogger called before newScreen/,weight:1E3},{messageRegExp:/BL:ULB/,weight:500},{messageRegExp:/Failed to retrieve emoji manager initial JSON data/,weight:100},{messageRegExp:/Endpoint supplied is invalid/,weight:100},{messageRegExp:/Cannot read property 'polyfillWrapFlushCallback'.*/,weight:500},
{messageRegExp:/unblocked44.ml.*/,weight:0},{messageRegExp:/Failed to fetch/,weight:500},{messageRegExp:/.*API fetch failed.*/,weight:1E3},{messageRegExp:/No RequestBuilder for endpoint/,weight:100},{messageRegExp:/.*Failed to initialize Tango client in CommentsInvalidation.*/,weight:100},{messageRegExp:/.*redefine.*property.*adPlacements/,weight:1E3},{messageRegExp:/ownerObj.base is undefined/,weight:1E3},{messageRegExp:/History popstate has no state/,weight:500},{messageRegExp:/ReadableStream uploading is not supported/,
weight:1E3},{messageRegExp:/bad trailing UTF-8 byte .* doesn't match the pattern 0b10xxxxxx/,weight:1E3},{messageRegExp:/b172965563/,weight:1E3},{messageRegExp:/UrlEndpoint should not be used for same origin navigations/,weight:1E3},{messageRegExp:/Fetching RunAttestationCommand returned falsy/,weight:100},{messageRegExp:/WEBCHANNEL_NETWORK_ERROR/,weight:100},{messageRegExp:/urlForEndpoint used on client endpoint/,weight:1E3},{messageRegExp:/InnerTubeTransportService is already initialized/,weight:100},
{messageRegExp:/Cannot redefine property: userAgent/,weight:500},{messageRegExp:/(ResizeObserver loop limit exceeded)|(ResizeObserver loop completed with undelivered notifications)/,weight:500},{messageRegExp:/undefined is not an object \(evaluating 'this.manager'\).*/,weight:500},{messageRegExp:/_0x22d63b is not defined/,weight:500},{messageRegExp:/Cannot call '1'/,weight:500},{messageRegExp:/.*Wanteeed.*/,weight:0},{messageRegExp:/.*WtdRoot*/,weight:0},{messageRegExp:/.*Constructing wtd-root:*/,
weight:0},{messageRegExp:/.*WtdDiv.*/,weight:0},{messageRegExp:/.*Failed to execute 'appendChild'.*/,weight:0},{messageRegExp:/.*TypeError: a is not a constructor'.*/,weight:0},{messageRegExp:/.*Readwise.*/,weight:0},{messageRegExp:/.*Form is either loading or already opened*/,weight:0},{messageRegExp:/.*wtd-div.*/,weight:0},{messageRegExp:/.*Blocked a frame with origin "https:\/\/www.youtube.com" from accessing a cross-origin frame.*/,weight:0},{messageRegExp:/.*disguiseToken.*/,weight:0},{messageRegExp:/Identifier 'YTNonstop' has already been declared/,
weight:1E3},{messageRegExp:/Cannot read properties of undefined (reading 'setTimeout')/,weight:0},{messageRegExp:/undefined is not an object \(evaluating 'this.\w+.setTimeout'\)/,weight:0},{messageRegExp:/BWB:Timeout/,weight:0},{messageRegExp:/NWA/,weight:0},{messageRegExp:/This document requires '((TrustedHTML)|(TrustedScript)|(TrustedScriptURL))' assignment/,weight:0},{messageRegExp:/The constructed element must not have any attributes/,weight:100},{messageRegExp:/runtime.browser/,weight:500},{messageRegExp:/Cannot call 'registerMenuCommand'/,
weight:500},{messageRegExp:/__data is undefined/,weight:0},{messageRegExp:/.*ddg-ctl-placeholder-blocked*/,weight:1E3}]),callbackWeights:[{callback:function(a){var b=a.stack;if(b.includes("chrome://")||b.includes("chrome-extension://")||a.message.includes("chrome-extension://")||b.includes("moz-extension://")||b.includes("local.adguard.org")||b.includes("auctioneer3.50million.club")||b.includes("youtubedownloader")||b.includes("youtube_home_page")||b.includes("is_youtube_video_no_longer_available")||
b.includes("switchScreenSizeHack")||b.includes("yt_main_big_banner.js")||b.includes("YouTubeCenter.js")||b.includes("/mytube.js")||b.includes("JSON.parseWrapper")||b.includes("/inj_js/common.js")||b.includes("firebug-lite")||b.includes(".repl.co/")||b.includes("linkfix")||b.includes("playAfterAd")||a.message.includes("Access is denied for this document")&&b.includes("<anonymous>")||a.fileName==="user-script"||a.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
b.includes("<anonymous>"))return!0;if(b.includes("https://www.youtube.com"))return!1;a=b.split("\n");if(!a.length)return!1;if(a.length<=3&&b.includes("s.onloadeddata"))return!0;b=0;for(var c=_.h(a),d=c.next();!d.done;d=c.next())d=d.value,(d.includes("https://")||d.includes("http://"))&&b++;return b/a.length>.95},
weight:0},{callback:function(a){return a.message==="Unknown Error"&&a.name.indexOf("NS_")===0},
weight:100},{callback:function(a){if(!_.sx)return!1;var b=a.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||a.message.includes("available to complete this operation"),c=a.stack.includes("webcomponents")&&a.message==="Object doesn't support this action";a=a.message.includes("object that does not implement interface Element");return b||c||a},
weight:0},{callback:function(a){return a.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(a){return a.message==="Operation is not supported"&&(a.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(a){return a.stack.includes("eval code (eval (code:1:1)")||a.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(a){return a.message.includes("Permission denied")&&a.stack.includes("this.domHandler")?!0:a.name.includes("TypeError")&&a.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(a){if(!a.stack)return!1;var b=a.stack.trim().split("\n");b.length&&b[0].endsWith("Error: "+a.message)&&b.shift();b.length&&b[b.length-1].includes("at window.onerror (")&&b.pop();if(!b.length)return!0;if(a.message==="Script error.")return b[0].includes("www.youtube.com")||b.length>=2&&b[0].startsWith("at new")&&b[1].startsWith("at window.onerror");if(a.message==="Unexpected token")return!0;a=_.h(b);for(b=a.next();!b.done;b=a.next())if(b=b.value,!(b.includes("<anonymous>")||
b.startsWith("load@")||b.startsWith("global code@")||b.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(a){return a.message==="Cannot read property 'experiments'"&&a.stack.includes("/s/player/")},
weight:500},{callback:function(a){return a.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(a){return a.stack.includes("/embed.js")?(a.params&&a.params&&(a.params.name="56"),!0):!1},
weight:1}]};var Uic={},Vic=(Uic.initialized={priority:10,callback:function(a){a.injector.addProvider({provide:hhc,useValue:a.root});a.injector.addProvider({provide:Fgc,useValue:Qta});a.injector.addProvider({provide:Ggc,useValue:Tic});var b={};a.injector.addProvider((b.provide=Hgc,b.useFactory=function(c,d){return function(){b5a(c,d)}},b[eB]=[Fgc,
Ggc],b));a.injector.addProvider({provide:rJ,useClass:rJ})}},Uic);var Wic={},Xic=(Wic.initialized={priority:3,callback:function(){var a;if(a=Loa()){a=a.replace("/",".");var b=_.wo();b.set("tz",a);b.save();a=!0}else a=!1;a||(a=_.wo(),a.set("utco",-Math.floor((new Date).getTimezoneOffset())),a.save())}},Wic);var Yic={},Zic=(Yic.initialized={priority:10,callback:function(a){a.injector.resolve(rJ).start();a=_.Lq();var b=_.Gi("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.Gi("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.Gi("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.Gi("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.vw(_.fBa(),{mainAppWeb:Object.assign({},a,{pageType:b})});_.vw(hBa(),{mainAppWeb:Object.assign({},a,{pageType:b})});
_.vw(iBa(),{mainAppWeb:a});_.vw(jBa(),{mainAppWeb:a});amb(function(){_.ww(iBa(),"FAILURE");_.ww(jBa(),"FAILURE")});
u6a();v6a();FIa()}},Yic);var $ic={},ajc=($ic.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.Jo("dl"),_.SF().processSignal("pcl");else{var a=function(){_.Jo("dl");_.SF().processSignal("pcl");window.removeEventListener("load",a)};
window.addEventListener("load",a)}}},$ic);var bjc={},cjc=(bjc.rendering={priority:0,callback:function(){var a=_.SF();a.parkOrScheduleJob(function(){a.processSignal("eocs")},10,"eor",5E3)}},bjc);var djc=function(){};
_.z(djc,NM);
djc.prototype.resolveCommand=function(a,b){var c,d,e,g,k,m,n,r;return _.l(function(t){e=(c=_.y(a,_.iDb))==null?void 0:(d=c.dialog)==null?void 0:d.commentReplyDialogRenderer;if(!e)throw new _.qj("No dialog in createCommentReplyDialogEndpoint");k=(g=b.form)==null?void 0:g.event;if(!k)throw new _.qj("Event not passed in when resolving command");m=_.h(k.composedPath());for(n=m.next();!n.done;n=m.next())if(r=n.value,r.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||r.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return r.showReplyDialog(e),t.return();
_.se(t)})};var qW=function(a){this.pageRequestService=a;this.JSC$16123_prefetchCoordinator=sgc()};
_.z(qW,NM);qW.prototype.resolveCommand=function(a){var b=this,c,d,e,g;return _.l(function(k){if(k.nextAddress==1){c=_.y(a,PDb);if((d=c)==null||!d.taskId)throw Error("oj");e=c.taskId;_.me(k,2);return _.p(k,_.iLb(b.pageRequestService,a,{},"").then(function(m){if(!m)throw Error("pj");},function(m){throw Error("qj`"+m);
}),4)}if(k.nextAddress!=2)return vgc(b.JSC$16123_prefetchCoordinator,e),_.Jj(k,0);
g=_.re(k);ZV(b.JSC$16123_prefetchCoordinator,e,g);_.se(k)})};
qW[eB]=[Iw];var rW=function(a){this.innertubeTransportService=a};
_.z(rW,NM);rW.prototype.resolveCommand=function(a){var b=this,c,d;return _.l(function(e){c=_.y(a,MEb);if(c.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||c.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")d=c.boolValue?2:1,_.cF.getInstance().setState(d,!0,!0);return _.p(e,_.St(b.innertubeTransportService,a),0)})};
rW[eB]=[_.xq];var sW={},ejc=(sW.addToPlaylistEndpoint=Zo(JS),sW.addToToastAction=Zo(DT),sW.adsControlFlowOpportunityReceivedCommand=Zo(rS),sW.captionLanguageSelectActionCommand=Zo(WS),sW.captionPickerEndpoint=Zo(XS),sW.changeMiniAppPlayStateCommand=Zo(KS),sW.changeTimelyActionVisibilityCommand=Zo(CT),sW.channelCreationFormEndpoint=Zo(DS),sW.clearLocationCommand=Zo(IS),sW.copyLinkCommand=Zo(bT),sW.copyTextEndpoint=Zo(uS),sW.createCommentReplyDialogEndpoint=mDa(djc),sW.createPlaylistServiceEndpoint=Zo(cT),sW.dismissDialogEndpoint=
Zo(MS),sW.entityUpdateCommand=Zo(wS),sW.feedbackEndpoint=Zo(zS),sW.getAnswerCommand=Zo(zfc),sW.getPaymentsClientTokenCommand=Zo(GT),sW.getTranscriptEndpoint=Zo(ET),sW.googlePaymentBillingCommand=Zo(HT),sW.googlePaymentPurchaseManagerCommand=Zo(IT),sW.hideEngagementPanelEndpoint=Zo(NS),sW.insertRichSectionCommand=Zo(FS),sW.listMutationCommand=Zo(GS),sW.logGtmCommand=Zo(ES),sW.notifyDropdownOptionSelectedCommand=Zo(LS),sW.openAdAllowlistInstructionCommand=Zo(_.sS),sW.openOnePickAddVideoModalCommand=
Zo(dT),sW.pingingEndpoint=Zo(tS),sW.playlistEditEndpoint=Zo(fT),sW.playlistVotingRefreshPopupCommand=Zo(gT),sW.refreshPanelEndpoint=Zo(OS),sW.saveImageToDeviceEndpoint=Zo(vS),sW.scrollToSectionEndpoint=mDa(Afc),sW.seekToVideoTimestampCommand=Zo(YS),sW.setCookieCommand=Zo(iT),sW.setLocalStorageCommand=Zo(xT),sW.setPrefStorageEntryCommand=Zo(kT),sW.setSettingEndpoint=Zo(rW),sW.sfvAudioItemPlaybackCommand=Zo(ZS),sW.shareImageCommand=Zo(lT),sW.sharingProviderDataCommand=Zo(mT),sW.showCaptionLanguageSelectActionCommand=
Zo($S),sW.showDialogCommand=Zo(RS),sW.showEngagementPanelEndpoint=Zo(SS),sW.showSheetCommand=Zo(TS),sW.showTransientPlayerScrimOverlayCommand=Zo(aT),sW.submitFormWithValidationFlowCommand=Zo(CS),sW.talkToRecsDeselectCommand=Zo(yT),sW.talkToRecsNextCommand=Zo(zT),sW.talkToRecsSelectCommand=Zo(AT),sW.talkToRecsUpdateTextCommand=Zo(BT),sW.toggleEngagementPanelCommand=Zo(US),sW.undoFeedbackEndpoint=Zo(BS),sW.updateEngagementPanelContentCommand=Zo(VS),sW.updateUrlParamCommand=Zo(FT),sW.verifyCommand=Zo(DS),
sW.webSubmitFormCommand=Zo(hT),sW.ACK_PLAYABLES_3P_DATA_CONSENT=Zo(nT),sW.CANCEL_NAVIGATION=Zo(oT),sW.COPY_SHARE_URL=Zo(pT),sW.MINI_APP_EXIT_DIALOG_SEEN=Zo(rT),sW.MINI_APP_OPEN_URL=Zo(qT),sW.REQUEST_MINI_APP_FULLSCREEN=Zo(sT),sW.RESUME_NAVIGATION=Zo(tT),sW.SHARE_PLAYABLE_WITH_HIGH_SCORE=Zo(uT),sW.TELL_US_WHY=Zo(AS),sW);_.x("web_enable_prefetching_videos_on_home")&&(ejc.prefetchWatchCommand=Zo(qW),ejc.registerTasksCommand=Zo(aW));
_.x("enable_share_panel_navigation_logging_fix_on_web")&&(ejc.shareEntityServiceEndpoint=Zo(PS));var BIb=Object.assign({},ejc);var fjc={},gjc=(fjc.initialized={priority:10,callback:A6a},fjc);var hjc={},ijc=(hjc.initialized={callback:function(a){var b={},c={};IUa().install((b.document_disposed={callback:function(){_.x("finalize_all_timelines")?ICa():Go();U5a("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.TUa();var d=a.injector.resolve(rJ);d.intervalId!==void 0&&(d.intervalId&&_.zk.cancelJob(d.intervalId),d.intervalId=void 0,--d.currentPartitionIndex,d=tWb(d),d>0&&oGb({mainAppWeb:_.Lq(),survivalSli:{partitionMinute:d,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));fGb(UE);VE!=null&&
VE.flush();nq&&nq.snapshotAndFlush()}},b),(c.flush_logs={callback:function(){_.Al()}},c))}},hjc);var jjc={},kjc=(jjc.rendered={priority:0,callback:function(){var a=new Ugb;a.increment("STARTED");if(_.Ei("LOGGED_IN")&&_.Ei("SERVER_VERSION")!=="test"&&_.Ei("SERVER_VERSION")!=="dev"&&!Hbb()&&!Gbb()){a.increment("EXECUTING");var b=document.createElement("iframe");b.style.display="none";_.Lda(b,2,_.Gd("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.Ei("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(b);a.increment("DONE")}}},jjc);var ljc={},mjc=(ljc.rendered={callback:function(){sgc().resume()}},ljc);var njc={acknowledgeChannelTouStrikeCommand:Lt(lU),addToPlaylistServiceEndpoint:Lt(iV),addToPlaylistEndpoint:Lt(iV),addUpcomingEventReminderEndpoint:Lt(AU),browseEndpoint:Lt(agc),channelCreationFormEndpoint:Lt(eU),channelCreationServiceEndpoint:Lt(fU),claimLegacyYoutubeChannelEndpoint:Lt(RT),clearSearchHistoryEndpoint:Lt(sU),clearWatchHistoryEndpoint:Lt(tU),commerceActionCommand:Mt(HV),createBackstagePostEndpoint:Lt(LT),createBroadcastCommand:Lt(BU),createCommentEndpoint:Lt(aU),createCommentReplyEndpoint:Lt($T),
createLiveChatPollEndpoint:Lt(CU),createPlaylistServiceEndpoint:Lt(jV),crossAccountChannelTransferEndpoint:Lt(wU),deleteLiveChatMessageCommand:Lt(DU),deletePlaylistEndpoint:Lt(kV),deleteVideoEndpoint:Lt(zV),dismissalEndpoint:Lt(mU),feedbackEndpoint:Lt(nU),flagEndpoint:Lt(qV),getAccountSwitcherEndpoint:Lt(vU),verifyCommand:Lt(KT),getAccountsListInnertubeEndpoint:Lt(yU),getCommentsFromInboxCommand:Lt(SU),getDownloadActionCommand:Lt(ZU),getFlowCommand:Mt(rU),getKidsBlocklistPickerCommand:Lt(rV),getNotificationMenuEndpoint:Lt(dgc),
getPaymentInstrumentsParamsCommand:Lt(NV),getPaymentsClientTokenCommand:Mt(HV),getPdgBuyFlowCommand:Lt(gV),getReportFormEndpoint:Lt(sV),getSearchInVideoCommand:Lt(vV),getAnswerCommand:Lt(uV),getSurveyCommand:Lt(yV),getTranscriptEndpoint:Lt(CV),getPostVideoPreviewEndpoint:Lt(NT),decorateMessageEndpoint:Lt(MT),likeEndpoint:Lt(gU),liveChatActionEndpoint:Lt(HU),liveChatEndpoint:Lt(GU),liveChatItemContextMenuEndpoint:Lt(EU),liveChatPurchaseMessageEndpoint:Lt(IU),liveChatReplayEndpoint:Lt(FU),manageLiveChatUserEndpoint:Lt(KU),
metadataUpdateCommand:Lt(QU),moderateLiveChatEndpoint:Lt(LU),modifyChannelNotificationPreferenceEndpoint:Lt(WU),notificationOptOutEndpoint:Lt(XU),openSuperStickerBuyFlowCommand:Lt(JU),performCommentActionEndpoint:Lt(WT),playlistEditEndpoint:Lt(mV),playlistEditorEndpoint:Lt(lV),profileCardCommand:Lt(zU),recordNotificationInteractionsEndpoint:Lt(YU),reelWatchEndpoint:Lt(nV),refreshPanelEndpoint:Lt(aV),removeUpcomingEventReminderEndpoint:Lt(MU),resolveLocationCommand:Lt(PU),revealBusinessEmailCommand:Lt(ST),
searchEndpoint:Lt(_.egc),sendLiveChatMessageEndpoint:Lt(NU),sendLiveChatVoteEndpoint:Lt(OU),setSettingEndpoint:Lt(hU),shareEntityServiceEndpoint:Mt(kU),sharingProviderDataCommand:Lt(xV),showEngagementPanelEndpoint:Lt(bV),showMoreDrawerCommand:Lt(dV),showSheetCommand:Lt(eV),showDialogCommand:Lt(cV),subscribeEndpoint:Lt(iU),transcriptSubmitCaptionCorrectionCommand:Lt(BV),undoFeedbackEndpoint:Lt(pU),unsubscribeEndpoint:Lt(jU),updateBackstagePostEndpoint:Lt(PT),updateCommentEndpoint:Lt(cU),updateCommentReplyEndpoint:Lt(bU),
updateCommentsSettingsEndpoint:Lt(dU),updateCreatorChannelInnertubeCommand:Lt(UT),updateKidsBlacklistEndpoint:Lt(tV),updateEngagementPanelContentCommand:Lt(fV),updatePdgFeatureEnablementCommand:Lt(hV),updatedMetadataEndpoint:Lt(RU),validateChannelHandleCommand:Lt(VT),updateChannelPageSettingsEndpoint:Lt(TT),verifyAgeEndpoint:Lt(qU),watchEndpoint:Mt(AV),whitelistEditEndpoint:Lt(GV),ypcCancelRecurrenceEndpoint:Lt(IV),ypcCompleteTransactionEndpoint:Lt(JV),ypcFixInstrumentEndpoint:Lt(LV),ypcGetCartEndpoint:Lt(KV),
ypcGetOffersEndpoint:Lt(MV),ypcHandleTransactionEndpoint:Mt(OV),ypcLogWalletAnalyticDataEndpoint:Lt(PV),ypcOffersEndpoint:Lt(QV),ypcPauseSubscriptionCommand:Lt(RV),ypcRedeemCodeEndpoint:Lt(SV),ypcResumeSubscriptionCommand:Lt(TV),ypcUpdateFopEndpoint:Lt(LV)},tW={},ojc=(tW.GET_ACCOUNT_MENU=Lt(xU),tW.GET_NOTIFICATIONS_MENU=Lt(cgc),tW.GET_NOTIFICATIONS_INBOX=Lt(TU),tW.GET_UNSEEN_NOTIFICATION_COUNT=Lt(VU),tW.GET_USER_MENTION_SUGGESTIONS=Lt(OT),tW.LOAD_GUIDE=Lt(bgc),tW.SUBMIT_FEEDBACK=Lt(oU),tW),uW={},
pjc=(uW.CONTINUATION_REQUEST_TYPE_BROWSE=Lt(QT),uW.CONTINUATION_REQUEST_TYPE_SEARCH=Lt(wV),uW.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=Lt(EV),uW.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=Lt(uU),uW.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=Lt(ZT),uW.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=Lt(XT),uW.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=Lt(pV),uW.CONTINUATION_REQUEST_TYPE_GET_PANEL=Lt($U),uW),qjc={player:Mt(AV),watchNext:Lt(DV)},rjc={player:Mt(AV),reelItemWatch:Lt(nV),reelWatchSequence:Lt(oV)},
sjc={watchEndpoint:Mt(FV)},tjc={commandEndpointMap:njc,signalEndpointMap:ojc,continuationEndpointMap:pjc,watchEndpointMap:qjc,reelWatchEndpointMap:rjc,streamingEndpointMap:sjc};var ujc,vjc,wjc,xjc={disableAllTransitions:(vjc=(ujc=window).matchMedia)==null?void 0:(wjc=vjc.call(ujc,"(prefers-reduced-motion: reduce)"))==null?void 0:wjc.matches,transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["zoom",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}]])};var yjc=new _.fB("VIEW_TRANSITION_MANAGER_CONFIG_TOKEN");_.zjc=new _.fB("VIEW_TRANSITION_MANAGER_TOKEN");var Ajc=function(a){this.config=a;this.transitionTasksMap=new Map;a=_.h(a.transitionConfigs);for(var b=a.next();!b.done;b=a.next())b=_.h(b.value).next().value,this.transitionTasksMap.set(b,[])};
Ajc[eB]=[yjc];var B6a={data:void 0,previousButtonDisabled:!1,nextButtonDisabled:!1,shortsPreviewThumbnail:void 0,shortsData:void 0,externalPlaylistData:void 0,toastData:void 0,playabilityStatus:void 0,isDisabled:!1,isReadyToResume:!1,watchWhile:!1};var D6a=["videoPrimaryInfoRenderer","title"],E6a=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var Bjc;Bjc=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.Cjc=_.Rr(function(a){a=_.Or(a,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var b=a.data,c=a.playlistData,d=a.expanded,e=a.onExpandClick,g=a.isReadyToResume,k=function(){var m=c();return m&&m.totalVideos&&m.currentIndex!==void 0?m.currentIndex+1+" / "+m.totalVideos:""};
a=_.ot(function(){_.vW(_.v().resolve(_.Vw))});
return _.q("ytd-miniplayer-info-bar",{class:"ytdMiniplayerInfoBarHost"},_.q("div",{class:"ytdMiniplayerInfoBarContent"},_.q("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":a},_.q(_.wt,{text:function(){var m=b();var n=c();if(n==null?0:n.contents){var r;m=(r=_.XGa(n))==null?void 0:r.title}else m=m==null?void 0:m.miniplayerTitle;return G6a(m)},
noEndpoints:!0,ellipsisTruncate:!0})),_.q("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.q("h1",null,_.q(_.wt,{className:"ytdMiniplayerInfoBarSubtitleText",text:function(){var m=b();var n=c();m=g()?{simpleText:_.to("CONTINUE_WATCHING",void 0,"Continue watching")}:(n==null?0:n.contents)?n.titleText:m==null?void 0:m.miniplayerSubtitle;return G6a(m)},
noEndpoints:!0,ellipsisTruncate:!0})),_.q(_.oi,{cond:function(){return!!k()&&!g()},
then:function(){return _.q("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.q("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.q("span",null,k))}}),_.q(_.oi,{cond:g,
then:function(){return _.q(CXb,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:Bjc})}}))),_.q(_.oi,{cond:function(){var m;
return!((m=c())==null||!m.contents)},
then:function(){return _.q("div",{class:"ytdMiniplayerInfoBarExpand"},_.q(rv,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:e}},
iconName:function(){return d()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))});var Djc;Djc=_.Rr(function(a){return _.q("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.q(rv,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:a.onTap}},
iconName:"yt-icons:close"}))});
_.Ejc=_.Rr(function(a){a=_.Or(a,{playabilityStatus:void 0,isDisabled:!1});var b=a.size,c=a.playabilityStatus,d=a.isDisabled,e=_.Rl();a=_.h(_.fh(void 0,"bJr0Se"));var g=a.next().value,k=a.next().value;a=_.Mr(_.Bv);var m=!1,n=function(){return b().height<=0};
_.yh(function(){var w=b(),A=n(),C=g();C&&!A&&C.setInternalSize(w.width,w.height)},"wfObGf");
_.ti(function(){var w,A,C;return _.l(function(G){if(G.nextAddress==1){w=_.v().resolve(_.Vw);A=w.getPlayerElement();if(!w.isMiniplayerActive()||!A||!e.value)return G.return();A.appendTo(e.value);return _.p(G,A.getPlayerPromise(),2)}C=G.yieldResult;C.setSizeStyle(!1,!0);k(C);_.se(G)})});
_.wh(function(){r()});
_.yh(function(){var w=g();if(w)if(d()){var A=w.getPlayerState();(m=A===-1||A===1||A===3)&&w.pauseVideo()}else r()},"gy721c");
var r=function(){if(m){m=!1;var w;(w=g())==null||w.playVideo()}},t=_.ot(function(){_.vW(_.v().resolve(_.Vw))}),u={};
return _.q("ytd-miniplayer-player-container",{class:_.jt("ytdMiniplayerPlayerContainerHost",(u.ytdMiniplayerPlayerContainerHidden=n,u.ytdMiniplayerPlayerContainerHostShortsPip=a,u)),style:_.rt({width:function(){return b().width+"px"},
height:function(){return b().height+"px"}})},_.q("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:e}),_.q(_.oi,{cond:function(){return!!c()&&!_.D5a(c())},
then:function(){return _.q(sec,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var w;return((w=c())==null?void 0:w.errorScreen)||null},
status:function(){var w;return((w=c())==null?void 0:w.status)||null}})}}),_.q(_.oi,{cond:d,
then:function(){return _.q("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":t},_.q(Djc,{onTap:function(){_.v().resolve(_.Vw).close()}}))}}))});_.Fjc=_.Rr(function(a){var b=a.toastData;var c=_.Rl();a=_.h(_.qt(function(){return!!b()}));
var d=a.next().value,e=a.next().value;a=_.h(_.fh(!1,"xkrBze"));var g=a.next().value,k=a.next().value,m=function(){var t;return _.Vp((t=b())==null?void 0:t.data.title)};
_.vi(function(){_.TD.requestAvailability();b()&&e(!1)});
var n,r;_.yh(function(){d()&&(_.go(c.value,"iron-announce",{text:b().label+" "+m()}),n&&_.zk.cancelJob(n),n=_.zk.addLowPriorityJob(function(){k(!0)},2500))},"wLb3Wc");
_.yh(function(){g()&&(r&&_.zk.cancelJob(r),r=_.zk.addLowPriorityJob(function(){e(!1);k(!1)},300))},"I6dnLd");
a={};return _.q("ytd-miniplayer-toast",{el:c,class:_.jt("ytdMiniplayerToastHost",(a.ytdMiniplayerToastOpening=function(){return d()},a.ytdMiniplayerToastClosing=function(){return g()},a))},_.q(_.oi,{cond:function(){var t;
return(t=b())==null?void 0:t.data},
then:function(t){return _.q(DZb,{className:"ytdMiniplayerToastThumbnail",data:t,width:78})}}),_.q("div",{class:"ytdMiniplayerToastInfo"},_.q("div",{class:"ytdMiniplayerToastLabel"},function(){var t;
return(t=b())==null?void 0:t.label}),_.q("div",{class:"ytdMiniplayerToastTitle"},m)))});var Q6a;var U6a=new Set,T6a=null;var W6a=null;var Hjc=_.Rr(function(a){var b=a.progressState;var c=a.multiMarkersPlayerBarRenderer;var d=a.progressBarWidth;var e=function(){return $6a(c())},g=function(){return c7a(b())},k=function(){return d()*(b().playedTime/b().videoDuration)};
return _.q("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.q(_.ni,{each:e},function(m,n){return _.q(Gjc,{modifiedProps:g,chapters:e,index:n,playedProgressWidth:k,backgroundGradientPosition:function(){var r=g(),t=e(),u=n(),w=k();return(r.playedTime-Tw(_.y(t[u],Sw)))/r.playedTime*w}})}))}),Gjc=_.Rr(function(a){var b=a.modifiedProps;
var c=a.chapters;var d=a.index;var e=a.playedProgressWidth;var g=a.backgroundGradientPosition;a={};a=_.jt("ytChapteredProgressBarChapteredPlayerBarChapter",(a.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return k().isScrubbing},a.ytChapteredProgressBarHoveredMacroMarker=function(){return k().scrubberHovering},a.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return k().videoPosition==="seen"},a));
var k=function(){return d7a(b(),c(),d())},m=function(){var n=b();
var r=c(),t=d();if(d7a(n,r,t).videoPosition!=="active")n=0;else{var u=Tw(_.y(r[t],Sw));n=(n.playedTime-u)/((Tw(_.y(r[t+1],Sw))||n.videoDuration)-u)}return n};
return _.q("div",{class:a,style:_.rt({width:function(){var n=b(),r=c(),t=d(),u=_.y(r[t],Sw);r=_.y(r[t+1],Sw);return(r?Tw(r)-Tw(u):n.videoDuration-Tw(u))/n.videoDuration*100+"%"},
"background-color":function(){a:{var n=k();switch(n.videoPosition){case "pending":n=n.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":n=n.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:n=""}}return n},
"background-size":function(){return(e7a(k())?e():"")+"px"},
"background-position-x":function(){return(e7a(k())?g():"")+"px"}})},_.q("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var n=b(),r=c(),t=d();if(d7a(n,r,t).videoPosition==="seen")var u=0;else u=Tw(_.y(r[t],Sw)),r=Tw(_.y(r[t+1],Sw))||n.videoDuration,n=n.videoDuration*n.percentLoaded,u=r<=n?1:u>=n?0:(n-u)/(r-u);return"width: "+u*100+"%"}}),_.q("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.rt({width:function(){return m()*100+"%"},
"background-size":function(){return(e7a(k(),m())?e():"")+"px"},
"background-position-x":function(){return(e7a(k(),m())?g():"")+"px"}})}))});var Ijc=function(a,b){b=b===void 0?iub:b;var c,d=[],e,g=!1;return function(){var k=_.Id.apply(0,arguments);if(g&&c===this&&b(k,d))return e;e=a.apply(this,k);g=!0;c=this;d=k;return e}}(function(a){var b=a.heatMarkers,c=a.minHeightDp===void 0?0:a.minHeightDp,d=a.maxHeightDp===void 0?60:a.maxHeightDp;
var e=e===void 0?!1:e;var g=1E3/b.length;a=[];a.push({x:0,y:100});for(var k=0;k<b.length;k++){var m=void 0,n=((m=_.y(b[k],zFb))==null?void 0:m.heatMarkerIntensityScoreNormalized)||0;m=(k+.5)*g;n=100-_.Qw(n*100,c/321*100,d/321*100);k!==0||e||a.push({x:0,y:n});a.push({x:m,y:n});k===b.length-1&&a.push({x:1E3,y:n})}a.push({x:1E3,y:100});b="";for(c=0;c<a.length;c++)e=a[c],c===0?e="M "+e.x.toFixed(1)+","+e.y.toFixed(1):(d=B5a(a[c-1],a[c-2],e),g=B5a(e,a[c-1],a[c+1],!0),e=" C "+(d.x.toFixed(1)+","+d.y.toFixed(1)+
" "+g.x.toFixed(1)+","+g.y.toFixed(1)+" "+e.x.toFixed(1)+","+e.y.toFixed(1))),b+=e;return b});var Jjc=_.Rr(function(a){var b=a.progressBarProps;var c=a.config;var d={};a=_.jt("ytHeatSeekerHost",(d.ytHeatSeekerHighContrast=a.highContrast,d));var e=function(){return L6a(c().chapterData)};
return _.q("yt-progress-bar-heatseeker",{class:a,style:function(){var g;return"height: 320px; display: "+(b().isDragging&&((g=e())==null?0:g.heatMarkers)?"block":"none")}},_.q(_.oi,{cond:e,
then:function(g){return _.q(_.oi,{cond:function(){return g().heatMarkers},
then:function(){return _.q("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.q("path",{d:function(){return Ijc(g())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))});var Kjc=_.Rr(function(a){var b=a.progressBarProps;var c=a.config;a={};a=_.jt("ytProgressBarLineProgressBarLine",(a.ytProgressBarLineProgressBarLineRounded=function(){return c().rounded},a.ytProgressBarLineProgressBarLineBottomInset=function(){return c().position===2},a));
return _.q("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.q("div",{class:a},_.q("div",{class:"ytProgressBarLineProgressBarBackground"}),_.q("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+b().percentLoaded*100+"%"}}),_.q("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var d=b();return"width: "+(d.videoDuration?_.Qw(d.hoveredTime/d.videoDuration,0,1):0)*100+"%"}}),_.q("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+I6a(b())*100+"%"}})))});
Kjc.idomCompat=!0;var Ljc=_.Rr(function(a){var b=a.progressBarProps;var c=a.playheadData;var d=a.interpolateDotPosition;var e=a.hidePlayhead;a={};var g=_.jt("ytProgressBarPlayheadProgressBarPlayheadDot",(a.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return b().isDragging},a.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!b().isDragging&&e()},a));
return _.q("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.rt({"margin-left":function(){return J6a(b())*100+"%"},
transform:function(){return"translateX(-"+(d()?J6a(b())*12:6)+"px)"}})},_.q(_.oi,{cond:function(){var k;
return(k=_.Nr(c)())==null?void 0:k.playheadImage},
then:function(k){var m={};return _.q("div",{class:_.jt("ytProgressBarPlayheadProgressBarPlayheadCustom",(m.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return b().isDragging},m.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!b().isDragging&&e()},m)),
style:_.rt({"transform-origin":function(){return(d()?J6a(b())*20:10)+"px center"}})},_.q(_.Ss,{data:k,
alt:"","aria-hidden":"true"}))},
else:function(){return _.q("div",{class:g,style:_.rt({"transform-origin":function(){return(d()?J6a(b())*12:6)+"px center"}})})}}))});
Ljc.idomCompat=!0;var wW=function(a,b,c,d,e,g){this.getProgressBarRect=a;this.updateProgressBarRect=b;this.getFilmstripYPosition=c;this.setFineScrubbingDraggedTime=d;this.updateFilmStripDraggedYDistance=e;this.resetFilmStripYOffset=g;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.hv(this.onThrottledSeek,100,this)},Mjc=function(a,b,c){return function(d){a.handleClick(d,b(),c())}},Pjc=function(a,b){return function(c){Njc(a,
c,Ojc(c),b())}},Qjc=function(a,b){return function(c){Njc(a,c,{x:c.clientX,
y:c.clientY},b())}},Sjc=function(a,b,c){return function(d){var e=b(),g=c();
Rjc(a,d,Ojc(d),e,g,!0);if(g.onTouchMove)g.onTouchMove(e)}},Ujc=function(a,b,c){return function(d){Tjc(a,d,b(),c())}},Vjc=function(a,b){return function(){a.handleMouseLeave(b())}},Wjc=function(a,b,c){return function(){var d=b(),e=c();
xW(a,d,e);if(e.onTouchEnd)e.onTouchEnd(d)}},Xjc=function(a,b,c){return function(){var d=b(),e=c();
xW(a,d,e);if(e.onTouchEnd)e.onTouchEnd(d)}},Yjc=function(a,b,c){return function(){xW(a,b(),c())}},Zjc=function(a,b,c){return function(d){!c().disableScrubbing&&a.startPosition&&Tjc(a,d,b(),c())}},$jc=function(a,b,c){return function(){if(!c().disableScrubbing)if(a.startPosition){var d=b(),e=c();
xW(a,b(),c());if(e.onTouchEnd)e.onTouchEnd(d)}else b().setState({isDragging:!1})}},Ojc=function(a){a=a.touches[0];
return{x:a.clientX,y:a.clientY}},Tjc=function(a,b,c,d){if(b.buttons!==1){if(b.movementX||b.movementY)b.preventDefault(),b.stopPropagation(),a=akc(a,c,b.clientX),c.setState({isHovering:!0,
hoveredTime:a*c.videoDuration})}else bkc(c),Rjc(a,b,{x:b.clientX,y:b.clientY},c,d,!1)};
wW.prototype.handleMouseLeave=function(a){bkc(a)};
var bkc=function(a){a.isHovering&&a.setState({isHovering:!1,hoveredTime:0})},Njc=function(a,b,c,d){a.startPosition||(a.startPosition=c,a.updateProgressBarRect(),a.controlsWereVisibleBeforeDragging=d.controlsVisible,b.stopPropagation(),_.x("medium_progress_bar_modification")||b.preventDefault())},Rjc=function(a,b,c,d,e,g){if(a.startPosition)if(g&&e.isInlinePlayback&&a.startPosition&&!a.hasDraggedTheMinimumDistance&&Math.abs(c.y-a.startPosition.y)>Math.abs(c.x-a.startPosition.x))xW(a,d,e);
else if(b.preventDefault(),b.stopPropagation(),d.videoDuration&&(a.startPosition&&!a.hasDraggedTheMinimumDistance&&(a.hasDraggedTheMinimumDistance=Math.abs(c.x-a.startPosition.x)>=1),e.enableFineScrubbing&&(a.startPosition&&(a.isDraggedForFineScrubbing=-(c.y-a.startPosition.y)>=60),!a.startPosition||c.y>=a.startPosition.y||(d.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:f7a(d.draggedTime,d,e.chapterData)}),a.setFineScrubbingDraggedTime(d.draggedTime),a.updateFilmStripDraggedYDistance(a.startPosition.y,
c.y,d))),a.hasDraggedTheMinimumDistance)){b=akc(a,d,c.x);if(a.isDraggedForFineScrubbing){var k;(k=d.playerApi)==null||k.pauseVideo();d.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:d.draggedTime,filmStripXDistance:f7a(b*d.videoDuration,d,e.chapterData)})}!(k=!e.enableFineScrubbing)&&(k=e.enableFineScrubbing)&&(k=!(a.getFilmstripYPosition(d)<68));k&&d.setState({draggedTime:b*d.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:a.controlsWereVisibleBeforeDragging});
var m;(m=e.cancelAutohideControlsFn)==null||m.call(e)}},xW=function(a,b,c){var d=c.enableFineScrubbing&&b.fineScrubbingActiveState!=="off";
if(b.isDragging||d){d={isDragging:!1,playedTime:b.draggedTime,controlsVisible:a.controlsWereVisibleBeforeDragging};c.enableFineScrubbing&&b.fineScrubbingActiveState!=="on"&&(a.resetFilmStripYOffset(),d.fineScrubbingActiveState="off");var e=e===void 0?W6a:e;var g=_.Fn(0);g&&e&&_.Wo(g,e,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:Math.round(b.playedTime*1E3),endMediaTimeMs:Math.round(b.draggedTime*1E3),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}});b.setState(d);
a.seekThrottle.fire(b.draggedTime,b,7);_.x("mweb_new_progress_bar_play_on_seek")&&a.resumeVideo(b);c.unmuteOnSeek&&(c=b.playerApi,b.volumeMuted&&(c==null||c.unMute()))}else b.setState({controlsVisible:!b.controlsVisible}),(g=c.triggerAutohideControlsAfterDelayFn)==null||g.call(c);a.startPosition=null;a.hasDraggedTheMinimumDistance=!1;a.isDraggedForFineScrubbing=!1;a.controlsWereVisibleBeforeDragging=!1};
wW.prototype.handleClick=function(a,b,c){this.updateProgressBarRect();a.stopPropagation();a=akc(this,b,a.clientX)*b.videoDuration;b.setState({playedTime:a});if(b.playerState!==2){var d;(d=c.triggerAutohideControlsAfterDelayFn)==null||d.call(c)}this.seekThrottle.fire(a,b,7)};
var akc=function(a,b,c){a=a.getProgressBarRect(b);return _.Qw(0,(c-a.left)/a.width,1)};
wW.prototype.resumeVideo=function(a){if(a.draggedTime<a.videoDuration){var b;(b=a.playerApi)==null||b.playVideo()}};
wW.prototype.onThrottledSeek=function(a,b,c){if(b=b.playerApi){var d;if((d=b.getVideoData())==null?0:d.isLive)d=this.getProgressState(b),a+=(d==null?void 0:d.seekableStart)||0;b.seekTo(a,void 0,void 0,void 0,c)}};
wW.prototype.getProgressState=function(a){var b=a==null?void 0:a.getPresentingPlayerType();return a==null?void 0:a.getProgressState(b)};var ekc,dkc,fkc,hkc,ckc,ikc,jkc,kkc,lkc;ekc=_.Rr(function(a){var b=a.progressBarProps;var c=a.config;var d=a.progressBarWidthPx;var e=a.chapterData;var g=k7a(b,function(){return c().isShortsPage}),k=function(){return!b().isHovering&&!c().isShortsPage};
a={};var m=_.jt("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(a.ytPlayerStoryboardHostMwebShorts=function(){return c().isShortsPage&&!1},a));
return _.q("yt-player-storyboard",null,_.q(_.oi,{cond:function(){return b().isDragging||b().isHovering},
then:function(){return _.q(_.oi,{cond:g,then:function(n){return _.q(_.oi,{cond:k,then:function(){return _.q("div",{class:m,"aria-hidden":"true"},_.q(ckc,{props:b,config:c,isBigboard:!0,chapterData:e}))},
else:function(){return _.q(dkc,{props:b,frame:n,config:c,progressBarWidthPx:d,chapterData:e})}})}})}}))});
_.gkc=_.Rr(function(a){var b=a.progressBarProps;var c=k7a(b,a.isShortsPage);return _.q("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.q(_.oi,{cond:function(){return b().isDragging||b().isHovering},
then:function(){return _.q(_.oi,{cond:c,then:function(d){return _.q(fkc,{frame:d,props:b,isBigboard:!0})}})}}))});
dkc=_.Rr(function(a){var b=a.props;var c=a.frame;var d=a.config;var e=a.progressBarWidthPx;a=a.chapterData;var g={};g=_.jt("ytPlayerStoryboardHost",(g.ytPlayerStoryboardHostMwebShorts=function(){return d().isShortsPage&&!1},g.ytPlayerStoryboardHostInlinePlayer=function(){return d().isInlinePlayer},g.ytPlayerStoryboardHostFadeIn=function(){return d().useFadeInAnimation},g));
return _.q("div",{class:g,"aria-hidden":"true",style:function(){var k=b(),m=g7a(c()),n=e();k=h7a(k)/k.videoDuration;var r=n*k,t=m/2+6;m=n-(m/2+6);return"left: "+(r<=t?t/n*100:r>=m?m/n*100:k*100)+"%"}},_.q(_.oi,{cond:function(){var k=b();
return!(d().isShortsPage&&k.videoDuration<15)},
then:function(){return _.q(fkc,{frame:c,props:b,isBigboard:!1})}}),_.q(ckc,{props:b,
config:d,isBigboard:!1,chapterData:a}))});
fkc=_.Rr(function(a){var b=a.frame;var c=a.props;var d=a.isBigboard;var e=function(){var m,n;return(n=(m=c().playerApi)==null?void 0:m.getVideoContentRect())!=null?n:{width:0,height:0}},g=function(){return g7a(b())},k=function(){var m=b();
return m?m.height/m.rows:0};
a={};a=_.jt((a.ytPlayerStoryboardBigboardImageWrapper=d,a.ytPlayerStoryboardStoryboardImageWrapper=function(){return!d()},a));
return _.q("div",{class:a,style:function(){return"width: "+(d()?e().width:g())+"px; height: "+(d()?e().height:k())+"px;"}},_.q(hkc,{frame:b,
storyboardWidth:g,storyboardHeight:k,storyboardScale:function(){return(d()?e().width:g())/g()}}))});
hkc=_.Rr(function(a){var b=a.frame;var c=a.storyboardWidth;var d=a.storyboardHeight;var e=a.storyboardScale;var g=function(){var k=b().row,m=b().column,n=c(),r=d(),t=e();return{left:-m*n*t,top:-k*r*t}};
return _.q("img",{src:function(){return b().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+g().left+"px; top: "+g().top+"px; width: "+b().width*e()+"px; height: "+b().height*e()+"px;"}})});
ckc=_.Rr(function(a){var b=a.props;var c=a.config;var d=a.isBigboard;var e=a.chapterData;a={};a=_.jt("ytPlayerStoryboardMetadata",(a.ytPlayerStoryboardMetadataBigboard=d,a));return _.q("div",{class:a},_.q(_.oi,{cond:d,then:function(){return _.q(_.Vh,null,_.q(ikc,{props:b,config:c}),_.q(_.oi,{cond:function(){a:{var g=b();var k=c(),m=e(),n;if((k==null?0:k.activeChapter)&&((n=_.y(k==null?void 0:k.activeChapter,Sw))==null?0:n.title))g=!0;else{k=_.h(M6a(m));for(k=k.next();!k.done;k=k.next()){g=(k=_.y(k.value,
BFb))&&i7a(g,k);break a}g=!1}}return g},
then:function(){return _.q(jkc,{props:b,config:c,isBigboard:!0,chapterData:e})}}))},
else:function(){return _.q(_.Vh,null,_.q(jkc,{props:b,config:c,isBigboard:!0,chapterData:e}),_.q(ikc,{props:b,config:c}))}}))});
ikc=_.Rr(function(a){var b=a.props;var c=a.config;a={};a=_.jt("ytPlayerStoryboardTimestamp",(a.ytPlayerStoryboardTimestampShorts=function(){return c().isShortsPage},a.ytPlayerStoryboardTimestampIsHovering=function(){return b().isHovering||c().isShortsPage&&!0},a));
return _.q("div",{class:a},_.q(_.Vh,null,function(){return _.j7a(h7a(b()))}))});
jkc=_.Rr(function(a){var b=a.props;var c=a.config;var d=a.isBigboard;var e=a.chapterData;a={};d=_.jt("ytPlayerStoryboardTitle",(a.ytPlayerStoryboardTitleBigboard=d,a));return _.q("div",{class:d},_.q(_.oi,{cond:function(){return!c().isShortsPage},
then:function(){return _.q(kkc,{props:b,activeChapter:function(){return c().activeChapter},
chapterData:e})}}))});
kkc=_.Rr(function(a){var b=a.props;var c=a.activeChapter;var d=a.chapterData;return _.q(_.Vh,null,_.q(_.ni,{each:function(){return M6a(d())},
keyBy:"INDEX"},function(e){return _.q(_.Vh,null,_.q(_.oi,{cond:function(){return _.y(e(),BFb)&&i7a(b(),_.y(e(),BFb))},
then:function(){return _.q(lkc,{timedMarker:function(){return _.y(e(),BFb)}})}}))}),_.q(_.oi,{cond:function(){var e;
return c()&&((e=_.y(c(),Sw))==null?void 0:e.title)},
then:function(e){return _.q(_.wt,{text:e,noPreWrap:!0})}}))});
lkc=_.Rr(function(a){var b=a.timedMarker;return _.q(_.Vh,null,_.q("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.q(_.tt,{icon:function(){return b().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.q(_.wt,{text:function(){return b().label},
noPreWrap:!0}))});_.mkc=_.Rr(function(a){var b=a.progressBarProps;var c=a.playheadData;var d=a.config;a=_.Rl();var e=_.Rl(),g=_.Rl(),k=_.h(_.fh({width:0,left:0},"v323Dc")),m=k.next().value,n=k.next().value,r=function(){g.value&&n(g.value.getBoundingClientRect())},t=function(){m().width<=0&&r();
return m()};
Yl("resize",r);var u=new wW(t,function(){},function(){return 0},function(){},function(){},function(){}),w=function(){return b()};
k=_.h(_.fh(!1,"tcVkKf"));var A=k.next().value,C=k.next().value;_.Tl(e,"mouseenter",function(){C(!0);d().position===2?setTimeout(function(){r()},100):r()});
_.Tl(e,"mouseleave",function(){C(!1);Vjc(u,w)()});
k=_.ot(function(Fa){d().doSeekOnClick&&Mjc(u,w,d)(Fa);return!1});
var G=_.ot(function(Fa){Pjc(u,w)(Fa);return!1}),J=_.ot(function(Fa){Qjc(u,w)(Fa);
return!1}),I=_.ot(function(Fa){Sjc(u,w,d)(Fa);
return!1}),R=_.ot(function(Fa){Ujc(u,w,d)(Fa);
return!1}),ca=_.ot(function(){Wjc(u,w,d)();
return!1}),V=_.ot(function(){Xjc(u,w,d)();
return!1}),fa=_.ot(function(){Yjc(u,w,d)();
return!1});
Yl("mousemove",Zjc(u,w,d));Yl("mouseup",$jc(u,w,d));_.vi(function(){X6a(e.value);C(!1);r();$jc(u,w,d)()});
var aa={};aa=_.jt("ytPlayerProgressBarHost",function(){return d().className},(aa.ytPlayerProgressBarHostReadOnly=function(){return d().disableScrubbing},aa.ytPlayerProgressBarHostHidden=function(){return d().hideProgressBar&&!A()},aa.ytPlayerProgressBarHostLowerPlayer=function(){return d().position===0},aa.ytPlayerProgressBarHostBottomEdge=function(){return d().position===1},aa.ytPlayerProgressBarHostBottomInset=function(){return d().position===2},aa.ytPlayerProgressBarHostCustom=function(){return d().position===
3},aa));
var ma={},Ba=_.jt("ytPlayerProgressBarBackground",(ma.ytPlayerProgressBarBackgroundHide=function(){return d().position===2&&!A()&&!b().isDragging},ma));
ma={};ma=_.jt("ytPlayerProgressBarDragContainer",(ma.ytPlayerProgressBarDragContainerBottomEdge=function(){return d().position===1},ma));
var Da={};Da=_.jt("ytPlayerProgressBarProgressBar",(Da.ytPlayerProgressBarProgressBarInset=function(){return d().position===2},Da.ytPlayerProgressBarProgressBarInsetMinimized=function(){return d().position===2&&!A()&&!b().isDragging},Da));
var za=function(){return Math.floor(I6a(b())*100)};
return _.q("yt-progress-bar",{el:a,class:aa},_.q(_.oi,{cond:function(){return d().position===2},
then:function(){return _.q("div",{class:Ba})}}),_.q("div",{el:e,
"on:click":k,"on:touchstart":G,"on:mousedown":J,"on:touchmove":I,"on:mousemove":R,"on:touchend":ca,"on:mouseup":V,"on:touchcancel":fa,class:ma,role:"slider","aria-valuenow":za,"aria-valuetext":function(){return za()+"%"},
tabindex:0,"aria-label":_.to("SEEK_SLIDER")},_.q("div",{el:g,class:Da},_.q(Jjc,{progressBarProps:b,config:d,highContrast:function(){return!!d().isInlinePlayback}}),_.q(_.oi,{cond:function(){return d().chapterData&&N6a(d().chapterData)},
then:function(){return _.q(Hjc,{progressState:b,multiMarkersPlayerBarRenderer:function(){return d().chapterData},
progressBarWidth:function(){return m().width}})},
else:function(){return _.q(Kjc,{progressBarProps:b,config:d})}}),_.q(Ljc,{progressBarProps:b,
playheadData:c,interpolateDotPosition:function(){return d().position!==2},
hidePlayhead:function(){return d().playheadDotBehavior===1&&!A()}}))),_.q(ekc,{progressBarProps:b,
config:function(){return{activeChapter:b7a(b(),d().chapterData),getProgressBarWidthPx:function(){return t().width},
isShortsPage:!!d().isShortsPage,isInlinePlayer:!!d().isInlinePlayback,useFadeInAnimation:!!d().isInlinePlayback}},
progressBarWidthPx:function(){return m().width},
chapterData:function(){return d().chapterData}}))});
_.mkc.idomCompat=!0;Object.assign({},_.O6a(),{setState:function(){},
domMeasurements:{},appApi:_.H6a(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var nkc;
_.okc=_.Rr(function(){var a,b=(a=_.Uw(l7a().playerApi))!=null?a:void 0;a=_.h(_.fh(!1,"HLFBmb"));var c=a.next().value,d=a.next().value;a=_.h(_.fh(!1,"lHH9bc"));var e=a.next().value,g=a.next().value;a=_.h(_.fh(!1,"zsY7yd"));var k=a.next().value,m=a.next().value;a=_.h(_.fh(!1,"KeHQgc"));var n=a.next().value,r=a.next().value;a=_.h(_.fh(0,"gLLCj"));var t=a.next().value,u=a.next().value;a=_.h(_.fh(0,"s3RYkf"));var w=a.next().value,A=a.next().value;a=_.h(_.fh(!1,"Dn608e"));var C=a.next().value,G=a.next().value;
a=_.h(_.fh(0,"AnkH1b"));var J=a.next().value,I=a.next().value;a=_.h(_.fh(0,"QYNL0b"));var R=a.next().value,ca=a.next().value;a=_.h(_.fh("","Yzw45d"));var V=a.next().value,fa=a.next().value;a=_.h(_.fh(-1,"iiVI0c"));var aa=a.next().value,ma=a.next().value,Ba=_.kh(function(){var Da={controlsVisible:c(),isOverlayHidden:e(),shouldWaitToHideControls:k(),isDragging:n(),isHovering:C(),videoDuration:J(),playedTime:R(),videoId:V(),draggedTime:w(),hoveredTime:t(),playerState:aa()};return Object.assign({},_.O6a(),
Da,{domMeasurements:{},setState:function(za){za.controlsVisible!==void 0&&d(za.controlsVisible);za.isOverlayHidden!==void 0&&g(za.isOverlayHidden);za.shouldWaitToHideControls!==void 0&&m(za.shouldWaitToHideControls);za.isDragging!==void 0&&r(za.isDragging);za.isHovering!==void 0&&G(za.isHovering);za.draggedTime!==void 0&&A(za.draggedTime);za.hoveredTime!==void 0&&u(za.hoveredTime);za.videoDuration!==void 0&&I(za.videoDuration);za.playedTime!==void 0&&ca(za.playedTime);za.videoId!==void 0&&fa(za.videoId);
za.playerState!==void 0&&ma(za.playerState)},
appApi:_.H6a(),playerApi:b})},void 0,"ZW7y9");
_.ti(function(){b==null||b.addEventListener("onVideoProgress",S6a(Ba));b==null||b.addEventListener("onVideoDataChange",R6a(Ba));b==null||b.addEventListener("onStateChange",P6a(Ba))});
_.wh(function(){if(b==null?0:b.isReady())b==null||b.removeEventListener("onVideoProgress",S6a(Ba)),b==null||b.removeEventListener("onVideoDataChange",R6a(Ba)),b==null||b.removeEventListener("onStateChange",P6a(Ba))});
return _.q("desktop-shorts-player-controls",null,_.q(nkc,{playerControlsProps:Ba}))});
nkc=_.Rr(function(a){var b=a.playerControlsProps;return _.q("div",{class:"desktopShortsPlayerControlsWizHost"},_.q(_.mkc,{progressBarProps:b,config:function(){return{isShortsPage:!0,hideProgressBar:b().videoDuration<30&&b().playerState!==2&&!b().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))});_.am(_.q7a);_.pkc=_.Rr(function(a){var b=a.data;return _.q("player-disclosure-view-model",{class:"ytwPlayerDisclosureViewModelHost"},_.q(_.ut,{command:function(){return b().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.q(_.oi,{cond:function(){return b().iconName},
then:function(c){return _.q(_.tt,{icon:c})}}),_.q("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return b().text}),_.q(_.oi,{cond:function(){return b().showEndChevron},
then:function(){return _.q(_.tt,{icon:"CHEVRON_RIGHT"})}})))});var qkc=_.Rr(function(a){var b=a.data;return _.q("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.q(_.Eu,{data:function(){return b().decoratedAvatarViewModel}},{decoratedAvatarViewModel:_.MK}),_.q(_.wt,{className:"ytReelChannelBarViewModelChannelName",
text:function(){return b().channelName},
linkInheritColor:!0,userInput:!0}),_.q("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.q(_.Eu,{data:function(){return b().subscribeButtonViewModel}},{subscribeButtonViewModel:function(c){return _.q(tXb,{data:c.data,
isOverlay:!1})},
buttonViewModel:_.Ju})),_.q("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.q(_.Eu,{data:function(){var c,d;return(d=_.y((c=b())==null?void 0:c.sponsorButtonViewModel,gEb))==null?void 0:d.sponsorButton}},{buttonViewModel:function(c){return _.q(_.Ju,{data:c.data,
buttonOverrides:function(){return{toggled:!0}}})}})))});var rkc=_.Rr(function(a){var b={};return _.q("yt-reel-multi-format-link-view-model",{class:_.jt("ytReelMultiFormatLinkViewModelHost",(b.ytReelMultiFormatLinkViewModelHostTall=!0,b))},_.q(_.ut,{ariaLabel:function(){return a.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return _.Es(a.data().command)},
dangerousStopPropagation:!1},_.q("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.q(_.oi,{cond:function(){return a.data().icon},
then:function(c){return _.q(_.Ss,{data:c,className:"ytReelMultiFormatLinkViewModelIcon",alt:""})}}),_.q(_.wt,{text:function(){return a.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))});
rkc.idomCompat=!0;var skc=_.Rr(function(a){var b=a.data;var c=_.Rl();a=_.h(_.fh(!1,"XwMNzb"));var d=a.next().value,e=a.next().value;a=_.h(_.fh(!1,"ZysOx"));var g=a.next().value,k=a.next().value,m=function(){return b().isMultiLineSa},n=_.tu(mSa,function(){var I,R;
return(R=(I=b().toggleableContent)==null?void 0:I.entityKey)!=null?R:""}),r=function(){var I,R,ca;
return(ca=b().toggleableContent)!=null&&ca.entityKey?(R=(I=n())==null?void 0:I.value)!=null?R:!1:!1},t=function(){var I,R,ca,V,fa,aa,ma,Ba,Da,za,Fa;
return b().toggleableContent?r()?(I=b().toggleableContent)==null?void 0:I.toggledData:(R=b().toggleableContent)==null?void 0:R.untoggledData:{primaryText:(Ba=(ca=b().defaultContent)==null?void 0:ca.primaryText)!=null?Ba:b().text,secondaryText:(V=b().defaultContent)==null?void 0:V.secondaryText,onTapCommand:(Da=(fa=b().defaultContent)==null?void 0:fa.onTapCommand)!=null?Da:b().onTapCommand,icon:(za=(aa=b().defaultContent)==null?void 0:aa.icon)!=null?za:b().icon,image:(Fa=(ma=b().defaultContent)==null?
void 0:ma.image)!=null?Fa:b().image}},u=function(){return m()?b().trailingTapTarget:void 0};
a=function(I,R){return function(){return d()?R:I}};
var w={leadingSection:a("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),secondaryText:a("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:a("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),leadingIcon:a("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon",
"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")};a={};a=_.jt((a.ytShortsSuggestedActionViewModelStaticHost=function(){return!m()},a.ytShortsSuggestedActionViewModelDynamicHost=m,a.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return m()&&g()},a.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return m()&&!g()},a));
_.vi(function(){if(m()){var I=0,R;if((R=b().animationParams)==null?0:R.shouldExpand){var ca,V;I=((V=(ca=b().animationParams)==null?void 0:ca.expansionDelaySecs)!=null?V:0)*1E3}var fa,aa=((fa=b().animationParams)==null?0:fa.shouldExpand)?setTimeout(function(){e(!0)},I):void 0,ma,Ba;
I=((ma=b().animationParams)==null?0:ma.visibilityDelaySecs)?((Ba=b().animationParams)==null?NaN:Ba.visibilityDelaySecs)*1E3:0;var Da=setTimeout(function(){k(!0)},I);
_.wh(function(){aa&&clearTimeout(aa);clearTimeout(Da)})}});
var A=function(I){_.Js(I,Object.assign({},{form:{element:c.value}}))},C=_.ot(function(){var I,R=(I=t())==null?void 0:I.onTapCommand;
R&&A(R)}),G=_.ot(function(){var I,R;
if(I=(R=u())==null?void 0:R.onTapCommand)return A(I),!1}),J=_.rt({"vertical-align":"bottom",
"border-radius":function(){var I;return m()?((I=b().defaultContent)==null?0:I.isCircleImage)?"50%":"4px":"0px"},
width:function(){var I,R,ca;return m()&&((I=b().defaultContent)==null?0:I.imageSize)?((ca=(R=b().defaultContent)==null?void 0:R.imageSize)!=null?ca:24)+"px":null},
height:function(){var I,R,ca;return m()&&((I=b().defaultContent)==null?0:I.imageSize)?((ca=(R=b().defaultContent)==null?void 0:R.imageSize)!=null?ca:24)+"px":null}});
return _.q("yt-shorts-suggested-action-view-model",{class:a,el:c},_.q("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.q("button",{class:_.jt(function(){return m()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var I;
return(I=b().useFullRoundedBorder)!=null&&I?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!u()&&m()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":m()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var I;
return(I=b().disableFixedHeight)!=null&&I?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""}),
"on:click":C},_.q(_.xt,{model:{color:4}}),_.q("div",{class:_.jt(function(){return m()?w.leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.q(_.oi,{cond:function(){var I;
return(I=t())==null?void 0:I.image},
then:function(I){return _.q(_.Ss,{data:I,alt:"",className:function(){return m()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:J})}}),_.q(_.oi,{cond:function(){var I,R;
return(I=t())==null?void 0:(R=I.icon)==null?void 0:R.iconType},
then:function(I){return _.q(_.tt,{icon:I,active:r,className:function(){return m()?d()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.q("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.q(_.oi,{cond:function(){var I;
return(I=t())==null?void 0:I.primaryText},
then:function(I){return _.q("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.q(_.wt,{text:I}))}}),_.q(_.oi,{cond:function(){var I;
return(I=t())==null?void 0:I.secondaryText},
then:function(I){return _.q("div",{class:w.secondaryText},_.q(_.wt,{text:I}))}}))),_.q(_.oi,{cond:u,
then:function(I){return _.q("div",{class:w.trailingSection,"aria-label":function(){var R;return(R=I().a11yLabel)!=null?R:""},
"on:click":G,role:"button",tabindex:0},_.q(_.xt,{model:{color:4}}),_.q(_.tt,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))});var tkc=_.Rr(function(a){var b=a.data;var c=_.Rl();a=_.ot(function(e){if(_.wXa(_.Ou(e),c.value,["A".toString()]))return!1;(e=b().truncatedTextOnTapCommand)&&_.Js(e);return!1});
var d={};return _.q("yt-shorts-video-title-view-model",{el:c,class:_.jt("ytShortsVideoTitleViewModelHost",(d.ytShortsVideoTitleViewModelHostClickable=function(){return!!b().truncatedTextOnTapCommand},d)),
"on:click":a},_.q("h2",{class:"ytShortsVideoTitleViewModelShortsVideoTitle"},_.q(_.wt,{text:function(){return b().text},
linkInheritColor:!0,noEndpoints:!1,stopPropagation:!0,userInput:!0})))});_.ukc=_.Rr(function(a){var b=a.data;return _.q("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.q(_.Eu,{data:function(){return b().metadataItems}},{badgeViewModel:function(c){return _.q("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.q(_.qL,{data:c.data}))},
playerDisclosureViewModel:function(c){return _.q("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.q(_.pkc,{data:c.data}))},
shortsSuggestedActionViewModel:function(c){return _.q("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.q(skc,{data:c.data}))},
reelChannelBarViewModel:function(c){return _.q("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.q(qkc,{data:c.data}))},
reelMultiFormatLinkViewModel:function(c){return _.q("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.q(rkc,{data:c.data}))},
shortsVideoTitleViewModel:function(c){return _.q("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.q(tkc,{data:c.data}))},
reelSoundMetadataViewModel:function(c){return _.q("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.q(_.Chc,{data:c.data}))}}))});var vkc=_.Rr(function(a){var b=_.Or(a,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),c=b.size,d=b.onTap,e=b.disabled,g=b.tooltipText;return _.q("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.q(rv,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:c(),disabled:e(),tooltipText:g(),onTap:d}},
iconName:a.iconType}))}),wkc=_.Rr(function(a){function b(t){t.stopPropagation();
t.code==="ArrowUp"?(t.preventDefault(),u7a(m.value)):t.code==="ArrowDown"?(t.preventDefault(),v7a(m.value)):t.code==="KeyM"?s7a():(t.code==="KeyK"||t.code==="Space")&&t7a(n())}
var c=_.Or(a,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});a=c.previousButtonDisabled;var d=c.nextButtonDisabled,e=c.data,g=c.playabilityStatus,k=c.previewThumbnail,m=_.Rl(),n=_.Mr(_.pFa),r;_.ti(function(){(r=_.Cf(m.value))&&r.addEventListener("keydown",b)});
_.wh(function(){var t;(t=r)==null||t.removeEventListener("keydown",b)});
c=function(){var t,u,w;return(t=e())==null?void 0:(u=t.reelPlayerOverlayRenderer)==null?void 0:(w=u.likeButton)==null?void 0:w.likeButtonRenderer};
return _.q("ytd-shorts-miniplayer-overlay",{el:m,class:"ytdShortsMiniplayerOverlayHost"},_.q("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.rt({"background-image":function(){var t=k();return t?'url("'+_.Ys(t.thumbnails)+'")':""}})}),_.q("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.q("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.q(vkc,{iconType:function(){var t=n();
return t===2||t===-1||t===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){t7a(n())},
tooltipText:function(){var t=n();return t===1||t===3?_.to("PLAYER_LABEL_PAUSE"):_.to("PLAYER_LABEL_PLAY")}}),_.q(_.q7a,null)),_.q("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.q(vkc,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:a,onTap:function(){u7a(m.value)},
tooltipText:_.to("PREVIOUS_VIDEO_LABEL")}),_.q(vkc,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:d,onTap:function(){v7a(m.value)},
tooltipText:_.to("NEXT_VIDEO_LABEL")}),_.x("web_shorts_pip_like_button")?_.q("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.q(Xdc,{buttonTooltipPosition:"left",data:c,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.q("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.q(_.oi,{cond:function(){var t,u;return _.y((t=e())==null?void 0:(u=t.reelPlayerOverlayRenderer)==null?void 0:u.metapanel,
cEb)},
then:function(t){return _.q("div",{class:_.jt("ytdShortsMiniplayerOverlayInteractive")},_.q(_.ukc,{data:t}))}})),_.q("div",{class:_.jt("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var t;return!((t=e())==null||!t.adsOverlay)||g()&&!C5a(g())}},_.q("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.q(_.okc,null)))),_.q(_.oi,{cond:function(){var t=e(),u,w;
t=_.y(t==null?void 0:(u=t.adsOverlay)==null?void 0:(w=u.fulfillmentContent)==null?void 0:w.fulfilledLayout,Myb);return _.y(t==null?void 0:t.renderingContent,Ryb)},
then:function(t){return _.q("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.q(t4b,{data:t}))}}))});var w7a=_.Rr(function(){var a=_.h(_.fh(new _.of(NaN,NaN),"dCf7yb")),b=a.next().value,c=a.next().value;a=_.h(_.fh(!1,"smJHAc"));var d=a.next().value,e=a.next().value,g=_.h(_.fh(!1,"HnqDAc"));a=g.next().value;var k=g.next().value,m=_.v().resolve(_.Vw).miniplayerPropSignalMap[0],n=m.data,r=m.shortsData,t=m.nextButtonDisabled,u=m.shortsPreviewThumbnail,w=m.previousButtonDisabled,A=m.externalPlaylistData;g=m.toastData;var C=m.playabilityStatus,G=m.isDisabled;m=_.Mr(_.Bv);_.Ql("yt-pip-window-resized",function(ca){c(ca)});
_.Ql("yt-activate-pip-miniplayer",function(){return _.l(function(ca){k(!0);_.se(ca)})});
var J=function(){var ca;return!((ca=A())==null||!ca.contents)&&d()},I=function(){var ca=b(),V=!!n(),fa=J();
ca=ca.clone();V&&(ca.height-=76);fa&&(ca.height-=285);return ca},R=function(){e(!d())};
return _.q("ytd-pip-container",{class:"ytdPipContainerHost"},_.q(_.oi,{cond:a,then:function(){return _.q(_.Ejc,{isDisabled:G,playabilityStatus:C,size:I})}}),_.q(_.oi,{cond:n,
then:function(){return _.q(_.Cjc,{data:n,expanded:d,onExpandClick:R,playlistData:A})}}),_.q(_.oi,{cond:J,
then:function(){return _.q("div",{class:"ytdPipContainerPlaylistPanel"},_.q(_.Vdc,{data:A,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.q(_.oi,{cond:m,
then:function(){return _.q(wkc,{data:r,nextButtonDisabled:t,previousButtonDisabled:w,playabilityStatus:C,previewThumbnail:u})}}),_.q("div",{class:"ytdPipContainerToast"},_.q(_.Fjc,{toastData:g})))});var yW=function(a){var b=this;this.pipController=a;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=C6a();this.watchPipEnabled=_.x("web_watch_pip");this.shortsPipEnabled=_.x("web_shorts_pip");this.JSC$16266_watchWhileEnabled=_.x("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;_.wF(_.Yp(),_.lFa,function(c){b.isSingleOptionSurveyActive=c});
this.JSC$16266_onPlayerPlayVideo=this.JSC$16266_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);window.documentPictureInPicture&&_.Ea()&&!_.x("web_pip_logging_killswitch")&&_.zl("genericClientExperimentEvent",{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},
HWb,Ckc,Dkc,Hkc,I8b,Ikc,Jkc,Kkc,Fkc;
yW.prototype.handleMediaSessionPipActivation=function(){var a=this,b;return _.l(function(c){_.uF().mediaSessionPipActivation=!0;b=_.v().resolve(_.$t);return b.isOnWatch()&&a.watchPipEnabled?(_.uF().watchPipActivation=!0,_.xkc(a,b.data),c.jumpTo(0)):b.isOnShorts()&&a.shortsPipEnabled?(_.uF().shortsPipActivation=!0,_.ykc(a),c.jumpTo(0)):a.isMiniplayerActive()&&a.watchPipEnabled&&!a.watchWhileMode?_.p(c,zkc(a),0):c.jumpTo(0)})};
var zkc=function(a){var b,c,d,e;return _.l(function(g){if(g.nextAddress==1)return b=!a.miniplayerToPipMode,c=a.playerElement,d=a.miniplayerData,e=a.watchResponse,_.p(g,a.deactivate(),2);if(g.nextAddress!=3)return b?(_.uF().mediaSessionPipActivation=!0,_.uF().watchPipActivation=!0):_.uF().miniplayerButtonActivation=!0,_.p(g,a.activate(c,d,e),3);a.miniplayerToPipMode=b;_.se(g)})};
_.f=yW.prototype;_.f.install=function(a){this.JSC$16266_clientRoot=a;_.Ol(_.Nl.getInstance(),this.miniplayerServiceActionMap,this.JSC$16266_clientRoot)};
_.f.uninstall=function(){this.JSC$16266_clientRoot&&_.Pl(_.Nl.getInstance(),this.miniplayerServiceActionMap,this.JSC$16266_clientRoot)};
_.f.onDownloadedVideoDeleted=function(a){var b,c=_.y((b=this.miniplayerData)==null?void 0:b.watchEndpoint,_.Vn),d,e;c&&((d=this.watchResponse)==null?void 0:(e=d.playerResponse)==null?void 0:e.offlineState)!==void 0&&(b=c.videoId)&&a&&b===a&&this.close()};
_.f.onShowMiniplayerCommand=function(a){var b=this,c,d,e,g,k,m,n,r,t,u,w,A,C;return _.l(function(G){switch(G.nextAddress){case 1:return c=_.y(a,VBb),e=(d=c)==null?void 0:d.miniplayerCommand,g=_.y(e,_.Vn),e&&g&&!b.active?_.p(G,_.DF.getInstance(),2):G.return();case 2:return k=G.yieldResult,_.p(G,(m=k)==null?void 0:m.get("yt-miniplayer-shown-video-id"),3);case 3:n=G.yieldResult;r=g.videoId;if(!r||n===r)return G.return();t=_.v().resolve(_.$t);if(t.isOnWatch())return _.Dl(Error("zj")),G.return();u={channelItem:{externalId:btoa(r)}};
b.readyToResumeVe=_.lu(121253,void 0,void 0,u);_.x("miniplayer_r2r_ve_after_activate_killswitch")&&(_.zW(b,{readyToResumeVe:b.readyToResumeVe}),b.isReadyToResume=!0);_.uF().showMiniplayerCommandActivation=!0;return _.p(G,_.J8b(b,e,!0),4);case 4:return!_.x("miniplayer_r2r_ve_after_activate_killswitch")&&b.active?(_.zW(b,{readyToResumeVe:b.readyToResumeVe,continueWatching:!0,premiumBranding:!((w=c)==null||!w.showPremiumBranding)}),b.isReadyToResume=!0):_.zW(b,{continueWatching:!0,premiumBranding:!((A=
c)==null||!A.showPremiumBranding)}),_.x("ytd_miniplayer_to_wiz")&&_.zW(b,{isReadyToResume:!0}),_.p(G,(C=k)==null?void 0:C.set("yt-miniplayer-shown-video-id",g.videoId),5);case 5:b.readyToResumeVe=void 0,_.se(G)}})};
_.f.init=function(a){this.miniplayerEl?_.Dl(new _.qj("MiniplayerService already initialized.")):this.miniplayerEl=a};
_.f.isInitialized=function(){var a=!!this.miniplayerEl;a||_.Dl(new _.qj("MiniplayerService used before initialized."));return a};
_.xkc=function(a,b){if(a.isInitialized()){var c=_.F6a(b.response,b.playerResponse),d=_.v().resolve(_.$t).getPlayerFromWatch();_.uF().currentEndpoint=c.watchEndpoint||null;a.activate(d,c,b)}};
_.ykc=function(a){if(a.isInitialized()){var b=_.v().resolve(_.$t).getPlayerFromShorts();a.activate(b)}};
HWb=function(a,b){var c;(c=!a.isInitialized())||(c=_.v().resolve(_.$t).isOnWatch()&&a.watchPipMode,c=!(a.isMiniplayerActive()&&(_.uF().userActivation||_.uF().lockupActivation||c)));if(c)return!1;Akc(a,b)?_.vW(a):I8b(a,b);return a.watchPipMode?!_.v().resolve(_.$t).isOnWatch():!0};
yW.prototype.isMiniplayerActive=function(){return this.active};
var Akc=function(a,b){var c;b=(c=_.y(b,_.Vn))==null?void 0:c.videoId;var d,e;a=(e=_.y((d=a.miniplayerData)==null?void 0:d.watchEndpoint,_.Vn))==null?void 0:e.videoId;return b!=null&&b===a};
yW.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.go(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.ho(this.miniplayerEl,"yt-navigate-home-action"))};
_.J8b=function(a,b,c,d){c=c===void 0?!1:c;var e,g,k;return _.l(function(m){switch(m.nextAddress){case 1:if(a.active){m.jumpTo(2);break}e=_.v().resolve(_.$t);if(k=(g=a.playerElement)!=null?g:e.getPlayerFromWatch()){m.jumpTo(3);break}return _.p(m,_.v().resolve(_.gu),4);case 4:k=e.getPlayerFromWatch();case 3:if(!k){_.Dl(Error("Bj"));m.jumpTo(2);break}return _.p(m,a.activate(k,d),2);case 2:return a.active?_.p(m,I8b(a,b,c),0):m.return()}})};
yW.prototype.activate=function(a,b,c){var d=this,e,g,k,m,n,r,t,u;return _.l(function(w){switch(w.nextAddress){case 1:if(!d.isInitialized())return w.return();if(!a)return _.Dl(Error("Bj")),w.return();if(_.KIb()||d.isMiniplayerActive())var A=!0;else A=_.uF().watchPipActivation||_.uF().watchWhileActivation,_.v().resolve(_.$t).isOnWatch()&&!A?(_.Dl(new _.qj("miniplayer activated on watch page")),A=!0):A=_.uF().watchWhileActivation&&d.userDeactivatedWatchWhile?!0:!1;if(A)return JIb(),w.return();e=_.uF().mediaSessionPipActivation;
g=_.uF().shortsPipActivation;k=_.uF().watchPipActivation;n=(m=_.uF().watchWhileActivation)||k;r=k||g;if(!d.pictureInPictureEnabled()||!r){w.jumpTo(2);break}return _.p(w,Bkc(d,e),3);case 3:if(!w.yieldResult)return _.Dl(Error("Aj")),JIb(),w.return();case 2:return d.setActive(!0),d.watchResponse=c,d.playerElement=a,d.updateMiniplayerData(b),_.x("miniplayer_create_ve_after_activate_killswitch")&&Ckc(d),_.p(w,Dkc(d,a),4);case 4:if(!d.active)return _.Dl(new _.qj("miniplayer deactivated during activation")),
d.removePlayerListeners(),w.return();A=_.v().resolve(_.QF);A.addEventListener("yt-navigate",_.er(d,d.onPlaylistNavigate));A.addEventListener("yt-playlist-data-updated",_.er(d,d.JSC$16266_onPlaylistDataUpdated));d.JSC$16266_onPlaylistDataUpdated();JIb();d.JSC$16266_watchWhileEnabled&&_.Ekc(d,m);d.pictureInPictureEnabled()&&d.shortsPipEnabled&&(d.shortsPipMode=g,_.Yp().dispatch(vJb(d.shortsPipMode)));d.pictureInPictureEnabled()&&d.watchPipEnabled&&(d.watchPipMode=k);d.player&&(t=d.player.getPlayerState(),
u=t===1,_.Yp().dispatch(EJb(t)),_.ko(d.miniplayerEl,"yt-miniplayer-play-state-changed",[u]),_.uF().isVideoPlaying=u);d.watchPipEnabled&&_.l5a(d.handleMediaSessionPipActivation);_.ko(d.miniplayerEl,"yt-miniplayer-endpoint-changed");Fkc(d);_.Gkc(d);return d.shortsPipMode||d.watchPipMode?_.p(w,_.lo(d.miniplayerEl,"yt-activate-pip-miniplayer"),6):_.x("ytd_miniplayer_to_wiz")?_.p(w,_.lo(d.miniplayerEl,"yt-activate-miniplayer",[n]),6):_.p(w,_.lo(d.miniplayerEl,"yt-activate-miniplayer-action",[a,n]),6);
case 6:_.x("miniplayer_create_ve_after_activate_killswitch")||Ckc(d),Hkc(d,!0),_.se(w)}})};
yW.prototype.updateMiniplayerData=function(a){this.miniplayerData=a;_.zW(this,{data:a})};
_.Gkc=function(a){if(_.x("miniplayer_service_controls_disabling")){var b,c,d=((b=a.miniplayerData)==null?void 0:(c=b.miniplayerRenderer)==null?void 0:c.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";b=a.watchWhileMode||a.watchPipMode?d&&!_.v().resolve(_.$t).isOnWatch():d;_.zW(a,{isDisabled:b});var e,g;c=_.y((e=a.miniplayerData)==null?void 0:(g=e.miniplayerRenderer)==null?void 0:g.minimizedEndpoint,_.GE);!_.x("miniplayer_disabled_open_popup_killswitch")&&b&&c&&_.v().resolve(_.GJ).openSheet({openPopupActionCommand:{openPopupAction:c}},
a.miniplayerEl)}};
Ckc=function(a){if(a.watchResponse&&(!a.watchWhileMode||!_.x("kevlar_watch_while_counterfactual"))){var b,c=(b=a.watchResponse.playerResponse)==null?void 0:b.trackingParams;c&&(_.zW(a,{expandVe:_.lu(35989),closeVe:_.lu(34699),readyToResumeCloseVe:_.lu(131070),repositionVe:_.lu(226204),resizeVe:_.lu(226205)}),_.zW(a,{playerVe:_.qs(c)}))}};
Dkc=function(a,b){return _.l(function(c){if(c.nextAddress==1)return b.preparePlayer(),_.p(c,b.getPlayerPromise(),2);a.player=c.yieldResult;a.player&&(a.player.addEventListener("onPlayVideo",a.JSC$16266_onPlayerPlayVideo),a.player.addEventListener("onCloseMiniplayer",a.onPlayerCloseMiniplayer),a.player.addEventListener("onExpandMiniplayer",a.onPlayerExpandMiniplayer),a.player.addEventListener("onStateChange",a.onPlayerStateChange));_.se(c)})};
_.f=yW.prototype;_.f.JSC$16266_onPlayerPlayVideo=function(a){var b=a.sessionData&&"autonav"in a.sessionData,c;a.sessionData&&a.sessionData.itct&&(c=a.sessionData.itct);var d=a.watchEndpoint;b=d&&b?_.sUa(d,c):_.cp(a.videoId,a.listId||void 0,c);a.sessionData&&_.Zn(_.y(b.commandMetadata,_.ao).url,a.sessionData);I8b(this,b)};
_.f.onPlayerExpandMiniplayer=function(){_.vW(this)};
_.f.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.f.onPlayerStateChange=function(){if(this.player){var a=this.player.getPlayerState(),b=a===1;_.Yp().dispatch(EJb(a));_.Yp().dispatch(_.GJb(a));_.ko(this.miniplayerEl,"yt-miniplayer-play-state-changed",[b]);_.uF().isVideoPlaying=b;if(a===0){b=!_.cF.getInstance().isAutoplaySetExplicitly();var c,d,e,g,k,m,n=(c=this.watchResponse.response)==null?void 0:(d=c.contents)==null?void 0:(e=d.twoColumnWatchNextResults)==null?void 0:(g=e.autoplay)==null?void 0:(k=g.autoplay)==null?void 0:(m=k.autoplayExplicitChoiceDialogRenderer)==
null?void 0:m.confirmDialogRenderer;b&&n&&this.player.setAutonavState(1)}a===0&&this.watchWhileMode&&this.deactivate()}};
_.f.onPlaylistNavigate=function(a,b){var c=this,d,e,g,k,m,n,r;return _.l(function(t){if(t.nextAddress==1){if(!_.y(b.endpoint,_.Vn))return t.return();_.uF().currentEndpoint=b.endpoint;_.ko(c.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.v().resolve(_.$t).isOnWatch()&&(c.watchWhileMode||c.watchPipMode))return t.return();a.stopPropagation();(g=(e=_.y((d=b.endpoint)==null?void 0:d.commandMetadata,_.ao))==null?void 0:e.url)&&b.tempData&&!_.yf.isEmpty(b.tempData)&&_.Zn(g,b.tempData);k={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};m=new EKb(function(){return c.getPlayerElement()},k,{layer:3});
n=function(u){m.processChunk({endpoint:b.endpoint,data:u})};
Ikc(c);c.miniplayerFetchRequest=Jkc(c,b.endpoint,n);_.me(t,2);return _.p(t,c.miniplayerFetchRequest,4)}if(t.nextAddress!=2)return r=t.yieldResult,Kkc(c,r),_.Jj(t,0);_.re(t);_.se(t)})};
_.f.JSC$16266_onPlaylistDataUpdated=function(){var a=_.v().resolve(_.QF).getPlaylistData();this.hasPlaylistData=!!a;_.zW(this,{externalPlaylistData:a||{}})};
_.f.close=function(a){if(this.isInitialized())if(a){if(!((this.watchWhileMode||this.watchPipMode)&&_.v().resolve(_.$t).isOnWatch()||this.shortsPipMode)){var b;(b=this.getPlayerElement())==null||b.stop()}this.deactivate()}else _.VF().closeMiniplayer(this.miniplayerEl)};
_.f.deactivate=function(a){var b=this,c,d,e,g;return _.l(function(k){if(k.nextAddress==1){if(!b.isInitialized()||!b.active)return k.return();b.setActive(!1);Ikc(b);(c=!!a&&Akc(b,a))&&b.isSingleOptionSurveyActive&&_.ho(b.miniplayerEl,"yt-show-watch-page-survey",[b.isSingleOptionSurveyActive]);return _.p(k,Lkc(b),2)}if(k.nextAddress!=3){Hkc(b,!1);b.isReadyToResume=!1;b.watchResponse=void 0;b.updateMiniplayerData(void 0);b.shortsPipMode&&(b.shortsPipMode=!1,_.Yp().dispatch(vJb(b.shortsPipMode)),ihc(b.pipController),
(d=b.player)==null||d.setInternalSize(NaN,NaN));b.watchPipMode&&(b.watchPipMode=!1,ihc(b.pipController));(e=b.watchWhileMode)&&_.Ekc(b,!1);b.removePlayerListeners();var m=_.v().resolve(_.QF);m.removeEventListener("yt-navigate",_.er(b,b.onPlaylistNavigate));m.removeEventListener("yt-playlist-data-updated",_.er(b,b.JSC$16266_onPlaylistDataUpdated));_.uF().currentEndpoint=null;_.ko(b.miniplayerEl,"yt-miniplayer-endpoint-changed");b.playerElement=null;JIb();return b.shortsPipMode||b.watchPipMode?k.jumpTo(3):
_.p(k,_.lo(b.miniplayerEl,_.x("ytd_miniplayer_to_wiz")?"yt-deactivate-miniplayer":"yt-deactivate-miniplayer-action",[c,e]),3)}(g=b.player)==null||g.setInternalSize(NaN,NaN);b.player=null;_.se(k)})};
var Lkc=function(a){var b;return _.l(function(c){b=_.v().resolve(_.$t);return a.shortsPipMode?_.p(c,b.movePlayerToShorts(a.playerElement),0):_.p(c,b.movePlayerToWatch(a.playerElement),0)})};
yW.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$16266_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
yW.prototype.setActive=function(a){this.active=a;this.isSingleOptionSurveyActive?_.ho(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.ho(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.Yp().dispatch(_.gp({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.Ekc=function(a,b){a.watchWhileMode=b;_.zW(a,{watchWhile:b})};
Hkc=function(a,b){if(a.shortsPipMode||a.watchPipMode){var c;(c=a.player)==null||c.setDocumentPictureInPicture(b)}else{var d;(d=a.player)==null||d.setMinimized(b)}};
_.vW=function(a){var b;return _.l(function(c){switch(c.nextAddress){case 1:if(!a.isInitialized())return c.return();_.me(c,2);return _.p(c,a.miniplayerFetchRequest,4);case 4:_.Jj(c,3);break;case 2:_.re(c);case 3:a.watchResponse&&a.miniplayerData&&a.miniplayerData.watchEndpoint?(b={url:a.watchResponse.url,endpoint:a.miniplayerData.watchEndpoint,data:a.watchResponse,miniplayer:!0},_.go(a.miniplayerEl,"yt-navigate-cache",b)):a.miniplayerData&&a.miniplayerData.watchEndpoint&&_.go(a.miniplayerEl,"yt-navigate",
{endpoint:a.miniplayerData.watchEndpoint}),_.se(c)}})};
I8b=function(a,b,c){var d,e,g,k;return _.l(function(m){if(m.nextAddress==1){if(Akc(a,b))return m.return();_.uF().currentEndpoint=b;_.ko(a.miniplayerEl,"yt-miniplayer-endpoint-changed");_.ko(a.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.uF().isVideoPlaying=!1;d={clientParams:{miniplayer:!0,autoSaveToQueue:!c}};e=new EKb(function(){return a.getPlayerElement()},d,{layer:3,
parentLayer:0},void 0,a.readyToResumeVe);g=function(n){var r,t,u=Object.assign({},(r=n.playerResponse)==null?void 0:(t=r.playerConfig)==null?void 0:t.playbackStartConfig,{startPaused:!0}),w;c&&((w=n.playerResponse)==null?0:w.playerConfig)&&(n.playerResponse.playerConfig.playbackStartConfig=u);e.processChunk({endpoint:b,data:n})};
Ikc(a);a.miniplayerFetchRequest=Jkc(a,b,g);_.me(m,2);return _.p(m,a.miniplayerFetchRequest,4)}if(m.nextAddress!=2)return k=m.yieldResult,Kkc(a,k),_.Jj(m,0);_.re(m);_.se(m)})};
Ikc=function(a){a.miniplayerFetchRequest&&(a.miniplayerFetchRequest.cancel&&a.miniplayerFetchRequest.cancel("Active request obsolete"),a.miniplayerFetchRequest=null)};
Jkc=function(a,b,c){var d=_.mG.instance,e,g=(e=_.y(b.commandMetadata,_.ao))==null?void 0:e.url,k;e=!g||_.x("disable_miniplayer_tempdata")?{}:(k=KBa(g))!=null?k:{};return Yw(d,b,e,window.location.href,"watch",function(m,n){c(n)},function(m){return m!==a.miniplayerFetchRequest})};
Kkc=function(a,b){var c;_.l(function(d){if(!b)return d.return();a.watchResponse=b;Ckc(a);Fkc(a);c=_.F6a(b.response,b.playerResponse);if(a.isMiniplayerActive()){b.response&&(a.playerElement.watchNextData=b.response);var e=_.yf.getValueByKeys.apply(_.yf,[b].concat(_.Be(SJb)));_.yf.getValueByKeys.apply(_.yf,[b].concat(_.Be(XJb)))&&e&&_.v().resolve(_.QF).setAutoplayRenderer(e);if(e)if(_.x("kevlar_is_pupi_enabled")){var g,k,m,n,r,t=((g=b.response)==null?0:(k=g.playerOverlays)==null?0:(m=k.playerOverlayRenderer)==
null?0:(n=m.autonavToggle)==null?0:(r=n.autoplaySwitchButtonRenderer)==null?0:r.enabled)?2:1;_.cF.getInstance().setState(t,!1,!1)}else g=XBa()?2:1,(t=a.player)==null||t.setAutonavState(g);a.updateMiniplayerData(c);_.Gkc(a)}_.se(d)})};
Fkc=function(a){var b,c,d=(b=a.watchResponse)==null?void 0:(c=b.playerResponse)==null?void 0:c.playabilityStatus,e;b=d==null?void 0:(e=d.miniplayer)==null?void 0:e.miniplayerRenderer;(b==null?void 0:b.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&b.minimizedEndpoint&&_.mo(a.miniplayerEl,[b.minimizedEndpoint]);_.zW(a,{miniplayerRenderer:b,playabilityStatus:d})};
yW.prototype.openToast=function(a,b){_.zW(this,{toastData:{data:a,label:b}})};
_.zW=function(a,b){var c=a.miniplayerEl,d;for(d in b)c[d]=b[d];(0,a.miniplayerPropSignalMap[1])(b)};
yW.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var a;return this.playerElement?this.playerElement:(a=_.E(this.miniplayerEl).querySelector("#player-container"))==null?void 0:a.firstElementChild};
var Bkc=function(a,b){b=b===void 0?!1:b;var c,d,e,g,k,m,n;return _.l(function(r){if(r.nextAddress==1){c=navigator.userActivation.isActive||b;if(!c)return r.return(!1);d=Mkc(a);e=d.width;g=d.height;return _.p(r,a.pipController.openWindow({width:e,height:g}),2)}k=r.yieldResult;m=a.pipController.getWindow();if(!m||!k)return r.return(!1);m.document.body.style.overflow="hidden";n=x7a(m);jhc(a.pipController,function(){Nkc(a);n()});
return r.return(!0)})},Mkc=function(a){var b=_.uF().shortsPipActivation,c,d;
a=b?.5625:(d=(c=a.player)==null?void 0:c.getVideoAspectRatio())!=null?d:16/9;c=Math.min(window.innerWidth,window.innerHeight)/2;b=b?0:76;return a>1?new _.of(c,b+c/a):new _.of(c*a,b+c)},Nkc=function(a){var b;
_.l(function(c){b=_.v().resolve(_.$t);return b.isOnWatch()&&a.watchPipMode||b.isOnShorts()&&a.shortsPipMode?_.p(c,a.deactivate(),0):a.miniplayerToPipMode?_.p(c,zkc(a),0):a.watchPipMode?_.p(c,_.vW(a),0):c.jumpTo(0)})};
yW.prototype.pictureInPictureEnabled=function(){return!!window.documentPictureInPicture&&_.Ea()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.Vm.Object.defineProperties(yW.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
yW[eB]=[khc];var Okc="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(" "),
Pkc="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" ");var Qkc=null;var Rkc={},Skc=(Rkc.initialized={priority:10,callback:function(a){var b=_.v();b.addProvider({provide:mhb,useClass:hic});b.addProvider({provide:_.gic,useFactory:function(){return new nhb}});
b.addProvider({provide:HS,useValue:_.Ei("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});b.addProvider({provide:rfc,useValue:5184E6});b.addProvider({provide:Ffc,useValue:_.Lw()});b.addProvider({provide:Rgc,useClass:COb});b.addProvider({provide:PM,useClass:PM});b.addProvider({provide:_.gu,useFactory:function(){return xJb.promise}});
b.addProvider({provide:_.zJb,useFactory:function(){return _.yJb.promise}});
b.addProvider({provide:_.mu,useValue:function(){var m;return((m=_.bu())==null?void 0:m.getPlayer())||null}});
var c={};b.addProvider((c.provide=_.VV,c.useFactory=function(m,n){return function(){return T4a(m,n)}},c[eB]=[HS,
rfc],c));c={};b.addProvider((c.provide=_.nJ,c.useClass=hgc,c[eB]=[HS,rfc],c));c={};b.addProvider((c.provide=_.L7a,c.useClass=lgc,c[eB]=[_.nJ],c));b.addProvider({provide:yS,useFactory:_.Yp});b.addProvider({provide:sw,useFactory:_.Yp});b.addProvider({provide:Ugc,useFactory:_.Yp});b.addProvider({provide:UKb,useFactory:_.Yp});b.addProvider({provide:_.IG,useFactory:_.Yp});b.addProvider({provide:nS,useValue:_.qp});b.addProvider({provide:bic,useClass:Xpa});b.addProvider({provide:Yec,useClass:Xec});b.addProvider({provide:HV,
useClass:HV});b.addProvider({provide:AV,useClass:AV});b.addProvider({provide:DV,useClass:DV});b.addProvider({provide:FV,useClass:FV});b.addProvider({provide:OV,useClass:OV});b.addProvider({provide:rU,useClass:rU});b.addProvider({provide:kU,useClass:kU});b.addProvider({provide:Vfc,useValue:tjc});b.addProvider({provide:_.xH,useFactory:_.ms});b.addProvider({provide:yfc,useFactory:_.wo});c={};b.addProvider((c.provide=r6a,c.useFactory=function(m){return function(n){var r=r===void 0?{}:r;var t,u,w=(u=_.y((t=
n.endpoint)==null?void 0:t.commandMetadata,_.ao))==null?void 0:u.rootVe;if(w){var A,C;if(t=n.previousCsn||((C=_.y((A=n.endpoint)==null?void 0:A.commandMetadata,vEb))==null?void 0:C.parentCsn)){var G=G===void 0?{}:G;if(t!==_.Fn(G.layer)||w!==RAa(G.layer))WAa(t,G.cttAuthInfo,G.layer||0),PAa(t,G.layer||0),A=G.layer||0,_.Bi(QAa(A===void 0?0:A),w);r.parentCsn=t}n.endpoint&&t?vIb(m,n.endpoint,r):_.mF(m,w,void 0,r);var J;((J=n.response)==null?0:J.trackingParams)&&m.graftServerVe(n.response.trackingParams);
var I;((I=n.playerResponse)==null?0:I.trackingParams)&&m.graftServerVe(n.playerResponse.trackingParams);var R;((R=n.reelWatchSequenceResponse)==null?0:R.trackingParams)&&m.graftServerVe(n.reelWatchSequenceResponse.trackingParams)}}},c[eB]=[_.xH],c));
c={};b.addProvider((c.provide=Wgc,c.useClass=Vgc,c[eB]=[nS,_.IG],c));c={};b.addProvider((c.provide=fW,c.useClass=fW,c[eB]=[_.gu,_.IG],c));c={};b.addProvider((c.provide=bW,c.useClass=bW,c[eB]=[sw,_.Xi],c));b.addProvider({provide:_.bhc,useClass:mhc});c={};b.addProvider((c.provide=_.FJ,c.useClass=ehc,c[eB]=[_.bhc],c));b.addProvider({provide:_.GJ,useClass:hW});b.addProvider({provide:_.HJ,useClass:gW});c={};b.addProvider((c.provide=_.eT,c.useClass=lhc,c[eB]=[_.eT],c));_.x("web_enable_voting_animation")&&
b.addProvider({provide:_.XP,useClass:Qec});b.addProvider({provide:DS,useClass:DS});b.addProvider({provide:JS,useClass:JS});b.addProvider({provide:QS,useClass:fhc});c={};b.addProvider((c.provide=TS,c.useClass=TS,c[eB]=[_.GJ,QS],c));_.x("web_enable_feedback_endpoint_resolver")&&(c={},b.addProvider((c.provide=zS,c.useClass=zS,c[eB]=[yS,xS],c)),b.addProvider({provide:xS,useClass:kfc}));_.x("web_enable_feedback_endpoint_resolver_batch_2")&&(c={},b.addProvider((c.provide=BS,c.useClass=BS,c[eB]=[yS],c)),
c={},b.addProvider((c.provide=AS,c.useClass=AS,c[eB]=[xS],c)));c={};b.addProvider((c.provide=RS,c.useClass=RS,c[eB]=[_.HJ,QS],c));c={};b.addProvider((c.provide=MS,c.useClass=MS,c[eB]=[_.HJ],c));c={};b.addProvider((c.provide=SS,c.useClass=SS,c[eB]=[_.xq,_.FJ],c));c={};b.addProvider((c.provide=PS,c.useClass=PS,c[eB]=[_.xq,_.xH],c));b.addProvider({provide:lT,useClass:lT});c={};b.addProvider((c.provide=hT,c.useClass=hT,c[eB]=[yS],c));c={};b.addProvider((c.provide=yT,c.useClass=yT,c[eB]=[yS],c));c={};
b.addProvider((c.provide=zT,c.useClass=zT,c[eB]=[_.xq,yS],c));c={};b.addProvider((c.provide=AT,c.useClass=AT,c[eB]=[yS],c));c={};b.addProvider((c.provide=BT,c.useClass=BT,c[eB]=[yS],c));c={};b.addProvider((c.provide=NS,c.useClass=NS,c[eB]=[_.FJ],c));c={};b.addProvider((c.provide=pT,c.useClass=pT,c[eB]=[_.xH],c));c={};b.addProvider((c.provide=vT,c.useClass=vT,c[eB]=[jT],c));c={};b.addProvider((c.provide=wT,c.useClass=wT,c[eB]=[jT],c));b.addProvider({provide:sT,useClass:sT});b.addProvider({provide:tT,
useClass:tT});b.addProvider({provide:oT,useClass:oT});c={};b.addProvider((c.provide=US,c.useClass=US,c[eB]=[_.FJ,_.Xi],c));b.addProvider({provide:GS,useClass:GS});c={};b.addProvider((c.provide=OS,c.useClass=OS,c[eB]=[_.xq,_.FJ],c));b.addProvider({provide:KS,useClass:KS});c={};b.addProvider((c.provide=fT,c.useClass=fT,c[eB]=[yS,_.xq,_.eT],c));c={};b.addProvider((c.provide=cT,c.useClass=cT,c[eB]=[_.xq,_.Xi],c));b.addProvider({provide:D_b,useValue:b4a});b.addProvider({provide:GYa,useValue:PRa});b.addProvider({provide:dT,
useClass:dT});c={};b.addProvider((c.provide=bT,c.useClass=bT,c[eB]=[yS],c));c={};b.addProvider((c.provide=gT,c.useClass=gT,c[eB]=[_.XP,_.Xi],c));c={};b.addProvider((c.provide=CS,c.useClass=CS,c[eB]=[_.Xi],c));b.addProvider({provide:wS,useFactory:function(){return new wS(_.Yp())}});
b.addProvider({provide:P7a,useFactory:_.Kq.getInstance});c={};b.addProvider((c.provide=IS,c.useClass=IS,c[eB]=[HS,P7a,_.Xi],c));b.addProvider({provide:ES,useClass:ES});b.addProvider({provide:rS,useClass:rS});b.addProvider({provide:tS,useClass:tS});b.addProvider({provide:_.sS,useClass:_.sS});b.addProvider({provide:ET,useClass:ET});c={};b.addProvider((c.provide=ZS,c.useClass=ZS,c[eB]=[sw],c));c={};b.addProvider((c.provide=$S,c.useClass=$S,c[eB]=[_.Xi],c));_.x("web_enable_prefetching_videos_on_home")&&
(b.addProvider({provide:aW,useClass:aW}),b.addProvider({provide:qW,useClass:qW}));c={};b.addProvider((c.provide=DT,c.useClass=DT,c[eB]=[_.Xi],c));b.addProvider({provide:uS,useClass:uS});c={};b.addProvider((c.provide=mT,c.useClass=mT,c[eB]=[_.xq,_.Xi],c));c={};b.addProvider((c.provide=vS,c.useClass=vS,c[eB]=[_.Xi],c));b.addProvider({provide:rW,useClass:rW});b.addProvider({provide:XS,useClass:XS});c={};b.addProvider((c.provide=WS,c.useClass=WS,c[eB]=[sw,_.Xi],c));c={};b.addProvider((c.provide=HT,c.useClass=
HT,c[eB]=[sw,_.Xi,_.xq],c));c={};b.addProvider((c.provide=IT,c.useClass=IT,c[eB]=[_.Xi],c));c={};b.addProvider((c.provide=GT,c.useClass=GT,c[eB]=[_.Xi,_.xq],c));c={};b.addProvider((c.provide=aT,c.useClass=aT,c[eB]=[_.gu],c));c={};b.addProvider((c.provide=YS,c.useClass=YS,c[eB]=[_.gu],c));b.addProvider({provide:iT,useClass:iT});b.addProvider({provide:kT,useClass:kT});b.addProvider({provide:xT,useClass:xT});_.x("kevlar_enable_mss_lazy_load")&&b.addProvider({provide:_.Xw,useClass:Nic});b.addProvider({provide:_.kG,
useClass:jW});b.addProvider({provide:bF,useFactory:function(){return _.Nl.getInstance()}});
b.addProvider({provide:Sgc,useFactory:i5a});b.addProvider({provide:jT,useFactory:function(){return _.DF.getInstance()}});
b.addProvider({provide:qJb,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});c={};b.addProvider((c.provide=_.cW,c.useClass=_.cW,c[eB]=[_.gu,_.Xi,_.xH,Sgc,jT,bF,qJb,nS],c));b.addProvider({provide:_.pWb,useClass:oWb});b.addProvider({provide:_.tfc,useClass:sfc});c={};b.addProvider((c.provide=LS,c.useClass=LS,c[eB]=[_.tfc],c));c={};b.addProvider((c.provide=_.dW,c.useFactory=function(m){return m.upliftCompletionResolver.promise},c[eB]=[Wgc],c));
c=_.Gi("IS_SHELL_LOAD")?"aa":"eocs";var d=_.Gi("IS_SHELL_LOAD")?3:2;_.SF().parkOrScheduleJob(function(){Ygc()},d,c);
_.SF().parkOrScheduleJob(function(){_.v().resolve(fW).start()},2,"eocs");
_.SF().parkOrScheduleJob(function(){Tgc()},2,"eocs");
_.SF().parkOrScheduleJob(function(){_.v().resolve(bW).start()},2,"eocs");
_.x("kevlar_debug_data_app_registration_ks")||OUa();b.addProvider({provide:_.Ft,useValue:new $dc(a.root)});b.addProvider({provide:Ll,useValue:new pua});b.addProvider({provide:_.hec,useValue:new fec(a.root)});b.addProvider({provide:_.wq,useValue:new gec});b.addProvider({provide:_.oG,useValue:new uJ(a.root)});b.addProvider({provide:khc,useClass:iW});_.x("kevlar_network_sli_killswitch")||b.addProvider({provide:mic,useValue:aMb});b.addProvider({provide:cic,useFactory:P5a});_.x("web_bind_fetch")&&(c={},
b.addProvider((c.provide=dic,c.useFactory=Q5a,c[eB]=[_.Wi(cic)],c)));_.x("web_bind_parse")&&(c={},b.addProvider((c.provide=eic,c.useFactory=R5a,c[eB]=[_.Wi(cic)],c)));_.x("web_bind_window_request")&&(c={},b.addProvider((c.provide=fic,c.useFactory=S5a,c[eB]=[_.Wi(cic)],c)));c={};b.addProvider((c.provide=Jfc,c.useFactory=o6a,c[eB]=[_.dW,yS,_.VV],c));c={};b.addProvider((c.provide=Ifc,c.useClass=JT,c[eB]=[Jfc],c));b.addProvider({provide:$fc,useClass:Wfc});b.addProvider({provide:Efc,useClass:Gfc});c=[].concat(_.Be(Ut));
_.x("web_continuation_response_processing")&&c.push(_.Kt);c.push(FFb);_.x("enable_share_panel_navigation_logging_fix_on_web")&&c.push(_.qDb);b.addProvider({provide:eUa,useValue:c});b.addProvider({provide:S7a,useClass:Dfc});b.addProvider({provide:qic,useClass:nic});c={};b.addProvider((c.provide=O7a,c.useClass=tec,c[eB]=[sw],c));_.zk.addLowPriorityJob(function(){z3a()});
c={};b.addProvider((c.provide=ZKb,c.useFactory=function(m){return function(n){var r,t=(r=_.y(n.commandMetadata,_.ao))==null?void 0:r.url;if(!t)throw new _.qj("No URL for PBJ Command",n);t=Wna(t,{pbj:"1"});r=noa(t,{})||{};r=Object.assign({},r,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.Ei("STS").toString()});n=_.ij({command:JSON.stringify(n),session_token:_.Ei("XSRF_TOKEN")});return m.fetch(t,{method:"POST",headers:r,body:n})}},c[eB]=[qic],c));
c=[];c.push(b.resolve(Efc));d={};d=(d.client_location=_.Kq.getInstance(),d.consistency=_.kJa(),d.entities=b.resolve(Yec),d.response_received_commands=b.resolve(S7a),d.store=b.resolve(_.L7a),d.tokens=b.resolve(Efc),d);if(_.x("web_shorts_prefetch_service_enabled")){var e=new mgc(b.resolve(_.nJ));d.shorts_prefetch=e}d.adblock_detection=b.resolve(O7a);b.addProvider({provide:_.Lk,useClass:_.Lk});e=b.resolve(Vfc);var g=[];_.x("PremiumClientSharedConfig__enable_att_context_processor")&&(b.addProvider({provide:Hec,
useClass:Eec}),g.push(b.resolve(Hec)));if(_.x("owl_pl_await")){var k={};b.addProvider((k.provide=Whc,k.useFactory=function(m){return new Uhc(m)},k[eB]=[_.Lk],k));
g.push(b.resolve(Whc))}KQb(e,b.resolve(qic),b.resolve(bic),d,b.resolve(_.nJ),c,g,b.resolve(Ifc),b.resolve($fc));b.addProvider({provide:_.xq,useValue:_.Qt.instance});_.x("start_client_gcf")&&b.addProvider({provide:vl,useValue:Mmb()});b.addProvider({provide:$gc,useFactory:function(){return new $gc(_.v().resolve(_.Lk),_.DF.getInstance())}});
_.SF().parkOrScheduleJob(function(){ahc()},1,"eocs");
c={};b.addProvider((c.provide=eW,c.useClass=eW,c[eB]=[_.VV,_.xq],c));b.addProvider({provide:_.rhc,useFactory:_.pW.getInstance});_.SF().parkOrScheduleJob(function(){_.v().resolve(eW).refresh()},0,"eocs");
$Kb(tjc.watchEndpointMap||{},e.reelWatchEndpointMap||{},a.injector.resolve(_.xq));b.addProvider({provide:Iw,useValue:_.mG.instance});_.x("web_prs_testing_mode_killswitch")||(c=new _.Wn(window.location.href),c.JSC$7879_queryData_.toString()!==""&&c.JSC$7879_queryData_.get("force_ad_encrypted")&&(_.mG.instance.forceWebFEForAdsTesting=!0));_.x("kevlar_signal_collection_killswitch")||(c={},b.addProvider((c.provide=Qgc,c.useClass=Qgc,c[eB]=[HS,yfc],c)),_.SF().parkOrScheduleJob(function(){_.v().resolve(Qgc).record()},
1,"eocs"));
_.x("web_debug_handler_registration_killswitch")||_.SF().parkOrScheduleJob(function(){MUa("DOWNLOAD_PES",h5a);_.x("offline_client_state_export_ks")||MUa("OFFLINE_CLIENT_STATE",e5a)},0,"eocs");
_.x("kevlar_prevent_polymer_dynamic_font_load")&&_.SF().parkOrScheduleJob(function(){var m=[_.ef(Bic),_.ef(Cic)];m=_.h(m);for(var n=m.next();!n.done;n=m.next()){n=n.value;var r=document.createElement("link");_.$d(r,n,"stylesheet");document.head.appendChild(r)}},1,"eocs");
c=a.injector.resolve(_.xq);_.Gec.instance=new _.Gec(c);L3a(yec(new Fec(c)));c={};a.injector.addProvider((c.provide=Zl,c.useFactory=function(m){(m=m==null?void 0:m.getCurrentPage())?m=m.visibilityObserver:(Qkc||(Qkc=lIa()),m=Qkc);return m},c[eB]=[_.Wi(_.$t)],c.skipCache=!0,c));
b.addProvider({provide:_.Vw,useClass:yW});b.addProvider({provide:tJ,useClass:wWb});b.addProvider({provide:xu,useValue:e3a});a.injector.addProvider({provide:nOb,useValue:Zdc});b.addProvider({provide:c_b,useValue:a3a});b.addProvider({provide:_.Ns,useValue:m3a});a=b.addProvider;thc||(thc=new shc);a.call(b,{provide:_.uhc,useValue:thc});b.addProvider({provide:_.Ps,useValue:_.Ei("HTML_DIR")==="rtl"?"rtl":"ltr"});b.addProvider({provide:$ec,useClass:ifc});b.addProvider({provide:_.gs,useClass:kW});_.v().addProvider({provide:bfc,
useValue:Okc.concat(Pkc)});b.addProvider({provide:_.mW,useClass:_.mW});b.addProvider({provide:_.xic,useValue:new wic});b.addProvider({provide:Ycc,useClass:Vec});b.addProvider({provide:nT,useClass:nT});b.addProvider({provide:qT,useClass:qT});a={};b.addProvider((a.provide=VS,a.useClass=VS,a[eB]=[_.xq,_.FJ],a));b.addProvider({provide:FT,useClass:FT});b.addProvider({provide:qdc,useClass:ohc});b.addProvider({provide:uT,useClass:uT});b.addProvider({provide:z7b,useValue:a7b});b.addProvider({provide:_.TR,
useClass:Wec});_.x("enable_payments_purchase_manager")&&b.addProvider({provide:Lec,useClass:Iec});b.addProvider({provide:Aic,useFactory:function(){return function(m){return _.zic(m)}}});
b.addProvider({provide:_.Bfc,useClass:Cfc});a={};b.addProvider((a.provide=CT,a.useClass=CT,a[eB]=[_.Bfc],a));b.addProvider({provide:rT,useClass:rT});b.addProvider({provide:xac,useValue:Ldc});b.addProvider({provide:Q_b,useValue:Ahc});b.addProvider({provide:XUa,useClass:nhc});b.addProvider({provide:yjc,useValue:xjc});a={};b.addProvider((a.provide=_.zjc,a.useClass=Ajc,a[eB]=[yjc],a));_.x("web_ephemeral_actions")&&(a={},b.addProvider((a.provide=_.aic,a.useClass=nW,a[eB]=[_.IG,_.oG],a)));_.x("web_explore_hub_on_hover")&&
(a={},b.addProvider((a.provide=FS,a.useClass=FS,a[eB]=[_.xq,bF],a)));b.addProvider({provide:zSa,useValue:rSa})}},Rkc);var Tkc={},Ukc=(Tkc.initialized={priority:10,callback:function(){if(!lic){usa();U5a("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.ej(_.vo(U5a,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.x("log_heartbeat_with_lifecycles")){var a={};cJ.instance||(cJ.instance=new cJ);cJ.instance.install((a.document_visible={callback:V5a,priority:10},a.document_hidden={callback:V5a,priority:10},a))}else _.Vk(document,"visibilitychange",V5a);lic=!0}(a=_.Fn())&&a!=="UNDEFINED_CSN"&&NAa(a)}},Tkc);var Vkc={},Wkc=(Vkc.initialized={callback:function(a){var b=_.lu(232091),c=a.injector.resolve(_.xH);_.nF(c,b);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?y7a()&&_.pF(c,b):(a=a.injector.resolve(Aic)("refresh_detector"))&&(a.get("first_tab_load")?_.pF(c,b):a.set("first_tab_load","1"))}},Vkc);var Xkc={},Ykc=(Xkc.initialized={priority:10,callback:G7a},Xkc);var Zkc={},$kc=(Zkc.rendering={priority:8,callback:H7a},Zkc);var alc={},blc=(alc.rendering={priority:10,callback:U7a},alc.rendered={callback:T7a},alc),clc={},dlc=(clc.rendering={callback:U7a},clc.rendered={callback:T7a},clc);var elc=!1,flc={},glc=(flc.initialized={priority:10,callback:function(){elc||(Xma({didPatch:function(a){a.el&&d6a(a.el,a.props)},
didUnmount:function(a){b6a(a.el)}}),elc=!0)}},flc);var hlc=/^\/shorts\/?$/;_.Bi("FILLER_DATA",{browse:{filler:!0,page:"browse"},search:{filler:!0,page:"search",endpoint:{commandMetadata:{webCommandMetadata:{url:"/results",webPageType:"WEB_PAGE_TYPE_SEARCH"}},urlEndpoint:{url:"/results"}},response:{contents:{twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[],subMenu:{searchSubMenuRenderer:{}}}},secondaryContents:{secondarySearchContainerRenderer:{contents:[]}}}}}},watch:{filler:!0,page:"watch",endpoint:{commandMetadata:{webCommandMetadata:{url:"/watch",
webPageType:"WEB_PAGE_TYPE_WATCH"}},urlEndpoint:{url:"/watch"}},playerResponse:{playabilityStatus:{status:"OK"}},response:{contents:{twoColumnWatchNextResults:{results:{results:{contents:[{videoPrimaryInfoRenderer:{},videoSecondaryInfoRenderer:{}}]}},secondaryResults:{secondaryResults:{}}}}}}});
if(_.x("kevlar_enable_mss")){_.uja(new xob);var ilc=!0,jlc,AW;ilc=ilc===void 0?!1:ilc;jlc=jlc===void 0?!1:jlc;AW=AW===void 0?{}:AW;var klc=AW.cssRowKey||"",llc=AW.combinedSignature||"";!klc&&window&&window._F_cssRowKey&&(klc=window._F_cssRowKey,!llc&&window._F_combinedSignature&&(llc=window._F_combinedSignature));if(klc&&typeof window._F_installCss!=="function")throw Error("sd");var mlc=AW.loaderClass||_.SB,nlc,olc,BW="",CW=_.ja._F_jsUrl;if(typeof document!=="undefined"&&document&&document.getElementById){var DW=
document.getElementById("base-js");if(DW){var plc=DW.tagName.toUpperCase();if(plc=="SCRIPT"||plc=="LINK")BW=DW.src?DW.src:DW.getAttribute("href")}}if(CW&&BW){if(CW!=BW)throw Error("id`"+CW+"`"+BW);olc=CW}else olc=CW||BW;if(!sjb(olc))throw Error("jd");nlc=_.vd(olc);var EW=new mlc(nlc,klc,llc,ilc,jlc);AW.useCors&&(EW.useCors_=AW.useCors);AW.corsMode&&(EW.corsMode_=AW.corsMode);AW.urlMaxLength&&(EW.urlMaxLength=AW.urlMaxLength);AW.fetchPriority&&(EW.fetchPriority=AW.fetchPriority);var qlc=zg();qlc.JSC$7901_loader_=
EW;qlc.setBatchModeEnabled(!0)}(function(){var a=document.querySelector("ytd-app");if(!a)throw Error("Cj");a=new oW({root:a,injector:_.v()});a.install(Ukc);var b={};a.install((b.initialized={priority:10,callback:cJa},b));_.x("wp_lat_b")&&(b={},a.install((b.initialized={priority:10,callback:function(){M5a()}},b)));
b={};a.install((b.rendered={priority:0,callback:$Ia},b));b={};a.install((b.rendered={priority:0,callback:function(){_.zk.addLowPriorityJob(function(){_.jfc>1&&(TIa(),YIa())},4E4)}},b));
a.install(ajc);a.install(Wkc);a.install(glc);fna=Knb;Vma=k6a;kna=HOa;hna=IOa;_.x("ytwiz_enable_debug_component_props")&&qna();a.install(ijc);a.install(Vic);a.install(Zic);a.install(Jgc);a.install(Ogc);a.install(gjc);a.install(Skc);_.x("kevlar_enable_mss_lazy_load")&&a.install(Ykc);a.install(Xic);if(!_.Gi("IS_SHELL_LOAD")||_.x("kevlar_fetch_initial_data_promise_client")||_.x("sw_nav_preload_pbj")){var c=_.gj(window.location.href);b=c&&c==="/watch";c=c&&c.match(hlc);b?a.install(dlc):c?a.install($kc):
a.install(blc)}else a.install(Sic);a.install(cjc);_.x("web_enable_prefetching_videos_on_home")&&a.install(mjc);_.x("start_client_gcf")&&a.install(kic);a.install(Egc);(new Ugb).increment("INSTALLED");a.install(kjc);a.install(Pic);a.transition("initialized")})();
_._ModuleManager_initialize=function(a,b){if(!_.xg){if(!_.yg)return;_.uja(_.yg())}_.xg.setAllModuleInfoString(a,b)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy2/sy3/sy4:2,3/sy5/sy6:2/sy7/sy8/sy9/sya/syb/kevlar_main_module:1,4,5,6,7,8,9/syc:2/syd:3,6,a,d/sye/syf:5/syg/h8y2qb:4,e,f,g,h/syh/JzFVk:d,g,h,j/syi:8/xwEKAe:3,9,f,h,l/syj:e/syk:1,b,e,f,j,l/nmfa2d:h,n,o/syl:7,o/sym:g,h,q/CF909:n,r/Tm0L3c:r/L3n37:g,h,n,q/iuT5Oc',['sy2','sy8','syc','sya','sy6','sy3','syi','syh','sye','syd','syb','sy1','syk','sy7','sy5','syl','syg','syf','syj','sym','sy9','sy4','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
_.JW=function(a,b,c,d,e){var g={};b&&(g[b]=c);d?g.errorType=d:e&&(g.errorReason=e);_.zl(a,g);_.Al()};
_.KW=function(a,b){_.D_a(a,_.Up(b))};
_.LW=function(a){var b=_.SF();return _.cKb(b,a,1)};
_.qr({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 a=this.query;a&&(this.full||a[0]==="("||(a="("+a+")"),this._mq=window.matchMedia(a),this._add(),this.queryHandler(this._mq))},
queryHandler:function(a){this._setQueryMatches(a.matches)}});var Dlc;var Elc;var Flc=function(){};
_.f=Flc.prototype;_.f.addOwnKeyBinding=function(){};
_.f.removeOwnKeyBindings=function(){};
_.f.keyboardEventMatchesKeys=function(){};
_.f._collectKeyBindings=function(){};
_.f._prepKeyBindings=function(){};
_.f._addKeyBinding=function(){};
_.f._resetKeyEventListeners=function(){};
_.f._listenKeyEventListeners=function(){};
_.f._unlistenKeyEventListeners=function(){};
_.f._onKeyBindingEvent=function(){};
_.f._triggerKeyHandler=function(){};
_.f._tapHandler=function(){};
_.f._focusChanged=function(){};
_.f._detectKeyboardFocus=function(){};
_.f._userActivate=function(){};
_.f._upHandler=function(){};
_.f._spaceKeyDownHandler=function(){};
_.f._spaceKeyUpHandler=function(){};
_.f._asyncClick=function(){};
_.f._pressedChanged=function(){};
_.f._ariaActiveAttributeChanged=function(){};
_.f._activeChanged=function(){};
_.f._controlStateChanged=function(){};
_.f._changedButtonState=function(){};
_.f._focusBlurHandler=function(){};
_.f._disabledChanged=function(){};
_.f._changedControlState=function(){};
_.f._downHandler=function(){};
_.f.ensureRipple=function(){};
_.f.getRipple=function(){};
_.f.hasRipple=function(){};
_.f._noinkChanged=function(){};
_.f._focusedChanged=function(){};
_.f._createRipple=function(){};
_.f.registered=function(){};
_.f._invalidChanged=function(){};
_.f.hasValidator=function(){};
_.f.validate=function(){};
_.f._getValidity=function(){};
_.f._requiredChanged=function(){};
_.f._valueChanged=function(){};
_.f._checkedChanged=function(){};
_.f._buttonStateChanged=function(){};
_.f._setPressed=function(){};
_.f._setPointerDown=function(){};
_.f._setReceivedFocusFromKeyboard=function(){};
_.f._setFocused=function(){};
Flc=_.qr({is:"tp-yt-paper-radio-button",_template:function(){if(Elc!==void 0)return Elc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;Dlc===void 0&&(Dlc=document.createElement("template"));var d=Dlc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return Elc=a},
behaviors:[_.kwb],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(){_.Tm(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var a=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),b=Math.floor(3*a);b%2!==a%2&&b++;this.updateStyles({"--paper-radio-button-ink-size":b+"px"})}})}});var Glc;var Hlc;_.qr({_template:function(){if(Hlc!==void 0)return Hlc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;Glc===void 0&&(Glc=document.createElement("template"));var d=Glc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return Hlc=a},
is:"tp-yt-paper-radio-group",behaviors:[_.wub],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(a){var b=this._valueToItem(a);if(!b||!b.hasAttribute("disabled")){if(this.selected){b=this._valueToItem(this.selected);if(this.selected==a)if(this.allowEmptySelection)a="";else{b&&(b.checked=!0);return}b&&
(b.checked=!1)}_.Fr.select.apply(this,[a]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(a){this._focusPrevious();a.preventDefault();this._activateFocusedItem()},
_onDownKey:function(a){this._focusNext();a.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(a){_.vub._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(a){_.vub._onRightKey.apply(this,arguments);this._activateFocusedItem()}});var Ilc;_.It("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var Jlc=function(){return _.P.apply(this,arguments)||this};
_.z(Jlc,_.P);_.f=Jlc.prototype;_.f.computeHasPrimaryIcon=function(a){return!(!a.icon&&!a.thumbnail)};
_.f.computeHasSecondary=function(a){return!(!a.secondaryIcon&&!a.secondaryNotificationText)};
_.f.computeHideSecondaryString=function(a){return!_.x("disable_hide_empty_secondary_string")&&!a.secondaryNotificationText};
_.f.computeCompactLinkStyle=function(a){return a?a.toLowerCase().replace(/_/g,"-"):""};
_.f.computeHasFitHeight=function(a){return a==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.f.isActiveEndpoint=function(a){return(a=this.get("commandMetadata.webCommandMetadata.url",a))?_.gj(window.location.href)!=="/account_transfer_channel"&&_.gj(window.location.href)!=="/gaia_link"&&_.gj(window.location.href)!=="/channel_switcher"||a!=="/account"?_.gj(window.location.href)===a:!0:!1};
_.f.onTap=function(){var a;((a=this.data)==null?0:a.serviceEndpoint)&&_.mo(this.hostElement,[this.data.serviceEndpoint])};
var MW=Jlc;MW.prototype.onTap=MW.prototype.onTap;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],MW.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],MW.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.W("design:type",Boolean)],MW.prototype,"active",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.W("design:type",String)],MW.prototype,"compactLinkStyle",void 0);_.U([_.O({computed:"computeIcon_(data.icon)"}),_.W("design:type",Object)],MW.prototype,"icon",void 0);_.U([_.O({computed:"computeIcon_(data.secondaryIcon)"}),_.W("design:type",Object)],MW.prototype,"secondaryIcon",void 0);_.U([_.O({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],MW.prototype,"hasSecondary",void 0);
_.U([_.O({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],MW.prototype,"hideSecondaryString",void 0);_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],MW.prototype,"onTap",null);MW=_.U([_.Q({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],MW);
_.S(MW,"ytd-compact-link-renderer",function(){if(Ilc!==void 0)return Ilc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Ilc=a},{mode:1});var Klc;_.It("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var Llc=function(){var a=_.P.apply(this,arguments)||this;a.role="link";a.tabindex="0";a.actionMap=_.x("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 a};
_.z(Llc,_.P);_.f=Llc.prototype;_.f.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.Hq()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.f.getCurrentTheme=function(){return _.Iq()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.Hq()};
_.f.onThemeSelected=function(a,b){var c=a||b?a:_.Gq(),d=(c&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!c&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.hJa(_.gj(window.location.href));_.xo(0,165,a);_.xo(0,174,b);this.prefs.save();d&&_.ho(this.hostElement,"yt-dark-mode-toggled-action",[c]);_.ho(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.f.onTap=function(){this.data.serviceEndpoint&&_.mo(this.hostElement,[this.data.serviceEndpoint])};
_.f.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.f.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.f.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
var NW=Llc;NW.prototype.onTap=NW.prototype.onTap;NW.prototype.dataChanged=NW.prototype.dataChanged;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],NW.prototype,"actionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],NW.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aE),_.W("design:type",Object)],NW.prototype,"paperItemBehaviors",void 0);_.U([_.O(),_.W("design:type",Object)],NW.prototype,"data",void 0);_.U([_.O({value:function(){return _.wo()}}),
_.W("design:type",_.hB)],NW.prototype,"prefs",void 0);_.U([_.O(),_.W("design:type",Object)],NW.prototype,"label",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],NW.prototype,"role",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],NW.prototype,"tabindex",void 0);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],NW.prototype,"dataChanged",null);
_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],NW.prototype,"onTap",null);NW=_.U([_.Q({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],NW);
_.S(NW,"ytd-toggle-theme-compact-link-renderer",function(){if(Klc!==void 0)return Klc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Klc=a},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.eY=function(a,b,c){_.Ii(_.VCa)(void 0,a,b,c)};
_.fY=function(a){return function(b,c){var d=a||c.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(b,c,{get:function(){var e;return this.$?this.$[d]:(e=_.fr(this))==null?void 0:e.querySelector("#"+d)},
enumerable:!0,configurable:!0})}};_.gY=function(a){a=a===void 0?!1:a;_.tg.call(this);this.pubSub_=new _.jj(a);_.gg(this,this.pubSub_)};
_.nx(_.gY,_.tg);_.gY.prototype.subscribe=function(a,b,c){return this.isDisposed()?0:this.pubSub_.subscribe(a,b,c)};
_.gY.prototype.unsubscribe=function(a,b,c){return this.isDisposed()?!1:this.pubSub_.unsubscribe(a,b,c)};
_.gY.prototype.unsubscribeByKey=function(a){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(a)};
_.gY.prototype.publish=function(a,b){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var c3c=function(){_.JW("ypcRedeemFlowStarted")},d3c=function(a){_.JW("ypcRedeemFlowFailed",void 0,void 0,void 0,a)},e3c=function(a,b,c){b&&c&&(a.videos.forEach(function(d){d.videoId===b&&(d.itemId=c)}),a.recommendedVideos.forEach(function(d){d.videoId===b&&(d.itemId=c)}))};var f3c;var g3c;/*

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
*/
_.qr({_template:function(){if(g3c!==void 0)return g3c;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;f3c===void 0&&(f3c=document.createElement("template"));var d=f3c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return g3c=a},
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(a,b){var c=this._resolveSrc(a);c!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",a===""||b?this._setLoading(!1):(this._resolvedSrc=c,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 a=this.$.sizedImgDiv.style,b=this.$.placeholder.style;a.backgroundSize=b.backgroundSize=this.sizing;a.backgroundPosition=b.backgroundPosition=this.sizing?this.position:"";a.backgroundRepeat=b.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(a){a=_.dm(a,this.$.baseURIAnchor.href);a.length>=2&&a[0]==="/"&&a[1]!=="/"&&(a=(location.origin||location.protocol+"//"+location.host)+a);return a}});var h3c;var i3c;_.qr({_template:function(){if(i3c!==void 0)return i3c;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;h3c===void 0&&(h3c=document.createElement("template"));var d=h3c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return i3c=a},
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(a){return a?"false":"true"},
_headingChanged:function(a){var b=this.getAttribute("heading"),c=this.getAttribute("aria-label");typeof c==="string"&&c!==b||this.setAttribute("aria-label",a)},
_computeHeadingClass:function(a){return a?" over-image":""},
_computeAnimated:function(a){return a}});var j3c=new _.X("addRendererToItemSectionAction");var k3c;var l3c=function(){return _.P.apply(this,arguments)||this};
_.z(l3c,_.P);l3c.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
var F5=l3c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],F5.prototype,"rendererBehavior",void 0);_.U([_.H(_.NI),_.W("design:type",Object)],F5.prototype,"dismissibleItemBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],F5.prototype,"rendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],F5.prototype,"data",void 0);F5=_.U([_.Q({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],F5);
_.S(F5,"ytd-comment-history-entry-renderer",function(){if(k3c!==void 0)return k3c;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return k3c=a},{mode:1});var m3c;_.It("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.It("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var n3c=function(){return _.P.apply(this,arguments)||this};
_.z(n3c,_.P);_.f=n3c.prototype;_.f.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.f.onKeyUp=function(a){if(a.keyCode===13)this.onTap()};
_.f.onTap=function(){this.data.recordClickEndpoint&&_.v().resolve(_.Xi).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var a=this.data.navigationEndpoint;a&&_.y(a,_.KE)&&_.v().resolve(_.Xi).resolveCommand(a,{form:{element:this.hostElement}})};
_.f.readChanged=function(){var a;_.$q(this.hostElement,"unread",!((a=this.data)==null?0:a.read))};
_.f.dataChanged=function(){this.data&&_.$q(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.f.computeThumbnailSize=function(){var a;return((a=this.data)==null?0:a.highPriorityNotification)?32:48};
_.f.getEndpointURL=function(a){return a&&!_.y(a,_.KE)?this.componentBehavior.computeHref_(a):null};
_.f.getEndpointData=function(a){return a&&!_.y(a,_.KE)?a:null};
var G5=n3c;G5.prototype.computeThumbnailSize=G5.prototype.computeThumbnailSize;G5.prototype.dataChanged=G5.prototype.dataChanged;G5.prototype.readChanged=G5.prototype.readChanged;G5.prototype.onKeyUp=G5.prototype.onKeyUp;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],G5.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],G5.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],G5.prototype,"componentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],G5.prototype,"data",void 0);_.U([_.O({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.W("design:type",Number)],G5.prototype,"thumbnailSize",void 0);_.U([_.M("keyup"),_.W("design:type",Function),_.W("design:paramtypes",[KeyboardEvent]),_.W("design:returntype")],G5.prototype,"onKeyUp",null);
_.U([_.N("data.read"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],G5.prototype,"readChanged",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],G5.prototype,"dataChanged",null);_.U([_.N("data.highPriorityNotification"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],G5.prototype,"computeThumbnailSize",null);
G5=_.U([_.Q({is:"ytd-notification-renderer",disableElementRegistration:!0})],G5);
_.S(G5,"ytd-notification-renderer",function(){if(m3c!==void 0)return m3c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return m3c=a},{mode:1});var o3c;var p3c=function(){return _.P.apply(this,arguments)||this};
_.z(p3c,_.P);p3c.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"}}}};
p3c.prototype.computeActionButtonClass=function(a){return!a.actionButtons||a.actionButtons.length<=1?"single-button":a.description?"vertical-buttons":"horizontal-buttons"};
var H5=p3c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],H5.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],H5.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],H5.prototype,"data",void 0);H5=_.U([_.Q({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],H5);
_.S(H5,"ytd-playlist-show-metadata-renderer",function(){if(o3c!==void 0)return o3c;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return o3c=a},{mode:1});var q3c;_.It("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var r3c=function(){return _.P.apply(this,arguments)||this};
_.z(r3c,_.P);var I5=r3c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],I5.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],I5.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],I5.prototype,"data",void 0);I5=_.U([_.Q({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],I5);
_.S(I5,"ytd-purchase-item-renderer",function(){if(q3c!==void 0)return q3c;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return q3c=a},{mode:1});var s3c;var t3c={};t3c.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(a){if(a)return a.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(a){if(a==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.It("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var u3c=function(){return _.P.apply(this,arguments)||this};
_.z(u3c,_.P);u3c.prototype.onYtNavigate=function(a){var b=this.openPopupBehavior.getNavigationEndpointPopupAction(a.detail.endpoint);b&&(a.stopPropagation(),this.openPopupBehavior.openPopup(b))};
var J5=u3c;J5.prototype.onYtNavigate=J5.prototype.onYtNavigate;_.U([_.H(t3c.YtSimpleTextSectionBehavior),_.W("design:type",Object)],J5.prototype,"ytSimpleTextSectionBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],J5.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.YH),_.W("design:type",Object)],J5.prototype,"openPopupBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],J5.prototype,"data",void 0);
_.U([_.M("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],J5.prototype,"onYtNavigate",null);J5=_.U([_.Q({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],J5);
_.S(J5,"ytd-simple-text-section-renderer",function(){if(s3c!==void 0)return s3c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return s3c=a},{mode:1});var v3c;_.It("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var w3c=function(){return _.P.apply(this,arguments)||this};
_.z(w3c,_.P);var x3c=w3c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],x3c.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],x3c.prototype,"data",void 0);x3c=_.U([_.Q({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],x3c);
_.S(x3c,"ytd-unlimited-page-feature-info-renderer",function(){if(v3c!==void 0)return v3c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return v3c=a},{mode:1});var y3c;var z3c;var A3c=function(){return _.P.apply(this,arguments)||this};
_.z(A3c,_.P);A3c.prototype.dataChanged=function(){if(this.data){var a=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);a&&(a=_.Xs(a,screen.width),this.hostElement.style.backgroundImage="url("+a+")")}};
var K5=A3c;K5.prototype.dataChanged=K5.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],K5.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],K5.prototype,"data",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],K5.prototype,"dataChanged",null);K5=_.U([_.Q({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],K5);
_.S(K5,"ytd-post-redemption-section-renderer",function(){if(z3c!==void 0)return z3c;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return z3c=a},{mode:1});var B3c;var C3c=function(){return _.P.apply(this,arguments)||this};
_.z(C3c,_.P);C3c.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
var L5=C3c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],L5.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],L5.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],L5.prototype,"data",void 0);L5=_.U([_.Q({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],L5);
_.S(L5,"ytd-ypc-post-redemption-renderer",function(){if(B3c!==void 0)return B3c;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return B3c=a},{mode:1});_.It("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var D3c=function(){var a=_.P.apply(this,arguments)||this;a.MIN_CODE_LENGTH=12;a.MAX_CODE_LENGTH=24;return a};
_.z(D3c,_.P);_.f=D3c.prototype;_.f.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.f.created=function(){this.riskService=new _.t4a;this.loadPaymentThenable=_.v4a(_.Ei("YPC_MB_URL"))};
_.f.ready=function(){var a=this;this.code.addEventListener("keypress",function(b){a.onCodeInputKeypress(b)})};
_.f.dataChanged=function(){var a=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(b){b=_.h(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c.type==="attributes"&&c.attributeName==="dark"&&a.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.f.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var a=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+a+")")}};
_.f.computeRedeemButton=function(a){(a=this.get("redeemButton.buttonRenderer",a))&&(a=Object.assign({},a,{serviceEndpoint:void 0}));return a};
_.f.onRedeemButtonTap=function(a){a.stopPropagation();c3c();this.redeemCode()};
_.f.redeemCode=function(){var a=this;this.isLoading=!0;var b=this.riskService.init();_.Gz([b,this.loadPaymentThenable]).then(function(){var c=a.data.redeemButton.buttonRenderer.serviceEndpoint,d=_.u4a(),e=payments.business.integration.ClientTokenFactory.createClientToken(_.y(c,_.cGb).countryCode,d);d={c:a.code.value.trim(),rd:window.btoa(d),ctk:e};_.mo(a.hostElement,[c,d])},function(){a.showGenericError();
d3c("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.Hi(Error("Ol"))})};
_.f.onYtServiceRequestCompleted=function(a){a.stopPropagation();this.isLoading=!1;var b,c;this.errorMessage=(b=a.detail)==null?void 0:(c=b.data)==null?void 0:c.errorMessage;var d,e;this.postRedemptionRenderer=(d=a.detail)==null?void 0:(e=d.data)==null?void 0:e.renderer;var g,k;if(a=(g=a.detail)==null?void 0:(k=g.data)==null?void 0:k.redirectEndpoint)this.isLoading=!0,_.go(this.hostElement,"yt-navigate",{endpoint:a});this.errorMessage?d3c("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
a)&&_.JW("ypcRedeemFlowSucceeded")};
_.f.onYtServiceRequestError=function(a){a.stopPropagation();this.isLoading=!1;if(a=this.get("detail.error.message",a))this.errorMessage=_.Up(a);d3c("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.f.onInvokeInstrumentManagerActionCompleted=function(a){a.stopPropagation();this.redeemCode()};
_.f.onInvokeInstrumentManagerActionError=function(a){a.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",a)){case "instrumentManagerLoadError":this.showGenericError();d3c("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();d3c("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.JW("ypcRedeemFlowCancelled")}};
_.f.onInput=function(){var a=this;_.Dr(this,"onInput",function(){var b=a.code.value.trim();a.redeemButtonDisabled=b.length<a.MIN_CODE_LENGTH||b.length>a.MAX_CODE_LENGTH},200)};
_.f.onCodeInputKeypress=function(a){a.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(c3c(),this.redeemCode())};
_.f.computeImageUrl=function(a){return a?_.Xs(a.thumbnails,600):null};
_.f.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
var M5=D3c;M5.prototype.onInvokeInstrumentManagerActionError=M5.prototype.onInvokeInstrumentManagerActionError;M5.prototype.onInvokeInstrumentManagerActionCompleted=M5.prototype.onInvokeInstrumentManagerActionCompleted;M5.prototype.onYtServiceRequestError=M5.prototype.onYtServiceRequestError;M5.prototype.onYtServiceRequestCompleted=M5.prototype.onYtServiceRequestCompleted;M5.prototype.dataChanged=M5.prototype.dataChanged;
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],M5.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],M5.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],M5.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],M5.prototype,"isLoading",void 0);_.U([_.O(),_.W("design:type",Boolean)],M5.prototype,"redeemButtonDisabled",void 0);
_.U([_.O(),_.W("design:type",Object)],M5.prototype,"errorMessage",void 0);_.U([_.O(),_.W("design:type",Object)],M5.prototype,"postRedemptionRenderer",void 0);_.U([_.O(),_.W("design:type",Object)],M5.prototype,"observer",void 0);_.U([_.gr("#code"),_.W("design:type",HTMLInputElement)],M5.prototype,"code",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],M5.prototype,"dataChanged",null);
_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],M5.prototype,"onYtServiceRequestCompleted",null);_.U([_.M("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],M5.prototype,"onYtServiceRequestError",null);
_.U([_.M("yt-invoke-instrument-manager-action-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],M5.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.U([_.M("yt-invoke-instrument-manager-action-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],M5.prototype,"onInvokeInstrumentManagerActionError",null);M5=_.U([_.Q({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],M5);
_.S(M5,"ytd-redeem-code-renderer",function(){if(y3c!==void 0)return y3c;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return y3c=a},{mode:1});var E3c;_.It("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var F3c=function(){var a=_.P.apply(this,arguments)||this;a.businessEmailDisplayState="HIDE_SECTION";return a};
_.z(F3c,_.P);_.f=F3c.prototype;_.f.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}}}}}};
_.f.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"};
_.f.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.f.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.Ln("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA"))};
_.f.onYtServiceRequestCompleted=function(a){var b;if((b=a.detail.data)==null?0:b.businessEmail)this.businessEmail=a.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var c;if((c=a.detail.data)==null?0:c.errorMessage)this.businessEmailErrorMessage=a.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.f.computeEmailHref=function(a){return"mailto:"+a};
_.f.computeSafeUrl=function(a){if(a)return _.Gd(a)};
_.f.onBusinessEmailCaptchaSubmit=function(){var a;(a=this.data)!=null&&a.onBusinessEmailRevealClickCommand&&(a=this.JSC$18800_captchaTextarea.value)&&(a={recaptcha_response_token:a,channel_id:this.data.channelId},_.x("web_ytd_channel_about_metadata_renderer_command_resolver_ks")?_.mo(this.hostElement,[this.data.onBusinessEmailRevealClickCommand,a]):_.v().resolve(_.Xi).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},a,{element:this.hostElement})}))};
_.f.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.Vm.Object.defineProperties(F3c.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 a,b;return!((a=this.data)==null||!a.primaryLinks)&&!((b=this.data)==null?0:b.links)&&this.data.primaryLinks.every(function(c){return c.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var a,b;return!((a=this.data)==null||!a.primaryLinks)&&!((b=this.data)==null?0:b.links)&&!this.shouldShowNewLinks}}});
var N5=F3c;N5.prototype.onYtServiceRequestCompleted=N5.prototype.onYtServiceRequestCompleted;N5.prototype.dataChanged=N5.prototype.dataChanged;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],N5.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],N5.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],N5.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.gr("#g-recaptcha-response"),_.W("design:type",HTMLTextAreaElement)],N5.prototype,"JSC$18800_captchaTextarea",void 0);_.U([_.O(),_.W("design:type",Object)],N5.prototype,"data",void 0);_.U([_.O(),_.W("design:type",String)],N5.prototype,"businessEmailDisplayState",void 0);_.U([_.O(),_.W("design:type",String)],N5.prototype,"businessEmail",void 0);_.U([_.O(),_.W("design:type",String)],N5.prototype,"businessEmailErrorMessage",void 0);
_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],N5.prototype,"hideDetailsSection",null);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],N5.prototype,"dataChanged",null);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],N5.prototype,"shouldShowNewLinks",null);_.U([_.K("data","shouldShowLinks"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],N5.prototype,"shouldShowLegacyLinks",null);
_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],N5.prototype,"onYtServiceRequestCompleted",null);N5=_.U([_.Q({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],N5);
_.S(N5,"ytd-channel-about-metadata-renderer",function(){if(E3c!==void 0)return E3c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return E3c=a},{mode:1});var G3c;_.It("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var H3c=function(){return _.P.apply(this,arguments)||this};
_.z(H3c,_.P);H3c.prototype.configureRendererStamper=function(){return{"data.items":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:"ytd-video-renderer"}}}};
var O5=H3c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],O5.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],O5.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],O5.prototype,"data",void 0);O5=_.U([_.Q({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],O5);
_.S(O5,"ytd-channel-featured-content-renderer",function(){if(G3c!==void 0)return G3c;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return G3c=a},{mode:1});var I3c;_.It("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var J3c=function(){var a=_.P.apply(this,arguments)||this;a.roundContainer=!0;a.amsterdamEnabled=_.x("enable_desktop_amsterdam_info_panels");return a};
_.z(J3c,_.P);_.f=J3c.prototype;_.f.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.f.dataChanged=function(){this.imageWidth=this.imageHeight=24;var a=this.data;a.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!a.style&&a.image&&a.image.thumbnails.length&&(a=a.image.thumbnails[0],this.imageWidth=a.width||0,this.imageHeight=a.height||0)};
_.f.computeSource=function(a){return a.secondarySource?_.Vp(a.secondarySource):_.Vp(a.source)};
_.f.computeClarifyStyle=function(a){return a?a.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.f.isLargeStyle=function(a){return a==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.f.computeBackgroundStyle=function(a){return a?a.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.f.computeHasActionButton=function(a){return!!a.actionButton};
_.f.computeHasBottomSection=function(a){return!!a.ctaHasBottomSection};
_.f.computeIsSourceMissing=function(a){return a.ctaHasBottomSection===!1?!0:a&&this.computeSource(a)?!1:!0};
_.f.computeSecondaryEndpoint=function(a){return a.secondaryEndpoint||a.endpoint};
var P5=J3c;P5.prototype.dataChanged=P5.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],P5.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],P5.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],P5.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Number)],P5.prototype,"imageWidth",void 0);_.U([_.O(),_.W("design:type",Number)],P5.prototype,"imageHeight",void 0);
_.U([_.O({computed:"computeSecondaryEndpoint(data)"}),_.W("design:type",Object)],P5.prototype,"secondaryEndpoint",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.W("design:type",Boolean)],P5.prototype,"hasActionButton",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.W("design:type",Boolean)],P5.prototype,"hasBottomSection",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.W("design:type",Boolean)],P5.prototype,"missingSource",void 0);_.U([_.O({computed:"computeIcon_(data.icon)"}),_.W("design:type",String)],P5.prototype,"icon",void 0);_.U([_.O({computed:"computeIcon_(data.secondaryIcon)"}),_.W("design:type",String)],P5.prototype,"secondaryIcon",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.W("design:type",String)],P5.prototype,"clarifyStyle",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.W("design:type",String)],P5.prototype,"backgroundStyle",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],P5.prototype,"roundContainer",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],P5.prototype,"amsterdamEnabled",void 0);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],P5.prototype,"dataChanged",null);
P5=_.U([_.Q({is:"ytd-clarification-renderer",disableElementRegistration:!0})],P5);
_.S(P5,"ytd-clarification-renderer",function(){if(I3c!==void 0)return I3c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return I3c=a},{mode:1});var K3c;var L3c;var M3c=function(){var a=_.P.apply(this,arguments)||this;a.amsterdamEnabled=_.x("enable_desktop_amsterdam_info_panels");return a};
_.z(M3c,_.P);_.f=M3c.prototype;_.f.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.f.computeIcon=function(a){return a?"yt-icons:"+a.toLowerCase():null};
_.f.computeUseContacts=function(a){return!!a.contacts&&a.contacts.length>0};
_.f.computePhoneContact=function(a){var b,c;return(b=a.contacts)==null?void 0:(c=b.find(function(d){var e;return(d==null?void 0:(e=d.icon)==null?void 0:e.iconType)==="PHONE"}))==null?void 0:c.actionText};
_.f.computeSmsContact=function(a){var b,c;return(b=a.contacts)==null?void 0:(c=b.find(function(d){var e;return(d==null?void 0:(e=d.icon)==null?void 0:e.iconType)==="SMS"}))==null?void 0:c.actionText};
var Q5=M3c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],Q5.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],Q5.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],Q5.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],Q5.prototype,"amsterdamEnabled",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.W("design:type",Boolean)],Q5.prototype,"useContacts",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.W("design:type",String)],Q5.prototype,"phoneContact",void 0);Q5=_.U([_.Q({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],Q5);
_.S(Q5,"ytd-single-action-emergency-support-renderer",function(){if(L3c!==void 0)return L3c;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return L3c=a},{mode:1});_.It("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var N3c=function(){var a=_.P.apply(this,arguments)||this;a.roundedContainer=!0;a.amsterdamEnabled=_.x("enable_desktop_amsterdam_info_panels");return a};
_.z(N3c,_.P);N3c.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.firstOption":{id:"first-option",mapping:{singleActionEmergencySupportRenderer:{component:"ytd-single-action-emergency-support-renderer"}}},"data.secondOption":{id:"second-option",mapping:{singleActionEmergencySupportRenderer:{component:"ytd-single-action-emergency-support-renderer"}}}}};
var R5=N3c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],R5.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],R5.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],R5.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],R5.prototype,"roundedContainer",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],R5.prototype,"amsterdamEnabled",void 0);
R5=_.U([_.Q({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],R5);
_.S(R5,"ytd-emergency-onebox-renderer",function(){if(K3c!==void 0)return K3c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return K3c=a},{mode:1});var O3c;_.It("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var P3c=function(){return _.P.apply(this,arguments)||this};
_.z(P3c,_.P);P3c.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",showRenderer:"ytd-show-renderer",videoRenderer:"ytd-video-renderer"}}}};
var S5=P3c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],S5.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],S5.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],S5.prototype,"data",void 0);S5=_.U([_.Q({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],S5);
_.S(S5,"ytd-exploratory-results-renderer",function(){if(O3c!==void 0)return O3c;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return O3c=a},{mode:1});var Q3c;_.It("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var R3c=function(){var a=_.P.apply(this,arguments)||this;a.messageData=null;return a};
_.z(R3c,_.P);_.f=R3c.prototype;_.f.onServiceRequestCompleted=function(a,b){a=b.actions||[];b=0;for(var c=a.length;b<c;b++){var d=a[b],e=void 0,g=void 0;if((e=_.y(d,_.BE))==null?0:(g=e.item)==null?0:g.messageRenderer)this.messageData=_.y(d,_.BE).item.messageRenderer}};
_.f.dataChanged=function(){var a=this.data;this.hostElement.hidden=!1;_.$q(this.hostElement,"is-channel",a&&!a.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.f.computeThumbnailWidth=function(a){return a?126:56};
_.f.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.f.onSubmitTap=function(){var a=this.data,b=this.selectedResponseIndex;a!==void 0&&b!==void 0&&_.mo(this.hostElement,[a.responses[b].responseData])};
_.f.onDismissTap=function(){this.hostElement.hidden=!0;var a=this.data;a!==void 0&&_.mo(this.hostElement,[a.dismissalEndpoint])};
_.f.updateSelectedResponseIndexFromBinding=function(a){this.selectedResponseIndex=a.detail.value};
var T5=R3c;T5.prototype.onSelectedResponseIndexChange=T5.prototype.onSelectedResponseIndexChange;T5.prototype.dataChanged=T5.prototype.dataChanged;T5.prototype.onServiceRequestCompleted=T5.prototype.onServiceRequestCompleted;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],T5.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],T5.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],T5.prototype,"messageData",void 0);
_.U([_.O(),_.W("design:type",Number)],T5.prototype,"selectedResponseIndex",void 0);_.U([_.gr("#submit-button"),_.W("design:type",HTMLButtonElement)],T5.prototype,"submitButton",void 0);_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Wt]),_.W("design:returntype")],T5.prototype,"onServiceRequestCompleted",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],T5.prototype,"dataChanged",null);
_.U([_.N("selectedResponseIndex"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],T5.prototype,"onSelectedResponseIndexChange",null);T5=_.U([_.Q({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],T5);
_.S(T5,"ytd-feedback-elicitation-single-question-renderer",function(){if(Q3c!==void 0)return Q3c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Q3c=a},{mode:1});var S3c;var T3c=function(){return _.P.apply(this,arguments)||this};
_.z(T3c,_.P);T3c.prototype.computeThumbnailWidth=function(a){return a?602:428};
T3c.prototype.updateWideFromBinding=function(a){this.wide=a.detail.value};
var U5=T3c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],U5.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],U5.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Boolean)],U5.prototype,"wide",void 0);U5=_.U([_.Q({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],U5);
_.S(U5,"ytd-newspaper-hero-video-renderer",function(){if(S3c!==void 0)return S3c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return S3c=a},{mode:1});var U3c;var V3c=function(){return _.P.apply(this,arguments)||this};
_.z(V3c,_.P);var W3c=V3c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],W3c.prototype,"rendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],W3c.prototype,"data",void 0);W3c=_.U([_.Q({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],W3c);
_.S(W3c,"ytd-newspaper-mini-video-renderer",function(){if(U3c!==void 0)return U3c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return U3c=a},{mode:1});var X3c;_.It("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var Y3c=function(){return _.P.apply(this,arguments)||this};
_.z(Y3c,_.P);Y3c.prototype.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary-contents",mapping:{newspaperHeroVideoRenderer:"ytd-newspaper-hero-video-renderer"}},"data.secondaryContents":{id:"secondary-contents",mapping:{newspaperMiniVideoRenderer:"ytd-newspaper-mini-video-renderer"}}}};
var V5=Y3c;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],V5.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],V5.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],V5.prototype,"data",void 0);V5=_.U([_.Q({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],V5);
_.S(V5,"ytd-newspaper-renderer",function(){if(X3c!==void 0)return X3c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return X3c=a},{mode:1});var Z3c;_.It("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var $3c=function(){var a=_.P.apply(this,arguments)||this;a.isSegment=!1;a.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};a.nextContinuation={continuationType:"playlistVideoListContinuation"};return a};
_.z($3c,_.P);_.f=$3c.prototype;_.f.attached=function(){_.v();var a;(a=_.v().resolve(_.Wi(_.eT)))!=null&&(a.playlistVideoListElement=this.hostElement)};
_.f.detached=function(){var a;(a=_.v().resolve(_.Wi(_.eT)))!=null&&(a.playlistVideoListElement=void 0);a=_.v().resolve(_.Wi(_.XP));_.x("web_enable_voting_animation")&&a&&(a.parentElem=void 0,a.videos=[],a.continuationsPresent=!1,a.showRefreshPill=!1)};
_.f.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"}}}}}};
_.f.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.f.dataChanged=function(){var a=_.v().resolve(_.Wi(_.XP));if(_.x("web_enable_voting_animation")&&this.data&&a){var b=_.E(this.hostElement).querySelector("#contents");b&&(a.parentElem=b);a.addVideos(this.data.contents)}_.TVb(this.ytReorderableBehavior)};
_.f.onRendererstamperFinished=function(){this.canReorder&&_.UVb(this.ytReorderableBehavior,_.E(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.f.onPlaylistReloading=function(){this.isReloading=!0};
_.f.onUpdateSetVideoId=function(a){if(a.detail&&this.data&&this.data.contents){var b=a.detail;a=this.data.contents.findIndex(function(e){var g;return((g=e.playlistVideoRenderer)==null?void 0:g.videoId)===b.videoId});
if(!(a<0)&&b.setVideoId&&(this.set("data.contents."+a+".playlistVideoRenderer.setVideoId",b.setVideoId),_.x("web_enable_voting_animation"))){var c;if(a=_.y((c=this.data.contents[a].playlistVideoRenderer)==null?void 0:c.engagementBar,_.S3a)){var d;(d=a.actions)==null||d.forEach(function(e){if(e=_.y(e,_.T3a))e.itemId=b.setVideoId})}(c=_.v().resolve(_.Wi(_.XP)))&&e3c(c,b.videoId,b.setVideoId)}}};
_.f.computeContentsClass=function(a){return a?"reloading":""};
_.f.computeIsSortable=function(a,b){return a&&b>0&&!this.isSegment&&!_.x("shorts_in_playlists_web")};
_.f.computeIsEditable=function(a){return a};
_.f.computeCanReorder=function(a){return a};
_.f.handlePlaylistRemoveVideosAction=function(a){if(this.get("playlistRemoveVideosAction.setVideoIds",a)&&this.data&&this.data.contents){a=_.y(a,_.Gzb).setVideoIds;for(var b=this.data.contents.length-1;b>=0;){var c=this.data.contents[b].playlistVideoRenderer;c&&c.setVideoId&&a.includes(c.setVideoId)&&this.splice("data.contents",b,1);b--}_.ho(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.f.updateIndices=function(){if(this.data&&this.data.contents)for(var a=0;a<this.data.contents.length;a++)this.set("data.contents."+a+".playlistVideoRenderer.index",_.Up(String(a+1)))};
_.f.handleDrop=function(a){a=a.currDragItem;var b=_.Na(a.parentNode.childNodes,a),c=this.data.contents.splice(Number(_.Vp(a.data.index))-1,1)[0];this.data.contents.splice(b,0,c);b=b?this.get("contents."+(b-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();a=this.buildReorderServiceEndpoint(a.data.setVideoId,b);this.ytComponentBehavior.resolveCommand(a)};
_.f.buildReorderServiceEndpoint=function(a,b){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",a),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",b),this.data.onReorderEndpoint):null};
_.f.handleUpdatePlaylistAction=function(a){var b;(a=_.y((b=_.y(a,_.Hzb))==null?void 0:b.updatedRenderer,_.UDb))&&this.canReorder!==a.canReorder&&this.set("data.canReorder",a.canReorder);a&&a.contents&&(this.set("data.contents",a.contents),this.isReloading=!1);a&&a.continuations&&this.set("data.continuations",a.continuations)};
_.f.handleAddRendererToItemSectionAction=function(a){var b,c=(b=_.y(a,j3c))==null?void 0:b.renderer,d;c&&((d=_.y(a,j3c))==null?void 0:d.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,c),a=_.v().resolve(_.Wi(_.XP)),_.x("web_enable_voting_animation")&&a&&(c&&(b=_.R3a(c))&&a.recommendedVideos.push({itemId:b,videoId:_.U3a(c),voteCount:_.V3a(c),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.f.onAppendContinuationItemsActionFinished=function(){this.updateIndices();var a=_.v().resolve(_.Wi(_.XP));_.x("web_enable_voting_animation")&&a&&this.data&&a.addVideos(this.data.contents)};
_.f.updateVideoData=function(a){if(a.detail&&this.data&&this.data.contents){var b=a.detail;a=b.toIdx;var c=b.itemId,d=b.newVoteCount,e=b.voteStatus;b=b.hideItem;var g,k,m=(g=this.data)==null?void 0:(k=g.contents)==null?void 0:k.findIndex(function(u){return _.R3a(u)===c});
if(!(m<0)){g=this.data.contents[m];var n;if((n=g.playlistVideoRenderer)==null?0:n.voteCount)g.playlistVideoRenderer.voteCount=d;var r;if(n=_.y((r=g.playlistVideoRenderer)==null?void 0:r.engagementBar,_.S3a)){var t;(t=n.actions)==null||t.forEach(function(u){(u=_.y(u,_.T3a))&&u.initialState&&(u.initialState.votes=d,u.initialState.status=e)})}this.data.contents.splice(m,1);
b||this.data.contents.splice(a,0,g);this.updateIndices()}}};
var W5=$3c;W5.prototype.updateVideoData=W5.prototype.updateVideoData;W5.prototype.onAppendContinuationItemsActionFinished=W5.prototype.onAppendContinuationItemsActionFinished;W5.prototype.onUpdateSetVideoId=W5.prototype.onUpdateSetVideoId;W5.prototype.onPlaylistReloading=W5.prototype.onPlaylistReloading;W5.prototype.onRendererstamperFinished=W5.prototype.onRendererstamperFinished;W5.prototype.dataChanged=W5.prototype.dataChanged;
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],W5.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],W5.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],W5.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.SM.YtNextContinuationBehavior),_.W("design:type",Object)],W5.prototype,"ytNextContinuationBehavior",void 0);
_.U([_.H(_.WVb),_.W("design:type",Object)],W5.prototype,"ytReorderableBehavior",void 0);_.U([_.H(_.RM),_.W("design:type",Object)],W5.prototype,"ytContinuationHandlerBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],W5.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],W5.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Boolean)],W5.prototype,"isReloading",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],W5.prototype,"isSegment",void 0);_.U([_.O({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.W("design:type",Boolean)],W5.prototype,"isSortable",void 0);_.U([_.O({computed:"computeIsEditable(data.isEditable)"}),_.W("design:type",Boolean)],W5.prototype,"isEditable",void 0);_.U([_.O({computed:"computeCanReorder(data.canReorder)"}),_.W("design:type",Boolean)],W5.prototype,"canReorder",void 0);
_.U([_.O({value:101}),_.W("design:type",Number)],W5.prototype,"scrollMargin",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],W5.prototype,"dataChanged",null);_.U([_.M("yt-rendererstamper-finished"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],W5.prototype,"onRendererstamperFinished",null);
_.U([_.M("yt-playlist-reloading"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],W5.prototype,"onPlaylistReloading",null);_.U([_.M("yt-update-set-video-id"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],W5.prototype,"onUpdateSetVideoId",null);
_.U([_.M("yt-append-continuation-items-action-finished"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],W5.prototype,"onAppendContinuationItemsActionFinished",null);_.U([_.M("yt-update-video-data-voting-animation"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],W5.prototype,"updateVideoData",null);W5=_.U([_.Q({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],W5);
_.S(W5,"ytd-playlist-video-list-renderer",function(){if(Z3c!==void 0)return Z3c;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Z3c=a},{mode:_.as("kevlar_poly_si_batch_j047")?1:2});var a4c;var b4c=function(){return _.P.apply(this,arguments)||this};
_.z(b4c,_.P);b4c.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"}}}}};
b4c.prototype.onTextWrapperTap=function(a){var b=this.data&&this.data.navigationEndpoint;b&&!_.Xt(_.Pq(a),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.go(this.hostElement,"yt-navigate",{endpoint:b})};
b4c.prototype.dataChanged=function(){var a=this.get("data.offerButton.buttonRenderer.serviceEndpoint");a&&a.commandMetadata&&_.y(a.commandMetadata,_.HE)&&_.y(a.commandMetadata,_.HE).fireAutomatically&&(_.x("web_ytd_movie_renderer_command_resolver_ks")?_.mo(this.hostElement,[a]):_.v().resolve(_.Xi).resolveCommand(a,{form:{element:this.hostElement}}))};
var X5=b4c;X5.prototype.dataChanged=X5.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],X5.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],X5.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.VI),_.W("design:type",Object)],X5.prototype,"ytdLockupBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],X5.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,value:function(){return _.x("enable_desktop_search_bigger_thumbs")}}),
_.W("design:type",Boolean)],X5.prototype,"useBiggerThumbs",void 0);_.U([_.O({reflectToAttribute:!0,value:function(){return _.aj("desktop_search_bigger_thumbs_style")}}),
_.W("design:type",String)],X5.prototype,"biggerThumbsStyle",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],X5.prototype,"leftAligned",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],X5.prototype,"dataChanged",null);X5=_.U([_.Q({disableElementRegistration:!0,is:"ytd-movie-renderer"})],X5);
_.S(X5,"ytd-movie-renderer",function(){if(a4c!==void 0)return a4c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return a4c=a},{mode:1});var c4c;var Y5=function(){var a=_.P.apply(this,arguments)||this;a.rounded=!0;a.pageAttachedTo=void 0;a.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return a};
_.z(Y5,_.P);Y5.prototype.attached=function(){this.pageAttachedTo=_.v().resolve(_.$t).getCurrentPage();_.go(this.hostElement,"yt-player-attached",this.player)};
Y5.prototype.detached=function(){var a;if((a=this.pageAttachedTo)==null?0:a.hostElement)_.go(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
Y5.prototype.dataChanged=function(){var a;if((a=this.data)==null?0:a.videoId)a={video_id:this.data.videoId,autoplay:!0},!_.x("miniplayer_stop_channel_video_autoplay_killswitch")&&_.v().resolve(_.Vw).isMiniplayerActive()&&(a.pause_at_start=!0,a.autoplay=!1),this.player.loadVideoWithPlayerVars(a)};
Y5.prototype.handleSignalActionPausePlayer=function(){_.cu().pause()};
var Z5=Y5;Z5.prototype.dataChanged=Z5.prototype.dataChanged;_.U([_.O(),_.W("design:type",Object)],Z5.prototype,"data",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],Z5.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],Z5.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],Z5.prototype,"rounded",void 0);
_.U([_.gr("#player"),_.W("design:type",Object)],Z5.prototype,"player",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Z5.prototype,"dataChanged",null);Z5=_.U([_.Q({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],Z5);
_.S(Z5,"ytd-channel-video-player-renderer",function(){if(c4c!==void 0)return c4c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return c4c=a},{mode:1});var d4c;var e4c;var f4c;var g4c=function(){var a=_.P.apply(this,arguments)||this;a.playing=!1;a.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.ab(a);a.active=!1;return a};
_.z(g4c,_.P);_.f=g4c.prototype;_.f.detached=function(){this.stop()};
_.f.play=function(){var a=this,b,c,d,e,g;return _.l(function(k){if(k.nextAddress==1)return a.active=!0,b=a.get("data.inlinePlaybackEndpoint.watchEndpoint"),c=b.videoId||a.data.videoId,d=b.startTimeSeconds||0,e=b.playerParams||null,_.x("kevlar_player_update_killswitch")?_.p(k,a.playerEl.update({args:{video_id:c,startSeconds:d,player_params:e}}),2):(a.playerEl.loadVideoWithPlayerVars({video_id:c,startSeconds:d,player_params:e,autoplay:!0}),k.jumpTo(2));if(k.nextAddress!=4)return _.p(k,a.playerEl.getPlayerPromise(),
4);g=k.yieldResult;g.unloadModule("annotations_module");g.addEventListener("onStateChange",function(m){a.onPlayerStateChange(m)});
_.se(k)})};
_.f.onPlayerStateChange=function(a){if(this.active)switch(this.playing=a===1,a){case 1:_.go(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.go(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.f.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.f.resize=function(){var a=this,b;return _.l(function(c){if(c.nextAddress==1)return _.p(c,a.playerEl.getPlayerPromise(),2);b=c.yieldResult;b.setSize(NaN,NaN);_.se(c)})};
var $5=g4c;_.U([_.O(),_.W("design:type",Object)],$5.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],$5.prototype,"playing",void 0);_.U([_.O(),_.W("design:type",Object)],$5.prototype,"playerId",void 0);_.U([_.gr("#player"),_.W("design:type",Object)],$5.prototype,"playerEl",void 0);$5=_.U([_.Q({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],$5);
_.S($5,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(f4c!==void 0)return f4c;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return f4c=a},{mode:1});var h4c;var i4c;var j4c=function(){var a=_.P.apply(this,arguments)||this;a.width=0;return a};
_.z(j4c,_.P);_.f=j4c.prototype;_.f.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.er(this,this.onEnded));this.mp4El.addEventListener("error",_.er(this,this.onError))};
_.f.detached=function(){this.videoEl.removeEventListener("ended",_.er(this,this.onEnded));this.mp4El.removeEventListener("error",_.er(this,this.onError))};
_.f.play=function(){var a=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var b=this.videoEl.play();b?b.then(function(){a.handleVideoStartPlaying()}).catch(function(){_.go(a.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.go(this.hostElement,"yt-video-thumbnail-not-playing")};
_.f.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.f.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.f.dataChanged=function(){var a;if((a=this.data)==null?0:a.thumbnailPlaceholder)a=_.Xs(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+a+")";this.stop();this.autoplay&&this.play()};
_.f.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.f.onEnded=function(){this.stop();_.go(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.f.onError=function(){_.go(this.hostElement,"yt-video-thumbnail-error")};
_.f.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.f.getVideoThumbnail=function(a){if(a&&a.length)return a[0]};
var a6=j4c;a6.prototype.dataChanged=a6.prototype.dataChanged;_.U([_.O(),_.W("design:type",Object)],a6.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],a6.prototype,"animatePlaceholderOnEntrance",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],a6.prototype,"autoplay",void 0);_.U([_.O({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.W("design:type",Object)],a6.prototype,"videoThumbnail",void 0);
_.U([_.O(),_.W("design:type",Boolean)],a6.prototype,"loop",void 0);_.U([_.O(),_.W("design:type",Boolean)],a6.prototype,"isVideoPlaying",void 0);_.U([_.O(),_.W("design:type",Object)],a6.prototype,"width",void 0);_.U([_.gr("#mp4"),_.W("design:type",HTMLElement)],a6.prototype,"mp4El",void 0);_.U([_.gr("#placeholder"),_.W("design:type",HTMLElement)],a6.prototype,"placeholderEl",void 0);_.U([_.gr("#video"),_.W("design:type",HTMLVideoElement)],a6.prototype,"videoEl",void 0);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],a6.prototype,"dataChanged",null);a6=_.U([_.ur({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],a6);
_.S(a6,"yt-video-as-thumbnail-details",function(){if(i4c===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;h4c===void 0&&(h4c=document.createElement("template"));var d=h4c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);i4c=a}a=i4c;return a},{mode:2});var b6,k4c=function(){var a=_.P.apply(this,arguments)||this;a.disableGridStateAware=!1;a.animationEnabled=_.x("enable_web_ketchup_hero_animation");a.transitioningOut=!1;a.narrow=!1;a.narrower=!1;a.isCarouselInFeed=!1;a.videoTimeoutJobId=0;a.panelTimeoutJobId=0;a.panelTimeoutJobStartMs=0;a.actionMap={"yt-window-resized":"onWindowResized"};return a};
_.z(k4c,_.P);_.f=k4c.prototype;_.f.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.f.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.f.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var a;this.player&&((a=this.data)==null?0:a.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.f.attached=function(){this.onWindowResized()};
_.f.detached=function(){this.clearTimeouts()};
_.f.onWindowResized=function(){this.updateSize()};
_.f.computePanelLayout=function(a){return a&&a.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.f.playVideo=function(){var a;this.video&&((a=this.data)==null?0:a.videoThumbnail)&&this.video.play();var b;this.player&&((b=this.data)==null?0:b.inlinePlaybackRenderer)&&this.player.play()};
_.f.stopVideo=function(){var a;this.video&&((a=this.data)==null?0:a.videoThumbnail)&&this.video.stop();var b;this.player&&((b=this.data)==null?0:b.inlinePlaybackRenderer)&&this.player.stop()};
_.f.transitionOut=function(){var a=this;this.transitioningOut=!0;return new Promise(function(b){var c=function(){_.E(a.hostElement).querySelector("#action-button").removeEventListener("animationend",c);_.zk.cancelJob(d);b();a.transitioningOut=!1};
var d=_.ul(_.zk,c,1E3);_.E(a.hostElement).querySelector("#action-button").addEventListener("animationend",c);a.player&&(a.player.playing=!1)})};
_.f.computeMetadataOrder=function(a){return a&&a.metadataOrder&&a.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?a.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.f.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.f.computeAvatarSize=function(a){return a&&a.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.f.onContentClick=function(a){if(!_.Xt(_.Pq(a),this.hostElement,["A".toString(),"BUTTON".toString()])){var b;if((b=this.data)==null?0:b.navigationEndpoint){var c;this.componentBehavior.resolveCommand((c=this.data)==null?void 0:c.navigationEndpoint)}}};
_.f.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.f.setBackgroundImage=function(a){if(a=this.getBackgroundImageUrl(a))_.E(this.hostElement).querySelector("#hero").style.backgroundImage="url("+a+")"};
_.f.setScrimLayer=function(a){var b=this.getScrimLayerColorStops(a);a=((a==null?void 0:a.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(a=180);_.Ei("HTML_DIR")==="rtl"&&(a=-a);b&&(_.E(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+a+"deg, "+b+")")};
_.f.isNarrower=function(){return this.hostElement.clientWidth<b6.NARROW_VERSION_SIZE};
_.f.getScrimLayerColorStops=function(){var a,b=(a=this.data)==null?void 0:a.scrimColorValues;if(!b)return null;if(b.length===1)return a=_.Cq(b[0]),a+" 0%, "+a+" 100%";if(b.length===3){var c=[0,72,98];return b.map(function(d,e){return _.Cq(d)+" "+c[e]+"%"}).join(",")}return null};
_.f.getBackgroundImageUrl=function(a){return a&&a.largeFormFactorBackgroundThumbnail?_.Xs((a.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||a.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.f.onPlaying=function(){this.startVideoTimeout()};
_.f.onEnded=function(){this.rotate()};
_.f.startPanelTimeout=function(){var a=this;if(!this.panelTimeoutJobId){var b=this.get("data.minPanelDisplayDurationMs");b&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.ul(_.zk,function(){a.rotate()},b))}};
_.f.startVideoTimeout=function(){var a=this;if(!this.videoTimeoutJobId){_.zk.cancelJob(this.panelTimeoutJobId);var b=Date.now()-this.panelTimeoutJobStartMs;b=Math.max(0,this.get("data.minPanelDisplayDurationMs")-b);b=Math.max(this.get("data.minVideoPlayDurationMs")||0,b);this.videoTimeoutJobId=_.ul(_.zk,function(){a.rotate()},b)}};
_.f.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.zk.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.zk.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.f.rotate=function(){this.clearTimeouts();_.go(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.Vm.Object.defineProperties(k4c.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.E(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.E(this.hostElement).querySelector("#video")}}});
_.Vm.Object.defineProperties(k4c,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
var c6=b6=k4c;b6.prototype.onEnded=b6.prototype.onEnded;b6.prototype.onPlaying=b6.prototype.onPlaying;b6.prototype.dataChanged=b6.prototype.dataChanged;_.U([_.H(_.QI),_.W("design:type",Object)],c6.prototype,"ytdGridStateAwareBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],c6.prototype,"componentBehavior",void 0);_.U([_.H(_.SI.YtdGuideStateAwareBehavior),_.W("design:type",Object)],c6.prototype,"ytdGuideStateAwareBehavior",void 0);
_.U([_.H(_.ycc),_.W("design:type",Object)],c6.prototype,"ytBooleanLogicBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],c6.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],c6.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],c6.prototype,"ytRendererBehavior",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],c6.prototype,"disableGridStateAware",void 0);_.U([_.O(),_.W("design:type",Object)],c6.prototype,"data",void 0);_.U([_.O({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.W("design:type",String)],c6.prototype,"panelLayout",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],c6.prototype,"animationEnabled",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],c6.prototype,"transitioningOut",void 0);
_.U([_.O({computed:"computeMetadataOrder(data)"}),_.W("design:type",Boolean)],c6.prototype,"metadataOrder",void 0);_.U([_.O({computed:"computeByline(data)"}),_.W("design:type",Object)],c6.prototype,"byline",void 0);_.U([_.O({computed:"computeAvatarSize(data)"}),_.W("design:type",Number)],c6.prototype,"avatarSize",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],c6.prototype,"narrow",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],c6.prototype,"narrower",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],c6.prototype,"layoutStyle",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],c6.prototype,"isCarouselInFeed",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],c6.prototype,"dataChanged",null);_.U([_.M("yt-default-promo-panel-renderer-playing"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],c6.prototype,"onPlaying",null);
_.U([_.M("yt-default-promo-panel-renderer-ended"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],c6.prototype,"onEnded",null);c6=b6=_.U([_.Q({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],c6);
_.S(c6,"ytd-default-promo-panel-renderer",function(){if(e4c!==void 0)return e4c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return e4c=a},{mode:1});_.It("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var l4c=function(){var a=_.P.apply(this,arguments)||this;a.narrower=!1;a.dotMenuVisible=!1;a.paginationThumbnailsVisible=!1;a.active=!0;a.disableGridStateAware=!1;a.actionMap={"yt-window-resized":"onWindowResized"};return a};
_.z(l4c,_.P);_.f=l4c.prototype;_.f.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]]"}}}}}};
_.f.attached=function(){this.onWindowResized()};
_.f.detached=function(){this.jobId&&_.zk.cancelJob(this.jobId);this.updateSizeJobId&&_.zk.cancelJob(this.updateSizeJobId)};
_.f.onWindowResized=function(){this.updateSize()};
_.f.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.f.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.f.setCarouselItem=function(a){a>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.zk.cancelJob(this.jobId);var b=this.getCurrentPanelElement();b&&b.stopVideo();this.currentItemIndex=a%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(b||(b=this.getCurrentPanelElement()),b.playVideo()):this.startRotationJob()};
_.f.scrollThumbnails=function(a){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var b=this.getCurrentPaginationElement();if(b){var c=_.E(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?c.style.transform="translateX(0)":(b=b.offsetWidth+8,c.style.transform="translateX(-"+b*(a-Math.ceil(Math.floor(this.overlay.offsetWidth/b)/2)+1)+"px)")}}};
_.f.onDataChanged=function(){var a=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.Du(_.zk,function(){a.getCurrentPanelElement().updateSize();a.updateSize()}))};
_.f.getCurrentPanelElement=function(){return _.E(_.E(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.f.getCurrentPaginationElement=function(){return _.E(_.E(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.f.getNavigationClass=function(a,b){return a===b?"selected":""};
_.f.getNavigationDurationStyle=function(a){return"animation-duration:"+(this.get("data.carouselItems."+a+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.f.onNavigationTap=function(a){var b=this,c=a.model.index;c!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){b.setCarouselItem(c)}),this.autorotateActive=!1)};
_.f.onVideoThumbnailEnded=function(){var a=this;if(this.shouldRotate()){var b=this.getCurrentPaginationElement();b&&(b.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){b.classList.remove("finished");a.setNextCarouselItem()}))}};
_.f.onVideoThumbnailError=function(){this.startRotationJob()};
_.f.onVideoNotPlaying=function(){this.startRotationJob()};
_.f.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.f.startRotationJob=function(){var a=this;_.zk.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.zk.addLowPriorityJob(function(){a.getCurrentPanelElement().transitionOut().then(function(){a.setNextCarouselItem()})},this.rotationTimeout))};
_.f.computeDotMenuVisible=function(a,b){return!!a&&!!a.carouselItems&&a.carouselItems.length>1&&!a.paginationThumbnails||!!b};
_.f.computePaginationThumbnailsVisible=function(a,b){var c,d;return((d=a==null?void 0:(c=a.paginationThumbnails)==null?void 0:c.length)!=null?d:0)>1&&!b};
_.f.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.f.computePaginatorAlignment=function(a){return(a==null?void 0:a.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.f.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.f.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.f.isNarrower=function(a){return(a!=null?a:0)<c6.NARROW_VERSION_SIZE};
var d6=l4c;d6.prototype.activeChanged=d6.prototype.activeChanged;d6.prototype.onVideoNotPlaying=d6.prototype.onVideoNotPlaying;d6.prototype.onVideoThumbnailError=d6.prototype.onVideoThumbnailError;d6.prototype.onVideoThumbnailEnded=d6.prototype.onVideoThumbnailEnded;d6.prototype.onDataChanged=d6.prototype.onDataChanged;_.U([_.H(_.QI),_.W("design:type",Object)],d6.prototype,"ytdGridStateAwareBehavior",void 0);
_.U([_.H(_.SI.YtdGuideStateAwareBehavior),_.W("design:type",Object)],d6.prototype,"ytdGuideStateAwareBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],d6.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],d6.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],d6.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],d6.prototype,"currentItem",void 0);
_.U([_.O(),_.W("design:type",Number)],d6.prototype,"currentItemIndex",void 0);_.U([_.O(),_.W("design:type",Number)],d6.prototype,"rotationTimeout",void 0);_.U([_.O(),_.W("design:type",Number)],d6.prototype,"loopCount",void 0);_.U([_.O({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.W("design:type",String)],d6.prototype,"paginatorAlignment",void 0);_.U([_.O(),_.W("design:type",Number)],d6.prototype,"jobId",void 0);
_.U([_.O(),_.W("design:type",Number)],d6.prototype,"updateSizeJobId",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],d6.prototype,"isCarouselInFeed",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],d6.prototype,"narrower",void 0);_.U([_.O({computed:"computeDotMenuVisible(data, narrower)"}),_.W("design:type",Object)],d6.prototype,"dotMenuVisible",void 0);
_.U([_.O({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.W("design:type",Object)],d6.prototype,"paginationThumbnailsVisible",void 0);_.U([_.O({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.W("design:type",String)],d6.prototype,"layoutType",void 0);_.U([_.O({value:!0,reflectToAttribute:!0}),_.W("design:type",Boolean)],d6.prototype,"autorotateActive",void 0);_.U([_.O(),_.W("design:type",Object)],d6.prototype,"active",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],d6.prototype,"disableGridStateAware",void 0);_.U([_.gr("#overlay"),_.W("design:type",HTMLElement)],d6.prototype,"overlay",void 0);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],d6.prototype,"onDataChanged",null);
_.U([_.M("yt-video-thumbnail-ended"),_.M("yt-default-promo-panel-renderer-rotate"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],d6.prototype,"onVideoThumbnailEnded",null);_.U([_.M("yt-video-thumbnail-error"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],d6.prototype,"onVideoThumbnailError",null);
_.U([_.M("yt-video-thumbnail-not-playing"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],d6.prototype,"onVideoNotPlaying",null);_.U([_.kr("active"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],d6.prototype,"activeChanged",null);d6=_.U([_.Q({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],d6);
_.S(d6,"ytd-carousel-item-renderer",function(){if(d4c!==void 0)return d4c;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return d4c=a},{mode:2});var m4c;var n4c;var o4c;var p4c;var q4c=function(){var a=_.P.apply(this,arguments)||this;a.originalQuery=null;a.originalEndpoint=null;return a};
_.z(q4c,_.P);q4c.prototype.computeShowOriginalQueryWithoutEndpoint_=function(a,b){return!(!a||b)};
var e6=q4c;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],e6.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],e6.prototype,"correctedText",void 0);_.U([_.O(),_.W("design:type",Object)],e6.prototype,"correctedQuery",void 0);_.U([_.O(),_.W("design:type",Object)],e6.prototype,"correctedEndpoint",void 0);_.U([_.O(),_.W("design:type",Object)],e6.prototype,"originalText",void 0);_.U([_.O(),_.W("design:type",Object)],e6.prototype,"originalQuery",void 0);
_.U([_.O(),_.W("design:type",Object)],e6.prototype,"originalEndpoint",void 0);_.U([_.O({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.W("design:type",Boolean)],e6.prototype,"showOriginalQueryWithoutEndpoint",void 0);e6=_.U([_.ur({is:"yt-search-query-correction",disableElementRegistration:!0})],e6);
_.S(e6,"yt-search-query-correction",function(){if(p4c===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;o4c===void 0&&(o4c=document.createElement("template"));var d=o4c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);p4c=a}a=p4c;return a},{mode:2});_.It("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var r4c=function(){return _.P.apply(this,arguments)||this};
_.z(r4c,_.P);var s4c=r4c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],s4c.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],s4c.prototype,"data",void 0);s4c=_.U([_.ur({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],s4c);
_.S(s4c,"yt-did-you-mean-renderer",function(){if(n4c===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;m4c===void 0&&(m4c=document.createElement("template"));var d=m4c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);n4c=a}a=n4c;return a},{mode:2});var t4c;var u4c;_.It("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var v4c=function(){return _.P.apply(this,arguments)||this};
_.z(v4c,_.P);var w4c=v4c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],w4c.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],w4c.prototype,"data",void 0);w4c=_.U([_.ur({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],w4c);
_.S(w4c,"yt-including-results-for-renderer",function(){if(u4c===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;t4c===void 0&&(t4c=document.createElement("template"));var d=t4c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);u4c=a}a=u4c;return a},{mode:2});var x4c;var y4c;_.It("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var z4c=function(){return _.P.apply(this,arguments)||this};
_.z(z4c,_.P);z4c.prototype.computeExtraClasses_=function(a,b){var c="";a&&(c+=" "+a.toLowerCase().replace(/_/g,"-"));b&&(c+=" "+b.toLowerCase().replace(/_/g,"-"));return c};
z4c.prototype.computeUrlImg_=function(){var a=this.data;a.image&&(_.E(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.Xs(a.image.thumbnails,Number.MAX_VALUE)+")")};
var f6=z4c;f6.prototype.computeUrlImg_=f6.prototype.computeUrlImg_;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],f6.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],f6.prototype,"data",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],f6.prototype,"computeUrlImg_",null);f6=_.U([_.ur({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],f6);
_.S(f6,"yt-music-pass-feature-info-renderer",function(){if(y4c===void 0){var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;x4c===void 0&&(x4c=document.createElement("template"));var d=x4c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);y4c=a}a=y4c;return a},{mode:2});var A4c;var B4c;_.It("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var C4c=function(){return _.P.apply(this,arguments)||this};
_.z(C4c,_.P);var D4c=C4c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],D4c.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],D4c.prototype,"data",void 0);D4c=_.U([_.ur({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],D4c);
_.S(D4c,"yt-no-results-found-showing-results-for-renderer",function(){if(B4c===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;A4c===void 0&&(A4c=document.createElement("template"));var d=A4c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);B4c=a}a=B4c;return a},{mode:2});var E4c;var F4c;_.It("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var G4c=function(){return _.P.apply(this,arguments)||this};
_.z(G4c,_.P);var H4c=G4c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],H4c.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],H4c.prototype,"data",void 0);H4c=_.U([_.ur({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],H4c);
_.S(H4c,"yt-results-without-quotes-renderer",function(){if(F4c===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;E4c===void 0&&(E4c=document.createElement("template"));var d=E4c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);F4c=a}a=F4c;return a},{mode:2});var I4c;var J4c;_.It("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var K4c=function(){return _.P.apply(this,arguments)||this};
_.z(K4c,_.P);var L4c=K4c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],L4c.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],L4c.prototype,"data",void 0);L4c=_.U([_.ur({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],L4c);
_.S(L4c,"yt-search-no-results-renderer",function(){if(J4c===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;I4c===void 0&&(I4c=document.createElement("template"));var d=I4c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);J4c=a}a=J4c;return a},{mode:2});var M4c;var N4c;_.It("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var O4c=function(){return _.P.apply(this,arguments)||this};
_.z(O4c,_.P);var P4c=O4c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],P4c.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],P4c.prototype,"data",void 0);P4c=_.U([_.ur({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],P4c);
_.S(P4c,"yt-showing-results-for-renderer",function(){if(N4c===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;M4c===void 0&&(M4c=document.createElement("template"));var d=M4c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);N4c=a}a=N4c;return a},{mode:2});var Q4c;var R4c;var S4c;var T4c;var U4c=function(){var a=_.P.apply(this,arguments)||this;a.answerExpanded=!1;return a};
_.z(U4c,_.P);U4c.prototype.toggleAnswer_=function(a){var b=_.Qq(a);b&&b.classList.contains("yt-simple-endpoint")||(a.preventDefault(),a.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
var g6=U4c;g6.prototype.toggleAnswer_=g6.prototype.toggleAnswer_;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],g6.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],g6.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],g6.prototype,"answerExpanded",void 0);_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],g6.prototype,"toggleAnswer_",null);
g6=_.U([_.ur({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],g6);
_.S(g6,"yt-generic-faq-question-renderer",function(){if(T4c===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;S4c===void 0&&(S4c=document.createElement("template"));var d=S4c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);T4c=a}a=T4c;return a},{mode:2});_.It("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var V4c=function(){return _.P.apply(this,arguments)||this};
_.z(V4c,_.P);V4c.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
var h6=V4c;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],h6.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],h6.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],h6.prototype,"data",void 0);h6=_.U([_.ur({is:"yt-faq-section-renderer",disableElementRegistration:!0})],h6);
_.S(h6,"yt-faq-section-renderer",function(){if(R4c===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;Q4c===void 0&&(Q4c=document.createElement("template"));var d=Q4c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);R4c=a}a=R4c;return a},{mode:2});var W4c;var X4c;_.It("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var Y4c=function(){return _.P.apply(this,arguments)||this};
_.z(Y4c,_.P);
Y4c.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}},"data.headingRenderer":{id:"heading-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.descriptionRenderer":{id:"description-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.additionalInfoRenderer":{id:"additional-info-renderer",mapping:{cardItemActionsRenderer:{component:"yt-card-item-actions-renderer"}}}}};
var i6=Y4c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],i6.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],i6.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],i6.prototype,"data",void 0);i6=_.U([_.ur({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],i6);
_.S(i6,"yt-offer-item-expanded-renderer",function(){if(X4c===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;W4c===void 0&&(W4c=document.createElement("template"));var d=W4c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);X4c=a}a=X4c;return a},{mode:2});var Z4c;var $4c;_.It("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var a5c=function(){return _.P.apply(this,arguments)||this};
_.z(a5c,_.P);
a5c.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"}}}}};
a5c.prototype.computeFullWidthMode=function(a){return!(!a||!a.fullWidthMode)};
a5c.prototype.computeBorderlessMode=function(a){return!(!a||!a.borderlessMode)};
var j6=a5c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],j6.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],j6.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],j6.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.W("design:type",Boolean)],j6.prototype,"fullWidthMode",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.W("design:type",Boolean)],j6.prototype,"borderlessMode",void 0);j6=_.U([_.ur({is:"yt-offer-item-renderer",disableElementRegistration:!0})],j6);
_.S(j6,"yt-offer-item-renderer",function(){if($4c===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;Z4c===void 0&&(Z4c=document.createElement("template"));var d=Z4c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);$4c=a}a=$4c;return a},{mode:2});var b5c;var c5c;_.It("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var d5c=function(){return _.P.apply(this,arguments)||this};
_.z(d5c,_.P);d5c.prototype.computeAriaLevel_=function(a){return this.getLevelID_(a)};
d5c.prototype.getLevelID_=function(a){return(a=a.match(/[0-9]+$/))&&a.length==1?a[0]:"1"};
var k6=d5c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],k6.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],k6.prototype,"data",void 0);_.U([_.O({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.W("design:type",String)],k6.prototype,"ariaLevel",void 0);_.U([_.O({value:"heading",reflectToAttribute:!0}),_.W("design:type",String)],k6.prototype,"role",void 0);
_.U([_.O({value:-1,reflectToAttribute:!0}),_.W("design:type",Number)],k6.prototype,"tabindex",void 0);k6=_.U([_.ur({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],k6);
_.S(k6,"yt-subscription-product-header-renderer",function(){if(c5c===void 0){var a=document.createElement("template");_.B(a,"\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");a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;b5c===void 0&&(b5c=document.createElement("template"));var d=b5c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);c5c=a}a=c5c;return a},{mode:2});var e5c;var f5c;_.It("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var g5c=function(){return _.P.apply(this,arguments)||this};
_.z(g5c,_.P);g5c.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:_.Jt("menuRenderer"),events:!0}}};
g5c.prototype.onStampFinished_=function(){_.E(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
var l6=g5c;l6.prototype.onStampFinished_=l6.prototype.onStampFinished_;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],l6.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],l6.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],l6.prototype,"data",void 0);
_.U([_.M("yt-rendererstamper-finished"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],l6.prototype,"onStampFinished_",null);l6=_.U([_.ur({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],l6);
_.S(l6,"yt-subscription-product-renderer",function(){if(f5c===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;e5c===void 0&&(e5c=document.createElement("template"));var d=e5c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);f5c=a}a=f5c;return a},{mode:2});var h5c;var i5c;_.It("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var j5c=function(){return _.P.apply(this,arguments)||this};
_.z(j5c,_.P);j5c.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
j5c.prototype.imageScrimColorValuesChanged_=function(){var a,b=(a=this.data)==null?void 0:a.imageScrimColorValues;_.E(this.hostElement).querySelector("#scrim").style.backgroundColor=b?_.Cq(b[0]):"transparent"};
var m6=j5c;m6.prototype.imageScrimColorValuesChanged_=m6.prototype.imageScrimColorValuesChanged_;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],m6.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],m6.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],m6.prototype,"data",void 0);
_.U([_.N("data.imageScrimColorValues"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],m6.prototype,"imageScrimColorValuesChanged_",null);m6=_.U([_.ur({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],m6);
_.S(m6,"yt-subscription-product-upsell-offer-renderer",function(){if(i5c===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;h5c===void 0&&(h5c=document.createElement("template"));var d=h5c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);i5c=a}a=i5c;return a},{mode:2});var k5c;var l5c;var m5c;var n5c;var o5c;var p5c;var q5c=function(){return _.P.apply(this,arguments)||this};
_.z(q5c,_.P);q5c.prototype.onYtServiceRequestError_=function(a){_.KW(this.hostElement,a.detail.error.message)};
var n6=q5c;n6.prototype.onYtServiceRequestError_=n6.prototype.onYtServiceRequestError_;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],n6.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],n6.prototype,"data",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],n6.prototype,"collapsible",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],n6.prototype,"isManageRed",void 0);
_.U([_.M("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],n6.prototype,"onYtServiceRequestError_",null);n6=_.U([_.ur({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],n6);
_.S(n6,"yt-single-ypc-offer-renderer",function(){if(p5c===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;o5c===void 0&&(o5c=document.createElement("template"));var d=o5c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);p5c=a}a=p5c;return a},{mode:2});var r5c=function(){return _.P.apply(this,arguments)||this};
_.z(r5c,_.P);r5c.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
var o6=r5c;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],o6.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],o6.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],o6.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],o6.prototype,"isManageRed",void 0);o6=_.U([_.ur({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],o6);
_.S(o6,"yt-single-ypc-offer-list-renderer",function(){if(n5c===void 0){var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;m5c===void 0&&(m5c=document.createElement("template"));var d=m5c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);n5c=a}a=n5c;return a},{mode:2});var s5c;var t5c;_.It("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var u5c=function(){return _.P.apply(this,arguments)||this};
_.z(u5c,_.P);u5c.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
var p6=u5c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],p6.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],p6.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],p6.prototype,"data",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],p6.prototype,"isManageRed",void 0);p6=_.U([_.ur({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],p6);
_.S(p6,"yt-ypc-offers-list-renderer",function(){if(t5c===void 0){var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;s5c===void 0&&(s5c=document.createElement("template"));var d=s5c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);t5c=a}a=t5c;return a},{mode:2});_.It("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var v5c=function(){return _.P.apply(this,arguments)||this};
_.z(v5c,_.P);
v5c.prototype.configureRendererStamper=function(){return{"data.manageFixFopButton":{id:"manage-fix-fop-button",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{alignByText:!0}}}},"data.helpButton":{id:"help-button",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{alignByText:!0}}}},"data.manageFamilyButton":{id:"manage-family-button",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{alignByText:!0}}}},"data.manageSubscriptionButton":{id:"manage-subscription-button",mapping:{buttonRenderer:{component:"yt-button-renderer",
params:{alignByText:!0}}}},"data.offers":{id:"offers",mapping:{ypcOffersListRenderer:{component:"yt-ypc-offers-list-renderer",params:{isManageRed:!0}}}}}};
var q6=v5c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],q6.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],q6.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],q6.prototype,"data",void 0);q6=_.U([_.ur({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],q6);
_.S(q6,"yt-unlimited-manage-subscription-page-renderer",function(){if(l5c===void 0){var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;k5c===void 0&&(k5c=document.createElement("template"));var d=k5c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);l5c=a}a=l5c;return a},{mode:2});var w5c;var x5c;var y5c=function(){return _.P.apply(this,arguments)||this};
_.z(y5c,_.P);_.f=y5c.prototype;_.f.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.f.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.f.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.f.onKeypress_=function(a){a.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.f.handleHeaderTap_=function(a){a.preventDefault();a.stopPropagation();this.expandOffers_()};
_.f.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.f.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
var r6=y5c;r6.prototype.dataChanged_=r6.prototype.dataChanged_;_.U([_.H(_.BD),_.W("design:type",Object)],r6.prototype,"ironA11yKeysBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],r6.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],r6.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],r6.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],r6.prototype,"offersVisible_",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],r6.prototype,"dataChanged_",null);r6=_.U([_.ur({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],r6);
_.S(r6,"yt-collapsible-ypc-offer-renderer",function(){if(x5c===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;w5c===void 0&&(w5c=document.createElement("template"));var d=w5c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);x5c=a}a=x5c;return a},{mode:2});var z5c;var A5c;_.It("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var B5c=function(){return _.P.apply(this,arguments)||this};
_.z(B5c,_.P);_.f=B5c.prototype;_.f.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.f.dataChanged_=function(){if(this.data.backgroundImage){var a=_.Xs(this.data.backgroundImage.thumbnails,screen.width),b=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=b?"linear-gradient(180deg, "+b+"), url("+a+")":"url("+a+")";this.data.gtmId&&_.yG(this.data.gtmId,_.Ei("GL",""))}};
_.f.onYtServiceRequestError_=function(a){_.KW(this.hostElement,a.detail.error.message)};
_.f.getScrimLayerColorStops_=function(){var a,b,c=(a=this.data.unlimitedHeaderV2Data)==null?void 0:(b=a.unlimitedHeaderV2Data)==null?void 0:b.scrimLayerColors;if(!c)return null;var d=100/c.length;return c.map(function(e,g){g*=d;return _.Cq(e)+" "+g+"%"}).join(",")};
_.f.computeLogoWithPadding=function(a){var b,c,d;return(a=(b=a.unlimitedLogoImage)==null?void 0:(c=b.thumbnails)==null?void 0:(d=c[0])==null?void 0:d.height)&&a%31===0?!0:!1};
var s6=B5c;s6.prototype.onYtServiceRequestError_=s6.prototype.onYtServiceRequestError_;s6.prototype.dataChanged_=s6.prototype.dataChanged_;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],s6.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],s6.prototype,"ytRendererBehavior",void 0);_.U([_.O({computed:"computeLogoWithPadding(data)"}),_.W("design:type",Boolean)],s6.prototype,"logoWithPadding",void 0);
_.U([_.O(),_.W("design:type",Object)],s6.prototype,"data",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],s6.prototype,"dataChanged_",null);_.U([_.M("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],s6.prototype,"onYtServiceRequestError_",null);s6=_.U([_.ur({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],s6);
_.S(s6,"yt-unlimited-page-header-renderer",function(){if(A5c===void 0){var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;z5c===void 0&&(z5c=document.createElement("template"));var d=z5c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);A5c=a}a=A5c;return a},{mode:2});var C5c;var D5c;_.It("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var E5c=function(){return _.P.apply(this,arguments)||this};
_.z(E5c,_.P);E5c.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
var t6=E5c;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],t6.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],t6.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],t6.prototype,"data",void 0);t6=_.U([_.ur({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],t6);
_.S(t6,"yt-unlimited-user-notification-renderer",function(){if(D5c===void 0){var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;C5c===void 0&&(C5c=document.createElement("template"));var d=C5c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);D5c=a}a=D5c;return a},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.Zrc=_.Rr(function(a){var b=_.Or(a,{numberOfChips:5}).numberOfChips;return _.q("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.q(_.ni,{each:function(){return Array(b==null?void 0:b())}},function(){return _.q("div",{class:"ytGhostChipShelfChip"})}))});
}catch(e){_._DumpException(e)}
try{
var Gmc,Hmc,Imc,Jmc,Kmc,Lmc,Mmc,iX,jX,Omc,Pmc,Qmc,Smc,$mc,kX,Zmc,Vmc,Ymc,Xmc,Wmc,Umc,anc,bnc,cnc,dnc,lX,enc,fnc,gnc,lnc,knc,jnc,hnc,inc,nnc,onc,pnc,qnc,rnc,snc,wnc,znc,Anc,Bnc,Dnc,Fnc,Hnc,Inc,Jnc,Knc,Mnc,Nnc,Onc,Pnc,Rnc,Snc,Tnc,Unc,Vnc,Wnc,Xnc,Znc,coc,boc,$nc,doc,aoc,eoc,ioc,hoc,foc,goc,rX,joc,moc,soc,toc,uoc,voc,woc,xoc,yoc,zoc,Aoc,Boc,Doc,Eoc,Foc,mnc,Nmc,poc;
_.gX=function(a){var b=new _.qj("Error accessing DB");return _.qIa().then(function(c){return new Promise(function(d,e){try{var g=c.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(a);g.onsuccess=function(){var k=g.result;d(k?k.value:null)};
g.onerror=function(){b.params={key:a,source:"onerror"};e(b)}}catch(k){b.params={key:a,
thrownError:String(k)},e(b)}})},function(){return null})};
_.Fmc=function(a,b){var c=_.Hda(b);c!=="javascript:"&&c!=="data:"&&a.setAttribute("href",b)};
Gmc=function(a,b){return _.mp(a.entities,"flowStateEntity",b)};
Hmc=function(a){return(a=a.getOption("captions","track"))?!!a.displayName:!1};
Imc=function(a,b){b=b.getOption("captions","translationLanguages",{includeAsr:!0})||[];if(b==null||!b.length)return a;var c=b.filter(function(k){return k});
b=a.filter(function(k){return k.languageCode.startsWith("en")});
c=_.h(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,b.length){var e=b[0],g=Object.assign({},e);e.languageCode!==d.languageCode&&(g.displayName=e.languageName+" >> "+d.languageName,g.translationLanguage=d,a.push(g))}return a};
Jmc=function(a){var b,c=(b=a.getOption("captions","tracklist",{includeAsr:!0}))!=null?b:[];_.x("mweb_watch_captions_enable_auto_translate")&&(c=Imc(c,a));return c};
Kmc=function(a){return _.Ka(a,function(b){return b.languageCode==="en"})};
Lmc=function(a){var b=hX;if(Hmc(a))a.setOption("captions","stickyLoading",{}),a.setOption("captions","track",{});else{var c=_.Ka(Jmc(a),function(d){return d.displayName===b});
a.setOption("captions","track",c)}};
Mmc=function(a){if(!a)return 0;var b=a.getPresentingPlayerType(),c=a.getVideoData();return c&&c.isLive?(a=a.getProgressState(b),a.seekableEnd-a.seekableStart):a.getDuration(b)};
iX=function(a,b){_.Rw(b,a,function(){return Nmc[b]},function(c){Nmc[b]=c;
if(!_.x("mweb_player_ve_show_ks")){var d=_.Fn(0);d&&c&&_.So(d,c)}})};
jX=function(a){(a=Nmc[a])&&_.pF(_.ms(),a)};
Omc=function(a,b){for(var c=_.h(Object.keys(a)),d=c.next();!d.done;d=c.next())if(d=d.value,a[d]!==b[d])return!1;return!0};
Pmc=function(){return document.getElementById("player-control-overlay")};
Qmc=function(a){a!==-1&&!_.x("player_controls_log_creation_killswitch")&&Pmc()&&(_.Jo("pcu_cs",a),_.Jo("pcu_ce"))};
Smc=function(a){return _.q("div",{class:"yt-profile-identity-info-view-model-wiz__buttons"},(a.subscribeButton?[a.subscribeButton,a.channelAccess]:[a.channelAccess]).map(function(b){return _.q("div",{class:"yt-profile-identity-info-view-model-wiz__wrap-button"},_.q("div",{class:"yt-profile-identity-info-view-model-wiz--button"},Rmc(b)))}))};
_.Tmc=function(a){var b=a.data;a=a.hideDivider;var c={};c=(c["yt-profile-identity-info-view-model-wiz__frame"]=!0,c["yt-profile-identity-info-view-model-wiz--frame-with-no-channel-banner"]=!b.channelBanner,c);c={class:_.lt(c)};var d,e={imageBannerViewModel:{image:(d=b.channelBanner)==null?void 0:d.image,style:"IMAGE_BANNER_STYLE_INSET"}};d=_.q("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner-container"},b.channelBanner?_.q("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner"},
Rmc(e,{imageBannerViewModel:{isPositionRelative:!0}})):null);e=_.q("div",{class:"yt-profile-identity-info-view-model-wiz__avatar"},Rmc(b.avatar));var g;var k=_.q("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-header"},_.q("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name"},b.channelDisplayName),b.verifiedOrOacBadge?_.q("div",{class:"yt-profile-identity-info-view-model-wiz__badge"},_.q(_.Ss,{data:{thumbnails:[{url:(g=b.verifiedOrOacBadge)==null?void 0:g.badgeUrl}]},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})):null);g=_.q("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-frame"},k,Rmc(b.threeDotMenu));k=_.q("div",{class:"yt-profile-identity-info-view-model-wiz__metadata"},_.q("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.q("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-handle-with-bold-font"},b.channelHandle),b.channelPronouns&&b.channelHandle?_.q("span",
{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):null,_.q("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-pronouns"},b.channelPronouns)),_.q("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.q("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},b.leftOfBulletInfo),b.leftOfBulletInfo&&b.rightOfBulletInfo?_.q("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):
null,_.q("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},b.rightOfBulletInfo)));g=_.q("div",{class:"yt-profile-identity-info-view-model-wiz__trio"},g,k);return _.q("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model-wiz"},_.q("div",c,d,_.q("div",{class:"yt-profile-identity-info-view-model-wiz__channel-info-section"},e,g),b.channelDescription?_.q("div",{class:"yt-profile-identity-info-view-model-wiz__channel-description"},b.channelDescription):
null,Smc(b),a?null:_.q("div",{class:"yt-profile-identity-info-view-model-wiz__divider"}," ")))};
$mc=function(a,b){var c=_.Nr(a,{}),d=Umc("top",b),e=Umc("bottom",b),g=Umc("left",b),k=Umc("right",b);return _.rt({top:function(){return kX(c().position,d)},
bottom:function(){return kX(c().position,e)},
left:function(){return kX(c().position,g)},
right:function(){return kX(c().position,k)},
position:function(){return kX(c().positionType,Vmc)},
height:function(){return kX(c().height,lX)},
width:function(){return kX(c().width,lX)},
"min-width":function(){return kX(c().minWidth,lX)},
"min-height":function(){return kX(c().minHeight,lX)},
"max-width":function(){return kX(c().maxWidth,lX)},
"max-height":function(){return kX(c().maxHeight,lX)},
"aspect-ratio":function(){return kX(c().aspectRatio,String)},
"margin-top":function(){return kX(c().margin,d)},
"margin-bottom":function(){return kX(c().margin,e)},
"margin-left":function(){return kX(c().margin,g)},
"margin-right":function(){return kX(c().margin,k)},
"padding-top":function(){return kX(c().padding,d)},
"padding-bottom":function(){return kX(c().padding,e)},
"padding-left":function(){return kX(c().padding,g)},
"padding-right":function(){return kX(c().padding,k)},
"flex-direction":function(){return kX(c().flexDirection,Wmc)},
"justify-content":function(){return kX(c().justifyContent,Xmc)},
"align-items":function(){return kX(c().alignItems,Ymc)},
"flex-grow":function(){return kX(c().flexGrow,String)},
"flex-shrink":function(){return kX(c().flexShrink,String)},
"flex-basis":function(){return kX(c().flexBasis,lX)},
"align-self":function(){return kX(c().alignSelf,Ymc)},
"flex-wrap":function(){return kX(c().flexWrap,Zmc)},
"align-content":function(){return kX(c().alignContent,Ymc)}})};
kX=function(a,b){return a!==void 0?b(a):void 0};
Zmc=function(a){switch(a){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
Vmc=function(a){switch(a){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
Ymc=function(a){switch(a){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"}};
Xmc=function(a){switch(a){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"}};
Wmc=function(a){switch(a){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"}};
Umc=function(a,b){var c=b==="rtl";switch(a){case "top":var d=anc;break;case "bottom":d=bnc;break;case "left":d=cnc;break;default:d=dnc}return function(e){return kX(d(e,c),lX)}};
anc=function(a){var b=a.top;var c=a.vertical;a=a.all;var d;return(d=b!=null?b:c)!=null?d:a};
bnc=function(a){var b=a.bottom;var c=a.vertical;a=a.all;var d;return(d=b!=null?b:c)!=null?d:a};
cnc=function(a,b){var c=a.left;var d=a.end;var e=a.start;var g=a.horizontal;a=a.all;var k,m;return(m=(k=c!=null?c:b?d:e)!=null?k:g)!=null?m:a};
dnc=function(a,b){var c=a.right;var d=a.end;var e=a.start;var g=a.horizontal;a=a.all;var k,m;return(m=(k=c!=null?c:b?e:d)!=null?k:g)!=null?m:a};
lX=function(a){var b=a.value;switch(a.unit){case "YPC_DIMENSION_UNIT_POINT":return b+"px";case "YPC_DIMENSION_UNIT_FRACTION":return b+"%";default:return""+b}};
enc=function(a){switch(a){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"}};
fnc=function(a){var b=a!=null?a:{};a=b.fontRole;var c=b.fontSize;b=b.fontWeight;if(a!==null&&c!==null)switch(a){case "YPC_FONT_ROLE_DISPLAY":switch(c){case "YPC_FONT_SIZE_L":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(c){case "YPC_FONT_SIZE_L":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return b===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(c){case "YPC_FONT_SIZE_XL":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return b==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
gnc=function(a,b){return _.mp(a.entities,"pdpStateEntity",b)};
lnc=function(a,b,c){function d(r){return Object.values(r).map(function(t){var u=t.productId;t=t.pricingOptionIndex;return hnc(e(u).pricingOptions,t).pricingOptionId})}
function e(r){return m().get(r)}
function g(r){r=d(r);c(r)}
var k=inc([a,b],function(r,t){var u=r==null?void 0:r.selectedPricingOptions;r={};var w=!0;if(u&&t.length)for(var A=_.h(t),C=A.next();!C.done;C=A.next()){C=C.value;var G=jnc(C.pricingOptions,function(J){a:{J=J.pricingOptionId;for(var I=_.h(u),R=I.next();!R.done;R=I.next())if(R.value===J){J=!0;break a}J=!1}return J});
G>=0&&(w=!1,r[C.groupId]={productId:C.productId,pricingOptionIndex:G})}w&&t.length&&(r[t[0].groupId]={productId:t[0].productId,pricingOptionIndex:0});return r}),m=inc([b],function(r){return new Map(r.map(function(t){return[t.productId,
t]}))}),n=inc([b],function(r){var t=new Map;
r=_.h(r);for(var u=r.next();!u.done;u=r.next()){var w=u.value;u=w.groupId;var A=w.productId;w=_.h(knc(w.pricingOptions));for(var C=w.next();!C.done;C=w.next()){var G=_.h(C.value);C=G.next().value;G=G.next().value;t.set(G.pricingOptionId,{groupId:u,productId:A,index:C,pricingOption:G})}}return t});
return{getProductById:e,isProductSelected:function(r){var t=e(r);if(!t)return!1;var u;return((u=k()[t.groupId])==null?void 0:u.productId)===r},
getSelectedPricingOptions:function(){return Object.values(k()).map(function(r){var t=r.productId;r=r.pricingOptionIndex;return hnc(e(t).pricingOptions,r)})},
getSelectedProductByGroupId:function(r){var t;return(r=(t=k()[r])==null?void 0:t.productId)?e(r):void 0},
onProductSelected:function(r){var t=e(r);if(t){var u=k(),w;if(((w=u[t.groupId])==null?void 0:w.productId)!==r){var A,C;w=(C=(A=u[t.groupId])==null?void 0:A.pricingOptionIndex)!=null?C:0;A=0;for(C=t.pricingOptions[Symbol.iterator]();!C.next().done;)++A;A<=w&&(w=0);A={};g(Object.assign({},u,(A[t.groupId]={productId:r,pricingOptionIndex:w},A)))}}},
onPricingOptionSelected:function(r){var t=n().get(r);if(t){r=t.groupId;var u=t.productId;t=t.index;var w=k(),A,C;if(((A=w[r])==null?void 0:A.productId)!==u||((C=w[r])==null?void 0:C.pricingOptionIndex)!==t)A={},g(Object.assign({},w,(A[r]={productId:u,pricingOptionIndex:t},A)))}},
onClearGroupSelected:function(r){var t=k();t[r]&&(t=Object.fromEntries(Object.entries(t).filter(function(u){return _.h(u).next().value!==r})),g(t))}}};
knc=function(a){return function c(){var d,e,g,k;return mnc(c,function(m){switch(m.nextAddress){case 1:_.pe(m,2),d=0,e=_.h(a),g=e.next();case 4:if(g.done){m.jumpTo(2);break}k=g.value;var n=[d++,k];return _.p(m,n,7);case 7:g=e.next();m.jumpTo(4);break;case 2:_.oe(m),_.qe(m,0)}})}()};
jnc=function(a,b){a=_.h(knc(a));for(var c=a.next();!c.done;c=a.next()){var d=_.h(c.value);c=d.next().value;d=d.next().value;if(b(d))return c}return-1};
hnc=function(a,b){a=_.h(knc(a));for(var c=a.next();!c.done;c=a.next()){var d=_.h(c.value);c=d.next().value;d=d.next().value;if(c===b)return d}};
inc=function(a,b){var c,d;return function(){for(var e=a.map(function(k){return k()}),g=0;g<e.length;g++)if(!c||e[g]!==c[g]){c=e;
d=b.apply(null,_.Be(e));break}return d}};
nnc=function(a){var b;return!!(a.productId&&a.groupId&&((b=a.pricingOptions)==null?0:b.length)&&a.pricingOptions.every(function(c){return c.pricingOptionId}))};
onc=function(a,b,c){return lnc(a,inc([b],function(d){return d.filter(nnc)}),c)};
pnc=function(a){switch(a){case "DIVIDER_STYLE_FULL_BLEED_4_PX":return"divider-view-model-wiz__base-divider--full-bleed-4px";case "DIVIDER_STYLE_FULL_BLEED_THICK":return"divider-view-model-wiz__base-divider--full-bleed-thick";case "DIVIDER_STYLE_FULL_BLEED_8_PX":return"divider-view-model-wiz__base-divider--full-bleed-8px";case "DIVIDER_STYLE_FULL_BLEED_12_PX":return"divider-view-model-wiz__base-divider--full-bleed-12px";default:return""}};
qnc=function(a,b){return b.length===0?[a]:[a.slice(0,b[0]),a.slice(b[0])].filter(function(c){return c.length>0})};
rnc=function(a){switch(a){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""}};
snc=function(a,b,c,d){d=Object.assign({},d);_.zs(d,mX,{selectedOptionId:a,primaryButtonOverride:c});_.Ir().dispatch(_.vu("flowStateEntity",b,d))};
_.vnc=function(){if(!tnc){var a=_.h(_.fh(new Map,"UJImUe"));tnc=a.next().value;unc=a.next().value}return tnc};
wnc=function(a){if(a)return _.vnc()().get(a)};
_.xnc=function(a,b){if(a&&b){var c=_.vnc();c().set(a,b);a=c();unc(new Map(a))}};
_.ync=function(a){return{onSubmit:function(){var b;(b=wnc(a()))==null||b.onSubmit()},
isValid:function(){var b=wnc(a());return b?b.isValid():!0},
isSubmitting:function(){var b,c;return!!((b=wnc(a()))==null?0:(c=b.isSubmitting)==null?0:c.call(b))}}};
znc=function(a,b){return _.mp(a.entities,"contextNoteFeedEntityPayload",b)};
Anc=function(a){a.style.height="auto";a.style.height=a.scrollHeight+"px"};
Bnc=function(a){return[a.syncStep,a.asyncStep].filter(function(b){return b!==void 0})};
Dnc=function(a){var b,c,d;if(a=(b=a.structuredContextNoteFormSchema)==null?void 0:(c=b.fieldSchemas)==null?void 0:(d=c.noteBody)==null?void 0:d.validationSchema)for(b=_.h(Bnc(a)),c=b.next();!c.done;c=b.next()){c=c.value.rules;if(!c)break;c=_.h(c);for(c=c.next();!c.done;c=c.next())return _.y(c.value,_.Cnc)}};
Fnc=function(a){if(a){a=_.h(Bnc(a));for(var b=a.next();!b.done;b=a.next()){b=b.value.rules;if(!b)break;b=_.h(b);for(b=b.next();!b.done;b=b.next())return _.y(b.value,Enc)}}};
Hnc=function(a){if(a){a=_.h(Bnc(a));for(var b=a.next();!b.done;b=a.next()){b=b.value.rules;if(!b)break;b=_.h(b);for(b=b.next();!b.done;b=b.next())return _.y(b.value,Gnc)}}};
Inc=function(a){a=/^https?:\/\//.test(a)?a:"http://"+a;try{var b=_.Jg(a)}catch(c){return!1}if(b.toString()!==a)return!1;a=b.JSC$7879_domain_.split(".");return a.length>1&&a.every(function(c){return!!c})};
Jnc=function(a,b,c,d){var e;d=(e=d.structuredContextNoteData)==null?void 0:e.createCommentEndpoint;if(e=_.y(d,_.DEb))return e.commentText=_.Up(a),e.videoPositionMention=b,e.sources=c,d};
Knc=function(a){return a==null?void 0:a.stringValue};
Mnc=function(a){a=a.data;var b=a.flowStateKey||"",c=_.su(Gmc,b),d=_.y(c,nX),e,g=(e=_.y(_.y(d==null?void 0:d.navigationCommand,_.Ds),_.Ml))==null?void 0:e.url;e=(a==null?0:a.navButton)?{buttonViewModel:Object.assign({},_.y(a==null?void 0:a.navButton,_.Fu),{state:(d==null?0:d.navigationEnabled)||_.x("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",iconName:g?"OPEN_IN_NEW":""})}:void 0;g=function(){if(_.x("enable_gff_accessibility_fix")){var k=!0;if(d==
null?0:d.navigationEnabled)_.Js(d==null?void 0:d.navigationCommand),k=!1;k=Object.assign({},c,{abuseReportFlowState:Object.assign({},d,{isReportFormDirty:k})});_.Kr(_.vu("flowStateEntity",b,k))}else _.Js(d==null?void 0:d.navigationCommand)};
return _.q("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.q("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},Lnc(a.cancelButton,{buttonViewModel:{className:"ytWebReportFormBottomBarViewModelButton",onClick:g}}),Lnc(e,{buttonViewModel:{className:"ytWebReportFormBottomBarViewModelButton",onClick:g}})))};
Nnc=function(a){var b=a.data;var c;a=((c=_.v().resolve(_.Wi(_.Ns)))==null?0:c())&&b.imageDark?b.imageDark:b.image;var d=_.su(_.jw,b.flowStateKey||"");return _.q("yt-report-form-confirmation-page-view-model",{class:"ytWebReportFormConfirmationPageViewModelHost"},_.q("div",{class:function(){var e;return((e=_.y(d,nX))==null?void 0:e.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.q(_.Ss,{data:a,
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.q("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.q("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},b.confirmationHeader),_.q("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.q(_.wt,{text:b.confirmationText})),_.q("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.q(_.wt,{text:b.lawEnforcementText})),_.q("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},
b.whatToExpectHeader),_.Qg(b.nextSteps,function(){return _.q("div",null,b.nextSteps.map(function(e){return _.q("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.q("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.q(_.tt,{icon:e.iconName||""})),_.q("div",null,_.q(_.wt,{text:e==null?void 0:e.text,className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))}))}),_.Qg(b.legalReportText,function(){return _.q("div",null,_.q(_.wt,{text:b==null?void 0:
b.legalReportText,
className:"ytWebReportFormConfirmationPageViewModelLegalText"}))})))};
Onc=function(a){a=a.data;var b=_.y(a==null?void 0:a.inputBox,oX),c=(b==null?void 0:b.maxChars)||500,d=(b==null?void 0:b.placeholderText)||"";b={errorMessage:(b==null?void 0:b.maxCharsExceededErrorMessage)||"",maxChars:c};var e=a.flowStateKey||"",g=_.su(_.jw,e),k=_.Dy(function(m){m=Object.assign({},g,{flowFormState:{isValid:m.length<=c},abuseReportFlowState:{userComments:m,navigationEnabled:!(m.length>c),isReportFormDirty:!0}});_.Ir().dispatch(_.Iu("flowStateEntity",e,m))},150);
_.vi(function(){var m=Object.assign({},g,{flowFormState:{isValid:!0}});_.Ir().dispatch(_.Iu("flowStateEntity",e,m))});
return _.q("yt-report-form-details-page-view-model",{class:"ytWebReportFormDetailsPageViewModelHost"},_.q("h1",{class:function(){var m;return((m=_.y(g,nX))==null?void 0:m.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},a==null?void 0:a.detailsPageHeader),_.q("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.q(_.wt,{text:a==null?void 0:a.bodyText})),_.q("div",{class:"ytWebReportFormDetailsPageViewModelInput"},
_.q(pX,{label:d,
outline:!0,rows:10,characterLimit:b,onInput:k})))};
Pnc=function(a){a=a.data;var b,c=((b=_.v().resolve(_.Wi(_.Ns)))==null?0:b())&&a.imageDark?a.imageDark:a.image;return _.q("yt-report-form-sign-in-page-view-model",{class:"yt-report-form-sign-in-page-view-model"},_.q("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-image"},_.q(_.Ss,{data:c,alt:""})),_.q("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-text-content"},_.q("h1",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-header"},a==null?void 0:a.header),
_.q(_.wt,{text:a==null?void 0:a.text,className:"yt-report-form-sign-in-page-view-model__sign-in-prompt-body"})))};
Rnc=function(a,b,c){a=a.map(function(d,e){return{listItemViewModel:{title:d.title,subtitle:d.subtitle,leadingImage:d.leadingImage,trailingImage:e===b?Qnc:void 0,rendererContext:{commandContext:{onTap:d.onTap}}}}});
return Object.assign({},c&&{header:{panelHeaderViewModel:{title:c}}},{content:{listViewModel:{listItems:a}}})};
Snc=function(a,b){if(a&&b)switch(b){case "SELECTION_TYPE_BOOL":return a.boolValue;case "SELECTION_TYPE_INT":return a.intValue;case "SELECTION_TYPE_STRING":return a.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return a.privacyStatusValue}};
Tnc=function(a){var b;a=(b=a.options)==null?void 0:b.findIndex(function(c){return c.isSelected});
return a===void 0?-1:a};
Unc=function(a,b,c){var d=function(){return a().label},e={},g=_.jt("ytDropdownViewModelLabel",(e.ytDropdownViewModelLabelError=b,e));
return _.q(_.oi,{cond:function(){var k;if(k=a().label)k=!(c()===-1&&a().label&&!a().placeholderText);return k},
then:function(){return _.q("div",{class:g},_.q(_.wt,{text:d}))}})};
Vnc=function(a,b){var c={};c=_.jt("ytDropdownViewModelTitle",(c.ytDropdownViewModelTitlePlaceholder=function(){return b()===-1},c));
return _.q("div",{class:c},_.q(_.wt,{text:function(){var d=a();var e=b();if(e===-1)d=d.placeholderText?d.placeholderText:d.label;else{var g,k;d=(g=d.options)==null?void 0:(k=g[e])==null?void 0:k.title}return d}}))};
Wnc=function(a,b){var c=function(){return a().hint};
return _.q(_.Vh,null,_.q(_.oi,{cond:function(){return c()&&!b()},
then:function(){return _.q("div",{class:_.jt("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.q(_.wt,{text:c,className:"ytDropdownViewModelSupportText"}))}}),_.q(_.oi,{cond:b,
then:function(){return _.q("div",{id:"dropdown-view-model-error",role:"alert",class:_.jt("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.q(_.tt,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.q(_.wt,{text:b,className:"ytDropdownViewModelSupportText"}))}}))};
Xnc=function(a,b){var c=_.v().resolve(_.tfc);_.vi(function(){var d=a().id;d&&c!=null&&c.dropdownMap.set(d,b)})};
Znc=function(a){a=_.y(a.scheduleButton,Ync);a=_.y(a==null?void 0:a.primaryButton,_.Fu);a=_.y(a==null?void 0:a.onTap,_.Ds);var b,c,d=((c=_.y(a,_.po))==null?void 0:c.commands)||[a];c=_.h(d);for(a=c.next();!a.done&&!(b=_.y(a.value,_.FCb));a=c.next());var e;b=(e=b)==null?void 0:e.createBroadcastRequest;if(!b)throw Error("Ej");return b};
coc=function(a,b,c){c=c===void 0?{}:c;var d,e;return _.l(function(g){if(d=$nc(b))return g.return(d);(e=aoc(a,b,c))&&boc(b,e);return g.return(e)})};
boc=function(a,b){var c=doc(a);c&&b.then(function(d){_.v().resolve(_.nJ).put(c,new _.oJ({innertubeResponse:d}))})};
$nc=function(a){if(a=doc(a)){var b=_.v().resolve(_.nJ);if(b.has(a))return b.get(a).then(function(c){return c==null?void 0:_.pw(c)})}return null};
doc=function(a){var b=_.y(a.endpoint,_.Vn);if(b!=null&&b.videoId)return b={videoId:b.videoId},_.x("web_imp_player_mute_params")&&(b.mutedAtStart=a.startPlaybackInMutedState),_.Un("inline_playback",b)};
aoc=function(a,b,c){a=_.St(a,b.endpoint,eoc(b,c)).then(function(d){return d});
return Promise.resolve(a)};
eoc=function(a,b){b=_.x("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!a.startPlaybackInMutedState},b):Object.assign({},{vis:5,autonav:"1"},b);var c;b={contentPlaybackContext:_.uq(b,(c=_.y(a.endpoint.commandMetadata,_.ao))==null?void 0:c.url,window.location.href)};_.x("web_imp_player_mute_params")&&(b.overrideMutedAtStart=!a.startPlaybackInMutedState);return b};
ioc=function(a,b){var c=window.MutationObserver;c&&(qX=new c(function(d,e){d=_.h(d);for(var g=d.next();!g.done;g=d.next()){g=g.value;var k;if(k=g.type==="childList"&&g.target)a:{k=a;g=foc(g.target);k=foc(k);for(var m=null,n=0;n<g.length;n++)if(k.includes(g[n])){if(n===0){k=!1;break a}m=g[n];break}m?(g=goc(g,m),k=goc(k,m),k=g<k):k=!1}if(k){b();e.disconnect();break}}}),(c=hoc())&&qX.observe(c,{childList:!0,
subtree:!0}))};
hoc=function(){var a=document.getElementsByTagName("ytd-rich-grid-renderer");if(a.length>0)return a[0];a=document.getElementsByTagName("ytd-section-list-renderer");return a.length>0?a[0]:null};
foc=function(a){for(var b=[];a;)b.push(a),a=a.parentElement;return b};
goc=function(a,b){var c=Array.from(b.children);b=a.indexOf(b);return b>0?c.indexOf(a[b-1]):-1};
rX=function(a,b,c){c=c===void 0?{}:c;return _.to(a,c,b)};
joc=function(a){return a==null?void 0:a.filter(function(b){return b.premiereTrailerBadgeRenderer})};
moc=function(a,b){var c="",d="";switch(a){case -1:case 0:c=b?"VOLUME_OFF":"VOLUME_OFF_FILLED";d=koc;break;case 1:c=b?"VOLUME_UP_OUTLINE":"VOLUME_UP";d=loc;break;default:_.Sb(a)}return{iconName:c,ariaLabel:d}};
soc=function(a,b){var c=noc,d=_.h(_.fh(ooc(new poc(function(){},c,b)),"PAnyd")),e=d.next().value,g=d.next().value,k=new poc(function(m){g(m)},c,b);
_.yh(function(){Promise.resolve().then(function(){var m,n=(m=a())!=null?m:{};k.playerControlsData=n;_.x("player_controls_skip_double_signal_old")&&(k.lastSeenPlayerApi=_.Uw(n.playerApi));_.x("player_controls_skip_double_signal_old")||(k.lastSeenPlayerApi=_.Uw(n.playerApi));qoc(k)});
_.wh(function(){roc(k)})},"NzeYrb");
_.wh(function(){roc(k)});
return function(){return e()}};
toc=function(a){return function(b){var c=a(),d={playerState:b};if(b===1){var e;(e=c.playerApi)==null||e.loadModule("captions")}if(b===0){var g;(g=c.playerApi)==null||g.unloadModule("captions")}(b!==-1||_.x("web_imp_controls_set_player_state_killswitch"))&&c.setState(d)}};
uoc=function(a){return function(b){a().setState({playbackRate:b})}};
voc=function(a){return function(b){var c=a(),d=c.playerApi,e=d==null?void 0:d.getVideoData(),g=(e==null?void 0:e.isLive)||!1;e=e==null?void 0:e.video_id;g={videoDuration:Mmc(d||void 0),isLive:g,videoId:e};g.videoId!==c.videoId&&(g=Object.assign({},_.O6a(d),g));if(b==null?0:b.playertype)g.playerType=b.playertype;if(d){g.captionsAvailable=!!d.getOptions("captions");b=g;var k;e=(k=d.getStoryboardLevel(d.getNumberOfStoryboardLevels()-1))==null?void 0:k.intervalMs;b.storyboardInterval=e?e/1E3:void 0;g.captionsAvailable&&
(g.captionsEnabled=Hmc(d))}g.volumeMuted=!(d==null||!d.isMuted());c.setState(g)}};
woc=function(a){return function(b){var c=a(),d=c.playerApi;if(d){var e=d.getPresentingPlayerType();b={playedTime:b||0,percentLoaded:d.getVideoLoadedFraction(),playerType:e};c.playerState===0&&(b.playedTime=c.videoDuration);c.isLive&&(e=d.getProgressState(e),b.playedTime-=e.seekableStart,b.videoDuration=Mmc(d));c.playerType!==1&&delete b.playedTime;c.setState(b)}}};
xoc=function(a){return function(){var b=a(),c,d,e,g={volume:(e=(c=b.playerApi)==null?void 0:c.getVolume())!=null?e:0,volumeMuted:!((d=b.playerApi)==null||!d.isMuted())};b.setState(g)}};
yoc=function(a){return function(){var b=a(),c=b.playerApi;if(c){var d={captionsAvailable:!!c.getOptions("captions")};d.captionsAvailable&&(d.captionsEnabled=Hmc(c));b.setState(d)}}};
zoc=function(a){return function(){var b=a();if(b.playerApi&&!(b.volumeMuted||b.controlsVisible&&b.isProbablyAScreenreaderUser)){b.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var c;(c=document.querySelector(".player-control-play-pause-icon"))==null||c.focus()}}};
Aoc=function(a){return{appApi:Object.assign({},_.H6a(),{showCaptionsToggleToast:function(b){var c,d;(d=(c=a()).showCaptionsToggleToast)==null||d.call(c,b)},
openInMiniplayer:function(){var b,c;(c=(b=a()).openInMiniplayer)==null||c.call(b)}})}};
Boc=function(a,b){var c,d,e;return!!(a==null?0:(c=a.playerResponse)==null?0:(d=c.playerConfig)==null?0:(e=d.inlinePlaybackConfig)==null?0:e.showScrubbingControls)&&!(b==null?0:b.hideScrubbingControls)};
_.Coc=function(a){var b=!a.miniplayerIsActive;return[5,2,0].includes(a.miniplayerPlaybackState)||b};
Doc={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};Eoc=function(a,b){var c,d,e,g,k;_.l(function(m){if(!b.length)return m.return([]);c=[];d=_.h(b);for(e=d.next();!e.done;e=d.next())g=e.value,(k=a.resolveIcon(g))&&!a.iconCache[k.url]&&c.push(_.Jhc(a,k).then(function(){}).catch(function(){}));
return m.return(Promise.all(c))})};
Foc=function(a,b){var c=[];b=(new Set(b)).values();b=_.h(b);for(var d=b.next();!d.done;d=b.next()){d=d.value;for(var e=_.h(Object.values(Doc)),g=e.next();!g.done;g=e.next())c.push({iconName:d,iconStyle:g.value})}Eoc(a.iconManager,c)};
_.Goc=function(a,b,c){var d=c!=null?c:a.iconsToFetch;d!=null&&d.length?b!==void 0&&b>=0?_.ul(_.zk,function(){Foc(a,d)},b):Foc(a,d):Promise.resolve()};
mnc=function(a,b){b=new _.m8a(new _.j8a(b));_.bx&&a.prototype&&(0,_.bx)(b,a.prototype);return b};
Nmc={};
poc=function(a,b,c){var d=this;this.renderFn=a;this.listeners=b;this.context=c;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var e;this.lastSeenPlayerApi=_.Uw((e=this.playerControlsData)==null?void 0:e.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.O6a(),void 0);_.x("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){ooc(d).setState({playerState:-1});d.resetRecentlyNavigatedJobId&&_.zk.cancelJob(d.resetRecentlyNavigatedJobId);d.recentlyNavigated=
!0;d.resetRecentlyNavigatedJobId=_.zk.addJob(function(){d.recentlyNavigated=!1},8,1E4)})};
poc.prototype.setState=function(a){if(!_.x("mweb_player_skip_no_op_state_changes")||!Omc(a,this.state))if(this.state=Object.assign({},this.state,a),!_.x("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)a=-1,_.x("player_controls_log_creation_killswitch")||Pmc()||(a=(0,_.Uj)()),_.Jo("pcu_s"),_.Jo("pcu_se"),_.Jo("pcu_rs"),this.renderFn(ooc(this)),_.Jo("pcu_re"),Qmc(a),_.zk.addJob(function(){_.Jo("pcu_ap")},8)};
var ooc=function(a){var b;var c=_.Uw((b=a.playerControlsData)==null?void 0:b.playerApi);return Object.assign({},a.state,{setState:a.boundSetState,domMeasurements:{progressBarLineRect:a.progressBarLineRect},playerApi:c,appApi:a.context.appApi,playerContainer:a.context.playerContainer,playerControlContainer:a.context.playerControlContainer,uxConfig:a.context.uxConfig})},qoc=function(a){a.listeners.forEach(function(b){a.eventListenerCleanupFunctions.push(b.register(function(){return ooc(a)},function(){return a.getData()}))})},
roc=function(a){a.eventListenerCleanupFunctions.forEach(function(b){b()});
a.eventListenerCleanupFunctions.length=0};
poc.prototype.getData=function(){return this.playerControlsData};
var nX=new _.X("abuseReportFlowState");var Hoc=new _.X("feedbackFormFlowState");var oX=new _.X("inputBoxViewModel");var Ioc=new _.X("flowNextStepCommand");var Joc=new _.X("flowPrevStepCommand");var Koc=new _.X("updateFlowCommand");_.Loc=new _.X("flowStepRenderer");_.Cnc=new _.X("lengthValidationRule");var Enc=new _.X("regexValidationRule");var Gnc=new _.X("selectedValidationRule");var Moc=new _.X("talkToRecsViewModel");var Noc=new _.X("creatorGoalSetUpFlowDropdownItemViewModel");var Ooc=new _.X("creatorGoalSetUpFlowDropdownViewModel");_.Poc=new _.X("radioButtonGroupViewModel");var Ync=new _.X("panelFooterViewModel");var Qoc=new _.X("ypcCancelRecurrenceCommand");var Roc=new _.X("cancellationFlowState");var mX=new _.X("premiumPurchaseFlowState");var Soc=new _.X("surveyAnswerCardRenderer");var Toc=new _.X("showMoreButtonRenderer");var Uoc;var Voc,Woc=function(){if(Voc!==void 0)return Voc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;Uoc===void 0&&(Uoc=document.createElement("template"));var d=Uoc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return Voc=a};var Xoc=function(){var a=_.P.apply(this,arguments)||this;a.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";a.goalDescription="";a.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";a.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";a.startButtonId="start-button";a.exampleButtonId="example-button";return a};
_.z(Xoc,_.P);_.f=Xoc.prototype;_.f.getGoalDropdownItems=function(){var a,b;return(b=_.y((a=this.data)==null?void 0:a.purchaseTargetDropdown,Ooc))==null?void 0:b.dropdownItems};
_.f.getTimerDropdownItems=function(){var a,b;return(b=_.y((a=this.data)==null?void 0:a.timerDropdown,Ooc))==null?void 0:b.dropdownItems};
_.f.getColorDropdownItems=function(){var a,b;return(b=_.y((a=this.data)==null?void 0:a.colorDropdown,Ooc))==null?void 0:b.dropdownItems};
_.f.getDropdownItemText=function(a){var b;return(b=_.y(a,Noc))==null?void 0:b.itemLabel};
_.f.getDropdownItemValue=function(a){a=_.y(a,Noc);return(a==null?void 0:a.timeLimit)||(a==null?void 0:a.purchaseTarget)||(a==null?void 0:a.eligiblePurchaseType)};
_.f.updateFlowState=function(a){_.ho(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:a}])};
_.f.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.f.updateGoalValue=function(a){this.goal=a.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.f.onTextValueChanged=function(a){this.goalDescription=a.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.f.updateTimerValue=function(a){this.timer=a.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.f.updateTierValue=function(a){this.tier=a.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.f.getButtonViewModel=function(a){a=(a==null?void 0:a.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var b,c=_.y((b=this.data)==null?void 0:b.startGoalButton,_.Fu);return Object.assign({},c,{state:a})};
_.Vm.Object.defineProperties(Xoc,{template:{configurable:!0,enumerable:!0,get:function(){return Woc()}}});
var sX=Xoc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],sX.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],sX.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],sX.prototype,"goal",void 0);_.U([_.O(),_.W("design:type",Object)],sX.prototype,"goalDescription",void 0);_.U([_.O(),_.W("design:type",Object)],sX.prototype,"timer",void 0);_.U([_.O(),_.W("design:type",Object)],sX.prototype,"tier",void 0);
_.U([_.O(),_.W("design:type",Object)],sX.prototype,"startButtonId",void 0);_.U([_.O(),_.W("design:type",Object)],sX.prototype,"exampleButtonId",void 0);sX=_.U([_.ur({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],sX);_.S(sX,"yt-creator-goal-set-up-flow-view-model",function(){return Woc()},{mode:_.x("live_chat_enable_sink_wrapper")?2:0});var Yoc;var Zoc;var $oc;var apc=function(){return _.P.apply(this,arguments)||this};
_.z(apc,_.P);var bpc=apc;_.U([_.O(),_.W("design:type",Object)],bpc.prototype,"data",void 0);bpc=_.U([_.ur({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],bpc);
_.S(bpc,"yt-survey-answer-card-renderer",function(){if($oc===void 0){var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;Zoc===void 0&&(Zoc=document.createElement("template"));var d=Zoc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);$oc=a}a=$oc;return a},{mode:2});var cpc;var dpc;var epc=function(){return _.P.apply(this,arguments)||this};
_.z(epc,_.P);_.f=epc.prototype;_.f.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.f.selectedItemChanged=function(a){_.ho(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[a.feedbackToken||""]}])};
_.f.surveyAnswerCardRendererClicked=function(a){if(a.target&&_.y(a.model.item,Soc)){var b=a.target;a=_.y(a.model.item,Soc);a.onTapCommand?_.no(b,[a.onTapCommand],b):this.data.onTapCommand&&_.no(b,[this.data.onTapCommand],b);this.selectedItemChanged(a)}};
_.f.checkIsCancellationStyle=function(a){return a==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.f.updateSelectedItemFromBinding=function(a){this.selectedItem=a.detail.value};
var tX=epc;tX.prototype.onSelectedItemChanged=tX.prototype.onSelectedItemChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],tX.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],tX.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],tX.prototype,"selectedItem",void 0);_.U([_.O({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.W("design:type",Boolean)],tX.prototype,"isCancellationStyle",void 0);
_.U([_.N("selectedItem"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],tX.prototype,"onSelectedItemChanged",null);tX=_.U([_.ur({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],tX);
_.S(tX,"yt-survey-flow-step-renderer",function(){if(dpc===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;cpc===void 0&&(cpc=document.createElement("template"));var d=cpc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);dpc=a}a=dpc;return a},{mode:2});var fpc=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return a};
_.z(fpc,_.P);fpc.prototype.handleSurveyFlowStepOptionChanged=function(a){this.ytdReduxBehavior.dispatch(_.gp({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:a}));_.ho(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:a}}])};
var uX=fpc;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],uX.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],uX.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],uX.prototype,"data",void 0);uX=_.U([_.Q({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],uX);
_.S(uX,"ytd-survey-flow-step-renderer",function(){if(Yoc!==void 0)return Yoc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Yoc=a},{mode:1});var Rmc;Rmc=_.Au({avatarViewModel:_.Gv,buttonViewModel:_.Ju,subscribeButtonViewModel:_.tWa,imageBannerViewModel:_.U$b});_.gpc=_.mt(_.Tmc);_.am(_.Tmc);var hpc;var ipc=function(){return _.P.apply(this,arguments)||this};
_.z(ipc,_.P);var vX=ipc;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],vX.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],vX.prototype,"data",void 0);vX=_.U([_.Q({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],vX);
_.S(vX,"ytd-channel-history-renderer",function(){if(hpc!==void 0)return hpc;var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return hpc=a},{mode:1});var jpc;var kpc=function(){return _.P.apply(this,arguments)||this};
_.z(kpc,_.P);var lpc=kpc;_.U([_.O(),_.W("design:type",Object)],lpc.prototype,"data",void 0);lpc=_.U([_.Q({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],lpc);
_.S(lpc,"ytd-feature-enablement-info-renderer",function(){if(jpc!==void 0)return jpc;var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return jpc=a},{mode:1});var mpc;var npc;var opc=function(){var a=_.P.apply(this,arguments)||this;a.textBoxMaxLength=_.x("enable_tvod_campaign_code_integration")?15:12;return a};
_.z(opc,_.P);_.f=opc.prototype;_.f.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.f.onSubmit=function(){var a=this.data.serviceEndpoint,b=_.y(a,_.pv);b&&(b.couponCode=this.userInput,_.mo(this.hostElement,[a]))};
_.f.validate=function(){var a=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=a&&!this.data.errorMessage;this.showErrorMessage=a&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.x("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.f.computeStyle=function(a){return a};
_.f.computeShowValidationBelowInput=function(a){return a!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.f.updateUserInputFromBinding=function(a){this.userInput=a.currentTarget.value};
_.f.updateShowErrorMessageFromBinding=function(a){this.showErrorMessage=a.detail.value};
_.Vm.Object.defineProperties(opc.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
var wX=opc;wX.prototype.dataChanged=wX.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],wX.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],wX.prototype,"data",void 0);_.U([_.O(),_.W("design:type",String)],wX.prototype,"userInput",void 0);_.U([_.O(),_.W("design:type",Boolean)],wX.prototype,"disableApplyButton",void 0);_.U([_.O(),_.W("design:type",Boolean)],wX.prototype,"hideApplyButton",void 0);
_.U([_.O(),_.W("design:type",Boolean)],wX.prototype,"hideErrorMessage",void 0);_.U([_.O(),_.W("design:type",Boolean)],wX.prototype,"showTick",void 0);_.U([_.O(),_.W("design:type",Boolean)],wX.prototype,"showErrorMessage",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.W("design:type",String)],wX.prototype,"couponStyle",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.W("design:type",Boolean)],wX.prototype,"showValidationBelowInput",void 0);_.U([_.O(),_.W("design:type",Object)],wX.prototype,"textBoxMaxLength",void 0);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],wX.prototype,"dataChanged",null);
_.U([_.K("showTick","showErrorMessage","userInput"),_.W("design:type",String),_.W("design:paramtypes",[])],wX.prototype,"validationState",null);wX=_.U([_.Q({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],wX);
_.S(wX,"ytd-ypc-coupon-renderer",function(){if(npc!==void 0)return npc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return npc=a},{mode:1});var ppc=function(){return _.P.apply(this,arguments)||this};
_.z(ppc,_.P);ppc.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"}}}};
ppc.prototype.computeStyle=function(a){return a};
var xX=ppc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],xX.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],xX.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],xX.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.W("design:type",String)],xX.prototype,"buttonStyle",void 0);
xX=_.U([_.Q({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],xX);
_.S(xX,"ytd-flow-bottom-bar-renderer",function(){if(mpc!==void 0)return mpc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return mpc=a},{mode:1});var qpc;var rpc;var spc;var tpc=function(){return _.P.apply(this,arguments)||this};
_.z(tpc,_.P);tpc.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
tpc.prototype.focus=function(a){this.title&&_.Ok(this.title,a)};
var yX=tpc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],yX.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],yX.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],yX.prototype,"data",void 0);_.U([_.gr("#title"),_.W("design:type",HTMLElement)],yX.prototype,"title",void 0);yX=_.U([_.Q({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],yX);
_.S(yX,"ytd-flow-top-bar-renderer",function(){if(spc!==void 0)return spc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return spc=a},{mode:1});var upc;var vpc;var wpc;var zX=function(){return _.P.apply(this,arguments)||this};
_.z(zX,_.P);zX.prototype.freeTextValueChanged=function(){_.ho(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
zX.prototype.updateFreeTextValueFromBinding=function(a){this.freeTextValue=a.detail.value};
_.Vm.Object.defineProperties(zX.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var a,b,c=(b=(a=this.data)==null?void 0:a.responseMaxLength)!=null?b:500,d;return((d=this.freeTextValue)!=null?d:"").length>=c?"maxed-out":""}}});
var AX=zX;AX.prototype.freeTextValueChanged=AX.prototype.freeTextValueChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],AX.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],AX.prototype,"data",void 0);_.U([_.O(),_.W("design:type",String)],AX.prototype,"freeTextValue",void 0);_.U([_.gr("#user-input"),_.W("design:type",HTMLTextAreaElement)],AX.prototype,"input",void 0);
_.U([_.K("freeTextValue"),_.W("design:type",Object),_.W("design:paramtypes",[])],AX.prototype,"characterLimitClass",null);_.U([_.N("freeTextValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],AX.prototype,"freeTextValueChanged",null);AX=_.U([_.ur({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],AX);
_.S(AX,"yt-free-text-input-flow-step-renderer",function(){if(wpc===void 0){var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;vpc===void 0&&(vpc=document.createElement("template"));var d=vpc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);wpc=a}a=wpc;return a},{mode:2});var xpc=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return a};
_.z(xpc,_.P);xpc.prototype.handleFreeTextFlowStepInputChanged=function(a){_.ho(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:a}}])};
var BX=xpc;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],BX.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],BX.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],BX.prototype,"data",void 0);BX=_.U([_.Q({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],BX);
_.S(BX,"ytd-free-text-input-flow-step-renderer",function(){if(upc!==void 0)return upc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return upc=a},{mode:1});var ypc;var zpc;var Apc=function(){return _.P.apply(this,arguments)||this};
_.z(Apc,_.P);var Bpc=Apc;_.U([_.O(),_.W("design:type",Object)],Bpc.prototype,"data",void 0);Bpc=_.U([_.Q({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],Bpc);
_.S(Bpc,"ytd-metadata-line-renderer",function(){if(zpc!==void 0)return zpc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return zpc=a},{mode:1});var Cpc=function(){return _.P.apply(this,arguments)||this};
_.z(Cpc,_.P);Cpc.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
var CX=Cpc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],CX.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],CX.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],CX.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],CX.prototype,"isMasthead",void 0);CX=_.U([_.Q({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],CX);
_.S(CX,"ytd-media-product-renderer",function(){if(ypc!==void 0)return ypc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return ypc=a},{mode:1});var Dpc;var Epc=function(){return _.P.apply(this,arguments)||this};
_.z(Epc,_.P);Epc.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
Epc.prototype.onBillboardImageLoaded=function(){_.go(this.hostElement,"yt-refit")};
var DX=Epc;DX.prototype.onBillboardImageLoaded=DX.prototype.onBillboardImageLoaded;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],DX.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],DX.prototype,"data",void 0);_.U([_.gr("#billboardImage"),_.W("design:type",Object)],DX.prototype,"billboardImage",void 0);_.U([_.M("yt-img-shadow-loaded"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],DX.prototype,"onBillboardImageLoaded",null);
DX=_.U([_.Q({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],DX);
_.S(DX,"ytd-billboard-masthead-renderer",function(){if(Dpc!==void 0)return Dpc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Dpc=a},{mode:1});var Fpc;var Gpc=function(){var a=_.P.apply(this,arguments)||this;a.smallSize=!1;return a};
_.z(Gpc,_.P);var EX=Gpc;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],EX.prototype,"ytComponentBehaviorType",void 0);_.U([_.O(),_.W("design:type",Object)],EX.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],EX.prototype,"smallSize",void 0);EX=_.U([_.Q({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],EX);
_.S(EX,"ytd-bullet-formatted-string",function(){if(Fpc!==void 0)return Fpc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Fpc=a},{mode:1});var Hpc;var Ipc=function(){return _.P.apply(this,arguments)||this};
_.z(Ipc,_.P);Ipc.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
var FX=Ipc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],FX.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],FX.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],FX.prototype,"data",void 0);FX=_.U([_.Q({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],FX);
_.S(FX,"ytd-offer-detail-renderer",function(){if(Hpc!==void 0)return Hpc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Hpc=a},{mode:1});var Jpc;var Kpc=function(){return _.P.apply(this,arguments)||this};
_.z(Kpc,_.P);Kpc.prototype.configureRendererStamper=function(){return{"data.masthead":{id:"masthead",mapping:{billboardMastheadRenderer:"ytd-billboard-masthead-renderer",mediaProductRenderer:{component:"ytd-media-product-renderer",params:{isMasthead:!0}}}},"data.body":{id:"body",mapping:{offerDetailRenderer:"ytd-offer-detail-renderer"}}}};
var GX=Kpc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],GX.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],GX.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],GX.prototype,"data",void 0);GX=_.U([_.Q({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],GX);
_.S(GX,"ytd-offer-detail-step-renderer",function(){if(Jpc!==void 0)return Jpc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Jpc=a},{mode:1});var Lpc;var Mpc=function(){var a=_.P.apply(this,arguments)||this;a.isInOfferModule=!1;return a};
_.z(Mpc,_.P);_.f=Mpc.prototype;_.f.computeHasEndpoint=function(){var a;return!((a=this.data)==null||!a.onClickCommand)};
_.f.dataChanged=function(){var a;if((a=this.data)==null?0:a.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")};
_.f.detached=function(){var a;if((a=this.data)==null?0:a.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.f.handleClickEvent=function(){var a;if((a=this.data)==null?0:a.onClickCommand){var b;this.componentBehavior.resolveCommand((b=this.data)==null?void 0:b.onClickCommand)}};
_.f.onContentKeyDown=function(a){a.key==="Enter"?this.handleClickEvent(a):a.key===" "&&a.preventDefault()};
_.f.onContentKeyUp=function(a){a.key===" "&&this.handleClickEvent(a)};
var HX=Mpc;HX.prototype.dataChanged=HX.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],HX.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],HX.prototype,"componentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],HX.prototype,"data",void 0);_.U([_.O({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],HX.prototype,"hasEndpoint",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],HX.prototype,"isInOfferModule",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],HX.prototype,"dataChanged",null);HX=_.U([_.Q({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],HX);
_.S(HX,"ytd-channel-masthead-renderer",function(){if(Lpc!==void 0)return Lpc;var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Lpc=a},{mode:1});var Npc;var Opc=function(){var a=_.P.apply(this,arguments)||this;a.thumbnailObjectFit="CONTAIN";a.thumbnailObjectPosition="LEFT";a.isExpanded=!1;return a};
_.z(Opc,_.P);_.f=Opc.prototype;_.f.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.f.dataChanged=function(){this.resetStates()};
_.f.computeisTapOnOfferInfoContainerEnabled=function(){var a;return((a=this.data)==null?void 0:a.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.f.onExpandBtnClick=function(){var a,b=_.y((a=this.data)==null?void 0:a.showMoreButtonRenderer,Toc);b&&_.qF(_.ms(),b.trackingParams);this.isExpanded=!this.isExpanded};
_.f.onOfferInfoClick=function(a){this.isTapOnOfferInfoContainerEnabled&&(_.Xt(_.Pq(a)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.Yt(_.Pq(a)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.f.onBottomBarClick=function(){this.executeTapCommand()};
_.f.executeTapCommand=function(){var a,b=(a=this.data)==null?void 0:a.tapCommand;b&&this.ytComponentBehavior.resolveCommand(b)};
_.f.resetStates=function(){this.isExpanded=!1};
_.Vm.Object.defineProperties(Opc.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var a=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),b,c,d;return((b=this.data)==null?void 0:b.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&a&&!!((c=this.data)==null?0:(d=c.benefits)==null?0:d.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return((b=_.y((a=this.data)==null?void 0:a.showMoreButtonRenderer,Toc))==null?void 0:b.showMoreButtonTitle)||((c=this.data)==null?void 0:c.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return((b=_.y((a=this.data)==null?void 0:a.showMoreButtonRenderer,Toc))==null?void 0:b.showLessButtonTitle)||((c=this.data)==null?void 0:c.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var a;return(a=this.showLessButtonTitle)!=null?a:""}var b;return(b=this.showMoreButtonTitle)!=null?b:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return((a=this.data)==null?void 0:a.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((b=this.data)==null?0:b.footerTitle)||((c=this.data)==null?0:c.footerSubtitle))}}});
var IX=Opc;IX.prototype.dataChanged=IX.prototype.dataChanged;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],IX.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],IX.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],IX.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",String)],IX.prototype,"thumbnailObjectFit",void 0);
_.U([_.O(),_.W("design:type",String)],IX.prototype,"thumbnailObjectPosition",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.W("design:type",Boolean)],IX.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.U([_.O(),_.W("design:type",Object)],IX.prototype,"isExpanded",void 0);_.U([_.O(),_.W("design:type",Object)],IX.prototype,"data",void 0);_.U([_.O({computed:"computeIcon_(data.footerIcon)"}),_.W("design:type",String)],IX.prototype,"icon",void 0);
_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],IX.prototype,"dataChanged",null);_.U([_.K("data.thumbnail"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],IX.prototype,"hasThumbnail",null);_.U([_.K("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],IX.prototype,"enableExpandButton",null);
_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],IX.prototype,"enableOfferContentIcon",null);_.U([_.K("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.W("design:type",Object),_.W("design:paramtypes",[])],IX.prototype,"showMoreButtonTitle",null);_.U([_.K("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.W("design:type",Object),_.W("design:paramtypes",[])],IX.prototype,"showLessButtonTitle",null);
_.U([_.K("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.W("design:type",String),_.W("design:paramtypes",[])],IX.prototype,"expandedBtnText",null);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],IX.prototype,"enableBottomBar",null);IX=_.U([_.Q({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],IX);
_.S(IX,"ytd-offer-card-renderer",function(){if(Npc!==void 0)return Npc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Npc=a},{mode:1});var Ppc;var Qpc=function(){return _.P.apply(this,arguments)||this};
_.z(Qpc,_.P);Qpc.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"}}}};
Qpc.prototype.onClick=function(a){if(!_.Xt(a.composedPath()||[],this.hostElement,["A".toString()])){var b,c;if((a=(c=_.y((b=this.data)==null?void 0:b.actionButton,_.OE))==null?void 0:c.command)&&!this.ytComponentBehavior.resolveCommand(a)){var d;(d=_.ms())==null||d.clickCommand(a);_.mo(this.hostElement,[a])}}};
var JX=Qpc;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],JX.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],JX.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],JX.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],JX.prototype,"data",void 0);JX=_.U([_.Q({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],JX);
_.S(JX,"ytd-offer-content-renderer",function(){if(Ppc!==void 0)return Ppc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Ppc=a},{mode:1});var Rpc;var Spc=function(){return _.P.apply(this,arguments)||this};
_.z(Spc,_.P);Spc.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.Vm.Object.defineProperties(Spc.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var a,b;return!((a=this.data)==null||!a.title)||!((b=this.data)==null||!b.description)}}});
var KX=Spc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],KX.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],KX.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],KX.prototype,"data",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],KX.prototype,"hasHeaderData",null);KX=_.U([_.Q({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],KX);
_.S(KX,"ytd-offer-section-renderer",function(){if(Rpc!==void 0)return Rpc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Rpc=a},{mode:1});var Tpc;var Upc=function(){return _.P.apply(this,arguments)||this};
_.z(Upc,_.P);
Upc.prototype.configureRendererStamper=function(){return{"data.masthead":{id:"masthead",mapping:{billboardMastheadRenderer:"ytd-billboard-masthead-renderer",channelMastheadRenderer:"ytd-channel-masthead-renderer",mediaProductRenderer:{component:"ytd-media-product-renderer",params:{isMasthead:!0}}}},"data.body":{id:"body",mapping:{offerSectionRenderer:{component:"ytd-offer-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}},"data.coupon":{id:"coupon-section",mapping:{cardItemRenderer:{component:"yt-card-item-renderer"}}},"data.terms":{id:"terms-section",
mapping:{offerSectionRenderer:{component:"ytd-offer-section-renderer"}}}}};
var LX=Upc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],LX.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],LX.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],LX.prototype,"data",void 0);LX=_.U([_.Q({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],LX);
_.S(LX,"ytd-offer-selection-step-renderer",function(){if(Tpc!==void 0)return Tpc;var a=document.createElement("template");_.B(a,'\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>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Tpc=a},{mode:1});var Vpc;var Wpc=function(){return _.P.apply(this,arguments)||this};
_.z(Wpc,_.P);Wpc.prototype.computeStyle=function(a){return a};
Wpc.prototype.computeImageWidth=function(a){return a==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
var MX=Wpc;_.U([_.O({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.W("design:type",String)],MX.prototype,"containerStyle",void 0);_.U([_.O({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.W("design:type",String)],MX.prototype,"imageWidth",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],MX.prototype,"ytRendererBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],MX.prototype,"data",void 0);MX=_.U([_.Q({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],MX);
_.S(MX,"ytd-confirmation-masthead-renderer",function(){if(Vpc!==void 0)return Vpc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Vpc=a},{mode:1});var Xpc;var Ypc=function(){return _.P.apply(this,arguments)||this};
_.z(Ypc,_.P);Ypc.prototype.computeStyle=function(a){return a};
var NX=Ypc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],NX.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],NX.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.W("design:type",String)],NX.prototype,"containerStyle",void 0);NX=_.U([_.Q({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],NX);
_.S(NX,"ytd-purchase-complete-detail-renderer",function(){if(Xpc!==void 0)return Xpc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Xpc=a},{mode:1});var Zpc;var OX=function(){var a=_.P.apply(this,arguments)||this;a.scriptsAppended=!1;return a};
_.z(OX,_.P);OX.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"}}}};
OX.prototype.onDataChanged=function(){var a=this.get("data.gtmId");a&&(_.yG(a,_.Ei("GL","")),this.setupConversionTracking())};
OX.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var a=document.createElement("noscript");a.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(a);this.scriptsAppended=!0}};
var PX=OX;PX.prototype.onDataChanged=PX.prototype.onDataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],PX.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],PX.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],PX.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],PX.prototype,"scriptsAppended",void 0);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],PX.prototype,"onDataChanged",null);PX=_.U([_.Q({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],PX);
_.S(PX,"ytd-purchase-complete-step-renderer",function(){if(Zpc!==void 0)return Zpc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Zpc=a},{mode:1});var $pc;var aqc=function(){var a=_.P.apply(this,arguments)||this;a.darkerDarkTheme=_.x("web_darker_dark_theme");return a};
_.z(aqc,_.P);aqc.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
var QX=aqc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],QX.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],QX.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],QX.prototype,"darkerDarkTheme",void 0);QX=_.U([_.Q({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],QX);
_.S(QX,"ytd-ypc-transaction-error-message-renderer",function(){if($pc!==void 0)return $pc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return $pc=a},{mode:1});var bqc;var cqc;var RX=function(){var a=_.P.apply(this,arguments)||this;a.handlePhoneVerificationSuccess=function(b){if(a.isValidPhoneVerificationCompletionMessageEvent(b)){var c;((c=a.data)==null?0:c.nextStepCommand)&&a.ytComponentBehavior.resolveCommand(a.data.nextStepCommand)}};
return a};
_.z(RX,_.P);RX.prototype.isValidPhoneVerificationCompletionMessageEvent=function(a){if(a.data!=="yt-phone-verification-complete")return!1;a=_.Si(a.origin);return a!==null&&a.includes("youtube.com")};
RX.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
RX.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
var SX=RX;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],SX.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],SX.prototype,"data",void 0);SX=_.U([_.ur({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],SX);
_.S(SX,"yt-feature-enablement-soft-entry-renderer",function(){if(cqc===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;bqc===void 0&&(bqc=document.createElement("template"));var d=bqc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);cqc=a}a=cqc;return a},{mode:1});var dqc;var eqc;var fqc;var gqc;var hqc=function(){return _.P.apply(this,arguments)||this};
_.z(hqc,_.P);var iqc=hqc;_.U([_.O(),_.W("design:type",Object)],iqc.prototype,"data",void 0);iqc=_.U([_.ur({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],iqc);
_.S(iqc,"yt-benefits-item-renderer",function(){if(gqc===void 0){var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;fqc===void 0&&(fqc=document.createElement("template"));var d=fqc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);gqc=a}a=gqc;return a},{mode:2});var jqc;var kqc;var lqc=function(){return _.P.apply(this,arguments)||this};
_.z(lqc,_.P);lqc.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
lqc.prototype.computeisWithoutPadding=function(){var a;return((a=this.data)==null?void 0:a.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
var TX=lqc;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],TX.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],TX.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.W("design:type",Boolean)],TX.prototype,"isWithoutPadding",void 0);TX=_.U([_.ur({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],TX);
_.S(TX,"yt-benefits-section-renderer",function(){if(kqc===void 0){var a=document.createElement("template");_.B(a,'\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>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;jqc===void 0&&(jqc=document.createElement("template"));var d=jqc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);kqc=a}a=kqc;return a},{mode:2});var mqc=function(){return _.P.apply(this,arguments)||this};
_.z(mqc,_.P);mqc.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
mqc.prototype.computeisUsingLargeWidth=function(){var a;return((a=this.data)==null?void 0:a.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
var UX=mqc;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],UX.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],UX.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.W("design:type",Boolean)],UX.prototype,"isUsingLargeWidth",void 0);UX=_.U([_.ur({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],UX);
_.S(UX,"yt-benefits-flow-step-renderer",function(){if(eqc===void 0){var a=document.createElement("template");_.B(a,'\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>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;dqc===void 0&&(dqc=document.createElement("template"));var d=dqc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);eqc=a}a=eqc;return a},{mode:2});var nqc;var oqc;var pqc=function(){return _.P.apply(this,arguments)||this};
_.z(pqc,_.P);pqc.prototype.checkIsUsingLargeWidth=function(){var a;return((a=this.data)==null?void 0:a.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
var VX=pqc;_.U([_.O(),_.W("design:type",Object)],VX.prototype,"data",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],VX.prototype,"ytRendererBehavior",void 0);_.U([_.O({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.W("design:type",Boolean)],VX.prototype,"isUsingLargeWidth",void 0);VX=_.U([_.ur({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],VX);
_.S(VX,"yt-confirmation-flow-step-renderer",function(){if(oqc===void 0){var a=document.createElement("template");_.B(a,'\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>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;nqc===void 0&&(nqc=document.createElement("template"));var d=nqc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);oqc=a}a=oqc;return a},{mode:2});var qqc;var rqc;var sqc=function(){return _.P.apply(this,arguments)||this};
_.z(sqc,_.P);var tqc=sqc;_.U([_.O(),_.W("design:type",Object)],tqc.prototype,"data",void 0);tqc=_.U([_.ur({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],tqc);
_.S(tqc,"yt-info-flow-step-renderer",function(){if(rqc===void 0){var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;qqc===void 0&&(qqc=document.createElement("template"));var d=qqc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);rqc=a}a=rqc;return a},{mode:2});var uqc;var vqc;var wqc=function(){return _.P.apply(this,arguments)||this};
_.z(wqc,_.P);var xqc=wqc;_.U([_.O(),_.W("design:type",Object)],xqc.prototype,"data",void 0);xqc=_.U([_.ur({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],xqc);
_.S(xqc,"yt-info-list-flow-step-renderer",function(){if(vqc===void 0){var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;uqc===void 0&&(uqc=document.createElement("template"));var d=uqc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);vqc=a}a=vqc;return a},{mode:2});var yqc=_.Rr(function(a){var b=a.data;return _.q("styled-text-view-model",{class:_.jt("ytStyledTextViewModelHost",function(){return fnc(b().fontAttributes)},function(){return enc(b().color)})},_.q(_.wt,{text:function(){return b().text}}))});
yqc.idomCompat=!0;var zqc=_.Rr(function(a){var b=function(){var e,g,k,m;return(m=(k=(e=a.alt)==null?void 0:e.call(a))!=null?k:(g=a.data().accessibilityData)==null?void 0:g.label)!=null?m:""},c=function(){return a.data().imageWidth},d=function(){return a.data().imageHeight};
return _.q("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.q(_.oi,{cond:function(){var e=a.data();if(e){var g,k,m;var n=((g=_.v().resolve(_.Wi(_.Ns)))==null?0:g())?(k=e.imageDark)!=null?k:e.imageLight:(m=e.imageLight)!=null?m:e.imageDark}else n=void 0;return n},
then:function(e){return _.q(_.Ss,Object.assign({},a,{data:e,alt:b,targetWidth:c,targetHeight:d,preserveHeight:!0,preserveWidth:!0}))}}))});
zqc.idomCompat=!0;var WX=_.Rr(function(a){var b=a.data;a=_.Nr(function(){return b().slots},[]);
var c=_.Nr(function(){return b().layoutProperties},{}),d=_.v().resolve(_.Ps);
return _.q("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:$mc(c,d)},_.q(_.ni,{each:a,keyBy:"INDEX"},function(e){return _.q("div",{class:"ytContainerLayoutViewModelSlot",style:$mc(function(){return e().layoutProperties},d)},_.q(_.Eu,{data:function(){return e().contents}},{containerLayoutViewModel:WX,
badgeViewModel:_.qL,buttonViewModel:_.Ju,styledTextViewModel:yqc,contentPreviewImageViewModel:function(g){return _.q(_.rL,{data:g.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(g){return _.q(zqc,{data:g.data,preserveWidth:!0,preserveHeight:!0})}}))}))});
WX.idomCompat=!0;var Aqc=_.Rr(function(a){var b=a.data;var c=a.stateFns;var d=function(){var r=b(),t=r.productId;return!(!r.clearGroupId&&!t)},e=function(){var r=b(),t=r.clearGroupId;
return(r=r.productId)?c().isProductSelected(r):t?c().getSelectedProductByGroupId(t)==null:!1},g=function(){var r=b(),t=r.clearGroupId;
if(r=r.productId)c().onProductSelected(r);else if(t)c().onClearGroupSelected(t)},k=function(){var r=b(),t=r.clearGroupId;
if(r=r.productId){var u;return"group:"+(((u=c().getProductById(r))==null?void 0:u.groupId)||"")}return t?"group:"+t:""},m=_.Nr(function(){return b().header},[]),n=_.Nr(function(){return b().body},[]);
return _.q("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.q(_.oi,{cond:function(){return m().length>0||d()},
then:function(){return _.q("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.q("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.q(_.Eu,{data:m},{containerLayoutViewModel:function(r){return _.q("div",{class:"ytPdpCardSectionViewModelContentItem"},_.q(WX,{data:r.data}))},
styledTextViewModel:function(r){return _.q("div",{class:"ytPdpCardSectionViewModelContentItem"},_.q(yqc,{data:r.data}))}})),_.q(_.oi,{cond:d,
then:function(){return _.q("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.q(_.p$b,{checked:e,name:k,onChange:g}))}}))}}),_.q(_.oi,{cond:function(){return n().length>0},
then:function(){return _.q("div",null,_.q(_.Eu,{data:n},{containerLayoutViewModel:function(r){return _.q("div",{class:"ytPdpCardSectionViewModelContentItem"},_.q(WX,{data:r.data}))}}))}}))});
Aqc.idomCompat=!0;var Bqc=_.Rr(function(a){var b=a.data;var c=a.stateFns;return _.q("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.q(_.oi,{cond:function(){return b().banner},
then:function(d){return _.q("div",{class:"ytPdpCardViewModelBanner"},_.q(_.wt,{text:d}))}}),_.q(_.Eu,{data:function(){return b().sections}},{pdpCardSectionViewModel:function(d){d=d.data;
var e={};return _.q("div",{class:_.jt("ytPdpCardViewModelSectionContainer",(e.ytPdpCardViewModelShowDividers=function(){return b().showDividers},e))},_.q(Aqc,{data:d,
stateFns:c}))}}))});
Bqc.idomCompat=!0;var Cqc=_.Rr(function(a){var b=a.data;var c=a.isOverlay;a={};return _.q("pdp-masthead-view-model",{class:_.jt("ytPdpMastheadViewModelHost",(a.ytPdpMastheadViewModelIsOverlay=c,a))},_.q(_.Eu,{data:function(){return b().image}},{contentPreviewImageViewModel:_.rL,
themedImageViewModel:function(d){return _.q(zqc,{data:d.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.q(_.oi,{cond:function(){return b().title},
then:function(d){return _.q("h1",{class:"ytPdpMastheadViewModelHeading"},_.q(_.wt,{text:d,isOverlay:c}))}}),_.q(_.ni,{each:function(){var d;
return(d=b().finePrint)!=null?d:[]}},function(d){return _.q("div",{class:"ytPdpMastheadViewModelFinePrint"},_.q(_.wt,{text:d,
isOverlay:c}))}))});
Cqc.idomCompat=!0;var Dqc=_.Rr(function(a){var b=a.data;var c=a.stateFns;return _.q("pdp-pricing-option-selector-view-model",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.q(_.ni,{each:function(){var d=c().getSelectedPricingOptions().map(function(g){return g.pricingOptionId}),e=c().getSelectedProductByGroupId(_.Gb(b().groupId));
return e?e.pricingOptions.map(function(g){return{pricingOption:g,isSelected:d.includes(g.pricingOptionId)}}):(_.Cl(Error("Dj`"+_.Gb(b().groupId))),[])},
keyBy:"INDEX"},function(d){return _.q("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.q("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.q(_.Eu,{data:function(){return d().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:WX})),_.q("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.q(_.p$b,{checked:function(){return d().isSelected},
onClick:function(){c().onPricingOptionSelected(d().pricingOption.pricingOptionId)}})))}))});
Dqc.idomCompat=!0;var Eqc=_.Rr(function(a){var b=a.data;var c=a.stateFns;return _.q("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.q(_.Eu,{data:function(){var d,e;return(e=(d=c().getSelectedPricingOptions()[0])==null?void 0:d.primaryButton)!=null?e:b().emptyStateButton}},{buttonViewModel:_.Ju}))});
Eqc.idomCompat=!0;var Fqc=_.Rr(function(a){var b=a.stateFns;return _.q("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.q(_.Eu,{data:function(){return b().getSelectedPricingOptions().flatMap(function(c){return c.summaryLines}).filter(function(c){return!!c})}},{containerLayoutViewModel:function(c){return _.q("div",{class:"ytPdpSummaryViewModelLineItem"},_.q(WX,{data:c.data}))}}))});
Fqc.idomCompat=!0;var Gqc=_.Rr(function(a){var b=a.data;a={};return _.q("divider-view-model",{class:_.jt("divider-view-model-wiz",(a["divider-view-model-wiz__inset-thin-padding"]=function(){return b().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},a))},_.q("div",{class:_.jt("divider-view-model-wiz__base-divider",function(){return pnc(b().dividerStyle)}),
style:_.rt({"background-color":function(){return b().backgroundColor?_.Bq(b().backgroundColor):void 0}})}))});
Gqc.idomCompat=!0;var Hqc=_.Rr(function(a){function b(J){var I=k();_.Kr(_.Iu("pdpStateEntity",I,{key:I,selectedPricingOptions:J}))}
var c=a.data;var d=a.internalScrolling;var e=a.stateFnsForTesting;var g=_.Nr(function(){return c().allProducts},[]),k=_.Nr(function(){return c().pdpStateEntityKey},""),m=_.tu(gnc,k),n=_.kh(function(){_.zh(!0);
var J;return(J=e==null?void 0:e())!=null?J:onc(m,g,b)},void 0,"POBqwe"),r=_.Nr(function(){return c().body},[]),t=_.Nr(function(){return c().columnBreakHints},[]),u=function(){return c().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},w=function(){return u()||c().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},A=_.kh(function(){var J=_.fv(c().background),I;
if(J==null?0:(I=J.sources)==null?0:I.length){var R=R===void 0?!0:R;J=_.aRa(void 0,J.sources,void 0,R,R?1E3:void 0,R?void 0:1E3)}else J=null;return J},void 0,"BkCmEd");
a=_.rt({"--pdp-view-model-background":function(){return A()?"url("+A()+")":void 0}});
var C={};d=_.jt("ytPdpViewModelHost",(C.ytPdpViewModelHasBackground=function(){return w()||!!A()},C.ytPdpViewModelHasDarkBackground=w,C.ytPdpViewModelHasScrim=u,C.ytPdpViewModelInternalScrolling=_.Nr(d,!1),C));
var G=function(J){var I={};return _.jt("ytPdpViewModelItem",(I.ytPdpViewModelFullBleed=function(){return _.BWa(J())==="dividerViewModel"||_.BWa(J())==="sectionHeaderViewModel"},I.ytPdpViewModelNoVerticalPadding=function(){return _.BWa(J())==="sectionHeaderViewModel"},I))};
_.vi(function(){var J=c().onStartCommand;if(J&&(J=_.Es(J))){var I;(I=_.v().resolve(_.Xi))==null||I.resolveCommand(J)}});
return _.q("pdp-view-model",{class:d,style:a},_.q("div",{class:"ytPdpViewModelColumnContainer"},_.q(_.ni,{each:function(){return qnc(r(),t())},
keyBy:"INDEX"},function(J){return _.q("div",{class:"ytPdpViewModelColumn"},_.q(_.Eu,{data:J},{containerLayoutViewModel:function(I,R){I=I.data;return _.q("div",{class:G(function(){return J()[R()]})},_.q(WX,{data:I}))},
dividerViewModel:function(I,R){I=I.data;return _.q("div",{class:G(function(){return J()[R()]})},_.q(Gqc,{data:I}))},
pdpCardViewModel:function(I,R){I=I.data;return _.q("div",{class:G(function(){return J()[R()]})},_.q(Bqc,{data:I,
stateFns:n}))},
pdpMastheadViewModel:function(I,R){I=I.data;return _.q("div",{class:G(function(){return J()[R()]})},_.q(Cqc,{data:I,
isOverlay:w}))},
pdpPricingOptionSelectorViewModel:function(I,R){I=I.data;return _.q("div",{class:G(function(){return J()[R()]})},_.q(Dqc,{data:I,
stateFns:n}))},
pdpPrimaryButtonViewModel:function(I,R){I=I.data;return _.q("div",{class:G(function(){return J()[R()]})},_.q(Eqc,{data:I,
stateFns:n}))},
pdpSummaryViewModel:function(I,R){I=I.data;return _.q("div",{class:G(function(){return J()[R()]})},_.q(Fqc,{data:I,
stateFns:n}))},
sectionHeaderViewModel:function(I,R){I=I.data;return _.q("div",{class:G(function(){return J()[R()]})},_.q(_.aQ,{data:I}))}}))})))});
Hqc.idomCompat=!0;_.Ws(Hqc,"pdp-view-model",{props:{data:_.SG,stateFnsForTesting:_.Vs,internalScrolling:_.Vs}});var Iqc=_.Rr(function(a){var b=a.data;var c=a.className;var d=_.tu(_.jw,function(){return b().flowStateEntityKey});
return _.q("ytm-premium-purchase-button-renderer",{class:_.jt("yt-premium-purchase-button-renderer",c)},_.q(_.Eu,{data:function(){var e;return(e=_.y(d(),mX))==null?void 0:e.primaryButtonOverride}},{buttonRenderer:function(e){return _.q(_.dL,{data:e.data,
className:c})},
buttonViewModel:function(e){return _.q(_.Ju,{data:e.data,className:c})}}))});
Iqc.idomCompat=!0;var Jqc=_.Rr(function(a){var b=a.data;var c=function(){return rnc(b().style)},d=_.jt("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",c),e=_.jt("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",c);
return _.q("yt-flow-bottom-bar-renderer",{class:_.jt("yt-flow-bottom-bar-renderer",a.className,c)},_.q(_.Eu,{data:function(){return b().secondaryButton}},{buttonRenderer:function(g){return _.q(_.dL,{data:g.data,
className:e})},
buttonViewModel:function(g){return _.q(_.Ju,{data:g.data,className:e})},
premiumPurchaseButtonRenderer:function(g){return _.q(Iqc,{data:g.data,className:e})}}),_.q(_.Eu,{data:function(){return b().primaryButton}},{buttonRenderer:function(g){return _.q(_.dL,{data:g.data,
className:d})},
buttonViewModel:function(g){return _.q(_.Ju,{data:g.data,className:d})},
premiumPurchaseButtonRenderer:function(g){return _.q(Iqc,{data:g.data,className:d})}}))});
Jqc.idomCompat=!0;_.Ws(Jqc,"yt-flow-bottom-bar-renderer",{props:{data:_.SG,className:_.SG}});var Kqc=_.Rr(function(a){return _.q("yt-offer-summary-renderer",{class:_.jt(a.className,"ytOfferSummaryRendererHost")},_.q("div",{class:"ytOfferSummaryRendererTextContainer"},_.q("div",{class:"ytOfferSummaryRendererEyebrowText"},_.q(_.wt,{text:function(){return a.data().eyebrowText}})),_.q("div",{class:"ytOfferSummaryRendererTitle"},_.q(_.wt,{text:function(){return a.data().title}})),_.q("div",{class:"ytOfferSummaryRendererSubtitle"},_.q(_.wt,{text:function(){return a.data().subtitle}})),_.q("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.q(_.ni,{each:function(){var b;
return(b=a.data().featureListData)!=null?b:[]}},function(b){var c;
return _.q("div",{class:"ytOfferSummaryRendererFeatureList"},_.q(_.tt,{icon:(c=b.icon)==null?void 0:c.iconType,className:b.style==="BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"ytOfferSummaryRendererFeatureListIconGreen":"ytOfferSummaryRendererFeatureListIconDefault"}),_.q("div",{class:"ytOfferSummaryRendererFeatureListText"},_.q(_.wt,{text:b.text})))})),_.q("div",{class:"ytOfferSummaryRendererDescription"},_.q(_.wt,{text:function(){return a.data().description}}))))});_.Ws(_.Rr(function(a){var b={};b=_.jt("ytOfferSummaryFlowStepRendererHost",(b.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=a.shouldDisableHeaderTopMargin,b));return _.q("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:b},_.q("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.q("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.q(_.wt,{text:function(){return a.data().header}})),_.q("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.q(_.wt,{text:function(){return a.data().subtitle}}))),_.q("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.q(_.Eu,{data:function(){return a.data().offerSummary}},{offerSummaryRenderer:function(c){return _.q(Kqc,{data:c.data,
className:a.flowClassName})}})))}),"yt-offer-summary-flow-step-renderer",{props:{data:_.Vs,
flowClassName:_.Vs,flowStateEntityKey:_.Vs,shouldDisableHeaderTopMargin:_.Vs}});var Lqc=_.Rr(function(a){var b=a.data;var c=a.className;var d=a.flowStateEntityKey;var e=a.selectionStepStyle;a=_.ot(function(n){var r=b(),t=d==null?void 0:d();n.target&&(n.stopPropagation(),n=t||"",t=_.jw(_.Ir().getState(),n),r=Object.assign({},t,{premiumPurchaseFlowState:{selectedOptionId:r.optionId,primaryButtonOverride:r.primaryButtonOverride}}),_.Ir().dispatch(_.vu("flowStateEntity",n,r)));return!1});
var g=function(){return(d==null?void 0:d())||""},k=_.tu(_.jw,g);
_.vi(function(){var n=b(),r=g(),t=k();!_.y(t,mX)&&n.defaultSelected&&r!==""&&n.primaryButtonOverride&&snc(n.optionId||"",r,n.primaryButtonOverride,t)});
var m={};return _.q("ytm-option-item-renderer",{"on:click":a,class:_.jt(c,"ytm-option-item-renderer",(m["ytm-option-item-renderer--lp2-style"]=function(){return(e==null?void 0:e())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},m))},_.q("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.q("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var n=b(),r=g(),t=k();t=_.y(t,mX);return(t?(t==null?void 0:t.selectedOptionId)||"":n.defaultSelected&&r!==""?(n==null?void 0:n.optionId)||"":"")===b().optionId},
name:("input"+_.Kv(_.Lv)).toString()})),_.q("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.q(_.oi,{cond:function(){return b().eyebrowText},
then:function(){return _.q("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.q(_.wt,{text:function(){return b().eyebrowText}}))}}),_.q("div",{class:"ytm-option-item-renderer__option-item-title"},_.q(_.wt,{text:function(){return b().title}})),_.q("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.q(_.wt,{text:function(){return b().subtitle}})),_.q("div",{class:"ytm-option-item-renderer__option-item-description"},_.q(_.wt,{text:function(){return b().description}}))))});var Mqc=_.Rr(function(a){var b=a.data;var c=a.flowClassName;var d=a.flowStateEntityKey;var e=a.selectionStepStyle;return _.q("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"yt-option-section-renderer"},_.q("div",{class:"yt-option-section-renderer__option-section-header-section"},_.q("div",{class:"yt-option-section-renderer__option-section-header"},_.q(_.wt,{text:function(){return b().title}}),_.q(_.Eu,{data:function(){return b().titleBadge}},{badgeViewModel:function(g){return _.q(_.qL,
{data:g.data,
class:"yt-option-section-renderer__option-section-title-badge"})}})),_.q(_.oi,{cond:function(){return b().subtitle},
then:function(){return _.q("div",{class:"yt-option-section-renderer__option-section-subtitle"},_.q(_.wt,{text:function(){return b().subtitle}}))}}),_.q(_.oi,{cond:function(){return b().featureListData},
then:function(g){return _.q("div",{class:"yt-option-section-renderer__option-section-feature-list"},_.q(_.ni,{each:g},function(k){var m;return _.q("div",{class:"yt-option-section-renderer__option-section-feature-item"},_.q(_.tt,{icon:(m=k.icon)==null?void 0:m.iconType,className:k.style==="BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"yt-option-section-renderer__option-section-feature-item-icon-green":"yt-option-section-renderer__option-section-feature-item-icon-default"}),_.q("div",
{class:"yt-option-section-renderer__option-section-feature-item-text"},_.q(_.wt,{text:k.text})))}))}}),_.q(_.ni,{each:function(){return b().sectionDisclaimers||[]}},function(g){return _.q("div",{class:"yt-option-section-renderer__option-section-disclaimer"},_.q(_.wt,{text:g}))})),_.q(_.Eu,{data:function(){return b().optionItems}},{optionItemRenderer:function(g){return _.q("div",{class:"yt-option-section-renderer__option-item"},_.q(Lqc,{data:g.data,
className:c,flowStateEntityKey:d,selectionStepStyle:e}))}}),_.q(_.oi,{cond:function(){return b().offerText},
then:function(){return _.q("div",{class:"yt-option-section-renderer__option-section-offer-text"},_.q(_.wt,{text:function(){return b().offerText}}))}}))});
Mqc.idomCompat=!0;var Nqc=_.Rr(function(a){var b=a.data;var c=a.flowClassName;var d=a.flowStateEntityKey;a=a.isDesktop;var e=function(){var r;return(r=b().flowStateEntityKey)!=null?r:d==null?void 0:d()},g=function(){return(e==null?void 0:e())||""},k=function(){return b().style},m=_.tu(_.jw,g);
_.vi(function(){var r=b(),t=g(),u=m();!_.y(u,mX)&&r.noPreselect&&t!==""&&r.defaultButtonOverride&&snc("default",t,r.defaultButtonOverride,u)});
var n={};return _.q("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.jt("ytm-option-selection-flow-step-renderer",(n["ytm-option-selection-flow-step-renderer--desktop"]=a,n["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return b().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},n))},_.q("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"},
_.q("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.q(_.wt,{text:function(){return b().header}})),_.q("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.q(_.wt,{text:function(){return b().subtitle}}))),_.q(_.Eu,{data:function(){return b().optionItems||[]}},{optionItemRenderer:function(r){return _.q("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.q(Lqc,{data:r.data,
className:c,flowStateEntityKey:e,selectionStepStyle:k}))},
optionSectionRenderer:function(r){return _.q("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.q(Mqc,{data:r.data,flowClassName:c,flowStateEntityKey:e,selectionStepStyle:k}))}}))});
Nqc.idomCompat=!0;_.Ws(Nqc,"yt-option-selection-flow-step-renderer",{props:{data:_.SG,flowClassName:_.SG,flowStateEntityKey:_.SG,isDesktop:_.SG}});var tnc,unc;_.XX=_.Rr(function(a){var b=_.Or(a,{type:1,disablePadding:!1,disablePrimaryButton:!1}),c=b.data,d=b.type;a=b.disablePadding;var e=b.disablePrimaryButton,g=b.onClickPrimaryButton,k=function(){return c().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},m=function(){return{disabled:e(),
state:e()?"disabled":"active"}},n=function(){return c().leadingLabel||c().trailingLabel};
b={};return _.q("yt-panel-footer-view-model",{class:_.jt("yt-panel-footer-view-model-wiz",(b["yt-panel-footer-view-model-wiz--hide-divider"]=function(){return c().shouldHideDivider},b["yt-panel-footer-view-model-wiz--disable-padding"]=a,b))},_.q(_.oi,{cond:n,
then:function(){var r={},t={};return _.q("div",{class:_.jt("yt-panel-footer-view-model-wiz__text-row",(r["yt-panel-footer-view-model-wiz--row-bottom-padding"]=function(){var u=c();return!(!u.leadingLabel&&!u.trailingLabel||!u.primaryButton&&!u.secondaryButton)},r))},_.q(_.wt,{text:function(){return c().leadingLabel},
className:_.jt((t["yt-panel-footer-view-model-wiz--text-padding"]=n,t))}),_.q(_.wt,{text:function(){return c().trailingLabel}}))}}),_.q(_.oi,{cond:k,
then:function(){var r={};return _.q("div",{class:"yt-panel-footer-view-model-wiz__button-stack"},_.q("div",{class:_.jt("yt-panel-footer-view-model-wiz__primary-button",(r["yt-panel-footer-view-model-wiz__button-stack--top-button"]=function(){return c().secondaryButton},r))},_.q(_.Eu,{data:function(){return c().primaryButton}},{buttonViewModel:function(t){return _.q(_.Ju,{data:t.data,
buttonOverrides:m,onClick:g})}})),_.q(_.Eu,{data:function(){return c().secondaryButton}},{buttonViewModel:_.Ju}))}}),_.q(_.oi,{cond:function(){return!k()},
then:function(){var r={},t={},u={};return _.q("div",{class:_.jt("yt-panel-footer-view-model-wiz__button-row",(r["yt-panel-footer-view-model-wiz__button-row--trailing"]=function(){return 3===d()},r))},_.q("div",{class:_.jt("yt-panel-footer-view-model-wiz__button-row--left-button",(t["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 1===d()},t["yt-panel-footer-view-model-wiz__button-row--hidden"]=function(){return!c().secondaryButton||0===d()},t["yt-panel-footer-view-model-wiz__button-row--shrink"]=
function(){return 2===d()},t))},_.q(_.Eu,{data:function(){return c().secondaryButton}},{buttonViewModel:_.Ju})),_.q("div",{class:_.jt("yt-panel-footer-view-model-wiz__primary-button",(u["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 0===d()||1===d()},u["yt-panel-footer-view-model-wiz__button-row--expand"]=function(){return 2===d()},u))},_.q(_.Eu,{data:function(){return c().primaryButton}},{buttonViewModel:function(w){return _.q(_.Ju,{data:w.data,
buttonOverrides:m,onClick:g})}})))}}))});
_.XX.idomCompat=!0;_.Oqc=_.Rr(function(a){a=_.Or(a,{disablePadding:!1});var b=a.data,c=a.disablePadding;a=_.ync(function(){return b().formId});
var d=a.onSubmit,e=a.isValid,g=a.isSubmitting;return _.q("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.q(_.Eu,{data:function(){return b().panelFooter}},{panelFooterViewModel:function(k){return _.q(_.XX,{data:k.data,
onClickPrimaryButton:function(){d()},
disablePrimaryButton:function(){return!e()||g()},
disablePadding:c})}}))});_.Ws(_.Oqc,"yt-form-footer-view-model",{props:{data:_.SG,disablePadding:_.SG}});_.Ws(_.Rr(function(a){return _.q("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.q("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.q(_.oi,{cond:function(){var b;return(b=a.data())==null?void 0:b.image},
then:function(b){return _.q(_.Ss,{data:b,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.q("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.q(_.wt,{text:function(){var b;
return(b=a.data())==null?void 0:b.title}})),_.q("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.q(_.wt,{text:function(){var b;
return(b=a.data())==null?void 0:b.subtitle}})),_.q("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentButton"},_.q(_.Eu,{data:function(){var b;
return(b=a.data())==null?void 0:b.viewTipsButton}},{buttonViewModel:_.Ju}))))}),"yt-contributor-zero-state-view-model",{props:{data:_.SG}});var Pqc=_.Rr(function(a){var b=_.tu(znc,_.Nr(function(){var c;return(c=a.data())==null?void 0:c.noteFeedEntityKey},""));
return _.q("yt-note-view-model",{class:"ytNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.q("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.q("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.q(_.oi,{cond:function(){var c,d;return(c=a.data())==null?void 0:(d=c.noteData)==null?void 0:d.isPinned},
then:function(){return _.q(_.tt,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIconPin"})}}),_.q(_.wt,{text:function(){var c,d;
return(c=a.data())==null?void 0:(d=c.noteData)==null?void 0:d.headerText}}),_.q("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},_.q(_.wt,{text:function(){var c,d;
return(c=a.data())==null?void 0:(d=c.noteData)==null?void 0:d.delimiter}})),_.q(_.wt,{text:function(){var c,d;
return(c=b())==null?void 0:(d=c.contributorNote)==null?void 0:d.publishedTimeText}})),_.q(_.Eu,{data:function(){var c,d,e,g=(c=a.data())==null?void 0:c.noteData;
c=(d=b())==null?void 0:(e=d.contributorNote)==null?void 0:e.deleteAction;return{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",accessibilityText:g.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:g.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:g.deleteDialogTitle}]},dialogMessages:[{runs:[{text:g.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:g.deleteActionText}]},command:{performCommentActionEndpoint:{action:c}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:g.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}}},
{buttonViewModel:function(c){return _.q(_.Ju,{data:c.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.q("div",{class:"ytNoteViewModelNoteContent"},_.q(_.wt,{text:function(){var c,d;
return(c=b())==null?void 0:(d=c.contributorNote)==null?void 0:d.text}})))});
Pqc.idomCompat=!0;_.Ws(Pqc,"yt-note-view-model",{props:{data:_.SG}});var pX=_.Rr(function(a){var b=_.Or(a,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),c=b.label,d=b.text,e=b.placeholder,g=b.hint;a=b.rows;var k=b.overflowStyle,m=b.outline,n=b.disabled,r=b.disableNewLines,t=b.characterLimit,u=b.validation,w=b.onInput,A=_.Rl();b=_.h(_.qt(function(){return d()}));
var C=b.next().value,G=b.next().value;b=_.h(_.fh(!1,"fXvinf"));var J=b.next().value,I=b.next().value,R=function(){I(!0)},ca=function(){I(!1)};
_.vi(function(){var kb=A.value,Ua=k(),Fc=C();Ua==="expand-vertically"&&Fc&&Anc(kb);A.value.addEventListener("focusin",R);A.value.addEventListener("focusout",ca)});
_.wh(function(){A.value.removeEventListener("focusin",R);A.value.removeEventListener("focusout",ca)});
var V=function(){var kb;return(kb=u())==null?void 0:kb.validate(C())},fa=function(){return t()&&!V()&&C().length>t().maxChars},aa=function(){return!!V()||fa()};
b=_.ot(function(kb){if(!kb.currentTarget)return!1;kb=kb.currentTarget;G(kb.value);k()==="expand-vertically"&&Anc(kb);w==null||w(kb.value);return!0});
var ma=_.ot(function(kb){r()&&kb.key==="Enter"&&kb.preventDefault();return!1}),Ba=_.ot(function(){A.value.focus()}),Da=function(){return e()||c()},za={},Fa={},bb={};
return _.q("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.q("div",{class:_.jt("ytStandardsTextareaShapeTextareaContainer",(za.ytStandardsTextareaShapeTextareaContainerOutline=m,za.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=n,za.ytStandardsTextareaShapeTextareaContainerOutlineError=aa,za)),"on:click":Ba},_.q("label",{class:_.jt("ytStandardsTextareaShapeLabel",(Fa.ytStandardsTextareaShapeLabelFocused=J,Fa.ytStandardsTextareaShapeLabelDisabled=n,Fa.ytStandardsTextareaShapeLabelError=
function(){return aa()&&!n()},Fa.ytStandardsTextareaShapeLabelHidden=function(){return!J()&&!C()&&!!Da()},Fa))},c),_.q("div",{class:_.jt("ytStandardsTextareaShapePlaceholder",(bb.ytStandardsTextareaShapePlaceholderVisible=function(){return!J()&&!C()},bb)),
"aria-hidden":"true"},Da),_.q("textarea",{el:A,class:"ytStandardsTextareaShapeTextarea",rows:a,disabled:n,placeholder:Da,"on:input":b,"on:keydown":ma},C)),_.q(_.oi,{cond:function(){return g()&&!aa()},
then:function(){var kb={};return _.q("div",{class:_.jt("ytStandardsTextareaShapeHint",(kb.ytStandardsTextareaShapeHintDisabled=n,kb))},_.q("div",{class:"ytStandardsTextareaShapeHintHintMessage"},g))}}),_.q(_.oi,{cond:V,
then:function(){return _.q(Qqc,{disabled:n},_.q("div",{class:"ytStandardsTextareaShapeErrorMessage"},V))}}),_.q(_.oi,{cond:t,
then:function(kb){return _.q(_.oi,{cond:fa,then:function(){return _.q(Qqc,{disabled:n},_.q("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return kb().errorMessage}),_.q("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return C().length+"/"+kb().maxChars}))}})}}))});
pX.idomCompat={callbacks:{onInput:!0}};var Qqc=_.Rr(function(a){var b={};return _.q("div",{class:_.jt("ytStandardsTextareaShapeError",(b.ytStandardsTextareaShapeErrorDisabled=a.disabled,b)),role:"alert"},_.q(_.tt,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),a.children)});_.Rqc=_.Rr(function(a){var b=a.data;return _.q("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.q(pX,{text:a.text,label:function(){var c;return(c=b().contentProperties)==null?void 0:c.labelText},
placeholder:function(){var c;return(c=b().contentProperties)==null?void 0:c.placeholderText},
hint:function(){var c;return(c=b().contentProperties)==null?void 0:c.hintText},
outline:function(){var c;return!((c=b().displayProperties)==null?0:c.hideBorder)},
overflowStyle:function(){var c;return((c=b().displayProperties)==null?0:c.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:a.disabled,disableNewLines:function(){var c;return(c=b().displayProperties)==null?void 0:c.disableNewLines},
onInput:a.onInput,characterLimit:a.characterLimit,validation:a.validation,rows:function(){var c;return(c=b().displayProperties)==null?void 0:c.rows}}))});_.Sqc=_.Rr(function(a){var b=a.data;return _.q("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.q(pX,{text:a.text,label:function(){var c;return(c=b().contentProperties)==null?void 0:c.labelText},
placeholder:function(){var c;return(c=b().contentProperties)==null?void 0:c.placeholderText},
hint:function(){var c;return(c=b().contentProperties)==null?void 0:c.hintText},
outline:function(){var c;return!((c=b().displayProperties)==null?0:c.hideBorder)},
overflowStyle:function(){var c;return((c=b().displayProperties)==null?0:c.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var c;return(c=b().displayProperties)==null?void 0:c.disableNewLines},
onInput:a.onInput,characterLimit:a.characterLimit,validation:a.validation,rows:function(){var c;return(c=b().displayProperties)==null?void 0:c.rows}}))});var Tqc=_.Rr(function(a){var b=_.h(_.qt(function(){var Da,za;return((Da=a.data().structuredContextNoteFormSchema)==null?0:(za=Da.initialValues)==null?0:za.noteBody)?a.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),c=b.next().value,d=b.next().value;
b=_.h(_.qt(function(){a.data();return!1}));
var e=b.next().value,g=b.next().value;b=_.h(_.qt(function(){a.data();return!1}));
var k=b.next().value,m=b.next().value;b=_.h(_.qt(function(){var Da,za;return((Da=a.data().structuredContextNoteFormSchema)==null?0:(za=Da.initialValues)==null?0:za.timestamp)?a.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var n=b.next().value,r=b.next().value;b=_.h(_.qt(function(){a.data();return!1}));
var t=b.next().value,u=b.next().value;b=_.h(_.qt(function(){var Da,za;return((Da=a.data().structuredContextNoteFormSchema)==null?0:(za=Da.initialValues)==null?0:za.sources)?[a.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var w=b.next().value,A=b.next().value;b=_.h(_.qt(function(){a.data();return!1}));
var C=b.next().value,G=b.next().value;b=_.h(_.qt(function(){return!1}));
var J=b.next().value,I=b.next().value;_.vi(function(){var Da;_.xnc((Da=a.data().structuredContextNoteFormSchema)==null?void 0:Da.id,{isSubmitting:J,onSubmit:function(){I(!0);var za=Jnc(c(),n(),w(),a.data()),Fa=_.v().resolve(_.Xi);za&&Fa&&Fa.resolveCommand(za,{commandController:{onSuccess:function(){I(!1)}}})},
isValid:function(){return e()&&!k()&&!t()&&!C()}})});
var R=function(Da){if(Da!==void 0&&(d(Da),!e()&&Da.length>0&&g(!0),e())){var za=Dnc(a.data());if(za){var Fa=za.minLength;za=za.maxLength;Fa&&Da.length<Fa?m(!0):za&&Da.length>za?m(!0):m(!1)}}},ca=function(Da){if(Da!==void 0){r(Da);
if(Da.length>0){var za,Fa,bb,kb,Ua=Fnc((za=a.data())==null?void 0:(Fa=za.structuredContextNoteFormSchema)==null?void 0:(bb=Fa.fieldSchemas)==null?void 0:(kb=bb.timestamp)==null?void 0:kb.validationSchema);if(Ua&&(za=Ua.regex)&&!(new RegExp(za)).test(Da)){u(!0);return}}u(!1)}},V=function(Da){if(Da!==void 0){var za=Da.split(/[ \n]/).map(function(Fa){return Fa.trim()});
A(za);if(Da.length>0)for(Da=_.h(za),za=Da.next();!za.done;za=Da.next())if(!Inc(za.value)){G(!0);return}G(!1)}},fa=function(){return{validate:function(Da){if(e()){var za=Dnc(a.data());
if(za){var Fa=za.minLength;za=za.translations;if(Fa&&Da.length<Fa)return za==null?void 0:za.minLengthErrorMessage}}}}},aa=function(){var Da=Dnc(a.data()),za=Da==null?void 0:Da.maxLength,Fa;
Da=Da==null?void 0:(Fa=Da.translations)==null?void 0:Fa.maxLengthErrorMessage;if(za&&Da)return{maxChars:za,errorMessage:Da}},ma=function(){return{validate:function(Da){if(Da){var za,Fa,bb,kb,Ua=Fnc((za=a.data())==null?void 0:(Fa=za.structuredContextNoteFormSchema)==null?void 0:(bb=Fa.fieldSchemas)==null?void 0:(kb=bb.timestamp)==null?void 0:kb.validationSchema);
if(Ua&&(za=Ua.regex,Ua=Ua.translations,za&&!(new RegExp(za)).test(Da)))return Ua==null?void 0:Ua.regexErrorMessage}}}},Ba=function(){return{validate:function(Da){if(Da){var za,Fa,bb,kb,Ua=Hnc((za=a.data())==null?void 0:(Fa=za.structuredContextNoteFormSchema)==null?void 0:(bb=Fa.fieldSchemas)==null?void 0:(kb=bb.sources)==null?void 0:kb.validationSchema);
if(Ua&&(za=Ua.translations,za==null?0:za.selectedErrorMessage))for(Da=Da.split(/[ \n]/).map(function(Fc){return Fc.trim()}),Da=_.h(Da),Fa=Da.next();!Fa.done;Fa=Da.next())if(!Inc(Fa.value))return Da=void 0,(Da=za)==null?void 0:Da.selectedErrorMessage}}}};
return _.q("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.q("div",{class:"ytStructuredContextNoteViewModelTextField"},_.q(_.Eu,{data:function(){var Da;return(Da=a.data())==null?void 0:Da.noteContents}},{textFormFieldViewModel:function(Da){return _.q(_.Sqc,{data:Da.data,
onInput:R,validation:fa,characterLimit:aa})},
textFieldViewModel:function(Da){return _.q(_.Rqc,{data:Da.data,onInput:R,validation:fa,characterLimit:aa})}})),_.q("div",{class:"ytStructuredContextNoteViewModelTextField"},_.q(_.Eu,{data:function(){var Da;
return(Da=a.data())==null?void 0:Da.noteTimestamp}},{textFormFieldViewModel:function(Da){return _.q(_.Sqc,{data:Da.data,
onInput:ca,validation:ma})},
textFieldViewModel:function(Da){return _.q(_.Rqc,{data:Da.data,onInput:ca,validation:ma})}})),_.q("div",{class:"ytStructuredContextNoteViewModelTextField"},_.q(_.Eu,{data:function(){var Da;
return(Da=a.data())==null?void 0:Da.noteSources}},{textFormFieldViewModel:function(Da){return _.q(_.Sqc,{data:Da.data,
onInput:V,validation:Ba})},
textFieldViewModel:function(Da){return _.q(_.Rqc,{data:Da.data,onInput:V,validation:Ba})}})))});
Tqc.idomCompat=!0;_.Ws(Tqc,"yt-structured-context-note-view-model",{props:{data:_.SG}});var Uqc=_.Rr(function(a){var b=_.h(_.qt(function(){var g;if((g=a.controlled)==null?0:g.call(a))return[];var k;return(((k=a.data())==null?void 0:k.chips)||[]).map(function(m){m=_.y(m,_.SE);if(m==null?0:m.selected)return Knc(m.chipValue)}).filter(function(m){return m!==void 0})})),c=b.next().value,d=b.next().value,e=function(g){var k=Knc(g.chipValue);
if(k!==void 0){var m;if((m=a.controlled)==null?0:m.call(a))return void a.controlled().onTap(k);g=c().includes(k)?[].concat(_.Be(c().filter(function(r){return r!==k}))):[].concat(_.Be(c()),[k]);
d(g);var n;if((n=a.uncontrolled)==null?0:n.call(a))a.uncontrolled().onUpdate(g)}};
return _.q("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.q(_.ni,{each:function(){return a.data().chips||[]}},function(g){return _.q("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.q(_.a$b,{data:function(){return _.y(g,_.SE)},
selected:function(){var k;if(k=_.y(g,_.SE)){var m=Knc(k.chipValue);if(m!==void 0){var n;k=((n=a.controlled)==null?0:n.call(a))?a.controlled().selectedValues.includes(m):c().includes(m)}else k=void 0}else k=!1;return k},
callback:e}))}))});var Vqc=_.Rr(function(a){var b=a.data;var c=function(){var m;return((m=b())==null?void 0:m.flowStateKey)||""},d=_.tu(_.jw,c),e=function(){var m;
return(m=_.y(d(),Hoc))==null?void 0:m.chips},g=function(m){if(m!==void 0){var n=e()||[];
n=n.find(function(r){return r===m})?n.filter(function(r){return r!==m}):[].concat(_.Be(n),[m]);
n=Object.assign({},d(),{feedbackFormFlowState:Object.assign({},_.y(d(),Hoc),{chips:n})});_.Kr(_.vu("flowStateEntity",c(),n))}},k=function(){var m;
return _.y((m=b())==null?void 0:m.inputBox,oX)};
a=_.Dy(function(m){var n=k();n=!(n==null?0:n.maxChars)||m.length<=n.maxChars;m=Object.assign({},d(),{feedbackFormFlowState:Object.assign({},_.y(d(),Hoc),{detail:m}),abuseReportFlowState:Object.assign({},_.y(d(),nX),{navigationEnabled:n})});_.Kr(_.vu("flowStateEntity",c(),m))},150);
return _.q("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.q("div",{class:"ytFeedbackFormViewModelChips"},_.q(_.Eu,{data:function(){var m;return(m=b())==null?void 0:m.chipSelection}},{chipSelectionFormFieldViewModel:function(m){return _.q(Uqc,{data:m.data,
controlled:function(){return{selectedValues:e()||[],onTap:g}}})}})),_.q("div",{class:"ytFeedbackFormViewModelInputBox"},_.q(pX,{text:function(){var m;
return(m=_.y(d(),Hoc))==null?void 0:m.detail},
placeholder:function(){var m;return((m=k())==null?void 0:m.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var m=k();if(m&&m.maxChars)return{maxChars:m.maxChars,errorMessage:m.maxCharsExceededErrorMessage||""}},
onInput:a})),_.q("div",{class:"ytFeedbackFormViewModelFooterText"},_.q(_.wt,{text:function(){return b().footerText}})))});
Vqc.idomCompat=!0;_.Ws(Vqc,"yt-feedback-form-view-model",{props:{data:_.SG}});var Lnc=_.Au({buttonViewModel:_.Ju});_.am(Mnc);var Wqc=_.Rr(function(a){var b=a.data;var c=function(){return b().flowStateKey||""},d=_.tu(Gmc,c),e=function(){return _.y(d(),nX)},g=function(){if(_.x("enable_gff_accessibility_fix")){var k=!0,m;
if((m=e())==null?0:m.navigationEnabled){var n;_.Js((n=e())==null?void 0:n.navigationCommand);k=!1}m=Object.assign({},d(),{abuseReportFlowState:Object.assign({},e(),{isReportFormDirty:k})});_.Kr(_.vu("flowStateEntity",c(),m))}else _.Js((k=e())==null?void 0:k.navigationCommand)};
return _.q("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.q("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.q(_.Eu,{data:function(){return b().cancelButton}},{buttonViewModel:function(k){return _.q(_.Ju,{data:k.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:g})}}),_.q(_.Eu,{data:function(){var k;
if(b().navButton){var m=Object;var n=m.assign,r=_.y(b().navButton,_.Fu),t=((k=e())==null?0:k.navigationEnabled)||_.x("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",u,w;k=_.y((u=e())==null?void 0:u.navigationCommand,_.Ds);u=(w=_.y(k,_.Ml))==null?void 0:w.url;m={buttonViewModel:n.call(m,{},r,{state:t,iconName:u?"OPEN_IN_NEW":""})}}else m=void 0;return m}},{buttonViewModel:function(k){return _.q(_.Ju,{data:k.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:g})}})))}),Xqc=_.x("web_enable_sink_report_form_view_models")?Wqc:Mnc;
Wqc.idomCompat=!0;_.x("web_enable_sink_report_form_view_models")?_.Ws(Xqc,"yt-report-form-bottom-bar-view-model",{props:{data:_.SG}}):_.dt(Xqc,"yt-report-form-bottom-bar-view-model",{propNames:["data"]});_.am(Nnc);var Yqc=_.Rr(function(a){var b=a.nextStep;return _.q("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.q("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.q(_.tt,{icon:function(){return b().iconName||""}})),_.q("div",null,_.q(_.wt,{text:function(){return b().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))}),Zqc=_.Rr(function(a){var b=a.data;
var c,d=(c=_.v().resolve(_.Wi(_.Ns)))==null?void 0:c(),e=_.tu(_.jw,function(){return b().flowStateKey||""});
return _.q("yt-report-form-confirmation-page-view-model",{class:"ytWebReportFormConfirmationPageViewModelHost"},_.q("div",{class:function(){var g;return((g=_.y(e(),nX))==null?void 0:g.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.q(_.Ss,{data:function(){return d&&b().imageDark?b().imageDark:b().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.q("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.q("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return b().confirmationHeader}),_.q("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.q(_.wt,{text:function(){return b().confirmationText}})),_.q("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.q(_.wt,{text:function(){return b().lawEnforcementText}})),
_.q("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return b().whatToExpectHeader}),_.q(_.oi,{cond:function(){return b().nextSteps},
then:function(g){return _.q("div",null,_.q(_.ni,{each:g},function(k){return _.q(Yqc,{nextStep:k})}))}}),_.q(_.oi,{cond:function(){return b().legalReportText},
then:function(g){return _.q("div",null,_.q(_.wt,{text:g,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))}),$qc=_.x("web_enable_sink_report_form_view_models")?Zqc:Nnc;
Zqc.idomCompat=!0;_.x("web_enable_sink_report_form_view_models")?_.Ws($qc,"yt-report-form-confirmation-page-view-model",{props:{data:_.SG}}):_.dt($qc,"yt-report-form-confirmation-page-view-model",{propNames:["data"]});_.am(Onc);var arc=_.Rr(function(a){var b=a.data;var c=function(){var g;return((g=_.y(b().inputBox,oX))==null?void 0:g.maxChars)||500},d=function(){return b().flowStateKey||""},e=_.tu(_.jw,d);
a=_.Dy(function(g){g=Object.assign({},e(),{flowFormState:{isValid:g.length<=c()},abuseReportFlowState:{userComments:g,navigationEnabled:!(g.length>c()),isReportFormDirty:!0}});_.Ir().dispatch(_.Iu("flowStateEntity",d(),g))},150);
_.vi(function(){var g=Object.assign({},e(),{flowFormState:{isValid:!0}});_.Ir().dispatch(_.Iu("flowStateEntity",d(),g))});
return _.q("yt-report-form-details-page-view-model",{class:"ytWebReportFormDetailsPageViewModelHost"},_.q("h1",{class:function(){var g;return((g=_.y(e(),nX))==null?void 0:g.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return b().detailsPageHeader}),_.q("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.q(_.wt,{text:function(){return b().bodyText}})),_.q("div",{class:"ytWebReportFormDetailsPageViewModelInput"},
_.q(pX,{label:function(){var g;
return((g=_.y(b().inputBox,oX))==null?void 0:g.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var g;return{errorMessage:((g=_.y(b().inputBox,oX))==null?void 0:g.maxCharsExceededErrorMessage)||"",maxChars:c()}},
onInput:a})))}),brc=_.x("web_enable_sink_report_form_view_models")?arc:Onc;
arc.idomCompat=!0;_.x("web_enable_sink_report_form_view_models")?_.Ws(brc,"yt-report-form-details-page-view-model",{props:{data:_.SG}}):_.dt(brc,"yt-report-form-details-page-view-model",{propNames:["data"]});var crc=_.Rr(function(a){var b=a.data;var c=a.selectedKey;var d=a.onSelected;var e=a.groupName;var g=_.q("div",{class:"ytRadioButtonItemViewModelLabel"},_.q("div",null,function(){return b().text}),_.q("div",{class:"ytRadioButtonItemViewModelSubText"},function(){return b().subtext}));
a={};return _.q("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost",tabindex:0},_.q(_.p$b,{name:e,checked:function(){return!(c==null||!c()||b().key!==(c==null?void 0:c()))},
onChange:function(k){d==null||d(k.target,b(),e==null?void 0:e())},
labelRenderable:function(){return g},
ariaLabel:function(){return b().subtext?b().text+", "+b().subtext:b().text},
className:_.jt((a.ytRadioButtonItemViewModelSubTitle=function(){return!!b().subtext},a))}))});_.drc=_.Rr(function(a){var b=a.data;var c=a.onSelected;var d=a.selectedKey;var e=a.groupName;return _.q("yt-radio-button-group-view-model",{class:"yt-radio-button-group-view-model",tabindex:0},_.q("fieldset",{class:"yt-radio-button-group-view-model__fieldset"},_.q(_.Eu,{data:function(){return b().radioButtons}},{radioButtonItemViewModel:function(g){var k=g.data;
return _.q(crc,{data:k,onSelected:c,selectedKey:d,groupName:function(){return e!=null?e:k().key}})}})))});var erc=_.Rr(function(a){var b=a.data;var c=_.Sl(),d=function(){return b().flowStateKey||""},e=_.tu(_.jw,d),g=function(){return _.y(e(),nX)};
_.yh(function(){var k,m;if(((k=g())==null?0:k.isReportFormDirty)&&((m=g())==null||!m.navigationEnabled)&&_.x("enable_gff_accessibility_fix")){var n;if(((n=g())==null?void 0:n.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"){var r;(r=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderDialog"))==null||r.scrollIntoView()}else{var t;(t=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderPanel"))==null||t.scrollIntoView()}}},"c7z0Pe");
return _.q("yt-report-form-reason-select-page-view-model",{class:"ytWebReportFormReasonSelectPageViewModelHost"},_.q("h1",{class:function(){var k;return((k=g())==null?void 0:k.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return b().pageHeader}),_.q("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.q(_.wt,{text:function(){return b().bodyText}})),_.q("div",{class:function(){var k;
return((k=g())==null?void 0:k.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.q(_.oi,{cond:function(){var k,m;
return((k=g())==null?void 0:k.isReportFormDirty)&&!((m=g())==null?0:m.navigationEnabled)&&_.x("enable_gff_accessibility_fix")},
then:function(){return _.q("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonError",el:c},_.q(_.tt,{icon:"INFO",className:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorIcon",size:16}),_.q("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorMessage","aria-live":"polite"},function(){return b().emptyReasonSelectErrorMessage}))}}),_.q(_.drc,{data:function(){return _.y(b().radioButtonGroup,_.Poc)},
onSelected:function(k,m){k=Object.assign({},e(),{abuseReportFlowState:Object.assign({},g(),{reasonKey:m.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:m.command})});_.Kr(_.vu("flowStateEntity",d(),k))},
selectedKey:function(){var k;return(k=g())==null?void 0:k.reasonKey},
groupName:"report-form-reason-select-page"})))});
erc.idomCompat=!0;_.Ws(erc,"yt-report-form-reason-select-page-view-model",{props:{data:_.SG}});_.am(Pnc);var frc=_.Rr(function(a){var b=a.data;var c,d=(c=_.v().resolve(_.Wi(_.Ns)))==null?void 0:c();return _.q("yt-report-form-sign-in-page-view-model",{class:"yt-report-form-sign-in-page-view-model"},_.q("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-image"},_.q(_.Ss,{data:function(){return d&&b().imageDark?b().imageDark:b().image},
alt:""})),_.q("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-text-content"},_.q("h1",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-header"},function(){return b().header}),_.q(_.wt,{text:function(){return b().text},
className:"yt-report-form-sign-in-page-view-model__sign-in-prompt-body"})))}),grc=_.x("web_enable_sink_report_form_view_models")?frc:Pnc;
frc.idomCompat=!0;_.x("web_enable_sink_report_form_view_models")?_.Ws(grc,"yt-report-form-sign-in-page-view-model",{props:{data:_.SG}}):_.dt(grc,"yt-report-form-sign-in-page-view-model",{propNames:["data"]});_.Ws(_.Rr(function(a){var b=a.data;var c=function(){var r;return(r=b().textInputPlaceholder)==null?void 0:r.content},d=function(r){r=r.target.value.trim();
var t=b().onUpdateText;t&&_.Js(t,{form:{userQuery:r}});b().userQuery=r},e=_.Dy(function(r){d(r)},150),g=_.ot(function(r){e(r);
return!1}),k=_.ot(function(r){r.key==="Enter"&&(d(r),(r=b().onNextStepCommand)&&_.Js(r,{}));
return!1}),m=_.Rl(),n=function(){if(_.x("web_hide_explore_hub_until_user_navigates_back_to_home")){var r,t,u;
(u=(t=(r=m.value)==null?void 0:r.closest("ytd-flow-step-renderer"))==null?void 0:t.querySelector("yt-flow-bottom-bar-view-model button-view-model button"))==null||u.click()}};
return _.q("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:m},_.q("div",{class:"ytwTalkToRecsTopCornerButton"},_.q(_.Eu,{data:function(){return b().topCornerButton}},{buttonViewModel:_.Ju})),_.q("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.q("div",{class:"ytwTalkToRecsTitle"},_.q(_.wt,{text:function(){return b().title}})),_.q("div",{class:"ytwTalkToRecsSubtitle"},_.q(_.wt,{text:function(){return b().subtitle}})),_.q("div",{class:"ytwTalkToRecsChipsShelf"},_.q(_.Eu,{data:function(){return b().answersShelf}},
{chipsShelfViewModel:function(r){return _.q(_.m$b,{data:r.data,
callback:n})}})),_.q(_.oi,{cond:function(){return b().showOpenTextInput&&!_.x("web_hide_explore_hub_until_user_navigates_back_to_home")},
then:function(){return _.q("div",{class:"ytwTalkToRecsUserInputBox"},_.q("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:c,value:function(){return b().userQuery},
"on:input":g,"on:keyup":k}))}})))}),"yt-talk-to-recs-view-model",{props:{data:_.SG}});var Qnc={sources:[{clientResource:{imageName:"CHECK"}}]};_.hrc=_.Rr(function(a){var b=_.Rl();a=_.Or(a,{error:void 0});var c=a.data,d=a.error,e=a.onSelected;a=_.h(_.qt(function(){return Tnc(c())}));
var g=a.next().value,k=a.next().value;Xnc(c,function(u){k(u);var w,A,C=Snc((w=c().options)==null?void 0:(A=w[u])==null?void 0:A.value,c().type);e==null||e(C);b.value.focus()});
a=_.ot(function(){if(!c().disabled){var u=c(),w=g(),A=b.value;u.options&&(u=Rnc(u.options,w,u.label),_.v().resolve(_.GJ).openSheet({viewModel:u},A))}});
var m=_.vXa(),n=function(){return!!d()},r=function(){return!!c().disabled},t={};
t=_.jt("ytDropdownViewModelDropdownContainer",(t.ytDropdownViewModelDropdownContainerErrorBorder=n,t.ytDropdownViewModelDropdownContainerDisabled=r,t));return _.q("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.q("div",{class:t,"on:click":a,el:b,role:"combobox",tabindex:0,"on:keydown":m,"aria-invalid":n,"aria-disabled":r,"aria-describedby":function(){return n()?"dropdown-view-model-error":void 0}},_.q("div",{class:"ytDropdownViewModelText"},Unc(c,n,g),Vnc(c,g)),_.q("div",{class:"ytDropdownViewModelChevronDown"},
_.q(_.tt,{icon:"CHEVRON_DOWN"}))),Wnc(c,d))});_.Ws(_.Rr(function(a){var b=a.data;var c=function(e){var g=Znc(b());g.videoMetadata||(g.videoMetadata={});g.videoMetadata.sponsorshipsMetadata||(g.videoMetadata.sponsorshipsMetadata={});g.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(e)},d=function(e){var g=Znc(b());
g.scheduledRedirectMetadata||(g.scheduledRedirectMetadata={});g.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(e)};
return _.q("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.q("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.q("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.q(_.wt,{text:function(){return b().title}}),_.q(_.tt,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.q(_.wt,{text:function(){return b().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.q(_.Eu,{data:function(){return b().tierChoices}},{dropdownViewModel:function(e){return _.q("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.q(_.hrc,{data:e.data,
onSelected:c}))}}),_.q(_.Eu,{data:function(){return b().startTimeChoices}},{dropdownViewModel:function(e){return _.q("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.q(_.hrc,{data:e.data,
onSelected:d}))}}),_.q(_.wt,{text:function(){return b().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.q("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.q(_.Eu,{data:function(){return b().scheduleButton}},{panelFooterViewModel:_.XX})))}),"ytfz-schedule-fanzone-view-model",{props:{data:_.SG}});_.Ws(_.Rr(function(a){var b=a.data;a=a.className===void 0?"":a.className;var c=_.tu(Gmc,function(){return b().flowStateEntityKey||""}),d={};
d=_.jt("ytFlowBottomBarViewModelFlowBottomBarButtons",(d.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return b().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||b().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},d));
var e={},g=_.jt("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",d,(e.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return b().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},e.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return b().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},e));
e={};var k=_.jt("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",d,(e.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return b().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},e.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return b().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},e));
d={};d=_.jt("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(d.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return b().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},d.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return b().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},d.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return b().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
d));
return _.q("yt-flow-bottom-bar-view-model",{class:_.jt("ytFlowBottomBarViewModelHost",a)},_.q(_.oi,{cond:function(){var m;return(m=b())==null?void 0:m.textSection},
then:function(m){return _.q("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.q(_.wt,{text:m}))}}),_.q("div",{class:d},_.q(_.Eu,{data:function(){return b().secondaryButton}},{buttonViewModel:function(m){return _.q(_.Ju,{data:m.data,
className:k})}}),_.q(_.Eu,{data:function(){return b().primaryButton}},{buttonViewModel:function(m){return _.q(_.Ju,{data:m.data,
className:g,buttonOverrides:function(){var n;return{disabled:!((n=c())==null||!n.primaryButtonDisabled)}}})}})))}),"yt-flow-bottom-bar-view-model",{props:{data:_.SG,
className:_.Vs}});var irc="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),jrc=function(){var a=_.P.apply(this,arguments)||this;a.enableScrollingFix=!0;a.bottomBar=!1;a.hideBottomBar=!1;a.fitContent=!1;return a};
_.z(jrc,_.P);_.f=jrc.prototype;_.f.ready=function(){_.x("enable_pdp_icon_prefetch")&&_.Goc(_.v().resolve(_.mW),0,irc)};
_.f.focus=function(a){this.topBar?_.Ok(this.topBar,a):this.paperDialog.focus(a)};
_.f.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$16630_scroller&&(this.JSC$16630_scroller.dialogElement=this.paperDialog,this.JSC$16630_scroller.attached&&typeof this.JSC$16630_scroller.attached==="function"&&this.JSC$16630_scroller.attached())};
_.f.onDataChanged=function(){var a;this.fitContent=!((a=this.data)==null||!a.fitContent);var b;this.bottomBar=!((b=this.data)==null||!b.bottomBar);this.hideBottomBar=this.containsExploreHub};
_.f.onProgressChanged=function(){var a,b,c=((b=(a=this.data)==null?void 0:a.progress)!=null?b:0)*100;this.progressElement.style.width=c+"%"};
_.f.isProgressHidden=function(){var a;return!((a=this.data)==null?0:a.progress)};
_.f.configureRendererStamper=function(){return{"data.topBarOverride":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},"data.content":{id:"content",mapping:{benefitsFlowStepRenderer:"yt-benefits-flow-step-renderer",channelHistoryRenderer:"ytd-channel-history-renderer",confirmationFlowStepRenderer:"yt-confirmation-flow-step-renderer",creatorGoalSetUpFlowViewModel:"yt-creator-goal-set-up-flow-view-model",scheduleFanzoneViewModel:"ytfz-schedule-fanzone-view-model",contributorZeroStateViewModel:"yt-contributor-zero-state-view-model",
featureEnablementInfoRenderer:"ytd-feature-enablement-info-renderer",featureEnablementSoftEntryRenderer:"yt-feature-enablement-soft-entry-renderer",feedbackFormViewModel:"yt-feedback-form-view-model",freeTextInputFlowStepRenderer:"ytd-free-text-input-flow-step-renderer",infoFlowStepRenderer:"yt-info-flow-step-renderer",infoListFlowStepRenderer:"yt-info-list-flow-step-renderer",noteViewModel:"yt-note-view-model",offerDetailStepRenderer:"ytd-offer-detail-step-renderer",offerSelectionStepRenderer:"ytd-offer-selection-step-renderer",
pdpViewModel:{component:"pdp-view-model",params:{internalScrolling:!0}},purchaseCompleteStepRenderer:"ytd-purchase-complete-step-renderer",reportFormReasonSelectPageViewModel:"yt-report-form-reason-select-page-view-model",reportFormDetailsPageViewModel:"yt-report-form-details-page-view-model",reportFormConfirmationPageViewModel:"yt-report-form-confirmation-page-view-model",reportFormSignInPageViewModel:"yt-report-form-sign-in-page-view-model",sectionGroupViewModel:"yt-section-group-view-model",sectionListRenderer:"ytd-section-list-renderer",
structuredContextNoteViewModel:"yt-structured-context-note-view-model",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",talkToRecsViewModel:"yt-talk-to-recs-view-model",ypcTransactionErrorMessageRenderer:"ytd-ypc-transaction-error-message-renderer",optionSelectionFlowStepRenderer:{component:"yt-option-selection-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",isDesktop:!0}},offerSummaryFlowStepRenderer:{component:"yt-offer-summary-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",
shouldDisableHeaderTopMargin:!0}}}},"data.bottomBar":{id:"bottom-bar",mapping:{reportFormBottomBarViewModel:"yt-report-form-bottom-bar-view-model",formFooterViewModel:"yt-form-footer-view-model",flowBottomBarViewModel:{component:"yt-flow-bottom-bar-view-model",params:{className:"ytd-flow-step-renderer bottom-bar-view-model"}},flowBottomBarRenderer:{matcher:function(a){return _.x("enable_wiz_next_lp2_msof")&&a&&!a.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
_.Vm.Object.defineProperties(jrc.prototype,{containsExploreHub:{configurable:!0,enumerable:!0,get:function(){var a;return _.x("web_hide_explore_hub_until_user_navigates_back_to_home")&&!!_.y((a=this.data)==null?void 0:a.content,Moc)}}});
var YX=jrc;YX.prototype.onProgressChanged=YX.prototype.onProgressChanged;YX.prototype.onDataChanged=YX.prototype.onDataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],YX.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],YX.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],YX.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],YX.prototype,"enableScrollingFix",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],YX.prototype,"bottomBar",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],YX.prototype,"hideBottomBar",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],YX.prototype,"containsExploreHub",null);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],YX.prototype,"fitContent",void 0);
_.U([_.gr("#progress"),_.W("design:type",HTMLElement)],YX.prototype,"progressElement",void 0);_.U([_.gr("#scroller"),_.W("design:type",Object)],YX.prototype,"JSC$16630_scroller",void 0);_.U([_.gr("ytd-flow-top-bar-renderer"),_.W("design:type",HTMLElement)],YX.prototype,"topBar",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],YX.prototype,"onDataChanged",null);
_.U([_.N("data.progress"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],YX.prototype,"onProgressChanged",null);YX=_.U([_.Q({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],YX);
_.S(YX,"ytd-flow-step-renderer",function(){if(rpc!==void 0)return rpc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return rpc=a},{mode:1});var krc=function(a){this.resolveCommand=a;this.steps={}},lrc=function(a,b){b=_.h(b||[]);
for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=Object.values(c)[0],e=void 0;if((e=d)==null?0:e.stepId)a.steps[d.stepId]=c}},orc=function(a,b){var c,d,e,g,k;
return _.l(function(m){if((c=a.state)==null||!c.currentStepId)return m.return(void 0);d=mrc(a);if(!d)return m.return(nrc(a));if(e=_.y(d,_.Loc)){var n;((n=e.screenLoggingData)==null?0:n.screenVeType)&&_.mF(_.ms(),e.screenLoggingData.screenVeType);((g=e)==null?0:g.onStepStartCommand)&&a.resolveCommand((k=e)==null?void 0:k.onStepStartCommand,{})}if(e&&b){n=e;var r,t,u,w;((r=b.flowLoggingData)==null?0:r.eventNamespace)&&((t=n.flowEventData)==null?0:t.eventType)&&((u=n.flowEventData)==null?0:u.eventMetadata)&&
((w=b.flowLoggingData)==null?0:w.flowType)&&(r=_.hq(b.flowLoggingData.eventNamespace,n.flowEventData.eventType,n.flowEventData.eventMetadata),_.iq(_.jq(),r,b.flowLoggingData.flowType));b.steps&&!b.steps.includes(d)&&b.steps.push(d)}return m.return(d)})};
krc.prototype.back=function(){var a;(a=this.state)!=null&&a.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
krc.prototype.handleUpdateFlowCommand=function(a){a.steps&&lrc(this,a.steps);a.entityUpdateCommand&&this.resolveCommand(a.entityUpdateCommand,{});a.flowContinuationCommand&&(a=a.flowContinuationCommand)&&(this.getFlowContinuationCommand=a);this.awaitFlowContinuation&&(this.awaitFlowContinuation(mrc(this)),this.awaitFlowContinuation=void 0)};
krc.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var nrc=function(a){return _.l(function(b){return a.getFlowContinuationCommand?b.return(new Promise(function(c){a.awaitFlowContinuation=c;a.getFlowContinuationCommand&&a.resolveCommand(a.getFlowContinuationCommand,{flow_state:a.state})})):b.return(Promise.resolve(void 0))})},mrc=function(a){var b;
if((b=a.state)!=null&&b.currentStepId)return a.steps[a.state.currentStepId]};var prc=function(){var a=_.P.apply(this,arguments)||this;a.flowState=new krc(function(b,c){c=c===void 0?{}:c;_.hs.instance.resolveCommand(b,{form:{form:c,element:a.hostElement}})});
a.initialState=!0;a.isLoading=!1;a.actionMap={"yt-flow-prev-step-command":"handleFlowPrevStepCommand","yt-flow-next-step-command":"handleFlowNextStepCommand","yt-update-flow-command":"handleUpdateFlowCommand","yt-ypc-cancel-recurrence-command":"handleYpcCancelRecurrenceCommand","yt-flow-partial-update-flow-state-entity":"handlePartialUpdateFlowStateEntity"};return a};
_.z(prc,_.P);_.f=prc.prototype;_.f.onPopupClosed=function(a){a&&this.hostElement!==a.detail.popupRenderer||(this.flowState.reset(),this.currentFlowStep=this.data=void 0,this.initialState=!0)};
_.f.configureRendererStamper=function(){return{"data.topBar":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},currentFlowStep:{id:"flow-step",mapping:{flowStepRenderer:"ytd-flow-step-renderer"}}}};
_.f.focus=function(a){var b=this;_.Cr(function(){var c=_.E(b.hostElement).querySelector("ytd-flow-step-renderer");c.topBar?c.focus(a):b.topBar&&_.Ok(b.topBar,a)},1)};
_.f.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.f.computeTopBarHidden=function(a){var b;return!((b=_.y(a,_.Loc))==null||!b.topBarOverride)};
_.f.dataChanged=function(){var a=this,b,c;return _.l(function(d){if(d.nextAddress==1){((b=a.data)==null?0:b.steps)&&lrc(a.flowState,a.data.steps);if((c=a.data)==null?0:c.flowContinuationCommand){var e=a.flowState,g=a.data.flowContinuationCommand;g&&(e.getFlowContinuationCommand=g)}return _.p(d,orc(a.flowState,a.data),2)}a.currentFlowStep=d.yieldResult;_.se(d)})};
_.f.flowChanged=function(){var a=this,b;return _.l(function(c){if(c.nextAddress==1){if(!a.flow)return c.return();a.flowState.state=a.flow;a.isLoading=!0;return _.p(c,orc(a.flowState,a.data),2)}b=c.yieldResult;if(!b||a.flow.isLoading)return c.return();a.currentFlowStep=b;a.initialState=!1;a.isLoading=!1;a.autofocusAndRefit();_.se(c)})};
_.f.autofocusAndRefit=function(){var a=this,b=_.v().resolve(_.Wi(_.yu)),c=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),d=document.querySelector("yt-report-form-confirmation-page-view-model"),e=document.querySelector("yt-report-form-details-page-view-model"),g=document.querySelector("yt-report-form-reason-select-page-view-model"),k=document.querySelector("yt-contributor-zero-state-view-model"),
m=document.querySelector("yt-structured-context-note-view-model"),n=document.querySelector("yt-note-view-model");(!c&&b&&b.isKeyBoardInUse()||d||!c&&e||!c&&g||k||m||n)&&_.Pk(this.hostElement);_.Tm(this,function(){_.go(a.hostElement,"yt-refit")})};
_.f.handleUpdateFlowCommand=function(a){this.data&&(a=_.y(a,Koc),a.targetId===this.data.targetId&&(a.flowContinuationCommand&&(this.data.flowContinuationCommand=a.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(a),this.autofocusAndRefit()))};
_.f.handleFlowNextStepCommand=function(a){this.data&&this.flow&&this.flow.key&&(a=_.y(a,Ioc),a.targetId===this.data.targetId&&(a=a.stepId||"",this.ytdReduxBehavior.dispatch(_.Iu("flowStateEntity",this.flow.key,{currentStepId:a,stepIdStack:(this.flow.stepIdStack||[]).concat(a)}))))};
_.f.handleFlowPrevStepCommand=function(a){if(this.data&&this.flow&&this.flow.key&&(a=_.y(a,Joc),a.targetId===this.data.targetId)){var b=[].concat(_.Be(this.flow.stepIdStack||[]));b.length>1?(b.pop(),this.ytdReduxBehavior.dispatch(_.Iu("flowStateEntity",this.flow.key,{currentStepId:b[b.length-1],stepIdStack:b}))):a.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(a.onFirstStepCommand)}};
_.f.handleYpcCancelRecurrenceCommand=function(a){if(this.data&&this.flow&&this.flow.key&&(a=_.y(a,Qoc),a.targetId===this.data.targetId&&a.endpointCommand)){var b=_.y(this.flow,Roc);b&&_.y(a.endpointCommand,_.ZFb)&&(_.y(a.endpointCommand,_.ZFb).feedbackData=b.surveyFeedback);this.ytComponentBehavior.resolveCommand(a.endpointCommand)}};
_.f.handlePartialUpdateFlowStateEntity=function(a){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.Iu("flowStateEntity",this.flow.key,a,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
var ZX=prc;ZX.prototype.flowChanged=ZX.prototype.flowChanged;ZX.prototype.dataChanged=ZX.prototype.dataChanged;ZX.prototype.onPopupClosed=ZX.prototype.onPopupClosed;_.U([_.H(_.LI),_.W("design:type",Object)],ZX.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],ZX.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],ZX.prototype,"ytComponentBehavior",void 0);
_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],ZX.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],ZX.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],ZX.prototype,"initialState",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],ZX.prototype,"isLoading",void 0);_.U([_.O(),_.W("design:type",Object)],ZX.prototype,"data",void 0);
_.U([_.O(),_.W("design:type",Object)],ZX.prototype,"currentFlowStep",void 0);_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],ZX.prototype,"onPopupClosed",null);_.U([_.O({selectorArgs:["data.flowStateEntityKey"],selector:Gmc}),_.W("design:type",Object)],ZX.prototype,"flow",void 0);_.U([_.gr("ytd-flow-top-bar-renderer"),_.W("design:type",HTMLElement)],ZX.prototype,"topBar",void 0);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype",Promise)],ZX.prototype,"dataChanged",null);_.U([_.kr("flow"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype",Promise)],ZX.prototype,"flowChanged",null);ZX=_.U([_.Q({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],ZX);
_.qrc=_.$r()(ZX,"ytd-flow-root-renderer",function(){if(qpc!==void 0)return qpc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-root-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-bar" hidden="[[computeTopBarHidden(currentFlowStep)]]" class="style-scope ytd-flow-root-renderer"></div>\n<div id="content" class="style-scope ytd-flow-root-renderer">\n  <div id="flow-step" class="style-scope ytd-flow-root-renderer"></div>\n  <div id="spinner-overlay" hidden="[[!isLoading]]" class="style-scope ytd-flow-root-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-flow-root-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return qpc=a},{mode:_.as("kevlar_poly_si_batch_j025")?1:2});var rrc;var qX=null;_.Ws(_.Rr(function(a){return _.q("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.q("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.q(_.wt,{text:function(){return a.data().text}}),_.q("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))}),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.SG}});var src=_.Rr(function(a){var b=a.playerControlsProps;var c=a.isShortsPage;return _.q("yt-bigboard",null,_.q(_.oi,{cond:function(){return b().isDragging},
then:function(){return _.q("div",{class:"ytBigboardStoryboardHost"},_.q(_.gkc,{progressBarProps:b,isShortsPage:c}))}}))});
src.idomCompat=!0;_.$X={ACCOUNT_LABEL:rX("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:rX("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:rX("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:rX("AD_BADGE_HINT"),AD_BADGE_TEXT:rX("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:rX("ALL_CHANNELS_LABEL"),AMBIENT_MODE:rX("AMBIENT_MODE"),AMBIENT_MODE_OFF:rX("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:rX("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:rX("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:rX("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:rX("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:rX("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:rX("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:rX("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:rX("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:rX("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:rX("AUTOPLAY_UP_NEXT_IN"),BACK:rX("BACK"),CANCEL:rX("CANCEL"),CHANNEL_SWITCHER_LABEL:rX("CHANNEL_SWITCHER_LABEL"),CLOSE:rX("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:rX("CLOSED_CAPTIONS_DISABLED"),CLOSED_CAPTIONS_OFF:rX("CLOSED_CAPTIONS_OFF"),
CLOSED_CAPTIONS_ON:rX("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:rX("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:rX("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:rX("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:rX("COMMENT_MODAL_CONTENT"),CONFIRM_OK:rX("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:rX("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:rX("COPIED_TO_CLIPBOARD"),COPY:rX("COPY"),COPY_DEBUG_INFO:rX("COPY_DEBUG_INFO"),COPY_EMBED_CODE:rX("COPY_EMBED_CODE"),COPY_LINK_LABEL:rX("COPY_LINK_LABEL"),
COPY_VIDEO_URL:rX("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:rX("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:rX("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:rX("DELETE_FROM_DOWNLOADS"),DIALOG:rX("DIALOG"),DONE:rX("DONE"),DOWNLOAD:rX("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:rX("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:rX("FLAG_CONFIRM"),FLAG_CONTENT:rX("FLAG_CONTENT"),FLAG_LABEL:rX("FLAG_LABEL"),FLAG_TITLE:rX("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:rX("FULLSCREEN_GENERIC_ERROR"),GOOGLE_COMPANY:rX("GOOGLE_COMPANY"),
HIDE_PLAYER_CONTROLS:rX("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:rX("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:rX("HIDE_SEARCH_FILTERS_LABEL"),HOME:rX("HOME","Home"),INVALID_RESPONSE_RECEIVED:rX("INVALID_RESPONSE_RECEIVED"),LIBRARY:rX("LIBRARY","Library"),LISTENING:rX("LISTENING"),LOADING:rX("LOADING"),LONG_PRESS_MIC_TO_SPEAK:rX("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:rX("LOOP"),MENU_DESKTOP:rX("MENU_DESKTOP"),MENU_EXIT:rX("MENU_EXIT"),
MENU_FEEDBACK:rX("MENU_FEEDBACK"),MENU_HELP:rX("MENU_HELP"),MENU_IMPRESSUM:rX("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:rX("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:rX("MENU_SETTINGS"),MENU_SIGN_IN:rX("MENU_SIGN_IN"),MENU_TITLE:rX("MENU_TITLE"),MENU_YOUR_DATA:rX("MENU_YOUR_DATA"),MORE_INFO:rX("MORE_INFO"),MORE_OPTIONS:rX("MORE_OPTIONS"),MUTE_VOLUME:rX("MUTE_VOLUME"),NEW_PLAYLIST:rX("NEW_PLAYLIST"),NEXT_VIDEO:rX("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:rX("NOTIFICATION_ERROR_MESSAGE"),NOT_FOUND_CTA:rX("NOT_FOUND_CTA"),
NOT_FOUND_MESSAGE:rX("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:rX("NOT_FOUND_TITLE"),NO_DOWNLOADS:rX("NO_DOWNLOADS"),NO_MIC_INPUT:rX("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:rX("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:rX("OOPS_MESSAGE"),OPEN_APP:rX("OPEN_APP"),OPEN_YOUTUBE:rX("OPEN_YOUTUBE"),PAUSE:rX("PAUSE"),PLAY:rX("PLAY"),PLAYER_CAPTION:rX("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:rX("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:rX("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:rX("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:rX("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:rX("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:rX("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:rX("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:rX("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:rX("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:rX("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:rX("PLAYER_MINIMIZE"),PLAYER_NEXT:rX("PLAYER_NEXT"),PLAYER_PAUSE:rX("PLAYER_PAUSE"),PLAYER_PLAY:rX("PLAYER_PLAY"),
PLAYER_PREVIOUS:rX("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:rX("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:rX("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:rX("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:rX("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:rX("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:rX("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:rX("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:rX("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:rX("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:rX("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:rX("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:rX("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:rX("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:rX("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:rX("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:rX("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:rX("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:rX("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:rX("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:rX("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:rX("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:rX("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:rX("PLAY_ALL"),PLEASE_FIX_ERRORS:rX("PLEASE_FIX_ERRORS"),PREVIOUS_VIDEO:rX("PREVIOUS_VIDEO"),PRIVACY_POLICY:rX("PRIVACY_POLICY"),RELOAD:rX("RELOAD"),REQUIRED_LABEL:rX("REQUIRED_LABEL"),SAVE_PLAYLIST:rX("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:rX("SCRUB_SLIDE_USER_EDU"),SEARCH:rX("SEARCH","Search"),SEARCH_APPEND_LABEL:rX("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:rX("SEARCH_CHANNEL"),
SEARCH_CLEAR_LABEL:rX("SEARCH_CLEAR_LABEL"),SEARCH_FILTERS_LABEL:rX("SEARCH_FILTERS_LABEL"),SEARCH_LABEL:rX("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:rX("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:rX("SEEK_SLIDER"),SETTINGS_LABEL:rX("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:rX("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:rX("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:rX("SHOW_LESS"),SHOW_MORE:rX("SHOW_MORE"),SHOW_PLAYER_CONTROLS:rX("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:rX("SHOW_PLAYLIST_VIDEOS"),
SHOW_SEARCH_FILTERS_LABEL:rX("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:rX("SIGN_IN_LABEL"),SIGN_IN_ON_WEB:rX("SIGN_IN_ON_WEB"),STABLE_VOLUME:rX("STABLE_VOLUME"),STABLE_VOLUME_OFF:rX("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:rX("STABLE_VOLUME_ON"),STATS_FOR_NERDS:rX("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:rX("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:rX("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:rX("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_LABEL:rX("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:rX("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:rX("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:rX("TIMESTAMP_SECONDS"),TOGGLE_OFF:rX("TOGGLE_OFF"),TOGGLE_ON:rX("TOGGLE_ON"),TRENDING:rX("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:rX("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:rX("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:rX("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:rX("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:rX("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:rX("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:rX("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:rX("VIDEO_LINK_LABEL")};var trc=_.Rr(function(a){var b=a.playerApi;a=_.Rl(function(e){iX(e,36843)});
var c=rX("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"}),d=_.ot(function(){jX(36843);b&&b().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1});
return _.q("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.q("button",{el:a,class:"ytPlayerControlsJumpForwardButtonButton",title:c,"aria-label":c,"on:click":d},_.q("span",null,_.q(_.tt,{icon:"FAST_FORWARD"}))))});var urc=_.Rr(function(a){var b=a.appApi;a=_.Rl(function(e){iX(e,62946)});
var c=rX("OPEN_IN_MINIPLAYER"),d=_.ot(function(){jX(62946);var e,g;(g=(e=b()).openInMiniplayer)==null||g.call(e);return!1});
return _.q("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.q("button",{el:a,class:"ytMiniplayerButtonButton",title:c,"aria-label":c,"on:click":d},_.q(_.tt,{icon:"PICTURE_IN_PICTURE",active:!1})))});var vrc=_.Rr(function(a){var b=a.playerApi;a=_.Rl(function(k){iX(k,142812)});
var c=_.h(_.fh(!1,"I3VCyb")),d=c.next().value,e=c.next().value;c=function(){return rX("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(d()?1:2)})};
var g=_.ot(function(){jX(142812);if(b){var k=b(),m=d();k.setPlaybackRate(m?1:2);e(!d())}return!1});
return _.q("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.q("button",{el:a,class:"ytPlaybackSpeedButtonButton",title:c,"aria-label":c,"on:click":g},_.q("span",null,_.q(_.tt,{icon:function(){return d()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))});var wrc=_.Rr(function(a){var b=a.title;var c=a.ariaLabel;var d=a.icon;var e=a.command;var g=a.veType;a=_.Rl(function(m){g&&iX(m,g())});
var k=_.ot(function(){g&&jX(g());e&&_.v().resolve(_.Xi).resolveCommand(e())});
return _.q("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.q("button",{el:a,class:"ytdThumbnailOverlayButtonButton",title:b,"aria-label":c,"on:click":k},_.q(_.tt,{icon:d})))});var xrc=["en-CA","en","es-MX","fr-CA"];var yrc=_.Rr(function(a){var b=_.Or(a,{isOverlay:!1}),c=b.captionIconType,d=b.onClick;a=b.ariaLabel;var e=b.ariaPressed,g=b.isOverlay;b=_.Rl(function(n){iX(n,127299)});
var k=_.ot(function(n){jX(127299);d==null||d(n);return!1}),m={};
return _.q("ytm-closed-captioning-button",{class:_.jt("ytmClosedCaptioningButtonHost",(m.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return c()===-1&&g()},m.ytmClosedCaptioningButtonIconDisabled=function(){return c()===-1&&!g()},m))},_.q("button",{el:b,
class:"ytmClosedCaptioningButtonButton",title:a,"aria-label":a,"aria-pressed":e,"on:click":k},_.q(_.tt,{icon:function(){var n="";var r=_.wo().get("hl");r=!r||xrc.includes(r)?"CLOSED_CAPTION":"SUBTITLES";var t=c();switch(t){case -1:case 0:n=r;break;case 1:n=r+"_FILLED";break;default:_.Sb(t)}return n}})))});
yrc.idomCompat={callbacks:{onClick:!0}};var hX="";var zrc=_.Rr(function(a){var b=a.playerControlsProps,c=a.onClickFn;a=_.kh(function(){var g=b(),k=-1;g.captionsAvailable&&(k=g.captionsEnabled?1:0);return k},void 0,"WecR8e");
var d=_.kh(function(){var g=b();return g.captionsAvailable?_.to(g.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.to("CLOSED_CAPTIONS_DISABLED")},void 0,"atEfde"),e=_.kh(function(){var g=b();
g=g.captionsAvailable?g.captionsEnabled:void 0;return g},void 0,"Q17ly");
return _.q("yt-closed-captions-toggle-button",null,_.q(yrc,{captionIconType:a,ariaLabel:d,ariaPressed:e,onClick:function(g){var k=b();if(k.captionsAvailable){var m=k.playerApi;if(m){var n=k.playerApi;if(n){var r=hX;if(r){n=n.getOption("captions","track");var t;hX=(t=n?n.displayName:null)!=null?t:r}else n.getOptions("captions")?(r=Jmc(n),hX=r.length?(t=Kmc(r))?t.displayName:r[0].displayName:""):hX=""}Lmc(m);_.x("mweb_disable_set_state_captions_killswitch")&&k.setState({captionsEnabled:!k.captionsEnabled})}}var u,
w;(w=(u=k.appApi).showCaptionsToggleToast)==null||w.call(u,k);c==null||c(g)},
isOverlay:!0}))});var Arc=_.Rr(function(a){var b=a.data;return _.q("yt-premiere-trailer-badge",{class:"yt-premiere-trailer-badge"},_.q(_.ev,{data:function(){return{type:16,text:_.F0a(b().label)}}}))});var Brc=_.Rr(function(a){var b=_.jt("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return a.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return a.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return a.size()==="small"?a.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
a.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.q("animated-seek-arrows",{class:_.jt("ytPlayerControlsAnimatedSeekArrowsHost")},_.q("span",{class:b}),_.q("span",{class:b}),_.q("span",{class:b}))});
Brc.idomCompat=!0;var Crc=_.Rr(function(){var a=_.to("PLAYER_SECONDS",{seconds_placeholder:"30"}),b=_.h(_.fh(!1,"Yj8msb")),c=b.next().value,d=b.next().value,e=_.h(_.fh(!1,"r9Z50e"));b=e.next().value;var g=e.next().value;e={};var k=_.jt("jumpForwardOverlayOverlay",(e.jumpForwardOverlayOverlayHidden=b,e));_.vi(function(){var m=null,n=null,r=function(){m!==null&&_.Lw().cancelJob(m);n!==null&&_.Lw().cancelJob(n);g(!0);d(!0);_.at(_.Lw(),function(){g(!1)});
m=_.at(_.Lw(),function(){g(!0);n=_.at(_.Lw(),function(){d(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",r);_.wh(function(){window.removeEventListener("jump-forward-clicked",r)})});
return _.q("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.q(_.oi,{cond:c,then:function(){return _.q("div",{class:k},_.q(Brc,{direction:1,size:"large"}),_.q("div",null,a))}}))});var loc=_.$X.MUTE_VOLUME,koc=_.$X.UNMUTE_VOLUME,Drc=_.Rr(function(a){var b=a.muteIconType;var c=a.onClick;var d=a.useOutlineIcon;a=_.Rl(function(k){iX(k,28662)});
var e=function(){return moc(b(),d==null?void 0:d()).ariaLabel},g=_.ot(function(k){jX(28662);
c==null||c(k);return!1});
return _.q("ytm-mute-button",{class:"ytmMuteButtonHost"},_.q("button",{el:a,class:"ytmMuteButtonButton",title:e,"aria-label":e,"on:click":g},_.q("span",null,_.q(_.tt,{icon:function(){return moc(b(),d==null?void 0:d()).iconName}}))))});var Erc=_.Rr(function(a){var b=a.volumeProps;var c=a.onClickFn;var d=a.useOutlineIcon;return _.q("yt-mute-toggle-button",null,_.q(Drc,{muteIconType:function(){var e=b(),g=!_.x("mweb_treat_zero_volume_as_muted_killswitch")&&e.volume===0;return e.volumeMuted||g?0:1},
onClick:function(e){var g=b().playerApi;g&&(g.isMuted()?g.unMute():g.mute(!1));c==null||c(e)},
useOutlineIcon:function(){return!(d==null||!d())}}))});
Erc.idomCompat=!0;var Frc=_.Rr(function(a){var b=a.data;var c=_.Rl();a=_.ot(function(){c.value.classList.add("ytmPaidContentOverlayHidden");return!1});
return _.q("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:c,"on:animationend":a},_.q(_.ut,{command:function(){return b().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.q(_.oi,{cond:function(){var d;return(d=b().icon)==null?void 0:d.iconType},
then:function(){return _.q("span",null,_.q(_.tt,{icon:function(){var d;return(d=b().icon)==null?void 0:d.iconType}}))}}),_.q("div",{class:"ytmPaidContentOverlayText"},_.q(_.wt,{text:function(){return b().text}})),_.q(_.oi,{cond:function(){return b().navigationEndpoint},
then:function(){return _.q(_.tt,{icon:"CHEVRON_RIGHT"})}})))});
Frc.idomCompat=!0;var noc=[].concat(_.Be([{register:function(a){var b=xoc(a),c;(c=a().playerApi)==null||c.addEventListener("onVolumeChange",b);return function(){}}},
{register:function(a){var b=yoc(a);a=a().playerApi;a==null||a.addEventListener("captionschanged",b);a==null||a.addEventListener("captionssettingschanged",b);a==null||a.addEventListener("onCaptionsTrackListChanged",b);return function(){}}},
{register:function(a){if(!_.x("mweb_screenreader_accessible_player"))return function(){};
var b=zoc(a),c=document.querySelector("video");c==null||c.addEventListener("touchend",b);return function(){c==null||c.removeEventListener("touchend",b)}}},
{register:function(a){if(!_.x("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var b=zoc(a),c=document.querySelector("video");c==null||c.addEventListener("focus",b);return function(){c==null||c.removeEventListener("focus",b)}}}]),[{register:function(a){var b=toc(a),c;
(c=a().playerApi)==null||c.addEventListener("onStateChange",b);return function(){}}},
{register:function(a){var b=uoc(a),c;(c=a().playerApi)==null||c.addEventListener("onPlaybackRateChange",b);return function(){}}},
{register:function(a){var b=voc(a),c;(c=a().playerApi)==null||c.addEventListener("onVideoDataChange",b);return function(){}}},
{register:function(a){var b=woc(a),c,d;(c=a())==null||(d=c.playerApi)==null||d.addEventListener("onVideoProgress",b);return function(){}}}]);var Grc=_.Rr(function(a){var b=a.data;var c=function(){return _.to("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+b().playbackRate})};
return _.q(_.oi,{cond:function(){return b().playbackRate&&b().playbackRate!==1},
then:function(){return _.q("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.q("div",{class:"ytPlaybackRateOverlayOverlay"},_.q(Brc,{direction:1,size:"small"}),_.q("div",{class:"ytPlaybackRateOverlayLabel"},c)))}})});var Hrc=_.Rr(function(a){var b=a.data;return _.q("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.q(_.oi,{cond:function(){var c,d=(c=b())==null?void 0:c.playerResponse,e;return d==null?void 0:(e=d.paidContentOverlay)==null?void 0:e.paidContentOverlayRenderer},
then:function(c){return _.q(Frc,{data:c})}}))}),Irc=_.Rr(function(a){var b=a.props;
var c=a.data;var d=a.options;var e=function(){var r,t,u,w;return(r=c())==null?void 0:(t=r.playerResponse)==null?void 0:(u=t.playerConfig)==null?void 0:(w=u.inlinePlaybackConfig)==null?void 0:w.showAudioControls},g=function(){var r,t;
if(e()&&((r=d())==null?void 0:(t=r.additionalButton)==null?void 0:t.button)!==void 0){var u,w,A;r=(u=c())==null?void 0:(w=u.playerApi)==null?void 0:(A=w.getSize())==null?void 0:A.height;if(!(r===void 0||r<184)){var C,G;return(C=d())==null?void 0:(G=C.additionalButton)==null?void 0:G.button}}},k=function(){var r,t;
return(r=d())==null?void 0:(t=r.additionalButton)==null?void 0:t.thumbnailOverlayButtonRenderers},m=function(){var r,t;
return(r=d())==null?void 0:(t=r.additionalButton)==null?void 0:t.thumbnailOverlayButtonViewModels},n=function(){var r=[_.q(Erc,{volumeProps:b}),
_.q(zrc,{playerControlsProps:b})];g()===1&&r.push(_.q(trc,{playerApi:function(){return b().playerApi}}));
g()===2&&r.push(_.q(urc,{appApi:function(){return b().appApi}}));
g()===3&&r.push(_.q(vrc,{playerApi:function(){return b().playerApi}}));
var t=k();if(g()===4&&t){t=_.h(t);for(var u=t.next(),w={};!u.done;w={tooltip$jscomp$2:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$55:void 0,command$jscomp$560:void 0},u=t.next()){u=u.value;w.tooltip$jscomp$2=u.tooltip;var A=void 0,C=void 0;w.ariaLabel$jscomp$20=((A=u.accessibility)==null?void 0:(C=A.accessibilityData)==null?void 0:C.label)||w.tooltip$jscomp$2;A=void 0;w.icon$jscomp$55=(A=u.icon)==null?void 0:A.iconType;w.command$jscomp$560=u.command;w.tooltip$jscomp$2&&w.ariaLabel$jscomp$20&&w.icon$jscomp$55&&
r.push(_.q(wrc,{title:function(G){return function(){return G.tooltip$jscomp$2}}(w),
ariaLabel:function(G){return function(){return G.ariaLabel$jscomp$20}}(w),
icon:function(G){return function(){return G.icon$jscomp$55}}(w),
command:function(G){return function(){return G.command$jscomp$560}}(w)}))}}t=m();
if(g()===4&&t)for(t=_.h(t),u=t.next(),w={};!u.done;w={tooltip$jscomp$3:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$56:void 0,command$jscomp$561:void 0},u=t.next())u=u.value,w.tooltip$jscomp$3=u.title,w.ariaLabel$jscomp$21=u.accessibilityText||w.tooltip$jscomp$3,w.icon$jscomp$56=u.iconName,w.command$jscomp$561=_.Es(u.onTap),w.tooltip$jscomp$3&&w.ariaLabel$jscomp$21&&w.icon$jscomp$56&&r.push(_.q(wrc,{title:function(G){return function(){return G.tooltip$jscomp$3}}(w),
ariaLabel:function(G){return function(){return G.ariaLabel$jscomp$21}}(w),
icon:function(G){return function(){return G.icon$jscomp$56}}(w),
command:function(G){return function(){return G.command$jscomp$561}}(w)}));
return r};
return _.q(_.oi,{cond:e,then:function(){return _.q("div",{class:"ytInlinePlayerControlsTopRightControls"},_.q(_.ni,{each:n},function(r){return _.q("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.q("div",{class:"ytInlinePlayerControlsButtonIcon"},r))}))}})}),Lrc=_.Rr(function(a){var b=a.props;
var c=a.data;var d=a.options;a={};a=_.jt("ytInlinePlayerControlsBottomRightControls",(a.ytInlinePlayerControlsBottomRightControlsHidden=function(){var e;return Boc(c(),d())&&((e=d())==null?void 0:e.insetProgressBar)&&(b().isHovering||b().isDragging)},a));
return _.q("div",{class:a},_.q(Jrc,{data:c}),_.q(_.oi,{cond:function(){var e;return!((e=d())==null?0:e.hideTimeDisplay)},
then:function(){return _.q(Krc,{props:b})}}))}),Jrc=_.Rr(function(a){var b=a.data;
return _.q(_.Eu,{data:function(){var c;return joc((c=b())==null?void 0:c.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:Arc})}),Krc=_.Rr(function(a){var b=a.props;
return _.q(_.oi,{cond:function(){return b().isLive},
then:function(){return _.q(Mrc,null)},
else:function(){return _.q(Nrc,{props:b})}})}),Nrc=_.Rr(function(a){var b=a.props;
return _.q("div",{class:_.jt("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.$X.PLAYER_TIME_ELAPSED+" "+_.j7a(b().playedTime)}},_.q(_.ev,{data:function(){return{type:16,
text:_.j7a(b().videoDuration-b().playedTime)}}}))}),Mrc=_.Rr(function(){return _.q("div",{class:_.jt("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},_.q(_.ev,{data:{type:17,
text:_.$X.PLAYER_LIVE_LABEL,icon:"LIVE"}}))}),Orc=_.Rr(function(a){var b=a.props;
var c=a.data;var d=a.options;return _.q(_.mkc,{progressBarProps:b,config:function(){var e,g=_.y((e=c())==null?void 0:e.multiMarkersPlayerBar,_.yFb),k;e=((k=d())==null?0:k.insetProgressBar)?2:1;var m;k=(m=d())==null?void 0:m.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:e,chapterData:g,isInlinePlayback:!0,doSeekOnClick:k,playheadDotBehavior:k?1:0}}})});_.Ws(_.Rr(function(a){var b=a.data;var c=a.appApi;var d=a.options;var e=soc(b,Aoc(c));a={};c={};return _.q("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.q("div",{class:_.jt("ytInlinePlayerControlsDarkenedOverlay",(a.ytInlinePlayerControlsDarkenedOverlayShow=function(){return e().isHovering},a))}),_.q(Crc,null),_.q(Grc,{data:e}),_.q(Hrc,{data:b}),_.q(src,{playerControlsProps:e,
isShortsPage:!1}),_.q("div",{class:_.jt((c.ytInlinePlayerControlsControlsHidden=function(){return e().isDragging},c))},_.q(Irc,{props:e,
data:b,options:d}),_.q(Lrc,{props:e,data:b,options:d})),_.q(_.oi,{cond:function(){return Boc(b(),d())},
then:function(){return _.q(Orc,{props:e,data:b,options:d})}}))}),"yt-inline-player-controls",{props:{data:_.SG,
appApi:_.Vs,options:_.SG}});var aY,Prc=function(){var a=_.P.apply(this,arguments)||this;a.opts=null;a.playerControlsData=null;a.playerControlsAppApi={openInMiniplayer:function(){a.openInMiniplayer()}};
a.playerControlsOptions={};a.noAnimation=!1;a.playbackIntentTriggered=!1;a.positionData=null;a.hidden=!0;a.active=!1;a.playing=!1;a.videoPreviewDataIndex=0;a.JSC$16684_playerPromise=null;a.player=null;a.enableAudioControls=!1;a.hasBeenUnmuted=!1;a.captionsHaveBeenTurnedOff=!1;a.JSC$16684_playerEvents=new Map;a.videoPreviewFetchRequest=null;a.scheduledPreviewEndJobId=null;a.JSC$16684_preventProgressSaveTimer=null;a.watchEndpointStartTimeUpdaterInterval=null;a.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};a.windowOnBlurFn=function(){a.deactivate()};
return a};
_.z(Prc,_.P);_.f=Prc.prototype;
_.f.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":_.x("web_enable_rich_item_on_focus_effect")?{id:"endorsement",mapping:{}}:{id:"endorsement",mapping:{thumbnailOverlayEndorsementRenderer:{component:"ytd-thumbnail-overlay-endorsement-renderer",params:{disableAnimation:!0,rounded:!0}},attributionViewModel:{component:"yt-thumbnail-overlay-attribution-view-model"}}},"videoPreviewData.thumbnailOverlays":{id:"overlays",mapping:{pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailOverlayBottomPanelRenderer:"ytd-thumbnail-overlay-bottom-panel-renderer",
thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model"}}}};
_.f.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$16684_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$16684_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$16684_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$16684_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.er(this,this.onPageTypeChange));this.pagePath=location.pathname};
_.f.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn)};
_.f.onPageTypeChange=function(){this.deactivate()};
_.f.onWindowResized=function(){this.deactivate()};
_.f.onCaptionsChanged=function(a){a=!!a.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!a);this.setCaptionSize()};
_.f.setCaptionSize=function(){var a;if(this.active&&!this.captionsHaveBeenTurnedOff&&((a=this.player)==null?0:a.getCaptionWindowContainerId())){var b;(b=this.player)==null||b.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.f.currentPageAllowed=function(){return!this.isWatchPage};
_.f.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData)return!1;var a=this.positionData,b=a.initialTopPosition,c=a.initialHorizontalPosition;_.dr(this.hostElement,{"--ytd-video-preview-translate-left":a.finalHorizontalPosition-c+"px","--ytd-video-preview-translate-top":a.finalTopPosition-b+"px","--ytd-video-preview-original-top-position":b+"px","--ytd-video-preview-original-horizontal-position":c+"px",
"--ytd-video-preview-initial-scale":"scale("+a.initialScale+")","--ytd-video-preview-width":a.videoPreviewWidth+"px","--ytd-video-preview-height":a.videoPreviewHeight+"px"});return!0};
_.f.handleOpenVideoPreviewAction=function(a){var b=this,c;return _.l(function(d){if(!b.currentPageAllowed())return d.return(0);b.opts=a;return(c=b.alignVideoPreviewForAnimation(a.thumbnail))?d.return(b.activate()):d.return(0)})};
_.f.onMouseLeave=function(a){this.shouldDeactivateOnMouseLeave(a)&&this.deactivate()};
_.f.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.zk.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.f.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.f.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",aY.JSC$16683_DEFAULT_CLICK_LOCATION_BEHAVIOR,aY.JSC$16683_CLICK_LOCATION_ID_MAP)};
_.f.shouldDeactivateOnMouseLeave=function(a){a=a.relatedTarget;if(!a)return!0;var b;return(b=this.opts)!=null&&b.mediaRenderer?!_.Zq(this.opts.mediaRenderer).contains(a):!0};
_.f.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.f.onPlaybackStart=function(){var a=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$16684_preventProgressSaveTimer=
_.at(_.zk,function(){a.resetPreventProgressSaveTimer()},1E4);
var b;if((b=this.opts)==null?0:b.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.at(_.zk,function(){a.hasMultipleVideoPreviews()?a.startPlaybackForNextVideo():a.deactivate()},this.opts.videoPreviewDurationMs);
var c;this.player.setGlobalCrop(((c=this.opts)==null?0:c.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.f.getRoundedCornersSize=function(){var a;if((a=this.opts)==null?0:a.roundedCornersSize){var b;return(b=this.opts)==null?void 0:b.roundedCornersSize}var c;if((c=this.opts)==null?0:c.enableRounding){var d;if(((d=this.opts)==null?void 0:d.thumbnailSize)==="small")return 1;var e;if(((e=this.opts)==null?void 0:e.thumbnailSize)==="medium")return 2;var g;if(((g=this.opts)==null?void 0:g.thumbnailSize)==="large")return 3}return _.x("web_imp_inset_progress_bar")?3:0};
_.f.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.f.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.f.onMediaContainerClick=function(a){this.isShortcutClick(a)||(this.navigateToWatch(a),a.preventDefault(),a.stopPropagation())};
_.f.activate=function(){var a=this,b,c,d,e,g,k,m,n;return _.l(function(r){switch(r.nextAddress){case 1:if(!a.currentPageAllowed())return r.return(0);c=(b=a.videoPreviewData)==null?void 0:b.inlinePlaybackEndpoint;d=_.Qt.instance;if(!c||!d)return r.return(0);a.playbackIntentTriggered=!0;((e=a.opts)==null?0:e.mediaRenderer)&&ioc(a.opts.mediaRenderer,function(){a.deactivate()});
_.Tm(a,function(){a.revealPreviewUi()});
g={};_.x("enable_unknown_lact_fix_on_html5")&&(_.v().resolve(_.Ft),g.lact=_.$k());a.videoPreviewFetchRequest=coc(d,a.getInlinePlaybackRequestData(a.videoPreviewData),g);_.me(r,2);return _.p(r,a.videoPreviewFetchRequest,4);case 4:k=r.yieldResult;if(((m=k)==null?void 0:(n=m.playabilityStatus)==null?void 0:n.status)==="OK")return r.return(a.handlePlayerResponse(k));throw Error("Fj");case 2:_.re(r),a.deactivate();case 3:return r.return(1)}})};
_.f.getInlinePlaybackRequestData=function(a){var b,c=_.x("web_imp_player_mute_params")?((b=this.opts)==null?void 0:b.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:a.inlinePlaybackEndpoint,startPlaybackInMutedState:c}};
_.f.handlePlayerResponse=function(a){var b=this,c,d,e,g,k,m,n,r,t,u;return _.l(function(w){if(w.nextAddress==1){c=b.getInlinePlaybackVideoId();if(!(((d=a)==null?0:(e=d.videoDetails)==null?0:e.videoId)&&b.currentPageAllowed()&&b.playbackIntentTriggered&&b.opts&&c))return b.deactivate(),w.return(0);if(a.videoDetails.videoId!==c)return w.return(0);b.enableAudioControls=!!((g=a.playerConfig)==null?0:(k=g.inlinePlaybackConfig)==null?0:k.showAudioControls);a.trackingParams=b.getInlinePlaybackTrackingParams();
if(!b.inlinePlayer)return w.return(0);m={};if(r=_.y((n=b.videoPreviewData)==null?void 0:n.inlinePlaybackEndpoint,_.Vn))m.watch_endpoint=r;if(b.videoPreviewData){var A,C=(A=_.y(b.videoPreviewData.inlinePlaybackEndpoint,_.Vn))==null?void 0:A.startTimeSeconds;C!==void 0&&(a.playerConfig||(a.playerConfig={}),a.playerConfig.playbackStartConfig||(a.playerConfig.playbackStartConfig={}),a.playerConfig.playbackStartConfig.startPosition||(a.playerConfig.playbackStartConfig.startPosition={}),a.playerConfig.playbackStartConfig.startSeconds=
C,a.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(C*1E3))}b.inlinePlayer.loadVideoWithPlayerResponse(a,m);if(b.JSC$16684_playerPromise)return w.jumpTo(2);b.JSC$16684_playerPromise=b.inlinePlayer.getPlayerPromise();return _.p(w,b.JSC$16684_playerPromise,3)}w.nextAddress!=2&&(t=w.yieldResult,t.setInlinePreview(!0),t.setSizeStyle(!1,!0),b.ytPlayerListenerBehavior.listenToPlayerEvents(t,b.JSC$16684_playerEvents),b.player=t,_.go(b.hostElement,"player-api-ready"));((u=b.opts)==
null?0:u.showPlayerControls)&&b.videoPreviewData&&b.player&&(b.playerControlsData={playerResponse:a,isInlinePlayback:!0,thumbnailOverlays:b.videoPreviewData.thumbnailOverlays,playerApi:b.player},b.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!b.unroundCornersForPlayback,additionalButton:b.getAdditionalButtonType(b.videoPreviewData.thumbnailOverlays)});return w.return(2)})};
_.f.revealPreviewUi=function(){var a=this;this.playbackIntentTriggered&&_.hxa(this,function(){a.hasThumbnailPositionChangedSinceTriggered()||(a.updateActiveState(!0),a.noAnimation=!1)})};
_.f.hasThumbnailPositionChangedSinceTriggered=function(){var a=this.positionData,b=this.getThumbnailPositionData();return(a==null?void 0:a.initialTopPosition)!==(b==null?void 0:b.initialTopPosition)||(a==null?void 0:a.initialHorizontalPosition)!==(b==null?void 0:b.initialHorizontalPosition)};
_.f.getThumbnailPositionData=function(){var a,b;if((b=this.opts)==null||!b.thumbnail)return null;b=this.opts.thumbnail;var c=((a=this.opts)==null?0:a.cropPlayerToFillThumbnailHorizontally)?!1:!0;var d=b.getBoundingClientRect();a=d.width;b=d.height;var e=d.top+window.scrollY;d=d.left+window.scrollX;var g=c?Math.ceil(a):a;c=c?Math.ceil(b):b;var k=a/g;a={initialScale:k,initialTopPosition:e-12*k,finalTopPosition:e-12-(c-b)/2,initialHorizontalPosition:d-(12+(g-a)/2),finalHorizontalPosition:d-12-(g-a)/
2,videoPreviewWidth:g,videoPreviewHeight:c};return a};
_.f.updateActiveState=function(a){this.active=a;this.ytdReduxBehavior.dispatch(_.gp({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:a}))};
_.f.stopPlayer=function(a){a=a.resetWatchEndpointStartTime===void 0?!1:a.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(a)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.zk.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.f.deactivate=function(a){a=a===void 0?{}:a;a=a.resetWatchEndpointStartTime===void 0?!1:a.resetWatchEndpointStartTime;qX&&(qX.disconnect(),qX=null);this.stopPlayer({resetWatchEndpointStartTime:a});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.f.isValidThumbnailOverlayButton=function(a,b){a=a.thumbnailOverlayButtonRenderer;var c;return!!a&&!!a.tooltip&&!((c=a.icon)==null||!c.iconType)&&b.includes(a.icon.iconType)};
_.f.isValidThumbnailOverlayButtonViewModel=function(a,b){var c;a=_.y((c=a.thumbnailOverlayButtonViewModel)==null?void 0:c.overlayButton,_.Fu);return!!a&&!!a.title&&!!a.iconName&&b.includes(a.iconName)};
_.f.getAdditionalButtonType=function(a){var b=this;if(_.x("web_imp_fastforward_button"))return{button:1};if(_.x("web_imp_miniplayer_button"))return{button:2};if(_.x("web_imp_playback_speed_button"))return{button:3};var c=["AUTO_AWESOME"],d=(a||[]).filter(function(g){return b.isValidThumbnailOverlayButton(g,c)}).map(function(g){return g.thumbnailOverlayButtonRenderer});
if(d.length)return{button:4,thumbnailOverlayButtonRenderers:d};var e=["AUTO_AWESOME"];a=(a||[]).filter(function(g){return b.isValidThumbnailOverlayButtonViewModel(g,e)}).map(function(g){return _.y(g.thumbnailOverlayButtonViewModel.overlayButton,_.Fu)});
if(a.length)return{button:4,thumbnailOverlayButtonViewModels:a}};
_.f.allowCaptions=function(){var a;return!((a=this.opts)==null?0:a.forceCaptionsOff)};
_.f.allowUnmuting=function(){var a;return this.enableAudioControls&&!((a=this.opts)==null?0:a.forceMutedVolume)};
_.f.beginStartTimeUpdater=function(){var a=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.ej(function(){a.updateWatchEndpointStartTime()},1E3)};
_.f.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.f.resetPreventProgressSaveTimer=function(){this.JSC$16684_preventProgressSaveTimer!==null&&(_.zk.cancelJob(this.JSC$16684_preventProgressSaveTimer),this.JSC$16684_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.f.updateWatchEndpointStartTime=function(a){var b=this.videoPreviewData;if(this.player&&b!=null&&b.inlinePlaybackEndpoint&&!this.JSC$16684_preventProgressSaveTimer){a=a?0:Math.floor(this.player.getCurrentTime());var c=_.y(b.navigationEndpoint,_.Vn);c&&(c.startTimeSeconds=a);if(b=_.y(b.inlinePlaybackEndpoint,_.Vn))b.startTimeSeconds=a}};
_.f.isShortcutClick=function(a){return!!a&&(a.ctrlKey||a.shiftKey||a.metaKey)};
_.f.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.f.openInMiniplayer=function(){var a=this,b,c;return _.l(function(d){if(d.nextAddress==1){c=(b=a.videoPreviewData)==null?void 0:b.navigationEndpoint;if(!c)return d.return();_.uF().lockupActivation=!0;return _.p(d,_.J8b(_.v().resolve(_.Vw),c),2)}_.uF().userActivation=!0;_.se(d)})};
_.f.navigateToWatch=function(a){var b,c=(b=this.videoPreviewData)==null?void 0:b.navigationEndpoint;if(c){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(c,a,!0);else{if(_.x("web_thumbnail_to_watch_transition")){var d,e;(d=this.opts)==null||(e=d.onNavigateToWatchCallback)==null||e.call(d)}_.go(this.hostElement,"yt-navigate",{endpoint:c})}this.deactivate()}};
_.f.getInlinePlaybackVideoId=function(){var a,b;return(b=_.y((a=this.videoPreviewData)==null?void 0:a.inlinePlaybackEndpoint,_.Vn))==null?void 0:b.videoId};
_.f.getInlinePlaybackTrackingParams=function(){var a,b;return(a=this.videoPreviewData)==null?void 0:(b=a.inlinePlaybackEndpoint)==null?void 0:b.clickTrackingParams};
_.f.hasMultipleVideoPreviews=function(){var a;return!!(((a=this.opts)==null?0:a.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.f.startPlaybackForNextVideo=function(){var a;(a=this.opts)!=null&&a.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())};
_.Vm.Object.defineProperties(Prc.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.opts)==null?0:a.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.opts)==null||!a.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 a;if(Array.isArray((a=this.opts)==null?void 0:a.videoPreviewData)){var b;return(b=this.opts)==null?void 0:b.videoPreviewData[this.videoPreviewDataIndex]}var c;return(c=this.opts)==null?void 0:c.videoPreviewData}}});
var bY=aY=Prc;aY.prototype.onIsAdsVideoChange=aY.prototype.onIsAdsVideoChange;aY.prototype.onInlinePreviewIsEnabledChange=aY.prototype.onInlinePreviewIsEnabledChange;aY.prototype.optsChanged=aY.prototype.optsChanged;aY.prototype.onMouseLeave=aY.prototype.onMouseLeave;bY.JSC$16683_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);bY.JSC$16683_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"}];
_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],bY.prototype,"actionHandlerBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],bY.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.YI.YtPlayerListenerBehavior),_.W("design:type",_.ZI)],bY.prototype,"ytPlayerListenerBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],bY.prototype,"componentBehavior",void 0);
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],bY.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],bY.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.fJ.YtSparklesClickLocationBehavior),_.W("design:type",Object)],bY.prototype,"ytSparklesClickLocationBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],bY.prototype,"opts",void 0);_.U([_.O(),_.W("design:type",Object)],bY.prototype,"playerControlsData",void 0);
_.U([_.O(),_.W("design:type",Object)],bY.prototype,"playerControlsAppApi",void 0);_.U([_.O(),_.W("design:type",Object)],bY.prototype,"playerControlsOptions",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],bY.prototype,"noAnimation",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],bY.prototype,"hidden",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],bY.prototype,"active",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],bY.prototype,"playing",void 0);_.U([_.O({selector:_.oFa}),_.W("design:type",Boolean)],bY.prototype,"inlinePreviewIsEnabled",void 0);_.U([_.O(),_.W("design:type",String)],bY.prototype,"pagePath",void 0);_.U([_.O({selector:_.Hp}),_.W("design:type",Boolean)],bY.prototype,"isWatchPage",void 0);_.U([_.K("videoPreviewData"),_.W("design:type",Object),_.W("design:paramtypes",[])],bY.prototype,"thumbnailData",null);
_.U([_.K("opts","active"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],bY.prototype,"hidePlayerControls",null);_.U([_.K("opts"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],bY.prototype,"isAdsVideo",null);_.U([_.K("opts"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],bY.prototype,"roundedCornersSmall",null);
_.U([_.K("opts"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],bY.prototype,"roundedCornersMedium",null);_.U([_.K("opts"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],bY.prototype,"roundedCornersLarge",null);_.U([_.K("opts"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],bY.prototype,"unroundCornersForPlayback",null);
_.U([_.K("opts","videoPreviewDataIndex"),_.W("design:type",Object),_.W("design:paramtypes",[])],bY.prototype,"videoPreviewData",null);_.U([_.O(),_.W("design:type",Object)],bY.prototype,"videoPreviewDataIndex",void 0);_.U([_.gr("#inline-player"),_.W("design:type",Object)],bY.prototype,"inlinePlayer",void 0);_.U([_.M("mouseleave"),_.W("design:type",Function),_.W("design:paramtypes",[MouseEvent]),_.W("design:returntype")],bY.prototype,"onMouseLeave",null);
_.U([_.kr("opts"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],bY.prototype,"optsChanged",null);_.U([_.kr("inlinePreviewIsEnabled"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],bY.prototype,"onInlinePreviewIsEnabledChange",null);_.U([_.N("isAdsVideo"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],bY.prototype,"onIsAdsVideoChange",null);
bY=aY=_.U([_.Q({is:"ytd-video-preview",disableElementRegistration:!0})],bY);
_.S(bY,"ytd-video-preview",function(){if(rrc!==void 0)return rrc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return rrc=a},{mode:2});
}catch(e){_._DumpException(e)}
try{
var Mlc;var Nlc;/*

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
*/
_.qr({_template:function(){if(Nlc!==void 0)return Nlc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;Mlc===void 0&&(Mlc=document.createElement("template"));var d=Mlc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return Nlc=a},
is:"tp-yt-paper-checkbox",behaviors:[_.kwb],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.Tm(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var a=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),b="px",c=a.match(/[A-Za-z]+$/);c!==null&&(b=c[0]);a=parseFloat(a);c=8/3*a;b==="px"&&(c=Math.floor(c),c%2!==a%2&&c++);this.updateStyles({"--paper-checkbox-ink-size":c+
b})}})},
_computeCheckboxClass:function(a,b){var c="";a&&(c+="checked ");b&&(c+="invalid");return c},
_computeCheckmarkClass:function(a){return a?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.iwb._createRipple.call(this)}});var Olc=new _.X("radioButtonSurveyOptionRenderer"),Plc=new _.X("checkboxSurveyOptionRenderer");var Qlc;var Rlc;var Slc=0,Tlc=function(){var a=_.P.call(this)||this;a.selected=!1;a.isOverlay=!1;a.inputId="toggle-option-"+Slc;Slc++;return a};
_.z(Tlc,_.P);Tlc.prototype.onTap=function(){_.go(this.hostElement,"ytd-toggle-option-clicked")};
var OW=Tlc;_.U([_.O(),_.W("design:type",String)],OW.prototype,"label",void 0);_.U([_.O(),_.W("design:type",String)],OW.prototype,"inputId",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],OW.prototype,"selected",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],OW.prototype,"isOverlay",void 0);OW=_.U([_.Q({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.W("design:paramtypes",[])],OW);
_.S(OW,"ytd-toggle-option-renderer",function(){if(Rlc!==void 0)return Rlc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Rlc=a},{mode:1});var Ulc=function(){var a=_.P.apply(this,arguments)||this;a.isToggleOption=!1;a.isOverlay=!1;return a};
_.z(Ulc,_.P);Ulc.prototype.onTap=function(a){a.preventDefault();this.data&&(a=!this.data.checked,this.set("data.checked",a),_.go(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:a,value:this.data.value}))};
_.Vm.Object.defineProperties(Ulc.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
var PW=Ulc;PW.prototype.onTap=PW.prototype.onTap;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],PW.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],PW.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],PW.prototype,"isToggleOption",void 0);_.U([_.O(),_.W("design:type",Object)],PW.prototype,"isOverlay",void 0);_.U([_.K("data.responseText"),_.W("design:type",String),_.W("design:paramtypes",[])],PW.prototype,"label",null);
_.U([_.M("ytd-toggle-option-clicked"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],PW.prototype,"onTap",null);PW=_.U([_.Q({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],PW);
_.S(PW,"ytd-checkbox-survey-option-renderer",function(){if(Qlc!==void 0)return Qlc;var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Qlc=a},{mode:1});var Vlc;var Wlc;var Xlc=function(){var a=_.P.apply(this,arguments)||this;a.checked=!1;a.isToggleOption=!1;return a};
_.z(Xlc,_.P);Xlc.prototype.onTap=function(){this.data&&(this.checked?_.ho(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.ho(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
var QW=Xlc;QW.prototype.onTap=QW.prototype.onTap;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],QW.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],QW.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],QW.prototype,"checked",void 0);_.U([_.O(),_.W("design:type",Object)],QW.prototype,"isToggleOption",void 0);
_.U([_.M("ytd-toggle-option-clicked"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],QW.prototype,"onTap",null);QW=_.U([_.Q({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],QW);
_.S(QW,"ytd-radio-button-survey-option-renderer",function(){if(Wlc!==void 0)return Wlc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Wlc=a},{mode:1});var Ylc=function(){var a=_.P.apply(this,arguments)||this;a.disableAnimation=!1;a.isToggleOption=!0;a.followUpSurveyCommand=null;a.selectedRatingEndpoint=null;a.isSlimlineSurveyFollowUp=!1;a.isShortsStyle=!1;a.styleOverrideAttribute=!0;a.isDarkMode=!1;a.isSubmitted=!1;a.roundedContainer=!0;a.improveShortsResponseRate=_.x("web_improve_shorts_response_rate");a.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 a};
_.z(Ylc,_.P);_.f=Ylc.prototype;
_.f.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"}}}}};
_.f.attached=function(){var a=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(c){var d;if((d=c[0])!=null&&d.isIntersecting){_.ks().reportShown(a.hostElement);var e;(e=a.intersectionObserver)==null||e.unobserve(a.hostElement)}},{rootMargin:"0px",
threshold:.6});var b;(b=this.intersectionObserver)==null||b.observe(this.hostElement)};
_.f.onDarkModeToggledAction=function(a){this.isDarkMode=a};
_.f.dataChanged=function(){var a;if(((a=this.data)==null?void 0:a.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var b;((b=this.data)==null?void 0:b.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var c,d,e,g;this.darkColorPalette=(c=this.data)==null?void 0:(d=c.inlineContent)==null?void 0:(e=d.compactVideoRenderer)==null?void 0:(g=e.thumbnail)==null?
void 0:g.darkColorPalette;var k,m,n,r;this.lightColorPalette=(k=this.data)==null?void 0:(m=k.inlineContent)==null?void 0:(n=m.compactVideoRenderer)==null?void 0:(r=n.thumbnail)==null?void 0:r.lightColorPalette;var t,u;if(((t=this.data)==null?0:(u=t.inlineContent)==null?0:u.compactVideoRenderer)&&this.isShortsStyle){var w,A,C,G;a=_.Ys((w=this.data)==null?void 0:(A=w.inlineContent)==null?void 0:(C=A.compactVideoRenderer)==null?void 0:(G=C.thumbnail)==null?void 0:G.thumbnails);_.dr(this.hostElement,
{"--yt-background-url":"url("+a+")"})}};
_.f.handleRequestCompletion=function(){this.hostElement.hidden&&_.go(this.hostElement,"yt-dismissible-item-dismissed")};
_.f.onPopupClosed=function(a){var b;((b=a.detail)==null?void 0:b.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.ho(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.f.handleInlineSurveyRatingSelect=function(a,b){var c=this;this.selectedRatingEndpoint=a;this.followUpSurveyCommand=b;this.expanded=!!a;this.getOptionRenderers().forEach(function(d,e){c.notifyPath("followUpSurveyCommand.followUpOptions."+e+".checkboxSurveyOptionRenderer.checked");c.set("followUpSurveyCommand.followUpOptions."+e+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),a=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.ho(this.hostElement,"yt-reel-non-video-content-dismissal-command",[a]))};
_.f.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.ho(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var a,b=(a=this.data)==null?void 0:a.dismissalEndpoint;b&&this.ytComponentBehavior.resolveCommand(b)}};
_.f.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.ho(this.hostElement,"yt-close-popup-action"))};
_.f.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var a=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{a=this.getOptionRenderers().filter(function(d){return d.checked});
if(a.length===0)return;a=a.map(function(d){return d.responseEndpoint})}var b=[];
a.forEach(function(d,e){e!==0&&(d=_.y(d,_.Pw))&&d.feedbackToken&&b.push(d.feedbackToken)});
if(a=a[0]){var c={};b.length>0&&(c.extra_feedback_tokens=b);this.ytComponentBehavior.resolveCommand(a,{form:c})}}};
_.f.getOptionRenderers=function(){var a=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(b){a.isSingleSelect=!!_.y(b,Olc);return a.isSingleSelect?_.y(b,Olc):_.y(b,Plc)}):[]};
_.f.handleInlineSurveyOptionSelect=function(a){a=this.optionSelector.indexOf(a);a!==-1&&this.optionSelector.selectIndex(a)};
_.f.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.f.maybeGetBackgroundColor=function(a){return this.isDarkMode?a.section2Color:a.section3Color};
_.f.colorPaletteChanged=function(){var a=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;a=a&&this.maybeGetBackgroundColor(a);this.dismissibleEl.style.backgroundColor=!a||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.Bq(a)};
_.Vm.Object.defineProperties(Ylc.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
var RW=Ylc;RW.prototype.colorPaletteChanged=RW.prototype.colorPaletteChanged;RW.prototype.onPopupClosed=RW.prototype.onPopupClosed;RW.prototype.handleRequestCompletion=RW.prototype.handleRequestCompletion;RW.prototype.dataChanged=RW.prototype.dataChanged;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],RW.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],RW.prototype,"actionHandlerBehavior",void 0);
_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],RW.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],RW.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.NI),_.W("design:type",Object)],RW.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.gr("#follow-up-survey-options"),_.W("design:type",Object)],RW.prototype,"optionSelector",void 0);_.U([_.O(),_.W("design:type",Object)],RW.prototype,"data",void 0);
_.U([_.O(),_.W("design:type",Object)],RW.prototype,"disableAnimation",void 0);_.U([_.O(),_.W("design:type",Object)],RW.prototype,"isToggleOption",void 0);_.U([_.O(),_.W("design:type",Object)],RW.prototype,"followUpSurveyCommand",void 0);_.U([_.O(),_.W("design:type",Object)],RW.prototype,"selectedRatingEndpoint",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],RW.prototype,"expanded",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],RW.prototype,"isSlimlineSurveyFollowUp",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],RW.prototype,"isShortsStyle",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],RW.prototype,"styleOverrideAttribute",void 0);_.U([_.O(),_.W("design:type",Boolean)],RW.prototype,"isSingleSelect",void 0);_.U([_.O(),_.W("design:type",Object)],RW.prototype,"isDarkMode",void 0);
_.U([_.O(),_.W("design:type",Object)],RW.prototype,"lightColorPalette",void 0);_.U([_.O(),_.W("design:type",Object)],RW.prototype,"darkColorPalette",void 0);_.U([_.K("selectedRatingEndpoint","isShortsStyle"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],RW.prototype,"isOptionSelected",null);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],RW.prototype,"roundedContainer",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],RW.prototype,"improveShortsResponseRate",void 0);_.U([_.gr("#dismissible"),_.W("design:type",HTMLElement)],RW.prototype,"dismissibleEl",void 0);_.U([_.gr("#dismiss-button yt-icon-button"),_.W("design:type",HTMLElement)],RW.prototype,"dismissButtonEl",void 0);_.U([_.gr("#inline-survey-header yt-icon-button"),_.W("design:type",HTMLElement)],RW.prototype,"inlineHeaderDismissButtonEl",void 0);
_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],RW.prototype,"dataChanged",null);_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],RW.prototype,"handleRequestCompletion",null);_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],RW.prototype,"onPopupClosed",null);
_.U([_.N("darkColorPalette","lightColorPalette","isDarkMode"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],RW.prototype,"colorPaletteChanged",null);RW=_.U([_.Q({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],RW);
_.S(RW,"ytd-inline-survey-renderer",function(){if(Vlc!==void 0)return Vlc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Vlc=a},{mode:1});
}catch(e){_._DumpException(e)}
try{
var X$c,Y$c,Z$c;X$c=function(a){return _.x("kevlar_watch_cinematics_invisible")||a.fullscreen&&_.x("kevlar_watch_cinematics_invisible_in_fullscreen")||a.theater&&!a.fullscreen&&_.x("kevlar_watch_cinematics_invisible_in_theater")};
Y$c=function(){var a=document.createElement("canvas"),b=a.getContext("2d");if(!b)throw Error("Sl");_.Xy(a,{position:"absolute",width:"100%",height:"100%"});return{element:a,context:b}};
Z$c=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.x("kevlar_watch_cinematics_css_blur")};
_.$$c=function(a,b,c){return Math.abs(a-b)<=(c||1E-6)};
_.aad=function(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1};_.bad=new _.X("notificationActionRenderer");var cad=function(a){var b=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.gq;this.element.addEventListener("load",function(){b.loaded=!0;b.resolver.resolve(b.element)});
this.element.addEventListener("error",function(){b.failed=!0});
this.element.src=a};var dad=function(a,b){this.image=a;this.frame=b};
dad.prototype.drawToCanvas=function(a,b){var c=this.frame.width/this.frame.columns,d=this.frame.height/this.frame.rows,e=b.offsetX,g=b.offsetY;X$c(b)?(a.fillStyle=b.fullscreen?"#000":"#0f0f0f",a.fillRect(e,g,(b==null?void 0:b.width)||c,(b==null?void 0:b.height)||d)):a.drawImage(this.image,this.frame.column*c,this.frame.row*d,c,d,e,g,(b==null?void 0:b.width)||c,(b==null?void 0:b.height)||d)};
var ead=function(a){this.color=a};
ead.prototype.drawToCanvas=function(a,b){var c=b.offsetX,d=b.offsetY,e=b.width,g=b.height;a.fillStyle=X$c(b)?b.fullscreen?"#000":"#0f0f0f":this.color;a.fillRect(c,d,e,g)};var j8=function(a,b){_.gY.call(this);this.playerApi=b;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.of(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();fad(this,a);_.gad(this);this.update()},jad;
_.z(j8,_.gY);j8.prototype.addEventListeners=function(){var a=this,b=function(){a.update()},c=function(e){a.paused||(e.type==="newdata"&&(a.mosaics.clear(),had(a),k8(a)),_.gad(a),a.update())},d=function(){a.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",b);this.playerApi.addEventListener("onVideoDataChange",c);this.playerApi.addEventListener("onStateChange",d);this.addOnDisposeCallback(function(){a.playerApi.removeEventListener("onVideoProgress",b);a.playerApi.removeEventListener("onVideoDataChange",c);a.playerApi.removeEventListener("onStateChange",d)})};
var fad=function(a,b){a.cinematicContainerRenderer!==b&&(a.cinematicContainerRenderer=b,had(a),k8(a),a.colorStoreUpdateJobId=_.zk.addLowPriorityJob(function(){var c;if((c=a.cinematicContainerRenderer.colorStore)!=null&&c.sampledColors){c=Infinity;for(var d=_.h(a.cinematicContainerRenderer.colorStore.sampledColors),e=d.next();!e.done;e=d.next()){e=e.value;var g=Number(e.key);g!==0&&g<c&&(c=g);g=_.Cq(e.value);a.colorStore.set(e.key,g)}a.colorStoreTimeInterval=c}}))},had=function(a){a.colorStoreUpdateJobId&&
(_.zk.cancelJob(a.colorStoreUpdateJobId),a.colorStoreUpdateJobId=void 0);
a.colorStore.clear();a.currentStoryboardColor=void 0},iad=function(a,b){var c;
return(c=a.getStoryboardFrame(b))==null?void 0:c.url};
j8.prototype.onPlayerStateChange=function(){this.update()};
j8.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
_.gad=function(a){var b=a.getStoryboardFrame(0);b&&(b=new _.of(b.width/b.columns,b.height/b.rows),_.aad(a.currentStoryboardSize,b)||(a.currentStoryboardSize=b,a.publish("STORYBOARD_SIZE_CHANGED",a.currentStoryboardSize)))};
jad=function(a,b){a.currentStoryboardIndex=b;a.pendingStoryboardIndex=NaN;b=a.getStoryboardFrame(a.currentStoryboardIndex);a.currentStoryboard=new dad(a.mosaics.get(b.url).element,b);a.publish("STORYBOARD_CHANGED",a.currentStoryboard);a.lastUpdateTime=(0,_.Uj)()};
j8.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var k8=function(a){a.currentStoryboardIndex=NaN;a.pendingStoryboardIndex=NaN;a.currentStoryboard&&(a.currentStoryboard=void 0,a.publish("STORYBOARD_CHANGED",void 0));a.lastUpdateTime=NaN};
j8.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)k8(this);else{var a=this.playerApi.getPlayerState(1);if(a===-1||a===5||a===0)k8(this);else if(isNaN(this.lastUpdateTime)||!((0,_.Uj)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(a=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){a=""+Math.round(a*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var b=this.colorStore.get(a);b?b!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=b,this.currentStoryboard=new ead(b),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.Uj)()):(_.Dl(new _.qj("Could not find color for timestamp: "+a,this.cinematicContainerRenderer)),k8(this))}else k8(this);else kad(this,a)}};
var kad=function(a,b){var c=a.getStoryboardFrameIndex(b);if(c!==a.currentStoryboardIndex&&c!==a.pendingStoryboardIndex){b=iad(a,c);var d=a.mosaics.get(b);d?d.loaded&&jad(a,c):(a.pendingStoryboardIndex=c,c=new cad(b),a.mosaics.set(b,c),c.resolver.promise.then(function(){if(!a.isDisposed()&&!a.paused&&!isNaN(a.pendingStoryboardIndex)){var e=iad(a,a.pendingStoryboardIndex);if(e){var g;(g=a.mosaics.get(e))!=null&&g.loaded&&jad(a,a.pendingStoryboardIndex)}else k8(a)}}))}};
j8.prototype.getStoryboardFrameIndex=function(a){var b=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(a,b)};
j8.prototype.getStoryboardFrame=function(a){var b=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,c,d;return((d=(c=this.playerApi).getStoryboardFrame)==null?void 0:d.call(c,a,b))||null};
j8.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var m8=function(a,b,c,d){d=d===void 0?!1:d;_.tg.call(this);this.cinematicContainerRenderer=b;this.playerApi=c;this.theater=this.fullscreen=!1;var e;this.ambientLightThemeEnabled=!d&&!!(b==null?0:(e=b.config)==null?0:e.enableInLightTheme);this.ambientFullscreenEnabled=d&&_.x("web_cinematic_fullscreen");this.container=document.createElement("div");a.appendChild(this.container);var g;if(_.x("web_cinematic_theater_mode")||_.x("web_cinematic_fullscreen")||(b==null?0:(g=b.config)==null?0:g.enableInLightTheme))this.ambientV2Container=
document.createElement("div"),this.container.appendChild(this.ambientV2Container);lad(this);a=this.ambientV2Container||this.container;this.backCanvas=Y$c();this.frontCanvas=Y$c();a.appendChild(this.backCanvas.element);a.appendChild(this.frontCanvas.element);this.storyboardManager=new j8(b,this.playerApi);_.gg(this,this.storyboardManager);this.addEventListeners();mad(this)?nad(this,100+l8(this)*3*2,100+l8(this)*3*2):oad(this);pad(this,this.storyboardManager.currentStoryboard)};
_.z(m8,_.tg);var lad=function(a){a.ambientV2Container?qad(a):(_.Xy(a.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+rad(a)+", "+sad(a)+")"}),Z$c()&&_.Xy(a.container,"filter","blur("+_.$i("cinematic_watch_css_filter_blur_strength",40)+"px)"))},qad=function(a){if(a.ambientV2Container){var b=a.playerApi.getVideoAspectRatio();
_.Xy(a.container,{"aspect-ratio":""+b,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.Xy(a.ambientV2Container,{"aspect-ratio":""+b,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+rad(a)+", "+sad(a)+")"});Z$c()&&_.Xy(a.ambientV2Container,"filter","blur("+_.$i("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
m8.prototype.setFullscreen=function(a,b){this.fullscreen=a;this.theater=!!b;lad(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),a=this.storyboardManager.currentStoryboard,tad(this),a&&uad(this,a)};
m8.prototype.addEventListeners=function(){var a=this,b=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(e){pad(a,e)}),c=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){oad(a)});
this.addOnDisposeCallback(function(){a.storyboardManager.unsubscribeByKey(b);a.storyboardManager.unsubscribeByKey(c)});
if(this.ambientV2Container){var d=function(){qad(a)};
this.playerApi.addEventListener("onVideoDataChange",d);this.addOnDisposeCallback(function(){a.playerApi.removeEventListener("onVideoDataChange",d)})}};
var oad=function(a){if(!mad(a)){var b=a.storyboardManager.currentStoryboardSize;isNaN(b.width)||isNaN(b.height)||nad(a,Number(b.width)+l8(a)*3*2,Number(b.height)+l8(a)*3*2)}},nad=function(a,b,c){a.backCanvas.element.width=b;
a.backCanvas.element.height=c;a.frontCanvas.element.width=b;a.frontCanvas.element.height=c},mad=function(a){return a.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},pad=function(a,b){var c=a.frontCanvas.element.getAnimations()[0];
c?(c.pause(),a.backCanvas.context.globalAlpha=Number(getComputedStyle(a.frontCanvas.element).opacity),a.frontCanvas.element.style.opacity="0",c.finish()):a.backCanvas.context.globalAlpha=1;a.backCanvas.context.drawImage(a.frontCanvas.element,0,0,a.backCanvas.element.width,a.backCanvas.element.height);tad(a);b&&uad(a,b);b=b?a.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.$i("cinematic_watch_fade_out_duration",500);c=_.$i("cinematic_watch_transition_frame_rate")/1E3;var d=
{};c&&(d={easing:"steps("+Math.round(b*c)+")"});a.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:b,iterations:1},d));a.frontCanvas.element.style.opacity="1"},tad=function(a){var b=a.ambientLightThemeEnabled,c=a.ambientLightThemeEnabled||a.ambientFullscreenEnabled&&!_.x("web_cinematic_fullscreen_v2");
a.frontCanvas.context.fillStyle=a.theater&&b||a.fullscreen&&c?"#000":"#0f0f0f";Z$c()||(a.frontCanvas.context.filter="blur(0)");a.frontCanvas.context.fillRect(0,0,a.frontCanvas.element.width,a.frontCanvas.element.height)},uad=function(a,b){Z$c()||(a.frontCanvas.context.filter="blur("+l8(a)+"px)");
a.frontCanvas.context.globalAlpha=_.$i("cinematic_watch_effect_opacity",.4);var c={offsetX:l8(a)*3,offsetY:l8(a)*3,theater:a.theater,fullscreen:a.fullscreen};mad(a)&&(c.width=100,c.height=100);b.drawToCanvas(a.frontCanvas.context,c);a.frontCanvas.context.globalAlpha=1},l8=function(a){var b;
return(b=a.cinematicContainerRenderer.config.blurStrength)!=null?b:5},rad=function(a){var b,c;
if((a.fullscreen||a.theater)&&((b=a.cinematicContainerRenderer.config)==null?0:(c=b.watchFullscreenConfig)==null?0:c.colorSourceWidthMultiplier))return a.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var d;return(d=a.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?d:a.cinematicContainerRenderer.config.colorSourceSizeMultiplier},sad=function(a){var b,c;
if((a.fullscreen||a.theater)&&((b=a.cinematicContainerRenderer.config)==null?0:(c=b.watchFullscreenConfig)==null?0:c.colorSourceHeightMultiplier))return a.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var d;return(d=a.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?d:a.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
m8.prototype.disposeInternal=function(){_.tg.prototype.disposeInternal.call(this);this.container.remove()};
m8.prototype.clear=function(){pad(this)};
m8.prototype.pause=function(){this.storyboardManager.pause()};var vad;vad=_.Cy(function(){var a,b,c=!((b=(a=document.createElement("canvas")).getContext)==null||!b.call(a,"2d")),d;a=!((d=CSS)==null||!d.supports("filter: blur(0)"));d=!!Element.prototype.animate&&!!Element.prototype.getAnimations;b=_.x("web_cinematic_fullscreen")||_.x("web_cinematic_theater_mode")||_.x("web_cinematic_light_theme")||!1;var e;return c&&a&&d&&(!b||!((e=CSS)==null||!e.supports("aspect-ratio: 1 / 1")))});
_.n8=function(a,b){_.gY.call(this);this.container=a;this.playerApi=b;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=wad(this);this.update()};
_.z(_.n8,_.gY);_.xad=function(a){var b=document.documentElement.hasAttribute("dark");a.isDarkModeEnabled=b;a.update()};
_.yad=function(a,b){a.settingEnabled=b;a.update()};
_.n8.prototype.setFullscreen=function(a,b){this.fullscreen=a;this.theater=!!b;this.update()};
_.zad=function(a,b){a.cinematicContainerRenderer=b;a.cinematicContainerRenderer&&(a.cinematicsVe=_.lu(a.isShorts()?227858:159022),_.nF(_.ms(),a.cinematicsVe),a.loggingClientData={watchCinematicContainerData:{presentationStyle:a.cinematicContainerRenderer.presentationStyle}});a.update()};
_.n8.prototype.isShorts=function(){var a,b;return((a=this.cinematicContainerRenderer)==null?void 0:(b=a.config)==null?void 0:b.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.n8.prototype.isAllowed=function(){var a;if(a=vad()){var b,c,d;a=((c=this.cinematicContainerRenderer)==null?void 0:c.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((d=this.cinematicContainerRenderer)==null||!d.colorStore)||((b=this.cinematicContainerRenderer)==null?void 0:b.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(a)if(_.x("web_cinematics_pausing")){var e,g;a=this.isDarkModeEnabled||!!((e=this.cinematicContainerRenderer)==
null?0:(g=e.config)==null?0:g.enableInLightTheme)}else{var k,m;e=!!((k=this.cinematicContainerRenderer)==null?0:(m=k.config)==null?0:m.enableInLightTheme)&&(_.Ei("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);a=this.isDarkModeEnabled||e}if(k=a){var n,r;k=!((r=(n=this.prefersReducedMotionQuery)==null?void 0:n.matches)!=null&&r)}return k};
_.Aad=function(a){var b;(b=a.currentCinematicEffect)==null||b.pause()};
_.n8.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var wad=function(a){if(!_.x("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var b=window.matchMedia("(prefers-reduced-motion: reduce)"),c=function(){a.update()};
b.addListener(c);a.addOnDisposeCallback(function(){b.removeListener(c)});
return b}};
_.n8.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var a=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new m8(this.container,a,this.playerApi,this.isDarkModeEnabled),_.gg(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var b=this.currentCinematicEffect;b.cinematicContainerRenderer!==
a&&(b.cinematicContainerRenderer=a,fad(b.storyboardManager,a),lad(b));a=_.wo();_.xo(0,194,!0);a.save();a=_.Fn();this.cinematicsVe&&a&&_.To(a,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(a=_.Fn(),this.cinematicsVe&&a&&_.Uo(a,[this.cinematicsVe],!1,this.loggingClientData),_.Tf(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.Vm.Object.defineProperties(_.n8.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var b$c;var c$c;_.qr({_template:function(){if(c$c!==void 0)return c$c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=
a.content,c=b.insertBefore;b$c===void 0&&(b$c=document.createElement("template"));var d=b$c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return c$c=a},
is:"tp-yt-iron-pages",behaviors:[_.KD,_.Fr],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var L6c;_.M6c=function(){if(_.x("kevlar_home_skeleton")&&!L6c){var a=document.querySelector("#home-page-skeleton");a&&(_.Jo("hgcr"),_.mg(a),L6c=!0)}};
L6c=!1;_.F6=new _.X("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var F5c=function(a){return _.OIa(_.NIa(a&16777215))<.5},G5c=function(a,b,c){var d=c.minimumRowsOfVideosBetweenSections===void 0?1:c.minimumRowsOfVideosBetweenSections;
return a<(c.minimumRowsOfVideosAtStart===void 0?2:c.minimumRowsOfVideosAtStart)||b!==null&&a-b<=d?!1:!0},H5c=function(a,b){var c=0,d=0;
a=_.h(a);for(var e=a.next();!e.done;e=a.next()){var g=e.value;if(g.richItemRenderer)g.richItemRenderer.rowIndex=d,g.richItemRenderer.colIndex=c++,c===b&&(c=0,d++);else if(g.richGroupRenderer&&g.richGroupRenderer.numColumns!==void 0)g.richGroupRenderer.rowIndex=d,g.richGroupRenderer.colIndex=c,c+=g.richGroupRenderer.numColumns,c===b&&(c=0,d++);else if(g.richSectionRenderer){var k=e=void 0;if(g=_.y((e=g)==null?void 0:(k=e.richSectionRenderer)==null?void 0:k.content,_.kAb))g.rowIndex=d++}}},I5c=function(a,
b){var c=b.contentElement;
b=b.rendererToTagNameMap;if(c&&b&&b.size!==0){for(var d=new Map,e=_.h(c.children),g=e.next();!g.done;g=e.next()){g=g.value;var k=g.tagName.toLowerCase(),m=d.get(k);m||(m=[],d.set(k,m));m.push(g)}if(d.size!==0)for(e=Math.min(a.length,c.children.length),g=new Map,k=0;k<e;k++){m=Object.keys(a[k])[0];m=b.get(m);if(!m)break;var n=g.get(m);n===void 0&&(n=0,g.set(m,n));var r=d.get(m);if(!r||n>=r.length)break;g.set(m,n+1);m=r[n];n=c.children[k];n!==m&&(m.remove(),c.insertBefore(m,n))}}},J5c=function(a,b,
c,d,e,g,k){d=d===void 0?{}:d;
if(!a||!a.length)return[];a=a.slice();var m=[],n=[];e=null;for(var r=0,t=function(I){n.sort(function(V,fa){return fa.skippedOnRow-V.skippedOnRow});
for(var R,ca=(R=n.shift())==null?void 0:R.content;ca;)!ca.richSectionRenderer&&I||m.push(ca),R=void 0,ca=(R=n.shift())==null?void 0:R.content},u=[];a.length>0||n.length>0;){for(var w=[],A=b;A>0;){var C=void 0,G=void 0,J=(G=n[0]&&n[0].skippedOnRow<r?(C=n.shift())==null?void 0:C.content:void 0)!=null?G:a.shift();
if(!J)break;if(J.richItemRenderer)C=J.richItemRenderer.targetId,G=void 0,C&&((G=k)==null?0:G.has(C))&&u.push(k.get(C)),w.push(J),A--;else if(J.richGroupRenderer&&J.richGroupRenderer.numColumns!==void 0)J.richGroupRenderer.numColumns<=A?(w.push(J),A-=J.richGroupRenderer.numColumns):A===b&&J.richGroupRenderer.numColumns>b?(w.push({richGroupRenderer:Object.assign({},J.richGroupRenderer,{numColumns:b})}),A=0):n.push({content:J,skippedOnRow:r});else if(J.richSectionRenderer)if(G5c(r,e,d)&&A===b){m.push(J);
e=r;r++;continue}else n.push({content:J,skippedOnRow:r});else if(J.continuationItemRenderer){t(!0);m.push(J);A=0;break}if(A===0)m.push.apply(m,_.Be(w));else if(!c&&a.length===0){t(!1);m.push.apply(m,_.Be(w));A=0;break}}r++;u=_.h(u);for(w=u.next();!w.done;w=u.next())m.push(w.value),r++;u=[]}H5c(m,b);g&&I5c(m,g);return m},L5c=function(a){var b=a.data;
var c=a.uniqueId;a=a.overrides;var d,e=((d=b.timedAnimationData)==null?void 0:d.animationTiming)||[];return _.q("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.q(_.uVa,{settings:{uniqueId:c,timings:e,experimentEnabled:e.length>0,enabled:e.length>0}},K5c(b.buttonRenderer,{buttonRenderer:{buttonOverrides:a}})))},M5c=function(a){return a.talkToRecs},P5c=function(a,b){if(b){var c=_.Yp().getState().entities.flowStateEntity,d=N5c(a),e=[b];
d&&d!==b&&e.push(d);var g=!0,k;if(c&&a.flowStateEntityKey&&((k=c[a.flowStateEntityKey])==null?void 0:k.primaryButtonDisabled)!==void 0){var m;g=!((m=c[a.flowStateEntityKey])==null||!m.primaryButtonDisabled)}O5c(a,d!=null?d:b,e,g)}},R5c=function(a){return _.wF(_.Yp(),function(b){return b.entities.flowStateEntity},function(b,c){if(a.flowStateEntityKey){var d,e=b==null?void 0:(d=b[a.flowStateEntityKey])==null?void 0:d.currentStepId,g;
c=c==null?void 0:(g=c[a.flowStateEntityKey])==null?void 0:g.currentStepId;g=_.Yp().getState().talkToRecs;if(e&&e!==c){var k;b=(b==null?void 0:(k=b[a.flowStateEntityKey])==null?void 0:k.stepIdStack)||Object.keys(g.stepStates);k=!Q5c(g==null?void 0:g.stepStates[e]);O5c(a,e,b,k)}}})},S5c=function(a){return _.wF(_.Yp(),M5c,function(b){var c=N5c(a);
if(c){var d=Object.keys(b.stepStates);b=!Q5c(b==null?void 0:b.stepStates[c]);O5c(a,c,d,b)}})},Q5c=function(a){var b=Object.keys((a==null?void 0:a.selectionStates)||{}).reduce(function(g,k){return g||(a==null?void 0:a.selectionStates[k].isSelected)},!1),c,d,e=!!(a==null?0:(c=a.userQuery)==null?0:(d=c.userQuery)==null?0:d.trim());
return b||e},N5c=function(a){if(a.flowStateEntityKey){var b,c,d=(b=_.Yp().getState().entities.flowStateEntity)==null?void 0:(c=b[a.flowStateEntityKey])==null?void 0:c.currentStepId;
if(d)return d}},O5c=function(a,b,c,d){_.Yp().dispatch(_.vu("flowStateEntity",a.flowStateEntityKey,{currentStepId:b,
stepIdStack:c,key:a.flowStateEntityKey,primaryButtonDisabled:d}))},T5c;var U5c;_.qr({_template:function(){if(U5c!==void 0)return U5c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);
var b=a.content,c=b.insertBefore;T5c===void 0&&(T5c=document.createElement("template"));var d=T5c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return U5c=a},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var V5c=new _.X("talkToRecsFlowRenderer");var W5c=new _.X("flowRootRenderer");var X5c=new _.X("chipsShelfViewModel");_.Y5c=new _.X("engagementPanelSectionListRenderer");var Z5c=function(){this.horizontal=!1},$5c=function(a,b){a.horizontal=b};
Z5c.prototype.position=function(a,b,c,d){d=d===void 0?1:d;a=this.delta(a)*d+b;d=Math.max(b,c);return a>=Math.min(b,c)&&a<=d?a:c};
Z5c.prototype.axis=function(a){a=this.direction(a);return a==="up"||a==="down"?"Y":"X"};var u6=function(a,b,c){b=b===void 0?_.qG():b;this.target=a;this.manager=b;this.touchAction=c;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
u6.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(_.Be(this.events)));for(var a=_.h(this.events),b=a.next();!b.done;b=a.next())this.listen(b.value)}};
u6.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.Be(this.events)));for(var a=_.h(this.events),b=a.next();!b.done;b=a.next())this.unlisten(b.value)}};
u6.prototype.listen=function(a){this.eventMap[a]&&this.target.addEventListener(a,this.eventMap[a])};
u6.prototype.unlisten=function(a){this.eventMap[a]&&this.target.removeEventListener(a,this.eventMap[a])};var v6=function(){Z5c.apply(this,arguments)};
_.z(v6,Z5c);v6.prototype.direction=function(a){var b=a.detail;a=b.deltaY;b=b.deltaX;return a&&!this.horizontal?a>0?"down":"up":b&&this.horizontal?b>0?"right":"left":"none"};
v6.prototype.distance=function(a){return Math.abs(this.delta(a))};
v6.prototype.delta=function(a){var b=this.direction(a),c=a.detail;a=c.deltaX;c=c.deltaY;return b==="up"||b==="down"?c||0:a||0};
v6.prototype.velocity=function(a){var b=this.direction(a),c=a.detail;a=c.velocityX;c=c.velocityY;return Math.abs(b==="up"||b==="down"?c||0:a||0)};_.w6=function(a,b,c,d,e,g){e=e===void 0?new v6:e;g=g===void 0?_.qG():g;u6.call(this,b,g,d);var k=this;this.element=a;this.target=b;this.config=c;this.input=e;this.manager=g;this.events=["panstart","panmove","panend"];this.onPanStart=function(){k.config.draggingClass&&k.element.classList.add(k.config.draggingClass);k.config.startAction&&k.config.startAction()};
this.onPanMove=function(m){var n=a6c(k,m);if(n){k.move(m,n);n.fade&&k.fade(m,n);var r=k.input.direction(m);n.moveAction&&n.moveAction(b6c(k,m,n),r)}};
this.onPanEnd=function(m){var n,r,t,u,w,A;return _.l(function(C){if(C.nextAddress==1){k.animationRequestId&&cancelAnimationFrame(k.animationRequestId);k.animationRequestId=void 0;n=a6c(k,m);if(!n)return C.return();r=n;t=r.triggerAction;u=r.fade;w=r.disableFinish;A=r.translateBack;var G=k.input.velocity(m),J=k.input.distance(m),I=k.threshold(n);return G>.3&&J>10||J>I?w?C.jumpTo(6):u?_.p(C,c6c(k,m),6):_.p(C,d6c(k,m,n),6):A?_.p(C,k.translateBack(m),3):C.jumpTo(3)}C.nextAddress!=3&&t&&t();k.config.draggingClass&&
k.element.classList.remove(k.config.draggingClass);k.reset();_.se(C)})};
a=Object.keys(c.triggers);this.directions=new Set(a);$5c(this.input,this.directions.has("right")||this.directions.has("left"))};
_.z(_.w6,u6);_.w6.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var a6c=function(a,b){b=a.input.direction(b);return a.config.triggers[b]};
_.w6.prototype.move=function(a,b){var c=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var d=c.input.axis(a),e=c.input.position(a,c.config.startPosition,b.endPosition,b.moveRatio||1);c.element.style.transform="translate"+d+"("+e+"px)";c.animationRequestId=void 0}))};
var b6c=function(a,b,c){var d=c.moveRatio||1;c=Math.abs(a.config.startPosition-c.endPosition);return Math.min(a.input.distance(b)*d,c)/c};
_.w6.prototype.fade=function(a,b){var c=b.endOpacity;a=b6c(this,a,b);a>0&&(this.element.style.opacity=""+(((c||0)-1)*a+1))};
_.w6.prototype.threshold=function(a){return a.threshold?a.threshold:Math.abs(a.endPosition-this.config.startPosition)/3};
var d6c=function(a,b,c){var d,e,g,k,m,n,r;return _.l(function(t){if(t.nextAddress==1)return d=a.input.delta(b)+a.config.startPosition,e=a.input.axis(b),g=c,k=g.endPosition,m=g.transitionEndPosition,r=(n=m)!=null?n:k,_.p(t,a.element.animate([{transform:"translate"+e+"("+d+"px)"},{transform:"translate"+e+"("+r+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);a.element.style.transform="translate"+e+"("+r+"px)";_.se(t)})};
_.w6.prototype.translateBack=function(a){var b=this,c,d;return _.l(function(e){if(e.nextAddress==1){if(!b.element.style.transform)return e.return();c=b.input.axis(a);d=b.config.startPosition;return _.p(e,b.element.animate([{transform:b.element.style.transform},{transform:"translate"+c+"("+d+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}b.element.style.transform="translate"+c+"("+d+"px)";_.se(e)})};
var c6c=function(a,b){var c,d,e,g;return _.l(function(k){if(k.nextAddress==1)return c=a.input.delta(b)+a.config.startPosition,d=a.input.axis(b),e=c+70,g=a.element.style.opacity===""?1:a.element.style.opacity,_.p(k,a.element.animate([{transform:"translate"+d+"("+c+"px)",opacity:g},{transform:"translate"+d+"("+e+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);a.element.style.transform="translate"+d+"("+e+"px)";a.element.style.opacity="0";_.se(k)})};var e6c=function(){var a=_.ir.apply(this,arguments)||this;a._noAccessors=!0;a.scrollRate=3;a.autoScrollAnimationStart=0;a.autoScrollPaused=!1;a.autoScrollRafId=0;return a};
_.z(e6c,_.ir);_.f=e6c.prototype;_.f.created=function(){var a=this;this.boundAutoScrollHandler=function(b){a.autoScroll(b)}};
_.f.detached=function(){this.hostElement.removeEventListener("mouseout",_.er(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.er(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.er(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.f.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.er(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.er(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.er(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.er(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.er(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.er(this,this.endAutoScroll)),this.endAutoScroll())};
_.f.autoScroll=function(a){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=a);var b;if(b=!this.autoScrollPaused&&this.scrollTarget)b=this.scrollTarget,b=b.scrollHeight-b.scrollTop!==b.clientHeight;b&&(b=1E3/this.scrollRate,a-=this.autoScrollAnimationStart,a>b&&(this.scrollTarget.scrollTop+=Math.ceil(a/b),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.f.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.f.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
var x6=e6c;x6.prototype.autoScrollEnabledChanged=x6.prototype.autoScrollEnabledChanged;_.U([_.O(),_.W("design:type",Object)],x6.prototype,"scrollRate",void 0);_.U([_.O(),_.W("design:type",Object)],x6.prototype,"scrollTarget",void 0);_.U([_.O(),_.W("design:type",Boolean)],x6.prototype,"autoScrollEnabled",void 0);_.U([_.N("autoScrollEnabled"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],x6.prototype,"autoScrollEnabledChanged",null);x6=_.U([_.jr()],x6);_.f6c=[x6.prototype];var g6c;var K5c=_.Au({buttonRenderer:_.dL});_.am(L5c);_.dt(L5c,"timed-animation-button-renderer",{propNames:["data","uniqueId","overrides"]});var h6c=function(){var a=_.P.apply(this,arguments)||this;a.hideJoinButtonBeforeSubscribed=_.x("hide_join_button_before_subscribed");a.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return a};
_.z(h6c,_.P);_.f=h6c.prototype;
_.f.configureRendererStamper=function(){return{"data.membershipButton":{id:"sponsor-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[joinButtonOverrides]]"}},timedAnimationButtonRenderer:{component:"timed-animation-button-renderer",params:{uniqueId:"join-button"},properties:{overrides:"[[joinButtonOverrides]]"}}}},"data.purchaseButton":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.analyticsButton":{id:"analytics-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.f.updateJoinButtonOverrides=function(){var a,b;(a=_.E(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(b=a.polymerController)==null||b.set("overrides",this.joinButtonOverrides);if(a=_.E(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))a.overrides=this.joinButtonOverrides};
_.f.handleButtonRefreshAction=function(a){if(a=_.y(a,_.Gyb))this.set("data.membershipButton",a.membershipButton),this.notifyPath("data.membershipButton")};
_.f.onYtServiceRequestError=function(a){_.KW(this.hostElement,a.detail.error.message)};
_.f.handleUnsubscribeAction=function(){var a,b,c;((a=this.data)==null?void 0:(b=a.membershipButton)==null?void 0:(c=b.buttonRenderer)==null?void 0:c.style)==="STYLE_PRIMARY"&&_.E(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.Vm.Object.defineProperties(h6c.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.subscriptionStateEntity)==null||!a.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var a,b=(a=this.data)==null?void 0:a.membershipButton,c;a=(b==null?void 0:b.buttonRenderer)||_.y(b==null?void 0:(c=b.timedAnimationButtonRenderer)==null?void 0:c.buttonRenderer,_.OE);return(a==null?void 0:a.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(a==null?void 0:a.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:{style:"mono",type:this.subscribed?"filled":"tonal"}}}});
var y6=h6c;y6.prototype.onYtServiceRequestError=y6.prototype.onYtServiceRequestError;y6.prototype.updateJoinButtonOverrides=y6.prototype.updateJoinButtonOverrides;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],y6.prototype,"actionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],y6.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],y6.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.H(_.LI),_.W("design:type",Object)],y6.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],y6.prototype,"data",void 0);_.U([_.K("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.W("design:type",Object),_.W("design:paramtypes",[])],y6.prototype,"hideJoin",null);_.U([_.O(),_.W("design:type",String)],y6.prototype,"subscribeKey",void 0);_.U([_.O({selectorArgs:["subscribeKey"],selector:_.ku}),_.W("design:type",Object)],y6.prototype,"subscriptionStateEntity",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],y6.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.U([_.K("subscriptionStateEntity"),_.O({reflectToAttribute:!0}),_.W("design:type",Object),_.W("design:paramtypes",[])],y6.prototype,"subscribed",null);_.U([_.K("subscribed","data.membershipButton"),_.W("design:type",Object),_.W("design:paramtypes",[])],y6.prototype,"joinButtonOverrides",null);
_.U([_.N("joinButtonOverrides"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],y6.prototype,"updateJoinButtonOverrides",null);_.U([_.M("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],y6.prototype,"onYtServiceRequestError",null);y6=_.U([_.Q({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],y6);
_.S(y6,"ytd-video-owner-renderer",function(){if(g6c!==void 0)return g6c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-owner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-video-owner-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1"><yt-img-shadow id="avatar" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-video-owner-renderer"></yt-img-shadow></a><div id="upload-info" class="style-scope ytd-video-owner-renderer"><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" class="style-scope ytd-video-owner-renderer"></ytd-channel-name><yt-formatted-string id="owner-sub-count" hidden="[[!data.subscriberCountText]]" text="[[data.subscriberCountText]]" class="style-scope ytd-video-owner-renderer"></yt-formatted-string><slot name="date" class="style-scope ytd-video-owner-renderer"></slot></div><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-video-owner-renderer"></div><div id="sponsor-button" hidden="[[hideJoin]]" class="style-scope ytd-video-owner-renderer"></div><div id="analytics-button" class="style-scope ytd-video-owner-renderer"></div>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return g6c=a},{mode:1});var i6c;var j6c=function(){var a=_.P.apply(this,arguments)||this;a.buttonUpdate=_.x("web_button_rework");a.dismissButtonOverrides=_.x("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;a.forceDarkTheme=!1;a.forceLightTheme=!1;a.dynamicTextHeight=94;a.hasOverflowButton=!1;a.isInfeedModernization=!1;return a};
_.z(j6c,_.P);_.f=j6c.prototype;_.f.computeUrlImg=function(a){if(a)return _.Ys(a.thumbnails)};
_.f.getLogoHeight=function(a){return this.logoWithPadding(a)?"31":"24"};
_.f.getLogoClassName=function(a){return this.logoWithPadding(a)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.f.logoWithPadding=function(a){var b,c;return(a=(b=a.thumbnails)==null?void 0:(c=b[0])==null?void 0:c.height)&&a%31===0?!0:!1};
_.f.sendImpressionEndpoints=function(a){a.impressionEndpoints&&_.mo(this.hostElement,a.impressionEndpoints)};
_.f.observeBasicPalette=function(){var a,b,c=(a=this.data)==null?void 0:(b=a.colorData)==null?void 0:b.basicColorPaletteData;c?_.Gt(this.hostElement,c):_.Gt(this.hostElement,{})};
_.f.observeDataChanged=function(){var a;this.dynamicTextHeight=((a=this.data)==null?0:a.supplementalText)?74:94;var b;this.hasSupplementalText=!((b=this.data)==null||!b.supplementalText);if(_.x("web_button_rework")){var c,d,e,g;a=(c=this.data)==null?void 0:(d=c.actionButton)==null?void 0:(e=d.buttonRenderer)==null?void 0:(g=e.colorData)==null?void 0:g.basicColorPaletteData;var k,m,n;if(!((k=this.data)==null?0:(m=k.actionButton)==null?0:(n=m.buttonRenderer)==null?0:n.style)&&a){this.computeIsInfeedModernization(this.data)||
(a.borderColor=a.foregroundTitleColor);var r,t;this.set("data.actionButton.buttonRenderer",_.yf.unsafeClone((r=this.data)==null?void 0:(t=r.actionButton)==null?void 0:t.buttonRenderer))}}};
_.f.observeDataForCounterfactual=function(){if(_.x("kevlar_banner_cf_extra_logging")){var a;((a=this.data)==null?0:a.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.f.computeSupplementalStyle=function(){var a;if((a=this.data)!=null&&a.supplementalText){var b,c,d;if((b=this.data)==null?0:(c=b.colorData)==null?0:(d=c.basicColorPaletteData)==null?0:d.foregroundActivatedColor)return a=_.Bq(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+a+"; --yt-endpoint-hover-color:"+a+"; --yt-endpoint-visited-color:"+a+"; --yt-formatted-string-bold-font-weight:700;"}};
_.f.computeForcedDarkTheme=function(){var a,b,c,d=(a=this.data)==null?void 0:(b=a.actionButton)==null?void 0:(c=b.buttonRenderer)==null?void 0:c.style,e,g,k;a=F5c(((e=this.data)==null?void 0:(g=e.colorData)==null?void 0:(k=g.basicColorPaletteData)==null?void 0:k.backgroundColor)||0);return d&&a};
_.f.computeForcedLightTheme=function(){var a,b,c,d=(a=this.data)==null?void 0:(b=a.actionButton)==null?void 0:(c=b.buttonRenderer)==null?void 0:c.style,e,g,k;a=!F5c(((e=this.data)==null?void 0:(g=e.colorData)==null?void 0:(k=g.basicColorPaletteData)==null?void 0:k.backgroundColor)||0);return d&&a};
_.f.computeHasOverflowButton=function(a){return!!a.overflowButton};
_.f.computeHasTitle=function(a){return!!a.title};
_.f.computeTitleMaxFontSize=function(a){return this.computeHasOverflowButton(a)?28:64};
_.f.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.f.computeIsInfeedModernization=function(){var a,b,c,d,e=(a=this.data)==null?void 0:(b=a.actionButton)==null?void 0:(c=b.buttonRenderer)==null?void 0:(d=c.colorData)==null?void 0:d.basicColorPaletteData;return(e==null?void 0:e.backgroundColor)===452984831||(e==null?void 0:e.backgroundColor)===218103808};
var z6=j6c;z6.prototype.observeDataForCounterfactual=z6.prototype.observeDataForCounterfactual;z6.prototype.observeDataChanged=z6.prototype.observeDataChanged;z6.prototype.observeBasicPalette=z6.prototype.observeBasicPalette;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],z6.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.NI),_.W("design:type",Object)],z6.prototype,"ytdDismissibleItemBehavior",void 0);
_.U([_.H(_.SI.YtdGuideStateAwareBehavior),_.W("design:type",Object)],z6.prototype,"ytdGuideStateAwareBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],z6.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],z6.prototype,"buttonUpdate",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],z6.prototype,"hasSupplementalText",void 0);_.U([_.O(),_.W("design:type",Object)],z6.prototype,"dismissButtonOverrides",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.W("design:type",Boolean)],z6.prototype,"hasTitle",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.W("design:type",Object)],z6.prototype,"forceDarkTheme",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.W("design:type",Object)],z6.prototype,"forceLightTheme",void 0);_.U([_.O(),_.W("design:type",Object)],z6.prototype,"dynamicTextHeight",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.W("design:type",Object)],z6.prototype,"hasOverflowButton",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.W("design:type",Object)],z6.prototype,"isInfeedModernization",void 0);_.U([_.N("data.colorData.basicColorPaletteData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],z6.prototype,"observeBasicPalette",null);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],z6.prototype,"observeDataChanged",null);_.U([_.N("data.isVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],z6.prototype,"observeDataForCounterfactual",null);z6=_.U([_.Q({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],z6);
_.S(z6,"ytd-banner-promo-renderer",function(){if(i6c!==void 0)return i6c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return i6c=a},{mode:1});var k6c;var l6c;var m6c;var n6c=function(){return _.P.apply(this,arguments)||this};
_.z(n6c,_.P);var o6c=n6c;_.U([_.O(),_.W("design:type",Object)],o6c.prototype,"data",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],o6c.prototype,"ytRendererBehavior",void 0);o6c=_.U([_.Q({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],o6c);
_.S(o6c,"ytd-hashtag-grid-tile-renderer",function(){if(m6c!==void 0)return m6c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return m6c=a},{mode:1});var p6c=function(){return _.P.apply(this,arguments)||this};
_.z(p6c,_.P);p6c.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
p6c.prototype.updateRichGridTrendingHashtagsVisibility=function(){var a,b;if(((a=this.data)==null||!a.isExpanded)&&(b=this.data)!=null&&b.tiles){a=this.data.tiles.length;b=a>this.richGridItemsPerRow?this.richGridItemsPerRow+1:a;var c=Math.ceil(a/b);this.fullyVisibleRows=a%b===1&&c===2?1:Math.min(c,2);this.isShowMoreVisible=this.fullyVisibleRows<c}};
p6c.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
var A6=p6c;A6.prototype.updateRichGridTrendingHashtagsVisibility=A6.prototype.updateRichGridTrendingHashtagsVisibility;_.U([_.O(),_.W("design:type",Object)],A6.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Number)],A6.prototype,"fullyVisibleRows",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],A6.prototype,"isShowMoreVisible",void 0);_.U([_.O({selector:_.Fp,value:0}),_.W("design:type",Number)],A6.prototype,"richGridItemsPerRow",void 0);
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],A6.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],A6.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],A6.prototype,"ytdReduxBehavior",void 0);_.U([_.N("data","richGridItemsPerRow"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],A6.prototype,"updateRichGridTrendingHashtagsVisibility",null);
A6=_.U([_.Q({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],A6);
_.S(A6,"ytd-hashtag-grid-shelf-renderer",function(){if(l6c!==void 0)return l6c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return l6c=a},{mode:1});var q6c;var r6c;var s6c=function(){var a=_.P.apply(this,arguments)||this;a.visibleVideos=[];a.hiddenVideos=[];a.modern=_.x("web_modern_buttons");a.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a};
_.z(s6c,_.P);_.f=s6c.prototype;_.f.attached=function(){var a=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",a);this.onDarkModeToggledAction(a)};
_.f.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"}}}};
_.f.dataChanged=function(){var a=this;this.requestElementsPerRow();var b,c;this.currentColorPalette=this.isDarkTheme?(b=this.data)==null?void 0:b.darkColorData:(c=this.data)==null?void 0:c.lightColorData;var d;if((d=this.currentColorPalette)==null?0:d.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.Tm(this,function(){a.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.f.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.f.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.f.computeIsFirstFeedItem=function(a){return a};
_.f.onDarkModeToggledAction=function(a){a!==this.isDarkTheme&&this.set("isDarkTheme",a);this.data&&(this.currentColorPalette=a?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.f.getCurrentLogo=function(a,b){if(a)return b?a.darkLogoImage:a.lightLogoImage};
_.f.computeTitleStyle=function(a){var b;if((b=this.data)!=null&&b.title&&a&&a.textPrimary!==void 0)return"color:"+_.Bq(a.textPrimary)+";"};
_.f.computeSubtitleStyle=function(a){var b;if((b=this.data)!=null&&b.subtitle&&a&&a.textSecondary!==void 0)return"color:"+_.Bq(a.textSecondary)+";"};
_.f.computeDismissIconStyle=function(a){if(this.data&&this.data.dismissButton){var b;if(a==null?0:(b=a.dismissButtonColorData)==null?0:b.foregroundTitleColor)return"--yt-button-color:"+_.Bq(a.dismissButtonColorData.foregroundTitleColor)+";";var c,d,e,g;if((c=this.data.dismissButton)==null?0:(d=c.buttonRenderer)==null?0:(e=d.colorData)==null?0:(g=e.basicColorPaletteData)==null?0:g.foregroundTitleColor)return"--yt-button-color:"+_.Bq(this.data.dismissButton.buttonRenderer.colorData.basicColorPaletteData.foregroundTitleColor)+
";"}};
_.f.computeOverflowButtonStyle=function(a){var b;if(this.data&&this.data.overflowButton&&(a==null?0:(b=a.dismissButtonColorData)==null?0:b.foregroundTitleColor))return"--ytd-menu-renderer-button-color:"+_.Bq(a.dismissButtonColorData.foregroundTitleColor)+";--yt-spec-icon-active-other:"+_.Bq(a.dismissButtonColorData.foregroundTitleColor)+";"};
_.f.computeBackgroundStyle=function(a){if(a&&this.data){var b="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var c=_.Ys((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);c&&(b+='background-image:url("'+c+'");')}a.backgroundColor!==void 0&&(b+="background-color:"+_.Cq(a.backgroundColor)+";");return b}};
_.f.computeButton=function(){var a,b=Object.assign({},_.y((a=this.data)==null?void 0:a.showMoreButton,_.OE));if(this.modern&&b){b.style="STYLE_DEFAULT";var c,d;if(a=(c=this.currentColorPalette)==null?void 0:(d=c.dismissButtonColorData)==null?void 0:d.foregroundTitleColor)b.colorData={basicColorPaletteData:{foregroundTitleColor:a,borderColor:a}}}return b};
_.f.shouldShowBottomButton=function(a,b){return!(a==null?0:a.header)&&!(a==null||!a.primaryButton)&&b<3};
_.f.checkExpanded=function(a){this.isExpanded=a&&a.content?this.hiddenVideos.length===0:!0};
_.f.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.f.getLogoHeight=function(a){return this.logoWithPadding(a)?"26":"20"};
_.f.getLogoImageId=function(a){return this.logoWithPadding(a)?"logo-image-with-padding":"logo-image"};
_.f.computeHasSectionHeader=function(a){return!!a.header};
_.f.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var a;if((a=this.data.primaryButton)==null?0:a.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 b;((b=this.data.dismissButton)==null?0:b.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var c,d;((c=this.data)==null?0:(d=c.primaryButton)==null?0:d.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.f.setVisibleVideos=function(a){if(this.data&&this.data.content)if(this.data.content.length){var b=this.data.content.length;this.data.header?a?(this.visibleVideos=this.data.content.slice(0,Math.min(b,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(b,this.slimItemsPerRow),b)):(this.visibleVideos=this.data.content.slice(0,Math.min(b,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(b,this.elementsPerRow),b)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(b,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(b,this.elementsPerRow),b)):(this.visibleVideos=this.data.content.slice(0,Math.min(b,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(b,this.elementsPerRow-1),b))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.f.setHasMovieRenderer=function(){var a;if((a=this.data)!=null&&a.content){var b;this.hasMovieRenderer=!!_.y((b=this.data)==null?void 0:b.content[0],_.MCb)}else this.hasMovieRenderer=!1};
_.f.requestElementsPerRow=function(){_.go(this.hostElement,"yt-request-elements-per-row")};
_.f.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var a=_.h(this.hiddenMediaRenderers),b=a.next();!b.done;b=a.next())b.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(a=_.E(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&a.focus()}};
_.f.updateTitleSpec=function(){var a;(a=this.data)!=null&&a.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.f.logoWithPadding=function(a){var b,c,d;return(a=(b=this.getCurrentLogo(a,this.isDarkTheme))==null?void 0:(c=b.thumbnails)==null?void 0:(d=c[0])==null?void 0:d.height)&&a%31===0?!0:!1};
_.f.onUpdateElementsPerRowAction=function(a,b,c){a&&this.elementsPerRow!==a&&(this.elementsPerRow=a);c&&this.slimItemsPerRow!==c&&(this.slimItemsPerRow=c)};
var B6=s6c;B6.prototype.slimItemsPerRowChanged=B6.prototype.slimItemsPerRowChanged;B6.prototype.elementsPerRowChanged=B6.prototype.elementsPerRowChanged;B6.prototype.dataChanged=B6.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],B6.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],B6.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.H(_.NI),_.W("design:type",Object)],B6.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],B6.prototype,"actionHandlerBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],B6.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],B6.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],B6.prototype,"currentColorPalette",void 0);_.U([_.O(),_.W("design:type",Array)],B6.prototype,"visibleVideos",void 0);
_.U([_.O(),_.W("design:type",Array)],B6.prototype,"hiddenVideos",void 0);_.U([_.O(),_.W("design:type",Object)],B6.prototype,"primaryButton",void 0);_.U([_.O({reflectToAttribute:!0,value:3}),_.W("design:type",Number)],B6.prototype,"elementsPerRow",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],B6.prototype,"isDarkTheme",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],B6.prototype,"isExpanded",void 0);
_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],B6.prototype,"largeTitle",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],B6.prototype,"hasMovieRenderer",void 0);_.U([_.O(),_.W("design:type",Number)],B6.prototype,"slimItemsPerRow",void 0);_.U([_.O(),_.W("design:type",Boolean)],B6.prototype,"showLightVideoMetadata",void 0);_.U([_.O(),_.W("design:type",Boolean)],B6.prototype,"showDarkVideoMetadata",void 0);
_.U([_.O(),_.W("design:type",Number)],B6.prototype,"videoMetadataColor",void 0);_.U([_.O({reflectToAttribute:!0,selector:_.Ep}),_.W("design:type",Boolean)],B6.prototype,"miniMode",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.W("design:type",Boolean)],B6.prototype,"isFirstFeedItem",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.W("design:type",Boolean)],B6.prototype,"hasSectionHeader",void 0);
_.U([_.O({reflectToAttribute:!0,value:!0}),_.W("design:type",Boolean)],B6.prototype,"roundedContainer",void 0);_.U([_.hr("#visible-video-container ytd-rich-grid-media"),_.W("design:type",Array)],B6.prototype,"visibleMediaRenderers",void 0);_.U([_.hr("#hidden-video-container ytd-rich-grid-media"),_.W("design:type",Array)],B6.prototype,"hiddenMediaRenderers",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],B6.prototype,"modern",void 0);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],B6.prototype,"dataChanged",null);_.U([_.N("elementsPerRow"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],B6.prototype,"elementsPerRowChanged",null);_.U([_.N("slimItemsPerRow"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],B6.prototype,"slimItemsPerRowChanged",null);
B6=_.U([_.Q({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],B6);
_.S(B6,"ytd-brand-video-shelf-renderer",function(){if(r6c!==void 0)return r6c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return r6c=a},{mode:1});var t6c;var u6c=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a};
_.z(u6c,_.P);_.f=u6c.prototype;_.f.attached=function(){var a=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",a);this.onDarkModeToggledAction(a)};
_.f.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.f.dataChanged=function(){this.requestElementsPerRow();var a,b;this.currentColorPalette=this.isDarkTheme?(a=this.data)==null?void 0:a.darkColorData:(b=this.data)==null?void 0:b.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.f.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.f.computeIsFirstFeedItem=function(a){return a};
_.f.onDarkModeToggledAction=function(a){a!==this.isDarkTheme&&this.set("isDarkTheme",a);this.data&&(this.currentColorPalette=a?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(a),this.updateButtonPalette())};
_.f.shouldShowThumbnailInMetadata=function(a){return a<=1};
_.f.getCurrentLogo=function(a,b){if(a)return b?a.darkLogoImage:a.lightLogoImage};
_.f.computeVideoMetadataColor=function(){if(this.data){var a;if((a=this.currentColorPalette)==null?0:a.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.f.computeTitleStyle=function(a){var b;if((b=this.data)!=null&&b.title&&a&&a.textPrimary!==void 0)return"color:"+_.Bq(a.textPrimary)+";"};
_.f.computeSubtitleStyle=function(a){var b;if((b=this.data)!=null&&b.subtitle&&a&&a.textSecondary!==void 0)return"color:"+_.Bq(a.textSecondary)+";"};
_.f.computeDismissIconStyle=function(a){if(this.data&&this.data.dismissButton){var b;if(a==null?0:(b=a.dismissButtonColorData)==null?0:b.foregroundTitleColor)return"--yt-button-color:"+_.Bq(a.dismissButtonColorData.foregroundTitleColor)+";";var c,d,e,g;if((c=this.data.dismissButton)==null?0:(d=c.buttonRenderer)==null?0:(e=d.colorData)==null?0:(g=e.basicColorPaletteData)==null?0:g.foregroundTitleColor)return"--yt-button-color:"+_.Bq(this.data.dismissButton.buttonRenderer.colorData.basicColorPaletteData.foregroundTitleColor)+
";"}};
_.f.computeOverflowButtonStyle=function(a){var b;if(this.data&&this.data.overflowButton&&(a==null?0:(b=a.dismissButtonColorData)==null?0:b.foregroundTitleColor))return"--ytd-menu-renderer-button-color:"+_.Bq(a.dismissButtonColorData.foregroundTitleColor)+";--yt-spec-icon-active-other:"+_.Bq(a.dismissButtonColorData.foregroundTitleColor)+";"};
_.f.computeBackgroundStyle=function(a){if(a&&this.data){var b="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var c=_.Ys((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);c&&(b+='background-image:url("'+c+'");')}a.backgroundColor!==void 0&&(b+="background-color:"+_.Cq(a.backgroundColor)+";");return b}};
_.f.computeHasOverflowButton=function(a){return!!a.overflowButton};
_.f.getLogoHeight=function(a){return this.logoWithPadding(a)?"26":"20"};
_.f.getLogoImageId=function(a){return this.logoWithPadding(a)?"logo-image-with-padding":"logo-image"};
_.f.updateButtonPalette=function(){if(this.data){var a;if((a=this.data.primaryButton)==null?0:a.buttonRenderer){var b;if((b=this.currentColorPalette)==null?0:b.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var c;if((c=this.currentColorPalette)==null?0:c.primaryButtonStyleType)this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0}this.set("primaryButton",{buttonRenderer:Object.assign({},this.data.primaryButton.buttonRenderer)})}var d;if((d=this.data.dismissButton)==null?0:d.buttonRenderer){var e;if((e=this.currentColorPalette)==null?0:e.dismissButtonColorData)this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData}}}};
_.f.requestElementsPerRow=function(){_.go(this.hostElement,"yt-request-elements-per-row")};
_.f.updateTitleSpec=function(){var a;(a=this.data)!=null&&a.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")};
_.f.logoWithPadding=function(a){var b,c,d;return(a=(b=this.getCurrentLogo(a,this.isDarkTheme))==null?void 0:(c=b.thumbnails)==null?void 0:(d=c[0])==null?void 0:d.height)&&a%31===0?!0:!1};
_.f.onUpdateElementsPerRowAction=function(a){a&&this.elementsPerRow!==a&&(this.elementsPerRow=a)};
var C6=u6c;C6.prototype.elementsPerRowChanged=C6.prototype.elementsPerRowChanged;C6.prototype.dataChanged=C6.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],C6.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],C6.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.NI),_.W("design:type",Object)],C6.prototype,"ytdDismissibleItemBehavior",void 0);
_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],C6.prototype,"actionHandlerBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],C6.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],C6.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],C6.prototype,"currentColorPalette",void 0);_.U([_.O(),_.W("design:type",Object)],C6.prototype,"primaryButton",void 0);
_.U([_.O({reflectToAttribute:!0,value:3}),_.W("design:type",Number)],C6.prototype,"elementsPerRow",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],C6.prototype,"isDarkTheme",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],C6.prototype,"titleSize",void 0);_.U([_.O(),_.W("design:type",Number)],C6.prototype,"videoMetadataColor",void 0);_.U([_.O({reflectToAttribute:!0,selector:_.Ep}),_.W("design:type",Boolean)],C6.prototype,"miniMode",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.W("design:type",Boolean)],C6.prototype,"isFirstFeedItem",void 0);_.U([_.O({reflectToAttribute:!0,value:!0}),_.W("design:type",Boolean)],C6.prototype,"roundedContainer",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.W("design:type",Boolean)],C6.prototype,"hasOverflowButton",void 0);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],C6.prototype,"dataChanged",null);_.U([_.N("elementsPerRow"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],C6.prototype,"elementsPerRowChanged",null);C6=_.U([_.Q({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],C6);
_.S(C6,"ytd-brand-video-singleton-renderer",function(){if(t6c!==void 0)return t6c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brand-video-singleton-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" style$="[[computeBackgroundStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n  <div id="content-wrapper" class="style-scope ytd-brand-video-singleton-renderer">\n    <div id="thumbnail-container" hidden="[[shouldShowThumbnailInMetadata(elementsPerRow)]]" class="style-scope ytd-brand-video-singleton-renderer">\n      <ytd-rich-grid-media data="[[data.content.videoRenderer]]" hidden="[[shouldShowThumbnailInMetadata(elementsPerRow)]]" metadata-color="[[videoMetadataColor]]" class="style-scope ytd-brand-video-singleton-renderer"></ytd-rich-grid-media>\n    </div>\n    <div id="metadata-container" class="style-scope ytd-brand-video-singleton-renderer">\n      <div id="metadata-text-container" class="style-scope ytd-brand-video-singleton-renderer">\n        <div id="header-container" hidden="[[data.overflowButton]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-img-shadow height$="[[getLogoHeight(data)]]" hidden="[[!data.lightLogoImage]]" id$="[[getLogoImageId(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          </yt-img-shadow>\n          <div id="badge-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n            <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n          </div>\n        </div>\n        <div id="title-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n        <div id="featured-badge-container" style$="[[computeTitleStyle(currentColorPalette)]]" hidden="[[!data.overflowButton]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string text="[[data.badgeText]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n        <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n      </div>\n      <div id="metadata-video-container" hidden="[[!shouldShowThumbnailInMetadata(elementsPerRow)]]" class="style-scope ytd-brand-video-singleton-renderer">\n        <ytd-rich-grid-media data="[[data.content.videoRenderer]]" hidden="[[!shouldShowThumbnailInMetadata(elementsPerRow)]]" metadata-color="[[videoMetadataColor]]" class="style-scope ytd-brand-video-singleton-renderer"></ytd-rich-grid-media>\n      </div>\n      <div id="button-container" class="style-scope ytd-brand-video-singleton-renderer">\n        <div id="primary-button" class="style-scope ytd-brand-video-singleton-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer"></div>\n  <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowButtonStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-brand-video-singleton-renderer"></div>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return t6c=a},{mode:_.as("kevlar_poly_si_batch_j070")?1:2});var v6c;var w6c=_.Rr(function(a){var b=a.data;return _.q(_.Ss,{data:function(){return b().thumbnail},
alt:"",className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail-image",targetHeight:function(){a:switch(b().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var c=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":c=88;break a;default:c=88}return c},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return b().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})}),y6c=_.Rr(function(a){var b=a.metadataRow;
var c=a.delimiter;return _.q(_.ni,{each:function(){return b().textParts||[]},
keyBy:"INDEX"},function(d,e){return _.q(_.Vh,null,_.q(_.wt,{text:d,noWrap:!0,userInput:!0}),_.q(x6c,{delimiter:c,max:function(){return b().textParts.length},
index:e}))})}),x6c=_.Rr(function(a){var b=a.delimiter;
var c=a.max;var d=a.index;return _.q(_.oi,{cond:function(){return(b==null?void 0:b())&&c()-1>d()},
then:function(){return _.q("span",null,b)}})}),z6c=_.Rr(function(a){var b=a.data;
a={};return _.q("yt-profile-page-header-information-view-model",{class:_.jt("profile-page-header-information-view-model-wiz",(a["profile-page-header-information-view-model-wiz--mobile"]=!1,a))},_.q(_.oi,{cond:function(){return b().onTap},
then:function(){return _.q(_.ut,{className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail",command:function(){return _.Es(b().onTap)}},_.q(_.Eu,{data:function(){return b().thumbnail}},{profilePageHeaderThumbnailViewModel:w6c}))},
else:function(){return _.q("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail"},_.q(_.Eu,{data:function(){return b().thumbnail}},{profilePageHeaderThumbnailViewModel:w6c}))}}),_.q("div",{class:"profile-page-header-information-view-model-wiz__flex-container"},_.q(_.oi,{cond:function(){return b().onTap},
then:function(){return _.q(_.Eu,{data:function(){return b().title}},{profilePageHeaderTitleViewModel:function(c){var d=c.data;
return _.q(_.ut,{className:"profile-page-header-information-view-model-wiz__profile-page-header-title",command:function(){return _.Es(d().onTap)}},_.q(_.wt,{text:function(){return d().title}}))}})},
else:function(){return _.q(_.Eu,{data:function(){return b().title}},{profilePageHeaderTitleViewModel:function(c){var d=c.data;
return _.q(_.wt,{text:function(){return d().title},
className:"profile-page-header-information-view-model-wiz__profile-page-header-title"})}})}}),_.q(_.Eu,{data:function(){return b().metadata}},{profilePageHeaderMetadataViewModel:function(c){var d=c.data;
return _.q(_.oi,{cond:function(){return d().metadataRows},
then:function(e){return _.q("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-metadata"},_.q(_.ni,{each:e,keyBy:"INDEX"},function(g,k){return _.q(_.Vh,null,_.q(y6c,{metadataRow:g,delimiter:" \u2022 "}),_.q(x6c,{delimiter:" \u2022 ",max:function(){return e().length},
index:k}))}))}})}})))});
z6c.idomCompat=!0;_.Ws(z6c,"yt-profile-page-header-information-view-model",{props:{data:_.SG}});var A6c=function(){return _.P.apply(this,arguments)||this};
_.z(A6c,_.P);A6c.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
var B6c=A6c;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],B6c.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],B6c.prototype,"data",void 0);B6c=_.U([_.Q({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],B6c);
_.S(B6c,"ytd-effect-pivot-header-view-model",function(){if(v6c!==void 0)return v6c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return v6c=
a},{mode:1});var C6c;var D6c=function(){return _.P.apply(this,arguments)||this};
_.z(D6c,_.P);D6c.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
var E6c=D6c;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],E6c.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],E6c.prototype,"data",void 0);E6c=_.U([_.Q({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],E6c);
_.S(E6c,"ytd-source-pivot-header-renderer",function(){if(C6c!==void 0)return C6c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return C6c=a},{mode:1});_.Ws(_.Rr(function(a){var b=function(){return _.y(a.data().flowRoot,W5c)};
_.vi(function(){var c=b(),d=function(){},e=function(){};
if(c){var g,k,m=(k=_.y((g=c.steps)==null?void 0:g[0],_.Loc))==null?void 0:k.stepId;P5c(c,m||"");d=R5c(c);e=S5c(c)}_.wh(function(){d();d=function(){};
e();e=function(){}})});
return _.q("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.q(_.j0b,{contentId:function(){return a.data().contentId}},function(){return _.q("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.q(_.oi,{cond:b,
then:function(c){return _.q(_.qrc,{data:c})}}))}))}),"ytd-talk-to-recs-flow-renderer",{props:{data:_.SG}});_.Ws(_.Rr(function(){return _.q("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.q("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.q("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.q(_.Zrc,null)),_.q(_.b3b,{data:{rows:1},isExploreHub:!0}))}),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.Ws(_.Rr(function(a){var b=a.data;var c=a.standardUnitMinWidth;a=_.Rl();var d=_.h((0,_.g3b)(b)),e=d.next().value,g=d.next().value,k=function(){var n,r=(n=e())==null?void 0:n.contents;return r==null||r.length===0},m=function(){g(Object.assign({},e(),{contents:[]}))};
_.$l(a,{showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var n=_.y(b().chipsShelf,X5c);if(n!=null&&n!=null&&n.autoselectChipOnVisible){var r,t,u=_.y(n==null?void 0:(r=n.contents)==null?void 0:r[(t=n.autoselectedChipIndex)!=null?t:0],_.SE);u&&u.tapCommand&&_.Js(u.tapCommand)}}});
_.yh(function(){var n,r=(n=e())==null?void 0:n.contents;r!==b().contents&&(b().contents=r)},"N6VRBc");
return _.q("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:a},_.q(_.j0b,{contentId:function(){return b().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.q("div",null,_.q("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.q(_.Eu,{data:function(){return b().header}},{sectionHeaderViewModel:function(n){return _.q(_.aQ,{data:n.data,
disableHorizontalPadding:!0})}})),_.q("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.q(_.Eu,{data:function(){return b().chipsShelf}},{chipsShelfViewModel:function(n){return _.q(_.m$b,{data:n.data,
callback:m,enableSingleChipSelection:!0})}})),_.q("div",null,_.q(_.oi,{cond:k,
then:function(){return _.q("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.q(_.b3b,{data:{rows:1},isExploreHub:!0}))}}),_.q(_.Eu,{data:function(){var n;
return(n=e())==null?void 0:n.contents}},{richShelfRenderer:function(n){return _.q(_.E7b,{data:n.data,
isInnerShelf:!0,standardUnitMinWidth:c})}})))}))}),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.SG,
standardUnitMinWidth:_.SG}});var F6c=function(){return _.P.apply(this,arguments)||this};
_.z(F6c,_.P);
F6c.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:{component:"ytd-destination-shelf-renderer",params:{isRichGrid:!0}},hashtagGridShelfRenderer:"ytd-hashtag-grid-shelf-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",richShelfRenderer:{component:"ytd-rich-shelf-renderer",
properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},sourcePivotHeaderRenderer:"ytd-source-pivot-header-renderer",effectPivotHeaderViewModel:"ytd-effect-pivot-header-view-model",showingResultsForRenderer:"yt-showing-results-for-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",richListHeaderRenderer:"ytd-rich-list-header-renderer",faqSectionRenderer:"yt-faq-section-renderer",
feedNudgeRenderer:"ytd-feed-nudge-renderer",shelfRenderer:"ytd-shelf-renderer",talkToRecsFlowRenderer:"ytd-talk-to-recs-flow-renderer",chipsShelfViewModel:"chips-shelf-view-model",chipsShelfWithVideoShelfRenderer:{component:"ytd-chips-shelf-with-video-shelf-renderer",properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0,disableGridStateAware:!0}},messageRenderer:"ytd-message-renderer",alertBannerViewModel:{component:"yt-alert-banner-view-model",
params:{isInRichGrid:!0}},chipsShelfWithVideoShelfGhostCardViewModel:"ytd-chips-shelf-with-video-shelf-ghost-card-view-model"},reuseComponents:!1}}};
F6c.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
var D6=F6c;_.U([_.H(_.LI),_.W("design:type",Object)],D6.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],D6.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.RM),_.W("design:type",Object)],D6.prototype,"ytContinuationHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],D6.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],D6.prototype,"data",void 0);
_.U([_.O(),_.W("design:type",Number)],D6.prototype,"standardUnitMinWidth",void 0);D6=_.U([_.Q({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],D6);
_.S(D6,"ytd-rich-section-renderer",function(){if(q6c!==void 0)return q6c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return q6c=a},{mode:_.as("kevlar_poly_si_batch_j029")?
1:2});_.Ws(_.gpc,"yt-profile-identity-info-view-model",{props:{data:_.SG,hideDivider:_.SG}});_.Ws(_.V$b,"yt-page-header-view-model",{props:{data:_.SG,noPadding:_.SG,enableBanner:_.SG,cinematicContainerTopbarOffset:_.SG,allowCinematicContainerOverflow:_.SG,displayAsSidebar:_.SG,displayAsPanel:_.SG}});_.Ws(_.Rr(function(a){var b=a.data;var c=function(){var e;return(e=b().numColumns)!=null?e:2},d=function(){return c()>1?3:2};
a={};return _.q("ytd-rich-grid-group",{class:_.jt("ytdRichGridGroupHost",(a.ytdRichGridGroupHostFirstColumn=function(){return b().colIndex===0},a)),
style:_.rt({"--ytd-rich-grid-group-num-columns":c,"--ytd-rich-grid-items-per-group":d})},_.q("div",{class:"ytdRichGridGroupContents"},_.q(_.Eu,{data:function(){var e;return(e=b().contents)==null?void 0:e.slice(0,d())}},{richItemRenderer:function(e){return _.q(_.B7b,{data:e.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))}),"ytd-rich-grid-group",{props:{data:_.SG}});var G6c=function(){var a=_.P.apply(this,arguments)||this;var b;a.currentDataContents=JSON.stringify((b=a.data)==null?void 0:b.contents);a.resizeOnObserverInit=!1;a.isInlinePreviewDisabled=_.x("web_disable_inline_preview");a.disableStickyFilterBar=!1;a.transparentBackgroundChipsBar=!1;a.hideChipsBar=!1;a.isWatchDefaultLayout=!0;a.continuationShowButton=!1;a.rowReducedHorizontalMargin=!1;a.useCompactList=!1;a.allVideosCount=0;a.allPlaylistCount=0;a.shouldRenderDownloadsBanner=!1;a.hasOptedIntoSmartDownloads=
!1;a.elementsPerRow=4;a.typographyBump=!1;a.showGnomeContents=!1;a.showExploreHubContents=!1;a.slimItemsPerRow=1;a.pageLoadingFromNavigation=!1;a.loggingRefactor=_.x("kevlar_rich_grid_logging_fix");a.resizeObserver=null;a.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"};
a.rendererToTagNameMap=new Map(Object.entries(a.contentMapping()).map(function(c){var d=_.h(c);c=d.next().value;d=d.next().value;return[c,d.component]}));
a.insertedContent=new Map;return a};
_.z(G6c,_.P);_.f=G6c.prototype;_.f.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var a=_.h(_.E(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),b=a.next();!b.done;b=a.next())b.value.useCompactList=this.useCompactList};
_.f.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var a=_.h(_.E(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),b=a.next();!b.done;b=a.next())b=b.value,b.sizing=this.sizing,b.typographyBump=this.typographyBump};
_.f.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.f.contentMapping=function(){return{richGroupRenderer:{component:"ytd-rich-grid-group"},richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isShortsGrid:"[[isShortsGrid]]",isSlimGrid:"[[isSlimGrid]]",isCompactGrid:"[[isCompactGrid]]",isShortsPanelGrid:"[[isShortsPanel]]",noGutterMargins:"[[noRichItemGutterMargins]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",useCompactList:"[[useCompactList]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]"},
params:{renderedFromRichGrid:!0}},richSectionRenderer:{component:"ytd-rich-section-renderer",properties:{standardUnitMinWidth:"[[data.minItemWidth]]"}},continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{isShortsGrid:"[[isShortsGrid]]",showButton:"[[continuationShowButton]]",continuationTriggerOffset:"[[continuationTriggerOffset]]"}}}};
_.f.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}}};
_.f.attached=function(){document.addEventListener("yt-page-type-changed",_.er(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.throttledOnResize=new _.hv(this.resizeObserved,_.$i("rich_grid_resize_delay_ms",50),this)};
_.f.detached=function(){var a;(a=this.resizeObserver)==null||a.disconnect();document.removeEventListener("yt-page-type-changed",_.er(this,this.onPageChange))};
_.f.insertRichSection=function(a){var b=a.richItemTargetId;a=a.richSectionRendererToInsert;b&&a&&(this.insertedContent.set(b,a),this.reflowContent())};
_.f.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.f.computeIsInlinePreviewEnabled=function(a,b,c){return _.x("web_disable_inline_preview")?!1:!c&&_.Coc({miniplayerIsActive:a,miniplayerPlaybackState:b})};
_.f.computeSizing=function(){var a=_.iZa(this.data);if(a||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return a?this.useCompactList?"COMPACT":a:this.miniMode?"COMPACT":_.x("web_use_layout_library_for_rich_grid")?"STANDARD":void 0};
_.f.updateItemMinAndMaxWidth=function(){var a=_.$i("rich_grid_max_item_width",500);a>0&&_.dr(this.hostElement,{"--ytd-rich-grid-item-max-width":a+"px"});var b;a=this.getRichItemMinWidth((b=this.hostElement)==null?void 0:b.clientWidth);a>0&&_.dr(this.hostElement,{"--ytd-rich-grid-item-min-width":a+"px"})};
_.f.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.f.resizeObserved=function(){_.ko(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.f.navigateBackToHome=function(){_.x("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=!1);_.x("web_hide_explore_hub_until_user_navigates_back_to_home")&&(this.showExploreHubContents=!1);var a=_.v().resolve(_.$t).isOnWatch(),b,c=((b=_.WHa(location.pathname))==null?void 0:b.toString())||"";(["search".toString(),"subscriptions".toString(),"shorts".toString()].includes(c)||a)&&this.gnomeContents&&_.x("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=
!0);a&&this.exploreHubContents&&_.x("web_hide_explore_hub_until_user_navigates_back_to_home")&&(_.Yp().dispatch(_.gp({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})),this.showExploreHubContents=!0)};
_.f.onPageChange=function(){var a=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.x("disable_chip_select_on_nav")||_.ko(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.zk.addJob(function(){a.pageLoadingFromNavigation=!1;_.x("disable_chip_select_on_nav")&&_.x("h5_reset_cache_and_filter_before_update_masthead")&&a.resetCacheAndIsFilteredFeed();a.setMasthead();a.maybeSetBigYoodle();a.forceRefreshAndLog();a.terminateVideoPreview();_.x("web_hide_gnome_until_user_navigates_back_to_home")&&
(a.dataChanged(),_.Tm(a,function(){if(a.showGnomeContents){var b=Array.from(_.E(a.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(d){d=_.E(d).querySelector("ytd-rich-shelf-renderer");return!!d&&d.isGnomeShelf()});
if(b){b=b.offsetTop-a.contentsElement.offsetTop;var c=_.v().resolve(_.$t).getCurrentPage();c&&c.getPageScrollingElement().scrollTo({top:b,behavior:"smooth"})}}}));
_.x("web_hide_explore_hub_until_user_navigates_back_to_home")&&(a.dataChanged(),_.Tm(a,function(){if(a.showExploreHubContents&&!_.x("web_explore_hub_no_scroll")){var b=Array.from(_.E(a.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(d){return!!d.querySelector("ytd-talk-to-recs-flow-renderer")});
if(b){b=b.offsetTop-a.contentsElement.offsetTop;var c=_.v().resolve(_.$t).getCurrentPage();c&&c.getPageScrollingElement().scrollTo({top:b,behavior:"smooth"})}}}))},8)):((_.x("web_hide_gnome_until_user_navigates_back_to_home")||_.x("web_hide_explore_hub_until_user_navigates_back_to_home"))&&this.navigateBackToHome(),this.mastheadData&&(this.mastheadData=void 0))};
_.f.dataChanged=function(){var a=this,b=_.$i("web_rich_grid_row_margin",0);b>0&&_.dr(this.hostElement,{"--ytd-rich-grid-row-margin":b+"px"});_.ko(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.Tm(this,function(){a.updateRichItemGridPositions();a.contentsElement&&_.dr(a.hostElement,{"--ytd-rich-grid-content-offset-top":a.contentsElement.offsetTop+
"px"})}),this.initResizeObserver())};
_.f.initResizeObserver=function(){var a=this;if(window.ResizeObserver){var b;(b=this.resizeObserver)==null||b.disconnect();var c=!1;this.resizeObserver=new ResizeObserver(function(){if(c){var d;(d=a.resizeObserver)==null||d.disconnect();var e;(e=a.throttledOnResize)==null||e.fire();requestAnimationFrame(function(){var k;(k=a.throttledOnResize)==null||k.fire();a.initResizeObserver()})}else if(c=!0,a.resizeOnObserverInit){var g;
(g=a.throttledOnResize)==null||g.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.f.contentLengthChanged=function(){if(_.x("rich_grid_contents_check_width_ks")||this.containerWidth||this.isShortsPanel)this.reflowContent(),_.ko(this.hostElement,"ytd-rich-item-index-update-action")};
_.f.updateElementsPerRow=function(){_.ko(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.gp({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.gp({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.f.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.f.onRichShelfRendererCollapse=function(a){if(this.shownItems){var b=a.detail;a=this.shownItems.findIndex(function(d){var e,g;return((g=_.y(d==null?void 0:(e=d.richSectionRenderer)==null?void 0:e.content,_.kAb))==null?void 0:g.trackingParams)===b});
var c=a+1;a<0||c>=this.contentsElement.children.length||!this.shownItems[c].richItemRenderer||this.contentsElement.children[c].scrollIntoView({behavior:"smooth",block:"start"})}};
_.f.onSoftReloadPage=function(){this.scrollUpToTop()};
_.f.handleRerenderDownloadsData=function(){var a,b=JSON.stringify(this==null?void 0:(a=this.entityDrivenRichGridData)==null?void 0:a.contents)||"";_.x("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&b!==this.currentDataContents&&(this.set("data.contents",this.entityDrivenRichGridData.contents),this.currentDataContents=b,this.reflowContent(),_.ko(this.hostElement,"yt-rich-grid-resize-observed"))};
_.f.handlePlaylistRemoveVideosAction=function(a){var b;if(((b=_.y(a,_.Gzb))==null?0:b.setVideoIds)&&this.data&&this.data.contents){a=_.y(a,_.Gzb).setVideoIds;for(b=this.data.contents.length-1;b>=0;){var c=_.y(this.data.contents[b],_.IE);(c=c&&_.y(c.content,_.NE))&&c.setVideoId&&a.includes(c.setVideoId)&&this.splice("data.contents",b,1);b--}this.updateIndices()}};
_.f.updateIndices=function(){if(this.data&&this.data.contents)for(var a=0;a<this.data.contents.length;a++)this.set("data.contents."+a+".richItemRenderer.index",_.Up(String(a+1)))};
_.f.hasTopRowInlinePlayableVideoWithEndorsement=function(a){var b;return!((b=a.slice(0,this.getItemsPerRow()))==null||!b.some(function(c){var d;c=_.y(c==null?void 0:(d=c.richItemRenderer)==null?void 0:d.content,_.uEb);var e;return(c==null?void 0:c.inlinePlaybackEndpoint)&&(c==null?void 0:(e=c.thumbnailOverlays)==null?void 0:e.some(function(g){return g.thumbnailOverlayEndorsementRenderer}))}))};
_.f.refreshGridLayoutNew=function(a,b,c,d){var e=d.postsPerRow;var g=d.slimItemsPerRow;var k=d.gameCardsPerRow;d=d.miniGameCardsPerRow;var m;if((m=this.data)==null||!m.contents||!this.containerWidth)return!1;var n;if((n=this.data.responsiveContainerConfiguration)==null?0:n.responsiveSize){var r=_.I0a(this.data.responsiveContainerConfiguration,this.containerWidth),t;m=_.dv(Object.assign({},r,{standardUnitMinWidth:(t=this.data)==null?void 0:t.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&r.isCompactList)}else m=_.dv({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(r=this.data)==null?void 0:r.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=m.typographyBump;t=!1;if(a||this.elementsPerRow!==m.numItems||this.postsPerRow!==e||this.slimItemsPerRow!==g||this.gameCardsPerRow!==
k||this.miniGameCardsPerRow!==d||this.gutter!==m.gutter)t=this.elementsPerRow!==m.numItems,this.elementsPerRow=m.numItems,this.postsPerRow=e,this.slimItemsPerRow=g,this.gameCardsPerRow=k,this.miniGameCardsPerRow=d,this.gutter=m.gutter,this.itemWidth=m.itemWidth,this.reflowContent(b),_.dr(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":m.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(c);this.ytdReduxBehavior.dispatch(_.gp({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:m.maxContainerWidth}));return t};
_.f.refreshGridLayout=function(a,b){var c,d=(c=this.hostElement)==null?void 0:c.clientWidth;this.containerWidth=this.adjustRichGridWidth(d,!0);var e;if((e=this.data)==null||!e.contents||!this.containerWidth)return a&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&!_.x("rg_pending_reflow_ks")&&(a=!0,this.pendingForceReflow=!1);c=this.getRichItemMinWidth(d);var g=this.isShortsPanel?146:194,k=this.getMiniGameCardMinWidth(),m=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;
d=c=this.calcElementsPerRow(c,m);(e=c<=3&&this.miniModeAllowed())&&(c=this.calcElementsPerRow(240,4));var n=this.calcMaxSlimElementsPerRow(c,m,this.isDefaultGrid);m=this.calcElementsPerRow(g,n);var r=this.calcElementsPerRow(this.isCompactGrid?g:154,n);g=this.calcElementsPerRow(this.isCompactGrid&&!_.x("enable_playables_reduced_card_count")?g:k,n);k=!1;if(this.sizing)return this.refreshGridLayoutNew(a,b,e,{postsPerRow:d,slimItemsPerRow:m,gameCardsPerRow:r,miniGameCardsPerRow:g});if(a||this.elementsPerRow!==
c||this.postsPerRow!==d||this.slimItemsPerRow!==m||this.gameCardsPerRow!==r||this.miniGameCardsPerRow!==g)k=this.elementsPerRow!==c,this.elementsPerRow=c,this.postsPerRow=d,this.slimItemsPerRow=m,this.gameCardsPerRow=r,this.miniGameCardsPerRow=g,this.reflowContent(b),this.updateElementsPerRow(),_.dr(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)&&_.dr(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(e);_.ko(this.hostElement,"yt-rich-grid-layout-refreshed");return k};
_.f.getRichItemMinWidth=function(a){var b=_.$i("rich_grid_min_item_width",310);if(!_.x("kevlar_disable_min_width_override")){var c,d;b=(d=(c=this.data)==null?void 0:c.minItemWidth)!=null?d:b}return b+_.bZa(a)};
_.f.calcMaxSlimElementsPerRow=function(a,b,c){return(c===void 0?0:c)?a===1?2:a%2===0?_.x("web_shorts_2_by_3_reduce_items_per_row")&&a>=4?a/2*3-1:a/2*3:_.x("web_shorts_2_by_3_reduce_items_per_row")&&a>=3?a+1:a+2:b*2};
_.f.adjustRichGridWidth=function(a,b){var c=_.x("disable_rich_grid_guide_compensation");if(!this.isWatch&&!c){c=_.v().resolve(_.Wi(_.RI));var d=c==null?void 0:c.guideElement;if(!(!c||c.getData()||d!=null&&d.opened||c.getMiniGuideVisible()))if(c.canFitPersistentGuide(a)&&c.getGuideExpandsAutomatically()){var e,g,k=Number((e=window.getComputedStyle(this.hostElement))==null?void 0:(g=e.getPropertyValue("--app-drawer-width"))==null?void 0:g.replace("px",""));a-=k||0}else if(c.canFitMiniGuide(a)){var m;
e=Number((k=window.getComputedStyle(this.hostElement))==null?void 0:(m=k.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:m.replace("px",""));a-=e||0}}a>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(a-=b?32:48));return a};
_.f.calcElementsPerRow=function(a,b){var c=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),d=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((c+d)/(a+d))||1,b)};
_.f.reflowContent=function(a){var b=this;if(!this.isReflowing){this.isReflowing=!0;var c,d,e=!!((c=this.data)==null?0:(d=c.contents)==null?0:d.some(function(A){return _.y(A,_.lw)}));
c=this.getItemsPerRow();var g;d=(g=this.data)==null?void 0:g.reflowOptions;a&&(_.Jo("rgr_s"),_.Tm(this,function(){_.Jo("rgr_nrf")}));
a={};(g=_.E(this.hostElement).querySelector("#contents"))&&(a={contentElement:g,rendererToTagNameMap:this.rendererToTagNameMap});g=(g=this.data.contents)?g.slice():[];var k=(_.x("web_hide_gnome_behind_feed_filter_chip")||_.x("web_hide_gnome_until_user_navigates_back_to_home"))&&!this.showGnomeContents,m=_.x("web_hide_explore_hub_until_user_navigates_back_to_home")&&!this.showExploreHubContents,n=-1,r=-1;if(this.isHomePage&&m){for(m=0;m<g.length;m++){var t=void 0,u=void 0;_.y((t=g[m])==null?void 0:
(u=t.richSectionRenderer)==null?void 0:u.content,V5c)&&(r=m)}r>-1&&(this.exploreHubContents=g.splice(r,1))}if(this.isHomePage&&k){for(r=0;r<g.length;r++)u=t=void 0,(m=_.y((t=g[r])==null?void 0:(u=t.richSectionRenderer)==null?void 0:u.content,_.kAb))&&k&&(u=t=void 0,m=_.y((t=m)==null?void 0:(u=t.contents)==null?void 0:u[0],_.IE),t=void 0,_.y((t=m)==null?void 0:t.content,_.mBb)&&(n=r));n>-1&&(this.gnomeContents=g.splice(n,1))}var w=J5c(g,c,e,d,this.getRichGridStyle(),a,this.insertedContent);e=function(){b.shownItems=
w;b.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(w),_.Tm(this,e)):e()}};
_.f.getFirstRowItems=function(a){for(var b=[],c=0;c<a.length;c++){var d=void 0,e=void 0,g=void 0,k=void 0,m=void 0,n=void 0;if(((d=a[c])==null?void 0:(e=d.richItemRenderer)==null?void 0:e.rowIndex)===0||((g=a[c])==null?void 0:(k=g.richGroupRenderer)==null?void 0:k.rowIndex)===0||((m=a[c])==null?void 0:(n=m.richSectionRenderer)==null?void 0:n.rowIndex)===0)b.push(a[c]);else break}return b};
_.f.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.f.handleChipCloudChipSelectAction=function(a,b){this.terminateVideoPreview();this.cachedContents||this.setCacheAndIsFilteredFeed();_.x("web_hide_gnome_behind_feed_filter_chip")&&(b?(this.showGnomeContents=!0,this.set("data.contents",this.gnomeContents)):this.showGnomeContents=!1)};
_.f.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);_.x("enable_rich_grid_continuation_reflow_fix")||this.reflowContent();this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.f.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();_.x("web_hide_gnome_behind_feed_filter_chip")&&(this.showGnomeContents=!1);this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.f.terminateVideoPreview=function(){_.ko(this.hostElement,"yt-terminate-video-preview-action")};
_.f.updateRichItemGridPositions=function(){var a={gridData:{gridColumnCount:this.elementsPerRow}},b;if((b=this.data)==null?0:b.trackingParams)this.loggingRefactor?_.ms().stateChanged(this.data.trackingParams,a):(b=_.Fn())&&_.Xo(b,_.qs(this.data.trackingParams),a);_.ko(this.hostElement,"ytd-rich-item-index-update-action")};
_.f.miniModeAllowed=function(){return _.x("disable_channels_mini_mode")?!1:this.isChannelPage};
_.f.getMiniGameCardMinWidth=function(){return _.x("enable_playables_reduced_card_count")?240:154};
_.f.updateMiniMode=function(a){this.miniMode=this.miniModeAllowed()&&a;this.ytdReduxBehavior.dispatch(_.gp({type:"SET_RICH_GRID_MINI_MODE",payload:a}))};
_.f.isCurrentPage=function(){return location.pathname===this.pagePath};
_.f.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var a=_.v().resolve(_.$t).getCurrentPage();a&&a.setScrollTop(0)}};
_.f.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.f.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.f.maybeSetBigYoodle=function(){var a,b=(a=this.data)==null?void 0:a.bigYoodle;this.bigYoodleData!==b&&(this.bigYoodleData=b)};
_.f.setMasthead=function(){var a;((a=this.data)==null?0:a.masthead)?this.mastheadData=this.data.masthead:_.x("disable_cached_masthead_data")&&(this.mastheadData=void 0)};
_.f.getRichGridStyle=function(){var a,b;return(b=(a=this.data)==null?void 0:a.style)!=null?b:"RICH_GRID_STYLE_UNKNOWN"};
_.f.onIsShortsGridChange=function(){var a=this.ytdReduxBehavior,b=a.dispatch,c=this.getRichGridStyle();b.call(a,_.gp({type:"SET_RICH_GRID_STYLE",payload:c}))};
_.Vm.Object.defineProperties(G6c.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var a;return(((a=this.data)==null?void 0:a.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var a;return(((a=this.data)==null?void 0:a.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var a=_.v().resolve(_.$t).getCurrentPage(),b,c;return(((b=this.data)==null?void 0:b.targetId)==="browse-feedFEsfv_audio_pivot"||_.x("web_enable_channel_pivot_panel")&&((c=this.data)==null?void 0:c.targetId)==="browse-feedFEsfv_channel_pivot")&&(a==null?void 0:a.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.x("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 a;return!((a=this.data)==null?0:a.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var a;return((a=_.v().resolve(_.$t).getCurrentPage())==null?void 0:a.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var a;return((a=_.v().resolve(_.$t).getCurrentPage())==null?void 0:a.pageSubtype)==="home"}},
isSlimGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SLIM"}},
isShortsGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID"||this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
noRichItemGutterMargins:{configurable:!0,enumerable:!0,get:function(){return this.isSlimGrid||this.isShortsGrid}},
isShortsGridSlim:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
isCompactGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_COMPACT"}},
isDefaultGrid:{configurable:!0,enumerable:!0,get:function(){return!this.getRichGridStyle()||this.getRichGridStyle()==="RICH_GRID_STYLE_UNKNOWN"}},
hideChipsBarOnHome:{configurable:!0,enumerable:!0,get:function(){var a;return this.hideChipsBar||(((a=this.data)==null?void 0:a.targetId)||"")==="browse-feedFEwhat_to_watch"&&_.x("kevlar_hide_chips_on_home")}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var a;return(((a=this.data)==null?void 0:a.targetId)||"")==="watch-next-feed"&&!_.x("swatcheroo_disable_chips")}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return((a=this.data)==null?0:a.enableContentSpecificAspectRatio)||((b=this.data)==null?0:(c=b.responsiveContainerConfiguration)==null?0:c.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.$i("web_continuation_handler_margin",0):0}}});
var E6=G6c;E6.prototype.onIsShortsGridChange=E6.prototype.onIsShortsGridChange;E6.prototype.onReloadContinuationFinish=E6.prototype.onReloadContinuationFinish;E6.prototype.reflowContent=E6.prototype.reflowContent;E6.prototype.handleRerenderDownloadsData=E6.prototype.handleRerenderDownloadsData;E6.prototype.onRichShelfRendererCollapse=E6.prototype.onRichShelfRendererCollapse;E6.prototype.onRequestElementsPerRow=E6.prototype.onRequestElementsPerRow;E6.prototype.contentLengthChanged=E6.prototype.contentLengthChanged;
E6.prototype.dataChanged=E6.prototype.dataChanged;E6.prototype.onSizingChange=E6.prototype.onSizingChange;E6.prototype.onUseCompactListChange=E6.prototype.onUseCompactListChange;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],E6.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],E6.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.KD),_.W("design:type",Object)],E6.prototype,"ironResizableBehavior",void 0);
_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],E6.prototype,"actionHandlerBehavior",void 0);_.U([_.H(_.RM),_.W("design:type",Object)],E6.prototype,"ytContinuationHandlerBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],E6.prototype,"componentBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],E6.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],E6.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0,selector:_.Ep}),_.W("design:type",Boolean)],E6.prototype,"miniMode",void 0);_.U([_.O({value:[]}),_.W("design:type",Array)],E6.prototype,"shownItems",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],E6.prototype,"isReflowing",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],E6.prototype,"isFilteredFeed",void 0);_.U([_.O({selector:_.kFa}),_.W("design:type",Boolean)],E6.prototype,"guideIsExpanded",void 0);
_.U([_.O({selectorArgs:["entitySelectorType"],selector:function(a,b){if(_.x("kevlar_modern_downloads_page")&&b&&b!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(b){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":var c=a.entities;b=_.Cp(c);var d=_.fFa(c),e=_.BFa(a),g=_.AFa(a);a=_.CFa(a);var k=_.bFa(c),m=_.mEa(b);c=_.Dp(c);return _.E4a(b,d,k,e,g,m,c,a);case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return b=_.Cp(a.entities),_.F4a(b);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return b=
_.YEa(a.entities),_.F4a(b);default:_.Dl(new _.qj("Error: entitySelectorType defined but not matched in selector.",a,b))}}}),
_.W("design:type",Object)],E6.prototype,"entityDrivenRichGridData",void 0);_.U([_.O(),_.W("design:type",Object)],E6.prototype,"currentDataContents",void 0);_.U([_.O(),_.W("design:type",Object)],E6.prototype,"resizeOnObserverInit",void 0);_.U([_.O(),_.W("design:type",Object)],E6.prototype,"bigYoodleData",void 0);_.U([_.O(),_.W("design:type",Object)],E6.prototype,"mastheadData",void 0);_.U([_.O(),_.W("design:type",Boolean)],E6.prototype,"isInlinePreviewDisabled",void 0);
_.U([_.O(),_.W("design:type",Object)],E6.prototype,"disableStickyFilterBar",void 0);_.U([_.O(),_.W("design:type",Object)],E6.prototype,"transparentBackgroundChipsBar",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],E6.prototype,"hideChipsBar",void 0);_.U([_.O(),_.W("design:type",Object)],E6.prototype,"isWatchDefaultLayout",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],E6.prototype,"continuationShowButton",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],E6.prototype,"rowReducedHorizontalMargin",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],E6.prototype,"useCompactList",void 0);_.U([_.O({selector:_.tFa}),_.W("design:type",Object)],E6.prototype,"allVideosCount",void 0);_.U([_.O({selector:_.y2a}),_.W("design:type",Object)],E6.prototype,"allPlaylistCount",void 0);_.U([_.O({selector:_.AFa}),_.W("design:type",Object)],E6.prototype,"shouldRenderDownloadsBanner",void 0);
_.U([_.O({selector:_.BFa}),_.W("design:type",Object)],E6.prototype,"hasOptedIntoSmartDownloads",void 0);_.U([_.N("useCompactList"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],E6.prototype,"onUseCompactListChange",null);_.U([_.N("sizing","typographyBump"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],E6.prototype,"onSizingChange",null);
_.U([_.O({selector:_.pFa}),_.W("design:type",Number)],E6.prototype,"miniplayerPlaybackState",void 0);_.U([_.O({selector:_.Gp}),_.W("design:type",Boolean)],E6.prototype,"miniplayerIsActive",void 0);_.U([_.O({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.W("design:type",Boolean)],E6.prototype,"isInlinePreviewEnabled",void 0);
_.U([_.O({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.W("design:type",String)],E6.prototype,"sizing",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],E6.prototype,"elementsPerRow",void 0);_.U([_.O(),_.W("design:type",Object)],E6.prototype,"typographyBump",void 0);_.U([_.O(),_.W("design:type",Number)],E6.prototype,"itemWidth",void 0);
_.U([_.gr("#header"),_.W("design:type",HTMLElement)],E6.prototype,"headerElement",void 0);_.U([_.gr("#contents"),_.W("design:type",HTMLElement)],E6.prototype,"contentsElement",void 0);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],E6.prototype,"dataChanged",null);_.U([_.kr("data.contents.length"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],E6.prototype,"contentLengthChanged",null);
_.U([_.M("yt-request-elements-per-row"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],E6.prototype,"onRequestElementsPerRow",null);_.U([_.M("yt-rich-shelf-renderer-collapse"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],E6.prototype,"onRichShelfRendererCollapse",null);
_.U([_.kr("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","allPlaylistCount","entityDrivenRichGridData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],E6.prototype,"handleRerenderDownloadsData",null);_.U([_.K("data"),_.W("design:type",String),_.W("design:paramtypes",[])],E6.prototype,"entitySelectorType",null);
_.U([_.O({reflectToAttribute:!0}),_.K("data.targetId"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],E6.prototype,"isSub",null);_.U([_.O({reflectToAttribute:!0}),_.K("data.targetId"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],E6.prototype,"isWatch",null);_.U([_.O({reflectToAttribute:!0}),_.K("data.targetId"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],E6.prototype,"isShortsPanel",null);
_.U([_.O({reflectToAttribute:!0}),_.K("isWatch"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],E6.prototype,"reducedTopMargin",null);_.U([_.O({reflectToAttribute:!0}),_.K("data","isWatch","isWatchDefaultLayout"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],E6.prototype,"noTopMargin",null);_.U([_.O({reflectToAttribute:!0}),_.K("isInlinePreviewEnabled","shownItems"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],E6.prototype,"topRowEndorsement",null);
_.U([_.K("data.header"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],E6.prototype,"hideHeader",null);_.U([_.M("yt-rich-grid-reflow"),_.W("design:type",Function),_.W("design:paramtypes",[Boolean]),_.W("design:returntype")],E6.prototype,"reflowContent",null);_.U([_.M("yt-reload-continuation-finish"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],E6.prototype,"onReloadContinuationFinish",null);
_.U([_.K("data"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],E6.prototype,"isSlimGrid",null);_.U([_.K("data"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],E6.prototype,"isShortsGrid",null);_.U([_.K("data","isSlimGrid","isShortsGrid"),_.O(),_.W("design:type",Boolean),_.W("design:paramtypes",[])],E6.prototype,"noRichItemGutterMargins",null);
_.U([_.K("data"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],E6.prototype,"isShortsGridSlim",null);_.U([_.K("data"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],E6.prototype,"isCompactGrid",null);_.U([_.K("data"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],E6.prototype,"isDefaultGrid",null);
_.U([_.K("data.targetId"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],E6.prototype,"hideChipsBarOnHome",null);_.U([_.K("data.targetId"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],E6.prototype,"hideChipsBarOnWatch",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],E6.prototype,"onIsShortsGridChange",null);
_.U([_.K("data.enableContentSpecificAspectRatio"),_.O(),_.W("design:type",Boolean),_.W("design:paramtypes",[])],E6.prototype,"force16By9ThumbnailAspectRatio",null);_.U([_.K("data"),_.W("design:type",Number),_.W("design:paramtypes",[])],E6.prototype,"continuationTriggerOffset",null);E6=_.U([_.Q({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],E6);
_.S(E6,"ytd-rich-grid-renderer",function(){if(k6c!==void 0)return k6c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" hidden="[[hideHeader]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="big-yoodle" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="masthead-ad" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-rich-grid-renderer">\n  <div id="title" class="style-scope ytd-rich-grid-renderer">[[getSimpleString(data.title)]]</div>\n</div>\n<div id="spinner-container" class="style-scope ytd-rich-grid-renderer">\n  <tp-yt-paper-spinner-lite active="[[computeIsReloading()]]" class="style-scope ytd-rich-grid-renderer">\n  </tp-yt-paper-spinner-lite>\n</div>\n<div id="contents" class="style-scope ytd-rich-grid-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return k6c=a},{mode:2});var H6c;var I6c;var J6c=function(){return _.P.apply(this,arguments)||this};
_.z(J6c,_.P);var K6c=J6c;_.U([_.O(),_.W("design:type",Object)],K6c.prototype,"data",void 0);K6c=_.U([_.ur({is:"yt-alert-renderer",disableElementRegistration:!0})],K6c);
_.S(K6c,"yt-alert-renderer",function(){if(I6c===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;H6c===void 0&&(H6c=document.createElement("template"));var d=H6c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);I6c=a}a=I6c;return a},{mode:2});
}catch(e){_._DumpException(e)}
try{
var $rc;$rc={animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"}};_.asc=_.Rr(function(a){var b=_.ou(),c=_.v().resolve(_.Ps);_.ti(function(){requestAnimationFrame(function(){var e;(e=b.lottieEl)==null||e.addEventListener("DOMLoaded",function(){var g;(g=a.onLottieLoaded)==null||g.call(a)})})});
var d={};return _.q("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var e;return((e=a.data)==null?void 0:e.call(a).targetId)||""}},_.q(_.kt,{className:_.jt((d.ytChatLoadingViewModelRtl=c==="rtl",d)),
animationName:function(){return $rc.animationConfig.name},
data:$rc,animationRef:b}))});
}catch(e){_._DumpException(e)}
try{
var vlc;vlc=function(a,b){b=b.width!==window.innerWidth||b.height!==window.innerHeight;document.visibilityState==="hidden"||b||a&&_.Bl(a)};
_.wlc=function(a,b){b=b===void 0?{}:b;var c,d,e,g,k,m,n,r,t,u,w,A;return _.l(function(C){switch(C.nextAddress){case 1:c=b;d=c.shouldWrap===void 0?!0:c.shouldWrap;e=c.skipTransitionTimeoutMs===void 0?300:c.skipTransitionTimeoutMs;g=c.beforeTransition;k=c.afterTransition;if(!d||!document.startViewTransition||document.visibilityState==="hidden")return C.return(a());m={width:window.innerWidth,height:window.innerHeight};(n=g)==null||n();_.me(C,2);r=document.startViewTransition(a);t=setTimeout(function(){r.skipTransition();
var G;(G=k)==null||G()},e);
return _.p(C,r.ready,4);case 4:return clearTimeout(t),_.p(C,r.finished,5);case 5:clearTimeout(t);(u=k)==null||u();_.Jj(C,0);break;case 2:w=_.re(C),(A=k)==null||A(),vlc(w,m),_.se(C)}})};
_.FW=function(a){return a.watch.isTheaterMode};
_.xlc=function(a){var b=_.lg("DIV");a&&(b.className=a);b.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";a=_.lg("DIV");_.fdb(a,"200px","200px");b.appendChild(a);document.body.appendChild(b);a=b.offsetWidth-b.clientWidth;_.mg(b);return a};
_.GW=function(){for(var a=Array(36),b=0,c,d=0;d<36;d++)d==8||d==13||d==18||d==23?a[d]="-":d==14?a[d]="4":(b<=2&&(b=33554432+Math.random()*16777216|0),c=b&15,b>>=4,a[d]=_.Eub[d==19?c&3|8:c]);return a.join("")};/*

Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var ylc=_.cx(['<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>']),
zlc=_.spb(ylc);zlc.setAttribute("style","display: none;");document.head.appendChild(zlc.content);_.HW=_.Oja(_.xlc);var Alc;var Blc;var Clc=function(){var a=_.P.apply(this,arguments)||this;a.icon=null;return a};
_.z(Clc,_.P);Clc.prototype.dismiss=function(){_.go(this.hostElement,"yt-live-chat-error-message-dismiss")};
Clc.prototype.computeIcon=function(a){return a&&a.iconType?"yt-icons:"+a.iconType.toLowerCase():"yt-icons:close"};
var IW=Clc;_.U([_.O(),_.W("design:type",Object)],IW.prototype,"data",void 0);_.U([_.O({computed:"computeIcon(data.icon)"}),_.W("design:type",Object)],IW.prototype,"icon",void 0);IW=_.U([_.ur({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],IW);
_.S(IW,"yt-live-chat-error-message-renderer",function(){if(Blc===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;Alc===void 0&&(Alc=document.createElement("template"));var d=Alc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Blc=a}a=Blc;return a},{mode:_.x("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var Lbd,Mbd,Nbd,Obd,Pbd,Qbd,Rbd,Tbd,G8,Ybd,Zbd,$bd,acd,bcd,ccd,J8,dcd,ecd,fcd,gcd,hcd,icd,jcd,kcd,lcd,mcd,ncd,ocd,pcd,qcd,rcd,scd,tcd,ucd,vcd,wcd,xcd,ycd,zcd,Acd,Bcd,Ecd,Gcd,Icd,Jcd,Kcd,Lcd,Ccd,Dcd,Ocd,Pcd,Qcd,Rcd,Scd,Mcd,Vcd;Lbd=function(a){return new Promise(function(b){requestAnimationFrame(function(){b(a())})})};
Mbd=function(a){if(a&&a.focus)if(a!==document.activeElement)a.focus();else return Lbd(function(){return _.l(function(b){document.activeElement&&document.activeElement.blur();return b.return(Lbd(function(){a.focus()}))})})};
Nbd=function(a){var b=b===void 0?5:b;setTimeout(function(){var c;return _.l(function(d){d.nextAddress==1&&(c=document.activeElement);if(d.nextAddress!=5)return(document.activeElement===c||document.activeElement===document.body)&&b>=0&&a?_.p(d,Mbd(a),5):d.jumpTo(0);if(document.activeElement===a)return d.return();a=a.parentElement;--b;return d.jumpTo(2)})},15)};
Obd=function(a,b,c){b=b===void 0?5:b;if(b!==0){var d=typeof a==="function"?a():document.querySelector(a);d?(c==null?0:c.enableSmartFocus)?Nbd(d):d.focus():setTimeout(function(){Obd(a,b-1,c)},500)}};
Pbd=function(a,b){return _.mp(a.entities,"liveReactionsDataEntity",b)};
Qbd=function(a,b){a=_.mp(a.entities,"booleanEntity",b);return!(!a||!a.value)};
Rbd=function(a,b){return _.mp(a.entities,"timedMarkersListSyncEntity",b)};
_.Sbd=function(){_.x("web_watch_log_theater_mode")&&_.zt("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
Tbd=function(a,b){var c=_.Fn();c&&a&&_.Ro(c,_.qs(a),b)};
_.Ubd=function(a,b,c){if(!a.includes("START_TIME_PLACEHOLDER")||!a.includes("END_TIME_PLACEHOLDER"))return a;var d=new Date(0),e=new Date(0);d.setUTCMilliseconds(b);e.setUTCMilliseconds(c);return a.replace("START_TIME_PLACEHOLDER",_.Qp(d,7)).replace("END_TIME_PLACEHOLDER",_.Qp(e,7))};
G8=function(a){return a.watch.isWatchActive};
_.H8=function(a){return a!=null&&a.watch?a.watch.isWatchFullscreen:!1};
_.Vbd=function(a){return a.watch.watchWindowSize};
_.Wbd=function(a){return _.FW(a)||_.H8(a)||_.pXa(a)};
_.Xbd=function(a){return!_.Wbd(a)};
_.I8=function(a){return a.watch.watchScrollTop};
Ybd=function(a){return a.watch.isLiveChatCollapsed};
Zbd=function(a){return a.watch.openEngagementPanels};
$bd=function(a){switch(a){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}};
acd=function(a,b,c){var d=_.Es(c);a&&b&&d&&a.getPlayerPromise().then(function(e){_.dVa(d)&&_.Al();(new _.zM(e)).executeCommand(d,b);_.x("continue_playback_on_desktop_companion_click")||e.pauseVideo()})};
bcd=function(a){var b=_.bu(),c;if(c=_.Ji("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var d;c=(d=c())==null?void 0:d.layoutId}else c=null;acd(b,c,a)};
ccd=function(a){var b=_.bu(),c;if(c=_.Ji("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var d;c=(d=c())==null?void 0:d.layoutId}else c=null;acd(b,c,a)};
J8=function(a,b){var c=a<0?"-":"";a=Math.abs(a);var d=Math.floor(a/3600),e=Math.floor(a)%3600,g=Math.floor(e/60);e=Math.floor(e)%60;var k="";(b===void 0?0:b)&&(k="."+Math.round((a-Math.floor(a))*10));return d>0?c+d+":"+(g<10?"0"+g:""+g)+":"+(e<10?"0"+e:""+e)+k:c+g+":"+(e<10?"0"+e:""+e)+k};
dcd=function(a){var b=a.match(/[^0-9:\.]/g);if(b&&b.length>0)return null;a=a.split(":");if(a.length===0||a.length>3)return null;b=1;for(var c=0;a.length>0;){var d=a.pop();if(d===void 0)break;var e=Number(d);if(d===""||isNaN(e))return null;c+=e*b;b*=60}return c};
ecd=function(a,b,c,d){a=Math.max(c,a);b=Math.min(b,d-c);a+b>d?(c=d,a=c-b):c=a+b;return{start:a,end:c}};
fcd=function(a,b,c,d,e,g){a<c?a=c:a+e>d&&(a=d-e);b>d&&(b=d);b=Math.min(a+g,Math.max(a+e,b));return{start:a,end:b}};
gcd=function(a,b,c,d,e,g){b>d?b=d:b-e<c&&(b=c+e);a<c&&(a=c);a=Math.min(b-e,Math.max(b-g,a));return{start:a,end:b}};
hcd=function(a){return _.x("web_transcript_cue_id_killswitch")?String(a):"ytd-transcript-renderer_"+a};
icd=function(a){return _.x("web_transcript_cue_id_killswitch")?!0:a.startsWith("ytd-transcript-renderer")};
jcd=function(a){var b=_.bu(),c;if(c=_.Ji("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var d;c=(d=c())==null?void 0:d.layoutId}else c=null;acd(b,c,a)};
kcd=function(a,b){return _.mp(a.entities,"youchatPendingResponseEntity",b)};
lcd=function(a){return function(b){_.Kr(_.vu("youchatPendingResponseEntity",a,{entityKey:a,isPendingResponse:b}))}};
mcd=function(a){a==null||a.addEventListener("DOMLoaded",function(){a.goToAndPlay(a.totalFrames-48,!0)})};
ncd=function(a){a.style.height="auto";a.style.height=Math.min(a.scrollHeight||20,80)+"px"};
ocd=function(a){var b=_.bu(),c;c=(c=_.Ji("yt.www.ads.eventcache.getLastCompanionData"))?(c=c())&&c.layoutId:null;acd(b,c,a)};
pcd=function(a){var b=_.bu(),c;c=(c=_.Ji("yt.www.ads.eventcache.getLastCompanionData"))?(c=c())&&c.layoutId:null;acd(b,c,a)};
qcd=function(a,b){b=b===void 0?!1:b;if(a.simpleText)a=[{text:a.simpleText}];else{var c;a=((c=a.runs)!=null?c:[]).map(function(d){return Object.assign({},d)})}if(b)for(b=_.h(a),c=b.next();!c.done;c=b.next())c.value.bold=!0;
return a};
rcd=function(a){var b=a.startEndTimeTemplate,c=a.startTimeUtcMillis;a=a.endTimeUtcMillis;if(b&&c&&a)return _.Up(_.Ubd(_.Vp(b),Number(c),Number(a)))};
scd=function(a,b){var c,d,e=a==null?void 0:(c=a.viewCount)==null?void 0:(d=c.videoViewCountRenderer)==null?void 0:d.shortViewCount;if(!b&&e)return e;var g,k;return a==null?void 0:(g=a.viewCount)==null?void 0:(k=g.videoViewCountRenderer)==null?void 0:k.viewCount};
tcd=function(a,b){var c=a==null?void 0:a.relativeDateText;return!b&&c?[c,!0]:[a==null?void 0:a.dateText,!1]};
ucd=function(a,b,c,d,e){d=d===void 0?!0:d;e=e===void 0?"":e;var g=scd(a,b),k=_.h(tcd(a,b)),m=k.next().value;k=k.next().value;b=b?a==null?void 0:a.sponsorsOnlyFirstTimeLongText:a==null?void 0:a.sponsorsOnlyFirstTimeShortText;var n=[];c&&g&&n.push(g);!c&&k||!m||n.push(m);a=[].concat(_.Be(n),[b,a==null?void 0:a.stationName,a==null?void 0:a.rating,a?rcd(a):void 0,a==null?void 0:a.upNextProgramText,a==null?void 0:a.superTitleLink]).filter(function(r){return!!r});
c={runs:[]};for(g=0;g<a.length;g++)c.runs.push.apply(c.runs,_.Be(qcd(a[g],d))),g<a.length-1&&c.runs.push({text:" "+e+" ",bold:d});return c};
vcd=function(a){if(a)return{runs:[{text:a,bold:!0}]}};
wcd=function(a){var b,c,d,e;if(a=a==null?void 0:(b=a.contents)==null?void 0:(c=b.twoColumnWatchNextResults)==null?void 0:(d=c.results)==null?void 0:(e=d.results)==null?void 0:e.contents){var g,k;return(k=(g=a.find(function(m){return!!m.videoPrimaryInfoRenderer}))==null?void 0:g.videoPrimaryInfoRenderer)==null?void 0:k.updatedMetadataEndpoint}};
xcd=function(a,b){var c;return(c=a.sourceConfigs)==null?void 0:c.find(function(d){return d.videoId===b})};
ycd=function(a){return a==="End of video"||a==="End of playlist"};
zcd=function(a){var b,c,d,e;return(b=a.getWatchNextResponse())==null?void 0:(c=b.contents)==null?void 0:(d=c.twoColumnWatchNextResults)==null?void 0:(e=d.playlist)==null?void 0:e.playlist};
Acd=function(a){var b,c,d,e,g,k;return(b=zcd(a))==null?void 0:(c=b.playlistButtons)==null?void 0:(d=c.menuRenderer)==null?void 0:(e=d.topLevelButtons)==null?void 0:(g=e[0])==null?void 0:(k=g.playlistLoopButtonRenderer)==null?void 0:k.playlistLoopStateEntityKey};
Bcd=function(a){var b=_.v().resolve(_.QF),c;return(b=(c=_.y(b.getAutoplayEndpoint(),_.Vn))==null?void 0:c.playlistId)&&b===a};
Ecd=function(a,b,c,d,e){function g(){_.zk.cancelJob(K8);var k=Ccd(b,c/a.getPlaybackRate()),m=k.hours,n=k.minutes;k=(k.seconds*1E3||6E4)/a.getPlaybackRate();a.setVideoTimeLeft(Dcd(m,n));d&&a.getPlayerState()!==0&&a.setSleepTimerTimeLeft(Dcd(m,n,!0));(m>0||n>0)&&!e&&(K8=_.wu(_.zk,g,k))}
_.zk.cancelJob(K8);K8=_.wu(_.zk,g)};
Gcd=function(a,b,c){function d(){_.zk.cancelJob(Fcd);var e=Ccd(b,c),g=e.hours;e=e.minutes;var k=6E4/a.getPlaybackRate();if(g>0||e>0)a.setSleepTimerTimeLeft(Dcd(g,e,!0)),Fcd=_.wu(_.zk,d,k)}
_.zk.cancelJob(Fcd);Fcd=_.wu(_.zk,d)};
Icd=function(a,b){var c=a.getVolume()/(b/500),d=function(e){_.zk.cancelJob(Hcd);var g=Math.floor(e-c);a.setVolume(g,!1);g>0&&(Hcd=_.wu(_.zk,function(){d(g)},500))};
_.zk.cancelJob(Hcd);Hcd=_.wu(_.zk,function(){d(a.getVolume())})};
Jcd=function(a,b){_.zk.cancelJob(Hcd);b&&a.syncVolume()};
Kcd=function(){var a={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.to("SLEEP_TIMER_DISRUPTED")}}}}};_.v().resolve(_.Xi).resolveCommand(a)};
Lcd=function(a){return(a.getDuration()-a.getProgressState().current)*1E3};
Ccd=function(a,b){a=a+b-(0,_.Uj)();if(a<=0)return{hours:0,minutes:0,seconds:0};var c=new Mcd(0,0,0,0,0,0,a);a=c.getHours();b=c.getMinutes();c=c.getSeconds();c!==0&&b++;b!==0&&b%60===0&&(a++,b=0);return{hours:a,minutes:b,seconds:c}};
Dcd=function(a,b,c){return a>0&&b>0?c?_.to("TIME_LEFT_HOURS_MINUTES",{hours:a.toString(),minutes:b.toString()}):_.to("TIME_HOURS_MINUTES",{hours:a.toString(),minutes:b.toString()}):a>0?c?_.uo("TIME_LEFT_HOURS",a):_.uo("TIME_HOURS",a):c?_.to("TIME_LEFT_MINUTES",{minutes:b.toString()}):_.to("TIME_MINUTES",{minutes:b.toString()})};
Ocd=function(a,b){if(a.timelyActions)return a.timelyActions.find(function(c){var d;return((d=_.y(c,Ncd))==null?void 0:d.cueRangeId)===b})};
Pcd=function(a){var b=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.qA(a);a.keyMap_.forEach(function(c,d){_.Pa(b,d)||this.remove(d)},a)};
Qcd=function(a,b){a.reloadContinuationItemsCommandMatcher=b};
_.L8=function(a,b){a.insertBefore(b,a.childNodes[0]||null)};
Rcd=function(a){if(a>=48&&a<=57||a>=96&&a<=106||a>=65&&a<=90||_.ux&&a==0)return!0;switch(a){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 _.tx;default:return!1}};
Scd=function(a){if(a.altKey&&!a.ctrlKey||a.metaKey||a.keyCode>=112&&a.keyCode<=123)return!1;if(Rcd(a.keyCode))return!0;switch(a.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!_.tx;default:return a.keyCode<166||a.keyCode>183}};
Mcd=function(a,b,c,d,e,g,k){this.date=typeof a==="number"?new Date(a,b||0,c||1,d||0,e||0,g||0,k||0):new Date(a&&a.getTime?a.getTime():_.mx())};
_.nx(Mcd,_.DC);_.f=Mcd.prototype;_.f.getHours=function(){return this.date.getHours()};
_.f.getMinutes=function(){return this.date.getMinutes()};
_.f.getSeconds=function(){return this.date.getSeconds()};
_.f.getMilliseconds=function(){return this.date.getMilliseconds()};
_.f.getUTCDay=function(){return this.date.getUTCDay()};
_.f.getUTCHours=function(){return this.date.getUTCHours()};
_.f.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.f.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.f.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.f.setHours=function(a){this.date.setHours(a)};
_.f.setMinutes=function(a){this.date.setMinutes(a)};
_.f.setSeconds=function(a){this.date.setSeconds(a)};
_.f.setMilliseconds=function(a){this.date.setMilliseconds(a)};
_.f.setUTCHours=function(a){this.date.setUTCHours(a)};
_.f.setUTCMinutes=function(a){this.date.setUTCMinutes(a)};
_.f.setUTCSeconds=function(a){this.date.setUTCSeconds(a)};
_.f.setUTCMilliseconds=function(a){this.date.setUTCMilliseconds(a)};
_.f.add=function(a){_.DC.prototype.add.call(this,a);a.hours&&this.setUTCHours(this.date.getUTCHours()+a.hours);a.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+a.minutes);a.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+a.seconds)};
_.f.JSC$9056_toIsoString=function(a){var b=_.DC.prototype.JSC$9056_toIsoString.call(this,a);return a?b+"T"+_.my(this.getHours(),2)+":"+_.my(this.getMinutes(),2)+":"+_.my(this.getSeconds(),2):b+"T"+_.my(this.getHours(),2)+_.my(this.getMinutes(),2)+_.my(this.getSeconds(),2)};
_.f.equals=function(a){return this.getTime()==a.getTime()};
_.f.toString=function(){return this.JSC$9056_toIsoString()};
_.f.clone=function(){var a=new Mcd(this.date);a.firstDayOfWeek_=this.firstDayOfWeek_;a.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return a};
_.Tcd=function(a){return _.gp({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:a}})};
_.Ucd=function(a){return _.gp({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:a}})};
Vcd=new _.X("imageTileRenderer");var Wcd=new _.X("adGridCardCollectionViewModel");var Xcd=new _.X("carouselTitleViewModel");var Ycd=new _.X("ctaCarouselItemViewModel");var Zcd=new _.X("textFieldViewModel");_.$cd=new _.X("engagementPanelHeaderShowNavigationButtonCommand");var add=new _.X("hideEngagementPanelScrimAction");var bdd=new _.X("setActivePanelItemAction");var cdd=new _.X("showEngagementPanelScrimAction");var ddd=new _.X("updateEngagementPanelAction");var edd=new _.X("updateSearchInVideoResultsAction");var fdd=new _.X("transcriptCueGroupRenderer");var gdd=new _.X("transcriptCueRenderer");var hdd=new _.X("transcriptFooterRenderer");var idd=new _.X("engagementPanelAdSubtitleRenderer");var jdd=new _.X("videoDescriptionFantasySectionViewModel");var kdd=new _.X("deleteClipEngagementPanelCommand");var ldd=new _.X("loopCommand");var mdd=new _.X("changeCreatorEndscreenVisibilityCommand");var ndd=new _.X("liveChatCallForQuestionsRenderer");var odd=new _.X("updateTimedMarkersSyncObserverCommand");var Ncd=new _.X("timelyActionViewModel");var pdd=new _.X("timelyActionsOverlayViewModel");var qdd=new _.X("repeatChapterCommand");var rdd=new _.X("watchPlayerOverflowMenuCommand");var sdd=new _.X("compositeVideoOverlayRenderer");var tdd=new _.X("sortFilterSubMenuRenderer");var udd=new _.X("horizontalShelfViewModel");var vdd=new _.X("switchListItemViewModel");var wdd=new _.X("inputComposerViewModel");var xdd=new _.X("transcriptEditSegmentCommand");var ydd=new _.X("transcriptUpdateSegmentTextCommand");var zdd=new _.X("transcriptSearchBoxRenderer");var Add=new _.X("transcriptSegmentListRenderer");var Bdd=new _.X("transcriptSegmentRenderer");_.Cdd=new _.X("updateDateTextAction");var Ddd=new _.X("updateTitleAction");var Edd=new _.X("updateViewershipAction");var Fdd=new _.X("carouselLockupRenderer");var Gdd=new _.X("expandableVideoDescriptionBodyRenderer");var Hdd=new _.X("conversationResourceViewModel");_.M8=_.$i("kevlar_watch_page_horizontal_margin",24);_.Idd=_.$i("kevlar_watch_page_columns_top_padding",24);_.Jdd=_.$i("web_screen_width_midpoint",1500);_.Kdd=_.$i("web_watch_sidebar_width_offset_per_100",10);_.Ldd=426+_.M8*2;_.N8=_.$i("kevlar_watch_two_column_width_threshold",1E3);_.Mdd=_.M8*2;_.O8=_.$i("kevlar_watch_secondary_width",402);_.Ndd=_.$i("kevlar_watch_secondary_max_width",600);_.Odd=_.$i("kevlar_watch_max_player_width",1280);_.Pdd=_.$i("kevlar_watch_flexy_metadata_height",136);
_.Qdd=_.Mdd+310+_.M8;_.Rdd=_.Mdd+360+_.M8;var Sdd={PAUSE_CHAT:18};var Tdd;var Udd;var Vdd=function(){return _.P.apply(this,arguments)||this};
_.z(Vdd,_.P);Vdd.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
Vdd.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var a=_.y(this.data.button,_.Fu);a&&(a.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.Vm.Object.defineProperties(Vdd,{template:{configurable:!0,enumerable:!0,get:function(){if(Udd===void 0){var a=document.createElement("template");_.B(a,'\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>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;Tdd===void 0&&(Tdd=document.createElement("template"));var d=Tdd;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Udd=a}a=Udd;return a}}});
var P8=Vdd;_.U([_.H(_.JG),_.W("design:type",Object)],P8.prototype,"ytLiveChatReduxBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],P8.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O({selectorArgs:["data.enabledEntityKey"],selector:Qbd,observer:"onEnabledChange"}),_.W("design:type",Boolean)],P8.prototype,"enabled",void 0);_.U([_.O(),_.W("design:type",Object)],P8.prototype,"data",void 0);
P8=_.U([_.ur({is:"yt-disableable-button-view-model",noInjection:!0})],P8);var Wdd;var Xdd;var Ydd=["transVert01","transVert02","transVert03"],Zdd="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),$dd=function(){var a=_.P.apply(this,arguments)||this;a.emojiManager=_.PH;a.isDarkTheme=document.documentElement.hasAttribute("dark");a.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};a.reactionBuckets=[];a.noEmojiIdentifier="NO_EMOJI";return a};
_.z($dd,_.P);_.f=$dd.prototype;_.f.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.f.desktopFountainEmojiSizePxChanged=function(){_.dr(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.f.createUserReactionAnimation=function(a){this.createEmojiAnimation(a,!0)};
_.f.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var a;((a=this.data)==null?0:a.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.vu("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.Be(this.emojiContainer.children)).forEach(function(b){b.remove()})};
_.f.detached=function(){this.cleanupFountain()};
_.f.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var a;this.reactionBuckets=_.yf.unsafeClone((a=this.emojiFountainData)==null?void 0:a.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.f.processEmojiBucket=function(a){var b=this;if(this.reactionBuckets&&!(a>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var c=this.reactionBuckets[a];this.generateEmojiAnimations(c);if(a<this.reactionBuckets.length-1){var d;if(c==null?0:(d=c.duration)==null?0:d.seconds)this.emojiBucketTimerId=setTimeout(function(){b.processEmojiBucket(a+1)},Number(c.duration.seconds)*1E3)}}};
_.f.generateEmojiAnimations=function(a){var b=this,c=this.getRandomEmojiIdFromBucketWithOverride(a);if(c&&c!==this.noEmojiIdentifier){var d=0;a.targetEps?(d=this.linearInterpolateBounded(1,20,100,12,a.emojiSizeIndex||0),this.createEmojiAnimation(c,!1,a.emojiAnimationMs,d),d=this.getEmojiDelayMsFromTargetEps(a.targetEps)):(this.createEmojiAnimation(c),d=this.getEmojiDelayMsFromDistribution(a.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){b.generateEmojiAnimations(a)},d)}};
_.f.getRandomEmojiIdFromBucketWithOverride=function(a){if(!(a&&a.reactionsData&&a.reactionsData.length&&a.totalReactions))return this.noEmojiIdentifier;for(var b=a.totalReactions,c=1,d=_.h(a.reactionsData),e=d.next();!e.done;e=d.next())e=e.value,(e.reactionWeightOverride||e.reactionWeightOverride===0)&&e.reactionCount&&(b-=e.reactionCount,c-=e.reactionWeightOverride);d=!0;c<0&&(d=!1,b=a.totalReactions,c=1);if(d&&c>0&&b===0)if(c===1){e=0;for(var g=_.h(a.reactionsData),k=g.next();!k.done;k=g.next())k=
k.value,k.reactionCount&&k.reactionCount>0&&e++;e=1/e;g=_.h(a.reactionsData);for(k=g.next();!k.done;k=g.next())k.value.reactionWeightOverride=e}else for(e=1/(1-c),g=_.h(a.reactionsData),k=g.next();!k.done;k=g.next())k=k.value,k.reactionWeightOverride&&(k.reactionWeightOverride*=e);e=Math.random();g=0;k=_.h(a.reactionsData);for(var m=k.next();!m.done;m=k.next())if(m=m.value,m.reactionCount&&(g=(m.reactionWeightOverride||m.reactionWeightOverride===0)&&d?g+m.reactionWeightOverride:g+c*m.reactionCount/
b,g>e&&(m.reactionCount--,a.totalReactions--,m=this.reactionItemToEmojiString(m),m!==this.noEmojiIdentifier)))return m;return this.noEmojiIdentifier};
_.f.reactionItemToEmojiString=function(a){if(a.unicodeEmojiId)return a.unicodeEmojiId;if(a.emoteId)return a.emoteId;if(a.videoReactionType)switch(a.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.f.createEmojiAnimation=function(a,b,c,d){b=b===void 0?!1:b;this.lastEmojiRequestedForTesting=a;var e=a.startsWith("yt-icons:"),g=_.NH(this.emojiManager,a);if(g||e){var k=document.createElement("emoji");k.classList.add("yt-emoji-fountain-view-model");k.classList.add(Ydd[Math.floor(Math.random()*Ydd.length)]);var m=document.createElement("div");m.classList.add("yt-emoji-fountain-view-model");m.classList.add("horizontal-container");m.classList.add(Zdd[Math.floor(Math.random()*Zdd.length)]);b?(c=document.createElement("div"),
c.classList.add("user-reaction-bubble"),c.classList.add("yt-emoji-fountain-view-model"),m.appendChild(c)):(c&&(k.style.animationDuration=c+"ms",m.style.animationDuration=c+"ms"),d&&(k.style.width=d+"px",k.style.height=d+"px"));e?(e=document.createElement("yt-icon"),e.polymerController.icon=a,d&&(e.style.width=d+"px",e.style.height=d+"px"),a=e):a=this.emojiManager.createEmoji(g,!1);a.classList.add("yt-emoji-fountain-view-model");m.appendChild(a);k.appendChild(m);this.emojiContainer.appendChild(k);
k.addEventListener("animationend",function(){k.remove()});
var n,r;if((n=this.data)==null?0:(r=n.loggingDirectives)==null?0:r.trackingParams)b=b?_.lu(183501):_.lu(183500),Tbd(this.data.loggingDirectives.trackingParams,b),_.oTa(b);setTimeout(function(){k&&k.remove()},2E3)}};
_.f.getEmojiDelayMsFromDistribution=function(a){return Math.random()*(a||1)*1E3};
_.f.getEmojiDelayMsFromTargetEps=function(a){return Math.random()*2*(1/a)*1E3};
_.f.linearInterpolateBounded=function(a,b,c,d,e){e=Math.min(Math.max(e,a),c);return(b*(c-e)+d*(e-a))/(c-a)};
var Q8=$dd;Q8.prototype.onEmojiFountainDataEntityUpdate=Q8.prototype.onEmojiFountainDataEntityUpdate;Q8.prototype.desktopFountainEmojiSizePxChanged=Q8.prototype.desktopFountainEmojiSizePxChanged;Q8.prototype.isActiveChanged=Q8.prototype.isActiveChanged;_.U([_.O(),_.W("design:type",_.MH)],Q8.prototype,"emojiManager",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],Q8.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.JG),_.W("design:type",Object)],Q8.prototype,"ytLiveChatReduxBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],Q8.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],Q8.prototype,"data",void 0);_.U([_.O({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(a,b){return _.mp(a.entities,"emojiFountainDataEntity",b)}}),
_.W("design:type",Object)],Q8.prototype,"emojiFountainData",void 0);_.U([_.O(),_.W("design:type",Boolean)],Q8.prototype,"isActive",void 0);_.U([_.N("isActive"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Q8.prototype,"isActiveChanged",null);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],Q8.prototype,"isDarkTheme",void 0);_.U([_.O(),_.W("design:type",String)],Q8.prototype,"lastEmojiRequestedForTesting",void 0);
_.U([_.O({value:function(){return _.$i("desktop_fountain_emoji_size_px",20)}}),
_.W("design:type",Number)],Q8.prototype,"desktopFountainEmojiSizePx",void 0);_.U([_.N("desktopFountainEmojiSizePx"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Q8.prototype,"desktopFountainEmojiSizePxChanged",null);_.U([_.gr("#emoji-container"),_.W("design:type",HTMLElement)],Q8.prototype,"emojiContainer",void 0);
_.U([_.N("emojiFountainData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Q8.prototype,"onEmojiFountainDataEntityUpdate",null);Q8=_.U([_.ur({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],Q8);
_.S(Q8,"yt-emoji-fountain-view-model",function(){if(Xdd===void 0){var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;Wdd===void 0&&(Wdd=document.createElement("template"));var d=Wdd;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Xdd=a}a=Xdd;return a},{mode:_.x("live_chat_enable_sink_wrapper")?2:0});var aed;var bed;var ced=function(){return _.P.apply(this,arguments)||this};
_.z(ced,_.P);ced.prototype.onChoiceChanged=function(){this.data&&_.dr(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
var R8=ced;R8.prototype.onChoiceChanged=R8.prototype.onChoiceChanged;_.U([_.O(),_.W("design:type",Object)],R8.prototype,"data",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],R8.prototype,"onChoiceChanged",null);R8=_.U([_.Q({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],R8);
_.S(R8,"yt-live-chat-banner-poll-choice",function(){if(bed===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;aed===void 0&&(aed=document.createElement("template"));var d=aed;c.call(b,d.content.cloneNode(!0),a.content.firstChild);bed=a}a=bed;return a},{mode:_.x("live_chat_enable_sink_wrapper")?2:0});var ded;var eed;var fed=function(){var a=_.P.apply(this,arguments)||this;a.modern=_.x("web_button_rework_with_live");a.small=!1;return a};
_.z(fed,_.P);fed.prototype.computeIsSmall=function(){var a;return((a=this.buttonOverrides)==null?void 0:a.size)==="S"};
fed.prototype.computeId=function(){return this.data&&this.data.targetId};
var S8=fed;_.U([_.H(_.KG.YtLiveChatTooltipTargetingBehavior),_.W("design:type",Object)],S8.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.U([_.O({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.W("design:type",String)],S8.prototype,"id",void 0);_.U([_.O(),_.W("design:type",Object)],S8.prototype,"buttonOverrides",void 0);_.U([_.O(),_.W("design:type",Object)],S8.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],S8.prototype,"modern",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.W("design:type",Object)],S8.prototype,"small",void 0);S8=_.U([_.Q({disableElementRegistration:!0,is:"yt-live-chat-button"})],S8);
_.S(S8,"yt-live-chat-button",function(){if(eed===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;ded===void 0&&(ded=document.createElement("template"));var d=ded;c.call(b,d.content.cloneNode(!0),a.content.firstChild);eed=a}a=eed;return a},{mode:_.x("live_chat_enable_sink_wrapper")?2:0});var ged;var hed;var ied=function(){var a=_.P.apply(this,arguments)||this;a.inCollapsedBanner=!1;a.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};a.questionButtonOverrides={style:"mono",type:"filled"};return a};
_.z(ied,_.P);_.f=ied.prototype;_.f.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]]"}}}}}};
_.f.onContextMenuButtonClick=function(a){this.ytLiveChatItemBehavior.showContextMenu(a)};
_.f.onYtRendererstamperFinished=function(){this.menuButton=_.E(this.hostElement).querySelector("#menu-button")};
_.f.dataChanged=function(){var a,b;if((b=_.y((a=this.data)==null?void 0:a.overflowMenuButton,_.OE))==null?0:b.command)this.data.contextMenuEndpoint=_.y(this.data.overflowMenuButton,_.OE).command};
_.f.onButtonClick=function(){var a,b=_.y((a=this.data)==null?void 0:a.askQuestionButton,_.OE);if(b){if(b.trackingParams&&(a=_.qs(b.trackingParams))){var c=_.Fn();c&&_.Vo(c,a)}_.go(this.hostElement,"innertube-command",b.command)}};
var T8=ied;T8.prototype.onYtRendererstamperFinished=T8.prototype.onYtRendererstamperFinished;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],T8.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.JG),_.W("design:type",Object)],T8.prototype,"ytLiveChatReduxBehavior",void 0);_.U([_.H(_.QH.YtLiveChatItemBehavior),_.W("design:type",_.RH)],T8.prototype,"ytLiveChatItemBehavior",void 0);_.U([_.O({observer:"dataChanged"}),_.W("design:type",Object)],T8.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],T8.prototype,"inCollapsedBanner",void 0);_.U([_.O(),_.W("design:type",Object)],T8.prototype,"buttonOverrides",void 0);_.U([_.O(),_.W("design:type",Object)],T8.prototype,"questionButtonOverrides",void 0);_.U([_.M("yt-rendererstamper-finished"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],T8.prototype,"onYtRendererstamperFinished",null);
T8=_.U([_.Q({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],T8);
_.S(T8,"yt-live-chat-call-for-questions-renderer",function(){if(hed===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;ged===void 0&&(ged=document.createElement("template"));var d=ged;c.call(b,d.content.cloneNode(!0),a.content.firstChild);hed=a}a=hed;return a},{mode:_.x("live_chat_enable_sink_wrapper")?2:0});var jed={};jed.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 a=this;window.requestAnimationFrame(function(){a.restoreFocusNode_||(a.restoreFocusNode_=document.activeElement);var b=_.Qvb(a.hostElement);b.length&&b[b.length-1].focus()})},
isAttachedChanged_:function(a,b){a?this.focusChild_():b&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(a){this.hidden||_.Pq(a).indexOf(this.hostElement)!==-1||(a.stopPropagation(),this.focusChild_())}};var ked;var led;var med=function(){return _.P.apply(this,arguments)||this};
_.z(med,_.P);med.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
med.prototype.onClick=function(a){a.target!==this.confirmButton&&a.target!==this.cancelButton&&(this.hidden=!0)};
var U8=med;_.U([_.gr("#confirm_button"),_.W("design:type",Object)],U8.prototype,"confirmButton",void 0);_.U([_.gr("#cancel_button"),_.W("design:type",Object)],U8.prototype,"cancelButton",void 0);_.U([_.O(),_.W("design:type",ned)],U8.prototype,"data",void 0);_.U([_.O({value:!0,reflectToAttribute:!0}),_.W("design:type",Boolean)],U8.prototype,"hidden",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],U8.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.H(jed.YtLiveChatDialogBehavior),_.W("design:type",Object)],U8.prototype,"ytLiveChatDialogBehavior",void 0);U8=_.U([_.ur({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],U8);
var ned=_.S(U8,"yt-live-chat-dialog-renderer",function(){if(led===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;ked===void 0&&(ked=document.createElement("template"));var d=ked;c.call(b,d.content.cloneNode(!0),a.content.firstChild);led=a}a=led;return a},{mode:_.x("live_chat_enable_sink_wrapper")?2:0});var oed;var ped,qed=function(){if(ped!==void 0)return ped;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;oed===void 0&&(oed=document.createElement("template"));var d=oed;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return ped=a};var red;var sed;var ted=function(){var a=_.P.apply(this,arguments)||this;a.tooltip=null;a.data=null;a.id="";a.active=!1;a.icon="";a.disabled=!1;a.showTooltip=!1;a.useToggledActiveState=!0;a.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return a};
_.z(ted,_.P);_.f=ted.prototype;
_.f.dataChanged=function(){var a;((a=this.data)==null?0:a.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,_.br)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var b;if((b=this.data)==null?0:b.disabled)this.disabled=!0};
_.f.computeId=function(a){return a};
_.f.computeIcon=function(a,b){if(!a)return"";if(this.useToggledActiveState)return"yt-icons:"+a.toLowerCase();var c,d;return b&&((c=this.data)==null?0:(d=c.toggledIcon)==null?0:d.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+a.toLowerCase()};
_.f.logPDGEntryPoint=function(){_.RHa(_.hq("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")};
_.f.immediatelyShowTooltip=function(){var a=_.E(this.hostElement).querySelector("#tooltip");a.animationDelay=0;a.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};a.show()};
_.f.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.f.onClick=function(a){var b;((b=this.data)==null?0:b.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(),a.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.go(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.f.computeShowTooltip=function(a,b){return!!(a&&a.tooltip&&b)};
_.f.maybeUpdateTooltipText=function(){var a=this,b;if((b=this.data)==null?0:b.tooltip){var c=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.br)(a.tooltip).textContent=c},250)}};
_.f.handleLiveChatActions=function(a){var b=this;a.length&&(this.id!=="creator"&&this.id!=="product-picker"||a.forEach(function(c){(c=b.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",c))&&c.durationSec===c.fullDurationSec&&b.startBubble(b.colorFromDecimal(c.startBackgroundColor))}))};
_.f.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.f.startBubble=function(a){_.dr(this.hostElement,{"--yt-live-chat-monetization-button-glow":a});this.hostElement.setAttribute("bubble","")};
_.f.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.f.colorFromDecimal=function(a){typeof a==="string"&&(a=Number(a));return"rgba("+[a>>16&255,a>>8&255,a&255,(a>>24&255)/255].join()+")"};
var V8=ted;V8.prototype.onAnimationEnd=V8.prototype.onAnimationEnd;V8.prototype.disabledChanged=V8.prototype.disabledChanged;V8.prototype.dataChanged=V8.prototype.dataChanged;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],V8.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],V8.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.KG.YtLiveChatTooltipTargetingBehavior),_.W("design:type",Object)],V8.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],V8.prototype,"data",void 0);_.U([_.O({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.W("design:type",Object)],V8.prototype,"id",void 0);_.U([_.O({notify:!0,reflectToAttribute:!0}),_.W("design:type",Object)],V8.prototype,"active",void 0);
_.U([_.O({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.W("design:type",Object)],V8.prototype,"icon",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],V8.prototype,"disabled",void 0);_.U([_.O({computed:"computeShowTooltip(data, disabled)"}),_.W("design:type",Object)],V8.prototype,"showTooltip",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],V8.prototype,"useToggledActiveState",void 0);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],V8.prototype,"dataChanged",null);_.U([_.N("disabled"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],V8.prototype,"disabledChanged",null);_.U([_.M("animationend"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],V8.prototype,"onAnimationEnd",null);
V8=_.U([_.ur({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],V8);
_.S(V8,"yt-live-chat-icon-toggle-button-renderer",function(){if(sed===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;red===void 0&&(red=document.createElement("template"));var d=red;c.call(b,d.content.cloneNode(!0),a.content.firstChild);sed=a}a=sed;return a},{mode:_.x("live_chat_enable_sink_wrapper")?2:0});var ued;var ved;var wed=function(){return _.P.apply(this,arguments)||this};
_.z(wed,_.P);wed.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
var xed=wed;_.U([_.O(),_.W("design:type",Object)],xed.prototype,"data",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],xed.prototype,"ytRendererstamperBehavior",void 0);xed=_.U([_.Q({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],xed);
_.S(xed,"yt-live-chat-message-input-prompt-header-renderer",function(){if(ved===void 0){var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;ued===void 0&&(ued=document.createElement("template"));var d=ued;c.call(b,d.content.cloneNode(!0),a.content.firstChild);ved=a}a=ved;return a},{mode:_.x("live_chat_enable_sink_wrapper")?2:0});var yed;var zed;var Aed;var Bed;var Ced;var Ded;var Eed=function(){return _.P.apply(this,arguments)||this};
_.z(Eed,_.P);var Fed=Eed;_.U([_.O(),_.W("design:type",Object)],Fed.prototype,"data",void 0);Fed=_.U([_.ur({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],Fed);
_.S(Fed,"yt-live-chat-message-subtext-renderer",function(){if(Ded===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;Ced===void 0&&(Ced=document.createElement("template"));var d=Ced;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Ded=a}a=Ded;return a},{mode:_.x("live_chat_enable_sink_wrapper")?2:0});var Ged=function(){var a=_.P.apply(this,arguments)||this;a.subtextOnBottom=!1;a.buttonOverrides={style:"mono",type:"tonal"};return a};
_.z(Ged,_.P);Ged.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.subtext":{id:"subtext",mapping:{messageSubtextRenderer:"yt-live-chat-message-subtext-renderer"}}}};
var W8=Ged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],W8.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],W8.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],W8.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],W8.prototype,"subtextOnBottom",void 0);_.U([_.O(),_.W("design:type",Object)],W8.prototype,"buttonOverrides",void 0);
W8=_.U([_.ur({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],W8);
_.S(W8,"yt-live-chat-message-renderer",function(){if(Bed===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;Aed===void 0&&(Aed=document.createElement("template"));var d=Aed;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Bed=a}a=Bed;return a},{mode:_.x("live_chat_enable_sink_wrapper")?2:0});var Hed;var Ied;var Jed=function(){var a=_.P.apply(this,arguments)||this;a.isRemovable=!1;a.hasPrefilledText=!1;a.isInputDirty=!1;a.overCharacterLimit=!1;a.underCharacterLimit=!1;a.showErrorMessage=!1;return a};
_.z(Jed,_.P);_.f=Jed.prototype;_.f.computeId=function(){return this.data.id};
_.f.computeInputData=function(){return this.data.inputData};
_.f.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.f.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.f.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.f.getLiveChatRichMessageInput=function(){return _.E(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.f.clearInput=function(){_.E(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.f.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.f.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.f.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.f.handleTextInputCharCountChanged=function(a){a=a.detail&&a.detail.characterCount;a!==void 0&&(this.characterCount=a,a!==0&&(this.isInputDirty=!0))};
_.f.onInputFocusOut=function(){this.isInputDirty=!0};
_.f.onClickCloseButton=function(){_.go(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
var X8=Jed;X8.prototype.handleTextInputCharCountChanged=X8.prototype.handleTextInputCharCountChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],X8.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],X8.prototype,"data",void 0);_.U([_.O({computed:"computeId(data.id)"}),_.W("design:type",String)],X8.prototype,"id",void 0);_.U([_.O({computed:"computeInputData(data.inputData)"}),_.W("design:type",Object)],X8.prototype,"inputData",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.W("design:type",Object)],X8.prototype,"isRemovable",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.W("design:type",Object)],X8.prototype,"hasPrefilledText",void 0);_.U([_.O({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.W("design:type",Number)],X8.prototype,"charactersRemaining",void 0);
_.U([_.O(),_.W("design:type",Number)],X8.prototype,"characterCount",void 0);_.U([_.O(),_.W("design:type",Object)],X8.prototype,"isInputDirty",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.W("design:type",Object)],X8.prototype,"overCharacterLimit",void 0);_.U([_.O({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.W("design:type",Object)],X8.prototype,"underCharacterLimit",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.W("design:type",Object)],X8.prototype,"showErrorMessage",void 0);_.U([_.M("yt-live-chat-text-input-field-renderer-character-count-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],X8.prototype,"handleTextInputCharCountChanged",null);
X8=_.U([_.ur({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],X8);
_.S(X8,"yt-live-chat-poll-editor-input",function(){if(Ied===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;Hed===void 0&&(Hed=document.createElement("template"));var d=Hed;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Ied=a}a=Ied;return a},{mode:_.x("live_chat_enable_sink_wrapper")?2:0});var Ked;var Led;var Med={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},Ned=function(){var a=_.P.apply(this,arguments)||this;a.modern=_.x("web_button_rework_with_live");a.closeButtonOverrides={iconPosition:"icon-only"};a.startButtonOverrides={style:"mono",type:"filled"};a.addOptionButtonOverrides={style:"mono",type:"text"};return a};
_.z(Ned,_.P);_.f=Ned.prototype;
_.f.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"}}}}};
_.f.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var a;_.y((a=this.data)==null?void 0:a.startButton,_.OE)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.f.computeId=function(){return this.data&&this.data.id||""};
_.f.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.f.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.f.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.f.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.f.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var a=0;a<this.pollEditorInfoWithDefaults.minPollOptions;a++)this.addPollOptionData()};
_.f.getIsValidPoll=function(){var a=this;if(!this.pollEditorInfoWithDefaults)return!1;var b=this.pollEditorInfoWithDefaults,c=b.minPollOptionChars,d=b.maxPollOptionChars,e=b.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>b.maxPollQuestionChars)return!1;b=_.E(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(b).every(function(g,k){g=g.characterCount;!g&&e[k]&&(g=a.ytRendererBehavior.getSimpleString(e[k]).length);return g!==void 0&&g>=c&&g<=d})};
_.f.isValidPollChanged=function(){var a;_.y((a=this.data)==null?void 0:a.startButton,_.OE)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.f.addPollOptionData=function(){var a=this.pollEditorInfoWithDefaults,b=a.maxPollOptionChars,c=a.optionPlaceholderText,d=a.customOptionPlaceholderText,e=a.pollOptionData;this.currentNumPollOptions>=a.maxPollOptions||(a={liveChatPollOptionInput:{inputData:{placeholder:d[this.currentNumPollOptions]||c,maxCharacterLimit:b},maxCharacterLimit:b,minCharacterLimit:a.minPollOptionChars,hasPrefilledText:!!d[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=a.minPollOptions}},e.charCountErrorText&&
(a.liveChatPollOptionInput.charCountErrorText=e.charCountErrorText),e.charsRemainingAltLabel&&(a.liveChatPollOptionInput.charsRemainingAltLabel=e.charsRemainingAltLabel),e.removeOptionAltText&&(a.liveChatPollOptionInput.removeOptionAltText=e.removeOptionAltText),this.push("pollOptionsData",a),e=Array.from(_.E(_.E(this.hostElement).querySelector("#poll-options")).children),e.forEach(function(g,k){g.polymerController.set("data.id",k)}),_.E(e[e.length-1]).querySelector("#input").focus())};
_.f.getPollOptionInputValues=function(){var a=this,b=[],c=_.E(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),d=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(c).forEach(function(e,g){var k=null;e=e.getLiveChatRichMessageInput();var m;(e==null?0:(m=e.textSegments)==null?0:m.length)?k=_.Nt(e):d[g]&&(k=a.formattedStringToLiveChatRichMessageInput(d[g]));b.push(k)});
return b};
_.f.requestCreateAndStartPoll=function(a){var b=this.getPollOptionInputValues();if(!b.some(function(d){return!d})){b={optionText:b};
var c=_.E(_.E(this.hostElement).querySelector("#poll-question")).firstChild;c&&c.liveChatRichMessageInput&&(b.questionText=_.Nt(c.liveChatRichMessageInput));_.mo(this.hostElement,[a,b])}};
_.f.selectedChanged=function(){if(this.selected){var a=_.E(_.E(this.hostElement).querySelector("#start-button")).firstElementChild;if(a){var b;(b=_.E(a).querySelector("#button")||_.Zq(a).querySelector("button"))==null||b.focus()}}};
_.f.handleTextInputChanged=function(a){var b;((b=a.target)==null?void 0:b.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=a.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.f.handleStartButtonAction=function(a){a.detail.actionName==="yt-service-request"&&(a.stopPropagation(),(a=a.detail.args[1])&&this.requestCreateAndStartPoll(a))};
_.f.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.f.handleServiceRequestCompleted=function(a){this.createPollRequestInFlight=!1;(a=a.detail&&a.detail.data)&&a.success&&(_.go(this.hostElement,"picker-cancelled"),_.ho(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.f.onCloseClick=function(){_.go(this.hostElement,"picker-cancelled");_.ho(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.f.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.f.handlePollEditorInputClosed=function(a){var b=this.pollOptionsData.findIndex(function(c){return c.liveChatPollOptionInput.id===a.detail.id});
this.splice("pollOptionsData",b,1);this.isValidPoll=this.getIsValidPoll()};
_.f.onPickerCancelled=function(){this.reset()};
_.f.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var a=_.E(_.E(this.hostElement).querySelector("#poll-question")).firstChild;a&&a.setLiveChatRichMessageInput(null);if(a=_.E(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){a=_.h(Array.from(a));for(var b=a.next();!b.done;b=a.next())b.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.f.formattedStringToLiveChatRichMessageInput=function(a){return a.simpleText?{text_segments:[a.simpleText]}:{text_segments:a.runs}};
_.Vm.Object.defineProperties(Ned.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(Med,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
var Y8=Ned;Y8.prototype.onPickerCancelled=Y8.prototype.onPickerCancelled;Y8.prototype.handlePollEditorInputClosed=Y8.prototype.handlePollEditorInputClosed;Y8.prototype.handleServiceRequestCompleted=Y8.prototype.handleServiceRequestCompleted;Y8.prototype.handleServiceRequestSent=Y8.prototype.handleServiceRequestSent;Y8.prototype.handleTextInputChanged=Y8.prototype.handleTextInputChanged;Y8.prototype.selectedChanged=Y8.prototype.selectedChanged;Y8.prototype.isValidPollChanged=Y8.prototype.isValidPollChanged;
Y8.prototype.shouldInitializePollChanged=Y8.prototype.shouldInitializePollChanged;Y8.prototype.dataChanged=Y8.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],Y8.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],Y8.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],Y8.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],Y8.prototype,"modern",void 0);
_.U([_.O(),_.W("design:type",Object)],Y8.prototype,"closeButtonOverrides",void 0);_.U([_.O(),_.W("design:type",Object)],Y8.prototype,"startButtonOverrides",void 0);_.U([_.O(),_.W("design:type",Object)],Y8.prototype,"addOptionButtonOverrides",void 0);_.U([_.O({computed:"computeId(data.id)",reflectToAttribute:!0}),_.W("design:type",String)],Y8.prototype,"id",void 0);_.U([_.O({value:function(){return[]}}),
_.W("design:type",Array)],Y8.prototype,"pollOptionsData",void 0);_.U([_.K("pollEditorInfoWithDefaults"),_.W("design:type",Object),_.W("design:paramtypes",[])],Y8.prototype,"pollQuestionData",null);_.U([_.O({value:0}),_.W("design:type",Number)],Y8.prototype,"pollQuestionCharacterCount",void 0);_.U([_.K("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.W("design:type",Object),_.W("design:paramtypes",[])],Y8.prototype,"pollQuestionCharactersRemaining",null);
_.U([_.O({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.W("design:type",Boolean)],Y8.prototype,"overQuestionCharacterLimit",void 0);_.U([_.K("data.pollEditorInfo"),_.W("design:type",Object),_.W("design:paramtypes",[])],Y8.prototype,"pollEditorInfoWithDefaults",null);_.U([_.O({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.W("design:type",Number)],Y8.prototype,"currentNumPollOptions",void 0);
_.U([_.O({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.W("design:type",Boolean)],Y8.prototype,"hasMaxNumPollOptions",void 0);_.U([_.K("pollEditorInfoWithDefaults","pollOptionsData"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Y8.prototype,"shouldInitializePoll",null);_.U([_.O(),_.W("design:type",Object)],Y8.prototype,"isValidPoll",void 0);
_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],Y8.prototype,"createPollRequestInFlight",void 0);_.U([_.O(),_.W("design:type",Object)],Y8.prototype,"selected",void 0);_.U([_.O({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.W("design:type",Boolean)],Y8.prototype,"showQuestionErrorMessage",void 0);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Y8.prototype,"dataChanged",null);_.U([_.N("shouldInitializePoll"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Y8.prototype,"shouldInitializePollChanged",null);_.U([_.N("isValidPoll"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Y8.prototype,"isValidPollChanged",null);
_.U([_.N("selected"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Y8.prototype,"selectedChanged",null);_.U([_.M("yt-live-chat-text-input-field-renderer-character-count-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Y8.prototype,"handleTextInputChanged",null);
_.U([_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Y8.prototype,"handleServiceRequestSent",null);_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Y8.prototype,"handleServiceRequestCompleted",null);
_.U([_.M("yt-live-chat-poll-editor-input-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Y8.prototype,"handlePollEditorInputClosed",null);_.U([_.M("picker-cancelled"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Y8.prototype,"onPickerCancelled",null);Y8=_.U([_.ur({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],Y8);
_.S(Y8,"yt-live-chat-poll-editor-panel-renderer",function(){if(Led===void 0){var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;Ked===void 0&&(Ked=document.createElement("template"));var d=Ked;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Led=a}a=Led;return a},{mode:_.x("live_chat_enable_sink_wrapper")?2:0});var Oed;var Ped;var Qed=function(){return _.P.apply(this,arguments)||this};
_.z(Qed,_.P);Qed.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
Qed.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.Vm.Object.defineProperties(Qed.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var a,b;return(a=this.data)==null?void 0:(b=a.title)==null?void 0:b.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var a;return _.Es((a=this.data)==null?void 0:a.onTapCommand)}}});
var Z8=Qed;_.U([_.H(_.nH.YtEndpointBehavior),_.W("design:type",Object)],Z8.prototype,"ytEndpointBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],Z8.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],Z8.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],Z8.prototype,"itemId",null);
_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Z8.prototype,"hasPromotion",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],Z8.prototype,"innertubeCommand",null);Z8=_.U([_.ur({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],Z8);
_.S(Z8,"yt-live-chat-product-picker-panel-item-view-model",function(){if(Ped===void 0){var a=document.createElement("template");_.B(a,'\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>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;Oed===void 0&&(Oed=document.createElement("template"));var d=Oed;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Ped=a}a=Ped;return a},{mode:_.x("live_chat_enable_sink_wrapper")?2:0});var Red;var Sed;var Ted=function(){var a=_.P.apply(this,arguments)||this;a.id="product-picker";a.selected=!1;a.closeButtonId="close-button";a.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return a};
_.z(Ted,_.P);_.f=Ted.prototype;_.f.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.f.observeSelected=function(){this.selected&&this.hostElement.focus();var a=_.E(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");a.length&&a[0].focus()};
_.f.onCloseBuyFlow=function(){_.go(this.hostElement,"picker-cancelled")};
_.f.onCloseClick=function(){_.go(this.hostElement,"picker-cancelled");var a;((a=this.data)==null?0:a.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.y(this.data.closeButton,_.Fu))};
_.f.onCloseEngageWithAudienceEditorPanels=function(){_.go(this.hostElement,"picker-cancelled")};
var $8=Ted;$8.prototype.observeSelected=$8.prototype.observeSelected;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],$8.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],$8.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],$8.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],$8.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],$8.prototype,"id",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],$8.prototype,"selected",void 0);_.U([_.O(),_.W("design:type",Object)],$8.prototype,"closeButtonId",void 0);_.U([_.N("selected"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],$8.prototype,"observeSelected",null);
$8=_.U([_.ur({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],$8);
_.S($8,"yt-live-chat-product-picker-panel-view-model",function(){if(Sed===void 0){var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;Red===void 0&&(Red=document.createElement("template"));var d=Red;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Sed=a}a=Sed;return a},{mode:_.x("live_chat_enable_sink_wrapper")?2:0});var Ued;var Ved;var Wed=function(){var a=_.P.apply(this,arguments)||this;a.iconId="";a.icon="";a.disabled=!1;a.systemIcons=_.x("kevlar_system_icons");return a};
_.z(Wed,_.P);_.f=Wed.prototype;_.f.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
_.f.computeIconId=function(a){return a&&a.icon&&a.icon.iconType?a.icon.iconType.toLowerCase():""};
_.f.computeIcon=function(a){return a&&a.icon&&a.icon.iconType?(a=a.icon.iconType.toLowerCase(),(a.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+a):""};
_.f.computeDisabled=function(a){return!!a};
_.f.computeCommand=function(a,b){return b?void 0:a};
_.f.computeTooltip=function(a,b){return b&&a?a:""};
_.f.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
var a9=Wed;_.U([_.H(_.nH.YtEndpointBehavior),_.W("design:type",Object)],a9.prototype,"ytEndpointBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],a9.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],a9.prototype,"data",void 0);_.U([_.O({computed:"computeIconId(data)",reflectToAttribute:!0}),_.W("design:type",Object)],a9.prototype,"iconId",void 0);
_.U([_.O({computed:"computeIcon(data)",reflectToAttribute:!0}),_.W("design:type",Object)],a9.prototype,"icon",void 0);_.U([_.O({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.W("design:type",Object)],a9.prototype,"disabled",void 0);_.U([_.O({computed:"computeCommand(data.command, disabled)"}),_.W("design:type",Object)],a9.prototype,"command",void 0);_.U([_.O({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.W("design:type",String)],a9.prototype,"tooltip",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],a9.prototype,"systemIcons",void 0);a9=_.U([_.ur({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],a9);
_.S(a9,"yt-live-chat-product-button-renderer",function(){if(Ved===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_button_renderer.yt.live.chat.product.button.renderer.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope yt-live-chat-product-button-renderer" data="[[command]]" title$="[[tooltip]]">\n  <tp-yt-paper-item id="container" disabled$="[[disabled]]" on-click="onClick" class="style-scope yt-live-chat-product-button-renderer">\n    <div id="icon" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-product-button-renderer"></yt-icon>\n      <span hidden="[[!data.iconBadgeText]]" id="icon-badge-text" class="style-scope yt-live-chat-product-button-renderer">[[data.iconBadgeText]]</span>\n    </div>\n    <div id="text" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      <div id="subtext" class="style-scope yt-live-chat-product-button-renderer">\n        <yt-formatted-string text="[[data.subtext]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      </div>\n    </div>\n  </tp-yt-paper-item>\n</a>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;Ued===void 0&&(Ued=document.createElement("template"));var d=Ued;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Ved=a}a=Ved;return a},{mode:_.x("live_chat_enable_sink_wrapper")?2:0});var Xed;var Yed;var Zed=function(){var a=_.P.apply(this,arguments)||this;a.selected=!1;a.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return a};
_.z(Zed,_.P);_.f=Zed.prototype;_.f.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"}}}};
_.f.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.f.computeId=function(a){return a.id||""};
_.f.onCloseClick=function(){_.go(this.hostElement,"picker-cancelled")};
_.f.observeSelected=function(){this.selected&&this.hostElement.focus();var a=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");a.length&&a[0].focus()};
_.f.onCloseBuyFlow=function(){_.go(this.hostElement,"picker-cancelled")};
_.f.onCloseEngageWithAudienceEditorPanels=function(){_.go(this.hostElement,"picker-cancelled")};
var b9=Zed;b9.prototype.observeSelected=b9.prototype.observeSelected;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],b9.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],b9.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],b9.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],b9.prototype,"data",void 0);
_.U([_.O({computed:"computeId(data)",reflectToAttribute:!0}),_.W("design:type",String)],b9.prototype,"id",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],b9.prototype,"selected",void 0);_.U([_.N("selected"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],b9.prototype,"observeSelected",null);b9=_.U([_.ur({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],b9);
_.S(b9,"yt-live-chat-product-picker-renderer",function(){if(Yed===void 0){var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;Xed===void 0&&(Xed=document.createElement("template"));var d=Xed;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Yed=a}a=Yed;return a},{mode:_.x("live_chat_enable_sink_wrapper")?2:0});var $ed;var afd;var bfd;var cfd;var dfd=function(){return _.P.apply(this,arguments)||this};
_.z(dfd,_.P);dfd.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()};
dfd.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
dfd.prototype.created=function(){this.ids={background:_.GW(),maskOne:_.GW(),maskTwo:_.GW(),gradient:_.GW(),largeBackground:_.GW(),largeGradientOne:_.GW(),largeGradientTwo:_.GW(),largeGradientPath:_.GW()}};
var c9=dfd;c9.prototype.maybeLoadAnimationBackground=c9.prototype.maybeLoadAnimationBackground;_.U([_.O({value:!1}),_.W("design:type",Boolean)],c9.prototype,"useLargeBackground",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],c9.prototype,"useAnimationBackground",void 0);_.U([_.O({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.W("design:type",Boolean)],c9.prototype,"useRegularBackground",void 0);
_.U([_.O(),_.W("design:type",Object)],c9.prototype,"ids",void 0);_.U([_.O(),_.W("design:type",Object)],c9.prototype,"lottieAnimation",void 0);_.U([_.gr("#animation-background"),_.W("design:type",HTMLDivElement)],c9.prototype,"animationBackground",void 0);_.U([_.N("useAnimationBackground"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],c9.prototype,"maybeLoadAnimationBackground",null);
c9=_.U([_.ur({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],c9);
_.S(c9,"yt-live-interactivity-component-background",function(){if(cfd===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;bfd===void 0&&(bfd=document.createElement("template"));var d=bfd;c.call(b,d.content.cloneNode(!0),a.content.firstChild);cfd=a}a=cfd;return a},{mode:_.x("live_chat_enable_sink_wrapper")?2:0});var efd=function(){var a=_.P.apply(this,arguments)||this;a.characterCount=0;a.showInputErrorMessage=!1;a.startQnaRequestInFlight=!1;a.modern=_.x("web_button_rework_with_live");a.buttonOverrides={style:"mono",type:"filled"};a.closeButtonOverrides={iconPosition:"icon-only"};a.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return a};
_.z(efd,_.P);_.f=efd.prototype;
_.f.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]]"}}}}}};
_.f.onCharacterCountChanged=function(a){var b,c,d,e,g=(c=_.y(this==null?void 0:(b=this.data)==null?void 0:b.creatorCallForQuestions,ndd))==null?void 0:(d=c.inputField)==null?void 0:(e=d.liveChatTextInputFieldRenderer)==null?void 0:e.maxCharacterLimit,k,m;g!=null&&(a==null?void 0:(k=a.detail)==null?void 0:k.characterCount)!=null&&_.y(this==null?void 0:(m=this.data)==null?void 0:m.startButton,_.OE)&&(b=a.detail.characterCount>g,this.set("data.startButton.buttonRenderer.isDisabled",a.detail.characterCount===
0||b),this.showInputErrorMessage=b)};
_.f.onCloseClick=function(){_.go(this.hostElement,"picker-cancelled");_.ho(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.f.onPickerCancelled=function(){var a=_.E(this.hostElement).querySelector("#qna-creator-text-input-field");a&&a.setLiveChatRichMessageInput(null)};
_.f.handleOpenQnaStartPanel=function(){var a=_.E(this.hostElement).querySelector("#qna-creator-text-input-field");a&&a.focus()};
_.f.handleStartButtonAction=function(a){var b=this;if(a.detail.actionName==="yt-service-request"&&(a.stopPropagation(),a=a.detail.args[1])){var c=_.E(this.hostElement).querySelector("#qna-creator-text-input-field"),d;(c==null?0:(d=c.liveChatRichMessageInput)==null?0:d.textSegments)&&c.liveChatRichMessageInput.textSegments.length!==0&&(d={rich_message:_.Nt(c.liveChatRichMessageInput)},_.mo(this.hostElement,[a,d]).then(function(){_.go(b.hostElement,"picker-cancelled")}))}};
_.f.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.f.handleServiceRequestCompleted=function(a){var b;a=a==null?void 0:(b=a.detail)==null?void 0:b.data;(a==null?0:a.actions)&&a.actions.length>0?this.startQnaRequestInFlight=!1:_.ho(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.f.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
var d9=efd;d9.prototype.handleServiceRequestError=d9.prototype.handleServiceRequestError;d9.prototype.handleServiceRequestCompleted=d9.prototype.handleServiceRequestCompleted;d9.prototype.handleServiceRequestSent=d9.prototype.handleServiceRequestSent;d9.prototype.onPickerCancelled=d9.prototype.onPickerCancelled;d9.prototype.onCharacterCountChanged=d9.prototype.onCharacterCountChanged;_.U([_.O(),_.W("design:type",Object)],d9.prototype,"characterCount",void 0);
_.U([_.O(),_.W("design:type",Object)],d9.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],d9.prototype,"showInputErrorMessage",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],d9.prototype,"startQnaRequestInFlight",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],d9.prototype,"modern",void 0);_.U([_.O(),_.W("design:type",Object)],d9.prototype,"buttonOverrides",void 0);
_.U([_.O(),_.W("design:type",Object)],d9.prototype,"closeButtonOverrides",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],d9.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.JG),_.W("design:type",Object)],d9.prototype,"ytLiveChatReduxBehavior",void 0);_.U([_.H(_.QH.YtLiveChatItemBehavior),_.W("design:type",_.RH)],d9.prototype,"ytLiveChatItemBehavior",void 0);
_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],d9.prototype,"ytActionHandlerBehavior",void 0);_.U([_.M("yt-live-chat-text-input-field-renderer-character-count-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],d9.prototype,"onCharacterCountChanged",null);_.U([_.M("picker-cancelled"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],d9.prototype,"onPickerCancelled",null);
_.U([_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],d9.prototype,"handleServiceRequestSent",null);_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],d9.prototype,"handleServiceRequestCompleted",null);
_.U([_.M("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],d9.prototype,"handleServiceRequestError",null);d9=_.U([_.Q({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],d9);
_.S(d9,"yt-live-chat-qna-start-panel-renderer",function(){if(afd===void 0){var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;$ed===void 0&&($ed=document.createElement("template"));var d=$ed;c.call(b,d.content.cloneNode(!0),a.content.firstChild);afd=a}a=afd;return a},{mode:_.x("live_chat_enable_sink_wrapper")?2:0});var ffd;var gfd;var hfd=function(){return _.P.apply(this,arguments)||this};
_.z(hfd,_.P);hfd.prototype.dismiss=function(){_.go(this.hostElement,"yt-live-chat-error-message-dismiss")};
hfd.prototype.edit=function(){_.go(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
var ifd=hfd;_.U([_.O(),_.W("design:type",Object)],ifd.prototype,"data",void 0);ifd=_.U([_.ur({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],ifd);
_.S(ifd,"yt-live-chat-text-actions-error-message-renderer",function(){if(gfd===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;ffd===void 0&&(ffd=document.createElement("template"));var d=ffd;c.call(b,d.content.cloneNode(!0),a.content.firstChild);gfd=a}a=gfd;return a},{mode:_.x("live_chat_enable_sink_wrapper")?2:0});var jfd;var kfd;var lfd;var mfd;var e9=function(){var a=_.P.apply(this,arguments)||this;a.isDarkTheme=document.documentElement.hasAttribute("dark");a.newnessDotEligible=!1;return a};
_.z(e9,_.P);e9.prototype.sendReaction=function(){var a,b,c=((a=this.data)==null?void 0:a.emojiId)||((b=this.data)==null?void 0:b.emoteId),d;c&&((d=this.data)==null?0:d.shouldTriggerAnimation)&&_.ho(this.hostElement,"yt-create-user-reaction-animation",[c]);var e;(a=_.Es((e=this.data)==null?void 0:e.onTap))&&_.is(a,this.hostElement);this.showNewnessDot&&_.ho(this.hostElement,"yt-hide-newness-dot")};
e9.prototype.onClick=function(a){(!a||a.clientX||a.clientY)&&this.sendReaction()};
e9.prototype.onKeyDown=function(a){a.key!=="Enter"&&a.key!==" "||a.repeat||this.sendReaction()};
_.Vm.Object.defineProperties(e9.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!(((a=this.data)==null?0:a.emojiId)||((b=this.data)==null?0:b.emoteId))}}});
var f9=e9;_.U([_.O(),_.W("design:type",Object)],f9.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],f9.prototype,"isDarkTheme",void 0);_.U([_.O(),_.W("design:type",Object)],f9.prototype,"newnessDotEligible",void 0);_.U([_.K("data.maybeShowNewnessDot"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],f9.prototype,"showNewnessDot",null);
_.U([_.K("data.emojiId","data.emoteId"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],f9.prototype,"useYtImage",null);f9=_.U([_.ur({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],f9);
_.S(f9,"yt-reaction-control-panel-button-view-model",function(){if(mfd===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;lfd===void 0&&(lfd=document.createElement("template"));var d=lfd;c.call(b,d.content.cloneNode(!0),a.content.firstChild);mfd=a}a=mfd;return a},{mode:_.x("live_chat_enable_sink_wrapper")?2:0});var nfd;var ofd;var pfd=function(){var a=_.P.apply(this,arguments)||this;a.reactionControlPanelExpanded=!1;a.isDarkTheme=document.documentElement.hasAttribute("dark");a.newnessDotEligible=!1;return a};
_.z(pfd,_.P);_.f=pfd.prototype;_.f.expandedButtonsChanged=function(){var a,b;_.dr(this.hostElement,{"--expanded-buttons-height":((b=(a=this.expandedButtonsData)==null?void 0:a.length)!=null?b:0)*36+"px"})};
_.f.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}}};
_.f.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.f.onMouseLeave=function(){var a=this;this.collapseTimer=setTimeout(function(){a.reactionControlPanelExpanded=!1},500)};
_.f.onFocusIn=function(){this.onMouseEnter()};
_.f.onFocusOut=function(){this.onMouseLeave()};
_.f.onCollapsedButtonFocusIn=function(){var a=this;setTimeout(function(){var b;(b=a.expandedButtons.querySelector("button"))==null||b.focus()},100)};
_.f.onCollapsedButtonFocusOut=function(a){a.stopPropagation()};
_.Vm.Object.defineProperties(pfd.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var a,b;return _.yf.unsafeClone((a=this.liveReactionsData)==null?void 0:a.emojiButtonData)||((b=this.data)==null?void 0:b.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var a;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((a=this.data)==null||!a.maybeShowNewnessDot)}}});
var g9=pfd;g9.prototype.expandedButtonsChanged=g9.prototype.expandedButtonsChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],g9.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],g9.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.JG),_.W("design:type",Object)],g9.prototype,"ytLiveChatReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],g9.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],g9.prototype,"reactionControlPanelExpanded",void 0);_.U([_.O({selectorArgs:["data.liveReactionsDataEntityKey"],selector:Pbd}),_.W("design:type",Object)],g9.prototype,"liveReactionsData",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],g9.prototype,"isDarkTheme",void 0);_.U([_.O(),_.W("design:type",Object)],g9.prototype,"newnessDotEligible",void 0);
_.U([_.K("liveReactionsData","data.expandedButtons"),_.W("design:type",Object),_.W("design:paramtypes",[])],g9.prototype,"expandedButtonsData",null);_.U([_.K("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.O({reflectToAttribute:!0}),_.W("design:type",Object),_.W("design:paramtypes",[])],g9.prototype,"showNewnessDot",null);_.U([_.gr("#expanded-buttons"),_.W("design:type",HTMLElement)],g9.prototype,"expandedButtons",void 0);
_.U([_.N("expandedButtonsData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],g9.prototype,"expandedButtonsChanged",null);g9=_.U([_.ur({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],g9);
_.S(g9,"yt-reaction-control-panel-view-model",function(){if(ofd===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;nfd===void 0&&(nfd=document.createElement("template"));var d=nfd;c.call(b,d.content.cloneNode(!0),a.content.firstChild);ofd=a}a=ofd;return a},{mode:_.x("live_chat_enable_sink_wrapper")?2:0});var h9=new _.Ek("yt-live-chat"),qfd=Date.parse("2024-7-24"),rfd=function(){var a=_.P.apply(this,arguments)||this;a.emojiManager=_.PH;a.newnessDotEligible=!1;a.newnessDotImpressionCounted=!1;a.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return a};
_.z(rfd,_.P);_.f=rfd.prototype;_.f.emojiCustomizationEnabledChanged=function(){var a;((a=this.data)==null?0:a.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((a=h9.getCreationTime("emoji-customization-count"))&&a<qfd&&h9.set("emoji-customization-count","0"),a=Number(h9.get("emoji-customization-count"))||0,a<3&&(this.newnessDotEligible=!0,h9.set("emoji-customization-count",(a+1).toString())),this.newnessDotImpressionCounted=!0)};
_.f.hideNewnessDot=function(){this.newnessDotEligible=!1;h9.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.f.handleReactionsMute=function(a){var b=_.Fn(),c=_.lu(206221),d={checkboxData:{state:a?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};b&&_.Vo(b,c,d);this.reactionsMuted=a};
_.f.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.f.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}}};
_.Vm.Object.defineProperties(rfd.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var a;return(!((a=this.liveReactionsData)==null||!a.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
var i9=rfd;i9.prototype.liveReactionsSettingChanged=i9.prototype.liveReactionsSettingChanged;i9.prototype.emojiCustomizationEnabledChanged=i9.prototype.emojiCustomizationEnabledChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],i9.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],i9.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.JG),_.W("design:type",Object)],i9.prototype,"ytLiveChatReduxBehavior",void 0);
_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],i9.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],i9.prototype,"data",void 0);_.U([_.O(),_.W("design:type",_.MH)],i9.prototype,"emojiManager",void 0);_.U([_.O(),_.W("design:type",Object)],i9.prototype,"newnessDotEligible",void 0);_.U([_.O(),_.W("design:type",Object)],i9.prototype,"newnessDotImpressionCounted",void 0);
_.U([_.O({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:Qbd}),_.W("design:type",Boolean)],i9.prototype,"liveReactionsSetting",void 0);_.U([_.O({selectorArgs:["data.liveReactionsDataEntityKey"],selector:Pbd}),_.W("design:type",Object)],i9.prototype,"liveReactionsData",void 0);_.U([_.O({value:function(){var a=_.x("enable_lwe_web_mute"),b=h9.get("allow-reactions");return b===void 0?!1:!b&&a}}),
_.W("design:type",Boolean)],i9.prototype,"reactionsMuted",void 0);_.U([_.O({reflectToAttribute:!0}),_.K("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],i9.prototype,"liveReactionsEnabled",null);_.U([_.N("data.emojiCustomizationEnabled"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],i9.prototype,"emojiCustomizationEnabledChanged",null);
_.U([_.N("liveReactionsEnabled"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],i9.prototype,"liveReactionsSettingChanged",null);i9=_.U([_.ur({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],i9);
_.S(i9,"yt-reaction-control-panel-overlay-view-model",function(){if(kfd===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;jfd===void 0&&(jfd=document.createElement("template"));var d=jfd;c.call(b,d.content.cloneNode(!0),a.content.firstChild);kfd=a}a=kfd;return a},{mode:_.x("live_chat_enable_sink_wrapper")?2:0});var sfd={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(a){var b=this.$.pickers.selected;if(b){_.E(this.hostElement).removeAttribute(b+"-open");var c="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(c="#picker-buttons",b==="emoji"&&_.E(this.hostElement).querySelector("#emoji-picker-button")&&(c="#emoji-picker-button"));if(c=_.E(this.hostElement).querySelector(c).querySelector("#"+b))c.active=!1}c=a;b==a&&(c=null);b!=a&&
_.E(this.hostElement).setAttribute(a+"-open","");this.$.pickers.selected=c;_.ho(this.hostElement,"yt-live-chat-picker-changed",[c])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var tfd=function(){var a=_.P.apply(this,arguments)||this;a.numSentMessages=0;a.timeoutDurationMs=0;a.timeoutMs=0;a.lastTimeoutTimeMs=0;a.pendingMessageId="";a.hasFiredInitialFocusActions=!1;a.isBeforeFocusEnabled=!0;a.id="";a.characterCount=0;a.maxCharacterLimit=0;a.remainingCharacterCount=0;a.inputExpanded=!1;a.buttonOverrides={iconPosition:"icon-only"};a.inReplyPanel=!1;a.countdownRatio=0;a.isTooltipVisible=!1;a.tooltipTimeout=1E4;a.systemIcons=_.x("kevlar_system_icons");a.tallerEmojiPicker=_.x("live_chat_taller_emoji_picker");
a.blockSendMessageWithCountdown=!_.x("live_chat_enable_send_button_in_slow_mode");a.sendReplyMessageInFlight=!1;a.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"};a.onResize=function(){a.maybeToggleCharacterCount()};
return a};
_.z(tfd,_.P);_.f=tfd.prototype;
_.f.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"}}}};
_.f.attached=function(){window.addEventListener("resize",this.onResize)};
_.f.detached=function(){window.removeEventListener("resize",this.onResize)};
_.f.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.f.sendMessage=function(){var a=this,b,c,d,e;return _.l(function(g){if(a.sendDisabled)return g.return();a.isTooltipVisible&&_.ho(a.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(a.data.sendButton&&a.data.sendButton.buttonRenderer){a.input.completeEmojis();b=a.data.sendButton.buttonRenderer.serviceEndpoint;if(!b)return g.return();d=((c=_.y(b,_.JBb))==null?void 0:c.clientIdPrefix)||"";e={client_message_id:d+String(a.numSentMessages++),rich_message:_.Nt(a.input.liveChatRichMessageInput)};
a.pendingMessageId=e.client_message_id;a.inReplyPanel&&(a.sendReplyMessageInFlight=!0);_.mo(a.hostElement,[b,e]);a.input.setLiveChatRichMessageInput(null)}_.se(g)})};
_.f.handleSendButtonAction=function(a){a.detail.actionName==="yt-service-request"&&(a.stopPropagation(),this.sendMessage())};
_.f.onSendCompleted=function(a,b){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(a=this.get("timeoutDurationUsec",b.data))&&this.handleTimeout(Number(a)/1E3);this.errorMessage=this.get("errorMessage",b.data);this.pendingMessageId=""};
_.f.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.ho(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.f.handlePickerButtonToggle=function(a){a=a.detail.targetId;this.ytPickerBehavior.togglePicker_(a);if(a==="emoji")this.input.focus();else if(a==="qna-start-panel"){var b,c;(b=_.E(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(c=b.querySelector("#qna-creator-text-input-field"))==null||c.focus()}};
_.f.onComponentReplaced=function(a){var b,c;a.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((b=a.replacement.liveChatMessageInputRenderer)==null?0:(c=b.headerRenderer)==null?0:c.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.f.onEmojiSelect=function(a){this.input.focus();this.input.insertEmoji(a.detail)};
_.f.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.f.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.ho(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.ho(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.f.onOpenPopupAction=function(a,b){var c=this;b===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.ho(c.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.f.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.f.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.f.focusChanged=function(){this.maybeToggleCharacterCount()};
_.f.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var a=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",a>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.f.computeId=function(){return this.data&&this.data.targetId||""};
_.f.computeSendDisabled=function(a,b,c,d){a=!!(this.blockSendMessageWithCountdown&&c||!a||b&&a>b||d);(b=_.E(this.hostElement).querySelector("#send-button"))&&b.children.length&&(b.children[0].disabled=a);return a};
_.f.handleTimeout=function(a){this.timeoutDurationMs=this.timeoutMs=a;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.f.updateTimeout=function(a){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(a-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=a,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.f.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.f.onErrorMessageEdit=function(a){this.input.setLiveChatRichMessageInput(a.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.f.errorMessageChanged=function(){var a=this;_.Cr(function(){_.ho(a.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.f.computeAuthorNameColor=function(a){var b;if(_.x("live_chat_author_name_color_usernames")&&(a==null?0:(b=a.authorName)==null?0:b.simpleText))return _.YOa(_.ZOa(a.authorName.simpleText));if(_.x("live_chat_seed_color_usernames")&&(a==null?0:a.authorSeedColorArgb))return _.YOa(_.cs(a.authorSeedColorArgb));if(_.x("live_chat_colored_usernames"))return"#cc0000";var c;return _.x("live_chat_simple_color_usernames")&&(a==null?0:(c=a.authorName)==null?0:c.simpleText)&&(a==null?0:a.authorUsernameColorLight)&&
(a==null?0:a.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.cs(a.authorUsernameColorDark):_.cs(a.authorUsernameColorLight):""};
_.f.onIsTooltipVisibleChanged=function(){var a=_.E(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){a.hidden=!1;a.setAttribute("role","alert")},0):(a.hidden=!0,a.removeAttribute("role"))};
_.f.onFocusedChanged=function(a){this.inputFocused=a.detail.value};
_.Vm.Object.defineProperties(tfd.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 a;return!((a=this.data)==null||!a.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.data)==null?void 0:(b=a.pickers)==null?void 0:b.find(function(c){return c.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var a=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return a?this.ytRendererBehavior.getSimpleString(a):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
var j9=tfd;j9.prototype.onIsTooltipVisibleChanged=j9.prototype.onIsTooltipVisibleChanged;j9.prototype.errorMessageChanged=j9.prototype.errorMessageChanged;j9.prototype.onErrorMessageEdit=j9.prototype.onErrorMessageEdit;j9.prototype.onErrorMessageDismiss=j9.prototype.onErrorMessageDismiss;j9.prototype.focusChanged=j9.prototype.focusChanged;j9.prototype.characterCountChanged=j9.prototype.characterCountChanged;j9.prototype.onEmojiSelect=j9.prototype.onEmojiSelect;
j9.prototype.handlePickerButtonToggle=j9.prototype.handlePickerButtonToggle;j9.prototype.onSendError=j9.prototype.onSendError;j9.prototype.onSendCompleted=j9.prototype.onSendCompleted;j9.prototype.sendMessage=j9.prototype.sendMessage;j9.prototype.dataChanged=j9.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],j9.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],j9.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.H(sfd.YtPickerBehavior),_.W("design:type",Object)],j9.prototype,"ytPickerBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],j9.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.KG.YtLiveChatTooltipTargetingBehavior),_.W("design:type",Object)],j9.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],j9.prototype,"hasFiredInitialFocusActions",void 0);
_.U([_.O(),_.W("design:type",Object)],j9.prototype,"isBeforeFocusEnabled",void 0);_.U([_.O(),_.W("design:type",Object)],j9.prototype,"data",void 0);_.U([_.O({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.W("design:type",Object)],j9.prototype,"id",void 0);_.U([_.O(),_.W("design:type",Object)],j9.prototype,"characterCount",void 0);_.U([_.O(),_.W("design:type",Object)],j9.prototype,"maxCharacterLimit",void 0);
_.U([_.O(),_.W("design:type",Object)],j9.prototype,"remainingCharacterCount",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],j9.prototype,"inputExpanded",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],j9.prototype,"inputFocused",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],j9.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.U([_.O(),_.W("design:type",_.UH)],j9.prototype,"participantsManager",void 0);
_.U([_.O(),_.W("design:type",Object)],j9.prototype,"buttonOverrides",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],j9.prototype,"inReplyPanel",void 0);_.U([_.K("characterCount, maxCharacterLimit, countdownActive","blockSendMessageWithCountdown"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],j9.prototype,"sendDisabled",null);_.U([_.O(),_.W("design:type",Object)],j9.prototype,"countdownRatio",void 0);
_.U([_.K("countdownRatio"),_.W("design:type",Number),_.W("design:paramtypes",[])],j9.prototype,"countdownStrokeDashOffset",null);_.U([_.K("countdownRatio"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],j9.prototype,"countdownActive",null);_.U([_.K("data.interactionMessage"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],j9.prototype,"hasInteractionMessage",null);
_.U([_.K("data.emojiPickerButton"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],j9.prototype,"hasEmojiPickerButton",null);_.U([_.K("data, characterCount"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],j9.prototype,"showAvatar",null);_.U([_.K("data.pickers"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],j9.prototype,"hasProductPickerPanelViewModel",null);
_.U([_.O(),_.W("design:type",Object)],j9.prototype,"errorMessage",void 0);_.U([_.O(),_.W("design:type",Object)],j9.prototype,"genericErrorMessage",void 0);_.U([_.O(),_.W("design:type",Object)],j9.prototype,"isTooltipVisible",void 0);_.U([_.O(),_.W("design:type",Object)],j9.prototype,"tooltipTimeout",void 0);_.U([_.K("data.onInitialFocusCommand"),_.W("design:type",String),_.W("design:paramtypes",[])],j9.prototype,"tooltipMessage",null);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],j9.prototype,"systemIcons",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],j9.prototype,"tallerEmojiPicker",void 0);_.U([_.K("data"),_.W("design:type",String),_.W("design:paramtypes",[])],j9.prototype,"authorNameColor",null);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],j9.prototype,"blockSendMessageWithCountdown",void 0);_.U([_.O(),_.W("design:type",Object)],j9.prototype,"sendReplyMessageInFlight",void 0);
_.U([_.gr("#input"),_.W("design:type",_.pRb)],j9.prototype,"input",void 0);_.U([_.gr("#count"),_.W("design:type",HTMLElement)],j9.prototype,"count",void 0);_.U([_.gr("#input-container"),_.W("design:type",HTMLElement)],j9.prototype,"inputContainer",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],j9.prototype,"dataChanged",null);
_.U([_.M("yt-live-chat-send-message"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype",Promise)],j9.prototype,"sendMessage",null);_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[Event,_.Wt]),_.W("design:returntype")],j9.prototype,"onSendCompleted",null);_.U([_.M("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],j9.prototype,"onSendError",null);
_.U([_.M("yt-live-chat-icon-toggle-button-renderer-toggle"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],j9.prototype,"handlePickerButtonToggle",null);_.U([_.M("yt-emoji-select"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],j9.prototype,"onEmojiSelect",null);
_.U([_.N("characterCount"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],j9.prototype,"characterCountChanged",null);_.U([_.N("inputFocused"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],j9.prototype,"focusChanged",null);_.U([_.M("yt-live-chat-error-message-dismiss"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],j9.prototype,"onErrorMessageDismiss",null);
_.U([_.M("yt-live-chat-error-message-edit"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],j9.prototype,"onErrorMessageEdit",null);_.U([_.N("errorMessage"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],j9.prototype,"errorMessageChanged",null);_.U([_.N("isTooltipVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],j9.prototype,"onIsTooltipVisibleChanged",null);
j9=_.U([_.ur({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],j9);
_.S(j9,"yt-live-chat-message-input-renderer",function(){if(zed===void 0){var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;yed===void 0&&(yed=document.createElement("template"));var d=yed;c.call(b,d.content.cloneNode(!0),a.content.firstChild);zed=a}a=zed;return a},{mode:_.x("live_chat_enable_sink_wrapper")?2:0});var ufd;var vfd;var k9=function(){var a=_.P.apply(this,arguments)||this;a.systemIcons=_.x("kevlar_system_icons");a.firedOnClickCommand=!1;a.inReplyPanel=!1;return a};
_.z(k9,_.P);
k9.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"}}}};
k9.prototype.onButtonToggle=function(a){a.target.disabled||this.ytPickerBehavior.togglePicker_(a.detail.targetId)};
k9.prototype.onClick=function(){var a=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.ho(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return a.firedOnClickCommand=!1},5E3))};
_.Vm.Object.defineProperties(k9.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.data)==null?void 0:(b=a.panels)==null?void 0:b.find(function(c){return c.liveChatProductPickerPanelViewModel}))!==void 0}}});
var l9=k9;l9.prototype.onButtonToggle=l9.prototype.onButtonToggle;_.U([_.H(sfd.YtPickerBehavior),_.W("design:type",Object)],l9.prototype,"ytPickerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],l9.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],l9.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],l9.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],l9.prototype,"systemIcons",void 0);_.U([_.O({reflectToAttribute:!1}),_.W("design:type",Object)],l9.prototype,"firedOnClickCommand",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],l9.prototype,"inReplyPanel",void 0);_.U([_.K("data.pickers"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],l9.prototype,"hasProductPickerPanelViewModel",null);
_.U([_.M("yt-live-chat-icon-toggle-button-renderer-toggle"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],l9.prototype,"onButtonToggle",null);l9=_.U([_.ur({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],l9);
_.S(l9,"yt-live-chat-restricted-participation-renderer",function(){if(vfd===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;ufd===void 0&&(ufd=document.createElement("template"));var d=ufd;c.call(b,d.content.cloneNode(!0),a.content.firstChild);vfd=a}a=vfd;return a},{mode:_.x("live_chat_enable_sink_wrapper")?2:0});var wfd=function(){var a=_.P.apply(this,arguments)||this;a.genericErrorMessage=_.Up("Error, try again.");a.inReplyPanel=!1;a.hideBorder=!1;return a};
_.z(wfd,_.P);wfd.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}}}}}};
_.Vm.Object.defineProperties(wfd,{template:{configurable:!0,enumerable:!0,get:function(){return qed()}}});
var m9=wfd;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],m9.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],m9.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],m9.prototype,"genericErrorMessage",void 0);_.U([_.O(),_.W("design:type",Object)],m9.prototype,"inReplyPanel",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],m9.prototype,"hideBorder",void 0);
m9=_.U([_.ur({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],m9);_.S(m9,"yt-live-chat-engagement-panel-input-renderer",function(){return qed()},{mode:_.x("live_chat_enable_sink_wrapper")?2:0});var xfd,yfd;xfd=_.lu(115994);yfd=_.lu(115993);_.zfd=function(a,b,c){var d=this;var e=c.dragDownAction;this.layer=0;this.JSC$19634_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return d.dragDownAction()}}}};
this.JSC$19634_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return d.dragDownAction()}}}};
this.fullscreen=!1;var g=_.ms();_.oF(g,xfd,this.layer);_.oF(g,yfd,this.layer);this.dragDownAction=function(){e();_.Pt(g,{visualElement:d.fullscreen?xfd:yfd})};
this.gesture=new _.w6(a,b,this.JSC$19634_watchConfig,"pandown");this.attach()};
_.zfd.prototype.attach=function(){this.gesture.attach()};
_.zfd.prototype.detach=function(){this.gesture.detach()};
_.zfd.prototype.update=function(a){this.fullscreen=a;this.gesture.config=a?this.JSC$19634_watchFullScreenConfig:this.JSC$19634_watchConfig};var Afd={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(a){if(a&&a.length==1&&Array.isArray(a[0].loggingUrls)){a=_.yf.unsafeClone(a[0]);var b=this.macros||{},c=this.getAdModuleClient_();if(!c)return _.oo();a.loggingUrls.forEach(function(d){if(d.baseUrl){var e=d.baseUrl;var g=b;g=g===void 0?{}:g;e=c.getOptions().includes("replaceUrlMacros")?_.D2b(c,"replaceUrlMacros",{url:e,additionalMapping:g}):e;d.baseUrl=e}},this);
a=[a]}return _.mo(this.hostElement,a)},
getAdModuleClient_:function(){var a=_.bu(this);return a?(a=a.getPlayer())?new _.zM(a):null:null}}]};var Bfd;var Cfd=function(){var a=_.P.apply(this,arguments)||this;a.isCollapsed=!1;a.modernPanels=_.x("kevlar_watch_modern_panels");a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return a};
_.z(Cfd,_.P);_.f=Cfd.prototype;_.f.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.f.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.f.onDonateTap=function(){var a=this.get("data.donateButton.buttonRenderer.command");if(a){var b=_.Fn(),c=this.get("data.donateButton.buttonRenderer.trackingParams");b&&c&&_.Vo(b,_.qs(c));this.ytOpenPopupBehavior.openPopup(a)}};
_.f.onShowMore=function(){this.isCollapsed=!1;var a=_.Fn(),b=this.get("data.expandButton.buttonRenderer.trackingParams");a&&b&&_.Vo(a,_.qs(b))};
_.f.onShowLess=function(){this.isCollapsed=!0};
_.f.dataChanged=function(){_.dr(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.f.onDarkModeToggledAction=function(a){this.isDarkTheme=a};
_.f.handleUpdate=function(a){if(a=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",a))this.set("data.startLabel",a.startLabel),this.set("data.endLabel",a.endLabel),this.set("data.progress",a.progress),this.set("data.amountRaisedLabel",a.amountRaisedLabel),this.dataChanged()};
_.f.handleOpenPopupAction=function(a){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",a)&&_.ho(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.f.computeHeaderBackgroundUrl=function(a,b){if(a)return b?a.headerBackgroundDarkUrl:a.headerBackgroundUrl};
_.f.isProgressBarVisible=function(a){return!(!a||a.progress===void 0)};
_.f.headerBackgroundClass=function(){return _.Ei("HTML_DIR")==="rtl"?"flip":""};
var n9=Cfd;n9.prototype.dataChanged=n9.prototype.dataChanged;_.U([_.H(_.mH.YtOpenPopupBehavior),_.W("design:type",Object)],n9.prototype,"ytOpenPopupBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],n9.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],n9.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],n9.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],n9.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],n9.prototype,"isCollapsed",void 0);_.U([_.O({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.W("design:type",String)],n9.prototype,"headerBackgroundUrl",void 0);_.U([_.O(),_.W("design:type",Boolean)],n9.prototype,"isDarkTheme",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],n9.prototype,"modernPanels",void 0);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],n9.prototype,"dataChanged",null);n9=_.U([_.Q({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],n9);
_.S(n9,"ytd-donation-shelf-renderer",function(){if(Bfd!==void 0)return Bfd;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Bfd=a},{mode:1});var Dfd;var Efd=function(){return _.P.apply(this,arguments)||this};
_.z(Efd,_.P);var Ffd=Efd;_.U([_.O(),_.W("design:type",Object)],Ffd.prototype,"data",void 0);Ffd=_.U([_.Q({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],Ffd);
_.S(Ffd,"ytd-donation-unavailable-renderer",function(){if(Dfd!==void 0)return Dfd;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Dfd=a},{mode:1});var Gfd;var Hfd=function(){return _.P.apply(this,arguments)||this};
_.z(Hfd,_.P);Hfd.prototype.computeIconType=function(a){return a?"yt-icons:"+a.toLowerCase():null};
var Ifd=Hfd;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],Ifd.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],Ifd.prototype,"data",void 0);Ifd=_.U([_.Q({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],Ifd);
_.S(Ifd,"ytd-limited-state-message-renderer",function(){if(Gfd!==void 0)return Gfd;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Gfd=a},{mode:1});var Jfd;var Kfd=function(){return _.P.apply(this,arguments)||this};
_.z(Kfd,_.P);Kfd.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
Kfd.prototype.onTap=function(a){var b=this.data&&this.data.endpoint;b&&!_.Xt(_.Pq(a),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.go(this.hostElement,"yt-navigate",{endpoint:b})};
var o9=Kfd;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],o9.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],o9.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],o9.prototype,"data",void 0);o9=_.U([_.Q({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],o9);
_.S(o9,"ytd-autotagging-metadata-renderer",function(){if(Jfd!==void 0)return Jfd;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Jfd=a},{mode:1});var Lfd;var Mfd=function(){return _.P.apply(this,arguments)||this};
_.z(Mfd,_.P);Mfd.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
var p9=Mfd;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],p9.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],p9.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],p9.prototype,"data",void 0);p9=_.U([_.Q({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],p9);
_.S(p9,"ytd-autotagging-metadata-row-renderer",function(){if(Lfd!==void 0)return Lfd;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Lfd=a},{mode:1});var Nfd;var Ofd;var Pfd=function(){var a=_.P.apply(this,arguments)||this;a.engagementPanelContent=!1;return a};
_.z(Pfd,_.P);Pfd.prototype.computeHasDividerLine=function(a,b){return a&&!b};
var q9=Pfd;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],q9.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],q9.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.W("design:type",Boolean)],q9.prototype,"hasDividerLine",void 0);_.U([_.O(),_.W("design:type",Object)],q9.prototype,"engagementPanelContent",void 0);
q9=_.U([_.Q({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],q9);
_.S(q9,"ytd-metadata-row-header-renderer",function(){if(Ofd!==void 0)return Ofd;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Ofd=a},{mode:1});var Qfd;var Rfd=function(){return _.P.apply(this,arguments)||this};
_.z(Rfd,_.P);Rfd.prototype.computeHasDividerLine=function(a){return a};
var r9=Rfd;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],r9.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],r9.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.W("design:type",Boolean)],r9.prototype,"hasDividerLine",void 0);r9=_.U([_.Q({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],r9);
_.S(r9,"ytd-metadata-row-renderer",function(){if(Qfd!==void 0)return Qfd;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Qfd=a},{mode:1});var Sfd;var Tfd=function(){return _.P.apply(this,arguments)||this};
_.z(Tfd,_.P);var Ufd=Tfd;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],Ufd.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],Ufd.prototype,"data",void 0);Ufd=_.U([_.Q({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],Ufd);
_.S(Ufd,"ytd-metadata-with-image-row-renderer",function(){if(Sfd!==void 0)return Sfd;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Sfd=a},{mode:1});var Vfd;var Wfd=function(){var a=_.P.apply(this,arguments)||this;a.rounded=!0;a.fixie=!1;a.fullWidth=!1;return a};
_.z(Wfd,_.P);_.f=Wfd.prototype;_.f.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.f.onDataChanged=function(){var a=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(b){a.onEndpointLinkKeyPress(b)}))};
_.f.onEndpointLinkKeyPress=function(a){a.target===this.endpointLink&&a.keyCode===13&&_.go(this.hostElement,"click")};
_.f.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var a;if((a=this.data)==null?0:a.endpoint)_.no(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.f.onYtNavigate=function(a){this.endpointHref||(a.stopPropagation(),a.preventDefault())};
_.f.onInformationButtonContainerClick=function(a){a.target.id!=="information-button-container"&&(a.stopPropagation(),a.preventDefault())};
_.f.computeStyle=function(a){return a};
_.f.computeIsThumbnailStyle=function(a){return a==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.f.computeThumbnailWidth=function(a){switch(a){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}};
_.f.computeThumbnailObjectFit=function(a){switch(a){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.Vm.Object.defineProperties(Wfd.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?0:a.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
var s9=Wfd;s9.prototype.onYtNavigate=s9.prototype.onYtNavigate;s9.prototype.onClick=s9.prototype.onClick;s9.prototype.onDataChanged=s9.prototype.onDataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],s9.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],s9.prototype,"componentBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],s9.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],s9.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.W("design:type",String)],s9.prototype,"componentStyle",void 0);_.U([_.O({computed:"computeIsThumbnailStyle(data.style)"}),_.W("design:type",Boolean)],s9.prototype,"isThumbnailStyle",void 0);_.U([_.O({computed:"computeThumbnailObjectFit(data.style)"}),_.W("design:type",String)],s9.prototype,"thumbnailObjectFit",void 0);
_.U([_.O({computed:"computeThumbnailWidth(data.style)"}),_.W("design:type",Number)],s9.prototype,"thumbnailWidth",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],s9.prototype,"rounded",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],s9.prototype,"fixie",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],s9.prototype,"fullWidth",void 0);_.U([_.gr("#endpoint-link"),_.W("design:type",HTMLAnchorElement)],s9.prototype,"endpointLink",void 0);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],s9.prototype,"onDataChanged",null);_.U([_.K("data.endpoint"),_.W("design:type",Object),_.W("design:paramtypes",[])],s9.prototype,"endpointHref",null);_.U([_.M("click"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],s9.prototype,"onClick",null);
_.U([_.M("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],s9.prototype,"onYtNavigate",null);s9=_.U([_.Q({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],s9);
_.S(s9,"ytd-rich-metadata-renderer",function(){if(Vfd!==void 0)return Vfd;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Vfd=a},{mode:_.as("kevlar_poly_si_batch_j075")?1:2});var Xfd;var Yfd=function(){var a=_.P.apply(this,arguments)||this;a.fixie=!1;a.fullWidth=!1;return a};
_.z(Yfd,_.P);Yfd.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
Yfd.prototype.computeHasDividerLine=function(a){return a};
var t9=Yfd;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],t9.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],t9.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.W("design:type",Boolean)],t9.prototype,"hasDividerLine",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],t9.prototype,"fixie",void 0);
_.U([_.O(),_.W("design:type",Object)],t9.prototype,"fullWidth",void 0);t9=_.U([_.Q({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],t9);
_.S(t9,"ytd-rich-metadata-row-renderer",function(){if(Xfd!==void 0)return Xfd;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Xfd=a},{mode:1});var Zfd=function(){var a=_.P.apply(this,arguments)||this;a.engagementPanelContent=!1;a.fixie=!1;a.fullWidth=!1;return a};
_.z(Zfd,_.P);
Zfd.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"}}}};
Zfd.prototype.computeCollapsibleItems=function(a,b,c){return a===void 0||b===void 0||c===void 0||c?[]:a.slice(b)};
Zfd.prototype.computeAlwaysShownItems=function(a,b){return a&&a.length?a.slice(0,b):[]};
var u9=Zfd;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],u9.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],u9.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],u9.prototype,"data",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],u9.prototype,"collapsed",void 0);
_.U([_.O({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.W("design:type",Array)],u9.prototype,"alwaysShownItems",void 0);_.U([_.O({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.W("design:type",Array)],u9.prototype,"collapsibleItems",void 0);_.U([_.O(),_.W("design:type",Object)],u9.prototype,"engagementPanelContent",void 0);_.U([_.O(),_.W("design:type",Object)],u9.prototype,"fixie",void 0);
_.U([_.O(),_.W("design:type",Object)],u9.prototype,"fullWidth",void 0);u9=_.U([_.Q({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],u9);
_.S(u9,"ytd-metadata-row-container-renderer",function(){if(Nfd!==void 0)return Nfd;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Nfd=a},{mode:1});var $fd;var agd=function(){var a=_.P.apply(this,arguments)||this;a.currentPageUrl="";a.baseUrl="";a.isHiddenByUser=null;a.hidden=!1;a.showAboveScrim=!1;a.watchNextGrid=_.x("kevlar_watch_grid");a.modernButtons=_.x("web_modern_buttons");a.roundedContainer=!0;a.noBorder=!1;a.roundBackground=!_.x("live_chat_round_background_killswitch");a.overflowHideChat=_.x("live_chat_overflow_hide_chat");a.forceDarkTheme=!1;a.theaterWatchWhile=!1;a.isListeningForPlayerProgress=!1;a.JSC$19670_playerEvents=new Map;a.isFrameReady=
!1;a.player=null;a.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 a};
_.z(agd,_.P);_.f=agd.prototype;_.f.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.ko(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.f.created=function(){var a=this;this.handleIframeEventListener=function(b){a.handleIframeEvent(b)};
this.handleKeyboardEventListener=function(b){a.handleKeyboardEvent(b)};
this.JSC$19670_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$19670_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19670_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$19670_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$19670_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.f.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()};
_.f.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};
_.f.computeBaseUrl=function(a){var b="/live_chat";this.isChatReplay()&&(b="/live_chat_replay");return _.lA(_.kA(_.jA(_.Jg(a),b),null),"").toString()};
_.f.dataChanged=function(){_.x("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.f.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var a=this.url;if(this.isChatReplay()&&this.player){var b=Math.floor(this.player.getProgressState().current*1E3);a=_.Lg(_.Jg(a),"playerOffsetMs",b.toString()).toString()}b=this.chatframe;try{var c=a==="about:blank"?_.Kab:_.Gd(a),d=b.contentDocument.location,e=_.Kd(c);e!==void 0&&d.replace(e)}catch(g){b.src=a}}};
_.f.collapsedChanged=function(){_.go(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.f.handleIframeEvent=function(a){if(a&&this.baseUrl.startsWith(a.origin)&&a.source===this.chatframe.contentWindow&&_.$a(a.data))if(a.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(a);else if(a.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(a.data["yt-show-feedback-dialog"]){var b=_.v().resolve(_.Wi(_.hec));if(b){var c=a.ports,d;c&&c.length&&(d=function(){c[0].postMessage({})});
a=a.data["yt-show-feedback-dialog"];b.showFeedbackDialog(a.customProductData,a.feedbackContent,d,a.bucket)}}else if(a.data["yt-show-survey"])_.go(this.hostElement,"yt-show-survey",a.data["yt-show-survey"]);else if(a.data["yt-purchase-membership"])_.x("web_ytd_live_chat_frame_command_resolver_ks")?_.mo(this.hostElement,[a.data["yt-purchase-membership"]]):_.v().resolve(_.Xi).resolveCommand(a.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(a.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(a.data["yt-tunnel-out-live-service-request"]);
else if(a.data["yt-user-activity"])_.Zk();else if(a.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(a.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(a.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(a.data["yt-open-popup"]);else if(a.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(a.data["yt-log-flow-logging-event-command"]);else if(a.data["yt-hide-live-chat"])this.onShowHideChat();
else a.data["yt-report-moderation-state-log"]&&this.player&&(b={cpn:this.player.getVideoData().cpn},_.zl("liveChatBeingModerated",b))};
_.f.attachLiveChatResponseVeTrackingParams=function(a){a=_.qs(a);var b=_.Fn(),c=_.Ji("liveChatRenderer.trackingParams",this.data);b&&c&&_.Ro(b,_.qs(c),a)};
_.f.handleBuyflowMessages=function(a){var b=a.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,c=a.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,d=a.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.y4a(_.mw(_.Oq),b.replace(/-/g,"+").replace(/_/g,"/"),function(e){a.ports[0].postMessage({success:!0,buyFlowResponse:e})},void 0,function(e){a.ports[0].postMessage({success:!1,
error:e&&e.message||"Buyflow rejected without error."})},_.wo().get("hl"),void 0,function(){a.ports[0].postMessage({closed:!0})},c,d)};
_.f.setupPlayerProgressRelay=function(){var a=this;if(!this.isListeningForPlayerProgress){var b=_.cu();b!=null&&b.getPlayerPromise&&(b.getPlayerPromise().then(function(c){a.playerApiReady(c)}),this.isListeningForPlayerProgress=!0)}};
_.f.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.f.playerApiReady=function(a){this.setPlayer(a)};
_.f.playerProgressHandler=function(){if(this.player){var a=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":a.current})}};
_.f.playerAdStartHandler=function(a){this.postToContentWindow({"yt-player-ad-start":a})};
_.f.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.f.playerStateChangeHandler=function(a){this.postToContentWindow({"yt-player-state-change":a})};
_.f.setPlayer=function(a){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19670_playerEvents);a&&(this.player=a,this.ytPlayerListenerBehavior.listenToPlayerEvents(a,this.JSC$19670_playerEvents),_.go(this.hostElement,"player-api-ready"))};
_.f.liveChatPageUrl=function(a,b,c,d){return!c||b?"about:blank":c.liveChatRenderer?(b=_.Jg(this.currentPageUrl).JSC$7879_queryData_,Pcd(b),a=_.Jg(a),b.add("continuation",c.liveChatRenderer.continuations[0].reloadContinuationData.continuation),c=_.Hq()==="USER_INTERFACE_THEME_DARK",(d||c)&&b.add("dark_theme","true"),_.kA(a,b),d=_.Jg(a.toString()),c=d.JSC$7879_queryData_,"SESSION_INDEX"in _.Ai&&(c.add("authuser",_.Ei("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.Ai&&c.add("pageId",_.Ei("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.Ai&&c.add("sdc",_.Ei("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),d.toString()):""};
_.f.isCollapsed=function(a,b){return b!==null?b:this.isChatReplay()||a&&a.conversationBarRenderer&&a.conversationBarRenderer.availabilityMessage?!0:a&&a.liveChatRenderer?a.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!1};
_.f.isHidden=function(a,b,c){var d=b&&b.conversationBarRenderer&&b.conversationBarRenderer.availabilityMessage,e=b&&b.liveChatRenderer&&b.liveChatRenderer.showHideButton,g=b&&b.liveChatRenderer&&b.liveChatRenderer.showButton;return c&&a&&!d&&!g||!c&&a&&!d&&!e?!0:b&&b.liveChatRenderer&&b.liveChatRenderer.initialDisplayState?b.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.f.computeButtonOverride=function(a,b){if(a&&b)return{type:"outline"}};
_.f.setCollapsedState=function(a){_.y(a,_.vBb)&&(this.isHiddenByUser=!!_.y(a,_.vBb).collapsed,!this.isHiddenByUser&&_.x("enable_teaser_framework_web_client")&&_.ho(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.f.forwardReduxActionToIframe=function(a){this.postToContentWindow({"yt-live-chat-forward-redux-action":a})};
_.f.onLoopRangeChange=function(a){this.showAboveScrim=!(a==null||!a.postId)};
_.f.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.f.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.f.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.f.sendDarkThemePostMessage=function(a){this.postToContentWindow({"yt-live-chat-set-dark-theme":a})};
_.f.onLiveChatBuyFlowCallback=function(a){this.postToContentWindow({"yt-live-chat-buy-flow-callback":a})};
_.f.handleKeyboardEvent=function(a){(0,_.yf.containsValue)(Sdd,a.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:a.type,keyCode:a.keyCode}})};
_.f.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.f.postToContentWindow=function(a){if(this.isFrameReady)try{var b=window.location.protocol+"//"+window.location.host,c;(c=this.chatframe)!=null&&c.contentWindow?this.chatframe.contentWindow.postMessage(a,b):_.Dl(new _.qj("Tried posting a message to an iframe with no content window",a))}catch(d){_.Bl(d)}};
_.f.shouldHideChatFrame=function(a){return a&&_.x("hide_live_chat_button_when_collapsed")};
_.Vm.Object.defineProperties(agd.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.x("live_chat_overflow_hide_chat")||_.x("web_watch_chat_hide_button_killswitch"))return _.x("live_chat_overflow_hide_chat");var a,b,c,d;return!!((a=this.data)==null?0:(b=a.liveChatRenderer)==null?0:(c=b.header)==null?0:(d=c.liveChatHeaderRenderer)==null?0:d.collapseButton)}}});
var v9=agd;v9.prototype.collapsedChanged=v9.prototype.collapsedChanged;v9.prototype.urlChanged=v9.prototype.urlChanged;v9.prototype.dataChanged=v9.prototype.dataChanged;v9.prototype.onShowHideChat=v9.prototype.onShowHideChat;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],v9.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],v9.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],v9.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.YI.YtPlayerListenerBehavior),_.W("design:type",_.ZI)],v9.prototype,"ytPlayerListenerBehavior",void 0);_.U([_.H(_.mH.YtOpenPopupBehavior),_.W("design:type",Object)],v9.prototype,"ytOpenPopupBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],v9.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],v9.prototype,"currentPageUrl",void 0);
_.U([_.O({computed:"computeBaseUrl(currentPageUrl,data)"}),_.W("design:type",Object)],v9.prototype,"baseUrl",void 0);_.U([_.O({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.W("design:type",String)],v9.prototype,"url",void 0);_.U([_.O(),_.W("design:type",Object)],v9.prototype,"isHiddenByUser",void 0);_.U([_.O({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.W("design:type",Object)],v9.prototype,"hidden",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.W("design:type",Boolean)],v9.prototype,"collapsed",void 0);_.U([_.O({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.W("design:type",Boolean)],v9.prototype,"hideChatFrame",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],v9.prototype,"showAboveScrim",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],v9.prototype,"watchNextGrid",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],v9.prototype,"modernButtons",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],v9.prototype,"roundedContainer",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],v9.prototype,"noBorder",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],v9.prototype,"roundBackground",void 0);
_.U([_.O({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.W("design:type",Object)],v9.prototype,"toggleButtonOverride",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],v9.prototype,"overflowHideChat",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],v9.prototype,"forceDarkTheme",void 0);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],v9.prototype,"enableShowWithoutHideChatButton",null);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],v9.prototype,"theaterWatchWhile",void 0);_.U([_.gr("#chatframe"),_.W("design:type",HTMLIFrameElement)],v9.prototype,"chatframe",void 0);_.U([_.M("yt-toggle-button"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],v9.prototype,"onShowHideChat",null);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],v9.prototype,"dataChanged",null);
_.U([_.N("url"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],v9.prototype,"urlChanged",null);_.U([_.N("collapsed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],v9.prototype,"collapsedChanged",null);v9=_.U([_.Q({is:"ytd-live-chat-frame",disableElementRegistration:!0})],v9);
_.S(v9,"ytd-live-chat-frame",function(){if($fd!==void 0)return $fd;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return $fd=a},{mode:1});var bgd;var w9=function(){var a=_.P.apply(this,arguments)||this;a.modern=_.x("web_modern_buttons");a.buttonOverrides={style:"call-to-action",type:"filled"};return a};
_.z(w9,_.P);w9.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=_.Bq(this.data.backgroundColor)))};
w9.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var a=this.getFormattedStringLoggingDirectives(this.data.headline);a&&this.rendererBehavior.logExplicitClick(a)}};
w9.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var a=this.getFormattedStringLoggingDirectives(this.data.description);a&&this.rendererBehavior.logExplicitClick(a)}};
w9.prototype.getFormattedStringLoggingDirectives=function(a){return a&&a.runs&&a.runs.length>0&&a.runs[0]&&a.runs[0].loggingDirectives?a.runs[0].loggingDirectives:null};
var x9=w9;x9.prototype.dataChanged=x9.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],x9.prototype,"rendererBehavior",void 0);_.U([_.H(Afd.YtMacroReplacementBehavior),_.W("design:type",Object)],x9.prototype,"macroReplacementBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],x9.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],x9.prototype,"navigationEndpoint",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],x9.prototype,"enableColors",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],x9.prototype,"modern",void 0);_.U([_.O(),_.W("design:type",Object)],x9.prototype,"buttonOverrides",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],x9.prototype,"dataChanged",null);x9=_.U([_.Q({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],x9);
_.S(x9,"ytd-action-basic-immersive-content-renderer",function(){if(bgd!==void 0)return bgd;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return bgd=a},{mode:1});var cgd;var dgd;var egd=function(){return _.P.apply(this,arguments)||this};
_.z(egd,_.P);egd.prototype.dataChanged=function(){var a;((a=this.data)==null?void 0:a.backgroundColor)!==void 0&&_.dr(this.hostElement,{"--bgu-color":_.Bq(this.data.backgroundColor)})};
egd.prototype.onImageTileClick=function(){var a;((a=this.data)==null?0:a.navigationEndpoint)&&_.go(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var b;((b=this.data)==null?0:b.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.Vm.Object.defineProperties(egd.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var a;if(((a=this.data)==null?void 0:a.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 a;return((a=this.data)==null?void 0:a.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var a,b,c;if(((a=this.data)==null?void 0:(b=a.detailsLine)==null?void 0:b.texts)!=null&&((c=this.data)==null?void 0:c.detailsLine.texts.length)>0){var d;return(d=this.data)==null?void 0:d.detailsLine.texts.map(function(e){return e.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var a,b,c;if(((a=this.data)==null?void 0:(b=a.optionalDetailsLine)==null?void 0:b.texts)!=null&&((c=this.data)==null?void 0:c.optionalDetailsLine.texts.length)>0){var d;return(d=this.data)==null?void 0:d.optionalDetailsLine.texts.map(function(e){return e.text}).join("")}return null}}});
var y9=egd;y9.prototype.dataChanged=y9.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],y9.prototype,"rendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],y9.prototype,"componentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],y9.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.K("data.backgroundColor"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],y9.prototype,"hasBackgroundColor",null);
_.U([_.K("data.objectFit"),_.W("design:type",Object),_.W("design:paramtypes",[])],y9.prototype,"getObjectFit",null);_.U([_.O({reflectToAttribute:!0}),_.K("data.tileRenderingStyle"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],y9.prototype,"hasTileMetadata",null);_.U([_.K("data.detailsLine"),_.W("design:type",Object),_.W("design:paramtypes",[])],y9.prototype,"getSecondaryDetails",null);
_.U([_.K("data.optionalDetailsLine"),_.W("design:type",Object),_.W("design:paramtypes",[])],y9.prototype,"getOptionalDetails",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],y9.prototype,"dataChanged",null);y9=_.U([_.Q({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],y9);
_.S(y9,"ytd-image-tile-renderer",function(){if(dgd!==void 0)return dgd;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return dgd=a},{mode:1});var fgd;var ggd=function(){return _.P.apply(this,arguments)||this};
_.z(ggd,_.P);ggd.prototype.getOpenLinkIcon=function(){return _.x("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
ggd.prototype.onSitelinkTap=function(){_.go(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.x("kevlar_command_handler_migration_killswitch"))_.no(this.hostElement,this.data.clickCommands,this.hostElement);else for(var a=_.h(this.data.clickCommands),b=a.next();!b.done;b=a.next())this.ytComponentBehavior.resolveCommand(b.value)};
var z9=ggd;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],z9.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],z9.prototype,"rendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],z9.prototype,"data",void 0);z9=_.U([_.Q({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],z9);
_.S(z9,"ytd-sitelink-renderer",function(){if(fgd!==void 0)return fgd;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return fgd=a},{mode:1});var A9=function(){var a=_.P.apply(this,arguments)||this;a.paddingFix=_.x("enable_ads_web_ep_buenos_aires_and_padding_fix");return a};
_.z(A9,_.P);A9.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"}}}};
A9.prototype.dataChanged=function(){var a=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(b){b.clickTrackingParams&&delete b.clickTrackingParams;a.ytMacroReplacementBehavior.sendServiceRequestAction([b])})};
A9.prototype.shouldHideFooter=function(a){return!(a&&_.x("use_ads_engagement_panel_desktop_footer_cta"))};
_.Vm.Object.defineProperties(A9.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.data)==null?void 0:a.imageTileRenderers)===void 0||((b=this.data)==null?void 0:b.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(c){var d;return(d=_.y(c,Vcd))==null?void 0:d.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.data)==null?void 0:a.imageTileRenderers)===void 0||((b=this.data)==null?void 0:b.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(c){var d;return((d=_.y(c,Vcd))==null?void 0:d.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
var B9=A9;B9.prototype.dataChanged=B9.prototype.dataChanged;_.U([_.H(Afd.YtMacroReplacementBehavior),_.W("design:type",Object)],B9.prototype,"ytMacroReplacementBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],B9.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],B9.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],B9.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],B9.prototype,"paddingFix",void 0);_.U([_.O({reflectToAttribute:!0}),_.K("data.imageTileRenderers"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],B9.prototype,"removeBorderFromImageTiles",null);_.U([_.O({reflectToAttribute:!0}),_.K("data.imageTileRenderers"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],B9.prototype,"useFooteredMetadataRenderingStyle",null);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],B9.prototype,"dataChanged",null);B9=_.U([_.Q({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],B9);
_.S(B9,"ytd-action-engagement-panel-content-renderer",function(){if(cgd!==void 0)return cgd;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return cgd=a},{mode:1});var hgd;var igd=_.Rr(function(a){var b=a.data;var c=a.customCommandResolver;a=_.Rl();_.cv(a,function(){return b().interaction},c);
_.$l(a,{visibilityCallback:function(d){var e,g=(e=b().interaction)==null?void 0:e.onFirstVisible;d&&g&&_.Js(g)},
showOption:_.nL});return _.q("ad-grid-card-image-full-metadata-view-model",{class:function(){var d;return((d=b().interaction)==null?0:d.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:a,"aria-label":function(){var d,e;return(d=b().interaction)==null?void 0:(e=d.accessibility)==null?void 0:e.label}},_.q("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.q(_.Eu,{data:function(){return b().adImage}},{adImageViewModel:function(d){return _.q(_.wN,{data:d.data,
customCommandResolver:c})}})),_.q("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.q(_.oi,{cond:function(){return b().headline},
then:function(d){return _.q(_.wt,{text:d,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.q(_.oi,{cond:function(){return b().detailsLine},
then:function(d){return _.q("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.q(_.Eu,{data:d},{adDetailsLineViewModel:function(e){return _.q(_.tL,{data:e.data,customCommandResolver:c,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.q(_.oi,{cond:function(){return b().secondaryDetailsLine},
then:function(d){return _.q("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.q(_.Eu,{data:d},{adDetailsLineViewModel:function(e){return _.q(_.tL,{data:e.data,customCommandResolver:c,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))});var jgd=_.Rr(function(a){var b=a.data;var c=a.customCommandResolver;a=_.Rl();_.cv(a,function(){return b().interaction},c);
_.$l(a,{visibilityCallback:function(d){var e,g=(e=b().interaction)==null?void 0:e.onFirstVisible;d&&g&&_.Js(g)},
showOption:_.nL});return _.q("ad-grid-card-image-view-model",{class:function(){var d;return((d=b().interaction)==null?0:d.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:a,"aria-label":function(){var d,e;return(d=b().interaction)==null?void 0:(e=d.accessibility)==null?void 0:e.label}},_.q(_.Eu,{data:function(){return b().adImage}},{adImageViewModel:function(d){return _.q(_.wN,{data:d.data,
customCommandResolver:c})}}),_.q("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.q(_.Eu,{data:function(){return b().adCardBadge}},{adCardBadgeViewModel:_.i4b})))});var kgd=_.Rr(function(a){var b=a.data;var c=a.customCommandResolver;a=_.Rl();_.cv(a,function(){return b().interaction},c);
_.$l(a,{visibilityCallback:function(d){var e,g=(e=b().interaction)==null?void 0:e.onFirstVisible;d&&g&&_.Js(g)},
showOption:_.nL});return _.q("ad-grid-card-text-view-model",{class:function(){var d;return((d=b().interaction)==null?0:d.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:a,"aria-label":function(){var d,e;return(d=b().interaction)==null?void 0:(e=d.accessibility)==null?void 0:e.label}},_.q("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.q(_.oi,{cond:function(){return b().title},
then:function(d){return _.q(_.wt,{text:d,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.q("div",{class:function(){return _.x("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInline":"ytwAdGridCardTextViewModelHostMetadataDescription"}},_.q(_.ni,{each:function(){var d;
return((d=b())==null?void 0:d.descriptions)||[]},
keyBy:"INDEX"},function(d){return _.q(_.wt,{text:d,className:function(){return _.x("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline":"ytwAdGridCardTextViewModelHostMetadataDescriptionString"}})}))),_.q("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.q(_.Eu,{data:function(){return b().moreInfoButton}},{adButtonViewModel:function(d){return _.q(_.pL,{data:d.data,
customCommandResolver:c})}})))});var lgd=_.Rr(function(a){var b=a.data;var c=a.customCommandResolver;var d=a.adGridCardCollectionStyle;a=_.Rl();_.$l(a,{visibilityCallback:function(e){var g,k=(g=b().interaction)==null?void 0:g.onFirstVisible;e&&k&&_.Js(k)},
showOption:_.nL});return _.q("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:a,style:function(){return"grid-template-columns: repeat("+$bd(d?d():b().style)+", minmax(0, 1fr));"}},_.q(_.Eu,{data:function(){var e;
return(e=b())==null?void 0:e.gridCards}},{adGridCardImageViewModel:function(e){return _.q(jgd,{data:e.data,
customCommandResolver:c})},
adGridCardImageFullMetadataViewModel:function(e){return _.q(igd,{data:e.data,customCommandResolver:c})},
adGridCardTextViewModel:function(e){return _.q(kgd,{data:e.data,customCommandResolver:c})}}))});_.Ws(_.Rr(function(a){var b=a.data;a=_.Rl();_.cv(a,function(){return b().interaction},bcd);
_.$l(a,{visibilityCallback:function(c){var d,e=(d=b().interaction)==null?void 0:d.onFirstVisible;c&&e&&_.Js(e)},
showOption:_.nL});return _.q("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:a},_.q("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.q(_.oi,{cond:_.S1a("(min-width: "+((0,_.HW)()+_.N8)+"px)"),then:function(){return _.q(_.Eu,{data:function(){return b().adGridCardCollection}},{adGridCardCollectionViewModel:function(c){return _.q(lgd,{data:c.data,
customCommandResolver:bcd})}})},
else:function(){return _.q(_.Eu,{data:function(){return b().adGridCardCollection}},{adGridCardCollectionViewModel:function(c){return _.q(lgd,{data:c.data,
customCommandResolver:bcd,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.q("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.q(_.Eu,{data:function(){return b().adButton}},{adButtonViewModel:function(c){return _.q(_.pL,{data:c.data,
customCommandResolver:bcd})}})))}),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.SG}});_.Ws(_.Rr(function(a){var b=a.data;a=_.Rl();_.cv(a,function(){return b().interaction},ccd);
_.$l(a,{visibilityCallback:function(c){var d,e=(d=b().interaction)==null?void 0:d.onFirstVisible;c&&e&&_.Js(e)},
showOption:_.nL});return _.q("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:a},_.q("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.q(_.Eu,{data:function(){if(_.S1a("(min-width: "+((0,_.HW)()+_.N8)+"px)")())var c=b().adGridCardCollection;else{c=Object.assign({},_.y(b().adGridCardCollection,Wcd));var d;c.gridCards!==void 0&&((d=c.gridCards)==null?void 0:d.length)>1?c.style=
"AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":c.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";c={adGridCardCollectionViewModel:c}}return c}},{adGridCardCollectionViewModel:function(c){return _.q(lgd,{data:c.data,
customCommandResolver:ccd})}})),_.q("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.q(_.Eu,{data:function(){return b().adButton}},{adButtonViewModel:function(c){return _.q(_.pL,{data:c.data,
customCommandResolver:ccd})}})))}),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.SG}});var mgd=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return a};
_.z(mgd,_.P);_.f=mgd.prototype;_.f.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"}}}};
_.f.attached=function(){this.getDataFromPlayerAndRender()};
_.f.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.f.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.f.getDataFromPlayerAndRender=function(){var a=this,b=_.bu(this.hostElement);b&&b.getPlayerPromise().then(function(c){a.getCachedDataAndListen(c)})};
_.f.getCachedDataAndListen=function(a){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(a,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(a,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=a)};
_.f.resolveCachedActions=function(){var a=_.Ji("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(a=a&&a())&&!_.yf.isEmpty(a)&&this.sendUpdateEngagementPanelAction(a);(a=(a=_.Ji("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&a())&&!_.yf.isEmpty(a)&&this.sendChangeEngagementPanelVisibilityAction(a);(a=(a=_.Ji("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&a())&&!_.yf.isEmpty(a)&&this.sendScrollToEngagementPanelCommand(a)};
_.f.sendUpdateEngagementPanelAction=function(a){var b;_.ho(this.hostElement,"yt-update-engagement-panel-action",[(b=_.yf.get(a,"action"))!=null?b:a])};
_.f.sendChangeEngagementPanelVisibilityAction=function(a){_.ho(this.hostElement,"yt-change-engagement-panel-visibility-action",[a])};
_.f.sendScrollToEngagementPanelCommand=function(a){_.ho(this.hostElement,"yt-scroll-to-engagement-panel-command",[a])};
_.f.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.x("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.Dl(Error("bm"))};
var C9=mgd;C9.prototype.dataChanged=C9.prototype.dataChanged;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],C9.prototype,"actionHandlerBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],C9.prototype,"componentBehavior",void 0);_.U([_.H(_.YI.YtPlayerListenerBehavior),_.W("design:type",_.ZI)],C9.prototype,"ytPlayerListenerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],C9.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],C9.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],C9.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],C9.prototype,"player",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],C9.prototype,"dataChanged",null);C9=_.U([_.Q({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],C9);
_.S(C9,"ytd-ads-engagement-panel-content-renderer",function(){if(hgd!==void 0)return hgd;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);
return hgd=a},{mode:1});var ngd;var ogd=function(){var a=_.P.apply(this,arguments)||this;a.player=null;a.JSC$19707_playerEvents=new Map;a.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return a};
_.z(ogd,_.P);_.f=ogd.prototype;_.f.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]]"}}}}}};
_.f.created=function(){this.player=null;this.JSC$19707_playerEvents=new Map;this.JSC$19707_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$19707_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$19707_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19707_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.f.attached=function(){var a=this,b=_.bu();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));b&&b.getPlayerPromise().then(function(c){a.setPlayer(c);a.set("isPageLoad",!1)})};
_.f.setPlayer=function(a){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19707_playerEvents);this.set("player",a);a&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(a,this.JSC$19707_playerEvents),a.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.f.onLoopRangeChange=function(a){var b=_.v().resolve(_.Wi(_.$t));if((!b||b.isOnWatch())&&this.hostElement.clientHeight){var c;!a&&((c=this.data)==null?0:c.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.f.onVideoProgress=function(a){var b,c,d=((b=this.player)==null?void 0:(c=b.getPresentingPlayerType)==null?void 0:c.call(b))===2;this.isAdPlaying!==d&&this.set("isAdPlaying",d);var e;if(!d&&(e=this.player)!=null&&e.getLoopRange()){c=this.player.getLoopRange();b=c.startTimeMs;c=c.endTimeMs;d=this.player.getProgressState(1).seekableStart;var g;b<d*1E3&&((g=this.data)==null?0:g.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
a=c<a*1E3;var k;((k=this.player)==null?0:k.getLoopRange())&&a&&this.player.seekTo(b/1E3)}};
_.f.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.f.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.f.onYtDeleteClipEngagementPanelCommand=function(a){_.y(a,kdd).command&&this.ytComponentBehavior.resolveCommand(_.y(a,kdd).command)};
_.Vm.Object.defineProperties(ogd.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.voteCount)||_.Up("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
var D9=ogd;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],D9.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],D9.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],D9.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],D9.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.YI.YtPlayerListenerBehavior),_.W("design:type",_.ZI)],D9.prototype,"ytPlayerListenerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],D9.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],D9.prototype,"isAdPlaying",void 0);_.U([_.O({reflectToAttribute:!0,value:!0}),_.W("design:type",Boolean)],D9.prototype,"isPageLoad",void 0);_.U([_.O({reflectToAttribute:!0,value:!0}),_.W("design:type",Boolean)],D9.prototype,"isDarkTheme",void 0);
_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],D9.prototype,"voteCount",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],D9.prototype,"channelEndpoint",null);_.U([_.K("channelEndpoint"),_.W("design:type",Object),_.W("design:paramtypes",[])],D9.prototype,"channelHref",null);D9=_.U([_.Q({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],D9);
_.S(D9,"ytd-clip-attribution-renderer",function(){if(ngd!==void 0)return ngd;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return ngd=a},{mode:1});var pgd;var qgd=function(){var a=_.P.apply(this,arguments)||this;a.player=null;a.JSC$19712_playerEvents=new Map;return a};
_.z(qgd,_.P);_.f=qgd.prototype;_.f.created=function(){this.player=null;this.JSC$19712_playerEvents=new Map;this.JSC$19712_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$19712_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19712_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.f.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.f.attached=function(){var a=this,b=_.bu();b&&b.getPlayerPromise().then(function(c){a.setPlayer(c);a.set("isPageLoad",!1)})};
_.f.setPlayer=function(a){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19712_playerEvents);this.set("player",a);if(a){this.ytPlayerListenerBehavior.listenToPlayerEvents(a,this.JSC$19712_playerEvents);var b;(a==null?void 0:(b=a.getPresentingPlayerType)==null?void 0:b.call(a))===2&&this.playerAdStartHandler()}};
_.f.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.f.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.f.onVideoProgress=function(){var a,b,c=((a=this.player)==null?void 0:(b=a.getPresentingPlayerType)==null?void 0:b.call(a))===2;this.isAdPlaying!==c&&this.set("isAdPlaying",c)};
var E9=qgd;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],E9.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],E9.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.YI.YtPlayerListenerBehavior),_.W("design:type",_.ZI)],E9.prototype,"ytPlayerListenerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],E9.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],E9.prototype,"isAdPlaying",void 0);_.U([_.O({reflectToAttribute:!0,value:!0}),_.W("design:type",Boolean)],E9.prototype,"isPageLoad",void 0);E9=_.U([_.Q({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],E9);
_.S(E9,"ytd-clip-section-footer-renderer",function(){if(pgd!==void 0)return pgd;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return pgd=a},{mode:1});var rgd;var sgd;var tgd=function(){return _.P.apply(this,arguments)||this};
_.z(tgd,_.P);var ugd=tgd;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],ugd.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],ugd.prototype,"data",void 0);ugd=_.U([_.Q({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],ugd);
_.S(ugd,"ytd-clip-ad-state-renderer",function(){if(sgd!==void 0)return sgd;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return sgd=a},{mode:1});var vgd;var wgd=function(){var a=_.P.apply(this,arguments)||this;a.value="";a.valid=!1;a.userChangedValue=!1;a.disabled=!1;a.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return a};
_.z(wgd,_.P);_.f=wgd.prototype;_.f.detached=function(){this.userChangedValue=!1};
_.f.handleKeyDown=function(a){if(_.tx)var b=13;else _.V8a&&_.ux?b=13:b=13;a.keyCode===b&&a.preventDefault()};
_.f.handleInput=function(){var a=_.E(this.hostElement).querySelector("#title");if(a){var b=(a.value||"").replace(/\r|\n/g," ");this.set("value",b);a.value=b;this.valid=a.validate();this.userChangedValue=!0}};
_.f.handleBlur=function(){this.valid=_.E(this.hostElement).querySelector("#title").validate()};
_.f.onValueChanged=function(){_.go(this.hostElement,"title-changed",{title:this.value})};
_.f.onValidChanged=function(){_.go(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.f.setInput=function(a,b){var c=_.E(this.hostElement).querySelector("#title");c&&(c.value=a,this.handleInput(),b&&(c.invalid=!1,this.valid=!0))};
_.f.onClipCreationDisable=function(){this.set("disabled",!0)};
_.f.onClipCreationEnable=function(){this.set("disabled",!1)};
_.f.onClipCreationVisibilityChange=function(a){var b=this;a.visible?requestAnimationFrame(function(){var c;((c=_.E(b.hostElement).querySelector("#title"))==null?void 0:c.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
var F9=wgd;F9.prototype.onValidChanged=F9.prototype.onValidChanged;F9.prototype.onValueChanged=F9.prototype.onValueChanged;F9.prototype.handleBlur=F9.prototype.handleBlur;F9.prototype.handleInput=F9.prototype.handleInput;F9.prototype.handleKeyDown=F9.prototype.handleKeyDown;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],F9.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],F9.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],F9.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],F9.prototype,"value",void 0);_.U([_.O(),_.W("design:type",Object)],F9.prototype,"valid",void 0);_.U([_.O(),_.W("design:type",Object)],F9.prototype,"userChangedValue",void 0);_.U([_.O(),_.W("design:type",Object)],F9.prototype,"disabled",void 0);_.U([_.M("keydown"),_.W("design:type",Function),_.W("design:paramtypes",[KeyboardEvent]),_.W("design:returntype")],F9.prototype,"handleKeyDown",null);
_.U([_.M("input"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],F9.prototype,"handleInput",null);_.U([_.M("blur"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],F9.prototype,"handleBlur",null);_.U([_.N("value"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],F9.prototype,"onValueChanged",null);
_.U([_.N("valid"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],F9.prototype,"onValidChanged",null);F9=_.U([_.Q({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],F9);
_.S(F9,"ytd-clip-creation-text-input-renderer",function(){if(vgd!==void 0)return vgd;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return vgd=a},{mode:1});var xgd;var ygd;var zgd;var Agd;var Bgd;var Cgd=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};a.pendingStoryboardImages_={};a.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];a.tickLabelInterval=30;a.mediumTickInterval=5;a.largeTickInterval=15;a.aboveRulerHeight=32;a.rulerHeight=50;a.smallTickHeight=4;a.mediumTickHeight=8;a.largeTickHeight=16;a.mediaListeners_=
{};return a};
_.z(Cgd,_.P);_.f=Cgd.prototype;_.f.attached=function(){var a=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(b){b=_.h(["screen and (min-resolution: "+b+")","screen and (max-resolution: "+b+")"]);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=window.matchMedia(c);d&&(a.mediaListeners_[c]=a.updatePixelRatio_.bind(a),d.addEventListener?d.addEventListener("change",a.mediaListeners_[c]):d.addListener?d.addListener(a.mediaListeners_[c]):delete a.mediaListeners_[c])}})};
_.f.detached=function(){this.setPlayer(null);for(var a=_.h(Object.keys(this.mediaListeners_)),b=a.next();!b.done;b=a.next()){var c=b.value;b=this.mediaListeners_[c];(c=window.matchMedia(c))&&(c.removeEventListener?c.removeEventListener("change",b):c.removeListener&&c.removeListener(b))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.f.onVisibilityChangedAction_=function(a){var b=this;a.visible&&!this.player_&&(a=_.bu())&&a.getPlayerPromise().then(function(c){b.setPlayer(c)})};
_.f.setPlayer=function(a){a&&this.set("player_",a)};
_.f.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.f.setUpCanvas_=function(){var a=this.rulerWidth,b=this.devicePixelRatio_,c=this.visible;this.set("canvasReady_",!1);if(c&&b!==0){c=this.aboveRulerHeight+this.rulerHeight;var d=_.E(this.hostElement).querySelector("#ticks");d.width=a*b;d.height=c*b;d.style.width=a+"px";d.style.height=c+"px";d.getContext("2d").scale(b,b);this.set("canvasReady_",!0)}};
_.f.drawRuler_=function(a,b,c,d,e,g,k,m,n,r,t,u){a&&c&&b&&(a=_.E(this.hostElement).querySelector("#ticks"),b=a.getContext("2d"),b.clearRect(0,0,a.width,a.height),b.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),b.lineWidth=2,b.beginPath(),b.moveTo(0,this.aboveRulerHeight),b.lineTo(a.width,this.aboveRulerHeight),b.moveTo(0,a.height),b.lineTo(a.width,a.height),b.stroke(),this.drawRulerTicks_(a,g,e,d),this.drawStoryboardImages_(a,c,g,e,d),b.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
b.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(k-g,d,!1),this.rulerHeight),c=this.timeToPixels_(m-g,d,!1),b.fillRect(c,this.aboveRulerHeight,a.width-c,this.rulerHeight),this.drawSpeedLines_(a,g,u))};
_.f.drawRulerTicks_=function(a,b,c,d){var e=a.getContext("2d");e.save();e.lineWidth=1;for(var g=Math.floor(Math.max(0,b-this.tickLabelInterval));g<b+c;g++){e.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var k=(g-b)*d;e.beginPath();e.moveTo(k,a.height);var m=this.smallTickHeight;g%this.largeTickInterval===0?m=this.largeTickHeight:g%this.mediumTickInterval===0&&(m=this.mediumTickHeight);e.lineTo(k,a.height-m);e.stroke();g%this.tickLabelInterval===0&&(e.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),e.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),e.fillText(J8(g),k+4,12),e.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),e.moveTo(k,0),e.lineTo(k,this.aboveRulerHeight),e.stroke())}e.restore()};
_.f.percentToHex_=function(a){a=Math.round(a*255).toString(16);a.length<2&&(a="0"+a);return a};
_.f.drawSpeedLines_=function(a,b,c){var d=a.getContext("2d");d.save();var e=Math.min(25,Math.abs(c)-15)/25,g=a.width*.3*e,k=a.width*-.3,m=a.width*1.3,n=this.aboveRulerHeight;a=a.height;var r=Math.round(4*e),t=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");t.length<7&&(t="#"+t.substring(1,4).repeat(2));var u=this.percentToHex_(.5+e/2);u=t+u;t+="00";if(e>0)for(e=0;e<r;e++){var w=k+Math.random()*(m-k),A=n+Math.random()*(a-n),C=g+b%g,G=d.createLinearGradient(w,A,w+C,A);
c<0?(G.addColorStop(0,u),G.addColorStop(.4,u),G.addColorStop(.9,t)):(G.addColorStop(.1,t),G.addColorStop(.6,u),G.addColorStop(1,u));d.strokeStyle=G;d.lineWidth=1;d.beginPath();d.moveTo(w,A);d.lineTo(w+C,A);d.stroke()}d.restore()};
_.f.getStoryboardForTime_=function(a,b,c){c===void 0&&(c=b.getNumberOfStoryboardLevels()-1);a=b.getStoryboardFrameIndex(a,c);return b.getStoryboardFrame(a,c)};
_.f.drawStoryboardImages_=function(a,b,c,d,e){if(!this.disabled){a=a.getContext("2d");var g=this.getStoryboardForTime_(0,b);if(g){var k=g.width/g.columns;g=g.height/g.rows;var m=k/g,n=this.rulerHeight*m;n=this.tickLabelInterval*(m<this.tickLabelInterval*e/this.rulerHeight?1/Math.floor(this.tickLabelInterval*e/n):Math.round(n/(this.tickLabelInterval*e)));var r=n*e,t=this.rulerHeight,u=r/this.rulerHeight,w=Math.floor(Math.max(0,c-n));for(w-=w%n;w<c+d;w+=n){var A=this.getStoryboardForTime_(w,b),C=this.getPreloadedStoryboard_(A.url);
if(C){var G=(w-c)*e,J=this.aboveRulerHeight,I=A.column*k,R=A.row*g;if(m<u){var ca=t/(r/m);A=k;ca*=g;R+=(g-ca)/2}else A=r/(t*m)*k,ca=g,I+=(k-A)/2;a.drawImage(C,I,R,A,ca,G,J,r,t)}else this.fetchStoryboardImage_(A)}}}};
_.f.getPreloadedStoryboard_=function(a){return this.storyboardImages_.find(function(b){if(b.src==a)return!0;var c=b.src.indexOf(a);return c!=-1&&c==b.src.length-a.length})};
_.f.fetchStoryboardImage_=function(a){var b=this,c=this.getPreloadedStoryboard_(a.url),d=this.pendingStoryboardImages_[a.url];c||d!==void 0||(c=new Promise(function(e){var g=new Image(a.width,a.height);g.src=a.url;g.onload=function(){e(g)};
g.onerror=function(){e(null)}}),this.pendingStoryboardImages_[a.url]=c,c.then(function(e){e&&b.push("storyboardImages_",e);
return e}).finally(function(){delete b.pendingStoryboardImages_[a.url]}))};
_.f.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.f.timeToPixels_=function(a,b,c){a*=b;return c===void 0||c?a+"px":a};
_.f.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
var G9=Cgd;G9.prototype.drawRuler_=G9.prototype.drawRuler_;G9.prototype.setUpCanvas_=G9.prototype.setUpCanvas_;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],G9.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],G9.prototype,"ytRendererBehavior",void 0);_.U([_.O({value:0}),_.W("design:type",Number)],G9.prototype,"start",void 0);_.U([_.O({value:30}),_.W("design:type",Number)],G9.prototype,"end",void 0);
_.U([_.O({value:!1}),_.W("design:type",Boolean)],G9.prototype,"visible",void 0);_.U([_.O(),_.W("design:type",Object)],G9.prototype,"player_",void 0);_.U([_.O(),_.W("design:type",Number)],G9.prototype,"tickSpacing",void 0);_.U([_.O(),_.W("design:type",Number)],G9.prototype,"windowSizeSec",void 0);_.U([_.O({value:0}),_.W("design:type",Number)],G9.prototype,"rulerWidth",void 0);_.U([_.O({value:0}),_.W("design:type",Number)],G9.prototype,"rulerShift",void 0);
_.U([_.O({value:!1}),_.W("design:type",Boolean)],G9.prototype,"canvasReady_",void 0);_.U([_.O({value:function(){return[]}}),
_.W("design:type",Array)],G9.prototype,"storyboardImages_",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],G9.prototype,"disabled",void 0);_.U([_.O({value:0}),_.W("design:type",Number)],G9.prototype,"forceRender_",void 0);_.U([_.O({value:1}),_.W("design:type",Number)],G9.prototype,"devicePixelRatio_",void 0);_.U([_.O({value:0}),_.W("design:type",Number)],G9.prototype,"windowSpeed",void 0);
_.U([_.N("visible","devicePixelRatio_","rulerWidth"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],G9.prototype,"setUpCanvas_",null);
_.U([_.N("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.W("design:type",Function),_.W("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.W("design:returntype")],G9.prototype,"drawRuler_",null);G9=_.U([_.ur({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],G9);
_.S(G9,"yt-clip-creation-scrubber-canvas",function(){if(Bgd===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);Bgd=a}a=Bgd;return a},
{mode:2});var Dgd;var Egd;var Fgd=function(){var a=_.P.apply(this,arguments)||this;a.start=0;a.end=30;a.visible=!1;a.draggingLeft_=!1;a.draggingRight_=!1;a.draggingRuler_=!1;a.draggingWindow_=!1;a.seekableStart=0;a.seekableEnd=0;a.rulerWidth_=0;a.rulerShift_=0;a.windowSlideSpeed=0;a.disabled=!1;a.initialized=!1;a.durationAccessibilityLabel="";a.activeLoopRange_=!1;a.rulerDragMouseStart_=0;a.rulerDragRulerStart_=0;a.rulerDragStartTime_=0;a.rulerDragEndTime_=0;a.dragMouseLastX_=0;a.scrollInterval_=null;a.scrubberVe_=null;a.boundHandlers_=
{};a.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return a};
_.z(Fgd,_.P);_.f=Fgd.prototype;
_.f.created=function(){var a=this;this.JSC$19725_playerEvents=new Map;this.JSC$19725_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$19725_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$19725_playerEvents.set("onStateChange",this.onStateChange_);var b={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(b).forEach(function(c){a.boundHandlers_[c]=b[c].bind(a)})};
_.f.attached=function(){this.activeLoopRange_=!1;_.E(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.E(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.lu(156731)};
_.f.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.E(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.E(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.f.onVisibilityChangedAction_=function(a){var b=this;a.visible&&!this.player_&&(a=_.bu())&&a.getPlayerPromise().then(function(c){b.setPlayer(c)})};
_.f.setPlayer=function(a){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$19725_playerEvents);a&&(this.set("player_",a),this.ytPlayerListenerBehavior.listenToPlayerEvents(a,this.JSC$19725_playerEvents))};
_.f.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.f.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.f.beginHandleDrag_=function(a){this.disabled||(a.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=a.clientX,a.target===_.E(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():a.target===_.E(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.f.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.f.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.f.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.f.beginRulerDrag_=function(a){this.disabled||(a.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=a.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.f.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.f.beginWindowScroll_=function(){var a=this;this.scrollInterval_=setInterval(function(){var b=a.windowSlideSpeed;if(b=_.$$c(a.start,a.boundedRulerStartLimit_())?b-.1:_.$$c(a.end,a.boundedRulerEndLimit_())?b+.1:0){var c=a.capRulerOffset_(a.rulerShift_+b);c==a.rulerShift_?b=0:(a.set("rulerShift_",c),_.go(a.hostElement,"set-fixed-length-range",{start:a.start+b,duration:a.end-a.start}))}a.set("windowSlideSpeed",b)},33)};
_.f.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.f.endDrag_=function(){this.logClick();var a=void 0;this.draggingRight_?a=this.end-1:this.draggingLeft_&&(a=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,a);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))};
_.f.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.f.updateRulerSize_=function(){this.set("rulerWidth_",_.E(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.f.handleMouseDrag_=function(a){a.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(a):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(a):this.draggingWindow_&&this.handleWindowDrag_(a))};
_.f.handleRulerDrag_=function(a){a=this.pixelsToTime_(a.clientX-this.rulerDragMouseStart_);a=this.capRulerOffset_(this.rulerDragRulerStart_-a);this.set("rulerShift_",a);var b=this.rulerDragStartTime_-(this.rulerDragRulerStart_-a);_.go(this.hostElement,"set-fixed-length-range",{start:b,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-a)-b})};
_.f.handleWindowDrag_=function(a){var b=a.clientX-this.dragMouseLastX_;this.dragMouseLastX_=a.clientX;a=this.pixelsToTime_(b);_.go(this.hostElement,"set-fixed-length-range",{start:this.start+a,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.f.capRulerOffset_=function(a){var b=this.seekableStart-this.pixelsToTime_(16),c=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(b,a),c)};
_.f.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.f.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.f.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.f.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.f.handleWindowHandleDrag_=function(a){var b=a.clientX-this.dragMouseLastX_;this.dragMouseLastX_=a.clientX;a=this.pixelsToTime_(b);if(this.draggingLeft_){var c=this.start+a;var d=this.end}else this.draggingRight_&&(c=this.start,d=this.end+a);_.go(this.hostElement,"set-range",{start:c,end:d,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.f.onVideoProgress_=function(a){this.disabled||(a=this.timeToPixels_(a-this.rulerShift_,this.tickSpacing_),_.E(this.hostElement).querySelector("#playhead").style.transform="translateX("+a+")")};
_.f.onClipCreationDisable_=function(){this.endDrag_()};
_.f.timeToPixels_=function(a,b,c){a*=b;return c===void 0||c?a+"px":a};
_.f.pixelsToTime_=function(a){return a/this.tickSpacing_};
_.f.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.f.centerRuler_=function(a,b,c){this.set("rulerShift_",this.capRulerOffset_(a+(b-a)/2-c/2))};
_.f.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.f.updateLoopRange_=function(a,b,c,d,e,g,k){a&&(b&&d&&!c?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(a.pauseVideo(),a.seekTo(e,!1,void 0,void 0,50)):this.draggingRight_?(a.pauseVideo(),a.seekTo(g-.1,!1,void 0,void 0,50)):(k!==void 0?a.seekTo(k,!0,void 0,void 0,50):(b=a.getCurrentTime(),b<e||b>g?a.seekTo(e,!0,void 0,void 0,50):a.seekTo(b,!0,void 0,void 0,50)),a.playVideo()),a.setLoopRange({startTimeMs:e*1E3,endTimeMs:g*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(a.getCurrentTime())):
this.activeLoopRange_&&(a.setLoopRange(null),this.activeLoopRange_=!1))};
_.f.updateHandles_=function(){_.E(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.E(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.f.updateRuler_=function(){var a=this.end,b=this.start,c=this.draggableStartLimit_(),d=this.draggableEndLimit_();(b<c-.001||a>d+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.f.computeDurationLabel_=function(a,b){return a?a.replace("$clip_length",parseFloat(b).toFixed(1)):""};
_.f.computeDuration_=function(a,b){return this.isValidTime_(a)&&this.isValidTime_(b)&&a<b?b-a:0};
_.f.isValidTime_=function(a){return isNaN(parseFloat(a))||a<0?!1:this.player_?a>=this.seekableStart&&a<=this.seekableEnd:!0};
_.f.computeWindowSizeSec_=function(a,b,c){return Math.min((a||12E4)/1E3,c-b)};
_.f.computeTickSpacing_=function(a,b){return b?b/a:1};
_.f.onDragStateChanged_=function(){_.go(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.f.centerRangeOnTime_=function(a){var b=this.duration;a=ecd(a-b/2,b,this.seekableStart,this.seekableEnd);_.go(this.hostElement,"set-fixed-length-range",{start:a.start,duration:a.end-a.start})};
_.f.nearlyLessThan_=function(a,b,c){return a+(c===void 0?1E-6:c)<b};
_.f.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var a=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(a,this.start)||this.nearlyLessThan_(this.end,a))&&this.centerRangeOnTime_(a)}};
_.f.onStateChange_=function(a){this.visible&&!this.disabled&&a==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.f.computeDragState_=function(a,b,c,d){return a?"left":b?"right":c?"ruler":d?"window":"none"};
_.f.logClick=function(){var a=_.Fn(),b=_.En();a&&b&&this.scrubberVe_&&(_.x("combine_ve_grafts")?_.nF(_.ms(),this.scrubberVe_,b):_.Ro(a,b,this.scrubberVe_),_.Vo(a,this.scrubberVe_))};
var H9=Fgd;H9.prototype.onDragStateChanged_=H9.prototype.onDragStateChanged_;H9.prototype.updateRuler_=H9.prototype.updateRuler_;H9.prototype.updateHandles_=H9.prototype.updateHandles_;H9.prototype.onUpdateLoopRange=H9.prototype.onUpdateLoopRange;H9.prototype.onInitializedChanged_=H9.prototype.onInitializedChanged_;H9.prototype.onVisibleChanged_=H9.prototype.onVisibleChanged_;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],H9.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.H(_.YI.YtPlayerListenerBehavior),_.W("design:type",Object)],H9.prototype,"ytPlayerListenerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],H9.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],H9.prototype,"start",void 0);_.U([_.O(),_.W("design:type",Object)],H9.prototype,"end",void 0);_.U([_.O({computed:"computeDuration_(start, end)"}),_.W("design:type",Number)],H9.prototype,"duration",void 0);
_.U([_.O(),_.W("design:type",String)],H9.prototype,"lengthTemplate",void 0);_.U([_.O({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.W("design:type",String)],H9.prototype,"durationLabel",void 0);_.U([_.O(),_.W("design:type",Object)],H9.prototype,"visible",void 0);_.U([_.O(),_.W("design:type",Object)],H9.prototype,"player_",void 0);_.U([_.O(),_.W("design:type",Object)],H9.prototype,"draggingLeft_",void 0);_.U([_.O(),_.W("design:type",Object)],H9.prototype,"draggingRight_",void 0);
_.U([_.O(),_.W("design:type",Object)],H9.prototype,"draggingRuler_",void 0);_.U([_.O({value:!1}),_.W("design:type",Object)],H9.prototype,"draggingWindow_",void 0);_.U([_.O({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.W("design:type",Number)],H9.prototype,"tickSpacing_",void 0);_.U([_.O(),_.W("design:type",Object)],H9.prototype,"seekableStart",void 0);_.U([_.O(),_.W("design:type",Object)],H9.prototype,"seekableEnd",void 0);
_.U([_.O(),_.W("design:type",Number)],H9.prototype,"windowSizeMs",void 0);_.U([_.O({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.W("design:type",Number)],H9.prototype,"windowSizeSec_",void 0);_.U([_.O(),_.W("design:type",Object)],H9.prototype,"rulerWidth_",void 0);_.U([_.O(),_.W("design:type",Object)],H9.prototype,"rulerShift_",void 0);_.U([_.O(),_.W("design:type",Object)],H9.prototype,"windowSlideSpeed",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],H9.prototype,"disabled",void 0);_.U([_.O(),_.W("design:type",Object)],H9.prototype,"initialized",void 0);_.U([_.O(),_.W("design:type",Object)],H9.prototype,"durationAccessibilityLabel",void 0);_.U([_.O({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.W("design:type",String)],H9.prototype,"dragState",void 0);
_.U([_.N("visible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],H9.prototype,"onVisibleChanged_",null);_.U([_.N("initialized"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],H9.prototype,"onInitializedChanged_",null);_.U([_.N("player_","visible","disabled","initialized","start","end"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],H9.prototype,"onUpdateLoopRange",null);
_.U([_.N("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],H9.prototype,"updateHandles_",null);_.U([_.N("start","end"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],H9.prototype,"updateRuler_",null);
_.U([_.N("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],H9.prototype,"onDragStateChanged_",null);H9=_.U([_.ur({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],H9);
_.S(H9,"yt-clip-creation-scrubber-view",function(){if(Egd===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;Dgd===void 0&&(Dgd=document.createElement("template"));var d=Dgd;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Egd=a}a=Egd;return a},{mode:2});var Ggd=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};a.startHighlightTimeout=0;a.endHighlightTimeout=0;return a};
_.z(Ggd,_.P);_.f=Ggd.prototype;_.f.attached=function(){var a=this;this.startInput.addEventListener("input",function(b){return a.handleStartInput_(b)});
this.endInput.addEventListener("input",function(b){return a.handleEndInput_(b)});
this.startInput.addEventListener("focusout",function(b){return a.handleStartBlur_(b)});
this.endInput.addEventListener("focusout",function(b){return a.handleEndBlur_(b)})};
_.f.setPlayer=function(a){this.set("player_",a)};
_.f.onSetFixedLengthRange_=function(a){var b=a.detail;a=b.start;var c=b.duration,d=b.startLimit;b=b.endLimit;d||(d=this.seekableStart_);b||(b=this.seekableEnd_);a=ecd(a,c,d,b);this.start=a.start;this.end=a.end};
_.f.onSetRange_=function(a){var b=a.detail;a=b.start;var c=b.end,d=b.startLimit;b=b.endLimit;d||(d=this.seekableStart_);b||(b=this.seekableEnd_);if(a=fcd(a,c,d,b,this.minLengthSec,this.maxLengthSec))this.start=a.start,this.end=a.end};
_.f.updateInputs_=function(){var a=this.end,b=this.start;this.startInput.focused||(this.startInput.value=J8(b,!0));this.endInput.focused||(this.endInput.value=J8(a,!0))};
_.f.handleStartInput_=function(a){a=dcd(a.target.value);if(a===null)this.set("startValid",!1);else{var b=this.end,c=fcd(a,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);c?(this.set("endWillUpdate",c.end!==b),this.set("startValid",c.start===a)):this.set("startValid",!1)}};
_.f.handleEndInput_=function(a){a=dcd(a.target.value);if(a===null)this.set("endValid",!1);else{var b=this.start,c=gcd(this.start,a,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);c?(this.set("startWillUpdate",c.start!==b),this.set("endValid",c.end===a)):this.set("endValid",!1)}};
_.f.handleStartBlur_=function(a){a=dcd(a.target.value);a===null?this.startInput.value=J8(this.start,!0):this.forceUpdateInputs_(fcd(a,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.f.handleEndBlur_=function(a){a=dcd(a.target.value);a===null?this.endInput.value=J8(this.end,!0):this.forceUpdateInputs_(gcd(this.start,a,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.f.forceUpdateInputs_=function(a){a&&(this.start=a.start,this.end=a.end);this.startInput.value=J8(this.start,!0);this.endInput.value=J8(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.f.initializeClipRange_=function(){var a=this.seekableEnd_,b=this.seekableStart_,c=this.visible_,d=this.player_;if(!d||!c||b===null||!a)this.set("initialized",!1);else if(!this.initialized){var e=d.getCurrentTime(),g=this.getDefaultLengthSec_();c=d.getVideoData();var k=d.getPlayerState()==1,m=c.isLive;g=Math.min(g,a-b);e=Math.max(0,e);a=m?gcd(e-g,e,b,a,this.minLengthSec,this.maxLengthSec):k?ecd(e-g/2,g,b,a):ecd(e,g,b,a);this.start=a.start;this.end=a.end;this.set("initialized",!0);c.isLive&&d.seekTo(a.start);
this.startInput.value=J8(this.start,!0);this.endInput.value=J8(this.end,!0)}};
_.f.onStartChanged_=function(){var a=this;_.go(this.hostElement,"start-changed",{start:this.start});var b;isNaN((b=this.oldStart)!=null?b:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){a.set("highlightStart",!1);a.startHighlightTimeout=0;a.oldStart=a.start},3E3))};
_.f.onEndChanged_=function(){var a=this;_.go(this.hostElement,"end-changed",{end:this.end});var b;isNaN((b=this.oldEnd)!=null?b:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){a.set("highlightEnd",!1);a.endHighlightTimeout=0;a.oldEnd=a.end},3E3))};
_.f.onVisibilityChangedAction_=function(a){var b=this;this.set("visible_",a.visible);this.visible_&&!this.player_&&(a=_.bu())&&a.getPlayerPromise().then(function(c){b.setPlayer(c)})};
_.f.computeMinLengthSec_=function(a){return a/1E3||5};
_.f.computeMaxLengthSec_=function(a){return a/1E3||60};
_.f.computeDefaultLengthSec_=function(a){return a/1E3};
_.f.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.f.computeSeekableStart_=function(a,b){return a&&b?a.getProgressState(1).seekableStart:0};
_.f.computeSeekableEnd_=function(a,b){return a&&b?a.getProgressState(1).seekableEnd:0};
_.f.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.f.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.f.onDragState_=function(a){this.set("highlightStart",a.detail.startChanging);this.set("highlightEnd",a.detail.endChanging)};
var I9=Ggd;I9.prototype.onDragState_=I9.prototype.onDragState_;I9.prototype.onEndChanged_=I9.prototype.onEndChanged_;I9.prototype.onStartChanged_=I9.prototype.onStartChanged_;I9.prototype.initializeClipRange_=I9.prototype.initializeClipRange_;I9.prototype.updateInputs_=I9.prototype.updateInputs_;I9.prototype.onSetRange_=I9.prototype.onSetRange_;I9.prototype.onSetFixedLengthRange_=I9.prototype.onSetFixedLengthRange_;
_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],I9.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],I9.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],I9.prototype,"data",void 0);_.U([_.O({value:0}),_.W("design:type",Number)],I9.prototype,"start",void 0);_.U([_.O({value:!0}),_.W("design:type",Boolean)],I9.prototype,"startValid",void 0);
_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],I9.prototype,"startWillUpdate",void 0);_.U([_.O({value:30}),_.W("design:type",Number)],I9.prototype,"end",void 0);_.U([_.O({value:!0}),_.W("design:type",Boolean)],I9.prototype,"endValid",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],I9.prototype,"endWillUpdate",void 0);_.U([_.O({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.W("design:type",Number)],I9.prototype,"minLengthSec",void 0);
_.U([_.O({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.W("design:type",Number)],I9.prototype,"maxLengthSec",void 0);_.U([_.O({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.W("design:type",Number)],I9.prototype,"defaultLengthSec",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],I9.prototype,"visible_",void 0);_.U([_.O(),_.W("design:type",Object)],I9.prototype,"player_",void 0);
_.U([_.O({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.W("design:type",Number)],I9.prototype,"seekableStart_",void 0);_.U([_.O({computed:"computeSeekableEnd_(player_, visible_)"}),_.W("design:type",Number)],I9.prototype,"seekableEnd_",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],I9.prototype,"initialized",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],I9.prototype,"disabled",void 0);
_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],I9.prototype,"highlightStart",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],I9.prototype,"highlightEnd",void 0);_.U([_.gr("#start"),_.W("design:type",HTMLInputElement)],I9.prototype,"startInput",void 0);_.U([_.gr("#end"),_.W("design:type",HTMLInputElement)],I9.prototype,"endInput",void 0);
_.U([_.M("set-fixed-length-range"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],I9.prototype,"onSetFixedLengthRange_",null);_.U([_.M("set-range"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],I9.prototype,"onSetRange_",null);_.U([_.N("start","end"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],I9.prototype,"updateInputs_",null);
_.U([_.N("player_","visible_","seekableStart_","seekableEnd_"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],I9.prototype,"initializeClipRange_",null);_.U([_.N("start"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],I9.prototype,"onStartChanged_",null);_.U([_.N("end"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],I9.prototype,"onEndChanged_",null);
_.U([_.M("clips-drag-state"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],I9.prototype,"onDragState_",null);I9=_.U([_.ur({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],I9);
_.S(I9,"yt-clip-creation-scrubber-renderer",function(){if(Agd===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;zgd===void 0&&(zgd=document.createElement("template"));var d=zgd;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Agd=a}a=Agd;return a},{mode:2});var Hgd=function(){var a=_.P.apply(this,arguments)||this;a.player_=null;a.JSC$19739_playerEvents=new Map;a.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return a};
_.z(Hgd,_.P);_.f=Hgd.prototype;_.f.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"}}}};
_.f.created=function(){this.JSC$19739_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$19739_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$19739_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$19739_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.f.detached=function(){this.setPlayer(null)};
_.f.onVisibilityChangedAction_=function(a){var b=this,c;if((c=this.data)==null?0:c.externalVideoId){var d;this.videoId=(d=this.data)==null?void 0:d.externalVideoId}this.getPlayer().then(function(e){if(a.visible)b.returnTime=e.getCurrentTime(),b.isAtLiveHead=e.getProgressState().isAtLiveHead;else{var g=b.returnTime;b.isAtLiveHead&&(g=Number.POSITIVE_INFINITY);e.seekTo(g,void 0,void 0,void 0,51)}})};
_.f.getPlayer=function(){var a=this;if(!this.player_){var b=_.bu();if(b)return b.getPlayerPromise().then(function(c){a.setPlayer(c);return c})}return Promise.resolve(this.player_)};
_.f.setPlayer=function(a){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$19739_playerEvents);if(a){this.player_=a;var b;((b=this.data)==null?0:b.externalVideoId)||this.set("videoId",a.getVideoData().video_id||"");var c;(a==null?void 0:(c=a.getPresentingPlayerType)==null?void 0:c.call(a))===2&&(this.set("isAdPlaying",!0),_.ho(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(a,this.JSC$19739_playerEvents)}};
_.f.ready=function(){_.E(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.f.onTitleChanged_=function(a){this.set("titleValue",a.detail.title)};
_.f.onStartChanged_=function(a){this.set("start",a.detail.start)};
_.f.onEndChanged_=function(a){this.set("end",a.detail.end)};
_.f.onTitleValidChanged_=function(a){this.set("titleValid",a.detail.valid)};
_.f.onStartValidChanged_=function(a){this.set("startValid",a.detail.valid)};
_.f.onEndValidChanged_=function(a){this.set("endValid",a.detail.valid)};
_.f.onVideoDataChange_=function(){var a;if((a=this.data)==null||!a.externalVideoId){var b;this.set("videoId",((b=this.player_)==null?void 0:b.getVideoData().video_id)||"")}};
_.f.computeFormValid_=function(a,b,c,d){return!!(a&&b&&c&&d)};
_.f.computeCancelButton_=function(a,b,c){return a&&_.y(a,_.OE)?{buttonRenderer:Object.assign({},_.y(a,_.OE),{isDisabled:b||c})}:null};
_.f.computeSubmitButton_=function(a,b,c){return a&&_.y(a,_.OE)?{buttonRenderer:Object.assign({},_.y(a,_.OE),{command:void 0,isDisabled:!this.formValid||b||c})}:null};
_.f.computeSubmitCommand_=function(a){return a||null};
_.f.onSubmit_=function(a){var b=this;a.stopPropagation();a.preventDefault();this.submitCommand_&&(a={},a.comment_text=this.titleValue,a.clip_external_video_id=this.videoId,a.clip_offset_ms=parseInt(this.start*1E3,10),a.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.mo(this.hostElement,[this.submitCommand_,a]).then(function(){b.set("isLoading_",!1)},function(){b.set("isLoading_",!1)}))};
_.f.playerAdStartHandler_=function(){_.ho(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.f.playerAdEndHandler_=function(){_.ho(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.f.onVideoProgress_=function(){var a=this;this.getPlayer().then(function(b){var c,d=(b==null?void 0:(c=b.getPresentingPlayerType)==null?void 0:c.call(b))===2;a.isAdPlaying!==d&&(d?a.playerAdStartHandler_():a.playerAdEndHandler_())})};
var J9=Hgd;J9.prototype.onEndValidChanged_=J9.prototype.onEndValidChanged_;J9.prototype.onStartValidChanged_=J9.prototype.onStartValidChanged_;J9.prototype.onTitleValidChanged_=J9.prototype.onTitleValidChanged_;J9.prototype.onEndChanged_=J9.prototype.onEndChanged_;J9.prototype.onStartChanged_=J9.prototype.onStartChanged_;J9.prototype.onTitleChanged_=J9.prototype.onTitleChanged_;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],J9.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.H(_.YI.YtPlayerListenerBehavior),_.W("design:type",Object)],J9.prototype,"ytPlayerListenerBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],J9.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],J9.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],J9.prototype,"data",void 0);_.U([_.O({value:""}),_.W("design:type",String)],J9.prototype,"titleValue",void 0);
_.U([_.O({value:!1}),_.W("design:type",Boolean)],J9.prototype,"titleValid",void 0);_.U([_.O({value:0}),_.W("design:type",Number)],J9.prototype,"start",void 0);_.U([_.O({value:!0}),_.W("design:type",Boolean)],J9.prototype,"startValid",void 0);_.U([_.O({value:0}),_.W("design:type",Number)],J9.prototype,"end",void 0);_.U([_.O({value:!0}),_.W("design:type",Boolean)],J9.prototype,"endValid",void 0);_.U([_.O({value:""}),_.W("design:type",String)],J9.prototype,"videoId",void 0);
_.U([_.O({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.W("design:type",Boolean)],J9.prototype,"formValid",void 0);_.U([_.O({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.W("design:type",Object)],J9.prototype,"submitButton_",void 0);_.U([_.O({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.W("design:type",Object)],J9.prototype,"submitCommand_",void 0);
_.U([_.O({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.W("design:type",Object)],J9.prototype,"cancelButton_",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],J9.prototype,"isLoading_",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],J9.prototype,"isAdPlaying",void 0);_.U([_.O({value:0}),_.W("design:type",Number)],J9.prototype,"returnTime",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],J9.prototype,"isAtLiveHead",void 0);
_.U([_.M("title-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],J9.prototype,"onTitleChanged_",null);_.U([_.M("start-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],J9.prototype,"onStartChanged_",null);_.U([_.M("end-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],J9.prototype,"onEndChanged_",null);
_.U([_.M("title-valid-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],J9.prototype,"onTitleValidChanged_",null);_.U([_.M("start-valid-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],J9.prototype,"onStartValidChanged_",null);_.U([_.M("end-valid-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],J9.prototype,"onEndValidChanged_",null);
J9=_.U([_.ur({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],J9);
_.S(J9,"yt-clip-creation-renderer",function(){if(ygd===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;xgd===void 0&&(xgd=document.createElement("template"));var d=xgd;c.call(b,d.content.cloneNode(!0),a.content.firstChild);ygd=a}a=ygd;return a},{mode:2});var Igd=function(){return _.P.apply(this,arguments)||this};
_.z(Igd,_.P);Igd.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"}}}};
Igd.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(a){return a.hasOwnProperty("clipCreationRenderer")})&&_.ho(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
var K9=Igd;K9.prototype.onPanelContentVisibleChanged=K9.prototype.onPanelContentVisibleChanged;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],K9.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],K9.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.OG.YtVisibilityBehavior),_.W("design:type",Object)],K9.prototype,"ytVisibilityBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],K9.prototype,"ytdReduxBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],K9.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],K9.prototype,"panelContentVisible",void 0);_.U([_.N("panelContentVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],K9.prototype,"onPanelContentVisibleChanged",null);K9=_.U([_.Q({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],K9);
_.S(K9,"ytd-clip-section-renderer",function(){if(rgd!==void 0)return rgd;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return rgd=a},{mode:1});var Jgd;var Kgd=function(){return _.P.apply(this,arguments)||this};
_.z(Kgd,_.P);_.f=Kgd.prototype;
_.f.onKeyDown=function(a){if(this.snippetElements.length!==0&&(a=a.keyCode,a===38||a===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);a===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.Qw(this.highlightedIndex,-1,this.snippetElements.length);a=this.snippetElements.length;var b=this.highlightedIndex%a;this.highlightedIndex=b*a<0?b+a:b;a=this.snippetElements[this.highlightedIndex];this.highlightSnippet(a);this.ensureVisible(a)}};
_.f.onKeyUp=function(a){var b=this;Scd(a)&&(a.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.zk.cancelJob(this.inputTimerId),this.inputTimerId=_.zk.addLowPriorityJob(function(){b.typedValue&&(b.fetchSnippets(b.typedValue),b.logInputGesture(b.data))},1E3))};
_.f.onClick=function(a){(a=_.Zcb(a.target,null,"snippet-item"))&&this.selectSnippet(a)};
_.f.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.f.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.f.ready=function(){var a=this;this.inputElement.addEventListener("focus",function(){a.snippetsWrapper.style.removeProperty("display")})};
_.f.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.f.getSourceTimelines=function(){if(!this.data)return[];var a=[];if(this.data.searchInVideoSources)for(var b=_.h(this.data.searchInVideoSources),c=b.next();!c.done;c=b.next())c=c.value,c==="SEARCH_IN_VIDEO_SOURCE_ASR"?a.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):c==="SEARCH_IN_VIDEO_SOURCE_OCR"&&a.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return a};
_.f.fetchSnippets=function(a){var b=_.ho(this.hostElement,"yt-get-current-video-id-action")[0],c=this.getSourceTimelines();a={getSearchInVideoCommand:{externalVideoId:b,query:a!=null?a:"",sourceTimelines:c},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.v().resolve(_.Xi).resolveCommand(a,{form:{element:this.hostElement}})};
_.f.filterSnippets=function(a,b){var c=this;if(b){this.filteredSnippets=(0,_.yf.unsafeClone)(a);var d=RegExp(_.oza(b),"i");this.filteredSnippets=this.filteredSnippets.filter(function(k){return d.test(c.ytRendererBehavior.getSimpleString(k.snippet))});
a=_.h(this.filteredSnippets);for(var e=a.next();!e.done;e=a.next()){e=e.value;var g=this.ytRendererBehavior.getSimpleString(e.snippet);e.snippet={runs:[{text:g.substring(0,g.toLowerCase().indexOf(b))},{text:g.substring(g.toLowerCase().indexOf(b),g.toLowerCase().indexOf(b)+b.length),bold:!0},{text:g.substring(g.toLowerCase().indexOf(b)+b.length,g.length)}]}}}else this.filteredSnippets=a};
_.f.onUpdateSearchInVideoResults=function(a){if(!(this.snippets.length>0)){var b,c,d;if((d=(b=_.y(a,edd))==null?void 0:(c=b.results)==null?void 0:c.length)!=null&&d){var e;this.filteredSnippets=this.snippets=((e=_.y(a,edd))==null?void 0:e.results).map(function(g){var k,m,n;return{startMs:g==null?void 0:(k=g.searchInVideoResultRenderer)==null?void 0:k.startMs,startTimeText:g==null?void 0:(m=g.searchInVideoResultRenderer)==null?void 0:m.startTimeText,snippet:g==null?void 0:(n=g.searchInVideoResultRenderer)==
null?void 0:n.snippet}})}}};
_.f.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};
_.f.highlightSnippet=function(a){a.classList.add("highlighted")};
_.f.removeSnippetHighlight=function(a){a.classList.remove("highlighted")};
_.f.selectSnippet=function(a){this.typedValue=String(a.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(a);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.f.ensureVisible=function(a){var b=this.snippetsWrapper.scrollTop,c=b+this.snippetsWrapper.clientHeight,d=a.offsetTop-this.snippetsWrapper.offsetTop;a=d+a.clientHeight;d<b?this.snippetsWrapper.scrollTop-=b-d:a>c&&(this.snippetsWrapper.scrollTop+=a-c)};
_.f.seekPlayer=function(a){var b,c;return _.l(function(d){if(d.nextAddress==1){if(!a)return d.jumpTo(0);b=Number(a.dataset.startOffset);return _.p(d,_.cu().getPlayerPromise(),3)}c=d.yieldResult;c.seekTo(b/1E3,!0);c.wakeUpControls();_.se(d)})};
_.f.logInputGesture=function(a){var b=_.Fn();b&&(a==null?0:a.trackingParams)&&_.Wo(b,_.qs(a.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.f.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.TH("typed-value-changed",this.typedValue))};
_.f.updateTypedValueFromBinding=function(a){this.typedValue=a.currentTarget.value};
var L9=Kgd;L9.prototype.typedValueChangedForBinding=L9.prototype.typedValueChangedForBinding;L9.prototype.dataChanged=L9.prototype.dataChanged;L9.prototype.panelContentVisibleChanged=L9.prototype.panelContentVisibleChanged;L9.prototype.onClick=L9.prototype.onClick;L9.prototype.onKeyUp=L9.prototype.onKeyUp;L9.prototype.onKeyDown=L9.prototype.onKeyDown;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],L9.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],L9.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],L9.prototype,"data",void 0);_.U([_.O({value:[]}),_.W("design:type",Array)],L9.prototype,"snippets",void 0);_.U([_.O({value:[]}),_.W("design:type",Array)],L9.prototype,"filteredSnippets",void 0);_.U([_.O({value:[]}),_.W("design:type",Array)],L9.prototype,"snippetElements",void 0);
_.U([_.gr("#siv-input"),_.W("design:type",HTMLElement)],L9.prototype,"inputElement",void 0);_.U([_.gr("#siv-snippets-wrapper"),_.W("design:type",HTMLElement)],L9.prototype,"snippetsWrapper",void 0);_.U([_.O(),_.W("design:type",String)],L9.prototype,"typedValue",void 0);_.U([_.O({value:-1}),_.W("design:type",Number)],L9.prototype,"highlightedIndex",void 0);_.U([_.M("keydown"),_.W("design:type",Function),_.W("design:paramtypes",[_.zz]),_.W("design:returntype")],L9.prototype,"onKeyDown",null);
_.U([_.M("keyup"),_.W("design:type",Function),_.W("design:paramtypes",[_.zz]),_.W("design:returntype")],L9.prototype,"onKeyUp",null);_.U([_.M("click"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],L9.prototype,"onClick",null);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],L9.prototype,"panelContentVisible",void 0);
_.U([_.N("panelContentVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],L9.prototype,"panelContentVisibleChanged",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],L9.prototype,"dataChanged",null);_.U([_.N("typedValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],L9.prototype,"typedValueChangedForBinding",null);
L9=_.U([_.Q({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],L9);
_.S(L9,"ytd-search-in-video-renderer",function(){if(Jgd!==void 0)return Jgd;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Jgd=a},{mode:1});var Lgd;var M9=function(){return _.P.apply(this,arguments)||this};
_.z(M9,_.P);M9.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
M9.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]]"}}}}}};
M9.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var a,b,c,d,e=(b=_.y((a=this.data)==null?void 0:a.onClickCommand,_.Eyb))==null?void 0:(c=b.item)==null?void 0:(d=c.notificationTextRenderer)==null?void 0:d.successResponseText;e&&_.D_a(this.hostElement,e)}};
_.Vm.Object.defineProperties(M9.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d;return this.isProductPlaceholder&&((a=this.data)==null?void 0:(b=a.hiddenProductOptions)==null?void 0:b.showDropCountdown)&&!!((c=this.data)==null?0:(d=c.hiddenProductOptions)==null?0:d.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var a;return!this.isProductPlaceholder&&!((a=this.data)==null?0:a.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var a,b;return!((a=this.data)==null?0:a.priceReplacementText)&&!((b=this.data)==null||!b.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
var N9=M9;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],N9.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],N9.prototype,"componentBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],N9.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],N9.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.K("isProductPlaceholder"),_.W("design:type",Object),_.W("design:paramtypes",[])],N9.prototype,"useCenterLayoutContainer",null);_.U([_.O({computed:"computeButtonOverride(data)"}),_.W("design:type",Object)],N9.prototype,"buttonOverride",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],N9.prototype,"isProductPlaceholder",null);
_.U([_.K("isProductPlaceholder"),_.W("design:type",Object),_.W("design:paramtypes",[])],N9.prototype,"showDropCountdown",null);_.U([_.K("isProductPlaceholder","data"),_.W("design:type",Object),_.W("design:paramtypes",[])],N9.prototype,"showBrandName",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],N9.prototype,"showPriceReplacementText",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],N9.prototype,"showPrice",null);
_.U([_.K("isProductPlaceholder"),_.W("design:type",Object),_.W("design:paramtypes",[])],N9.prototype,"showMetadata",null);N9=_.U([_.Q({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],N9);
_.S(N9,"ytd-product-list-item-renderer",function(){if(Lgd!==void 0)return Lgd;var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Lgd=a},{mode:1});var Mgd;var Ngd=function(){return _.P.apply(this,arguments)||this};
_.z(Ngd,_.P);Ngd.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
Ngd.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
Ngd.prototype.panelContentVisibleChanged=function(){var a=this,b;return _.l(function(c){if(c.nextAddress==1)return a.playerApi?c.jumpTo(2):_.p(c,_.cu().getPlayerPromise(),3);c.nextAddress!=2&&(a.playerApi=c.yieldResult);(b=a.playerApi)==null||b.productsInVideoVisibilityUpdated(!!a.panelContentVisible);_.se(c)})};
var O9=Ngd;O9.prototype.panelContentVisibleChanged=O9.prototype.panelContentVisibleChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],O9.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],O9.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],O9.prototype,"panelContentVisible",void 0);_.U([_.O(),_.W("design:type",Object)],O9.prototype,"data",void 0);
_.U([_.N("panelContentVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype",Promise)],O9.prototype,"panelContentVisibleChanged",null);O9=_.U([_.Q({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],O9);
_.S(O9,"ytd-product-list-renderer",function(){if(Mgd!==void 0)return Mgd;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Mgd=a},{mode:1});var Ogd;var Pgd=function(){var a=_.P.apply(this,arguments)||this;a.hideTimestamps=!!_.sG("hide-transcript-timestamps");a.currentCueIndex=-1;a.flatCues=[];a.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};a.TEST_ONLY={getFlatCues:function(){return a.flatCues}};
return a};
_.z(Pgd,_.P);_.f=Pgd.prototype;_.f.hideTimestampsChanged=function(){_.rG("hide-transcript-timestamps",this.hideTimestamps)};
_.f.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.f.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.f.dataChanged=function(){var a;if((a=this.data)!=null&&a.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;a=_.h(this.data.cueGroups);for(var b=a.next();!b.done;b=a.next()){b=_.h(_.y(b.value,fdd).cues);for(var c=b.next();!c.done;c=b.next())this.flatCues.push(Number(_.y(c.value,gdd).startOffsetMs))}}};
_.f.onYtPlayerTimeChanged=function(a){if(!(a<0)){for(var b=this.currentCueIndex,c=b;;){var d=c>=0?this.flatCues[c]/1E3:-1;if(a+.5<d)--c;else if(d=c+1<this.flatCues.length?this.flatCues[c+1]/1E3:Infinity,a+.5>d)c+=1;else break}c!==b&&(b>=0&&((a=this.getCueElement(b))&&a.classList.remove("active"),(b=this.getCueGroupElement(b))&&b.classList.remove("active")),(b=this.getCueElement(c))&&b.classList.add("active"),(b=this.getCueGroupElement(c))&&b.classList.add("active"),this.currentCueIndex=c,this.isHovered||
this.scrollElementToTop(c))}};
_.f.scrollElementToTop=function(a){a=this.getCueElement(a>=3?a-3:0);this.hostElement.scrollTop=Math.min(a.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.f.getCueElement=function(a){return _.E(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[a]+'"]')};
_.f.getCueGroupElement=function(a){return(a=this.getCueElement(a))&&a.parentElement?a.parentElement.parentElement:null};
_.f.onTap=function(a){var b=_.Qq(a);a.target.classList.contains("cue")&&this.seekCueElement(b)};
_.f.onKeyPress=function(a){a.keyCode==13&&(a=_.Zcb(a.target,null,"cue"))&&this.seekCueElement(a)};
_.f.seekCueElement=function(a){a=Number(a.getAttribute("start-offset"));_.ho(this.hostElement,"yt-transcript-player-seek",[a/1E3])};
_.f.onMouseEnter=function(){this.isHovered=!0};
_.f.onMouseLeave=function(){this.isHovered=!1};
var P9=Pgd;P9.prototype.onMouseLeave=P9.prototype.onMouseLeave;P9.prototype.onMouseEnter=P9.prototype.onMouseEnter;P9.prototype.onKeyPress=P9.prototype.onKeyPress;P9.prototype.onTap=P9.prototype.onTap;P9.prototype.dataChanged=P9.prototype.dataChanged;P9.prototype.hideTimestampsChanged=P9.prototype.hideTimestampsChanged;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],P9.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],P9.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],P9.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],P9.prototype,"hideTimestamps",void 0);_.U([_.O(),_.W("design:type",Boolean)],P9.prototype,"isHovered",void 0);_.U([_.N("hideTimestamps"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],P9.prototype,"hideTimestampsChanged",null);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],P9.prototype,"dataChanged",null);_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],P9.prototype,"onTap",null);_.U([_.M("keypress"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],P9.prototype,"onKeyPress",null);
_.U([_.M("mouseenter"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],P9.prototype,"onMouseEnter",null);_.U([_.M("mouseleave"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],P9.prototype,"onMouseLeave",null);P9=_.U([_.Q({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],P9);
_.S(P9,"ytd-transcript-body-renderer",function(){if(Ogd!==void 0)return Ogd;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Ogd=a},{mode:1});var Qgd;var Rgd=function(){var a=_.P.apply(this,arguments)||this;a.darkerPanels=_.x("web_watch_darker_panels");return a};
_.z(Rgd,_.P);Rgd.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
var Q9=Rgd;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],Q9.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],Q9.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],Q9.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],Q9.prototype,"darkerPanels",void 0);Q9=_.U([_.Q({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],Q9);
_.S(Q9,"ytd-transcript-footer-renderer",function(){if(Qgd!==void 0)return Qgd;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Qgd=a},{mode:1});var Sgd;var Tgd;var Ugd=function(){var a=_.P.apply(this,arguments)||this;a.systemIcons=_.x("kevlar_system_icons");a.showClearButton=!1;return a};
_.z(Ugd,_.P);_.f=Ugd.prototype;_.f.handleInput=function(a){var b=this;a.target.value.length?_.Dr(this,"ytdTranscriptSearchBoxSearch",function(){b.emitSearchEvent(a)},500):(_.$Ma(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=a.target.value.length>0};
_.f.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.f.handleClick=function(){var a,b=(a=this.data)==null?void 0:a.trackingParams;b&&_.qF(_.ms(),b)};
_.f.handleClear=function(){_.$Ma(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var a,b,c=(b=_.y((a=this.data)==null?void 0:a.clearButton,_.OE))==null?void 0:b.trackingParams;c&&_.qF(_.ms(),c);this.clear()};
_.f.emitSearchEvent=function(a){_.go(this.hostElement,"yt-transcript-search-box-search",{query:a.target.value});var b,c;(a=(c=_.y((b=this.data)==null?void 0:b.searchButton,_.OE))==null?void 0:c.trackingParams)&&_.qF(_.ms(),a)};
_.f.emitClearEvent=function(){_.go(this.hostElement,"yt-transcript-search-box-clear")};
_.Vm.Object.defineProperties(Ugd.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.E(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
var R9=Ugd;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],R9.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],R9.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],R9.prototype,"systemIcons",void 0);R9=_.U([_.Q({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],R9);
_.S(R9,"ytd-transcript-search-box-renderer",function(){if(Tgd!==void 0)return Tgd;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Tgd=a},{mode:1});var Vgd;var Wgd;var S9=function(){return _.P.apply(this,arguments)||this};
_.z(S9,_.P);S9.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var a,b;this.sectionHeaderAriaLabel=(a=this.data)==null?void 0:(b=a.accessibility)==null?void 0:b.accessibilityData.label}};
S9.prototype.fireSelectedEvent=function(a){_.go(this.hostElement,"ytd-transcript-section-header",{startMs:a})};
S9.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
S9.prototype.handleKeyPress=function(a){this.data&&a.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.Vm.Object.defineProperties(S9.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var a,b;return(b=(a=this.data)==null?void 0:a.enableTappableTranscriptHeader)!=null?b:!1}}});
var T9=S9;T9.prototype.dataChanged=T9.prototype.dataChanged;_.U([_.O(),_.W("design:type",Object)],T9.prototype,"data",void 0);_.U([_.O(),_.W("design:type",String)],T9.prototype,"sectionHeaderAriaLabel",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],T9.prototype,"enableTappableTranscriptHeader",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],T9.prototype,"dataChanged",null);
T9=_.U([_.Q({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],T9);
_.S(T9,"ytd-transcript-section-header-renderer",function(){if(Wgd!==void 0)return Wgd;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Wgd=a},{mode:1});var Xgd;var Ygd;var Zgd=function(){var a=_.P.apply(this,arguments)||this;a.isEditMode=!1;a.touchCaptionsEnabled=!1;a.deleteCaptionCorrectionPopupCommand=null;a.voteCaptionCorrectionPopupCommand=null;a.roundedContainer=!0;a.mouseOver=!1;a.textChanged=!1;a.messages={suggest_correction:_.to("suggest_correction",void 0,"Edit caption"),suggested_caption:_.to("suggested_caption",void 0,"Suggested caption"),submit_correction:_.to("submit_correction",void 0,"Submit for review"),cancel_correction:_.to("cancel_correction",
void 0,"Cancel"),replay_segment:_.to("replay_segment",void 0,"Re-play segment"),delete_correction:_.to("delete_correction",void 0,"Delete correction")};a.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return a};
_.z(Zgd,_.P);_.f=Zgd.prototype;_.f.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)};
_.f.handleDelete=function(a){if(this.deleteCaptionCorrectionPopupCommand){var b=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);b&&this.ytdOpenPopupBehavior.openPopup(b);a.stopPropagation()}};
_.f.handleSubmit=function(a){if(this.data&&this.data.submitCaptionCorrectionCommand&&(a.stopPropagation(),this.textChanged)){var b;a=(b=_.y(this.data.submitCaptionCorrectionCommand,_.qFb))==null?void 0:b.params;b=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:a,correctionText:String(this.ironTextAreaElement.value),originalText:_.Vp(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(b);this.isEditMode=!1}};
_.f.handleUpdateSegmentText=function(a){(a=_.y(a,ydd))&&a.targetId&&this.data&&a.targetId===this.data.targetId&&(a.userCorrection&&(this.editedText=a.userCorrection),a.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.Vp(this.data.snippet)),a.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=a.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=a.voteCaptionCorrectionPopupCommand?
a.voteCaptionCorrectionPopupCommand:null,a.accessibility&&(this.segmentAriaLabel=a.accessibility.accessibilityData.label))};
_.f.handleCancel=function(a){this.isEditMode=!1;a.stopPropagation();this.logClientVe(159409)};
_.f.handleEditSegmentCommand=function(a){(a=_.y(a,xdd))&&a.targetId&&this.data&&a.targetId===this.data.targetId&&this.handleEdit()};
_.f.handleEditButtonClick=function(a){this.data&&(this.handleEdit(),a.stopPropagation())};
_.f.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var a;(a=this.ironTextAreaElement.textarea)==null||a.focus();this.logClientVe(159407)}};
_.f.handleMouseEnter=function(){this.mouseOver=!0};
_.f.handleMouseLeave=function(){this.mouseOver=!1};
_.f.handleReplay=function(a){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),a.stopPropagation(),this.logClientVe(159408))};
_.f.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()))};
_.f.handleKeypress=function(a){this.data&&(this.isEditMode?a.stopPropagation():this.isEnterPress(a)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(a)&&this.logClientVe(138758))};
_.f.handleTextboxClick=function(a){a.stopPropagation()};
_.f.handleTextboxKeydown=function(a){this.isControlEnterPress(a)?this.handleSubmit(a):a.key==="Escape"&&this.handleCancel(a)};
_.f.handleTextboxKeyup=function(){this.textChanged=_.Vp(this.latestText)!==String(this.ironTextAreaElement.value)};
_.f.fireSelectedEvent=function(a){_.go(this.hostElement,"yt-transcript-segment-selected",{startMs:a})};
_.f.fireReplayEvent=function(a,b){_.go(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(a-100,0),endMs:b})};
_.f.fireEditEvent=function(a,b){_.go(this.hostElement,"yt-transcript-segment-edit",{startMs:a,endMs:b})};
_.f.isEnterPress=function(a){return a.key==="Enter"||a.code==="Enter"||a.code==="NumpadEnter"||a.keyCode===13?!0:!1};
_.f.isControlEnterPress=function(a){var b=a.key==="Enter"||a.code==="Enter"||a.code==="NumpadEnter"||a.keyCode===13;return(a.ctrlKey||a.metaKey)&&b};
_.f.isCopyPress=function(a){var b=a.ctrlKey;return a.key==="c"&&b};
_.f.logClick=function(){var a,b=(a=this.data)==null?void 0:a.trackingParams;b&&_.qF(_.ms(),b)};
_.f.logClientVe=function(a){_.pF(_.ms(),_.lu(a))};
_.Vm.Object.defineProperties(Zgd.prototype,{latestText:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.snippet?this.editedText&&this.touchCaptionsEnabled?this.editedText:this.data.snippet:{}}},
enableEditButton:{configurable:!0,enumerable:!0,get:function(){return this.touchCaptionsEnabled&&!this.isEditMode}},
enableUndoButton:{configurable:!0,enumerable:!0,get:function(){return this.enableEditButton&&this.deleteCaptionCorrectionPopupCommand!=null}}});
var U9=Zgd;U9.prototype.handleMouseLeave=U9.prototype.handleMouseLeave;U9.prototype.handleMouseEnter=U9.prototype.handleMouseEnter;U9.prototype.dataChanged=U9.prototype.dataChanged;_.U([_.H(_.bH.YtActionHandlerBehavior),_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],U9.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.YH),_.W("design:type",Object)],U9.prototype,"ytdOpenPopupBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],U9.prototype,"ytRendererBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],U9.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],U9.prototype,"isEditMode",void 0);_.U([_.O(),_.W("design:type",Object)],U9.prototype,"touchCaptionsEnabled",void 0);_.U([_.O(),_.W("design:type",Object)],U9.prototype,"editedText",void 0);_.U([_.O(),_.W("design:type",Object)],U9.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.U([_.O(),_.W("design:type",Object)],U9.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.U([_.O(),_.W("design:type",String)],U9.prototype,"segmentAriaLabel",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],U9.prototype,"roundedContainer",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],U9.prototype,"mouseOver",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],U9.prototype,"textChanged",void 0);_.U([_.O(),_.W("design:type",Object)],U9.prototype,"messages",void 0);
_.U([_.gr("#suggestion"),_.W("design:type",Object)],U9.prototype,"ironTextAreaElement",void 0);_.U([_.K("data","editedText"),_.W("design:type",Object),_.W("design:paramtypes",[])],U9.prototype,"latestText",null);_.U([_.K("touchCaptionsEnabled","isEditMode"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],U9.prototype,"enableEditButton",null);
_.U([_.K("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],U9.prototype,"enableUndoButton",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],U9.prototype,"dataChanged",null);_.U([_.M("mouseenter"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],U9.prototype,"handleMouseEnter",null);
_.U([_.M("mouseleave"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],U9.prototype,"handleMouseLeave",null);U9=_.U([_.Q({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],U9);
_.S(U9,"ytd-transcript-segment-renderer",function(){if(Ygd!==void 0)return Ygd;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Ygd=a},{mode:1});var $gd=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};a.isError=!1;a.darkerPanels=_.x("web_watch_darker_panels");a.segmentOffsets=[];a.segmentIndex=-1;return a};
_.z($gd,_.P);_.f=$gd.prototype;_.f.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"}}}}};
_.f.segmentsChanged=function(){this.updateOffsets()};
_.f.onYtPlayerTimeChanged=function(a){for(var b=this.segmentIndex,c=b;;){if(c>=0){var d=this.segmentOffsets[c].start;var e=this.segmentOffsets[c].isAutoScrollable}else d=-1,e=!0;var g=a+.5;if(!e){d=c+1<this.segmentOffsets.length?this.segmentOffsets[c+1].start:Infinity;if(g>=d){c+=1;continue}c=-1;break}if(g<d)d=c-1>=0&&this.segmentOffsets[c-1].isAutoScrollable,e=c===0||d?1:2,c-=e;else if(e=c+1<this.segmentOffsets.length&&this.segmentOffsets[c+1].isAutoScrollable?1:2,d=c+e<this.segmentOffsets.length?
this.segmentOffsets[c+e].start:Infinity,g>d)c+=e;else{if(c<0)break;c<this.segmentOffsets.length&&g>this.segmentOffsets[c].end&&(c=-1);break}}if(b!==c){if(b>=0){var k;(k=this.getSegmentElement(b))==null||k.classList.remove("active")}this.segmentIndex=c;if(!(c<0)){var m;(m=this.getSegmentElement(c))==null||m.classList.add("active");this.isHovered||this.scrollElementToTop(c)}}};
_.f.handleSegmentEdit=function(a){a.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=a.target,_.ho(this.hostElement,"yt-transcript-player-edit",[a.detail.startMs/1E3,a.detail.endMs/1E3]))};
_.f.handleSegmentSelected=function(a){_.ho(this.hostElement,"yt-transcript-player-seek",[a.detail.startMs/1E3])};
_.f.handleSegmentReplay=function(a){_.ho(this.hostElement,"yt-transcript-player-replay",[a.detail.startMs/1E3,a.detail.endMs/1E3])};
_.f.handleSectionHeaderSelected=function(a){_.ho(this.hostElement,"yt-transcript-player-seek",[a.detail.startMs/1E3])};
_.f.onMouseEnter=function(){this.isHovered=!0};
_.f.onMouseLeave=function(){this.isHovered=!1};
_.f.onRetryButtonClick=function(){_.go(this.hostElement,"transcript-retry-button-click")};
_.f.getSegmentElement=function(a){return _.E(this.hostElement).querySelector(":nth-child("+(a+1)+")")};
_.f.scrollElementToTop=function(a){a=this.getSegmentElement(a>=2?a-2:0);this.hostElement.scrollTop=Math.min(a.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.f.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(a){var b,c=(b=a.transcriptSegmentRenderer)!=null?b:a.transcriptSectionHeaderRenderer;return{start:Number(c.startMs)/1E3,end:Number(c.endMs)/1E3,isAutoScrollable:a.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.f.clearHighlightedSegments=function(){var a=_.E(this.hostElement);a=_.h(a.querySelectorAll("ytd-transcript-segment-renderer"));for(var b=a.next();!b.done;b=a.next())b.value.classList.remove("active")};
_.Vm.Object.defineProperties($gd.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.data)==null?void 0:a.searchResultSegments)||((b=this.data)==null?void 0:b.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
var V9=$gd;V9.prototype.onMouseLeave=V9.prototype.onMouseLeave;V9.prototype.onMouseEnter=V9.prototype.onMouseEnter;V9.prototype.handleSectionHeaderSelected=V9.prototype.handleSectionHeaderSelected;V9.prototype.handleSegmentReplay=V9.prototype.handleSegmentReplay;V9.prototype.handleSegmentSelected=V9.prototype.handleSegmentSelected;V9.prototype.handleSegmentEdit=V9.prototype.handleSegmentEdit;V9.prototype.segmentsChanged=V9.prototype.segmentsChanged;
_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],V9.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],V9.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],V9.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],V9.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],V9.prototype,"isError",void 0);
_.U([_.O(),_.W("design:type",Object)],V9.prototype,"noResultLabel",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],V9.prototype,"darkerPanels",void 0);_.U([_.K("data"),_.W("design:type",Array),_.W("design:paramtypes",[])],V9.prototype,"segments",null);_.U([_.K("segments","noResultLabel"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],V9.prototype,"displayNoResults",null);
_.U([_.N("segments"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],V9.prototype,"segmentsChanged",null);_.U([_.M("yt-transcript-segment-edit"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],V9.prototype,"handleSegmentEdit",null);_.U([_.M("yt-transcript-segment-selected"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],V9.prototype,"handleSegmentSelected",null);
_.U([_.M("yt-transcript-segment-replay"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],V9.prototype,"handleSegmentReplay",null);_.U([_.M("ytd-transcript-section-header"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],V9.prototype,"handleSectionHeaderSelected",null);_.U([_.M("mouseenter"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],V9.prototype,"onMouseEnter",null);
_.U([_.M("mouseleave"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],V9.prototype,"onMouseLeave",null);V9=_.U([_.Q({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],V9);
_.S(V9,"ytd-transcript-segment-list-renderer",function(){if(Xgd!==void 0)return Xgd;var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Xgd=a},{mode:1});var ahd=function(){var a=_.P.apply(this,arguments)||this;a.hideTimestamps=!!_.sG("hide-transcript-timestamps");a.isLoadingTranscripts=!1;a.darkerPanels=_.x("web_watch_darker_panels");a.isError=!1;a.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return a};
_.z(ahd,_.P);_.f=ahd.prototype;_.f.headerChanged=function(){var a,b;this.baseGetTranscriptsCommand=(b=_.y((a=this.data)==null?void 0:a.header,zdd))==null?void 0:b.onTextChangeCommand};
_.f.bodyChanged=function(){var a=this.getBodyRenderer();a&&(a.initialSegments&&(this.initialTranscriptsRenderer=a),a.noResultLabel&&(this.noResultLabel=a.noResultLabel),a.retryLabel&&(this.retryLabel=a.retryLabel))};
_.f.detached=function(){this.clearSearchBoxText()};
_.f.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.f.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"}}}};
_.f.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.f.fireSearch=function(a){var b=this;if(a){var c=a.detail.query;if(this.baseGetTranscriptsCommand){var d;a=(d=_.y(this.baseGetTranscriptsCommand,_.rAb))==null?void 0:d.params;var e;d=_.y((e=this.data)==null?void 0:e.footer,hdd);var g;if((e=(g=_.y(d==null?void 0:d.languageMenu,tdd))==null?void 0:g.subMenuItems)&&e.length>0&&(g=e.find(function(n){return n.selected}))){var k,m;
a=(k=g.continuation)==null?void 0:(m=k.reloadContinuationData)==null?void 0:m.continuation}k=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:a,searchQuery:c}});this.ytComponentBehavior.resolveCommand(k,{commandController:{onServerError:function(){b.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});Qcd(this.ytContinuationHandlerBehavior,function(){return c===b.getCurrentSearchBoxText()})}}};
_.f.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.f.onRetryButtonClick=function(){this.isError=!1;var a={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:a}))};
_.f.hideTimestampsChanged=function(){_.rG("hide-transcript-timestamps",this.hideTimestamps)};
_.f.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.f.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.f.handleSignalActionCopyTranscript=function(){var a=this,b=this.getBodyRenderer();b&&(b=((b==null?void 0:b.searchResultSegments)||(b==null?void 0:b.initialSegments)||[]).map(function(c){return _.y(c,Bdd)}).filter(function(c){return!!c}).map(function(c){return{snippet:c.snippet||{runs:[{text:""}]},
startTimeText:c.startTimeText||{simpleText:""}}}).map(function(c){var d=(c.snippet.runs||[]).reduce(function(e,g){return e+g.text},"");
return a.hideTimestamps?d:c.startTimeText.simpleText+" "+d}).join("\n"),this.copyToClipboard(b))};
_.f.copyToClipboard=function(a){navigator.clipboard&&navigator.clipboard.writeText(a)};
_.f.getCurrentSearchBoxText=function(){var a;return(a=this.searchBox)==null?void 0:a.value};
_.f.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.f.getBodyRenderer=function(){var a;return _.y((a=this.data)==null?void 0:a.body,Add)};
_.f.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.Vm.Object.defineProperties(ahd.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.E(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
var W9=ahd;W9.prototype.hideTimestampsChanged=W9.prototype.hideTimestampsChanged;W9.prototype.searchCleared=W9.prototype.searchCleared;W9.prototype.fireSearch=W9.prototype.fireSearch;W9.prototype.onReloadContinuationFinish=W9.prototype.onReloadContinuationFinish;W9.prototype.bodyChanged=W9.prototype.bodyChanged;W9.prototype.headerChanged=W9.prototype.headerChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],W9.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],W9.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],W9.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.RM),_.W("design:type",Object)],W9.prototype,"ytContinuationHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],W9.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],W9.prototype,"hideTimestamps",void 0);
_.U([_.O(),_.W("design:type",Object)],W9.prototype,"isLoadingTranscripts",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],W9.prototype,"darkerPanels",void 0);_.U([_.O(),_.W("design:type",Object)],W9.prototype,"isError",void 0);_.U([_.N("data.header"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],W9.prototype,"headerChanged",null);
_.U([_.kr("data.body"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],W9.prototype,"bodyChanged",null);_.U([_.M("yt-reload-continuation-finish"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],W9.prototype,"onReloadContinuationFinish",null);_.U([_.M("yt-transcript-search-box-search"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],W9.prototype,"fireSearch",null);
_.U([_.M("yt-transcript-search-box-clear"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],W9.prototype,"searchCleared",null);_.U([_.N("hideTimestamps"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],W9.prototype,"hideTimestampsChanged",null);W9=_.U([_.Q({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],W9);
_.S(W9,"ytd-transcript-search-panel-renderer",function(){if(Vgd!==void 0)return Vgd;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Vgd=a},{mode:1});var bhd=function(){var a=_.P.apply(this,arguments)||this;a.player=null;a.playerPollJobId=0;return a};
_.z(bhd,_.P);_.f=bhd.prototype;_.f.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.f.onLoadReloadContinuation=function(a){_.x("enable_att_for_transcript_request_on_web_client")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:a.target.data.continuation}}):(a={clickTrackingParams:a.target.data.clickTrackingParams,getTranscriptEndpoint:{params:a.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.x("web_ytd_transcript_renderer_command_resolver_ks")?_.mo(this.hostElement,[a]):_.v().resolve(_.Xi).resolveCommand(a,
{form:{element:this.hostElement}}))};
_.f.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"}}}};
_.f.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.f.attached=function(){this.updatePlayerListening()};
_.f.detached=function(){this.updatePlayerListening()};
_.f.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.f.startPlayerListening=function(){var a=this,b;return _.l(function(c){if(c.nextAddress==1)return(b=_.bu())?_.p(c,b.getPlayerPromise(),2):c.return();a.player=c.yieldResult;a.playerPollJobId=_.zk.addLowPriorityJob(function(){a.getPlayerVideoProgress()},1E3);
a.player.addEventListener("onCueRangeEnter",function(d){a.onCueRangeEnter(d)});
a.player.addEventListener("onCueRangeExit",function(d){a.onCueRangeExit(d)});
a.player.addEventListener("onStateChange",function(d){a.onPlayerStateChange(d)});
a.player.addEventListener("SEEK_TO",function(d){a.onPlayerSeek(d)});
_.se(c)})};
_.f.getPlayerVideoProgress=function(){var a=this;_.zk.cancelJob(this.playerPollJobId);if(this.player){var b=this.player.getCurrentTime();_.ho(this.hostElement,"yt-player-time-changed",[b])}this.playerPollJobId=_.zk.addLowPriorityJob(function(){a.getPlayerVideoProgress()},1E3)};
_.f.stopPlayerListening=function(){this.player=null;_.zk.cancelJob(this.playerPollJobId)};
_.f.onPlayerStateChange=function(a){a===2&&this.removePendingCue()};
_.f.onPlayerSeek=function(a){var b;if(b=this.pendingReplayCueId)b=this.pendingReplayCueId,b=a===(_.x("web_transcript_cue_id_killswitch")?Number(b):Number(b.split("_")[1]));b||this.removePendingCue()};
_.f.onCueRangeEnter=function(a){icd(a)&&(this.pendingReplayCueId=a)};
_.f.onCueRangeExit=function(a){icd(a)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.f.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.f.onYtTranscriptPlayerSeek=function(a){this.player&&this.player.seekTo(a,!0)};
_.f.onYtTranscriptPlayerReplay=function(a,b){this.player&&(this.player.addCueRange(hcd(a),a,b),this.player.seekTo(a,!0),this.player.playVideo())};
_.f.onYtTranscriptPlayerEdit=function(a,b){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(hcd(a),a,b),this.player.seekTo(a,!0))};
var X9=bhd;X9.prototype.onLoadReloadContinuation=X9.prototype.onLoadReloadContinuation;X9.prototype.panelContentVisibleChanged=X9.prototype.panelContentVisibleChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],X9.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],X9.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],X9.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],X9.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],X9.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],X9.prototype,"panelContentVisible",void 0);_.U([_.N("panelContentVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],X9.prototype,"panelContentVisibleChanged",null);
_.U([_.M("yt-load-reload-continuation"),_.W("design:type",Function),_.W("design:paramtypes",[Object]),_.W("design:returntype")],X9.prototype,"onLoadReloadContinuation",null);X9=_.U([_.Q({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],X9);
_.S(X9,"ytd-transcript-renderer",function(){if(Sgd!==void 0)return Sgd;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Sgd=a},{mode:1});var chd;var dhd;var ehd=function(){return _.P.apply(this,arguments)||this};
_.z(ehd,_.P);ehd.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.go(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.no(this.hostElement,[this.data.clickCommand],this.hostElement))};
ehd.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.HW)()+_.N8)+"px)"};
ehd.prototype.updateShouldHideFromBinding=function(a){this.shouldHide=a.detail.value};
var Y9=ehd;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],Y9.prototype,"rendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],Y9.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Boolean)],Y9.prototype,"shouldHide",void 0);Y9=_.U([_.Q({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],Y9);
_.S(Y9,"ytd-ad-engagement-panel-banner-renderer",function(){if(dhd!==void 0)return dhd;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return dhd=a},{mode:_.as("kevlar_poly_si_batch_j070")?1:2});var fhd;var ghd=function(){var a=_.P.apply(this,arguments)||this;a.modernPanels=_.x("kevlar_watch_modern_panels");a.buttonUpdate=_.x("web_modern_buttons");a.adsSemanticText=_.x("enable_ads_web_ep_buenos_aires_and_padding_fix");return a};
_.z(ghd,_.P);ghd.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
var Z9=ghd;_.U([_.O(),_.W("design:type",Object)],Z9.prototype,"data",void 0);_.U([_.O({computed:"computeHideDefaultAdBadge(data)"}),_.W("design:type",Boolean)],Z9.prototype,"hideDefaultAdBadge",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],Z9.prototype,"modernPanels",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],Z9.prototype,"buttonUpdate",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],Z9.prototype,"adsSemanticText",void 0);
Z9=_.U([_.Q({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],Z9);
_.S(Z9,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(fhd!==void 0)return fhd;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return fhd=a},{mode:1});var hhd;var ihd=function(){var a=_.P.apply(this,arguments)||this;a.darkerPanels=_.x("web_watch_darker_panels");a.enableSqueezebackPanels=_.x("web_shorts_enable_squeezeback_panels");a.enableAnchoredPanel=_.x("desktop_shorts_v2_anchored_panel");a.modernPanels=_.x("kevlar_watch_modern_panels");a.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return a};
_.z(ihd,_.P);_.f=ihd.prototype;_.f.computeAdsInfoButton=function(){if(_.x("web_modern_buttons")){var a,b;return(b=_.y((a=this.data)==null?void 0:a.subtitleComplex,idd))==null?void 0:b.adInfoRenderer}};
_.f.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}}}}}};
_.f.collapsedChanged=function(){var a;(a=this.data)!=null&&a.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.x("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.f.focus=function(a){this.titleElement&&_.Ok(this.titleElement,a)};
_.f.computeTitleAriaLabel=function(a){var b=[];a.title&&b.push(this.ytRendererBehavior.getSimpleString(a.title));a.contextualInfo&&b.push(this.ytRendererBehavior.getSimpleString(a.contextualInfo));return b.join(" ")};
_.f.onHeaderClick=function(a){this.shouldTriggerHeaderClick(a)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.go(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.no(this.hostElement,[this.data.onClickCommand],this.hostElement)):(a=this.getVisibilityToggleButton())&&a.click())};
_.f.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var a=_.y(this.data.visibilityButton,_.OE)||_.y(this.data.visibilityButton,_.PE);a&&this.ytRendererBehavior.logExplicitClick(a)}};
_.f.getVisibilityToggleButton=function(){var a=_.E(this.hostElement).querySelector("#visibility-button").firstElementChild;return(a==null?void 0:a.is)==="ytd-toggle-button-renderer"?a:null};
_.f.shouldTriggerHeaderClick=function(a){return!_.Xt(_.Pq(a),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.f.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(a){a=_.y(a,_.$cd);this.targetId&&(a==null?void 0:a.targetId)===this.targetId&&(a=a.navigationButton)&&this.set("data.navigationButton",a)};
_.Vm.Object.defineProperties(ihd.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.x("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var a;return!!(((a=this.entity)==null?0:a.isActionButtonHidden)||this.hideActionButton)}}});
var $9=ihd;$9.prototype.collapsedChanged=$9.prototype.collapsedChanged;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],$9.prototype,"actionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],$9.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],$9.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],$9.prototype,"ytdReduxBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],$9.prototype,"data",void 0);_.U([_.O(),_.W("design:type",String)],$9.prototype,"targetId",void 0);_.U([_.O(),_.W("design:type",Boolean)],$9.prototype,"collapsed",void 0);_.U([_.O(),_.W("design:type",Boolean)],$9.prototype,"hideActionButton",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],$9.prototype,"shortsPanel",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],$9.prototype,"liveChatEngagementPanel",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],$9.prototype,"darkerPanels",void 0);_.U([_.gr("#title"),_.W("design:type",HTMLElement)],$9.prototype,"titleElement",void 0);_.U([_.O({computed:"computeAdsInfoButton(data)"}),_.W("design:type",Object)],$9.prototype,"adsInfoButton",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],$9.prototype,"enableSqueezebackPanels",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],$9.prototype,"enableAnchoredPanel",void 0);_.U([_.O({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(a,b){return _.mp(a.entities,"engagementPanelTitleHeaderEntity",b)}}),
_.W("design:type",Object)],$9.prototype,"entity",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],$9.prototype,"modernPanels",void 0);_.U([_.O({reflectToAttribute:!0}),_.K("targetId"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],$9.prototype,"adsSemanticText",null);_.U([_.kr("collapsed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],$9.prototype,"collapsedChanged",null);
_.U([_.K("entity","hideActionButton"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],$9.prototype,"isActionButtonHidden",null);$9=_.U([_.Q({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],$9);
_.S($9,"ytd-engagement-panel-title-header-renderer",function(){if(hhd!==void 0)return hhd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-title-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="banner" aria-hidden="true" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="ads-info-button" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="header" on-click="onHeaderClick" class="style-scope ytd-engagement-panel-title-header-renderer">\n  <div id="navigation-button" hidden="[[!data.navigationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <yt-img-shadow id="icon" hidden="[[!data.icon]]" thumbnail="[[data.icon]]" class="style-scope ytd-engagement-panel-title-header-renderer"></yt-img-shadow>\n  <div id="title-container" class="style-scope ytd-engagement-panel-title-header-renderer">\n    <h2 id="title" aria-label$="[[computeTitleAriaLabel(data)]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      <yt-formatted-string id="title-text" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="contextual-info" hidden="[[!data.contextualInfo]]" text="[[data.contextualInfo]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n    </h2>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </yt-formatted-string>\n    <ytd-badge-supported-renderer hidden="[[!data.titleBadge]]" top-standalone-badge="[[data.titleBadge]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="subtitle-complex" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  </div>\n  <div id="action-button" hidden="[[isActionButtonHidden]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="menu" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="visibility-button" on-click="onVisibilityButtonClick" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n</div>\n<div id="subheader" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return hhd=a},{mode:1});var jhd;var khd=function(){return _.P.apply(this,arguments)||this};
_.z(khd,_.P);khd.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
var a$=khd;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],a$.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],a$.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],a$.prototype,"data",void 0);a$=_.U([_.Q({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],a$);
_.S(a$,"ytd-macro-markers-info-item-renderer",function(){if(jhd!==void 0)return jhd;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return jhd=a},{mode:1});var lhd;var ohd=function(a,b,c,d,e){_.tg.call(this);this.JSC$19840_containerElement=a;this.floatingPill=b;this.supportedSyncItems=c;this.syncEntityKey=d;this.options=e;this.contentVisible=this.browsingMode=!1;mhd(this);nhd(this);this.JSC$19840_scrollAnimation=new _.SR(function(g){a.scrollTop=g});
_.gg(this,this.JSC$19840_scrollAnimation)};
_.z(ohd,_.tg);var mhd=function(a){var b=_.wF(_.v().resolve(_.IG),function(c){return c.entities.markersEngagementPanelSyncEntity||{}},function(c,d){var e;
c[a.syncEntityKey]!==d[a.syncEntityKey]&&((e=c[a.syncEntityKey])==null?void 0:e.activeItemIndex)!==void 0&&a.updatePanelActiveItem(c[a.syncEntityKey].activeItemIndex)});
a.addOnDisposeCallback(b)},nhd=function(a){var b=new _.hv(a.onScroll,50,a);
_.gg(a,b);var c=function(){b.fire()};
a.JSC$19840_containerElement.addEventListener("scroll",c);a.addOnDisposeCallback(function(){a.JSC$19840_containerElement.removeEventListener("scroll",c)})};
_.f=ohd.prototype;_.f.updatePanelActiveItem=function(a){var b=this.getItemByIndex(a);b?(this.setActiveItem(b),!this.browsingMode&&this.contentVisible&&this.scrollToItem(b)):_.Dl(new _.qj("Could not find "+this.supportedSyncItems+" sync child to set active.",a,this.JSC$19840_containerElement.querySelectorAll(this.supportedSyncItems).length))};
_.f.getItemByIndex=function(a){var b;(b=this.renderLazyListItems)==null||b.call(this,a);b=this.JSC$19840_containerElement.querySelectorAll(this.supportedSyncItems);if(b.length>a)return b[a]};
_.f.setActiveItem=function(a){this.activeItem&&this.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));a.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));this.activeItem=a};
_.f.scrollToItem=function(a){a=this.getScrollPositionForItem(a);this.JSC$19840_containerElement.scrollTop!==a&&this.JSC$19840_scrollAnimation.start(this.JSC$19840_containerElement.scrollTop,a,300)};
_.f.getScrollPositionForItem=function(a){if(this.JSC$19840_containerElement.querySelectorAll(this.supportedSyncItems)[0]===a)return 0;var b,c=((b=this.options)==null?0:b.percentOffset)?this.JSC$19840_containerElement.clientHeight*this.options.percentOffset:0;a=_.Df(a).y+this.JSC$19840_containerElement.scrollTop-(_.Df(this.JSC$19840_containerElement).y+c);return Math.max(0,Math.min(a,this.JSC$19840_containerElement.scrollHeight-this.JSC$19840_containerElement.offsetHeight))};
_.f.onScroll=function(){!this.browsingMode&&this.activeItem&&!this.JSC$19840_scrollAnimation.isAnimating()&&Math.abs(this.JSC$19840_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10&&this.enterBrowsingMode()};
_.f.enterBrowsingMode=function(){var a=this,b,c;return _.l(function(d){if(d.nextAddress==1){if(a.browsingMode)return d.return();a.browsingMode=!0;a.floatingPill.classList.add("browsing-mode");a.playerExitBrowsingModeListener=function(){a.exitBrowsingMode(!1)};
return _.p(d,_.nu(),2)}b=d.yieldResult;(c=b)==null||c.addEventListener("SEEK_TO",a.playerExitBrowsingModeListener);_.se(d)})};
_.f.exitBrowsingMode=function(a){a=a===void 0?!0:a;this.browsingMode&&(this.browsingMode=!1,this.floatingPill.classList.remove("browsing-mode"),a&&this.scrollToItem(this.activeItem),this.removePlayerSeekListener())};
_.f.removePlayerSeekListener=function(){var a=this,b,c;return _.l(function(d){if(d.nextAddress==1)return a.playerExitBrowsingModeListener?_.p(d,_.nu(),3):d.jumpTo(0);b=d.yieldResult;(c=b)==null||c.removeEventListener("SEEK_TO",a.playerExitBrowsingModeListener);a.playerExitBrowsingModeListener=void 0;_.se(d)})};
_.f.panelContentVisibleChanged=function(a){(this.contentVisible=a)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var phd=function(a,b){a.renderLazyListItems=b};var qhd=function(){var a=_.P.apply(this,arguments)||this;a.browsingMode=!1;a.modern=_.x("web_button_rework");a.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return a};
_.z(qhd,_.P);_.f=qhd.prototype;_.f.activeItemChanged=function(){if(!_.x("synced_panel_scrolling_controller")){var a;((a=this.syncEntity)==null?void 0:a.activeItemIndex)!==void 0&&this.updatePanelActiveItem(this.syncEntity.activeItemIndex)}};
_.f.created=function(){var a=this;_.x("synced_panel_scrolling_controller")||(this.JSC$19845_scrollAnimation=new _.SR(function(b){a.contents.scrollTop=b}),this.boundExitBrowsingMode=function(){a.exitBrowsingMode(!1)})};
_.f.attached=function(){var a=this;if(_.x("synced_panel_scrolling_controller")&&!this.scrollController){var b,c,d,e;this.scrollController=new ohd(this.contents,this.syncContainer,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(e=(b=this.data)==null?void 0:b.syncModelEntityKey)!=null?e:"default-macro-markers-list-renderer-entity-key",{percentOffset:(c=this.data)==null?void 0:c.selectedItemAlignmentPercentOffset,floatingPillType:(d=this.data)==null?void 0:d.floatingPillType});
phd(this.scrollController,function(g){a.renderLazyListItems(g)});
this.scrollController.panelContentVisibleChanged(!!this.panelContentVisible)}};
_.f.detached=function(){if(_.x("synced_panel_scrolling_controller")){var a;(a=this.scrollController)==null||a.dispose();this.scrollController=void 0}else this.removePlayerSeekListener()};
_.f.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"}}}};
_.f.dataChanged=function(){if(_.x("synced_panel_scrolling_controller")){var a;(a=this.scrollController)==null||a.exitBrowsingMode();var b,c;if((a=this.scrollController)!=null){var d=(c=(b=this.data)==null?void 0:b.syncModelEntityKey)!=null?c:"default-macro-markers-list-renderer-entity-key";a.syncEntityKey=d}var e,g;(b=this.scrollController)!=null&&(c={percentOffset:(e=this.data)==null?void 0:e.selectedItemAlignmentPercentOffset,floatingPillType:(g=this.data)==null?void 0:g.floatingPillType},b.options=
c)}else this.exitBrowsingMode()};
_.f.computeButtonShape=function(){var a=this;if(this.data&&this.data.syncButtonLabel&&this.modern)return{onTap:function(){a.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.f.computeSyncEnabled=function(a){return!(a==null||!a.syncButtonLabel)};
_.f.renderLazyListItems=function(a){for(var b=this.contents.children,c=0,d=0;d<b.length;d++){var e=void 0;(e=b[d].ytLazyListBehavior)==null||e.fillRemainingListItems();var g=void 0,k=void 0;e=_.y((g=this.data)==null?void 0:(k=g.contents)==null?void 0:k[d],_.h4a);k=g=void 0;if((g=e)==null?0:(k=g.contents)==null?0:k.length)c+=e.contents.length;if(c>=a)break}};
_.f.getItemByIndex=function(a){this.renderLazyListItems(a);var b=this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model");if(b.length>a)return b[a]};
_.f.setActiveItem=function(a){this.currentActiveItem&&this.currentActiveItem.active!==void 0&&(this.currentActiveItem.active=!1);a.active!==void 0&&(a.active=!0);this.currentActiveItem=a};
_.f.handleSetActivePanelItemAction=function(a){if((a=_.y(a,bdd))&&this.panelTargetId===a.panelTargetId){a=a.itemIndex;if(_.x("synced_panel_scrolling_controller")){var b,c;var d=(c=(b=this.data)==null?void 0:b.syncModelEntityKey)!=null?c:"default-macro-markers-list-renderer-entity-key"}else{var e;d=(e=this.data)==null?void 0:e.syncModelEntityKey}var g;d&&((g=this.syncEntity)==null?void 0:g.activeItemIndex)!==a?this.ytdReduxBehavior.dispatch(_.vu("markersEngagementPanelSyncEntity",d,{key:d,activeItemIndex:a})):
this.updatePanelActiveItem(a)}};
_.f.updatePanelActiveItem=function(a){var b=this.getItemByIndex(a);b?(this.setActiveItem(b),!this.browsingMode&&this.panelContentVisible&&this.scrollToItem(b)):_.Dl(new _.qj("Could not find ytd-macro-markers-list-renderer sync child to set active.",a,this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model").length))};
_.f.scrollToItem=function(a){a=this.getScrollPositionForItem(a);this.contents.scrollTop!==a&&this.JSC$19845_scrollAnimation.start(this.contents.scrollTop,a,300)};
_.f.getScrollPositionForItem=function(a){if(this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model")[0]===a)return 0;a=_.Df(a).y+this.contents.scrollTop-_.Df(this.contents).y-this.getStickyHeaderHeight(a);return Math.min(a,this.contents.scrollHeight-this.contents.offsetHeight)};
_.f.getStickyHeaderHeight=function(a){if(a.nodeName==="MACRO-MARKERS-PANEL-ITEM-VIEW-MODEL"){var b,c,d;return(d=(b=a.closest('ytd-item-section-renderer[header-style="sticky-header"]'))==null?void 0:(c=b.header)==null?void 0:c.offsetHeight)!=null?d:0}return 0};
_.f.onScroll=function(){_.x("synced_panel_scrolling_controller")||(this.ytRendererBehavior.markDirty(),this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&!this.JSC$19845_scrollAnimation.isAnimating()&&Math.abs(this.contents.scrollTop-this.getScrollPositionForItem(this.currentActiveItem))>10&&this.enterBrowsingMode())};
_.f.enterBrowsingMode=function(){var a=this;return _.l(function(b){if(b.nextAddress==1){if(a.browsingMode)return b.return();a.browsingMode=!0;return _.p(b,_.cu().getPlayerPromise(),2)}a.player=b.yieldResult;a.player.addEventListener("SEEK_TO",a.boundExitBrowsingMode);_.se(b)})};
_.f.exitBrowsingMode=function(a){this.browsingMode&&(this.browsingMode=!1,(a===void 0||a)&&this.scrollToItem(this.currentActiveItem),this.removePlayerSeekListener())};
_.f.removePlayerSeekListener=function(){this.player&&(this.player.removeEventListener("SEEK_TO",this.boundExitBrowsingMode),this.player=void 0)};
_.f.onSyncClick=function(){if(_.x("synced_panel_scrolling_controller")){var a;(a=this.scrollController)==null||a.exitBrowsingMode()}else this.exitBrowsingMode()};
_.f.panelContentVisibleChanged=function(){if(_.x("synced_panel_scrolling_controller")){var a;(a=this.scrollController)==null||a.panelContentVisibleChanged(!!this.panelContentVisible)}else this.panelContentVisible&&this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&this.scrollToItem(this.currentActiveItem)};
var b$=qhd;b$.prototype.panelContentVisibleChanged=b$.prototype.panelContentVisibleChanged;b$.prototype.dataChanged=b$.prototype.dataChanged;b$.prototype.activeItemChanged=b$.prototype.activeItemChanged;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],b$.prototype,"actionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],b$.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],b$.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],b$.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],b$.prototype,"data",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],b$.prototype,"useCustomColors",void 0);_.U([_.O({computed:"computeSyncEnabled(data)"}),_.W("design:type",Boolean)],b$.prototype,"syncEnabled",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],b$.prototype,"panelTargetId",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],b$.prototype,"panelContentVisible",void 0);_.U([_.gr("#contents"),_.W("design:type",HTMLElement)],b$.prototype,"contents",void 0);_.U([_.gr("#sync-container"),_.W("design:type",HTMLElement)],b$.prototype,"syncContainer",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],b$.prototype,"browsingMode",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],b$.prototype,"modern",void 0);_.U([_.O({selectorArgs:["data.syncModelEntityKey"],selector:_.iSa}),_.W("design:type",Object)],b$.prototype,"syncEntity",void 0);_.U([_.N("syncEntity.activeItemIndex"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],b$.prototype,"activeItemChanged",null);
_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],b$.prototype,"dataChanged",null);_.U([_.N("panelContentVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],b$.prototype,"panelContentVisibleChanged",null);b$=_.U([_.Q({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],b$);
_.S(b$,"ytd-macro-markers-list-renderer",function(){if(lhd!==void 0)return lhd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" on-scroll="onScroll" class="style-scope ytd-macro-markers-list-renderer"></div>\n<div id="sync-container" hidden="[[!syncEnabled]]" class="style-scope ytd-macro-markers-list-renderer">\n  <tp-yt-paper-button id="sync-button" disable-upgrade="[[modern]]" hidden="[[modern]]" on-click="onSyncClick" class="style-scope ytd-macro-markers-list-renderer">\n    [[getSimpleString(data.syncButtonLabel)]]\n  </tp-yt-paper-button>\n  <yt-button-shape id="sync-button-modern" data="[[computeButtonShape(data)]]" disable-upgrade="[[!modern]]" hidden="[[!modern]]" class="style-scope ytd-macro-markers-list-renderer">\n  </yt-button-shape>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return lhd=a},{mode:1});var rhd;var shd=function(){return _.P.apply(this,arguments)||this};
_.z(shd,_.P);var c$=shd;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],c$.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],c$.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],c$.prototype,"data",void 0);c$=_.U([_.Q({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],c$);
_.S(c$,"ytd-error-corrections-section-item-renderer",function(){if(rhd!==void 0)return rhd;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return rhd=a},{mode:1});var thd;var uhd=function(){return _.P.apply(this,arguments)||this};
_.z(uhd,_.P);uhd.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
var d$=uhd;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],d$.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],d$.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],d$.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],d$.prototype,"data",void 0);d$=_.U([_.Q({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],d$);
_.S(d$,"ytd-error-corrections-section-renderer",function(){if(thd!==void 0)return thd;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return thd=a},{mode:1});var vhd;var whd=function(){return _.P.apply(this,arguments)||this};
_.z(whd,_.P);var e$=whd;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],e$.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],e$.prototype,"componentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],e$.prototype,"data",void 0);e$=_.U([_.Q({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],e$);
_.S(e$,"ytd-topic-link-renderer",function(){if(vhd!==void 0)return vhd;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return vhd=a},{mode:1});var xhd;var yhd=function(){var a=_.P.apply(this,arguments)||this;a.modern=_.x("kevlar_modern_sd_v2");a.modernLockupV2=_.x("modernize_structured_description_playlist_lockups_v2");a.modernTypography=_.x("web_modern_typography");return a};
_.z(yhd,_.P);yhd.prototype.configureRendererStamper=function(){return{"data.mediaLockups":{id:"media-lockups",mapping:{structuredDescriptionPlaylistLockupRenderer:{component:"ytd-structured-description-playlist-lockup-renderer",properties:{showSidePanelThumbnailOverlay:"[[modernLockupV2]]"}}}},"data.topicLink":{id:"topic-link",mapping:{topicLinkRenderer:"ytd-topic-link-renderer"}}}};
var f$=yhd;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],f$.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],f$.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],f$.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],f$.prototype,"modern",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],f$.prototype,"modernLockupV2",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],f$.prototype,"modernTypography",void 0);f$=_.U([_.Q({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],f$);
_.S(f$,"ytd-video-description-course-section-renderer",function(){if(xhd!==void 0)return xhd;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return xhd=a},{mode:1});var zhd;var Ahd=function(){var a=_.P.apply(this,arguments)||this;a.modern=_.x("kevlar_modern_sd_v2");a.modernTypography=_.x("web_modern_typography");return a};
_.z(Ahd,_.P);Ahd.prototype.configureRendererStamper=function(){return{"data.files":{id:"file-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.viewAllButton":{id:"view-all-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
var g$=Ahd;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],g$.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],g$.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],g$.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],g$.prototype,"modern",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],g$.prototype,"modernTypography",void 0);
g$=_.U([_.Q({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],g$);
_.S(g$,"ytd-video-description-files-section-renderer",function(){if(zhd!==void 0)return zhd;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return zhd=a},{mode:1});var Bhd;var Chd=function(){return _.P.apply(this,arguments)||this};
_.z(Chd,_.P);Chd.prototype.configureRendererStamper=function(){return{"data.mediaLockups":{id:"media-lockups",mapping:{mediaLockupRenderer:"ytd-media-lockup-renderer"}},"data.topicLink":{id:"topic-link",mapping:{topicLinkRenderer:"ytd-topic-link-renderer"}}}};
var h$=Chd;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],h$.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],h$.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],h$.prototype,"data",void 0);h$=_.U([_.Q({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],h$);
_.S(h$,"ytd-video-description-gaming-section-renderer",function(){if(Bhd!==void 0)return Bhd;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Bhd=a},{mode:1});var Dhd;var Ehd=function(){var a=_.P.apply(this,arguments)||this;a.isExpanded=!1;return a};
_.z(Ehd,_.P);Ehd.prototype.computeHasDefaultMetadataEndpoint=function(a){var b;a=a==null?void 0:(b=a.defaultMetadata)==null?void 0:b.runs;return!(!a||a.length!==1||!a[0].navigationEndpoint)};
Ehd.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.Vm.Object.defineProperties(Ehd.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
var i$=Ehd;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],i$.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],i$.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],i$.prototype,"isExpanded",void 0);_.U([_.O({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],i$.prototype,"hasDefaultMetadataEndpoint",void 0);
_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],i$.prototype,"isExpandable",null);_.U([_.K("data","isExpandable","isExpanded"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],i$.prototype,"showExpandedMetadata",null);i$=_.U([_.Q({is:"ytd-info-row-renderer",disableElementRegistration:!0})],i$);
_.S(i$,"ytd-info-row-renderer",function(){if(Dhd!==void 0)return Dhd;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Dhd=a},{mode:1});var Fhd;var Ghd=function(){var a=_.P.apply(this,arguments)||this;a.currentIndex=0;a.supportComponentResize=!0;a.modern=_.x("kevlar_modern_sd_v2");a.JSC$19871_lastScrollContainerWidth=NaN;return a};
_.z(Ghd,_.P);_.f=Ghd.prototype;
_.f.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"}}}};
_.f.getItemsPath=function(){return"videoLockups"};
_.f.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.f.onIronResize=function(){this.updateVideoLockupStyles()};
_.f.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.f.updateVideoLockupStyles=function(){var a;this.JSC$19871_scrollContainer!==void 0&&(a=this.videoLockups)!=null&&a.length&&(a=this.JSC$19871_scrollContainer.clientWidth,a!==this.JSC$19871_lastScrollContainerWidth&&(this.JSC$19871_lastScrollContainerWidth=a,_.dr(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(a*.8,415)+"px"}),_.go(this.hostElement,"iron-resize")))};
_.Vm.Object.defineProperties(Ghd.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var a=[],b;if((b=this.data)==null||!b.carouselLockups)return a;b=_.h(this.data.carouselLockups);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=void 0;((d=_.y(c,Fdd))==null?0:d.videoLockup)&&a.push(_.y(c,Fdd).videoLockup)}return a}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.videoLockups)==null||!a.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var a=[],b;if((b=this.data)==null||!b.carouselLockups)return a;var c;return(c=_.y(this.data.carouselLockups[this.scrollCount],Fdd))==null?void 0:c.infoRows}}});
var j$=Ghd;j$.prototype.dataChanged=j$.prototype.dataChanged;j$.prototype.onIronResize=j$.prototype.onIronResize;j$.prototype.hiddenChanged=j$.prototype.hiddenChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],j$.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],j$.prototype,"componentBehavior",void 0);_.U([_.H(_.hJ.YtdHorizontalListBehavior),_.W("design:type",Object)],j$.prototype,"ytdHorizontalListBehavior",void 0);
_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],j$.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],j$.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],j$.prototype,"inlineStructuredDescription",void 0);_.U([_.O({value:2}),_.W("design:type",Number)],j$.prototype,"initialCount",void 0);_.U([_.O(),_.W("design:type",Object)],j$.prototype,"currentIndex",void 0);
_.U([_.O(),_.W("design:type",Number)],j$.prototype,"scrollCount",void 0);_.U([_.O(),_.W("design:type",Object)],j$.prototype,"supportComponentResize",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],j$.prototype,"contentHidden",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],j$.prototype,"modern",void 0);_.U([_.gr("#scroll-container"),_.W("design:type",HTMLDivElement)],j$.prototype,"JSC$19871_scrollContainer",void 0);
_.U([_.N("contentHidden"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],j$.prototype,"hiddenChanged",null);_.U([_.K("data"),_.W("design:type",Array),_.W("design:paramtypes",[])],j$.prototype,"videoLockups",null);_.U([_.K("videoLockups"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],j$.prototype,"hasVideoLockups",null);_.U([_.M("iron-resize"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],j$.prototype,"onIronResize",null);
_.U([_.K("data","scrollCount"),_.W("design:type",Object),_.W("design:paramtypes",[])],j$.prototype,"infoRows",null);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],j$.prototype,"dataChanged",null);j$=_.U([_.Q({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],j$);
_.S(j$,"ytd-video-description-music-section-renderer",function(){if(Fhd!==void 0)return Fhd;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Fhd=a},{mode:_.as("kevlar_poly_si_batch_j081")?1:2});var Hhd;var Ihd=function(){var a=_.P.apply(this,arguments)||this;a.modern=_.x("kevlar_modern_sd_v2");a.modernTypography=_.x("web_modern_typography");return a};
_.z(Ihd,_.P);Ihd.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
var k$=Ihd;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],k$.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],k$.prototype,"ytRendererBehavior",void 0);_.U([_.O({}),_.W("design:type",Object)],k$.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],k$.prototype,"modern",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],k$.prototype,"modernTypography",void 0);
k$=_.U([_.Q({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],k$);
_.S(k$,"ytd-video-description-transcript-section-renderer",function(){if(Hhd!==void 0)return Hhd;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Hhd=a},{mode:1});var Jhd;_.Ws(_.Rr(function(a){var b=_.tu(_.ZWa,function(){return a.data().firstProviderLinkStatusEntityKey}),c=_.tu(_.ZWa,function(){return a.data().secondProviderLinkStatusEntityKey}),d=function(){var e,g;
return((e=b())==null?void 0:e.linked)||((g=c())==null?void 0:g.linked)};
return _.q("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.q(_.wt,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return a.data().sectionTitle}}),_.q(_.wt,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return d()?a.data().connectedMessage:a.data().notConnectedMessage}}),_.q(_.oi,{cond:d,
then:function(){return _.q(_.Eu,{data:function(){return a.data().connectedButton}},{buttonViewModel:function(e){return _.q(_.Ju,{data:e.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.q(_.oi,{cond:function(){return!d()},
then:function(){return _.q(_.Eu,{data:function(){return a.data().notConnectedButton}},{buttonViewModel:function(e){return _.q(_.Ju,{data:e.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))}),"ytw-video-description-fantasy-section-view-model",{props:{data:_.SG}});_.Ws(_.Rr(function(a){var b=a.data;return _.q("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.q("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.q(_.wt,{text:function(){return b().sectionTitle}})),_.q("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.q(_.wt,{text:function(){return b().bodyHeader}})),_.q("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.q(_.wt,{text:function(){return b().bodyText}})),_.q(_.oi,
{cond:function(){return b().attributionText},
then:function(){return _.q("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.q(_.wt,{text:function(){return b().attributionText}}))}}))}),"how-this-was-made-section-view-model",{props:{data:_.SG}});_.Ws(_.Rr(function(a){return _.q("yt-video-description-youchat-section-view-model",{class:_.jt("ytVideoDescriptionYouchatSectionViewModelHost")},_.q("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.q(_.wt,{text:function(){return a.data().sectionTitle}})),_.q("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.q(_.wt,{text:function(){return a.data().subHeaderText}})),_.q("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.q(_.Ju,{data:function(){return _.y(a.data().primaryButton,
_.Fu)}})))}),"yt-video-description-youchat-section-view-model",{props:{data:_.SG}});var Khd=function(){var a=_.P.apply(this,arguments)||this;a.modern=_.x("kevlar_modern_sd_v2");a.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return a};
_.z(Khd,_.P);_.f=Khd.prototype;
_.f.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}}}}}};
_.f.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.f.dataChanged=function(){var a,b;this.hasDescriptionOnly=!(((a=this.data)==null?void 0:(b=a.items)==null?void 0:b.length)!==1||!_.y(this.data.items[0],Gdd))};
_.f.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.f.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.f.autoFocusDescription=function(){var a;((a=_.v().resolve(_.Wi(_.yu)))==null?0:a.isKeyBoardInUse())&&this.description&&_.Pk(this.description)};
_.f.resize=function(){if(_.x("kevlar_disable_sd_resize"))this.JSC$19879_cardList&&_.go(this.JSC$19879_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.go(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.go(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.f.scrollToSection=function(a){if(a=this.getSectionElement(a))_.ho(this.hostElement,"yt-scroll-to-watch-element",[a]),a.focus()};
_.f.getSectionElement=function(a){switch(a){case "infocards-item-section":var b;return(b=this.infocardsSection)!=null?b:null;case "transcript-item-section":var c;return(c=this.transcriptSection)!=null?c:null;case "how-this-was-made-section-item-section":var d;return(d=this.howThisWasMadeSection)!=null?d:null;case "files-item-section":var e;return(e=this.filesSection)!=null?e:null;default:return null}};
_.f.handleSetActiveItemAction=function(a){var b=_.y(a,bdd),c=b&&(b==null?void 0:b.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$19879_cardList;if(b&&c){a=this.currentActiveChapter;var d=this.currentActiveProblem;b=c==null?void 0:c.getItemByIndex(b.itemIndex);var e=c=!0;b&&(b.active=!0,b.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(c=a!==b,e=!1,this.currentActiveChapter=b):(b==null?void 0:b.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(c=!1,e=d!==b,this.currentActiveProblem=b));a&&c&&(a.active=!1);d&&e&&(d.active=!1)}};
_.Vm.Object.defineProperties(Khd.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.x("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
var l$=Khd;l$.prototype.onYtExpanderMoreTapped=l$.prototype.onYtExpanderMoreTapped;l$.prototype.onHiddenChanged=l$.prototype.onHiddenChanged;l$.prototype.dataChanged=l$.prototype.dataChanged;l$.prototype.panelContentVisibleChanged=l$.prototype.panelContentVisibleChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],l$.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],l$.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],l$.prototype,"actionHandlerBehavior",void 0);_.U([_.H(_.KD),_.W("design:type",Object)],l$.prototype,"ironResizableBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],l$.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Boolean)],l$.prototype,"panelContentVisible",void 0);_.U([_.O(),_.W("design:type",Boolean)],l$.prototype,"hasDescriptionOnly",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],l$.prototype,"inlineStructuredDescription",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],l$.prototype,"hidden",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],l$.prototype,"shortsPanel",void 0);_.U([_.O(),_.W("design:type",Object)],l$.prototype,"videoSummary",void 0);_.U([_.K("videoSummary"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],l$.prototype,"showVideoSummary",null);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],l$.prototype,"modern",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],l$.prototype,"engagementPanel",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],l$.prototype,"watchWhileSdp",void 0);_.U([_.gr("ytd-expandable-video-description-body-renderer"),_.W("design:type",Object)],l$.prototype,"description",void 0);
_.U([_.gr("ytd-horizontal-card-list-renderer"),_.W("design:type",Object)],l$.prototype,"JSC$19879_cardList",void 0);_.U([_.gr("ytd-horizontal-card-list-renderer[center-items]"),_.W("design:type",Object)],l$.prototype,"problemWalkthroughCardList",void 0);_.U([_.gr("ytd-shelf-renderer"),_.W("design:type",Object)],l$.prototype,"shelfSection",void 0);_.U([_.gr("ytd-video-description-music-section-renderer"),_.W("design:type",Object)],l$.prototype,"musicMetadataSection",void 0);
_.U([_.gr("ytd-video-description-infocards-section-renderer"),_.W("design:type",Object)],l$.prototype,"infocardsSection",void 0);_.U([_.gr("ytd-video-description-transcript-section-renderer"),_.W("design:type",Object)],l$.prototype,"transcriptSection",void 0);_.U([_.gr("how-this-was-made-section-view-model"),_.W("design:type",Object)],l$.prototype,"howThisWasMadeSection",void 0);_.U([_.gr("ytd-video-description-files-section-renderer"),_.W("design:type",Object)],l$.prototype,"filesSection",void 0);
_.U([_.N("panelContentVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],l$.prototype,"panelContentVisibleChanged",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],l$.prototype,"dataChanged",null);_.U([_.N("hidden"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],l$.prototype,"onHiddenChanged",null);
_.U([_.M("yt-expander-more-tapped"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],l$.prototype,"onYtExpanderMoreTapped",null);l$=_.U([_.Q({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],l$);
_.S(l$,"ytd-structured-description-content-renderer",function(){if(Jhd!==void 0)return Jhd;var a=document.createElement("template");_.B(a,'\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="items" class="style-scope ytd-structured-description-content-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Jhd=a},{mode:2});var Lhd;var Mhd;var Nhd=function(){return _.P.apply(this,arguments)||this};
_.z(Nhd,_.P);Nhd.prototype.computeAriaLabel=function(a){var b,c;return(a==null?void 0:(b=a.accessibility)==null?void 0:(c=b.accessibilityData)==null?void 0:c.label)||_.to("LOADING",void 0,"Loading")};
var m$=Nhd;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],m$.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],m$.prototype,"data",void 0);_.U([_.O({computed:"computeAriaLabel(data)"}),_.W("design:type",String)],m$.prototype,"ariaLabel",void 0);m$=_.U([_.ur({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],m$);
_.S(m$,"yt-content-loading-renderer",function(){if(Mhd===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;Lhd===void 0&&(Lhd=document.createElement("template"));var d=Lhd;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Mhd=a}a=Mhd;return a},{mode:_.as("kevlar_poly_si_batch_j043")?1:2});var Ohd=_.Rr(function(a){var b=a.data;a=_.Rl();_.Vu(a,function(){return b().rendererContext});
var c=function(){var d;return _.Qu((d=b())==null?void 0:d.rendererContext)};
return _.q("content-list-item-view-model",{el:a,class:"ytContentListItemViewModelHost",role:function(){return c()?"listitem":void 0},
tabindex:function(){return c()?0:void 0}},_.q("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.q("div",{class:"ytContentListItemViewModelImageContainer"},_.q(_.oi,{cond:function(){return b().image},
then:function(d){return _.q(_.Ss,{data:d,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.q(_.Eu,{data:function(){var d;
return(d=b())==null?void 0:d.avatar}},{avatarViewModel:_.LK})),_.q("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.q("div",{class:"ytContentListItemViewModelTitle"},_.q(_.wt,{text:function(){return b().title}})),_.q("div",{class:"ytContentListItemViewModelMetadata"},_.q(_.Eu,{data:function(){return b().metadata}},{contentMetadataViewModel:function(d){return _.q(_.e0b,{data:d.data,
layout:1})}})))),_.q("div",{class:"ytContentListItemViewModelActionButton"},_.q(_.Eu,{data:function(){var d;
return(d=b())==null?void 0:d.actionButton}},{buttonViewModel:_.Ju,
toggleButtonViewModel:_.Hu})))});_.Ws(_.Rr(function(a){var b=_.h(_.fh(!1,"WbYeXc")),c=b.next().value,d=b.next().value;b=_.h(_.fh(!1,"msXkzc"));var e=b.next().value,g=b.next().value;_.vi(function(){var n=_.y(a.data().collaboratePlaylistCollaborationSetting,vdd);n&&d(n.switchedOnByDefault);var r=_.y(a.data().allowNewCollaboratorsPlaylistCollaborationSetting,vdd);r&&g(r.switchedOnByDefault);if(!n&&!r||!n&&a.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")d(!0),g(!0)});
var k=function(n){d(n);g(n);var r=a.data().playlistCollaborationEntityKey||"";var t=_.Ir().getState();(t=_.mp(t.entities,"playlistCollaborationEntity",r))&&(t==null?void 0:t.isCollaborative)===n||_.Ir().dispatch(_.vu("playlistCollaborationEntity",r,Object.assign({},t,{isCollaborative:n})))},m=function(n){g(n)};
return _.q("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.q("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.q(_.Eu,{data:function(){return a.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(n){return _.q(_.q$b,{data:n.data,
onSwitch:k})}})),_.q(_.oi,{cond:c,
then:function(){return _.q("div",null,_.q("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.q(_.Eu,{data:function(){return a.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(n){return _.q(_.q$b,{data:n.data,
onSwitch:m,overrideDisabled:!1})}})),_.q(_.oi,{cond:e,
then:function(){return _.q("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.q(_.Eu,{data:function(){return a.data().copyLinkButton}},{buttonViewModel:_.Ju}))}}),_.q("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.q(_.Eu,{data:function(){return a.data().playlistCollaborators}},{contentListItemViewModel:Ohd})))}}))}),"playlist-collaboration-view-model",{props:{data:_.SG}});var Phd=_.Rr(function(a){var b=a.data;var c=a.customCommandResolver;return _.q(_.Vh,null,_.q("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.q(_.Eu,{data:function(){return b().adAvatar}},{adAvatarViewModel:function(d){return _.q(_.k0b,{data:d.data,
customCommandResolver:c})}})),_.q("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.q(_.oi,{cond:function(){return b().headline},
then:function(d){return _.q(_.wt,{text:d,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.q("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.q(_.Eu,{data:function(){return b().adBadge}},{adBadgeViewModel:function(d){return _.q(_.sL,{data:d.data,
hasDot:function(){return b().primaryDetailsLine!==void 0},
customCommandResolver:c,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.q(_.Eu,{data:function(){return b().primaryDetailsLine}},{adDetailsLineViewModel:function(d){return _.q(_.tL,{data:d.data,
customCommandResolver:c,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))}),Qhd=_.Rr(function(a){var b=a.data;
var c=a.customCommandResolver;a=_.Rl();_.cv(a,function(){return b().interaction},c);
_.$l(a,{visibilityCallback:function(d){var e,g=(e=b().interaction)==null?void 0:e.onFirstVisible;d&&g&&_.Js(g)},
showOption:_.nL});return _.q("ad-avatar-lockup-view-model",{class:function(){var d;return((d=b().interaction)==null?0:d.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:a,"aria-label":function(){var d,e;return(d=b().interaction)==null?void 0:(e=d.accessibility)==null?void 0:e.label}},_.q(_.qi,null,_.q(_.pi,{when:function(){return b().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.q(Phd,{data:b,
customCommandResolver:c})}),_.q(_.wna,null,function(){return null})))});_.Ws(_.Rr(function(a){var b=a.data;var c=a.panelContentVisibility;a=_.Rl();_.cv(a,function(){return b().interaction},jcd);
_.$l(a,{visibilityCallback:function(e){var g,k=(g=b().interaction)==null?void 0:g.onFirstVisible;e&&k&&_.Js(k)},
showOption:_.nL});_.vh(function(){var e,g;if(g=_.Ji("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var k;g=(k=g())==null?void 0:k.onLayoutVisibleCallback}else g=null;(e=g)==null||e()},"tVerqb");
var d=function(){return c()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.q("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:a},_.q("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.q("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.q(_.oi,{cond:_.S1a("(min-width: "+((0,_.HW)()+_.N8)+"px) or (max-width: 600px)"),then:function(){return _.q(_.Eu,{data:function(){return b().adImage}},{adImageViewModel:function(e){return _.q(_.wN,{data:e.data,
targetHeight:80,customCommandResolver:jcd})}})}})),_.q("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.q("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.q(_.Eu,{data:function(){return b().adAvatarLockup}},{adAvatarLockupViewModel:function(e){return _.q(Qhd,{data:e.data,
customCommandResolver:jcd})}})),_.q(_.oi,{cond:d,
then:function(){return _.q(_.Eu,{data:function(){return b().adButton}},{adButtonViewModel:function(e){return _.q(_.pL,{data:e.data,
customCommandResolver:jcd})}})},
else:function(){return _.q(_.Eu,{data:function(){return b().menu}},{buttonViewModel:_.Ju})}}),_.q("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.q(_.Eu,{data:function(){var e=_.y(b().toggleButton,_.Gu);
return{toggleButtonViewModel:Object.assign({},e,{isTogglingDisabled:!0,isToggled:d()})}}},{toggleButtonViewModel:_.Hu})))))}),"panel-ad-header-image-lockup-view-model",{props:{data:_.SG,
panelContentVisibility:_.SG}});var Rhd=_.Rr(function(a){var b=a.thumbsUp;a=a.thumbsDown;var c=_.h(_.fh(!1,"OxPsH")),d=c.next().value,e=c.next().value;c=_.h(_.fh(!1,"V5vWne"));var g=c.next().value,k=c.next().value;return _.q("div",{class:"ytwThumbsUpDownThumbs"},_.q(_.Hu,{data:b,onToggle:function(m){e(m);g()&&k(!1)},
buttonShapeOverrides:function(){return{toggled:d()}}}),_.q(_.Hu,{data:a,
onToggle:function(m){k(m);d()&&e(!1)},
buttonShapeOverrides:function(){return{toggled:g()}}}))});
Rhd.idomCompat=!0;var Thd=_.Rr(function(a){var b=function(){return a.data().pendingStateEntityKey||""},c=_.tu(kcd,b),d=function(){var e;
if(!(e=a.disabled())){var g;e=!((g=c())==null||!g.isPendingResponse)}return e};
return _.q("you-chat-chips-data",{class:"ytwYouChatChipsDataHost"},_.q(_.ni,{each:function(){return a.data().chipData||[]},
keyBy:"REFERENCE"},function(e){return _.q(Shd,{data:e,disabled:d,pendingStateKey:b,onError:a.onError})}))}),Shd=_.Rr(function(a){var b=_.Rl(),c=_.h(_.fh(!0,"HBREAe")),d=c.next().value,e=c.next().value,g=function(){return a.data().text.content},k=_.ot(function(m){var n,r,t,u,w,A,C,G;
return _.l(function(J){switch(J.nextAddress){case 1:m.stopPropagation();if(a.disabled())return J.return();r=String(Math.floor(((n=_.v().resolve(_.mu)())==null?void 0:n.getCurrentTime())||0)*1E3);t="youchat-"+Date.now();u=function(){_.Fs(a.data().onClick||{});var I=_.fl({continuationCommand:{token:a.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}}),R={inputComposerFormData:{clientMessageId:t,playerOffsetMs:r}};return new Promise(function(ca,V){_.Fs(I,{form:{formData:R},commandController:{onSuccess:function(fa,
aa){ca(aa)},
onServerError:function(fa,aa){V(aa.error)}}})})};
w=lcd(a.pendingStateKey());w(!0);Obd("#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");e(!1);_.me(J,2);return _.p(J,u(),4);case 4:_.Jj(J,3);break;case 2:A=_.re(J),(G=(C=a).onError)==null||G.call(C,A);case 3:w(!1),_.se(J)}})});
return _.q(_.oi,{cond:d,then:function(){return _.q("div",{class:"ytwYouChatChipsDataChipWrapper"},_.q("button",{el:b,class:"ytwYouChatChipsDataChip","data-disabled":a.disabled,"on:click":k,tabindex:0},g))}})});var Uhd=_.Rr(function(a){var b=a.data;return _.q("yt-conversation-resource-view-model",{class:_.jt("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.q(_.oi,{cond:function(){var c;return(c=b().conversationResourceData)==null?void 0:c.learningGuideData},
then:function(c){return _.q(_.ni,{each:function(){return c().sectionData||[]}},function(d){return _.q("div",{class:"ytConversationResourceViewModelHostSectionContainer"},_.q(_.wt,{text:function(){return d.timestamp},
className:"ytConversationResourceViewModelHostTimestampText"}),_.q("div",{class:"ytConversationResourceViewModelHostSectionTextContainer"},_.q(_.wt,{text:function(){return d.title},
className:"ytConversationResourceViewModelHostTitleText"}),_.q(_.wt,{text:function(){return d.summary},
className:"ytConversationResourceViewModelHostSummaryText"})))})}}))});
Uhd.idomCompat=!0;var Vhd={animationConfig:{autoplay:!1,loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:"12 0 48 48"},name:"YOUCHAT_ICON",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}},Whd=_.Rr(function(a){var b=function(){var J;return(J=a.data().text)==null?void 0:J.content},c=function(){var J,I;
return(J=a.data().webData)==null?void 0:(I=J.textResult)==null?void 0:I.content},d=_.v().resolve(_.Ps),e=_.ou(),g=function(){return a.data().chatResponseStyle},k=function(){var J;
return a.data().webData||((J=a.data().text)==null?void 0:J.content)||a.data().videoResultsData||a.data().conversationResourceViewModel},m=function(){var J;
return(J=a.data().videoResultsData)==null?void 0:J.videoShelf},n=function(){var J;
return _.y(((J=a.data().videoResultsData)==null?void 0:J.videoShelf)||{},udd)},r=function(){var J;
return(J=a.data().webData)==null?void 0:J.sourcesShelf},t=function(){var J;
return _.y(((J=a.data().webData)==null?void 0:J.sourcesShelf)||{},udd)},u=function(){return _.y(a.data().conversationResourceViewModel||{},Hdd)},w=function(){return g()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||g()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:a.data().thumbsDownViewModel&&a.data().thumbsUpViewModel},A=function(){return _.y(a.data().thumbsUpViewModel,_.Gu)},C=function(){return _.y(a.data().thumbsDownViewModel,_.Gu)};
_.ti(function(){requestAnimationFrame(function(){var J;(J=a.shouldAnimateIcon)!=null&&J.call(a)&&mcd(e.lottieEl)})});
var G={};return _.q("you-chat-item-view-model",{class:_.jt("ytwYouChatItemViewModelYouChatItemViewModel",(G.ytwYouChatItemViewModelHostLessPadding=function(){return!1},G)),
"data-target-id":function(){return a.data().id||""}},_.q(_.oi,{cond:k,
then:function(){var J={};return _.q("div",{"aria-hidden":"true"},_.q(_.kt,{className:_.jt("ytwYouChatItemViewModelIcon",(J.ytwYouChatItemViewModelRtl=d==="rtl",J.ytwYouChatItemViewModelHidden=function(){return!(a.data().hideIcon||g()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||g()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:k())},J)),
animationName:function(){return Vhd.animationConfig.name},
data:Vhd,animationRef:e}))}}),_.q(_.oi,{cond:k,
then:function(){var J={};return _.q("div",{class:_.jt("ytwYouChatItemViewModelHost",(J.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return g()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},J.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return g()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},J.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return g()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},J)),
role:"alert"},_.q(_.oi,{cond:b,then:function(I){return _.q(_.BQ,{text:I})}}),_.q(_.oi,{cond:c,
then:function(I){return _.q(_.BQ,{text:I})}}),_.q(_.oi,{cond:m,
then:function(){return _.q("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.q(_.AQ,{data:n,hasPeek:!0,disableArrows:!1,protectBackground:!0}))}}),_.q(_.oi,{cond:r,
then:function(){return _.q("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.q(_.AQ,{data:t,hasPeek:!0,disableArrows:!1}))}}),_.q(_.oi,{cond:u,
then:function(){return _.q(Uhd,{data:u})}}),_.q(_.oi,{cond:w,
then:function(){return _.q(Rhd,{thumbsUp:A,thumbsDown:C})}}))}}),_.q(_.oi,{cond:function(){return a.data().chipsData},
then:function(J){return _.q(Thd,{data:J,disabled:a.pending,onError:a.onError})}}))});
Whd.idomCompat={callbacks:{onError:!0,onSend:!0}};var Xhd=_.Rr(function(a){var b=function(){return a.data().choiceSelectedText};
return _.q("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.q(_.oi,{cond:b,then:function(){return _.q("div",{class:"ytYouChatUserTurnChoiceSelected"},_.q(_.wt,{text:b}))}}),_.q("div",{class:"ytYouChatUserTurnUserMessage"},function(){return a.data().text}))});var Yhd=_.Rr(function(a){var b=_.h((0,_.j3b)(a.data)).next().value;return _.q("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return a.data().targetId||""}},_.q(_.Eu,{data:function(){return b().contents}},{chatLoadingViewModel:_.asc,
youChatItemViewModel:function(c){return _.q(Whd,{data:c.data,pending:!1})},
chatUserTurnViewModel:function(c){return _.q(Xhd,{data:c.data})},
accordionViewModel:function(c){return _.q(_.G$b,{data:c.data})},
learningJourneyLoaderViewModel:function(c){return _.q(_.C$b,{data:c.data})}}))});_.Ws(_.Rr(function(a){var b=_.h((0,_.j3b)(a.data)).next().value;return _.q("yt-section-list-renderer",{class:_.jt("ytSectionListRendererHost",a.className),"data-target-id":function(){return a.data().targetId||""}},_.q(_.Eu,{data:function(){return b().contents}},{itemSectionRenderer:Yhd}))}),"yt-section-list-renderer",{props:{data:_.SG,
className:_.Vs}});_.Ws(_.Rr(function(a){var b=function(){return _.y(a.data().inputComposerViewModel,wdd)},c=function(){var w;
return((w=b())==null?void 0:w.youchatPendingResponseEntityKey)||""},d=_.tu(kcd,c),e=function(){var w;
return!((w=d())==null||!w.isPendingResponse)},g=_.h(_.fh(!0,"tZFKKc")),k=g.next().value,m=g.next().value;
g=_.Sl();var n=_.Rl();_.vi(function(){var w;(w=_.v().resolve(_.Wi(_.oG)))==null||w.addEventListener("yt-navigate-start",function(){_.Bu.remove("youchat_messages_section")},{once:!0})});
var r=_.ot(function(w){var A=e()||!1;ncd(n.value);A||w.key!=="Enter"||w.shiftKey||(w.preventDefault(),u());return!1}),t=_.ot(function(){m(n.value.value.length===0);
return!1}),u=function(){var w,A,C,G,J,I,R,ca,V;
return _.l(function(fa){w=n.value.value;n.value.value="";ncd(n.value);A={listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:w}}],insertByPositionInSection:{sectionTargetId:"youchat_messages_section",position:"INSERTION_POSITION_LAST"}}}]}}};_.Fs(A);C=lcd(c());_.Js(((G=b())==null?void 0:G.onSubmitCommand)||{});C(!0);I=String(Math.floor(((J=_.v().resolve(_.mu)())==null?void 0:J.getCurrentTime())||0)*1E3);ca=_.fl({continuationCommand:{token:(R=
b())==null?void 0:R.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}});V=_.fl({inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:w,playerOffsetMs:I}});_.Fs(ca,{form:{formData:V},commandController:{onSuccess:function(){C(!1)},
onServerError:function(){C(!1)}}});
_.se(fa)})};
return _.q("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:g},_.q("div",{class:"chatInputViewModelChatInputWrapper"},_.q("form",{class:"chatInputViewModelChatInputForm"},_.q("textarea",{class:"chatInputViewModelChatInput",el:n,"on:keydown":r,"on:keyup":t,placeholder:function(){var w,A;var C=_.y((A=b())==null?void 0:A.inputFormField,Zcd);return C==null?void 0:(w=C.contentProperties)==null?void 0:w.placeholderText},
rows:1}),_.q(_.Ju,{data:function(){return _.y(a.data().sendButton,_.Fu)},
onClick:function(w){w.preventDefault();u();m(n.value.value.length===0)},
buttonOverrides:function(){return{disabled:k()||e()}}})),_.q(_.wt,{className:"chatInputViewModelChatDisclaimer",
text:function(){var w;return(w=_.y(a.data().disclaimer,_.sEb))==null?void 0:w.text}})))}),"yt-chat-input-view-model",{props:{data:_.SG}});var Zhd=["engagement-panel-clip-create","engagement-panel-clip-view"],$hd=0,aid=function(){var a=_.P.apply(this,arguments)||this;var b;a.headerData=(b=a.data)==null?void 0:b.header;a.darkerPanels=_.x("web_watch_darker_panels");a.disableAutoFill=!1;a.isFullscreen=!1;a.modernPanels=_.x("kevlar_watch_modern_panels");a.liveChatReplyPanel=!1;a.enableAnchoredPanel=_.x("desktop_shorts_v2_anchored_panel");a.disableBackdropFilter=_.x("web_disable_backdrop_filter");a.trackEngagementPanelVisibility=_.x("web_watch_track_engagement_panel_visibility");
a.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 a};
_.z(aid,_.P);_.f=aid.prototype;
_.f.configureRendererStamper=function(){return{headerData:{id:"header",mapping:{engagementPanelTitleHeaderRenderer:{component:"ytd-engagement-panel-title-header-renderer",properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",targetId:"[[data.targetId]]",shortsPanel:"[[shortsPanel]]"}},panelAdHeaderImageLockupViewModel:{component:"panel-ad-header-image-lockup-view-model"},pageHeaderViewModel:{component:"yt-page-header-view-model"}},events:!0},"data.content":{id:"content",mapping:{sectionListRenderer:{matcher:function(a){a=
a==null?void 0:a.contents;if(!a||a.length<1)return"ytd-section-list-renderer";var b,c;a=(b=a[0])==null?void 0:(c=b.itemSectionRenderer)==null?void 0:c.contents;if(!a||a.length<1)return"ytd-section-list-renderer";var d;return((d=a[0])==null?0:d.youChatItemViewModel)?"yt-section-list-renderer":"ytd-section-list-renderer"},
params:{engagementPanel:!0},properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",inReplyPanel:"[[liveChatReplyPanel]]",engagementPanelDropdown:"[[dropdown]]",engagementPanelDialog:"[[dialog]]",disableAutoFill:"[[disableAutoFill]]"}},continuationItemRenderer:"ytd-continuation-item-renderer",richGridRenderer:"ytd-rich-grid-renderer",transcriptRenderer:"ytd-transcript-renderer",clipSectionRenderer:"ytd-clip-section-renderer",adsEngagementPanelContentRenderer:"ytd-ads-engagement-panel-content-renderer",
macroMarkersListRenderer:"ytd-macro-markers-list-renderer",searchInVideoRenderer:"ytd-search-in-video-renderer",structuredDescriptionContentRenderer:{component:"ytd-structured-description-content-renderer",params:{engagementPanel:!0},properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[isWatchWhilePanel]]"}},mediaUpsellRenderer:"ytd-media-upsell-renderer",productListRenderer:"ytd-product-list-renderer",contentLoadingRenderer:"yt-content-loading-renderer",flowRootRenderer:"ytd-flow-root-renderer",
sponsorshipsGiftingOptInRenderer:"ytd-sponsorships-gifting-opt-in-renderer",playlistCollaborationViewModel:"playlist-collaboration-view-model"},events:!0},"data.footer":{id:"footer",mapping:{commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",params:{fullWidth:!0}},cardItemRenderer:"yt-card-item-renderer",chatInputViewModel:"yt-chat-input-view-model",liveChatEngagementPanelInputRenderer:{component:"yt-live-chat-engagement-panel-input-renderer",properties:{inReplyPanel:"[[liveChatReplyPanel]]",
hideBorder:"[[hideFooterBorder]]"}},liveLeaderboardItemViewModel:"ytvl-live-leaderboard-item-view-model",disableableButtonViewModel:"yt-disableable-button-view-model"}}}};
_.f.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var a;if((a=this.hostElement.parentElement)==null?0:a.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.f.detached=function(){this.updateTheaterDisablement()};
_.f.showPanel=function(){var a=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.zk.addJob(function(){a.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.f.maybeScrollToItemSection=function(a){var b=this,c,d=a==null?void 0:(c=a.sectionListEngagementPanelExtras)==null?void 0:c.scrollToItemSectionIdentifier;d&&_.zk.addJob(function(){var e;(e=b.sectionListRendererElement)==null||e.scrollToItemSection(d)},8)};
_.f.hidePanel=function(){var a=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.zk.addJob(function(){a.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.f.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.f.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.f.updatePanel=function(a,b,c,d){var e=this;if((a=a==null?void 0:a.engagementPanelSectionListRenderer)||d){if(a){d=a.header;var g=a.content,k=a.footer;(a=a.targetId)&&this.set("data.targetId",a);d&&this.set("data.header",d);g&&this.set("data.content",g);k&&this.set("data.footer",k)}else d&&(a=d.content,g=d.secondaryHeaderContent,(d=d.targetId)&&this.set("data.targetId",d),a&&this.set("data.content",a),g&&(this.secondaryHeaderData=g));this.updateChildVisibilityProperties();if(b){var m;_.x("kevlar_update_panel_focus_scroll_killswitch")||
(m={preventScroll:!0});this.focus(m)}_.Tm(this,function(){_.go(e.hostElement,"yt-refit");e.maybeScrollToItemSection(c)})}};
_.f.computeHeaderData=function(){var a,b=(0,_.yf.unsafeClone)((a=this.data)==null?void 0:a.header);if(b){a=new _.X(Object.keys(b)[0]);var c=_.y(b,a),d=_.y(this.secondaryHeaderData,a);d&&_.zs(b,a,Object.assign({},d,c))}return b};
_.f.getReloadContinuation=function(){var a,b,c,d=_.h(((a=this.data)==null?void 0:(b=a.content)==null?void 0:(c=b.sectionListRenderer)==null?void 0:c.continuations)||[]);for(a=d.next();!a.done;a=d.next())if(a=a.value,a.reloadContinuationData)return a.reloadContinuationData.continuation};
_.f.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var a;((a=this.data)==null?0:a.targetId)&&(a=this.contentElement.firstElementChild)&&a.setAttribute("panel-target-id",this.data.targetId)};
_.f.forwardPopupClosedToFlowRootRenderer=function(){var a=_.E(this.hostElement).querySelector("ytd-flow-root-renderer");if(a)a.onPopupClosed()};
_.f.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));if(_.x("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"){var a;this.visibility=(a=this.data)==null?void 0:a.visibility;var b;this.trackEngagementPanelVisibility&&((b=this.data)==null?void 0:b.visibility)===
"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var c,d,e,g;this.contentEmpty=!!(((c=this.data)==null?0:(d=c.content)==null?0:d.structuredDescriptionContentRenderer)&&Object.keys((e=this.data)==null?void 0:(g=e.content)==null?void 0:g.structuredDescriptionContentRenderer).length===0);(a=_.v().resolve(_.FJ))&&a.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",
this.visibility=this.data.visibility};
_.f.isFullscreenChanged=function(){this.isFullscreen&&_.x("web_watch_close_eps_on_fullscreen")&&this.hidePanel()};
_.f.focus=function(a){if(this.header)this.header.focus(a);else{var b;(b=_.E(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||b.focus(a)}};
_.f.visibilityChanged=function(){if(!_.x("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var a=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",b=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",c=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",d=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",e=d||!this.lastVisibility,g,k,m=(g=this.data)==null?void 0:(k=g.identifier)==null?void 0:k.tag,
n;if(((n=this.data)==null?0:n.onShowCommands)&&a&&e)_.no(this.hostElement,this.data.onShowCommands,this.hostElement),m&&_.Yp().dispatch(_.gp({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:m}}));else{var r;((r=this.data)==null?0:r.onHideCommands)&&b&&c&&(_.no(this.hostElement,this.data.onHideCommands,this.hostElement),m&&_.Yp().dispatch(_.gp({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:m}})))}a&&this.lastVisibility!==void 0&&(this.hostElement.style.order=String(-1*$hd++));_.x("kevlar_watch_focus_on_engagement_panels")&&
a&&d&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.f.notifyVisibilityChanged=function(a){var b;_.ko(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,a,(b=this.data)==null?void 0:b.targetId])};
_.f.updateTheaterDisablement=function(){if(!_.x("kevlar_watch_theater_disablement_killswitch")){var a=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&Zhd.includes(a)&&!_.x("watch_next_grid_ignore_disallowed_panels")){var b=_.FW(_.Yp().getState()),c=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";a!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():c?(this.originalTheaterState===void 0&&(this.originalTheaterState=b,this.theaterDisablementPanelIdentifier=
a),b&&_.ho(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.f.clearTheaterDisablement=function(){_.ho(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.f.updateChildVisibilityProperties=function(){this.hostElement||_.x("kevlar_panel_property_init_killswitch")||this._enableProperties();var a=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=a);var b,c=(b=this.headerElement)==null?void 0:b.firstElementChild;if(c&&!this.adHeaderImageLockupViewModel){b=a==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";c.collapsed=b;c=_.E(c).querySelector("#visibility-button");if(!c)return;(c=c.firstElementChild)&&
c.polymerController.is==="ytd-toggle-button-renderer"&&c.polymerController.data.isToggled!==b&&c.polymerController.set("data.isToggled",b)}var d;if(b=(d=this.contentElement)==null?void 0:d.firstElementChild)if(a&&a!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")b.removeAttribute("panel-content-visible");else{b.setAttribute("panel-content-visible","");var e;(e=b.markDirty)==null||e.call(b)}};
_.f.onYtChangeEngagementPanelVisibilityAction=function(a){var b=this,c,d=(c=this.data)==null?void 0:c.targetId,e,g,k;c=((e=this.data)==null?void 0:(g=e.identifier)==null?void 0:g.tag)||((k=this.data)==null?void 0:k.panelIdentifier);var m=_.y(a,_.Dzb),n;a=d&&(m==null?void 0:m.targetId)===d||c&&(m==null?void 0:(n=m.panelIdentifier)==null?void 0:n.tag)===c;this.dialog&&a&&(m==null?void 0:m.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(d==="engagement-panel-comments-section"?_.ho(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.ho(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",c]));d=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";n=this.isFullscreen&&_.x("kevlar_single_panel_fullscreen");d=!a&&(m==null?void 0:m.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&!d&&n;_.x("kevlar_use_engagement_panel_management_component")||(a?(d=m.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&
!d?_.zk.addJob(function(){b.visibility=m.visibility},2,this.hideDelayMs):this.visibility=m.visibility,m.visibility&&this.notifyVisibilityChanged(m.visibility)):d&&this.hidePanel())};
_.f.onYtScrollToEngagementPanelCommand=function(a){var b,c=(b=this.data)==null?void 0:b.targetId,d,e,g;b=((d=this.data)==null?void 0:(e=d.identifier)==null?void 0:e.tag)||((g=this.data)==null?void 0:g.panelIdentifier);a=_.y(a,_.Ozb);var k;(c&&(a==null?void 0:a.targetId)===c||b&&(a==null?void 0:(k=a.panelIdentifier)==null?void 0:k.tag)===b)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.ho(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.f.attachVEs=function(a){var b,c;(a==null?0:(b=a.content)==null?0:(c=b.productListRenderer)==null?0:c.trackingParams)&&_.ms().graftServerVe(a.content.productListRenderer.trackingParams);var d,e;(a==null?0:(d=a.content)==null?0:(e=d.transcriptRenderer)==null?0:e.trackingParams)&&_.ms().graftServerVe(a.content.transcriptRenderer.trackingParams)};
_.f.onYtUpdateEngagementPanelAction=function(a){var b,c=(b=this.data)==null?void 0:b.targetId;a=_.y(a,ddd);c&&(a==null?void 0:a.targetId)===c&&(this.updatePanel({engagementPanelSectionListRenderer:{header:a==null?void 0:a.header,content:a==null?void 0:a.content}},!1),this.attachVEs(a))};
_.f.onYtShowEngagementPanelScrimAction=function(a){var b,c=(b=this.data)==null?void 0:b.targetId;a=_.y(a,cdd);c&&(a==null?void 0:a.engagementPanelTargetId)===c&&(this.scrimmed=!0)};
_.f.onYtHideEngagementPanelScrimAction=function(a){var b,c=(b=this.data)==null?void 0:b.targetId;a=_.y(a,add);c&&(a==null?void 0:a.engagementPanelTargetId)===c&&(this.scrimmed=!1)};
_.f.getIdentifier=function(){var a,b,c;return((a=this.data)==null?void 0:a.panelIdentifier)||((b=this.data)==null?void 0:(c=b.identifier)==null?void 0:c.tag)};
_.f.getSurface=function(){var a,b;return(a=this.data)==null?void 0:(b=a.identifier)==null?void 0:b.surface};
_.Vm.Object.defineProperties(aid.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var a=this.getIdentifier();return a==="engagement-panel-youchat"||a==="PAyouchat"}}});
var n$=aid;n$.prototype.visibilityChanged=n$.prototype.visibilityChanged;n$.prototype.isFullscreenChanged=n$.prototype.isFullscreenChanged;n$.prototype.dataChanged=n$.prototype.dataChanged;n$.prototype.forwardPopupClosedToFlowRootRenderer=n$.prototype.forwardPopupClosedToFlowRootRenderer;n$.prototype.onYtRendererstamperFinished=n$.prototype.onYtRendererstamperFinished;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],n$.prototype,"actionHandlerBehavior",void 0);
_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],n$.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],n$.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.CK.YtEventForwardingBehavior),_.W("design:type",Object)],n$.prototype,"ytEventForwardingBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],n$.prototype,"data",void 0);
_.U([_.O({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.W("design:type",Object)],n$.prototype,"headerData",void 0);_.U([_.O(),_.W("design:type",Object)],n$.prototype,"secondaryHeaderData",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],n$.prototype,"visibility",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],n$.prototype,"contentEmpty",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],n$.prototype,"scrimmed",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],n$.prototype,"dialog",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],n$.prototype,"dropdown",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],n$.prototype,"darkerPanels",void 0);_.U([_.O(),_.W("design:type",Object)],n$.prototype,"disableAutoFill",void 0);
_.U([_.O({reflectToAttribute:!0,value:_.x("optimal_reading_width_comments_ep")}),_.W("design:type",Boolean)],n$.prototype,"optimalReadingWidthComments",void 0);_.U([_.O(),_.W("design:type",Number)],n$.prototype,"hideDelayMs",void 0);_.U([_.O({selector:_.H8,reflectToAttribute:!0}),_.W("design:type",Object)],n$.prototype,"isFullscreen",void 0);_.U([_.O(),_.W("design:type",Number)],n$.prototype,"showDelayMs",void 0);
_.U([_.O({reflectToAttribute:!0}),_.K("data.targetId"),_.W("design:type",Object),_.W("design:paramtypes",[])],n$.prototype,"targetId",null);_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],n$.prototype,"webSize",null);_.U([_.O(),_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],n$.prototype,"hideFooterBorder",null);_.U([_.O(),_.W("design:type",Object)],n$.prototype,"isWatch",void 0);
_.U([_.O(),_.W("design:type",Object)],n$.prototype,"originalTheaterState",void 0);_.U([_.O(),_.W("design:type",Object)],n$.prototype,"theaterDisablementPanelIdentifier",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],n$.prototype,"modernPanels",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],n$.prototype,"isWatchWhilePanel",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],n$.prototype,"shortsPanel",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],n$.prototype,"liveChatEngagementPanel",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],n$.prototype,"liveChatReplyPanel",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],n$.prototype,"enableAnchoredPanel",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],n$.prototype,"disableBackdropFilter",void 0);
_.U([_.O(),_.W("design:type",Object)],n$.prototype,"trackEngagementPanelVisibility",void 0);_.U([_.gr("#header"),_.W("design:type",HTMLElement)],n$.prototype,"headerElement",void 0);_.U([_.gr("#header > *"),_.W("design:type",HTMLElement)],n$.prototype,"header",void 0);_.U([_.gr("ytd-section-list-renderer"),_.W("design:type",Object)],n$.prototype,"sectionListRendererElement",void 0);
_.U([_.gr("panel-ad-header-image-lockup-view-model"),_.W("design:type",HTMLElement)],n$.prototype,"adHeaderImageLockupViewModel",void 0);_.U([_.gr("#content"),_.W("design:type",HTMLElement)],n$.prototype,"contentElement",void 0);_.U([_.M("yt-rendererstamper-finished"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],n$.prototype,"onYtRendererstamperFinished",null);
_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],n$.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],n$.prototype,"dataChanged",null);_.U([_.N("isFullscreen"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],n$.prototype,"isFullscreenChanged",null);
_.U([_.N("visibility"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],n$.prototype,"visibilityChanged",null);n$=_.U([_.Q({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],n$);
_.S(n$,"ytd-engagement-panel-section-list-renderer",function(){if(chd!==void 0)return chd;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return chd=a},{mode:_.as("kevlar_poly_si_batch_j028")?1:2});var bid;var cid=function(){var a=_.P.apply(this,arguments)||this;a.lastRenderedPanelIds=new Set;a.visiblePanels=[];a.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return a};
_.z(cid,_.P);_.f=cid.prototype;_.f.dataChanged=function(){if(this.data){for(var a=[],b=_.h(this.data),c=b.next();!c.done;c=b.next()){c=c.value;var d=void 0,e=void 0,g=(d=c)==null?void 0:(e=d.engagementPanelSectionListRenderer)==null?void 0:e.visibility;e=d=void 0;((d=c)==null?0:(e=d.engagementPanelSectionListRenderer)==null?0:e.targetId)&&g!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&a.push(c)}this.visiblePanels=a}else this.visiblePanels=[]};
_.f.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}}};
_.f.withoutVisiblePanelById=function(a){return this.visiblePanels.filter(function(b){var c;return((c=b.engagementPanelSectionListRenderer)==null?void 0:c.targetId)!==a})};
_.f.onYtChangeEngagementPanelVisibilityAction=function(a){var b=this,c=_.y(a,_.Dzb);if(this.data&&(c==null?0:c.targetId)&&(c==null?0:c.visibility)){var d,e=(d=this.data.find(function(k){var m;return((m=k.engagementPanelSectionListRenderer)==null?void 0:m.targetId)===c.targetId}))==null?void 0:d.engagementPanelSectionListRenderer;
if(e){var g=this.withoutVisiblePanelById(c.targetId);c.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(a=this.data.find(function(k){var m;return((m=k.engagementPanelSectionListRenderer)==null?void 0:m.targetId)===c.targetId}))&&(g=[a].concat(_.Be(g)));
this.hideDelayMs&&c.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&g.length===0?_.zk.addJob(function(){e.visibility=c.visibility;b.visiblePanels=g},10,this.hideDelayMs):(e.visibility=c.visibility,this.visiblePanels=g);
_.ko(this.hostElement,"yt-engagement-panels-visible-changed",[g])}}};
_.f.onRendererstamperFinished=function(){var a=new Set(this.visiblePanels.map(function(b){var c;return(c=b.engagementPanelSectionListRenderer)==null?void 0:c.targetId}));
this.handlePanelVisibilityChange(a,this.lastRenderedPanelIds);this.lastRenderedPanelIds=a};
_.f.handlePanelVisibilityChange=function(a,b){a=a===void 0?new Set:a;b=b===void 0?new Set:b;if(this.data)for(var c=_.h(this.data),d=c.next();!d.done;d=c.next()){d=d.value;var e=void 0,g=void 0,k=(e=d)==null?void 0:(g=e.engagementPanelSectionListRenderer)==null?void 0:g.targetId;if(k&&(e=b.has(k),g=a.has(k),k=void 0,!e&&g?(g=e=void 0,k=(e=d)==null?void 0:(g=e.engagementPanelSectionListRenderer)==null?void 0:g.onShowCommands):e&&!g&&(g=e=void 0,k=(e=d)==null?void 0:(g=e.engagementPanelSectionListRenderer)==
null?void 0:g.onHideCommands),k))for(d=_.h(k),k=d.next();!k.done;k=d.next())this.ytComponentBehavior.resolveCommand(k.value)}};
var o$=cid;o$.prototype.onRendererstamperFinished=o$.prototype.onRendererstamperFinished;o$.prototype.dataChanged=o$.prototype.dataChanged;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],o$.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],o$.prototype,"actionHandlerBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],o$.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],o$.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],o$.prototype,"lastRenderedPanelIds",void 0);_.U([_.O(),_.W("design:type",Number)],o$.prototype,"hideDelayMs",void 0);_.U([_.O(),_.W("design:type",Array)],o$.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Array)],o$.prototype,"visiblePanels",void 0);_.U([_.O(),_.W("design:type",Boolean)],o$.prototype,"isWatchWhilePanel",void 0);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],o$.prototype,"dataChanged",null);_.U([_.M("yt-rendererstamper-finished"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],o$.prototype,"onRendererstamperFinished",null);o$=_.U([_.Q({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],o$);
_.S(o$,"ytd-watch-engagement-panels",function(){if(bid!==void 0)return bid;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return bid=a},{mode:1});var did;var p$=function(){return _.P.apply(this,arguments)||this};
_.z(p$,_.P);p$.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.Yd(_.E(this.hostElement).querySelector("#text"),_.ecb(_.hcb,this.data.companionLegalText))};
p$.prototype.computeAutoScrollEnabled=function(a,b){return a&&!b};
p$.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
p$.prototype.onToggleTap=function(){this.expanded=!this.expanded};
var q$=p$;q$.prototype.expandedChanged=q$.prototype.expandedChanged;q$.prototype.dataChanged=q$.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],q$.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.f6c),_.W("design:type",Object)],q$.prototype,"ytdAutoScrollBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],q$.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],q$.prototype,"expanded",void 0);
_.U([_.O({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.W("design:type",Boolean)],q$.prototype,"autoScrollEnabled",void 0);_.U([_.O(),_.W("design:type",String)],q$.prototype,"expanderIcon",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],q$.prototype,"dataChanged",null);
_.U([_.N("expanded"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],q$.prototype,"expandedChanged",null);q$=_.U([_.Q({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],q$);
_.S(q$,"ytd-companion-legal-text-renderer",function(){if(did!==void 0)return did;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return did=a},{mode:1});var eid;var r$,fid=function(){var a=_.P.apply(this,arguments)||this;a.buttonUpdate=_.x("web_modern_buttons");a.kevlarWatchGrid=_.x("kevlar_watch_grid");a.centerAlignDescription=_.x("action_companion_center_align_description");a.truncateDomain=_.x("action_companion_truncate_domain");return a};
_.z(fid,_.P);_.f=fid.prototype;_.f.computeButtonOverride=function(){if(this.buttonUpdate)return{style:"call-to-action",type:"filled"}};
_.f.getOnLayoutVisibleCallback=function(){var a=_.Ji("yt.www.ads.eventcache.getLastCompanionData");return a?(a=a())&&a.onLayoutVisibleCallback:null};
_.f.getLayoutId=function(){var a=_.Ji("yt.www.ads.eventcache.getLastCompanionData");return a?(a=a())&&a.layoutId:null};
_.f.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",r$.JSC$19941_DEFAULT_AD_BADGE_RENDERER);var a=this.getOnLayoutVisibleCallback();a&&a()}};
_.f.getButtonRenderer=function(a){return a.actionButton&&_.y(a.actionButton,_.OE)?(delete _.y(a.actionButton,_.OE).navigationEndpoint,_.y(a.actionButton,_.OE)):{}};
_.f.onClick=function(a){var b=this;if((!_.x("web_modern_buttons")||!_.Xt(_.Pq(a),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){a=_.bu();var c=this.getLayoutId();a&&c&&_.x("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?a.getPlayerPromise().then(function(d){(new _.zM(d)).executeCommand(b.data.navigationEndpoint,c)}):_.x("kevlar_companion_resolve_command_killswitch")?_.go(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.ho(this.hostElement,"yt-companion-ad-clicked",["action-companion",c])}};
_.Vm.Object.defineProperties(fid.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return((a=this.data)==null?0:(b=a.detailsLine)==null?0:(c=b.adRating)==null?0:c.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 a,b,c,d;return((a=this.data)==null?0:(b=a.detailsLine)==null?0:(c=b.adRating)==null?0:(d=c.ratingIcon)==null?0:d.iconType)?_.fs(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d;return((a=this.data)==null?0:(b=a.detailsLine)==null?0:(c=b.texts)==null?0:(d=c[0])==null?0:d.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 a,b;return((a=this.data)==null?0:(b=a.description)==null?0:b.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var a=_.Ji("yt.www.ads.eventcache.getLastCompanionData");return a?(a=a())&&a.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var a=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return a?a.indexOf("/default_banner")!==-1:!0}}});
var s$=r$=fid;r$.prototype.onClick=r$.prototype.onClick;r$.prototype.dataChanged=r$.prototype.dataChanged;s$.JSC$19941_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.to("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],s$.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],s$.prototype,"rendererBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],s$.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],s$.prototype,"buttonUpdate",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],s$.prototype,"kevlarWatchGrid",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],s$.prototype,"centerAlignDescription",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],s$.prototype,"truncateDomain",void 0);
_.U([_.O({computed:"computeButtonOverride(buttonUpdate)"}),_.W("design:type",Object)],s$.prototype,"buttonOverride",void 0);_.U([_.K("data.detailsLine.adRating.ratingText"),_.W("design:type",Object),_.W("design:paramtypes",[])],s$.prototype,"getRating",null);_.U([_.K("getRating"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],s$.prototype,"computeRatingHidden",null);
_.U([_.K("data.detailsLine.adRating.ratingIcon.iconType"),_.W("design:type",Object),_.W("design:paramtypes",[])],s$.prototype,"iconType",null);_.U([_.K("data.detailsLine.texts.0.text"),_.W("design:type",Object),_.W("design:paramtypes",[])],s$.prototype,"getDetailsLine",null);_.U([_.K("getDetailsLine"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],s$.prototype,"computeDetailsLineHidden",null);
_.U([_.K("data.description.text"),_.W("design:type",Object),_.W("design:paramtypes",[])],s$.prototype,"getDescriptionText",null);_.U([_.K("getDescriptionText"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],s$.prototype,"computeDescriptionTextHidden",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],s$.prototype,"interactionLoggingClientData",null);
_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],s$.prototype,"hideBanner",null);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],s$.prototype,"dataChanged",null);_.U([_.M("click"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],s$.prototype,"onClick",null);s$=r$=_.U([_.Q({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],s$);
_.S(s$,"ytd-action-companion-ad-renderer",function(){if(eid!==void 0)return eid;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return eid=a},{mode:_.as("kevlar_poly_si_batch_j067")?1:2});var gid;var hid;var iid=function(){var a=_.P.apply(this,arguments)||this;a.buttonUpdate=_.x("web_modern_buttons");a.hideLegacyBanner=_.x("enable_dsa_one_click_ata_translators_infeed_elements");a.adInfoButtonStyle="mono";a.adInfoButtonType="text";a.noDotAdBadge=!0;return a};
_.z(iid,_.P);_.f=iid.prototype;_.f.getOnLayoutVisibleCallback=function(){var a=_.Ji("yt.www.ads.eventcache.getLastCompanionData");return a?(a=a())&&a.onLayoutVisibleCallback:null};
_.f.getLayoutId=function(){var a=_.Ji("yt.www.ads.eventcache.getLastCompanionData");return a?(a=a())&&a.layoutId:null};
_.f.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 a=this.data.image.thumbnail.thumbnails[0];this.imageSrc=a.url?_.Gd(a.url):void 0;this.imageWidth=a.width||0;this.imageHeight=a.height||0}this.data.clickthroughEndpoint&&_.y(this.data.clickthroughEndpoint,_.Ml)&&(a=_.y(this.data.clickthroughEndpoint,_.Ml).url,_.x("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
a||"":a?(a=_.Gd(a),this.clickThroughUrl=_.Cd(a)):this.clickThroughUrl=void 0);(a=this.getOnLayoutVisibleCallback())&&a()}};
_.f.onClick=function(a){_.Xt(_.Pq(a),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(a)};
_.f.handleClick=function(){var a=this;this.data&&this.data.clickthroughEndpoint&&(_.go(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(b){a.macroReplacementBehavior.sendServiceRequestAction([b])}),_.ho(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.f.onLoad=function(){_.ko(this.hostElement,"yt-refit-popups-action")};
_.Vm.Object.defineProperties(iid.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var a=_.Ji("yt.www.ads.eventcache.getLastCompanionData");return a?(a=a())&&a.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var a=_.Ji("yt.www.ads.eventcache.getLastCompanionData");return a?(a=a())&&a.interactionLoggingClientData:null}}});
var t$=iid;t$.prototype.onLoad=t$.prototype.onLoad;t$.prototype.onClick=t$.prototype.onClick;t$.prototype.dataChanged=t$.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],t$.prototype,"rendererBehavior",void 0);_.U([_.H(Afd.YtMacroReplacementBehavior),_.W("design:type",Object)],t$.prototype,"macroReplacementBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],t$.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],t$.prototype,"buttonUpdate",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],t$.prototype,"hideLegacyBanner",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],t$.prototype,"adInfoButtonStyle",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],t$.prototype,"adInfoButtonType",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],t$.prototype,"macros",null);
_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],t$.prototype,"interactionLoggingClientData",null);_.U([_.O(),_.W("design:type",String)],t$.prototype,"clickThroughUrl",void 0);_.U([_.O(),_.W("design:type",_.yd)],t$.prototype,"imageSrc",void 0);_.U([_.O(),_.W("design:type",Number)],t$.prototype,"imageWidth",void 0);_.U([_.O(),_.W("design:type",Number)],t$.prototype,"imageHeight",void 0);_.U([_.O(),_.W("design:type",Object)],t$.prototype,"noDotAdBadge",void 0);
_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],t$.prototype,"dataChanged",null);_.U([_.M("click"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],t$.prototype,"onClick",null);_.U([_.M("load"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],t$.prototype,"onLoad",null);t$=_.U([_.Q({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],t$);
_.S(t$,"ytd-image-companion-renderer",function(){if(hid!==void 0)return hid;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return hid=a},{mode:_.as("kevlar_poly_si_batch_j067")?1:2});var jid;var u$,kid=function(){return _.P.apply(this,arguments)||this};
_.z(kid,_.P);_.f=kid.prototype;_.f.dataChanged=function(){this.set("data.adBadge",u$.JSC$19950_DEFAULT_AD_BADGE_RENDERER);if(this.data){var a=this.getOnLayoutVisibleCallback();a&&a()}};
_.f.getOnLayoutVisibleCallback=function(){var a=_.Ji("yt.www.ads.eventcache.getLastCompanionData");return a?(a=a())&&a.onLayoutVisibleCallback:null};
_.f.getLayoutId=function(){var a=_.Ji("yt.www.ads.eventcache.getLastCompanionData");return a?(a=a())&&a.layoutId:null};
_.f.onCompanionClicked=function(a){this.data&&(a.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.ho(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.f.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var a=_.bu(),b=this.getLayoutId(),c=this.data.clickToAdvSiteEndpoint;a&&b&&_.x("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?a.getPlayerPromise().then(function(d){(new _.zM(d)).executeCommand(c,b)}):_.go(this.hostElement,"yt-navigate",{endpoint:c})}};
_.f.sendTrackingPings=function(a){if(a&&a.length!==0&&a[0].loggingUrls&&(a=a[0].loggingUrls.map(this.getBaseUrl)))for(var b=0;b<a.length;b++)_.Jk(a[b])};
_.f.getBaseUrl=function(a){return a.baseUrl||""};
_.Vm.Object.defineProperties(kid.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var a=_.Ji("yt.www.ads.eventcache.getLastCompanionData");return a?(a=a())&&a.interactionLoggingClientData:null}}});
var v$=u$=kid;u$.prototype.onCompanionClicked=u$.prototype.onCompanionClicked;u$.prototype.dataChanged=u$.prototype.dataChanged;v$.JSC$19950_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.to("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],v$.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],v$.prototype,"data",void 0);
_.U([_.gr("#title"),_.W("design:type",HTMLElement)],v$.prototype,"shopTitle",void 0);_.U([_.kr("data.impressionEndpoints"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],v$.prototype,"dataChanged",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],v$.prototype,"interactionLoggingClientData",null);
_.U([_.M("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],v$.prototype,"onCompanionClicked",null);v$=u$=_.U([_.Q({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],v$);
_.S(v$,"ytd-shopping-companion-renderer",function(){if(jid!==void 0)return jid;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return jid=a},{mode:1});_.Ws(_.Rr(function(a){var b=a.data;var c=_.Rl();_.cv(c,function(){return b().interaction},ocd);
_.$l(c,{visibilityCallback:function(d){var e,g=(e=b().interaction)==null?void 0:e.onFirstVisible;d&&g&&_.Js(g)},
showOption:_.nL});_.vh(function(){var d,e;e=(e=_.Ji("yt.www.ads.eventcache.getLastCompanionData"))?(e=e())&&e.onLayoutVisibleCallback:null;(d=e)==null||d()},"M2RYmb");
_.Tl(c,"load",function(){_.ko(c.value,"yt-refit-popups-action")});
return _.q("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost",el:c,"aria-label":function(){var d,e;return(d=b().interaction)==null?void 0:(e=d.accessibility)==null?void 0:e.label}},_.q("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.q(_.Eu,{data:function(){return b().adImage}},{adImageViewModel:function(d){return _.q(_.wN,{data:d.data,
targetHeight:80,customCommandResolver:ocd})}})),_.q("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.q("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.q(_.Eu,{data:function(){return b().adBadge}},{adBadgeViewModel:function(d){return _.q(_.sL,{data:d.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.q("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.q(_.Eu,{data:function(){return b().menu}},{buttonViewModel:_.Ju}))))}),"banner-image-layout-view-model",{props:{data:_.SG}});_.Ws(_.Rr(function(a){var b=a.data;a=_.Rl();_.cv(a,function(){return b().interaction},pcd);
_.$l(a,{visibilityCallback:function(c){var d,e=(d=b().interaction)==null?void 0:d.onFirstVisible;c&&e&&_.Js(e)},
showOption:_.nL});_.vh(function(){var c,d;d=(d=_.Ji("yt.www.ads.eventcache.getLastCompanionData"))?(d=d())&&d.onLayoutVisibleCallback:null;(c=d)==null||c()},"SpIi5e");
return _.q("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:a},_.q("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.q(_.Eu,{data:function(){return b().adImage}},{adImageViewModel:function(c){return _.q(_.wN,{data:c.data,
targetHeight:80,customCommandResolver:pcd})}})),_.q("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.q("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.q(_.Eu,{data:function(){return b().adAvatarLockup}},{adAvatarLockupViewModel:function(c){return _.q(Qhd,{data:c.data,
customCommandResolver:pcd})}})),_.q(_.Eu,{data:function(){return b().adButton}},{adButtonViewModel:function(c){return _.q(_.pL,{data:c.data,
customCommandResolver:pcd})}}),_.q("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.q(_.Eu,{data:function(){return b().menu}},{buttonViewModel:_.Ju}))))}),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.SG}});var lid={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"},mid=function(){var a=_.P.apply(this,arguments)||this;a.updateCompanionDataJobId=0;a.contentVideoId=null;a.player=null;a.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return a};
_.z(mid,_.P);_.f=mid.prototype;_.f.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:lid}}};
_.f.attached=function(){var a=this,b=_.bu();b&&b.getPlayerPromise().then(function(c){a.getCachedDataAndListen(c)})};
_.f.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.f.updateRendererStamper=function(){var a={};if(this.data)for(var b in lid)if(this.data[b]){a[b]=this.data[b];break}if(this.oneofRenderer!=void 0||Object.keys(a).length)this.oneofRenderer=a};
_.f.getCachedDataAndListen=function(a){var b=this.retrieveCachedCompanionData();b&&Object.keys(b).length&&this.receiveCompanionData(b);this.ytPlayerListenerBehavior.listenToPlayerEvent(a,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=a};
_.f.retrieveCachedCompanionData=function(){return _.ja.yt&&_.ja.yt.www&&_.ja.yt.www.ads&&_.ja.yt.www.ads.eventcache&&_.ja.yt.www.ads.eventcache.getLastCompanionData?_.ja.yt.www.ads.eventcache.getLastCompanionData():null};
_.f.receiveCompanionData=function(a){a&&Object.keys(a).length?(this.contentVideoId=a.contentVideoId,this.setCompanionData(a)):this.setCompanionData(a)};
_.f.setCompanionData=function(a){this.cancelPendingCompanionAdJobs();if(a){this.updateCompanionDataJobId=0;for(var b in lid)lid.hasOwnProperty(b)&&(this.data[b]=void 0);a.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",a.shoppingCompanionCarouselRenderer):a.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",a.imageCompanionAdRenderer):a.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",a.actionCompanionAdRenderer),_.ko(this.hostElement,
"yt-hide-unlimited-offer-module"),_.ko(this.hostElement,"yt-hide-tvfilm-offer-module")):a.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",a.bannerImageLayoutViewModel):a.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",a.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.f.dataChanged=function(){var a=this,b=_.bu();b?b.getPlayerPromise().then(function(c){a.contentVideoId&&c.getVideoUrl().includes("v="+a.contentVideoId)||(a.cancelPendingCompanionAdJobs(),a.updateRendererStamper())}):_.Ki(Error("cm"))};
_.f.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.zk.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.f.handleCompanionAdClicked=function(a,b){this.player.onAdUxClicked(a,b);this.player.pauseVideo()};
var w$=mid;w$.prototype.dataChanged=w$.prototype.dataChanged;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],w$.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],w$.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],w$.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],w$.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.H(_.YI.YtPlayerListenerBehavior),_.W("design:type",_.ZI)],w$.prototype,"ytPlayerListenerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],w$.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],w$.prototype,"oneofRenderer",void 0);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],w$.prototype,"dataChanged",null);w$=_.U([_.Q({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],w$);
_.S(w$,"ytd-companion-slot-renderer",function(){if(gid!==void 0)return gid;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return gid=a},{mode:_.as("kevlar_poly_si_batch_j067")?
1:2});var nid;var oid=function(){return _.P.apply(this,arguments)||this};
_.z(oid,_.P);oid.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
var x$=oid;x$.prototype.dataChanged=x$.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],x$.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],x$.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],x$.prototype,"companionSlotData",void 0);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],x$.prototype,"dataChanged",null);
x$=_.U([_.Q({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],x$);
_.S(x$,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(nid!==void 0)return nid;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return nid=a},{mode:1});var pid;var qid=function(){var a=_.P.apply(this,arguments)||this;a.skinnyMode=!1;a.COMPACT_EVENT_COUNT=4;a.onShelfToggleButtonTap=function(){a.logTap(a.data);a.showingMore=!a.showingMore};
a.onShelfToggleButtonFocus=function(){a.showingMore||(a.logTap(a.data),a.showingMore=!0,_.Tm(a,function(){var b=a.COMPACT_EVENT_COUNT-1,c;(c=_.E(a.hostElement).querySelector("#event-"+b))==null||c.focus()}))};
return a};
_.z(qid,_.P);_.f=qid.prototype;_.f.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.f.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.f.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.er(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.er(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.er(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.er(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.er(this.infoTooltip,this.infoTooltip.hide))};
_.f.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.er(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.er(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.er(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.er(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.er(this.infoTooltip,this.infoTooltip.hide))};
_.f.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)};
_.f.onShowingMoreChanged=function(){var a;this.showingMoreChanged((a=this.showingMore)!=null?a:!1)};
_.f.showingMoreChanged=function(a){var b=this.get("data.events")||[];this.set("restEvents",b.slice(1,a?b.length:this.COMPACT_EVENT_COUNT).map(function(c){return c.ticketEventRenderer}));
b.slice(0,a?b.length:this.COMPACT_EVENT_COUNT).forEach(function(c){var d=_.Fn();c=c.ticketEventRenderer.trackingParams;_.En()&&d&&c&&(c=_.qs(c),d&&_.So(d,c))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.f.computeAriaLabel=function(a){return a.subtitle1+", "+a.subtitle2};
_.f.logTap=function(a){_.En()&&this.ytRendererBehavior.logExplicitClick(a)};
_.f.isKeyboardAction=function(a){return this.get("detail.x",a)===0&&this.get("detail.y",a)===0};
_.f.onFirstEventTap=function(a){a.target&&this.handleTap(a.target,this.firstEvent,this.isKeyboardAction(a))};
_.f.onTicketLinkTap=function(a){a.target&&this.handleTap(a.target,a.model.item,this.isKeyboardAction(a))};
_.f.handleTap=function(a,b,c){if(b.buttonCommand)if(b.hasMultipleOffers)Object.assign(_.y(b.buttonCommand,_.GE),{properties:{source:c?"keyboard":"tap"}}),this.logTap(b),this.popupPositionTarget=a,_.no(this.hostElement,[b.buttonCommand],this.hostElement);else{var d;if((d=_.y(b.buttonCommand,_.Ml))==null?0:d.url)this.logTap(b),_.Rd(window,_.y(b.buttonCommand,_.Ml).url)}};
var y$=qid;y$.prototype.onShowingMoreChanged=y$.prototype.onShowingMoreChanged;y$.prototype.dataChanged=y$.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],y$.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],y$.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],y$.prototype,"firstEvent",void 0);_.U([_.O(),_.W("design:type",Object)],y$.prototype,"restEvents",void 0);
_.U([_.O(),_.W("design:type",String)],y$.prototype,"imageUrl",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],y$.prototype,"showingMore",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],y$.prototype,"canShowMore",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],y$.prototype,"skinnyMode",void 0);_.U([_.O(),_.W("design:type",HTMLElement)],y$.prototype,"popupPositionTarget",void 0);
_.U([_.gr("#banner-info-tooltip"),_.W("design:type",Object)],y$.prototype,"infoTooltip",void 0);_.U([_.gr("#info-container"),_.W("design:type",HTMLElement)],y$.prototype,"infoContainer",void 0);_.U([_.gr("#shelf-toggler"),_.W("design:type",HTMLElement)],y$.prototype,"shelfToggleButton",void 0);_.U([_.gr("#separator"),_.W("design:type",HTMLDivElement)],y$.prototype,"separator",void 0);_.U([_.O(),_.W("design:type",String)],y$.prototype,"shelfTogglerLabelText",void 0);
_.U([_.O(),_.W("design:type",String)],y$.prototype,"shelfTogglerIcon",void 0);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],y$.prototype,"dataChanged",null);_.U([_.kr("showingMore"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],y$.prototype,"onShowingMoreChanged",null);y$=_.U([_.Q({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],y$);
_.S(y$,"ytd-ticket-shelf-renderer",function(){if(pid!==void 0)return pid;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return pid=a},{mode:1});var rid;var sid;var tid=function(){return _.P.apply(this,arguments)||this};
_.z(tid,_.P);var uid=tid;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],uid.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],uid.prototype,"data",void 0);uid=_.U([_.Q({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],uid);
_.S(uid,"ytd-comments-entry-point-message-renderer",function(){if(sid!==void 0)return sid;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return sid=a},{mode:1});var vid;var wid=function(){return _.P.apply(this,arguments)||this};
_.z(wid,_.P);_.Vm.Object.defineProperties(wid.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.teaserAvatar)}}});
var z$=wid;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],z$.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],z$.prototype,"data",void 0);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],z$.prototype,"hasAvatar",null);z$=_.U([_.Q({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],z$);
_.S(z$,"ytd-comments-entry-point-teaser-renderer",function(){if(vid!==void 0)return vid;var a=document.createElement("template");_.B(a,'\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>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return vid=a},{mode:1});var xid;var yid=function(){return _.P.apply(this,arguments)||this};
_.z(yid,_.P);var zid=yid;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],zid.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],zid.prototype,"data",void 0);zid=_.U([_.Q({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],zid);
_.S(zid,"ytd-comments-simplebox-renderer",function(){if(xid!==void 0)return xid;var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return xid=a},{mode:1});var A$=function(){var a=_.P.apply(this,arguments)||this;a.fullHeight=!_.x("comment_teaser_full_height_kill_switch")&&_.x("kevlar_watch_grid");return a};
_.z(A$,_.P);A$.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"}}}};
A$.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
A$.prototype.onTap=function(){var a=this.tapCommand;a&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(a))};
A$.prototype.onKeyUp=function(a){if(a.keyCode===13)this.onTap()};
_.Vm.Object.defineProperties(A$.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)==null?0:a.onTap)return this.data.onTap;var b,c;if(((b=this.data)==null?0:b.teaserContent)||((c=this.data)==null?0:c.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){if(!_.x("kevlar_watch_edu_comment_teaser_content")){var a;return(a=this.data)==null?void 0:a.simpleboxPlaceholder}}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){if(_.x("kevlar_watch_edu_comment_teaser_content"))return null;var a;return(a=this.data)==null?void 0:a.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var a;if(!_.x("kevlar_watch_edu_comment_teaser_content")||((a=this.data)==null?0:a.contentRenderer)){var b;return(b=this.data)==null?void 0:b.teaserContent}return _.Up(_.to("MAIN_APP_WEB_COMMENT_TEASER_TOOLTIP"))}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){if(!_.x("kevlar_watch_edu_comment_teaser_content")){var a;return(a=this.data)==null?void 0:a.teaserAvatar}}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){if(!_.x("kevlar_watch_edu_comment_teaser_content")){var a;return(a=this.data)==null?void 0:a.messageText}}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var a;if(_.x("kevlar_watch_edu_comment_teaser_content")&&((a=this.data)==null?0:a.contentRenderer))return{commentsEntryPointTeaserRenderer:{teaserContent:_.Up(_.to("MAIN_APP_WEB_COMMENT_TEASER_TOOLTIP"))}};var b;return(b=this.data)==null?void 0:b.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)!=null&&a.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
var B$=A$;B$.prototype.onKeyUp=B$.prototype.onKeyUp;B$.prototype.onTap=B$.prototype.onTap;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],B$.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],B$.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],B$.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],B$.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],B$.prototype,"fullHeight",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],B$.prototype,"tapCommand",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],B$.prototype,"simpleboxPlaceholder",null);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],B$.prototype,"hasSimpleboxPlaceholder",null);
_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],B$.prototype,"simpleboxAvatar",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],B$.prototype,"teaserContent",null);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],B$.prototype,"hasTeaserContent",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],B$.prototype,"teaserAvatar",null);
_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],B$.prototype,"hasTeaserAvatar",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],B$.prototype,"messageText",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],B$.prototype,"contentRenderer",null);_.U([_.K("data"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],B$.prototype,"hasContents",null);
_.U([_.K("data"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],B$.prototype,"hasContentRenderer",null);_.U([_.M("click"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],B$.prototype,"onTap",null);_.U([_.M("keypress"),_.W("design:type",Function),_.W("design:paramtypes",[_.zz]),_.W("design:returntype")],B$.prototype,"onKeyUp",null);B$=_.U([_.Q({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],B$);
_.S(B$,"ytd-comments-entry-point-header-renderer",function(){if(rid!==void 0)return rid;var a=document.createElement("template");_.B(a,'\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>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return rid=a},{mode:1});var Aid;_.dt(_.nt,"yt-animated-rolling-number",{propNames:["numberText","numberValue","heightPx","shouldAnimate","forceRollUp"]});var Bid=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),Cid={numberText:"",heightPx:2*Bid,shouldAnimate:!1},Did=function(){var a=_.P.apply(this,arguments)||this;a.usingAnimatedComponents=!0;a.wasDetailed=!1;a.JSC$19988_browserSupportsAnimation=_.x("web_supports_animations_api");a.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};a.detailed=!1;a.shouldAnimate=!1;a.viewCountProps=Cid;a.dateTextProps=
Cid;a.metadataBadgesInDescription=_.x("web_metadata_badges_in_description");return a};
_.z(Did,_.P);_.f=Did.prototype;_.f.resetAnimationState=function(){this.shouldAnimate=!1};
_.f.updateDynamicMetadata=function(){if(this.JSC$19988_browserSupportsAnimation){if(!this.detailed){var a,b,c,d;var e=(a=this.videoPrimaryInfoRenderer)==null?void 0:(b=a.viewCount)==null?void 0:(c=b.videoViewCountRenderer)==null?void 0:(d=c.extraShortViewCount)==null?void 0:d.simpleText;var g,k,m,n;var r=(g=this.videoPrimaryInfoRenderer)==null?void 0:(k=g.viewCount)==null?void 0:(m=k.videoViewCountRenderer)==null?void 0:(n=m.shortViewCount)==null?void 0:n.simpleText}if(!r){var t,u,w,A;e=(t=this.videoPrimaryInfoRenderer)==
null?void 0:(u=t.viewCount)==null?void 0:(w=u.videoViewCountRenderer)==null?void 0:(A=w.unlabeledViewCountValue)==null?void 0:A.simpleText;var C,G,J,I;r=(C=this.videoPrimaryInfoRenderer)==null?void 0:(G=C.viewCount)==null?void 0:(J=G.videoViewCountRenderer)==null?void 0:(I=J.viewCount)==null?void 0:I.simpleText}var R,ca,V;a=Number((R=this.videoPrimaryInfoRenderer)==null?void 0:(ca=R.viewCount)==null?void 0:(V=ca.videoViewCountRenderer)==null?void 0:V.originalViewCount);var fa,aa;R=(fa=this.videoPrimaryInfoRenderer)==
null?void 0:(aa=fa.relativeDateText)==null?void 0:aa.simpleText;var ma;fa=!((ma=this.videoPrimaryInfoRenderer)==null||!ma.relativeDateText);if(e&&r&&a&&(R||!fa)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;ma=r.split(new RegExp("("+e+")"));e=vcd(ma[0]);var Ba;r={numberText:(Ba=ma[1])!=null?Ba:"",numberValue:a,heightPx:2*Bid,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var Da;Ba=((Da=ma[2])!=null?Da:"")+"  ";this.setViewCount(r,e,
vcd(Ba));if(!this.detailed&&fa){e=R.split(/(\d+)/);Da=vcd(e[0]);var za;Ba={numberText:(za=e[1])!=null?za:"",heightPx:2*Bid,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var Fa;za=((Fa=e[2])!=null?Fa:"")+"  ";this.setDateText(Ba,Da,vcd(za))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.f.setViewCount=function(a,b,c){_.Vp(b)!==_.Vp(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=b);this.viewCountProps.numberText!==(a==null?void 0:a.numberText)&&(this.viewCountProps=a||Cid);_.Vp(c)!==_.Vp(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=c)};
_.f.setDateText=function(a,b,c){_.Vp(b)!==_.Vp(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=b);this.dateTextProps.numberText!==(a==null?void 0:a.numberText)&&(this.dateTextProps=a||Cid);_.Vp(c)!==_.Vp(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=c)};
_.f.onYtUpdateViewershipAction=function(a){this.videoPrimaryInfoRenderer&&(_.y(a,Edd).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.y(a,Edd).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.y(a,Edd).viewCount)))};
_.f.onYtUpdateDateTextAction=function(a){if(this.videoPrimaryInfoRenderer){a=_.y(a,_.Cdd).dateText;this.shouldAnimate=!0;var b;((b=this.videoPrimaryInfoRenderer)==null?0:b.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",a):this.set("videoPrimaryInfoRenderer.dateText",a)}};
_.Vm.Object.defineProperties(Did.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return ucd(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.Vp(ucd(this.videoPrimaryInfoRenderer,!0,!0,!1,"\u2022"))}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.Vp(this.viewCountPreNumberText),this.viewCountProps.numberText,_.Vp(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.Vp(this.dateTextPreNumberText),this.dateTextProps.numberText,_.Vp(this.dateTextPostNumberText)].join("")}}});
var C$=Did;C$.prototype.updateDynamicMetadata=C$.prototype.updateDynamicMetadata;C$.prototype.resetAnimationState=C$.prototype.resetAnimationState;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],C$.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],C$.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],C$.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],C$.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],C$.prototype,"videoPrimaryInfoRenderer",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],C$.prototype,"detailed",void 0);_.U([_.O(),_.W("design:type",Object)],C$.prototype,"shouldAnimate",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],C$.prototype,"viewCountPreNumberText",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],C$.prototype,"viewCountProps",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],C$.prototype,"viewCountPostNumberText",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],C$.prototype,"dateTextPreNumberText",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],C$.prototype,"dateTextProps",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],C$.prototype,"dateTextPostNumberText",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],C$.prototype,"metadataBadgesInDescription",void 0);_.U([_.K("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.W("design:type",Object),_.W("design:paramtypes",[])],C$.prototype,"infoText",null);
_.U([_.K("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.W("design:type",String),_.W("design:paramtypes",[])],C$.prototype,"descriptionInfoTooltipText",null);_.U([_.K("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.W("design:type",String),_.W("design:paramtypes",[])],C$.prototype,"animatedViewCountAccessibilityLabel",null);
_.U([_.K("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.W("design:type",String),_.W("design:paramtypes",[])],C$.prototype,"animatedDateTextAccessibilityLabel",null);_.U([_.N("videoPrimaryInfoRenderer"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],C$.prototype,"resetAnimationState",null);
_.U([_.N("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],C$.prototype,"updateDynamicMetadata",null);C$=_.U([_.Q({disableElementRegistration:!0,is:"ytd-watch-info-text"})],C$);
_.S(C$,"ytd-watch-info-text",function(){if(Aid!==void 0)return Aid;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-info-text--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-container" class="style-scope ytd-watch-info-text">\n  <div id="view-count" aria-label$="[[animatedViewCountAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number id="view-count-number" force-roll-up="[[viewCountProps.forceRollUp]]" height-px="[[viewCountProps.heightPx]]" number-text="[[viewCountProps.numberText]]" number-value="[[viewCountProps.numberValue]]" should-animate="[[viewCountProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <div id="date-text" aria-label$="[[animatedDateTextAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="true" height-px="[[dateTextProps.heightPx]]" number-text="[[dateTextProps.numberText]]" number-value="[[dateTextProps.numberValue]]" should-animate="[[dateTextProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="info" text="[[infoText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  <template is="dom-if" if="[[metadataBadgesInDescription]]" class="style-scope ytd-watch-info-text">\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[!videoPrimaryInfoRenderer.badges]]" class="style-scope ytd-watch-info-text">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<tp-yt-paper-tooltip class="style-scope ytd-watch-info-text">[[descriptionInfoTooltipText]]</tp-yt-paper-tooltip>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Aid=a},{mode:1});var Eid;var Fid=_.Rr(function(a){var b=a.data;var c=a.setTapCommand;_.yh(function(){var d=_.Es(b().onTap);c(d)},"Lb2UL");
return _.q("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.q(_.Eu,{data:function(){return b().avatar}},{avatarViewModel:_.LK}),_.q("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.q("span",null,function(){return b().simpleboxText})))});var Gid=_.Rr(function(a){return _.q("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.q(_.oi,{cond:function(){return _.y(a.data().avatar,_.Zu)},
then:function(b){return _.q(_.LK,{data:b,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.q("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.q(_.wt,{text:function(){return a.data().teaserText}})))});var Hid=_.Rr(function(a){var b=a.data;var c=a.setTapCommand;_.yh(function(){var d=_.Es(b().onTap);c(d)},"ajJXKc");
return _.q("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.q(_.Eu,{data:function(){return b().teasers}},{commentsEntryPointTeaserViewModel:Gid}))});var Iid=_.Rr(function(a){var b=a.data;var c=a.setTapCommand;_.yh(function(){var d=_.Es(b().onTap);c(d)},"aO0Mhe");
return _.q("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.q(_.wt,{text:function(){return b().messageText}}))});var Jid=_.Rr(function(a){var b=a.data;var c=a.setTapCommand;var d=a.isDisabled;_.yh(function(){var e=(d==null?0:d())?void 0:_.Es(b().onTap);c(e)},"HYTw1e");
return _.q("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.q(_.tt,{icon:function(){return b().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.q(_.oi,{cond:function(){return b().image},
then:function(e){return _.q(_.Ss,{data:e,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.q(_.wt,{text:function(){return b().text},
className:function(){return b().image||b().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.q(_.Eu,{data:function(){return b().button}},{buttonViewModel:function(e){return _.q(_.Ju,{data:e.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:d==null?void 0:d()}}})}}))});var Kid=_.Rr(function(a){var b=a.data;var c=a.itemIndex;var d=a.selectedIndex;var e=a.indexUpdatedCallback;var g=a.observer;a=a.title;var k=_.Rl(),m=function(u){c()===d()&&e(u)},n=_.Mr(Ybd),r=_.Mr(Zbd),t=function(){var u,w;
return((u=b())==null?void 0:u.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!n()||((w=b())==null?void 0:w.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&r().includes("PAposts_by_host")};
_.vi(function(){g&&g().observe(k.value)});
return _.q("yt-carousel-item-view-model",{el:k,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":a},_.q(_.Eu,{data:function(){var u,w;return(w=(u=_.y(b().carouselItem,Ycd))==null?void 0:u.textCarousel)!=null?w:b().carouselItem}},{textCarouselItemViewModel:function(u){return _.q(Jid,{data:u.data,
setTapCommand:m,isDisabled:t})},
commentTeaserCarouselItemViewModel:function(u){return _.q(Hid,{data:u.data,setTapCommand:m})},
commentInputBoxCarouselItemViewModel:function(u){return _.q(Fid,{data:u.data,setTapCommand:m})},
commentsEntryPointMessageViewModel:function(u){return _.q(Iid,{data:u.data,setTapCommand:m})}}))});var Lid=_.Rr(function(a){var b=a.numDots;var c=a.activeIndex;return _.q("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.q(_.ni,{each:function(){return Array.from({length:b()})},
keyBy:"INDEX"},function(d,e){return _.q("div",{class:function(){var g={};return _.lt("ytCarouselDotsShapeDot",(g.ytCarouselDotsShapeDotActive=e===c(),g))}})}))});var Mid=_.Rr(function(a){var b=a.data;var c=a.handleCarouselNavigation;var d=a.numItems;var e=a.selectedIndex;var g=function(){return{disabled:e()===0}},k=function(){return{disabled:e()===d()-1}};
return _.q("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.q("div",null,_.q("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return b().title}),_.q(_.oi,{cond:function(){return b().subtitle},
then:function(m){return _.q("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return b().subtitleAccessibilityText}},m)}})),_.q(_.oi,{cond:function(){return d()>1},
then:function(){return _.q("div",{class:"ytCarouselTitleViewModelNavigation"},_.q(Lid,{numDots:d,activeIndex:e}),_.q(_.oi,{cond:function(){return b().previousButton},
then:function(m){return _.q(_.Eu,{data:m},{buttonViewModel:function(n){return _.q(_.Ju,{data:n.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return c(-1)},
buttonOverrides:g})}})}}),_.q(_.oi,{cond:function(){return b().nextButton},
then:function(m){return _.q(_.Eu,{data:m},{buttonViewModel:function(n){return _.q(_.Ju,{data:n.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return c(1)},
buttonOverrides:k})}})}}))}}))});_.Ws(_.Rr(function(a){var b=a.data;var c=_.Rl(),d=_.Rl(),e=_.Ei("HTML_DIR")==="rtl",g=!1,k=0,m=0;a=_.h(_.fh(0,"m0dtIf"));var n=a.next().value,r=a.next().value;a=_.h(_.fh(0,"fL6I6"));var t=a.next().value,u=a.next().value;a=_.h(_.fh(!1,"ZPrwNb"));var w=a.next().value,A=a.next().value,C=function(){var ma,Ba,Da;return(Da=(ma=b())==null?void 0:(Ba=ma.carouselTitles)==null?void 0:Ba.length)!=null?Da:0},G=function(){d.value&&d.value.scrollLeft!==k&&r((e?d.value.scrollLeft<k:d.value.scrollLeft>k)?Math.min(n()+
1,C()-1):Math.max(n()-1,0))},J;
window.IntersectionObserver&&(J=new IntersectionObserver(function(ma){ma=_.h(ma);for(var Ba=ma.next();!Ba.done;Ba=ma.next())if(Ba.value.isIntersecting){if(g){g=!1;break}G()}else r(m)},{root:d.value,
threshold:.2}));_.yh(function(){if(d.value){var ma=(e?-1:1)*(t()/C()+12)*(w()&&J?m:n());typeof d.value.scrollTo==="function"?d.value.scrollTo({left:ma,behavior:"smooth"}):d.value.scrollLeft=ma;k=ma;m=w()&&J?m:n()}},"QdUyG");
var I,R=function(ma){I=ma};
_.vi(function(){var ma=function(){var Da=d.value.offsetWidth*C(),za=24*(C()-1);u(Da+za)};
ma();if(window.ResizeObserver){var Ba=new ResizeObserver(ma);Ba.observe(d.value);_.wh(function(){Ba.disconnect();J&&J.disconnect()})}});
a=_.ot(function(ma){if(_.wXa(_.Ou(ma),c.value,["BUTTON".toString()])||!I)return!1;_.v().resolve(_.Xi).resolveCommand(I,{forceClickLogging:!0});return!1});
var ca=function(ma){ma=n()+ma;ma>=0&&ma<C()&&(g=!0,r(ma))},V=_.ot(function(){A(!0);
return!1}),fa=_.ot(function(){J||G();
A(!1);return!1}),aa={};
return _.q("yt-video-metadata-carousel-view-model",{class:_.jt("ytVideoMetadataCarouselViewModelHost",(aa.ytVideoMetadataCarouselViewModelShortMode=_.x("mweb_video_metadata_carousel_short_mode"),aa)),el:c,"on:click":a,"on:touchstart":V,"on:touchend":fa,hidden:function(){var ma,Ba;return!((ma=b())==null?0:(Ba=ma.carouselItems)==null?0:Ba.length)}},_.q("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.q(_.oi,{cond:function(){return b().carouselTitles},
then:function(ma){return _.q(_.Eu,{data:function(){return ma()[w()&&J?m:n()]}},{carouselTitleViewModel:function(Ba){return _.q(Mid,{data:Ba.data,
handleCarouselNavigation:ca,numItems:C,selectedIndex:n})}})}})),_.q("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:d},_.q("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+t()+"px;"}},_.q(_.oi,{cond:function(){return b().carouselItems},
then:function(ma){return _.q(_.ni,{each:ma},function(Ba,Da){return _.q(_.Eu,{data:function(){return Ba}},{carouselItemViewModel:function(za){return _.q(Kid,{data:za.data,
itemIndex:Da,selectedIndex:n,indexUpdatedCallback:R,observer:J,title:function(){a:{var Fa=Da();var bb,kb=(bb=b())==null?void 0:bb.carouselTitles;if(kb&&(Fa=kb[Fa])){var Ua;Fa=(Ua=_.y(Fa,Xcd))==null?void 0:Ua.title;break a}Fa=void 0}return Fa}})}})})}}))))}),"yt-video-metadata-carousel-view-model",{props:{data:_.SG}});var Nid=function(){var a=_.P.apply(this,arguments)||this;a.metadataBadgesInDescription=_.x("web_metadata_badges_in_description");a.descriptionCollapsed=!0;a.useFadedScrimDescription=_.x("kevlar_enable_faded_scrim_on_description");a.skinnyMode=!1;a.playlist=!1;a.isDark=document.documentElement.hasAttribute("dark");a.disableVideoOwnerOnTap=_.x("swatchie_video_owner_on_tap_ks");a.swatcherooDelayLoad=_.x("swatcheroo_enable_ghost_cards");a.primaryMenuWidth=0;a.videoId="";a.titleHeadlineXs=_.x("web_watch_typography_title_headline_xs");
a.titleHeadlineS=_.x("web_watch_typography_title_headline_s");a.titleHeadlineM=_.x("web_watch_typography_title_headline_m");a.titleHashtagBlackLinkified=_.x("web_title_hashtag_black_linkified");a.titleHashtagGreyLinkified=_.x("web_title_hashtag_grey_linkified");a.actionMap={"yt-update-title-action":"onYtUpdateTitleAction","yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};return a};
_.z(Nid,_.P);_.f=Nid.prototype;_.f.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.f.updateOwnerAndDescriptionPosition=function(){_.x("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.L8(this.bottomRowElement,this.ownerElement)):(_.L8(this.bottomRowElement,this.descriptionElement),_.L8(this.topRowElement,this.ownerElement)))};
_.f.titleOnTap=function(a){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.Xt(_.Pq(a)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var b;((b=window.getSelection())==null?0:b.toString().length)||this.handleExpandDescriptionCommands()}};
_.f.videoOwnerOnTap=function(a){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.Xt(_.Pq(a)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.f.detached=function(){var a=this,b;return _.l(function(c){(b=a.resizeObserver)==null||b.disconnect();_.se(c)})};
_.f.maybeAttachResizeObserver=function(){var a=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.hv(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){a.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.f.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var a=this.hostElement.clientWidth;this.actionsOnSeparateLine=this.primaryMenuWidth>a-Math.max(this.largerItemWrap?400:350,a/2-12)?!0:!1}};
_.f.stripAttributedDescription=function(a){return{content:a.content.replace(/[\r\n]{2,}/g,"\n")}};
_.f.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.x("web_modern_buttons"),forceIconButton:!_.x("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},properties:{forceIconOnly:"[[skinnyMode]]"}},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"}}}};
_.f.videoPrimaryInfoRendererChanged=function(){var a;if((a=this.videoPrimaryInfoRenderer)==null?0:a.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.f.videoSecondaryInfoRendererChanged=function(){var a,b;(b=(a=this.descriptionInlineExpander).collapse)==null||b.call(a);this.descriptionExpandClientVe=_.lu(110509);this.descriptionCollapseClientVe=_.lu(110510);a=_.Fn();b=_.En();a&&b&&(_.x("combine_ve_grafts")?(_.nF(_.ms(),this.descriptionExpandClientVe,b),_.nF(_.ms(),this.descriptionCollapseClientVe,b)):_.eY(a,b,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.f.structuredDescriptionContentRendererChanged=function(){_.x("ytd-watch-metadata-manual-sd-updates-killswitch")||(this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer))};
_.f.updateTopLevelIconsOnly=function(){var a=this;_.x("top_level_update_killswitch")||this.menu&&_.zk.addLowPriorityJob(function(){a.menu.topLevelIconsOnly=a.skinnyMode},_.$i("swathceroo_delay_flexible_menu_update",100))};
_.f.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.f.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.f.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.f.onYtTextInlineExpanderExpandedChanged=function(){if(!_.x("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var a,b;(b=(a=this.structuredDescriptionContentRendererElement).resize)==null||b.call(a)}};
_.f.onRenderStamperFinished=function(a){(a==null?void 0:a.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.f.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.f.onYtExpanderLessTapped=function(){var a,b=(a=this.videoSecondaryInfoRenderer)==null?void 0:a.showLessCommand;b&&this.ytComponentBehavior.resolveCommand(b)};
_.f.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.f.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.f.onDescriptionClick=function(a){if(!_.Xt(_.Pq(a)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var b;((b=window.getSelection())==null?0:b.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.x("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.f.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.f.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.f.logCollapseClick=function(){var a=_.Fn();a&&this.descriptionCollapseClientVe&&_.Vo(a,this.descriptionCollapseClientVe)};
_.f.logExpandClick=function(){var a=_.Fn();a&&this.descriptionExpandClientVe&&_.Vo(a,this.descriptionExpandClientVe)};
_.f.collapseDescription=function(){this.descriptionCollapsed=!0};
_.f.scrollToTopOfContainer=function(){_.ho(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.f.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.f.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRenderer&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.f.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.f.resize=function(){var a=this;if(this.descriptionInlineExpander){var b,c;(c=(b=this.descriptionInlineExpander).resize)==null||c.call(b)}else _.Dl(new _.qj("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var d;(d=this.menu)==null||d.maybeFlushDebouncer();this.primaryMenuWidth===0?_.x("web_action_buttons_overlap_fix")?requestAnimationFrame(function(){a.updatePrimaryMenuWidth()}):this.updatePrimaryMenuWidth():
this.maybeUpdateActionsOnSeparateLine()}};
_.f.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var a,b,c=(b=(a=_.E(this.menu).querySelector("#button"))==null?void 0:a.clientWidth)!=null?b:0,d,e;a=((e=(d=_.E(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:d.clientWidth)!=null?e:0)+8+c;var g,k;c=(k=(g=_.E(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:g.children.length)!=null?k:2;a<=8*c||(this.primaryMenuWidth=a)}};
_.f.onYtUpdateTitleAction=function(a){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.y(a,Ddd).title)};
_.f.onYtUpdateDescriptionAction=function(a){if(a=_.y(a,_.vFb)){var b,c=!((b=this.videoSecondaryInfoRenderer)==null||!b.attributedDescription);a.isEmpty||!a.description&&!a.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):a.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",a.attributedDescription):a.description&&(c?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.As(a.description)):this.set("videoSecondaryInfoRenderer.description",a.description))}};
_.f.onYtDarkModeToggledAction=function(a){this.isDark=a};
_.f.registerPanel=function(){if(!_.x("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var a=_.v().resolve(_.FJ);a&&a.registerPanel("engagement-panel-structured-description",this)}};
_.f.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.f.showPanel=function(a){this.expandDescription();var b=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;b.resize();var c,d=a==null?void 0:(c=a.sectionListEngagementPanelExtras)==null?void 0:c.scrollToItemSectionIdentifier;d?_.zk.addJob(function(){b==null||b.scrollToSection(d)},8):this.scrollToTopOfContainer()};
_.f.isVisible=function(){return!this.descriptionCollapsed};
_.f.getReloadContinuation=function(){};
_.f.hidePanel=function(){};
_.f.updatePanel=function(){};
_.Vm.Object.defineProperties(Nid.prototype,{productShelf:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.structuredDescriptionContentRenderer)!=null&&a.items){var b;a=_.h((b=this.structuredDescriptionContentRenderer)==null?void 0:b.items);for(b=a.next();!b.done;b=a.next())if(b=_.y(b.value,_.KCb))return b}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.videoPrimaryInfoRenderer)==null?0:a.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return!!((a=this.videoSecondaryInfoRenderer)==null?0:(b=a.owner)==null?0:(c=b.videoOwnerRenderer)==null?0:c.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode&&!_.x("swatchie_sd_new_line_strip_ks")){var a,b;if((a=this.videoSecondaryInfoRenderer)==null?0:(b=a.attributedDescription)==null?0:b.content){var c,d;return(d=this.stripAttributedDescription((c=this.videoSecondaryInfoRenderer)==null?void 0:c.attributedDescription))!=null?d:{runs:[]}}}var e,g,k,m;return(m=(k=(e=this.videoSecondaryInfoRenderer)==null?void 0:e.description)!=null?k:(g=this.videoSecondaryInfoRenderer)==null?
void 0:g.attributedDescription)!=null?m:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var a,b;return(b=(a=this.videoSecondaryInfoRenderer)==null?void 0:a.headerRuns)!=null?b:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.commentsEntryPointHeaderRenderer)==null||!a.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.videoMetadataCarousel)==null||!a.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.$i("swatchie_desc_lines",3):this.hasTeaserCarousel?_.$i("teaser_carousel_desc_lines",2):3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var a,b,c=Object.assign({},(a=this.videoSecondaryInfoRenderer)==null?void 0:(b=a.metadataRowContainer)==null?void 0:b.metadataRowContainerRenderer);if(c&&c.rows&&c.collapsedItemCount!==void 0&&!(c.rows.length<=c.collapsedItemCount))return c.rows=c.rows.slice(c.collapsedItemCount),c.collapsedItemCount=0,c}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var a,b,c=Object.assign({},(a=this.videoSecondaryInfoRenderer)==null?void 0:(b=a.metadataRowContainer)==null?void 0:b.metadataRowContainerRenderer);if(c&&c.rows&&c.collapsedItemCount!==void 0)return c.rows=c.rows.slice(0,c.collapsedItemCount),c.collapsedItemCount=c.rows.length,c}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!((a=this.structuredDescriptionContentRenderer)==null?0:(b=a.items)==null?0:b.length)}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!this.useFadedScrimDescription&&this.hasInlineStructuredDescription&&!this.descriptionCollapsed}},
descriptionExpandCommand:{configurable:!0,enumerable:!0,get:function(){if(this.structuredDescriptionContentRenderer)return null;var a;return(a=this.videoSecondaryInfoRenderer)==null?void 0:a.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return((a=this.videoSecondaryInfoRenderer)==null?0:(b=a.owner)==null?0:(c=b.videoOwnerRenderer)==null?0:c.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d;return!!((a=this.videoPrimaryInfoRenderer)==null?0:(b=a.videoActions)==null?0:(c=b.menuRenderer)==null?0:(d=c.flexibleItems)==null?0:d.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.Os(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.Os(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var a=this;if(_.x("web_title_hashtag_grey_delinkified")){var b,c=_.yf.unsafeClone((b=this.videoPrimaryInfoRenderer)==null?void 0:b.title);(b=c==null?void 0:c.runs)&&b.forEach(function(d){if(d==null?0:d.navigationEndpoint)d.textColor=4284506208,a.isDark&&(d.textColor=4289374890)});
return c}return(c=this.videoPrimaryInfoRenderer)==null?void 0:c.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.x("web_title_hashtag_black_delinkified")||_.x("web_title_hashtag_grey_delinkified")}}});
var D$=Nid;D$.prototype.resetDescriptionState=D$.prototype.resetDescriptionState;D$.prototype.registerPanel=D$.prototype.registerPanel;D$.prototype.onYtExpanderLessTapped=D$.prototype.onYtExpanderLessTapped;D$.prototype.onYtExpanderMoreTapped=D$.prototype.onYtExpanderMoreTapped;D$.prototype.onRenderStamperFinished=D$.prototype.onRenderStamperFinished;D$.prototype.onYtTextInlineExpanderExpandedChanged=D$.prototype.onYtTextInlineExpanderExpandedChanged;
D$.prototype.onYtTextInlineExpanderCollapseClicked=D$.prototype.onYtTextInlineExpanderCollapseClicked;D$.prototype.onYtTextInlineExpanderExpandClicked=D$.prototype.onYtTextInlineExpanderExpandClicked;D$.prototype.moveActionsElement=D$.prototype.moveActionsElement;D$.prototype.updateTopLevelIconsOnly=D$.prototype.updateTopLevelIconsOnly;D$.prototype.structuredDescriptionContentRendererChanged=D$.prototype.structuredDescriptionContentRendererChanged;D$.prototype.videoSecondaryInfoRendererChanged=D$.prototype.videoSecondaryInfoRendererChanged;
D$.prototype.videoPrimaryInfoRendererChanged=D$.prototype.videoPrimaryInfoRendererChanged;D$.prototype.maybeUpdateActionsOnSeparateLine=D$.prototype.maybeUpdateActionsOnSeparateLine;D$.prototype.updateOwnerAndDescriptionPosition=D$.prototype.updateOwnerAndDescriptionPosition;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],D$.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],D$.prototype,"ytComponentBehavior",void 0);
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],D$.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],D$.prototype,"ytRendererstamperBehavior",void 0);_.U([_.gr("#above-the-fold"),_.W("design:type",HTMLElement)],D$.prototype,"aboveTheFoldContainer",void 0);_.U([_.gr("#menu ytd-menu-renderer"),_.W("design:type",Object)],D$.prototype,"menu",void 0);
_.U([_.gr("#description-inline-expander"),_.W("design:type",Object)],D$.prototype,"descriptionInlineExpander",void 0);_.U([_.gr("#faded-structured-description"),_.W("design:type",Object)],D$.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.U([_.gr("#structured-description"),_.W("design:type",Object)],D$.prototype,"structuredDescriptionContentRendererElement",void 0);_.U([_.gr("#title"),_.W("design:type",HTMLElement)],D$.prototype,"titleElement",void 0);
_.U([_.gr("#description"),_.W("design:type",HTMLElement)],D$.prototype,"descriptionElement",void 0);_.U([_.gr("#description-interaction"),_.W("design:type",Object)],D$.prototype,"descriptionInteraction",void 0);_.U([_.gr("#owner"),_.W("design:type",HTMLElement)],D$.prototype,"ownerElement",void 0);_.U([_.gr("#top-row"),_.W("design:type",HTMLElement)],D$.prototype,"topRowElement",void 0);_.U([_.gr("#bottom-row"),_.W("design:type",HTMLElement)],D$.prototype,"bottomRowElement",void 0);
_.U([_.gr("#actions"),_.W("design:type",HTMLElement)],D$.prototype,"actionsElement",void 0);_.U([_.gr("#bottom-actions"),_.W("design:type",HTMLElement)],D$.prototype,"bottomActionsElement",void 0);_.U([_.gr("#ytd-watch-info-text"),_.W("design:type",Object)],D$.prototype,"watchInfoTextElement",void 0);_.U([_.O(),_.W("design:type",Object)],D$.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],D$.prototype,"videoPrimaryInfoRenderer",void 0);
_.U([_.O(),_.W("design:type",Object)],D$.prototype,"videoSecondaryInfoRenderer",void 0);_.U([_.O(),_.W("design:type",Object)],D$.prototype,"commentsEntryPointHeaderRenderer",void 0);_.U([_.O(),_.W("design:type",Object)],D$.prototype,"videoMetadataCarousel",void 0);_.U([_.O(),_.W("design:type",Object)],D$.prototype,"structuredDescriptionContentRenderer",void 0);_.U([_.O(),_.W("design:type",Object)],D$.prototype,"videoSummary",void 0);
_.U([_.O(),_.W("design:type",Object)],D$.prototype,"infoPanelBelowMetadata",void 0);_.U([_.K("structuredDescriptionContentRenderer"),_.W("design:type",Object),_.W("design:paramtypes",[])],D$.prototype,"productShelf",null);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],D$.prototype,"metadataBadgesInDescription",void 0);_.U([_.K("videoPrimaryInfoRenderer"),_.W("design:type",Object),_.W("design:paramtypes",[])],D$.prototype,"shouldHideBadges",null);
_.U([_.K("productShelf","descriptionCollapsed"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],D$.prototype,"shouldShowProductShelf",null);_.U([_.O(),_.W("design:type",Boolean)],D$.prototype,"isWatchFlexy",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],D$.prototype,"descriptionCollapsed",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],D$.prototype,"useFadedScrimDescription",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],D$.prototype,"skinnyMode",void 0);_.U([_.O({reflectToAttribute:!0}),_.K("videoSecondaryInfoRenderer"),_.W("design:type",Object),_.W("design:paramtypes",[])],D$.prototype,"largerItemWrap",null);_.U([_.O(),_.W("design:type",Object)],D$.prototype,"playlist",void 0);_.U([_.O(),_.W("design:type",Object)],D$.prototype,"clarifyBox",void 0);_.U([_.O(),_.W("design:type",Object)],D$.prototype,"playerAds",void 0);
_.U([_.O(),_.W("design:type",Boolean)],D$.prototype,"isDark",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],D$.prototype,"actionsOnSeparateLine",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],D$.prototype,"disableVideoOwnerOnTap",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],D$.prototype,"swatcherooDelayLoad",void 0);_.U([_.O(),_.W("design:type",Boolean)],D$.prototype,"suppressTopLevelMetadataRows",void 0);
_.U([_.O(),_.W("design:type",Object)],D$.prototype,"primaryMenuWidth",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],D$.prototype,"videoId",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],D$.prototype,"titleHeadlineXs",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],D$.prototype,"titleHeadlineS",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],D$.prototype,"titleHeadlineM",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],D$.prototype,"titleHashtagBlackLinkified",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],D$.prototype,"titleHashtagGreyLinkified",void 0);_.U([_.kr("skinnyMode"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D$.prototype,"updateOwnerAndDescriptionPosition",null);
_.U([_.kr("skinnyMode"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D$.prototype,"maybeUpdateActionsOnSeparateLine",null);_.U([_.K("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription"),_.W("design:type",Object),_.W("design:paramtypes",[])],D$.prototype,"descriptionText",null);_.U([_.K("videoSecondaryInfoRenderer.headerRuns"),_.W("design:type",Array),_.W("design:paramtypes",[])],D$.prototype,"headerRuns",null);
_.U([_.O({value:!1}),_.K("commentsEntryPointHeaderRenderer"),_.W("design:type",Object),_.W("design:paramtypes",[])],D$.prototype,"hasTeaser",null);_.U([_.O({value:!1,reflectToAttribute:!0}),_.K("videoMetadataCarousel"),_.W("design:type",Object),_.W("design:paramtypes",[])],D$.prototype,"hasTeaserCarousel",null);_.U([_.O({value:3}),_.K("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.W("design:type",Object),_.W("design:paramtypes",[])],D$.prototype,"descriptionMaxLines",null);
_.U([_.K("videoSecondaryInfoRenderer.metadataRowContainer"),_.W("design:type",Object),_.W("design:paramtypes",[])],D$.prototype,"collapsibleMetadataRows",null);_.U([_.K("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.W("design:type",Object),_.W("design:paramtypes",[])],D$.prototype,"alwaysVisibleMetadataRows",null);
_.U([_.K("videoSecondaryInfoRenderer","structuredDescriptionContentRenderer"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],D$.prototype,"hasInlineStructuredDescription",null);_.U([_.K("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],D$.prototype,"showInlineStructuredDescription",null);
_.U([_.K("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.W("design:type",Object),_.W("design:paramtypes",[])],D$.prototype,"descriptionExpandCommand",null);_.U([_.K("videoSecondaryInfoRenderer.owner"),_.W("design:type",Object),_.W("design:paramtypes",[])],D$.prototype,"videoOwnerCommand",null);_.U([_.O({reflectToAttribute:!0}),_.K("videoPrimaryInfoRenderer.videoActions"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],D$.prototype,"flexMenuEnabled",null);
_.U([_.K("descriptionText","useFadedScrimDescription"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],D$.prototype,"showAttributedStringDescription",null);_.U([_.K("descriptionText","useFadedScrimDescription"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],D$.prototype,"showFormattedStringDescription",null);
_.U([_.K("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],D$.prototype,"showFadedStructuredDescription",null);_.U([_.kr("videoPrimaryInfoRenderer"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D$.prototype,"videoPrimaryInfoRendererChanged",null);_.U([_.K("videoPrimaryInfoRenderer.title"),_.W("design:type",Object),_.W("design:paramtypes",[])],D$.prototype,"videoTitle",null);
_.U([_.K("videoPrimaryInfoRenderer"),_.W("design:type",Object),_.W("design:paramtypes",[])],D$.prototype,"noEndpoints",null);_.U([_.kr("videoSecondaryInfoRenderer"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D$.prototype,"videoSecondaryInfoRendererChanged",null);
_.U([_.N("videoPrimaryInfoRenderer","structuredDescriptionContentRenderer"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D$.prototype,"structuredDescriptionContentRendererChanged",null);_.U([_.N("skinnyMode"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D$.prototype,"updateTopLevelIconsOnly",null);
_.U([_.N("skinnyMode"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D$.prototype,"moveActionsElement",null);_.U([_.M("yt-text-inline-expander-expand-clicked"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D$.prototype,"onYtTextInlineExpanderExpandClicked",null);
_.U([_.M("yt-text-inline-expander-collapse-clicked"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D$.prototype,"onYtTextInlineExpanderCollapseClicked",null);_.U([_.M("yt-text-inline-expander-expanded-changed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D$.prototype,"onYtTextInlineExpanderExpandedChanged",null);
_.U([_.M("yt-rendererstamper-finished"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],D$.prototype,"onRenderStamperFinished",null);_.U([_.M("yt-expander-more-tapped"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D$.prototype,"onYtExpanderMoreTapped",null);_.U([_.M("yt-expander-less-tapped"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D$.prototype,"onYtExpanderLessTapped",null);
_.U([_.N("videoPrimaryInfoRenderer","hasInlineStructuredDescription"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D$.prototype,"registerPanel",null);_.U([_.N("videoSecondaryInfoRenderer"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D$.prototype,"resetDescriptionState",null);D$=_.U([_.Q({disableElementRegistration:!0,is:"ytd-watch-metadata"})],D$);
_.S(D$,"ytd-watch-metadata",function(){if(Eid!==void 0)return Eid;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-metadata--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="above-the-fold" class="style-scope ytd-watch-metadata">\n  <div id="title" on-click="titleOnTap" class="style-scope ytd-watch-metadata">\n    <ytd-badge-supported-renderer hidden="[[!videoPrimaryInfoRenderer.topStandaloneBadge]]" top-standalone-badge="[[videoPrimaryInfoRenderer.topStandaloneBadge]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n    <h1 class="style-scope ytd-watch-metadata">\n      <yt-formatted-string force-default-style="" no-endpoints="[[noEndpoints]]" text="[[videoTitle]]" title="[[getSimpleString(videoPrimaryInfoRenderer.title)]]" class="style-scope ytd-watch-metadata">\n      </yt-formatted-string>\n    </h1>\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[shouldHideBadges]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n  </div>\n\n  <div id="top-row" class="style-scope ytd-watch-metadata">\n    <div id="owner" class="item style-scope ytd-watch-metadata" hidden="[[!videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" on-click="videoOwnerOnTap">\n      <ytd-video-owner-renderer data="[[videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" subscribe-key="[[videoSecondaryInfoRenderer.subscribeButton.subscribeButtonRenderer.subscribedEntityKey]]" watch-metadata-refresh="" class="style-scope ytd-watch-metadata">\n      </ytd-video-owner-renderer>\n      <div id="subscribe-button" class="style-scope ytd-watch-metadata"></div>\n    </div>\n    <div id="actions" class="item style-scope ytd-watch-metadata">\n      <div id="actions-inner" class="style-scope ytd-watch-metadata">\n        <div id="menu" class="style-scope ytd-watch-metadata"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="middle-row" class="style-scope ytd-watch-metadata"></div>\n\n  <div id="bottom-row" class="style-scope ytd-watch-metadata">\n    <div id="description" class="item style-scope ytd-watch-metadata" on-down="onDescriptionDown" on-up="onDescriptionUp" on-click="onDescriptionClick">\n      <div id="description-inner" class="style-scope ytd-watch-metadata">\n        <ytd-watch-info-text id="ytd-watch-info-text" detailed="[[!descriptionCollapsed]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" class="style-scope ytd-watch-metadata"></ytd-watch-info-text>\n        \n        <template is="dom-if" if="[[shouldShowProductShelf]]" restamp="" id="product-shelf" class="style-scope ytd-watch-metadata">\n          <ytd-merch-shelf-renderer data="[[productShelf]]" class="style-scope ytd-watch-metadata">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <yt-formatted-string id="description-placeholder" hidden="[[!videoSecondaryInfoRenderer.descriptionPlaceholder]]" text="[[videoSecondaryInfoRenderer.descriptionPlaceholder]]" class="style-scope ytd-watch-metadata">\n        </yt-formatted-string>\n        <div id="description-text-container" hidden="[[!useFadedScrimDescription]]" class="style-scope ytd-watch-metadata">\n          <yt-attributed-string id="attributed-description-text" data="[[descriptionText]]" disable-upgrade$="[[!showAttributedStringDescription]]" header-runs="[[headerRuns]]" hidden="[[!showAttributedStringDescription]]" user-input="" class="style-scope ytd-watch-metadata">\n          </yt-attributed-string>\n          \n          <yt-formatted-string id="formatted-description-text" disable-upgrade$="[[!showFormattedStringDescription]]" hidden="[[!showFormattedStringDescription]]" split-lines="[[showFormattedStringDescription]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          </yt-formatted-string>\n          <ytd-structured-description-content-renderer id="faded-structured-description" data="[[structuredDescriptionContentRenderer]]" disable-upgrade$="[[!showFadedStructuredDescription]]" hidden="[[!showFadedStructuredDescription]]" inline-structured-description="" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n          </ytd-structured-description-content-renderer>\n          <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n          </ytd-metadata-row-container-renderer>\n          <tp-yt-paper-button id="collapse-button" class="button style-scope ytd-watch-metadata" hidden="[[descriptionCollapsed]]" on-click="handleCollapseDescriptionClick">[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]</tp-yt-paper-button>\n        </div>\n        <ytd-text-inline-expander id="description-inline-expander" always-show-expand-button="" collapse-label="[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]" disable-upgrade$="[[useFadedScrimDescription]]" expand-command="[[descriptionExpandCommand]]" expand-label="[[getSimpleString(videoSecondaryInfoRenderer.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[useFadedScrimDescription]]" max-lines="[[descriptionMaxLines]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          <div slot="extra-content" class="style-scope ytd-watch-metadata">\n            <ytd-structured-description-content-renderer id="structured-description" data="[[structuredDescriptionContentRenderer]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n            </ytd-structured-description-content-renderer>\n            <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n            </ytd-metadata-row-container-renderer>\n          </div>\n        </ytd-text-inline-expander>\n      </div>\n      <yt-interaction id="description-interaction" class="rounded-large style-scope ytd-watch-metadata" hidden="[[skinnyMode]]"></yt-interaction>\n    </div>\n    <div id="bottom-actions" class="style-scope ytd-watch-metadata"></div>\n    <div id="comment-teaser" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaser]]"></div>\n    <div id="teaser-carousel" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaserCarousel]]"></div>\n  </div>\n</div>\n\n<ytd-metadata-row-container-renderer data="[[alwaysVisibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n</ytd-metadata-row-container-renderer>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Eid=a},{mode:2});var Vid=function(a){_.tg.call(this);this.JSC$20013_watchApi=a;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;Oid(this);Pid(this);Qid(this);Rid(this);Sid(this);Tid(this);Uid(this)};
_.z(Vid,_.tg);var Qid=function(a){var b=function(){_.x("kevlar_is_pupi_enabled")||E$(a)};
a.JSC$20013_watchApi.getRoot().addEventListener("yt-player-updated",b);a.addOnDisposeCallback(function(){a.JSC$20013_watchApi.getRoot().removeEventListener("yt-player-updated",b)})},Sid=function(a){if(_.x("kevlar_endscreen_auto_theater_mode")){var b=_.wF(_.Yp(),G8,function(){Wid(a)});
a.addOnDisposeCallback(b)}},Oid=function(a){var b,c,d,e,g;
_.l(function(k){if(k.nextAddress==1)return _.p(k,a.JSC$20013_watchApi.playerApi,2);b=k.yieldResult;c=function(m){m=!!m;Xid(a)&&(m=m?2:1,_.cF.getInstance().setState(m,!0,!1))};
d=function(m){m&&_.Xbd(_.Yp().getState())&&(_.ho(a.JSC$20013_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),a.temporaryTheaterMode=!0)};
e=function(m){_.x("kevlar_player_update_autonav_on_new_data")&&m.type==="newdata"&&(_.x("kevlar_is_pupi_enabled")||E$(a))};
g=function(m){a.onPlayerStateChange(m)};
_.x("kevlar_endscreen_auto_theater_mode")&&b.addEventListener("onAutonavCancelled",d);b.addEventListener("onAutonavChangeRequest",c);b.addEventListener("onVideoDataChange",e);b.addEventListener("onStateChange",g);a.addOnDisposeCallback(function(){b.removeEventListener("onAutonavChangeRequest",c);b.removeEventListener("onVideoDataChange",e);b.removeEventListener("onStateChange",g);_.x("kevlar_endscreen_auto_theater_mode")&&b.removeEventListener("onAutonavCancelled",d)});
_.se(k)})},Pid=function(a){a.JSC$20013_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){a.autonavCancelledBySignal=!0;
_.x("kevlar_is_pupi_enabled")||E$(a)});
a.JSC$20013_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(b,c,d){c&&E$(a,d)});
a.JSC$20013_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){Xid(a)&&_.cF.getInstance().setState(2,!0,!0)});
a.JSC$20013_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){Xid(a)&&_.cF.getInstance().setState(1,!0,!0)});
a.addOnDisposeCallback(function(){F$(a.JSC$20013_watchApi,"yt-signal-action-cancel-autonav");F$(a.JSC$20013_watchApi,"yt-autonav-state-changed-action");F$(a.JSC$20013_watchApi,"yt-enable-autoplay-command");F$(a.JSC$20013_watchApi,"yt-disable-autoplay-command")})},Rid=function(a){var b=a.JSC$20013_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Uid(a)}),c=a.JSC$20013_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Tid(a)});
a.addOnDisposeCallback(function(){a.JSC$20013_watchApi.unsubscribeByKey(b);a.JSC$20013_watchApi.unsubscribeByKey(c)})},Uid=function(a){a.autonavCancelledBySignal=!1;
_.x("kevlar_is_pupi_enabled")||E$(a)},Tid=function(a){var b=a.JSC$20013_watchApi.getWatchNextResponse(),c,d;
var e=(b=(d=_.y(b==null?void 0:(e=b.playerOverlays)==null?void 0:(c=e.playerOverlayRenderer)==null?void 0:c.autonavToggle,_.xFb))==null?void 0:d.enabled)?2:1;_.x("kevlar_is_pupi_enabled")?_.cF.getInstance().setState(e,!1,!1):E$(a);_.x("web_persist_server_autonav_state_on_client")&&typeof b==="boolean"&&_.YBa(e===2)},Xid=function(a){if(a.autonavCancelledBySignal)return!1;
var b,c,d,e;return!!((b=a.JSC$20013_watchApi.getWatchNextResponse())==null?0:(c=b.contents)==null?0:(d=c.twoColumnWatchNextResults)==null?0:(e=d.autoplay)==null?0:e.autoplay)};
Vid.prototype.onPlayerStateChange=function(a){if(a===0){a=!_.cF.getInstance().isAutoplaySetExplicitly();var b=this.JSC$20013_watchApi.getWatchNextResponse(),c,d,e,g;b=_.y(b==null?void 0:(c=b.contents)==null?void 0:(d=c.twoColumnWatchNextResults)==null?void 0:(e=d.autoplay)==null?void 0:(g=e.autoplay)==null?void 0:g.autoplayExplicitChoiceDialogRenderer,_.jEb);Xid(this)&&a&&b&&_.hs.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:b},popupType:"DIALOG"}})}else Wid(this)};
var Wid=function(a){a.temporaryTheaterMode&&(a.temporaryTheaterMode=!1,_.ho(a.JSC$20013_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},E$=function(a,b){b=b===void 0?!1:b;
var c;_.l(function(d){if(d.nextAddress==1)return _.p(d,a.JSC$20013_watchApi.playerApi,2);c=d.yieldResult;Xid(a)?c.setAutonavState(_.cF.getInstance().getState(),b):c.setAutonavState(1,b);_.se(d)})};var Yid={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",DONATION_SHELF:"DONATION_SHELF",OFFER_MODULE:"OFFER_MODULE",TICKET_SHELF:"TICKET_SHELF",LIMITED_STATE:"LIMITED_STATE",ALERTS:"ALERTS",SINGLE_COLUMN_CONTENTS:"SINGLE_COLUMN_CONTENTS",COMMENTS:"COMMENTS",
ENGAGEMENT_PANELS:"ENGAGEMENT_PANELS",INLINE_ENGAGEMENT_PANELS:"INLINE_ENGAGEMENT_PANELS",RICH_GRID_RENDERER:"RICH_GRID_RENDERER",WATCH_NEXT_SECONDARY_RESULTS:"WATCH_NEXT_SECONDARY_RESULTS",EXPANDABLE_METADATA:"EXPANDABLE_METADATA",LIVE_CHAT:"LIVE_CHAT",VIDEO_METADATA_CAROUSEL:"VIDEO_METADATA_CAROUSEL"};var $id=function(a){_.tg.call(this);var b=this;this.JSC$20018_watchApi=a;var c=this.JSC$20018_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Zid(b)});
this.addOnDisposeCallback(function(){b.JSC$20018_watchApi.unsubscribeByKey(c)});
Zid(this)};
_.z($id,_.tg);var Zid=function(a){var b=a.JSC$20018_watchApi.getPlayerResponse(),c=a.JSC$20018_watchApi.getWatchNextResponse();if(!_.D5a(b==null?void 0:b.playabilityStatus,c==null?void 0:c.playerOverlays)){var d;var e=b==null?void 0:(d=b.playabilityStatus)==null?void 0:d.errorScreen}a.JSC$20018_watchApi.provideRenderingData("ERROR_SCREEN",e)};var ajd=_.Rr(function(a){var b=a.data;return _.q("yt-player-overlay-video-details-renderer",{class:"ytPlayerOverlayVideoDetailsRendererHost"},_.q("div",{class:"ytPlayerOverlayVideoDetailsRendererTitle"},_.q(_.wt,{text:function(){return b().title}})),_.q("div",{class:"ytPlayerOverlayVideoDetailsRendererSubtitle"},_.q(_.Eu,{data:function(){return b().channelAvatar}},{avatarViewModel:_.LK}),_.q(_.wt,{text:function(){return b().subtitle}})))});var bjd=_.Rr(function(a){return _.q("yt-player-quick-action-buttons",{class:_.jt("ytPlayerQuickActionButtonsHost")},_.q(_.ni,{each:a.data},function(b){return _.q(_.Eu,{data:function(){return b}},{buttonViewModel:_.Ju,
likeButtonViewModel:function(c){return _.q(_.wXb,{data:c.data,disableIconAnimation:!0})},
dislikeButtonViewModel:_.vXb})}))});var djd=function(a){_.tg.call(this);var b=this;this.JSC$20021_watchApi=a;a=_.h(_.fh({},"ufFdVc"));this.quickActionsViewModel=a.next().value;this.setQuickActionsViewModel=a.next().value;a=_.h(_.fh({},"atbdp"));this.playerOverlayVideoDetailsRenderer=a.next().value;this.setPlayerOverlayVideoDetailsRenderer=a.next().value;var c=this.JSC$20021_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){cjd(b)});
this.addOnDisposeCallback(function(){b.JSC$20021_watchApi.unsubscribeByKey(c)})};
_.z(djd,_.tg);
var cjd=function(a){var b,c,d,e,g,k,m,n,r,t,u,w,A,C;_.l(function(G){if(G.nextAddress==1)return _.p(G,a.JSC$20021_watchApi.playerApi,2);b=G.yieldResult;c=a.JSC$20021_watchApi.getWatchNextResponse();g=(d=c)==null?void 0:(e=d.playerOverlays)==null?void 0:e.playerOverlayRenderer;m=_.y((k=g)==null?void 0:k.fullscreenQuickActionsBar,_.RDb);(r=(n=a).setQuickActionsViewModel)==null||r.call(n,m||{});m&&ejd(a,b);w=(t=g)==null?void 0:(u=t.videoDetails)==null?void 0:u.playerOverlayVideoDetailsRenderer;(C=(A=
a).setPlayerOverlayVideoDetailsRenderer)==null||C.call(A,w||{});w&&fjd(a,b);_.se(G)})},ejd=function(a,b){if(!a.quickActionButtonsContainer){a.quickActionButtonsContainer=document.createElement("div");
b.setFullscreenQuickActions(a.quickActionButtonsContainer);var c=function(){return a.quickActionsViewModel().quickActionButtons||[]},d=_.si(a.quickActionButtonsContainer,function(){return _.q(bjd,{data:c})});
a.addOnDisposeCallback(function(){b.setFullscreenQuickActions(void 0);d()})}},fjd=function(a,b){if(!a.playerOverlayVideoDetailsRendererContainer){a.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
b.setPlayerOverlayVideoDetailsRenderer(a.playerOverlayVideoDetailsRendererContainer);var c=_.si(a.playerOverlayVideoDetailsRendererContainer,function(){return _.q(ajd,{data:a.playerOverlayVideoDetailsRenderer})});
a.addOnDisposeCallback(function(){b.setPlayerOverlayVideoDetailsRenderer(void 0);c()})}};var G$=function(a){_.tg.call(this);var b=this;this.JSC$20026_watchApi=a;this.JSC$20026_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;a=_.wF(_.Yp(),_.H8,function(c){gjd(b,c)});
this.addOnDisposeCallback(a);a=_.wF(_.Yp(),_.I8,function(c){b.onWatchScroll(c)});
this.addOnDisposeCallback(a);_.x("kevlar_watch_while_v2")&&(a=_.wF(_.Yp(),_.Gp,function(c){hjd(b,c)}),this.addOnDisposeCallback(a));
ijd(this);jjd(this);this.onWatchScroll(_.I8(_.Yp().getState()));_.Gi("START_IN_FULL_WINDOW_MODE")&&this.JSC$20026_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.z(G$,_.tg);var ijd=function(a){a.JSC$20026_watchApi.registerActionHandler("yt-fullscreen-change-action",function(b){var c=G8(_.Yp().getState());b&&!c||_.Yp().dispatch(_.gp({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!b}}))});
a.addOnDisposeCallback(function(){F$(a.JSC$20026_watchApi,"yt-fullscreen-change-action")})},jjd=function(a){var b,c;
_.l(function(d){if(d.nextAddress==1)return _.p(d,a.JSC$20026_watchApi.playerApi,2);b=d.yieldResult;c=function(){a.onFullerscreenEduClicked()};
b.addEventListener("onFullerscreenEduClicked",c);a.addOnDisposeCallback(function(){b.removeEventListener("onFullerscreenEduClicked",c)});
_.se(d)})},gjd=function(a,b){var c;
_.l(function(d){if(d.nextAddress==1)return a.isFullscreen=!!_.bo(),_.p(d,a.JSC$20026_watchApi.playerApi,2);c=d.yieldResult;a.JSC$20026_miniplayerActive||c.setFauxFullscreen(a.isFullscreen);if(b&&(a.JSC$20026_watchApi.focusOnPlayer(),!a.fullerscreenEduButtonShownThisPlayback)){a.fullerscreenEduButtonShownThisPlayback=!0;var e=_.sG("yt-fullerscreen-edu-button-shown-count")||0;_.rG("yt-fullerscreen-edu-button-shown-count",e+1,31536E3);a.updateFullerscreenEduButtonSubtleModeState()}_.se(d)})},hjd=function(a,
b){var c;
_.l(function(d){if(d.nextAddress==1)return a.JSC$20026_miniplayerActive=b,_.p(d,a.JSC$20026_watchApi.playerApi,2);c=d.yieldResult;c.setFauxFullscreen(!a.JSC$20026_miniplayerActive&&a.isFullscreen);_.se(d)})};
G$.prototype.onWatchScroll=function(a){var b=this,c,d;return _.l(function(e){if(e.nextAddress==1)return _.x("external_fullscreen_with_edu")?_.p(e,b.JSC$20026_watchApi.playerApi,2):e.return();c=e.yieldResult;d=a<=0;b.shouldShowFullerscreenEdu!==d&&(b.shouldShowFullerscreenEdu=d,c.updateFullerscreenEduButtonVisibility(!b.shouldShowFullerscreenEdu));_.se(e)})};
G$.prototype.onFullerscreenEduClicked=function(){this.JSC$20026_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var a=_.sG("yt-fullerscreen-edu-button-click-count")||0;_.rG("yt-fullerscreen-edu-button-click-count",a+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
G$.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var a=this,b,c,d,e,g,k;return _.l(function(m){if(m.nextAddress==1)return b=_.sG("yt-fullerscreen-edu-button-click-count")||0,c=_.sG("yt-fullerscreen-edu-button-shown-count")||0,d=_.$i("external_fullscreen_button_click_threshold"),e=_.$i("external_fullscreen_button_shown_threshold"),g=b>=d||c>=e,_.p(m,a.JSC$20026_watchApi.playerApi,2);k=m.yieldResult;k.updateFullerscreenEduButtonSubtleModeState(g);_.se(m)})};
G$.prototype.disposeInternal=function(){_.tg.prototype.disposeInternal.call(this);var a=_.bo();_.x("kevlar_exit_fullscreen_leaving_watch")&&a&&_.co(a)};var ljd=function(a){_.tg.call(this);var b=this;this.JSC$20030_watchApi=a;this.jobId=0;this.pendingRequestId=void 0;var c=this.JSC$20030_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){kjd(b)});
this.addOnDisposeCallback(function(){b.JSC$20030_watchApi.unsubscribeByKey(c)});
kjd(this)};
_.z(ljd,_.tg);var mjd=function(a){_.zk.cancelJob(a.jobId);a.pendingRequestId=void 0},kjd=function(a){mjd(a);
var b=wcd(a.JSC$20030_watchApi.getWatchNextResponse());if(b){var c=250,d,e=(d=_.y(b,_.OEb))==null?void 0:d.initialDelayMs;_.x("web_watch_updated_metadata_server_initial_delay")&&e&&(c=e);a.jobId=_.zk.addLowPriorityJob(function(){return a.fetchUpdatedMetadata(b)},c)}};
ljd.prototype.fetchUpdatedMetadata=function(a,b){var c=this,d,e,g,k,m,n,r,t,u,w,A,C,G,J,I;return _.l(function(R){switch(R.nextAddress){case 1:b&&(d={continuation:b});if(!_.x("web_get_updated_metadata_fantasy_panel_continuation_params")){R.jumpTo(2);break}e=_.v().resolve(_.FJ);g="PAsports_fantasy";return _.p(R,e.isVisible(g,!0),3);case 3:R.yieldResult&&(r=(m=(k=e).getUpdatePanelContinuationData)==null?void 0:(n=m.call(k,g))==null?void 0:n.updatePanelContinuationRequest)&&(d||(d={}),d.clientParams=
{panelContinuationParams:{panelContinuation:r}});case 2:t=_.v().resolve(_.xq);if(!t)return _.Bl(Error("dm")),R.return();u={};c.pendingRequestId=u;return _.p(R,_.St(t,a,d),4);case 4:w=R.yieldResult;if(u!==c.pendingRequestId)return R.return();G=(A=w)==null?void 0:(C=A.continuation)==null?void 0:C.timedContinuationData;((J=G)==null?0:J.continuation)&&((I=G)==null?0:I.timeoutMs)&&(c.jobId=_.zk.addLowPriorityJob(function(){return c.fetchUpdatedMetadata(a,G.continuation)},G.timeoutMs));
_.se(R)}})};
ljd.prototype.disposeInternal=function(){_.tg.prototype.disposeInternal.call(this);mjd(this)};var njd=_.Rr(function(a){var b=_.ot(function(){var d=a.data().videoId;if(a.active())d=_.cp(d),_.v().resolve(_.Xi).resolveCommand(d);else{var e=a.playerApi(),g=e.getAvailableAudioTracks(),k,m,n=(k=a.sourceVideoConfig().audioTracks)==null?void 0:(m=k.find(function(r){return r.isDefaultForSource}))==null?void 0:m.id;
if(g=g.find(function(r){return r.getLanguageInfo().getId()===n}))e.setAudioTrack(g,!0),e.setCompositeParam({activeVideoId:d}),a.setActiveSourceId(d)}}),c={};
return _.q("ytw-composite-source-video-overlay",{class:_.jt("ytwCompositeSourceVideoOverlayHost",(c.ytwCompositeSourceVideoOverlayActive=a.active,c.ytwCompositeSourceVideoOverlayInteracting=a.interacting,c)),style:_.rt({left:function(){var d;return((d=a.data().topLeftCornerX)!=null?d:0)*100+"%"},
top:function(){var d;return((d=a.data().topLeftCornerY)!=null?d:0)*100+"%"},
width:function(){var d;return((d=a.data().width)!=null?d:0)*100+"%"},
height:function(){var d;return((d=a.data().height)!=null?d:0)*100+"%"}}),
"on:click":b},_.q("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))});var ojd=_.Rr(function(a){var b=_.h(_.qt(function(){var m,n=(m=a.data().sources)==null?void 0:m.find(function(r){return r.isActive});
if(n)return n.videoId})),c=b.next().value,d=b.next().value;
b=_.h(_.fh(!1,"WI4BUb"));var e=b.next().value,g=b.next().value;b=_.ot(function(){g(!0)});
var k=_.ot(function(){g(!1)});
return _.q("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":b,"on:mouseout":k},_.q(_.oi,{cond:function(){return a.data().sources},
then:function(m){return _.q(_.ni,{each:m},function(n){return _.q(njd,{data:n,active:function(){return n.videoId===c()},
setActiveSourceId:d,interacting:e,playerApi:a.playerApi,sourceVideoConfig:function(){return xcd(a.compositeVideoConfig(),n.videoId)}})})}}))});var rjd=function(a){_.tg.call(this);this.JSC$20046_watchApi=a;a=_.h(_.fh({},"gyAjHd"));this.compositeVideoOverlayRenderer=a.next().value;this.setCompositeVideoOverlayRenderer=a.next().value;a=_.h(_.fh({},"U5hcq"));this.compositeVideoConfig=a.next().value;this.setCompositeVideoConfig=a.next().value;pjd(this);qjd(this)};
_.z(rjd,_.tg);var pjd=function(a){var b=a.JSC$20046_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){qjd(a)});
a.addOnDisposeCallback(function(){a.JSC$20046_watchApi.unsubscribeByKey(b)})},sjd=function(a){var b;
return _.l(function(c){if(c.nextAddress==1)return _.p(c,a.JSC$20046_watchApi.playerApi,2);b=c.yieldResult;b.setCompositeVideoOverlayRendererComponent(a.container);_.se(c)})},tjd=function(a){var b;
return _.l(function(c){if(c.nextAddress==1)return _.p(c,a.JSC$20046_watchApi.playerApi,2);b=c.yieldResult;b.setCompositeVideoOverlayRendererComponent(void 0);_.se(c)})},ujd=function(a){var b,c;
return _.l(function(d){if(d.nextAddress==1)return _.p(d,a.JSC$20046_watchApi.playerApi,2);b=d.yieldResult;a.container=document.createElement("div");c=_.si(a.container,function(){return _.q(ojd,{data:a.compositeVideoOverlayRenderer,compositeVideoConfig:a.compositeVideoConfig,playerApi:b})});
a.addOnDisposeCallback(c);_.se(d)})},qjd=function(a){var b,c,d,e,g,k,m,n;
_.l(function(r){return r.nextAddress==1?(b=a.JSC$20046_watchApi.getPlayerResponse(),g=_.y((c=b)==null?void 0:(d=c.overlay)==null?void 0:(e=d.playerControlsOverlayRenderer)==null?void 0:e.compositeVideoOverlay,sdd),n=(k=b)==null?void 0:(m=k.playerConfig)==null?void 0:m.compositeVideoConfig,g&&a.setCompositeVideoOverlayRenderer(g),n&&a.setCompositeVideoConfig(n),g&&n?a.container?r.jumpTo(6):_.p(r,ujd(a),6):vjd(a)?_.p(r,tjd(a),0):r.jumpTo(0)):vjd(a)?r.jumpTo(0):_.p(r,sjd(a),0)})},vjd=function(a){var b;
return!((b=a.container)==null||!b.parentElement)};
rjd.prototype.disposeInternal=function(){vjd(this)&&tjd(this);_.tg.prototype.disposeInternal.call(this)};var Ajd=function(a){_.tg.call(this);var b=this;this.JSC$20052_watchApi=a;var c=this.JSC$20052_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var d=b.JSC$20052_watchApi.getPlayerResponse();if(d){var e,g;if(d=_.y((e=d.endscreen)==null?void 0:(g=e.endscreenRenderer)==null?void 0:g.hideButton,_.Gu)){var k;(k=b.setEndscreenHideButton)==null||k.call(b,d);wjd(b)}}});
this.addOnDisposeCallback(function(){b.JSC$20052_watchApi.unsubscribeByKey(c)});
a=_.h(_.fh({},"PPHRb"));this.endscreenHideButton=a.next().value;this.setEndscreenHideButton=a.next().value;xjd(this);yjd(this);zjd(this)};
_.z(Ajd,_.tg);var wjd=function(a){var b,c;_.l(function(d){if(d.nextAddress==1)return a.creatorEndscreenHideButtonContainer?d.return():_.p(d,a.JSC$20052_watchApi.playerApi,2);b=d.yieldResult;a.creatorEndscreenHideButtonContainer=document.createElement("div");_.Mg(a.creatorEndscreenHideButtonContainer,!1);b.setCreatorEndscreenHideButton(a.creatorEndscreenHideButtonContainer);c=_.si(a.creatorEndscreenHideButtonContainer,function(){return _.q(_.Hu,{data:a.endscreenHideButton,useOutlinedIcon:!0})});
a.addOnDisposeCallback(function(){c();b.setCreatorEndscreenHideButton(void 0)});
_.se(d)})},xjd=function(a){var b,c;
_.l(function(d){if(d.nextAddress==1)return _.p(d,a.JSC$20052_watchApi.playerApi,2);b=d.yieldResult;c=function(){a.creatorEndscreenHideButtonContainer&&_.Mg(a.creatorEndscreenHideButtonContainer,!0)};
b.addEventListener("endscreenelementshown",c);a.addOnDisposeCallback(function(){b.removeEventListener("endscreenelementshown",c)});
_.se(d)})},yjd=function(a){var b=function(){a.creatorEndscreenHideButtonContainer&&_.Mg(a.creatorEndscreenHideButtonContainer,!1)},c=a.JSC$20052_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",b),d=a.JSC$20052_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",b);
a.addOnDisposeCallback(function(){a.JSC$20052_watchApi.unsubscribeByKey(c);a.JSC$20052_watchApi.unsubscribeByKey(d)})},zjd=function(a){a.JSC$20052_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(b){var c=_.y(b,mdd);
a.JSC$20052_watchApi.playerApi.then(function(d){d==null||d.setCreatorEndscreenVisibility(!!c.hide)})});
a.addOnDisposeCallback(function(){F$(a.JSC$20052_watchApi,"yt-change-creator-endscreen-visibility-command")})};var Cjd=function(a){_.tg.call(this);this.JSC$20058_watchApi=a;Bjd(this)};
_.z(Cjd,_.tg);var Bjd=function(a){var b,c;_.l(function(d){if(d.nextAddress==1)return _.p(d,a.JSC$20058_watchApi.playerApi,2);b=d.yieldResult;c=function(e){_.Yp().dispatch(_.gp({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:e}}))};
b.addEventListener("onRetroModeChanged",c);a.addOnDisposeCallback(function(){b.removeEventListener("onRetroModeChanged",c)});
_.se(d)})};var Fcd=0,K8=0,Hcd=0;var Djd=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]),H$=function(a){_.tg.call(this);this.JSC$20071_watchApi=a;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;Ejd(this)};
_.z(H$,_.tg);
var Ejd=function(a){var b,c,d;_.l(function(e){if(e.nextAddress==1)return _.p(e,a.JSC$20071_watchApi.playerApi,2);b=e.yieldResult;if(a.isDisposed())return e.return();a.sessionStorage=_.zic("yt-sleep-timer");a.sessionStorage||_.Dl(new _.qj("SessionStorage for Sleep Timer is undefined."));((c=a.sessionStorage)==null?void 0:c.get("yt-sleep-timer"))==="true"&&(Kcd(),(d=a.sessionStorage)==null||d.remove("yt-sleep-timer"),b.syncVolume());Fjd(a,b);Gjd(a,b);Hjd(a,b);_.se(e)})},Fjd=function(a,b){var c=function(r){a.onSleepTimerSettingsChanged(r,
b)},d=function(r){a.onPlayerStateChange(r,b)},e=function(){a.onLoopChange(b)},g=function(){a.onCloseMiniplayer(b)},k=function(){Ecd(b,(0,_.Uj)(),Lcd(b),a.selectedOption==="End of video",b.getPlayerState()!==1)},m=function(){a.onSeekComplete(b)},n=function(){_.zk.cancelJob(K8);
var r=b.getCurrentTime()>=b.getDuration(),t=a.selectedOption==="End of video"||a.selectedOption==="End of playlist"&&!Bcd(a.playlistId);r&&t&&Ijd(a,b)};
b.addEventListener("onSleepTimerSettingsChanged",c);b.addEventListener("onLoopChange",e);b.addEventListener("onLoopRangeChange",e);b.addEventListener("onStateChange",d);b.addEventListener("onCloseMiniplayer",g);b.addEventListener("onSleepTimerFeatureAvailable",k);b.addEventListener("SEEK_COMPLETE",m);b.addEventListener("onAdStart",n);a.addOnDisposeCallback(function(){b.removeEventListener("onSleepTimerSettingsChanged",c);b.removeEventListener("onLoopChange",e);b.removeEventListener("onLoopRangeChange",
e);b.removeEventListener("onStateChange",d);b.removeEventListener("onCloseMiniplayer",g);b.removeEventListener("onSleepTimerFeatureAvailable",k);b.removeEventListener("SEEK_COMPLETE",m);b.removeEventListener("onAdStart",n)})},Gjd=function(a,b){var c=a.JSC$20071_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var d=b.getVideoData().video_id,e,g=(e=zcd(a.JSC$20071_watchApi))==null?void 0:e.playlistId;
a.pauseAutonavPlayback&&(b.pauseVideo(),b.syncVolume(),a.pauseAutonavPlayback=!1);if(a.selectedOption==="End of video"&&d!==a.videoId)I$(a,b);else{if(a.selectedOption==="End of playlist"){e=Bcd(a.playlistId);if(g!==a.playlistId){I$(a,b);break a}e?e&&Jjd(a,b):Kjd(a,b)}a.videoId=d;a.playlistId=g}}});
a.addOnDisposeCallback(function(){a.JSC$20071_watchApi.unsubscribeByKey(c)})},Hjd=function(a,b){var c=_.v().resolve(_.IG),d=_.wF(c,_.mFa,function(g){g&&a.selectedOption!=="Off"&&I$(a,b)}),e=_.wF(c,G8,function(g){var k,m;
return _.l(function(n){if(n.nextAddress==1)return _.p(n,_.uF().navigationFinishPromise,2);k=!_.KIb();m=_.v().resolve(_.Vw).isMiniplayerActive();g||!ycd(a.selectedOption)||m||k||I$(a,b);_.se(n)})});
c=_.wF(c,function(g){return g.entities.playlistLoopStateEntity||{}},function(g){g=g===void 0?{}:g;
var k=Acd(a.JSC$20071_watchApi);if(k){var m;((m=g[k])==null?void 0:m.state)==="PLAYLIST_LOOP_STATE_ALL"&&ycd(a.selectedOption)&&I$(a,b)}});
a.addOnDisposeCallback(d);a.addOnDisposeCallback(c);a.addOnDisposeCallback(e)};
H$.prototype.onSleepTimerSettingsChanged=function(a,b){switch(a){case "Off":this.selectedOption!=="Off"&&I$(this,b);break;case "End of video":case "End of playlist":Ljd(this,a,b);break;default:Ljd(this,a,b,Djd.get(a))}};
H$.prototype.onLoopChange=function(a){(a.getLoopVideo()||a.getLoopRange())&&ycd(this.selectedOption)&&I$(this,a)};
H$.prototype.onCloseMiniplayer=function(a){ycd(this.selectedOption)&&I$(this,a)};
var Ljd=function(a,b,c,d){Mjd(a,c);a.selectedOption=b;a.videoId=c.getVideoData().video_id;a.playlistId="";var e;(e=a.sessionStorage)==null||e.set("yt-sleep-timer","true");a.adjustmentsCount++;Ecd(c,(0,_.Uj)(),Lcd(c),a.selectedOption==="End of video");if(a.selectedOption==="End of video")Kjd(a,c),Njd(a,c);else if(a.selectedOption==="End of playlist"){Njd(a,c);var g,k;a.playlistId=(k=(g=zcd(a.JSC$20071_watchApi))==null?void 0:g.playlistId)!=null?k:"";Bcd(a.playlistId)||Kjd(a,c)}else d&&(a.presetFadeSchedulerId=
_.wu(_.zk,function(){Icd(c,15E3)},d-15E3),a.presetPauseSchedulerId=_.wu(_.zk,function(){Ijd(a,c)},d),Gcd(c,(0,_.Uj)(),d))},Ijd=function(a,b){if(G8(_.v().resolve(_.IG).getState())){var c={dismissDialogEndpoint:{}};
var d={commandExecutorCommand:{commands:[c,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};c={buttonViewModel:{title:_.to("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:c}}};d={buttonViewModel:{title:_.to("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:d}}};var e={dialogHeaderViewModel:{headline:{content:_.to("SLEEP_TIMER_ENDED_TITLE")}}};
var g={basicContentViewModel:{paragraphs:[{text:{content:_.to("SLEEP_TIMER_ENDED_TEXT")}}]}};c={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:e,content:g,footer:{panelFooterViewModel:{primaryButton:c,secondaryButton:d,shouldHideDivider:!0}}}}}}};_.v().resolve(_.Xi).resolveCommand(c,{form:{element:a}})}else Kcd();Ojd(a,!1);Pjd(a,b);b.pauseVideo();_.cF.getInstance().getState()===2&&b.getPlayerState()===5&&(a.pauseAutonavPlayback=!0)},I$=function(a,b){Ojd(a,!0);
Pjd(a,b);Kcd()},Pjd=function(a,b){Mjd(a,b);
a.selectedOption="Off";a.videoId="";a.playlistId="";a.adjustmentsCount=0;var c;(c=a.sessionStorage)==null||c.remove("yt-sleep-timer");_.zk.cancelJob(Fcd);b.resetSleepTimerMenuSettings()},Ojd=function(a,b){b={timer_length_adjustment_times_during_session:a.adjustmentsCount-1,
is_session_cancelled:b};switch(a.selectedOption){case "Off":b.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":b.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":b.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:b.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",b.option_duration_in_minutes=Djd.get(a.selectedOption)/6E4}_.zl("sleepTimerSessionFinishEvent",b)};
H$.prototype.onPlayerStateChange=function(a,b){a===1?Ecd(b,(0,_.Uj)(),Lcd(b),this.selectedOption==="End of video"):a===0?(_.zk.cancelJob(K8),b.setVideoTimeLeft(Dcd(0,0))):a===2&&_.zk.cancelJob(K8);this.selectedOption==="End of video"?a===0?Ijd(this,b):a===2&&Jcd(b):this.selectedOption!=="End of playlist"||Bcd(this.playlistId)||(a===0?Ijd(this,b):a===2&&Jcd(b))};
H$.prototype.onSeekComplete=function(a){a.getPlayerState()===2&&Ecd(a,(0,_.Uj)(),Lcd(a),this.selectedOption==="End of video",!0)};
H$.prototype.onCueRangeEnter=function(a,b){a==="sleep-timer-fade-audio"&&(a=(b.getDuration()-b.getProgressState().current)*1E3,Icd(b,a))};
H$.prototype.onCueRangeExit=function(a,b){a==="sleep-timer-fade-audio"&&b.getPlayerState()!==0&&Jcd(b,!0)};
var Kjd=function(a,b){b.addCueRange("sleep-timer-fade-audio",b.getDuration()-15,b.getDuration());b.addEventListener("onCueRangeEnter",function(c){a.onCueRangeEnter(c,b)});
b.addEventListener("onCueRangeExit",function(c){a.onCueRangeExit(c,b)})},Jjd=function(a,b){b.removeCueRange("sleep-timer-fade-audio");
b.removeEventListener("onCueRangeEnter",function(c){a.onCueRangeEnter(c,b)});
b.removeEventListener("onCueRangeExit",function(c){a.onCueRangeExit(c,b)})},Mjd=function(a,b){ycd(a.selectedOption)?Jjd(a,b):(_.zk.cancelJob(a.presetPauseSchedulerId),_.zk.cancelJob(a.presetFadeSchedulerId),a.presetPauseSchedulerId=0,a.presetFadeSchedulerId=0);
Jcd(b,!0)},Njd=function(a,b){b.setLoop(!1);
b.setLoopVideo(!1);b.setLoopRange(null);(a=Acd(a.JSC$20071_watchApi))&&_.v().resolve(_.IG).dispatch(_.vu("playlistLoopStateEntity",a,{key:a,state:"PLAYLIST_LOOP_STATE_NONE"}))};var Tjd=function(a){_.tg.call(this);this.JSC$20074_watchApi=a;Qjd(this);Rjd(this);Sjd(this);a=a.getRoot();if(a.is==="ytd-watch-flexy"||a.is==="ytd-watch-grid")a.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.Sbd();_.x("web_watch_log_theater_mode_cookie_state")&&_.lj.get("wide","0")==="1"&&_.zt("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.z(Tjd,_.tg);var Qjd=function(a){var b,c;_.l(function(d){if(d.nextAddress==1)return _.p(d,a.JSC$20074_watchApi.playerApi,2);b=d.yieldResult;c=function(e){Ujd(a,!!e)};
b.addEventListener("SIZE_CLICKED",c);a.addOnDisposeCallback(function(){b.removeEventListener("SIZE_CLICKED",c)});
_.se(d)})},Rjd=function(a){a.JSC$20074_watchApi.registerActionHandler("yt-toggle-theater-mode",function(b,c){Ujd(a,b,c===void 0?!0:c)});
a.addOnDisposeCallback(function(){F$(a.JSC$20074_watchApi,"yt-toggle-theater-mode")})};
Tjd.prototype.getState=function(){return _.FW(_.Yp().getState())};
var Ujd=function(a,b,c){c=c===void 0?!0:c;var d,e,g,k=_.x("enable_player_resize_transition")&&!!a.JSC$20074_watchApi.getWatchNextResponse()&&!((d=a.JSC$20074_watchApi.getWatchNextResponse())==null?0:(e=d.contents)==null?0:(g=e.twoColumnWatchNextResults)==null?0:g.conversationBar);_.wlc(function(){_.Yp().dispatch(_.gp({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:b}}));_.x("theater_mode_scroll_to_top_killswitch")||a.JSC$20074_watchApi.scrollWatchTo(0,!1);_.bo()&&_.x("external_fullscreen")&&_.co(document.documentElement);
Sjd(a);c&&_.mj("wide",b?"1":"0",-1);_.ho(a.JSC$20074_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);a.JSC$20074_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:b});b&&_.Sbd()},{shouldWrap:k})},Sjd=function(a){var b;
_.l(function(c){if(c.nextAddress==1)return _.p(c,a.JSC$20074_watchApi.playerApi,2);b=c.yieldResult;b.setSizeStyle(!0,a.getState());_.se(c)})};var Xjd=function(a){_.tg.call(this);var b=this;this.playerApi=a;this.timeToPanelSyncKeyMap={};var c;if(a==null?0:(c=a.isReady)==null?0:c.call(a)){c=_.wF(_.v().resolve(_.IG),function(e){return e.entities.timedMarkersListSyncEntity||{}},function(e,g){e=e===void 0?{}:e;
g=g===void 0?{}:g;for(var k=_.h(Object.keys(g)),m=k.next();!m.done;m=k.next())m=m.value,e[m]!==g[m]&&Vjd(b,g[m]);g=_.h(Object.keys(e));for(k=g.next();!k.done;k=g.next())k=k.value,m=e[k],b.timeToPanelSyncKeyMap[k]&&Wjd(b,m)});
this.addOnDisposeCallback(c);var d=function(e){b.onCueRangeEnter(e)};
a.addEventListener("onCueRangeEnter",d);this.addOnDisposeCallback(function(){var e;(e=a.removeEventListener)==null||e.call(a,"onCueRangeEnter",d)})}};
_.z(Xjd,_.tg);
var Wjd=function(a,b){var c,d;if((c=a.playerApi)==null?0:(d=c.isReady)==null?0:d.call(c)){var e;if((c=b==null?void 0:(e=b.timedListData)==null?void 0:e.sections)&&b!=null&&b.key)for(e=_.h(c),c=e.next();!c.done;c=e.next())if(c=c.value,c.timedSyncDataList&&c.sectionId)for(d=0;d<c.timedSyncDataList.length;d++){var g=c.timedSyncDataList[d];g.syncItemId&&a.playerApi.addCueRange(c.sectionId+"_"+b.key+"_"+g.syncItemId,Number(g.videoTimeMs)/1E3,d===c.timedSyncDataList.length-1?0x8000000000000:Number(c.timedSyncDataList[d+
1].videoTimeMs)/1E3)}}},Vjd=function(a,b){var c,d;
if((c=a.playerApi)==null?0:(d=c.isReady)==null?0:d.call(c)){var e;if((c=b==null?void 0:(e=b.timedListData)==null?void 0:e.sections)&&b!=null&&b.key)for(e=_.h(c),c=e.next();!c.done;c=e.next())if(c=c.value,c.timedSyncDataList&&c.sectionId){d=_.h(c.timedSyncDataList);for(var g=d.next();!g.done;g=d.next())g=g.value,g.syncItemId&&a.playerApi.removeCueRange(c.sectionId+"_"+b.key+"_"+g.syncItemId)}}};
Xjd.prototype.onCueRangeEnter=function(a){for(var b=_.h(Object.keys(this.timeToPanelSyncKeyMap)),c=b.next();!c.done;c=b.next()){c=c.value;var d=_.h(a.split("_"+c+"_")),e=d.next().value;d=d.next().value;if(e&&d){a=_.v().resolve(_.IG);b=this.timeToPanelSyncKeyMap[c];var g=_.iSa(a.getState(),b);c=Yjd(c,e,d);if(c===-1)break;c={activeSyncId:d,activeItemIndex:c,activeSectionInfo:{sectionIdentifier:e}};g?a.dispatch(_.Iu("markersEngagementPanelSyncEntity",b,c)):a.dispatch(_.vu("markersEngagementPanelSyncEntity",
b,Object.assign({},{key:b},c)));break}}};
var Yjd=function(a,b,c){var d=_.v().resolve(_.IG),e,g;a=(e=Rbd(d.getState(),a))==null?void 0:(g=e.timedListData)==null?void 0:g.sections;if(!a)return-1;e=0;g=_.h(a);for(a=g.next();!a.done;a=g.next()){a=a.value;d=a.timedSyncDataList||[];if(a.sectionId===b)return b=d.findIndex(function(k){return k.syncItemId===c}),b===-1?b:e+b;
e+=d.length}return-1};var akd=function(a){_.tg.call(this);var b=this;this.JSC$20086_watchApi=a;this.unresolvedCommands=[];this.JSC$20086_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(c){Zjd(b,c)});
this.addOnDisposeCallback(function(){F$(b.JSC$20086_watchApi,"yt-update-timed-markers-sync-observer-command")});
$jd(this)};
_.z(akd,_.tg);var $jd=function(a){var b;_.l(function(c){if(c.nextAddress==1)return _.p(c,a.JSC$20086_watchApi.playerApi,2);b=c.yieldResult;if(a.isDisposed())return c.return();a.timedSyncObserver=new Xjd(b);a.unresolvedCommands.length&&(a.unresolvedCommands.forEach(function(d){return Zjd(a,d)}),a.unresolvedCommands=[]);
_.gg(a,a.timedSyncObserver);_.se(c)})},Zjd=function(a,b){if(a.timedSyncObserver){var c=_.y(b,odd);
if(c&&c.timedSyncEntityKey&&c.panelSyncEntityKey){a=a.timedSyncObserver;b=c.timedSyncEntityKey;var d=c.panelSyncEntityKey;c=!!c.isEnabled;c=c===void 0?!0:c;var e=_.v().resolve(_.IG);e=Rbd(e.getState(),b);c?a.timeToPanelSyncKeyMap[b]||(a.timeToPanelSyncKeyMap[b]=d,Wjd(a,e)):(delete a.timeToPanelSyncKeyMap[b],Vjd(a,e))}}else a.unresolvedCommands.push(b)};var bkd=_.Rr(function(a){var b=a.data,c=a.maybeLogSmartSkipClientData,d=_.Rl();_.Vu(d,function(){return b().rendererContext},{onTap:function(t,u){u({disableClickTracking:!0})}});
var e=null,g=null,k=_.x("web_enable_auto_focus_for_timely_action_button"),m=function(){e=document.activeElement},n=function(){b().smartSkipMetadata&&(e=document.activeElement,Obd(function(){return g}))},r=function(t){if(b().smartSkipMetadata&&(!t||t.key!=="Enter")){e&&e.isConnected&&(Obd(function(){return e}),e=null);
var u;(u=g)==null||u.blur()}};
a=_.ot(function(){c==null||c(!0,b());return!1});
_.$l(d,{visibilityCallback:function(t){if(k)t?g&&b().smartSkipMetadata&&(n(),document.addEventListener("focusin",m)):(document.removeEventListener("focusin",m),r());else if(t&&_.x("web_ephemeral_actions")){t=_.Pu(b().rendererContext);var u=Number(b().maxVisibleDurationMilliseconds),w,A=(w=_.y(b().rendererContext,_.Wu))==null?void 0:w.label;t&&u&&A&&(w={announcement:A,command:t,durationMs:u},_.v().resolve(_.aic).enqueue(w))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}});_.ti(function(){if(k){var t;if((g=(t=d.value)==null?void 0:t.querySelector("button"))&&b().smartSkipMetadata){var u;(u=d.value)==null||u.addEventListener("keydown",r)}}});
_.wh(function(){k&&(g&&b().smartSkipMetadata&&g.removeEventListener("keydown",r),document.removeEventListener("focusin",m),r())});
return _.q("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:d,"on:click":a},_.q(_.Eu,{data:function(){return b().content}},{buttonViewModel:_.Ju}))});var ckd=_.Rr(function(a){var b=a.data,c=a.playerApi,d=_.v().resolve(_.Bfc);a=_.h(_.qt(function(){b()}));
var e=a.next().value,g=a.next().value,k=function(){return Ocd(b(),e())},m=function(r,t){var u,w,A=(u=_.y(t==null?void 0:t.rendererContext,_.tPa))==null?void 0:(w=u.loggingDirectives)==null?void 0:w.trackingParams;
if((t=t==null?void 0:t.smartSkipMetadata)&&t.loggingData&&(w=t.loggingData,t=w.algorithmId,u=w.startMilliseconds,w=w.endMilliseconds,t&&u!==void 0&&w!==void 0)){var C,G;r={smartSkipData:Object.assign({},{versionName:t,startMediaTimeMs:u,endMediaTimeMs:w},r&&{userInteractionMediaTimeMs:(Math.floor(((C=_.bu())==null?void 0:(G=C.getPlayer())==null?void 0:G.getCurrentTime())||0)*1E3).toString()})};C=_.Fn();var J;A&&(J=_.qs(A));C&&J&&_.Xo(C,J,r)}},n=function(r,t){var u=Ocd(b(),r);
if(u){var w=_.y(u,Ncd),A;if(A=t)A=c(),u=_.y(u,Ncd),A=u!=null&&u.smartSkipMetadata?!(A==null?0:A.isSameMarkerTypeVisible((u==null?void 0:u.smartSkipMetadata.markerKey)||"")):!0;if(A){var C,G;(w==null?0:(C=w.smartSkipMetadata)==null?0:(G=C.loggingData)==null?0:G.isCounterfactual)||(m(!1,w),g(r))}else t||e()!==r||g(void 0)}};
_.yh(function(){var r=b().timelyActions;if(r){r=_.h(r);for(var t=r.next();!t.done;t=r.next()){t=_.y(t.value,Ncd);var u=void 0;(u=t)!=null&&u.cueRangeId&&d.timelyActionsMap.set(t.cueRangeId,n)}_.wh(function(){d.timelyActionsMap.clear()})}},"nuaQ1d");
return _.q("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.q(_.Eu,{data:k},{timelyActionViewModel:function(r){return _.q(bkd,{data:r.data,maybeLogSmartSkipClientData:function(){m(!0,_.y(k(),Ncd))}})}}))});var ekd=function(a){_.tg.call(this);this.JSC$20098_watchApi=a;a=_.h(_.fh({},"pLDp2"));this.timelyActionsOverlay=a.next().value;this.setTimelyActionsOverlay=a.next().value;dkd(this)};
_.z(ekd,_.tg);var dkd=function(a){var b,c,d,e;_.l(function(g){if(g.nextAddress==1)return fkd(a),gkd(a),a.timelyActionsContainer=document.createElement("div"),_.p(g,a.JSC$20098_watchApi.playerApi,2);b=g.yieldResult;(d=(c=b).insertTimelyActionUi)==null||d.call(c,a.timelyActionsContainer);e=_.si(a.timelyActionsContainer,function(){return _.q(ckd,{data:a.timelyActionsOverlay,playerApi:b})});
a.addOnDisposeCallback(e);_.se(g)})},gkd=function(a){var b=a.JSC$20098_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){fkd(a)});
a.addOnDisposeCallback(function(){a.JSC$20098_watchApi.unsubscribeByKey(b)})},fkd=function(a){var b=a.JSC$20098_watchApi.getWatchNextResponse();
if(b){var c,d;if(b=_.y((c=b.playerOverlays)==null?void 0:(d=c.playerOverlayRenderer)==null?void 0:d.timelyActionsOverlayViewModel,pdd)){var e;(e=a.setTimelyActionsOverlay)==null||e.call(a,b)}}};var ikd=function(a){_.tg.call(this);this.JSC$20102_watchApi=a;hkd(this)};
_.z(ikd,_.tg);var hkd=function(a){var b,c;_.l(function(d){if(d.nextAddress==1)return _.p(d,a.JSC$20102_watchApi.playerApi,2);b=d.yieldResult;c=function(e){_.hs.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.y(e,_.bad)},popupType:"TOAST"}})};
b.addEventListener("onYtShowToast",c);a.addOnDisposeCallback(function(){b.removeEventListener("onYtShowToast",c)});
_.se(d)})};var jkd=!1,nkd=function(a){_.tg.call(this);this.JSC$20105_watchApi=a;this.fullscreen=this.theater=!1;kkd(this);lkd(this);mkd(this)};
_.z(nkd,_.tg);var mkd=function(a){var b,c,d;_.l(function(e){if(e.nextAddress==1)return _.p(e,a.JSC$20105_watchApi.playerApi,2);b=e.yieldResult;if(a.isDisposed())return e.return();c=a.JSC$20105_watchApi.getElement("CINEMATICS");if(!c)return e.return();a.JSC$20105_cinematicController=new _.n8(c,b);_.gg(a,a.JSC$20105_cinematicController);_.xad(a.JSC$20105_cinematicController);okd(a,_.fIa());d=a.JSC$20105_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(g){pkd(a,g)});
a.addOnDisposeCallback(function(){a.JSC$20105_watchApi.unsubscribeByKey(d)});
qkd(a);pkd(a,a.JSC$20105_cinematicController.isAllowed());rkd(a,a.fullscreen,a.theater);skd(a);_.se(e)})},kkd=function(a){var b=a.JSC$20105_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){qkd(a)});
a.addOnDisposeCallback(function(){a.JSC$20105_watchApi.unsubscribeByKey(b)})},lkd=function(a){var b,c;
_.l(function(d){if(d.nextAddress==1)return _.p(d,a.JSC$20105_watchApi.playerApi,2);b=d.yieldResult;c=function(e){okd(a,e)};
b.addEventListener("cinematicSettingsToggleChange",c);a.addOnDisposeCallback(function(){b.removeEventListener("cinematicSettingsToggleChange",c)});
_.se(d)})},qkd=function(a){var b=a.JSC$20105_watchApi.getWatchNextResponse(),c;
b=_.y(b==null?void 0:(c=b.pageVisualEffects)==null?void 0:c[0],_.F6);var d;(d=a.JSC$20105_cinematicController)==null||_.zad(d,b)},okd=function(a,b){var c;
(c=a.JSC$20105_cinematicController)==null||_.yad(c,b);tkd(a)},pkd=function(a,b){var c;
_.l(function(d){if(d.nextAddress==1)return _.x("kevlar_watch_cinematics_invisible")&&(b=!1),_.p(d,a.JSC$20105_watchApi.playerApi,2);c=d.yieldResult;c.updateCinematicSettings(b);tkd(a);_.se(d)})},skd=function(a){var b=_.wo();
if(_.x("kevlar_measure_ambient_mode_idle")&&!b.getFlag(192)&&!jkd){jkd=!0;var c=_.ul(_.zk,function(){_.v().resolve(_.xic).start(1E4)},5E3);
a.addOnDisposeCallback(function(){_.zk.cancelJob(c);_.v().resolve(_.xic).stop()})}},rkd=function(a,b,c){a.fullscreen=b;
a.theater=c;var d;(d=a.JSC$20105_cinematicController)==null||d.setFullscreen(a.fullscreen,a.theater);if(_.x("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(a.theater||a.fullscreen)(a=a.JSC$20105_cinematicController)!=null&&(a=a.currentCinematicEffect)!=null&&(a=a.storyboardManager,a.paused=!1,_.gad(a),a.update());else{var e;(e=a.JSC$20105_cinematicController)==null||_.Aad(e)}},tkd=function(a){if(_.x("web_cinematic_theater_mode")||_.x("web_cinematic_fullscreen")){var b;
a.JSC$20105_watchApi.getRoot().toggleCinematicsActive(!((b=a.JSC$20105_cinematicController)==null||!b.isEnabled()))}};var xkd=function(a){_.tg.call(this);var b=this;this.JSC$20108_watchApi=a;this.commentsReady=!1;this.setCommentsJobId=0;a=_.wF(_.Yp(),_.I8,function(){ukd(b)});
this.addOnDisposeCallback(a);var c=this.JSC$20108_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){vkd(b)}),d=this.JSC$20108_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){vkd(b)});
this.addOnDisposeCallback(function(){b.JSC$20108_watchApi.unsubscribeByKey(c);b.JSC$20108_watchApi.unsubscribeByKey(d)});
var e=function(){_.x("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&wkd(b,"false")};
this.JSC$20108_watchApi.getRoot().addEventListener("yt-page-data-will-update",e);this.addOnDisposeCallback(function(){b.JSC$20108_watchApi.getRoot().removeEventListener("yt-page-data-will-update",e)});
vkd(this)};
_.z(xkd,_.tg);var vkd=function(a){a.commentsReady=!1;_.zk.cancelJob(a.setCommentsJobId);a.setCommentsJobId=_.ul(_.zk,function(){ukd(a)},1E3)},ukd=function(a){if(!a.commentsReady){_.Jo("cmi");
_.zk.cancelJob(a.setCommentsJobId);var b,c,d,e,g=(b=a.JSC$20108_watchApi.getWatchNextResponse())==null?void 0:(c=b.contents)==null?void 0:(d=c.twoColumnWatchNextResults)==null?void 0:(e=d.results)==null?void 0:e.results.contents;b=void 0;if(g&&g.length)for(g=_.h(g),c=g.next();!c.done;c=g.next())if(c=c.value,e=d=void 0,((d=c)==null?void 0:(e=d.itemSectionRenderer)==null?void 0:e.sectionIdentifier)==="comment-item-section"){_.x("web_watch_provide_undefined_comments")?b=c.itemSectionRenderer:a.JSC$20108_watchApi.provideRenderingData("COMMENTS",
c.itemSectionRenderer);wkd(a,"true");break}_.x("web_watch_provide_undefined_comments")&&a.JSC$20108_watchApi.provideRenderingData("COMMENTS",b);a.commentsReady=!0;a.JSC$20108_watchApi.dispatchEvent("yt-watch-comments-ready")}},wkd=function(a,b){var c;
(c=a.JSC$20108_watchApi.getElement("COMMENTS"))==null||c.setAttribute("canScheduleJobs",b)};var Dkd;_.ykd=["engagement-panel-ads"];
Dkd=function(a){_.tg.call(this);var b=this;this.JSC$20111_watchApi=a;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.x("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.x("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.x("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.$i("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)zkd(this);
else{var c=this.JSC$20111_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Akd(b);J$(b)}),d=this.JSC$20111_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){K$(b);
J$(b)});
this.JSC$20111_watchApi.getRoot().is==="ytd-watch-grid"&&_.x("swatcheroo_pbs_load_grid")&&(Bkd(this),Ckd(this));this.addOnDisposeCallback(function(){b.JSC$20111_watchApi.unsubscribeByKey(c);b.JSC$20111_watchApi.unsubscribeByKey(d);_.zk.cancelJob(b.provideRichGridJobId)});
Akd(this);K$(this)}};
_.z(Dkd,_.tg);var zkd=function(a){var b=a.JSC$20111_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){a.providePlayerJobId=_.Du(_.zk,function(){Akd(a);J$(a)},a.provideAllDataDelayMs)}),c=a.JSC$20111_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a.provideWatchNextJobId=_.Du(_.zk,function(){K$(a);
J$(a)},a.provideAllDataDelayMs)}),d=a.JSC$20111_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){a.provideWatchNextJobId=_.Du(_.zk,function(){K$(a);
J$(a)},a.provideAllDataDelayMs)});
a.JSC$20111_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.ul(_.zk,function(){Akd(a);K$(a);J$(a)},100)});
Ekd(a.JSC$20111_watchApi,function(){_.zk.cancelJob(a.provideWatchNextJobId);_.zk.cancelJob(a.providePlayerJobId)});
a.addOnDisposeCallback(function(){F$(a.JSC$20111_watchApi,"yt-pending-navigation-cancelled");a.JSC$20111_watchApi.unsubscribeByKey(b);a.JSC$20111_watchApi.unsubscribeByKey(c);a.JSC$20111_watchApi.unsubscribeByKey(d);_.zk.cancelJob(a.providePlayerJobId);_.zk.cancelJob(a.provideWatchNextJobId)});
Akd(a);K$(a)},Akd=function(a){var b=a.JSC$20111_watchApi.getPlayerResponse(),c,d,e=(d=b==null?void 0:(c=b.playabilityStatus)==null?void 0:c.messageRenderers)!=null?d:[],g,k;
b=(k=b==null?void 0:(g=b.playabilityStatus)==null?void 0:g.messages)!=null?k:[];g=_.h(b);for(k=g.next();!k.done;k=g.next())e.push({alertRenderer:{text:_.Up(k.value),type:"WARNING"}});a.JSC$20111_watchApi.provideRenderingData("ALERTS",e)},K$=function(a){var b=[],c,d,e,g=a.JSC$20111_watchApi.getWatchNextResponse(),k,m,n,r,t=g==null?void 0:(k=g.contents)==null?void 0:(m=k.twoColumnWatchNextResults)==null?void 0:(n=m.results)==null?void 0:(r=n.results)==null?void 0:r.contents;
if(t)for(k=_.h(t),m=k.next();!m.done;m=k.next())if(m=m.value,m.videoPrimaryInfoRenderer)var u=m;else if(m.videoSecondaryInfoRenderer){var w=m;r=n=void 0;m=Object.assign({},(n=m.videoSecondaryInfoRenderer)==null?void 0:(r=n.metadataRowContainer)==null?void 0:r.metadataRowContainerRenderer);if(m.rows&&m.collapsedItemCount!==void 0){m.rows=m.rows.slice(0,m.collapsedItemCount).filter(function(Ya){return!!Ya.richMetadataRowRenderer});
m.collapsedItemCount=m.rows.length;var A={metadataRowContainerRenderer:m}}}else if(m.merchandiseShelfRenderer)var C=m;else if(m.ticketShelfRenderer)var G=m;else if(m.expandableMetadataRenderer)var J=m;else if(m.itemSectionRenderer)if(n=m.itemSectionRenderer.contents,r=void 0,a.directlyProvideComments&&((r=m.itemSectionRenderer)==null?void 0:r.sectionIdentifier)==="comment-item-section")_.Jo("cmi"),a.JSC$20111_watchApi.provideRenderingData("COMMENTS",m.itemSectionRenderer);else if(n)for(m=_.h(n),n=
m.next();!n.done;n=m.next())if(n=n.value,n.commentsEntryPointHeaderRenderer)var I=n;else if(n.clarificationRenderer||n.infoPanelContainerRenderer||n.infoPanelContentRenderer||n.emergencyOneboxRenderer){b.push(n);var R=R||!!w}else n.limitedStateMessageRenderer?d=n:n.videoMetadataCarouselViewModel&&(e=n);if(a.provideWatchNextSecondaryResults){var ca,V,fa;a.JSC$20111_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",g==null?void 0:(ca=g.contents)==null?void 0:(V=ca.twoColumnWatchNextResults)==
null?void 0:(fa=V.secondaryResults)==null?void 0:fa.secondaryResults)}if(a.JSC$20111_watchApi.getRoot().is==="ytd-watch-grid"&&!_.x("swa_prov_panels_ks")&&(g==null?0:g.engagementPanels)){var aa=g.engagementPanels.filter(function(Ya){var Oa,pb;return _.ykd.includes((pb=Ya==null?void 0:(Oa=Ya.engagementPanelSectionListRenderer)==null?void 0:Oa.targetId)!=null?pb:"")});
var ma=g.engagementPanels.filter(function(Ya){var Oa,pb;return!_.ykd.includes((pb=Ya==null?void 0:(Oa=Ya.engagementPanelSectionListRenderer)==null?void 0:Oa.targetId)!=null?pb:"")})}if(a.JSC$20111_watchApi.getRoot().is==="ytd-watch-grid"){var Ba,Da;
a.JSC$20111_watchApi.provideRenderingData("LIVE_CHAT",g==null?void 0:(Ba=g.contents)==null?void 0:(Da=Ba.twoColumnWatchNextResults)==null?void 0:Da.conversationBar)}var za,Fa,bb,kb;(ca=g==null?void 0:(za=g.contents)==null?void 0:(Fa=za.twoColumnWatchNextResults)==null?void 0:(bb=Fa.secondaryResults)==null?void 0:(kb=bb.secondaryResults)==null?void 0:kb.offerModule)&&(ca.donationShelfRenderer||ca.donationUnavailableRenderer)&&a.JSC$20111_watchApi.getRoot().is!=="ytd-watch-grid"&&(c=ca);za=a.JSC$20111_watchApi.getPlayerResponse();
if(!za||!_.D5a(za.playabilityStatus,g==null?void 0:g.playerOverlays)){var Ua;if(g==null?0:(Ua=g.contents)==null?0:Ua.singleColumnWatchNextResults){var Fc,id;var Mb=g==null?void 0:(Fc=g.contents.singleColumnWatchNextResults.results)==null?void 0:(id=Fc.results)==null?void 0:id.contents}else{var wd,Tb,tb,Fb;Ua=!!(t==null?0:(wd=t[0])==null?0:(Tb=wd.itemSectionRenderer)==null?0:(tb=Tb.contents)==null?0:(Fb=tb[0])==null?0:Fb.backgroundPromoRenderer);var dd,be;wd=!!(g==null?0:(dd=g.contents)==null?0:(be=
dd.twoColumnWatchNextResults)==null?0:be.secondaryResults);Ua&&!wd&&(Mb=t)}}t=b[0];dd=b[1];R&&b.length===1&&(dd=t,t=void 0);a.JSC$20111_watchApi.provideRenderingData("PRIMARY_INFO",u);a.JSC$20111_watchApi.provideRenderingData("SECONDARY_INFO",w);a.JSC$20111_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",I);a.JSC$20111_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",e);a.JSC$20111_watchApi.provideRenderingData("CLARIFICATION",t);a.JSC$20111_watchApi.provideRenderingData("RICH_METADATA",
A);a.JSC$20111_watchApi.getRoot().is!=="ytd-watch-grid"||_.x("swa_prov_panels_ks")||_.x("web_watch_inject_placeholder_panels")||(a.JSC$20111_watchApi.provideRenderingData("ENGAGEMENT_PANELS",ma),a.JSC$20111_watchApi.provideRenderingData("INLINE_ENGAGEMENT_PANELS",aa));a.JSC$20111_watchApi.provideRenderingData("MERCH_SHELF",C);a.JSC$20111_watchApi.provideRenderingData("TICKET_SHELF",G);a.JSC$20111_watchApi.provideRenderingData("LIMITED_STATE",d);a.JSC$20111_watchApi.getRoot().is!=="ytd-watch-grid"&&
a.JSC$20111_watchApi.provideRenderingData("DONATION_SHELF",c);a.JSC$20111_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",Mb);a.JSC$20111_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",dd);a.JSC$20111_watchApi.provideRenderingData("EXPANDABLE_METADATA",J);if(a.swatcherooProvideAllDataOnScheduledJob){var ia,gc,Pb,Lc,qb,Ab;u=g==null?void 0:(ia=g.contents)==null?void 0:(gc=ia.twoColumnWatchNextResults)==null?void 0:(Pb=gc.secondaryResults)==null?void 0:(Lc=Pb.secondaryResults)==null?
void 0:(qb=Lc.results)==null?void 0:(Ab=qb[0])==null?void 0:Ab.richGridRenderer;a.JSC$20111_watchApi.provideRenderingData("RICH_GRID_RENDERER",u)}};
Dkd.prototype.hasCompanionAds=function(a){var b,c;return(c=a==null?void 0:(b=a.adPlacements)==null?void 0:b.some(function(d){var e,g,k,m;return(d==null?void 0:(e=d.adPlacementRenderer)==null?void 0:(g=e.renderer)==null?void 0:g.actionCompanionAdRenderer)||(d==null?void 0:(k=d.adPlacementRenderer)==null?void 0:(m=k.renderer)==null?void 0:m.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?c:!1};
var J$=function(a){if(!_.x("swaterdoo_ps_wn_handle_ks")){a.swatcherooProvideAllDataOnScheduledJob||Ckd(a,_.$i("swatcheroo_pbs_max_delay_ms",3E3));var b=a.JSC$20111_watchApi.getPlayerResponse(),c,d,e,g,k,m=(c=a.JSC$20111_watchApi.getWatchNextResponse())==null?void 0:(d=c.contents)==null?void 0:(e=d.twoColumnWatchNextResults)==null?void 0:(g=e.secondaryResults)==null?void 0:(k=g.secondaryResults)==null?void 0:k.offerModule;b=a.hasCompanionAds(b);var n,r;c=(m==null?void 0:(n=m.tvfilmOfferModuleRenderer)==
null?void 0:n.clientShouldSuppressIfCompanionAdDisplayed)||(m==null?void 0:(r=m.unlimitedOfferModuleRenderer)==null?void 0:r.suppressIfCompanionAds);n=b&&c;a.JSC$20111_watchApi.getRoot().is==="ytd-watch-grid"&&a.JSC$20111_watchApi.provideRenderingData("OFFER_MODULE",n?void 0:m)}},Ckd=function(a,b){_.x("swatcheroo_pbs_load_grid")&&(a.provideRichGridJobId&&_.zk.cancelJob(a.provideRichGridJobId),a.provideRichGridJobId=_.Du(_.zk,function(){a.provideRichGridJobId=0;
var c,d,e,g,k,m,n,r=(c=a.JSC$20111_watchApi.getWatchNextResponse())==null?void 0:(d=c.contents)==null?void 0:(e=d.twoColumnWatchNextResults)==null?void 0:(g=e.secondaryResults)==null?void 0:(k=g.secondaryResults)==null?void 0:(m=k.results)==null?void 0:(n=m[0])==null?void 0:n.richGridRenderer;r&&a.JSC$20111_watchApi.provideRenderingData("RICH_GRID_RENDERER",r)},b))},Bkd=function(a){var b,c;
_.l(function(d){if(d.nextAddress==1)return _.p(d,a.JSC$20111_watchApi.playerApi,2);b=d.yieldResult;c=function(){a.onPlaybackStart()};
b.addEventListener("onPlaybackStartExternal",c);a.addOnDisposeCallback(function(){b.removeEventListener("onPlaybackStartExternal",c)});
_.se(d)})};
Dkd.prototype.onPlaybackStart=function(){Ckd(this)};var Gkd=function(a){_.tg.call(this);var b=this;this.JSC$20121_watchApi=a;a.playerApi.then(function(c){b.player=c});
this.gestures=new _.zfd(this.JSC$20121_watchApi.getRoot(),a.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(G8(_.Yp().getState())&&_.I8(_.Yp().getState())<=0)if(_.H8(_.Yp().getState())){var c;(c=b.player)==null||c.toggleFullscreen()}else _.ho(b.JSC$20121_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
Fkd(this)};
_.z(Gkd,_.tg);var Fkd=function(a){var b=_.wF(_.Yp(),_.H8,function(c){a.gestures&&a.gestures.update(c)});
a.addOnDisposeCallback(b);b=_.wF(_.Yp(),_.I8,function(c){a.gestures&&(c>0?a.gestures.detach():a.gestures.attach())});
a.addOnDisposeCallback(b)};var Ikd=function(a){_.tg.call(this);var b=this;this.JSC$20124_watchApi=a;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
a=_.wF(_.Yp(),G8,function(c){b.onActiveChanged(c)});
this.addOnDisposeCallback(a);Hkd(this);this.onActiveChanged(G8(_.Yp().getState()))};
_.z(Ikd,_.tg);var Jkd=function(a){if(_.x("swatcheroo_page_dispose_all_watch_data"))a.pageDisposalDataTypes=Object.values(Yid).filter(function(c){return c!=="PLAYLIST"});
else if(_.x("swatcheroo_page_dispose_rich_grid")){var b;(b=a.pageDisposalDataTypes)==null||b.push("RICH_GRID_RENDERER")}},Hkd=function(a){_.x("swatcheroo_enable_ghost_cards")&&(Jkd(a),a.JSC$20124_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.zk.cancelJob(a.clearDataJobId);
a.clearDataJobId=0}),a.runPageDisposeJob=function(){var b=_.v().resolve(_.$t).getDestinationPageType()==="watch";
a.clearDataJobId=_.Du(_.zk,a.runClearDataJob,b?0:_.$i("web_watch_delay_page_dispose_ms",1E4))},a.runClearDataJob=function(){Kkd(a)},a.runOnYtNavigateAwayFinish=function(){a.clearDataJobId&&(_.zk.cancelJob(a.clearDataJobId),a.clearDataJobId=0,Kkd(a))},document.addEventListener("yt-navigate-finish",a.runOnYtNavigateAwayFinish),Ekd(a.JSC$20124_watchApi,a.runPageDisposeJob),a.addOnDisposeCallback(function(){var b=a.JSC$20124_watchApi;
b.rootElement.pageDisposeJobs&&_.Qa(b.rootElement.pageDisposeJobs,a.runPageDisposeJob);F$(a.JSC$20124_watchApi,"yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",a.runOnYtNavigateAwayFinish)}))},Kkd=function(a){a.pageDisposalDataTypes.forEach(function(b){a.JSC$20124_watchApi.provideRenderingData(b,void 0)});
a.clearDataJobId=0};
Ikd.prototype.onActiveChanged=function(a){a&&((a=document.querySelector("#watch-page-skeleton"))&&_.mg(a),Lkd(this),document.body.removeAttribute("no-y-overflow"),_.Gi("IS_SHELL_LOAD")&&_.M6c())};
var Lkd=function(a){_.l(function(b){if(b.nextAddress==1)return _.p(b,a.JSC$20124_watchApi.playerApi,2);_.cw();_.se(b)})};var Mkd=_.x("kevlar_watch_while_counterfactual")?0:.25,Qkd=function(a){_.tg.call(this);this.JSC$20127_watchApi=a;this.JSC$20127_watchWhileEnabled=_.x("kevlar_watch_while_v2");this.pipEnabled=_.x("web_enable_pip_on_miniplayer");Nkd(this);Okd(this);Pkd(this)};
_.z(Qkd,_.tg);var Nkd=function(a){a.JSC$20127_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){Rkd(a)});
a.addOnDisposeCallback(function(){F$(a.JSC$20127_watchApi,"yt-activate-miniplayer-from-watch-action")})},Okd=function(a){var b,c;
_.l(function(d){if(d.nextAddress==1)return _.p(d,a.JSC$20127_watchApi.playerApi,2);b=d.yieldResult;c=function(){Rkd(a)};
b.addEventListener("onCollapseMiniplayer",c);a.addOnDisposeCallback(function(){b.removeEventListener("onCollapseMiniplayer",c)});
_.se(d)})},Pkd=function(a){var b=a.JSC$20127_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&b&&a.JSC$20127_watchWhileEnabled&&(a.playerIntersectionObserver=new IntersectionObserver(function(c){a.handleIntersect(c)},{threshold:[Mkd]}),a.playerIntersectionObserver.observe(b),a.addOnDisposeCallback(function(){var c;
(c=a.playerIntersectionObserver)==null||c.disconnect()}))},Rkd=function(a){var b,c,d;
_.l(function(e){if(e.nextAddress==1){b=_.v().resolve(_.$t);c=b.data;d=_.F6a(c.response,c.playerResponse);_.uF().miniplayerButtonActivation=!0;if(a.pipEnabled)return _.uF().watchPipActivation=!0,e.jumpTo(2);_.v().resolve(_.Vw).collapse();return _.p(e,_.uF().navigationFinishPromise,2)}if(e.nextAddress!=4)return _.uF().currentEndpoint=d.watchEndpoint||null,_.p(e,_.v().resolve(_.Vw).activate(a.JSC$20127_watchApi.getElement("PLAYER"),d,c),4);_.uF().userActivation=!0;_.se(e)})};
Qkd.prototype.handleIntersect=function(a){Skd(this,a[a.length-1])};
var Skd=function(a,b){a.watchWhileJobId&&_.zk.cancelJob(a.watchWhileJobId);a.watchWhileJobId=_.zk.addLowPriorityJob(function(){var c,d;return _.l(function(e){if(e.nextAddress==1)return a.watchWhileJobId=void 0,c=_.v().resolve(_.Vw),b.intersectionRatio>Mkd?c.isMiniplayerActive()?_.p(e,c.deactivate(),0):e.jumpTo(0):(d=!c.isMiniplayerActive())?_.p(e,Tkd(a),5):e.jumpTo(4);e.nextAddress!=4&&(d=e.yieldResult);if(!d)return e.jumpTo(0);_.uF().watchWhileActivation=!0;return _.p(e,Ukd(a),0)})},100)},Tkd=function(a){return _.l(function(b){return b.nextAddress==
1?_.x("kevlar_watch_while_paused")?b.return(!0):_.p(b,a.isPlayerPlaying(),2):b.return(b.yieldResult)})};
Qkd.prototype.isPlayerPlaying=function(){var a=this,b;return _.l(function(c){if(c.nextAddress==1)return _.p(c,a.JSC$20127_watchApi.playerApi,2);b=c.yieldResult;return c.return(b.getPlayerStateObject().isPlaying)})};
var Ukd=function(a){var b,c;return _.l(function(d){b=_.v().resolve(_.$t).data;c=_.F6a(b.response,b.playerResponse);_.uF().currentEndpoint=c.watchEndpoint||null;return _.p(d,_.v().resolve(_.Vw).activate(a.JSC$20127_watchApi.getElement("PLAYER"),c,b),0)})};var Xkd=function(a){_.tg.call(this);this.JSC$20131_watchApi=a;Vkd(this);Wkd(this)};
_.z(Xkd,_.tg);var Wkd=function(a){var b,c;_.l(function(d){if(d.nextAddress==1)return _.p(d,a.JSC$20131_watchApi.playerApi,2);b=d.yieldResult;c=function(e){var g;e.sessionData&&e.sessionData.itct&&(g=e.sessionData.itct);var k=e.watchEndpoint;if(k&&e.sessionData&&e.sessionData.autonav)k=_.sUa(k,g);else{var m;k=_.cp(e.videoId,(m=e.listId)!=null?m:void 0,g)}g={endpoint:k};e.sessionData&&(g.tempData=e.sessionData);a.JSC$20131_watchApi.dispatchEvent("yt-navigate",g)};
b.addEventListener("onPlayVideo",c);a.addOnDisposeCallback(function(){b.removeEventListener("onPlayVideo",c)});
_.se(d)})},Vkd=function(a){var b=function(c){a.onYtNavigate(c)};
a.JSC$20131_watchApi.getRoot().addEventListener("yt-navigate",b);a.addOnDisposeCallback(function(){a.JSC$20131_watchApi.getRoot().removeEventListener("yt-navigate",b)})};
Xkd.prototype.onYtNavigate=function(a){var b=this,c,d,e,g,k,m,n,r,t;return _.l(function(u){if(u.nextAddress==1){if(!((c=a.detail)==null?0:(d=c.endpoint)==null?0:d.watchEndpoint))return u.return();e=a.detail.endpoint.watchEndpoint;g=b.JSC$20131_watchApi.getWatchNextResponse();m=_.y((k=g)==null?void 0:k.currentVideoEndpoint,_.Vn);if(!m)return u.return();if(e.videoId!==m.videoId||e.playlistId&&e.playlistId!==m.playlistId||typeof e.startTimeSeconds!=="number")return u.jumpTo(0);a.stopPropagation();(n=
_.x("kevlar_watch_while_v2")&&!_.x("kevlar_watch_while_counterfactual"))&&_.v().resolve(_.Vw).isMiniplayerActive()||b.JSC$20131_watchApi.scrollWatchTo(0,!0);return _.p(u,b.JSC$20131_watchApi.playerApi,3)}r=u.yieldResult;t=e.startTimeSeconds;r.seekTo(t,void 0,void 0,void 0,84);r.wakeUpControls();t<r.getDuration()&&r.playVideo();_.se(u)})};var bld=function(a){_.tg.call(this);var b=this;this.JSC$20134_watchApi=a;a=_.wF(_.Yp(),_.pXa,function(){Ykd(b)});
this.addOnDisposeCallback(a);a=_.wF(_.Yp(),_.Vbd,function(){Ykd(b)});
this.addOnDisposeCallback(a);Zkd(this);$kd(this);ald()};
_.z(bld,_.tg);var Zkd=function(a){var b=function(d){_.Yp().dispatch(_.Ucd(d.matches))},c=window.matchMedia("(max-width: "+(999+_.HW())+"px)");
c.addListener(b);a.addOnDisposeCallback(function(){c.removeListener(b)});
b(c)},$kd=function(a){a.JSC$20134_watchApi.registerActionHandler("yt-window-resized",function(){ald()});
a.addOnDisposeCallback(function(){F$(a.JSC$20134_watchApi,"yt-window-resized")})},ald=function(){var a=_.sq();
_.Yp().dispatch(_.gp({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:a.width,height:a.height}}}))},Ykd=function(a){var b;
_.l(function(c){if(c.nextAddress==1)return _.p(c,a.JSC$20134_watchApi.playerApi,2);b=c.yieldResult;b.setSize(NaN,NaN);_.se(c)})};var dld=function(a){_.tg.call(this);var b=this;this.JSC$20138_watchApi=a;var c=this.JSC$20138_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){cld(b)});
this.addOnDisposeCallback(function(){b.JSC$20138_watchApi.unsubscribeByKey(c)});
cld(this)};
_.z(dld,_.tg);var cld=function(a){var b=a.JSC$20138_watchApi.getWatchNextResponse();if(b){var c,d=[].concat(_.Be((c=b==null?void 0:b.engagementPanels)!=null?c:[]));d.unshift.apply(d,_.Be(eld(b)));a.JSC$20138_watchApi.provideRenderingData("ENGAGEMENT_PANELS",d)}},eld=function(a){var b=[];
if(!_.x("web_watch_inject_placeholder_fantasy_panel_killswitch")){var c,d,e,g=(c=a.engagementPanels)==null?void 0:(d=c.find(function(C){var G;return((G=C.engagementPanelSectionListRenderer)==null?void 0:G.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(e=d.engagementPanelSectionListRenderer.content)==null?void 0:e.structuredDescriptionContentRenderer,k;
_.y(g==null?void 0:(k=g.items)==null?void 0:k.find(function(C){return!!_.y(C,jdd)}),jdd)&&(c=_.k4a("PAsports_fantasy"),c.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",b.push(c))}var m,n,r,t;
a=(((m=a.contents)==null?void 0:(n=m.twoColumnWatchNextResults)==null?void 0:(r=n.results)==null?void 0:(t=r.results)==null?void 0:t.contents)||[]).find(function(C){return C.videoPrimaryInfoRenderer});
m=!1;if(a){var u,w,A;m=(((u=a.videoPrimaryInfoRenderer)==null?void 0:(w=u.videoActions)==null?void 0:(A=w.menuRenderer)==null?void 0:A.flexibleItems)||[]).some(function(C){C=_.y(C,_.lEb);if(!C)return!1;var G,J;C=(G=C.topLevelButton)==null?void 0:(J=G.buttonViewModel)==null?void 0:J.onTap;if(!C)return!1;G=_.Es(C);if(!G)return!1;var I;return((I=_.y(G,_.Ow))==null?void 0:I.panelIdentifier)==="PAyouchat"})}m&&(u=_.k4a("PAyouchat"),u.engagementPanelSectionListRenderer.targetId="PAyouchat",u.engagementPanelSectionListRenderer.visibility=
"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",b.push(u));
return b};var gld=function(a){_.tg.call(this);this.JSC$20141_watchApi=a;fld(this)};
_.z(gld,_.tg);var fld=function(a){a.JSC$20141_watchApi.registerActionHandler("yt-loop-command",function(b){hld(a,b)});
a.JSC$20141_watchApi.registerActionHandler("yt-repeat-chapter-command",function(b){ild(a,b)});
a.addOnDisposeCallback(function(){F$(a.JSC$20141_watchApi,"yt-loop-command");F$(a.JSC$20141_watchApi,"yt-repeat-chapter-command")})},hld=function(a,b){var c;
_.l(function(d){if(d.nextAddress==1)return _.p(d,a.JSC$20141_watchApi.playerApi,2);c=d.yieldResult;_.y(b,ldd).loop?(c.setLoopRange({startTimeMs:Number(_.y(b,ldd).startTimeMs),endTimeMs:Number(_.y(b,ldd).endTimeMs),postId:_.y(b,ldd).postId,type:"clips"}),c.playVideo()):c.setLoopRange(null);_.se(d)})},ild=function(a,b){var c,d;
_.l(function(e){if(e.nextAddress==1)return _.p(e,a.JSC$20141_watchApi.playerApi,2);c=e.yieldResult;d=_.y(b,qdd).repeat;d==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(c.setLoopRange({startTimeMs:Number(_.y(b,qdd).startTimeMs),endTimeMs:Number(_.y(b,qdd).endTimeMs),type:"repeatChapter"}),c.playVideo()):d==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&c.setLoopRange(null);_.se(e)})};var kld=function(a){_.tg.call(this);this.JSC$20146_watchApi=a;jld(this)};
_.z(kld,_.tg);var jld=function(a){a.JSC$20146_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(b){lld(a,b)});
a.addOnDisposeCallback(function(){F$(a.JSC$20146_watchApi,"yt-watch-player-overflow-menu-command")})},lld=function(a,b){var c,d,e,g,k,m,n,r,t,u,w;
_.l(function(A){if(A.nextAddress==1)return _.p(A,a.JSC$20146_watchApi.playerApi,2);c=A.yieldResult;if(g=(e=(d=_.y(b,rdd))==null?void 0:d.highlightedMenuItemKey)!=null?e:"")(m=(k=c).highlightSettingsMenuItem)==null||m.call(k,g);if(t=(r=(n=_.y(b,rdd))==null?void 0:n.openMenuItemKey)!=null?r:"")(w=(u=c).openSettingsMenuItem)==null||w.call(u,t);_.se(A)})};var mld=_.lp("/youtube/app/watch/player_state","playerStateEntity");var old=function(a){_.tg.call(this);this.JSC$20149_watchApi=a;nld(this)};
_.z(old,_.tg);var pld=function(a){switch(a){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"}},nld=function(a){var b,c;
_.l(function(d){if(d.nextAddress==1)return _.p(d,a.JSC$20149_watchApi.playerApi,2);b=d.yieldResult;c=function(e){a.onPlayerStateChange(e)};
b.addEventListener("onStateChange",c);a.addOnDisposeCallback(function(){b.removeEventListener("onStateChange",c)});
_.se(d)})};
old.prototype.onPlayerStateChange=function(a){var b=this,c,d;return _.l(function(e){if(e.nextAddress==1)return _.p(e,b.JSC$20149_watchApi.playerApi,2);c=e.yieldResult;d=c.getVideoData().video_id;_.Ir().dispatch(_.vu("playerStateEntity",mld,{key:mld,playerState:pld(a),videoId:d}));_.se(e)})};var qld=function(a){_.tg.call(this);var b=this;this.JSC$20153_watchApi=a;a=_.Yp();var c=_.wF(a,G8,function(d){b.onActiveChanged(d)});
this.addOnDisposeCallback(c);_.v().resolve(_.QF).setPlayer(this.JSC$20153_watchApi.getElement("PLAYER"));this.onActiveChanged(G8(a.getState()))};
_.z(qld,_.tg);qld.prototype.onActiveChanged=function(a){var b=this,c=_.v().resolve(_.QF),d=function(){rld(b)};
a?(a=this.JSC$20153_watchApi.getElement("PLAYLIST_PANEL"))?(c.setPlaylistComponent(a),c.addEventListener("yt-playlist-data-updated",d),this.addOnDisposeCallback(function(){c.removeEventListener("yt-playlist-data-updated",d)}),rld(this)):_.Ki(Error("em")):(c.removeEventListener("yt-playlist-data-updated",d),c.cancelVideoSkip())};
var rld=function(a){var b=_.v().resolve(_.QF);a.JSC$20153_watchApi.provideRenderingData("PLAYLIST",b.getPlaylistData())};var vld=function(a){_.tg.call(this);var b=this;this.JSC$20156_watchApi=a;this.onPageScroll=function(){b.scrollThrottle.fire();b.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.hv(this.onThrottledScroll,200,this);_.gg(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.hv(this.onMastheadThrottledScroll,50,this);_.gg(this,this.mastheadScrollThrottle);this.animation=new _.SR(function(c){b.JSC$20156_watchApi.getRoot().setScrollTop(c)});
a=_.wF(_.Yp(),_.H8,function(){sld(b)});
this.addOnDisposeCallback(a);tld(this);uld(this);this.onThrottledScroll()};
_.z(vld,_.tg);
var sld=function(a){var b=a.JSC$20156_watchApi.getRoot();!a.pageScrollElement&&b.pageScrollElement?(a.pageScrollElement=b.pageScrollElement,b.pageScrollElement.addEventListener("scroll",a.onPageScroll),a.addOnDisposeCallback(function(){a.pageScrollElement&&a.pageScrollElement.removeEventListener("scroll",a.onPageScroll)})):a.pageScrollElement&&!b.pageScrollElement&&(a.pageScrollElement.removeEventListener("scroll",a.onPageScroll),a.pageScrollElement=void 0)},tld=function(a){window.addEventListener("scroll",a.onPageScroll);
a.addOnDisposeCallback(function(){window.removeEventListener("scroll",a.onPageScroll)})},uld=function(a){a.JSC$20156_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(b){a:{var c;
if(c=a.JSC$20156_watchApi.getRoot().contains(b)&&!a.animation.isAnimating()){c=b.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var d,e,g=(b==null?void 0:(d=b.parentElement)==null?void 0:(e=d.parentElement)==null?void 0:e.id)==="fixed-secondary";c=!(c&&g)}if(c){if(_.x("kevlar_watch_scroll_manager_absolute_offset_killswitch"))d=b.offsetTop;else for(d=0,e=b;e!==null;)d+=e.offsetTop,d-=e.scrollTop,e=e.offsetParent;e=d;d=e-24;b=e+b.offsetHeight+24;e=a.JSC$20156_watchApi.getRoot().getPageScrollingElement();
c=a.JSC$20156_watchApi.getRoot().getScrollTop();g=c+e.clientHeight-56;if(d<c+56)b=d-56;else if(b>g)b-=e.clientHeight;else break a;a.scrollWatchTo(Math.max(0,b),!0)}}});
a.addOnDisposeCallback(function(){F$(a.JSC$20156_watchApi,"yt-scroll-to-watch-element")})};
vld.prototype.onThrottledScroll=function(){var a=_.Yp(),b=a.dispatch,c=this.JSC$20156_watchApi.getRoot().getScrollTop();b.call(a,_.gp({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:c}}))};
vld.prototype.onMastheadThrottledScroll=function(){this.JSC$20156_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$20156_watchApi.getRoot().getScrollTop())};
vld.prototype.scrollWatchTo=function(a,b){(b===void 0?0:b)?this.animation.start(this.JSC$20156_watchApi.getRoot().getScrollTop(),Math.max(0,a),500):this.JSC$20156_watchApi.getRoot().setScrollTop(a)};var yld=function(a){_.tg.call(this);var b=this;this.JSC$20159_watchApi=a;var c=this.JSC$20159_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){wld(b)}),d=this.JSC$20159_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){xld(b)});
this.addOnDisposeCallback(function(){b.JSC$20159_watchApi.unsubscribeByKey(c);b.JSC$20159_watchApi.unsubscribeByKey(d)});
wld(this);xld(this)};
_.z(yld,_.tg);
var wld=function(a){var b,c,d,e=(d=(b=a.JSC$20159_watchApi.getPlayerResponse())==null?void 0:(c=b.videoDetails)==null?void 0:c.title)!=null?d:"";a.JSC$20159_watchApi.dispatchEvent("yt-update-title",e)},xld=function(a){var b,c,d,e,g,k,m,n=(m=((k=(b=a.JSC$20159_watchApi.getWatchNextResponse())==null?void 0:(c=b.contents)==null?void 0:(d=c.twoColumnWatchNextResults)==null?void 0:(e=d.results)==null?void 0:(g=e.results)==null?void 0:g.contents)!=null?k:[]).find(function(r){return!!r.videoPrimaryInfoRenderer}))==null?
void 0:m.videoPrimaryInfoRenderer;
(b=_.Vp(n==null?void 0:n.title))&&a.JSC$20159_watchApi.dispatchEvent("yt-update-title",b)};var Ald=function(a){_.tg.call(this);this.JSC$20162_watchApi=a;zld(this)};
_.z(Ald,_.tg);var zld=function(a){var b,c;_.l(function(d){if(d.nextAddress==1)return _.p(d,a.JSC$20162_watchApi.playerApi,2);b=d.yieldResult;c=function(){a.onYpcContentRequest()};
b.addEventListener("onYpcContentRequest",c);a.addOnDisposeCallback(function(){b.removeEventListener("onYpcContentRequest",c)});
_.se(d)})};
Ald.prototype.onYpcContentRequest=function(){var a,b,c,d,e,g=(a=this.JSC$20162_watchApi.getWatchNextResponse())==null?void 0:(b=a.contents)==null?void 0:(c=b.twoColumnWatchNextResults)==null?void 0:(d=c.secondaryResults)==null?void 0:(e=d.secondaryResults)==null?void 0:e.offerModule,k,m,n,r;a=(r=(n=(m=(k=g==null?void 0:g.episodeOfferModuleRenderer)!=null?k:g==null?void 0:g.movieOfferModuleRenderer)!=null?m:g==null?void 0:g.unlimitedOfferModuleRenderer)!=null?n:g==null?void 0:g.liveOfferModuleRenderer)!=
null?r:g==null?void 0:g.tvfilmOfferModuleRenderer;var t,u,w;g=(w=g==null?void 0:(t=g.tvfilmOfferModuleRenderer)==null?void 0:(u=t.actionButtons)==null?void 0:u.length)!=null?w:0;u=Math.max(g-1,0);var A,C,G;t=(G=a==null?void 0:(A=a.offerButton)==null?void 0:A.buttonRenderer)!=null?G:a==null?void 0:(C=a.actionButtons)==null?void 0:C[u].buttonRenderer;var J,I;(A=(I=(J=t==null?void 0:t.navigationEndpoint)!=null?J:t==null?void 0:t.serviceEndpoint)!=null?I:t==null?void 0:t.command)&&_.hs.instance.resolveCommand(A)};_.L$=function(a){_.gY.call(this);var b=this;this.rootElement=a;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return b.activeModules}};
Bld(this);a=_.wF(_.Yp(),G8,function(c){b.initOrDisposeActiveModules(c)});
this.addOnDisposeCallback(a);this.initOrDisposeActiveModules(G8(_.Yp().getState()));this.onAttached()};
_.z(_.L$,_.gY);_.L$.prototype.getRoot=function(){return this.rootElement};
_.L$.prototype.getElement=function(a){return this.rootElement.getElement(a)};
_.M$=function(a,b){a.playerResponse=b;a.publish("PLAYER_RESPONSE_UPDATED",b)};
_.L$.prototype.getPlayerResponse=function(){return this.playerResponse};
_.N$=function(a,b){a.watchNextResponse===b?a.publish("WATCH_NEXT_RESPONSE_RELOADED"):(a.watchNextResponse=b,a.publish("WATCH_NEXT_RESPONSE_UPDATED",b))};
_.L$.prototype.getWatchNextResponse=function(){return this.watchNextResponse};
_.L$.prototype.registerActionHandler=function(a,b){var c=this;if(_.x("web_watch_controller_reg_multiple_handlers_killswitch")){var d={};_.Ol(_.Nl.getInstance(),(d[a]=b,d),this.getRoot())}else this.actionHandlers.has(a)||(this.actionHandlers.set(a,[]),d={},_.Ol(_.Nl.getInstance(),(d[a]=function(){var e=_.Id.apply(0,arguments);return(c.actionHandlers.get(a)||[]).map(function(g){return g.apply(null,_.Be(e))})},d),this.getRoot())),this.actionHandlers.get(a).push(b)};
var F$=function(a,b){if(_.x("web_watch_controller_reg_multiple_handlers_killswitch")){var c={};_.Pl(_.Nl.getInstance(),(c[b]=!0,c),a.getRoot())}else(c=a.actionHandlers.get(b))?(c.pop(),c.length===0&&(c={},_.Pl(_.Nl.getInstance(),(c[b]=!0,c),a.getRoot()),a.actionHandlers.delete(b))):_.Dl(new _.qj("Attempted to unregister an action handler which is not registered.",b))},Ekd=function(a,b){a.rootElement.pageDisposeJobs||(a.rootElement.pageDisposeJobs=[]);
_.vaa(a.rootElement.pageDisposeJobs,b)};
_.L$.prototype.dispatchEvent=function(a,b){_.go(this.rootElement,a,b)};
_.L$.prototype.provideRenderingData=function(a,b){this.rootElement.provideRenderingData(a,b)};
_.L$.prototype.scrollWatchTo=function(a,b){var c;(c=this.watchScrollManager)==null||c.scrollWatchTo(a,b)};
_.L$.prototype.focusOnPlayer=function(){var a=this.getElement("PLAYER");_.Tm(a,function(){if(a&&a.firstElementChild){var b=a.querySelector(".html5-video-player");b&&(_.QVb(_.v().resolve(_.Ft)),b.focus())}else _.Dl(Error("fm"))})};
_.Cld=function(a){var b=!!a.rootElement.theater,c=!!a.rootElement.fullscreen,d;(d=a.watchCinematicManager)==null||rkd(d,c,b)};
_.L$.prototype.onAttached=function(){var a=_.x("external_fullscreen");_.x("use_unified_flag_accessor")&&(a=_.v().resolve(_.gic).retriever.getFlag(_.lhb));(a||_.Gi("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var Dld=function(a){return a.getRoot().is==="ytd-watch-flexy"||a.getRoot().is==="ytd-watch-grid"},O$=function(a){return a.getRoot().is==="ytd-watch-fixie"},Bld=function(a){if(O$(a)||Dld(a)&&_.x("kevlar_watch_flexy_theater_manager")){var b=new Tjd(a);
_.gg(a,b)}b=new Ikd(a);_.gg(a,b);b=new G$(a);_.gg(a,b);b=new Dkd(a);_.gg(a,b);b=new old(a);_.gg(a,b);b=new H$(a);_.gg(a,b);if(O$(a)||Dld(a)&&_.x("kevlar_watch_flexy_playlist_manager"))b=new qld(a),_.gg(a,b)};
_.L$.prototype.initOrDisposeActiveModules=function(a){a?(this.watchScrollManager=new vld(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new Xkd(this)),this.activeModules.push(new Vid(this)),O$(this)&&this.activeModules.push(new bld(this)),this.activeModules.push(new yld(this)),this.activeModules.push(new Qkd(this)),(O$(this)||_.x("kevlar_watch_flexy_error_screen_data_provider"))&&this.activeModules.push(new $id(this)),this.activeModules.push(new gld(this)),(O$(this)||
_.x("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new Ald(this)),(O$(this)||_.x("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new ikd(this)),_.x("kevlar_watch_cinematics")&&(this.watchCinematicManager=new nkd(this),this.activeModules.push(this.watchCinematicManager),_.Cld(this)),_.x("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new kld(this)),_.x("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new Gkd(this)),a=_.x("swatcheroo_directly_provide_comments")&&
this.getRoot().is==="ytd-watch-grid",_.x("kevlar_watch_flexy_comments_manager")&&!a&&this.activeModules.push(new xkd(this)),_.x("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new ljd(this)),this.activeModules.push(new akd(this)),_.x("web_watch_inject_placeholder_panels")&&this.activeModules.push(new dld(this)),_.x("web_enable_timely_actions")&&this.activeModules.push(new ekd(this)),_.x("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new Ajd(this)),_.x("web_watch_enable_multiview_manager")&&
this.activeModules.push(new rjd(this)),_.x("web_fullscreen_video_action_bar")&&this.activeModules.push(new djd(this)),_.x("web_player_rtr_ctrls")&&this.activeModules.push(new Cjd(this))):(_.iia(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.L$.prototype.disposeInternal=function(){_.gY.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.Vm.Object.defineProperties(_.L$.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var Qrc;Qrc=function(a){switch(a){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:_.Sb(a,"unknown result type")}};
_.Rrc=function(a,b,c){b=_.PHa[b];c={detected:a===0,source:b.methodCodeName,detectionResult:Qrc(a),contentCpn:c};_.zl("biscottiBasedDetection",c);b.attestationOffset!==void 0&&_.Bi("CATSTAT",_.NHa(a,b))};
_.cY=function(a,b){var c={};c.key=a;c.value=b;return _.qIa().then(function(d){return new Promise(function(e,g){try{var k=d.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(c);k.onsuccess=function(){e()};
k.onerror=function(){g()}}catch(m){g(m)}})})};
_.Trc=function(){var a=_.$i("user_engagement_experiments_rate_limit_ms"),b=Src.get("last-user-engagement-exp-trigger-timestamp");return!b||(0,_.Uj)()>=b+a?(Src.set("last-user-engagement-exp-trigger-timestamp",(0,_.Uj)()),!0):!1};
_.dY=function(a,b,c,d,e){b=b===void 0?null:b;c=c===void 0?null:c;d=d===void 0?null:d;e=e===void 0?null:e;a={youThereEventType:a};c&&(a.lactThresholdMs=c.lactThresholdMs,a.mediaPosSec=c.promptDelaySec,a.lactServerRequestMs=c.lactServerRequestMs,a.triggerReason=c.triggerReason);e!=null&&(a.renderingMediaPosSec=Math.round(e));b||(b=_.Fn());b&&(a.clientScreenNonce=b);d&&(a.clientPlaybackNonce=d);_.zl("youThere",a)};var Src=new _.Ek("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.Emc=function(a){return _.gp({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:a})};
}catch(e){_._DumpException(e)}
try{
var Lld,Qld,Rld,Sld,Jld,Ild,Uld;_.Fld=function(){var a=window.location.hash;a.charAt(0)==="#"&&(a=a.charAt(1)==="!"?a.substring(2):a.substring(1));return _.Ni(a)};
_.Gld=function(a){var b;_.l(function(c){b=["b.f_","j.s_","r.s_","e.h_"];_.x("ab_det_sc_inj")&&b.push("s.i_");_.x("ab_deg_unex_thr")||b.push("a.o_");_.x("ks_get_o_pp")||b.push("g.o_");_.x("ks_det_gpbl")||b.push("p.i_");b.push("f.i_");b.push("a.b_");b.push("p.m_");_.x("ab_det_el_h_v2")&&b.push("n.h_");b.push("o.p_");b.forEach(function(d){var e;return _.l(function(g){if(g.nextAddress==1)return _.p(g,_.tKb[d](),2);e=g.yieldResult;a(e,d);_.se(g)})});
_.se(c)})};
_.Hld=function(a,b){a={videoId:a};b&&(a.playlistId=b);return a};
_.Kld=function(){if(!_.x("disable_biscotti_fetch_for_ad_blocker_detection")&&!_.x("disable_biscotti_fetch_entirely_for_all_web_clients")&&_.CBa()){var a=_.Ei("PLAYER_VARS",{});if(_.yf.get(a,"privembed",!1)!="1"&&!_.FBa(a)){var b=function(){Ild=!0;"google_ad_status"in window?_.Bi("DCLKSTAT",1):_.Bi("DCLKSTAT",2)};
try{_.Ln("//static.doubleclick.net/instream/ad_status.js",b)}catch(c){}Jld.push(_.zk.addLowPriorityJob(function(){if(!(Ild||"google_ad_status"in window)){try{_.rBa("//static.doubleclick.net/instream/ad_status.js",b)}catch(c){}Ild=!0;_.Bi("DCLKSTAT",3)}},5E3))}}};
Lld=function(a){return _.x("web_watch_adjust_sidebar_width")?_.O8+((a===void 0?1500:a)-_.Jdd)/100*_.Kdd:_.O8};
_.Mld=function(a,b){a=a.width-_.xlc();var c=Lld(a);return Math.max(c,Math.min(_.Ndd,c+(a-(_.Mdd+Lld(a)+_.M8+2*_.M8+b))))};
_.Nld=function(a,b,c){c=c===void 0?!1:c;var d=Math.max(a.width,_.Ldd);if(_.x("kevlar_watch_feed_big_thumbs")&&a.width>=1550-_.HW()&&a.height>=800)d-=_.Rdd;else if(a.width>=_.N8){var e=_.Mdd+Lld(a.width)+_.M8;_.x("kevlar_watch_feed_big_thumbs")&&(e=_.Qdd);d-=e}else d-=_.Mdd;d=Math.min(d,_.Odd);e=240;c&&(e=380);b<.5624||(!_.x("kevlar_watch_flexy_disable_small_window_sizing")&&(a.height<630&&a.width>=657||a.height>=630&&a.width>=_.N8&&a.width<1327)?e=360:!_.x("kevlar_watch_flexy_disable_large_window_sizing")&&
a.height>=630&&a.width>=1327&&(e=480));var g=Math.min(d*b,a.height-(56+_.Idd+_.Pdd));g=Math.max(g,e);b<1?d=g/b:a.width>=_.N8&&(d=_.Nld(a,.5625,c).width);return new _.of(Math.round(d),Math.round(g))};
_.Old=function(a){var b=0;a.indexOf("h")!=-1&&(a=a.split("h"),b=a[0]*60*60,a=a[1]);a.indexOf("m")!=-1&&(a=a.split("m"),b=a[0]*60+b,a=a[1]);a.indexOf("s")!=-1?(a=a.split("s"),b=a[0]*1+b):b=a*1+b;return b};
_.Pld=function(){_.$i("service_worker_push_logged_out_prompt_watches")!=-1&&_.gX("WatchCount").then(function(a){a>=100||_.cY("WatchCount",a+1)})};
Qld=function(a){var b=a.externalVideoId||"";return b?(_.x("webfe_watch_shorts_canonical_url_fix")||_.Ei("MWEB_ALLOW_SHORTS_CANONICAL_URL_FIX"))&&a.isShortsEligible?"https://www.youtube.com/shorts/"+b:"https://www.youtube.com/watch?v="+b:""};
Rld=function(a){var b=[];a.viewCount&&b.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:a.viewCount});a.likeCount&&b.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:a.likeCount});return b};
Sld=function(a){var b,c,d={"@context":"https://schema.org","@type":"VideoObject",description:_.Vp(a.description),duration:"PT"+(a.lengthSeconds||"0")+"S",embedUrl:a.embed?a.embed.iframeUrl:"",name:_.Vp(a.title),thumbnailUrl:((b=a.thumbnail)==null?void 0:(c=b.thumbnails)==null?void 0:c.map(function(t){return t&&t.url||""}))||[],
uploadDate:a.publishDate};_.x("mweb_video_schema_id_killswitch")||(d["@id"]=Qld(a));b=Rld(a);b.length&&(d.interactionStatistic=b);a.category&&(d.genre=a.category);a.ownerChannelName&&(d.author=a.ownerChannelName);a.liveBroadcastDetails&&(d.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:a.liveBroadcastDetails.startTimestamp,endDate:a.liveBroadcastDetails.endTimestamp}]);if(a.learningResource){a=a.learningResource;d["@type"]=["VideoObject","LearningResource"];var e;if((e=a.learningResourceType)==
null?0:e.length)d.learningResourceType=a.learningResourceType[0];var g;if((g=a.educationalAlignment)==null?0:g.length)d.educationalAlignment={"@type":"AlignmentObject",targetName:a.educationalAlignment[0]};var k;if((k=a.educationalLevel)==null?0:k.length){e=a.educationalLevel[0];var m;if((m=a.educationalLevelCountry)==null?0:m.length)e+=" ("+a.educationalLevelCountry+")";d.educationalLevel=e}var n,r;if(((n=a.learningResourceType)==null?0:n.length)&&a.learningResourceType[0]==="Problem walkthrough"&&
((r=a.problemDescriptions)==null?0:r.length))for(d.hasPart=[],m=_.h(a.problemDescriptions),n=m.next();!n.done;n=m.next())e=n.value,n=e.problemDescriptionText,r=e.startOffset,e=e.url,n&&r!==void 0&&e&&d.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:n,text:n,startOffset:r,url:e})}return d};
_.Tld=function(a){return _.gp({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:a}})};
Jld=[];Ild=!1;Uld=new _.X("updateSentimentBarStateCommand");_.Vld=new _.X("showSurveyCommand");_.Q$=new _.X("changeMarkersVisibilityCommand");var Xld,Yld,bmd,amd,$ld,R$;_.Wld=function(a,b){this.playerProvider_=a;this.actionSenderElement_=b;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.Wld.prototype.reset=function(){Xld(this);this.isUserPredictedAbsent_=!1};
Xld=function(a,b){!a.youThereData_||a.showWarningJob_||b!==void 0&&b||(_.dY("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.Fn(),a.youThereData_,a.clientPlaybackNonce_),_.Al());_.zk.cancelJob(a.showWarningJob_);a.showWarningJob_=0;_.zk.cancelJob(a.showBlockingWarningJob_);a.showBlockingWarningJob_=0;_.zk.cancelJob(a.pausePlaybackJob_);a.pausePlaybackJob_=0;a.youThereData_=null;a.clientPlaybackNonce_=void 0;a.inYouThereFlow_=!1};
_.Zld=function(a,b){var c,d,e;_.l(function(g){if(g.nextAddress==1)return a.reset(),_.p(g,a.playerProvider_().getPlayerPromise(),2);c=g.yieldResult;a.clientPlaybackNonce_=c.getVideoData().cpn;a.youThereData_=b.configData.youThereData;if(!a.youThereData_)return g.return();if(a.youThereData_.triggerReason&&a.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.Trc())return _.dY("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.Fn(),a.youThereData_,a.clientPlaybackNonce_),g.return();d=a.youThereData_.promptDelaySec;
e=c.getCurrentTime();a.showWarningJob_=_.zk.addLowPriorityJob(function(){return _.l(function(k){a.showWarningJob_=0;return _.p(k,Yld(a),0)})},Math.max(d-e,0)*1E3);
_.se(g)})};
Yld=function(a){var b,c,d,e,g,k;return _.l(function(m){if(m.nextAddress==1)return _.p(m,a.playerProvider_().getPlayerPromise(),2);if(m.nextAddress!=3)return b=m.yieldResult,c=b.getCurrentTime(),_.p(m,$ld(a),3);d=m.yieldResult;if(!d||!a.youThereData_)return m.return();if(_.x("check_user_lact_at_prompt_shown_time_on_web")&&(e=parseInt(a.youThereData_.lactThresholdMs,10),_.$k()<e))return _.dY("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.Fn(),a.youThereData_,a.clientPlaybackNonce_),m.return();if(a.youThereData_.playbackPauseDelayMs<=
0)return amd(a),m.return();!_.x("external_fullscreen")&&(g=_.bo())&&(a.ignoreFullscreenExitUserActivity_=!0,_.zk.addLowPriorityJob(function(){a.ignoreFullscreenExitUserActivity_=!1},2E3),_.co(g));
a.youThereData_.showToastWarningPrompt&&(R$(a,a.youThereData_.showWarningActions),a.inYouThereFlow_=!0,_.dY("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.Fn(),a.youThereData_,a.clientPlaybackNonce_,c),_.dY("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.Fn(),a.youThereData_,a.clientPlaybackNonce_,c));k=0;a.youThereData_.blockingPromptDelayMs&&(k=a.youThereData_.blockingPromptDelayMs);a.showBlockingWarningJob_=_.zk.addLowPriorityJob(function(){return _.l(function(n){a.showBlockingWarningJob_=0;return _.p(n,
bmd(a),0)})},k);
_.se(m)})};
bmd=function(a){var b,c,d;return _.l(function(e){if(e.nextAddress==1)return _.p(e,$ld(a),2);b=e.yieldResult;if(!a.youThereData_)return e.return();b&&(a.youThereData_.showBlockingWarningAction&&(_.dY("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.Fn(),a.youThereData_,a.clientPlaybackNonce_),(c=_.y(a.youThereData_.showBlockingWarningAction,_.po))?R$(a,c.commands):R$(a,[a.youThereData_.showBlockingWarningAction]),a.inYouThereFlow_=!0),d=a.youThereData_.playbackPauseDelayMs,a.pausePlaybackJob_=
_.zk.addLowPriorityJob(function(){return _.l(function(g){a.pausePlaybackJob_=0;return _.p(g,amd(a),0)})},d));
_.se(e)})};
amd=function(a){var b;return _.l(function(c){if(c.nextAddress==1)return _.p(c,$ld(a),2);b=c.yieldResult;if(!a.youThereData_)return c.return();b&&(_.dY("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.Fn(),a.youThereData_,a.clientPlaybackNonce_),R$(a,a.youThereData_.showPausedActions),a.inYouThereFlow_=!0);_.se(c)})};
_.Wld.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var a=_.y(this.youThereData_.userActiveDuringFlowAction,_.po);a?R$(this,a.commands):R$(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.dY("YOU_THERE_EVENT_TYPE_LACT_RESET",_.Fn(),this.youThereData_,this.clientPlaybackNonce_),_.Al());Xld(this,!0)}_.cmd(this,!1)};
_.dmd=function(a){_.dY("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.Fn(),a.youThereData_,a.clientPlaybackNonce_)};
$ld=function(a){var b,c;return _.l(function(d){if(d.nextAddress==1)return _.p(d,a.playerProvider_().getPlayerPromise(),2);b=d.yieldResult;c=b.getPlayerState();return d.return(c==-1||c==1||c==3)})};
_.cmd=function(a,b){var c;_.l(function(d){if(d.nextAddress==1){if(a.isUserPredictedAbsent_==b)return d.jumpTo(0);a.isUserPredictedAbsent_=b;return _.p(d,a.playerProvider_().getPlayerPromise(),3)}c=d.yieldResult;c.setUserEngagement(b);b&&_.dY("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.Fn(),a.youThereData_,a.clientPlaybackNonce_);_.se(d)})};
R$=function(a,b){if(_.x("handle_service_request_actions")||_.x("kevlar_youthere_service_endpoint_actions_killswitch"))_.no(a.actionSenderElement_,b,a.actionSenderElement_);else{b=_.h(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c.commandMetadata&&c.commandMetadata.webCommandMetadata&&c.commandMetadata.webCommandMetadata.sendPost?_.mo(a.actionSenderElement_,[c]):_.no(a.actionSenderElement_,[c],a.actionSenderElement_)}};var emd;var fmd;var gmd=function(){var a=_.P.apply(this,arguments)||this;a.systemIcons=_.x("kevlar_system_icons");a.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return a};
_.z(gmd,_.P);gmd.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var a=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(a=this.data.percentIfLiked||0,this.activated=!0):(a=this.data.percentIfIndifferent||0,this.activated=!1);_.E(this.hostElement).querySelector("#like-bar").style.width=a+"%"}};
gmd.prototype.handleUpdateSentimentBarStateCommand=function(a){this.data&&this.set("data.likeStatus",_.y(a,Uld).likeStatus)};
var S$=gmd;S$.prototype.observeLikeStatus=S$.prototype.observeLikeStatus;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],S$.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],S$.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],S$.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],S$.prototype,"activated",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],S$.prototype,"systemIcons",void 0);_.U([_.N("data.likeStatus"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],S$.prototype,"observeLikeStatus",null);S$=_.U([_.Q({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],S$);
_.S(S$,"ytd-sentiment-bar-renderer",function(){if(fmd!==void 0)return fmd;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return fmd=a},{mode:1});var hmd;var imd=function(){var a=_.P.apply(this,arguments)||this;a.small=!0;return a};
_.z(imd,_.P);var T$=imd;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],T$.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],T$.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],T$.prototype,"small",void 0);T$=_.U([_.Q({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],T$);
_.S(T$,"ytd-video-view-count-renderer",function(){if(hmd!==void 0)return hmd;var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return hmd=a},{mode:_.as("kevlar_poly_si_batch_j080")?1:2});var U$=function(){var a=_.P.apply(this,arguments)||this;a.infoFormattedStrings=[];a.wrapVideoActions=_.x("kevar_watch_wrap_video_actions");a.hideSentimentBar=_.x("kevlar_watch_hide_sentiment_bar");a.actionMap={};return a};
_.z(U$,_.P);_.f=U$.prototype;_.f.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.x("web_modern_buttons"),forceIconButton:!_.x("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.f.dataChanged=function(){_.x("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.f.computeInfoFormattedStrings=function(a){if(!a)return[];var b=[];a.dateText&&b.push(a.dateText);a.stationName&&b.push(a.stationName);a.rating&&b.push(a.rating);a.startEndTimeTemplate&&a.startTimeUtcMillis&&a.endTimeUtcMillis&&b.push(_.Up(_.Ubd(_.Vp(a.startEndTimeTemplate),Number(a.startTimeUtcMillis),Number(a.endTimeUtcMillis))));a.upNextProgramText&&b.push(a.upNextProgramText);return b};
_.f.scheduleInitialUpdatedMetadataRequest=function(){var a,b=(a=this.data)==null?void 0:a.updatedMetadataEndpoint;if(b){var c;a=Number((c=_.y(b,_.OEb))==null?void 0:c.initialDelayMs);c=isNaN(a)?250:a;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),c)}};
_.f.setSentimentBarWidth=function(){var a=this;_.Tm(this,function(){var b=_.E(a.hostElement).querySelector("ytd-menu-renderer");if(b){b=b.topLevelButtons;for(var c=0,d=0;d<b.length;d++){var e=b[d],g=a.get("toggleButtonSupportedData.toggleButtonIdData.id",e.data);if(g==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||g==="TOGGLE_BUTTON_ID_TYPE_LIKE")c+=e.clientWidth+8;else break}c&&(a.sentiment.style.width=c-8+" px")}})};
_.f.fetchUpdatedMetadata=function(a){var b;a&&(b={continuation:a});var c;(a=(c=this.data)==null?void 0:c.updatedMetadataEndpoint)&&_.v().resolve(_.Xi).resolveCommand(a,{form:Object.assign({},b,{element:this.hostElement})})};
_.f.onYtServiceRequestSent=function(a,b){b.endpoint&&_.y(b.endpoint,_.$v)&&(this.hasUpdateSentimentBarStateCommands()&&!_.x("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.y(b.endpoint,_.$v).status),this.setSentimentBarWidth())};
_.f.hasUpdateSentimentBarStateCommands=function(){var a,b,c,d,e=(d=(a=this.data)==null?void 0:(b=a.videoActions)==null?void 0:(c=b.menuRenderer)==null?void 0:c.topLevelButtons)!=null?d:[];a=_.h(e);for(b=a.next();!b.done;b=a.next()){b=b.value;e=d=c=void 0;var g=(c=b.toggleButtonRenderer)==null?void 0:(d=c.toggleButtonSupportedData)==null?void 0:(e=d.toggleButtonIdData)==null?void 0:e.id;if(g==="TOGGLE_BUTTON_ID_TYPE_LIKE"||g==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){d=c=void 0;b=(d=_.y((c=b.toggleButtonRenderer)==
null?void 0:c.defaultServiceEndpoint,_.po))==null?void 0:d.commands;if(!b)break;b=_.h(b);for(c=b.next();!c.done;c=b.next())if(_.y(c.value,Uld))return!0}}return!1};
_.f.onYtServiceRequestCompleted=function(a,b){var c;(a=(c=b.data)==null?void 0:c.loggingDirectives)&&_.j6a(_.ms(),a);this.get("continuation.timedContinuationData",b.data)&&this.data&&this.data.updatedMetadataEndpoint&&(b=b.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,b.continuation),b.timeoutMs))};
_.f.computeHasDateText=function(a){return!!a&&!!a.dateText};
_.Vm.Object.defineProperties(U$.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d;return!((d=(a=this.data)==null?void 0:(b=a.videoActions)==null?void 0:(c=b.menuRenderer)==null?void 0:c.flexibleItems)==null||!d.length)}}});
U$.prototype.onYtServiceRequestCompleted=U$.prototype.onYtServiceRequestCompleted;U$.prototype.onYtServiceRequestSent=U$.prototype.onYtServiceRequestSent;U$.prototype.dataChanged=U$.prototype.dataChanged;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],U$.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],U$.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],U$.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.XG.YtTaskEmitterBehavior),_.W("design:type",Object)],U$.prototype,"ytTaskEmitterBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],U$.prototype,"data",void 0);_.U([_.O({computed:"computeInfoFormattedStrings(data)"}),_.W("design:type",Array)],U$.prototype,"infoFormattedStrings",void 0);
_.U([_.O({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],U$.prototype,"hasDateText",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],U$.prototype,"wrapVideoActions",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],U$.prototype,"hideSentimentBar",void 0);_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],U$.prototype,"flexMenuEnabled",null);
_.U([_.gr("#sentiment"),_.W("design:type",Object)],U$.prototype,"sentiment",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],U$.prototype,"dataChanged",null);_.U([_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Ot]),_.W("design:returntype")],U$.prototype,"onYtServiceRequestSent",null);
_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Wt]),_.W("design:returntype")],U$.prototype,"onYtServiceRequestCompleted",null);
_.S(U$,"ytd-video-primary-info-renderer",function(){if(emd===void 0){var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);emd=a}a=emd;return a},{mode:1});var jmd;var V$=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return a};
_.z(V$,_.P);_.f=V$.prototype;_.f.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"}}}};
_.f.dataChanged=function(){var a;this.descriptionToggled=!((a=this.data)==null||!a.defaultExpanded);var b;this.collapsed=this.descriptionAlwaysCollapsed||!((b=this.data)==null?0:b.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.lu(110509);this.showLessClientVe=_.lu(110510);a=_.Fn();b=_.En();a&&b&&_.eY(a,b,[this.showMoreClientVe,this.showLessClientVe])};
_.f.onYtExpanderMoreTapped=function(){var a,b=(a=this.data)==null?void 0:a.showMoreCommand;b&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(b);(a=_.Fn())&&this.showMoreClientVe&&_.Vo(a,this.showMoreClientVe)};
_.f.onYtExpanderLessTapped=function(){var a=_.Fn();a&&this.showLessClientVe&&_.Vo(a,this.showLessClientVe);var b;(a=(b=this.data)==null?void 0:b.showLessCommand)&&this.componentBehavior.resolveCommand(a)};
_.f.handleUpdateDateTextAction=function(a){this.data&&this.data.dateText&&this.set("data.dateText",_.y(a,_.Cdd).dateText)};
_.f.handleUpdateDescriptionAction=function(a){if(a=_.y(a,_.vFb))a.isEmpty||!a.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.As(a.description)):this.set("data.description",a.description)};
_.f.onYtChangeEngagementPanelVisibilityAction=function(a){if(_.x("web_structured_description_show_more")||_.x("web_engagement_panel_open_description")){var b,c=(b=_.y(a,_.Dzb))==null?void 0:b.targetId,d;a=((d=_.y(a,_.Dzb))==null?void 0:d.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";c==="engagement-panel-structured-description"&&a&&(this.descriptionToggled=!0)}};
_.f.updateCollapsedFromBinding=function(a){this.collapsed=a.detail.value};
_.f.updateDescriptionToggledFromBinding=function(a){this.descriptionToggled=a.detail.value};
_.f.updateCanCollapseFromBinding=function(a){this.canCollapse=a.detail.value};
_.Vm.Object.defineProperties(V$.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var a,b,c=(a=this.data)==null?void 0:(b=a.metadataRowContainer)==null?void 0:b.metadataRowContainerRenderer;return!!c&&!!c.rows&&c.rows.length>c.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.attributedDescription)}},
loadStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return _.x("web_inline_structured_description_load_delay")?this.hasInlineStructuredDescription&&!this.collapsed:this.hasInlineStructuredDescription}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return this.hasInlineStructuredDescription&&!this.collapsed}},
descriptionAlwaysCollapsible:{configurable:!0,enumerable:!0,get:function(){return this.hasInlineStructuredDescription||this.metadataCollapsible}}});
V$.prototype.onYtExpanderLessTapped=V$.prototype.onYtExpanderLessTapped;V$.prototype.onYtExpanderMoreTapped=V$.prototype.onYtExpanderMoreTapped;V$.prototype.dataChanged=V$.prototype.dataChanged;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],V$.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],V$.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],V$.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],V$.prototype,"componentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],V$.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Boolean)],V$.prototype,"collapsed",void 0);_.U([_.O(),_.W("design:type",Boolean)],V$.prototype,"descriptionToggled",void 0);
_.U([_.O(),_.W("design:type",Boolean)],V$.prototype,"canCollapse",void 0);_.U([_.O(),_.W("design:type",Object)],V$.prototype,"subscribeButtonData",void 0);_.U([_.O(),_.W("design:type",Number)],V$.prototype,"descriptionCollapsedHeight",void 0);_.U([_.O(),_.W("design:type",Object)],V$.prototype,"structuredDescriptionContentRenderer",void 0);_.U([_.O({value:function(){return _.x("web_watch_description_always_collapsed")}}),
_.W("design:type",Boolean)],V$.prototype,"descriptionAlwaysCollapsed",void 0);_.U([_.gr("#description"),_.W("design:type",HTMLDivElement)],V$.prototype,"description",void 0);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],V$.prototype,"dataChanged",null);_.U([_.M("yt-expander-more-tapped"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],V$.prototype,"onYtExpanderMoreTapped",null);
_.U([_.M("yt-expander-less-tapped"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],V$.prototype,"onYtExpanderLessTapped",null);_.U([_.K("data.metadataRowContainer"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],V$.prototype,"metadataCollapsible",null);_.U([_.K("data","structuredDescriptionContentRenderer"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],V$.prototype,"hasInlineStructuredDescription",null);
_.U([_.K("data.attributedDescription"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],V$.prototype,"hasAttributedDescription",null);_.U([_.K("hasInlineStructuredDescription","collapsed"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],V$.prototype,"loadStructuredDescription",null);_.U([_.K("data","structuredDescriptionContentRenderer","collapsed"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],V$.prototype,"showInlineStructuredDescription",null);
_.U([_.K("data","hasInlineStructuredDescription","metadataCollapsible"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],V$.prototype,"descriptionAlwaysCollapsible",null);
_.S(V$,"ytd-video-secondary-info-renderer",function(){if(jmd===void 0){var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);jmd=a}a=jmd;return a},{mode:2});var kmd;var W$=function(){return _.P.apply(this,arguments)||this};
_.z(W$,_.P);W$.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:_.x("web_modern_buttons"),forceIconButton:!_.x("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
W$.prototype.activate=function(a){a.appendTo(this.player);a.getPlayerPromise().then(function(b){b.setMinimized(!0)});
this.active=!0};
W$.prototype.deactivate=function(){var a=this.player.firstElementChild;a.getPlayerPromise().then(function(b){b.setMinimized(!1)});
this.active=!1;return a};
W$.prototype.onScrollUpTap=function(){var a=_.v().resolve(_.$t).getCurrentPage();a&&a.setScrollTop(0)};
var X$=W$;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],X$.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],X$.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],X$.prototype,"componentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],X$.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],X$.prototype,"active",void 0);
_.U([_.O({reflectToAttribute:!0,value:function(){return _.x("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.W("design:type",Boolean)],X$.prototype,"darkLaunch",void 0);_.U([_.gr("#player"),_.W("design:type",HTMLDivElement)],X$.prototype,"player",void 0);X$=_.U([_.Q({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],X$);
_.S(X$,"ytd-miniplayer-bar-renderer",function(){if(kmd!==void 0)return kmd;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return kmd=a},{mode:1});_.Ws(_.Rr(function(a){var b=_.Rl();_.yh(function(){var c;if(c=JSON)c=Sld(a.data()),c=_.Ud(JSON.stringify(c).replace(/</g,"\\u003C"));var d=a.data(),e=_.Vp(d.title).trim().length===0,g=!d.publishDate||d.publishDate.trim().length===0,k,m,n,r,t=!((k=d.thumbnail)==null?0:(m=k.thumbnails)==null?0:m.length)||!((n=d.thumbnail)==null?0:n.thumbnails[0].url)||((r=d.thumbnail)==null?void 0:r.thumbnails[0].url.trim().length)===0;b.value&&c&&!(e||g||t)&&_.Wd(b.value,c)},"XOOpRb");
return _.q("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.q("script",{el:b,type:"application/ld+json"}))}),"player-microformat-renderer",{props:{data:_.Vs}});
}catch(e){_._DumpException(e)}
try{
var P6c,H6,Q6c,R6c,T6c,U6c,S6c,V6c;P6c=function(){var a=_.yo();a.info||(a.info={});return a.info};
H6=function(a){return Math.round(_.Co()+a)};
Q6c=function(){var a;if(_.x("csi_use_performance_navigation_timing")||_.x("csi_use_performance_navigation_timing_tvhtml5")){var b,c,d,e=_.Bo==null?void 0:(a=_.Bo.getEntriesByType)==null?void 0:(b=a.call(_.Bo,"navigation"))==null?void 0:(c=b[0])==null?void 0:(d=c.toJSON)==null?void 0:d.call(c);e?(e.requestStart=H6(e.requestStart),e.responseEnd=H6(e.responseEnd),e.redirectStart=H6(e.redirectStart),e.redirectEnd=H6(e.redirectEnd),e.domainLookupEnd=H6(e.domainLookupEnd),e.connectStart=H6(e.connectStart),
e.connectEnd=H6(e.connectEnd),e.responseStart=H6(e.responseStart),e.secureConnectionStart=H6(e.secureConnectionStart),e.domainLookupStart=H6(e.domainLookupStart),e.isPerformanceNavigationTiming=!0,a=e):a=_.Bo.timing}else a=_.x("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.Bo.timing)):_.Bo.timing;return a};
R6c=function(){if(_.Bo.getEntriesByType){var a=_.Bo.getEntriesByType("paint");if(a=_.Ka(a,function(c){return c.name==="first-paint"}))return H6(a.startTime)}var b;
_.x("csi_use_performance_navigation_timing")||_.x("csi_use_performance_navigation_timing_tvhtml5")?b=_.Bo.getEntriesByType("first-paint")[0].startTime:b=_.Bo.timing.msFirstPaint;return b?Math.max(0,b):0};
T6c=function(){var a=window.location.protocol,b=_.Bo.getEntriesByType("resource");b=_.qx(b,function(c){return c.name.indexOf(a+"//fonts.gstatic.com/s/")===0});
(b=S6c(b,function(c,d){return d.duration>c.duration?d:c}))&&b.startTime>0&&b.responseEnd>0&&(_.Do("wffs",H6(b.startTime)),_.Do("wffe",H6(b.responseEnd)))};
U6c=function(a,b){a=document.querySelector(a);if(!a)return!1;var c="",d=a.nodeName;d==="SCRIPT"?(c=a.src,c||(c=a.getAttribute("data-timing-href"))&&(c=window.location.protocol+c)):d==="LINK"&&(c=a.href);_.Sd(document)&&a.setAttribute("nonce",_.Sd(document));return c?(a=_.Bo.getEntriesByName(c))&&a[0]&&(a=a[0],c=_.Co(),_.Do("rsf_"+b,c+Math.round(a.fetchStart)),_.Do("rse_"+b,c+Math.round(a.responseEnd)),a.transferSize!==void 0&&a.transferSize===0)?!0:!1:!1};
_.W6c=function(a,b){_.Ii(function(){_.Ao("").info.actionType=a;b&&_.Bi("TIMING_AFT_KEYS",b);_.Bi("TIMING_ACTION",a);var c=_.wCa(_.Ei("TIMING_INFO",{}));Object.keys(c).length>0&&_.Eo(c);c={isNavigation:!0,actionType:_.jCa(_.Ei("TIMING_ACTION"))};var d=_.Ei("PREVIOUS_ACTION");d&&(c.previousAction=_.jCa(d));if(d=_.Ei("CLIENT_PROTOCOL"))c.httpProtocol=d;if(d=_.Ei("CLIENT_TRANSPORT"))c.transportProtocol=d;(d=_.Fn())&&d!=="UNDEFINED_CSN"&&(c.clientScreenNonce=d);d=_.vCa();if(d===1||d===-1)c.isVisible=!0;
d=_.bCa().loadType==="cold";var e=P6c();d||(d=e.yt_lt==="cold");if(d){c.loadType="cold";d=P6c();e=Q6c();var g=_.Co(),k=_.Ei("CSI_START_TIMESTAMP_MILLIS",0);k>0&&!_.x("embeds_web_enable_csi_start_override_killswitch")&&(g=k);g&&(_.Do("srt",e.responseStart),d.prerender!==1&&_.oCa(g));d=R6c();d>0&&_.Do("fpt",d);d=Q6c();d.isPerformanceNavigationTiming&&_.Eo({performanceNavigationTiming:!0},void 0);_.Do("nreqs",d.requestStart,void 0);_.Do("nress",d.responseStart,void 0);_.Do("nrese",d.responseEnd,void 0);
d.redirectEnd-d.redirectStart>0&&(_.Do("nrs",d.redirectStart,void 0),_.Do("nre",d.redirectEnd,void 0));d.domainLookupEnd-d.domainLookupStart>0&&(_.Do("ndnss",d.domainLookupStart,void 0),_.Do("ndnse",d.domainLookupEnd,void 0));d.connectEnd-d.connectStart>0&&(_.Do("ntcps",d.connectStart,void 0),_.Do("ntcpe",d.connectEnd,void 0));d.secureConnectionStart>=_.Co()&&d.connectEnd-d.secureConnectionStart>0&&(_.Do("nstcps",d.secureConnectionStart,void 0),_.Do("ntcpe",d.connectEnd,void 0));_.Bo&&"getEntriesByType"in
_.Bo&&T6c();d=[];if(document.querySelector&&_.Bo&&_.Bo.getEntriesByName)for(var m in V6c)V6c.hasOwnProperty(m)&&(e=V6c[m],U6c(m,e)&&d.push(e));if(d.length>0)for(c.resourceInfo=[],m=_.h(d),d=m.next();!d.done;d=m.next())c.resourceInfo.push({resourceCache:d.value})}_.Eo(c);c=_.zo();c.preLoggedGelInfos||(c.preLoggedGelInfos=[]);m=c.preLoggedGelInfos;c=_.dCa();d=void 0;for(e=0;e<m.length;e++)if(g=m[e],g.loadType){d=g.loadType;break}if(_.bCa().loadType==="cold"&&(c.loadType==="cold"||d==="cold")){d=_.cCa();
e=_.zo();e=e.gelTicks?e.gelTicks:e.gelTicks={};for(var n in d)if(!(n in e))if(typeof d[n]==="number")_.Do(n,_.Fo(n));else if(_.x("log_repeated_ytcsi_ticks"))for(g=_.h(d[n]),k=g.next();!k.done;k=g.next())k=k.value,_.Do(n.slice(1),k);n={};d=!1;m=_.h(m);for(e=m.next();!e.done;e=m.next())d=e.value,_.In(c,d),_.In(n,d),d=!0;d&&_.Eo(n)}_.ACa(!0);n=_.Ei("TIMING_ACTION");_.Ji("ytglobal.timingready_")&&n&&_.KCa()&&_.zCa()&&_.tCa()})()};
S6c=function(a,b){return Array.prototype.reduce.call(a,b,{duration:0})};
V6c={'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 X6c={};X6c.YtVisibilityRootBehavior=[_.uNb.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.Tf(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.Ei("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var a=_.Ei("INNERTUBE_CLIENT_NAME")!=="WEB";_.x("kevlar_use_vimio_behavior")&&a&&_.uIb()}}];_.I6={};_.I6.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(a){a.detail.contextProvider=this;a.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
X6c.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.Tt();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(a){var b=this;this.pageCount+=1;_.x("kevlar_use_vimio_behavior")&&(_.Ei("INNERTUBE_CLIENT_NAME")==="WEB"?_.zk.addJob(function(){b.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(a)},
loadPage_:function(a){this.data=a},
ytPageBehaviorActiveObserver_:function(a){var b=this;_.x("kevlar_use_vimio_behavior")&&(a?_.Ei("INNERTUBE_CLIENT_NAME")==="WEB"?_.zk.addJob(function(){b.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(a){if(!this.setScrollTopJobId_){var b=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){b.setScrollTopJobId_=0;var c=_.v().resolve(_.Wi(_.Ft));c&&_.QVb(c);this.getPageScrollingElement().scrollTop=a}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.Ny(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var N6c;var O6c=function(){var a=_.P.apply(this,arguments)||this;a.playerListenerConfig=null;a.actionMap={"yt-show-watch-page-survey":"openSurvey"};return a};
_.z(O6c,_.P);_.f=O6c.prototype;_.f.dataChanged=function(){var a=this,b=_.bu();b&&b.getPlayerPromise().then(function(d){a.maybeRemovePlayerListeners(d)});
var c=this.data&&this.data.survey;c&&((c=(c=c.singleOptionSurveyRenderer||c.checkboxSurveyRenderer||c.multiStageSurveyRenderer)&&c.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(b,c):this.openSurvey())};
_.f.triggerWatchPageSurvey=function(a,b){var c=this,d,e,g,k,m,n,r,t,u;return _.l(function(w){if(w.nextAddress==1)return a?_.p(w,a.getPlayerPromise(),2):w.return();c.player=w.yieldResult;if(!c.player)return w.return();d={};e=_.h(b);for(g=e.next();!g.done;g=e.next())k=g.value,m=_.h(c.createEventListenerPair(k)),n=m.next().value,r=m.next().value,t=n,u=r,t&&u&&(d[t]=u,c.ytPlayerListenerBehavior.listenToPlayerEvent(c.player,t,u));c.playerListenerConfig=d;_.se(w)})};
_.f.createEventListenerPair=function(a){var b=a.playbackEventTrigger;return b?this.handlePlaybackTrigger(b):(a=a.watchTimeTrigger)?this.handleWatchTimeTrigger(a):[void 0,void 0]};
_.f.handleWatchTimeTrigger=function(a){var b=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var c=a.videoWatchFraction,d=a.watchTimeSec;return d&&c?["onVideoProgress",function(){b.player&&b.isWatchTimeConditionMet(b.player,c,d)&&b.showSurvey()}]:[void 0,
void 0]};
_.f.isWatchTimeConditionMet=function(a,b,c){var d=a.getProgressState(),e=d.current-this.lastKnownPlaybackPosition;e<5&&(this.accumulatedMediaTime+=e);this.lastKnownPlaybackPosition=d.current;d=Math.round(this.accumulatedMediaTime/d.duration*1E3)/1E3;return a.getPresentingPlayerType&&a.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>c||d>b)};
_.f.handlePlaybackTrigger=function(a){var b=this;a=a.playbackEvent;if(a==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var c="onStateChange";var d=function(e){e===0&&b.showSurvey()}}else a==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(c="onVideoProgress",d=function(e){b.player&&b.player.getPresentingPlayerType&&b.player.getPresentingPlayerType()===1&&e&&b.showSurvey()}):a==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(c="onAdEnd",d=this.showSurvey);
return[c,d]};
_.f.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.f.openSurvey=function(){var a=this,b=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.Emc(!!b));_.zk.addJob(function(){a.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:b}})},0,0)};
_.f.maybeRemovePlayerListeners=function(a){if(this.playerListenerConfig){for(var b=_.h(Object.keys(this.playerListenerConfig)),c=b.next();!c.done;c=b.next())c=c.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(a,c,this.playerListenerConfig[c]);this.playerListenerConfig=null}};
var G6=O6c;G6.prototype.dataChanged=G6.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],G6.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.YH),_.W("design:type",Object)],G6.prototype,"ytdOpenPopupBehavior",void 0);_.U([_.H(_.YI.YtPlayerListenerBehavior),_.W("design:type",_.ZI)],G6.prototype,"ytPlayerListenerBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],G6.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.H(_.LI),_.W("design:type",Object)],G6.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],G6.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],G6.prototype,"playerListenerConfig",void 0);_.U([_.O({value:0}),_.W("design:type",Number)],G6.prototype,"lastKnownPlaybackPosition",void 0);_.U([_.O({value:0}),_.W("design:type",Number)],G6.prototype,"accumulatedMediaTime",void 0);_.U([_.O(),_.W("design:type",Object)],G6.prototype,"player",void 0);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],G6.prototype,"dataChanged",null);G6=_.U([_.Q({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],G6);
_.S(G6,"ytd-survey-trigger-renderer",function(){if(N6c!==void 0)return N6c;var a=document.createElement("template");_.B(a,"\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");a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return N6c=a},{mode:1});
}catch(e){_._DumpException(e)}
try{
var rbd=new _.X("promotedSparklesWebRenderer");var sbd=new _.X("relatedChipCommand");var tbd;var ubd;var vbd=function(){return _.P.apply(this,arguments)||this};
_.z(vbd,_.P);vbd.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
var x8=vbd;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],x8.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],x8.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],x8.prototype,"data",void 0);x8=_.U([_.Q({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],x8);
_.S(x8,"ytd-compact-tvfilm-entry-point-renderer",function(){if(ubd!==void 0)return ubd;var a=document.createElement("template");_.B(a,'\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>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return ubd=a},{mode:1});var wbd;var xbd;var ybd;var y8=function(){return _.P.apply(this,arguments)||this};
_.z(y8,_.P);y8.prototype.ready=function(){this.initializeDefs()};
y8.prototype.initializeDefs=function(){var a=this.meta.byKey("yt-icons"),b=_.E(a).querySelector("#star"),c=_.E(a).querySelector("#star_half");a=_.E(a).querySelector("#star_border");b&&this.defs.appendChild(b.cloneNode(!0));c&&this.defs.appendChild(c.cloneNode(!0));a&&this.defs.appendChild(a.cloneNode(!0))};
y8.prototype.percentChanged=function(){for(var a=this.rating;a.firstChild;)a.removeChild(a.firstChild);var b=Math.round(this.percent/10);a=Math.floor(b/2);b%=2;var c=5-a-b;this.appendStars("star",a,0);this.appendStars("star_half",b,a);this.appendStars("star_border",c,a+b)};
y8.prototype.appendStars=function(a,b,c){for(var d=0;d<b;d++){var e=(18+this.spacing)*(d+c),g=document.createElementNS("http://www.w3.org/2000/svg","use");_.Fmc(g,"#"+a);g.setAttribute("x",""+e);g.setAttribute("y","0");this.rating.appendChild(g)}};
var z8=y8;z8.prototype.percentChanged=z8.prototype.percentChanged;_.U([_.gr("#defs"),_.W("design:type",HTMLElement)],z8.prototype,"defs",void 0);_.U([_.gr("#rating"),_.W("design:type",HTMLElement)],z8.prototype,"rating",void 0);_.U([_.O(),_.W("design:type",Number)],z8.prototype,"percent",void 0);_.U([_.O({value:6}),_.W("design:type",Number)],z8.prototype,"spacing",void 0);_.U([_.O({value:_.CC.create("iron-meta",{type:"iconset"})}),_.W("design:type",_.GD)],z8.prototype,"meta",void 0);
_.U([_.N("percent"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],z8.prototype,"percentChanged",null);z8=_.U([_.Q({disableElementRegistration:!0,is:"ytd-ratings"})],z8);
_.S(z8,"ytd-ratings",function(){if(ybd!==void 0)return ybd;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return ybd=a},{mode:1});var zbd=function(){return _.P.apply(this,arguments)||this};
_.z(zbd,_.P);var Abd=zbd;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],Abd.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],Abd.prototype,"data",void 0);Abd=_.U([_.Q({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],Abd);
_.S(Abd,"ytd-offer-review-renderer",function(){if(xbd!==void 0)return xbd;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return xbd=a},{mode:1});var Bbd=function(){var a=_.P.apply(this,arguments)||this;a.badges=[{textBadge:{label:_.Up("CC")}}];return a};
_.z(Bbd,_.P);_.f=Bbd.prototype;_.f.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.f.dataChanged=function(){var a=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(a&&a.commandMetadata&&_.y(a.commandMetadata,_.HE)&&_.y(a.commandMetadata,_.HE).fireAutomatically)_.v().resolve(_.Xi).resolveCommand(a,{form:{element:this.hostElement}});else{var b;a&&((b=_.y(a,_.HE))==null?0:b.fireAutomatically)&&_.v().resolve(_.Xi).resolveCommand(a,{form:{element:this.hostElement}})}};
_.f.isEmptyContent=function(a){return this.isStorefrontEntryPointEmpty(a)&&this.shouldHideOfferModule(a)};
_.f.isStorefrontEntryPointEmpty=function(a){return!a||!a.storefrontEntryPoint};
_.f.shouldHideOfferModule=function(a){return!!a.hideVideoDetails};
_.f.isOfferModuleNavigationInactive=function(a){return!a.navigationEndpoint&&!a.serviceEndpoint};
_.f.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.v().resolve(_.Xi).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
var A8=Bbd;A8.prototype.dataChanged=A8.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],A8.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],A8.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],A8.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.W("design:type",Boolean)],A8.prototype,"hidden",void 0);
_.U([_.O(),_.W("design:type",Object)],A8.prototype,"badges",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],A8.prototype,"dataChanged",null);A8=_.U([_.Q({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],A8);
_.S(A8,"ytd-movie-offer-module-renderer",function(){if(wbd!==void 0)return wbd;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return wbd=a},{mode:1});var Cbd;var Dbd=function(){return _.P.apply(this,arguments)||this};
_.z(Dbd,_.P);var Ebd=Dbd;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],Ebd.prototype,"componentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],Ebd.prototype,"data",void 0);Ebd=_.U([_.Q({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],Ebd);
_.S(Ebd,"ytd-media-masthead-renderer",function(){if(Cbd!==void 0)return Cbd;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Cbd=a},{mode:1});var Fbd;_.Ws(_.R$b,"course-metadata-view-model",{props:{data:_.Vs,isOverlay:_.Vs}});var Gbd=function(){var a=_.P.apply(this,arguments)||this;a.isMetadataVisible=!1;a.modernPanels=_.x("kevlar_watch_modern_panels");a.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return a};
_.z(Gbd,_.P);_.f=Gbd.prototype;
_.f.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"}}}}};
_.f.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.f.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.f.expanderChanged=function(){var a;if((a=this.data)==null?0:a.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.f.isExpandButtonToggled=function(){var a,b;return(b=_.y((a=this.data)==null?void 0:a.expandMetadataButton,_.Gu))==null?void 0:b.isToggled};
_.f.onVisibilityButtonClick=function(){var a;if((a=this.data)==null?0:a.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.f.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
var B8=Gbd;B8.prototype.expanderChanged=B8.prototype.expanderChanged;B8.prototype.dataChanged=B8.prototype.dataChanged;B8.prototype.descriptionChanged=B8.prototype.descriptionChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],B8.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],B8.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.H([_.bH.YtActionHandlerBehavior]),_.W("design:type",Object)],B8.prototype,"actionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],B8.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],B8.prototype,"isMetadataVisible",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],B8.prototype,"modernPanels",void 0);_.U([_.gr("#expander"),_.W("design:type",Object)],B8.prototype,"expander",void 0);
_.U([_.N("data.description"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],B8.prototype,"descriptionChanged",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],B8.prototype,"dataChanged",null);_.U([_.N("isMetadataVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],B8.prototype,"expanderChanged",null);
B8=_.U([_.Q({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],B8);
_.S(B8,"ytd-tvfilm-offer-module-renderer",function(){if(Fbd!==void 0)return Fbd;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Fbd=a},{mode:2});var Hbd;var C8=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return a};
_.z(C8,_.P);C8.prototype.dataChanged=function(){this.hostElement.hidden=!1};
C8.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
C8.prototype.onThumbnailTap=function(a){this.data&&this.data.serviceEndpoint&&(_.x("web_ytd_unlimited_offer_module_renderer_command_resolver_ks")?_.mo(this.hostElement,[this.data.serviceEndpoint]):_.v().resolve(_.Xi).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),a.stopPropagation())};
C8.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
var D8=C8;D8.prototype.dataChanged=D8.prototype.dataChanged;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],D8.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],D8.prototype,"rendererBehaviors",void 0);_.U([_.H([_.bH.YtActionHandlerBehavior]),_.W("design:type",Object)],D8.prototype,"actionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],D8.prototype,"data",void 0);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D8.prototype,"dataChanged",null);D8=_.U([_.Q({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],D8);
_.S(D8,"ytd-unlimited-offer-module-renderer",function(){if(Hbd!==void 0)return Hbd;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Hbd=a},{mode:1});var Ibd;var Jbd;var Kbd=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return a};
_.z(Kbd,_.P);Kbd.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
Kbd.prototype.handleRelatedChipCommand=function(a){a=_.y(a,sbd);var b=a.contents;b?_.ko(this.hostElement,"yt-item-section-replace-action",[b,a.targetSectionIdentifier]):_.ko(this.hostElement,"yt-item-section-continuation-action",[a.continuationData,a.targetSectionIdentifier])};
var E8=Kbd;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],E8.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],E8.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],E8.prototype,"actionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],E8.prototype,"data",void 0);E8=_.U([_.ur({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],E8);
_.S(E8,"yt-related-chip-cloud-renderer",function(){if(Jbd===void 0){var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;Ibd===void 0&&(Ibd=document.createElement("template"));var d=Ibd;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Jbd=a}a=Jbd;return a},{mode:2});var F8=function(){var a=_.P.apply(this,arguments)||this;a.isTwoColumns=!0;a.hideOfferModules=!1;a.watchFeedBigThumbs=_.x("kevlar_watch_feed_big_thumbs");a.watchNextGridHideChips=_.x("kevlar_watch_grid_hide_chips");a.eligibleToSwitchToGrid=_.x("web_watch_eligible_to_switch_to_grid");a.disableShortsShelfHeightOverride=_.x("web_shorts_wn_shelf_ratio_tuning");a.isWatchNextGrid=!1;a.reuseComponents=!_.x("kevlar_watch_grid");a.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return a};
_.z(F8,_.P);_.f=F8.prototype;
_.f.configureRendererStamper=function(){return{"data.offerModule":{id:"offer-module",mapping:{movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},shownItems:{id:"items",reuseComponents:this.reuseComponents,mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-watch-next-secondary-results-renderer lockup",sizing:"COMPACT",thumbnailFixedWidth:"168px",force16By9ThumbnailAspectRatio:!0},properties:{containerType:"[[lockupContainerType]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",
compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",adSlotRenderer:"ytd-ad-slot-renderer",relatedChipCloudRenderer:"yt-related-chip-cloud-renderer",itemSectionRenderer:{component:"ytd-item-section-renderer",params:{isWatch:!0},properties:{continuationShowButton:"[[showButton]]",eligibleToSwitchToGrid:"[[eligibleToSwitchToGrid]]"}},
reelShelfRenderer:"ytd-reel-shelf-renderer",richGridRenderer:{component:"ytd-rich-grid-renderer",properties:{disableStickyFilterBar:"[[isWatchNextGrid]]",transparentBackgroundChipsBar:"[[isWatchNextGrid]]",reducedBottomMargin:"[[isWatchNextGrid]]",rowReducedHorizontalMargin:"[[isWatchNextGrid]]"},params:{resizeOnObserverInit:!_.x("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}}};
_.f.getItemsPath=function(){return"data.results"};
_.f.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.f.created=function(){this.ytLazyListBehavior.initialCount=1};
_.f.ready=function(){_.dr(this.hostElement,{"--yt-img-shadow-placeholder-color":"var(--yt-spec-10-percent-layer)","--yt-img-shadow-min-height":"100%","--yt-img-shadow-min-width":"100%"})};
_.f.resultsChanged=function(){if(this.data&&this.data.results){for(var a=this.data.results,b=null,c=null,d=0;d<a.length;d++)a[d].relatedChipCloudRenderer?b=a[d].relatedChipCloudRenderer:a[d].itemSectionRenderer&&(c=a[d].itemSectionRenderer);if(b&&c)for(this.set("data.continuations",[]),a=_.y(b.content,_.oEb).chips,b=0;b<a.length;b++)if(d=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",a[b]),d.loadCached||!d.contents){d.contents=c.contents;break}}};
_.f.dataChanged=function(){var a=this,b;if((b=this.data)!=null&&b.results&&this.hasAllowedInstreamAd(this.playerData)){if(b=this.data.results.filter(function(m){return!!m.promotedSparklesWebRenderer})){for(var c=0;c<b.length;c++){var d=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",b[c]);
if(d)for(var e=0;e<d.length;e++)d[e]&&d[e].baseUrl&&_.Jk(d[e].baseUrl)}this.set("data.results",this.data.results.filter(function(m){return!m.promotedSparklesWebRenderer}))}if(b=this.data.results.filter(function(m){return!!a.getSparklesAd(m)})){b=_.h(b);
for(e=b.next();!e.done;e=b.next())if(d=c=void 0,e=(c=this.getSparklesAd(e.value))==null?void 0:(d=c.errorCommand)==null?void 0:d.loggingUrls)for(c=_.h(e),d=c.next();!d.done;d=c.next())(d=d.value)&&d.baseUrl&&_.Jk(d.baseUrl);var g,k;this.set("data.results",(g=this.data)==null?void 0:(k=g.results)==null?void 0:k.filter(function(m){return!m.adSlotRenderer}))}}};
_.f.getSparklesAd=function(a){var b,c;a=_.y((b=a.adSlotRenderer)==null?void 0:(c=b.fulfillmentContent)==null?void 0:c.fulfilledLayout,_.Lyb);return _.y(a==null?void 0:a.renderingContent,rbd)};
_.f.hasAllowedInstreamAd=function(a){a=this.get("adPlacements",a)||[];for(var b=0;b<a.length;b++){var c=this.get("adPlacementRenderer.config.adPlacementConfig",a[b]);if(c&&c.suppressDisplayAd)return!0}return!1};
_.f.computeHideUnlimitedOfferModule=function(a,b){return a&&a.offerModule&&b&&a.offerModule.unlimitedOfferModuleRenderer&&a.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(b)?!0:!1};
_.f.hideUnlimitedOfferModuleChanged=function(){var a=_.E(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");a&&(a.hidden=this.hideUnlimitedOfferModule)};
_.f.updateLockupContainerTypes=function(a){if(this.eligibleToSwitchToGrid){var b;(b=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||b.forEach(function(c){c.containerType=a})}};
_.f.computeHideTvfilmOfferModule=function(a,b){var c,d;return!!((a==null?0:(c=a.offerModule)==null?0:(d=c.tvfilmOfferModuleRenderer)==null?0:d.clientShouldSuppressIfCompanionAdDisplayed)&&b&&this.hasCompanionAds(b))};
_.f.hideTvfilmOfferModuleChanged=function(){var a=_.E(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");a&&(a.hidden=this.hideTvfilmOfferModule)};
_.f.hasCompanionAds=function(a){a=this.get("adPlacements",a)||[];for(var b=0;b<a.length;b++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",a[b]))return!0;var c=void 0,d=void 0,e=void 0;if(!_.x("web_watch_top_banner_companion_check_killswitch")&&((c=a[b])==null?0:(d=c.adPlacementRenderer)==null?0:(e=d.renderer)==null?0:e.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.f.hasSuppressedResults=function(a){return a==null?!0:a.filter(function(b){return!b.continuationItemRenderer&&!b.compactPromotedVideoRenderer&&!b.promotedSparklesWebRenderer}).length===0};
_.f.computeShowButton=function(a,b){return this.isWatchNextGrid?a:a||this.hasSuppressedResults(b)};
_.f.showButtonChanged=function(){if(this.isWatchNextGrid){var a=_.E(this.hostElement).querySelector("ytd-rich-grid-renderer");a&&this.showButton!==null&&(a.continuationShowButton=this.showButton)}else{a=_.E(this.hostElement).querySelector("yt-next-continuation");var b=_.E(this.hostElement).querySelector("ytd-continuation-item-renderer"),c=_.E(this.hostElement).querySelector("ytd-item-section-renderer");a&&(a.showButton=this.showButton);b&&(b.showButton=this.showButton);c&&(c.continuationShowButton=
this.showButton)}};
_.f.continuationTap=function(a){var b;if(((b=this.data)==null?void 0:b.continuations)!=null&&a.target.tagName==="TP-YT-PAPER-BUTTON")for(a=this.data.continuations,b=0;b<a.length;b++)a[b].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(a[b].nextContinuationData||{})};
_.f.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.TH("shown-items-changed",this.shownItems))};
_.Vm.Object.defineProperties(F8.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid&&this.containsLockupViewModel?this.isGridViewEnabled?2:3:3}},
containsLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.shownItems)==null||!a.some(function(b){return!!b.lockupViewModel}))}}});
F8.prototype.shownItemsChangedForBinding=F8.prototype.shownItemsChangedForBinding;F8.prototype.showButtonChanged=F8.prototype.showButtonChanged;F8.prototype.hideTvfilmOfferModuleChanged=F8.prototype.hideTvfilmOfferModuleChanged;F8.prototype.updateLockupContainerTypes=F8.prototype.updateLockupContainerTypes;F8.prototype.hideUnlimitedOfferModuleChanged=F8.prototype.hideUnlimitedOfferModuleChanged;F8.prototype.dataChanged=F8.prototype.dataChanged;F8.prototype.resultsChanged=F8.prototype.resultsChanged;
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],F8.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],F8.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.gJ.YtLazyListBehavior),_.W("design:type",Object)],F8.prototype,"ytLazyListBehavior",void 0);_.U([_.H(_.SM.YtNextContinuationBehavior),_.W("design:type",Object)],F8.prototype,"ytNextContinuationBehavior",void 0);
_.U([_.H(_.RM),_.W("design:type",Object)],F8.prototype,"ytContinuationHandlerBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],F8.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],F8.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],F8.prototype,"playerData",void 0);_.U([_.O({value:!0}),_.W("design:type",Boolean)],F8.prototype,"autoFill",void 0);_.U([_.O({value:60}),_.W("design:type",Number)],F8.prototype,"targetFramerate",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],F8.prototype,"isTwoColumns",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],F8.prototype,"hideOfferModules",void 0);_.U([_.O(),_.W("design:type",Object)],F8.prototype,"shownItems",void 0);_.U([_.O({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.W("design:type",Boolean)],F8.prototype,"hideUnlimitedOfferModule",void 0);
_.U([_.O({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.W("design:type",Boolean)],F8.prototype,"hideTvfilmOfferModule",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],F8.prototype,"watchFeedBigThumbs",void 0);_.U([_.O(),_.W("design:type",Object)],F8.prototype,"watchNextGridHideChips",void 0);_.U([_.O(),_.W("design:type",Object)],F8.prototype,"eligibleToSwitchToGrid",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],F8.prototype,"disableShortsShelfHeightOverride",void 0);_.U([_.O({selector:_.Lu}),_.W("design:type",Object)],F8.prototype,"isGridViewEnabled",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],F8.prototype,"showMoreButton",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],F8.prototype,"isWatchNextGrid",void 0);
_.U([_.O({computed:"computeShowButton(showMoreButton, data.results)"}),_.W("design:type",Boolean)],F8.prototype,"showButton",void 0);_.U([_.kr("data.results.*"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],F8.prototype,"resultsChanged",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],F8.prototype,"dataChanged",null);
_.U([_.N("hideUnlimitedOfferModule"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],F8.prototype,"hideUnlimitedOfferModuleChanged",null);_.U([_.K("isGridViewEnabled","containsLockupViewModel","data"),_.O({reflectToAttribute:!0}),_.W("design:type",Number),_.W("design:paramtypes",[])],F8.prototype,"lockupContainerType",null);
_.U([_.N("lockupContainerType","data"),_.W("design:type",Function),_.W("design:paramtypes",[Number]),_.W("design:returntype")],F8.prototype,"updateLockupContainerTypes",null);_.U([_.N("hideTvfilmOfferModule"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],F8.prototype,"hideTvfilmOfferModuleChanged",null);_.U([_.N("showButton"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],F8.prototype,"showButtonChanged",null);
_.U([_.N("shownItems"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],F8.prototype,"shownItemsChangedForBinding",null);_.U([_.K("shownItems"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],F8.prototype,"containsLockupViewModel",null);
_.S(F8,"ytd-watch-next-secondary-results-renderer",function(){if(tbd===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-next-secondary-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module" hidden="[[hideOfferModules]]" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="items" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="continuations" hidden="[[canShowMore]]" on-click="continuationTap" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);tbd=a}a=tbd;return a},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.lmd={};
_.lmd.YtdWatchBehavior=[_.Z.YtRendererBehavior,_.YI.YtPlayerListenerBehavior,_.aH.YtRendererstamperBehavior,_.bH.YtActionHandlerBehavior,_.I6.YtPageBehavior,_.nH.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},offerModule:{type:Object},engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},clarifyBoxValue:{type:Object},
conversationBar:{type:Object},infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},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 _.Gi("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.x("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 _.Gi("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,
hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,
value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,
reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.x("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.x("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},
swatcherooSqueezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"swatcherooSqueezebackChanged",computed:"computeSwatcherooSqueezeback(panelExpanded, fullBleedPlayer, isTwoColumns_)"},squeezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"squeezebackChanged",computed:"computeSqueezeback(engagementPanelExpanded, fullscreen)"},richItemMinWidth:{type:Number,value:function(){return _.$i("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.$i("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},showRichGridContinuationButton:{type:Boolean,value:!1,computed:"computeShowRichGridContinuationButton(isTwoColumns_, commentsEntryPointHeaderRenderer)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,
computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},flexyEnableSmallWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.x("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.x("kevlar_watch_flexy_disable_large_window_sizing")}},
hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.x("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.x("web_watch_fullerscreen_deprecation_ui")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.x("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.x("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.x("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.x("kevlar_watch_frame0_loading_state")}},
retroMode:{type:Boolean,value:!1},roundedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeRoundedPlayer(defaultLayout, retroMode)"},showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,
reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,value:function(){return _.x("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.x("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.x("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.x("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.x("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.x("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 _.x("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.x("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 _.x("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean}},observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);swatcherooRichGridRendererDataChanged(data);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var a={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:_.LW(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.LW(["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"||_.x("swa_prov_panels_ks")?_.x("web_watch_inject_placeholder_panels")?a.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}:_.x("kevlar_use_engagement_panel_management_component")||
(a["data.engagementPanels"]={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}):(a.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},a.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});
return a},
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 a=this;this.watchController=void 0;this.pageDisposeJobs=[function(){a.showMetadataPlaceholder_()},
function(){_.x("web_watch_dont_clear_comments")||a.clearComments_()},
function(){a.clearPlayerAds_()},
function(){a.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setRichGridJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.is==="ytd-watch-grid"&&(this.visiblePanelIdentifiers_=new Set);this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.x("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.x("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.Wld(function(){return _.au(a)},this.hostElement);
this.pageDisposeJobs.push(function(){a.youThereManager_.reset()});
_.x("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){a.resetFullerscreenEduButtonForNewPlayback_()}));
_.x("kevlar_watch_js_panel_height")&&(this.scheduleSidebarSizeUpdateJobId_=this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.oD;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;_.x("kevlar_watch_metadata_refresh")&&(this.watchMetadata=void 0);_.x("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));_.x("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.er(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(a){a&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:a}),a.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(a){_.x("kevlar_watch_flexy_theater_manager")&&(this.theater=a,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.x("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(a){!_.x("kevlar_watch_while_v2")&&!_.x("web_watch_pip")||a||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(a){this.active!==void 0&&(this.fullscreen=a,_.x("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(a){this.active!==void 0&&(_.go(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.x("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.x("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(a>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(a){this.initCsi_();this.updatePageData_(a)},
updatePageData_:function(a){var b=this;if(a)if(this.data===a){this.onPageLoadWithSameData_();var c;(c=this.watchController)==null||_.N$(c,this.data)}else this.data=a;this.playlist&&_.Ho({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.Jo("nw");this.loading=!1;_.ul(_.zk,function(){b.initDclkstatus_();var d,e=((d=b.player)==null?void 0:d.getVideoData().cpn)||"";_.Gld(function(g,k){_.Rrc(g,k,e)})})},
onPageLoadWithSameData_:function(){_.x("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 a=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!a);this.set("loadingData.playlistLoading",a&&a!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),a=this.watchNextSkeletonEl_.firstElementChild;a;)a.classList.remove("hidden"),a=a.nextElementSibling;if(_.x("kevlar_watch_frame0_loading_state")){var b,c,d;a=(b=this.loadingData)==null?void 0:(c=b.endpoint)==null?void 0:(d=c.watchEndpoint)==null?void 0:d.videoId;var e;a&&(e="https://i.ytimg.com/vi/"+a+"/frame0.jpg");_.E(this.hostElement).querySelector("#player").style.backgroundImage=e?"url("+e+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var a=_.E(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&a&&(a.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var b,c;(c=(b=this.watchMetadata).updateSentimentBarWidth)==
null||c.call(b);var d,e;(e=(d=this.watchMetadata).resize)==null||e.call(d)}_.x("kevlar_watch_frame0_loading_state")&&(_.E(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(a){var b=_.E(this.hostElement).querySelector(a);b?_.eo(b,!1):_.Dl(new _.qj("Overscroll monitor not found for component: ",a))},
removeSplitScrollMouseTrap:function(a){var b=_.E(this.hostElement).querySelector(a);b?_.fo(b):_.Dl(new _.qj("Disposal component for  overscroll monitoring not found: ",a))},
onLoadingChanged_:function(a){a?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(a){var b=this;a?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.zk.addLowPriorityJob(function(){b.onWindowResized_(_.sq(!0))})},
updateTheaterModeState_:function(a){if(!_.x("kevlar_watch_flexy_theater_manager")){a=a||this.fullWindowMode_;if(this.theater!==void 0||a)this.theater=a;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();a&&_.Sbd()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation()},
updatePlayerLocation:function(){var a=this.theater;_.x("external_fullscreen")&&this.fullscreen&&(a=!0);a=a?_.E(this.hostElement).querySelector("#player-full-bleed-container"):_.E(this.hostElement).querySelector("#player-container-inner");var b=this.getPlayerContainer(),c=_.x("kevlar_watch_while_v2")||_.x("web_watch_pip");b.parentElement!==a&&(c&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.au(this).appendTo(a,b),a.appendChild(_.E(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var a=this;return _.l(function(b){if(b.nextAddress==1)return _.p(b,_.v().resolve(_.Vw).deactivate(),2);a.updatePlayerLocation();_.se(b)})},
updateCinematicsLocation:function(){var a=this.getElement("CINEMATICS");if(a){var b=this.getCinematicsLocationContainer();a.parentElement!==b&&b.appendChild(a);var c;(c=this.watchController)==null||_.Cld(c)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.E(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.E(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(a,b){var c=document.documentElement.hasAttribute("dark"),d=c&&_.x("web_cinematic_theater_mode"),e=c&&_.x("web_cinematic_fullscreen");c=!c&&this.cinematicLightTheme;return a&&d||b&&e||(b||a)&&c},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var a=this,b;(b=this.watchController)==null||_.N$(b,this.data);_.x("kevlar_watch_flexy_comments_manager")||this.initComments_();_.x("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.v().resolve(_.QF).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());if(this.is==="ytd-watch-grid")if(this.liveChatCollapsed=!0,this.visiblePanelIdentifiers_.clear(),
this.engagementPanelExpanded=!1,_.x("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.zk.addLowPriorityJob(function(){_.ko(a.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.x("web_watch_start_chat_in_theater_mode")){var c,d,e;if((c=this.data)==null?0:(d=c.contents)==null?0:(e=d.twoColumnWatchNextResults)==null?0:e.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var g,k;((g=this.data)==null?0:(k=g.contents)==null?0:k.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(a){var b;(b=this.watchController)==null||_.M$(b,this.playerData);a&&a.playabilityStatus&&(b=this.isVideoPlayable_(a.playabilityStatus,this.getPlayerOverlays_(this.data)),a=this.isLiveStreamOffline_(a.playabilityStatus),b&&!a||_.Tm(this,function(){_.Jo("pbu")}));
this.setPlayerAds_();_.ko(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(a,b){if((_.x("kevlar_watch_while_v2")||_.x("web_watch_pip"))&&this.playerData&&b)return this.playerData.videoDetails},
watchPageActiveChanged_:function(a){_.Yp().dispatch(_.Tcd(this.active));a?this.activate_():this.deactivate_()},
attached:function(){var a=this;this.watchController=new _.L$(this.hostElement);this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.addSplitScrollMouseTrap("#primary"),this.addSplitScrollMouseTrap("#fixed-secondary"));this.playerData&&_.M$(this.watchController,this.playerData);this.data&&_.N$(this.watchController,this.data);_.x("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var b=_.au(this);_.x("kevlar_disable_prepare_player")||b.preparePlayer();
_.x("kevlar_watch_flexy_playlist_manager")||_.v().resolve(_.QF).setPlayer(b);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();b={"--ytd-watch-flexy-scrollbar-width":_.HW()+"px"};this.is==="ytd-watch-grid"&&(b["--ytd-watch-flexy-sidebar-width"]=_.O8+"px",b["--ytd-watch-flexy-sidebar-min-width"]=_.$i("kevlar_watch_grid_sidebar_min_width",300)+"px",b["--ytd-watch-grid-horizontal-page-margins"]=_.M8+"px",b["--ytd-watch-grid-columns-top-margins"]=_.Idd+"px",b["--ytd-watch-grid-min-player-height-medium"]=
"360px");!_.$i("kv_pl_mx_sz_ks")&&_.$i("kevlar_watch_max_player_width")&&(b["--ytd-watch-flexy-max-player-width-wide-screen"]=_.Odd+"px");_.$i("kevlar_watch_flexy_metadata_height")&&(b["--ytd-watch-flexy-space-below-player"]=_.Pdd+"px");this.safeUpdateStyles(b);_.x("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.zfd(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return a.onPlayerTouchPanDown_()}}));
_.x("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.E(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var a=_.HW(),b=_.N8+a,c=b;this.fixedPanels&&(b+=_.O8);var d=657+a;a=1327+a;_.E(this.hostElement).querySelector("#two-column-query").query="(min-width: "+b+"px)";_.E(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(d+"px), (min-height: 630px) and (min-width: ")+(b+"px) and (max-width: ")+(a+"px)");_.E(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(a+"px)");_.E(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+c+"px)"},
calculateCurrentPlayerSize_:function(){var a=_.E(this.hostElement).querySelector("#miniplayer-bar").firstChild;return a&&a.active||this.theater||_.x("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||!this.active||!this.windowSize_?new _.of(NaN,NaN):_.Nld(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.Nld(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.Tf(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var a=this;this.onWindowResized_(_.sq());_.x("browse_skeleton_removal_on_watch_killswitch")||_.Gi("IS_SHELL_LOAD")&&_.M6c();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var b=_.au(this);b.addEventListener("yt-player-updated",_.er(this,this.onPlayerUpdated_));b.getPlayerPromise().then(function(c){a.playerApiReady_(c)});
_.x("kevlar_watch_flexy_playlist_manager")||(b=_.v().resolve(_.QF),_.x("kevlar_watch_observe_playlist_navigations_killswitch")&&b.addEventListener("yt-navigate",_.er(this,this.onYtNavigate_)),b.setPlaylistComponent(_.E(this.hostElement).querySelector("#playlist")),b.addEventListener("yt-playlist-data-updated",_.er(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.zk.addLowPriorityJob(function(){_.go(a.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.au(this).removeEventListener("yt-player-updated",_.er(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.x("kevlar_watch_flexy_playlist_manager")){var a=_.v().resolve(_.QF);_.x("kevlar_watch_observe_playlist_navigations_killswitch")&&a.removeEventListener("yt-navigate",_.er(this,this.onYtNavigate_));
a.cancelVideoSkip();a.removeEventListener("yt-playlist-data-updated",_.er(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.x("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.go(this.hostElement,"yt-autonav-pause-player",!1);a=_.bo();_.x("kevlar_exit_fullscreen_leaving_watch")&&a&&_.co(a)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(a){this.player&&this.player.updateVideoData({rvs:a.rvs})},
getPageContents:function(a){return a&&a.contents&&a.contents.twoColumnWatchNextResults&&a.contents.twoColumnWatchNextResults.results&&a.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(a){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",a)},
onRetrieveLocation_:function(a,b){b.hasComments?b.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):b.locationRetrieved("/related_ajax",void 0);a.stopPropagation()},
onSubscriptionChanged_:function(a,b){this.player&&(b?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.W6c("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.E(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.E(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(a){this.player=a;this.setPlayerState(a.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.x("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.x("kevlar_unified_player")||_.x("kevlar_player_new_bootstrap_adoption"))&&_.cw()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(a,b){b=b===void 0?!0:b;_.bo()&&_.x("external_fullscreen")&&_.co(document.documentElement);this.theaterRequested_=a;b&&_.mj("wide",a?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.x("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.ho(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.go(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(a){_.El(a,typeof this.player),this.player&&_.El(a,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var a;((a=this.player)==null?0:a.isFullscreen())?this.player.toggleFullscreen():_.ho(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(a,b){return this.loading?b:!!Object.keys(a).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(a){if(a){a=_.h(a);for(var b=a.next();!b.done;b=a.next())b=b.value,b.youThereRenderer&&_.Zld(this.youThereManager_,b.youThereRenderer)}},
setPlaylistData_:function(a){return a||{}},
userEngagementConfigDataChanged_:function(a){if(a)if(a.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var b=this.youThereManager_;_.$k()<a.lowEngagementThresholdMs||_.cmd(b,!0)}else a.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.ho(this.hostElement,"yt-autonav-pause-user-engagement",[a])},
isPlayerUnavailable_:function(a,b,c){return!!a&&!this.isVideoPlayable_(a,c)&&!b},
getPlayerOverlays_:function(a){return(a==null?void 0:a.playerOverlays)||null},
isVideoPlayable_:function(a,b){if(!a)return!1;var c=a.status==="OK"||a.status==="LIVE_STREAM_OFFLINE",d=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",a)||this.get("errorScreen.ypcTrailerRenderer",a);a=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",a);var e;b=b==null?void 0:(e=b.playerOverlayRenderer)==null?void 0:e.gatedActionsOverlayRenderer;return!!c||!!d||!!a||!!b},
hasWatchNextResponseErrorRenderer:function(a){var b=this.getPageContents(a),c,d,e,g,k;return!(a==null?0:(c=a.contents)==null?0:(d=c.twoColumnWatchNextResults)==null?0:d.secondaryResults)&&!!((e=b[0])==null?0:(g=e.itemSectionRenderer)==null?0:(k=g.contents[0])==null?0:k.backgroundPromoRenderer)},
isLiveStreamOffline_:function(a){return a?a.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(a,b,c){var d=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",b),e=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];e=_.x("web_no_skip_video_on_verification_checks")?(a==null?void 0:a.status)&&e.includes(a.status):a&&a.status==="AGE_CHECK_REQUIRED";var g=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",a);g==void 0&&(g=!0);!c||this.isVideoPlayable_(a,this.getPlayerOverlays_(b))||
d||e||!g||_.v().resolve(_.QF).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.Pld()},
onPlayerFeedbackStartRequest_:function(a){_.ho(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:a}])},
onPlayerFeedbackArticleRequest_:function(a){_.ho(this.hostElement,"yt-help-dialog-requested",[a])},
onPlayerYpcContentRequest_:function(){var a,b,c,d,e,g,k,m,n=((a=this.data)==null?NaN:(b=a.contents)==null?NaN:(c=b.twoColumnWatchNextResults)==null?NaN:(d=c.secondaryResults)==null?NaN:(e=d.secondaryResults)==null?NaN:(g=e.offerModule)==null?NaN:(k=g.tvfilmOfferModuleRenderer)==null?NaN:(m=k.actionButtons)==null?NaN:m.length)-1;a=[".offerButton.buttonRenderer.",".actionButtons."+(n>=0?n:0)+".buttonRenderer."];b=_.h(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(c=b.next();!c.done;c=b.next())for(c=c.value,d=_.h(a),e=d.next();!e.done;e=d.next())if(e="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+c+e.value,e=this.get(e+"navigationEndpoint",this.data)||this.get(e+"serviceEndpoint",this.data)||this.get(e+"command",this.data)){_.is(e,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(a){_.go(this.hostElement,"yt-autonav-pause-player",a)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(a){a()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(a){switch(a){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(a){switch(a){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.go(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(a)},
setPlayerState:function(a){_.Yp().dispatch(_.GJb(a))},
onPlayerSubscribe_:function(a){_.ho(this.hostElement,"yt-player-subscribe",[a])},
onPlayerUnsubscribe_:function(a){_.ho(this.hostElement,"yt-player-unsubscribe",[a])},
onPlayerAdYtShowToast_:function(a){_.ho(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:a.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(a){if(a)return a},
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(a){return!_.x("web_watch_move_summary_to_sd")&&!!a},
computeWatchMetadataRefresh:function(){return _.x("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.x("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var a,b,c,d;this.watchNextSecondaryResults=(a=this.data)==null?void 0:(b=a.contents)==null?void 0:(c=b.twoColumnWatchNextResults)==null?void 0:(d=c.secondaryResults)==null?void 0:d.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.x("swatcheroo_pbs_load_grid")&&!_.x("swatcheroo_provide_all_data_on_scheduled_job")){_.zk.cancelJob(this.setRichGridJobId_);var a,b,c,d,e,g,k;this.setRichGridRendererData((a=this.data)==null?void 0:(b=a.contents)==null?void 0:(c=b.twoColumnWatchNextResults)==null?void 0:(d=c.secondaryResults)==null?void 0:(e=d.secondaryResults)==null?void 0:(g=e.results)==null?void 0:(k=g[0])==null?
void 0:k.richGridRenderer)}},
setRichGridRendererData:function(a){this.richGridRendererData=a},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var a,b=(a=this.data)==null?void 0:a.engagementPanels;if(b==null?0:b.length){a=null;b=_.h(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=void 0;if(((d=c.engagementPanelSectionListRenderer)==null?void 0:d.targetId)==="engagement-panel-structured-description"){a=c;break}}var e,g,k;a=(e=a)==null?void 0:(g=e.engagementPanelSectionListRenderer)==null?void 0:(k=g.content)==null?void 0:k.structuredDescriptionContentRenderer;if(a==null?0:a.items){e=
[];g=_.h(a.items);for(k=g.next();!k.done;k=g.next()){k=k.value;if(!_.x("sd_horizontal_list_show_nav_killswitch")){var m=d=c=b=a=void 0,n=void 0,r=(a=k.horizontalCardListRenderer)==null?void 0:(b=a.header)==null?void 0:(c=b.richListHeaderRenderer)==null?void 0:(d=c.navigationButton)==null?void 0:(m=d.buttonRenderer)==null?void 0:(n=m.command)==null?void 0:n.commandExecutorCommand;r&&r.commands&&(r.commands=r.commands.filter(function(t){return!_.y(t,_.$cd)}))}k.expandableVideoDescriptionBodyRenderer||
k.videoDescriptionHeaderRenderer||e.push(k)}return{items:e}}}},
constructWarning_:function(a){return{text:_.Up(a),type:"WARNING"}},
isPlaShelfEnabled_:function(a){if((this.get("adPlacements",a)||[]).length)return!0;a=this.get("playerAds",a)||[];return!(!a.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",a[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var a=this;_.go(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.x("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var b=this.getScrollTop()>0;this.gestures_&&(b?this.gestures_.detach():this.gestures_.attach());b!==this.showFullerscreenEdu_&&_.x("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=b,_.au(this).getPlayerPromise().then(function(c){c.updateFullerscreenEduButtonVisibility(a.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.go(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var a=this;this.commentsReady=!1;_.zk.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.ul(_.zk,function(){a.setComments_()},1E3)},
setComments_:function(){if(!_.x("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.Jo("cmi");_.zk.cancelJob(this.setCommentsJobId_);var a=this.getPageContents(this.data);if(a&&a.length){a=_.h(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,this.get("itemSectionRenderer.sectionIdentifier",b)==="comment-item-section"){this.comments=b.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.go(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.x("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.x("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.Jo("cmc")},
doRemoveComments_:function(){this.comments={};_.x("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.zk.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.zk.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(a,b){var c=_.y(b.endpoint,_.Vn);c&&(!(b=this.get("data.currentVideoEndpoint.watchEndpoint"))||c.videoId!==b.videoId||c.playlistId&&c.playlistId!==b.playlistId||_.x("kevlar_watch_timestamp_seek_playlist_index_comparison")&&c.index!==void 0&&c.index!==b.index||typeof c.startTimeSeconds!=="number"||(a.stopPropagation(),this.setScrollTop(0),_.au(this).getPlayerPromise().then(function(d){var e=c.startTimeSeconds;d.seekTo(e);d.wakeUpControls();e<d.getDuration()&&d.playVideo()})))},
updatePlayerStartTime_:function(){var a=_.Fld();"t"in a&&(a=_.Old(a.t),this.player.seekTo(a,!0))},
updateTitleFromWatchNext:function(a){a=this.getPageContents(a);var b,c;(a=_.Vp(a==null?void 0:(b=a[0])==null?void 0:(c=b.videoPrimaryInfoRenderer)==null?void 0:c.title))&&_.go(this.hostElement,"yt-update-title",a)},
updateTitle_:function(a){a=this.get("videoDetails.title",a)||"";_.go(this.hostElement,"yt-update-title",a)},
syncWithRemoteVideo_:function(a,b,c){if(this.active&&this.player){var d=this.player.getVideoData();if(d.video_id===c&&(c=d.list,_.x("polymer_enable_mdx_queue")&&c&&c.startsWith("RQ")&&(c=void 0),d.video_id!==a||c!=b)){var e;_.x("kevlar_player_watch_endpoint_navigation")?e=_.sUa(_.Hld(a,b)):e=this.buildWatchEndpoint_(a,b);_.go(this.hostElement,"yt-navigate",{endpoint:e,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(a,b,c){return _.cp(a,b,c)},
initDclkstatus_:function(){_.Kld()},
attachWatchPageSkeleton_:function(){var a=document.querySelector("#watch-page-skeleton");if(a){var b=a.querySelector("#primary-info"),c=a.querySelector("#secondary-info"),d=a.querySelector("#related");b&&_.E(this.hostElement).querySelector("#info-skeleton").appendChild(b);c&&_.E(this.hostElement).querySelector("#meta-skeleton").appendChild(c);d&&(_.E(this.hostElement).querySelector("#related-skeleton").appendChild(d),this.watchNextSkeletonEl_=d);_.mg(a)}},
handlePlayerUpdated_:function(){_.au(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(a,b){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof b!=="undefined"){var c=this.watchNextSkeletonEl_.children,d=a&&a.indexSplices.length?a.indexSplices[0].index:0;a=Math.min(this.watchNextShownItems.length,c.length);b||(d=0,a=c.length);for(b=d;b<a;b++)c[b].classList.add("hidden")}},
onPlayerFullscreenChange_:function(a){_.x("external_fullscreen")||_.ho(this.hostElement,"yt-player-fullscreen",[a.fullscreen])},
onFullscreenChange_:function(a){this.fullscreen=a;this.gestures_&&this.gestures_.update(this.fullscreen);var b=_.au(this);b.getPlayerPromise().then(function(c){c.setFauxFullscreen(!!_.bo())});
this.updateFullBleedElementLocations();a&&(b.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(a,b){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!b},
computeIsDonationShelfCollapsed_:function(a){return a},
computeShouldShowMerchShelf:function(a,b){return b&&!!a},
computeResponseHasComments:function(a){var b,c,d,e,g;return!!(a==null?0:(b=a.contents)==null?0:(c=b.twoColumnWatchNextResults)==null?0:(d=c.results)==null?0:(e=d.results)==null?0:(g=e.contents)==null?0:g.some(function(k){var m;return(k==null?void 0:(m=k.itemSectionRenderer)==null?void 0:m.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(a,b,c,d){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&d?!1:!!a&&!!Object.keys(a).length&&!b},
identity:_.Ma,onWindowResized_:function(a){this.windowSize_=a;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.x("kevlar_watch_js_panel_height")&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate(),this.scheduleSidebarSizeUpdate_()));_.x("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(a){var b=this;a&&a.type!=="dataloaded"&&a.type!=="dataupdated"||_.au(this).getPlayerPromise().then(function(c){var d=c.getPlayerState();d!==5&&d!==0&&(c=1/c.getVideoAspectRatio(),b.videoHeightToWidthRatio_!==c&&(b.videoHeightToWidthRatio_=c))})},
schedulePlayerSizeUpdate_:function(a){var b=this,c=_.x("kevlar_watch_while_v2")||_.x("web_watch_pip"),d=function(){if(b.watchMetadata){var e,g;(g=(e=b.watchMetadata).resize)==null||g.call(e)}_.au(b).getPlayerPromise().then(function(k){if(_.x("kevlar_set_internal_player_size")){if(!c||!b.isMiniplayerActive()){var m=b.calculateCurrentPlayerSize_();k.setInternalSize(m.width,m.height)}}else k.setSize(NaN,NaN);_.x("kevlar_watch_while")&&b.updateWatchWhileScrollThreshold_()})};
a?d():_.Du(_.zk,d)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(a){this.set("data.survey",a.detail)},
onYtShowSurveyCommand_:function(a){this.set("data.survey",_.y(a,_.Vld).survey)},
onDownloadedVideoDeleted:function(a){var b=this,c,d;return _.l(function(e){if(e.nextAddress==1){if(!b.active||(c=b.playerData)==null||!c.offlineState||b.videoId!==a)return e.return();(d=b.player)==null||d.stopVideo();_.uF().navigatingAwayFromWatchDeletedVideo=!0;_.is(_.h2a,b.hostElement);return _.p(e,_.uF().navigationFinishPromise,2)}_.uF().navigatingAwayFromWatchDeletedVideo=!1;_.se(e)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var a;this.theater?a=_.Qw(.5625*this.windowSize_.width,480,this.windowSize_.height-185):a=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==a&&(this.watchWhileScrollThreshold_=a,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var a=_.E(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&a){var b=this.windowSize_.height>=624,c=this.active?this.getScrollTop():0;!a.active&&b&&c>=this.watchWhileScrollThreshold_?(a.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):a.active&&(!b||c<this.watchWhileScrollThreshold_&&!_.bo())&&(a.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var a=_.E(this.hostElement).querySelector("#secondary-inner");if(a){var b=_.E(this.hostElement).querySelector("#below"),c=_.E(this.hostElement).querySelector("#secondary"),d=_.E(this.hostElement).querySelector("#comments");d&&c&&b&&(this.defaultTwoColumnLayout?(a.appendChild(d),c.appendChild(a)):(b.appendChild(d),_.L8(b,a)))}}},
isTwoColumnsChanged_:function(a,b){if(a!==!0||b!==void 0)if(this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(a=_.E(this.hostElement).querySelector("#secondary-inner"))){b=_.E(this.hostElement).querySelector("#below");var c=_.E(this.hostElement).querySelector("#secondary"),d=_.E(this.hostElement).querySelector("#comments");d&&c&&b&&(this.isTwoColumns_?(a.appendChild(d),c.appendChild(a)):(b.appendChild(d),_.L8(b,a)))}}else{a=!_.x("live_chat_over_engagement_panels");b=_.E(this.hostElement).querySelector("#chat-container");
c=_.E(this.hostElement).querySelector("#panels");var e=_.E(this.hostElement).querySelector("#alerts");d=_.E(this.hostElement).querySelector("#playlist");var g=_.E(this.hostElement).querySelector("#related"),k=_.E(this.hostElement).querySelector("#donation-shelf"),m=_.E(this.hostElement).querySelector("#comments");this.isTwoColumns_?(e=_.E(this.hostElement).querySelector("#secondary-inner"),a&&e.appendChild(c),e.appendChild(d),_.x("web_watch_theater_chat")||e.appendChild(b),a||e.appendChild(c),e.appendChild(k),
e.appendChild(g)):(a&&_.Sy(c,e),_.Sy(d,e),_.x("web_watch_theater_chat")||_.Sy(b,e),a||_.Sy(c,e),_.Sy(k,e),m&&_.Sy(g,m));_.x("kevlar_watch_js_panel_height")&&this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.x("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&_.x("web_watch_theater_chat")){var a=_.E(this.hostElement).querySelector("#chat-container"),b=this.theater&&!this.fullscreen||_.x("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&b?_.x("web_watch_theater_chat_beside_player")?(b=_.E(this.hostElement).querySelector("#panels-full-bleed-container"),(a==null?void 0:a.parentElement)!==b&&b.append(a),this.panelsBesidePlayer=!0):
_.x("web_watch_theater_fixed_chat")&&(b=_.E(this.hostElement).querySelector("#columns"),(a==null?void 0:a.parentElement)!==b&&b.append(a),this.fixedPanels=!0):(_.x("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.x("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),b=_.E(this.hostElement).querySelector("#playlist"),a&&b?_.Ty(a,b):_.Dl(new _.qj("Missing element when updating chat location",{"chatContainer defined":!!a,"playlist defined":!!b})));this.updatePageMediaQueries();
this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(a,b){return _.x("sw_metadata_vis_toggle_ks")?!0:!!a||!!b},
computeForceDarkPanelTheme:function(a){return _.x("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&a:!1},
safeUpdateStyles:function(a){try{_.dr(this.hostElement,a)}catch(b){_.Dl(b)}},
videoHeightToWidthRatioChanged_:function(a,b){b&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.x("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(a){this.videoHeightToWidthRatio_=1/a},
computeIsVerticalVideo_:function(a){return a>=1},
computeIsFourThreeToSixteenNineVideo_:function(a){return a<=.7501&&a>=.5624},
computeIsExtraWideVideo_:function(a){return a<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.au(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.au(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.dmd(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(a){var b=_.sG(a)||0;_.rG(a,b+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var a=_.sG("yt-fullerscreen-edu-button-click-count")||0,b=_.sG("yt-fullerscreen-edu-button-shown-count")||0,c=_.$i("external_fullscreen_button_shown_threshold"),d=a>=_.$i("external_fullscreen_button_click_threshold")||b>=c;_.au(this).getPlayerPromise().then(function(e){e.updateFullerscreenEduButtonSubtleModeState(d)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(a,b){return b},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.v().resolve(_.QF).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var a=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.zk.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.zk.addLowPriorityJob(function(){a.fullHeightPanelPositionUpdateJobId=0;var b=_.E(a.hostElement).querySelector("#secondary"),c=_.E(a.hostElement).querySelector("#fixed-secondary");b=b.getBoundingClientRect();var d=b.width;a.swatcherooSqueezeback&&
(d+=_.M8);if(a.swatcherooSqueezeback){var e=_.E(a.hostElement).querySelector("#squeezeback-constraining-container");e.style.width=d+"px";e.style.flex="0 0 "+d+"px"}c.style.width=d+"px";c.style.left=b.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var a=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.zk.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.zk.addLowPriorityJob(function(){a.panelMaxHeightUpdateJob_=0;var b;!a.isTwoColumns_||a.theater||a.fullscreen?b=460:b=a.calculateNormalPlayerSize_().height;var c=b+"px";_.x("live_chat_taller_height")&&!a.theater&&(c="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.x("live_chat_medium_height")&&!a.theater&&(c="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.x("live_chat_scaled_height")&&!a.theater&&(c="calc(100vh - var(--ytd-toolbar-height) - 238px)");a.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":b+"px","--ytd-watch-flexy-chat-max-height":c,"--ytd-watch-flexy-structured-description-max-height":b+"px","--ytd-watch-flexy-comments-panel-max-height":b+"px","--ytd-comments-engagement-panel-content-height":b+"px"})}))},
scheduleSidebarSizeUpdate_:function(){var a=this;(this.is==="ytd-watch-grid"||this.is==="ytd-watch-flexy"&&_.x("web_watch_flexy_adjust_sidebar_width"))&&!_.x("swatchie_sidebar_killswitch")&&(this.scheduleSidebarSizeUpdateJobId_&&_.zk.cancelJob(this.scheduleSidebarSizeUpdateJobId_),this.scheduleSidebarSizeUpdateJobId_=_.zk.addLowPriorityJob(function(){a.panelMaxHeightUpdateJob_=0;if(a.isTwoColumns_){var b=_.Mld(a.windowSize_,a.calculateNormalPlayerSize_().width);b!==a.currentSidebarWidth&&(a.currentSidebarWidth=
b,a.safeUpdateStyles({"--ytd-watch-flexy-sidebar-width":b+"px"}))}}))},
onYtShowEngagementPanelScrimAction_:function(a){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",a)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.no(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(a){var b=_.E(this.hostElement).querySelector("#engagement-panel-scrim");a?b.addEventListener("tap",_.er(this,this.onEngagementPanelScrimClick_)):b.removeEventListener("tap",_.er(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(a){if(this.hostElement.contains(a)&&!this.scrollToAnimation_.isAnimating()){var b=a.offsetTop-24;a=a.offsetTop+a.offsetHeight+24;var c=this.getPageScrollingElement(),d=this.getScrollTop(),e=d+c.clientHeight-56;if(b<d+56)b-=56;else if(a>e)b=a-c.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,b),500)}},
onYtSignalActionScrollToComments:function(){var a=this.hostElement.querySelector("#comments");if(a&&!this.scrollToAnimation_.isAnimating()){a=a.offsetTop-56-24;if(_.x("kevlar_comment_teaser_scroll_to_midpoint")&&(a-=_.pf().height/3,a<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,a),500)}},
onYtEngagementPanelVisibleChanged:function(a,b,c){this.active&&this.trackEngagementPanelVisibility&&!_.ykd.includes(c)&&(b==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&(this.visiblePanelIdentifiers_.add(c),this.swatcherooBinaryLayout&&(this.onSetPlaylistCollapsed(!0),_.ko(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]))),b!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&b!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(c),
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(a){return a?"":"watch-active-metadata"},
computeNewMetadataClass:function(a){return a?"watch-active-metadata":""},
computeFullBleedPlayer:function(a,b){return a||b},
computeDefaultLayout:function(a){return!a},
computeDefaultTwoColumnLayout:function(a,b){return!a&&b},
updatePanelsLocation:function(){if(_.x("web_watch_enable_fs_squeezeback_panels")){var a=_.E(this.hostElement).querySelector("#below"),b=_.E(this.hostElement).querySelector("#panels"),c=_.E(this.hostElement).querySelector("#panels-full-bleed-container"),d=_.E(this.hostElement).querySelector("#secondary-inner");this.fullscreen?c.appendChild(b):this.isTwoColumns_?_.L8(d,b):a.appendChild(b)}},
swatcherooUpdatePanelsLocation:function(a,b,c,d,e,g){if(this.is==="ytd-watch-grid"){b=a&&!b;this.swatcherooSplitScroll&&(b?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));c=_.E(this.hostElement).querySelector("#panels");var k=_.E(this.hostElement).querySelector("#playlist"),m=_.E(this.hostElement).querySelector("#fixed-secondary"),n=_.E(this.hostElement).querySelector("#fixed-below"),
r=_.E(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),t=_.E(this.hostElement).querySelector("#chat-container");g&&(a?m.appendChild(c):n.appendChild(c));e?a?m.appendChild(t):n.appendChild(t):_.Ty(t,r);d?a?m.appendChild(k):n.appendChild(k):_.Ty(k,r);this.swatcherooSplitScroll&&(a=_.E(this.hostElement).querySelector("#secondary"),d=_.E(this.hostElement).querySelector("#columns"),e=_.E(this.hostElement).querySelector("#fixed-columns-secondary"),b?e.appendChild(a):
d.appendChild(a))}},
computeMetadataSkinnyMode:function(a,b,c){return this.is!=="ytd-watch-grid"?!1:a?c:b},
computeWatchWhilePanelsActive:function(a,b){return a||b},
computeNoBorderOnChat:function(a){return _.x("web_watch_theater_chat_no_border")&&a},
computeLiveChatPresentAndExpanded:function(a,b){return a&&!b},
computePanelExpanded:function(a,b,c){return a||b||c},
computeSqueezeback:function(a,b){if(_.x("web_watch_enable_fs_squeezeback_panels"))return a&&b},
computeSwatcherooSqueezeback:function(a,b,c){return this.is!=="ytd-watch-grid"||_.x("ww_squeezeback_killswitch")?!1:a&&b&&c},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(a){_.au(this).getPlayerPromise().then(function(b){var c;(c=b.changeMarkerVisibility)==null||c.call(b,_.y(a,_.Q$).isVisible||!1,_.y(a,_.Q$).entityKeys||[],_.y(a,_.Q$).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(a){this.liveChatCollapsed=a.detail;_.Yp().dispatch(_.Tld(a.detail))},
onSetPlaylistCollapsed:function(a){this.is==="ytd-watch-grid"&&(this.playlistPanelExpanded=this.playlist&&!a)},
provideRenderingData:function(a,b){switch(a){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=b;break;case "PRIMARY_INFO":_.x("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=b);this.videoPrimaryInfoRendererValue=b==null?void 0:b.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.x("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=b);this.videoSecondaryInfoRendererValue=b==null?void 0:b.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
b;break;case "CLARIFICATION":this.clarifyBoxValue=b;break;case "LIVE_CHAT":this.conversationBar=b;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=b;break;case "PLAYLIST":this.externalPlaylistData_=b!=null?b:{};break;case "MERCH_SHELF":this.merchShelfValue=b==null?void 0:b.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=b;break;case "OFFER_MODULE":this.offerModule=b;break;case "LIMITED_STATE":this.limitedStateValue=b;break;case "DONATION_SHELF":this.donation=b;break;
case "ALERTS":this.alertsValue=b;break;case "COMMENTS":this.comments=b;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=b;break;case "ENGAGEMENT_PANELS":this.engagementPanels=b;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=b;break;case "RICH_GRID_RENDERER":this.richGridRendererData=b;break;case "EXPANDABLE_METADATA":this.expandableMetadata=b;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=b}},
toggleCinematicsActive:function(a){this.cinematicsActive=a},
isMiniplayerActive:function(){return _.v().resolve(_.Vw).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var Vrc;_.Urc=function(a){return a.shorts.isShortsActive};
_.Wrc=function(a){return a.findIndex(function(b){return Vrc.indexOf(b.tagName)>-1})>-1};
_.Xrc=function(a){return _.gp({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:a}})};
_.Yrc=function(){var a=_.v().resolve(_.kG);_.lsa(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(a.isFullscreenEnabled()?_.co(document.documentElement):_.NBa(document.documentElement))};
Vrc=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.hY=new Map;_.hY.set(32,59972);_.hY.set(27,50765);_.hY.set(70,60102);_.hY.set(76,60221);_.hY.set(77,60222);_.hY.set(74,60223);_.hY.set(84,60224);_.hY.set(38,61941);_.hY.set(40,61942);_.hY.set(73,62521);_.hY.set(67,62522);_.hY.set(80,63390);_.hY.set(78,63397);_.hY.set(75,59972);_.hY.set(188,63385);_.hY.set(190,63384);_.hY.set(36,63387);
_.hY.set(35,63386);_.hY.set(37,63388);_.hY.set(39,63389);_.hY.set(79,63423);_.hY.set(87,63424);_.hY.set(107,63426);_.hY.set(109,63425);_.hY.set(65,63428);_.hY.set(83,63430);_.hY.set(68,63429);_.hY.set(221,63431);_.hY.set(219,63432);_.hY.set(97,63439);_.hY.set(98,63440);_.hY.set(99,63441);_.hY.set(100,63442);_.hY.set(101,63443);_.hY.set(102,63444);_.hY.set(103,63445);_.hY.set(104,63446);_.hY.set(105,63447);_.iY=new Map;_.iY.set(80,63390);_.iY.set(78,63397);_.iY.set(188,63400);_.iY.set(190,63401);
_.iY.set(191,60765);_.iY.set(13,247917);_.jY=new Map;_.kY=new Map;
}catch(e){_._DumpException(e)}
try{
var cmc,fmc,gmc,hmc;_.Zlc=function(a){return a.ui.guideIsVisibleButNotPersistent};
_.$lc=function(a){return a.ui.tabGesturesIsActive};
_.amc=function(){var a=_.aj("service_worker_scope");try{return navigator.serviceWorker.getRegistration(a)}catch(b){return Promise.reject(b)}};
_.bmc=function(a){return!(!a||!a.pushManager)};
cmc=function(){return _.amc().then(_.bmc).catch(function(){return!1})};
_.dmc=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?cmc():Promise.resolve(!1)};
_.emc=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
fmc=function(){var a,b,c;return _.l(function(d){switch(d.nextAddress){case 1:return _.p(d,_.DF.getInstance(),2);case 2:a=d.yieldResult;if(!a){b=void 0;d.jumpTo(3);break}return _.p(d,a.get("lmqf"),4);case 4:b=d.yieldResult;case 3:switch((c=b)||(c="SD"),c){case "HD":return d.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return d.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return d.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return d.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return d.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
gmc=function(a){var b,c,d;return _.l(function(e){if(e.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]){var g=window.localStorage["yt-player-av1-pref"];g=g==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":g==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else g="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(b=a===g)return e.jumpTo(2);d=c=a;return _.p(e,fmc(),3)}e.nextAddress!=2&&(b=d===e.yieldResult);return e.return(b)})};var imc;var jmc=_.ED.IronButtonState,kmc=(0,_.BC)(HTMLElement);
_.qr({_template:function(){if(imc!==void 0)return imc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dropdown-menu--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dropdown_menu.tp.yt.paper.dropdown.menu.css.js--\x3e<tp-yt-paper-menu-button id="menuButton" vertical-align="[[verticalAlign]]" horizontal-align="[[horizontalAlign]]" dynamic-align="[[dynamicAlign]]" vertical-offset="[[_computeMenuVerticalOffset(noLabelFloat, verticalOffset)]]" disabled="[[disabled]]" no-animations="[[noAnimations]]" on-iron-select="_onIronSelect" on-iron-deselect="_onIronDeselect" opened="{{opened}}" close-on-activate="" allow-outside-scroll="[[allowOutsideScroll]]" restore-focus-on-close="[[restoreFocusOnClose]]" expand-sizing-target-for-scrollbars="[[expandSizingTargetForScrollbars]]" class="style-scope tp-yt-paper-dropdown-menu">\n  \n  <div class="dropdown-trigger style-scope tp-yt-paper-dropdown-menu" slot="dropdown-trigger">\n    <tp-yt-paper-ripple class="style-scope tp-yt-paper-dropdown-menu"></tp-yt-paper-ripple>\n    \n    <tp-yt-paper-input id="input" type="text" invalid="[[invalid]]" readonly="" disabled="[[disabled]]" value="[[value]]" placeholder="[[placeholder]]" error-message="[[errorMessage]]" always-float-label="[[alwaysFloatLabel]]" no-label-float="[[noLabelFloat]]" label="[[label]]" input-role="button" input-aria-haspopup="listbox" autocomplete="off" style-target="input" class="style-scope tp-yt-paper-dropdown-menu">\n      \n      \n      \n      \n      <tp-yt-iron-icon icon="paper-dropdown-menu:arrow-drop-down" suffix="" slot="suffix" tabindex="-1" 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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;hmc===void 0&&(hmc=document.createElement("template"));var d=hmc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return imc=a},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[jmc,_.CD,_.FD,_.ID],properties:{selectedItemLabel:{type:String,notify:!0,readOnly:!0},selectedItem:{type:Object,notify:!0,readOnly:!0},value:{type:String,notify:!0},label:{type:String},placeholder:{type:String},errorMessage:{type:String},opened:{type:Boolean,notify:!0,value:!1,observer:"_openedChanged"},allowOutsideScroll:{type:Boolean,value:!1},noLabelFloat:{type:Boolean,value:!1,reflectToAttribute:!0},alwaysFloatLabel:{type:Boolean,
value:!1},noAnimations:{type:Boolean,value:!1},horizontalAlign:{type:String,value:"right"},verticalAlign:{type:String,value:"top"},verticalOffset:Number,dynamicAlign:{type:Boolean},restoreFocusOnClose:{type:Boolean,value:!0},expandSizingTargetForScrollbars:{type:Boolean,value:!1}},listeners:{tap:"_onTap"},keyBindings:{"up down":"open",esc:"close"},observers:["_selectedItemChanged(selectedItem)"],_attachDom:function(a){var b=(0,_.qm)(this);b.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:a});
b.shadowRoot.appendChild(a);return kmc.prototype._attachDom.call(this,a)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var a=this.contentElement;a&&a.selectedItem&&this._setSelectedItem(a.selectedItem)},
get contentElement(){for(var a=_.xn(this.$.content).getDistributedNodes(),b=0,c=a.length;b<c;b++)if(a[b].nodeType===Node.ELEMENT_NODE)return a[b]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(a){this._setSelectedItem(a.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(a){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a)===this&&this.open()},
_selectedItemChanged:function(a){var b="";a?b=a.label||a.getAttribute("label")||a.textContent.trim():b="";this.value=b;this._setSelectedItemLabel(b)},
_computeMenuVerticalOffset:function(a,b){return b?b:a?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var a=this.opened?"true":"false",b=this.contentElement;b&&b.setAttribute("aria-expanded",a)}});_.SW=new _.X("navigateAction");var lmc=new _.X("formRenderer");var mmc=function(){var a=_.ir.apply(this,arguments)||this;a.showInput=!1;return a};
_.z(mmc,_.ir);_.f=mmc.prototype;_.f.detached=function(){this.showInput&&window.removeEventListener("click",_.er(this,this.closeOnOutsideClick_))};
_.f.stopPropagation_=function(a){this.showInput&&a.stopPropagation()};
_.f.closeOnOutsideClick_=function(a){this.closeOnOutsideClickCondition(a)&&(this.showInput=!1,window.removeEventListener("click",_.er(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.f.closeOnOutsideClickCondition=function(){return!0};
_.f.closeOnOutsideClickHandler=function(){};
_.f.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.er(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.f.openOnClickHandler=function(){};
_.f.showInputChanged=function(){};
_.f.setShowInput=function(a){this.showInput=a};
var TW=mmc;TW.prototype.setShowInput=TW.prototype.setShowInput;TW.prototype.showInputChanged=TW.prototype.showInputChanged;TW.prototype.openOnClickHandler=TW.prototype.openOnClickHandler;TW.prototype.openOnClick_=TW.prototype.openOnClick_;TW.prototype.closeOnOutsideClickHandler=TW.prototype.closeOnOutsideClickHandler;TW.prototype.closeOnOutsideClickCondition=TW.prototype.closeOnOutsideClickCondition;TW.prototype.closeOnOutsideClick_=TW.prototype.closeOnOutsideClick_;
TW.prototype.stopPropagation_=TW.prototype.stopPropagation_;_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],TW.prototype,"showInput",void 0);_.U([_.M("click"),_.M("keydown"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],TW.prototype,"stopPropagation_",null);_.U([_.N("showInput"),_.W("design:type",Function),_.W("design:paramtypes",[Boolean]),_.W("design:returntype")],TW.prototype,"showInputChanged",null);TW=_.U([_.jr()],TW);_.nmc=[TW.prototype];var omc;var pmc;var qmc=function(){return _.P.apply(this,arguments)||this};
_.z(qmc,_.P);_.f=qmc.prototype;_.f.computePreselectedOption=function(a,b){return b===this.itemSelected_?a:void 0};
_.f.dataChanged_=function(){var a=this;this.preselectedSubreason=this.itemSelected_=-1;var b;(b=this.data)!=null&&b.key&&_.Tm(this,function(){var c,d=Number((c=a.data)==null?void 0:c.key);!Number.isNaN(d)&&(a.itemSelected_=d,c=(c=(a.data.items||[])[d])&&c.optionSelectableItemRenderer&&c.optionSelectableItemRenderer.preselectedIndex)&&(a.preselectedSubreason=c)})};
_.f.isSubReasonHidden_=function(a,b){return a!=b};
_.f.onTopItemSelected_=function(a,b){for(var c=_.E(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),d=0,e=c.length;d<e;d++)c[d].select(0);_.ho(this.hostElement,"yt-report-form-update",[b.item.value]);a.stopPropagation()};
_.f.onItemSelected_=function(a,b){_.ho(this.hostElement,"yt-report-form-update",[b.item.value]);a.stopPropagation()};
_.f.getItem_=function(a){return a.serviceItem?a.serviceItem:a.navigationItem?a.navigationItem:a.optionSelectableItemRenderer?a.optionSelectableItemRenderer:null};
_.f.computeText_=function(a){return(a=this.getItem_(a))?this.ytRendererBehavior.getSimpleString(a.text):null};
_.f.validate=function(){return this.itemSelected_!==-1};
_.f.computeAriaLabel_=function(a){var b=_.Vp(a.text);(a=a.accessibility&&a.accessibility.accessibilityData&&a.accessibility.accessibilityData.label)&&(b+=". "+a);return b};
_.f.computeItemSelected_=function(a){return a};
_.f.preventSelection_=function(a){a.stopPropagation();this.tooltipTapped=!0};
_.f.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.f.updateItemSelectedFromBinding=function(a){this.itemSelected_=a.detail.value};
_.f.save=function(){var a;this.validate()&&(a=this.data)!=null&&a.items&&(a=this.data.items[this.itemSelected_],a!=null&&a.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(a.optionSelectableItemRenderer.submitEndpoint)||_.mo(this.hostElement,[a.optionSelectableItemRenderer.submitEndpoint])))};
var UW=qmc;UW.prototype.onPaperRippleTransitionEnd_=UW.prototype.onPaperRippleTransitionEnd_;UW.prototype.dataChanged_=UW.prototype.dataChanged_;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],UW.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],UW.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],UW.prototype,"data",void 0);_.U([_.O({value:-1}),_.W("design:type",Number)],UW.prototype,"itemSelected_",void 0);
_.U([_.O({computed:"computeItemSelected_(itemSelected_)"}),_.W("design:type",Number)],UW.prototype,"value",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],UW.prototype,"restoreFocusOnClose",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],UW.prototype,"tooltipTapped",void 0);_.U([_.O({value:-1}),_.W("design:type",Number)],UW.prototype,"preselectedSubreason",void 0);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],UW.prototype,"dataChanged_",null);_.U([_.M("transitionend"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],UW.prototype,"onPaperRippleTransitionEnd_",null);UW=_.U([_.ur({is:"yt-options-renderer",disableElementRegistration:!0})],UW);
_.S(UW,"yt-options-renderer",function(){if(pmc===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;omc===void 0&&(omc=document.createElement("template"));var d=omc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);pmc=a}a=pmc;return a},{mode:2});var rmc;var smc;var tmc;var umc;var vmc;var wmc;var VW=function(){return _.P.apply(this,arguments)||this};
_.z(VW,_.P);VW.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
VW.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
VW.prototype.onTap=function(a){if(this.hostElement.classList.contains("selected")||_.lo(this.hostElement,"yt-share-panel-can-select-contact-action"))a&&a.detail&&(a.detail.x||a.detail.y)&&_.E(this.hostElement).querySelector("#target").blur(),(a=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),a={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:a?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.ho(this.hostElement,"yt-share-panel-select-contact-action",[a])};
var WW=VW;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],WW.prototype,"ytRendererBehavior",void 0);_.U([_.O({observer:"onDataChanged"}),_.W("design:type",Object)],WW.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.W("design:type",String)],WW.prototype,"componentTitle",void 0);_.U([_.gr("#thumbnail"),_.W("design:type",Object)],WW.prototype,"thumbnail",void 0);
WW=_.U([_.ur({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],WW);
_.S(WW,"yt-enrolled-contact-renderer",function(){if(wmc===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;vmc===void 0&&(vmc=document.createElement("template"));var d=vmc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);wmc=a}a=wmc;return a},{mode:2});var xmc;var ymc;var XW=function(){return _.P.apply(this,arguments)||this};
_.z(XW,_.P);XW.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
XW.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
XW.prototype.onTap=function(a){if(this.hostElement.classList.contains("selected")||_.lo(this.hostElement,"yt-share-panel-can-select-contact-action"))a&&a.detail&&(a.detail.x||a.detail.y)&&_.E(this.hostElement).querySelector("#target").blur(),(a=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),a={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:a?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.ho(this.hostElement,"yt-share-panel-select-contact-action",[a])};
var YW=XW;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],YW.prototype,"ytRendererBehavior",void 0);_.U([_.O({observer:"onDataChanged"}),_.W("design:type",Object)],YW.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.W("design:type",String)],YW.prototype,"componentTitle",void 0);_.U([_.gr("#thumbnail"),_.W("design:type",Object)],YW.prototype,"thumbnail",void 0);
YW=_.U([_.ur({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],YW);
_.S(YW,"yt-suggested-contact-renderer",function(){if(ymc===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;xmc===void 0&&(xmc=document.createElement("template"));var d=xmc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);ymc=a}a=ymc;return a},{mode:2});var ZW=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-share-panel-reset-action":"onReset"};return a};
_.z(ZW,_.P);ZW.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"}}}}}};
ZW.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.ho(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
ZW.prototype.onReset=function(){for(var a=_.E(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),b=a.length-1;b>=0;b--)a[b].classList.toggle("selected")};
var $W=ZW;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],$W.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],$W.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],$W.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O({observer:"onDataChanged"}),_.W("design:type",Object)],$W.prototype,"data",void 0);
$W=_.U([_.ur({is:"yt-contact-section-renderer",disableElementRegistration:!0})],$W);
_.S($W,"yt-contact-section-renderer",function(){if(umc===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;tmc===void 0&&(tmc=document.createElement("template"));var d=tmc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);umc=a}a=umc;return a},{mode:2});var zmc=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return a};
_.z(zmc,_.P);_.f=zmc.prototype;_.f.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"}}}};
_.f.onYtRefreshFormCommand=function(a){var b;(a=_.y((b=_.y(a,_.Mzb))==null?void 0:b.formRenderer,lmc))&&this.set("data",a)};
_.f.reset=function(){var a=_.E(this.hostElement).querySelector("#fields").children;a=_.h(a);for(var b=a.next();!b.done;b=a.next())b=b.value,b.reset&&b.reset()};
_.f.getForm=function(){var a={},b=_.E(this.hostElement).querySelector("#fields").children;b=_.h(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;if(!c.validate())return null;a[c.data.key]=c.value}return a};
_.f.submitFormFields=function(){if(this.fields)for(var a=_.h(this.fields),b=a.next();!b.done;b=a.next())b=b.value,b.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?b.save():b.nodeName==="YT-OPTIONS-RENDERER"&&b.save()};
var aX=zmc;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],aX.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],aX.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],aX.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],aX.prototype,"data",void 0);_.U([_.hr("#fields > *"),_.W("design:type",Array)],aX.prototype,"fields",void 0);
aX=_.U([_.ur({is:"yt-form-renderer",disableElementRegistration:!0})],aX);
_.S(aX,"yt-form-renderer",function(){if(smc===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;rmc===void 0&&(rmc=document.createElement("template"));var d=rmc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);smc=a}a=smc;return a},{mode:2});var Amc;var Bmc=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return a};
_.z(Bmc,_.P);Bmc.prototype.onCheckboxChange=function(a){this.data&&(a=(this.checked=_.Qq(a).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.v().resolve(_.Xi).resolveCommand(a,{form:{element:this.hostElement}})};
Bmc.prototype.handleUpdateCheckboxCommand=function(a){(a=_.y(a,_.Zzb))&&this.data&&this.data.id===a.id&&(this.set("data.disabled",a.disabled),this.set("data.title",a.title))};
var bX=Bmc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],bX.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],bX.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],bX.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Boolean)],bX.prototype,"checked",void 0);bX=_.U([_.Q({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],bX);
_.S(bX,"ytd-settings-checkbox-renderer",function(){if(Amc!==void 0)return Amc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Amc=a},{mode:1});var Cmc;var cX=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return a};
_.z(cX,_.P);cX.prototype.dataChanged=function(){var a=this,b;return _.l(function(c){if(c.nextAddress==1)return a.radio.removeAttribute("checked"),!a.data||!a.data.id||a.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.emc()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(b=a.data&&a.data.id)?_.p(c,gmc(a.data.id),4):c.jumpTo(3):(a.set("data.hidden",!0),c.jumpTo(0));c.nextAddress!=3&&(b=c.yieldResult);b&&_.ho(a.hostElement,"yt-select-settings-radio-option",[a.data.id]);_.se(c)})};
cX.prototype.onButtonChanged=function(a){_.Qq(a).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.v().resolve(_.Xi).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.ho(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
cX.prototype.onSelectOption=function(a){this.data&&this.data.id&&(this.data.id===a?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
var dX=cX;dX.prototype.dataChanged=dX.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],dX.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],dX.prototype,"ytActionHandlerBehavior",void 0);_.U([_.gr("#radio"),_.W("design:type",Object)],dX.prototype,"radio",void 0);_.U([_.O(),_.W("design:type",Object)],dX.prototype,"data",void 0);
_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype",Promise)],dX.prototype,"dataChanged",null);dX=_.U([_.Q({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],dX);
_.S(dX,"ytd-settings-radio-option-renderer",function(){if(Cmc!==void 0)return Cmc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Cmc=a},{mode:1});var Dmc;var eX=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return a};
_.z(eX,_.P);
eX.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"}}}};
eX.prototype.handleUpdateTextCommand=function(a){(a=_.y(a,_.$zb))&&this.data&&this.data.id===a.id&&this.set("data",a)};
eX.prototype.handleUpdateConnectedAppRendererCommand=function(a){if(_.y(a,_.cAb)&&this.data){var b,c;if(a=(b=_.y(a,_.cAb))==null?void 0:(c=b.newConnectedAppRenderer)==null?void 0:c.connectedAppRenderer)this.data=a}};
eX.prototype.computeConnectedAppStyle=function(a){return a.style?a.style.toLowerCase().replace(/_/g,"-"):""};
var fX=eX;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],fX.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],fX.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],fX.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],fX.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.W("design:type",String)],fX.prototype,"connectedAppStyle",void 0);fX=_.U([_.Q({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],fX);
_.S(fX,"ytd-connected-app-renderer",function(){if(Dmc!==void 0)return Dmc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Dmc=a},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.Ag("iuT5Oc");

_.Bg();
}catch(e){_._DumpException(e)}
try{
_.Ag("L3n37");
var vmd=_.lu(115994),wmd=_.lu(115993),xmd=function(a,b,c){var d=this;var e=c.dragDownAction;this.layer=0;this.JSC$20225_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return d.dragDownAction()}}}};
this.JSC$20225_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return d.dragDownAction()}}}};
this.fullscreen=!1;var g=_.ms();_.oF(g,vmd,this.layer);_.oF(g,wmd,this.layer);this.dragDownAction=function(){e();_.Pt(g,{visualElement:d.fullscreen?vmd:wmd})};
this.gesture=new _.w6(a,b,this.JSC$20225_watchConfig,"pandown");this.attach()};
xmd.prototype.attach=function(){this.gesture.attach()};
xmd.prototype.detach=function(){this.gesture.detach()};
xmd.prototype.update=function(a){this.fullscreen=a;this.gesture.config=a?this.JSC$20225_watchFullScreenConfig:this.JSC$20225_watchConfig};var ymd={};
ymd.YtdLearningJourneyWatchBehavior=[_.Z.YtRendererBehavior,_.YI.YtPlayerListenerBehavior,_.aH.YtRendererstamperBehavior,_.bH.YtActionHandlerBehavior,_.I6.YtPageBehavior,_.nH.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},offerModule:{type:Object},engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},clarifyBoxValue:{type:Object},
conversationBar:{type:Object},infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},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 _.Gi("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.x("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 _.Gi("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 _.x("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.x("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.x("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},
swatcherooSqueezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"swatcherooSqueezebackChanged",computed:"computeSwatcherooSqueezeback(panelExpanded, fullBleedPlayer, isTwoColumns_)"},richItemMinWidth:{type:Number,value:function(){return _.$i("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.$i("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},showRichGridContinuationButton:{type:Boolean,value:!1,computed:"computeShowRichGridContinuationButton(isTwoColumns_, commentsEntryPointHeaderRenderer)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,
computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},flexyEnableSmallWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.x("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.x("kevlar_watch_flexy_disable_large_window_sizing")}},
hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.x("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.x("web_watch_fullerscreen_deprecation_ui")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.x("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.x("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.x("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.x("kevlar_watch_frame0_loading_state")}},
roundedPlayerMedium:{type:Boolean,reflectToAttribute:!0,value:function(){return _.x("web_watch_rounded_player_medium")}},
roundedPlayerLarge:{type:Boolean,reflectToAttribute:!0,value:function(){return _.x("web_watch_rounded_player_large")||_.x("watch_next_grid_round_player")}},
showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,
value:function(){return _.x("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.x("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.x("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.x("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.x("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.x("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 _.x("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.x("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 _.x("web_thumbnail_to_watch_transition")}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);swatcherooRichGridRendererDataChanged(data);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var a={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:_.LW(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.LW(["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"||_.x("swa_prov_panels_ks")?_.x("web_watch_inject_placeholder_panels")?a.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}:_.x("kevlar_use_engagement_panel_management_component")||
(a["data.engagementPanels"]={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}):(a.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},a.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});
return a},
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 a=this;this.watchController=void 0;this.pageDisposeJobs=[function(){a.showMetadataPlaceholder_()},
function(){_.x("web_watch_dont_clear_comments")||a.clearComments_()},
function(){a.clearPlayerAds_()},
function(){a.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setRichGridJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.is==="ytd-watch-grid"&&(this.visiblePanelIdentifiers_=new Set);this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.x("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.x("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.Wld(function(){return _.au(a)},this.hostElement);
this.pageDisposeJobs.push(function(){a.youThereManager_.reset()});
_.x("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){a.resetFullerscreenEduButtonForNewPlayback_()}));
_.x("kevlar_watch_js_panel_height")&&(this.scheduleSidebarSizeUpdateJobId_=this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.oD;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;_.x("kevlar_watch_metadata_refresh")&&(this.watchMetadata=void 0);_.x("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));_.x("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.er(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(a){a&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:a}),a.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(a){_.x("kevlar_watch_flexy_theater_manager")&&(this.theater=a,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.x("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(a){!_.x("kevlar_watch_while_v2")&&!_.x("web_watch_pip")||a||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(a){this.active!==void 0&&(this.fullscreen=a,_.x("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(a){this.active!==void 0&&(_.go(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.x("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.x("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(a>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(a){this.initCsi_();this.updatePageData_(a)},
updatePageData_:function(a){var b=this;if(a)if(this.data===a){this.onPageLoadWithSameData_();var c;(c=this.watchController)==null||_.N$(c,this.data)}else this.data=a;this.playlist&&_.Ho({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.Jo("nw");this.loading=!1;_.ul(_.zk,function(){b.initDclkstatus_();var d,e=((d=b.player)==null?void 0:d.getVideoData().cpn)||"";_.Gld(function(g,k){_.Rrc(g,k,e)})})},
onPageLoadWithSameData_:function(){_.x("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 a=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!a);this.set("loadingData.playlistLoading",a&&a!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),a=this.watchNextSkeletonEl_.firstElementChild;a;)a.classList.remove("hidden"),a=a.nextElementSibling;if(_.x("kevlar_watch_frame0_loading_state")){var b,c,d;a=(b=this.loadingData)==null?void 0:(c=b.endpoint)==null?void 0:(d=c.watchEndpoint)==null?void 0:d.videoId;var e;a&&(e="https://i.ytimg.com/vi/"+a+"/frame0.jpg");_.E(this.hostElement).querySelector("#player").style.backgroundImage=e?"url("+e+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var a=_.E(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&a&&(a.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var b,c;(c=(b=this.watchMetadata).updateSentimentBarWidth)==
null||c.call(b);var d,e;(e=(d=this.watchMetadata).resize)==null||e.call(d)}_.x("kevlar_watch_frame0_loading_state")&&(_.E(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(a){var b=_.E(this.hostElement).querySelector(a);b?_.eo(b,!1):_.Dl(new _.qj("Overscroll monitor not found for component: ",a))},
removeSplitScrollMouseTrap:function(a){var b=_.E(this.hostElement).querySelector(a);b?_.fo(b):_.Dl(new _.qj("Disposal component for  overscroll monitoring not found: ",a))},
onLoadingChanged_:function(a){a?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(a){var b=this;a?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.zk.addLowPriorityJob(function(){b.onWindowResized_(_.sq(!0))})},
updateTheaterModeState_:function(a){if(!_.x("kevlar_watch_flexy_theater_manager")){a=a||this.fullWindowMode_;if(this.theater!==void 0||a)this.theater=a;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();a&&_.Sbd()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var a=this.theater;_.x("external_fullscreen")&&this.fullscreen&&(a=!0);a=a?_.E(this.hostElement).querySelector("#player-full-bleed-container"):_.E(this.hostElement).querySelector("#player-container-inner");var b=this.getPlayerContainer(),c=_.x("kevlar_watch_while_v2")||_.x("web_watch_pip");b.parentElement!==a&&(c&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.au(this).appendTo(a,b),a.appendChild(_.E(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var a=this;return _.l(function(b){if(b.nextAddress==1)return _.p(b,_.v().resolve(_.Vw).deactivate(),2);a.updatePlayerLocation();_.se(b)})},
updateCinematicsLocation:function(){var a=this.getElement("CINEMATICS");if(a){var b=this.getCinematicsLocationContainer();a.parentElement!==b&&b.appendChild(a);var c;(c=this.watchController)==null||_.Cld(c)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.E(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.E(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(a,b){var c=document.documentElement.hasAttribute("dark"),d=c&&_.x("web_cinematic_theater_mode"),e=c&&_.x("web_cinematic_fullscreen");c=!c&&this.cinematicLightTheme;return a&&d||b&&e||(b||a)&&c},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var a=this,b;(b=this.watchController)==null||_.N$(b,this.data);_.x("kevlar_watch_flexy_comments_manager")||this.initComments_();_.x("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.v().resolve(_.QF).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());if(this.is==="ytd-watch-grid")if(this.liveChatCollapsed=!0,this.visiblePanelIdentifiers_.clear(),
this.engagementPanelExpanded=!1,_.x("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.zk.addLowPriorityJob(function(){_.ko(a.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.x("web_watch_start_chat_in_theater_mode")){var c,d,e;if((c=this.data)==null?0:(d=c.contents)==null?0:(e=d.twoColumnWatchNextResults)==null?0:e.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var g,k;((g=this.data)==null?0:(k=g.contents)==null?0:k.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(a){var b;(b=this.watchController)==null||_.M$(b,this.playerData);a&&a.playabilityStatus&&(b=this.isVideoPlayable_(a.playabilityStatus,this.getPlayerOverlays_(this.data)),a=this.isLiveStreamOffline_(a.playabilityStatus),b&&!a||_.Tm(this,function(){_.Jo("pbu")}));
this.setPlayerAds_();_.ko(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(a){_.Yp().dispatch(_.Tcd(this.active));a?this.activate_():this.deactivate_()},
attached:function(){var a=this;this.watchController=new _.L$(this.hostElement);this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.addSplitScrollMouseTrap("#primary"),this.addSplitScrollMouseTrap("#fixed-secondary"));this.playerData&&_.M$(this.watchController,this.playerData);this.data&&_.N$(this.watchController,this.data);_.x("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var b=_.au(this);_.x("kevlar_disable_prepare_player")||b.preparePlayer();
_.x("kevlar_watch_flexy_playlist_manager")||_.v().resolve(_.QF).setPlayer(b);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();b={"--ytd-watch-flexy-scrollbar-width":_.HW()+"px"};this.is==="ytd-watch-grid"&&(b["--ytd-watch-flexy-sidebar-width"]=_.O8+"px",b["--ytd-watch-flexy-sidebar-min-width"]=_.$i("kevlar_watch_grid_sidebar_min_width",300)+"px",b["--ytd-watch-grid-horizontal-page-margins"]=_.M8+"px",b["--ytd-watch-grid-columns-top-margins"]=_.Idd+"px",b["--ytd-watch-grid-min-player-height-medium"]=
"360px");!_.$i("kv_pl_mx_sz_ks")&&_.$i("kevlar_watch_max_player_width")&&(b["--ytd-watch-flexy-max-player-width-wide-screen"]=_.Odd+"px");_.$i("kevlar_watch_flexy_metadata_height")&&(b["--ytd-watch-flexy-space-below-player"]=_.Pdd+"px");this.safeUpdateStyles(b);_.x("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new xmd(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return a.onPlayerTouchPanDown_()}}));
_.x("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.E(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var a=_.HW(),b=_.N8+a,c=b;this.fixedPanels&&(b+=_.O8);var d=657+a;a=1327+a;_.E(this.hostElement).querySelector("#two-column-query").query="(min-width: "+b+"px)";_.E(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(d+"px), (min-height: 630px) and (min-width: ")+(b+"px) and (max-width: ")+(a+"px)");_.E(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(a+"px)");_.E(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+c+"px)"},
calculateCurrentPlayerSize_:function(){var a=_.E(this.hostElement).querySelector("#miniplayer-bar").firstChild;return a&&a.active||this.theater||_.x("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||!this.active||!this.windowSize_?new _.of(NaN,NaN):_.Nld(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.Nld(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.Tf(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var a=this;this.onWindowResized_(_.sq());_.x("browse_skeleton_removal_on_watch_killswitch")||_.Gi("IS_SHELL_LOAD")&&_.M6c();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var b=_.au(this);b.addEventListener("yt-player-updated",_.er(this,this.onPlayerUpdated_));b.getPlayerPromise().then(function(c){a.playerApiReady_(c)});
_.x("kevlar_watch_flexy_playlist_manager")||(b=_.v().resolve(_.QF),_.x("kevlar_watch_observe_playlist_navigations_killswitch")&&b.addEventListener("yt-navigate",_.er(this,this.onYtNavigate_)),b.setPlaylistComponent(_.E(this.hostElement).querySelector("#playlist")),b.addEventListener("yt-playlist-data-updated",_.er(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.zk.addLowPriorityJob(function(){_.go(a.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.au(this).removeEventListener("yt-player-updated",_.er(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.x("kevlar_watch_flexy_playlist_manager")){var a=_.v().resolve(_.QF);_.x("kevlar_watch_observe_playlist_navigations_killswitch")&&a.removeEventListener("yt-navigate",_.er(this,this.onYtNavigate_));
a.cancelVideoSkip();a.removeEventListener("yt-playlist-data-updated",_.er(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.x("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.go(this.hostElement,"yt-autonav-pause-player",!1);a=_.bo();_.x("kevlar_exit_fullscreen_leaving_watch")&&a&&_.co(a)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(a){this.player&&this.player.updateVideoData({rvs:a.rvs})},
getPageContents:function(a){return a&&a.contents&&a.contents.twoColumnWatchNextResults&&a.contents.twoColumnWatchNextResults.results&&a.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(a){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",a)},
onRetrieveLocation_:function(a,b){b.hasComments?b.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):b.locationRetrieved("/related_ajax",void 0);a.stopPropagation()},
onSubscriptionChanged_:function(a,b){this.player&&(b?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.W6c("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.E(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.E(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(a){this.player=a;this.setPlayerState(a.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.x("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.x("kevlar_unified_player")||_.x("kevlar_player_new_bootstrap_adoption"))&&_.cw()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(a,b){b=b===void 0?!0:b;_.bo()&&_.x("external_fullscreen")&&_.co(document.documentElement);this.theaterRequested_=a;b&&_.mj("wide",a?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.x("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.ho(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.go(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(a){_.El(a,typeof this.player),this.player&&_.El(a,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var a;((a=this.player)==null?0:a.isFullscreen())?this.player.toggleFullscreen():_.ho(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(a,b){return this.loading?b:!!Object.keys(a).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(a){if(a){a=_.h(a);for(var b=a.next();!b.done;b=a.next())b=b.value,b.youThereRenderer&&_.Zld(this.youThereManager_,b.youThereRenderer)}},
setPlaylistData_:function(a){return a||{}},
userEngagementConfigDataChanged_:function(a){if(a)if(a.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var b=this.youThereManager_;_.$k()<a.lowEngagementThresholdMs||_.cmd(b,!0)}else a.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.ho(this.hostElement,"yt-autonav-pause-user-engagement",[a])},
isPlayerUnavailable_:function(a,b,c){return!!a&&!this.isVideoPlayable_(a,c)&&!b},
getPlayerOverlays_:function(a){return(a==null?void 0:a.playerOverlays)||null},
isVideoPlayable_:function(a,b){if(!a)return!1;var c=a.status==="OK"||a.status==="LIVE_STREAM_OFFLINE",d=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",a)||this.get("errorScreen.ypcTrailerRenderer",a);a=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",a);var e;b=b==null?void 0:(e=b.playerOverlayRenderer)==null?void 0:e.gatedActionsOverlayRenderer;return!!c||!!d||!!a||!!b},
hasWatchNextResponseErrorRenderer:function(a){var b=this.getPageContents(a),c,d,e,g,k;return!(a==null?0:(c=a.contents)==null?0:(d=c.twoColumnWatchNextResults)==null?0:d.secondaryResults)&&!!((e=b[0])==null?0:(g=e.itemSectionRenderer)==null?0:(k=g.contents[0])==null?0:k.backgroundPromoRenderer)},
isLiveStreamOffline_:function(a){return a?a.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(a,b,c){var d=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",b),e=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];e=_.x("web_no_skip_video_on_verification_checks")?(a==null?void 0:a.status)&&e.includes(a.status):a&&a.status==="AGE_CHECK_REQUIRED";var g=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",a);g==void 0&&(g=!0);!c||this.isVideoPlayable_(a,this.getPlayerOverlays_(b))||
d||e||!g||_.v().resolve(_.QF).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.Pld()},
onPlayerFeedbackStartRequest_:function(a){_.ho(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:a}])},
onPlayerFeedbackArticleRequest_:function(a){_.ho(this.hostElement,"yt-help-dialog-requested",[a])},
onPlayerYpcContentRequest_:function(){var a,b,c,d,e,g,k,m,n=((a=this.data)==null?NaN:(b=a.contents)==null?NaN:(c=b.twoColumnWatchNextResults)==null?NaN:(d=c.secondaryResults)==null?NaN:(e=d.secondaryResults)==null?NaN:(g=e.offerModule)==null?NaN:(k=g.tvfilmOfferModuleRenderer)==null?NaN:(m=k.actionButtons)==null?NaN:m.length)-1;a=[".offerButton.buttonRenderer.",".actionButtons."+(n>=0?n:0)+".buttonRenderer."];b=_.h(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(c=b.next();!c.done;c=b.next())for(c=c.value,d=_.h(a),e=d.next();!e.done;e=d.next())if(e="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+c+e.value,e=this.get(e+"navigationEndpoint",this.data)||this.get(e+"serviceEndpoint",this.data)||this.get(e+"command",this.data)){_.is(e,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(a){_.go(this.hostElement,"yt-autonav-pause-player",a)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(a){a()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(a){switch(a){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(a){switch(a){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.go(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(a)},
setPlayerState:function(a){_.Yp().dispatch(_.GJb(a))},
onPlayerSubscribe_:function(a){_.ho(this.hostElement,"yt-player-subscribe",[a])},
onPlayerUnsubscribe_:function(a){_.ho(this.hostElement,"yt-player-unsubscribe",[a])},
onPlayerAdYtShowToast_:function(a){_.ho(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:a.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(a){if(a)return a},
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(a){return!_.x("web_watch_move_summary_to_sd")&&!!a},
computeWatchMetadataRefresh:function(){return _.x("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var a,b,c,d;this.watchNextSecondaryResults=(a=this.data)==null?void 0:(b=a.contents)==null?void 0:(c=b.twoColumnWatchNextResults)==null?void 0:(d=c.secondaryResults)==null?void 0:d.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.x("swatcheroo_pbs_load_grid")&&!_.x("swatcheroo_provide_all_data_on_scheduled_job")){_.zk.cancelJob(this.setRichGridJobId_);var a,b,c,d,e,g,k;this.setRichGridRendererData((a=this.data)==null?void 0:(b=a.contents)==null?void 0:(c=b.twoColumnWatchNextResults)==null?void 0:(d=c.secondaryResults)==null?void 0:(e=d.secondaryResults)==null?void 0:(g=e.results)==null?void 0:(k=g[0])==null?
void 0:k.richGridRenderer)}},
setRichGridRendererData:function(a){this.richGridRendererData=a},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var a,b=(a=this.data)==null?void 0:a.engagementPanels;if(b==null?0:b.length){a=null;b=_.h(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=void 0;if(((d=c.engagementPanelSectionListRenderer)==null?void 0:d.targetId)==="engagement-panel-structured-description"){a=c;break}}var e,g,k;a=(e=a)==null?void 0:(g=e.engagementPanelSectionListRenderer)==null?void 0:(k=g.content)==null?void 0:k.structuredDescriptionContentRenderer;if(a==null?0:a.items){e=
[];g=_.h(a.items);for(k=g.next();!k.done;k=g.next()){k=k.value;if(!_.x("sd_horizontal_list_show_nav_killswitch")){var m=d=c=b=a=void 0,n=void 0,r=(a=k.horizontalCardListRenderer)==null?void 0:(b=a.header)==null?void 0:(c=b.richListHeaderRenderer)==null?void 0:(d=c.navigationButton)==null?void 0:(m=d.buttonRenderer)==null?void 0:(n=m.command)==null?void 0:n.commandExecutorCommand;r&&r.commands&&(r.commands=r.commands.filter(function(t){return!_.y(t,_.$cd)}))}k.expandableVideoDescriptionBodyRenderer||
k.videoDescriptionHeaderRenderer||e.push(k)}return{items:e}}}},
constructWarning_:function(a){return{text:_.Up(a),type:"WARNING"}},
isPlaShelfEnabled_:function(a){if((this.get("adPlacements",a)||[]).length)return!0;a=this.get("playerAds",a)||[];return!(!a.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",a[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var a=this;_.go(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.x("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var b=this.getScrollTop()>0;this.gestures_&&(b?this.gestures_.detach():this.gestures_.attach());b!==this.showFullerscreenEdu_&&_.x("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=b,_.au(this).getPlayerPromise().then(function(c){c.updateFullerscreenEduButtonVisibility(a.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.go(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var a=this;this.commentsReady=!1;_.zk.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.ul(_.zk,function(){a.setComments_()},1E3)},
setComments_:function(){if(!_.x("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.Jo("cmi");_.zk.cancelJob(this.setCommentsJobId_);var a=this.getPageContents(this.data);if(a&&a.length){a=_.h(a);for(var b=a.next();!b.done;b=a.next())if(b=b.value,this.get("itemSectionRenderer.sectionIdentifier",b)==="comment-item-section"){this.comments=b.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.go(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.x("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.x("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.Jo("cmc")},
doRemoveComments_:function(){this.comments={};_.x("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.zk.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.zk.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(a,b){var c=_.y(b.endpoint,_.Vn);c&&(!(b=this.get("data.currentVideoEndpoint.watchEndpoint"))||c.videoId!==b.videoId||c.playlistId&&c.playlistId!==b.playlistId||_.x("kevlar_watch_timestamp_seek_playlist_index_comparison")&&c.index!==void 0&&c.index!==b.index||typeof c.startTimeSeconds!=="number"||(a.stopPropagation(),this.setScrollTop(0),_.au(this).getPlayerPromise().then(function(d){var e=c.startTimeSeconds;d.seekTo(e);d.wakeUpControls();e<d.getDuration()&&d.playVideo()})))},
updatePlayerStartTime_:function(){var a=_.Fld();"t"in a&&(a=_.Old(a.t),this.player.seekTo(a,!0))},
updateTitleFromWatchNext:function(a){a=this.getPageContents(a);var b,c;(a=_.Vp(a==null?void 0:(b=a[0])==null?void 0:(c=b.videoPrimaryInfoRenderer)==null?void 0:c.title))&&_.go(this.hostElement,"yt-update-title",a)},
updateTitle_:function(a){a=this.get("videoDetails.title",a)||"";_.go(this.hostElement,"yt-update-title",a)},
syncWithRemoteVideo_:function(a,b,c){if(this.active&&this.player){var d=this.player.getVideoData();if(d.video_id===c&&(c=d.list,_.x("polymer_enable_mdx_queue")&&c&&c.startsWith("RQ")&&(c=void 0),d.video_id!==a||c!=b)){var e;_.x("kevlar_player_watch_endpoint_navigation")?e=_.sUa(_.Hld(a,b)):e=this.buildWatchEndpoint_(a,b);_.go(this.hostElement,"yt-navigate",{endpoint:e,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(a,b,c){return _.cp(a,b,c)},
initDclkstatus_:function(){_.Kld()},
attachWatchPageSkeleton_:function(){var a=document.querySelector("#watch-page-skeleton");if(a){var b=a.querySelector("#primary-info"),c=a.querySelector("#secondary-info"),d=a.querySelector("#related");b&&_.E(this.hostElement).querySelector("#info-skeleton").appendChild(b);c&&_.E(this.hostElement).querySelector("#meta-skeleton").appendChild(c);d&&(_.E(this.hostElement).querySelector("#related-skeleton").appendChild(d),this.watchNextSkeletonEl_=d);_.mg(a)}},
handlePlayerUpdated_:function(){_.au(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(a,b){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof b!=="undefined"){var c=this.watchNextSkeletonEl_.children,d=a&&a.indexSplices.length?a.indexSplices[0].index:0;a=Math.min(this.watchNextShownItems.length,c.length);b||(d=0,a=c.length);for(b=d;b<a;b++)c[b].classList.add("hidden")}},
onPlayerFullscreenChange_:function(a){_.x("external_fullscreen")||_.ho(this.hostElement,"yt-player-fullscreen",[a.fullscreen])},
onFullscreenChange_:function(a){this.fullscreen=a;this.gestures_&&this.gestures_.update(this.fullscreen);var b=_.au(this);b.getPlayerPromise().then(function(c){c.setFauxFullscreen(!!_.bo())});
this.updateFullBleedElementLocations();a&&(b.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(a,b){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!b},
computeIsDonationShelfCollapsed_:function(a){return a},
computeShouldShowMerchShelf:function(a,b){return b&&!!a},
computeResponseHasComments:function(a){var b,c,d,e,g;return!!(a==null?0:(b=a.contents)==null?0:(c=b.twoColumnWatchNextResults)==null?0:(d=c.results)==null?0:(e=d.results)==null?0:(g=e.contents)==null?0:g.some(function(k){var m;return(k==null?void 0:(m=k.itemSectionRenderer)==null?void 0:m.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(a,b,c,d){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&d?!1:!!a&&!!Object.keys(a).length&&!b},
identity:_.Ma,onWindowResized_:function(a){this.windowSize_=a;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.x("kevlar_watch_js_panel_height")&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate(),this.scheduleSidebarSizeUpdate_()));_.x("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(a){var b=this;a&&a.type!=="dataloaded"&&a.type!=="dataupdated"||_.au(this).getPlayerPromise().then(function(c){var d=c.getPlayerState();d!==5&&d!==0&&(c=1/c.getVideoAspectRatio(),b.videoHeightToWidthRatio_!==c&&(b.videoHeightToWidthRatio_=c))})},
schedulePlayerSizeUpdate_:function(a){var b=this,c=_.x("kevlar_watch_while_v2")||_.x("web_watch_pip"),d=function(){if(b.watchMetadata){var e,g;(g=(e=b.watchMetadata).resize)==null||g.call(e)}_.au(b).getPlayerPromise().then(function(k){if(_.x("kevlar_set_internal_player_size")){if(!c||!b.isMiniplayerActive()){var m=b.calculateCurrentPlayerSize_();k.setInternalSize(m.width,m.height)}}else k.setSize(NaN,NaN);_.x("kevlar_watch_while")&&b.updateWatchWhileScrollThreshold_()})};
a?d():_.Du(_.zk,d)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(a){this.set("data.survey",a.detail)},
onYtShowSurveyCommand_:function(a){this.set("data.survey",_.y(a,_.Vld).survey)},
onDownloadedVideoDeleted:function(a){var b=this,c,d;return _.l(function(e){if(e.nextAddress==1){if(!b.active||(c=b.playerData)==null||!c.offlineState||b.videoId!==a)return e.return();(d=b.player)==null||d.stopVideo();_.uF().navigatingAwayFromWatchDeletedVideo=!0;_.is(_.h2a,b.hostElement);return _.p(e,_.uF().navigationFinishPromise,2)}_.uF().navigatingAwayFromWatchDeletedVideo=!1;_.se(e)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var a;this.theater?a=_.Qw(.5625*this.windowSize_.width,480,this.windowSize_.height-185):a=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==a&&(this.watchWhileScrollThreshold_=a,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var a=_.E(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&a){var b=this.windowSize_.height>=624,c=this.active?this.getScrollTop():0;!a.active&&b&&c>=this.watchWhileScrollThreshold_?(a.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):a.active&&(!b||c<this.watchWhileScrollThreshold_&&!_.bo())&&(a.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var a=_.E(this.hostElement).querySelector("#secondary-inner");if(a){var b=_.E(this.hostElement).querySelector("#below"),c=_.E(this.hostElement).querySelector("#secondary"),d=_.E(this.hostElement).querySelector("#comments");d&&c&&b&&(this.defaultTwoColumnLayout?(a.appendChild(d),c.appendChild(a)):(b.appendChild(d),_.L8(b,a)))}}},
isTwoColumnsChanged_:function(a,b){if(a!==!0||b!==void 0)if(this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(a=_.E(this.hostElement).querySelector("#secondary-inner"))){b=_.E(this.hostElement).querySelector("#below");var c=_.E(this.hostElement).querySelector("#secondary"),d=_.E(this.hostElement).querySelector("#comments");d&&c&&b&&(this.isTwoColumns_?(a.appendChild(d),c.appendChild(a)):(b.appendChild(d),_.L8(b,a)))}}else{a=!_.x("live_chat_over_engagement_panels");b=_.E(this.hostElement).querySelector("#chat-container");
c=_.E(this.hostElement).querySelector("#panels");var e=_.E(this.hostElement).querySelector("#alerts");d=_.E(this.hostElement).querySelector("#playlist");var g=_.E(this.hostElement).querySelector("#related"),k=_.E(this.hostElement).querySelector("#donation-shelf"),m=_.E(this.hostElement).querySelector("#comments");this.isTwoColumns_?(e=_.E(this.hostElement).querySelector("#secondary-inner"),a&&e.appendChild(c),e.appendChild(d),_.x("web_watch_theater_chat")||e.appendChild(b),a||e.appendChild(c),e.appendChild(k),
e.appendChild(g)):(a&&_.Sy(c,e),_.Sy(d,e),_.x("web_watch_theater_chat")||_.Sy(b,e),a||_.Sy(c,e),_.Sy(k,e),m&&_.Sy(g,m));_.x("kevlar_watch_js_panel_height")&&this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.x("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&_.x("web_watch_theater_chat")){var a=_.E(this.hostElement).querySelector("#chat-container"),b=this.theater&&!this.fullscreen||_.x("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&b?_.x("web_watch_theater_chat_beside_player")?(b=_.E(this.hostElement).querySelector("#panels-full-bleed-container"),(a==null?void 0:a.parentElement)!==b&&b.append(a),this.panelsBesidePlayer=!0):
_.x("web_watch_theater_fixed_chat")&&(b=_.E(this.hostElement).querySelector("#columns"),(a==null?void 0:a.parentElement)!==b&&b.append(a),this.fixedPanels=!0):(_.x("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.x("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),b=_.E(this.hostElement).querySelector("#playlist"),a&&b?_.Ty(a,b):_.Dl(new _.qj("Missing element when updating chat location",{"chatContainer defined":!!a,"playlist defined":!!b})));this.updatePageMediaQueries();
this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(a,b){return _.x("sw_metadata_vis_toggle_ks")?!0:!!a||!!b},
computeForceDarkPanelTheme:function(a){return _.x("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&a:!1},
safeUpdateStyles:function(a){try{_.dr(this.hostElement,a)}catch(b){_.Dl(b)}},
videoHeightToWidthRatioChanged_:function(a,b){b&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.x("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(a){this.videoHeightToWidthRatio_=1/a},
computeIsVerticalVideo_:function(a){return a>=1},
computeIsFourThreeToSixteenNineVideo_:function(a){return a<=.7501&&a>=.5624},
computeIsExtraWideVideo_:function(a){return a<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.au(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.au(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.dmd(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(a){var b=_.sG(a)||0;_.rG(a,b+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var a=_.sG("yt-fullerscreen-edu-button-click-count")||0,b=_.sG("yt-fullerscreen-edu-button-shown-count")||0,c=_.$i("external_fullscreen_button_shown_threshold"),d=a>=_.$i("external_fullscreen_button_click_threshold")||b>=c;_.au(this).getPlayerPromise().then(function(e){e.updateFullerscreenEduButtonSubtleModeState(d)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(a,b){return b},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.v().resolve(_.QF).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var a=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.zk.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.zk.addLowPriorityJob(function(){a.fullHeightPanelPositionUpdateJobId=0;var b=_.E(a.hostElement).querySelector("#secondary"),c=_.E(a.hostElement).querySelector("#fixed-secondary");b=b.getBoundingClientRect();var d=b.width;a.swatcherooSqueezeback&&
(d+=_.M8);if(a.swatcherooSqueezeback){var e=_.E(a.hostElement).querySelector("#squeezeback-constraining-container");e.style.width=d+"px";e.style.flex="0 0 "+d+"px"}c.style.width=d+"px";c.style.left=b.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var a=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.zk.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.zk.addLowPriorityJob(function(){a.panelMaxHeightUpdateJob_=0;var b;!a.isTwoColumns_||a.theater||a.fullscreen?b=460:b=a.calculateNormalPlayerSize_().height;var c=b+"px";_.x("live_chat_taller_height")&&!a.theater&&(c="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.x("live_chat_medium_height")&&!a.theater&&(c="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.x("live_chat_scaled_height")&&!a.theater&&(c="calc(100vh - var(--ytd-toolbar-height) - 238px)");a.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":b+"px","--ytd-watch-flexy-chat-max-height":c,"--ytd-watch-flexy-structured-description-max-height":b+"px","--ytd-watch-flexy-comments-panel-max-height":b+"px","--ytd-comments-engagement-panel-content-height":b+"px"})}))},
scheduleSidebarSizeUpdate_:function(){var a=this;(this.is==="ytd-watch-grid"||this.is==="ytd-watch-flexy"&&_.x("web_watch_flexy_adjust_sidebar_width"))&&!_.x("swatchie_sidebar_killswitch")&&(this.scheduleSidebarSizeUpdateJobId_&&_.zk.cancelJob(this.scheduleSidebarSizeUpdateJobId_),this.scheduleSidebarSizeUpdateJobId_=_.zk.addLowPriorityJob(function(){a.panelMaxHeightUpdateJob_=0;if(a.isTwoColumns_){var b=_.Mld(a.windowSize_,a.calculateNormalPlayerSize_().width);b!==a.currentSidebarWidth&&(a.currentSidebarWidth=
b,a.safeUpdateStyles({"--ytd-watch-flexy-sidebar-width":b+"px"}))}}))},
onYtShowEngagementPanelScrimAction_:function(a){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",a)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.no(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(a){var b=_.E(this.hostElement).querySelector("#engagement-panel-scrim");a?b.addEventListener("tap",_.er(this,this.onEngagementPanelScrimClick_)):b.removeEventListener("tap",_.er(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(a){if(this.hostElement.contains(a)&&!this.scrollToAnimation_.isAnimating()){var b=a.offsetTop-24;a=a.offsetTop+a.offsetHeight+24;var c=this.getPageScrollingElement(),d=this.getScrollTop(),e=d+c.clientHeight-56;if(b<d+56)b-=56;else if(a>e)b=a-c.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,b),500)}},
onYtSignalActionScrollToComments:function(){var a=this.hostElement.querySelector("#comments");if(a&&!this.scrollToAnimation_.isAnimating()){a=a.offsetTop-56-24;if(_.x("kevlar_comment_teaser_scroll_to_midpoint")&&(a-=_.pf().height/3,a<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,a),500)}},
onYtEngagementPanelVisibleChanged:function(a,b,c){this.active&&this.trackEngagementPanelVisibility&&!_.ykd.includes(c)&&(b==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&(this.visiblePanelIdentifiers_.add(c),this.swatcherooBinaryLayout&&(this.onSetPlaylistCollapsed(!0),_.ko(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]))),b!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&b!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(c),
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(a){return a?"":"watch-active-metadata"},
computeNewMetadataClass:function(a){return a?"watch-active-metadata":""},
computeFullBleedPlayer:function(a,b){return a||b},
computeDefaultLayout:function(a){return!a},
computeDefaultTwoColumnLayout:function(a,b){return!a&&b},
swatcherooUpdatePanelsLocation:function(a,b,c,d,e,g){if(this.is==="ytd-watch-grid"){b=a&&!b;this.swatcherooSplitScroll&&(b?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));c=_.E(this.hostElement).querySelector("#panels");var k=_.E(this.hostElement).querySelector("#playlist"),m=_.E(this.hostElement).querySelector("#fixed-secondary"),n=_.E(this.hostElement).querySelector("#fixed-below"),
r=_.E(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),t=_.E(this.hostElement).querySelector("#chat-container");g&&(a?m.appendChild(c):n.appendChild(c));e?a?m.appendChild(t):n.appendChild(t):_.Ty(t,r);d?a?m.appendChild(k):n.appendChild(k):_.Ty(k,r);this.swatcherooSplitScroll&&(a=_.E(this.hostElement).querySelector("#secondary"),d=_.E(this.hostElement).querySelector("#columns"),e=_.E(this.hostElement).querySelector("#fixed-columns-secondary"),b?e.appendChild(a):
d.appendChild(a))}},
computeMetadataSkinnyMode:function(a,b,c){return this.is!=="ytd-watch-grid"?!1:a?c:b},
computeWatchWhilePanelsActive:function(a,b){return a||b},
computeNoBorderOnChat:function(a){return _.x("web_watch_theater_chat_no_border")&&a},
computeLiveChatPresentAndExpanded:function(a,b){return a&&!b},
computePanelExpanded:function(a,b,c){return a||b||c},
computeSwatcherooSqueezeback:function(a,b,c){return this.is!=="ytd-watch-grid"||_.x("ww_squeezeback_killswitch")?!1:a&&b&&c},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(a){_.au(this).getPlayerPromise().then(function(b){var c;(c=b.changeMarkerVisibility)==null||c.call(b,_.y(a,_.Q$).isVisible||!1,_.y(a,_.Q$).entityKeys||[],_.y(a,_.Q$).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(a){this.liveChatCollapsed=a.detail;_.Yp().dispatch(_.Tld(a.detail))},
onSetPlaylistCollapsed:function(a){this.is==="ytd-watch-grid"&&(this.playlistPanelExpanded=this.playlist&&!a)},
provideRenderingData:function(a,b){switch(a){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=b;break;case "PRIMARY_INFO":_.x("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=b);this.videoPrimaryInfoRendererValue=b==null?void 0:b.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.x("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=b);this.videoSecondaryInfoRendererValue=b==null?void 0:b.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
b;break;case "CLARIFICATION":this.clarifyBoxValue=b;break;case "LIVE_CHAT":this.conversationBar=b;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=b;break;case "PLAYLIST":this.externalPlaylistData_=b!=null?b:{};break;case "MERCH_SHELF":this.merchShelfValue=b==null?void 0:b.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=b;break;case "OFFER_MODULE":this.offerModule=b;break;case "LIMITED_STATE":this.limitedStateValue=b;break;case "DONATION_SHELF":this.donation=b;break;
case "ALERTS":this.alertsValue=b;break;case "COMMENTS":this.comments=b;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=b;break;case "ENGAGEMENT_PANELS":this.engagementPanels=b;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=b;break;case "RICH_GRID_RENDERER":this.richGridRendererData=b;break;case "EXPANDABLE_METADATA":this.expandableMetadata=b;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=b}},
toggleCinematicsActive:function(a){this.cinematicsActive=a},
isMiniplayerActive:function(){return _.v().resolve(_.Vw).isMiniplayerActive()}}];var zmd;var Amd=function(){var a=_.P.apply(this,arguments)||this;a.flexy=!0;a.roundedInfoPanel=!0;a.viewTransitionEnabled=_.x("enable_player_resize_transition");a.smallerChatMinHeight=_.x("live_chat_smaller_min_height");a.cinematicTheaterMode=_.x("web_cinematic_theater_mode");a.transparentTheaterMode=_.x("web_transparent_theater_mode");a.cinematicFullscreen=_.x("web_cinematic_fullscreen");a.useLargerMaxPlayerValue=_.x("kevlar_flexy_use_larger_player_value");a.cinematicFullscreenV2=_.x("web_cinematic_fullscreen_v2");
a.isDarkTheme=document.documentElement.hasAttribute("dark");a.theaterLargerPlayer=_.x("web_watch_theater_larger_player");a.defaultCollapsePlaylist=_.x("web_watch_default_collapse_playlist");return a};
_.z(Amd,_.P);_.f=Amd.prototype;_.f.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.f.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.f.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.f.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.f.ready=function(){var a=this,b=function(){a.onColumnScroll()};
this.primary.addEventListener("scroll",b);this.secondary.addEventListener("scroll",b)};
_.f.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.f.updateIsTwoColumnsFromBinding=function(a){_.x("web_watch_update_narrow_width_killswitch")||_.Yp().dispatch(_.Ucd(!a.detail.value));this.ytdWatchBehavior.isTwoColumns_=a.detail.value};
_.f.updateFlexySmallWindowFromBinding=function(a){this.ytdWatchBehavior.flexySmallWindow_=a.detail.value};
_.f.updateFlexyLargeWindowFromBinding=function(a){this.ytdWatchBehavior.flexyLargeWindow_=a.detail.value};
_.f.updateWatchWhileWindowSizeSufficientFromBinding=function(a){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=a.detail.value};
_.f.updateWatchNextCanShowMoreFromBinding=function(a){this.ytdWatchBehavior.watchNextCanShowMore=a.detail.value};
_.f.updateShownItemsFromBinding=function(a){a.detail.path?this.set(a.detail.path,a.detail.value):this.ytdWatchBehavior.watchNextShownItems=a.detail.value};
_.f.getElement=function(a){switch(a){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20231_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20231_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.Vm.Object.defineProperties(Amd.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)==null||!a.pageVisualEffects)return!1;for(var b=0;b<this.data.pageVisualEffects.length;b++)if(a=_.y(this.data.pageVisualEffects[b],_.F6))return b=void 0,(b=a.config)==null?void 0:b.enableInLightTheme;return!1}}});
_.Vm.Object.defineProperties(Amd,{template:{configurable:!0,enumerable:!0,get:function(){if(zmd===void 0){var a=document.createElement("template");_.B(a,'\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="primary" class="style-scope ytd-watch-learning-journey">\n    <div id="primary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="player" class="style-scope ytd-watch-learning-journey">\n        <div id="cinematics-container" class="style-scope ytd-watch-learning-journey">\n          <div id="cinematics" class="style-scope ytd-watch-learning-journey"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-learning-journey">\n          <div id="player-container-inner" class="style-scope ytd-watch-learning-journey">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-learning-journey">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-learning-journey">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-learning-journey">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-learning-journey">\n        <div id="alerts" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="messages" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-learning-journey"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-learning-journey" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-learning-journey="" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-learning-journey">\n          <div id="info" class="style-scope ytd-watch-learning-journey">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-learning-journey">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-learning-journey"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-learning-journey">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n\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="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</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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);zmd=a}a=zmd;return a}}});
var $$=Amd;$$.prototype.updateMiniplayerIsActiveValue=$$.prototype.updateMiniplayerIsActiveValue;$$.prototype.updateScrollTopValue=$$.prototype.updateScrollTopValue;$$.prototype.updateFullscreenValue=$$.prototype.updateFullscreenValue;$$.prototype.updateTheaterValue=$$.prototype.updateTheaterValue;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],$$.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],$$.prototype,"ytComponentBehavior",void 0);
_.U([_.H(ymd.YtdLearningJourneyWatchBehavior),_.W("design:type",Object)],$$.prototype,"ytdWatchBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],$$.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],$$.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],$$.prototype,"playerData",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],$$.prototype,"flexy",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],$$.prototype,"roundedInfoPanel",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],$$.prototype,"viewTransitionEnabled",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],$$.prototype,"smallerChatMinHeight",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],$$.prototype,"cinematicTheaterMode",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],$$.prototype,"transparentTheaterMode",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],$$.prototype,"cinematicFullscreen",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],$$.prototype,"useLargerMaxPlayerValue",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],$$.prototype,"cinematicFullscreenV2",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],$$.prototype,"isDarkTheme",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],$$.prototype,"theaterLargerPlayer",void 0);_.U([_.O(),_.W("design:type",Object)],$$.prototype,"defaultCollapsePlaylist",void 0);_.U([_.O({selector:_.FW}),_.W("design:type",Object)],$$.prototype,"theaterValue",void 0);_.U([_.O({selector:_.H8}),_.W("design:type",Object)],$$.prototype,"fullscreenValue",void 0);
_.U([_.O({selector:_.I8}),_.W("design:type",Object)],$$.prototype,"scrollTopValue",void 0);_.U([_.O({selector:_.Gp}),_.W("design:type",Object)],$$.prototype,"miniplayerIsActiveValue",void 0);_.U([_.fY("ytd-player"),_.W("design:type",HTMLElement)],$$.prototype,"ytdPlayer",void 0);_.U([_.gr("#playlist"),_.W("design:type",HTMLElement)],$$.prototype,"JSC$20231_ytdPlaylistPanelRenderer",void 0);_.U([_.fY("ytd-comments"),_.W("design:type",HTMLElement)],$$.prototype,"ytdComments",void 0);
_.U([_.gr("#primary"),_.W("design:type",HTMLElement)],$$.prototype,"primary",void 0);_.U([_.gr("#secondary"),_.W("design:type",HTMLElement)],$$.prototype,"secondary",void 0);_.U([_.gr("#player-container"),_.W("design:type",HTMLElement)],$$.prototype,"playerContainer",void 0);_.U([_.gr("#cinematics"),_.W("design:type",HTMLElement)],$$.prototype,"JSC$20231_cinematics",void 0);
_.U([_.N("theaterValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],$$.prototype,"updateTheaterValue",null);_.U([_.N("fullscreenValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],$$.prototype,"updateFullscreenValue",null);_.U([_.N("scrollTopValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],$$.prototype,"updateScrollTopValue",null);
_.U([_.N("miniplayerIsActiveValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],$$.prototype,"updateMiniplayerIsActiveValue",null);_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],$$.prototype,"cinematicLightTheme",null);$$=_.U([_.Q({is:"ytd-watch-learning-journey"})],$$);_.IH.registerService(_.F7a,$$);
_.Bg();
}catch(e){_._DumpException(e)}
try{
_.Ag("Tm0L3c");
var omd;var pmd;var qmd=function(){return _.P.apply(this,arguments)||this};
_.z(qmd,_.P);var rmd=qmd;rmd=_.U([_.Q({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],rmd);
_.S(rmd,"ytd-ghost-comments-renderer",function(){if(pmd===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);pmd=a}a=pmd;return a},{mode:1});var smd;var tmd=function(){return _.P.apply(this,arguments)||this};
_.z(tmd,_.P);var umd=tmd;umd=_.U([_.Q({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],umd);
_.S(umd,"ytd-ghost-watch-metadata-renderer",function(){if(smd===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);smd=a}a=smd;return a},{mode:1});var Z$=function(){var a=_.P.apply(this,arguments)||this;a.ghostGridRenderer={rows:6};a.roundedInfoPanel=!0;a.hideOfferModules=!0;a.smallerChatMinHeight=_.x("live_chat_smaller_min_height");a.cinematicTheaterMode=_.x("web_cinematic_theater_mode");a.transparentTheaterMode=_.x("web_transparent_theater_mode");a.darkerPanels=_.x("web_watch_darker_panels");a.cinematicFullscreen=_.x("web_cinematic_fullscreen");a.cinematicFullscreenV2=_.x("web_cinematic_fullscreen_v2");a.isDarkTheme=document.documentElement.hasAttribute("dark");
return a};
_.z(Z$,_.P);_.f=Z$.prototype;_.f.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.f.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.f.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.f.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.f.ready=function(){var a=this,b=function(){a.onColumnScroll()};
this.primary.addEventListener("scroll",b);this.secondary.addEventListener("scroll",b)};
_.f.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.f.updateIsTwoColumnsFromBinding=function(a){this.ytdWatchBehavior.isTwoColumns_=a.detail.value};
_.f.updateFlexySmallWindowFromBinding=function(a){this.ytdWatchBehavior.flexySmallWindow_=a.detail.value};
_.f.updateFlexyLargeWindowFromBinding=function(a){this.ytdWatchBehavior.flexyLargeWindow_=a.detail.value};
_.f.updateWatchWhileWindowSizeSufficientFromBinding=function(a){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=a.detail.value};
_.f.updateWatchNextCanShowMoreFromBinding=function(a){this.ytdWatchBehavior.watchNextCanShowMore=a.detail.value};
_.f.updateShownItemsFromBinding=function(a){_.x("swatcheroo_direct_use_rich_grid")||(a.detail.path?this.set(a.detail.path,a.detail.value):this.ytdWatchBehavior.watchNextShownItems=a.detail.value)};
_.f.getElement=function(a){switch(a){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20222_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20222_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.Vm.Object.defineProperties(Z$.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)==null||!a.pageVisualEffects)return!1;for(var b=0;b<this.data.pageVisualEffects.length;b++)if(a=_.y(this.data.pageVisualEffects[b],_.F6))return b=void 0,(b=a.config)==null?void 0:b.enableInLightTheme;return!1}}});
Z$.prototype.updateMiniplayerIsActiveValue=Z$.prototype.updateMiniplayerIsActiveValue;Z$.prototype.updateScrollTopValue=Z$.prototype.updateScrollTopValue;Z$.prototype.updateFullscreenValue=Z$.prototype.updateFullscreenValue;Z$.prototype.updateTheaterValue=Z$.prototype.updateTheaterValue;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],Z$.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],Z$.prototype,"ytComponentBehavior",void 0);
_.U([_.H(_.lmd.YtdWatchBehavior),_.W("design:type",Object)],Z$.prototype,"ytdWatchBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],Z$.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],Z$.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],Z$.prototype,"ghostGridRenderer",void 0);_.U([_.O(),_.W("design:type",Object)],Z$.prototype,"playerData",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],Z$.prototype,"roundedInfoPanel",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],Z$.prototype,"hideOfferModules",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],Z$.prototype,"smallerChatMinHeight",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],Z$.prototype,"cinematicTheaterMode",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],Z$.prototype,"transparentTheaterMode",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],Z$.prototype,"darkerPanels",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],Z$.prototype,"cinematicFullscreen",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],Z$.prototype,"cinematicFullscreenV2",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],Z$.prototype,"isDarkTheme",void 0);_.U([_.O({selector:_.FW}),_.W("design:type",Object)],Z$.prototype,"theaterValue",void 0);
_.U([_.O({selector:_.H8}),_.W("design:type",Object)],Z$.prototype,"fullscreenValue",void 0);_.U([_.O({selector:_.I8}),_.W("design:type",Object)],Z$.prototype,"scrollTopValue",void 0);_.U([_.O({selector:_.Gp}),_.W("design:type",Object)],Z$.prototype,"miniplayerIsActiveValue",void 0);_.U([_.gr("#ytd-player"),_.W("design:type",HTMLElement)],Z$.prototype,"ytdPlayer",void 0);_.U([_.gr("#playlist"),_.W("design:type",HTMLElement)],Z$.prototype,"JSC$20222_ytdPlaylistPanelRenderer",void 0);
_.U([_.gr("#ytd-comments"),_.W("design:type",HTMLElement)],Z$.prototype,"ytdComments",void 0);_.U([_.gr("#primary"),_.W("design:type",HTMLElement)],Z$.prototype,"primary",void 0);_.U([_.gr("#secondary"),_.W("design:type",HTMLElement)],Z$.prototype,"secondary",void 0);_.U([_.gr("#player-container"),_.W("design:type",HTMLElement)],Z$.prototype,"playerContainer",void 0);_.U([_.gr("#cinematics"),_.W("design:type",HTMLElement)],Z$.prototype,"JSC$20222_cinematics",void 0);
_.U([_.N("theaterValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Z$.prototype,"updateTheaterValue",null);_.U([_.N("fullscreenValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Z$.prototype,"updateFullscreenValue",null);_.U([_.N("scrollTopValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Z$.prototype,"updateScrollTopValue",null);
_.U([_.N("miniplayerIsActiveValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Z$.prototype,"updateMiniplayerIsActiveValue",null);_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],Z$.prototype,"cinematicLightTheme",null);
_.S(Z$,"ytd-watch-grid",function(){if(omd===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-grid--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-grid"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-grid"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-grid"></div>\n\n<div id="player-full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-grid">\n  </div>\n  <div id="squeezeback-constraining-container" hidden="[[!squeezeback]]" class="style-scope ytd-watch-grid"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-grid"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="primary" class="style-scope ytd-watch-grid">\n    <div id="primary-inner" class="style-scope ytd-watch-grid">\n      <div id="player" class="style-scope ytd-watch-grid">\n        <div id="cinematics-container" class="style-scope ytd-watch-grid">\n          <div id="cinematics" class="style-scope ytd-watch-grid"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-grid">\n          <div id="player-container-inner" class="style-scope ytd-watch-grid">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-grid">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-grid">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-grid">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-grid">\n        <div id="fixed-below" class="style-scope ytd-watch-grid"></div>\n        <div id="bottom-grid" class="style-scope ytd-watch-grid">\n          <ytd-rich-grid-renderer continuation-show-button="[[showRichGridContinuationButton]]" data="[[richGridRendererData]]" disable-upgrade$="[[!richGridRendererData]]" hidden="[[!richGridRendererData]]" hide-chips-bar="" is-watch-default-layout="[[defaultTwoColumnLayout]]" item-max-width="[[richItemMaxWidth]]" item-min-width="[[richItemMinWidth]]" reduced-bottom-margin="" row-reduced-horizontal-margin="" transparent-background-chips-bar="" class="style-scope ytd-watch-grid">\n          </ytd-rich-grid-renderer>\n          <ytd-ghost-grid-renderer data="[[ghostGridRenderer]]" hidden="[[richGridRendererData]]" is-watch-next="" rich-item-min-width="[[richItemMinWidth]]" class="style-scope ytd-watch-grid"></ytd-ghost-grid-renderer>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="secondary" class="style-scope ytd-watch-grid">\n    <div id="fixed-secondary" class="style-scope ytd-watch-grid">\n      <div id="panels" class="style-scope ytd-watch-grid">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-engagement-panels>\n      </div>\n      <div id="chat-container" class="style-scope ytd-watch-grid">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-grid">\n          <ytd-live-chat-frame id="chat" data="[[conversationBar]]" class="style-scope ytd-watch-grid">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n    </div>\n    <div id="secondary-inner" class="style-scope ytd-watch-grid">\n        <ytd-watch-metadata clarify-box="[[clarifyBox]]" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" hidden="[[!videoPrimaryInfoRenderer]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" player-ads="[[playerAds]]" playlist="[[playlist]]" skinny-mode="[[metadataSkinnyMode]]" swatcheroo-enable-double-metadata="[[swatcherooUseDoubleMetadata]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-metadata>\n        <ytd-ghost-watch-metadata-renderer hidden="[[hasMetadata]]" class="style-scope ytd-watch-grid"></ytd-ghost-watch-metadata-renderer>\n        <div id="inline-panels" class="style-scope ytd-watch-grid"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-grid"></div>\n        <div id="alerts" class="style-scope ytd-watch-grid"></div>\n        <div id="messages" class="style-scope ytd-watch-grid"></div>\n        <div id="related" class="style-scope ytd-watch-grid">\n          <div id="player-ads" class="style-scope ytd-watch-grid"></div>\n          <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n        </div>\n        <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[!playlistPanelExpanded]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" meta-panel="[[swatcherooSplitScroll]]" class="style-scope ytd-watch-grid">\n        </ytd-playlist-panel-renderer>\n        <div id="expandable-metadata" hidden="[[!expandableMetadata]]" class="style-scope ytd-watch-grid"></div>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-grid" hidden="">\n          <div id="info" class="style-scope ytd-watch-grid">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-grid">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n        </div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-grid"></div>\n      <div id="offer-module" class="style-scope ytd-watch-grid"></div>\n      <div id="donation-shelf" class="style-scope ytd-watch-grid"></div>\n      <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-grid"></div>\n      \n      <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-grid">\n        <ytd-merch-shelf-renderer data="[[merchShelf]]" meta-panel="[[swatcherooSplitScroll]]" skinny-mode="[[isTwoColumns_]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid">\n        </ytd-merch-shelf-renderer>\n      </template>\n      <ytd-ghost-comments-renderer hidden="[[comments]]" class="style-scope ytd-watch-grid"></ytd-ghost-comments-renderer>\n      <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat, commentsEntryPointHeaderRenderer)]]" hide-panel-button="[[!defaultTwoColumnLayout]]" is-watch-grid="" class="style-scope ytd-watch-grid">\n      </ytd-comments>\n    </div>\n  </div>\n</div>\n<div id="fixed-columns-secondary" hidden="[[!swatcherooSplitScroll]]" class="style-scope ytd-watch-grid"> </div>\n\n<div id="survey" class="style-scope ytd-watch-grid"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-grid"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);omd=a}a=omd;return a},{mode:2});_.IH.registerService(_.E7a,Z$);
_.Bg();
}catch(e){_._DumpException(e)}
try{
_.Ag("CF909");
var mmd;var nmd=function(){var a=_.P.apply(this,arguments)||this;a.flexy=!0;a.roundedInfoPanel=!0;a.viewTransitionEnabled=_.x("enable_player_resize_transition");a.smallerChatMinHeight=_.x("live_chat_smaller_min_height");a.cinematicTheaterMode=_.x("web_cinematic_theater_mode");a.transparentTheaterMode=_.x("web_transparent_theater_mode");a.cinematicFullscreen=_.x("web_cinematic_fullscreen");a.useLargerMaxPlayerValue=_.x("kevlar_flexy_use_larger_player_value");a.cinematicFullscreenV2=_.x("web_cinematic_fullscreen_v2");
a.isDarkTheme=document.documentElement.hasAttribute("dark");a.theaterLargerPlayer=_.x("web_watch_theater_larger_player");a.defaultCollapsePlaylist=_.x("web_watch_default_collapse_playlist");a.retroModeReduxValue=!1;return a};
_.z(nmd,_.P);_.f=nmd.prototype;_.f.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.f.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.f.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.f.updateRetroModeReduxValue=function(){_.x("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.f.ready=function(){var a=this,b=function(){a.onColumnScroll()};
this.primary.addEventListener("scroll",b);this.secondary.addEventListener("scroll",b)};
_.f.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.f.updateIsTwoColumnsFromBinding=function(a){_.x("web_watch_update_narrow_width_killswitch")||_.Yp().dispatch(_.Ucd(!a.detail.value));this.ytdWatchBehavior.isTwoColumns_=a.detail.value};
_.f.updateFlexySmallWindowFromBinding=function(a){this.ytdWatchBehavior.flexySmallWindow_=a.detail.value};
_.f.updateFlexyLargeWindowFromBinding=function(a){this.ytdWatchBehavior.flexyLargeWindow_=a.detail.value};
_.f.updateWatchWhileWindowSizeSufficientFromBinding=function(a){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=a.detail.value};
_.f.updateWatchNextCanShowMoreFromBinding=function(a){this.ytdWatchBehavior.watchNextCanShowMore=a.detail.value};
_.f.updateShownItemsFromBinding=function(a){a.detail.path?this.set(a.detail.path,a.detail.value):this.ytdWatchBehavior.watchNextShownItems=a.detail.value};
_.f.getElement=function(a){switch(a){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20217_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20217_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.Vm.Object.defineProperties(nmd.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)==null||!a.pageVisualEffects)return!1;for(var b=0;b<this.data.pageVisualEffects.length;b++)if(a=_.y(this.data.pageVisualEffects[b],_.F6))return b=void 0,(b=a.config)==null?void 0:b.enableInLightTheme;return!1}}});
_.Vm.Object.defineProperties(nmd,{template:{configurable:!0,enumerable:!0,get:function(){if(mmd===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-flexy--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-flexy"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-flexy"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-flexy">\n    <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n      <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n    </div>\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-flexy"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="primary" class="style-scope ytd-watch-flexy">\n    <div id="primary-inner" class="style-scope ytd-watch-flexy">\n      <div id="player" class="style-scope ytd-watch-flexy">\n        <div id="cinematics-container" class="style-scope ytd-watch-flexy">\n          <div id="cinematics" class="style-scope ytd-watch-flexy"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-flexy">\n          <div id="player-container-inner" class="style-scope ytd-watch-flexy">\n            <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n              <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n            </div>\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-flexy">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-flexy">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-flexy">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-flexy">\n        <div id="alerts" class="style-scope ytd-watch-flexy"></div>\n        <div id="messages" class="style-scope ytd-watch-flexy"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-flexy"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-flexy" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-flexy="" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-flexy">\n          <div id="info" class="style-scope ytd-watch-flexy">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-flexy">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-flexy"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-flexy"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-flexy">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-flexy">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n\n  <div id="secondary" class="style-scope ytd-watch-flexy">\n    <div id="secondary-inner" class="style-scope ytd-watch-flexy">\n      <div id="panels" class="style-scope ytd-watch-flexy">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-flexy">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-flexy">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-flexy"></div>\n      <div id="chat-container" class="style-scope ytd-watch-flexy">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-flexy">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-flexy">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-flexy">\n        <div id="player-ads" class="style-scope ytd-watch-flexy"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-flexy">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-flexy"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-flexy"></div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);mmd=a}a=mmd;return a}}});
var Y$=nmd;Y$.prototype.updateRetroModeReduxValue=Y$.prototype.updateRetroModeReduxValue;Y$.prototype.updateScrollTopValue=Y$.prototype.updateScrollTopValue;Y$.prototype.updateFullscreenValue=Y$.prototype.updateFullscreenValue;Y$.prototype.updateTheaterValue=Y$.prototype.updateTheaterValue;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],Y$.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],Y$.prototype,"ytComponentBehavior",void 0);
_.U([_.H(_.lmd.YtdWatchBehavior),_.W("design:type",Object)],Y$.prototype,"ytdWatchBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],Y$.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],Y$.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],Y$.prototype,"playerData",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],Y$.prototype,"flexy",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],Y$.prototype,"roundedInfoPanel",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],Y$.prototype,"viewTransitionEnabled",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],Y$.prototype,"smallerChatMinHeight",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],Y$.prototype,"cinematicTheaterMode",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],Y$.prototype,"transparentTheaterMode",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],Y$.prototype,"cinematicFullscreen",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],Y$.prototype,"useLargerMaxPlayerValue",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],Y$.prototype,"cinematicFullscreenV2",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],Y$.prototype,"isDarkTheme",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],Y$.prototype,"theaterLargerPlayer",void 0);_.U([_.O(),_.W("design:type",Object)],Y$.prototype,"defaultCollapsePlaylist",void 0);_.U([_.O({selector:_.FW}),_.W("design:type",Object)],Y$.prototype,"theaterValue",void 0);_.U([_.O({selector:_.H8}),_.W("design:type",Object)],Y$.prototype,"fullscreenValue",void 0);
_.U([_.O({selector:_.I8}),_.W("design:type",Object)],Y$.prototype,"scrollTopValue",void 0);_.U([_.O({selector:_.Gp}),_.W("design:type",Object)],Y$.prototype,"miniplayerIsActive",void 0);_.U([_.O({selector:function(a){return a.watch.isWatchRetroMode}}),
_.W("design:type",Object)],Y$.prototype,"retroModeReduxValue",void 0);_.U([_.fY("ytd-player"),_.W("design:type",HTMLElement)],Y$.prototype,"ytdPlayer",void 0);_.U([_.gr("#playlist"),_.W("design:type",HTMLElement)],Y$.prototype,"JSC$20217_ytdPlaylistPanelRenderer",void 0);_.U([_.fY("ytd-comments"),_.W("design:type",HTMLElement)],Y$.prototype,"ytdComments",void 0);_.U([_.gr("#primary"),_.W("design:type",HTMLElement)],Y$.prototype,"primary",void 0);
_.U([_.gr("#secondary"),_.W("design:type",HTMLElement)],Y$.prototype,"secondary",void 0);_.U([_.gr("#player-container"),_.W("design:type",HTMLElement)],Y$.prototype,"playerContainer",void 0);_.U([_.gr("#cinematics"),_.W("design:type",HTMLElement)],Y$.prototype,"JSC$20217_cinematics",void 0);_.U([_.N("theaterValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Y$.prototype,"updateTheaterValue",null);
_.U([_.N("fullscreenValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Y$.prototype,"updateFullscreenValue",null);_.U([_.N("scrollTopValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Y$.prototype,"updateScrollTopValue",null);_.U([_.N("retroModeReduxValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Y$.prototype,"updateRetroModeReduxValue",null);
_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],Y$.prototype,"cinematicLightTheme",null);Y$=_.U([_.Q({is:"ytd-watch-flexy"})],Y$);_.IH.registerService(_.D7a,Y$);
_.Bg();
}catch(e){_._DumpException(e)}
try{
_.Ag("nmfa2d");
var Eld;var P$=function(){var a=_.P.apply(this,arguments)||this;a.hidden=!1;a.errorScreen=null;a.playlistData={};return a};
_.z(P$,_.P);_.f=P$.prototype;_.f.getPlayer=function(){return this.ytdPlayer};
_.f.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:_.LW(["aa","eocs"])}}};
_.f.onActiveChanged=function(){_.Yp().dispatch(_.Tcd(this.ytPageBehavior.active))};
_.f.playerDataChanged=function(){var a;(a=this.watchController)==null||_.M$(a,this.playerData)};
_.f.dataChanged=function(){var a;(a=this.watchController)==null||_.N$(a,this.data)};
_.f.sizeChanged=function(){var a,b;(b=(a=this.metadata).resize)==null||b.call(a)};
_.f.attached=function(){this.watchController=new _.L$(this);this.playerData&&_.M$(this.watchController,this.playerData);this.data&&_.N$(this.watchController,this.data)};
_.f.detached=function(){_.Tf(this.watchController);this.watchController=void 0};
_.f.getPlayerContainer=function(){return this.playerContainer};
_.f.getElement=function(a){switch(a){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20169_playlistPanel}};
_.f.provideRenderingData=function(a,b){switch(a){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=b;break;case "ERROR_SCREEN":this.errorScreen=b!=null?b:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=b;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=b;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=b;break;case "RICH_METADATA":this.richMetadataRowContainer=b;break;case "CLARIFICATION":this.clarificationData=b;break;case "PLAYLIST":this.playlistData=
b!=null?b:{};break;case "MERCH_SHELF":this.merchShelf=b;break;case "TICKET_SHELF":this.ticketShelf=b;break;case "LIMITED_STATE":this.limitedState=b;break;case "DONATION_SHELF":this.donationShelf=b;break;case "ALERTS":this.alerts=b}};
_.Vm.Object.defineProperties(P$.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return!this.hidden&&!!((a=this.data)==null?0:(b=a.contents)==null?0:(c=b.twoColumnWatchNextResults)==null?0:c.conversationBar)}}});
P$.prototype.sizeChanged=P$.prototype.sizeChanged;P$.prototype.dataChanged=P$.prototype.dataChanged;P$.prototype.playerDataChanged=P$.prototype.playerDataChanged;P$.prototype.onActiveChanged=P$.prototype.onActiveChanged;_.U([_.H(_.I6.YtPageBehavior),_.W("design:type",Object)],P$.prototype,"ytPageBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],P$.prototype,"ytComponentBehavior",void 0);
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],P$.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],P$.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],P$.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],P$.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],P$.prototype,"playerData",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],P$.prototype,"hidden",void 0);_.U([_.gr("#ytd-player"),_.W("design:type",HTMLElement)],P$.prototype,"ytdPlayer",void 0);_.U([_.gr("#player-container"),_.W("design:type",HTMLElement)],P$.prototype,"playerContainer",void 0);_.U([_.gr("#metadata"),_.W("design:type",Object)],P$.prototype,"metadata",void 0);_.U([_.gr("#playlist"),_.W("design:type",HTMLElement)],P$.prototype,"JSC$20169_playlistPanel",void 0);
_.U([_.O({selector:_.Xbd,reflectToAttribute:!0}),_.W("design:type",Object)],P$.prototype,"fixie",void 0);_.U([_.O({selector:_.Wbd,reflectToAttribute:!0}),_.W("design:type",Object)],P$.prototype,"singleColumn",void 0);_.U([_.O({selector:function(a){return _.FW(a)&&!_.H8(a)},
reflectToAttribute:!0}),_.W("design:type",Object)],P$.prototype,"theater",void 0);_.U([_.O({selector:_.H8,reflectToAttribute:!0}),_.W("design:type",Object)],P$.prototype,"fullscreen",void 0);_.U([_.O({selector:_.Vbd}),_.W("design:type",Object)],P$.prototype,"windowSize",void 0);_.U([_.O(),_.W("design:type",Object)],P$.prototype,"singleColumnContents",void 0);_.U([_.O(),_.W("design:type",Object)],P$.prototype,"errorScreen",void 0);_.U([_.O(),_.W("design:type",Object)],P$.prototype,"playlistData",void 0);
_.U([_.O(),_.W("design:type",Object)],P$.prototype,"videoPrimaryInfoRenderer",void 0);_.U([_.O(),_.W("design:type",Object)],P$.prototype,"videoSecondaryInfoRenderer",void 0);_.U([_.O(),_.W("design:type",Object)],P$.prototype,"richMetadataRowContainer",void 0);_.U([_.O(),_.W("design:type",Object)],P$.prototype,"clarificationData",void 0);_.U([_.O(),_.W("design:type",Object)],P$.prototype,"commentsEntryPointHeaderRenderer",void 0);_.U([_.O(),_.W("design:type",Object)],P$.prototype,"ticketShelf",void 0);
_.U([_.O(),_.W("design:type",Object)],P$.prototype,"merchShelf",void 0);_.U([_.O(),_.W("design:type",Object)],P$.prototype,"donationShelf",void 0);_.U([_.O(),_.W("design:type",Object)],P$.prototype,"limitedState",void 0);_.U([_.O(),_.W("design:type",Object)],P$.prototype,"alerts",void 0);_.U([_.K("playlistData"),_.W("design:type",Object),_.W("design:paramtypes",[])],P$.prototype,"hasPlaylistData",null);
_.U([_.K("data","hidden"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],P$.prototype,"hasChat",null);_.U([_.N("active"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],P$.prototype,"onActiveChanged",null);_.U([_.N("playerData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],P$.prototype,"playerDataChanged",null);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],P$.prototype,"dataChanged",null);_.U([_.N("windowSize","singleColumn"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],P$.prototype,"sizeChanged",null);
_.S(P$,"ytd-watch-fixie",function(){if(Eld===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);Eld=a}a=Eld;return a},{mode:1});_.IH.registerService(_.C7a,P$);
_.Bg();
}catch(e){_._DumpException(e)}
try{
_.Ag("xwEKAe");
var Bad=function(a){var b=_.wo();if(b.getFlag(202))b=b.getFlag(201);else{var c;b=(a==null?void 0:(c=a.config)==null?void 0:c.settingOnByDefault)!==void 0?a.config.settingOnByDefault:!_.x("web_shorts_cinematics_disabled_by_default")}return b},Cad=function(a){var b=_.wo();
_.xo(0,201,a);_.xo(0,202,!0);b.save()},Dad=function(a){return(a=_.VQa(a))?_.XQa(a):0},Ead=function(a){return a.shorts.isSmallScreenSqueezeback},Fad=function(a){return a.shorts.isPlaybackStarted},Iad=function(a,b,c){for(var d=[],e=0,g=-1;e<a.length;e++)e%3===0&&(g++,d[g]=[]),d[g].push(a[e]);
a=new o8(d);d=new o8([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);d=a.multiply(d);a=new o8([[0,0],[0,0],[0,0],[0,0]]);for(e=0;e<d.getSize().width;e++){g=p8(d,0,e);var k=p8(d,1,e);if(g===null||k===null)throw Error("$l`"+(e+1).toString());Gad(a,e,0,g*b);Gad(a,e,1,k*c)}b=p8(a,0,0);e=p8(a,1,0);c=p8(a,0,1);g=p8(a,1,1);if(b===null||e===null||c===null||g===null)throw Error("Yl");d=Had(b,e,c,g);k=p8(a,3,0);a=p8(a,3,1);if(k===null||a===null)throw Error("Zl");a=Had(b,k,c,a);g=(Number((g*-1).toFixed(2))-Number((c*-1).toFixed(2)))/
(Number(e.toFixed(2))-Number(b.toFixed(2)));k=Math.atan(g)*180/Math.PI;e=g===Number.POSITIVE_INFINITY?-90:g===Number.NEGATIVE_INFINITY?90:Object.is(g,-0)?180:g===0?0:g>0?k*-1:b<e?k*-1:Math.abs(k)+180;return{top:c,left:b,width:d,height:a,rotation:e}},Had=function(a,b,c,d){a=b-a;
c=d-c;return Math.sqrt(a*a+c*c)},Jad=function(a,b){a&&_.v().resolve(_.Xi).resolveCommand(a,{forceClickLogging:!0,
form:{element:b}})},Lad=function(a){var b=a.data;
var c=a.parentContainerWidth;var d=a.parentContainerHeight;var e=_.Rl(),g;return _.q("yt-player-overlay-video-interactions",{el:e,class:"yt-player-overlay-video-interactions__video-interactions-wrapper"},b==null?void 0:(g=b.regions)==null?void 0:g.map(function(k){return Kad(e,b,k,c,d)}))},Kad=function(a,b,c,d,e){function g(){var w,A,C,G,J=(A=_.y((w=m)==null?void 0:w.command,_.Eyb))==null?void 0:(C=A.item)==null?void 0:(G=C.notificationTextRenderer)==null?void 0:G.successResponseText;
if(J)_.ho(a.value,"yt-open-popup-action",[_.$p(J),a.value]);else if(n)Jad(n,k.value);else{var I;Jad((I=m)==null?void 0:I.command,k.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var k=_.Rl();if(c==null||!c.transformationMatrix)throw Error("am");b.trackingParams&&_.ms().graftServerVe(b.trackingParams);c=Iad(c==null?void 0:c.transformationMatrix,d,e);c="left:"+c.left+"px; top:"+(c.top+"px; width:")+(c.width+"px; height:")+(c.height+"px; transform:rotate(")+(c.rotation+"deg);");var m=_.y(b==null?void 0:b.popUp,Mad),n=b==null?void 0:b.command,r=_.y(n,_.kWa)!==void 0;b=b==null?void 0:b.a11yString;d=_.ot(function(){r&&k.value.classList.add("yt-player-overlay-video-interactions__interactions-svg-hover");
k.value.classList.add("yt-player-overlay-video-interactions__interactions-svg-hide-outline");return!1});
e=_.ot(function(){k.value.classList.remove("yt-player-overlay-video-interactions__interactions-svg-hover");k.value.classList.remove("yt-player-overlay-video-interactions__interactions-svg-hide-outline");return!1});
_.Tl(k,"focus",function(){r&&k.value.classList.add("yt-player-overlay-video-interactions__interactions-svg-hover")});
_.Tl(k,"blur",function(){r&&k.value.classList.remove("yt-player-overlay-video-interactions__interactions-svg-hover")});
var t=_.ot(function(){g();return!1}),u=_.ot(function(w){w.key==="Enter"&&g();
return!1});
return _.q("svg",{"on:mouseover":d,"on:mouseout":e,"on:keydown":u,el:k,tabindex:0,"aria-label":b,id:"player-overlay-video-interaction-svg",class:"yt-player-overlay-video-interactions__interactions-svg",role:"button",style:c,"on:click":t})},Nad=function(a){a.unsubscribeFromStore=_.wF(a.storeWithShorts,_.Urc,function(b){a.initOrDisposeActiveModules(b);
!b&&a.storeWithShorts.getState().shorts.isFullscreen&&(_.co(document.documentElement),a.storeWithShorts.dispatch(_.Xrc(!1)))});
a.initOrDisposeActiveModules(_.Urc(a.storeWithShorts.getState()))},Oad=function(a){var b=_.v().resolve(_.kG);
b.rootElement=a;Nad(b)},Pad=function(){return _.v().resolve(_.kG).dismissedIndices},Qad=function(a,b){b=b.getOption("captions","track");
var c=_.lp("/youtube/app/player_caption_language_entity_key","stringEntity",2);if(b){var d;((d=_.tu(_.bPa,c)())==null?void 0:d.value)!==b.displayName&&a.store.dispatch(_.vu("stringEntity",c,{key:c,value:b.displayName||""}))}else a.store.dispatch(_.vu("stringEntity",c,{key:c,value:"CAPTIONS_UNAVAILABLE"}))},Rad=function(a){var b;
(b=a.currentCinematicEffect)==null||b.clear()},Sad=function(a){return _.gp({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:a}})},Tad=function(a){return _.gp({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:a}})},Uad=function(a){return _.gp({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:a}})},o8=function(a,b){if(a instanceof o8)this.array_=a.array_;
else{var c;if(c=_.Sa(a))a:{for(var d=c=0;d<a.length;d++){if(!_.Sa(a[d])||c>0&&a[d].length!=c){c=!1;break a}for(var e=0;e<a[d].length;e++)if(typeof a[d][e]!=="number"){c=!1;break a}c==0&&(c=a[d].length)}c=c!=0}if(c)this.array_=_.Ra(a);else if(a instanceof _.of)this.array_=Vad(a.height,a.width);else if(typeof a==="number"&&typeof b==="number"&&a>0&&b>0)this.array_=Vad(a,b);else throw Error("Tl");}this.size_=new _.of(this.array_[0].length,this.array_.length)},Wad=function(a,b,c){for(var d=0;d<a.getSize().height;d++)for(var e=
0;e<a.getSize().width;e++)b.call(c,a.array_[d][e],d,e,a)},Xad=function(a,b){var c=new o8(a.getSize());
Wad(a,function(d,e,g){c.array_[e][g]=b.call(void 0,d,e,g,a)});
return c},Vad=function(a,b){for(var c=[],d=0;d<a;d++){c[d]=[];
for(var e=0;e<b;e++)c[d][e]=0}return c};
o8.prototype.add=function(a){if(!_.aad(this.size_,a.getSize()))throw Error("Ul");return Xad(this,function(b,c,d){return b+a.array_[c][d]})};
o8.prototype.equals=function(a,b){if(this.size_.width!=a.size_.width||this.size_.height!=a.size_.height)return!1;b=b||0;for(var c=0;c<this.size_.height;c++)for(var d=0;d<this.size_.width;d++)if(!_.$$c(this.array_[c][d],a.array_[c][d],b))return!1;return!0};
o8.prototype.getSize=function(){return this.size_};
var p8=function(a,b,c){return b>=0&&b<a.size_.height&&c>=0&&c<a.size_.width?a.array_[b][c]:null};
o8.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var Gad=function(a,b,c,d){if(!(b>=0&&b<a.size_.height&&c>=0&&c<a.size_.width))throw Error("Vl`"+b+"`"+c+"`"+a.size_.height+"`"+a.size_.width);a.array_[b][c]=d};
o8.prototype.multiply=function(a){if(a instanceof o8){if(this.size_.width!=a.getSize().height)throw Error("Wl");return Yad(this,a)}if(typeof a==="number")return Zad(this,a);throw Error("Xl");};
var Yad=function(a,b){var c=new o8(a.size_.height,b.getSize().width);Wad(c,function(d,e,g){for(var k=d=0;k<this.size_.width;k++)d+=p8(this,e,k)*p8(b,k,g);Gad(c,e,g,d)},a);
return c},Zad=function(a,b){return Xad(a,function(c){return c*b})};var $ad=new _.X("inlineSurveyRenderer");var abd=new _.X("interstitialViewModel");var bbd=new _.X("reelNavigateCommand");var cbd=new _.X("reelNonVideoContentDismissalCommand");var dbd=new _.X("showReelsCommentsOverlayCommand");var Mad=new _.X("videoInteractionPopUpRenderer");var ebd;var fbd;var gbd;var hbd=function(){var a=_.P.apply(this,arguments)||this;a.ctaVisualElement=null;a.currentCsn=null;return a};
_.z(hbd,_.P);_.f=hbd.prototype;_.f.onDataChanged=function(){this.maybeLogShows()};
_.f.computeButtonShape=function(){var a=this;if(this.data)return{buttonText:_.Vp(this.data.text),state:"active",onTap:function(){a.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.f.maybeCreateCtaVe=function(){var a;if((a=this.data)!=null&&a.badgeInteractionLogging){var b;if(a=(b=this.data.badgeInteractionLogging)==null?void 0:b.trackingParams)this.ctaVisualElement=_.qs(a)}};
_.f.maybeLogClicks=function(){this.currentCsn=_.Fn(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.Vo(this.currentCsn,this.ctaVisualElement)};
_.f.maybeLogShows=function(){this.currentCsn=_.Fn(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.To(this.currentCsn,[this.ctaVisualElement])};
_.f.onTap=function(){var a;if((a=this.data)!=null&&a.onClickCommand){var b;this.ytComponentBehavior.resolveCommand((b=this.data)==null?void 0:b.onClickCommand);this.maybeLogClicks()}};
var q8=hbd;q8.prototype.onDataChanged=q8.prototype.onDataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],q8.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],q8.prototype,"ytComponentBehavior",void 0);_.U([_.O({}),_.W("design:type",Object)],q8.prototype,"data",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],q8.prototype,"onDataChanged",null);
q8=_.U([_.Q({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],q8);
_.S(q8,"ytd-shopping-overlay-badge-renderer",function(){if(gbd!==void 0)return gbd;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return gbd=a},{mode:1});_.Ws(_.Chc,"reel-sound-metadata-view-model",{props:{data:_.Vs}});_.Ws(_.pkc,"player-disclosure-view-model",{props:{data:_.SG}});_.Ws(_.n4b,"pivot-button-view-model",{props:{data:_.Vs,className:_.Vs}});_.Ws(_.o4b,"reel-action-bar-view-model",{props:{data:_.SG,buttonShapeOverrideables:_.SG}});_.am(Lad);_.dt(Lad,"yt-player-overlay-video-interactions",{propNames:["data","parentContainerWidth","parentContainerHeight"]});_.Ws(_.ukc,"yt-reel-metapanel-view-model",{props:{data:_.SG}});var ibd=function(){var a=_.P.apply(this,arguments)||this;a.showScrubber=!1;a.isWatchWhileMode=!1;a.enableAnchoredPanel=_.x("desktop_shorts_v2_anchored_panel");a.anchoredPanelActive=!1;a.enableLivingroomLayout=_.x("reels_enable_livingroom_layout");a.enablePlayerMetadataContainer=_.x("reels_web_enable_metadata_container");a.enableSqueezebackPanels=_.x("web_shorts_enable_squeezeback_panels");a.isSqueezebackActive=!1;a.smallScreenSqueezeback=!1;a.isPlayerStarted=!1;a.overlayDensity=0;a.isOverlay=!1;a.isImmersive=
!1;a.isImmersiveHorizontal=!1;a.isFullscreen=!1;a.onWindowResized=function(){var b;a.set("isImmersive",((b=window.getComputedStyle(a.hostElement))==null?void 0:b.getPropertyValue("--immersive-mode-on"))==="1");a.set("isImmersiveHorizontal",a.isImmersive&&a.enableLivingroomLayout&&!a.isWatchWhileMode);a.setPlayerDimensions()};
return a};
_.z(ibd,_.P);_.f=ibd.prototype;_.f.updateIsOverlay=function(a){this.isOverlay=a.detail.value};
_.f.computeIsShortsOverlay=function(){this.enableLivingroomLayout&&(this.isWatchWhileMode?(this.isImmersiveHorizontal=!1,this.isOverlay=!0):(!this.isOverlay&&this.isImmersive&&(this.isImmersiveHorizontal=!0),this.isOverlay=!1));if(_.x("web_enable_flexible_overlay")||_.x("web_enable_format_first")||_.x("web_enable_format_first_organic_only"))this.isOverlay=this.overlayDensity===2;return this.isWatchWhileMode&&!this.enableAnchoredPanel&&!this.enableLivingroomLayout||this.isOverlay};
_.f.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.f.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.f.onDataChanged=function(){this.setPlayerDimensions()};
_.f.computeButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.f.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.f.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.f.ready=function(){this.get("data.likeButton")||this.get("data.viewCommentsButton")||this.get("data.shareButton")||this.get("data.remixButton")||this.get("data.menu")||this.get("data.subscribeButtonRenderer")||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.aj("reels_metadata_justified_content")||"flex-start");this.hostElement.style.setProperty("--action-justify-content",_.aj("reels_action_justified_content")||"flex-start")};
_.f.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.metapanel":{id:"metapanel",mapping:{reelMetapanelViewModel:{component:"yt-reel-metapanel-view-model"}},renderPriority:0},"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}},
renderPriority:0},"data.disclosure":{id:"disclosure",mapping:{playerDisclosureViewModel:{component:"player-disclosure-view-model"}},renderPriority:0},"data.infoPanel":{id:"info-panel",mapping:{infoPanelContainerRenderer:{component:"ytd-info-panel-container-renderer",params:{roundedContainer:!1}}},renderPriority:0}}};
_.f.setFakeLoadingButtons=function(){this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.to("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.to("DISLIKE_LABEL",void 0,"Dislike")}}});this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.to("COMMENT_LABEL",void 0,"Comment")}}});this.set("data.shareButton",{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.to("SHARE_LABEL",
void 0,"Share")}}});_.x("web_enable_shorts_remix_handoff_ep")&&this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.to("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()};
_.f.setEmptyOverlayMetadata=function(){_.x("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}))};
_.f.setPlayerDimensions=function(){var a=document.getElementById("short-video-container"),b,c;a&&((b=this.data)==null?0:(c=b.videoInteractions)==null?0:c.interactions)&&(this.playerContainerHeight=a.getBoundingClientRect().height,this.playerContainerWidth=a.getBoundingClientRect().width)};
_.Vm.Object.defineProperties(ibd.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.infoPanel)}}});
var r8=ibd;r8.prototype.onDataChanged=r8.prototype.onDataChanged;r8.prototype.onIsActiveChanged=r8.prototype.onIsActiveChanged;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],r8.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],r8.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],r8.prototype,"ytdReduxBehavior",void 0);
_.U([_.H(_.SI.YtdGuideStateAwareBehavior),_.W("design:type",Object)],r8.prototype,"ytdGuideStateAwareBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],r8.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Boolean)],r8.prototype,"isActive",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],r8.prototype,"hidden",void 0);_.U([_.O({value:!0}),_.W("design:type",Boolean)],r8.prototype,"useShortsIcon",void 0);
_.U([_.O({value:"left"}),_.W("design:type",String)],r8.prototype,"buttonTooltipPosition",void 0);_.U([_.O({value:_.x("reels_enable_livingroom_layout")?"top":"left"}),_.W("design:type",String)],r8.prototype,"likeButtonTooltipPosition",void 0);_.U([_.O({value:"none"}),_.W("design:type",String)],r8.prototype,"textTransform",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],r8.prototype,"showScrubber",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],r8.prototype,"isWatchWhileMode",void 0);_.U([_.O({reflectToAttribute:!0}),_.K("data.infoPanel"),_.W("design:type",Object),_.W("design:paramtypes",[])],r8.prototype,"hasInfoPanel",null);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],r8.prototype,"enableAnchoredPanel",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],r8.prototype,"anchoredPanelActive",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],r8.prototype,"enableLivingroomLayout",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],r8.prototype,"enablePlayerMetadataContainer",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],r8.prototype,"enableSqueezebackPanels",void 0);_.U([_.O({selector:_.k0a,reflectToAttribute:!0}),_.W("design:type",Object)],r8.prototype,"isSqueezebackActive",void 0);
_.U([_.O({selector:Ead,reflectToAttribute:!0}),_.W("design:type",Object)],r8.prototype,"smallScreenSqueezeback",void 0);_.U([_.O({selector:Fad}),_.W("design:type",Object)],r8.prototype,"isPlayerStarted",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],r8.prototype,"overlayDensity",void 0);_.U([_.O(),_.W("design:type",Object)],r8.prototype,"isOverlay",void 0);
_.U([_.O({computed:"computeIsShortsOverlay(isOverlay, isWatchWhileMode, overlayDensity)"}),_.W("design:type",Boolean)],r8.prototype,"isShortsOverlay",void 0);_.U([_.O(),_.W("design:type",Object)],r8.prototype,"isImmersive",void 0);_.U([_.O(),_.W("design:type",Object)],r8.prototype,"isImmersiveHorizontal",void 0);_.U([_.O({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.W("design:type",Boolean)],r8.prototype,"isShortsImmersive",void 0);
_.U([_.O({computed:"computeButtonOverride(isOverlay, isWatchWhileMode)"}),_.W("design:type",Object)],r8.prototype,"buttonOverride",void 0);_.U([_.O(),_.W("design:type",Number)],r8.prototype,"playerContainerHeight",void 0);_.U([_.O(),_.W("design:type",Number)],r8.prototype,"playerContainerWidth",void 0);_.U([_.O({selector:_.Av,reflectToAttribute:!0}),_.W("design:type",Object)],r8.prototype,"isFullscreen",void 0);
_.U([_.N("isActive"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],r8.prototype,"onIsActiveChanged",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],r8.prototype,"onDataChanged",null);r8=_.U([_.Q({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],r8);
_.S(r8,"ytd-reel-player-overlay-renderer",function(){if(fbd!==void 0)return fbd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-player-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-container style-scope ytd-reel-player-overlay-renderer" role="heading" aria-level="1">\n  <div id="overlay" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-video-interactions data="[[item]]" parent-container-height="[[playerContainerHeight]]" parent-container-width="[[playerContainerWidth]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-video-interactions>\n      </template>\n    <div id="metapanel" hidden="[[!data.metapanel]]" class="style-scope ytd-reel-player-overlay-renderer"></div>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[data.buttonBar]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="button-bar" class="style-scope ytd-reel-player-overlay-renderer">\n        <reel-action-bar-view-model button-shape-overrideables="[[buttonOverride]]" data="[[data.buttonBar.reelActionBarViewModel]]" class="style-scope ytd-reel-player-overlay-renderer"></reel-action-bar-view-model>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.likeButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="like-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-like-button-renderer button-tooltip-position="[[likeButtonTooltipPosition]]" data="[[data.likeButton.likeButtonRenderer]]" overrides="[[buttonOverride]]" text-transform="[[textTransform]]" use-shorts-icon="[[useShortsIcon]]" vertical="[[!isImmersiveHorizontal]]" class="style-scope ytd-reel-player-overlay-renderer"></ytd-like-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.viewCommentsButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="comments-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.viewCommentsButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.shareButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="share-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.shareButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.remixButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="remix-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.remixButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <div id="menu-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n      <ytd-menu-renderer data="[[data.menu.menuRenderer]]" is-overlay="[[isShortsOverlay]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-menu-renderer>\n    </div>\n    <div id="pivot-button" class="button-container style-scope ytd-reel-player-overlay-renderer" tabindex="0"></div>\n  </div>\n</div>\n<iron-media-query id="overlay-query" query="(max-width: 599px)" query-matches="[[isOverlay]]" on-query-matches-changed="updateIsOverlay" class="style-scope ytd-reel-player-overlay-renderer"></iron-media-query>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return fbd=a},{mode:1});var jbd;var s8=function(){var a=_.P.apply(this,arguments)||this;a.videoDuration=0;a.playedTime=0;a.isActive=!1;a.JSC$19414_playerEvents=new Map;return a};
_.z(s8,_.P);_.f=s8.prototype;_.f.created=function(){this.JSC$19414_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$19414_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.f.attached=function(){this.getPlayerAndInitializeListeners()};
_.f.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19414_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.er(this,this.onPageChanged))};
_.f.getPlayerAndInitializeListeners=function(){var a=this,b;return _.l(function(c){if(c.nextAddress==1)return b=_.bu(),b?_.p(c,b.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.er(a,a.onPageChanged)),c.jumpTo(0));a.player=c.yieldResult;a.initializePlayerListeners();_.se(c)})};
_.f.onPageChanged=function(a){var b=this;return _.l(function(c){if(c.nextAddress==1)return a.detail.newPageType!=="ytd-shorts"?c.return():_.p(c,_.cu().getPlayerPromise(),2);b.player=c.yieldResult;b.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.er(b,b.onPageChanged));_.se(c)})};
_.f.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19414_playerEvents)};
_.f.onVideoDataChange=function(a){var b=this;return _.l(function(c){if(!b.player||a.type!=="newdata")return c.return();b.videoDuration=_.x("web_shorts_use_progress_state_for_gapless")?b.player.getProgressState(a.playertype).seekableEnd:b.player.getDuration(a.playertype);b.playedTime=0;_.se(c)})};
_.f.onVideoProgress=function(a){var b=this,c,d;return _.l(function(e){if(!b.player)return e.return();c=b.player.getPresentingPlayerType();d=b.player.getPlayerState();b.videoDuration=_.x("web_shorts_use_progress_state_for_gapless")?b.player.getProgressState(c).seekableEnd:b.player.getDuration(c);b.playedTime=d===0?b.videoDuration:a;_.se(e)})};
_.f.getPercentPlayed=function(a,b){return a?_.Qw(b/a,0,1):0};
_.Vm.Object.defineProperties(s8.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 a="";return a=this.videoDuration&&this.playedTime?a+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):a+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],s8.prototype,"componentBehavior",void 0);_.U([_.H(_.YI.YtPlayerListenerBehavior),_.W("design:type",_.ZI)],s8.prototype,"ytPlayerListenerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],s8.prototype,"player",void 0);_.U([_.O(),_.W("design:type",Object)],s8.prototype,"videoDuration",void 0);_.U([_.O(),_.W("design:type",Object)],s8.prototype,"playedTime",void 0);_.U([_.O(),_.W("design:type",Object)],s8.prototype,"isActive",void 0);
_.U([_.K("videoDuration","playedTime"),_.W("design:type",Number),_.W("design:paramtypes",[])],s8.prototype,"percentPlayed",null);_.U([_.K("videoDuration","playedTime"),_.W("design:type",Object),_.W("design:paramtypes",[])],s8.prototype,"percentPlayedStyle",null);_.U([_.K("videoDuration","isActive"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],s8.prototype,"hideProgressBar",null);
_.S(s8,"ytd-progress-bar-line",function(){if(jbd===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);jbd=a}a=jbd;return a},{mode:_.as("kevlar_poly_si_batch_j028")?1:2});var kbd;_.dt(_.q7a,"desktop-shorts-volume-controls",{propNames:["noSlider"]});var t8=function(){var a=_.P.apply(this,arguments)||this;a.playerState=null;a.isMuted=!1;a.shortsPipButtonEnabled=_.x("web_shorts_pip_button");a.JSC$19418_playerEvents=new Map;a.shortsPipButtonData={disabled:!1,iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal"};return a};
_.z(t8,_.P);_.f=t8.prototype;_.f.created=function(){this.JSC$19418_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19418_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange)};
_.f.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.lu(28662);this.playPauseButtonClientVE=_.lu(36842);this.fullscreenButtonToggleOffClientVE=_.lu(222256);this.fullscreenButtonToggleOnClientVE=_.lu(222257);var a=_.Fn(),b=_.En();a&&b&&(_.x("combine_ve_grafts")?(_.nF(_.ms(),this.muteButtonClientVE,b),_.nF(_.ms(),this.playPauseButtonClientVE,b)):_.eY(a,b,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.f.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19418_playerEvents),this.player=null)};
_.f.getPlayerAndInitializeListeners=function(){var a=this,b;return _.l(function(c){if(c.nextAddress==1)return b=_.bu(),b===null?(document.addEventListener("yt-page-type-changed",_.er(a,a.onPageChanged)),c.jumpTo(0)):_.p(c,b.getPlayerPromise(),3);a.player=c.yieldResult;a.initializePlayerListeners();_.se(c)})};
_.f.onPageChanged=function(a){var b=this;return _.l(function(c){if(c.nextAddress==1)return a.detail.newPageType!=="ytd-shorts"?c.return():_.p(c,_.cu().getPlayerPromise(),2);b.player=c.yieldResult;b.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.er(b,b.onPageChanged));_.se(c)})};
_.f.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19418_playerEvents)};
_.f.onPlayerStateChange=function(a){this.playerState=a};
_.f.onPlayerVolumeChange=function(a){this.isMuted=a.muted};
_.f.onPlayPauseButtonClick=function(){var a=this,b,c;return _.l(function(d){if(d.nextAddress==1)return _.p(d,_.cu().getPlayerPromise(),2);b=d.yieldResult;(c=_.Fn())&&a.playPauseButtonClientVE&&_.Vo(c,a.playPauseButtonClientVE);b.getPlayerState()!==1?b.playVideo():b.pauseVideo();_.se(d)})};
_.f.computePlayPauseIcon=function(a){return a===2||a===-1||a===5?"PLAY_ARROW_FILLED":"miniplayer:shorts-pause"};
_.f.computeFullscreenLabel=function(a){return a?_.to("FULLSCREEN_EXIT_LABEL"):_.to("FULLSCREEN_ENTER_LABEL")};
_.f.computePlayPauseLabel=function(a){return a===1||a===3?_.to("PLAYER_LABEL_PAUSE"):_.to("PLAYER_LABEL_PLAY")};
_.f.onMuteButtonClick=function(){var a=this,b,c;return _.l(function(d){if(d.nextAddress==1)return _.p(d,_.cu().getPlayerPromise(),2);b=d.yieldResult;(c=_.Fn())&&a.muteButtonClientVE&&_.Vo(c,a.muteButtonClientVE);b.isMuted()?b.unMute(!0):b.mute(!0);_.se(d)})};
_.f.computeMuteIcon=function(a){return a?"miniplayer:volume-off":"miniplayer:volume-up"};
_.f.computeMuteLabel=function(a){return a?_.to("PLAYER_LABEL_UNMUTE"):_.to("PLAYER_LABEL_MUTE")};
_.f.onFullscreenButtonClick=function(){var a=_.Fn();a&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.Vo(a,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.Vo(a,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.Yrc()};
_.f.onShortsPipButtonClick=function(){var a=_.v().resolve(_.kG);if(_.x("web_shorts_pip")){var b=_.v().resolve(_.Vw);a.isShortsPipActive()?b.deactivate():b.isMiniplayerActive()||(_.uF().shortsPipActivation=!0,_.ykc(b))}};
_.Vm.Object.defineProperties(t8.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var a=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(){a.onPlayPauseButtonClick()}}}},
fullscreenButtonData:{configurable:!0,enumerable:!0,get:function(){return{disabled:!1,accessibilityLabel:this.computeFullscreenLabel(this.isFullscreen),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computeFullscreenLabel(this.isFullscreen)}}},
fullscreenIcon:{configurable:!0,enumerable:!0,get:function(){return this.isFullscreen?"screen_full_exit":"screen_full"}},
shortsPipIcon:{configurable:!0,enumerable:!0,get:function(){return this.isShortsPipActive?"miniplayer_exit":"picture_in_picture"}}});
_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],t8.prototype,"componentBehavior",void 0);_.U([_.H(_.YI.YtPlayerListenerBehavior),_.W("design:type",_.ZI)],t8.prototype,"ytPlayerListenerBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],t8.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],t8.prototype,"player",void 0);_.U([_.O(),_.W("design:type",Object)],t8.prototype,"playerState",void 0);_.U([_.O(),_.W("design:type",Object)],t8.prototype,"isMuted",void 0);
_.U([_.O({computed:"computePlayPauseIcon(playerState)"}),_.W("design:type",String)],t8.prototype,"playPauseIcon",void 0);_.U([_.O({computed:"computeMuteIcon(isMuted)"}),_.W("design:type",String)],t8.prototype,"muteIcon",void 0);_.U([_.O({selector:_.Av}),_.W("design:type",Boolean)],t8.prototype,"isFullscreen",void 0);_.U([_.O({selector:_.Bv}),_.W("design:type",Boolean)],t8.prototype,"isShortsPipActive",void 0);_.U([_.O(),_.W("design:type",Object)],t8.prototype,"shortsPipButtonEnabled",void 0);
_.U([_.O(),_.W("design:type",Object)],t8.prototype,"shortsPipButtonData",void 0);_.U([_.K("playerState"),_.W("design:type",Object),_.W("design:paramtypes",[])],t8.prototype,"playPauseButtonData",null);_.U([_.K("isFullscreen"),_.W("design:type",Object),_.W("design:paramtypes",[])],t8.prototype,"fullscreenButtonData",null);_.U([_.K("isFullscreen"),_.W("design:type",String),_.W("design:paramtypes",[])],t8.prototype,"fullscreenIcon",null);
_.U([_.K("isShortsPipActive"),_.W("design:type",String),_.W("design:paramtypes",[])],t8.prototype,"shortsPipIcon",null);
_.S(t8,"ytd-shorts-player-controls",function(){if(kbd===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts-player-controls--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n</yt-button-shape>\n<desktop-shorts-volume-controls class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n<yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n</yt-button-shape>\n<template is="dom-if" if="[[shortsPipButtonEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <yt-button-shape id="shorts-pip-button-shape" data="[[shortsPipButtonData]]" icon-name="[[shortsPipIcon]]" on-click="onShortsPipButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</template>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);kbd=a}a=kbd;return a},{mode:1});var lbd;_.Ws(_.pec,"yt-interstitial-view-model",{props:{data:_.SG}});var mbd=_.Rr(function(a){var b=a.data;return _.q("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.q("h1",{class:"reelWatchBreakViewModelHostTitle"},_.q(_.wt,{text:function(){return b().title}})),_.q("h2",{class:"reelWatchBreakViewModelHostBody"},_.q(_.wt,{text:function(){return b().body},
isOverlay:!0})),_.q(_.Eu,{data:function(){return b().buttons}},{buttonViewModel:function(c,d){return _.q("div",{class:function(){return d()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.q(_.Ju,{data:c.data}))}}))});
mbd.idomCompat=!0;_.Ws(mbd,"reel-watch-break-view-model",{props:{data:_.SG}});var nbd=function(){return _.P.apply(this,arguments)||this};
_.z(nbd,_.P);nbd.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}}};
_.Vm.Object.defineProperties(nbd.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var a;return!!_.y((a=this.data)==null?void 0:a.renderer,$ad)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var a;return!!_.y((a=this.data)==null?void 0:a.renderer,abd)}}});
var u8=nbd;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],u8.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],u8.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],u8.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],u8.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.K("data.renderer"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],u8.prototype,"isSurvey",null);_.U([_.O({reflectToAttribute:!0}),_.K("data.renderer"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],u8.prototype,"isInterstitialViewModel",null);u8=_.U([_.Q({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],u8);
_.S(u8,"ytd-reel-non-video-content-renderer",function(){if(lbd!==void 0)return lbd;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);
return lbd=a},{mode:_.as("kevlar_poly_si_batch_j028")?1:2});var obd;_.Ws(_.okc,"desktop-shorts-player-controls",{});var pbd=function(){var a=_.P.apply(this,arguments)||this;a.isPlayerPaused=!1;a.isPlayerStarted=!1;a.showPlayerControls=!1;a.showScrubber=!1;a.autoHideJobId=0;a.backgroundImageJobId=0;a.modern=_.x("web_button_rework");a.overlayType=_.aj("web_shorts_expanded_overlay_type");a.panelData=void 0;a.isWatchWhileMode=!1;a.hasError=!1;a.panelShowDelayMs=1;a.scrubberComponent={};a.useStamper=_.x("web_shorts_enable_title_deflation");a.isFullscreen=!1;a.shouldHideOverlay=!1;a.enableAnchoredPanel=_.x("desktop_shorts_v2_anchored_panel");
a.enablePersistentAnchoredPanel=_.x("desktop_shorts_v2_persistent_anchored_panel");a.hideWatchWhilePanel=_.x("web_shorts_hide_watch_while_panel");a.isPersistentPanelActive=!1;a.anchoredPanelActive=!1;a.enableNewCarousel=_.x("web_enable_shorts_new_carousel_single_instance");a.isShortsPipActive=!1;a.smallScreenSqueezeback=!1;a.enableFlexibleOverlay=_.x("web_enable_flexible_overlay");a.aspectRatio=.5625;a.overlayDensity=0;a.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand",
"yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};a.onWindowResized=function(){_.Dr(a,"calculateOverlayDensity",function(){a.calculateOverlayDensity()},100)};
return a};
_.z(pbd,_.P);_.f=pbd.prototype;_.f.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.f.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.f.shouldRenderOverlayControl=function(a){return!this.useStamper&&this.isVideoContent(a)};
_.f.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var a=_.v().resolve(_.FJ);this.isWatchWhileMode&&(_.x("web_enable_shorts_new_carousel")?_.zk.addJob(function(){a.showPanel("shorts-comments-panel",void 0,void 0,void 0,null)},0):a.showPanel("shorts-comments-panel",void 0,void 0,void 0,null))}}else this.panelData=void 0};
_.f.handleShowReelsCommentsOverlayCommand=function(a){a=_.y(a,dbd);this.isActive&&(a==null?0:a.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))};
_.f.updateEngagementPanelVisibility=function(a,b){a&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:b?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:a}})};
_.f.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.f.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.v().resolve(_.kG).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.f.handleWatchWhilePanelScrimClick=function(){var a=_.v().resolve(_.FJ);this.activeWatchWhilePanel&&(a.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.f.attached=function(){this.isFirstReel()&&this.handlePlayerClick();(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.addEventListener("resize",this.onWindowResized)};
_.f.configureRendererStamper=function(){return{scrubberComponent:{id:"scrubber",mapping:{desktopShortsPlayerControls:{component:"desktop-shorts-player-controls"}},initialRenderPriority:2},overlayComponent:{id:"experiment-overlay",mapping:{reelPlayerOverlayRenderer:{component:"ytd-reel-player-overlay-renderer",properties:{anchoredPanelActive:"[[anchoredPanelActive]]",disableUpgrade:"[[shouldHideOverlay]]",hidden:"[[shouldHideOverlay]]",isActive:"[[isActive]]",isWatchWhileMode:"[[watchWhileOrPersistentActive]]",
overlayDensity:"[[overlayDensity]]",showScrubber:"[[showScrubber]]"}},adsOverlay:{component:"ytd-ad-slot-renderer",properties:{overlayDensity:"[[overlayDensity]]"}}},renderPriority:_.x("web_enable_shorts_new_carousel")?0:void 0}}};
_.f.handlePlayerClick=function(a){var b=this,c,d;if((d=(c=window).matchMedia)!=null&&d.call(c,"(any-pointer: coarse)").matches||!a)this.showPlayerControls=!0,_.zk.cancelJob(this.autoHideJobId),this.autoHideJobId=_.ul(_.zk,function(){b.showPlayerControls=!1},4E3)};
_.f.isFirstReel=function(){return this.index===0};
_.f.handleMouseenter=function(){_.zk.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.f.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.f.handleScrubberEnter=function(){this.showScrubber=!0};
_.f.handleScrubberLeave=function(){this.showScrubber=!1};
_.f.onAspectRatioChange=function(){var a=this,b;return _.l(function(c){if(c.nextAddress==1)return a.hostElement.style.setProperty("--ytd-shorts-player-ratio",""+a.aspectRatio),a.isActive?_.p(c,_.v().resolve(_.kG).playerApi,3):c.jumpTo(0);(b=c.yieldResult)&&b.setSize(NaN,NaN);_.se(c)})};
_.f.updateBackgroundImage=function(){var a=this,b;if((b=this.data)!=null&&b.thumbnail){var c=(b=_.Ys(this.data.thumbnail.thumbnails))?'background-image:url("'+b+'");':"",d;c.toString()!==((d=this.backgroundImage)==null?void 0:d.toString())&&(this.isActive?this.backgroundImage=c:(_.zk.cancelJob(this.backgroundImageJobId),this.backgroundImageJobId=_.ul(_.zk,function(){a.isAttached&&(a.backgroundImage=c)},1E3)))}else this.backgroundImage=void 0};
_.f.setAspectRatio=function(){var a;(a=this.data)!=null&&a.thumbnail&&(this.isActive&&.5625!==Dad(this.data.thumbnail)&&_.zt("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO"),this.enableFormatFirst&&(this.aspectRatio=this.isPersistentPanelActive?.5625:Dad(this.data.thumbnail)))};
_.f.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst)if(this.isPersistentPanelActive)this.overlayDensity=0;else{var a=document.querySelector("#shorts-container");a&&(a=a.offsetWidth-96-this.playerContainer.offsetWidth-72,a=a>=720?1:a>=360?0:2,this.enableFormatFirst&&!this.enableFlexibleOverlay&&a===1&&(a=0),this.overlayDensity=a)}};
_.f.onOverlayDensityChange=function(){var a=_.E(this.hostElement).querySelector("ytd-reel-player-overlay-renderer");a&&a.set("overlayDensity",this.overlayDensity);if(a=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))a.overlayDensity=this.overlayDensity};
_.f.isVideoContent=function(a){_.v().resolve(_.kG);return!!_.y(a,_.tq)};
_.f.isNonVideoContent=function(a){_.v().resolve(_.kG);return!!_.y(a,_.ME)};
_.f.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.Vm.Object.defineProperties(pbd.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var a,b;return _.x("web_enable_format_first")||((a=this.data)==null?void 0:a.adsOverlay)&&_.x("web_enable_format_first_ads_only")||((b=this.data)==null?void 0:b.reelPlayerOverlayRenderer)&&_.x("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var a;return!this.isActive||!this.isPlayerStarted||(a=this.data)!=null&&a.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var a;if(this.useStamper&&((a=this.data)==null?0:a.command)&&this.isVideoContent(this.data.command)){var b,c;if(((b=this.data)==null?0:b.adsOverlay)&&Object.keys((c=this.data)==null?void 0:c.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var d,e;if(((d=this.data)==null?0:d.reelPlayerOverlayRenderer)&&Object.keys((e=this.data)==null?void 0:e.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
var v8=pbd;v8.prototype.onOverlayDensityChange=v8.prototype.onOverlayDensityChange;v8.prototype.calculateOverlayDensity=v8.prototype.calculateOverlayDensity;v8.prototype.setAspectRatio=v8.prototype.setAspectRatio;v8.prototype.updateBackgroundImage=v8.prototype.updateBackgroundImage;v8.prototype.onAspectRatioChange=v8.prototype.onAspectRatioChange;v8.prototype.onEngagementPanelsChanged=v8.prototype.onEngagementPanelsChanged;v8.prototype.onScrubberDataChange=v8.prototype.onScrubberDataChange;
v8.prototype.updateShouldHideOverlay=v8.prototype.updateShouldHideOverlay;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],v8.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],v8.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.SI.YtdGuideStateAwareBehavior),_.W("design:type",Object)],v8.prototype,"ytdGuideStateAwareBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],v8.prototype,"data",void 0);
_.U([_.O(),_.W("design:type",Number)],v8.prototype,"index",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],v8.prototype,"isActive",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],v8.prototype,"isHiddenInDom",void 0);_.U([_.O(),_.W("design:type",Object)],v8.prototype,"isPlayerPaused",void 0);_.U([_.O({selector:Fad}),_.W("design:type",Object)],v8.prototype,"isPlayerStarted",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],v8.prototype,"showPlayerControls",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],v8.prototype,"showScrubber",void 0);_.U([_.O(),_.W("design:type",Object)],v8.prototype,"autoHideJobId",void 0);_.U([_.O(),_.W("design:type",Object)],v8.prototype,"backgroundImageJobId",void 0);_.U([_.O(),_.W("design:type",Object)],v8.prototype,"backgroundImage",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],v8.prototype,"modern",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],v8.prototype,"overlayType",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],v8.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],v8.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],v8.prototype,"watchWhileEngagementPanels",void 0);
_.U([_.O(),_.W("design:type",Object)],v8.prototype,"panelData",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],v8.prototype,"isWatchWhileMode",void 0);_.U([_.O(),_.W("design:type",String)],v8.prototype,"activeWatchWhilePanel",void 0);_.U([_.O(),_.W("design:type",Object)],v8.prototype,"hasError",void 0);_.U([_.O(),_.W("design:type",Object)],v8.prototype,"panelShowDelayMs",void 0);_.U([_.O(),_.W("design:type",Object)],v8.prototype,"scrubberComponent",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],v8.prototype,"useStamper",void 0);_.U([_.O({selector:_.Av,reflectToAttribute:!0}),_.W("design:type",Object)],v8.prototype,"isFullscreen",void 0);_.U([_.O(),_.W("design:type",Object)],v8.prototype,"shouldHideOverlay",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],v8.prototype,"enableAnchoredPanel",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],v8.prototype,"enablePersistentAnchoredPanel",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],v8.prototype,"hideWatchWhilePanel",void 0);_.U([_.O({selector:_.k0a,reflectToAttribute:!0}),_.W("design:type",Object)],v8.prototype,"isPersistentPanelActive",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],v8.prototype,"anchoredPanelActive",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],v8.prototype,"enableNewCarousel",void 0);
_.U([_.O({selector:_.Bv,reflectToAttribute:!0}),_.W("design:type",Object)],v8.prototype,"isShortsPipActive",void 0);_.U([_.O({selector:Ead,reflectToAttribute:!0}),_.W("design:type",Object)],v8.prototype,"smallScreenSqueezeback",void 0);_.U([_.O({reflectToAttribute:!0}),_.K("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.W("design:type",Object),_.W("design:paramtypes",[])],v8.prototype,"enableFormatFirst",null);_.U([_.O(),_.W("design:type",Object)],v8.prototype,"enableFlexibleOverlay",void 0);
_.U([_.O(),_.W("design:type",Object)],v8.prototype,"aspectRatio",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],v8.prototype,"overlayDensity",void 0);_.U([_.O(),_.K("isActive","hasError"),_.W("design:type",Object),_.W("design:paramtypes",[])],v8.prototype,"shouldRenderPlayerElements",null);_.U([_.O(),_.K("isActive","isWatchWhileMode"),_.W("design:type",Object),_.W("design:paramtypes",[])],v8.prototype,"watchWhileOrPersistentActive",null);
_.U([_.N("isActive","hasError","showingExpandedOverlay"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],v8.prototype,"updateShouldHideOverlay",null);_.U([_.O({reflectToAttribute:!0}),_.K("isActive","isPlayerStarted","data"),_.W("design:type",Object),_.W("design:paramtypes",[])],v8.prototype,"shouldRenderScrubber",null);
_.U([_.N("shouldRenderScrubber"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],v8.prototype,"onScrubberDataChange",null);_.U([_.K("useStamper","data.adsOverlay","data.reelPlayerOverlayRenderer"),_.W("design:type",Object),_.W("design:paramtypes",[])],v8.prototype,"overlayComponent",null);_.U([_.N("watchWhileEngagementPanels"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],v8.prototype,"onEngagementPanelsChanged",null);
_.U([_.gr("#player-container"),_.W("design:type",HTMLElement)],v8.prototype,"playerContainer",void 0);_.U([_.gr("#cinematic-container"),_.W("design:type",HTMLElement)],v8.prototype,"cinematicContainer",void 0);_.U([_.N("aspectRatio"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype",Promise)],v8.prototype,"onAspectRatioChange",null);
_.U([_.N("data.thumbnail"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],v8.prototype,"updateBackgroundImage",null);_.U([_.N("isPersistentPanelActive","data.thumbnail"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],v8.prototype,"setAspectRatio",null);_.U([_.N("isPersistentPanelActive"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],v8.prototype,"calculateOverlayDensity",null);
_.U([_.N("overlayDensity"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],v8.prototype,"onOverlayDensityChange",null);v8=_.U([_.Q({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],v8);
_.S(v8,"ytd-reel-video-renderer",function(){if(obd!==void 0)return obd;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="short-video-container style-scope ytd-reel-video-renderer" id="short-video-container" hidden="[[!isVideoContent(data.command)]]">\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave" style$="[[backgroundImage]]">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n        <div class="player-controls style-scope ytd-reel-video-renderer">\n          <template is="dom-if" if="[[enableNewCarousel]]" class="style-scope ytd-reel-video-renderer">\n            <ytd-shorts-player-controls disable-upgrade="[[!isActive]]" class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\n          </template>\n          <template is="dom-if" if="[[!enableNewCarousel]]" class="style-scope ytd-reel-video-renderer">\n            <ytd-shorts-player-controls class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\n          </template>\n        </div>\n      </template>\n    </div>\n    <div id="scrubber" on-mouseenter="handleScrubberEnter" on-mouseleave="handleScrubberLeave" class="style-scope ytd-reel-video-renderer">\n    </div>\n  </div>\n</div>\n<div id="experiment-overlay" class="overlay style-scope ytd-reel-video-renderer"></div>\n<template is="dom-if" if="[[shouldRenderOverlayControl(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <div id="control-overlay" class="overlay style-scope ytd-reel-video-renderer">\n    <template is="dom-if" if="[[data.reelPlayerOverlayRenderer]]" class="style-scope ytd-reel-video-renderer">\n      <ytd-reel-player-overlay-renderer anchored-panel-active="[[anchoredPanelActive]]" data="[[data.reelPlayerOverlayRenderer]]" disable-upgrade="[[shouldHideOverlay]]" hidden="[[shouldHideOverlay]]" is-active="[[isActive]]" is-player-started="[[isPlayerStarted]]" is-watch-while-mode="[[watchWhileOrPersistentActive]]" show-scrubber="[[showScrubber]]" class="style-scope ytd-reel-video-renderer"></ytd-reel-player-overlay-renderer>\n    </template>\n    <template is="dom-if" if="[[data.adsOverlay]]" class="style-scope ytd-reel-video-renderer">\n      <ytd-ad-slot-renderer data="[[data.adsOverlay]]" class="style-scope ytd-reel-video-renderer"></ytd-ad-slot-renderer>\n    </template>\n  </div>\n</template>\n<template is="dom-if" if="[[isNonVideoContent(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <ytd-reel-non-video-content-renderer data="[[data.reelNonVideoContentRenderer]]" class="style-scope ytd-reel-video-renderer">\n  </ytd-reel-non-video-content-renderer>\n</template>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return obd=a},{mode:_.as("kevlar_poly_si_batch_j028")?1:2});var qbd=function(){var a=_.P.apply(this,arguments)||this;a.isPreviousPageShorts=!1;a.index=0;a.delayedActiveIndex=0;a.playablePreviousIndex=null;a.isPlayerPaused=!1;a.isPlayerStarted=!1;a.fitToVisibleBounds=!1;a.pageSubtype="shorts";a.panelShowDelayMs=_.$i("enable_shorts_panel_show_delay_ms");a.enablePreviousContinuation=_.x("shorts_in_playlists_web");a.shortsPipEnabled=_.x("web_shorts_pip");a.isDark=document.documentElement.hasAttribute("dark");a.shortsViewTransitions=_.x("web_shorts_view_transitions");
a.isFullscreen=!1;a.isShortsPipActive=!1;a.buttonOverride={iconPosition:"icon-only",size:"XL"};a.anchoredPanelActive=!1;a.isActive=!1;a.smallScreenPersistentPanel=!1;a.isPersistentPanelActive=!1;a.smallScreenSqueezeBack=!1;a.enableScrollIntoViewCenter=_.x("web_scroll_into_view_center");a.formatFirst=_.x("web_enable_format_first")||_.x("web_enable_format_first_ads_only")||_.x("web_enable_format_first_organic_only");a.enableFlexibleOverlay=_.x("web_enable_flexible_overlay");a.enableNewCarousel=_.x("web_enable_shorts_new_carousel_single_instance");
a.isShortsInitialized=!1;a.hidePreviousButtonImmediately=!1;a.showPreviousButtonImmediately=!1;a.currentPlayerIndex=0;a.nextReelVe=_.lu(56921);a.prevReelVe=_.lu(56922);a.loopToggleOffVe=_.lu(198013);a.loopToggleOnVe=_.lu(198014);a.ambientModeToggleVe=_.lu(227860);a.reelPlayerPausedStateRendererVe=_.lu(141313);a.storedPlaybackSpeed=null;a.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"};return a};
_.z(qbd,_.P);_.f=qbd.prototype;
_.f.deflateInactivePreviousSlides=function(){var a=_.$i("web_shorts_deflate_inactive_slides_aggressive_distance");if(a>0&&this.shortsProcessedSequence&&this.activeIndex){a=this.activeIndex-a;for(var b=0;b<=a;b++){var c=void 0;((c=this.shortsProcessedSequence[b].reelPlayerOverlayRenderer)==null?0:c.likeButton)&&this.set("shortsProcessedSequence."+b+".reelPlayerOverlayRenderer",{});c=void 0;((c=this.shortsProcessedSequence[b].adsOverlay)==null?0:c.adSlotMetadata)&&this.set("shortsProcessedSequence."+b+
".adsOverlay",{})}}};
_.f.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.f.onResize=function(){var a=_.Yp(),b=a.dispatch,c=this.calculateIsSmallWidth();b.call(a,_.gp({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:c}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.f.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:_.x("web_enable_shorts_new_carousel")?0:void 0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatchWhilePanel:!0,shortsPanel:!0},properties:{showDelayMs:"[[panelShowDelayMs]]"}}},renderPriority:_.x("web_reels_enable_audio_pivot_in_engagement_panel")?0:void 0}}};
_.f.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var a=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,b=a,c=0;a<250&&(b=a+this.shortsInnerContainer.clientWidth,c=24);_.dr(this.hostElement,{"--ytd-shorts-header-width":b+"px","--ytd-shorts-top-spacing":c+"px"})}};
_.f.isFirstShorts=function(a){return a?this.index===-a.length:this.index===0};
_.f.isActiveReel=function(a,b,c){c&&(b=this.calculatePrevIndex(b,c));return a===b};
_.f.onFullscreenChange=function(){if(_.x("web_fullscreen_shorts")){var a;(a=this.getActiveReelVideo(this.activeIndex))==null||a.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.v().resolve(_.Vw).close(!0)}};
_.f.engagementPanelsChanged=function(){var a;this.watchWhileEngagementPanels=(a=this.data)==null?void 0:a.engagementPanels};
_.f.unregisterPanels=function(){var a=_.v().resolve(_.FJ);if(this.watchWhileEngagementPanels)for(var b=_.h(this.watchWhileEngagementPanels),c=b.next();!c.done;c=b.next()){var d=void 0,e=void 0;c=(d=c.value.engagementPanelSectionListRenderer)==null?void 0:(e=d.identifier)==null?void 0:e.tag;a&&c&&a.panelMap.delete(c)}};
_.f.isVideoContent=function(a){return this.isVideoContentCommand(a==null?void 0:a.command)};
_.f.getActiveReelVideo=function(a){return _.x("web_enable_shorts_new_carousel_single_instance")?_.E(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+a+'"]'):_.E(this.hostElement).querySelector('ytd-reel-video-renderer[id="'+a+'"]')};
_.f.calculatePrevIndex=function(a,b){return b?a-((b==null?void 0:b.length)||0):-1};
_.f.onKeydown=function(a){var b=_.Pq(a)||[];if(!_.Wrc(b))if(a.code==="ArrowUp")a.preventDefault(),this.handlePrevButtonClick();else if(a.code==="ArrowDown")a.preventDefault(),this.handleNextButtonClick();else if(a.code==="KeyM")this.toggleMuteUnmuteVideo();else if(a.code==="KeyK"||a.code==="Space")this.togglePlayPauseVideo();else if((a.code==="KeyA"||a.code==="ArrowLeft")&&_.x("web_shorts_keyboard_enable_seek_shortcuts")){var c;(c=this.player)==null||c.seekBy(-5)}else if((a.code==="KeyD"||a.code===
"ArrowRight")&&_.x("web_shorts_keyboard_enable_seek_shortcuts")){var d;(d=this.player)==null||d.seekBy(5)}};
_.f.onServiceRequestCompleted=function(a,b){a=b.data;a.continuationEndpoint&&a.entries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:a.entries,continuationEndpoint:a.continuationEndpoint}}):a.prevContinuationEndpoint&&a.prevEntries&&this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:a.prevEntries,prevContinuationEndpoint:a.prevContinuationEndpoint}})};
_.f.handleEngagementPanelVisibilityChanged=function(a,b){var c=_.v().resolve(_.FJ),d,e=((d=a.identifier)==null?void 0:d.tag)||a.panelIdentifier||a.targetId;if(b==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==e){c.hidePanel(this.activePanel);var g;this.activePanel=((g=a.identifier)==null?void 0:g.tag)||a.panelIdentifier}else this.isPersistentPanelActive=!0,_.Yp().dispatch(Sad(!0)),this.anchoredPanelActive=!0,this.activePanel=e;else b==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===e&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.Yp().dispatch(Sad(!1)))};
_.f.handlePanelScrimClick=function(){var a=_.v().resolve(_.FJ);this.activePanel&&(a.hidePanel(this.activePanel),_.Yp().dispatch(Sad(!1)))};
_.f.getShortsLoopSetting=function(){var a,b,c,d,e;return _.l(function(g){switch(g.nextAddress){case 1:return _.x("kevlar_shorts_auto_advance")?_.p(g,_.DF.getInstance(),2):g.return(!0);case 2:return(a=g.yieldResult)?_.p(g,a.get("sfvles"),3):g.return(!0);case 3:return c=(b=g.yieldResult)!=null?b:!1,_.p(g,a.get("sfvle"),4);case 4:return e=(d=g.yieldResult)!=null?d:!0,c?g.return(e):g.return(!0)}})};
_.f.handleSignalActionToggleLoopShortsOff=function(){var a=this,b,c,d;return _.l(function(e){switch(e.nextAddress){case 1:if(!a.player)return e.return();a.player.setLoopVideo(!1);b=_.ms();_.pF(b,a.loopToggleOffVe);return _.p(e,_.DF.getInstance(),2);case 2:return(c=e.yieldResult)?_.p(e,c.set("sfvle",!1),3):e.return();case 3:return _.p(e,c.set("sfvles",!0),4);case 4:d=_.wo(),_.xo(0,203,!1),_.xo(0,204,!0),d.save(),_.se(e)}})};
_.f.handleSignalActionToggleLoopShortsOn=function(){var a=this,b,c,d;return _.l(function(e){switch(e.nextAddress){case 1:if(!a.player)return e.return();a.player.setLoopVideo(!0);b=_.ms();_.pF(b,a.loopToggleOnVe);return _.p(e,_.DF.getInstance(),2);case 2:return(c=e.yieldResult)?_.p(e,c.set("sfvle",!0),3):e.return();case 3:return _.p(e,c.set("sfvles",!0),4);case 4:d=_.wo(),_.xo(0,203,!0),_.xo(0,204,!0),d.save(),_.se(e)}})};
_.f.handleSignalActionToggleCinematicShortsOn=function(){Cad(!0);var a;(a=this.JSC$19442_cinematicController)==null||_.yad(a,!0);_.pF(_.ms(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.f.handleSignalActionToggleCinematicShortsOff=function(){Cad(!1);var a;(a=this.JSC$19442_cinematicController)==null||_.yad(a,!1);_.pF(_.ms(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.f.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.f.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.f.setCurrentReelVideoRenderer=function(){if(_.x("web_enable_shorts_new_carousel_single_instance")&&(this.currentReelVideoRenderer=this.getCurrentShort(),this.overlayContainer)){var a=this.overlayContainer.querySelector("#experiment-overlay");_.zk.addLowPriorityJob(function(){a.style.display="unset"},100)}};
_.f.getCurrentShort=function(){if(this.currentEndpoint){var a=this.currentEndpoint;if(this.isNonVideoContentCommand(a)){var b=_.y(a,_.ME);return{reelNonVideoContentRenderer:_.y(b==null?void 0:b.renderer,_.dEb),command:a}}if(this.data){var c;b=(c=_.y(this.currentEndpoint,_.tq))==null?void 0:c.thumbnail;var d;c=(d=this.data.overlay)==null?void 0:d.reelPlayerOverlayRenderer;_.v().resolve(_.kG);var e,g;d=_.y((e=this.data.overlay)==null?void 0:(g=e.shortsAdsRenderer)==null?void 0:g.overlay,_.Nyb);a=Object.assign({},
this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.y(this.currentEndpoint,_.tq),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:c,thumbnail:b,command:a,adsOverlay:d}}}};
_.f.created=function(){var a=this;this.scrollToVideoThrottle=new _.hv(function(b){var c;(c=a.getActiveReelVideo(b))==null||c.scrollIntoView({behavior:"smooth",block:"nearest",inline:a.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.hv(function(b){var c;(c=a.getActiveReelVideo(b))==null||c.scrollIntoView({behavior:"auto",block:"nearest",inline:a.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.initializeIntersectionObserver();_.x("web_shorts_caption_language_entity_killswitch")||_.zk.addLowPriorityJob(function(){var b=_.v().resolve(_.kG);a.getPlayer().getPlayerPromise().then(function(c){Qad(b,c)})})};
_.f.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.f.attached=function(){var a=this;Oad(this);this.pageScrollElement=_.E(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.er(this,this.processResetAction));_.x("web_reels_min_height_adjustment")&&this.hostElement.style.setProperty("--ytd-reels-min-height","460px");_.x("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var b;(b=a.getActiveReelVideo(a.activeIndex))==
null||b.scrollIntoView({behavior:"instant",block:"nearest",inline:a.enableScrollIntoViewCenter?"center":"start"});a.shortsContainer.style.overflowY="scroll"}))};
_.f.calculateSqueezebackPanelSize=function(){var a=this,b=window.innerWidth-456-(window.innerHeight-106)*.5625;_.zk.addLowPriorityJob(function(){b<360?_.Yp().dispatch(Tad(!0)):(a.hostElement.style.setProperty("--anchored-panel-width",Math.min(b,480)+"px"),_.Yp().dispatch(Tad(!1)))})};
_.f.detached=function(){var a=_.v().resolve(_.kG);a.rootElement=void 0;var b;(b=a.unsubscribeFromStore)==null||b.call(a);a.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.er(this,this.processResetAction));this.resizeObserver=void 0};
_.f.onResizeFinished=function(a,b){var c=this,d=new ResizeObserver(function(){c.shortsContainer.style.overflowY="hidden";_.zk.addLowPriorityJob(function(){b()},100)});
d.observe(a);return d};
_.f.resetDocumentScrollTop=function(){var a,b;if((a=document)==null?0:(b=a.scrollingElement)==null?0:b.scrollTop)document.scrollingElement.scrollTop=0};
_.f.loadPage_=function(a){var b=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),a){var c;if((c=_.y(this.currentEndpoint,_.tq))==null?0:c.sequenceParams)this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index);this.data=a;this.isPlayerStarted?this.handleOnPlaybackCommand():this.afterPlayerStarted=function(){b.isPlayerStarted&&
(b.handleOnPlaybackCommand(),b.afterPlayerStarted=function(){})};
this.registerPanel(a)}};
_.f.afterPlayerStarted=function(){};
_.f.handleOnPlaybackCommand=function(){if(_.x("web_shorts_comment_stickers")&&this.isPlayerStarted){var a,b=(a=_.y(this.currentEndpoint,_.tq))==null?void 0:a.onPlaybackCommand;b&&this.ytComponentBehavior.resolveCommand(b)}};
_.f.initializeIntersectionObserver=function(){var a=this,b=_.$i("web_shorts_intersection_observer_threshold",.6);this.observer=new IntersectionObserver(function(c){c=_.h(c);for(var d=c.next();!d.done;d=c.next())if(d=d.value,d.intersectionRatio>b){d=Number(d.target.id);if(isNaN(d))break;if(d===a.index)break;_.GCa();a.loadVideo(d);_.Lo("r_vtc")}},{rootMargin:"0px",
threshold:b})};
_.f.observeShorts=function(){var a=_.x("web_enable_shorts_new_carousel_single_instance")?".reel-video-in-sequence-new":"ytd-reel-video-renderer.reel-video-in-sequence";a=[].concat(_.Be(_.E(this.hostElement).querySelectorAll(a)));a=_.h(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=void 0;(c=this.observer)==null||c.observe(b)}};
_.f.initCsi=function(){_.W6c("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var a={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"}},b,c;if((b=this.playerData)==null?0:(c=b.cacheMetadata)==null?0:c.isCacheHit)a.isCacheHit=!0;var d;if(b=(d=_.y(this.currentEndpoint,_.tq))==null?void 0:
d.prefetchTaskId)a.prefetchInfo={taskId:b};_.Ho(a)};
_.f.isAd=function(){var a,b;return!!((a=_.y(this.currentEndpoint,_.tq))==null?0:(b=a.adClientParams)==null?0:b.isAd)};
_.f.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.f.getPlayerContainer=function(){var a;return(a=this.getActiveReelVideo(this.index))==null?void 0:a.playerContainer};
_.f.onPlayerStateChange=function(a){var b=this;this.isPlayerPaused=a===2;a!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?a===1&&this.index===0&&(this.isPlayerStarted||_.Yp().dispatch(Uad(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.Yp().dispatch(Uad(!0)));this.player&&!this.player.getLoopVideo()&&_.zk.addLowPriorityJob(function(){b.getShortsLoopSetting().then(function(d){var e;(e=b.player)==null||e.setLoopVideo(d)})});
if(a===0&&_.x("kevlar_shorts_auto_advance"))if(a=this.getActiveReelVideo(this.index),this.isInBackground()){var c=this.getPlayableNextIndex();if(c==null)return;this.gestureType="INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED";this.loadVideo(c,!0)}else a.isWatchWhileMode&&!_.x("shorts_aa_ignore_ww")?(c=this.player)==null||c.seekToStreamTime(0):this.handleNextButtonClick(void 0,"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED");this.isPlayerPaused&&_.x("web_shorts_paused_state_logging")&&_.To(_.Fn(),[this.reelPlayerPausedStateRendererVe])};
_.f.isInBackground=function(){var a=window.document.visibilityState;return!(!a||a==="visible")};
_.f.isShortPlayable=function(){if(_.x("kevlar_playable_short_killswitch"))return!0;var a;return(a=this.playerData)!=null&&a.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.f.setNormalPlaybackSpeed=function(){var a=this,b,c;return _.l(function(d){if(d.nextAddress==1)return _.p(d,a.getPlayer().getPlayerPromise(),2);b=d.yieldResult;c=b.getPlaybackRate();c!==1&&(a.storedPlaybackSpeed=c,b.setPlaybackRate(1));_.se(d)})};
_.f.restorePlaybackSpeed=function(){var a=this,b;return _.l(function(c){if(c.nextAddress==1)return a.storedPlaybackSpeed===null?c.jumpTo(0):_.p(c,a.getPlayer().getPlayerPromise(),3);b=c.yieldResult;b.setPlaybackRate(a.storedPlaybackSpeed);a.storedPlaybackSpeed=null;_.se(c)})};
_.f.playerDataChanged=function(){var a=this,b,c,d,e,g,k,m,n;return _.l(function(r){if(r.nextAddress==1){b=a.getPlayer();if(a.playerData){if(((c=a.playerData.videoDetails)==null?void 0:c.videoId)!==((d=b.getPlayer())==null?void 0:d.getVideoData().video_id)){e={};if(g=_.y(a.currentEndpoint,_.tq))e.watch_endpoint=g,g.endTimeSeconds&&(e.end=g.endTimeSeconds);b.loadVideoWithPlayerResponse(a.playerData,e)}}else return r.return();return a.player?r.jumpTo(2):_.p(r,b.getPlayerPromise(),3)}r.nextAddress!=2&&
(a.player=r.yieldResult,a.JSC$19442_playerStateChangeListener=a.onPlayerStateChange.bind(a),a.player.addEventListener("onStateChange",a.JSC$19442_playerStateChangeListener),_.x("kevlar_client_enable_shorts_player_bootstrap")&&_.cw(),a.scrollToVideoThrottle.fire(a.index),a.movePlayerToVideo(a.index),_.zk.addLowPriorityJob(function(){a.getShortsLoopSetting().then(function(t){var u;(u=a.player)==null||u.setLoopVideo(t)})}),_.yJb.resolve(a.player),a.player.syncVolume(),a.getPlayer().focusOnPlayer());
_.zk.addLowPriorityJob(function(){a.observeShorts()},100);
k=a.player.getPlayerState(a.player.getPresentingPlayerType());k!==1||a.isPlayerStarted||_.Yp().dispatch(Uad(!0));a.updateBackNavContainerWidth();m=_.y(a.currentEndpoint,_.tq);((n=m)==null?0:n.startTimeSeconds)&&a.player.seekTo(m.startTimeSeconds);if(a.JSC$19442_cinematicController||a.cinematicsInitializeJobId)return r.return();a.cinematicsInitializeJobId=_.zk.addLowPriorityJob(function(){a.initCinematicController();a.cinematicsInitializeJobId=void 0});
_.se(r)})};
_.f.onShortUndoDismiss=function(){var a=this,b=Pad().pop();b!==void 0&&(_.Tm(this,function(){a.showCardWithIndex(b)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.f.onShortsDismiss=function(a){if(a=a.detail.reelDismissalActionRenderer)(a=_.y(a.onDismissalCompletionRenderer,_.bad))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:a}}}),this.scrollAndDismissCard()};
_.f.processReelNonVideoContentDismissalCommand=function(a){var b=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);a=_.y(a,cbd);this.activeDimissalTimeout=setTimeout(function(){b.scrollAndDismissCard()},Number(a==null?void 0:a.delayMs))};
_.f.scrollAndDismissCard=function(){var a=this,b=this.index;Pad().push(b);_.Tm(this,function(){var c=a.getPlayableNextIndex();c!==null&&(c=a.getActiveReelVideo(c),a.hideCardWithIndex(b),c==null||c.scrollIntoView({behavior:"smooth",block:"nearest",inline:a.enableScrollIntoViewCenter?"center":"start"}))})};
_.f.hideCardWithIndex=function(a){this.getActiveReelVideo(a).hidden=!0};
_.f.showCardWithIndex=function(a){this.getActiveReelVideo(a).hidden=!1};
_.f.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.f.activeChanged=function(a){_.Yp().dispatch(_.gp({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:a}}));if(a)document.addEventListener("keydown",_.er(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var b;(b=this.player)==null||b.sendAbandonmentPing()}var c;(c=this.player)==null||c.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.er(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.f.graftClientVisualElements=function(){if(this.data){var a=_.ms();_.yIb(a,_.oo({response:this.reelWatchSequenceResponse}));_.nF(a,this.nextReelVe);_.nF(a,this.prevReelVe);_.x("kevlar_shorts_auto_advance")&&(_.nF(a,this.loopToggleOffVe),_.nF(a,this.loopToggleOnVe));_.nF(a,this.ambientModeToggleVe);_.To(_.Fn(),[this.nextReelVe,this.prevReelVe]);_.x("web_shorts_paused_state_logging")&&_.nF(a,this.reelPlayerPausedStateRendererVe)}};
_.f.graftNvcRenderer=function(){var a,b,c,d,e=this.index<0?(a=this.shortsProcessedPrevSequence)==null?void 0:(b=a[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:b.command:(c=this.shortsProcessedSequence)==null?void 0:(d=c[this.index])==null?void 0:d.command;if(e&&this.isNonVideoContentCommand(e)){a=_.y(e,_.ME);var g,k;(a=(g=_.y(a==null?void 0:a.renderer,_.dEb))==null?void 0:(k=g.loggingDirectives)==null?void 0:k.trackingParams)&&_.ms().graftServerVe(a)}};
_.f.setActiveIndex=function(){_.v().resolve(_.kG).setActiveIndex(this.index)};
_.f.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.f.lazyUpdateMiniplayerData=function(){var a=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.zk.addLowPriorityJob(function(){a.updateMiniplayerData();a.updateMiniplayerDataJobId=void 0}))};
_.f.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.zk.cancelJob(this.updateMiniplayerDataJobId)};
_.f.updateMiniplayerData=function(){var a,b,c,d=_.v().resolve(_.Vw),e={shortsData:this.getCurrentShort(),previousButtonDisabled:!((a=this.prevButtonData)==null||!a.isDisabled),nextButtonDisabled:!((b=this.nextButtonData)==null||!b.isDisabled),playabilityStatus:(c=this.playerData)==null?void 0:c.playabilityStatus};_.zW(d,e)};
_.f.resetPlayerLocation=function(){var a=this.getPlayer();this.initialPlayerContainer&&(a.appendTo(this.initialPlayerContainer,void 0,!0),_.x("web_enable_shorts_new_carousel_single_instance")&&this.overlayContainer&&(this.initialPlayerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0))};
_.f.movePlayerToVideo=function(a,b){var c=this;b=b===void 0?!0:b;var d=this.getActiveReelVideo(a),e=this.getPlayer();d?(this.isShortsMiniplayerActive()||(_.x("web_enable_shorts_new_carousel_single_instance")?(this.overlayContainer||(this.overlayContainer=_.E(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,e.appendTo(this.overlayContainer.playerContainer,void 0,!0)),d.appendChild(this.overlayContainer),_.ul(_.zk,function(){c.isActive=!0})):e.appendTo(d.playerContainer,void 0,!0)),
e.style.visibility="visible",_.x("reels_web_disable_rtr_tick")||_.x("reels_web_use_pbs_first_shorts")&&a===0||_.Jo("r_tr"),this.currentPlayerIndex=a,_.x("web_enable_shorts_new_carousel_single_instance")?d.appendChild(this.errorScreenContainer):d.playerContainer.appendChild(this.errorScreenContainer),this.maybeMoveCinematicsToVideo()):b?_.zk.addLowPriorityJob(function(){c.movePlayerToVideo(c.index,!1)}):Math.random()<=_.$i("web_shorts_error_logging_threshold")&&_.Cl(new _.qj("Trying to movePlayerToVideo with undefined container.",
{firstAttempt:b,
index:a}))};
_.f.enableFormatFirst=function(a){return _.x("web_enable_format_first")||a.adsOverlay&&_.x("web_enable_format_first_ads_only")||a.reelPlayerOverlayRenderer&&_.x("web_enable_format_first_organic_only")};
_.f.getAspectRatio=function(a){if(a!=null&&a.thumbnail&&this.enableFormatFirst(a))return"--ytd-shorts-player-ratio: "+Dad(a.thumbnail)};
_.f.getBackgroundImage=function(a){if(a!=null&&a.thumbnail){if(_.x("web_enable_format_first")){var b=Dad(a.thumbnail);this.hostElement.style.setProperty("--ytd-shorts-player-ratio",""+b)}return(a=_.Ys(a.thumbnail.thumbnails))?'background-image:url("'+a+'");':"background-color:black;"}};
_.f.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.f.maybeMoveCinematicsToVideo=function(){var a=this;this.cinematicTransitionJobId&&_.zk.cancelJob(this.cinematicTransitionJobId);this.cinematicTransitionJobId=_.zk.addLowPriorityJob(function(){a.moveCinematicsToVideo()},500)};
_.f.moveCinematicsToVideo=function(){var a;(a=this.JSC$19442_cinematicController)!=null&&(a=a.currentCinematicEffect)!=null&&(a=a.storyboardManager,a.paused=!1,_.gad(a),a.update());a=_.x("web_enable_shorts_new_carousel_single_instance")?_.E(this.hostElement).querySelector("ytd-reel-video-renderer"):this.getActiveReelVideo(this.index);(a==null?0:a.cinematicContainer)&&a.cinematicContainer!==this.shortsCinematicContainer.parentElement&&a.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.f.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.f.updatePrevButtonData=function(){var a=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(a){var b;this.prevButtonData=a=Object.assign({},a,{accessibility:{label:_.to("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:a.isDisabled||this.index===-(((b=this.shortsProcessedPrevSequence)==null?void 0:b.length)||0),tooltip:this.isUpArrowHidden?"":_.to("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=a=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.f.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.f.updateNextButtonData=function(){var a=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(a){var b;this.nextButtonData=a=Object.assign({},a,{accessibility:{label:_.to("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:a.isDisabled||this.index===((b=this.shortsProcessedSequence)==null?void 0:b.length),tooltip:_.to("NEXT_VIDEO_LABEL")||""})}};
_.f.getPlayablePreviousIndex=function(){for(var a,b=this.index-1;b>=-(((a=this.prevShortsSequence)==null?void 0:a.length)||0);b--)if(!Pad().includes(b))return b;return null};
_.f.getIndexInSequence=function(a,b){return a.findIndex(function(c){var d;return((d=_.y(c.command,_.tq))==null?void 0:d.videoId)===b})};
_.f.handlePrevButtonClick=function(a){var b=this,c,d;return _.l(function(e){c=b.getPlayablePreviousIndex();if(c===null)return e.return();b.gestureType=((d=a)==null?void 0:d.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";c===0&&(b.hidePreviousButtonImmediately=!0);if(b.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){b.transitionToVideoThrottle.fire(c)}),e.return();
b.scrollToVideoThrottle.fire(c);_.se(e)})};
_.f.getPlayableNextIndex=function(){for(var a,b=this.index+1;b<(((a=this.shortsProcessedSequence)==null?void 0:a.length)||0);b++)if(!Pad().includes(b))return b;return null};
_.f.handleNextButtonClick=function(a,b){var c=this,d,e;return _.l(function(g){d=c.getPlayableNextIndex();if(d===null)return g.return();d===1&&(c.showPreviousButtonImmediately=!0);c.gestureType=((e=a)==null?void 0:e.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";b&&(c.gestureType=b);if(c.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){c.transitionToVideoThrottle.fire(d)}),g.return();
c.scrollToVideoThrottle.fire(d);_.se(g)})};
_.f.handleReelNavigateCommand=function(a,b,c){(a=_.y(a,bbd))&&b&&a.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(c)};
_.f.loadVideo=function(a,b){var c=this;b=b===void 0?!1:b;if(a!==this.currentPlayerIndex){_.Yp().dispatch(Uad(!1));if(this.isAd()&&!b){var d;(d=this.player)==null||d.notifyShortsAdSwipeEvent()}this.cinematicTransitionJobId&&_.zk.cancelJob(this.cinematicTransitionJobId);var e;(e=this.JSC$19442_cinematicController)==null||_.Aad(e);var g;(g=this.JSC$19442_cinematicController)==null||Rad(g);d=a>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(d));
this.getPlayer().style.visibility="hidden";_.x("web_enable_shorts_new_carousel_single_instance")&&this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var k,m,n,r;b=a<0?(k=this.shortsProcessedPrevSequence)==null?void 0:(m=k[this.shortsProcessedPrevSequence.length+a])==null?void 0:m.command:(n=this.shortsProcessedSequence)==null?void 0:(r=n[a])==null?void 0:r.command;this.index=a;this.gestureType||(this.gestureType=d?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":
"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");b&&this.isVideoContentCommand(b)&&(this.ytComponentBehavior.resolveCommand(b,{form:{createScreenConfig:{clickedVisualElement:d?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(b&&this.isNonVideoContentCommand(b)){this.currentEndpoint=b;this.data=void 0;k=_.ms();m=_.y(b,_.ME);var t,u;(m=(t=_.y(m==null?void 0:m.renderer,_.dEb))==null?void 0:(u=t.screenLoggingData)==null?void 0:u.screenVeType)&&_.mF(k,
m);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&this.player.pauseVideo()}t=_.$i("reels_enable_early_continuation_offset")<=0?1:_.$i("reels_enable_early_continuation_offset");var w,A;if(((w=this.reelWatchSequenceResponse)==null?0:w.continuationEndpoint)&&((A=this.reelWatchSequenceResponse)==null?0:A.entries)&&a===this.reelWatchSequenceResponse.entries.length-t){var C,G;w={contentPlaybackContext:_.uq({},(G=_.y((C=this.currentEndpoint)==null?void 0:C.commandMetadata,_.ao))==null?void 0:
G.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,{form:w})}var J,I,R;((J=this.reelWatchSequenceResponse)==null?0:J.prevContinuationEndpoint)&&a===-(((I=this.reelWatchSequenceResponse)==null?void 0:(R=I.prevEntries)==null?void 0:R.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint);_.x("web_shorts_caption_language_entity_killswitch")||_.zk.addLowPriorityJob(function(){var ca=
_.v().resolve(_.kG);c.getPlayer().getPlayerPromise().then(function(V){Qad(ca,V)})})}};
_.f.setMiniplayerPreview=function(a){a=(a===void 0?0:a)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var b,c,d=_.v().resolve(_.Vw),e={shortsData:void 0,shortsPreviewThumbnail:a?(b=this.shortsProcessedSequence)==null?void 0:(c=b[a])==null?void 0:c.thumbnail:void 0};_.zW(d,e)};
_.f.updateTitle=function(a){var b,c;a=(a==null?0:a.adPlacements)?"":(c=a==null?void 0:(b=a.videoDetails)==null?void 0:b.title)!=null?c:"";_.go(this.hostElement,"yt-update-title",a)};
_.f.registerPanel=function(a){var b=_.v().resolve(_.FJ);if(b){a=_.h(a.engagementPanels||[]);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=c.engagementPanelSectionListRenderer,e=void 0,g=void 0,k=void 0,m=void 0,n=((e=d)==null?void 0:e.targetId)||((g=d)==null?void 0:g.panelIdentifier)||((k=d)==null?void 0:(m=k.identifier)==null?void 0:m.tag);e=d=void 0;(e=(d=b).registerPanelContent)==null||e.call(d,n,c)}}};
_.f.processResetAction=function(){this.currentPlayerIndex=this.index=0;this.playerData=this.player=void 0;this.unregisterPanels();this.currentEndpoint=this.reelWatchSequenceResponse=this.data=void 0;this.isPersistentPanelActive=this.anchoredPanelActive=!1;_.Yp().dispatch(Uad(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();_.Yp().dispatch(Sad(!1));var a=_.v().resolve(_.kG);a.dismissedIndices=[];a.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.v().resolve(_.Vw).close(!0)};
_.f.processAppendReelWatchSequenceContinuationEntriesAction=function(a){var b=this,c;(c=this.observer)==null||c.disconnect();a=a.appendReelWatchSequenceContinuationEntriesAction;if(a==null?0:a.entries){var d;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.Be(((d=this.reelWatchSequenceResponse)==null?void 0:d.entries)||[]),_.Be(a.entries)),continuationEndpoint:a.continuationEndpoint})}else if(a==null?0:a.prevEntries){var e;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.Be(((e=this.reelWatchSequenceResponse)==null?void 0:e.prevEntries)||[]),_.Be(a.prevEntries)),prevContinuationEndpoint:a.prevContinuationEndpoint});_.zk.addLowPriorityJob(function(){b.movePlayerToVideo(b.index);var g;(g=b.getActiveReelVideo(b.index))==null||g.scrollIntoView({block:"nearest",inline:b.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.zk.addLowPriorityJob(function(){b.observeShorts()},100)};
_.f.processWatchSequence=function(a){var b=this;return a.map(function(c){c=c.command;if(b.isVideoContentCommand(c)){var d=_.y(c,_.tq);return{reelPlayerOverlayRenderer:_.y(d==null?void 0:d.overlay,_.eEb),thumbnail:d.thumbnail,command:c}}return b.isNonVideoContentCommand(c)?(d=_.y(c,_.ME),{reelNonVideoContentRenderer:_.y(d==null?void 0:d.renderer,_.dEb),command:c}):{command:c}})};
_.f.isVideoContentCommand=function(a){_.v().resolve(_.kG);return!!_.y(a,_.tq)};
_.f.isNonVideoContentCommand=function(a){_.v().resolve(_.kG);return!!_.y(a,_.ME)};
_.f.initCinematicController=function(){var a=this;if(this.player&&this.shortsCinematicContainer){this.JSC$19442_cinematicController=new _.n8(this.shortsCinematicContainer,this.player);var b,c=_.y((b=this.data)==null?void 0:b.background,_.F6);_.zad(this.JSC$19442_cinematicController,c);_.yad(this.JSC$19442_cinematicController,Bad(c));_.xad(this.JSC$19442_cinematicController);_.zk.addLowPriorityJob(function(){a.moveCinematicsToVideo()})}};
_.f.handleMiniplayerNavigateShorts=function(a){a==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():a==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.f.shouldDisplayReelVideoOverlay=function(a,b){return _.x("web_enable_shorts_new_carousel")?Math.abs(a-b)<2:!0};
_.Vm.Object.defineProperties(qbd.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.reelWatchSequenceResponse)!=null&&a.prevEntries)return this.processWatchSequence([].concat(_.Be(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){var a=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!a)return this.shortsProcessedPrevSequence;if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var b=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.Be(this.prevShortsSequence.slice(0,b)),[a],_.Be(this.prevShortsSequence.slice(b+
1)))}b=this.index+this.shortsProcessedPrevSequence.length;a.thumbnail=this.shortsProcessedPrevSequence[b].thumbnail;return[].concat(_.Be(this.shortsProcessedPrevSequence.slice(0,b)),[a],_.Be(this.shortsProcessedPrevSequence.slice(b+1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.reelWatchSequenceResponse)!=null&&a.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){if(this.data||this.shortsSequence){var a=this.getCurrentShort();if(!a||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[a];if(a==null||!a.reelNonVideoContentRenderer){var b=this.getIndexInSequence(this.shortsSequence,_.y(this.currentEndpoint,_.tq).videoId);if(this.index===0&&b!==-1)return this.currentPlayerIndex=this.index=b,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index),
[].concat(_.Be(this.shortsSequence.slice(0,this.index)),[a],_.Be(this.shortsSequence.slice(this.index+1)))}if(this.shortsProcessedSequence){a.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var c,d,e,g;b=((d=_.y((c=this.shortsProcessedSequence[0])==null?void 0:c.command,_.tq))==null?void 0:d.videoId)===((g=_.y((e=this.shortsSequence[0])==null?void 0:e.command,_.tq))==null?void 0:g.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.Be(this.shortsProcessedSequence.slice(0,
this.index)),[a],_.Be(this.shortsSequence.slice(b)))}return[a].concat(_.Be(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var a=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;a&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(a)return!1;this.showPreviousButtonImmediately=!1}return this.hidePreviousButtonImmediately||this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null}},
isDownArrowHidden:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.reelWatchSequenceResponse)==null?0:a.entries)}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var a;(a=this.delayedActiveIndexUpdateDebouncer)==null||a.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return this.isShortPlayable()||((b=_.y((a=this.data)==null?void 0:a.watchStatus,_.nEb))==null?void 0:(c=b.style)==null?void 0:c.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var a=this,b=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),c;if((this.data||b)&&(((c=this.data)==null?0:c.engagementPanels)||this.isAd()||b)){b=!1;this.activePanel="shorts-comments-panel";var d;c=_.h(((d=this.data)==null?void 0:d.engagementPanels)||[]);for(d=c.next();!d.done;d=c.next()){d=d.value.engagementPanelSectionListRenderer;var e=void 0,g=void 0,k=void 0,m=void 0;if((((e=d)==null?void 0:(g=e.identifier)==
null?void 0:g.tag)||((k=d)==null?void 0:k.targetId)||((m=d)==null?void 0:m.panelIdentifier))===this.activePanel){b=!0;break}}if(this.isPersistentPanelActive){var n=_.v().resolve(_.FJ);_.x("web_enable_shorts_new_carousel_single_instance")?_.ul(_.zk,function(){n.showPanel(a.activePanel,void 0,void 0,void 0,null)},100):_.zk.addJob(function(){n.showPanel(a.activePanel,void 0,void 0,void 0,null)},0)}c=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);
if(c===void 0||(c==null?0:c.isDisabled)||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!b){var r,t,u=(r=this.data)==null?void 0:(t=r.engagementPanels)==null?void 0:t.findIndex(function(G){var J,I;return((J=G.engagementPanelSectionListRenderer)==null?void 0:(I=J.identifier)==null?void 0:I.tag)==="shorts-comments-panel"});
if(u!==-1&&u!==void 0){var w,A;(w=this.data)==null||(A=w.engagementPanels)==null||A.splice(u,1)}var C;return[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.to("COMMENTS",void 0,"Comments")}]},visibilityButton:_.fl({buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.to("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:_.to("COMMENTS_OFF",void 0,"Comments are turned off. ")},{text:" "},{text:_.to("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(_.Be(Object.values(((C=this.data)==null?void 0:C.engagementPanels)||{})))}return(u=this.data)==null?void 0:u.engagementPanels}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.shortsProcessedSequence)==null?void 0:a[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var a=this,b,c,d;if((b=this.playerData)==null?0:(c=b.playabilityStatus)==null?0:(d=c.errorScreen)==null?0:d.playerInterstitialRenderer)return _.zk.addLowPriorityJob(function(){a.movePlayerToVideo(a.index)}),this.playerData.playabilityStatus.errorScreen;
var e,g;return((e=this.data)==null?void 0:e.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((g=this.data)==null?0:g.watchStatus)&&_.y(this.data.watchStatus,_.pBb)?(_.zk.addLowPriorityJob(function(){a.movePlayerToVideo(a.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.Vm.Object.defineProperties(qbd,{template:{configurable:!0,enumerable:!0,get:function(){if(ebd===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-shorts">\n  <div id="back-nav-button" class="style-scope ytd-shorts"></div>\n</div>\n<div id="offline-container" hidden="[[!shouldRenderOfflineContent]]" class="style-scope ytd-shorts"></div>\n<div id="shorts-container" hidden="[[shouldRenderOfflineContent]]" class="style-scope ytd-shorts">\n  <div id="cinematic-shorts-scrim" class="style-scope ytd-shorts"></div>\n  <div id="shorts-inner-container" class="style-scope ytd-shorts">\n    <template is="dom-if" if="[[enableNewCarousel]]" class="style-scope ytd-shorts">\n      <template is="dom-if" if="[[enablePreviousContinuation]]" class="style-scope ytd-shorts">\n        <dom-repeat items="[[shortsProcessedPrevSequence]]" class="style-scope ytd-shorts">\n          <template class="style-scope ytd-shorts">\n            <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" style$="[[getAspectRatio(item)]]">\n              <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n              </div>\n            </div>\n          </template>\n        </dom-repeat>\n      </template>\n      <dom-repeat items="[[shortsProcessedSequence]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <template is="dom-if" if="[[!enableNewCarousel]]" class="style-scope ytd-shorts">\n      <template is="dom-if" if="[[enablePreviousContinuation]]" class="style-scope ytd-shorts">\n        <dom-repeat items="[[shortsProcessedPrevSequence]]" class="style-scope ytd-shorts">\n          <template class="style-scope ytd-shorts">\n            <ytd-reel-video-renderer class="reel-video-in-sequence style-scope ytd-shorts" data="[[item]]" disable-upgrade$="[[!shouldDisplayReelVideoOverlay(activeIndex, index)]]" has-error="[[errorScreen]]" id$="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" index="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" is-active="[[isActiveReel(activeIndex,index,shortsProcessedPrevSequence)]]" is-persistent-panel-active="[[isPersistentPanelActive]]" is-player-paused="[[isPlayerPaused]]" watch-while-engagement-panels="[[watchWhileEngagementPanels]]">\n            </ytd-reel-video-renderer>\n          </template>\n        </dom-repeat>\n      </template>\n      <dom-repeat items="[[shortsProcessedSequence]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <ytd-reel-video-renderer class="reel-video-in-sequence style-scope ytd-shorts" data="[[item]]" disable-upgrade$="[[!shouldDisplayReelVideoOverlay(activeIndex, index)]]" has-error="[[hasError]]" id$="[[index]]" index="[[index]]" is-active="[[isActiveReel(activeIndex,index)]]" is-persistent-panel-active="[[isPersistentPanelActive]]" is-player-paused="[[isPlayerPaused]]" watch-while-engagement-panels="[[watchWhileEngagementPanels]]">\n          </ytd-reel-video-renderer>\n        </template>\n      </dom-repeat>\n    </template>\n    <div id="initial-player-container" class="style-scope ytd-shorts">\n      <div id="shorts-cinematic-container" class="style-scope ytd-shorts"></div>\n      <ytd-player id="player" aria-hidden="[[hasError]]" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SHORTS" disable-touch-gestures="" class="style-scope ytd-shorts">\n      </ytd-player>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" hidden$="[[!errorScreen]]" no-background="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <template is="dom-if" if="[[enableNewCarousel]]" class="style-scope ytd-shorts">\n      <ytd-reel-video-renderer id="reel-video-renderer" data="[[currentReelVideoRenderer]]" has-error="[[hasError]]" index="[[index]]" is-active="[[isActive]]" is-persistent-panel-active="[[isPersistentPanelActive]]" is-player-paused="[[isPlayerPaused]]" watch-while-engagement-panels="[[watchWhileEngagementPanels]]" class="style-scope ytd-shorts">\n      </ytd-reel-video-renderer>\n    </template>\n  </div>\n</div>\n<div id="shorts-panel-container" class="style-scope ytd-shorts">\n  <div id="anchored-panel-scrim" on-click="handlePanelScrimClick" class="style-scope ytd-shorts"></div>\n  <div id="anchored-panel" class="anchored-panel style-scope ytd-shorts"></div>\n</div>\n<div class="navigation-container style-scope ytd-shorts">\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-up">\n    <ytd-button-renderer button-tooltip-position="left" data="[[prevButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handlePrevButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-down">\n    <ytd-button-renderer button-tooltip-position="left" data="[[nextButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handleNextButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);ebd=a}a=ebd;return a}}});
var w8=qbd;w8.prototype.onNextButtonDataChange=w8.prototype.onNextButtonDataChange;w8.prototype.onPrevButtonDataChange=w8.prototype.onPrevButtonDataChange;w8.prototype.lazyUpdateMiniplayerData=w8.prototype.lazyUpdateMiniplayerData;w8.prototype.onShortsPipActiveChanged=w8.prototype.onShortsPipActiveChanged;w8.prototype.setActiveIndex=w8.prototype.setActiveIndex;w8.prototype.graftNvcRenderer=w8.prototype.graftNvcRenderer;w8.prototype.graftClientVisualElements=w8.prototype.graftClientVisualElements;
w8.prototype.onActiveChanged=w8.prototype.onActiveChanged;w8.prototype.onShortsDismiss=w8.prototype.onShortsDismiss;w8.prototype.onShortUndoDismiss=w8.prototype.onShortUndoDismiss;w8.prototype.playerDataChanged=w8.prototype.playerDataChanged;w8.prototype.afterPlayerStarted=w8.prototype.afterPlayerStarted;w8.prototype.setCurrentReelVideoRenderer=w8.prototype.setCurrentReelVideoRenderer;w8.prototype.onServiceRequestCompleted=w8.prototype.onServiceRequestCompleted;
w8.prototype.engagementPanelsChanged=w8.prototype.engagementPanelsChanged;w8.prototype.onFullscreenChange=w8.prototype.onFullscreenChange;w8.prototype.onResize=w8.prototype.onResize;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],w8.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.I6.YtPageBehavior),_.W("design:type",Object)],w8.prototype,"ytPageBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],w8.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.H(_.KD),_.W("design:type",Object)],w8.prototype,"ironResizableBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],w8.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.NI),_.W("design:type",Object)],w8.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.H(_.SI.YtdGuideStateAwareBehavior),_.W("design:type",Object)],w8.prototype,"ytdGuideStateAwareBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],w8.prototype,"ytdReduxBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],w8.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],w8.prototype,"playerData",void 0);_.U([_.O(),_.W("design:type",Object)],w8.prototype,"reelWatchSequenceResponse",void 0);_.U([_.O(),_.W("design:type",Object)],w8.prototype,"cachedReelWatchSequenceResponse",void 0);_.U([_.O(),_.W("design:type",Object)],w8.prototype,"currentEndpoint",void 0);_.U([_.O(),_.W("design:type",Object)],w8.prototype,"nextButtonData",void 0);
_.U([_.O(),_.W("design:type",Object)],w8.prototype,"prevButtonData",void 0);_.U([_.O(),_.W("design:type",Object)],w8.prototype,"isPreviousPageShorts",void 0);_.U([_.O(),_.W("design:type",Object)],w8.prototype,"index",void 0);_.U([_.O(),_.W("design:type",Object)],w8.prototype,"delayedActiveIndex",void 0);_.U([_.O(),_.W("design:type",Object)],w8.prototype,"playablePreviousIndex",void 0);_.U([_.O(),_.W("design:type",Object)],w8.prototype,"player",void 0);
_.U([_.O(),_.W("design:type",Object)],w8.prototype,"isPlayerPaused",void 0);_.U([_.O({selector:Fad}),_.W("design:type",Object)],w8.prototype,"isPlayerStarted",void 0);_.U([_.O(),_.W("design:type",Object)],w8.prototype,"observer",void 0);_.U([_.O(),_.W("design:type",Number)],w8.prototype,"cinematicsInitializeJobId",void 0);_.U([_.O(),_.W("design:type",Number)],w8.prototype,"cinematicTransitionJobId",void 0);_.U([_.O(),_.W("design:type",Number)],w8.prototype,"updateMiniplayerDataJobId",void 0);
_.U([_.O(),_.W("design:type",Object)],w8.prototype,"fitToVisibleBounds",void 0);_.U([_.O(),_.W("design:type",Object)],w8.prototype,"pageSubtype",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],w8.prototype,"panelShowDelayMs",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],w8.prototype,"enablePreviousContinuation",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],w8.prototype,"shortsPipEnabled",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],w8.prototype,"isDark",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],w8.prototype,"shortsViewTransitions",void 0);_.U([_.O({selector:_.Av,reflectToAttribute:!0}),_.W("design:type",Object)],w8.prototype,"isFullscreen",void 0);_.U([_.O({selector:_.Bv,reflectToAttribute:!0}),_.W("design:type",Object)],w8.prototype,"isShortsPipActive",void 0);
_.U([_.gr("#shorts-inner-container"),_.W("design:type",HTMLElement)],w8.prototype,"shortsInnerContainer",void 0);_.U([_.gr("#back-nav-button ytd-button-renderer"),_.W("design:type",_.$H)],w8.prototype,"backNavButton",void 0);_.U([_.gr("#shorts-container"),_.W("design:type",HTMLElement)],w8.prototype,"shortsContainer",void 0);_.U([_.fY("error-screen"),_.W("design:type",HTMLElement)],w8.prototype,"errorScreenContainer",void 0);
_.U([_.fY("player"),_.W("design:type",Object)],w8.prototype,"playerElement",void 0);_.U([_.fY("shorts-cinematic-container"),_.W("design:type",HTMLElement)],w8.prototype,"shortsCinematicContainer",void 0);_.U([_.fY("initial-player-container"),_.W("design:type",HTMLElement)],w8.prototype,"initialPlayerContainer",void 0);_.U([_.O(),_.W("design:type",Object)],w8.prototype,"buttonOverride",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],w8.prototype,"anchoredPanelActive",void 0);
_.U([_.O(),_.W("design:type",String)],w8.prototype,"activePanel",void 0);_.U([_.O(),_.W("design:type",Object)],w8.prototype,"isActive",void 0);_.U([_.O({selector:Ead,reflectToAttribute:!0}),_.W("design:type",Object)],w8.prototype,"smallScreenPersistentPanel",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],w8.prototype,"isPersistentPanelActive",void 0);_.U([_.O(),_.W("design:type",Object)],w8.prototype,"smallScreenSqueezeBack",void 0);
_.U([_.O(),_.W("design:type",Object)],w8.prototype,"enableScrollIntoViewCenter",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],w8.prototype,"formatFirst",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],w8.prototype,"enableFlexibleOverlay",void 0);_.U([_.O(),_.W("design:type",Object)],w8.prototype,"panelContainer",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],w8.prototype,"enableNewCarousel",void 0);
_.U([_.O(),_.W("design:type",Object)],w8.prototype,"overlayContainer",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],w8.prototype,"currentReelVideoRenderer",void 0);_.U([_.O(),_.W("design:type",Object)],w8.prototype,"isShortsInitialized",void 0);_.U([_.K("reelWatchSequenceResponse"),_.W("design:type",Object),_.W("design:paramtypes",[])],w8.prototype,"prevShortsSequence",null);
_.U([_.K("data","prevShortsSequence"),_.W("design:type",Object),_.W("design:paramtypes",[])],w8.prototype,"shortsProcessedPrevSequence",null);_.U([_.K("reelWatchSequenceResponse"),_.W("design:type",Object),_.W("design:paramtypes",[])],w8.prototype,"shortsSequence",null);_.U([_.K("data","shortsSequence"),_.W("design:type",Object),_.W("design:paramtypes",[])],w8.prototype,"shortsProcessedSequence",null);
_.U([_.O({reflectToAttribute:!0}),_.K("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],w8.prototype,"isUpArrowHidden",null);_.U([_.O({reflectToAttribute:!0}),_.K("reelWatchSequenceResponse"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],w8.prototype,"isDownArrowHidden",null);
_.U([_.O(),_.K("index"),_.W("design:type",Number),_.W("design:paramtypes",[])],w8.prototype,"activeIndex",null);_.U([_.K("isShortPlayable","data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],w8.prototype,"shouldRenderOfflineContent",null);_.U([_.M("iron-resize"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],w8.prototype,"onResize",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],w8.prototype,"anchoredEngagementPanels",null);
_.U([_.O(),_.W("design:type",Object)],w8.prototype,"watchWhileEngagementPanels",void 0);_.U([_.N("isFullscreen"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],w8.prototype,"onFullscreenChange",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],w8.prototype,"engagementPanelsChanged",null);
_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Wt]),_.W("design:returntype")],w8.prototype,"onServiceRequestCompleted",null);_.U([_.K("data","shortsSequence","index"),_.W("design:type",Object),_.W("design:paramtypes",[])],w8.prototype,"activeReel",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],w8.prototype,"setCurrentReelVideoRenderer",null);
_.U([_.N("isPlayerStarted"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],w8.prototype,"afterPlayerStarted",null);_.U([_.K("playerData","reelWatchSequenceResponse","data"),_.W("design:type",Object),_.W("design:paramtypes",[])],w8.prototype,"errorScreen",null);_.U([_.K("errorScreen"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],w8.prototype,"hasError",null);
_.U([_.N("playerData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype",Promise)],w8.prototype,"playerDataChanged",null);_.U([_.M("yt-dismissible-item-undo-feedback"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],w8.prototype,"onShortUndoDismiss",null);_.U([_.M("yt-disable-lockup-interaction"),_.W("design:type",Function),_.W("design:paramtypes",[Object]),_.W("design:returntype")],w8.prototype,"onShortsDismiss",null);
_.U([_.kr("active"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],w8.prototype,"onActiveChanged",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],w8.prototype,"graftClientVisualElements",null);_.U([_.N("currentPlayerIndex"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],w8.prototype,"graftNvcRenderer",null);
_.U([_.N("index"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],w8.prototype,"setActiveIndex",null);_.U([_.N("isShortsPipActive"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],w8.prototype,"onShortsPipActiveChanged",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],w8.prototype,"lazyUpdateMiniplayerData",null);
_.U([_.N("index","data","isUpArrowHidden"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],w8.prototype,"onPrevButtonDataChange",null);_.U([_.N("index","data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],w8.prototype,"onNextButtonDataChange",null);w8=_.U([_.Q({is:"ytd-shorts"})],w8);_.IH.registerService(_.B7a,w8);
_.Bg();
}catch(e){_._DumpException(e)}
try{
_.Ag("JzFVk");
var e$c=function(a){return _.q("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},d$c(a.data.ctaButton,{buttonViewModel:{}}),_.q(_.wt,{text:a.data.subtext,className:"ytwYtdButtonBannerViewModelSubtext"}))};var f$c;var g$c;var h$c=function(){return _.P.apply(this,arguments)||this};
_.z(h$c,_.P);h$c.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
h$c.prototype.computeBlueBottomLink=function(a){return a};
var U7=h$c;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],U7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],U7.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],U7.prototype,"data",void 0);_.U([_.O({computed:"computeIcon_(data.bottomIcon)"}),_.W("design:type",String)],U7.prototype,"bottomIcon",void 0);
_.U([_.O({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.W("design:type",Boolean)],U7.prototype,"enableBlueBottomLink",void 0);U7=_.U([_.Q({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],U7);
_.S(U7,"ytd-web-answer-renderer",function(){if(g$c!==void 0)return g$c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return g$c=a},{mode:_.as("kevlar_poly_si_batch_j035")?1:2});var i$c;var j$c=function(){var a=_.P.apply(this,arguments)||this;a.hasChipBar=!1;return a};
_.z(j$c,_.P);j$c.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}}};
j$c.prototype.computeHasChipBar=function(a){return!(a==null||!a.chipBar)};
var V7=j$c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],V7.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],V7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],V7.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.W("design:type",Object)],V7.prototype,"hasChipBar",void 0);
V7=_.U([_.Q({is:"ytd-search-header-renderer",disableElementRegistration:!0})],V7);
_.S(V7,"ytd-search-header-renderer",function(){if(i$c!==void 0)return i$c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return i$c=a},{mode:1});var k$c;var l$c=function(){return _.P.apply(this,arguments)||this};
_.z(l$c,_.P);l$c.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
var W7=l$c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],W7.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],W7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],W7.prototype,"data",void 0);W7=_.U([_.Q({disableElementRegistration:!0,is:"ytd-page-continuation"})],W7);
_.S(W7,"ytd-page-continuation",function(){if(k$c!==void 0)return k$c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return k$c=a},{mode:1});var m$c;var n$c;var o$c;var p$c=function(){return _.P.apply(this,arguments)||this};
_.z(p$c,_.P);var q$c=p$c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],q$c.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],q$c.prototype,"data",void 0);q$c=_.U([_.Q({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],q$c);
_.S(q$c,"ytd-watch-card-one-vs-one-event",function(){if(o$c!==void 0)return o$c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return o$c=a},{mode:1});var r$c=function(){return _.P.apply(this,arguments)||this};
_.z(r$c,_.P);var s$c=r$c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],s$c.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],s$c.prototype,"data",void 0);s$c=_.U([_.Q({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],s$c);
_.S(s$c,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(n$c!==void 0)return n$c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return n$c=a},{mode:1});var t$c;var u$c=function(){return _.P.apply(this,arguments)||this};
_.z(u$c,_.P);var v$c=u$c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],v$c.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],v$c.prototype,"data",void 0);v$c=_.U([_.Q({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],v$c);
_.S(v$c,"ytd-banner-and-box-hero-image-renderer",function(){if(t$c!==void 0)return t$c;var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return t$c=a},{mode:1});var w$c;var x$c=function(){var a=_.P.apply(this,arguments)||this;a.modern=_.x("web_modern_buttons");return a};
_.z(x$c,_.P);x$c.prototype.computeIcon=function(){var a,b,c=(a=this.data)==null?void 0:(b=a.icon)==null?void 0:b.iconType;if(c)return _.fs(c)};
x$c.prototype.computeButtonShape=function(){var a;return{buttonText:_.Vp((a=this.data)==null?void 0:a.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.Vm.Object.defineProperties(x$c.prototype,{buttonColor:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style.replace("CALL_TO_ACTION_BUTTON_RENDERER_STYLE_",""):"RED"}}});
var X7=x$c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],X7.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],X7.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],X7.prototype,"modern",void 0);_.U([_.O({type:_.x("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.K("data.style"),_.W("design:type",Object),_.W("design:paramtypes",[])],X7.prototype,"buttonColor",null);
X7=_.U([_.Q({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],X7);
_.S(X7,"ytd-call-to-action-button-renderer",function(){if(w$c!==void 0)return w$c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return w$c=a},{mode:1});var y$c;var z$c=function(){return _.P.apply(this,arguments)||this};
_.z(z$c,_.P);z$c.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.E(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.Xs(this.data.leftThumbnail.thumbnails,216)+")")};
var Y7=z$c;Y7.prototype.onLeftThumbnailChanged=Y7.prototype.onLeftThumbnailChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],Y7.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],Y7.prototype,"data",void 0);_.U([_.N("data.leftThumbnail"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Y7.prototype,"onLeftThumbnailChanged",null);Y7=_.U([_.Q({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],Y7);
_.S(Y7,"ytd-collage-hero-image-renderer",function(){if(y$c!==void 0)return y$c;var a=document.createElement("template");_.B(a,'\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>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return y$c=a},{mode:1});var A$c;var B$c=function(){return _.P.apply(this,arguments)||this};
_.z(B$c,_.P);B$c.prototype.computeStyle=function(a){return a};
var Z7=B$c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],Z7.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],Z7.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.W("design:type",String)],Z7.prototype,"componentStyle",void 0);Z7=_.U([_.Q({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],Z7);
_.S(Z7,"ytd-single-hero-image-renderer",function(){if(A$c!==void 0)return A$c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return A$c=a},{mode:1});var C$c;var D$c=function(){return _.P.apply(this,arguments)||this};
_.z(D$c,_.P);_.f=D$c.prototype;
_.f.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:_.x("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.f.computeSubtitle=function(a){if(this.data){var b;if(this.data.upcomingEventData){a=_.Vp(a.subtitle);var c=Number(this.data.upcomingEventData.startTime);isNaN(c)||(b=_.Up(_.Ku(a,c)))}else b=a.subtitle;return b}};
_.f.onHeroTap=function(a){a.preventDefault();var b=this.data&&this.data.navigationEndpoint;!b||!_.Xt(_.Pq(a),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.Xt(_.Pq(a),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.x("kevlar_watchcard_hero_video_renderer_killswitch")?_.go(this.hostElement,"yt-navigate",{navigationEndpoint:b}):this.ytComponentBehavior.resolveCommand(b))};
_.f.computeHeroTabIndex=function(a){return a&&a.simpleText?-1:0};
_.f.computeHeroRole=function(a){return a&&a.simpleText?"":"link"};
_.f.computeIsReminderButtonPresent=function(a){return!(!a||!a.reminderButton)};
_.f.computeHideBottomItems=function(a){return!(this.computeIsReminderButtonPresent(a)||a.subtitle)};
_.f.dataChanged=function(){var a=this.get("data.buttons.buttonRenderer.serviceEndpoint"),b;((b=_.y(a==null?void 0:a.commandMetadata,_.HE))==null?0:b.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(a)};
var $7=D$c;$7.prototype.dataChanged=$7.prototype.dataChanged;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],$7.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],$7.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],$7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],$7.prototype,"data",void 0);
_.U([_.O({computed:"computeSubtitle(data)"}),_.W("design:type",String)],$7.prototype,"subtitle",void 0);_.U([_.O({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],$7.prototype,"isReminderButtonPresent",void 0);_.U([_.O({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],$7.prototype,"hideBottomItems",void 0);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],$7.prototype,"dataChanged",null);$7=_.U([_.Q({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],$7);
_.S($7,"ytd-watch-card-hero-video-renderer",function(){if(C$c!==void 0)return C$c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return C$c=a},{mode:1});var E$c;var F$c=function(){return _.P.apply(this,arguments)||this};
_.z(F$c,_.P);_.f=F$c.prototype;_.f.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"}}}};
_.f.computeTitleBadges=function(a){return a?[a]:[]};
_.f.computeHeaderStyle=function(a){return a?a.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.f.computeAvatarAriaLabel=function(a){if(a){var b,c,d,e;return(e=(b=a.avatar)==null?void 0:(c=b.accessibility)==null?void 0:(d=c.accessibilityData)==null?void 0:d.label)!=null?e:_.Vp(a==null?void 0:a.title)}};
_.f.computeAvatarHeight=function(a){return a==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.f.computeBadgeRowClass=function(a){return(a==null?0:a[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
var a8=F$c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],a8.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],a8.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],a8.prototype,"data",void 0);_.U([_.O({computed:"computeTitleBadges(data.titleBadge)"}),_.W("design:type",Array)],a8.prototype,"titleBadges",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.W("design:type",String)],a8.prototype,"headerStyle",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.W("design:type",String)],a8.prototype,"badgeRowClass",void 0);a8=_.U([_.Q({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],a8);
_.S(a8,"ytd-watch-card-rich-header-renderer",function(){if(E$c!==void 0)return E$c;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return E$c=a},{mode:1});var G$c;var H$c;var I$c=function(){return _.P.apply(this,arguments)||this};
_.z(I$c,_.P);I$c.prototype.onMetadataTap=function(a){var b=this.data&&this.data.navigationEndpoint;b&&!_.Xt(_.Pq(a),this.hostElement,["A".toString()])&&_.go(this.hostElement,"yt-navigate",{endpoint:b})};
_.Vm.Object.defineProperties(I$c.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 a;if(this.data.upcomingEventData){var b=_.Vp(this.data.subtitle),c=Number(this.data.upcomingEventData.startTime);isNaN(c)||(a=_.Up(_.Ku(b,c)))}else a=this.data.subtitle;return a}}}});
var b8=I$c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],b8.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],b8.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.K("data.style"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],b8.prototype,"isCondensed",null);_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],b8.prototype,"subtitle",null);
b8=_.U([_.Q({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],b8);
_.S(b8,"ytd-watch-card-compact-video-renderer",function(){if(H$c!==void 0)return H$c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return H$c=a},{mode:1});var J$c;var K$c=function(){return _.P.apply(this,arguments)||this};
_.z(K$c,_.P);var L$c=K$c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],L$c.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],L$c.prototype,"data",void 0);L$c=_.U([_.Q({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],L$c);
_.S(L$c,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(J$c!==void 0)return J$c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return J$c=a},{mode:1});var M$c=function(){return _.P.apply(this,arguments)||this};
_.z(M$c,_.P);M$c.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{watchCardCompactVideoRenderer:{component:"ytd-watch-card-compact-video-renderer",noInjection:!0},watchCardOneVsOneEventCompactVideoRenderer:{component:"ytd-watch-card-one-vs-one-event-compact-video-renderer",noInjection:!0}}}}};
var c8=M$c;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],c8.prototype,"ytRendererStamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],c8.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],c8.prototype,"data",void 0);c8=_.U([_.Q({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],c8);
_.S(c8,"ytd-vertical-watch-card-list-renderer",function(){if(G$c!==void 0)return G$c;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return G$c=a},{mode:1});var N$c;var O$c=function(){var a=_.P.apply(this,arguments)||this;a.ariaExpanded="false";return a};
_.z(O$c,_.P);_.f=O$c.prototype;_.f.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.f.dataChanged=function(){var a;this.currentSeasonIndex=((a=this.data)==null?void 0:a.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.f.computeEpisodesInfo=function(a,b,c){if(a!==void 0&&b.length===a.length)return a[c]};
_.f.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.f.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.f.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.f.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.f.getUppercaseSimpleString=function(a){return this.ytRendererBehavior.getSimpleString(a).toUpperCase()};
_.f.updateCurrentSeasonIndexFromBinding=function(a){this.currentSeasonIndex=a.detail.value};
var d8=O$c;d8.prototype.onIronOverlayClosed=d8.prototype.onIronOverlayClosed;d8.prototype.currentSeasonIndexChanged=d8.prototype.currentSeasonIndexChanged;d8.prototype.dataChanged=d8.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],d8.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],d8.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],d8.prototype,"data",void 0);
_.U([_.O(),_.W("design:type",String)],d8.prototype,"label",void 0);_.U([_.O({value:0}),_.W("design:type",Number)],d8.prototype,"currentSeasonIndex",void 0);_.U([_.O({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.W("design:type",Object)],d8.prototype,"episodesInfo",void 0);_.U([_.O({value:"false"}),_.W("design:type",Object)],d8.prototype,"ariaExpanded",void 0);_.U([_.gr("#lists"),_.W("design:type",Object)],d8.prototype,"lists",void 0);
_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],d8.prototype,"dataChanged",null);_.U([_.kr("currentSeasonIndex"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],d8.prototype,"currentSeasonIndexChanged",null);_.U([_.M("iron-overlay-closed"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],d8.prototype,"onIronOverlayClosed",null);
d8=_.U([_.Q({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],d8);
_.S(d8,"ytd-watch-card-section-dropdown-renderer",function(){if(N$c!==void 0)return N$c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-section-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="season-picker-container style-scope ytd-watch-card-section-dropdown-renderer">\n  <tp-yt-paper-menu-button id="input" dynamic-align="" horizontal-align="left" class="style-scope ytd-watch-card-section-dropdown-renderer">\n    <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-trigger" aria-expanded$="[[ariaExpanded]]" aria-label$="[[label]]" on-tap="onLabelClick">\n      <div id="label-text" class="style-scope ytd-watch-card-section-dropdown-renderer">[[label]]</div>\n      <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-watch-card-section-dropdown-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="seasons" class="dropdown-content style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-content" selected="[[currentSeasonIndex]]" on-iron-select="onSeasonSelect" on-selected-changed="updateCurrentSeasonIndexFromBinding">\n      <template is="dom-repeat" items="[[data.dropdownTitles]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n        <tp-yt-paper-item aria-label$="[[item.accessibility.accessibilityData.label]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n          [[getUppercaseSimpleString(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <span id="spacer" class="style-scope ytd-watch-card-section-dropdown-renderer"></span>\n  <yt-formatted-string id="episodes" text="[[episodesInfo]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  </yt-formatted-string>\n</div>\n<tp-yt-iron-pages id="lists" selected="[[currentSeasonIndex]]" on-selected-changed="updateCurrentSeasonIndexFromBinding" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  \n</tp-yt-iron-pages>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return N$c=a},{mode:1});var P$c;var Q$c=function(){var a=_.P.apply(this,arguments)||this;a.isSearch=!1;return a};
_.z(Q$c,_.P);Q$c.prototype.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:{component:"ytd-vertical-watch-card-list-renderer",noInjection:!0},horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"},noInjection:!0}}}}};
var e8=Q$c;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],e8.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],e8.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],e8.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],e8.prototype,"isSearch",void 0);e8=_.U([_.Q({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],e8);
_.S(e8,"ytd-watch-card-section-sequence-renderer",function(){if(P$c!==void 0)return P$c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);
return P$c=a},{mode:1});var d$c=_.Au({buttonViewModel:_.Ju});_.am(e$c);_.dt(e$c,"ytd-button-banner-view-model",{propNames:["data"]});var R$c=function(){var a=_.P.apply(this,arguments)||this;a.isSearch=!1;return a};
_.z(R$c,_.P);
R$c.prototype.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{watchCardRichHeaderRenderer:{component:"ytd-watch-card-rich-header-renderer",noInjection:!0}}},"data.callToAction":{id:"hero",mapping:{watchCardHeroVideoRenderer:{component:"ytd-watch-card-hero-video-renderer",noInjection:!0},watchCardHeroOneVsOneEventRenderer:{component:"ytd-watch-card-hero-one-vs-one-event-renderer",noInjection:!0}}},"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",noInjection:!0}}},
"data.sections":{id:"sections",mapping:{watchCardSectionDropdownRenderer:{component:"ytd-watch-card-section-dropdown-renderer",noInjection:!0},watchCardSectionSequenceRenderer:{component:"ytd-watch-card-section-sequence-renderer",properties:{isSearch:"[[isSearch]]"},noInjection:!0}}},"data.footer":{id:"footer",mapping:{buttonBannerViewModel:"ytd-button-banner-view-model"}}}};
var f8=R$c;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],f8.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],f8.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],f8.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,value:!0}),_.W("design:type",Boolean)],f8.prototype,"rounded",void 0);_.U([_.O(),_.W("design:type",Object)],f8.prototype,"isSearch",void 0);
f8=_.U([_.Q({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],f8);
_.S(f8,"ytd-universal-watch-card-renderer",function(){if(m$c!==void 0)return m$c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return m$c=a},{mode:1});var S$c;_.Ws(_.Rr(function(a){var b=a.data;var c;a=!((c=_.v().resolve(_.Wi(_.Ns)))==null||!c());c={};return _.q("overview-message-view-model",{class:_.jt("ytwOverviewMessageViewModelHost",(c.ytwOverviewMessageViewModelDarkBackground=a,c.ytwOverviewMessageViewModelLightBackground=!a,c))},_.q(_.oi,{cond:function(){return b().primaryImage},
then:function(d){return _.q(_.Ss,{data:d,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.q(_.oi,{cond:function(){return b().primaryText},
then:function(){return _.q("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.q(_.wt,{text:function(){return b().primaryText}}))}}),_.q(_.oi,{cond:function(){return b().secondaryText},
then:function(){return _.q("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.q(_.wt,{text:function(){return b().secondaryText}}))}}))}),"overview-message-view-model",{props:{data:_.SG}});_.dt(_.$$b,"ytd-overview-answer-view-model",{propNames:["data"]});var T$c=function(){return _.P.apply(this,arguments)||this};
_.z(T$c,_.P);T$c.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"}}}};
T$c.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
var g8=T$c;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],g8.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],g8.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.RM),_.W("design:type",Object)],g8.prototype,"ytContinuationHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],g8.prototype,"data",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],g8.prototype,"isSearch",void 0);
g8=_.U([_.Q({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],g8);
_.S(g8,"ytd-secondary-search-container-renderer",function(){if(S$c!==void 0)return S$c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);
return S$c=a},{mode:1});var U$c;var V$c=function(){var a=_.P.apply(this,arguments)||this;a.renderSecondarySearchContainer=!1;a.isSearch=!1;a.isSearchDova=_.x("dova_on_search");return a};
_.z(V$c,_.P);_.f=V$c.prototype;_.f.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary",mapping:{sectionListRenderer:{component:"ytd-section-list-renderer",properties:{isSearch:"[[isSearch]]",isSearchDova:"[[isSearchDova]]"}}}},"data.continuations":{id:"continuations",mapping:{pageContinuationData:"ytd-page-continuation"}}}};
_.f.created=function(){var a=this;this.boundStampSecondarySearchContainerIfFits=function(){a.stampSecondarySearchContainerIfFits()};
_.Bi("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.f.computeIsSearchFrictionPage=function(a){var b,c,d,e,g;a=a==null?void 0:(b=a.primaryContents)==null?void 0:(c=b.sectionListRenderer)==null?void 0:(d=c.contents)==null?void 0:(e=d[0])==null?void 0:(g=e.itemSectionRenderer)==null?void 0:g.contents;if(!a)return!1;b=_.h(a);for(c=b.next();!c.done;c=b.next())if(d=void 0,(d=c.value)==null?0:d.searchFrictionViewModel)return!0;return!1};
_.f.computeShowSecondaryColumn=function(a,b){return!!(b&&b.secondaryContents&&a)};
_.f.activeChanged=function(){var a=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.er(this,this.debounceStampSecondarySearchContainerIfFits)),_.Cr(function(){a.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.er(this,this.debounceStampSecondarySearchContainerIfFits))};
_.f.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.f.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.f.debounceStampSecondarySearchContainerIfFits=function(){_.Dr(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.f.onRetrieveLocation=function(a,b){b.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);a.stopPropagation()};
_.f.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
var h8=V$c;h8.prototype.dataChanged=h8.prototype.dataChanged;h8.prototype.onRetrieveLocation=h8.prototype.onRetrieveLocation;h8.prototype.persistentGuideChanged=h8.prototype.persistentGuideChanged;h8.prototype.activeChanged=h8.prototype.activeChanged;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],h8.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],h8.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.SI.YtdGuideStateAwareBehavior),_.W("design:type",Object)],h8.prototype,"ytdGuideStateAwareBehavior",void 0);_.U([_.H(_.KD),_.W("design:type",Object)],h8.prototype,"ironResizableBehavior",void 0);_.U([_.O(),_.W("design:type",Boolean)],h8.prototype,"active",void 0);_.U([_.O(),_.W("design:type",Object)],h8.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,value:function(){return _.x("enable_desktop_search_bigger_thumbs")}}),
_.W("design:type",Boolean)],h8.prototype,"useBiggerThumbs",void 0);_.U([_.O({reflectToAttribute:!0,value:function(){return _.aj("desktop_search_bigger_thumbs_style")}}),
_.W("design:type",String)],h8.prototype,"biggerThumbsStyle",void 0);_.U([_.O(),_.W("design:type",Object)],h8.prototype,"renderSecondarySearchContainer",void 0);_.U([_.O({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.W("design:type",Boolean)],h8.prototype,"showSecondaryColumn",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.W("design:type",Boolean)],h8.prototype,"isSearchFrictionPage",void 0);
_.U([_.O(),_.W("design:type",Object)],h8.prototype,"isSearch",void 0);_.U([_.O(),_.W("design:type",Object)],h8.prototype,"isSearchDova",void 0);_.U([_.N("active"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],h8.prototype,"activeChanged",null);_.U([_.N("guidePersistentAndVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],h8.prototype,"persistentGuideChanged",null);
_.U([_.M("yt-retrieve-location"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],h8.prototype,"onRetrieveLocation",null);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],h8.prototype,"dataChanged",null);h8=_.U([_.Q({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],h8);
_.S(h8,"ytd-two-column-search-results-renderer",function(){if(U$c!==void 0)return U$c;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return U$c=a},{mode:1});var W$c=function(){var a=_.P.apply(this,arguments)||this;a.hasSearchHeader=!1;a.hasSecondaryContent=!1;a.hasBiggerThumbs=_.x("enable_desktop_search_bigger_thumbs");a.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return a};
_.z(W$c,_.P);_.f=W$c.prototype;_.f.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:_.LW(["aa","eocs"])}}};
_.f.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.f.loadPage_=function(a){this.initCsi();a&&(this.data=a,_.Bi("REFINEMENTS_TUPLE",["FromSearchResponse",a.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.Pk(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.f.initCsi=function(){_.W6c("results",["ol","cpt"])};
_.f.updateTitle=function(){var a=_.Hg(window.location.href,"q");a||(a=_.Hg(window.location.href,"search_query"));_.go(this.hostElement,"yt-update-title",a||"")};
_.f.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.f.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.x("web_srp_data_changed_terminate_imp_killswitch")||_.ho(this.hostElement,"yt-terminate-video-preview-action")};
_.f.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.f.computeHasSearchHeader=function(a){var b;a=a==null?void 0:(b=a.header)==null?void 0:b.searchHeaderRenderer;return!!a&&(!!a.searchFilterButton||!!a.chipBar)};
_.f.computeHasSecondaryContent=function(a){var b,c;return!!(a==null?0:(b=a.contents)==null?0:(c=b.twoColumnSearchResultsRenderer)==null?0:c.secondaryContents)};
_.Vm.Object.defineProperties(W$c,{template:{configurable:!0,enumerable:!0,get:function(){if(f$c===void 0){var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);f$c=a}a=f$c;return a}}});
var i8=W$c;i8.prototype.onReloadContinuationFinish=i8.prototype.onReloadContinuationFinish;i8.prototype.dataChanged=i8.prototype.dataChanged;_.U([_.H(_.I6.YtPageBehavior),_.W("design:type",Object)],i8.prototype,"ytPageBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],i8.prototype,"actionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],i8.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],i8.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.RM),_.W("design:type",Object)],i8.prototype,"ytContinuationHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],i8.prototype,"data",void 0);_.U([_.O({value:!0}),_.W("design:type",Boolean)],i8.prototype,"monitorScroll",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],i8.prototype,"hasSearchHeader",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],i8.prototype,"hasSecondaryContent",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],i8.prototype,"hasBiggerThumbs",void 0);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],i8.prototype,"dataChanged",null);
_.U([_.M("yt-reload-continuation-finish"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],i8.prototype,"onReloadContinuationFinish",null);i8=_.U([_.Q({is:"ytd-search"})],i8);_.IH.registerService(_.A7a,i8);
_.Bg();
}catch(e){_._DumpException(e)}
try{
_.Ag("h8y2qb");
var Y6c=function(a){if(a=_.VQa(a)){var b;(b=a.sources)!=null&&b[0]?(b=_.XQa(a),b=b<1?"VERTICAL":b>1?"HORIZONTAL":"SQUARE"):b=void 0;return b}},J6=function(a){_.DA.call(this,"upload");
this.opts.query=a},$6c=function(a,b){return _.q(Z6c,{data:a,
onYtNavigate:b})},b7c=function(a,b){return a.map(function(c){if(c.tabRenderer)return a7c(c.tabRenderer);
if(c.expandableTabRenderer&&b){var d=c.expandableTabRenderer;return{customTabRenderable:function(){return b(d)}}}return{}})},a7c=function(a){return{identifier:a.tabIdentifier,
aTagConfig:_.Gs({innertubeCommand:a.endpoint,forceNewState:!0}),title:a.title,selected:a.selected,disabled:a.unselectable}},c7c=function(a,b){return _.mp(a.entities,"pageHeaderEntity",b)},f7c=function(a){var b=a.data;
var c=a.noPadding===void 0?!1:a.noPadding;var d=a.enableBanner===void 0?!1:a.enableBanner;var e=a.cinematicContainerTopbarOffset;var g=a.allowCinematicContainerOverflow===void 0?!1:a.allowCinematicContainerOverflow;a=a.displayAsSidebar===void 0?!1:a.displayAsSidebar;if(b==null?0:b.tagManagerId)_.yG(b.tagManagerId,_.Ei("GL")),d7c(b.tagManagerId);a:{if(b.pageHeaderEntityKey){var k=_.su(c7c,b.pageHeaderEntityKey);if(k==null?0:k.header){k=k==null?void 0:k.header;break a}}k=a&&b.sidebarContent?b.sidebarContent:
b.content}return _.q("yt-page-header-renderer",{class:"page-header-renderer-wiz"},e7c(k,{pageHeaderViewModel:{noPadding:c,enableBanner:d,cinematicContainerTopbarOffset:e,allowCinematicContainerOverflow:g,displayAsSidebar:a&&b.enableSidebarView}}))},g7c=function(a){return _.gp({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:a})},d7c=function(a){if(!_.du(document,"gtm-noscript")){var b=document.createElement("noscript");
b.id="gtm-noscript";b.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+a+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(b)}};_.nx(J6,_.DA);J6.prototype.JSC$7924_setLabel=function(a){J6.superClass_.JSC$7924_setLabel.call(this,a);return this};
J6.prototype.addUploadMetadata=function(a,b){J6.superClass_.addUploadMetadata.call(this,a,b);return this};var h7c=function(a){if(a!=="youtubebanner"&&a!=="youtube-channel-banner")throw Error("Pl");J6.call(this,a)};
_.z(h7c,J6);h7c.prototype.JSC$7924_setLabel=function(a){J6.prototype.JSC$7924_setLabel.call(this,a);return this};
h7c.prototype.addUploadMetadata=function(a,b){J6.prototype.addUploadMetadata.call(this,a,b);return this};var i7c=[_.KD,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(a){_.xn(a).path[0]!==this&&(this.resetLayout(),a.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var a=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.nC(this._layoutDebouncer,_.ts,a);_.oC(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var a=this;requestAnimationFrame(function(){a.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(a){this.resizerShouldNotify(a)&&this._notifyDescendant(a)},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 j7c=[_.yub,{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(a,b){var c=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[a];if(!c)throw new ReferenceError(this._getUndefinedMsg(a));a=this._boundEffect(c,b||{});a.setUp();return a},
_effectsChanged:function(a,b,c){this._tearDownEffects();a&&c&&(a.split(" ").forEach(function(d){var e;d!==""&&((e=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[d])?this._effects.push(this._boundEffect(e,b[d])):console.warn(this._getUndefinedMsg(d)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(a,b){b=b||{};var c=parseFloat(b.startsAt||0),d=parseFloat(b.endsAt||1),e=d-c,g=function(){};
d=c===0&&d===1?a.run:function(k,m){a.run.call(this,Math.max(0,(k-c)/e),m)};
return{setUp:a.setUp?a.setUp.bind(this,b):g,run:a.run?d.bind(this):g,tearDown:a.tearDown?a.tearDown.bind(this):g}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(a){a.setUp()!==!1&&this._effectsRunFn.push(a.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(a){a.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(a,b){this._effectsRunFn&&this._effectsRunFn.forEach(function(c){c(a,b)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var a=this._clampedScrollTop;this._updateScrollState(a);this.threshold>0&&this._setThresholdTriggered(a>=this.threshold)}},
_getDOMRef:function(a){console.warn("_getDOMRef","`"+a+"` is undefined")},
_getUndefinedMsg:function(a){return"Scroll effect `"+a+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+a+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Ql`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(a){var b={};a=parseFloat(a.scalar);b.background=this._getDOMRef("background");b.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");b.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");b.deltaBg=b.backgroundFrontLayer.offsetHeight-b.background.offsetHeight;b.deltaBg===0?(isNaN(a)&&(a=.8),b.deltaBg=(this._dHeight||0)*a):(isNaN(a)&&(a=
1),b.deltaBg*=a);this._fxParallaxBackground=b},
run:function(a){var b=this._fxParallaxBackground;this.transform("translate3d(0px, "+b.deltaBg*Math.min(1,a)+"px, 0px)",b.backgroundFrontLayer);b.backgroundRearLayer&&this.transform("translate3d(0px, "+b.deltaBg*Math.min(1,a)+"px, 0px)",b.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var k7c;var l7c;var m7c=function(){};
_.f=m7c.prototype;_.f._scrollTargetChanged=function(){};
_.f.scroll=function(){};
_.f._isValidScrollTarget=function(){};
_.f._toggleScrollListener=function(){};
_.f.toggleScrollListener=function(){};
_.f.createEffect=function(){};
_.f._effectsChanged=function(){};
_.f._layoutIfDirty=function(){};
_.f._boundEffect=function(){};
_.f._setUpEffect=function(){};
_.f._tearDownEffects=function(){};
_.f._runEffects=function(){};
_.f._scrollHandler=function(){};
_.f._scrollStateChanged=function(){};
_.f._getUndefinedMsg=function(){};
_.f.notifyResize=function(){};
_.f.assignParentResizable=function(){};
_.f.stopResizeNotificationsFor=function(){};
_.f._subscribeIronResize=function(){};
_.f._unsubscribeIronResize=function(){};
_.f.resizerShouldNotify=function(){};
_.f._onDescendantIronResize=function(){};
_.f._fireResize=function(){};
_.f._onIronRequestResizeNotifications=function(){};
_.f._parentResizableChanged=function(){};
_.f._notifyDescendant=function(){};
_.f._requestResizeNotifications=function(){};
_.f._findParent=function(){};
_.f._appResetLayoutHandler=function(){};
_.f.resetLayout=function(){};
_.f._notifyLayoutChanged=function(){};
_.f._notifyDescendantResize=function(){};
_.f._setThresholdTriggered=function(){};
m7c=_.qr({_template:function(){if(l7c!==void 0)return l7c;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;k7c===void 0&&(k7c=document.createElement("template"));var d=k7c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return l7c=a},
is:"tp-yt-app-header",behaviors:[j7c,i7c],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 a=_.xn(this.$.slot).getDistributedNodes(),b=0,c;c=a[b];b++)if(c.nodeType===Node.ELEMENT_NODE)if(c.hasAttribute("sticky")){this._stickyElRef=c;break}else this._stickyElRef||(this._stickyElRef=c);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var a=this._clampedScrollTop,b=this._height===0||a===0,c=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;b||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();b?this._updateScrollState(a,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=c}},
_updateScrollState:function(a,b){if(this._height!==0){var c=0,d=this._top;var e=this._maxHeaderTop;var g=a-this._lastScrollTop,k=Math.abs(g),m=a>this._lastScrollTop,n=performance.now();this._mayMove()&&(c=this._clamp(this.reveals?d+g:a,0,e));a>=this._dHeight&&(c=this.condenses&&!this.fixed?Math.max(this._dHeight,c):c,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&k<100){if(n-this._initTimestamp>300||this._wasScrollingDown!==m)this._initScrollTop=a,this._initTimestamp=n;a>=e&&
(Math.abs(this._initScrollTop-a)>30||k>10?(m&&a>=e?c=e:!m&&a>=this._dHeight&&(c=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((c-d)/(g/(n-this._lastTimestamp)),0,300)+"ms"):c=this._top)}e=this._dHeight===0?a>0?1:0:c/this._dHeight;b||(this._lastScrollTop=a,this._top=c,this._wasScrollingDown=m,this._lastTimestamp=n);if(b||e!==this._progress||d!==c||a===0)this._progress=e,this._runEffects(e,c),this._transformHeader(c)}},
_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(a){this.translate3d(0,-a+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&a>=this._stickyElTop?Math.min(a,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(a,b,c){return Math.min(c,Math.max(b,a))},
_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),_.xn(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(a){switch(a){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.xn(this).querySelector("[main-title]");case "condensedTitle":return _.xn(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var n7c;var o7c;_.qr({_template:function(){if(o7c!==void 0)return o7c;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;n7c===void 0&&(n7c=document.createElement("template"));var d=n7c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return o7c=a},
is:"tp-yt-app-header-layout",behaviors:[i7c],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.xn(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var a=this.header;if(this.isAttached&&a){this.$.wrapper.classList.remove("initializing");a.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)a.style.left=
"",a.style.right="";else{var b=this.getBoundingClientRect(),c=document.documentElement.clientWidth-b.right;a.style.left=b.left+"px";a.style.right=c+"px"}b=this.$.contentContainer.style;c=a.offsetHeight;a.fixed&&!a.condenses&&this.hasScrollingRegion?(b.marginTop=c+"px",b.paddingTop=""):(b.paddingTop=c+"px",b.marginTop="")}}});var p7c=new _.X("replaceFeedContentAction");var q7c=new _.X("alertCommand");var r7c=new _.X("manageLabsStateCommand");var s7c=new _.X("channelBannerEditorRenderer");var t7c=new _.X("inlineFormRenderer");var u7c=new _.X("playlistSidebarPrimaryInfoRenderer");var v7c=new _.X("productDetailsThumbnailRenderer"),w7c=new _.X("productDetailsVariantRenderer"),x7c=new _.X("productDetailsVariantOptionRenderer"),y7c=new _.X("productDetailsOffersContainerRenderer"),z7c=new _.X("productDetailsOfferRenderer");var A7c=new _.X("shoppingFlaggingRenderer");var B7c=new _.X("playlistBylineRenderer");var C7c=new _.X("insertChannelTabCommand");var D7c=function(){return _.ir.apply(this,arguments)||this};
_.z(D7c,_.ir);_.f=D7c.prototype;_.f.activeChanged=function(){if(this.active){var a=_.E(this.hostElement).querySelector("#header");a&&_.go(a,"iron-resize");window.addEventListener("scroll",_.er(this,this.onScroll))}else window.removeEventListener("scroll",_.er(this,this.onScroll)),_.go(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.f.guideVisibleChanged=function(){var a=_.E(this.hostElement).querySelector("#header");a&&_.go(a,"iron-resize")};
_.f.onScroll=function(){var a=this;_.Dr(this,"onScroll",function(){var b=_.E(a.hostElement).querySelector("#header");b&&b.polymerController&&(b=b.polymerController.getScrollState().progress===1?"standard":"seamed",_.go(a.hostElement,"yt-request-panel-mode-change",{mode:b}))},10)};
_.f.tabsChanged=function(){if(this.tabs){for(var a=null,b=0,c=this.tabs.length;b<c;++b){var d=this.tabs[b].tabRenderer;if(d&&d.selected){a=b;break}}this.selected=a}};
_.f.onTabsActivate=function(a){_.go(this.hostElement,"yt-navigate",{endpoint:this.tabs[a.detail.selected].tabRenderer.endpoint})};
var K6=D7c;K6.prototype.tabsChanged=K6.prototype.tabsChanged;K6.prototype.guideVisibleChanged=K6.prototype.guideVisibleChanged;K6.prototype.activeChanged=K6.prototype.activeChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],K6.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.SI.YtdGuideStateAwareBehavior),_.W("design:type",Object)],K6.prototype,"ytdGuideStateAwareBehavior",void 0);_.U([_.O(),_.W("design:type",Array)],K6.prototype,"tabs",void 0);
_.U([_.O(),_.W("design:type",Object)],K6.prototype,"selected",void 0);_.U([_.O(),_.W("design:type",Boolean)],K6.prototype,"active",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],K6.prototype,"disableHeaderFluidWidth",void 0);_.U([_.N("active"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],K6.prototype,"activeChanged",null);
_.U([_.N("guidePersistentAndVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],K6.prototype,"guideVisibleChanged",null);_.U([_.N("tabs"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],K6.prototype,"tabsChanged",null);K6=_.U([_.jr()],K6);var E7c=[_.Z.YtRendererBehavior,_.SI.YtdGuideStateAwareBehavior,K6.prototype];var F7c=2/3,G7c=_.lu(130749),H7c=function(a,b){var c=this;this.element=a;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){c.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:F7c,moveAction:function(d){c.moveAction(d)},
triggerAction:function(){c.element.isReloading=!0;_.Pt(_.ms(),{visualElement:G7c});_.hs.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:c.element}})}}}};
_.oF(_.ms(),G7c,this.layer);this.gesture=new _.w6(a,b,this.refreshConfig,"pan-down");this.attach()};
_.f=H7c.prototype;_.f.attach=function(){this.gesture.attach()};
_.f.detach=function(){this.gesture.detach()};
_.f.reset=function(){this.element.close()};
_.f.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.f.moveAction=function(a){this.element.rotation=a*360};var I7c=_.lu(130750),L6=function(a,b,c,d,e){var g=this;this.element=a;this.parent=c;this.channelHeader=d;this.ytdReduxDispatch=e;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){g.tabsStartAtInPx=g.channelHeader.clientHeight-48;var k;(k=g.selectedTab)!=null&&k.title&&(k=_.v().resolve(_.Wi(_.$t)))&&(k=k.getCurrentPage(),g.lastVisitedTabScrollPosition=k.getScrollTop(),g.previousTab&&
((g.lastVisitedTabScrollPosition===void 0?0:g.lastVisitedTabScrollPosition<g.channelHeader.clientHeight-48)?g.scrollPositionForTabs.has(g.selectedTab.title)&&g.scrollPositionForTabs.delete(g.selectedTab.title):g.scrollPositionForTabs.set(g.selectedTab.title,k.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:J7c(),triggerAction:function(){g.navigate(g.previousTab)},
moveAction:function(k,m){g.moveAction(k,m)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-J7c(),triggerAction:function(){g.navigate(g.nextTab)},
moveAction:function(k,m){g.moveAction(k,m)}}}};
_.oF(_.ms(),I7c,this.layer);this.gesture=new _.w6(a,b,this.tabConfig);this.attach()};
L6.prototype.attach=function(){this.gesture.attach()};
L6.prototype.detach=function(){this.gesture.detach()};
L6.prototype.tabsChanged=function(a){if(a){var b=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;a=_.h(a);for(var c=a.next();!c.done;c=a.next()){c=c.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=c);var d=void 0;if((d=c)==null?0:d.selected)this.previousTab=b,this.selectedTab=c;b=c}b=this.gesture;a=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}});
b.config=a;this.scrollPositionNeedsUpdate=!0}};
L6.prototype.moveAction=function(a,b){if(!this.tabsElement){var c;this.tabsElement=(c=this.parent.header)==null?void 0:c.tabsElement;b==="right"&&this.previousTab?_.iLb(_.mG.instance,this.previousTab.endpoint,{},""):b==="left"&&this.nextTab&&_.iLb(_.mG.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}c=this.tabsElement._pos;b==="right"&&(a*=-1);this.tabsElement._positionBar(c.width,c.left*1+c.width*a)};
var J7c=function(){var a,b;return(b=(a=_.v().resolve(_.$t).getCurrentPage())==null?void 0:a.clientWidth)!=null?b:0};
L6.prototype.navigate=function(a){this.element.data=void 0;if(a=a==null?void 0:a.endpoint)this.ytdReduxDispatch(g7c(!0)),_.Pt(_.ms(),{visualElement:I7c}),_.hs.instance.resolveCommand({navigateAction:{endpoint:a}},{form:{element:this.element}})};var K7c;var L7c;var M7c=function(){return _.P.apply(this,arguments)||this};
_.z(M7c,_.P);M7c.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
var M6=M7c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],M6.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],M6.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],M6.prototype,"data",void 0);M6=_.U([_.Q({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],M6);
_.S(M6,"ytd-labs-edit-renderer",function(){if(L7c!==void 0)return L7c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return L7c=a},{mode:1});var N7c;var N6=function(){var a=_.P.apply(this,arguments)||this;a.dark=!1;a.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";a.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a};
_.z(N6,_.P);N6.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
N6.prototype.ready=function(){var a=document.documentElement.hasAttribute("dark");this.setBackgroundImage(a);this.dark=a};
N6.prototype.onDarkModeToggledAction=function(a){this.setBackgroundImage(a);this.dark=a};
N6.prototype.setBackgroundImage=function(a){_.dr(this.hostElement,{"--yt-labs-header-background":"url("+(a?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
var O6=N6;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],O6.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],O6.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],O6.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],O6.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],O6.prototype,"dark",void 0);
O6=_.U([_.Q({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],O6);
_.S(O6,"ytd-labs-header-renderer",function(){if(N7c!==void 0)return N7c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return N7c=a},{mode:1});var O7c;var P6=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return a};
_.z(P6,_.P);P6.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"}}}}}};
P6.prototype.onYtToggleButton=function(a){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",a.detail.toggled)};
P6.prototype.onManageLabsState=function(a){if(a=_.y(a,r7c))a.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?a.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&a.labsItemId===this.data.labsItemId&&(a.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.ho(this.hostElement,"yt-check-labs-opted-in-state").some(function(b){return b})&&this.data.confirmationDialogCommand?_.no(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.x("web_ytd_labs_item_renderer_command_resolver_ks")?_.mo(this.hostElement,[this.data.optInCommand]):_.v().resolve(_.Xi).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&a.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.x("web_ytd_labs_item_renderer_command_resolver_ks")?_.mo(this.hostElement,[this.data.optOutCommand]):
_.v().resolve(_.Xi).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
P6.prototype.onCheckLabsOptedInState=function(){var a=this.get("data.primaryButton.toggleButtonRenderer");return a?a.isToggled:!1};
_.Vm.Object.defineProperties(P6.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
var Q6=P6;Q6.prototype.onYtToggleButton=Q6.prototype.onYtToggleButton;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],Q6.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],Q6.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],Q6.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],Q6.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],Q6.prototype,"itemStyle",null);_.U([_.M("yt-toggle-button"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Q6.prototype,"onYtToggleButton",null);Q6=_.U([_.Q({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],Q6);
_.S(Q6,"ytd-labs-item-renderer",function(){if(O7c!==void 0)return O7c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return O7c=a},{mode:1});var P7c;var Q7c;var R7c=function(){return _.P.apply(this,arguments)||this};
_.z(R7c,_.P);var S7c=R7c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],S7c.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],S7c.prototype,"data",void 0);S7c=_.U([_.Q({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],S7c);
_.S(S7c,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(Q7c!==void 0)return Q7c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Q7c=a},{mode:1});var T7c;var U7c=function(){return _.P.apply(this,arguments)||this};
_.z(U7c,_.P);U7c.prototype.observeSuperchatChip=function(){if(this.data){var a={"--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)};_.dr(this.hostElement,a)}};
U7c.prototype.colorFromDecimal=function(a){return _.Cq(Number(a||0))};
var R6=U7c;R6.prototype.observeSuperchatChip=R6.prototype.observeSuperchatChip;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],R6.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],R6.prototype,"data",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],R6.prototype,"observeSuperchatChip",null);R6=_.U([_.Q({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],R6);
_.S(R6,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(T7c!==void 0)return T7c;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return T7c=a},{mode:1});var V7c=function(){return _.P.apply(this,arguments)||this};
_.z(V7c,_.P);V7c.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"}}}};
_.Vm.Object.defineProperties(V7c.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
var S6=V7c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],S6.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],S6.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.NI),_.W("design:type",Object)],S6.prototype,"ytdDismissibleItemBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],S6.prototype,"data",void 0);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],S6.prototype,"hideMessageBlock",null);
S6=_.U([_.Q({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],S6);
_.S(S6,"ytd-live-chat-history-entry-renderer",function(){if(P7c!==void 0)return P7c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return P7c=a},{mode:1});var W7c;var X7c=function(){return _.P.apply(this,arguments)||this};
_.z(X7c,_.P);var Y7c=X7c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],Y7c.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],Y7c.prototype,"data",void 0);Y7c=_.U([_.Q({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],Y7c);
_.S(Y7c,"ytd-channel-options-renderer",function(){if(W7c!==void 0)return W7c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return W7c=a},{mode:1});var Z7c;var $7c=function(){return _.P.apply(this,arguments)||this};
_.z($7c,_.P);$7c.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
var T6=$7c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],T6.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],T6.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],T6.prototype,"data",void 0);T6=_.U([_.Q({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],T6);
_.S(T6,"ytd-settings-email-item-renderer",function(){if(Z7c!==void 0)return Z7c;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Z7c=a},{mode:1});var a8c;var U6=function(){return _.P.apply(this,arguments)||this};
_.z(U6,_.P);U6.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"}}}};
U6.prototype.getExpansionIcon=function(a){return a?"arrow_drop_up":"arrow_drop_down"};
U6.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.Vm.Object.defineProperties(U6.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
var V6=U6;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],V6.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],V6.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],V6.prototype,"data",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],V6.prototype,"expanded",void 0);
_.U([_.K("expanded"),_.W("design:type",String),_.W("design:paramtypes",[])],V6.prototype,"emailListExpanded",null);_.U([_.gr("#options"),_.W("design:type",Object)],V6.prototype,"options",void 0);V6=_.U([_.Q({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],V6);
_.S(V6,"ytd-settings-email-list-renderer",function(){if(a8c!==void 0)return a8c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return a8c=a},{mode:1});var b8c;var c8c=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return a};
_.z(c8c,_.P);c8c.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"}}}};
c8c.prototype.handleSignalActionSubmitForm=function(){var a,b=(a=this.formRenderer)==null?void 0:a.getForm();b&&this.data.serviceEndpoint&&(_.x("web_ytd_settings_gaia_link_renderer_command_resolver_ks")?_.mo(this.hostElement,[this.data.serviceEndpoint,b]):_.v().resolve(_.Xi).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},b,{element:this.hostElement})}))};
var W6=c8c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],W6.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],W6.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],W6.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],W6.prototype,"data",void 0);_.U([_.gr("yt-form-renderer"),_.W("design:type",Object)],W6.prototype,"formRenderer",void 0);
W6=_.U([_.Q({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],W6);
_.S(W6,"ytd-settings-gaia-link-renderer",function(){if(b8c!==void 0)return b8c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return b8c=a},{mode:1});var d8c;var X6=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return a};
_.z(X6,_.P);X6.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.emc()&&this.set("data.hidden",!1)};
X6.prototype.onSwitchReady=function(){var a=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.x("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.dmc().then(function(b){b&&(Notification.permission==="default"?a.set("data.hidden",!1):Notification.permission==="granted"&&_.gX("NotificationsDisabled").then(function(c){c||_.ho(a.hostElement,"yt-toggle-settings-switch",[a.data.id,!c]);a.set("data.hidden",!1)}).catch(function(){}))})})};
X6.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}}}}};
X6.prototype.handleUpdateOptionsCommand=function(a){(a=_.y(a,_.aAb))&&this.data&&this.data.id===a.id&&(this.set("data.hidden",a.hidden),a.text!==void 0&&this.set("data.text",a.text),a.clearOptions&&this.set("data.options",[]))};
var Y6=X6;Y6.prototype.onSwitchReady=Y6.prototype.onSwitchReady;Y6.prototype.dataChanged=Y6.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],Y6.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],Y6.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],Y6.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],Y6.prototype,"data",void 0);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Y6.prototype,"dataChanged",null);_.U([_.M("yt-settings-switch-ready"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Y6.prototype,"onSwitchReady",null);Y6=_.U([_.Q({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],Y6);
_.S(Y6,"ytd-settings-options-renderer",function(){if(d8c!==void 0)return d8c;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return d8c=a},{mode:1});var e8c;var f8c=function(){return _.P.apply(this,arguments)||this};
_.z(f8c,_.P);f8c.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
f8c.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
var Z6=f8c;Z6.prototype.onYtExpanderMoreTapped=Z6.prototype.onYtExpanderMoreTapped;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],Z6.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],Z6.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],Z6.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],Z6.prototype,"data",void 0);
_.U([_.M("yt-expander-more-tapped"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Z6.prototype,"onYtExpanderMoreTapped",null);Z6=_.U([_.Q({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],Z6);
_.S(Z6,"ytd-product-details-description-renderer",function(){if(e8c!==void 0)return e8c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return e8c=a},{mode:1});var g8c;var h8c=function(){var a=_.P.apply(this,arguments)||this;a.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";a.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";a.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";a.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return a};
_.z(h8c,_.P);h8c.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Vm.Object.defineProperties(h8c.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.data)==null?void 0:(b=a.offerData)==null?void 0:b.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.data)==null?void 0:a.purchaseButtonRenderers)!==void 0&&((b=this.data)==null?void 0:b.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var a,b;return!((a=this.data)==null||!a.formattedFromMerchantText)&&(!((b=this.data)==null||!b.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
var $6=h8c;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],$6.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],$6.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],$6.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],$6.prototype,"data",void 0);
_.U([_.O({type:_.x("kevlar_property_type_migration_killswitch")?String:void 0}),_.W("design:type",Object)],$6.prototype,"shippingIcon",void 0);_.U([_.O({type:_.x("kevlar_property_type_migration_killswitch")?String:void 0}),_.W("design:type",Object)],$6.prototype,"shippingAddressIcon",void 0);_.U([_.O({type:_.x("kevlar_property_type_migration_killswitch")?String:void 0}),_.W("design:type",Object)],$6.prototype,"googleGuaranteeIcon",void 0);
_.U([_.O({type:_.x("kevlar_property_type_migration_killswitch")?String:void 0}),_.W("design:type",Object)],$6.prototype,"returnPolicyIcon",void 0);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],$6.prototype,"showAdditionalFees",null);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],$6.prototype,"showMultiPurchaseButtons",null);
_.U([_.K("data","showMultiPurchaseButtons"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],$6.prototype,"showPurchaseData",null);$6=_.U([_.Q({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],$6);
_.S($6,"ytd-product-details-hero-offer-renderer",function(){if(g8c!==void 0)return g8c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return g8c=a},{mode:1});var i8c;var j8c;var k8c=function(){return _.P.apply(this,arguments)||this};
_.z(k8c,_.P);_.f=k8c.prototype;_.f.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.f.onKeyDown=function(a){a=a.keyCode;a!==13&&a!==32||this.handleSelection()};
_.f.onMouseEnterImage=function(){var a;((a=this.data)==null?void 0:a.thumbnailDetails)!==void 0&&_.ko(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.f.onMouseLeaveImage=function(){_.ko(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.f.handleSelection=function(){this.data&&_.go(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.Vm.Object.defineProperties(k8c.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.isSelected)}}});
var a7=k8c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],a7.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],a7.prototype,"data",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],a7.prototype,"isSelected",null);a7=_.U([_.Q({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],a7);
_.S(a7,"ytd-product-details-thumbnail-renderer",function(){if(j8c!==void 0)return j8c;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return j8c=a},{mode:1});var l8c=function(){var a=_.P.apply(this,arguments)||this;var b={};a.actionMap=(b["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",b["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",b);a.selectedThumbnailIndex=0;a.selectItem=function(c){c.target.onKeyDown(c)};
return a};
_.z(l8c,_.P);_.f=l8c.prototype;_.f.handlePreviewImageSelect=function(a){this.hoverThumbnail=a};
_.f.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.f.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.f.onThumbnailSelected=function(a,b){this.selectedThumbnailIndex=b};
_.f.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.f.updateOffset=function(){var a=_.E(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-a));this.ytdHorizontalListBehavior.reposition_()};
_.Vm.Object.defineProperties(l8c.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)==null?0:a.imageRenderer){var b,c;return((b=this.data)==null?void 0:(c=b.imageRenderer)==null?void 0:c.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var a;if((a=this.data)==null?0:a.imageRenderer){var b;return(b=_.y(this.data.imageRenderer[this.selectedThumbnailIndex],v7c))==null?void 0:b.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var a=this,b,c,d,e=(d=(b=this.data)==null?void 0:(c=b.imageRenderer)==null?void 0:c.map(function(g,k){return{productDetailsThumbnailRenderer:Object.assign({},_.y(g,v7c),{index:k,isSelected:k===a.selectedThumbnailIndex})}}))!=null?d:[];
return Object.assign({},this.data,{imageRenderer:e})}}});
var b7=l8c;b7.prototype.updateOffset=b7.prototype.updateOffset;b7.prototype.dataChanged=b7.prototype.dataChanged;b7.prototype.onThumbnailSelected=b7.prototype.onThumbnailSelected;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],b7.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],b7.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.H(_.hJ.YtdHorizontalListBehavior),_.W("design:type",Object)],b7.prototype,"ytdHorizontalListBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],b7.prototype,"componentBehavior",void 0);_.U([_.H([_.bH.YtActionHandlerBehavior]),_.W("design:type",Object)],b7.prototype,"actionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],b7.prototype,"data",void 0);_.U([_.O({value:"$.items.children"}),_.W("design:type",String)],b7.prototype,"itemsPath",void 0);
_.U([_.O({value:3}),_.W("design:type",Number)],b7.prototype,"initialCount",void 0);_.U([_.gr("#items"),_.W("design:type",Object)],b7.prototype,"items",void 0);_.U([_.O(),_.W("design:type",Object)],b7.prototype,"selectedThumbnailIndex",void 0);_.U([_.O(),_.W("design:type",Object)],b7.prototype,"hoverThumbnail",void 0);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],b7.prototype,"showThumbnails",null);
_.U([_.M("ytd-product-details-thumbnail-renderer-selected"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Number]),_.W("design:returntype")],b7.prototype,"onThumbnailSelected",null);_.U([_.K("data","selectedThumbnailIndex","hoverThumbnail"),_.W("design:type",Object),_.W("design:paramtypes",[])],b7.prototype,"thumbnailDetails",null);_.U([_.K("data","selectedThumbnailIndex"),_.W("design:type",Object),_.W("design:paramtypes",[])],b7.prototype,"populatedData",null);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],b7.prototype,"dataChanged",null);_.U([_.M("iron-resize"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],b7.prototype,"updateOffset",null);b7=_.U([_.Q({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],b7);
_.S(b7,"ytd-product-details-image-carousel-renderer",function(){if(i8c!==void 0)return i8c;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return i8c=a},{mode:_.as("kevlar_poly_si_batch_j079")?1:2});var m8c;var n8c=function(){return _.P.apply(this,arguments)||this};
_.z(n8c,_.P);var c7=n8c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],c7.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],c7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],c7.prototype,"componentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],c7.prototype,"data",void 0);c7=_.U([_.Q({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],c7);
_.S(c7,"ytd-product-details-offer-renderer",function(){if(m8c!==void 0)return m8c;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return m8c=a},{mode:1});var o8c;var p8c=function(){var a=_.P.apply(this,arguments)||this;a.isOffersHidden=!0;return a};
_.z(p8c,_.P);p8c.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var a,b=_.y((a=this.data)==null?void 0:a.viewOffersButton,_.OE);b&&this.ytRendererBehavior.logExplicitClick(b)};
p8c.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.Vm.Object.defineProperties(p8c.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d;return(c=_.y((a=this.data)==null?void 0:(b=a.offers)==null?void 0:b[0],z7c))==null?void 0:(d=c.offerData)==null?void 0:d.vendorLogoUrl}}});
var d7=p8c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],d7.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],d7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],d7.prototype,"componentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],d7.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],d7.prototype,"isOffersHidden",void 0);
_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],d7.prototype,"firstOfferVendorLogoUrl",null);d7=_.U([_.Q({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],d7);
_.S(d7,"ytd-product-details-offers-container-renderer",function(){if(o8c!==void 0)return o8c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return o8c=a},{mode:1});var q8c;var r8c;var e7=function(){return _.P.apply(this,arguments)||this};
_.z(e7,_.P);e7.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
e7.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.ko(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
e7.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.ko(this,"ytd-product-details-variant-image-unselect")};
_.Vm.Object.defineProperties(e7.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 a;return((a=this.data)==null?void 0:a.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return((a=this.data)==null?void 0:a.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((b=this.data)==null?void 0:b.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((c=this.data)==null?void 0:c.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var a;if(((a=this.data)==null?void 0:a.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var a,b;return this.isUnavailable?(a=this.data)==null?void 0:a.variantOptionUnavailableAccessibilityLabel:(b=this.data)==null?void 0:b.variantOptionAccessibilityLabel}}});
var f7=e7;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],f7.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],f7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],f7.prototype,"componentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],f7.prototype,"data",void 0);_.U([_.O(),_.W("design:type",String)],f7.prototype,"displayType",void 0);
_.U([_.K("displayType","data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],f7.prototype,"isImageButton",null);_.U([_.K("displayType","data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],f7.prototype,"isPillButton",null);_.U([_.K("data"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],f7.prototype,"isActive",null);
_.U([_.K("data"),_.O({reflectToAttribute:!0}),_.W("design:type",Boolean),_.W("design:paramtypes",[])],f7.prototype,"isUnavailable",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],f7.prototype,"thumbnailDetails",null);_.U([_.K("isUnavailable","data"),_.W("design:type",Object),_.W("design:paramtypes",[])],f7.prototype,"accessibilityLabel",null);f7=_.U([_.Q({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],f7);
_.S(f7,"ytd-product-details-variant-option-renderer",function(){if(r8c!==void 0)return r8c;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return r8c=a},{mode:1});var s8c;var t8c=function(){var a=_.P.apply(this,arguments)||this;a.variantsExpanded=!1;a.hideShowMoreLessVariantButton=!0;a.initialized=!1;a.computeVariantsDebouncer=null;a.computeVariants=function(b){b=b===void 0?!1:b;a.variantsExpanded||a.showOptions()||!b||(a.variantsExpanded=!0);if(a.variantsExpanded){b=_.h(a.items.children);for(var c=b.next();!c.done;c=b.next())c.value.hidden=!1}a.initialized=!0};
return a};
_.z(t8c,_.P);_.f=t8c.prototype;_.f.ready=function(){var a=this;setTimeout(function(){a.computeVariants(!0)})};
_.f.showOptions=function(){for(var a=_.h(this.items.children),b=a.next();!b.done;b=a.next())b.value.hidden=!0;var c=this.container.getBoundingClientRect().width,d=0,e=a=0;b=!1;for(var g=_.h(this.items.children),k=g.next();!k.done;k=g.next()){k=k.value;k.hidden=!1;var m=k.getBoundingClientRect().width;if(d+m<c)d+=m;else if(++e<2)d=m;else break;a+=1;k.hasAttribute("is-active")&&(b=!0)}for(c=a;c<this.items.children.length;c++)this.items.children[c].hidden=!0;this.hideShowMoreLessVariantButton=a===this.items.children.length;
return b};
_.f.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.nC(this.computeVariantsDebouncer,_.bC.after(100),this.computeVariants)};
_.f.onShowMoreLessVariantsButtonClick=function(){var a;(a=this.data)!=null&&a.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.f.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.Vm.Object.defineProperties(t8c.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var a,b,c=(a=this.data)==null?void 0:(b=a.variantOptionRenderers)==null?void 0:b.find(function(g){return _.y(g,x7c).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),d,e;
return(e=(d=_.y(c,x7c))==null?void 0:d.name)!=null?e:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.displayType)||"VARIANT_ATTRIBUTE_DISPLAY_TYPE_UNKNOWN"}},
variantItemsClassname:{configurable:!0,enumerable:!0,get:function(){switch(this.displayType){case "VARIANT_ATTRIBUTE_DISPLAY_TYPE_PILL":return"pill";case "VARIANT_ATTRIBUTE_DISPLAY_TYPE_DROPDOWN_LIST":return"dropdown";case "VARIANT_ATTRIBUTE_DISPLAY_TYPE_IMAGE":return"image";default:return"unknown"}}}});
var g7=t8c;g7.prototype.debouncedComputeVariants=g7.prototype.debouncedComputeVariants;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],g7.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],g7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],g7.prototype,"componentBehavior",void 0);_.U([_.H(_.KD),_.W("design:type",Object)],g7.prototype,"ironResizableBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],g7.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],g7.prototype,"variantsExpanded",void 0);_.U([_.O(),_.W("design:type",Object)],g7.prototype,"hideShowMoreLessVariantButton",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],g7.prototype,"initialized",void 0);_.U([_.gr("#items"),_.W("design:type",HTMLDivElement)],g7.prototype,"items",void 0);_.U([_.gr("#container"),_.W("design:type",HTMLDivElement)],g7.prototype,"container",void 0);
_.U([_.gr("#more-variants-button"),_.W("design:type",HTMLElement)],g7.prototype,"moreVariantsButton",void 0);_.U([_.K("data"),_.W("design:type",String),_.W("design:paramtypes",[])],g7.prototype,"selectedOptionName",null);_.U([_.N("data","variantsExpanded"),_.M("iron-resize"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],g7.prototype,"debouncedComputeVariants",null);
_.U([_.K("data"),_.W("design:type",String),_.W("design:paramtypes",[])],g7.prototype,"displayType",null);_.U([_.K("displayType"),_.W("design:type",Object),_.W("design:paramtypes",[])],g7.prototype,"variantItemsClassname",null);g7=_.U([_.Q({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],g7);
_.S(g7,"ytd-product-details-variant-renderer",function(){if(s8c!==void 0)return s8c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return s8c=a},{mode:1});var u8c=function(){return _.P.apply(this,arguments)||this};
_.z(u8c,_.P);
u8c.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"}}}};
_.Vm.Object.defineProperties(u8c.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var a,b,c=(b=_.y((a=this.data)==null?void 0:a.offersContainerRenderer,y7c))==null?void 0:b.offers;return c!==void 0&&(c==null?void 0:c.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 a,b,c;return((c=(a=this.data)==null?void 0:(b=a.variants)==null?void 0:b.map(function(d){var e,g;d=(g=(e=_.y(d,w7c))==null?void 0:e.variantOptionRenderers)==null?void 0:g.find(function(m){var n;return((n=_.y(m,x7c))==null?void 0:n.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var k;return(k=_.y(d,x7c))==null?void 0:k.name}).filter(function(d){return typeof d==="string"}))!=null?c:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d=(b=_.y((a=this.data)==null?void 0:a.shoppingFlaggingRenderer,A7c))==null?void 0:(c=b.reportButton)==null?void 0:c.buttonRenderer;if(d)return{text:d.text,command:d.command,icon:{iconType:"FLAG"},accessibilityData:d.accessibilityData,trackingParams:d.trackingParams,loggingDirectives:d.loggingDirectives}}}});
var h7=u8c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],h7.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],h7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],h7.prototype,"componentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],h7.prototype,"data",void 0);
_.U([_.gr("#image-carousel-renderer"),_.W("design:type",Object)],h7.prototype,"imageCarouselRenderer",void 0);_.U([_.gr("#hero-offer-renderer"),_.W("design:type",Object)],h7.prototype,"productDetailsHeroOfferRenderer",void 0);_.U([_.gr("#variants"),_.W("design:type",Object)],h7.prototype,"productDetailsVariantRenderer",void 0);_.U([_.gr("#offers"),_.W("design:type",Object)],h7.prototype,"productDetailsOffersContainerRenderer",void 0);
_.U([_.gr("#description-renderer"),_.W("design:type",Object)],h7.prototype,"productDetailsDescriptionRenderer",void 0);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],h7.prototype,"showPurchaseData",null);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],h7.prototype,"showHeroOfferRenderer",null);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],h7.prototype,"showBrandText",null);
_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],h7.prototype,"showOffers",null);_.U([_.K("showOffers","showPurchaseData"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],h7.prototype,"showBuySeparator",null);_.U([_.K("showOffers","showPurchaseData"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],h7.prototype,"showBuyCard",null);_.U([_.K("data"),_.W("design:type",String),_.W("design:paramtypes",[])],h7.prototype,"selectedVariantsText",null);
_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],h7.prototype,"shoppingReportingButtonData",null);h7=_.U([_.Q({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],h7);
_.S(h7,"ytd-product-details-renderer",function(){if(q8c!==void 0)return q8c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return q8c=a},{mode:1});var v8c;var w8c;var x8c;var y8c=function(){return _.P.apply(this,arguments)||this};
_.z(y8c,_.P);y8c.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.Vm.Object.defineProperties(y8c.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
var i7=y8c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],i7.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],i7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],i7.prototype,"data",void 0);_.U([_.O(),_.W("design:type",String)],i7.prototype,"formattedAmount",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],i7.prototype,"ariaLabel",void 0);
_.U([_.O({reflectToAttribute:!0}),_.K("data.style"),_.W("design:type",String),_.W("design:paramtypes",[])],i7.prototype,"vcBalanceWidgetStyle",null);i7=_.U([_.ur({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],i7);
_.S(i7,"yt-vc-balance-renderer",function(){if(x8c===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;w8c===void 0&&(w8c=document.createElement("template"));var d=w8c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);x8c=a}a=x8c;return a},{mode:2});_.It("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var z8c=function(){return _.P.apply(this,arguments)||this};
_.z(z8c,_.P);_.Vm.Object.defineProperties(z8c.prototype,{formattedAmount:{configurable:!0,enumerable:!0,get:function(){return this.vcBalanceEntity&&this.vcBalanceEntity.formattedAmount?this.vcBalanceEntity.formattedAmount:""}},
vcBalanceAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.vcBalanceEntity&&this.vcBalanceEntity.accessibilityFormattedAmount?this.vcBalanceEntity.accessibilityFormattedAmount:""}}});
var j7=z8c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],j7.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],j7.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],j7.prototype,"data",void 0);_.U([_.O({selectorArgs:["data.vcBalanceEntityKey"],selector:function(a,b){return _.mp(a.entities,"vcBalanceEntity",b)}}),
_.W("design:type",Object)],j7.prototype,"vcBalanceEntity",void 0);_.U([_.K("vcBalanceEntity"),_.W("design:type",String),_.W("design:paramtypes",[])],j7.prototype,"formattedAmount",null);_.U([_.K("vcBalanceEntity"),_.W("design:type",String),_.W("design:paramtypes",[])],j7.prototype,"vcBalanceAriaLabel",null);j7=_.U([_.Q({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],j7);
_.S(j7,"ytd-vc-balance-renderer",function(){if(v8c!==void 0)return v8c;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return v8c=a},{mode:1});var A8c;var B8c=function(){var a=_.P.apply(this,arguments)||this;a.rotation=0;a.isReloading=!1;return a};
_.z(B8c,_.P);B8c.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
B8c.prototype.reset=function(){this.hostElement.style.opacity=""};
B8c.prototype.close=function(){var a=this;return _.l(function(b){if(b.nextAddress==1)return _.p(b,a.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);a.hostElement.style.opacity="0";_.se(b)})};
var k7=B8c;k7.prototype.rotationChanged=k7.prototype.rotationChanged;_.U([_.O(),_.W("design:type",Object)],k7.prototype,"rotation",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],k7.prototype,"isReloading",void 0);_.U([_.gr("#icon"),_.W("design:type",HTMLElement)],k7.prototype,"icon",void 0);_.U([_.N("rotation"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],k7.prototype,"rotationChanged",null);
k7=_.U([_.Q({disableElementRegistration:!0,is:"ytd-refresh"})],k7);
_.S(k7,"ytd-refresh",function(){if(A8c!==void 0)return A8c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return A8c=a},{mode:1});var C8c;var D8c;var E8c=function(a,b,c,d,e,g,k,m){this.minWidth=a;this.minHeight=b;this.recommendedWidth=c;this.recommendedHeight=d;this.JSC$19146_maxFileSize=e;this.title=g;this.bannerGalleryTitle=k;this.channelId=m;this.picker_=null;a=_.hIa("yt-banner");b=a.addView;c=(new h7c("youtubebanner")).addUploadMetadata("silo_id","19");c.opts.ytMaxFileSize=this.JSC$19146_maxFileSize;d=this.recommendedHeight;c.opts.ytRecWidth=this.recommendedWidth;c.opts.ytRecHeight=d;b.call(a,c);a.addView(new _.GA);b=a.addView;c=new _.GA;
c.opts.type="ytbanner";b.call(a,c.JSC$7924_setLabel(this.bannerGalleryTitle));b=a.setTitle(this.title).setSize(1E3);b.urlParamMap_.set("thumbs","orig");c=this.minWidth;d=this.minHeight;if(isNaN(c)||isNaN(d))throw Error("ob`"+c+"`"+d);b.urlParamMap_.set("minSize",c+"x"+d);b.urlParamMap_.set("cropMode","ytcb");this.builder_=a};
E8c.prototype.open=function(){var a=this;return new _.kl(function(b,c){_.Ajb(a.builder_,function(d){d.action=="picked"?b(d):d.action=="cancel"&&c(Error("Rl"))});
a.picker_&&a.picker_.dispose();a.picker_=a.builder_.build();a.picker_.setVisible(!0)})};
E8c.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var F8c=function(a){this.channelId=a},G8c=function(a,b){var c="";
b.viewToken&&(c=b.viewToken[2].type);var d=b.docs[0];b=d.crop;a={channel_id:a.channelId,fife_url:d.thumbnails[0].url,photo_id:d.id,is_gallery_image:c=="ytbanner"};b&&(a.crop_top=b.top,a.crop_right=b.right,a.crop_bottom=b.bottom,a.crop_left=b.left);return _.h3a("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:a})};var H8c=function(){var a=_.P.apply(this,arguments)||this;a.ariaLabel=null;return a};
_.z(H8c,_.P);_.f=H8c.prototype;_.f.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.f.detached=function(){this.picker&&this.picker.dispose()};
_.f.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.f.computeAriaLabel=function(a){return a};
_.f.onTap=function(){var a=this,b;if((b=this.data)==null||!b.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new E8c(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 c;(c=this.picker)==null||c.open().then(function(d){a.handleBannerPicked(d)},function(){})}};
_.f.handleBannerPicked=function(a){var b=this;this.uploader||(this.uploader=new F8c(this.data.channelId||""));this.message=this.data.uploadingText;G8c(this.uploader,a).then(function(c){b.handleBannerUploadSucceeded(c)},function(c){b.handleBannerUploadFailed(c)})};
_.f.handleBannerUploadSucceeded=function(a){a&&a.errors?this.handleBannerUploadFailed(a):(_.go(this.hostElement,"yt-banner-updated",a),this.message=null)};
_.f.handleBannerUploadFailed=function(a){this.message=a&&a.errors&&a.errors.length?a.errors[0]:null};
var l7=H8c;l7.prototype.dataChanged=l7.prototype.dataChanged;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],l7.prototype,"componentBehavior",void 0);_.U([_.H(_.MD),_.W("design:type",Object)],l7.prototype,"ironButtonState",void 0);_.U([_.O(),_.W("design:type",Object)],l7.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.W("design:type",Object)],l7.prototype,"ariaLabel",void 0);
_.U([_.O(),_.W("design:type",Object)],l7.prototype,"message",void 0);_.U([_.O(),_.W("design:type",Object)],l7.prototype,"picker",void 0);_.U([_.O(),_.W("design:type",Object)],l7.prototype,"uploader",void 0);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],l7.prototype,"dataChanged",null);l7=_.U([_.Q({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],l7);
_.S(l7,"ytd-channel-banner-editor-renderer",function(){if(D8c!==void 0)return D8c;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return D8c=a},{mode:1});var I8c;var J8c=_.cx(["#"]),K8c=function(){return _.P.apply(this,arguments)||this};
_.z(K8c,_.P);K8c.prototype.computeHrefWithDefault=function(a){return this.ytComponentBehavior.computeHref_(a,!0)||_.Jd(J8c)};
K8c.prototype.dataChanged=function(){var a=this.data;a&&a.targetId&&_.yLb(_.pG(),a.targetId,this.moreIcon)};
var m7=K8c;m7.prototype.dataChanged=m7.prototype.dataChanged;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],m7.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],m7.prototype,"data",void 0);_.U([_.gr("#more-icon"),_.W("design:type",Object)],m7.prototype,"moreIcon",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],m7.prototype,"dataChanged",null);
m7=_.U([_.Q({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],m7);
_.S(m7,"ytd-channel-tagline-renderer",function(){if(I8c!==void 0)return I8c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return I8c=a},{mode:1});var L8c;var M8c=function(){return _.P.apply(this,arguments)||this};
_.z(M8c,_.P);_.f=M8c.prototype;_.f.ready=function(){var a=this;_.E(this.hostElement).querySelector("#form").addEventListener("submit",function(b){a.onSubmit(b)})};
_.f.onDataChanged=function(){var a;((a=this.data)==null?0:a.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.f.onIconButtonKeydown=function(a){a.keyCode===13&&this.iconButton.click()};
_.f.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.f.openOnClickHandler=function(){this.input.focus()};
_.f.onSubmit=function(a){a.preventDefault();return!1};
_.f.submitOnEnterKeyUp=function(a){var b;if(a.keyCode===13&&((b=this.data)==null?0:b.expandedText)){a=this.data.endpoint;b=_.yf.unsafeClone(a);var c;((c=_.y(b==null?void 0:b.commandMetadata,_.ao))==null?0:c.url)?(_.y(b.commandMetadata,_.ao).url=_.Il(_.y(b.commandMetadata,_.ao).url,"query",this.data.expandedText),_.y(b,_.pq)&&(_.y(b,_.pq).query=this.data.expandedText),_.go(this.hostElement,"yt-navigate",{endpoint:b,tempData:{disableCache:!0}})):(c=new _.qj("Error: Trying to navigate to an endpoint without url",
a),_.Bl(c))}};
_.f.updateDataExpandedTextFromBinding=function(a){this.set("data.expandedText",a.detail.value)};
var n7=M8c;n7.prototype.onDataChanged=n7.prototype.onDataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],n7.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.nmc),_.W("design:type",Object)],n7.prototype,"ytdExpandableInputBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],n7.prototype,"data",void 0);_.U([_.gr("#input"),_.W("design:type",Object)],n7.prototype,"input",void 0);_.U([_.gr("#icon-button"),_.W("design:type",HTMLElement)],n7.prototype,"iconButton",void 0);
_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],n7.prototype,"onDataChanged",null);n7=_.U([_.Q({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],n7);
var Z6c=_.$r()(n7,"ytd-expandable-tab-renderer",function(){if(L8c===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-tab-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon-button" label="[[data.title]]" on-click="openOnClick_" on-keydown="onIconButtonKeydown" class="style-scope ytd-expandable-tab-renderer">\n  <yt-icon icon="yt-icons:search" class="style-scope ytd-expandable-tab-renderer"></yt-icon>\n</yt-icon-button>\n<form id="form" action="[[data.endpoint.commandMetadata.webCommandMetadata.url]]" class="style-scope ytd-expandable-tab-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[data.title]]" max-length="100" name="query" no-label-float="" value="[[data.expandedText]]" on-keyup="submitOnEnterKeyUp" on-value-changed="updateDataExpandedTextFromBinding" class="style-scope ytd-expandable-tab-renderer">\n   </tp-yt-paper-input>\n</form>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);L8c=a}a=L8c;return a},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var N8c;var O8c=_.cx(["#"]),P8c=function(){return _.P.apply(this,arguments)||this};
_.z(P8c,_.P);P8c.prototype.computeHrefWithDefault=function(a){return this.ytComponentBehavior.computeHref_(a,!0)||_.Jd(O8c)};
_.Vm.Object.defineProperties(P8c.prototype,{primaryLinkEndpoint:{configurable:!0,enumerable:!0,get:function(){var a;return _.Es((a=this.data)==null?void 0:a.primaryLinkOnTap)}},
moreEndpoint:{configurable:!0,enumerable:!0,get:function(){var a;return _.Es((a=this.data)==null?void 0:a.moreOnTap)}}});
var o7=P8c;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],o7.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],o7.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],o7.prototype,"usePageHeaderStyle",void 0);_.U([_.K("data.primaryOnTap"),_.W("design:type",Object),_.W("design:paramtypes",[])],o7.prototype,"primaryLinkEndpoint",null);
_.U([_.K("data.moreOnTap"),_.W("design:type",Object),_.W("design:paramtypes",[])],o7.prototype,"moreEndpoint",null);o7=_.U([_.Q({disableElementRegistration:!0,is:"ytd-channel-header-links-view-model"})],o7);
_.S(o7,"ytd-channel-header-links-view-model",function(){if(N8c!==void 0)return N8c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-header-links-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-channel-header-links-view-model">\n  <yt-attributed-string id="first-link" data="[[data.firstLink]]" ellipsis-truncate="true" hidden="[[!data.firstLink]]" link-inherit-color="true" user-input="true" class="style-scope ytd-channel-header-links-view-model">\n  </yt-attributed-string>\n  <yt-attributed-string id="more" data="[[data.more]]" hidden="[[!data.more]]" link-inherit-color="true" no-wrap="true" class="style-scope ytd-channel-header-links-view-model">\n  </yt-attributed-string>\n  <a id="primary-link" class="yt-simple-endpoint style-scope ytd-channel-header-links-view-model" href$="[[computeHrefWithDefault(primaryLinkEndpoint)]]" data="[[primaryLinkEndpoint]]" dir="ltr" hidden="[[!data.primaryLink]]">\n    [[data.primaryLink]]\n  </a>\n  <a id="suffix" class="yt-simple-endpoint style-scope ytd-channel-header-links-view-model" href$="[[computeHrefWithDefault(moreEndpoint)]]" data="[[moreEndpoint]]" hidden="[[!data.suffix]]">\n    [[data.suffix]]\n  </a>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return N8c=a},{mode:1});var Q8c;var R8c=function(){var a=_.P.apply(this,arguments)||this;a.avatarSize=80;a.ariaLabel=_.to("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return a};
_.z(R8c,_.P);R8c.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
R8c.prototype.computeHref=function(a){var b;return((b=_.y(a,_.Ml))==null?0:b.url)?this.componentBehavior.computeHref_(a):null};
R8c.prototype.onTap=function(){var a,b;(a=this.data)==null||!a.editAvatarServiceEndpoint||((b=_.y(this.data.editAvatarServiceEndpoint,_.Ml))==null?0:b.url)||(_.x("web_ytd_channel_avatar_editor_command_resolver_ks")?_.mo(this.hostElement,[this.data.editAvatarServiceEndpoint]):_.v().resolve(_.Xi).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}}))};
var p7=R8c;_.U([_.H(_.MD),_.W("design:type",Object)],p7.prototype,"ironButtonState",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],p7.prototype,"componentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],p7.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],p7.prototype,"avatarSize",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],p7.prototype,"ariaLabel",void 0);
p7=_.U([_.Q({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],p7);
_.S(p7,"ytd-channel-avatar-editor",function(){if(Q8c!==void 0)return Q8c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return Q8c=a},{mode:1});_.Ws(_.kac,"yt-tab-group-shape",{props:{shape:_.SG}});var S8c=function(){var a=_.P.apply(this,arguments)||this;a.expandableCustomTabRenderable=function(b){return $6c(b,function(){return void a.onSearchNavigate()})};
a.isRichGrid=!1;a.richGridMiniMode=!1;a.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-unsubscribe-action":"handleUnsubscribeAction","yt-window-resized":"onWindowResize"};return a};
_.z(S8c,_.P);_.f=S8c.prototype;_.f.areAllFalse=function(a,b,c){return!a&&!b&&!c};
_.f.updateJoinButtonOverrides=function(){var a;(a=_.E(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||a.set("overrides",this.joinButtonOverrides)};
_.f.configureRendererStamper=function(){return{"data.purchaseButton":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.sponsorButton":{id:"sponsor-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[joinButtonOverrides]]"}}}},"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},
"data.editChannelButtons":{id:"edit-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.otherButtons":{id:"other-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.tagline":{id:"channel-tagline",mapping:{channelTaglineRenderer:"ytd-channel-tagline-renderer"}},"data.headerLinks":{id:"channel-header-links",mapping:{channelHeaderLinksViewModel:{component:"ytd-channel-header-links-view-model",properties:{usePageHeaderStyle:"[[usePageHeaderStyle]]"}}}}}};
_.f.attached=function(){this.data&&this.dataChanged()};
_.f.computeHeaderDisabled=function(a,b){return b||!a};
_.f.handleButtonRefreshAction=function(a){(a=_.y(a,_.Gyb))&&this.set("data.sponsorButton",a.membershipButton)};
_.f.handleInsertTabCommand=function(a){var b=_.y(a,C7c);b&&b.externalChannelId===this.data.channelId&&(b.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(c){return c.tabRenderer&&c.tabRenderer.tabIdentifier===b.tabIdentifier})||this.splice("tabs",b.tabIndex||-1,0,b.tab))};
_.f.handleRefreshChannelTabAction=function(a){var b,c=(b=this.tabs)==null?void 0:b.filter(function(g){var k;return(k=g.tabRenderer)==null?void 0:k.selected});
b=(c==null?void 0:c.length)===1?c[0]:void 0;var d;if((b==null?void 0:(d=b.tabRenderer)==null?void 0:d.tabIdentifier)===a){var e;_.go(this.hostElement,"yt-navigate",{endpoint:(e=b.tabRenderer)==null?void 0:e.endpoint,tempData:{disableCache:!0}})}};
_.f.onWindowResize=function(){_.E(this.hostElement).querySelector("#header").fire("iron-resize")};
_.f.dataChanged=function(){var a=this.hasChannelArt;this.hasChannelArt=!1;if(this.data&&this.data.banner){var b=_.Xs(this.data.banner.thumbnails,this.hostElement.clientWidth);b&&(b.indexOf("//")===0&&(b="https:"+b),this.hasChannelArt=!0,_.dr(this.hostElement,{"--yt-channel-banner":"url("+b+")"}))}this.hasChannelArt!==a&&_.E(this.hostElement).querySelector("#header").fire("iron-resize")};
_.f.onBannerUpdated=function(a,b){a=window.devicePixelRatio>1?b.hq_url:b.url;a.indexOf("//")===0&&(a="https:"+a);this.hasChannelArt=!0;_.dr(this.hostElement,{"--yt-channel-banner":"url("+a+")"})};
_.f.observeLightsourcePalette=function(){var a,b,c=(a=this.data)==null?void 0:(b=a.headerColorPalette)==null?void 0:b.lightsourceColorPaletteData;c&&_.Gt(this.hostElement,c)};
_.f.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.dr(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.f.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.f.handleUnsubscribeAction=function(){var a,b;((b=_.y((a=this.data)==null?void 0:a.sponsorButton,_.OE))==null?void 0:b.style)==="STYLE_PRIMARY"&&_.E(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").set("data.style","STYLE_SUGGESTIVE")};
_.f.onFocusedChanged=function(a){(a=_.Qq(a))&&a.is==="tp-yt-paper-tab"&&a.hasRipple()&&(a.getRipple().holdDown=!a.pointerDown&&a.focused)};
_.f.updateSelectedFromBinding=function(a){this.ytdTabbedHeaderBehavior.selected=a.detail.value};
_.Vm.Object.defineProperties(S8c.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:b7c(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasChannelHeaderLinks:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!((a=this.data)==null?0:(b=a.headerLinks)==null?0:b.channelHeaderLinksViewModel)}},
subscribeKey:{configurable:!0,enumerable:!0,get:function(){return this.get("subscribeButton.subscribeButtonRenderer.subscribedEntityKey",this.data)}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.subscriptionStateEntity)==null||!a.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono",buttonType:this.subscribed?"filled":"tonal"}}},
useModernStyle:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.style)==="C4_TABBED_HEADER_RENDERER_STYLE_MODERN"}},
usePageHeaderStyle:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.style)==="C4_TABBED_HEADER_RENDERER_STYLE_PAGE_HEADER"}},
avatarSize:{configurable:!0,enumerable:!0,get:function(){return this.usePageHeaderStyle?160:this.useModernStyle?128:80}},
shouldInlineChannelName:{configurable:!0,enumerable:!0,get:function(){var a=this.channelHandleDisplayStyle;return a==="MODERN"||a==="PAGE_HEADER"}},
hideBannerEndpoint:{configurable:!0,enumerable:!0,get:function(){var a;return this.usePageHeaderStyle||!((a=this.data)==null?0:a.bannerLinkEndpoint)}},
hideBannerVisibleArea:{configurable:!0,enumerable:!0,get:function(){var a;return this.usePageHeaderStyle||!((a=this.data)==null||!a.bannerLinkEndpoint)}},
showBannerEditor:{configurable:!0,enumerable:!0,get:function(){var a;return!!_.y((a=this.data)==null?void 0:a.bannerEditor,s7c)}},
bannerEffects:{configurable:!0,enumerable:!0,get:function(){return this.usePageHeaderStyle?null:"parallax-background"}},
effectsConfig:{configurable:!0,enumerable:!0,get:function(){return this.usePageHeaderStyle?null:{"parallax-background":{scalar:.5}}}},
shouldShowPageHeaderBanner:{configurable:!0,enumerable:!0,get:function(){return this.usePageHeaderStyle&&!!this.hasChannelArt}},
isChannelHandlePresent:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.channelHandleText)}},
channelHandleDisplayStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelHandlePresent?this.usePageHeaderStyle?"PAGE_HEADER":this.useModernStyle?"MODERN":"CLASSIC":"NOT_AVAILABLE"}},
shouldShowChannelPronouns:{configurable:!0,enumerable:!0,get:function(){var a;return _.x("enable_view_pronouns_on_main_app")&&!((a=this.data)==null||!a.channelPronouns)}},
shouldShowSubscriberCount:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.subscriberCountText)}},
shouldShowVideosCount:{configurable:!0,enumerable:!0,get:function(){var a;return(this.useModernStyle||this.usePageHeaderStyle)&&!((a=this.data)==null||!a.videosCountText)}}});
var q7=S8c;q7.prototype.observerRichGridItemsPerRow=q7.prototype.observerRichGridItemsPerRow;q7.prototype.observeLightsourcePalette=q7.prototype.observeLightsourcePalette;q7.prototype.onBannerUpdated=q7.prototype.onBannerUpdated;q7.prototype.dataChanged=q7.prototype.dataChanged;q7.prototype.updateJoinButtonOverrides=q7.prototype.updateJoinButtonOverrides;_.U([_.H(_.QI),_.W("design:type",Object)],q7.prototype,"ytdGridStateAwareBehavior",void 0);
_.U([_.H(E7c),_.W("design:type",Object)],q7.prototype,"ytdTabbedHeaderBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],q7.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],q7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.SI.YtdGuideStateAwareBehavior),_.W("design:type",Object)],q7.prototype,"ytdGuideStateAwareBehavior",void 0);
_.U([_.H(_.LI),_.W("design:type",Object)],q7.prototype,"ytdReduxBehavior",void 0);_.U([_.gr("#tabs"),_.W("design:type",Object)],q7.prototype,"tabsElement",void 0);_.U([_.O(),_.W("design:type",Array)],q7.prototype,"tabs",void 0);_.U([_.K("tabs.*"),_.W("design:type",Object),_.W("design:paramtypes",[])],q7.prototype,"tabGroupShape",null);_.U([_.O(),_.W("design:type",Object)],q7.prototype,"expandableCustomTabRenderable",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],q7.prototype,"isRichGrid",void 0);_.U([_.O({reflectToAttribute:!0,selector:_.Ep}),_.W("design:type",Object)],q7.prototype,"richGridMiniMode",void 0);_.U([_.O({selector:_.Fp}),_.W("design:type",Number)],q7.prototype,"richGridItemsPerRow",void 0);_.U([_.O(),_.W("design:type",Object)],q7.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],q7.prototype,"hasChannelArt",void 0);
_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],q7.prototype,"hasChannelHeaderLinks",null);_.U([_.O({selector:_.Zlc,reflectToAttribute:!0}),_.W("design:type",Boolean)],q7.prototype,"guideIsVisibleButNotPersistent",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],q7.prototype,"subscribeKey",null);
_.U([_.O({selectorArgs:["subscribeKey"],selector:_.ku}),_.W("design:type",Object)],q7.prototype,"subscriptionStateEntity",void 0);_.U([_.K("subscriptionStateEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],q7.prototype,"subscribed",null);_.U([_.K("subscribed"),_.W("design:type",Object),_.W("design:paramtypes",[])],q7.prototype,"joinButtonOverrides",null);
_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],q7.prototype,"useModernStyle",null);_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],q7.prototype,"usePageHeaderStyle",null);_.U([_.K("useModernStyle","usePageHeaderStyle"),_.W("design:type",Number),_.W("design:paramtypes",[])],q7.prototype,"avatarSize",null);
_.U([_.K("channelHandleDisplayStyle"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],q7.prototype,"shouldInlineChannelName",null);_.U([_.K("data","usePageHeaderStyle"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],q7.prototype,"hideBannerEndpoint",null);_.U([_.K("data","usePageHeaderStyle"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],q7.prototype,"hideBannerVisibleArea",null);
_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],q7.prototype,"showBannerEditor",null);_.U([_.K("usePageHeaderStyle"),_.W("design:type",Object),_.W("design:paramtypes",[])],q7.prototype,"bannerEffects",null);_.U([_.K("usePageHeaderStyle"),_.W("design:type",Object),_.W("design:paramtypes",[])],q7.prototype,"effectsConfig",null);_.U([_.K("usePageHeaderStyle","hasChannelArt"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],q7.prototype,"shouldShowPageHeaderBanner",null);
_.U([_.K("data.channelHandleText"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],q7.prototype,"isChannelHandlePresent",null);_.U([_.K("isChannelHandlePresent","useModernStyle","usePageHeaderStyle"),_.W("design:type",String),_.W("design:paramtypes",[])],q7.prototype,"channelHandleDisplayStyle",null);_.U([_.K("data.channelPronouns"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],q7.prototype,"shouldShowChannelPronouns",null);
_.U([_.K("data.subscriberCountText"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],q7.prototype,"shouldShowSubscriberCount",null);_.U([_.K("useModernStyle","data.videosCountText"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],q7.prototype,"shouldShowVideosCount",null);_.U([_.N("joinButtonOverrides"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],q7.prototype,"updateJoinButtonOverrides",null);
_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],q7.prototype,"dataChanged",null);_.U([_.M("yt-banner-updated"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],q7.prototype,"onBannerUpdated",null);_.U([_.N("data.headerColorPalette.lightsourceColorPaletteData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],q7.prototype,"observeLightsourcePalette",null);
_.U([_.N("richGridItemsPerRow","isRichGrid"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],q7.prototype,"observerRichGridItemsPerRow",null);q7=_.U([_.Q({is:"ytd-c4-tabbed-header-renderer",disableElementRegistration:!0})],q7);
_.S(q7,"ytd-c4-tabbed-header-renderer",function(){if(C8c!==void 0)return C8c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-c4-tabbed-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-app-header-layout class="style-scope ytd-c4-tabbed-header-renderer"><tp-yt-app-header id="header" slot="header" condenses="" disabled="[[computeHeaderDisabled(active, guideIsVisibleButNotPersistent)]]" effects="[[bannerEffects]]" effects-config="[[effectsConfig]]" fixed="" class="style-scope ytd-c4-tabbed-header-renderer"><a class="banner-visible-area yt-simple-endpoint style-scope ytd-c4-tabbed-header-renderer" aria-label$="[[data.banner.accessibility.accessibilityData.label]]" data="[[data.bannerLinkEndpoint]]" hidden="[[hideBannerEndpoint]]" href="[[computeHref_(data.bannerLinkEndpoint)]]"></a><template is="dom-if" if="[[!hideBannerVisibleArea]]" class="style-scope ytd-c4-tabbed-header-renderer"><div class="banner-visible-area style-scope ytd-c4-tabbed-header-renderer"><div id="banner-editor" class="style-scope ytd-c4-tabbed-header-renderer"><template is="dom-if" if="[[showBannerEditor]]" class="style-scope ytd-c4-tabbed-header-renderer"><ytd-channel-banner-editor-renderer data="[[data.bannerEditor.channelBannerEditorRenderer]]" class="style-scope ytd-c4-tabbed-header-renderer"></ytd-channel-banner-editor-renderer></template></div></div></template><template is="dom-if" if="[[shouldShowPageHeaderBanner]]" class="style-scope ytd-c4-tabbed-header-renderer"><div class="page-header-banner style-scope ytd-c4-tabbed-header-renderer"><div class="page-header-banner-sizer style-scope ytd-c4-tabbed-header-renderer"><div class="page-header-banner-image style-scope ytd-c4-tabbed-header-renderer"></div><template is="dom-if" if="[[showBannerEditor]]" class="style-scope ytd-c4-tabbed-header-renderer"><ytd-channel-banner-editor-renderer data="[[data.bannerEditor.channelBannerEditorRenderer]]" class="style-scope ytd-c4-tabbed-header-renderer"></ytd-channel-banner-editor-renderer></template></div></div></template><div id="channel-container" class="style-scope ytd-c4-tabbed-header-renderer"><div id="channel-header" class="style-scope ytd-c4-tabbed-header-renderer"><div id="channel-header-container" class="style-scope ytd-c4-tabbed-header-renderer"><yt-img-shadow id="avatar" hidden="[[data.editAvatarServiceEndpoint]]" thumbnail="[[data.avatar]]" width="[[avatarSize]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-img-shadow><ytd-channel-avatar-editor id="avatar-editor" avatar-size="[[avatarSize]]" data="[[data]]" disable-upgrade$="[[!data.editAvatarServiceEndpoint]]" hidden="[[!data.editAvatarServiceEndpoint]]" class="style-scope ytd-c4-tabbed-header-renderer"></ytd-channel-avatar-editor><div id="inner-header-container" class="style-scope ytd-c4-tabbed-header-renderer"><div id="meta" class="style-scope ytd-c4-tabbed-header-renderer"><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" has-channel-art="[[hasChannelArt]]" wrap-text="" class="style-scope ytd-c4-tabbed-header-renderer"></ytd-channel-name><p hidden="[[!equals(channelHandleDisplayStyle, \'CLASSIC\')]]" class="style-scope ytd-c4-tabbed-header-renderer"><yt-formatted-string id="channel-handle" class="meta-item style-scope ytd-c4-tabbed-header-renderer" respect-lang-dir="" text="[[data.channelHandleText]]"></yt-formatted-string></p><span class="meta-item style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldInlineChannelName]]"><yt-formatted-string id="channel-handle" respect-lang-dir="" text="[[data.channelHandleText]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string><span aria-hidden="true" class="delimiter style-scope ytd-c4-tabbed-header-renderer" hidden="[[areAllFalse(shouldShowChannelPronouns, shouldShowSubscriberCount, shouldShowVideosCount)]]">\u2027</span></span><span class="meta-item style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldShowChannelPronouns]]"><yt-formatted-string id="channel-pronouns" text="[[data.channelPronouns]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string><span aria-hidden="true" class="delimiter style-scope ytd-c4-tabbed-header-renderer" hidden="[[areAllFalse(shouldShowSubscriberCount, shouldShowVideosCount, false)]]">\u2027</span></span><span class="meta-item style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldShowSubscriberCount]]"><yt-formatted-string id="subscriber-count" text="[[data.subscriberCountText]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string><span aria-hidden="true" class="delimiter style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldShowVideosCount]]">\u2027</span></span><span class="meta-item style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldShowVideosCount]]"><yt-formatted-string id="videos-count" text="[[data.videosCountText]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string></span><div id="channel-tagline" class="style-scope ytd-c4-tabbed-header-renderer"></div><div id="channel-header-links" class="style-scope ytd-c4-tabbed-header-renderer"></div></div><div id="buttons" class="style-scope ytd-c4-tabbed-header-renderer"><div id="purchase-button" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div><div id="subscribe-button" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div><div id="sponsor-button" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div><div id="edit-buttons" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div><div id="other-buttons" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div></div></div></div><div id="links-holder" class="style-scope ytd-c4-tabbed-header-renderer"><div id="primary-links" class="style-scope ytd-c4-tabbed-header-renderer"><template is="dom-repeat" items="[[data.headerLinks.channelHeaderLinksRenderer.primaryLinks]]" as="primaryLink" class="style-scope ytd-c4-tabbed-header-renderer"><a class="yt-simple-endpoint container style-scope ytd-c4-tabbed-header-renderer" href$="[[computeHref_(primaryLink.navigationEndpoint)]]" data="[[primaryLink.navigationEndpoint]]" title$="[[getSimpleString(primaryLink.title)]]"><div class="icon-container style-scope ytd-c4-tabbed-header-renderer"><yt-img-shadow height="16" thumbnail="[[primaryLink.icon]]" width="16" class="style-scope ytd-c4-tabbed-header-renderer"></yt-img-shadow><yt-formatted-string text="[[primaryLink.title]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string></div></a></template></div><div id="secondary-links" class="style-scope ytd-c4-tabbed-header-renderer"><template is="dom-repeat" items="[[data.headerLinks.channelHeaderLinksRenderer.secondaryLinks]]" as="secondaryLink" class="style-scope ytd-c4-tabbed-header-renderer"><a class="yt-simple-endpoint style-scope ytd-c4-tabbed-header-renderer" href$="[[computeHref_(secondaryLink.navigationEndpoint)]]" data="[[secondaryLink.navigationEndpoint]]" title$="[[getSimpleString(secondaryLink.title)]]"><yt-img-shadow height="16" thumbnail="[[secondaryLink.icon]]" width="16" class="style-scope ytd-c4-tabbed-header-renderer"></yt-img-shadow></a></template></div></div></div></div><tp-yt-app-toolbar sticky="" class="style-scope ytd-c4-tabbed-header-renderer"><div id="tabs-container" class="style-scope ytd-c4-tabbed-header-renderer"><div id="tabs-inner-container" class="style-scope ytd-c4-tabbed-header-renderer"><div id="tabs-divider" class="style-scope ytd-c4-tabbed-header-renderer"></div><tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-c4-tabbed-header-renderer"><yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-tab-group-shape></tp-yt-paper-tabs></div></div></tp-yt-app-toolbar></tp-yt-app-header></tp-yt-app-header-layout>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return C8c=a},{mode:1});var T8c;var U8c=function(){return _.P.apply(this,arguments)||this};
_.z(U8c,_.P);U8c.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"}}}};
U8c.prototype.dataChanged=function(){if(this.data){var a=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var b=_.Xs(this.data.banner.thumbnails,this.hostElement.clientWidth);b&&(b.indexOf("//")===0&&(b="https:"+b),this.hasBannerArt=!0,_.dr(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+b+")"}))}this.hasBannerArt!==a&&_.E(this.hostElement).querySelector("#header").fire("iron-resize")}};
U8c.prototype.updateSelectedFromBinding=function(a){this.selected=a.detail.value};
var r7=U8c;r7.prototype.dataChanged=r7.prototype.dataChanged;_.U([_.H(E7c),_.W("design:type",Object)],r7.prototype,"ytdTabbedHeaderBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],r7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.QI),_.W("design:type",Object)],r7.prototype,"ytdGridStateAwareBehavior",void 0);_.U([_.H(_.SI.YtdGuideStateAwareBehavior),_.W("design:type",Object)],r7.prototype,"ytdGuideStateAwareBehavior",void 0);
_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],r7.prototype,"componentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],r7.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Number)],r7.prototype,"selected",void 0);_.U([_.O(),_.W("design:type",Boolean)],r7.prototype,"active",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],r7.prototype,"hasBannerArt",void 0);
_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],r7.prototype,"dataChanged",null);r7=_.U([_.Q({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],r7);
_.S(r7,"ytd-interactive-tabbed-header-renderer",function(){if(T8c!==void 0)return T8c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-interactive-tabbed-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-app-header-layout class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-app-header id="header" slot="header" condenses="" disabled="[[!active]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-interactive-tabbed-header-renderer"><svg id="bg" viewBox="0 0 1439 304" preserveAspectRatio="xMinYMid slice" class="style-scope ytd-interactive-tabbed-header-renderer"><path opacity="0.5" d="M 0,304 V 0 H 963 L 1439,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.5" d="M 0,0 l 0,304 580,0 L 1055,0 0,0 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.9" d="M 0,304 V 0 H 780 L 1247,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path></svg><div id="content-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="content" class="style-scope ytd-interactive-tabbed-header-renderer"><yt-img-shadow id="box-art" object-fit="COVER" thumbnail="[[data.boxArt]]" class="style-scope ytd-interactive-tabbed-header-renderer"></yt-img-shadow><div id="details" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="title" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.title)]]</div><div id="auto-generated" hidden="[[!data.autoGenerated]]" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.autoGenerated)]]</div><div id="description" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.description)]]</div><div id="metadata" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.metadata)]]</div><ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-interactive-tabbed-header-renderer"></ytd-badge-supported-renderer><div id="buttons" class="style-scope ytd-interactive-tabbed-header-renderer"></div></div></div></div><tp-yt-app-toolbar sticky="" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-inner-container" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tabs noink="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-interactive-tabbed-header-renderer"><template is="dom-repeat" items="[[tabs]]" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tab hidden="[[!item.tabRenderer]]" class="style-scope ytd-interactive-tabbed-header-renderer">\n                [[item.tabRenderer.title]]\n              </tp-yt-paper-tab></template></tp-yt-paper-tabs></div></div></tp-yt-app-toolbar></tp-yt-app-header></tp-yt-app-header-layout>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return T8c=a},{mode:1});var V8c;var W8c=function(){return _.P.apply(this,arguments)||this};
_.z(W8c,_.P);W8c.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
W8c.prototype.computeActionsAlignment=function(a){return(a==null?void 0:a.actionsAlignment)||""};
var s7=W8c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],s7.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],s7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],s7.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.W("design:type",String)],s7.prototype,"actionsAlignment",void 0);
s7=_.U([_.Q({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],s7);
_.S(s7,"ytd-page-footer-renderer",function(){if(V8c!==void 0)return V8c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return V8c=a},{mode:1});var X8c;var Y8c;var Z8c=function(){var a=_.P.apply(this,arguments)||this;a.isEditing=!1;a.useSlot=!1;a.isMultiline=!1;return a};
_.z(Z8c,_.P);_.f=Z8c.prototype;_.f.onKeydown=function(a){if(a.keyCode===13&&!this.isMultiline)this.onSave();else if(a.keyCode===27)this.onCancel()};
_.f.computeComponentStyle=function(a){return(a==null?0:a.style)?a.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.f.computeisMultiline=function(a){if(this.multilineOverride!==void 0)return this.multilineOverride;var b,c;return!!(a==null?0:(b=a.formField)==null?0:(c=b.textInputFormFieldRenderer)==null?0:c.isMultiline)};
_.f.computeTextDisplayed=function(a,b){if(a)return a;if(b)return b};
_.f.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.f.onSave=function(){if(this.textForm.validate()){this.textForm.save();var a=this.textForm.value;if(a)this.set("data.textDisplayed",_.Up(a));else{var b;((b=this.data)==null?0:b.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.TH("inline-form-changed",this.data));this.isEditing=!1}};
_.f.onCancel=function(){var a=_.Vp(this.data.textDisplayed);a===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(a);this.isEditing=!1};
var t7=Z8c;t7.prototype.onKeydown=t7.prototype.onKeydown;_.U([_.H(_.CK.YtEventForwardingBehavior),_.W("design:type",Object)],t7.prototype,"ytEventForwardingBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],t7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],t7.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],t7.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],t7.prototype,"isEditing",void 0);_.U([_.O(),_.W("design:type",Object)],t7.prototype,"useSlot",void 0);_.U([_.O(),_.W("design:type",Boolean)],t7.prototype,"multilineOverride",void 0);_.U([_.O(),_.W("design:type",Boolean)],t7.prototype,"enableOverlayTheme",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.W("design:type",String)],t7.prototype,"componentStyle",void 0);
_.U([_.O({computed:"computeisMultiline(data)"}),_.W("design:type",Object)],t7.prototype,"isMultiline",void 0);_.U([_.gr("#text-form"),_.W("design:type",Object)],t7.prototype,"textForm",void 0);_.U([_.M("keydown"),_.W("design:type",Function),_.W("design:paramtypes",[KeyboardEvent]),_.W("design:returntype")],t7.prototype,"onKeydown",null);t7=_.U([_.Q({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],t7);
_.S(t7,"ytd-inline-form-renderer",function(){if(Y8c!==void 0)return Y8c;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return Y8c=a},{mode:1});var $8c;var a9c=function(){var a=_.P.apply(this,arguments)||this;a.previousSelectValue=void 0;a.selectedItemMessage=void 0;return a};
_.z(a9c,_.P);a9c.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
a9c.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var a,b,c,d,e=(a=this.data)==null?void 0:(b=a.dropdown)==null?void 0:(c=b.dropdownRenderer)==null?void 0:(d=c.entries)==null?void 0:d.map(function(m){return m.privacyDropdownItemRenderer});
a=_.h(e!=null?e:[]);for(b=a.next();!b.done;b=a.next())if((b=b.value)&&b.int32Value===this.selectedValue){this.selectedItemMessage=b.itemMessage;break}}else this.selectedItemMessage=void 0;var g;(g=this.onValueChanged)==null||g.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var k;(k=this.data)!=null&&k.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
a9c.prototype.onValueChangedForSelectedValue=function(a){this.selectedValue=a.detail.value};
var u7=a9c;u7.prototype.selectedValueChanged=u7.prototype.selectedValueChanged;_.U([_.H(_.CK.YtEventForwardingBehavior),_.W("design:type",Object)],u7.prototype,"ytEventForwardingBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],u7.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],u7.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],u7.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],u7.prototype,"data",void 0);_.U([_.O(),_.W("design:type",String)],u7.prototype,"theme",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Number)],u7.prototype,"selectedValue",void 0);_.U([_.O(),_.W("design:type",Function)],u7.prototype,"onValueChanged",void 0);
_.U([_.kr("selectedValue"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],u7.prototype,"selectedValueChanged",null);u7=_.U([_.Q({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],u7);
_.S(u7,"ytd-dropdown-form-field-renderer",function(){if($8c!==void 0)return $8c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return $8c=a},{mode:_.as("kevlar_poly_si_batch_j025")?1:2});var b9c;var c9c=function(){return _.P.apply(this,arguments)||this};
_.z(c9c,_.P);_.Vm.Object.defineProperties(c9c.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var a=[],b=_.h(this.data||[]),c=b.next();!c.done;c=b.next())(c=_.y(c.value,B7c))&&a.push(c);return a}}});
var d9c=c9c;_.U([_.O(),_.W("design:type",Array)],d9c.prototype,"data",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],d9c.prototype,"byline",null);d9c=_.U([_.Q({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],d9c);
_.S(d9c,"ytd-playlist-byline-renderer",function(){if(b9c!==void 0)return b9c;var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return b9c=a},{mode:1});var e9c;var f9c=function(){var a=_.P.apply(this,arguments)||this;a.rtlBullet=_.x("web_playlist_stats_rtl_bullet_icon_killswitch");a.modern=_.x("web_modern_buttons");a.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return a};
_.z(f9c,_.P);_.f=f9c.prototype;_.f.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"}}}}};
_.f.attached=function(){};
_.f.computeIsCustomThumbnail=function(a){return a?!!a.playlistCustomThumbnailRenderer:!1};
_.f.onYtNavigate=function(a,b){if(b&&b.actions&&b.actions.indexOf("shuffle")>-1){a=_.v().resolve(_.QF);var c=b.tempData||{};c.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);b.tempData=c;a.isShuffleNextPlaylist=!0}};
_.f.onUpdatePlaylistAction=function(a){var b;a=(b=_.y(a,_.Hzb))==null?void 0:b.updatedRenderer;if(b=_.y(a,u7c))this.data=b};
_.f.computeStyleType=function(a){return a?a.toLowerCase().replace(/_/g,"-"):""};
_.f.computeThumbnailWidth=function(a){return a==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.f.computeHideThumbnailAria=function(a){if(a==null?0:a.thumbnailOverlays)for(var b=0;b<a.thumbnailOverlays.length;b++){var c=void 0;if((c=a.thumbnailOverlays[b])==null?0:c.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
var v7=f9c;v7.prototype.onYtNavigate=v7.prototype.onYtNavigate;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],v7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],v7.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],v7.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],v7.prototype,"ytComponentBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],v7.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],v7.prototype,"rtlBullet",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.W("design:type",String)],v7.prototype,"styleType",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.W("design:type",Number)],v7.prototype,"thumbnailWidth",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],v7.prototype,"modern",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.W("design:type",Boolean)],v7.prototype,"isCustomThumbnail",void 0);_.U([_.M("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[Event,Object]),_.W("design:returntype")],v7.prototype,"onYtNavigate",null);v7=_.U([_.Q({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],v7);
_.S(v7,"ytd-playlist-sidebar-primary-info-renderer",function(){if(e9c!==void 0)return e9c;var a=document.createElement("template");_.B(a,'\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>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return e9c=a},{mode:1});var g9c;var h9c=function(){return _.P.apply(this,arguments)||this};
_.z(h9c,_.P);h9c.prototype.computeOwnerVisibility=function(a){return!(!a.videoOwner&&!a.button)};
h9c.prototype.configureRendererStamper=function(){return{"data.videoOwner":{id:"video-owner",mapping:{videoOwnerRenderer:"ytd-video-owner-renderer"}},"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}}}};
var w7=h9c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],w7.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],w7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],w7.prototype,"data",void 0);w7=_.U([_.Q({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],w7);
_.S(w7,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(g9c!==void 0)return g9c;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return g9c=a},{mode:1});var i9c;var j9c=function(){var a=_.P.apply(this,arguments)||this;a.expanded=!1;a.isCompact=!1;return a};
_.z(j9c,_.P);_.f=j9c.prototype;_.f.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.f.dataChanged=function(){this.data&&_.Yd(_.E(this.text),_.ecb(_.hcb,_.Vp(this.data.text||null)))};
_.f.computeAutoScrollEnabled=function(a,b){return a&&!b};
_.f.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.f.toggleOnTap=function(){this.expanded=!this.expanded};
var x7=j9c;x7.prototype.expandedChanged=x7.prototype.expandedChanged;x7.prototype.dataChanged=x7.prototype.dataChanged;_.U([_.H(_.f6c),_.W("design:type",Object)],x7.prototype,"ytdAutoScrollBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],x7.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],x7.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],x7.prototype,"expanded",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],x7.prototype,"isCompact",void 0);_.U([_.O({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.W("design:type",Boolean)],x7.prototype,"autoScrollEnabled",void 0);_.U([_.gr("#text"),_.W("design:type",Object)],x7.prototype,"text",void 0);_.U([_.gr("#expander-icon"),_.W("design:type",Object)],x7.prototype,"expanderIcon",void 0);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],x7.prototype,"dataChanged",null);_.U([_.N("expanded"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],x7.prototype,"expandedChanged",null);x7=_.U([_.Q({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],x7);
_.S(x7,"ytd-channel-legal-info-renderer",function(){if(i9c!==void 0)return i9c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return i9c=a},{mode:1});var k9c;var l9c=_.to("DOWNLOAD",{},"Download"),m9c=_.to("DOWNLOADING",{},"Downloading"),n9c=_.to("DOWNLOADED",{},"Downloaded"),o9c=function(){var a=_.P.apply(this,arguments)||this;a.downloadProgress=0;a.isDownloadComplete=!1;a.transferState="TRANSFER_STATE_UNKNOWN";return a};
_.z(o9c,_.P);_.f=o9c.prototype;_.f.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.f.dataChanged=function(){var a;(a=this.data)!=null&&a.tooltip||(a=_.Kp(_.Yp().getState(),this.playlistId),this.updateButtonState(a))};
_.f.computePlaylistId=function(a){return a};
_.f.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.f.updateButtonState=function(a){if(this.data&&(this.data.tooltip!==m9c||!_.wp(a))){this.isDownloadComplete=!1;switch(a){case "TRANSFER_STATE_UNKNOWN":a=l9c;var b="OFFLINE_DOWNLOAD";var c="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":a=n9c;b="OFFLINE_PIN";c="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":a=m9c;b="OFFLINE_DOWNLOADING_ZERO";c="ACTION_REMOVE_WITH_PROMPT";
break;default:a=l9c,b="OFFLINE_DOWNLOAD",c="ACTION_ADD"}var d=Object.assign({},this.data);d.tooltip=a;d.accessibilityData={accessibilityData:{label:a}};d.icon={iconType:b};d.size="SIZE_DEFAULT";_.y(d.command,_.ru)&&(_.y(d.command,_.ru).action=c);this.set("data",d)}};
_.f.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var a="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?a="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?a="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?a="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?a="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?a="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(a="OFFLINE_PIN",this.isDownloadComplete=!0);var b;a!==((b=this.data.icon)==null?void 0:b.iconType)&&(b=Object.assign({},this.data),b.tooltip=m9c,b.accessibilityData={accessibilityData:{label:m9c}},b.icon={iconType:a},_.y(b.command,_.ru)&&(_.y(b.command,_.ru).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",b))}};
var y7=o9c;y7.prototype.updateProgress=y7.prototype.updateProgress;y7.prototype.onTransferStateChanged=y7.prototype.onTransferStateChanged;y7.prototype.dataChanged=y7.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],y7.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],y7.prototype,"ytdReduxBehavior",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],y7.prototype,"forceIconButton",void 0);
_.U([_.O({value:!0}),_.W("design:type",Boolean)],y7.prototype,"forceIconOnly",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],y7.prototype,"overrides",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],y7.prototype,"buttonTooltipPosition",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],y7.prototype,"styleActionButton",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],y7.prototype,"disableTextTransform",void 0);
_.U([_.O({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.W("design:type",String)],y7.prototype,"playlistId",void 0);_.U([_.O(),_.W("design:type",Object)],y7.prototype,"data",void 0);_.U([_.O({selector:_.wFa,selectorArgs:["playlistId"]}),_.W("design:type",Object)],y7.prototype,"downloadProgress",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],y7.prototype,"isDownloadComplete",void 0);
_.U([_.O({selector:_.Kp,selectorArgs:["playlistId"]}),_.W("design:type",String)],y7.prototype,"transferState",void 0);_.U([_.O({value:!0}),_.W("design:type",Boolean)],y7.prototype,"showTooltips",void 0);_.U([_.O({value:!0}),_.W("design:type",Boolean)],y7.prototype,"sendCommandWhenDisabled",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],y7.prototype,"disabled",void 0);
_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],y7.prototype,"dataChanged",null);_.U([_.kr("transferState"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],y7.prototype,"onTransferStateChanged",null);_.U([_.kr("downloadProgress"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],y7.prototype,"updateProgress",null);
y7=_.U([_.Q({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],y7);
_.S(y7,"ytd-download-playlist-button-renderer",function(){if(k9c!==void 0)return k9c;var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return k9c=a},{mode:1});var p9c;_.Ws(_.lL,"thumbnail-overlay-button-view-model",{props:{data:_.SG,lockupExperiments:_.SG}});var q9c=function(){var a=_.P.apply(this,arguments)||this;a.isSquare=!1;a.isVertical=!1;return a};
_.z(q9c,_.P);q9c.prototype.computeIsSquare=function(a){return a!=null&&a.thumbnail?Y6c(a.thumbnail)==="SQUARE":!1};
q9c.prototype.computeIsVertical=function(a){return a!=null&&a.thumbnail?Y6c(a.thumbnail)==="VERTICAL":!1};
q9c.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
var z7=q9c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],z7.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],z7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.W("design:type",Object)],z7.prototype,"isSquare",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.W("design:type",Object)],z7.prototype,"isVertical",void 0);
_.U([_.O(),_.W("design:type",Object)],z7.prototype,"data",void 0);z7=_.U([_.Q({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],z7);
_.S(z7,"ytd-hero-playlist-thumbnail-renderer",function(){if(p9c!==void 0)return p9c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return p9c=a},{mode:1});var r9c=function(){var a=_.P.apply(this,arguments)||this;a.isDarkTheme=!1;a.isUltraWide=!1;a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return a};
_.z(r9c,_.P);_.f=r9c.prototype;_.f.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.v();var a;(a=_.v().resolve(_.Wi(_.eT)))!=null&&(a.headerElement=this.hostElement)};
_.f.detached=function(){var a;(a=_.v().resolve(_.Wi(_.eT)))!=null&&(a.headerElement=void 0)};
_.f.onUpdateHeader=function(a){(a=a.detail)&&this.set("data",a)};
_.f.computeTextDisplayed=function(a){if(a)return a.textDisplayed?a.textDisplayed:a.placeholder};
_.f.gradientColorToLinearGradientStop=function(a){var b=this.isDarkTheme?a.darkThemeColor:a.lightThemeColor;return b?_.Cq(b)+" "+((a==null?void 0:a.startLocation)||0)*100+"%":"transparent"};
_.f.onWindowResize=function(){var a;((a=this.data)==null?0:a.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.f.onIronResize=function(a){this.isUltraWide=!a.detail.value};
_.f.onDarkModeToggledAction=function(a){this.isDarkTheme=a};
_.f.onUpdatePlaylistName=function(a){var b=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},a.detail.value));_.Tm(this,function(){var c;(c=b.editableTitle)==null||c.resize()})};
_.f.onUpdatePlaylistDescription=function(a){var b=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},a.detail.value));_.Tm(this,function(){var c;(c=b.editableDescriptionInlineExpander)==null||c.resize()})};
_.f.getCinematicData=function(a){return _.y(a==null?void 0:a.cinematicContainer,_.F6)};
_.Vm.Object.defineProperties(r9c.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 a,b=(a=this.getCinematicData(this.data))==null?void 0:a.config;return(a=this.isDarkTheme?b==null?void 0:b.darkThemeBackgroundColor:b==null?void 0:b.lightThemeBackgroundColor)?"background-color:"+_.Bq(a)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var a;return _.y((a=this.data)==null?void 0:a.descriptionForm,t7c)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var a=this,b,c,d;return"background:linear-gradient(to bottom, "+(((d=(b=this.getCinematicData(this.data))==null?void 0:(c=b.gradientColorConfig)==null?void 0:c.map(function(e){return a.gradientColorToLinearGradientStop(e)}))==null?void 0:d.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var a;return _.Vp((a=this.data)==null?void 0:a.descriptionTapText)}}});
var A7=r9c;A7.prototype.onUpdateHeader=A7.prototype.onUpdateHeader;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],A7.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],A7.prototype,"actionHandlerBehavior",void 0);_.U([_.gr("#description-inline-expander"),_.W("design:type",Object)],A7.prototype,"descriptionInlineExpander",void 0);
_.U([_.gr("#editable-description-inline-expander"),_.W("design:type",Object)],A7.prototype,"editableDescriptionInlineExpander",void 0);_.U([_.O(),_.W("design:type",Object)],A7.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],A7.prototype,"isUltraWide",void 0);_.U([_.gr("#editable-title-display"),_.W("design:type",Object)],A7.prototype,"editableTitle",void 0);_.U([_.K("isUltraWide"),_.W("design:type",Object),_.W("design:paramtypes",[])],A7.prototype,"maxDescriptionLines",null);
_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],A7.prototype,"noCinematicData",null);_.U([_.M("yt-new-playlist-header"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],A7.prototype,"onUpdateHeader",null);_.U([_.K("data","isDarkTheme"),_.W("design:type",Object),_.W("design:paramtypes",[])],A7.prototype,"backgroundStyle",null);
_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],A7.prototype,"descriptionFormData",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],A7.prototype,"getDropdownTheme",null);_.U([_.K("data","isDarkTheme"),_.W("design:type",String),_.W("design:paramtypes",[])],A7.prototype,"gradientStyle",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],A7.prototype,"descriptionTapText",null);
A7=_.U([_.Q({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],A7);
_.S(A7,"ytd-playlist-header-renderer",function(){if(X8c!==void 0)return X8c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return X8c=a},{mode:_.as("kevlar_poly_si_batch_j078")?1:2});var s9c;var t9c;var u9c=function(){return _.P.apply(this,arguments)||this};
_.z(u9c,_.P);u9c.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
var B7=u9c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],B7.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],B7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],B7.prototype,"data",void 0);B7=_.U([_.Q({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],B7);
_.S(B7,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(t9c!==void 0)return t9c;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return t9c=a},{mode:1});var v9c=function(){return _.P.apply(this,arguments)||this};
_.z(v9c,_.P);
v9c.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}}}}};
v9c.prototype.computeUsePremiumShowStyle=function(a){if(!a||!a.items)return!1;for(var b=0;b<a.items.length;b++)if(_.y(a.items[b],u7c)){var c=void 0;return((c=_.y(a.items[b],u7c))==null?void 0:c.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
var C7=v9c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],C7.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],C7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],C7.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.W("design:type",Boolean)],C7.prototype,"usePremiumShowStyle",void 0);
C7=_.U([_.Q({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],C7);
_.S(C7,"ytd-playlist-sidebar-renderer",function(){if(s9c!==void 0)return s9c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return s9c=a},{mode:1});var w9c;var e7c=_.Au({pageHeaderViewModel:_.Z1a});_.am(f7c);_.dt(f7c,"yt-page-header-renderer",{propNames:"noPadding data enableBanner cinematicContainerTopbarOffset allowCinematicContainerOverflow displayAsSidebar".split(" ")});_.Ws(_.U$b,"yt-image-banner-view-model",{props:{data:_.SG,isPositionRelative:_.SG}});var x9c=function(){var a=_.P.apply(this,arguments)||this;a.expandableCustomTabRenderable=function(b){return $6c(b,function(){return void a.onSearchNavigate()})};
a.isRichGrid=!1;a.isConstrainedList=!1;a.richGridMiniMode=!1;a.richGridStyle="RICH_GRID_STYLE_UNKNOWN";a.isRichGridShorts=!1;a.responsiveSizing="COMPACT";a.disableGridStateAware=!1;a.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return a};
_.z(x9c,_.P);_.f=x9c.prototype;_.f.computeHeaderDisabled=function(a,b){return b||!a||this.tabsHidden};
_.f.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.f.computeIsRichGridShorts=function(a){return a==="RICH_GRID_STYLE_SHORTS_GRID"||a==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.f.computeImageBannerViewModel=function(){var a,b;return _.y((b=_.y((a=this.data)==null?void 0:a.content,_.iFb))==null?void 0:b.banner,_.Y1a)};
_.f.computeHasCinematicContainer=function(){var a,b;return!((b=_.y((a=this.data)==null?void 0:a.content,_.iFb))==null||!b.background)};
_.f.handleHeaderResize=function(){var a=_.E(this.hostElement).querySelector("#header");a&&_.go(a,"iron-resize")};
_.f.handleInsertTabCommand=function(a){var b=_.y(a,C7c);b&&(b.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(c){return c.tabRenderer&&c.tabRenderer.tabIdentifier===b.tabIdentifier})||this.splice("tabs",b.tabIndex||-1,0,b.tab))};
_.f.handleRefreshChannelTabAction=function(a){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===a&&_.go(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.f.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.dr(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.f.observerRichGridSlimItemsPerRow=function(){_.dr(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.f.updateCssVars=function(){this.richGridItemsPerRow&&_.dr(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.$i("rich_grid_max_item_width",500))+16)-16+"px"})};
_.f.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.dr(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.f.onDataChanged=function(){this.handleHeaderResize()};
_.f.onWindowResize=function(){this.handleHeaderResize()};
_.f.onFocusedChanged=function(a){(a=_.Qq(a))&&a.is==="tp-yt-paper-tab"&&a.hasRipple()&&(a.getRipple().holdDown=!a.pointerDown&&a.focused)};
_.f.updateSelectedFromBinding=function(a){this.ytdTabbedHeaderBehavior.selected=a.detail.value};
_.f.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.Vm.Object.defineProperties(x9c.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:b7c(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.imageBannerViewModel)==null?void 0:a.style)==="IMAGE_BANNER_STYLE_INSET"}}});
var D7=x9c;D7.prototype.onDataChanged=D7.prototype.onDataChanged;D7.prototype.updateCssVarsForResponsiveGrid=D7.prototype.updateCssVarsForResponsiveGrid;D7.prototype.updateCssVars=D7.prototype.updateCssVars;D7.prototype.observerRichGridSlimItemsPerRow=D7.prototype.observerRichGridSlimItemsPerRow;D7.prototype.observerRichGridItemsPerRow=D7.prototype.observerRichGridItemsPerRow;_.U([_.H(_.QI),_.W("design:type",Object)],D7.prototype,"ytdGridStateAwareBehavior",void 0);
_.U([_.H(E7c),_.W("design:type",Object)],D7.prototype,"ytdTabbedHeaderBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],D7.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],D7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.SI.YtdGuideStateAwareBehavior),_.W("design:type",Object)],D7.prototype,"ytdGuideStateAwareBehavior",void 0);
_.U([_.H(_.LI),_.W("design:type",Object)],D7.prototype,"ytdReduxBehavior",void 0);_.U([_.gr("#tabs"),_.W("design:type",Object)],D7.prototype,"tabsElement",void 0);_.U([_.O(),_.W("design:type",Array)],D7.prototype,"tabs",void 0);_.U([_.O(),_.W("design:type",Object)],D7.prototype,"expandableCustomTabRenderable",void 0);_.U([_.K("tabs.*"),_.W("design:type",Object),_.W("design:paramtypes",[])],D7.prototype,"tabGroupShape",null);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],D7.prototype,"isRichGrid",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],D7.prototype,"isConstrainedList",void 0);_.U([_.O({reflectToAttribute:!0,selector:_.Ep}),_.W("design:type",Object)],D7.prototype,"richGridMiniMode",void 0);_.U([_.O({selector:function(a){return a.ui.richGridStyle}}),
_.W("design:type",Object)],D7.prototype,"richGridStyle",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.W("design:type",Object)],D7.prototype,"isRichGridShorts",void 0);_.U([_.O({selector:_.Fp}),_.W("design:type",Number)],D7.prototype,"richGridItemsPerRow",void 0);_.U([_.O({selector:function(a){return a.ui.richGridContainerWidth}}),
_.W("design:type",Number)],D7.prototype,"richGridContainerWidth",void 0);_.U([_.O({selector:_.jFa}),_.W("design:type",Number)],D7.prototype,"richGridSlimItemsPerRow",void 0);_.U([_.O(),_.W("design:type",Object)],D7.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],D7.prototype,"responsiveSizing",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],D7.prototype,"disableGridStateAware",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeImageBannerViewModel(data)"}),_.W("design:type",Object)],D7.prototype,"imageBannerViewModel",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.W("design:type",Boolean)],D7.prototype,"hasCinematicContainer",void 0);_.U([_.O({selector:_.Zlc,reflectToAttribute:!0}),_.W("design:type",Boolean)],D7.prototype,"guideIsVisibleButNotPersistent",void 0);
_.U([_.O({reflectToAttribute:!0}),_.K("imageBannerViewModel"),_.W("design:type",Object),_.W("design:paramtypes",[])],D7.prototype,"hasBanner",null);_.U([_.O({reflectToAttribute:!0}),_.K("imageBannerViewModel"),_.W("design:type",Object),_.W("design:paramtypes",[])],D7.prototype,"hasInsetBanner",null);_.U([_.O({computed:"computeTabsHidden(tabs)",value:!0}),_.W("design:type",Boolean)],D7.prototype,"tabsHidden",void 0);
_.U([_.N("richGridItemsPerRow","isRichGrid"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D7.prototype,"observerRichGridItemsPerRow",null);_.U([_.N("richGridSlimItemsPerRow"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D7.prototype,"observerRichGridSlimItemsPerRow",null);
_.U([_.N("richGridItemsPerRow","richGridMiniMode"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D7.prototype,"updateCssVars",null);_.U([_.N("richGridContainerWidth"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D7.prototype,"updateCssVarsForResponsiveGrid",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D7.prototype,"onDataChanged",null);
D7=_.U([_.Q({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],D7);
_.S(D7,"ytd-tabbed-page-header",function(){if(w9c!==void 0)return w9c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tabbed-page-header--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <tp-yt-app-header-layout class="style-scope ytd-tabbed-page-header">\n    <tp-yt-app-header id="header" slot="header" condenses="" disabled="[[computeHeaderDisabled(active, guideIsVisibleButNotPersistent, tabs)]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n        <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n          <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n            <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n              <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header">\n              </yt-image-banner-view-model>\n            </div>\n          </div>\n        </template>\n        <div id="page-header" class="style-scope ytd-tabbed-page-header">\n          <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[tabsHidden]]" no-padding="" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n        </div>\n      </div>\n      <tp-yt-app-toolbar disable-upgrade$="[[tabsHidden]]" sticky="" class="style-scope ytd-tabbed-page-header">\n        <div id="tabs-container" class="style-scope ytd-tabbed-page-header">\n          \n          <div id="tabs-inner-container" class="style-scope ytd-tabbed-page-header">\n            <div id="tabs-divider" class="style-scope ytd-tabbed-page-header"></div>\n            <tp-yt-paper-tabs id="tabs" disable-upgrade$="[[tabsHidden]]" noink="" remove-idle-scroll-buttons="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-tabbed-page-header">\n              <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-tabbed-page-header"> </yt-tab-group-shape>\n            </tp-yt-paper-tabs>\n          </div>\n        </div>\n      </tp-yt-app-toolbar>\n    </tp-yt-app-header>\n  </tp-yt-app-header-layout>\n</template>\n<template is="dom-if" if="[[tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n    <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n        <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n          <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header"> </yt-image-banner-view-model>\n        </div>\n      </div>\n    </template>\n    <div id="page-header" class="style-scope ytd-tabbed-page-header">\n      <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[!tabsHidden]]" no-padding="true" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n    </div>\n  </div>\n</template>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return w9c=a},{mode:1});var y9c;var z9c=function(){return _.P.apply(this,arguments)||this};
_.z(z9c,_.P);z9c.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.dr(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.Vm.Object.defineProperties(z9c.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var a,b;return this.componentBehavior.computeIcon_(((b=_.y((a=this.data)==null?void 0:a.badge,_.lAb))==null?void 0:b.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var a,b;return(b=_.y((a=this.data)==null?void 0:a.badge,_.lAb))==null?void 0:b.label}}});
var E7=z9c;E7.prototype.observerRichGridItemsPerRow=E7.prototype.observerRichGridItemsPerRow;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],E7.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],E7.prototype,"componentBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],E7.prototype,"ytdReduxBehavior",void 0);_.U([_.O({reflectToAttribute:!0,selector:_.Ep}),_.W("design:type",Boolean)],E7.prototype,"richGridMiniMode",void 0);
_.U([_.O({selector:_.Fp}),_.W("design:type",Number)],E7.prototype,"richGridItemsPerRow",void 0);_.U([_.O(),_.W("design:type",Object)],E7.prototype,"data",void 0);_.U([_.N("richGridItemsPerRow"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],E7.prototype,"observerRichGridItemsPerRow",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],E7.prototype,"badgeIconName",null);
_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],E7.prototype,"badgeLabel",null);E7=_.U([_.Q({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],E7);
_.S(E7,"ytd-member-hub-profile-renderer",function(){if(y9c!==void 0)return y9c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return y9c=a},{mode:1});var A9c;var B9c=function(){return _.P.apply(this,arguments)||this};
_.z(B9c,_.P);B9c.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
var F7=B9c;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],F7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],F7.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],F7.prototype,"data",void 0);F7=_.U([_.Q({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],F7);
_.S(F7,"ytd-settings-sidebar-renderer",function(){if(A9c!==void 0)return A9c;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return A9c=a},{mode:1});var C9c;var G7=function(){return _.P.apply(this,arguments)||this};
_.z(G7,_.P);G7.prototype.shouldHideHashtagInfo_=function(a){return!(a==null?0:a.hashtagInfoText)};
G7.prototype.onFocusedChanged=function(a){(a=_.Qq(a))&&a.is==="tp-yt-paper-tab"&&a.hasRipple()&&(a.getRipple().holdDown=!a.pointerDown&&a.focused)};
G7.prototype.updateSelectedFromBinding=function(a){this.selected=a.detail.value};
_.Vm.Object.defineProperties(G7.prototype,{tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
var H7=G7;_.U([_.H(E7c),_.W("design:type",Object)],H7.prototype,"ytdTabbedHeaderBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],H7.prototype,"rendererBehaviors",void 0);_.U([_.O(),_.W("design:type",Object)],H7.prototype,"data",void 0);_.U([_.gr("#tabs"),_.W("design:type",Object)],H7.prototype,"tabsElement",void 0);_.U([_.O(),_.W("design:type",Array)],H7.prototype,"tabs",void 0);_.U([_.O(),_.W("design:type",Object)],H7.prototype,"selected",void 0);
_.U([_.K("tabs"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],H7.prototype,"tabsEnabled",null);H7=_.U([_.Q({disableElementRegistration:!0,is:"ytd-hashtag-header-renderer"})],H7);
_.S(H7,"ytd-hashtag-header-renderer",function(){if(C9c!==void 0)return C9c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hashtag-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-app-header-layout class="style-scope ytd-hashtag-header-renderer">\n  <tp-yt-app-header id="header" slot="header" condenses="" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-hashtag-header-renderer">\n    <div id="hashtag-info-container" class="style-scope ytd-hashtag-header-renderer">\n      <yt-formatted-string id="hashtag" dir="auto" text="[[data.hashtag]]" class="style-scope ytd-hashtag-header-renderer">\n      </yt-formatted-string>\n      <div id="hashtag-info" hidden="[[shouldHideHashtagInfo_(data)]]" class="style-scope ytd-hashtag-header-renderer">\n        <yt-formatted-string id="hashtag-info-text" hidden="[[!data.hashtagInfoText]]" text="[[data.hashtagInfoText]]" class="style-scope ytd-hashtag-header-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <tp-yt-app-toolbar hidden="[[!tabsEnabled]]" sticky="" class="style-scope ytd-hashtag-header-renderer">\n      <div id="tabs-container" class="style-scope ytd-hashtag-header-renderer">\n        \n        <div id="tabs-inner-container" class="style-scope ytd-hashtag-header-renderer">\n          <tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-hashtag-header-renderer">\n            <template is="dom-repeat" items="[[tabs]]" class="style-scope ytd-hashtag-header-renderer">\n              <tp-yt-paper-tab disable-upgrade$="[[!item.tabRenderer]]" hidden="[[!item.tabRenderer]]" on-focused-changed="onFocusedChanged" class="style-scope ytd-hashtag-header-renderer">\n                [[item.tabRenderer.title]]\n              </tp-yt-paper-tab>\n            </template>\n          </tp-yt-paper-tabs>\n        </div>\n        <div id="tabs-divider" class="style-scope ytd-hashtag-header-renderer"></div>\n      </div>\n    </tp-yt-app-toolbar>\n  </tp-yt-app-header>\n</tp-yt-app-header-layout>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return C9c=a},{mode:_.as("kevlar_poly_si_batch_j078")?1:2});var D9c;var I7=function(){var a=_.P.apply(this,arguments)||this;a.expandableCustomTabRenderable=function(b){return $6c(b,function(){return void a.onSearchNavigate()})};
return a};
_.z(I7,_.P);I7.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
I7.prototype.onSearchNavigate=function(){this.selected=void 0};
I7.prototype.onTabsChange=function(){var a,b=(a=this.tabs)==null?void 0:a.findIndex(function(c){var d;return c==null?void 0:(d=c.tabRenderer)==null?void 0:d.selected});
b!==void 0&&(this.selected=b)};
I7.prototype.onTabsActive=function(a){if(this.tabs!==void 0){var b,c;(a=(b=this.tabs[a.detail.selected])==null?void 0:(c=b.tabRenderer)==null?void 0:c.endpoint)&&_.go(this.hostElement,"yt-navigate",{endpoint:a})}};
_.Vm.Object.defineProperties(I7.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:b7c(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
var J7=I7;J7.prototype.onTabsChange=J7.prototype.onTabsChange;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],J7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.QI),_.W("design:type",Object)],J7.prototype,"ytdGridStateAwareBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],J7.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.SI.YtdGuideStateAwareBehavior),_.W("design:type",Object)],J7.prototype,"ytdGuideStateAwareBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],J7.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Array)],J7.prototype,"tabs",void 0);_.U([_.O(),_.W("design:type",Number)],J7.prototype,"selected",void 0);_.U([_.K("tabs.*"),_.W("design:type",Object),_.W("design:paramtypes",[])],J7.prototype,"tabGroupShape",null);_.U([_.O(),_.W("design:type",Object)],J7.prototype,"expandableCustomTabRenderable",void 0);
_.U([_.K("tabs"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],J7.prototype,"tabsEnabled",null);_.U([_.kr("tabs"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],J7.prototype,"onTabsChange",null);J7=_.U([_.Q({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],J7);
_.S(J7,"ytd-topic-channel-details-renderer",function(){if(D9c!==void 0)return D9c;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-channel-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-topic-channel-details-renderer">\n  <div id="channel-header-container" class="style-scope ytd-topic-channel-details-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-topic-channel-details-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-img-shadow id="avatar" thumbnail="[[data.avatar]]" width="80" class="style-scope ytd-topic-channel-details-renderer"> </yt-img-shadow>\n      <div id="inner-header-container" class="style-scope ytd-topic-channel-details-renderer">\n        <h1 class="style-scope ytd-topic-channel-details-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n        </h1>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n      </div>\n    </a>\n    <div id="subscribe-button" class="style-scope ytd-topic-channel-details-renderer"></div>\n  </div>\n  <div id="tabs-container" hidden="[[!tabsEnabled]]" class="style-scope ytd-topic-channel-details-renderer">\n    <div id="tabs-inner-container" class="style-scope ytd-topic-channel-details-renderer">\n      <tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="true" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActive" class="style-scope ytd-topic-channel-details-renderer">\n        <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-tab-group-shape>\n      </tp-yt-paper-tabs>\n    </div>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return D9c=a},{mode:1});var E9c;var F9c=function(){var a=_.P.apply(this,arguments)||this;a.disableGridStateAware=!1;return a};
_.z(F9c,_.P);F9c.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]]"}}}}}};
F9c.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
F9c.prototype.updateCssVars=function(){_.dr(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.$i("rich_grid_max_item_width",500))+16)-16+"px"})};
var K7=F9c;K7.prototype.updateCssVars=K7.prototype.updateCssVars;K7.prototype.activeChanged=K7.prototype.activeChanged;_.U([_.H(_.SI.YtdGuideStateAwareBehavior),_.W("design:type",Object)],K7.prototype,"ytdGuideStateAwareBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],K7.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],K7.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],K7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],K7.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Array)],K7.prototype,"tabs",void 0);_.U([_.O(),_.W("design:type",Boolean)],K7.prototype,"active",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],K7.prototype,"disableGridStateAware",void 0);
_.U([_.O({selector:_.Fp}),_.W("design:type",Number)],K7.prototype,"richGridItemsPerRow",void 0);_.U([_.O({selector:_.Ep}),_.W("design:type",Boolean)],K7.prototype,"richGridMiniMode",void 0);_.U([_.gr("ytd-carousel-item-renderer"),_.W("design:type",Object)],K7.prototype,"carousel",void 0);_.U([_.N("active"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],K7.prototype,"activeChanged",null);
_.U([_.N("richGridItemsPerRow","richGridMiniMode"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],K7.prototype,"updateCssVars",null);K7=_.U([_.Q({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],K7);
_.S(K7,"ytd-carousel-header-renderer",function(){if(E9c!==void 0)return E9c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return E9c=a},{mode:1});var G9c;var H9c=_.cx(["https://www.google-analytics.com/analytics.js"]),I9c=function(){var a=_.P.apply(this,arguments)||this;a.scriptAnalyticsAdded=!1;return a};
_.z(I9c,_.P);I9c.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var a,b=(a=this.data)==null?void 0:a.tagManagerId;b&&(_.yG(b,_.Ei("GL")),d7c(b))};
I9c.prototype.sendGoogleAnalyticsPageview=function(a){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var c=_.Id.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(c)};
var b=window.ga;b("set","page",window.location.pathname);b.l=+new Date;b("set","forceSSL",!0);b("create",a,"'auto'");b("send","pageview")};
I9c.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var a=_.lg("SCRIPT");a.name="ga-analytics";var b=_.ef(H9c);_.Xd(a,b);a.async=!0;_.E(this.hostElement).appendChild(a)};
var L7=I9c;L7.prototype.dataChanged=L7.prototype.dataChanged;_.U([_.O(),_.W("design:type",Object)],L7.prototype,"data",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],L7.prototype,"dataChanged",null);L7=_.U([_.Q({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],L7);
_.S(L7,"ytd-channel-metadata-renderer",function(){if(G9c!==void 0)return G9c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return G9c=a},{mode:1});var J9c;var K9c;var L9c=function(){return _.P.apply(this,arguments)||this};
_.z(L9c,_.P);var M9c=L9c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],M9c.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],M9c.prototype,"data",void 0);M9c=_.U([_.Q({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],M9c);
_.S(M9c,"ytd-sub-feed-option-renderer",function(){if(K9c!==void 0)return K9c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return K9c=a},{mode:1});var N9c;var O9c=function(){return _.P.apply(this,arguments)||this};
_.z(O9c,_.P);O9c.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
var M7=O9c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],M7.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],M7.prototype,"ytRendererStamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],M7.prototype,"data",void 0);M7=_.U([_.Q({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],M7);
_.S(M7,"ytd-sub-feed-selector-renderer",function(){if(N9c!==void 0)return N9c;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return N9c=a},{mode:1});var P9c=function(){return _.P.apply(this,arguments)||this};
_.z(P9c,_.P);
P9c.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{buttonRenderer:{component:"ytd-button-renderer",noInjection:!0},searchBoxRenderer:{component:"ytd-search-box-renderer",noInjection:!0},subFeedSelectorRenderer:{component:"ytd-sub-feed-selector-renderer",noInjection:!0},toggleButtonRenderer:{component:"ytd-toggle-button-renderer",noInjection:!0},compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0},eomSettingsDisclaimerRenderer:{component:"ytd-eom-settings-disclaimer-renderer",noInjection:!0}}}}};
var N7=P9c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],N7.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],N7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],N7.prototype,"data",void 0);N7=_.U([_.Q({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],N7);
_.S(N7,"ytd-browse-feed-actions-renderer",function(){if(J9c!==void 0)return J9c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return J9c=a},{mode:1});var Q9c;var R9c;var S9c=function(){return _.P.apply(this,arguments)||this};
_.z(S9c,_.P);S9c.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
var O7=S9c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],O7.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],O7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],O7.prototype,"data",void 0);O7=_.U([_.Q({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],O7);
_.S(O7,"ytd-mini-channel-renderer",function(){if(R9c!==void 0)return R9c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return R9c=a},{mode:1});var T9c;var U9c=function(){return _.P.apply(this,arguments)||this};
_.z(U9c,_.P);U9c.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
var P7=U9c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],P7.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],P7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],P7.prototype,"data",void 0);P7=_.U([_.Q({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],P7);
_.S(P7,"ytd-vertical-channel-section-renderer",function(){if(T9c!==void 0)return T9c;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return T9c=a},{mode:1});var V9c=function(){return _.P.apply(this,arguments)||this};
_.z(V9c,_.P);V9c.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
var Q7=V9c;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],Q7.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],Q7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],Q7.prototype,"data",void 0);Q7=_.U([_.Q({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],Q7);
_.S(Q7,"ytd-browse-secondary-contents-renderer",function(){if(Q9c!==void 0)return Q9c;var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);
return Q9c=a},{mode:1});var W9c;var X9c=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};a.notActive=!1;a.isConstrainedList=!1;return a};
_.z(X9c,_.P);_.f=X9c.prototype;
_.f.configureRendererStamper=function(){return{content:{id:"primary",mapping:{richGridRenderer:{component:"ytd-rich-grid-renderer"},sectionListRenderer:{component:"ytd-section-list-renderer",properties:{initialCount:"[[initialCount]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]"}}}},"data.secondaryContents":{id:"secondary",mapping:{browseFeedActionsRenderer:{component:"ytd-browse-feed-actions-renderer",noInjection:!0},browseSecondaryContentsRenderer:{component:"ytd-browse-secondary-contents-renderer",
noInjection:!0},profileColumnRenderer:{component:"ytd-profile-column-renderer",noInjection:!0}}}}};
_.f.getPath=function(a,b){var c="data.tabs.#"+b+".";a.tabs[b].tabRenderer?c+="tabRenderer.":a.tabs[b].expandableTabRenderer&&(c+="expandableTabRenderer.");return c+"content.sectionListRenderer"};
_.f.computeDisplayedContent=function(a){this.unlinkPaths("content");if(a&&a.tabs)for(var b=a.tabs.length,c=0;c<b;c++){var d=a.tabs[c].tabRenderer||a.tabs[c].expandableTabRenderer;if(d.selected&&d.content)return this.linkPaths("content",this.getPath(a,c)),d.content}return null};
_.f.computeHasSecondaryColumnData=function(a){return!!a&&!!a.secondaryContents};
_.f.onRetrieveLocation=function(a,b){b.locationRetrieved(b.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);a.stopPropagation()};
_.f.onYtServiceRequestSent=function(a,b){_.x("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(b)};
_.f.onYtServiceRequestCompleted=function(a,b){_.x("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(b)};
_.f.onReplaceFeedContentAction=function(a){if(!_.x("replace_feed_content_action_killswitch")&&!this.notActive){var b;(a=(b=_.y(a,p7c))==null?void 0:b.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(a)}};
_.f.handleServiceRequestActions=function(a){if(a=a.actions){a=_.h(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=void 0;((c=_.y(b,p7c))==null?0:c.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.y(b,p7c).items)}}};
var R7=X9c;R7.prototype.onYtServiceRequestCompleted=R7.prototype.onYtServiceRequestCompleted;R7.prototype.onYtServiceRequestSent=R7.prototype.onYtServiceRequestSent;R7.prototype.onRetrieveLocation=R7.prototype.onRetrieveLocation;_.U([_.H(_.QI),_.W("design:type",Object)],R7.prototype,"ytdGridStateAwareBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],R7.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],R7.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],R7.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],R7.prototype,"data",void 0);_.U([_.O({computed:"computeDisplayedContent(data)"}),_.W("design:type",Object)],R7.prototype,"content",void 0);
_.U([_.O({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],R7.prototype,"hasSecondaryColumnData",void 0);_.U([_.O({value:function(){return window.outerHeight>1024?3:2}}),
_.W("design:type",Number)],R7.prototype,"initialCount",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],R7.prototype,"pageSubtype",void 0);_.U([_.gr("ytd-section-list-renderer"),_.W("design:type",Object)],R7.prototype,"listRenderer",void 0);_.U([_.O(),_.W("design:type",Object)],R7.prototype,"notActive",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],R7.prototype,"isConstrainedList",void 0);
_.U([_.O(),_.W("design:type",String)],R7.prototype,"responsiveSizing",void 0);_.U([_.M("yt-retrieve-location"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],R7.prototype,"onRetrieveLocation",null);_.U([_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Ot]),_.W("design:returntype")],R7.prototype,"onYtServiceRequestSent",null);
_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Wt]),_.W("design:returntype")],R7.prototype,"onYtServiceRequestCompleted",null);R7=_.U([_.Q({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],R7);
_.S(R7,"ytd-two-column-browse-results-renderer",function(){if(W9c!==void 0)return W9c;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return W9c=a},{mode:2});var Y9c;var Z9c;var $9c=function(){var a=_.P.apply(this,arguments)||this;a.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"]);a.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"]);a.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return a};
_.z($9c,_.P);_.f=$9c.prototype;_.f.attached=function(){this.requestElementsPerRow()};
_.f.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_]]"}}}}}};
_.f.onUpdateElementsPerRowAction=function(a){a&&this.elementsPerRow!==a&&(this.elementsPerRow=a)};
_.f.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.f.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.f.computeAlertStyle_=function(a){return a};
_.f.observerElementsPerRow=function(){this.elementsPerRow&&_.dr(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.f.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.f.requestElementsPerRow=function(){_.go(this.hostElement,"yt-request-elements-per-row")};
var S7=$9c;S7.prototype.onIsVisibleChanged_=S7.prototype.onIsVisibleChanged_;S7.prototype.observerElementsPerRow=S7.prototype.observerElementsPerRow;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],S7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],S7.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],S7.prototype,"actionHandlerBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],S7.prototype,"data",void 0);_.U([_.O({value:6,reflectToAttribute:!0}),_.W("design:type",Number)],S7.prototype,"elementsPerRow",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],S7.prototype,"wrapButtons",void 0);_.U([_.O({value:_.Ei("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.W("design:type",Boolean)],S7.prototype,"isMusic",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.W("design:type",String)],S7.prototype,"alertStyle",void 0);_.U([_.O({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.W("design:type",Function)],S7.prototype,"dismissBoundButtonTap_",void 0);_.U([_.O({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.W("design:type",Function)],S7.prototype,"acceptBoundButtonTap_",void 0);_.U([_.N("elementsPerRow"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],S7.prototype,"observerElementsPerRow",null);_.U([_.N("data.isVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],S7.prototype,"onIsVisibleChanged_",null);S7=_.U([_.ur({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],S7);
_.S(S7,"yt-alert-with-actions-renderer",function(){if(Z9c===void 0){var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;Y9c===void 0&&(Y9c=document.createElement("template"));var d=Y9c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);Z9c=a}a=Z9c;return a},{mode:2});_.Ws(_.Rr(function(a){var b=_.Rl(),c=function(){return a.data().canvasPromoData},d=function(){var g;
return(g=a.data().bannerHeight)!=null?g:48};
_.Vu(b,function(){var g;return(g=a.data())==null?void 0:g.rendererContext},void 0,void 0,void 0,!0);
var e={};return _.q("yt-personal-greeting-view-model",{el:b,class:_.jt("ytPersonalGreetingViewModelHost",a.className),style:_.rt({height:(0,_.xQ)(function(){return d()})})},_.q(_.Eu,{data:function(){return a.data().avatar}},{decoratedAvatarViewModel:function(g){return _.q(_.MK,{data:g.data,
className:_.jt("ytPersonalGreetingViewModelAvatar")})}}),_.q(_.wt,{text:function(){var g;
return(c==null?void 0:(g=c())==null?void 0:g.headline)||a.data().greeting},
className:_.jt("ytPersonalGreetingViewModelHeadline",(e.ytPersonalGreetingViewModelHeadlineSmall=function(){return d()===48},e))}))}),"yt-personal-greeting-view-model",{props:{data:_.SG,
className:_.SG}});var a$c=function(){var a=_.P.apply(this,arguments)||this;a.hidden=!1;a.isConstrainedList=!1;a.darkerDarkTheme=_.x("web_darker_dark_theme");a.responsiveSizing="COMPACT";a.attachedPlayers=_.x("kevlar_channel_trailer_multi_attach")?[]:void 0;a.player=null;a.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return a};
_.z(a$c,_.P);_.f=a$c.prototype;
_.f.configureRendererStamper=function(){return{mastheadAdData:{id:"masthead-ad",mapping:{bannerPromoRenderer:{component:"ytd-banner-promo-renderer",noInjection:!0},videoMastheadAdV3Renderer:{component:"ytd-video-masthead-ad-v3-renderer",noInjection:!0}},reuseComponents:!1},alertBannerData:{id:"alert-banner",mapping:{alertWithActionsRenderer:{component:"yt-alert-with-actions-renderer",noInjection:!0}}},greetingData:{id:"personal-greeting",mapping:{personalGreetingViewModel:{component:"yt-personal-greeting-view-model",properties:{className:"[[is]]"},
noInjection:!0}}},"data.alerts":{id:"alerts",mapping:{alertRenderer:{component:"yt-alert-renderer",noInjection:!0},unlimitedUserNotificationRenderer:{component:"yt-unlimited-user-notification-renderer",noInjection:!0},alertWithButtonRenderer:{component:"ytd-alert-with-button-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:{component:"ytd-survey-trigger-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},
"data.metadata":{id:"metadata",mapping:{channelMetadataRenderer:{component:"ytd-channel-metadata-renderer",noInjection:!0}}},"data.header":{id:"header",mapping:{c4TabbedHeaderRenderer:{component:"ytd-c4-tabbed-header-renderer",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]",isRichGrid:"[[fluidWidth]]"},noInjection:!0},pageHeaderRenderer:{component:"ytd-tabbed-page-header",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]",
isRichGrid:"[[richGrid]]",disableGridStateAware:"[[fluidWidth]]",disableHeaderFluidWidth:"[[disableHeaderFluidWidth]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]"}},interactiveTabbedHeaderRenderer:{component:"ytd-interactive-tabbed-header-renderer",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},carouselHeaderRenderer:{component:"ytd-carousel-header-renderer",properties:{active:"[[active]]",disableGridStateAware:"[[fluidWidth]]",
tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},hashtagHeaderRenderer:{component:"ytd-hashtag-header-renderer",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},memberHubProfileRenderer:{component:"ytd-member-hub-profile-renderer",noInjection:!0}},events:!0},"data.footer":{id:"footer",mapping:{pageFooterRenderer:{component:"ytd-page-footer-renderer",noInjection:!0}}}}};
_.f.created=function(){var a=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){a.disposeMastheadAd()}]};
_.f.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new H7c(this.refresh,this.contents))};
_.f.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.f.activeChanged=function(){var a=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=a)};
_.f.tabsChanged=function(){var a=this,b,c,d,e;if(this.pageSubtype==="channels"||_.x("kevlar_tab_gestures_for_tabbed_header_data")&&(((b=this.data)==null?0:(c=b.header)==null?0:c.c4TabbedHeaderRenderer)||((d=this.data)==null?0:(e=d.header)==null?0:e.carouselHeaderRenderer)))this.tabGestures=new L6(this.contents,this.contents,this.hostElement,this.header,function(n){a.ytdReduxBehavior.dispatch(n)});
var g,k,m;b=(g=this.data)==null?void 0:(k=g.contents)==null?void 0:(m=k.twoColumnBrowseResultsRenderer)==null?void 0:m.tabs;this.header&&this.header.firstChild&&(this.header.firstChild.tabs=b);this.tabGestures&&this.tabGestures.tabsChanged(b)};
_.f.channelIdChanged=function(){if(this.tabGestures){var a,b,c,d=this.tabGestures,e=(a=this.data)==null?void 0:(b=a.header)==null?void 0:(c=b.c4TabbedHeaderRenderer)==null?void 0:c.channelId;e&&e!==d.currentChannelId&&(d.scrollPositionForTabs.clear(),d.currentChannelId=e,d.lastVisitedTabScrollPosition=void 0,d.tabsStartAtInPx=0)}};
_.f.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.f.engagementPanelsChanged=function(){var a=_.v().resolve(_.FJ);if(a){if(this.engagementPanels)for(var b=_.h(this.engagementPanels),c=b.next();!c.done;c=b.next()){var d=void 0;(c=(d=c.value.identifier)==null?void 0:d.tag)&&a.panelMap.delete(c)}this.engagementPanels=[];var e;b=_.h(((e=this.data)==null?void 0:e.panels)||[]);for(e=b.next();!e.done;e=b.next()){e=_.y(e.value,_.Y5c);var g=c=void 0,k=void 0,m=void 0;if(d=((c=e)==null?void 0:c.targetId)||((g=e)==null?void 0:g.panelIdentifier)||((k=e)==null?
void 0:(m=k.identifier)==null?void 0:m.tag))g=c=void 0,(g=(c=a).registerPanelContent)==null||g.call(c,d,{engagementPanelSectionListRenderer:e}),this.engagementPanels.push(e)}}};
_.f.onStampFinished=function(){var a=this;_.Tm(this,function(){if(a.tabGestures){var b=a.tabGestures;if(b.scrollPositionNeedsUpdate){var c=_.v().resolve(_.Wi(_.$t)),d;if((d=b.selectedTab)!=null&&d.title&&c&&(d=c.getCurrentPage())){if(b.scrollPositionForTabs.has(b.selectedTab.title)){var e,g;c=(g=(e=c.getCurrentPage())==null?void 0:e.clientHeight)!=null?g:0;e=b.scrollPositionForTabs.get(b.selectedTab.title);d.setScrollTop(e);c>e+100&&(b.scrollPositionNeedsUpdate=!1)}else d.setScrollTop(Math.min(b.lastVisitedTabScrollPosition!==
void 0?b.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,b.tabsStartAtInPx)),b.scrollPositionNeedsUpdate=!1;b.ytdReduxDispatch(g7c(!1))}}}})};
_.f.loadPage_=function(a){this.initCsi();a&&(this.data=a);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.f.getTitle=function(a){return this.pageSubtype=="home"?"":this.get("microformat.microformatDataRenderer.title",a)?this.get("microformat.microformatDataRenderer.title",a):this.get("header.c4TabbedHeaderRenderer.title",a)?this.get("header.c4TabbedHeaderRenderer.title",a):this.get("header.feedTabbedHeaderRenderer.title",a)?_.Vp(this.get("header.feedTabbedHeaderRenderer.title",a)):this.get("header.interactiveTabbedHeaderRenderer.title",a)?this.get("header.interactiveTabbedHeaderRenderer.title",a):this.get("header.hashtagHeaderRenderer.hashtag",
a)?_.Vp(this.get("header.hashtagHeaderRenderer.hashtag",a)):this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",a)?_.Vp(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
a)):""};
_.f.updateTitle=function(a){_.go(this.hostElement,"yt-update-title",this.getTitle(a))};
_.f.initCsi=function(){_.W6c(this.pageSubtype||"browse",["ol","cpt"])};
_.f.getPlayer=function(){if(_.x("kevlar_channel_trailer_multi_attach")){for(var a=_.h(this.attachedPlayers),b=a.next();!b.done;b=a.next())if(b=b.value,b.isConnected||_.Gg(this.hostElement,b))return b;return null}return this.player};
_.f.getPlayerContainer=function(){return null};
_.f.onPlayerAttached=function(a,b){_.x("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(b):this.player=b};
_.f.onPlayerDetached=function(a,b){_.x("kevlar_channel_trailer_multi_attach")?(a=this.attachedPlayers.indexOf(b),a<0||this.attachedPlayers.splice(a,1)):this.player=null};
_.f.getServiceTrackingParams=function(){var a,b;return((a=this.data)==null?void 0:(b=a.responseContext)==null?void 0:b.serviceTrackingParams)||[]};
_.f.setMastheadAd=function(a){a&&a.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=a&&a.mastheadAd};
_.f.dataChanged=function(){var a=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.M6c();_.Tm(this,function(){_.ko(a.hostElement,"ytd-update-grid-state-action")})};
_.f.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.f.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var a=this.data.alerts;return a&&a.find(function(b){return!!b.alertWithActionsRenderer})}};
_.f.computeGreetingData=function(){if(this.data&&this.data.alerts){var a=this.data.alerts;return a&&a.find(function(b){return!!b.personalGreetingViewModel})}};
_.f.computeHasC4TabbedHeaderRenderer=function(a){var b;return!!(a==null?0:(b=a.header)==null?0:b.c4TabbedHeaderRenderer)};
_.f.computeHasMemberHubProfileRenderer=function(a){var b;return!!(a==null?0:(b=a.header)==null?0:b.memberHubProfileRenderer)};
_.f.handleAlertCommand=function(a){this.get("alertCommand.alert.alertWithActionsRenderer",a)&&(a=_.y(a,q7c),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",a.alert))};
_.f.handleYtPlaylistDeletionRedirect=function(a){a=this.get("playlistDeletionRedirectCommand.redirectEndpoint",a);_.go(this.hostElement,"yt-navigate",{endpoint:a})};
_.f.computeFluidWidth=function(a,b,c){if(b==="mini_app"||c)return!0;var d,e,g;a=a==null?void 0:(d=a.contents)==null?void 0:(e=d.twoColumnBrowseResultsRenderer)==null?void 0:(g=e.tabs)==null?void 0:g.find(function(n){var r;return n==null?void 0:(r=n.tabRenderer)==null?void 0:r.selected});
if(!a)return!1;var k,m;return!!((k=a.tabRenderer)==null?0:(m=k.content)==null?0:m.richGridRenderer)&&!["channel","channels","playables"].includes(b)};
_.f.computeHeaderFluidWidth=function(a){return a==="hashtag-landing-page"};
_.f.computeHasSidebar=function(a){var b;return!!(a.sidebar||((b=a.header)==null?0:b.playlistHeaderRenderer))};
_.f.computeHasPageHeaderSidebar=function(a){var b,c;return!!((b=a.header)==null?0:(c=b.pageHeaderRenderer)==null?0:c.enableSidebarView)};
_.f.computeUseUnifiedShowPageLayout=function(a){if(!a||this.pageSubtype!=="show"||!a.sidebar||!a.sidebar.playlistSidebarRenderer)return!1;a=a.sidebar.playlistSidebarRenderer;if(!a.items)return!1;for(var b=0;b<a.items.length;b++)if(_.y(a.items[b],u7c)){var c=void 0;return((c=_.y(a.items[b],u7c))==null?void 0:c.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.f.computeIsConstrainedList=function(a){return _.x("web_enable_constrained_list_subscriptions_channels")&&a==="subscriptions-channels"};
_.f.computeResponsiveSizing=function(a){return a==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.Vm.Object.defineProperties(a$c.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var a,b;return((a=this.data)==null?0:(b=a.header)==null?0:b.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var a,b;if(!((a=this.data)==null?0:(b=a.sidebar)==null?0:b.playlistSidebarRenderer))return!1;var c;return(c=this.data)!=null&&c.header?!1:!0}}});
_.Vm.Object.defineProperties(a$c,{template:{configurable:!0,enumerable:!0,get:function(){if(K7c===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-browse--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="alert-banner" class="style-scope ytd-browse"></div>\n<div id="personal-greeting" class="style-scope ytd-browse"></div>\n<div id="masthead-ad" class="style-scope ytd-browse"></div>\n<div id="header" class="style-scope ytd-browse"></div>\n<div id="alerts" class="style-scope ytd-browse"></div>\n\n<ytd-channel-legal-info-renderer data="[[data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" disable-upgrade$="[[!data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" hidden="[[!data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" class="style-scope ytd-browse">\n</ytd-channel-legal-info-renderer>\n<ytd-playlist-sidebar-renderer data="[[data.sidebar.playlistSidebarRenderer]]" disable-upgrade$="[[!useOldPlaylistSidebarRenderer]]" hidden="[[!useOldPlaylistSidebarRenderer]]" class="style-scope ytd-browse">\n</ytd-playlist-sidebar-renderer>\n<ytd-playlist-header-renderer data="[[data.header.playlistHeaderRenderer]]" disable-upgrade$="[[!usePlaylistHeaderRenderer]]" hidden="[[!usePlaylistHeaderRenderer]]" class="style-scope ytd-browse">\n</ytd-playlist-header-renderer>\n<ytd-settings-sidebar-renderer data="[[data.sidebar.settingsSidebarRenderer]]" disable-upgrade$="[[!data.sidebar.settingsSidebarRenderer]]" hidden="[[!data.sidebar.settingsSidebarRenderer]]" class="style-scope ytd-browse">\n</ytd-settings-sidebar-renderer>\n<template is="dom-if" if="[[hasPageHeaderSidebar]]" class="style-scope ytd-browse">\n    <yt-page-header-renderer class="page-header-sidebar style-scope ytd-browse" data="[[data.header.pageHeaderRenderer]]" disable-upgrade$="[[!hasPageHeaderSidebar]]" display-as-sidebar="" hidden="[[!hasPageHeaderSidebar]]">\n    </yt-page-header-renderer>\n</template>\n<ytd-two-column-browse-results-renderer data="[[data.contents.twoColumnBrowseResultsRenderer]]" disable-grid-state-aware="[[fluidWidth]]" is-constrained-list="[[isConstrainedList]]" not-active="[[hidden]]" page-subtype="[[pageSubtype]]" responsive-sizing="[[responsiveSizing]]" class="style-scope ytd-browse">\n</ytd-two-column-browse-results-renderer>\n<div id="survey" class="style-scope ytd-browse"></div>\n<div id="metadata" class="style-scope ytd-browse"></div>\n<div id="footer" class="style-scope ytd-browse"></div>\n<ytd-refresh id="refresh" class="style-scope ytd-browse"></ytd-refresh>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);K7c=a}a=K7c;return a}}});
var T7=a$c;T7.prototype.dataChanged=T7.prototype.dataChanged;T7.prototype.onPlayerDetached=T7.prototype.onPlayerDetached;T7.prototype.onPlayerAttached=T7.prototype.onPlayerAttached;T7.prototype.onStampFinished=T7.prototype.onStampFinished;T7.prototype.engagementPanelsChanged=T7.prototype.engagementPanelsChanged;T7.prototype.scrollAtTopChanged=T7.prototype.scrollAtTopChanged;T7.prototype.channelIdChanged=T7.prototype.channelIdChanged;T7.prototype.tabsChanged=T7.prototype.tabsChanged;
T7.prototype.activeChanged=T7.prototype.activeChanged;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],T7.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.YH),_.W("design:type",Object)],T7.prototype,"ytdOpenPopupBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],T7.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],T7.prototype,"ytdReduxBehavior",void 0);
_.U([_.H(_.I6.YtPageBehavior),_.W("design:type",Object)],T7.prototype,"ytPageBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],T7.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.SI.YtdGuideStateAwareBehavior),_.W("design:type",Object)],T7.prototype,"ytdGuideStateAwareBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],T7.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],T7.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],T7.prototype,"hidden",void 0);_.U([_.O(),_.W("design:type",Object)],T7.prototype,"mastheadAdData",void 0);_.U([_.O({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.W("design:type",Object)],T7.prototype,"alertBannerData",void 0);_.U([_.O({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.W("design:type",Object)],T7.prototype,"greetingData",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],T7.prototype,"pageSubtype",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHasC4TabbedHeaderRenderer(data)"}),_.W("design:type",Boolean)],T7.prototype,"hasC4TabbedHeaderRenderer",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.W("design:type",Boolean)],T7.prototype,"hasMemberHubProfileRenderer",void 0);
_.U([_.O({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],T7.prototype,"hasSidebar",void 0);_.U([_.O({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],T7.prototype,"hasPageHeaderSidebar",void 0);_.U([_.O({reflectToAttribute:!0,value:!0}),_.W("design:type",Boolean)],T7.prototype,"roundedContainer",void 0);
_.U([_.O({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],T7.prototype,"useUnifiedShowPageLayout",void 0);_.U([_.O({computed:"computeIsConstrainedList(pageSubtype)"}),_.W("design:type",Object)],T7.prototype,"isConstrainedList",void 0);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],T7.prototype,"usePlaylistHeaderRenderer",null);
_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],T7.prototype,"useOldPlaylistSidebarRenderer",null);_.U([_.O({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.W("design:type",Boolean)],T7.prototype,"fluidWidth",void 0);_.U([_.O({selector:function(a){return a.ui.scrollAtTop}}),
_.W("design:type",Boolean)],T7.prototype,"scrollAtTop",void 0);_.U([_.O({selector:_.$lc}),_.W("design:type",Boolean)],T7.prototype,"tabGesturesIsActive",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],T7.prototype,"darkerDarkTheme",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.W("design:type",Boolean)],T7.prototype,"disableHeaderFluidWidth",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.W("design:type",String)],T7.prototype,"responsiveSizing",void 0);_.U([_.gr("ytd-two-column-browse-results-renderer"),_.W("design:type",HTMLElement)],T7.prototype,"contents",void 0);_.U([_.gr("#header"),_.W("design:type",HTMLElement)],T7.prototype,"header",void 0);_.U([_.gr("ytd-refresh"),_.W("design:type",Object)],T7.prototype,"refresh",void 0);
_.U([_.N("active"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],T7.prototype,"activeChanged",null);_.U([_.N("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],T7.prototype,"tabsChanged",null);_.U([_.N("data.header.c4TabbedHeaderRenderer.channelId"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],T7.prototype,"channelIdChanged",null);
_.U([_.N("scrollAtTop"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],T7.prototype,"scrollAtTopChanged",null);_.U([_.O(),_.W("design:type",Object)],T7.prototype,"engagementPanels",void 0);_.U([_.N("data.panels"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],T7.prototype,"engagementPanelsChanged",null);
_.U([_.M("yt-rendererstamper-finished"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],T7.prototype,"onStampFinished",null);_.U([_.M("yt-player-attached"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Element]),_.W("design:returntype")],T7.prototype,"onPlayerAttached",null);_.U([_.M("yt-player-detached"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Element]),_.W("design:returntype")],T7.prototype,"onPlayerDetached",null);
_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],T7.prototype,"dataChanged",null);T7=_.U([_.Q({is:"ytd-browse"})],T7);_.IH.registerService(_.z7a,T7);
_.Bg();
}catch(e){_._DumpException(e)}
try{
_.Ag("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 bsc=function(a,b){return a<b?-1:a>b?1:0},lY=function(a,b){var c=0;
a=(0,_.ox)(String(a)).split(".");b=(0,_.ox)(String(b)).split(".");for(var d=Math.max(a.length,b.length),e=0;c==0&&e<d;e++){var g=a[e]||"",k=b[e]||"";do{g=/(\d*)(\D*)(.*)/.exec(g)||["","","",""];k=/(\d*)(\D*)(.*)/.exec(k)||["","","",""];if(g[0].length==0&&k[0].length==0)break;c=bsc(g[1].length==0?0:parseInt(g[1],10),k[1].length==0?0:parseInt(k[1],10))||bsc(g[2].length==0,k[2].length==0)||bsc(g[2],k[2]);g=g[3];k=k[3]}while(c==0)}return c},mY=function(a){if(!a)return"browse";
var b=a.page,c=a.url,d,e,g,k=(d=a.response)==null?void 0:(e=d.responseContext)==null?void 0:(g=e.webResponseContextExtensionData)==null?void 0:g.pageTheme;if(k)b=k.toLowerCase().replace(/_/g,"-");else if(b!=="watch"){var m,n;if((b==="browse"||b==="settings")&&((m=a.response)==null?0:(n=m.sidebar)==null?0:n.settingsSidebarRenderer))b="WEB_PAGE_TYPE_SETTINGS";else{var r,t;b==="browse"&&((r=a.response)==null?0:(t=r.metadata)==null?0:t.channelMetadataRenderer)?b="channel":c&&(b=_.WHa(c)||b)}}return b},
csc=function(){var a=_.Ji("yt.aba.att");
return a?a:_.oS.instance!==void 0?_.oS.instance.k1a.bind(_.oS.instance):null},dsc=function(a,b){var c;
return _.l(function(d){return(c=csc())?d.return(c(a,b,6E4)):d.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})},esc=function(a,b,c,d,e){b=b===void 0?[]:b;
e=e?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:e}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.dp(a),dialogMessages:b.map(function(g){return _.dp(g)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.dp(c),serviceEndpoint:e}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.dp(d)}}}}}},fsc=function(a){var b=!!_.VF().queueProxy;
var c,d,e;a=a==null?void 0:(c=a.response)==null?void 0:(d=c.currentVideoEndpoint)==null?void 0:(e=d.watchEndpoint)==null?void 0:e.playlistId;return!(!b&&!a)},gsc=function(a,b){var c=_.uF();
if(fsc(a))return c.playlistWatchPageActivation=!0;switch(mY(b)){case "yts-products":return c.productDetailsPageActivation=!0;case "mini_app":return c.miniAppPageActivation=!0;case "playables":return c.playablesDestPageActivation=!0;default:return!1}},hsc=function(a,b,c){for(var d=typeof a==="string"?a.split(""):a,e=a.length-1;e>=0;--e)e in d&&b.call(c,d[e],e,a)},isc=function(a,b){b=_.taa(a,b);
b>=0&&_.waa(a,b)},jsc=function(a){return Array.prototype.concat.apply([],arguments)},ksc=function(a){a=(0,_.jc)(a);
if(a>=0&&(0,_.ic)(a))a=String(a);else{var b=String(a);_.tba(b)?a=b:(_.Lb(a),a=_.Nb(_.Jb,_.Kb))}return a},lsc=function(a){var b=0;
b=b===void 0?0:b;if(!_.Wb(a))throw _.eb("uint64");var c=typeof a;switch(b){case 2048:switch(c){case "string":return _.zba(a);case "bigint":return String((0,_.kc)(64,a));default:return ksc(a)}case 4096:switch(c){case "string":return b=(0,_.jc)(Number(a)),(0,_.ic)(b)&&b>=0?a=_.Ib(b):(b=a.indexOf("."),b!==-1&&(a=a.substring(0,b)),a=_.Eb()?_.Ib((0,_.kc)(64,BigInt(a))):_.Ib(_.xba(a))),a;case "bigint":return _.Ib((0,_.kc)(64,a));default:return(0,_.ic)(a)?_.Ib(_.yba(a)):_.Ib(ksc(a))}case 0:switch(c){case "string":return _.zba(a);
case "bigint":return _.Ib((0,_.kc)(64,a));default:return _.yba(a)}default:return _.Sb(b,"Unknown format requested type for int64")}},msc=function(a){a!=null&&(a=a.JSC$6663_value_||"",a=typeof a==="string"?a:new Uint8Array(a));
return a},nsc=function(a){for(var b=_.Id.apply(1,arguments),c=a[0],d=0;d<a.length-1;d++)c+=String(b[d]),c+=a[d+1];
b=document.implementation.createHTMLDocument("");d=b.createElement("style");b.head.appendChild(d);b=d.sheet;b.insertRule(c,0);if(b.cssRules.length===1&&(c=b.cssRules[0],c instanceof CSSStyleRule))return new _.ae(c.cssText.replace(/</g,"\\3C "))},osc=function(a,b){if(/-[a-z]/.test(b))return null;
if(_.adb&&a.dataset){if(_.kaa()&&!(b in a.dataset))return null;a=a.dataset[b];return a===void 0?null:a}return a.getAttribute("data-"+_.pn(b))},qsc=function(){var a=psc;
_.Ji("yt.ads.biscotti.getId_")||_.Rj("yt.ads.biscotti.getId_",a)},rsc=function(a){_.Rj("yt.ads.biscotti.lastId_",a)},tsc=function(){var a={};
for(_.vj=new ssc(a.handleError===void 0?_.Cl:a.handleError,a.logEvent===void 0?_.zl:a.logEvent);_.wj.length>0;)switch(a=_.wj.shift(),a.type){case "ERROR":_.vj.logError(a.payload);break;case "EVENT":_.vj.logEvent(a.eventType,a.payload)}},usc=function(a,b,c){return _.mpa(function(d){return c?d.userIdentifier!==void 0&&!a.includes(d.userIdentifier)&&c.includes(d.publicName):d.userIdentifier!==void 0&&!a.includes(d.userIdentifier)},b)},vsc=function(a){var b,c;
return _.l(function(d){if(d.nextAddress==1)return b=_.oj("YtIdbMeta hasAnyMeta other"),_.p(d,_.mpa(function(e){return e.userIdentifier!==void 0&&e.userIdentifier!==b},a),2);
c=d.yieldResult;return d.return(c.length>0)})},xsc=function(a,b){wsc||(wsc=_.zk.addLowPriorityJob(function(){var c,d,e,g,k;
return _.l(function(m){switch(m.nextAddress){case 1:return _.p(m,_.Sj(),2);case 2:c=m.yieldResult;if(!c)return m.return();d=!0;_.me(m,3);return _.p(m,usc(a,c,b),5);case 5:e=m.yieldResult;if(!e.length){d=!1;m.jumpTo(6);break}g=e[0];return _.p(m,_.Kj(g.actualName),7);case 7:return _.p(m,_.Nj(g.actualName,c),6);case 6:_.Jj(m,4);break;case 3:k=_.re(m),_.xj(k),d=!1;case 4:_.zk.cancelJob(wsc),wsc=0,d&&xsc(a,b),_.se(m)}})}))},ysc=function(){var a;
return _.l(function(b){return b.nextAddress==1?_.p(b,_.Sj(),2):(a=b.yieldResult)?b.return(vsc(a)):b.return(!1)})},zsc=function(a){var b=100;
b=b===void 0?500:b;var c,d,e,g,k,m;return _.l(function(n){return n.nextAddress==1?(c=_.Ei("INNERTUBE_CONTEXT_CLIENT_NAME",0),d=[c,(0,_.Uj)()-2592E6],e=[c,(0,_.Uj)()],g=IDBKeyRange.bound(d,e),_.p(n,_.Mra(a),2)):n.nextAddress!=3?(k=n.yieldResult,m=[],_.p(n,_.Mj(k,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(r){m.length=0;return _.Vj(r.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:g,direction:"prev"},function(t){if(t.getValue()&&m.length<b)return m.push(t.getValue()),
t.delete().then(function(){return t.continue()})})}),3)):n.return(m)})},Asc=function(){var a;
return _.l(function(b){if(b.nextAddress==1)return _.p(b,_.Sj(),2);a=b.yieldResult;if(!a||!_.pj()&&!_.x("nwl_init_require_datasync_id_killswitch")||!_.esa())return b.jumpTo(0);_.gsa=!0;_.fsa.isNwlInitialized=_.gsa;return _.p(b,_.mnb().awaitInitialization(),0)})},nY=function(a,b){_.wsa[a]=!0;
var c=_.al();c&&c.publish.apply(c,arguments);_.wsa[a]=!1},Csc=function(){if(_.ara()&&!Bsc){var a=function(c){c=c.data;
if(c.op==="serializedGelBatch"){var d=_.xta.get(c.key);d&&(_.zta(c.serializedBatch,d.client,d.resolve,d.networklessOptions,d.isIsolated,d.useVSSEndpoint,d.dangerousLogToVisitorSession,d.requestsOutstanding),_.xta.delete(c.key))}},b=_.$qa();
b&&(b.addEventListener("message",a),b.onerror=function(){_.xta.clear()});
Bsc=!0}},oY=function(){this.relativeTimeStart_=_.mx()},Dsc=function(a,b){a!=null&&this.append.apply(this,arguments)},Esc=function(){return _.Jn("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")},Fsc=function(a,b,c){c=c===void 0?!1:c;
var d,e,g,k,m;return _.l(function(n){switch(n.nextAddress){case 1:_.mj("SOCS",a,34128E3,"youtube.com",!0);if(_.vx)return e=fetch(b,{method:"POST",mode:_.Sn(b),credentials:_.Rn(b),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),g=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.Sn("/upgrade_visitor_cookie?eom=1"),credentials:_.Rn("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),_.p(n,Promise.all([e,g]).then(function(r){return r[1]}),5);
fetch(b,{method:"POST",mode:_.Sn(b),credentials:_.Rn(b),cache:"no-store",headers:{"Content-Type":"text/plain"}});return _.p(n,fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.Sn("/upgrade_visitor_cookie?eom=1"),credentials:_.Rn("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:d=n.yieldResult;n.jumpTo(3);break;case 5:d=k=n.yieldResult;case 3:if(!d.ok)throw Error("kf");return _.p(n,d.text(),7);case 7:m=n.yieldResult,
!m.includes('"state_switch":true')&&!c||m.includes("skip_reload_for_test")||window.location.reload(),_.se(n)}})},Gsc=function(a){return _.l(function(b){return b.nextAddress==1?_.p(b,Fsc(a.socsCookie,a.savePreferenceUrl,!0),2):b.return()})},Hsc=function(a){return _.l(function(b){return b.nextAddress==1?_.p(b,Fsc(a.socsCookie,a.savePreferenceUrl),2):b.return()})},Jsc=function(a){a=a.xhr.responseText;
if(!_.na(a,")]}'"))throw new pY;a=JSON.parse(a.substr(4));if((a.type||1)>1)throw new pY;a=a.id;rsc(a);qY=_.XE(a);Isc(18E5,2);return a},Lsc=function(a,b){b=new Ksc(b);
rsc("");qY=_.qGb(b);a>0&&Isc(12E4,a-1);throw b;},Isc=function(a,b){_.dj(function(){_.wBa().then(Jsc,function(c){return Lsc(b,c)}).thenCatch(_.By)},a)},psc=function(){var a=_.GBa();
if(a!==void 0)return _.Pn(a);qY||(qY=_.wBa().then(Jsc).thenCatch(function(b){return Lsc(2,b)}));
return qY},Msc=function(){var a=document;
return _.Ka(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in a})},Nsc=function(a){a.addEventListener("click",function(b){var c=b.target;
c&&c.getAttribute("href")&&(c=c.getAttribute("href"),_.Rd(window,c,"_blank"),b.preventDefault(),b.stopImmediatePropagation())})},Osc=function(a){var b,c,d,e=(d=(c=((b=a.mainDownloadsListEntity)!=null?b:{})[_.cFa])==null?void 0:c.refresh)!=null?d:"",g;
a=(g=a.refresh)==null?void 0:g[e];e=a!=null?a:{};return(e==null?0:e.refreshTime)?Number(e==null?void 0:e.refreshTime):0},Psc=function(a,b){var c=_.Bp(a);
return b.every(function(d){var e;d=d==null?void 0:(e=d.playbackDataEntity)==null?void 0:e.key;if(!d)return!1;e=_.lp(_.ip(d).entityId,"mainVideoEntity");return!!c[e]})},Qsc=function(a){a=_.xp(a.entities);
return _.qEa(a).length},Rsc=function(a,b){if(b){var c;
a=(c=_.mp(a.entities,"downloadQualityPickerEntity",b))!=null?c:void 0}else a=void 0;return a},Usc=function(){Ssc||(_.Tp=_.YFa,Ssc=new Tsc);
return Ssc},Vsc=function(a){var b=document.getElementsByTagName("ytd-enforcement-message-view-model");
b.length===0||getComputedStyle(b[0]).display==="none"?a(0,"p.h_"):a(1,"p.h_")},rY=function(a){var b,c;
(a=(c=_.y(a==null?void 0:a.commandMetadata,_.ao))==null?void 0:c.url)&&(b=_.WHa(a));return b},Wsc=function(){sY=0;
var a=[_.sq(!0)];tY&&_.ko(tY,"yt-window-resized",a)},Xsc=function(){sY||(sY=_.zk.addLowPriorityJob(Wsc,200))},Zsc=function(){uY=0;
Ysc=_.Fcb(document);var a=[Ysc];tY&&_.ko(tY,"yt-window-scrolled",a)},$sc=function(){uY||(uY=_.zk.addLowPriorityJob(Zsc,200))},btc=function(a){a=a===void 0?null:a;
atc.push(_.Vk(window,"resize",Xsc));atc.push(_.Vk(window,"scroll",$sc));a&&(tY=a)},ctc=function(a){_.l(function(b){if(b.nextAddress==1)return _.p(b,a.delete("yt-appshell-assets"),2);
_.se(b)})},dtc=function(a){return _.Lj((0,_.JLb)(),a)},ftc=function(){var a;
_.l(function(b){return b.nextAddress==1?_.p(b,vY.getInstance(),2):(a=b.yieldResult)?_.p(b,etc(a),0):b.jumpTo(0)})},htc=function(){var a;
_.l(function(b){return b.nextAddress==1?_.p(b,wY.getInstance(),2):(a=b.yieldResult)?_.p(b,gtc(a),0):b.jumpTo(0)})},itc=function(a){ctc(a);
ftc();htc()},jtc=function(a){var b,c;
return _.l(function(d){if(d.nextAddress==1)return _.p(d,_.xIa(a),2);if(b=d.yieldResult){var e;a:{if(b.headers&&(e=b.headers.get("date"))&&(e=Date.parse(e),!isNaN(e))){e=Math.round((0,_.Uj)()-e);break a}e=-1}c=e;if(c>-1)return d.return(c)}return d.return(-1)})},ktc=function(){var a=_.ja.caches,b=_.Gi("IS_SHELL_LOAD"),c,d;
_.l(function(e){if(e.nextAddress==1)return c=-1,b?_.p(e,jtc(a),3):(d=_.Co(),c=Math.round((0,_.Uj)()-d),e.jumpTo(2));e.nextAddress!=2&&(c=e.yieldResult);c>=0&&c<2147483648&&_.Ho({appInstallDataAgeMs:c});_.se(e)})},ltc=function(a){var b=_.Jg(_.ja.location.href),c={};
"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(d){var e=b.JSC$7879_queryData_.getValues(d);if(e==null?0:e.length)c[d]=e});
return _.ff(a,new Map(Object.entries(c)))},mtc=function(a){a=a.match(/(.*)::.*::.*/);
if(a!==null)return a[1]},ntc=function(a){if(_.PIa()){var b=Object.keys(window.localStorage);
b=_.h(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=mtc(c);d===void 0||a.includes(d)||self.localStorage.removeItem(c)}}},otc=function(){if(!_.PIa())return!1;
var a=_.oj(),b=Object.keys(window.localStorage);b=_.h(b);for(var c=b.next();!c.done;c=b.next())if(c=mtc(c.value),c!==void 0&&c!==a)return!0;return!1},ptc=function(a){return _.cY("NotificationsDisabled",a)},qtc=function(){return Notification.permission!="granted"?Promise.resolve():_.amc().then(function(a){return a?a.pushManager.getSubscription().then(function(b){if(b)return Promise.resolve();
b={userVisibleOnly:!0,applicationServerKey:_.db("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return a.pushManager.subscribe(b).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})},rtc=function(a){return _.amc().then(function(b){if(!b||!b.active)return Promise.reject(new _.qj("serviceworker.postMessage",a,b));
try{return b.active.postMessage(a),Promise.resolve()}catch(c){return Promise.reject(c)}})},stc=function(){rtc({type:"notifications_register",
data:_.Ei("ID_TOKEN")})},utc=function(){var a={isWide:_.lj.get("wide","0")==="1"},b=_.wo();
if(b=b.getFlag(165)||b.getFlag(174))a.theme=_.Hq(!0);if(_.gJa()){var c=_.Gq()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";a.systemTheme=c}!b&&_.x("parent_tools_enable_app_settings")&&_.Oi(window.location.href).theme!==void 0&&(a.theme=_.Hq());if((b=xY)?!_.yf.equals(b,a):a)b={currentValue:a},ttc&&(b.timeSinceLastSnapshotSecs=Math.round(((0,_.Uj)()-ttc)/1E3)),xY&&(b.previousValue=xY),_.zl("appSettingsCaptured",b),xY=a,ttc=(0,_.Uj)()},vtc=function(){if(!_.Gi("LOGGED_IN"))return Promise.resolve(!1);
var a=_.aj("service_worker_push_force_notification_prompt_tag");return a?_.gX("PromptTags").then(function(b){if(!b)return!0;var c=[];try{c=JSON.parse(b)}catch(d){return!1}return c&&c.indexOf(a)==-1}):Promise.resolve(!1)},wtc=function(){var a=_.$i("service_worker_push_prompt_delay_microseconds");
return a?_.gX("PromptTime").then(function(b){return Promise.resolve(Date.now()-a>(b||0))}):Promise.resolve(!0)},xtc=function(){var a=_.$i("service_worker_push_logged_out_prompt_watches");
return a==-1?Promise.resolve(!1):_.gX("WatchCount").then(function(b){return b>=a})},ytc=function(){var a=_.du(document,"yt-push-prompt-modal-bg");
a&&_.mg(a)},ztc=function(){return _.$i("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.gX("PromptCount").then(function(a){a||(a=0);
return Promise.resolve(a<_.$i("service_worker_push_prompt_cap"))})},Atc=function(a){return _.Gi("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.Gi("LOGGED_IN")&&(a===void 0?0:a)?vtc().then(function(b){if(b)return!0;
b=[ztc(),wtc()];_.Gi("LOGGED_IN")||b.push(xtc());return Promise.all(b).then(function(c){return c.every(function(d){return d})})}):Promise.resolve(!1)},Btc=function(){_.gX("PromptCount").then(function(a){return _.cY("PromptCount",a+1)}).then(function(){return _.cY("PromptTime",Date.now())}).then(function(){var a=_.aj("service_worker_push_force_notification_prompt_tag");
if(a)return _.gX("PromptTags").then(function(b){var c=[];if(b)try{c=JSON.parse(b)}catch(d){return!1}c||(c=[]);c.push(a);return _.cY("PromptTags",JSON.stringify(c))})})},Dtc=function(){Ctc||ytc()},Etc=function(a){a.style.zIndex=2147483648;
a.style.pointerEvents="auto";a.style.backgroundColor="rgba(0, 0, 0, 0.6)";a.style.width="100%";a.style.height="100vh";a.style.position="absolute";a.style.top="0";a.style.left="0";a.style.border="none"},Ftc=function(){var a=_.du(document,"yt-push-prompt-modal-bg");
Ctc=_.x("service_worker_push_prompt_modal_ignore_click");a?Etc(a):(a=_.Oy("div",{id:"yt-push-prompt-modal-bg"}),Etc(a),document.body.appendChild(a),_.ssa(document,"click",Dtc))},Gtc=function(){var a=arguments;
_.x("service_worker_push_prompt_modal_enable")&&Ftc();return Notification.requestPermission().then(function(b){ytc();var c=document.getElementById("ticker");c&&(c.className=c.classList.remove("show"));if(b=="granted")return qtc().then(function(){ptc(!1);stc();return Promise.resolve(!0)});
b=="denied"&&stc();return Promise.resolve(!1)}).catch(function(){ytc();
return Promise.reject.apply(Promise,_.Be(a))})},Htc=function(a){a=a===void 0?!1:a;
var b=_.lJa().client;if(b&&b.browserVersion){var c=b.browserVersion,d=b.browserName=="CHROME"&&lY(c,"50.0.0")<0;b=b.browserName=="OPERA"&&lY(c,"42.0.0")<0;if(d||b)return Promise.resolve()}return _.dmc().then(function(e){if(!e)return Promise.resolve();e=qtc().then(function(){return rtc({type:"notifications_check_registration",data:_.Ei("ID_TOKEN")})});
return Notification.permission!="default"?e.catch(function(){}):e.then(function(){return Atc(a)}).then(function(g){if(g)return Btc(),Gtc().then(function(){})}).catch(function(){})})},Itc=function(a){return _.bmc(a)?Htc():Promise.resolve()},Jtc=function(a){var b=a.installing||a.waiting;
return a.active||!b?Promise.resolve(a):new Promise(function(c){var d=function(e){e=e.target;if(e.state==="activated"||e.state==="redundant")b.removeEventListener("statechange",d),c(a)};
b.addEventListener("statechange",d)})},Ktc=function(){var a=new _.eBa("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");
_.vw(a,{mainAppWeb:_.Lq()});var b=_.dMb;_.x("service_worker_forward_exp_params")&&(b=ltc(b));try{var c=_.oJa(b).catch(function(){_.ww(a,"FAILURE");return new Promise(function(){})});
_.x("service_worker_push_enabled")&&c.then(function(d){_.ww(a,"SUCCESS");return d}).then(Jtc).then(Itc)}catch(d){if(_.ww(a,"FAILURE"),d.name!=="SecurityError")throw d;
}},Ltc=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&Ktc()},Mtc=function(a,b){var c={};
b&&(c.serializedYpcFamilyCreateLoggingParams=b);_.zl(a,c);_.Al()},Ntc=function(a,b){var c={};
c.serializedYpcRefundFlowLoggingParams=b;a&&(c.eventType=a);_.zl("ypcRefundFlowEvent",c);_.Al()},Otc=function(a){a&&_.qJa("transactionFlowSucceeded",a)},Ptc=function(a){a&&_.JW("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",a,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")},Qtc=function(a){var b,c,d,e,g,k,m;
_.l(function(n){if(n.nextAddress==1)return _.p(n,_.TRa(),2);if(n.nextAddress!=3){if(!n.yieldResult)return n.return(!1);b=[];return _.p(n,_.bt.keys(),3)}c=n.yieldResult;d=_.h(c);for(e=d.next();!e.done;e=d.next())g=e.value,k=_.RRa(g),m=k.datasyncId,!m||a.includes(m)||b.push(_.bt.delete(g));return n.return(Promise.all(b).then(function(r){return r.some(function(t){return t})}))})},Rtc=function(){var a,b,c,d,e,g,k;
return _.l(function(m){if(m.nextAddress==1)return _.p(m,_.TRa(),2);if(m.nextAddress!=3){if(!m.yieldResult)return m.return(!1);a=_.oj("cache contains other");return _.p(m,_.bt.keys(),3)}b=m.yieldResult;c=_.h(b);for(d=c.next();!d.done;d=c.next())if(e=d.value,g=_.RRa(e),(k=g.datasyncId)&&k!==a)return m.return(!0);return m.return(!1)})},Stc=function(){var a=_.v().resolve(_.Wi(_.pVb));
return a?a.getCurrentTime():0},Ttc=function(){var a,b,c,d,e,g,k,m,n,r,t,u,w,A;
return _.l(function(C){switch(C.nextAddress){case 1:a={},b=_.KUa(),c=_.h(Object.entries(b)),d=c.next();case 4:if(d.done){C.jumpTo(3);break}e=d.value;g=_.h(e);k=g.next().value;m=g.next().value;n=k;r=m;if(!r){C.jumpTo(5);break}return _.p(C,r(),8);case 8:a[n]=C.yieldResult;case 5:d=c.next();C.jumpTo(4);break;case 2:t=_.h(void 0),u=t.next();case 9:if(u.done){C.jumpTo(3);break}w=u.value;A=b[w];if(!A){C.jumpTo(10);break}return _.p(C,A(),13);case 13:a[w]=C.yieldResult;case 10:u=t.next();C.jumpTo(9);break;
case 3:return C.return(a)}})},Utc=function(){var a;
_.l(function(b){if(b.nextAddress==1)return _.p(b,Ttc(),2);a=b.yieldResult;return _.p(b,navigator.clipboard.writeText(JSON.stringify(a,null,2)),0)})},Vtc=function(a,b){return _.mp(a.entities,"superThanksSelectedTierEntity",b)},Wtc=function(a){var b;
return(b=a.sharedUi)==null?void 0:b.currentPageType},Xtc=function(a,b){return{popup:{searchSuggestionReportDialog:{searchQuery:a,
title:_.to("SBOX_INAPPROPRIATE_TITLE"),suggestions:b,categoryLabel:_.to("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.to("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.to("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.to("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.to("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.to("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.to("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.to("SBOX_INAPPROPRIATE_ADDITIONAL"),cancelButtonLabel:_.to("SBOX_INAPPROPRIATE_CANCEL"),
submitButtonLabel:_.to("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}},Ytc=function(a){var b,c,d,e,g,k,m,n,r,t,u,w,A,C,G,J,I,R,ca;
return _.l(function(V){switch(V.nextAddress){case 1:return _.p(V,_.qp(),2);case 2:return(b=V.yieldResult)?_.p(V,_.d5a(b),3):V.return();case 3:c=V.yieldResult;if(!c)return V.return();e=((d=c.offlineVideos)==null?void 0:d.length)||0;k=((g=c.offlinePlaylists)==null?void 0:g.length)||0;if(e===0&&k===0)return V.return();m=0;if(c.offlineVideos)for(n=_.h(c.offlineVideos),r=n.next();!r.done;r=n.next())t=r.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===t.videoState&&(m+=1);a.offline_videos_count=e.toString();_.x("kevlar_log_offline_current_network_type_ks")||
(a.offline_current_network_type=(u=_.Noa())!=null?u:"CONN_INVALID");_.x("kevlar_log_updated_time_for_smart_downloads")&&(w=_.Yp().getState().entities,A=_.Dp(w),C=Osc(w),a.offline_smart_downloads_last_sync_time_ms=A.toString(),a.offline_smart_downloads_next_sync_time_ms=C.toString());a.offline_videos_playable=m.toString();a.offline_playlists_count=k.toString();if(!_.x("woffle_used_state_report")){V.jumpTo(4);break}c.offlineVideos&&(G=c.offlineVideos.reduce(function(fa,aa){aa.downloadedBytes&&(fa+=
Number(aa.downloadedBytes));return fa},0).toString())&&(a.offline_used_disk_space_bytes=G);
if(!((J=navigator)==null?0:(I=J.storage)==null?0:I.estimate)){V.jumpTo(4);break}return _.p(V,navigator.storage.estimate(),6);case 6:R=V.yieldResult,a.offline_free_disk_space_bytes=(((ca=R)==null?void 0:ca.quota)||0).toString();case 4:a.offline_client_state=JSON.stringify(c),_.se(V)}})},Ztc=function(a){a=a.match(/(.*)::.*::.*/);
if(a!==null)return a[1]},$tc=function(a){if(_.Y5a()){var b=Object.keys(window.sessionStorage);
b=_.h(b);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=Ztc(c);d===void 0||a.includes(d)||self.sessionStorage.removeItem(c)}}},auc=function(){if(!_.Y5a())return!1;
var a=_.oj(),b=Object.keys(window.sessionStorage);b=_.h(b);for(var c=b.next();!c.done;c=b.next())if(c=Ztc(c.value),c!==void 0&&c!==a)return!0;return!1},yY=function(a,b,c){(_.x("desktop_keyboard_shortcut_usage_log")||c&&_.x("web_shorts_keyboard_shortcut_usage_log"))&&(b?_.iY.get(a):_.hY.get(a))&&(a=b?_.kY.get(a):_.jY.get(a))&&_.Vo(_.Fn(),a)},buc=function(a,b){b.stack&&(a.stack+="\n"+b.stack);
return a},euc=function(a){var b=zY(a,"Content-Type");
if(!b)return null;b=b.toLowerCase();if(b.startsWith("application/json"))return b.startsWith("application/json+protobuf")?new cuc:new _.lD;if(b.startsWith("application/x-protobuf")){a=zY(a,"Content-Transfer-Encoding");if(!a)return new AY;if(a.toLowerCase()=="base64")return new duc}return null},nuc=function(a,b,c,d){var e=new fuc(function(m,n){return guc.has(n)?m.sentinel==="gal"&&m.event!==void 0:!1},function(m){m.event?(m=huc(m.event),m=!m||iuc(d,m)?!0:_.Ax(a.lastEvent,BY,2,CY)?!_.Ax(m,DY,1,CY)&&
!_.Ax(m,BY,2,CY):!_.Ax(m,DY,1,CY)&&!_.Ax(m,BY,3,CY)):m=!0;
return m});
c=_.ff(a.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",juc(c)]]));if(a.nestedOrigins!==void 0)for(var g=_.h(a.nestedOrigins),k=g.next();!k.done;k=g.next())c=_.ff(c,new Map([["origin",k.value]]));return kuc(e,c,b).then(function(m){m=luc(m.event);if(_.Ax(m,DY,1,CY)){var n,r=(n=_.Sx(m,DY,1,CY))==null?void 0:_.Px(n,2);r&&d.JSC$16903_logErrorEvent(muc(r));n=_.Sx(m,DY,1,CY);_.Px(n,2)===4?(m=_.Sx(m,DY,1,CY),m={statusCode:11,statusMessage:_.Ox(m,
3)}):(m=_.Sx(m,DY,1,CY),m={statusCode:12,statusMessage:_.Ox(m,3)});return m}_.Ax(m,BY,3,CY)?(m=_.Sx(m,BY,3,CY),m={statusCode:1,consentLanguageKeys:_.Ox(m,2)}):m={statusCode:1};return m}).catch(function(m){return m.errorCode!==void 0?{statusCode:m.errorCode,
statusMessage:m.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})},ruc=function(a){var b={};
if(a===void 0||a===null)return b;a.getToken()!==void 0&&ouc(a.getToken())&&ouc(a.getToken()).length>0&&(b.scopes=new Set(ouc(a.getToken())));a.getToken()!==void 0&&puc(a.getToken())&&puc(a.getToken()).length>0&&(b.capabilities=new Set(puc(a.getToken())));_.Ox(a,3)!==void 0&&(b.consistencyKey=_.Ox(a,3));a.getName()!==void 0&&a.getName()!==""&&(b.linkName=a.getName());_.zx(a,quc,4)&&(a=_.Xj(a,quc,4),a=Object.assign({},_.Ox(a,1)&&{userId:_.Ox(a,1)},_.Ox(a,2)&&{displayName:_.Ox(a,2)},_.Ox(a,3)&&{email:_.Ox(a,
3)},_.Ox(a,5)&&{username:_.Ox(a,5)},_.Ox(a,4)&&{profilePicture:_.Ox(a,4)}),b.profile=a);return b},suc=function(a,b){var c=a.flowParams;
return{serviceId:c.serviceId,sessionId:c.sessionId,currentFlow:a.currentFlow,googleScopesString:b,linkingSessionSerialized:a.session.serialize(),consentLanguageKeys:c.consentLanguageKeys,callerState:a.callerState,dynamicUrlParameters:c.dynamicUrlParameters,partnerConfigMinReadTimestamp:c.partnerConfigMinReadTimestamp}},xuc=function(a){var b=a.googleScopes!==void 0?Array.from(a.googleScopes).join(","):"";
tuc(suc(a,b));b=uuc(a);return b===null?Promise.resolve(vuc):b.start().then(function(c){var d,e=(d=c.link)==null?void 0:d.consistencyKey;return c.statusCode===1&&a.googleScopes!==void 0&&a.googleScopes.size>0&&e!==void 0?(d=a.flowParams,wuc(d.serviceId,d.sessionId,a.googleScopes,e,d.galService,a.config,c)):c})},yuc=function(a){var b=uuc(a);
return b===null?Promise.resolve(EY({statusCode:7,statusMessage:"Failed to create flow object"},a.callerState)):b.complete().then(function(c){var d,e=(d=c.link)==null?void 0:d.consistencyKey;return c.statusCode===1&&a.googleScopes!==void 0&&a.googleScopes.size>0&&e!==void 0?(d=a.flowParams,wuc(d.serviceId,d.sessionId,a.googleScopes,e,d.galService,a.config,c)):EY(c,a.callerState)},function(c){return EY({statusCode:12,
statusMessage:"Failed to complete the flow: "+c.message},a.callerState)})},wuc=function(a,b,c,d,e,g,k){return zuc(e,{serviceId:a,
sessionId:b,googleScopes:c,consistencyKey:d}).then(function(){return k},function(m){return e.deleteLink({serviceId:a,
sessionId:b,accountLinkingEntryPoint:g.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+m.message}},function(n){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+n.message}})})},uuc=function(a){switch(a.currentFlow){case 1:var b=a.flowParams;
a=_.Xj(a.session,Auc,1);return FY.createOAuthFlow(b,a);case 2:case 3:return b=a.flowParams,a=_.Xj(a.session,Buc,6),GY.createStreamlinedFlow(b,a);default:return null}},Cuc=function(a,b){a===2&&(a=3);
var c=0;HY.indexOf(a)!==-1&&(c=HY.indexOf(a)+1);for(a=c;a<HY.length;a++)if(b.has(HY[a]))return HY[a]},Fuc=function(a){var b=a.serviceId;
var c=a.sessionId;var d=a.config;var e=a.galService;var g=a.capabilities;var k=a.scopes;var m=a.loginHint;var n=a.callerState;var r=a.consentLanguageKeys;var t=a.linkName;var u=a.dynamicUrlParameters;var w=a.partnerConfigMinReadTimestamp;a=d.dataUsageNoticeConfig?d.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return e.startLinkingSession({serviceId:b,sessionId:c,capabilities:g,scopes:k,loginHint:m,callerState:n,supportedFlows:Duc(d.supportedFlows),completionUrl:d.completionUrl,accountLinkingEntryPoint:d.accountLinkingEntryPoint,
consentLanguageKeys:r,dataUsageNoticeConfig:a,linkName:t,dynamicUrlParameters:u,partnerConfigMinReadTimestamp:w}).then(function(A){return new Euc(b,c,d,e,A,void 0,n,r,u,w)})},Kuc=function(a,b,c){a:{var d=new Guc;
if(d.storage!==null)try{var e=d.storage.get("SAVED_SESSION");if(e===void 0){var g=null;break a}if(e.serviceId===a){g=e;break a}}catch(k){}g=null}if(g===null)return Promise.resolve({statusCode:2});Huc(a);d=Iuc(g.linkingSessionSerialized);return Juc(new Euc(a,g.sessionId,b,c,d,g.googleScopesString!==""&&g.googleScopesString!==void 0?new Set(g.googleScopesString.split(",")):void 0,g.callerState,g.consentLanguageKeys,g.dynamicUrlParameters,g.partnerConfigMinReadTimestamp),g.currentFlow,g.consentLanguageKeys)},
tuc=function(a){var b=new Guc;
b.storage!==null&&b.storage.set("SAVED_SESSION",a)},Huc=function(a){var b=new Guc;
if(b.storage!==null){var c=b.storage.get("SAVED_SESSION");c!==void 0&&c.serviceId===a&&b.storage.remove("SAVED_SESSION")}},Duc=function(a){var b=new Set;
a=_.h(a);for(var c=a.next();!c.done;c=a.next())c=c.value,c!==1&&Luc.has(c)&&b.add(Luc.get(c));return b},EY=function(a,b){b!==void 0&&(a.callerState=b);
return a},Muc=function(a){switch(a){case 5:return 3;
case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}},Puc=function(){var a={timeout:5E3};
a=a===void 0?{}:a;return Nuc!=null?Nuc:Nuc=Ouc(a)},Quc=function(){return new Promise(function(a,b){window.gapi.load("client",{callback:a,
onerror:b})})},Ouc=function(a){a=a===void 0?{}:a;
var b;return _.l(function(c){if(c.nextAddress==1){if((b=window.gapi)&&b.client&&b.client.load)c=c.return(b);else{var d=_.vd("https://apis.google.com/js/api.js");c=_.p(c,_.MA(d,a),2)}return c}if(c.nextAddress!=3){b=window.gapi;if(!b)throw Error("Vj");return b.client&&b.client.load?c.jumpTo(3):_.p(c,Quc(),3)}return c.return(b)})},Suc=function(a,b){b=b===void 0?0:b;
var c=a.auth2.getAuthInstance().currentUser.get(),d=c.getAuthResponse(!0);if(d&&d.expires_at-Date.now()<b){if(Ruc.has(a))return Ruc.get(a);b=Promise.resolve(c.reloadAuthResponse()).finally(function(){Ruc.delete(a)});
Ruc.set(a,b);return b}return Promise.resolve()},Tuc=function(a,b){var c;
return a.client.init({apiKey:b.apiKey,clientId:b.clientId,scope:b.scope,discoveryDocs:b.discoveryDocs,hostedDomain:b.hostedDomain,fetchBasicProfile:(c=b.fetchBasicProfile)!=null?c:!0})},Uuc=function(a){if(a.queryParams!=null){var b={},c;
for(c in a.queryParams)a.queryParams[c]!==void 0&&(b[c]=a.queryParams[c]);a.queryParams=b}},Xuc=function(a){return new Vuc(a,new Wuc(a))},$uc=function(a,b){b=b===void 0?!1:b;
var c=document.createElement("div");a&&(c.style.transform="scaleX(-1)");c.style.backgroundColor=b?"rgba(138,180,248,.24)":"#e8f0fe";c.style.height="4px";c.style.overflow="hidden";c.style.position="absolute";c.style.top="0";c.style.width="100%";c.style.zIndex="1500";c.setAttribute("aria-label","Loading");c.setAttribute("aria-live","polite");a=document.createElement("style");a.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  }";
c.appendChild(a);a=Yuc();a.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";a.style.left="-145.166611%";var d=Zuc(b);d.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";a.appendChild(d);c.appendChild(a);a=Yuc();a.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";a.style.left="-54.888891%";b=Zuc(b);b.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
a.appendChild(b);c.appendChild(a);return c},Yuc=function(){var a=document.createElement("div");
a.style.height="100%";a.style.position="absolute";a.style.transformOrigin="top left";a.style.width="100%";return a},Zuc=function(a){var b=document.createElement("span");
b.style.borderTop=a?"4px solid #669df6":"4px solid #4285f4";b.style.display="inline-block";b.style.position="absolute";b.style.width="100%";return b},avc=function(a){return a==null?void 0:_.udb(a).valueOf()},evc=function(a){var b=document.body,c=!1,d=function(){c||(c=!0,bvc(e,g),setTimeout(function(){b.removeChild(g);
b.removeChild(e)},150))},e=cvc(a,getComputedStyle(b).direction==="rtl",d),g=dvc(d);
bvc(e,g);b.appendChild(g);b.appendChild(e);window.requestAnimationFrame(function(){g.style.opacity="1";e.style.opacity="1";e.style.transform="translate(-50%, -50%) scale(1)";e.children[0].focus()})},cvc=function(a,b,c){var d=document.createElement("div");
d.style.position="fixed";d.style.alignItems="center";d.style.backgroundColor=a?"rgb(32, 33, 36)":"white";d.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";d.style.display="flex";d.style.flexDirection="column";d.style.justifyContent="center";d.style.left="50%";d.style.top="50%";d.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";d.style.zIndex="2002";document.body.clientWidth>=660?(d.style.borderRadius="8px",d.style.minHeight="220px",
d.style.maxHeight="90%",d.style.maxWidth="90%",d.style.minWidth="540px"):(d.style.height="100%",d.style.width="100%");d.setAttribute("aria-label","Error");d.setAttribute("aria-modal","true");d.setAttribute("role","alertdialog");d.addEventListener("keydown",function(g){g.key==="Escape"&&c()});
b=fvc(a,b,c);d.appendChild(gvc(b));d.appendChild(b);var e=document.createElement("img");e.src=a?"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";e.style.height="72px";e.style.width="72px";e.style.color="#9aa0a6";e.setAttribute("alt","");d.appendChild(e);e=document.createElement("h1");e.textContent="Something went wrong.  Try again.";
e.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";e.style.lineHeight="24px";e.style.fontSize="16px";e.style.textAlign="center";e.style.letterSpacing="0.1px";e.style.color=a?"rgb(232,234,237)":"#3c4043";d.appendChild(e);d.appendChild(gvc(b));return d},fvc=function(a,b,c){var d=document.createElement("button");
d.style.backgroundColor="transparent";d.style.border="none";d.style.borderRadius="50%";d.style.cursor="pointer";d.style.outline="none";d.style.padding="12px";d.setAttribute("aria-label","Close dialog");d.style.position="absolute";d.style.top="0";b?d.style.right="0":d.style.left="0";d.addEventListener("focus",function(){d.style.backgroundColor=a?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
d.addEventListener("blur",function(){d.style.backgroundColor="transparent"});
d.addEventListener("mouseenter",function(){d.style.backgroundColor=a?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
d.addEventListener("mouseleave",function(){d.style.backgroundColor="transparent"});
d.addEventListener("click",c);d.addEventListener("keydown",function(e){e.key!=="Enter"&&e.key!=="Space"||c()});
b=document.createElement("img");b.src=a?"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";b.style.display="block";b.style.height="24px";b.style.width="24px";b.setAttribute("alt","");d.appendChild(b);return d},gvc=function(a){var b=document.createElement("div");
b.setAttribute("tabindex","0");b.setAttribute("aria-hidden","true");b.addEventListener("focus",function(){return void a.focus()});
return b},dvc=function(a){var b=document.createElement("div");
b.style.backgroundColor="rgba(32,33,36,0.6)";b.style.bottom="0";b.style.left="0";b.style.position="fixed";b.style.right="0";b.style.top="0";b.style.transition=" opacity 150 ms linear";b.style.zIndex="2001";b.addEventListener("click",a);return b},bvc=function(a,b){b.style.opacity="0";
a.style.opacity="0";a.style.transform="translate(-50%, -50%) scale(0.8)"},hvc=function(a,b){a.sandbox&&a.sandbox.add&&(a.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),a.sandbox.add("allow-downloads"));
a.src=b},IY=function(a){ivc.call(this,a)},JY=function(a,b){b=b===void 0?!1:b;
this.parsedImageUrl_=null;a instanceof jvc||(kvc==void 0&&(kvc=new lvc),a=kvc.parse(a.toString(),b));a=this.parsedImageUrl_=a;a.JSC$17131_parsedOptions_==void 0&&((b=a.getOptions())||(b=""),a.JSC$17131_parsedOptions_=(new mvc).parse(b));ivc.call(this,a.JSC$17131_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;a=this.parsedImageUrl_;b=a.uri_.JSC$7879_port_;this.JSC$17133_domain_=a.uri_.JSC$7879_domain_+(b?":"+b:"");this.JSC$17133_query_=this.parsedImageUrl_.uri_.JSC$7879_queryData_.toString()},
nvc=function(a){this.mode=4;
this.data=a;this.parsedData=[];a=0;for(var b=this.data.length;a<b;a++){var c=[],d=this.data.charCodeAt(a);d>65536?(c[0]=240|(d&1835008)>>>18,c[1]=128|(d&258048)>>>12,c[2]=128|(d&4032)>>>6,c[3]=128|d&63):d>2048?(c[0]=224|(d&61440)>>>12,c[1]=128|(d&4032)>>>6,c[2]=128|d&63):d>128?(c[0]=192|(d&1984)>>>6,c[1]=128|d&63):c[0]=d;this.parsedData.push(c)}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))},ovc=function(a){this.typeNumber=0;
this.errorCorrectLevel=a===void 0?2:a;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]},KY=function(a,b){if(a.length==void 0)throw Error("ok`"+a.length+"`"+b);
for(var c=0;c<a.length&&a[c]==0;)c++;this.num=Array(a.length-c+b);for(b=0;b<a.length-c;b++)this.num[b]=a[b+c]},pvc=function(a,b){this.totalCount=a;
this.dataCount=b},qvc=function(){this.buffer=[];
this.length=0},rvc=function(){var a=!1;
if(_.oaa()){a=_.ua();var b="";_.raa()?(b=/Windows (?:NT|Phone) ([0-9.]+)/,b=(a=b.exec(a))?a[1]:"0.0"):_.Ia()?(b=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,b=(a=b.exec(a))&&a[1].replace(/_/g,".")):_.qaa()?(b=/Mac OS X ([0-9_.]+)/,b=(a=b.exec(a))?a[1].replace(/_/g,"."):"10"):_.ta(_.ua(),"KaiOS")?(b=/(?:KaiOS)\/(\S+)/i,b=(a=b.exec(a))&&a[1]):_.oaa()?(b=/Android\s+([^\);]+)(\)|;)/,b=(a=b.exec(a))&&a[1]):_.saa()&&(b=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,b=(a=b.exec(a))&&a[1]);a=b||""}return a},xvc=function(a,
b){this.JSC$17156__htOption={width:256,
height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(b)for(var c in b)this.JSC$17156__htOption[c]=b[c];this.JSC$17156__htOption.useSVG&&(svc=tvc);this.JSC$17156__android=rvc();this.JSC$17156__el=a;this._oQRCode=null;this._oDrawing=new svc(this.JSC$17156__el,this.JSC$17156__htOption);this.JSC$17156__htOption.text&&(a=this.JSC$17156__htOption.text,this._oQRCode=new ovc(this.JSC$17156__htOption.correctLevel),uvc(this._oQRCode,a),b=this._oQRCode,vvc(b,!1,wvc(b)),this.JSC$17156__el.title=
a,this._oDrawing.draw(this._oQRCode),this.makeImage())},yvc=function(a,b,c,d,e){a.save();
var g=new Path2D;g.roundRect(b,c,d*7,d*7,d*2);g.roundRect(b+d,c+d,d*5,d*5,d*1.3);g.roundRect(b+2*d,c+2*d,d*3,d*3,d);a.clip(g,"evenodd");a.fillStyle=e;a.fillRect(0,0,a.canvas.width,a.canvas.height);a.restore()},LY=function(a,b){if(typeof a!=="function")throw Error("rk");
return _.ja.setTimeout(function(){a()},b)},MY=function(){},Avc=function(a,b,c,d,e){(new MY).debug("TestLoadImageWithRetries: "+e);
if(d==0)c(!1);else{var g=e||0;d--;zvc(a,b,function(k){k?c(!0):_.ja.setTimeout(function(){Avc(a,b,c,d,g)},g)})}},zvc=function(a,b,c){var d=new MY;
d.debug("TestLoadImage: loading "+a);var e=new Image;e.onload=function(){try{d.debug("TestLoadImage: loaded"),Bvc(e),c(!0)}catch(g){}};
e.onerror=function(){try{d.debug("TestLoadImage: error"),Bvc(e),c(!1)}catch(g){}};
e.onabort=function(){try{d.debug("TestLoadImage: abort"),Bvc(e),c(!1)}catch(g){}};
e.ontimeout=function(){try{d.debug("TestLoadImage: timeout"),Bvc(e),c(!1)}catch(g){}};
_.ja.setTimeout(function(){if(e.ontimeout)e.ontimeout()},b);
e.src=a},Bvc=function(a){a.onload=null;
a.onerror=null;a.onabort=null;a.ontimeout=null},Cvc=function(){this.front_=[];
this.back_=[]},Dvc=function(a,b){_.tg.call(this);
this.delay_=new _.vg(this.JSC$17281_onTick_,0,this);_.gg(this,this.delay_);this.JSC$17279_interval_=5E3;this.nextTickTime_=0;if(typeof a==="function")b&&(a=(0,_.ug)(a,b));else if(a&&typeof a.handleEvent==="function")a=(0,_.ug)(a.handleEvent,a);else throw Error("Fa");this.JSC$17281_listener_=a},NY=function(a,b,c,d,e,g,k,m,n,r,t,u,w,A){c=c===void 0?!1:c;
d=d===void 0?function(){return""}:d;
e=e===void 0?!1:e;g=g===void 0?!1:g;k=k===void 0?!1:k;m=m===void 0?function(){return _.oo({})}:m;
n=n===void 0?!1:n;t=t===void 0?!1:t;u=u===void 0?!1:u;w=w===void 0?!1:w;A=A===void 0?!1:A;this.JSC$17282_pathPrefix_=a;this.defaultQueryParams_=b;this.pubsub_=new _.jj;this.reconnectTimer_=new Dvc(this.safeReconnect_,this);this.JSC$17282_channel_=null;this.JSC$17282_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$17282_pendingMessages_=[];this.enableAsyncTest_=c;this.JSC$17282_getXsrfToken_=d;this.useAsyncBrowserChannelHandler_=g;this.getAuthorizationHeader_=
m;this.getAuthorizationHeaderSync_=r;this.enableCachedUpdateAuthorizationHeader_=k;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.oo();this.enableLoungeTokenRefresh_=e;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=n;this.disableMdxAuthForNonPlaybackMessages_=t;this.disableMdxAuthForAdMessages_=u;this.enableMdxAuthForConnectionOnly_=w;this.disableMdxAuthForShortsMessages_=A;this.JSC$17282_channelOpenedCounter=new Evc;this.JSC$17282_channelClosedCounter=new Fvc;this.channelMessageSentCounter=
new Gvc;this.JSC$17282_channelMessageReceivedCounter=new Hvc;this.JSC$17282_channelErrorCounter=new Ivc;this.pendingMapsOnClosedCounter=new Jvc;this.undeliveredMapsOnClosedCounter=new Kvc},OY=function(a){this.scheme="https";
this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;a=a||document.location.href;var b=Number(_.Ri(a)[4]||null)||"";b&&(this.port=":"+b);this.domain=_.Si(a)||"";a=_.ua();a.search("MSIE")>=0&&lY(a.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)},PY=function(a){a=a||{};
this.name=a.name||"";this.id=a.id||a.screenId||"";this.token=a.token||a.loungeToken||"";this.uuid=a.uuid||a.dialId||"";this.idType=a.screenIdType||"normal"},Lvc=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var b=Math.random()*16|0;
return(a=="x"?b:b&3|8).toString(16)})},Mvc=function(a){return _.zf(a,function(b){return{key:b.id,
name:b.name}})},Nvc=function(a,b){return _.Ka(a,function(c){return c||b?!c!=!b?!1:c.id==b.id:!0})},RY=function(a,b){return _.Ka(a,function(c){return QY(c,b)})},Svc=function(){var a=Ovc(),b=Pvc();
if(Qvc()){var c=a,d=_.Baa(c,b);d<0&&_.yaa(c,-(d+1),0,b)}a=Rvc(a);if(a.length==0)try{_.Joa("remote_sid")}catch(e){}else try{_.mj("remote_sid",a.join(","),-1)}catch(e){}},Ovc=function(){var a=_.sG("yt-remote-connected-devices")||[];
a.sort(_.Aaa);return a},Rvc=function(a){if(a.length==0)return[];
var b=a[0].indexOf("#"),c=b==-1?a[0]:a[0].substring(0,b);return _.zf(a,function(d,e){return e==0?d:d.substring(c.length)})},Tvc=function(a){_.rG("yt-remote-connected-devices",a,86400)},Pvc=function(){if(Uvc)return Uvc;
var a=_.sG("yt-remote-device-id");a||(a=Lvc(),_.rG("yt-remote-device-id",a,31536E3));for(var b=Ovc(),c=1,d=a;_.Pa(b,d);)c++,d=a+"#"+c;return Uvc=d},Vvc=function(){return _.sG("yt-remote-session-browser-channel")},Qvc=function(){return _.sG("yt-remote-session-screen-id")},Yvc=function(a){a.length>5&&(a=a.slice(a.length-5));
var b=_.zf(Wvc(),function(d){return d.loungeToken}),c=_.zf(a,function(d){return d.loungeToken});
_.MIa(c,function(d){return!_.Pa(b,d)})&&Xvc();
_.rG("yt-remote-local-screens",a,31536E3)},Wvc=function(){return _.sG("yt-remote-local-screens")||[]},Xvc=function(){_.rG("yt-remote-lounge-token-expiration",!0,86400)},SY=function(a){a||(_.tG("yt-remote-session-screen-id"),_.tG("yt-remote-session-video-id"));
Svc();a=Ovc();_.Qa(a,Pvc());Tvc(a)},$vc=function(){Zvc();
return TY?!!TY.get("yt-remote-use-staging-server"):!1},Zvc=function(){if(!TY){var a=_.Soa();
a&&(TY=new _.rj(a))}},dwc=function(a,b,c,d,e){c=c===void 0?function(){return""}:c;
var g=function(){return new NY(UY(a,"/bc"),b,!1,c,d)};
return _.x("enable_mdx_web_channel_desktop")?new awc(function(){return new bwc(UY(a,"/wc"),b,c)}):new cwc(g,e)},hwc=function(){var a=ewc;
fwc();VY.push(a);gwc()},WY=function(a,b){fwc();
var c=iwc(a,String(b));VY.length==0?jwc(c):(gwc(),_.Mi(VY,function(d){d(c)}))},XY=function(a){WY("CP",a)},fwc=function(){VY||(VY=_.Ji("yt.mdx.remote.debug.handlers_")||[],_.Rj("yt.mdx.remote.debug.handlers_",VY))},jwc=function(a){var b=(YY+1)%50;
YY=b;kwc[b]=a;lwc||(lwc=b==49)},gwc=function(){var a=VY;
if(kwc[0]){var b=lwc?YY:-1,c={};do c={record$jscomp$13:void 0},b=(b+1)%50,c.record$jscomp$13=kwc[b],_.Mi(a,function(d){return function(e){e(d.record$jscomp$13)}}(c));
while(b!=YY);kwc=Array(50);YY=-1;lwc=!1}},iwc=function(a,b){var c=(Date.now()-mwc)/1E3;
c.toFixed&&(c=c.toFixed(3));var d=[];d.push("[",c+"s","] ");d.push("[","yt.mdx.remote","] ");d.push(a+": "+b,"\n");return d.join("")},ZY=function(a){_.gY.call(this);
this.JSC$17306_logName_=a;this.screens=[]},aZ=function(a){ZY.call(this,"LocalScreenService");
this.JSC$17313_http_=a;this.loungeTokenRefreshTimer_=NaN;$Y(this);this.info("Initializing with "+nwc(this.screens))},bZ=function(a,b){b=b===void 0?!1:b;
ZY.call(this,"ScreenService");this.JSC$17319_http_=a;this.disableAutomaticScreenCache_=b;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};owc(this)},cZ=function(a,b,c){_.gY.call(this);
this.JSC$17323_logName_=c;this.JSC$17323_screenService_=a;this.receiver_=b;this.screen_=null},Dwc=function(a,b,c){c.disableCastApi?dZ("Cannot initialize because disabled by Mdx config."):pwc()?qwc(a,c)&&(rwc(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?swc(b):(window.__onGCastApiAvailable=function(d,e){d?swc(b):(eZ("Failed to load cast API: "+e),twc(!1),rwc(!1),_.tG("yt-remote-cast-available"),_.tG("yt-remote-cast-receiver"),uwc(),b(!1))},c.loadCastApiSetupScript?_.Ln("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"):
window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?vwc()>=60&&wwc():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?xwc():vwc()>=89?ywc():(zwc(),Awc(Bwc.map(Cwc))))):dZ("Cannot initialize because not running Chrome")},uwc=function(){dZ("dispose");
var a=fZ();a&&a.dispose();_.Rj("yt.mdx.remote.cloudview.instance_",null);Ewc(!1);_.xsa(Fwc);Fwc.length=0},Gwc=function(){return!!_.sG("yt-remote-cast-installed")},Hwc=function(){var a=_.sG("yt-remote-cast-receiver");
return a?a.friendlyName:null},Iwc=function(){dZ("clearCurrentReceiver");
_.tG("yt-remote-cast-receiver")},Jwc=function(){return Gwc()?fZ()?fZ().getCastSession():(eZ("getCastSelector: Cast is not initialized."),null):(eZ("getCastSelector: Cast API is not installed!"),null)},Lwc=function(a,b){Kwc()?fZ().setConnectedScreenStatus(a,b):eZ("setConnectedScreenStatus called before ready.")},pwc=function(){var a=_.ua().search(/ (CrMo|Chrome|CriOS)\//)>=0;
return _.wx||a},qwc=function(a,b){var c=!1;
fZ()||(a=new gZ(a,b),a.subscribe("yt-remote-cast2-availability-change",function(d){_.rG("yt-remote-cast-available",d);nY("yt-remote-cast2-availability-change",d)}),a.subscribe("yt-remote-cast2-receiver-selected",function(d){dZ("onReceiverSelected: "+d.friendlyName);
_.rG("yt-remote-cast-receiver",d);nY("yt-remote-cast2-receiver-selected",d)}),a.subscribe("yt-remote-cast2-receiver-resumed",function(d){dZ("onReceiverResumed: "+d.friendlyName);
_.rG("yt-remote-cast-receiver",d);nY("yt-remote-cast2-receiver-resumed",d)}),a.subscribe("yt-remote-cast2-session-change",function(d){dZ("onSessionChange: "+Mwc(d));
d||_.tG("yt-remote-cast-receiver");nY("yt-remote-cast2-session-change",d)}),_.Rj("yt.mdx.remote.cloudview.instance_",a),c=!0);
dZ("cloudview.createSingleton_: "+c);return c},fZ=function(){return _.Ji("yt.mdx.remote.cloudview.instance_")},swc=function(a){twc(!0);
rwc(!1);fZ().init(!1,function(b){b?(Ewc(!0),_.ysa("yt-remote-cast2-api-ready")):(eZ("Failed to initialize cast API."),twc(!1),_.tG("yt-remote-cast-available"),_.tG("yt-remote-cast-receiver"),uwc());a(b)})},dZ=function(a){WY("cloudview",a)},eZ=function(a){WY("cloudview",a)},twc=function(a){dZ("setCastInstalled_ "+a);
_.rG("yt-remote-cast-installed",a)},Kwc=function(){return!!_.Ji("yt.mdx.remote.cloudview.apiReady_")},Ewc=function(a){dZ("setApiReady_ "+a);
_.Rj("yt.mdx.remote.cloudview.apiReady_",a)},rwc=function(a){_.Rj("yt.mdx.remote.cloudview.initializing_",a)},hZ=function(a){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(a)},Nwc=function(){var a,b;
return _.l(function(c){if(c.nextAddress==1)return(_.hsa()||_.x("use_new_nwl"))&&_.dsa().isNetworkAvailable()?_.p(c,_.Sj(),2):c.return();if(c.nextAddress!=3)return(a=c.yieldResult)?_.p(c,zsc(a),3):c.return();b=c.yieldResult;if(!b.length)return c.return();b.forEach(function(d){var e={timestamp:d.timestamp};d=d.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:d.appShellAssetLoadReport,options:e}:d.clientError?{payloadName:"clientError",payload:d.clientError,options:e}:void 0;d&&
_.zl(d.payloadName,d.payload,d.options)});
b.length===100&&_.zk.addLowPriorityJob(Nwc);_.se(c)})},Owc=function(a){if(a.playerResponse){if(a=a.playerResponse,a.messages&&a.messages.length>0&&(a=a.messages.find(function(b){return!(!b||!b.mealbarPromoRenderer)}))&&a.mealbarPromoRenderer)return a.mealbarPromoRenderer}else if(a.response&&(a=a.response)&&a.overlay&&a.overlay.mealbarPromoRenderer)return a.overlay.mealbarPromoRenderer},Pwc=function(a){if(a.response){var b=a.response;
if(b&&b.overlay&&b.overlay.tooltipRenderer)return b.overlay.tooltipRenderer}if(a.playerResponse&&(a=a.playerResponse,a.messages&&a.messages.length>0&&(a=a.messages.find(function(c){return!(!c||!c.tooltipRenderer)}))&&a.tooltipRenderer))return a.tooltipRenderer},Rwc=function(a){if(!Qwc&&(a=a||_.Ei("ZWIEBACK_PING_URLS"))&&a.length){Qwc=!0;
for(var b=0;b<a.length;b++)_.Jk(a[b])}},Twc=function(a){if(_.yf.get(_.Ei("PLAYER_VARS",{}),"privembed",!1)!="1"){a&&qsc();
try{Swc().then(function(){},function(){}),_.dj(Twc,18E5)}catch(b){_.Hi(b)}}},Uwc=function(){var a=_.wo(),b=a.getFlag(119),c=window.devicePixelRatio>1;
document.body&&_.Xz(document.body,"exp-invert-logo")&&(c&&!_.Xz(document.body,"inverted-hdpi")?_.Ts(document.body,"inverted-hdpi"):!c&&_.Xz(document.body,"inverted-hdpi")&&_.Rs(document.body,"inverted-hdpi"));b!=c&&(_.xo(0,119,c),a.save())},Vwc=function(a){return a.filter(function(b){return"ypcGetCartEndpoint"in b||"ypcFixInstrumentEndpoint"in b})},Wwc=function(a){return a.filter(function(b){return!_.y(b,_.aGb)})},Ywc=function(a){a=_.h(a);
for(var b=a.next(),c={};!b.done;c={setter$jscomp$7:void 0},b=a.next()){var d=b.value;b=d.params;d=d.service;b&&d&&(c.setter$jscomp$7=Xwc[d],c.setter$jscomp$7&&b.forEach(function(e){return function(g){var k=g.key;g=g.value;k&&g&&(0,e.setter$jscomp$7)(k,g)}}(c)))}},$wc=function(a,b){var c,d,e,g,k,m,n;
_.l(function(r){switch(r.nextAddress){case 1:c=_.Kq.getInstance();d=_.hs.instance;e=_.Qt.instance;if(!e)return Zwc(a,d,b),r.return();_.me(r,2);a.onLoadingCommand&&d.resolveCommand(a.onLoadingCommand);return _.p(r,c.getCurrentPositionFromGeolocation(),4);case 4:g=r.yieldResult;if(!a.resolveLocationCommand){r.jumpTo(5);break}k=c.createLocationInfo(g);return _.p(r,_.St(e,a.resolveLocationCommand,{locationInfo:k}),6);case 6:m=r.yieldResult;if(!m||"error"in m&&m.error||m.errorMetadata)return Zwc(a,d,b),
r.return();var t;if(m==null?0:(t=m.onResponseReceivedActions)==null?0:t.length){t=_.h(m.onResponseReceivedActions);for(var u=t.next();!u.done;u=t.next())d.resolveCommand(u.value)}(_.y(a.onSuccessCommand,_.Vn)||_.y(a.onSuccessCommand,_.pq))&&_.go(b.hostElement,"yt-navigate",{endpoint:a.onSuccessCommand,reload:!0});case 5:_.Jj(r,0);break;case 2:n=_.re(r);if(n instanceof GeolocationPositionError&&n.code===GeolocationPositionError.PERMISSION_DENIED)return a.onDeniedCommand&&d.resolveCommand(a.onDeniedCommand),
r.return();Zwc(a,d,b);_.se(r)}})},Zwc=function(a,b,c){a.onFailureCommand&&(b.resolveCommand(a.onFailureCommand),_.ho(c.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))},bxc=function(a,b){var c=_.y(a,_.Izb);
if(c&&b){a=c.videoIds||[c.videoId];var d;b=(d=_.go(b,"yt-lockup-requested",{videoIds:a}).detail)==null?void 0:d.returnValue;var e;c.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?e=b?b:a.map(function(g){return{videoId:g,navigationEndpoint:c.videoCommand}}):b&&(e=b);
e&&(d=e.map(function(g){var k=Object,m=k.assign;var n=g.navigationEndpoint;if(!_.y(n,_.tq)){var r=_.y(n,_.Vn);if(r){if(delete r.index,delete r.playlistId,r=_.y(n==null?void 0:n.commandMetadata,_.ao),r==null?0:r.url){var t=r.url;t=_.$n(t,"list");t=_.$n(t,"index");r.url=t}}else n=void 0}return m.call(k,{},g,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:n})}),axc(d,c))}},cxc=function(a){var b=_.VF();
if(a=_.y(a,_.Jzb))a.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&b.clearQueue(),a.closeMiniplayer&&_.v().resolve(_.Vw).close(!0)},exc=function(a){dxc(_.VF(),a)},fxc=function(a){var b;
(a=(b=_.y(a,_.Gzb))==null?void 0:b.setVideoIds)&&a.forEach(function(c){_.kKb(_.VF(),c)})},hxc=function(a){gxc(_.VF(),a)},ixc=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(a){return!1}},jxc=function(a,b,c){return{horizontalAlignment:a.x+c.width/2<b.width/2?"west":"east",
verticalAlignment:a.y+c.height/2<b.height/2?"north":"south"}},mxc=function(a,b,c,d,e){e=e===void 0?new _.Af(0,0):e;
return kxc(lxc(a,b,c,d),e)},lxc=function(a,b,c,d){return new _.Af(a==="west"?16:c.width-d.width-16,b==="north"?16:c.height-d.height-16)},nxc=function(a,b){var c=0;
a&&(c+=76);b&&(c+=285);return c},oxc=function(a){var b=["h",
"m","s"],c=_.Ra(b);c.reverse();var d={};a=(a.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(k){var m=(k.match(/[hms]/)||[""])[0];return m?(d[m]=parseInt(k.match(/\d+/)[0],10),!1):!0});
for(a.reverse();a.length&&c.length;){var e=c.shift();e in d||(d[e]=parseInt(a.shift(),10))}if(a.length||d.s>59||d.m>59||d.h>9)return null;var g="";b.forEach(function(k){d[k]&&(g+=""+d[k]+k)});
return g||null},pxc=function(a){a=a.data;
return _.q("yt-profile-badge-view-model",{class:"profile-badge-view-model-wiz"},_.q("div",{class:"profile-badge-view-model-wiz__badge-icon-container"},_.q(_.Ss,{data:{thumbnails:[{url:a.badgeIconUrl}]},alt:"",targetWidth:36,targetHeight:36})),_.q("div",{class:"profile-badge-view-model-wiz__content"},_.q("div",{class:"profile-badge-view-model-wiz__badge-description"},a.badgeDesc),a.badgeSubtitle?_.q("div",{class:"profile-badge-view-model-wiz__badge-subtitle"},a.badgeSubtitle):null))},qxc=function(a){a=
a.data;
var b=_.Rl();_.Uu(b,a.rendererContext);return _.q("yt-comment-interaction-view-model",{el:b,class:"yt-comment-interaction-view-model-wiz"},_.q("div",{class:"yt-comment-interaction-view-model-wiz__frame",role:"button","aria-label":a.onTapA11yLabel,"on:keydown":_.Nu(),tabindex:0},_.q("div",{class:"yt-comment-interaction-view-model-wiz__header"},_.q("div",{class:"yt-comment-interaction-view-model-wiz__video-title"},a.headerPrefix,' "',a.videoTitle),_.q("div",{class:"yt-comment-interaction-view-model-wiz__video-title-quote"},
'"')),_.q("div",{class:"yt-comment-interaction-view-model-wiz__content"},_.q("div",{class:"yt-comment-interaction-view-model-wiz__comment-content"},a.commentContent),_.q("div",{class:"yt-comment-interaction-view-model-wiz__chevron"},_.q(_.Ss,{data:{thumbnails:[{url:a.chevronUrl}]},alt:"",targetWidth:18,targetHeight:18})))))},sxc=function(a){a=a.data;
return _.q("yt-shared-subscription-view-model",{class:"yt-shared-subscription-view-model-wiz"},rxc(a.avatar),_.q("div",{class:"yt-shared-subscription-view-model-wiz__channel-name"},a.channelName))},uxc=function(a){a=a.data;
var b;return _.q("div",{class:"yt-profile-info-view-model-wiz__activity"},_.q("div",{class:"yt-profile-info-view-model-wiz__header"},_.q("div",{class:"yt-profile-info-view-model-wiz__section-title"},a.commentsInteractionTitle)),(b=a.comments)==null?void 0:b.map(function(c){return _.q("div",{class:"yt-profile-info-view-model-wiz__activity"},txc(c))}))},vxc=function(a){a=a.data;
var b=_.Gs({elementsCommand:a.subscriptionsAccessButtonCommand}),c=_.Rl();_.xYa(c,_.Es(a.subscriptionsAccessButtonCommand));var d=_.ot(function(g){if(b==null?0:b.onclick)b.onclick(g);return!1}),e;
return _.q("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.q("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.q("a",{el:c,"on:click":d,class:"yt-profile-info-view-model-wiz__another-header"},_.q("div",{class:"yt-profile-info-view-model-wiz__section-title-modern"},a.sharedSubscriptionsTitle),_.q("div",null,txc(a.subscriptionsAccessButton)))),_.q("div",{class:"yt-profile-info-view-model-wiz__subs"},(e=a.sharedSubscriptions)==null?void 0:e.slice(0,5).map(function(g){return _.q("div",
{class:"yt-profile-info-view-model-wiz__sub"}," ",txc(g))})))},wxc=function(a){a=a.data;
var b;return _.q("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.q("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.q("h2",{class:"yt-profile-info-view-model-wiz__section-title"},a.sharedSubscriptionsTitle)),_.q("div",{class:"yt-profile-info-view-model-wiz__subs"},(b=a.sharedSubscriptions)==null?void 0:b.slice(0,5).map(function(c){return _.q("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",txc(c))})))},xxc=function(a){a=a.data;
return _.q("div",{class:"yt-profile-info-view-model-wiz__activity"},[a.profileBadgeInfoYtWide,a.profileBadgeInfoChannelWide].map(function(b){var c,d,e,g,k;return b?_.q(_.Vh,null,_.q("div",{class:"yt-profile-info-view-model-wiz__header"},_.q("div",{class:"yt-profile-info-view-model-wiz__section-title"},b==null?void 0:b.profileSectionTitle),_.q("div",{class:"yt-profile-info-view-model-wiz__section-desc"},_.q("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},b==null?void 0:(c=b.commentBadge)==
null?void 0:c.commentDesc),(b==null?0:(d=b.commentBadge)==null?0:d.blackHeartDesc)?_.q("div",{class:"yt-profile-info-view-model-wiz__section-divider"},"\u2022"):null,_.q("div",{class:"yt-profile-info-view-model-wiz__section-heart-icon"},_.q(_.Ss,{data:{thumbnails:[{url:b==null?void 0:(e=b.commentBadge)==null?void 0:e.blackHeartIconUrl}]},alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.q("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},b==null?void 0:(g=
b.commentBadge)==null?void 0:g.blackHeartDesc))),_.q("div",{class:"yt-profile-info-view-model-wiz__badge"},b==null?void 0:(k=b.badges)==null?void 0:k.map(function(m){return _.q(pxc,{data:m})}))):null}))},yxc=function(a){a=a.data;
return _.q("yt-profile-info-view-model",{class:"yt-profile-info-view-model-wiz"},_.q(xxc,{data:a}),a.comments?_.q(uxc,{data:a}):null,a.sharedSubscriptionsTitle?a.subscriptionsAccessButtonCommand?_.q(vxc,{data:a}):_.q(wxc,{data:a}):null)},Axc=function(a){var b=a.data;
a=b?zxc(b.profileIdentityInfo):void 0;b=b?zxc(b.profileInfo):void 0;return _.q("yt-profile-card-view-model",{class:"yt-profile-card-view-model-wiz",style:"overflow: hidden"},a,b)},Bxc=function(a,b){var c=_.oyb(b,{},a,!0);
return new Promise(function(d,e){c.listenOnce("n",function(){e(Error("bl`"+c.JSC$25508_getErrorDescription()))});
c.listenOnce("l",function(){var g=c.getResponseCode();if(g!==200)e(Error("cl`"+b+"`"+a.type+"`"+a.size+"`"+g));else try{d(JSON.parse(c.getResponseText()).encryptedBlobId)}catch(k){e(k)}});
c.run()})},Cxc=function(a){return a.substring(a.indexOf(":")+1,a.indexOf(";"))},Dxc=function(a){return new Promise(function(b,c){var d=new FileReader;
d.onloadend=function(){try{var e=new Uint8Array(d.result);e.length<8&&c(void 0);var g=e.subarray(0,8);e="";for(var k=0;k<g.length;k++)e+=("0"+g[k].toString(16)).substr(-2);e.startsWith("ffd8ff")?b("image/jpeg"):e.startsWith("47494638")?b("image/gif"):e.startsWith("89504e470d0a1a0a")?b("image/png"):e.startsWith("424d")?b("image/bmp"):b(void 0)}catch(m){c(m)}};
d.onerror=c;d.readAsArrayBuffer(a)})},Exc=function(a){return new Promise(function(b,c){var d=new Image;
d.crossOrigin="anonymous";d.onload=function(){var e=document.createElement("canvas");e.width=d.naturalWidth;e.height=d.naturalHeight;var g=e.getContext("2d");if(!g)throw Error("dl");g.drawImage(d,0,0);g=Cxc(a);e.toBlob(function(k){k?b(k):c()},g)};
d.src=a})},Gxc=function(a,b){var c;
if(((c=_.y(a,_.tq))==null?void 0:c.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var d;_.go((d=b.hostElement)!=null?d:b,"yt-shorts-reset");_.eLb(_.v().resolve(_.kG),a).then(function(g){Fxc(g,b,a)})}else{var e;
_.mo((e=b.hostElement)!=null?e:b,[a]).then(function(g){g&&Fxc(g.data,b,a)})}},Fxc=function(a,b,c){if(a){var d=_.y(a.replacementEndpoint,_.tq);
if(d){a.sequenceContinuation&&(d.sequenceParams=a.sequenceContinuation);var e;_.go((e=b.hostElement)!=null?e:b,"yt-navigate",{endpoint:a.replacementEndpoint})}else if((a==null?void 0:a.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(a==null?0:a.watchStatus)&&_.y(a.watchStatus,_.pBb)){var g;_.go((g=b.hostElement)!=null?g:b,"yt-navigate",{endpoint:c})}}},Hxc=function(){var a=_.v().resolve(_.IG),b=Wtc(a.getState())||"";
a=_.DYa(a.getState())||"";return{disableCache:b==="ytd-browse"&&a==="home"}},Ixc=function(a){if(!a)return!1;
try{if(a.host&&a.host.tagName==="YT-FORMATTED-STRING"&&a.host.id==="contenteditable-textarea"||a.nodeType===Node.ELEMENT_NODE&&a.tagName==="YTD-COMMENT-INPUT")return!0}catch(b){return!1}return Ixc(a.parentNode)},iZ=function(a){return a?a.tagName==="A"&&a.href&&a.classList.contains("yt-simple-endpoint"):!1},Jxc=function(a){return a?a.tagName==="IMG"&&a.classList.contains("emoji"):!1},Kxc=function(a,b,c){if(!a)return null;
var d=iZ(a);if(d&&c)return b=a.pathname.substring(a.pathname.indexOf("/channel/")+9),document.createTextNode("@"+b);if(d&&!c)return document.createTextNode("");if(Jxc(a))return c=a.alt,a=a.dataset.emojiId,!a&&b&&(b=_.jv(b,c))&&b.isCustomEmoji&&(a=b.emojiId),a?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+a+">"):document.createTextNode(c);d=a.cloneNode(!1);for(var e=0;e<a.childNodes.length;++e){var g=Kxc(a.childNodes[e],b,c);g&&d.appendChild(g)}return d},jZ=function(a){return a?iZ(a)?a:jZ(a.lastChild):
null},Lxc=function(a){return a?iZ(a)?a:Lxc(a.firstChild):null},Mxc=function(a){if(!a)return null;
for(var b=a.previousSibling;b;)if(b.nodeType===Node.ELEMENT_NODE&&b.nodeName==="BR")b=b.previousSibling;else if(b.nodeType===Node.TEXT_NODE&&/\s+/.test(b.textContent))b=b.previousSibling;else break;(b=jZ(b))?a=b:a=(a=a.parentNode)?jZ(a.previousElementSibling):null;return a},Nxc=function(a){if(!a)return null;
for(var b=a.nextSibling;b;)if(b.nodeType===Node.ELEMENT_NODE&&b.nodeName==="BR")b=b.nextSibling;else if(b.nodeType===Node.TEXT_NODE&&/\s+/.test(b.textContent))b=b.nextSibling;else break;return(b=Lxc(b))?b:Nxc(a.parentNode)},Oxc=function(a){var b=_.lv(),c=b.JSC$9073_getStartNode();
if(!Ixc(c.parentNode))return null;b=b.JSC$9073_getStartOffset();if(c.nodeType===Node.TEXT_NODE){var d=_.Ef(c,iZ);if(d){if(a&&b===0||!a&&b===c.length)return d}else{if(a&&b===c.length)return!c||c.nodeName==="BR"||c.nextElementSibling&&_.mv(c.nextElementSibling,"display")==="block"?null:Lxc(c.nextElementSibling);if(!a&&b===0)return c?jZ(c.previousElementSibling):null}}if(c.nodeType===Node.ELEMENT_NODE)if(a){if(0<=b&&b<c.childNodes.length)return Lxc(c.childNodes[b])}else if(0<b&&b<=c.childNodes.length)return jZ(c.childNodes[b-
1]);return null},Pxc=function(a,b,c){if(!a)return null;
if(a.nodeType===Node.TEXT_NODE)if(c){var d=Mxc(a);if(d&&!/^\s+\S/.test(a.wholeText.substr(0,b)))return d}else if((d=Nxc(a))&&!/\S\s+/.test(a.wholeText.substr(b,a.wholeText.length)))return d;return a.nodeType===Node.ELEMENT_NODE?c?Mxc(a.childNodes[b]):Nxc(a.childNodes[b]):Pxc(a.parentNode,b,c)},Qxc=function(a){if(a.hasChildNodes())switch(a.tagName){case "DIV":case "A":case "SPAN":var b="";
for(a=a.firstChild;a;a=a.nextSibling)b+=Qxc(a);return b;default:return""}else switch(a.nodeType){case 3:return a.textContent;default:return""}},Rxc=function(a){a=a.data;
return _.q("ytd-menu-title-renderer",{class:"ytd-menu-title-renderer"},_.q("div",null,_.q(_.wt,{text:a.title})),a.subtitle?_.q("div",{class:"ytd-menu-title-renderer__subtitle"},_.q(_.wt,{text:a.subtitle})):null)},Sxc=function(a){switch(a){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"}},Txc=function(a){return a.map(function(b){return{settingsRadioOptionRenderer:{title:_.fp(b.name),
asideText:_.fp(b.approximateSize),id:Sxc(b.format)}}})},Vxc=function(a){if(a&&a.length!==0)return a.filter(Uxc()).map(function(b){return{settingsRadioOptionRenderer:{title:b.name,
asideText:b.approximateSize,id:Sxc(b.formatType)}}})},Wxc=function(a){if(a)return a.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")},Xxc=function(a){var b=a.indexOf("(");
return b!==-1?a.substring(b+1,a.length-1):a},Yxc=function(a){switch(a){case 38:return-1;
case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}},$xc=function(a,b,c,d,e,g){var k=_.yf.clone(Zxc);
k.locale=_.Ei("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;k.report={description:e||"<empty>"};e=_.Ei("SBOX_SETTINGS",{});b=b.join(",");var m=Date.now();a={choice_cc:d,choice_id_cc:c,choices_sc:b,gl:e.REQUEST_DOMAIN,hl:e.REQUEST_LANGUAGE,query:a,time:m};g&&(a.choice_additional_comment_cc=g);_.uyb(k,a)},ayc=function(a){var b=new Map;
b.set("authuser",_.Ei("SESSION_INDEX","0"));return _.ff(a,b)},cyc=function(a){var b;
return _.l(function(c){switch(c.nextAddress){case 1:if(!a||!byc(a))return c.return(null);b=null;switch(_.Ei("INNERTUBE_CLIENT_NAME")){case "WEB":return c.jumpTo(2);case "WEB_REMIX":b=a.getPlayer()}c.jumpTo(3);break;case 2:return _.p(c,a.getPlayerPromise(),4);case 4:b=c.yieldResult;c.jumpTo(3);break;case 3:return c.return(b)}})},byc=function(a){return["ytd-player",
"ytmusic-player"].includes(String(a.tagName||"").toLowerCase())},dyc=function(a){a=Math.round(a);
return a%2?a-1:a},eyc=function(a){a=Math.round(a);
return a%2===0?a-1:a},fyc=function(a){return a&&a.length<=150},gyc=function(a){if(a)return _.q(_.Vh,null,_.q("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info-details"},_.q("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-image-wrapper"},_.Qg(a.image&&a.title,function(){return _.q(_.Ss,{data:a.image,
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})})),_.q("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info"},a.title&&_.q("h3",{class:"mini-app-game-info-dialog-view-model-wiz__title"},a.title),a.primaryGenre&&_.q("span",{class:"mini-app-game-info-dialog-view-model-wiz__genre"},a.primaryGenre))),_.Qg(fyc(a.description),function(){return _.q("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-description-wrapper"},_.q("span",{class:"mini-app-game-info-dialog-view-model-wiz__game-description"},
a.description))}))},hyc=function(a){if(a&&a.infoRow){var b=_.v().resolve(_.TR),c=_.x("enable_displaying_ppn");
return _.q("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-rows-wrapper"},a.infoRow.map(function(d){return _.q("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},d.label&&_.q("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},d.label),d.attributedLabel&&_.q("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},_.q(_.wt,{text:d.attributedLabel,noPreWrap:!0})),d.value&&_.q("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},
d.value),d.attributedValue&&_.q("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},_.q(_.wt,{text:d.attributedValue,noPreWrap:!0})))}),_.Qg(c&&b.clientData.has("post_play_nonce"),function(){return _.q("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.q("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},"Post Play Nonce"),_.q("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},b.getData("post_play_nonce")))}))}},jyc=function(a){a=
a.data;
if(a){var b=a.dialogTitle;b=_.q("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-header"},a.dialogTitle&&_.q("h2",{class:"mini-app-game-info-dialog-view-model-wiz__header-title"},b))}else b=void 0;var c=gyc(a),d=hyc(a);if(a){var e=a.closeButton;a=_.q("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-footer"},a.closeButton&&_.q("div",null,iyc(e)))}else a=void 0;return _.q("yt-mini-app-game-info-dialog-view-model",{class:"mini-app-game-info-dialog-view-model-wiz"},
b,c,d,a)},kyc=function(a){var b,c,d;
if(a=(b=a.createPlaylistDialogFormSchema)==null?void 0:(c=b.fieldSchemas)==null?void 0:(d=c.title)==null?void 0:d.validationSchema)for(b=[a.syncStep,a.asyncStep].filter(function(e){return e!==void 0}),b=_.h(b),c=b.next();!c.done;c=b.next()){c=c.value.rules;
if(!c)break;c=_.h(c);for(c=c.next();!c.done;c=c.next())return _.y(c.value,_.Cnc)}},myc=function(a){var b,c,d;
if(a=(b=a.createPlaylistDialogFormSchema)==null?void 0:(c=b.fieldSchemas)==null?void 0:(d=c.visibility)==null?void 0:d.validationSchema)for(b=[a.syncStep,a.asyncStep].filter(function(e){return e!==void 0}),b=_.h(b),c=b.next();!c.done;c=b.next()){c=c.value.rules;
if(!c)break;c=_.h(c);for(d=c.next();!d.done;d=c.next())if(d=_.y(d.value,lyc))return b=void 0,(b=d.translations)==null?void 0:b.visibilityNotValidErrorMessage}},nyc=function(){var a,b;
return(b=(a=_.v().resolve(_.Wi(_.Ns)))==null?void 0:a())!=null?b:!1},oyc=function(a,b){a:switch(b){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":b="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";
break a;default:b="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:a,style:b,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},pyc=function(a){_.ho(a,"yt-refit-popups-action")},ryc=function(a){var b=a.data;
var c=a.disablePadding;var d=a.className;var e=_.Rl(),g=oyc(b.banner,b.assetContainerPaddingStyle),k=oyc(b.imageBanner,b.assetContainerPaddingStyle),m=b.assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET",n=b.assetContainerMaxHeight;_.vi(function(){var r;(r=e.value)==null||r.addEventListener("image-loaded",function(){pyc(e.value)})});
_.wh(function(){var r;(r=e.value)==null||r.removeEventListener("image-loaded",function(){pyc(e.value)})});
a={};return _.q("yt-dialog-header-view-model",{el:e,class:_.lt(d,(a.ytDialogHeaderViewModelHost=!0,a.ytDialogHeaderViewModelHostDisablePadding=!!c,a))},_.Qg(b.banner,function(){var r={};return _.q("div",{class:_.lt(d,(r.ytDialogHeaderViewModelBanner=!0,r.ytDialogHeaderViewModelBannerFullBleed=!!m,r)),style:"max-height: "+(n?n+"px":"")},_.q(_.rL,{data:g,className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}),_.Qg(b.imageBanner,function(){var r={};
return _.q("div",{class:_.lt(d,(r.ytDialogHeaderViewModelBanner=!0,r.ytDialogHeaderViewModelBannerFullBleed=!!m,r)),style:_.rt({"max-height":function(){return n!==void 0?n+"px":void 0}})},_.q(_.rL,{data:k,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}),_.Qg(b.customAssetContainer,function(){return _.q("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},qyc(b.customAssetContainer))}),_.Qg(b.customBanner,function(){return _.q("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},qyc(b.customBanner))}),_.Qg(b.headline,function(){return _.q("h2",null,_.q(_.wt,{text:b.headline,
className:"ytDialogHeaderViewModelText"}))}))},tyc=function(a){var b=a.data;
a={};a=_.lt("yt-panel-header-view-model-wiz",(a["yt-panel-header-view-model-wiz--hide-divider"]=!!b.shouldHideDivider,a["yt-panel-header-view-model-wiz--compact"]=!!b.subtitle,a));return _.q("yt-panel-header-view-model",{class:a},_.q("div",{class:"yt-panel-header-view-model-wiz__title-wrapper"},_.Qg(b.title,function(){return _.q(_.wt,{text:b.title,className:"yt-panel-header-view-model-wiz__title"})}),_.Qg(b.subtitle,function(){return _.q(_.wt,{text:b.subtitle,
className:"yt-panel-header-view-model-wiz__subtitle"})})),_.Qg(b.trailingButtons,function(){return _.q("div",{class:"yt-panel-header-view-model-wiz__trailing-buttons"},syc(b.trailingButtons,{buttonViewModel:{className:"yt-panel-header-view-model-wiz__button"}}))}))},uyc=function(a){var b=21;
if(!a)return b;b+=a.headerTitle?27:0;b+=a.headerTitle&&a.headerActionHeader?4:0;return b+=a.headerTitle&&a.headerSubtitle?16:0},vyc=function(a){var b=0;
if(!a)return b;b+=a.footerPrimaryButton||a.footerSecondaryButton?48:0;b+=a.footerTrailingLabel||a.footerLeadingLabel?30:0;return b+=a.footerPrimaryButton||a.footerSecondaryButton||!a.footerTrailingLabel&&!a.footerLeadingLabel?0:12},wyc=function(a){var b=new _.jj,c=a;
return{subscribe:function(d){b.subscribe("changed",d)},
dispatch:function(d,e){var g=c;d==="Touch Start"?c=Object.assign({},g,{isAnimating:!1,initialY:e.event.touches[0].clientY}):d==="Touch Move"?(d=Math.min(e.fullContentWrapperHeight,e.contentHeightMap[e.contentWrapperId]+uyc(e.header)-vyc(e.footer)),c=Object.assign({},g,{currentY:Math.max(e.contentScrollable?-1*(g.initialY-24):0,e.event.touches[0].clientY-g.initialY),maxHeightForContentWrapper:Math.min(d,Math.max(0,(g.isFullScreen?d:e.contentWrapperHeight)-g.currentY))})):c=d==="Snap To Full Screen"?
Object.assign({},g,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:e.maxHeight}):d==="Snap To Neutral Position"?Object.assign({},g,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:e.maxHeight}):d==="Close Sheet"?Object.assign({},g,{isAnimating:!0,currentY:e.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:e.maxHeight}):g;b.publish("changed",c)}}},xyc=function(a){return _.ot(function(b){a(b);
return!1})},yyc=function(){_.v().resolve(_.GJ).closeSheet()},zyc=function(a){var b,c,d,e,g,k,m,n,r,t,u;
return{headerTitle:(b=a.headerTitle)==null?void 0:b.call(a),headerSubtitle:(c=a.headerSubtitle)==null?void 0:c.call(a),headerActionHeader:a.headerActionHeader,footerPrimaryButton:a.footerPrimaryButton,footerSecondaryButton:a.footerSecondaryButton,footerButtonType:(d=a.footerButtonType)==null?void 0:d.call(a),footerLeadingLabel:(e=a.footerLeadingLabel)==null?void 0:e.call(a),footerTrailingLabel:(g=a.footerTrailingLabel)==null?void 0:g.call(a),shouldShowIcons:(k=a.shouldShowIcons)==null?void 0:k.call(a),
skipContentClick:(m=a.skipContentClick)==null?void 0:m.call(a),additionalClassName:(n=a.additionalClassName)==null?void 0:n.call(a),onClosedCallback:a.onClosedCallback,focusOnClose:(r=a.focusOnClose)==null?void 0:r.call(a),isDisabled:(t=a.isDisabled)==null?void 0:t.call(a),disabledCommand:(u=a.disabledCommand)==null?void 0:u.call(a),headerFn:a.headerFn,contentWiz:a.contentWiz,footerFn:a.footerFn}},Ayc=function(a){var b=_.v().resolve(_.GJ),c=_.ot(function(){return void b.closeSheet()});
return _.q("yt-contextual-sheet-layout",{class:"yt-contextual-sheet-layout-wiz","on:click":c},_.Qg(a.header,function(){return _.q("div",{class:"yt-contextual-sheet-layout-wiz__header-container"},a.header())}),_.Qg(a.content,function(){return _.q("div",{class:"yt-contextual-sheet-layout-wiz__content-container"},a.content())}),_.Qg(a.footer,function(){return _.q("div",{class:"yt-contextual-sheet-layout-wiz__footer-container"},a.footer())}))},Dyc=function(a){var b=a.data;
a={};a=_.lt("yt-sheet-view-model-wiz",(a["yt-sheet-view-model-wiz--contextual"]=!0,a["yt-sheet-view-model-wiz--disable-backdrop-filter"]=_.x("web_disable_backdrop_filter"),a));return _.q("yt-sheet-view-model",{class:a},_.Qg(b,function(){return _.q(Byc,{header:function(){return _.q(_.Vh,null,Cyc(b==null?void 0:b.header))},
content:function(){return _.q(_.Vh,null,Cyc(b==null?void 0:b.content,{listViewModel:{isCompact:!0,inPopup:!0}}))},
footer:function(){return _.q(_.Vh,null,Cyc(b==null?void 0:b.footer))}})}))},Eyc=function(a){switch(a){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""}},Fyc=function(a){switch(a){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""}},Gyc=function(a){switch(a){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""}},Hyc=function(a,b,c){b.forEach(function(d){_.qF(_.v().resolve(_.xH),d)});
_.ho(a,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",c])},Lyc=function(a,b,c,d){var e=_.y(c,_.TE).commandLifeCycleConfig;
e&&e.onStartCommand&&_.no(a,[e.onStartCommand],b);_.aw(b);var g=_.Qt.instance;g&&_.Rt(g,c)?_.St(g,c,d).then(function(k){if(!k||(k==null?0:k.error))return k=_.y(c,_.TE).serializedTransactionFlowLoggingParams,_.bw(b),_.Pn(new kZ("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",k));_.bw(b);return{data:k}}).then(function(k){_.bw(b);
Iyc(k.data);var m=k.data.command;m&&_.no(a,[m],b);m=Jyc(c,k.data);if(!m){var n=k.data;k=!1;if(n&&n.command&&_.y(n.command,_.po)){var r;n=((r=_.y(n.command,_.po))==null?void 0:r.commands)||[];for(r=0;r<n.length;r++)if(_.y(n[r],_.KFb)){k=!0;break}}k||_.zG('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!m&&e&&e.onSuccessCommand?_.no(a,[e.onSuccessCommand],b):m&&e&&e.onFailureCommand&&_.no(a,[e.onFailureCommand],b)},function(){_.bw(b);
e&&e.onFailureCommand&&_.no(a,[e.onFailureCommand],b);Kyc(c)}):_.Bl(Error("ul"),"ERROR")},Myc=function(a,b,c){var d=[b];
c&&d.push(c);return _.mo(a,d).then(function(e){var g=_.y(b,_.TE).serializedTransactionFlowLoggingParams,k=e.data,m=Jyc(b,k);m?e=_.Pn(new kZ(m,g)):Iyc(k);return e},function(){var e=_.y(b,_.TE).serializedTransactionFlowLoggingParams;
Kyc(b);return _.Pn(new kZ("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",e))})},Jyc=function(a,b){a=_.y(a,_.TE).serializedTransactionFlowLoggingParams;
var c=null;switch(b.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":c="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":c="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":c="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}c?_.Nq(c,a):Otc(a);return c},Kyc=function(a){_.Nq("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.y(a,_.TE).serializedTransactionFlowLoggingParams)},
Iyc=function(a){if(a.trackingParams){var b=_.Fn(),c=_.En();
b&&c&&_.Ro(b,c,_.qs(a.trackingParams))}},Nyc=function(a,b,c){var d=_.Qt.instance,e=_.v4a(_.Ei("YPC_MB_URL")),g=(new _.t4a).init(),k=_.u4a(),m=_.y(c,_.GFb).languageCode;
m===void 0?_.Bl(Error("Ai"),"ERROR"):_.Gz([g,e]).then(function(){var n={ctk:payments.business.integration.ClientTokenFactory.createClientToken(m,k)};d&&_.Rt(d,c)?_.St(d,c,n).then(function(r){return{data:r}}).then(function(r){_.go(b,"yt-service-request-completed",r);
r.code!=="ERROR"&&(r=r.data.command)&&_.no(a,[r],b)}):_.Bl(Error("ul"),"ERROR")})},Qyc=function(a,b,c,d){var e=_.Qt.instance;
e&&_.Rt(e,c)?_.St(e,c,d).then(function(g){return{data:g}}).then(function(g){Oyc(a,b,c,g)},function(){Pyc(c)}):(e=_.v().resolve(_.Wi(_.wq)))&&e.requestDataForServiceEndpoint(c,d).then(function(g){Oyc(a,b,c,g)},function(){Pyc(c)})},Oyc=function(a,b,c,d){_.go(b,"yt-service-request-completed",d);
if(d.code&&d.code=="ERROR")Pyc(c);else{(d=d.data.commands)&&_.no(a,d,b);var e;(a=(e=_.y(c,_.MFb))==null?void 0:e.serializedYpcPauseFlowLoggingParams)&&a&&_.JW("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",a)}},Pyc=function(a){var b;
(a=(b=_.y(a,_.MFb))==null?void 0:b.serializedYpcPauseFlowLoggingParams)&&a&&_.JW("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",a,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},Tyc=function(a,b,c){var d=_.Qt.instance;
d&&_.Rt(d,c)?_.St(d,c).then(function(e){return{data:e}}).then(function(e){Ryc(a,b,c,e)},function(){Syc(c)}):(d=_.v().resolve(_.Wi(_.wq)))&&d.requestDataForServiceEndpoint(c).then(function(e){Ryc(a,b,c,e)},function(){Syc(c)})},Ryc=function(a,b,c,d){_.go(b,"yt-service-request-completed",d);
d.code&&d.code=="ERROR"?Syc(c):((d=d.data.commands)&&_.no(a,d,b),(a=_.y(c,_.NFb).serializedYpcResumeFlowLoggingParams)&&a&&_.JW("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",a))},Syc=function(a){(a=_.y(a,_.NFb).serializedYpcResumeFlowLoggingParams)&&a&&_.JW("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",a,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},Uyc=function(a){a=a===void 0?{}:a;
_.v().resolve(_.hec).showFeedbackDialog(a.customProductData,a.feedbackContent,a.onFeedbackSubmitted,a.bucket)},Vyc=function(a){a=a===void 0?{}:a;
_.v().resolve(_.hec).showHelpDialog(a.helpContext,a.articleId,a.productData)},Wyc=function(){Vyc()},Xyc=function(){Uyc()},Zyc=function(a,b,c){var d,e,g,k,m,n,r;
return _.l(function(t){switch(t.nextAddress){case 1:d=_.y(a,Yyc);if((e=d)==null?0:e.productId){n={productId:d.productId,bucket:d.bucket,enableAnonymousFeedback:(m=d.enableAnonymousFeedback)!=null?m:!0,allowNonLoggedInFeedback:!0};r={feedbackChoice:c.feedbackChoice};if(!_.x("web_collect_offline_state")){t.jumpTo(8);break}_.me(t,9);return _.p(t,Ytc(r),11)}k={bucket:(g=d)==null?void 0:g.bucket};if(!_.x("web_collect_offline_state")){t.jumpTo(4);break}k.customProductData={};_.me(t,5);return _.p(t,Ytc(k.customProductData),
7);case 7:_.Jj(t,4);break;case 5:_.re(t);case 4:Uyc(k);t.jumpTo(0);break;case 11:_.Jj(t,8);break;case 9:_.re(t);case 8:_.o3a(r),_.n3a("GFEEDBACK",r),d.productId==="5295751"&&(r.client_attestation=Number(_.Ei("CATSTAT",0))),d.productId==="5295751"&&(r.client_time=Date.now()/1E3/3600),d.productId==="5295751"&&(r.original_playback_id=_.sKb||""),_.uyb(n,r),_.se(t)}})},$yc=function(a){if(a=_.y(a,_.yTa)){var b={bucket:a.bucketIdentifier};
a.additionalDatas&&(b.customProductData={},a.additionalDatas.forEach(function(c){if(c=c.userFeedbackEndpointProductSpecificValueData)b.customProductData[c.key]=c.value}));
Uyc(b)}},azc=function(a){var b=_.Nl.getInstance(),c=_.to("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?"),d=_.to("DELETE",void 0,"Delete"),e=_.to("CANCEL",void 0,"Cancel");
c={openPopupAction:esc(c,void 0,d,e,{signal:"DELETE_ALL_DOWNLOADS"})};_.NB(b,[c],a)},czc=function(){return _.l(function(a){return a.nextAddress==1?_.p(a,_.v().resolve(_.dW),2):_.p(a,bzc(),0)})},dzc=function(a){var b,c;
return _.l(function(d){return d.nextAddress==1?(c=(b=_.y(a,_.Kl))==null?void 0:b.targetId)?_.p(d,_.v().resolve(_.dW),3):d.jumpTo(0):_.p(d,_.v().resolve(_.cW).deleteVideo(c),0)})},fzc=function(a){var b,c;
return _.l(function(d){return d.nextAddress==1?(c=(b=_.y(a,_.Kl))==null?void 0:b.targetId)?_.p(d,_.v().resolve(_.dW),3):d.jumpTo(0):_.p(d,ezc(_.v().resolve(_.cW),c),0)})},hzc=function(a){var b,c;
return _.l(function(d){return(c=(b=_.y(a,_.Kl))==null?void 0:b.targetId)?_.p(d,gzc(c),0):d.jumpTo(0)})},jzc=function(){_.x("kevlar_woffle_refresh_dl_load_killswitch")||izc()},lzc=function(){_.x("kevlar_woffle")&&_.Jq.instance&&kzc()},nzc=function(a){var b;
if((b=_.y(a,_.qu))==null||!b.videoId)return!1;mzc(_.v().resolve(_.cW),_.y(a,_.qu),a.clickTrackingParams);return!0},pzc=function(a){var b;
if((b=_.y(a,_.ru))==null||!b.playlistId)return!1;ozc(_.v().resolve(_.cW),_.y(a,_.ru),a.clickTrackingParams);return!0},rzc=function(a){var b=_.y(a,_.QEb);
(b==null?void 0:b.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(b==null?void 0:b.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||qzc(_.v().resolve(_.cW),_.y(a,_.QEb))},tzc=function(a){a=_.y(a,_.vDb);
var b;(a==null?0:(b=a.actions)==null?0:b.length)&&szc(a)},wzc=function(a){var b,c;
return _.l(function(d){b=_.y(a,uzc);return(c=b)!=null&&c.localWatchHistoryCommandType?_.p(d,vzc(b),0):d.return()})},xzc=function(a){setTimeout(function(){requestAnimationFrame(a)},80)},yzc=function(a){return Object.entries(a).map(function(b){return b.join(":")}).join(";")},Azc=function(a){var b,c,d;
_.l(function(e){if(e.nextAddress==1)return _.p(e,zzc(),2);b=e.yieldResult;c=_.hs.instance;switch(b){case "granted":d=a.getLocationCommand;break;case "denied":d=a.openDeniedDialogAction;break;case "prompt":d=a.openCollectionDialogAction;break;default:d=a.openCollectionDialogAction}d&&c.resolveCommand(d);_.se(e)})},zzc=function(){var a,b;
return _.l(function(c){if(c.nextAddress==1)return a="prompt",navigator.permissions?_.p(c,navigator.permissions.query({name:"geolocation"}),3):c.jumpTo(2);c.nextAddress!=2&&(b=c.yieldResult,a=b.state);return c.return(a)})},Czc=function(){_.l(function(a){return _.p(a,_.Bzc(),0)})},Dzc=function(){var a,b,c;
return _.l(function(d){if(d.nextAddress==1)return a=_.v().resolve(_.xq),a?_.p(d,_.St(a,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.Dl(Error("xl")),d.return(void 0));if(b=d.yieldResult){if(b.errorMetadata)return _.Dl(Error("yl`"+b.errorMetadata.status+"`"+b.error)),d.return(void 0);c=b.datasyncIds;_.jfc=c.length;return d.return(c)}_.Dl(Error("zl"));return d.return(void 0)})},Ezc=function(){Dzc().then(function(a){a&&(xsc(a),Qtc(a),ntc(a),$tc(a))})},Fzc=function(a){_.zk.addLowPriorityJob(function(){var b,
c,d,e,g;
return _.l(function(k){switch(k.nextAddress){case 1:if(_.x("ytidb_clear_optimizations_killswitch")){k.jumpTo(2);break}b=_.oj("clear");if(b.startsWith("V")&&b.endsWith("||")){var m=[b];xsc(m);Qtc(m);ntc(m);$tc(m);return k.return()}c=otc();d=auc();return _.p(k,Rtc(),3);case 3:return e=k.yieldResult,_.p(k,ysc(),4);case 4:if(g=k.yieldResult,!(c||d||e||g))return k.return();case 2:a.isNetworkAvailable()?Ezc():a.listenOnce("publicytnetworkstatus-online",Ezc),_.se(k)}})})},lZ=function(a){a={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:_.Up(a)}}}};_.hs.instance&&_.hs.instance.resolveCommand(a)},Gzc=function(a){if(a){var b=_.ms();
_.mF(b,3854,void 0,{layer:0,parentLayer:4});switch(a){case 1:var c=238708;break;case 2:c=238715;break;case 3:c=238710;break;case 6:c=238709}c&&(a=_.ls(b,{veType:c}))&&_.pF(b,a)}},Hzc=function(a){if(a){var b=_.ms();
_.mF(b,3854,void 0,{layer:0,parentLayer:4});switch(a){case 1:var c=238714;break;case 2:c=238711;break;case 8:c=238709;break;case 7:c=238713;break;case 3:case 4:case 5:c=238712}c&&(a=_.ls(b,{veType:c}))&&_.pF(b,a)}},Izc=function(a){switch(a.latencyType){case 0:_.Io("consent_primitive_flow");
_.Jo("cpit",a.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.Jo("cpist",a.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.Jo("cprtif",a.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.Jo("cprtli",a.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.Jo("cprt",a.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.Jo("cpdt",a.timestampEpochMillis,"consent_primitive_flow");break;case 8:_.Jo("cpjct",a.timestampEpochMillis,"consent_primitive_flow")}},
Szc=function(a,b){var c,d,e,g,k,m,n,r,t,u,w,A,C,G,J,I,R,ca,V,fa;
return _.l(function(aa){switch(aa.nextAddress){case 1:_.me(aa,2);(d=(c=_.y(a,Jzc))==null?void 0:c.serializedConsentRequest)||(d=(e=_.y(a,Kzc))==null?void 0:e.serializedConsentRequest);d&&(g=Lzc(_.db(d)));if(g===void 0)return aa.return();k=Mzc(g);k.latencyCallback=Izc;b&&Nzc(k,function(){b.then(function(ma){ma.pauseVideo();(new Ozc).increment()})});
return((m=_.y(a,Jzc))==null?void 0:m.consentAction)==="CONSENT_ACTION_PREWARM"||((n=_.y(a,Kzc))==null?void 0:n.consentAction)==="CONSENT_ACTION_PREWARM"?_.p(aa,Pzc(k),5):_.p(aa,Qzc(k),6);case 6:r=aa.yieldResult;t=_.Ex(r,mZ);if(t===1){if(((u=_.Sx(r,nZ,1,mZ))==null?void 0:_.Px(u,1))===1||((w=_.Sx(r,nZ,1,mZ))==null?void 0:_.Px(w,1))===2||((A=_.Sx(r,nZ,1,mZ))==null?void 0:_.Px(A,1))===3)_.y(a,Kzc)?lZ(_.to("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
lZ(_.to("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));Gzc((C=_.Sx(r,nZ,1,mZ))==null?void 0:_.Px(C,1),_.Vf(r,Rzc,3,_.Wf()))}else t===2?(((G=oZ(r))==null?void 0:_.Px(G,1))===5?_.y(a,Kzc)?lZ(_.to("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):lZ(_.to("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((J=oZ(r))==null?void 0:_.Px(J,1))===1||((I=oZ(r))==null?void 0:_.Px(I,1))===4?lZ(_.to("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((R=oZ(r))==null?void 0:_.Px(R,1))===7&&((ca=g)==null?void 0:(V=_.Xj(ca,pZ,4))==null?void 0:_.Px(V,4))!==1&&lZ(_.to("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),Hzc((fa=oZ(r))==null?void 0:_.Px(fa,1))):lZ(_.to("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));aa.jumpTo(5);break;case 5:_.Jj(aa,0);break;case 2:_.re(aa),lZ(_.to("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.se(aa)}})},Uzc=
function(){if(!Tzc.has("Worker")){Tzc.set("Worker",!0);
var a={api:"BROWSER_API_WEB_WORKER"};a.available="Worker"in window?!0:!1;_.zl("apiTest",a)}},Vzc=function(a){return typeof a==="undefined"?"-1":String(Math.ceil(a/1048576))},Zzc=function(a,b){Wzc(new Xzc(_.y(b,Yzc).addToken,_.y(b,Yzc).commonToken)).then(function(){_.go(a,"yt-invoke-instrument-manager-action-completed")},function(c){_.go(a,"yt-invoke-instrument-manager-action-error",c)})},$zc={},aAc=function(a){return _.Nja($zc,a,function(){return lY(_.h9a,a)>=0})},bAc=function(a){return _.Xx(a)},
cAc=function(a){var b=1;
a=a.split(":");for(var c=[];b>0&&a.length;)c.push(a.shift()),b--;a.length&&c.push(a.join(":"));return c},dAc=function(a,b){b=a.aspectRatio()<=b.aspectRatio()?b.width/a.width:b.height/a.height;
a.scale(b)},eAc=function(a,b){b=a.aspectRatio()>b.aspectRatio()?b.width/a.width:b.height/a.height;
return a.scale(b)},fAc=function(a){var b=new _.rz;
return _.Tx(b,11,a)},gAc=function(a){var b={};
a=a.getAllResponseHeaders().split("\r\n");for(var c=0;c<a.length;c++)if(!_.qa(a[c])){var d=cAc(a[c]),e=d[0];d=d[1];if(typeof d==="string"){d=d.trim();var g=b[e]||[];b[e]=g;g.push(d)}}return _.yf.map(b,function(k){return k.join(", ")})},zY=function(a,b){return a.JSC$7648_xhr_?a.JSC$7648_xhr_.getResponseHeader(b):null},qZ=function(a,b,c){Array.isArray(c)||(c=[String(c)]);
_.gib(a.JSC$7879_queryData_,b,c);return a},kzc=function(){var a=_.Jq.instance;
_.l(function(b){return a.deferredInstallPrompt?_.p(b,a.deferredInstallPrompt.prompt(),0):b.jumpTo(0)})},hAc=function(a,b,c){if(_.Sa(a))_.Mi(a,b,c);
else for(a=_.lmb(a);;){var d=a.next();if(d.done)break;b.call(c,d.value,void 0,a)}},iAc={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}"]},dBc,eBc,fBc,gBc,hBc,iBc,jBc,kBc,lBc,gzc,ezc,bzc,mBc,nBc,oBc,pBc,qBc,ozc,mzc,rBc,sBc,tBc,izc,qzc,uBc,szc,vBc,vzc,wBc,xBc,yBc,zBc,ABc,BBc,CBc,wZ,DBc,EBc,
dxc,axc,FBc,GBc,HBc,IBc,JBc,KBc,LBc,MBc,NBc,OBc,PBc;iAc={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 jAc=function(a,b){var c=[];hAc(b,function(d){try{var e=_.dn.prototype.getWrapper.call(this,d,!0)}catch(g){if(g=="Storage: Invalid value was encountered")return;throw g;}e===void 0?c.push(d):_.kmb(e)&&c.push(d)},a);
return c},kAc=function(a,b){jAc(a,b).forEach(function(c){_.dn.prototype.remove.call(this,c)},a)},lAc=function(a){var b=_.WD;
b._minimumZ=Math.max(b._minimumZ,a)},mAc=["www.youtube-nocookie.com",
"www.youtubeeducation.com","youtube.googleapis.com"],nAc=function(a,b){_.Tf(a.qc);a.qc=b},oAc=function(a,b,c,d){a.setState(5);
var e=!!a.r1a&&mAc.includes(_.Si(a.r1a)||"");try{var g=new _.Pz({program:b,globalName:c,u8:{disable:!_.x("att_web_record_metrics")||!_.x("att_skip_metrics_for_cookieless_domains_ks")&&e,ou:"aGIf"}});g.gba.then(function(){a.setState(6);d&&d(b)});
nAc(a,g)}catch(k){a.setState(7),k instanceof Error&&_.Dl(k)}},pAc=function(a,b,c,d,e,g){var k=k===void 0?"trayride":k;
c?(a.setState(2),_.Ln(c,function(){if(window[k])oAc(a,d,k,e);else{a.setState(3);var m=_.sBa(c),n=document.getElementById(m);n&&(_.Asa(m),n.parentNode.removeChild(n));_.Dl(new _.qj("BL:ULB",c))}},g)):b?(g=_.lg("SCRIPT"),b instanceof _.Td?_.Wd(g,b):g.textContent=b,g.nonce=_.Sd(document),document.head.appendChild(g),document.head.removeChild(g),window[k]?oAc(a,d,k,e):(a.setState(4),_.Dl(new _.qj("BL:ULBJ")))):_.Dl(new _.qj("BL:ULV"))},qAc=function(){this.state=1;
this.qc=null;this.r1a=void 0};
_.f=qAc.prototype;_.f.initialize=function(a,b,c,d){this.r1a=d;if(a.program){var e;d=(e=a.interpreterUrl)!=null?e:null;if(a.interpreterSafeScript)e=_.Wqa(a.interpreterSafeScript);else{var g;e=(g=a.interpreterScript)!=null?g:null}a.interpreterSafeUrl&&(d=_.Ak(a.interpreterSafeUrl).toString());pAc(this,e,d,a.program,b,c)}else _.Dl(Error("hf"))};
_.f.isInitialized=function(){return!!this.qc};
_.f.getState=function(){return this.state};
_.f.isLoading=function(){return this.state===2};
_.f.invoke=function(a){a=a===void 0?{}:a;var b;this.qc?b=_.Xfb(this.qc,{aw:a}):b=null;return b};
_.f.dispose=function(){nAc(this,null);this.setState(8)};
_.f.setState=function(a){this.state=a};
var rAc=function(a,b){return a.qc.snapshot(b)},sAc=function(a,b){var c=_.$i("botguard_async_snapshot_timeout_ms",3E3);
b=b===void 0?{}:b;c=c===void 0?3E3:c;return a.qc?new Promise(function(d,e){var g=!1,k=_.zk.addJob(function(){g=!0;e(Error("jf"))},1,c);
a.qc?rAc(a,{aw:b}).then(function(m){_.zk.cancelJob(k);g||d(m)}).catch(function(m){_.zk.cancelJob(k);
g||e(m)}):(_.zk.cancelJob(k),d(null))}):Promise.resolve(null)},tAc=["att/log"],uAc;
uAc={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var vAc={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},wAc=function(a,b){return _.tp(a,{mode:"readwrite",enableRetries:!0},function(c){return _.aEa(c,b,"settingEntity")})},xAc=function(a,b,c){return _.tp(a,{mode:"readonly",
enableRetries:!0},function(d){return _.iJb(d,b,c)})},yAc=function(a){if(!a.storage)return!1;
a:{if(a.storage){try{var b=a.storage.get("TLPQtimestamp")}catch(c){}a=Number(b);if(!isNaN(a))break a}a=void 0}return a?Date.now()-a<864E5:!1},zAc=function(a,b){a.queueProxy&&b.forEach(function(c){if(c.videoId&&c.trackingParams&&a.queueProxy instanceof _.MF){var d=_.Fn();
a.queueProxy.attributionData.set(c.videoId,{enqueueingVe:_.qs(c.trackingParams).getAsJson(),enqueueingCsn:d?d:void 0,clientEnqueueingTimeMs:Math.floor((0,_.Uj)()).toString()})}})},AAc=function(a){var b=_.KKb(a);
b!=a.currentSnapState_&&(a.currentSnapState_=b,a.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},rZ=function(a){this.JSC$10781_networkManager_=a;
this.partCallbacks_=[]};
rZ.prototype.getCacheKeyForEndpoint=function(a){return _.aIa(a,!1)};
rZ.prototype.onPartsCallback_=function(a){this.partCallbacks_.forEach(function(b){a&&b(a)})};
var sZ=function(a,b,c){rZ.call(this,a);this.player_=b;this.autoplayData_=c};
_.z(sZ,rZ);sZ.prototype.getCacheKeyForEndpoint=function(a){return _.aIa(a,!!this.autoplayData_)};
sZ.prototype.getTempData=function(a,b){b=b.timeBeforeNextVideo;a={itct:a.clickTrackingParams,lact:_.$k(),pbis:b,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(a.autonav=1);return a};
sZ.prototype.getXhrParams=function(a){return Object.assign({pbj:"prefetch"},a)};
sZ.prototype.getParams=function(a){a={frags:a.fragmentsRequested.join(",")};_.x("kevlar_droppable_prefetchable_requests")&&(a.prefetch=1);return a};
var BAc=function(a){a.playerEvents_.forEach(function(b){a.player.removeEventListener(b.eventName,b.callback)});
a.playerEvents_.length=0},tZ=function(a,b,c){this.player=a;
this.JSC$10791_taskManager=b;this.prefetchDelay=c;this.completionResolver_=null;this.playerEvents_=[]};
tZ.prototype.start=function(){var a=this;this.completionResolver_=_.Tt();_.Hz(this.completionResolver_.promise,function(){BAc(a);a.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var CAc=function(a,b,c){a.player.addEventListener(b,c);a.playerEvents_.push({eventName:b,callback:c})},DAc={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},EAc={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},FAc=function(a,b,c){tZ.call(this,a,b,c);this.cueId_="playbackTrigger-"+Math.random()};
_.z(FAc,tZ);
FAc.prototype.prepareTrigger=function(a){var b=this,c=this.player.getDuration(),d=this.player.getVideoData(),e=d.isLive&&d.hasProgressBarBoundaries;if(e&&d.progressBarEndPositionUtcTimeMillis){var g=d.progressBarEndPositionUtcTimeMillis/1E3;isNaN(g)||(c=g)}var k=0;this.prefetchDelay>=0?e?d.progressBarStartPositionUtcTimeMillis&&(d=d.progressBarStartPositionUtcTimeMillis/1E3,isNaN(d)||(k=d+this.prefetchDelay)):k=this.prefetchDelay:k=c+this.prefetchDelay;e?this.player.addUtcCueRange(this.cueId_,k,c):
this.player.addCueRange(this.cueId_,k,c);_.Hz(a.promise,function(){b.player.removeCueRange(b.cueId_)});
CAc(this,"onCueRangeEnter",function(m){m==b.cueId_&&a.resolve(c-k)})};
var GAc=function(a,b){a.fragmentConfiguration_[b].requiredKeys.every(function(c){return!!a.prefetchedData_[c]})&&(a.validatedFragments_.push(b),b=a.missingFragments_.indexOf(b),b!==-1&&a.missingFragments_.splice(b,1))},HAc=function(a){a.prefetchedFragments_.forEach(function(b){GAc(a,b)})},IAc=function(a,b,c){this.pageFragments_=a;
this.prefetchedFragments_=b;this.fragmentConfiguration_=EAc;this.prefetchedData_=c;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;HAc(this)},JAc=function(){},KAc=function(a){this.JSC$10805_playlistManager_=a};
_.z(KAc,JAc);KAc.prototype.getPrefetchEndpoint=function(){return this.JSC$10805_playlistManager_.getAutoplayEndpoint()};
var LAc=function(a){this.autonavEndpoints_=a};
_.z(LAc,JAc);LAc.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var MAc=function(a,b,c,d,e){this.autonavEndpoints=a;this.foregroundTrigger=b;this.backgroundTrigger=c;this.pageType=d;this.isInPlaylist=e},NAc=function(a,b){if(a.webPrefetchData&&a.webPrefetchData.navigationEndpoints&&a.webPrefetchData.navigationEndpoints.length){a=a.webPrefetchData.navigationEndpoints;
var c=_.y(a[0],_.Vn);if(c.watchEndpointSupportedPrefetchConfig&&c.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var d=c.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;c=d.playbackRelativeSecondsPrefetchCondition;c=typeof c==="number"&&Math.abs(c)<b.videoDuration?c:void 0;d=d.countdownUiRelativeSecondsPrefetchCondition;d=typeof d!=="number"||_.x("prefetch_job_config_cleanup_ks")&&b.inPlaylist?void 0:d;if(typeof d==="number")return new MAc(a,b.makeUpNextTrigger(d),b.makePlaybackTrigger(d),
"watch",b.inPlaylist);if(typeof c==="number")return new MAc(a,b.makePlaybackTrigger(c),null,"watch",b.inPlaylist)}}},OAc=function(a){return a.prefetchJobConfig_.backgroundTrigger?_.Ii(_.vCa)()==0?a.prefetchJobConfig_.backgroundTrigger:a.prefetchJobConfig_.foregroundTrigger:a.prefetchJobConfig_.foregroundTrigger},PAc=function(a){_.Cz(document,"visibilitychange",a.onVisibilityChange_,!1,a)},uZ=function(a){rZ.call(this,a)};
_.z(uZ,rZ);uZ.prototype.getCacheKeyForEndpoint=function(a){return rZ.prototype.getCacheKeyForEndpoint.call(this,a)};
uZ.prototype.getTempData=function(){return{}};
uZ.prototype.getXhrParams=function(a){return a};
uZ.prototype.getParams=function(){return{}};
var QAc=function(a,b,c){var d=a.prefetchDelay*1E3;if(Math.abs(d)>b)c.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var e=d,g=b-d;d<0&&(e=b+d,g=Math.abs(d));var k=a.JSC$10791_taskManager.addJob(function(){c.resolve(g/1E3)},10,e);
c.promise.thenCatch(function(){a.JSC$10791_taskManager.cancelJob(k)})}},RAc=function(a,b,c){tZ.call(this,a,b,c)};
_.z(RAc,tZ);RAc.prototype.prepareTrigger=function(a){var b=this;CAc(this,"onAutonavCoundownStarted",function(c){QAc(b,c,a)})};
var SAc=function(a){a.pendingPrefetchJob_&&(a.pendingPrefetchJob_.cancel(),a.pendingPrefetchJob_=null)},TAc=function(a,b,c){if(!a.triggeredTargets.has(b)){var d=_.xLb(a,b);
d.action=c;_.vLb(a,b,d)}},UAc=function(a){_.EOb();
_.JCa("cpt")&&_.Dl(Error("ih"));_.ja.requestAnimationFrame(function(){_.ja.setTimeout(function(){_.Jo("cpt");var b=_.Mo("vpl"),c=_.Mo("cpt");b&&c&&_.Jo("ol",Math.max(b,c))})});
try{_.Jo("fr_s"),a()}catch(b){_.Bl(b)}_.ja.requestAnimationFrame(function(){_.Jo("bcp")})},VAc=function(a,b){a.serviceEndpointHandlers.push(b)},WAc=function(a,b){b=a.pendingPages_.indexOf(b);
b>-1&&a.pendingPages_.splice(b,1)},XAc=function(a,b){var c=_.WUb.indexOf(b);
c>-1&&_.WUb.splice(c,1);a.targetPage_==b?(a.abort(),_.YUb(a)):WAc(a,b)},YAc=function(a,b,c,d){b={challenge:b};
c&&(b.webResponse=c);return _.OF(a.innertubeTransportService,b,_.Zp(tAc),d)},ZAc=function(a,b,c){if(!b.challenge)throw Error("ki");
if(b.botguardData&&b.botguardData.program){var d=new qAc;d.initialize(b.botguardData,function(){sAc(d,{atr_challenge:b.challenge}).then(function(e){if(!e)throw Error("li");return YAc(a,b.challenge,e,c)}).catch(function(e){_.Dl(e);
return YAc(a,b.challenge,void 0,c)})},void 0)}else YAc(a,b.challenge,void 0,c)},$Ac=function(a,b,c){var d={};
b.ids&&(d.ids=[].concat(_.Be(b.ids)));b.engagementType&&(d.engagementType=b.engagementType);return _.OF(a.innertubeTransportService,d,_.Zp(_.zGb),c).then(function(e){if(!e)throw new _.qj("GetAttestationChallenge returned falsy");ZAc(a,e,c)}).thenCatch(function(e){_.Bl(e)})},aBc=function(a,b,c){return new _.kl(function(d,e){var g;
return _.l(function(k){if(k.nextAddress==1){var m=b.engagementType,n=b.ids,r={};n=_.h(n!=null?n:[]);for(var t=n.next();!t.done;t=n.next())t=t.value,t.encryptedVideoId?r.encryptedVideoId=t.encryptedVideoId:t.externalChannelId?r.externalChannelId=t.externalChannelId:t.commentId?r.commentId=t.commentId:t.externalOwnerId?r.externalOwnerId=t.externalOwnerId:t.artistId?r.artistId=t.artistId:t.playlistId?r.playlistId=t.playlistId:t.externalPostId?r.externalPostId=t.externalPostId:t.shareId&&(r.shareId=t.shareId);
return _.p(k,dsc(m,r),2)}g=k.yieldResult;if(!g.challenge)return _.Dl(Error("mi")),$Ac(a,b,c).then(d,e),k.return();m=g;r={challenge:m.challenge};r.webResponse=m.webResponse;r.engagementType=b.engagementType;r.ids=b.ids;_.OF(a.innertubeTransportService,r,_.Zp(tAc),c).then(d,e);_.se(k)})})},gxc=function(a,b){var c,d,e,g;
_.l(function(k){if(k.nextAddress==1){c=_.y(b,_.Lzb);if(!(c&&c.listId&&a.response&&a.response.playingVideoId)||a.listId!==c.listId)return k.return();a.index===void 0&&(a.index=0);return _.p(k,_.QJb(a.JSC$10614_playlistNetworkManager,c.listId,a.index,a.response.playingVideoId),2)}d=k.yieldResult;if(!d)return k.return();e=d.playlistId;g=d.playlistPanelRenderer;a.setPlaylistData(e,g,d.autoplayRenderer);_.se(k)})},bBc=function(a,b,c){var d=a.getParams(c),e=_.gua(b,d),g=a.getTempData(b,c);
g.endpoint=JSON.stringify(b);_.x("enable_unknown_lact_fix_on_html5")&&(_.v().resolve(_.Ft),g.lact=_.$k());var k={headers:{"X-YouTube-STS":_.Ei("STS"),"x-youtube-csoc":1}};_.Zn(e,g);return new _.kl(function(m,n){var r=a.getXhrParams(d),t;_.x("kevlar_cache_on_ttl_player")&&(t=_.mG.instance);t&&_.aLb(t,b)?_.iLb(t,b,g,window.location.href).then(function(u){u?m(u):n()},n):_.dRb(a.JSC$10781_networkManager_,b,r,a.onPartsCallback_.bind(a),k).then(function(u){u?m(u):n()},n)})},cBc=function(a,b){a.triggerPromise_=
b.start();
a.triggerPromise_.then(function(c){var d=a.prefetchEndpointProvider_.getPrefetchEndpoint();if(d){var e=DAc[a.prefetchJobConfig_.pageType].prefetchedFragments;a.prefetchRequestPromise_=bBc(a.JSC$10817_networkPrefetchRequest_,d,{fragmentsRequested:e,timeBeforeNextVideo:c});a.prefetchResponseCacheKey_=a.JSC$10817_networkPrefetchRequest_.getCacheKeyForEndpoint(d);PAc(a);a.prefetchRequestPromise_.then(function(g){a.storePrefetchedDataCallback_(a.prefetchResponseCacheKey_,g);if(_.x("web_prefetch_preload_video")&&
e.length===1&&e[0]==="pl"&&g&&!g.playerAds&&!g.adPlacements){var k=_.y(d,_.tq),m=k!=null,n={raw_player_response:g,watch_endpoint:k};(g=_.v().resolve(m?_.zJb:_.gu))&&d&&g.then(function(r){m&&_.x("web_queue_preload_video")?(n.prefer_gapless=!0,r.queueNextVideo(n)):r.preloadVideoByPlayerVars(n)})}})}})},vZ=function(a,b,c,d){this.prefetchEndpointProvider_=a;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=b;this.prefetchJobConfig_=c;this.JSC$10817_networkPrefetchRequest_=d;this.prefetchResponseCacheKey_=null};
vZ.prototype.enqueue=function(){this.triggerPromise_||(cBc(this,OAc(this)),_.ss(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
vZ.prototype.resolve=function(){this.cancel()};
vZ.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.");PAc(this)};
vZ.prototype.onVisibilityChange_=function(){var a=this;_.Ii(_.vCa)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){a.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||cBc(this,OAc(this))};
dBc=function(a,b,c,d,e){b&&(b==null?0:b.videoId)&&c&&c.entries&&_.x("kevlar_enable_shorts_prefetch_in_sequence")&&(SAc(a),b=c.entries.map(function(g){var k;return(k=_.y(g.command,_.tq))==null?void 0:k.videoId}).indexOf(b.videoId),c=c.entries[b+1],c!=null&&c.command&&!_.y(c==null?void 0:c.command,_.ME)&&(d=new MAc([c.command],new FAc(d,_.zk,1),null,"shorts",!1),a.pendingPrefetchJob_=new vZ(new LAc(d.autonavEndpoints),function(){return!1},d,new uZ(e)),a.pendingPrefetchJob_.enqueue()))};
eBc=function(a,b,c,d,e,g){var k=_.cF.getInstance();if(!_.x("block_all_player_prefetch_requests")){SAc(a);var m=!!c.getPlaylistId(),n=c.getVideoData().isLive&&c.getVideoData().hasProgressBarBoundaries;if((k.getState()==2||m||n)&&(!c.getVideoData().isLive||n)){k={inPlaylist:m,videoDuration:c.getDuration(),makeUpNextTrigger:function(t){return new RAc(c,_.zk,t)},
makePlaybackTrigger:function(t){return new FAc(c,_.zk,t)}};
var r=NAc(b,k);r&&(a.pendingPrefetchJob_=new vZ(r.isInPlaylist?new KAc(e):new LAc(r.autonavEndpoints),function(t,u){u=new IAc(DAc[r.pageType].pageFragments,DAc[r.pageType].prefetchedFragments,u);return _.mLb(u)?(a.prefetchCache_.set(t,u),!0):!1},r,new sZ(d,c,g,e)),a.pendingPrefetchJob_.enqueue())}}};
fBc=function(){var a=_.VF();a.signals.parkOrScheduleJob(function(){var b=a.storage;if(b.storage)if(yAc(b)){var c=b.getPlaylistId();b=b.getIndex();c=!!c&&b!==void 0}else b.clear(),c=!1;else c=!1;if(c){c=a.pageManager.isOnWatch();a:{var d=a.storage;if(d.storage&&yAc(d)&&(b=d.getPlaylistId(),d=d.getIndex(),b&&d!==void 0)){c={recoverPlaylistCommand:{listId:b,index:d,openMiniplayer:!c,openListPanel:c,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}c=void 0}c&&_.NB(a.JSC$10614_actionRouter,[c],null)}},
0,"ma")};
gBc=function(a,b,c,d,e,g){var k=_.lu(7111);_.nF(a.JSC$15913_screenManager,k,g?_.qs(g):void 0);_.pF(a.JSC$15913_screenManager,k,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:d,offlineId:b,offlineabilityFormatType:c,isDefaultFormatType:e==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:e}})};
hBc=function(a,b,c,d,e){var g,k,m,n,r;return _.l(function(t){if(t.nextAddress==1)return _.p(t,a.JSC$15913_playerApiPromise,2);g=t.yieldResult;gBc(a,b,c,"OFFLINE_OBJECT_TYPE_PLAYLIST",d,e);if(m=_.pJb[a.entityTypeMap.listEntityType])r={},k=(r[m]={maximumDownloadQuality:(n=c)!=null?n:void 0},r);return _.p(t,g.queueOfflineAction(b,a.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",k),0)})};
iBc=function(a,b){var c,d,e,g;return _.l(function(k){if(k.nextAddress==1)return _.p(k,a.JSC$15913_persistentStorePromiseAccessor(),2);if(k.nextAddress!=3){c=k.yieldResult;if(!c)return _.Dl(new _.qj("PES is undefined")),k.return();d=_.lp(b,"downloadStatusEntity");return _.p(k,xAc(c,d,"downloadStatusEntity"),3)}e=k.yieldResult;return k.return((g=e)==null?void 0:g.downloadState)})};
jBc=function(a,b,c,d,e){var g,k,m,n,r,t;return _.l(function(u){switch(u.nextAddress){case 1:return _.p(u,a.JSC$15913_playerApiPromise,2);case 2:g=u.yieldResult;gBc(a,b,c,"OFFLINE_OBJECT_TYPE_VIDEO",d,e);if(m=_.pJb[a.entityTypeMap.singleEntityType])r={},k=(r[m]={maximumDownloadQuality:(n=c)!=null?n:void 0},r);return _.p(u,iBc(a,b),3);case 3:t=u.yieldResult;if(t!=="DOWNLOAD_STATE_USER_DELETED"){u.jumpTo(4);break}return _.p(u,a.deleteVideo(b),4);case 4:return _.p(u,g.queueOfflineAction(b,a.entityTypeMap.singleEntityType,
"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",k),0)}})};
kBc=function(a,b,c,d,e){return _.l(function(g){return g.nextAddress==1?_.p(g,a.deleteVideo(b,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):_.p(g,jBc(a,b,c,d,e),0)})};
lBc=function(a,b,c){var d,e;return _.l(function(g){if(g.nextAddress==1)return _.p(g,a.JSC$15913_playerApiPromise,2);d=g.yieldResult;e=_.lp(b,"mainVideoDownloadStateEntity");return _.p(g,d.updateDownloadState(e,c),0)})};
gzc=function(a){var b=_.v().resolve(_.cW);return _.l(function(c){if(c.nextAddress==1)return b.previousDownloadStateForVideo[a]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&b.previousDownloadStateForVideo[a]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?c.jumpTo(2):_.p(c,b.resumeVideoDownload(a),2);if(c.nextAddress!=4)return _.p(c,lBc(b,a,b.previousDownloadStateForVideo[a]),4);delete b.previousDownloadStateForVideo[a];_.se(c)})};
ezc=function(a,b){var c;return _.l(function(d){if(d.nextAddress==1)return _.p(d,a.JSC$15913_playerApiPromise,2);c=d.yieldResult;return _.p(d,c.queueOfflineAction(b,a.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})};
bzc=function(){var a=_.v().resolve(_.cW),b,c;return _.l(function(d){if(d.nextAddress==1)return _.p(d,a.JSC$15913_playerApiPromise,2);if(d.nextAddress!=3)return b=d.yieldResult,c={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},_.p(d,b.queueOfflineAction("!*$_ALL_ENTITIES_!*$",a.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",c),3);var e=a.JSC$15913_commandHandler,g=e.resolveCommand,k=_.to("DELETING_ALL",void 0,"Downloads are being deleted");
g.call(e,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.dp(k)}},popupType:"TOAST"}});_.se(d)})};
mBc=function(a){var b,c;return _.l(function(d){if(d.nextAddress==1)return _.p(d,a.JSC$15913_prefStorage,2);b=d.yieldResult;return d.return((c=b)==null?void 0:c.get("sdois"))})};
nBc=function(a){var b,c,d,e,g,k;return _.l(function(m){if(m.nextAddress==1)return _.p(m,a.JSC$15913_persistentStorePromiseAccessor(),2);if(m.nextAddress!=3){b=m.yieldResult;if(!b)return _.Dl(new _.qj("PES is undefined")),m.return();c=_.lp("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return _.p(m,xAc(b,c,"settingEntity"),3)}d=m.yieldResult;return m.return((k=(e=d)==null?void 0:(g=e.settingOptionValue)==null?void 0:g.boolValue)!=null?k:!1)})};
oBc=function(a,b){var c,d,e,g;return _.l(function(k){switch(k.nextAddress){case 1:return((c=b)==null?void 0:c.formatType)===void 0?k.return():_.p(k,a.JSC$15913_prefStorage,2);case 2:d=k.yieldResult;if(d===void 0)return k.return();if(((e=b)==null?void 0:e.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return _.p(k,d.set("lmqf",b.formatType),8);if(((g=b)==null?void 0:g.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){k.jumpTo(0);break}return _.p(k,d.set("lmqf",b.formatType),
6);case 6:return _.p(k,d.set("lmqflst",Math.floor((0,_.Uj)())),0);case 8:return _.p(k,d.remove("lmqflst"),0)}})};
pBc=function(a){var b,c;return _.l(function(d){switch(d.nextAddress){case 1:return _.p(d,a.JSC$15913_prefStorage,2);case 2:b=d.yieldResult;if(!b){d.jumpTo(3);break}return _.p(d,b.get("lmqflst"),4);case 4:if(c=d.yieldResult,c!==void 0)return d.return(c);case 3:return d.return(0)}})};
qBc=function(a){var b,c;return _.l(function(d){switch(d.nextAddress){case 1:return _.p(d,a.JSC$15913_prefStorage,2);case 2:b=d.yieldResult;if(b===void 0){d.jumpTo(3);break}return _.p(d,b.get("lmqf"),4);case 4:if(c=d.yieldResult,c!==void 0)return d.return(c);case 3:return d.return("SD")}})};
ozc=function(a,b,c){var d,e,g,k,m,n,r,t;_.l(function(u){switch(u.nextAddress){case 1:return _.p(u,oBc(a,(d=b)==null?void 0:d.actionParams),2);case 2:e=b.playlistId;if(!e)return u.return();if(b.action==="ACTION_ADD")return((k=b.actionParams)==null?0:k.formatType)?_.p(u,hBc(a,e,b.actionParams.formatType,(t=b.actionParams)==null?void 0:t.settingsAction,c),0):_.p(u,a.offlineWebClientEligibility,14);if(b.action==="ACTION_REMOVE_WITH_PROMPT"){var w=a.JSC$15913_commandHandler,A=w.resolveCommand,C=_.Ei("INNERTUBE_CLIENT_NAME"),
G=C==="WEB_REMIX"?_.to("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.to("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads"),J=C==="WEB_REMIX"?[_.to("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];C=C==="WEB_REMIX"?_.to("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.to("DELETE",void 0,"Delete");var I=_.to("CANCEL",void 0,"Cancel");G={openPopupAction:esc(G,J,C,I,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:e})};A.call(w,G);
return u.return()}if(b.action==="ACTION_REMOVE")return _.p(u,ezc(a,e),0);if(b.action!=="ACTION_SYNC"){u.jumpTo(0);break}return _.p(u,a.JSC$15913_playerApiPromise,9);case 9:return g=u.yieldResult,_.p(u,g.queueOfflineAction(e,a.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return m=u.yieldResult,_.p(u,qBc(a),15);case 15:return n=u.yieldResult,_.p(u,pBc(a),16);case 16:r=u.yieldResult,b.onAddCommand&&a.JSC$15913_commandHandler.resolveCommand(b.onAddCommand,{form:{preferredFormatType:n,
offlineWebClientEligibility:m,lastOfflineQualitySettingsSavedMs:r.toString()}}),u.jumpTo(0)}})};
mzc=function(a,b,c){var d,e,g,k,m,n,r,t,u,w,A,C,G,J;_.l(function(I){switch(I.nextAddress){case 1:return _.p(I,oBc(a,(d=b)==null?void 0:d.actionParams),2);case 2:e=b.videoId;if(!e)return I.return();if(b.action==="ACTION_REMOVE_WITH_PROMPT"){var R=a.JSC$15913_commandHandler,ca=R.resolveCommand,V=_.Ei("INNERTUBE_CLIENT_NAME"),fa=V==="WEB_REMIX"?_.to("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.to("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads"),aa=V==="WEB_REMIX"?[_.to("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",
void 0,"This track won't be available to listen offline.")]:[];V=V==="WEB_REMIX"?_.to("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.to("DELETE",void 0,"Delete");var ma=_.to("CANCEL",void 0,"Cancel");fa={openPopupAction:esc(fa,aa,V,ma,{signal:"DELETE_DOWNLOAD",targetId:e})};ca.call(R,fa);return I.return()}if(b.action==="ACTION_ADD")return((w=b.actionParams)==null?0:w.formatType)?_.p(I,jBc(a,e,b.actionParams.formatType,(J=b.actionParams)==null?void 0:J.settingsAction,c),0):_.p(I,a.offlineWebClientEligibility,
23);if(b.action==="ACTION_RETRY")return _.p(I,qBc(a),19);if(b.action==="ACTION_PAUSE")return _.p(I,a.pauseVideoDownload(e),0);if(b.action==="ACTION_RESUME")return _.p(I,a.resumeVideoDownload(e),0);if(b.action!=="ACTION_REMOVE"){I.jumpTo(0);break}return _.p(I,iBc(a,e),13);case 13:return g=I.yieldResult,a.previousDownloadStateForVideo[e]=(k=g)!=null?k:"DOWNLOAD_STATE_UNKNOWN",_.p(I,lBc(a,e,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(a.previousDownloadStateForVideo[e]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&
a.previousDownloadStateForVideo[e]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"){I.jumpTo(15);break}return _.p(I,a.pauseVideoDownload(e),15);case 15:R=_.to("DELETED_VIDEO",void 0,"Video deleted from downloads.");ca=_.to("UNDO_ACTION",void 0,"Undo");fa=_.to("CLOSE",void 0,"Close");m={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.dp(R),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.dp(ca),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:e}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:R+" "+ca}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:e}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:fa}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};a.JSC$15913_commandHandler.resolveCommand(m);
I.jumpTo(0);break;case 19:n=I.yieldResult;n==="UNKNOWN_FORMAT_TYPE"&&(n="SD");r="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((t=b.actionParams)==null?0:t.formatType)n=b.actionParams.formatType,r=(u=b.actionParams)==null?void 0:u.settingsAction;return _.p(I,kBc(a,e,n,r,c),20);case 20:return I.return();case 23:return A=I.yieldResult,_.p(I,qBc(a),24);case 24:return C=I.yieldResult,_.p(I,pBc(a),25);case 25:G=I.yieldResult,b.onAddCommand&&a.JSC$15913_commandHandler.resolveCommand(b.onAddCommand,
{form:{preferredFormatType:C,offlineWebClientEligibility:A,lastOfflineQualitySettingsSavedMs:G.toString()}}),I.jumpTo(0)}})};
rBc=function(a,b){var c,d,e,g,k,m,n;return _.l(function(r){if(r.nextAddress==1)return _.p(r,a.JSC$15913_persistentStorePromiseAccessor(),2);c=r.yieldResult;if(!c)return _.Dl(new _.qj("PES is undefined")),r.return();if((d=b)==null||!d.settingItemId)return r.return();e=b;g=e.settingItemId;k=e.boolValue;m=_.lp(g,"settingEntity");n={key:m,settingOptionValue:{boolValue:k}};return _.p(r,wAc(c,n),0)})};
sBc=function(a,b){var c,d,e,g,k,m,n;return _.l(function(r){switch(r.nextAddress){case 1:return _.p(r,a.JSC$15913_prefStorage,2);case 2:return c=r.yieldResult,d=_.wo(),_.p(r,a.JSC$15913_persistentStorePromiseAccessor(),3);case 3:return e=r.yieldResult,c?e?_.p(r,c.get("sdois"),4):(_.Dl(new _.qj("PES is undefined")),r.return()):(_.Dl(new _.qj("prefStorage is undefined")),r.return());case 4:g=r.yieldResult;m=(k=b)==null?void 0:k.boolValue;m===void 0||_.x("kevlar_set_sd_enabled_flag_killswitch")||_.xo(0,
197,!0);g===void 0&&m===void 0&&(m=!1);if(m===void 0){r.jumpTo(0);break}return _.p(r,c.set("sdois",m),6);case 6:return _.x("kevlar_set_sd_enabled_flag_killswitch")||(_.xo(0,196,m),d.save()),n={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:m},_.p(r,rBc(a,n),0)}})};
tBc=function(a,b,c){var d,e,g,k,m;return _.l(function(n){switch(n.nextAddress){case 1:return _.p(n,mBc(a),2);case 2:return d=n.yieldResult,_.p(n,sBc(a,c),3);case 3:return _.p(n,mBc(a),4);case 4:return e=n.yieldResult,g=e!==d,_.p(n,nBc(a),5);case 5:k=n.yieldResult&&!_.x("kevlar_modern_downloads_page");if((m=!e&&!k)||g)return _.p(n,b.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);n.jumpTo(0)}})};
izc=function(){var a=_.v().resolve(_.cW),b;_.l(function(c){switch(c.nextAddress){case 1:return _.p(c,a.JSC$15913_playerApiPromise,2);case 2:b=c.yieldResult;if(!_.x("kevlar_force_refresh_smart_downloads")){c.jumpTo(3);break}return _.p(c,b.refreshAllStaleEntities(0),4);case 4:return c.return();case 3:return _.p(c,b.refreshAllStaleEntities(),5);case 5:return _.p(c,tBc(a,b),0)}})};
qzc=function(a,b){var c,d;_.l(function(e){switch(e.nextAddress){case 1:return _.p(e,a.JSC$15913_playerApiPromise,2);case 2:c=e.yieldResult;switch((d=b)==null?void 0:d.settingItemId){case "SMART_DOWNLOADS_ENABLED":return e.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return e.jumpTo(4)}e.jumpTo(0);break;case 3:return _.p(e,tBc(a,c,b),6);case 6:e.jumpTo(0);break;case 4:return _.p(e,rBc(a,b),7);case 7:e.jumpTo(0)}})};
uBc=function(a,b){var c,d,e;return _.l(function(g){if(g.nextAddress==1)return _.p(g,a.JSC$15913_persistentStorePromiseAccessor(),2);if(g.nextAddress!=3){c=g.yieldResult;if(!c)return _.Dl(new _.qj("PES is undefined")),g.return(!1);if(!b)return g.return(!1);d=_.lp(b,"mainVideoEntity");return _.p(g,xAc(c,d,"mainVideoEntity"),3)}e=g.yieldResult;return g.return(e!==void 0)})};
szc=function(a){var b=_.v().resolve(_.cW),c,d,e,g,k,m,n,r,t,u,w;_.l(function(A){switch(A.nextAddress){case 1:return _.p(A,b.JSC$15913_playerApiPromise,2);case 2:c=A.yieldResult;e=(d=a)==null?void 0:d.actions;if(!e)return A.return();g=_.h(e);k=g.next();case 3:if(k.done){A.jumpTo(0);break}m=k.value;r=n=void 0;if(!(((n=m)==null?0:n.entityKey)&&((r=m)==null?0:r.actionType))){A.jumpTo(4);break}t=_.ip(m.entityKey);u=t.entityId;w=t.entityType;return _.p(A,c.queueOfflineAction(u,w,m.actionType),4);case 4:k=
g.next(),A.jumpTo(3)}})};
vBc=function(a,b){var c,d,e,g,k;return _.l(function(m){if(m.nextAddress==1)return _.p(m,a.JSC$15913_prefStorage,2);if(m.nextAddress!=3)return(c=m.yieldResult)?_.p(m,c.get("psi"),3):m.return();d=m.yieldResult;k={isPaused:b,lastSyncTimestamp:(g=(e=d)==null?void 0:e.lastSyncTimestamp)!=null?g:"0"};return _.p(m,c.set("psi",k),0)})};
vzc=function(a){var b=_.v().resolve(_.cW),c,d,e,g,k,m,n,r;return _.l(function(t){switch(t.nextAddress){case 1:return _.p(t,b.JSC$15913_playerApiPromise,2);case 2:c=t.yieldResult;e=((d=a)==null?void 0:d.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((m=a)==null?void 0:m.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":g="!*$_ALL_ENTITIES_!*$";k="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return t.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return t.jumpTo(4)}t.jumpTo(5);break;case 3:return _.p(t,vBc(b,e),6);case 6:t.jumpTo(5);break;case 4:return _.p(t,uBc(b,(n=a)==null?void 0:n.videoId),7);case 7:t.yieldResult&&(g=(r=a)==null?void 0:r.videoId,k="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");t.jumpTo(5);break;case 5:if(g&&k)return _.p(t,c.queueOfflineAction(g,"videoPlaybackPositionEntity",k),0);t.jumpTo(0)}})};
wBc=function(a,b){var c;b!==1||((c=a.currentPersistentToast)==null?0:c.opened)?a.openToast():a.currentPersistentToast=void 0};
xBc=function(){var a,b,c,d;return _.l(function(e){if(e.nextAddress==1)return a=navigator,(b=a.storage)!=null&&b.persisted?_.p(e,(c=a.storage)==null?void 0:c.persisted(),2):e.return("PERSISTED_STATE_NOT_SUPPORTED");d=e.yieldResult;return e.return(d?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
yBc=function(){var a,b,c,d;return _.l(function(e){if(e.nextAddress==1)return a=navigator,(b=a.storage)!=null&&b.persist?_.p(e,(c=a.storage)==null?void 0:c.persist(),2):e.return("PERSISTED_STATE_NOT_SUPPORTED");d=e.yieldResult;return e.return(d?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
zBc=function(){var a,b;return _.l(function(c){switch(c.nextAddress){case 1:return a="PERSISTED_STATE_NOT_SUPPORTED",_.me(c,2),_.p(c,xBc(),4);case 4:a=c.yieldResult;if(a!=="PERSISTED_STATE_NOT_GRANTED"){c.jumpTo(5);break}return _.p(c,yBc(),6);case 6:a=c.yieldResult;case 5:_.Jj(c,3);break;case 2:b=_.re(c),b instanceof Error&&_.Bl(b);case 3:return _.zl("persistentStorageStateChecked",{persistedState:a}),c.return(a)}})};
ABc=function(a,b){var c=[],d=!1;b=_.h(b);for(var e=b.next();!e.done;e=b.next()){e=a.moduleRegistry[e.value];var g=void 0,k=void 0;((g=e)==null?0:g.isFetching)&&((k=e)==null?0:k.resolver)?(c.push(e.resolver.promise),d=!0):(e=new _.gq,e.resolve(void 0),c.push(e.promise))}return d?Promise.all(c):void 0};
BBc=function(a,b,c){c=c===void 0?{}:c;var d=a.defaultViewTransitionOptions,e=b.map(function(k){return k.beforeTransition}),g=b.map(function(k){return k.afterTransition});
return Object.assign({},d,c,{beforeTransition:function(){var k;(k=d.beforeTransition)==null||k.call(d);var m,n;(n=(m=c).beforeTransition)==null||n.call(m);k=_.h(e);for(m=k.next();!m.done;m=k.next())m=m.value,m()},
afterTransition:function(){var k;(k=d.afterTransition)==null||k.call(d);var m,n;(n=(m=c).afterTransition)==null||n.call(m);k=_.h(g);for(m=k.next();!m.done;m=k.next())m=m.value,m()}})};
CBc=function(a,b,c){var d,e,g,k,m,n,r;_.l(function(t){if(a.config.disableAllTransitions)return t.return(b());if((d=c)==null||!d.transitionName)return t.return(_.wlc(b,(e=c)==null?void 0:e.viewTransitionOptions));g=c;k=g.transitionName;m=g.viewTransitionOptions;n=a.config.transitionConfigs.get(k);if(!n)return t.return(b());var u;r=(u=a.transitionTasksMap.get(k))!=null?u:[];return t.return(_.wlc(b,BBc(n,r,m)))})};
wZ=function(a,b,c){a.transitionTasksMap.has(b)?a.transitionTasksMap.get(b).push(c):(a=new _.qj("Transition task registered for unknown transition name",b),_.Bl(a))};
DBc=function(a,b,c){if(a.isInitialized()){var d=mY(c),e=d==="watch";d=d==="shorts";var g=mY(b)==="watch";if(e)g||(a.backgroundPageData=b),a.watchPipMode&&g||a.deactivate(c.endpoint);else if(d){if(mY(b)!=="shorts"){var k;(k=a.getPlayerElement())==null||k.pause()}}else g&&!a.watchPipMode&&(gsc(b,c)?(a.watchWhileMode&&_.Ekc(a,!1),_.xkc(a,b)):a.isMiniplayerActive()&&a.watchWhileMode&&a.deactivate());g&&_.Gkc(a);a.shortsPipMode&&!d&&(window.focus(),a.deactivate());if(d&&a.shortsPipEnabled||e&&a.watchPipEnabled)_.l5a(a.handleMediaSessionPipActivation);
else if(!a.isMiniplayerActive()&&(a.shortsPipEnabled||a.watchPipEnabled)&&_.Ea()&&_.naa("Chromium")>=120){a=_.k5a().mediaSession;try{a.setActionHandler("enterpictureinpicture",null)}catch(m){}}}};
EBc=function(a,b){var c,d;_.l(function(e){if(e.nextAddress==1){if(!a||!a.navigationEndpoint)return e.return();_.uF().lockupActivation=!0;var g;b?g=_.Up(_.to("QUEUE",void 0,"Queue")):g=a.longBylineText;d=(c=g)&&a.title?{miniplayerTitle:a.title,miniplayerSubtitle:c,playlistData:null}:void 0;return _.p(e,_.J8b(_.v().resolve(_.Vw),a.navigationEndpoint,!0,d),2)}_.uF().userActivation=!0;_.se(e)})};
dxc=function(a,b){var c,d,e,g,k,m;_.l(function(n){if(n.nextAddress==1){c=_.y(b,_.Kzb);if(!c||!c.listId)return n.return();a.index=c.index||a.index||0;d=a.response&&a.response.playingVideoId||void 0;return _.p(n,_.QJb(a.JSC$10614_playlistNetworkManager,c.listId,a.index,d),2)}e=n.yieldResult;if(!e)return n.return();g=e.playlistId;k=e.playlistPanelRenderer;!a.queueProxy&&g&&k&&g.startsWith("TLPQ")&&(a.queueProxy=new _.MF(a.JSC$10614_playlistNetworkManager,g,a.setPlaylistData.bind(a),a.clearQueue.bind(a),
_.WGa(k),a.storage));if(c.openMiniplayer&&(m=_.XGa(k))&&!a.pageManager.isOnWatch()){var r=m,t=c.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";a.isMiniplayerActive()?a.openToast(r):EBc(r,t)}a.setPlaylistData(g,k,e.autoplayRenderer);_.se(n)})};
axc=function(a,b){var c=_.VF();c.index===void 0&&(c.index=0);c.temporaryItems.push.apply(c.temporaryItems,_.Be(a));if((b.videoId||b.videoIds)&&c.index!==void 0&&b.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!c.queueProxy){var d=[];if(c.response){var e=_.v().resolve(_.Vw).isMiniplayerActive();if(c.response.playlistPanelRenderer&&c.response.playlistId&&!c.response.playlistId.startsWith("TLPQ")){if(c.pageManager.isOnWatch()||e)d=_.WGa(c.response.playlistPanelRenderer)}else c.response.playingVideoId&&
!b.openMiniplayer?d.push(c.response.playingVideoId):e&&c.response.playingVideoId&&b.openMiniplayer&&d.push(c.response.playingVideoId)}c.queueProxy=new _.MF(c.JSC$10614_playlistNetworkManager,"",c.setPlaylistData.bind(c),c.clearQueue.bind(c),d,c.storage);c.queueProxy.JSC$10560_setCurrentIndex(c.index)}c.queueProxy.addVideos(b.videoIds||[b.videoId],b)}zAc(c,a);c.response&&_.WF(c,_.XF(c,c.response.autoplayRenderer));c.pageManager.isOnWatch()?c.isMiniplayerActive()&&c.openToast(a[0]):(a=a[0],b=b.listType===
"PLAYLIST_EDIT_LIST_TYPE_QUEUE",c.isMiniplayerActive()?c.openToast(a):EBc(a,b))};
FBc=function(a){var b=_.jba(a);if(b=="object"||b=="array"){if(typeof a.clone==="function")return a.clone();if(typeof Map!=="undefined"&&a instanceof Map)return new Map(a);if(typeof Set!=="undefined"&&a instanceof Set)return new Set(a);b=b=="array"?[]:{};for(var c in a)b[c]=FBc(a[c]);return b}return a};
GBc=_.$c(function(a,b,c){if(a.nextWireType_!==0)return!1;_.ad(b,c,_.Wx(a.decoder_,_.gba));return!0},_.ed,_.Zx);
HBc=_.$c(function(a,b,c,d){if(a.nextWireType_!==0)return!1;_.Dx(b,c,d,_.Wx(a.decoder_,_.gba));return!0},_.ed,_.Zx);
IBc=_.$c(function(a,b,c){if(a.nextWireType_!==1)return!1;var d=a.decoder_;a=_.Yx(d);d=_.Yx(d);a=_.Nb(a,d);_.ad(b,c,a);return!0},_.jda,_.i$a);
JBc=_.$c(function(a,b,c){if(a.nextWireType_!==5)return!1;_.ad(b,c,_.Yx(a.decoder_));return!0},function(a,b,c){b=_.oba(b);
b!=null&&(_.bd(a,c,5),_.cd(a.encoder_,b))},_.Sc());
KBc=_.$c(function(a,b,c){if(a.nextWireType_!==0)return!1;a=_.Q9a(a.decoder_);_.ad(b,c,a===!1?void 0:a);return!0},_.kda,_.f$a);
LBc=_.$c(function(a,b,c){if(a.nextWireType_!==2)return!1;a=_.W9a(a);_.ad(b,c,a===""?void 0:a);return!0},_.mda,_.g$a);
MBc=_.$c(function(a,b,c){if(a.nextWireType_!==2)return!1;a=_.X9a(a);_.ad(b,c,a===_.wb()?void 0:a);return!0},_.oda,_.k$a);
NBc=_.ada(function(a,b,c){if(a.nextWireType_!==0&&a.nextWireType_!==2)return!1;b=_.kca(b,b[_.lb]|0,c);a.nextWireType_==2?_.Y9a(a,bAc,b):b.push(_.Xx(a.decoder_));return!0},function(a,b,c){b=_.$ca(_.bc,b,!0);
if(b!=null&&b.length){c=_.yca(a,c);for(var d=0;d<b.length;d++)_.gda(a.encoder_,b[d]);_.zca(a,c)}},_.l$a);
OBc=_.$c(function(a,b,c){if(a.nextWireType_!==0)return!1;a=_.Xx(a.decoder_);_.ad(b,c,a===0?void 0:a);return!0},_.pda,_.l$a);
PBc=_.$c(function(a,b,c,d){if(a.nextWireType_!==0)return!1;_.Dx(b,c,d,_.Xx(a.decoder_));return!0},_.pda,_.l$a);
_.ae=function(a){this.privateDoNotAccessOrElseWrappedStyleSheet=a};
_.ae.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};
var QBc=function(a,b){var c=[];for(b=b||0;b<a.length;b+=2)_.Sbb(a[b],a[b+1],c);return c.join("&")},RBc=function(a,b){var c=arguments.length==2?QBc(arguments[1],0):QBc(arguments,1);
return _.Rbb(a,c)},SBc=function(a){var b=_.Pbb(window.location.href),c=b[1],d=[];
c&&c.split("&").forEach(function(e){var g=e.indexOf("=");g=g>=0?e.slice(0,g):e;a.hasOwnProperty(g)||d.push(e)});
b[1]=_.Qbb(d.join("&"),_.ij(a));return b[0]+(b[1]?"?"+b[1]:"")+b[2]},kxc=function(a,b){return new _.Af(a.x+b.x,a.y+b.y)},TBc=function(a){return a.previousElementSibling!==void 0?a.previousElementSibling:_.Mcb(a.previousSibling,!1)},UBc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(UBc,_.Xc);UBc.prototype.getValue=function(){var a=_.Nc(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,2);if(Array.isArray(a)||a instanceof _.Xc)throw Error("da");return _.Cx(this,2)};
var VBc=function(){var a=_.oq();this.JSC$7763_streamzService=a;a.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",_.Zf("cookie_enabled"),_.Zf("cookie_3p_enabled"),_.bg("browser"))};
VBc.prototype.increment=function(a,b,c){this.JSC$7763_streamzService.JSC$7639_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",a,b,c)};
var Evc=function(){var a=_.oq();this.JSC$7766_streamzService=a;a.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.bg("channel_type"))};
Evc.prototype.increment=function(a){this.JSC$7766_streamzService.JSC$7639_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",a)};
var Fvc=function(){var a=_.oq();this.JSC$7769_streamzService=a;a.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.bg("channel_type"))};
Fvc.prototype.increment=function(a){this.JSC$7769_streamzService.JSC$7639_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",a)};
var Hvc=function(){var a=_.oq();this.JSC$7772_streamzService=a;a.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.bg("channel_type"))};
Hvc.prototype.increment=function(a){this.JSC$7772_streamzService.JSC$7639_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",a)};
var Gvc=function(){var a=_.oq();this.JSC$7775_streamzService=a;a.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
Gvc.prototype.increment=function(){this.JSC$7775_streamzService.JSC$7639_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var Ivc=function(){var a=_.oq();this.JSC$7778_streamzService=a;a.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.bg("channel_type"))};
Ivc.prototype.increment=function(a){this.JSC$7778_streamzService.JSC$7639_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",a)};
var Jvc=function(){var a=_.oq();this.JSC$7781_streamzService=a;a.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
Jvc.prototype.increment=function(){this.JSC$7781_streamzService.JSC$7639_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var Kvc=function(){var a=_.oq();this.JSC$7784_streamzService=a;a.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
Kvc.prototype.increment=function(){this.JSC$7784_streamzService.JSC$7639_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var Ozc=function(){var a=_.oq();this.JSC$7790_streamzService=a;a.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
Ozc.prototype.increment=function(){this.JSC$7790_streamzService.JSC$7639_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var WBc=function(a){return a.getCount&&typeof a.getCount=="function"?a.getCount():_.Sa(a)||typeof a==="string"?a.length:_.yf.getCount(a)},XBc=function(a,b){if(typeof a.every=="function")return a.every(b,void 0);
if(_.Sa(a)||typeof a==="string")return Array.prototype.every.call(a,b,void 0);for(var c=_.Xhb(a),d=_.fA(a),e=d.length,g=0;g<e;g++)if(!b.call(void 0,d[g],c&&c[g],a))return!1;return!0},YBc=function(a,b,c,d){var e=new _.Wn(null);
a&&_.gA(e,a);b&&_.hA(e,b);c&&_.iA(e,c);d&&_.jA(e,d);return e},ZBc=function(){var a=_.Dj&&lY(_.nkb,10)>=0,b;
if(b=_.a9a)b=lY(_.mkb,10)>=0;var c=_.wx&&lY(_.nkb,85)>=0;return _.tx||a||b||c},$Bc=function(a){var b=_.kdb(a);
return b&&ZBc()?-a.scrollLeft:b&&_.Fg(a,"overflowX")!="visible"?a.scrollWidth-a.clientWidth-a.scrollLeft:a.scrollLeft},aCc=function(a,b){b=Math.max(b,0);
_.kdb(a)?ZBc()?a.scrollLeft=-b:a.scrollLeft=a.scrollWidth-b-a.clientWidth:a.scrollLeft=b},wsc=0,Bsc=!1;
oY.prototype.set=function(a){this.relativeTimeStart_=a};
oY.prototype.reset=function(){this.set(_.mx())};
oY.prototype.get=function(){return this.relativeTimeStart_};
var bCc=null,cCc=function(){bCc||(bCc=new oY)},dCc=function(){bCc||(bCc=new oY)};
_.nx(dCc,cCc);_.f=Dsc.prototype;_.f.JSC$9082_buffer_="";_.f.set=function(a){this.JSC$9082_buffer_=""+a};
_.f.append=function(a,b,c){this.JSC$9082_buffer_+=String(a);if(b!=null)for(var d=1;d<arguments.length;d++)this.JSC$9082_buffer_+=arguments[d];return this};
_.f.clear=function(){this.JSC$9082_buffer_=""};
_.f.getLength=function(){return this.JSC$9082_buffer_.length};
_.f.toString=function(){return this.JSC$9082_buffer_};
var eCc=function(){var a={type:"unit",style:"narrow"};this.listType_=a&&a.type?a.type:"conjunction";this.listStyle_=a&&a.style?a.style:"long";this.listSymbols_=iAc;a=0;switch(this.listStyle_){case "short":a=1;break;case "narrow":a=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[a];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[a];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[a];this.listEndPattern_=
this.listSymbols_.AND_END[a];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[a];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[a];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[a];this.listEndPattern_=this.listSymbols_.OR_END[a];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[a],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[a],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[a],this.listEndPattern_=this.listSymbols_.UNIT_END[a]}};
eCc.prototype.format=function(a){return fCc(this,a)};
var fCc=function(a,b){var c=b.length;switch(c){case 0:return"";case 1:return String(b[0]);case 2:return a.listTwoPattern_.replace("{0}",String(b[0])).replace("{1}",String(b[1]))}for(var d=a.listStartPattern_.replace("{0}",String(b[0])).replace("{1}",String(b[1])),e=2;e<c-1;++e)d=a.listMiddlePattern_.replace("{0}",d).replace("{1}",String(b[e]));return a.listEndPattern_.replace("{0}",d).replace("{1}",String(b[c-1]))},Tsc=function(){var a={style:1};
this.style_=(a==null?void 0:a.style)||0;this.durationSymbols_=_.rJb||_.Prb},gCc=function(a,b){switch(b){default:case "years":return a.durationSymbols_.YEAR;
case "months":return a.durationSymbols_.MONTH;case "weeks":return a.durationSymbols_.WEEK;case "days":return a.durationSymbols_.DAY;case "hours":return a.durationSymbols_.HOUR;case "minutes":return a.durationSymbols_.MINUTE;case "seconds":return a.durationSymbols_.SECOND}},xZ=function(a,b,c){a:{c=gCc(a,c);
switch(a.style_){case 1:if(c.LONG!=void 0){a=c.LONG;break a}case 2:if(c.NARROW!=void 0){a=c.NARROW;break a}default:a=c.SHORT;break a}a=void 0}return a?(new _.ksb("{DURATION_VALUE,plural,"+a+"}")).format({DURATION_VALUE:b}):""};
Tsc.prototype.format=function(a){var b=[],c=a.years,d=a.months,e=a.weeks,g=a.days,k=a.hours,m=a.minutes;a=a.seconds;c!=null&&b.push(xZ(this,c,"years"));d!=null&&b.push(xZ(this,d,"months"));e!=null&&b.push(xZ(this,e,"weeks"));g!=null&&b.push(xZ(this,g,"days"));k!=null&&b.push(xZ(this,k,"hours"));m!=null&&b.push(xZ(this,m,"minutes"));a!=null&&b.push(xZ(this,a,"seconds"));return(new eCc).format(b)};
var hCc=!1,Ksc=function(a){_.da.call(this,a.message||a.description||a.name);this.isMissing=a instanceof pY;this.isTimeout=a instanceof _.Nn&&a.errorCode=="net.timeout";this.isCanceled=a instanceof _.On};
_.z(Ksc,_.da);Ksc.prototype.name="BiscottiError";var pY=function(){_.da.call(this,"Biscotti ID is missing from server")};
_.z(pY,_.da);pY.prototype.name="BiscottiMissingError";var qY=null,Swc=function(){try{var a=_.Ji("yt.ads.biscotti.getId_");return a?a():psc()}catch(b){return _.Pn(b)}},Ssc,iCc=function(a){return _.gp({type:"SET_GUIDE_IS_EXPANDED",
payload:a})},jCc=function(a){return _.gp({type:"SET_ONLINE_STATUS",
payload:a})},kCc=function(a,b){return _.gp({type:"SET_TRANSCRIPTION_STATE",
payload:{high:a,low:b}})},lCc=function(a){return _.gp({type:"SET_OVERLAY_STATE",
payload:a})},mCc=0,nCc=function(a,b,c){var d=this;
this.priority=b;this.delay=c;this.jobId=0;this.completionCallback=_.By;this.wrappedJob=function(){a();d.completionCallback()};
this.id=++mCc};
nCc.prototype.enqueue=function(a){this.completionCallback=a;this.jobId=_.zk.addJob(this.wrappedJob,this.priority,this.delay)};
var yZ=function(){_.iB.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.z(yZ,_.iB);yZ.prototype.addJob=function(a,b,c){a=new nCc(a,b,c);this.taskIdToTask.set(a.id,a);this.isActive?oCc(this,a):this.suspendedTasks.add(a);return a.id};
var oCc=function(a,b){a.scheduledTasks.add(b);b.enqueue(function(){a.scheduledTasks.delete(b)})};
yZ.prototype.cancelJob=function(a){(a=this.taskIdToTask.get(a))&&(this.scheduledTasks.delete(a)?_.zk.cancelJob(a.jobId):this.suspendedTasks.delete(a))};
yZ.prototype.pause=function(){var a=this;this.isActive=!1;this.scheduledTasks.forEach(function(b){_.zk.cancelJob(b.jobId);a.suspendedTasks.add(b)});
this.scheduledTasks.clear()};
yZ.prototype.start=function(){var a=this;this.isActive=!0;this.suspendedTasks.forEach(function(b){oCc(a,b)});
this.suspendedTasks.clear()};
yZ.prototype.reset=function(){this.scheduledTasks.forEach(function(a){_.zk.cancelJob(a.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var zZ=function(a,b){this.JSC$10740_networkService_=a;this.pageRequestPromise=b};
zZ.prototype.fetchData=function(a){pCc(this,this.JSC$10740_networkService_.fetchData(a))};
zZ.prototype.postData=function(a,b){pCc(this,this.JSC$10740_networkService_.postData(a,b))};
zZ.prototype.requestDataForServiceEndpoint=function(a,b){pCc(this,this.JSC$10740_networkService_.requestDataForServiceEndpoint(a,b))};
var pCc=function(a,b){b.then(a.pageRequestPromise.onSuccess,a.pageRequestPromise.onFailure,a.pageRequestPromise)};
zZ.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var AZ=function(a){this.buildNetworkRequest_=a;this.pendingRequests_=new Set};
AZ.prototype.reset=function(){this.pendingRequests_.forEach(function(a){a.cancel()});
this.pendingRequests_.clear()};
AZ.prototype.fetchData=function(a){var b=qCc(this);b.fetchData(a);return b.pageRequestPromise};
AZ.prototype.postData=function(a,b){var c=qCc(this);c.postData(a,b);return c.pageRequestPromise};
AZ.prototype.requestDataForServiceEndpoint=function(a,b){var c=qCc(this);c.requestDataForServiceEndpoint(a,b);return c.pageRequestPromise};
var qCc=function(a){var b=a.buildNetworkRequest_();a.pendingRequests_.add(b);var c=function(){a.pendingRequests_.delete(b)};
b.pageRequestPromise.then(c,c);return b},rCc=function(a){var b=new yZ;
this.JSC$10747_networkService_=a;this.JSC$10747_taskManager_=b;this.JSC$10747_networkManager_=new AZ(this.networkRequestFactory_.bind(this))};
_.f=rCc.prototype;_.f.networkRequestFactory_=function(){return new zZ(this.JSC$10747_networkService_,new _.jG(this.JSC$10747_taskManager_))};
_.f.reset=function(){this.JSC$10747_taskManager_.reset();this.JSC$10747_networkManager_.reset()};
_.f.start=function(){this.JSC$10747_taskManager_.start()};
_.f.pause=function(){this.JSC$10747_taskManager_.pause()};
_.f.getTaskManager=function(){return this.JSC$10747_taskManager_};
_.f.getNetworkManager=function(){return this.JSC$10747_networkManager_};
var Ysc=null,atc=[],sY=0,uY=0,tY=null,sCc=function(){var a=(0,_.FLb)();a&&kAc(a,a.mechanism.__iterator__(!0))},wY=function(a){this.token=a};
wY.getInstance=function(){var a;return _.l(function(b){if(b.nextAddress==1)return _.p(b,_.Sj(),2);a=b.yieldResult;if(!a)return b.return();wY.instance||(wY.instance=new wY(a));return b.return(wY.instance)})};
var gtc=function(a){var b;return _.l(function(c){if(c.nextAddress==1)return _.p(c,dtc(a.token),2);b=c.yieldResult;return c.return(b.clear("resource-manifest-assets"))})},vY=function(a){this.token=a};
vY.getInstance=function(){var a;return _.l(function(b){if(b.nextAddress==1)return _.p(b,_.Sj(),2);a=b.yieldResult;if(!a)return b.return();vY.instance||(vY.instance=new vY(a));return b.return(vY.instance)})};
var etc=function(a){var b;return _.l(function(c){if(c.nextAddress==1)return _.p(c,dtc(a.token),2);b=c.yieldResult;return _.p(c,b.clear("auth"),0)})},tCc=!1,xY=null,ttc=void 0,Ctc=!1,uCc=function(a){_.da.call(this,a)};
_.z(uCc,_.V2b);var vwc=function(){var a=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return a?parseInt(a[1],10):0},vCc=function(a){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+a)!=-1||document.currentScript.src.indexOf("&"+a)!=-1)},wCc=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},Awc=function(a){a.length?xCc(a.shift(),function(){Awc(a)}):xwc()},Cwc=function(a){return"chrome-extension://"+a+"/cast_sender.js"},xCc=function(a,
b,c){var d=document.createElement("script");
d.onerror=b;c&&(d.onload=c);_.Xd(d,_.wg(a));(document.head||document.documentElement).appendChild(d)},yCc=function(){var a=vwc(),b=[];
if(a>1){var c=a-1;b.push("//www.gstatic.com/eureka/clank/"+a+"/cast_sender.js");b.push("//www.gstatic.com/eureka/clank/"+c+"/cast_sender.js")}return b},xwc=function(){var a=wCc();
a&&a(!1,"No cast extension found")},zwc=function(){if(zCc){var a=2,b=wCc(),c=function(){a--;
a==0&&b&&b(!0)};
window.__onGCastApiAvailable=c;xCc("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",xwc,c)}},wwc=function(){zwc();
var a=yCc();a.push("//www.gstatic.com/eureka/clank/cast_sender.js");Awc(a)},ywc=function(){zwc();
var a=yCc();a.push.apply(a,_.Be(Bwc.map(Cwc)));a.push("//www.gstatic.com/eureka/clank/cast_sender.js");Awc(a)},zCc=vCc("loadCastFramework")||vCc("loadCastApplicationFramework"),Bwc=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var ACc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(ACc,_.Xc);var BCc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(BCc,_.Xc);var CCc=function(){var a=new BCc;return _.Ux(a,1,3)};var BZ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(BZ,_.Xc);var quc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(quc,_.Xc);var DCc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(DCc,_.Xc);DCc.prototype.getToken=function(){return _.Ox(this,1)};
DCc.prototype.setToken=function(a){return _.ew(this,1,a)};
var ouc=function(a){return _.Mc(a,3,_.oc,_.Wf())},puc=function(a){return _.Mc(a,6,_.oc,_.Wf())};var CZ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(CZ,_.Xc);CZ.prototype.getToken=function(){return _.Xj(this,DCc,2)};
CZ.prototype.setToken=function(a){return _.pd(this,2,a)};
CZ.prototype.getName=function(){return _.Ox(this,6)};
var ECc=_.kd(CZ);var FCc=function(a,b,c){this.requestMessage=a;this.methodDescriptor=b;this.metadata=c};
FCc.prototype.getMetadata=function(){return this.metadata};var GCc=function(a,b){b=b===void 0?{}:b;this.responseMessage=a;this.metadata=b;this.status=null};
GCc.prototype.getMetadata=function(){return this.metadata};
GCc.prototype.getStatus=function(){return this.status};var DZ=function(a,b,c,d,e){this.name=a;this.methodType="unary";this.requestType=b;this.responseType=c;this.requestSerializeFn=d;this.responseDeserializeFn=e},HCc=function(a,b,c){c=c===void 0?{}:c;
return new FCc(b,a,c)};
DZ.prototype.getName=function(){return this.name};var EZ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(EZ,_.Xc);EZ.prototype.setHeader=function(a){return _.pd(this,1,a)};
EZ.prototype.hasHeader=function(){return _.zx(this,BZ,1)};var ICc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(ICc,_.Xc);var JCc=new DZ("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",EZ,ICc,function(a){return a.serialize()},_.kd(ICc));var FZ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(FZ,_.Xc);FZ.prototype.setHeader=function(a){return _.pd(this,1,a)};
FZ.prototype.hasHeader=function(){return _.zx(this,BZ,1)};var KCc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(KCc,_.Xc);var LCc=new DZ("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",FZ,KCc,function(a){return a.serialize()},_.kd(KCc));var GZ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(GZ,_.Xc);GZ.prototype.setHeader=function(a){return _.pd(this,1,a)};
GZ.prototype.hasHeader=function(){return _.zx(this,BZ,1)};var MCc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(MCc,_.Xc);MCc.prototype.getLink=function(){return _.Xj(this,CZ,1)};var NCc=new DZ("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",GZ,MCc,function(a){return a.serialize()},_.kd(MCc));var HZ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(HZ,_.Xc);HZ.prototype.setHeader=function(a){return _.pd(this,1,a)};
HZ.prototype.hasHeader=function(){return _.zx(this,BZ,1)};var OCc=new DZ("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",HZ,CZ,function(a){return a.serialize()},ECc);var PCc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(PCc,_.Xc);var IZ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(IZ,_.Xc);IZ.prototype.getType=function(){return _.Px(this,1)};
IZ.prototype.getUrl=function(){return _.Ox(this,2)};
IZ.prototype.setUrl=function(a){return _.ew(this,2,a)};var QCc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(QCc,_.Xc);var RCc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(RCc,_.Xc);var SCc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(SCc,_.Xc);var Buc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(Buc,_.Xc);var Auc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(Auc,_.Xc);var TCc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(TCc,_.Xc);var Iuc=_.kd(TCc);var UCc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(UCc,_.Xc);var JZ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(JZ,_.Xc);JZ.prototype.setHeader=function(a){return _.pd(this,1,a)};
JZ.prototype.hasHeader=function(){return _.zx(this,BZ,1)};
JZ.prototype.getCompletionUrl=function(){return _.Ox(this,6)};
JZ.prototype.getDeviceId=function(){return _.Ox(this,11)};var VCc=new DZ("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",JZ,TCc,function(a){return a.serialize()},Iuc);var WCc=new Set(["SAPISIDHASH","APISIDHASH"]);var XCc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(XCc,_.Xc);XCc.prototype.getMessage=function(){return _.Ox(this,2)};
var YCc=_.kd(XCc);var KZ=function(a,b){this.xhrNodeReadableStream_=a.nodeReadableStream;this.grpcResponseDeserializeFn_=b;this.JSC$16830_xhr_=a.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$16830_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&ZCc(this)},eDc=function(a,b){var c=new $Cc;
_.ss(a.JSC$16830_xhr_,"complete",function(){if(a.JSC$16830_xhr_.isSuccess()){var d=a.JSC$16830_xhr_.getResponseText();var e;if(e=b)e=a.JSC$16830_xhr_,e.JSC$7648_xhr_&&e.isComplete()?(e=e.JSC$7648_xhr_.getResponseHeader("Content-Type"),e=e===null?void 0:e):e=void 0,e=e==="text/plain";if(e){if(!atob)throw Error("Gj");d=atob(d)}try{var g=a.grpcResponseDeserializeFn_(d)}catch(m){LZ(a,buc(new _.Jz(13,"Error when deserializing response data; error: "+m+(", response: "+d)),c));return}d=_.Eia(a.JSC$16830_xhr_.getStatus());
aDc(a,bDc(a));d==0?cDc(a,g):LZ(a,buc(new _.Jz(d,"Xhr succeeded but the status code is not 200"),c))}else{d=a.JSC$16830_xhr_.getResponseText();g=bDc(a);if(d){var k=dDc(a,d);d=k.code;e=k.details;k=k.metadata}else d=2,e="Rpc failed due to xhr error. uri: "+String(a.JSC$16830_xhr_.JSC$7648_lastUri_)+", error code: "+a.JSC$16830_xhr_.JSC$7648_lastErrorCode_+", error: "+a.JSC$16830_xhr_.getLastError(),k=g;aDc(a,g);LZ(a,buc(new _.Jz(d,e,k),c))}})},ZCc=function(a){a.xhrNodeReadableStream_.on("data",function(b){if("1"in
b){var c=b["1"];
try{var d=a.grpcResponseDeserializeFn_(c)}catch(e){LZ(a,new _.Jz(13,"Error when deserializing response data; error: "+e+(", response: "+c)))}d&&cDc(a,d)}if("2"in b)for(b=dDc(a,b["2"]),c=0;c<a.onStatusCallbacks_.length;c++)a.onStatusCallbacks_[c](b)});
a.xhrNodeReadableStream_.on("end",function(){aDc(a,bDc(a));for(var b=0;b<a.onEndCallbacks_.length;b++)a.onEndCallbacks_[b]()});
a.xhrNodeReadableStream_.on("error",function(){if(a.JSC$16830_onErrorCallbacks_.length!=0){var b=a.JSC$16830_xhr_.JSC$7648_lastErrorCode_;b!==0||a.JSC$16830_xhr_.isSuccess()||(b=6);var c=-1;switch(b){case 0:var d=2;break;case 7:d=10;break;case 8:d=4;break;case 6:c=a.JSC$16830_xhr_.getStatus();d=_.Eia(c);break;default:d=14}aDc(a,bDc(a));b=_.Efb(b)+", error: "+a.JSC$16830_xhr_.getLastError();c!=-1&&(b+=", http status code: "+c);LZ(a,new _.Jz(d,b))}})},bDc=function(a){var b={},c=gAc(a.JSC$16830_xhr_);
Object.keys(c).forEach(function(d){b[d]=c[d]});
return b},dDc=function(a,b){var c=2,d={};
try{var e=YCc(b);c=_.Xf(e,1);var g=e.getMessage();_.Vf(e,UBc,3,_.Wf()).length&&(d["grpc-web-status-details-bin"]=b)}catch(k){a.JSC$16830_xhr_&&a.JSC$16830_xhr_.getStatus()===404?(c=5,g="Not Found: "+String(a.JSC$16830_xhr_.JSC$7648_lastUri_)):(c=14,g="Unable to parse RpcStatus: "+k)}return{code:c,details:g,metadata:d}};
KZ.prototype.on=function(a,b){a=="data"?this.onDataCallbacks_.push(b):a=="metadata"?this.onMetadataCallbacks_.push(b):a=="status"?this.onStatusCallbacks_.push(b):a=="end"?this.onEndCallbacks_.push(b):a=="error"&&this.JSC$16830_onErrorCallbacks_.push(b);return this};
var MZ=function(a,b){b=a.indexOf(b);b>-1&&a.splice(b,1)};
KZ.prototype.removeListener=function(a,b){a=="data"?MZ(this.onDataCallbacks_,b):a=="metadata"?MZ(this.onMetadataCallbacks_,b):a=="status"?MZ(this.onStatusCallbacks_,b):a=="end"?MZ(this.onEndCallbacks_,b):a=="error"&&MZ(this.JSC$16830_onErrorCallbacks_,b);return this};
KZ.prototype.cancel=function(){this.JSC$16830_xhr_.abort()};
var cDc=function(a,b){for(var c=0;c<a.onDataCallbacks_.length;c++)a.onDataCallbacks_[c](b)},aDc=function(a,b){for(var c=0;c<a.onMetadataCallbacks_.length;c++)a.onMetadataCallbacks_[c](b)},LZ=function(a,b){for(var c=0;c<a.JSC$16830_onErrorCallbacks_.length;c++)a.JSC$16830_onErrorCallbacks_[c](b)};
KZ.prototype.cancel=KZ.prototype.cancel;KZ.prototype.removeListener=KZ.prototype.removeListener;KZ.prototype.on=KZ.prototype.on;var $Cc=function(){var a=Error.call(this);this.message=a.message;"stack"in a&&(this.stack=a.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
_.z($Cc,Error);var NZ=function(a){this.JSC$16839_worker_=a.worker||null;this.JSC$16839_streamBinaryChunks_=a.streamBinaryChunks||!1;this.JSC$16839_credentialsMode_=void 0};
_.nx(NZ,_.Gia);NZ.prototype.createInstance=function(){var a=new OZ(this.JSC$16839_worker_,this.JSC$16839_streamBinaryChunks_);this.JSC$16839_credentialsMode_&&a.setCredentialsMode(this.JSC$16839_credentialsMode_);return a};
NZ.prototype.setCredentialsMode=function(a){this.JSC$16839_credentialsMode_=a};
var OZ=function(a,b){_.Dz.call(this);this.JSC$16843_worker_=a;this.JSC$16843_streamBinaryChunks_=b;this.JSC$16843_credentialsMode_=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=null;this.requestHeaders_=new Headers;this.JSC$16843_responseHeaders_=null;this.JSC$16843_method_="GET";this.JSC$16843_url_="";this.inProgress_=!1;this.JSC$16843_textDecoder_=this.currentReader_=this.fetchResponse_=null};
_.nx(OZ,_.Dz);OZ.prototype.open=function(a,b){if(this.readyState!=0)throw this.abort(),Error("Hj");this.JSC$16843_method_=a;this.JSC$16843_url_=b;this.readyState=1;PZ(this)};
OZ.prototype.send=function(a){if(this.readyState!=1)throw this.abort(),Error("Ij");this.inProgress_=!0;var b={headers:this.requestHeaders_,method:this.JSC$16843_method_,credentials:this.JSC$16843_credentialsMode_,cache:void 0};a&&(b.body=a);(this.JSC$16843_worker_||_.ja).fetch(new Request(this.JSC$16843_url_,b)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
OZ.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,QZ(this));this.readyState=0};
OZ.prototype.handleResponse_=function(a){if(this.inProgress_&&(this.fetchResponse_=a,this.JSC$16843_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$16843_responseHeaders_=a.headers,this.readyState=2,PZ(this)),this.inProgress_&&(this.readyState=3,PZ(this),this.inProgress_)))if(this.responseType==="arraybuffer")a.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.ja.ReadableStream!==
"undefined"&&"body"in a){this.currentReader_=a.body.getReader();if(this.JSC$16843_streamBinaryChunks_){if(this.responseType)throw Error("Jj");this.response=[]}else this.response=this.responseText="",this.JSC$16843_textDecoder_=new TextDecoder;fDc(this)}else a.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var fDc=function(a){a.currentReader_.read().then(a.handleDataFromStream_.bind(a)).catch(a.handleSendFailure_.bind(a))};
OZ.prototype.handleDataFromStream_=function(a){if(this.inProgress_){if(this.JSC$16843_streamBinaryChunks_&&a.value)this.response.push(a.value);else if(!this.JSC$16843_streamBinaryChunks_){var b=a.value?a.value:new Uint8Array(0);if(b=this.JSC$16843_textDecoder_.decode(b,{stream:!a.done}))this.response=this.responseText+=b}a.done?QZ(this):PZ(this);this.readyState==3&&fDc(this)}};
OZ.prototype.handleResponseText_=function(a){this.inProgress_&&(this.response=this.responseText=a,QZ(this))};
OZ.prototype.handleResponseArrayBuffer_=function(a){this.inProgress_&&(this.response=a,QZ(this))};
OZ.prototype.handleSendFailure_=function(){this.inProgress_&&QZ(this)};
var QZ=function(a){a.readyState=4;a.fetchResponse_=null;a.currentReader_=null;a.JSC$16843_textDecoder_=null;PZ(a)};
OZ.prototype.setRequestHeader=function(a,b){this.requestHeaders_.append(a,b)};
OZ.prototype.getResponseHeader=function(a){return this.JSC$16843_responseHeaders_?this.JSC$16843_responseHeaders_.get(a.toLowerCase())||"":""};
OZ.prototype.getAllResponseHeaders=function(){if(!this.JSC$16843_responseHeaders_)return"";for(var a=[],b=this.JSC$16843_responseHeaders_.entries(),c=b.next();!c.done;)c=c.value,a.push(c[0]+": "+c[1]),c=b.next();return a.join("\r\n")};
OZ.prototype.setCredentialsMode=function(a){this.JSC$16843_credentialsMode_=a};
var PZ=function(a){a.onreadystatechange&&a.onreadystatechange.call(a)};
Object.defineProperty(OZ.prototype,"withCredentials",{get:function(){return this.JSC$16843_credentialsMode_==="include"},
set:function(a){this.setCredentialsMode(a?"include":"same-origin")}});var gDc=function(a){var b="";_.yf.forEach(a,function(c,d){b+=d;b+=":";b+=c;b+="\r\n"});
return b},hDc=function(a,b,c){if(_.yf.isEmpty(c))return a;
c=gDc(c);if(typeof a==="string")return _.Fy(a,_.Li(b),c);_.Lg(a,b,c);return a};var iDc=function(){this.isInputValid_=!0;this.JSC$16849_streamPos_=0;this.leftoverInput_=""};
iDc.prototype.isInputValid=function(){return this.isInputValid_};var AY=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$16852_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
AY.prototype.isInputValid=function(){return this.state_!=3};
var RZ=function(a,b,c,d){a.state_=3;a.errorMessage_="The stream is broken @"+a.JSC$16852_streamPos_+"/"+c+". Error: "+d+". With input:\n"+b;throw Error(a.errorMessage_);};
AY.prototype.acceptsBinaryInput=function(){return!0};
AY.prototype.parse=function(a){function b(n){n&128&&RZ(g,k,m,"invalid tag");(n&7)!=2&&RZ(g,k,m,"invalid wire type");g.tag_=n>>>3;g.tag_!=1&&g.tag_!=2&&g.tag_!=15&&RZ(g,k,m,"unexpected tag");g.state_=1;g.length_=0;g.countLengthBytes_=0}
function c(n){g.countLengthBytes_++;g.countLengthBytes_==5&&n&240&&RZ(g,k,m,"message length too long");g.length_|=(n&127)<<(g.countLengthBytes_-1)*7;n&128||(g.state_=2,g.countMessageBytes_=0,typeof Uint8Array!=="undefined"?g.messageBuffer_=new Uint8Array(g.length_):g.messageBuffer_=Array(g.length_),g.length_==0&&e())}
function d(n){g.messageBuffer_[g.countMessageBytes_++]=n;g.countMessageBytes_==g.length_&&e()}
function e(){if(g.tag_<15){var n={};n[g.tag_]=g.messageBuffer_;g.result_.push(n)}g.state_=0}
for(var g=this,k=a instanceof Array?a:new Uint8Array(a),m=0;m<k.length;){switch(g.state_){case 3:RZ(g,k,m,"stream already broken");break;case 0:b(k[m]);break;case 1:c(k[m]);break;case 2:d(k[m]);break;default:throw Error("Lj`"+g.state_);}g.JSC$16852_streamPos_++;m++}a=g.result_;g.result_=[];return a.length>0?a:null};var duc=function(){this.errorMessage_=null;this.JSC$16855_streamPos_=0;this.base64Decoder_=new iDc;this.pbParser_=new AY};
duc.prototype.isInputValid=function(){return this.errorMessage_===null};
var jDc=function(a,b,c){a.errorMessage_="The stream is broken @"+a.JSC$16855_streamPos_+". Error: "+c+". With input:\n"+b;throw Error(a.errorMessage_);};
duc.prototype.acceptsBinaryInput=function(){return!1};
duc.prototype.parse=function(a){this.errorMessage_!==null&&jDc(this,a,"stream already broken");var b=null;try{var c=this.base64Decoder_;if(!c.isInputValid_)throw c.isInputValid_=!1,Error("Kj`"+c.JSC$16849_streamPos_+"`stream already broken`"+a);c.leftoverInput_+=a;var d=Math.floor(c.leftoverInput_.length/4);if(d==0)var e=null;else{try{var g=_.C3a(c.leftoverInput_.slice(0,d*4))}catch(n){var k=c.leftoverInput_,m=n.message;c.isInputValid_=!1;throw Error("Kj`"+c.JSC$16849_streamPos_+"`"+m+"`"+k);}c.JSC$16849_streamPos_+=
d*4;c.leftoverInput_=c.leftoverInput_.slice(d*4);e=g}b=e===null?null:this.pbParser_.parse(e)}catch(n){jDc(this,a,n.message)}this.JSC$16855_streamPos_+=a.length;return b};var cuc=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$16858_streamPos_=0;this.result_=[];this.statusParsed_=!1};
cuc.prototype.isInputValid=function(){return this.errorMessage_===null};
cuc.prototype.acceptsBinaryInput=function(){return!1};
cuc.prototype.parse=function(a){function b(n){g.state_=6;g.errorMessage_="The stream is broken @"+g.JSC$16858_streamPos_+"/"+k+". Error: "+n+". With input:\n";throw Error(g.errorMessage_);}
function c(){g.jsonStreamParser_=new _.lD({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function d(n){if(n)for(var r=0;r<n.length;r++){var t={};t[1]=n[r];g.result_.push(t)}}
function e(n){if(n){(g.statusParsed_||n.length>1)&&b("extra status: "+n);g.statusParsed_=!0;var r={};r[2]=n[0];g.result_.push(r)}}
for(var g=this,k=0;k<a.length;){var m;if(m=g.state_!==2){a:{for(;k<a.length;){if(!_.kD(a[k])){m=!0;break a}k++;g.JSC$16858_streamPos_++}m=!1}m=!m}if(m)return null;switch(g.state_){case 6:b("stream already broken");break;case 0:a[k]==="["?(g.state_=1,k++,g.JSC$16858_streamPos_++):b("unexpected input token");break;case 1:a[k]==="["?(g.state_=2,c()):a[k]===","||a.slice(k,k+5)=="null,"?g.state_=3:a[k]==="]"?(g.state_=5,k++,g.JSC$16858_streamPos_++):b("unexpected input token");break;case 2:m=g.jsonStreamParser_.parse(a.substring(k));
d(m);g.jsonStreamParser_.done()?(g.state_=3,m=g.jsonStreamParser_.JSC$9209_buffer_,g.JSC$16858_streamPos_+=a.length-k-m.length,a=m,k=0):(g.JSC$16858_streamPos_+=a.length-k,k=a.length);break;case 3:a[k]===","||a.slice(k,k+5)=="null,"?(g.state_=4,c(),g.jsonStreamParser_.parse("["),k+=a[k]===","?1:5,g.JSC$16858_streamPos_++):a[k]==="]"&&(g.state_=5,k++,g.JSC$16858_streamPos_++);break;case 4:m=g.jsonStreamParser_.parse(a.substring(k));e(m);g.jsonStreamParser_.done()?(g.state_=5,m=g.jsonStreamParser_.JSC$9209_buffer_,
g.JSC$16858_streamPos_+=a.length-k-m.length,a=m,k=0):(g.JSC$16858_streamPos_+=a.length-k,k=a.length);break;case 5:b("extra input after stream end")}}return g.result_.length>0?(a=g.result_,g.result_=[],a):null};var kDc=function(a){this.JSC$16861_xhr_=a;this.JSC$16861_parser_=null;this.status_=this.JSC$16861_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$16861_textDecoder_=null;this.JSC$16861_eventHandler_=new _.bn(this);this.JSC$16861_eventHandler_.listen(this.JSC$16861_xhr_,"readystatechange",this.JSC$16863_readyStateChangeHandler_)},SZ=function(a,b){a.status_!=b&&(a.status_=b,a.statusHandler_&&a.statusHandler_())},TZ=function(a){a.JSC$16861_eventHandler_.removeAll();
if(a.JSC$16861_xhr_){var b=a.JSC$16861_xhr_;a.JSC$16861_xhr_=null;b.abort();b.dispose()}};
kDc.prototype.getStatus=function(){return this.status_};
kDc.prototype.JSC$16863_readyStateChangeHandler_=function(a){a=a.target;try{if(a==this.JSC$16861_xhr_)a:{var b=_.Mz(this.JSC$16861_xhr_),c=this.JSC$16861_xhr_.JSC$7648_lastErrorCode_,d=this.JSC$16861_xhr_.getStatus(),e=this.JSC$16861_xhr_.getResponseText();a=[];if(this.JSC$16861_xhr_.getResponse()instanceof Array){var g=this.JSC$16861_xhr_.getResponse();g.length>0&&g[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,a=g)}if(!(b<3||b==3&&!e&&a.length==0))if(d=d==200||d==206,b==4&&(c==8?SZ(this,
7):c==7?SZ(this,8):d||SZ(this,3)),this.JSC$16861_parser_||(this.JSC$16861_parser_=euc(this.JSC$16861_xhr_),this.JSC$16861_parser_==null&&SZ(this,5)),this.status_>2)TZ(this);else{if(a.length>this.JSC$16861_pos_){var k=a.length;c=[];try{if(this.JSC$16861_parser_.acceptsBinaryInput())for(var m=0;m<k;m++){var n=this.JSC$16861_parser_.parse(Array.from(a[m]));n&&(c=c.concat(n))}else{n="";if(!this.JSC$16861_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("Mj");this.JSC$16861_textDecoder_=new TextDecoder}for(m=
0;m<k;m++)n+=this.JSC$16861_textDecoder_.decode(a[m],{stream:b==4&&m==k-1});c=this.JSC$16861_parser_.parse(n)}a.splice(0,k);c&&this.dataHandler_(c)}catch(t){SZ(this,5);TZ(this);break a}}else if(e.length>this.JSC$16861_pos_){m=e.slice(this.JSC$16861_pos_);this.JSC$16861_pos_=e.length;try{var r=this.JSC$16861_parser_.parse(m);r!=null&&this.dataHandler_&&this.dataHandler_(r)}catch(t){SZ(this,5);TZ(this);break a}}b==4?(e.length!=0||this.hasStreamingResponseData_?SZ(this,2):SZ(this,4),TZ(this)):SZ(this,
1)}}}catch(t){SZ(this,6),TZ(this)}};var lDc=function(a){a=this.xhrReader_=a;var b=(0,_.ug)(this.onData_,this);a.dataHandler_=b;a=this.xhrReader_;b=(0,_.ug)(this.onStatusChange_,this);a.statusHandler_=b;this.JSC$16865_callbackMap_={};this.callbackOnceMap_={}};
_.f=lDc.prototype;_.f.on=function(a,b){var c=this.JSC$16865_callbackMap_[a];c||(c=[],this.JSC$16865_callbackMap_[a]=c);c.push(b);return this};
_.f.addListener=function(a,b){this.on(a,b);return this};
_.f.removeListener=function(a,b){var c=this.JSC$16865_callbackMap_[a];c&&_.Qa(c,b);(a=this.callbackOnceMap_[a])&&_.Qa(a,b);return this};
_.f.once=function(a,b){var c=this.callbackOnceMap_[a];c||(c=[],this.callbackOnceMap_[a]=c);c.push(b);return this};
_.f.onData_=function(a){var b=this.JSC$16865_callbackMap_.data;b&&mDc(a,b);(b=this.callbackOnceMap_.data)&&mDc(a,b);this.callbackOnceMap_.data=[]};
var mDc=function(a,b){for(var c={},d=0;d<a.length;c={message$jscomp$949:void 0},d++)c.message$jscomp$949=a[d],b.forEach(function(e){return function(g){try{g(e.message$jscomp$949)}catch(k){}}}(c))};
lDc.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:nDc(this,"readable");break;case 5:case 6:case 4:case 7:case 3:nDc(this,"error");break;case 8:nDc(this,"close");break;case 2:nDc(this,"end")}};
var nDc=function(a,b){var c=a.JSC$16865_callbackMap_[b];c&&c.forEach(function(d){try{d()}catch(e){}});
(c=a.callbackOnceMap_[b])&&c.forEach(function(d){d()});
a.callbackOnceMap_[b]=[]};var oDc=function(){var a={format:"jspb"};a=a===void 0?{}:a;this.suppressCorsPreflight_=a.suppressCorsPreflight||_.Ji("suppressCorsPreflight",a)||!1;this.JSC$16868_withCredentials_=a.withCredentials||_.Ji("withCredentials",a)||!1;this.streamInterceptors_=a.streamInterceptors||[];this.unaryInterceptors_=a.unaryInterceptors||[];this.workerScope_=a.workerScope;this.chunkedServerStreaming_=a.useFetchDownloadStreams||!1},rDc=function(a,b,c,d,e,g){g=g===void 0?{}:g;
var k=b.substring(0,b.length-e.name.length),m,n=(m=g)==null?void 0:m.signal;return pDc(function(r){return new Promise(function(t,u){if(n==null?0:n.aborted){var w=new _.Jz(1,"Aborted");w.cause=n.reason;u(w)}else{var A={},C=qDc(a,r,k);C.on("error",function(G){return u(G)});
C.on("metadata",function(G){A=G});
C.on("data",function(G){var J=A;J=J===void 0?{}:J;t(new GCc(G,J))});
n&&n.addEventListener("abort",function(){C.cancel();var G=new _.Jz(1,"Aborted");G.cause=n.reason;u(G)})}})},a.unaryInterceptors_).call(a,HCc(e,c,d)).then(function(r){return r.responseMessage})},UZ=function(a,b,c,d,e){var g=g===void 0?{}:g;
return rDc(a,b,c,d,e,g)};
oDc.prototype.serverStreaming=function(a,b,c,d){var e=this,g=a.substring(0,a.length-d.name.length);return pDc(function(k){var m=k.methodDescriptor,n=k.getMetadata(),r=sDc(e,!1);n=tDc(e,n,r,g+m.getName());var t=uDc(r,m.responseDeserializeFn,!0);k=m.requestSerializeFn(k.requestMessage);r.send(n,"POST",k);return t},this.streamInterceptors_).call(this,HCc(d,b,c))};
var qDc=function(a,b,c){var d=b.methodDescriptor,e=b.getMetadata(),g=sDc(a,!0);a=tDc(a,e,g,c+d.getName());c=uDc(g,d.responseDeserializeFn,!1);eDc(c,e["X-Goog-Encode-Response-If-Executable"]=="base64");b=d.requestSerializeFn(b.requestMessage);g.send(a,"POST",b);return c},sDc=function(a,b){b=a.chunkedServerStreaming_&&!b;
return a.workerScope_||b?new _.Lz(new NZ({worker:a.workerScope_,streamBinaryChunks:b})):new _.Lz},tDc=function(a,b,c,d){b["Content-Type"]="application/json+protobuf";
b["X-User-Agent"]="grpc-web-javascript/0.1";var e=b.Authorization;if(e&&WCc.has(e.split(" ")[0])||a.JSC$16868_withCredentials_)c.JSC$7648_withCredentials_=!0;if(a.suppressCorsPreflight_)d=hDc(d,"$httpHeaders",b);else for(var g in b)c.headers.set(g,b[g]);return d},uDc=function(a,b,c){if(c){c=new kDc(a);
var d=new lDc(c)}return new KZ({xhr:a,nodeReadableStream:d},b)},pDc=function(a,b){return b.reduce(function(c,d){return function(e){return d.intercept(e,c)}},a)};var vDc=function(a){this.client_=new oDc;this.hostname_=a==void 0?a:a.replace(/\/+$/,"")};
_.f=vDc.prototype;_.f.JSC$16882_depositGoogleCredential=function(a,b){return UZ(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",a,b||{},LCc)};
_.f.deleteLink=function(a,b){return UZ(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",a,b||{},JCc)};
_.f.JSC$16882_finishOAuth=function(a,b){return UZ(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",a,b||{},NCc)};
_.f.getLink=function(a,b){return UZ(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",a,b||{},OCc)};
_.f.startLinkingSession=function(a,b){return UZ(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",a,b||{},VCc)};var wDc=[0,KBc,1,NBc,[0,_.ey,[0,LBc,-1]],[0,MBc]];var xDc=function(){this.storage=new Map},zDc=function(a,b,c,d,e){if(!a.storage.has(b))return null;
a=_.h(a.storage.get(b));for(b=a.next();!b.done;b=a.next())if(b=b.value,!e||b.linkName===e)if(c&&b.scopes&&yDc(b.scopes,c)||d&&b.capabilities&&yDc(b.capabilities,d))return b;return null},ADc=function(a,b,c){if(!c)a.storage.delete(b);
else if(a.storage.has(b)){var d=a.storage.get(b).filter(function(e){return e.linkName!==c});
d.length>0?a.storage.set(b,d):a.storage.delete(b)}},yDc=function(a,b){b=_.h(b);
for(var c=b.next();!c.done;c=b.next())if(!a.has(c.value))return!1;return!0};var BDc=function(){var a=_.Ei("LINK_GAL_DOMAIN");this.alsDomain1p=_.Ei("LINK_GAL_DOMAIN");this.alsDomain3p=a;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},CDc=function(a,b){a.apiKey=b;
return a};
BDc.prototype.build=function(){var a={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("Nj");a.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("Oj");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("Pj");a.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(a.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)a.apiKey=
this.apiKey,a.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("Qj");a.oauthToken=this.oauthToken;a.alsDomain=this.alsDomain3p}a.clientXd3=this.clientXd3;a.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(a.authUser=this.authUser);this.bucket!==void 0&&(a.bucket=this.bucket);this.completionUrl!==void 0&&(a.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(a.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(a.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(a.locale=this.locale);a.loggerType=this.loggerType;a.clientEnvironment=this.clientEnvironment;a.colorScheme=this.colorScheme;a.showCloseOption=this.showCloseOption;return a};var BY=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(BY,_.Xc);var DDc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(DDc,_.Xc);var EDc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(EDc,_.Xc);var DY=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(DY,_.Xc);var FDc=function(a){return _.Px(a,1)};var GDc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(GDc,_.Xc);var luc=_.kd(GDc),CY=[1,2,3,4,5];var huc=function(a){try{return luc(a)}catch(b){return null}},HDc=function(){},iuc=function(a,b){switch(_.Ex(b,CY)){case 4:return(b=_.Sx(b,EDc,4,CY))&&a.logStateTransition(_.Px(b,1)),!0;
case 5:return(b=_.Sx(b,DDc,5,CY))&&a.logInternalEvent(_.Px(b,1)),!0}return!1},muc=function(a){switch(a){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.Sb(a)}};var fuc=function(a,b){var c=this;this.validator=a;this.messageListener=b;this.dismissCallback=function(){IDc(c,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$16911_receiveMessage=function(d){d.type==="message"&&(d=d.event_,d!==null&&(new URL(c.iframe.src)).origin===d.origin&&c.validator(d.data,d.origin)&&!c.messageListener(d.data)&&(c.JSC$16911_resolveCb!==void 0&&c.JSC$16911_resolveCb(d.data),JDc(c)))}},kuc=function(a,b,c){a.uiHandler!==void 0&&IDc(a,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(d,e){a.JSC$16911_resolveCb=d;a.JSC$16911_rejectCb=e;a.iframe=document.createElement("iframe");_.Qd(a.iframe,b);a.uiHandler=c.displayContent(a.iframe,a.dismissCallback);_.ss(window,"message",a.JSC$16911_receiveMessage,!1,a)})},IDc=function(a,b){a.JSC$16911_rejectCb!==void 0&&a.JSC$16911_rejectCb(b);
JDc(a)},JDc=function(a){a.uiHandler!==void 0&&a.uiHandler.hideContent();
_.Cz(window,"message",a.JSC$16911_receiveMessage,!1,a);a.JSC$16911_resolveCb=void 0;a.JSC$16911_rejectCb=void 0;a.uiHandler=void 0;a.iframe=void 0};var KDc=function(a){if(a===2){var b;a=((b=window)==null?0:b.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return a},juc=function(a){a=KDc(a);
switch(a){case 0:return"light";case 1:return"dark";default:_.Sb(a)}};var guc=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),LDc=function(a,b){this.JSC$16923_linkingSession=a;this.noticeConfig=b;this.displayInfoMap=new Map;var c=new Map;if(_.zx(this.JSC$16923_linkingSession,QCc,7))for(a=_.Xj(this.JSC$16923_linkingSession,QCc,7),a=_.Vf(a,IZ,1,_.Wf()),a=_.h(a),b=a.next();!b.done;b=a.next())b=b.value,c.set(b.getType(),_.bja(_.Xj(b,_.H3a,3)));if(c.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){b=this.noticeConfig.enabledDataUsageNoticeUis;a=b.has(0)?c.get(1):void 0;b=b.has(1)?c.get(2):void 0;c=a!==void 0&&b!==void 0?c.get(3):void 0;var d=this.noticeConfig.nestedOrigins;var e=new GDc;var g=new BY;e=_.qd(e,2,CY,g);g=new GDc;var k=new BY;g=_.qd(g,3,CY,k);k=[];a!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:a,lastEvent:e,nestedOrigins:d}]),k.push({trustedUrl:a,lastEvent:e,nestedOrigins:d}));b!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:b,lastEvent:g,nestedOrigins:d}]),k.push({trustedUrl:b,lastEvent:g,nestedOrigins:d}));c!==void 0?this.displayInfoMap.set(3,[{trustedUrl:c,lastEvent:g,nestedOrigins:d}]):this.displayInfoMap.set(3,k)}};var MDc=function(a){var b=new xDc;this.galService=a;this.galCache=b};
MDc.prototype.getLink=function(a){var b=a.serviceId;var c=a.scopes;var d=a.capabilities;var e=a.linkName;var g=this,k;return _.l(function(m){if(d!==void 0&&c!==void 0)throw Error("Rj");k=zDc(g.galCache,b,c,d,e);return k!==null?m.return(k):m.return(g.galService.getLink({serviceId:b,sessionId:Math.floor(Math.random()*2147483648),scopes:c,capabilities:d,linkName:e}).then(function(n){n=ruc(n);var r=g.galCache;r.storage.has(b)?r.storage.get(b).push(n):r.storage.set(b,[n]);return n}))})};
MDc.prototype.deleteLink=function(a,b,c){var d=this;return _.l(function(e){ADc(d.galCache,a,c);return e.return(d.galService.deleteLink({serviceId:a,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:b,linkName:c}).then(function(){return!0}))})};var ODc=function(a,b){var c=this;this.validator=a;this.msgHandler=b;this.closedPopupTimeout=this.JSC$16945_rejectCb=this.JSC$16945_resolveCb=this.popup=null;this.JSC$16945_receiveMessage=function(d){if(d!==null&&(d=d.event_,d.source===c.popup)){var e=d.data;if(c.validator(e,d.origin)){var g;(g=c.msgHandler)!=null&&g.call(c,e)||(c.JSC$16945_resolveCb!==null&&c.JSC$16945_resolveCb(e),NDc(c))}}}};
ODc.prototype.open=function(a,b){var c=this;this.popup!==null&&PDc(this);return new Promise(function(d,e){c.JSC$16945_resolveCb=d;c.JSC$16945_rejectCb=e;c.popup=_.Rd(window,a,"",b);_.ss(window,"message",c.JSC$16945_receiveMessage,!1,c);QDc(c)})};
var PDc=function(a,b){a.JSC$16945_rejectCb!==null&&a.JSC$16945_rejectCb(b);NDc(a)},NDc=function(a){a.closedPopupTimeout&&(a.closedPopupTimeout.cancel(),a.closedPopupTimeout=null);
a.popup&&a.popup.close();_.Cz(window,"message",a.JSC$16945_receiveMessage,!1,a);a.popup=null;a.JSC$16945_resolveCb=null;a.JSC$16945_rejectCb=null},QDc=function(a){a.closedPopupTimeout=_.zfb(100).then(function(){a.popup?a.popup.closed?RDc(a):QDc(a):PDc(a,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},RDc=function(a){a.closedPopupTimeout=_.zfb(100).then(function(){PDc(a,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var SDc=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),TDc=function(a,b,c,d,e,g,k,m,n,r){var t=this;this.serviceId=a;this.sessionId=b;this.galService=c;this.oauthDetails=d;this.galLogger=e;this.interactionMode=g;this.redirectServiceUrl=k;this.consentLanguageKeys=m;this.dynamicUrlParameters=n;this.partnerConfigMinReadTimestamp=r;this.started=!1;this.JSC$16951_dataValidator=function(u,
w){var A=SDc.has(w);A||t.redirectServiceUrl===void 0||(A=t.redirectServiceUrl===w);return A?u.sentinel==="gdi":!1}};
TDc.prototype.complete=function(){var a=this,b;return _.l(function(c){if(a.interactionMode!==1)return c.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));b=FY.getRedirectStateFromUri();return b===null?c.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):c.return(UDc(a,b))})};
TDc.prototype.start=function(){var a=this,b;return _.l(function(c){if(a.started)return c.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.Ox(a.oauthDetails,1))return c.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(a.interactionMode===1)return FY.setLocation(_.Ox(a.oauthDetails,1)),c.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));a.started=!0;a.galLogger.logStateTransition(5);
b=FY.getPostMessagePopup(a.JSC$16951_dataValidator);return c.return(b.open(_.Ox(a.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(d){a.started=!1;var e=a.galLogger;if((d==null?void 0:d.error)!==void 0)throw e.logInternalEvent(59),Error("Sj");if((d==null?void 0:d.redirect_state)===void 0)throw e.logInternalEvent(131),Error("Tj");return UDc(a,d.redirect_state)}).catch(function(d){a.started=
!1;
return d.errorCode!==void 0?{statusCode:d.errorCode,statusMessage:d.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var UDc=function(a,b){return _.l(function(c){return c.return(VDc(a.galService,{serviceId:a.serviceId,sessionId:a.sessionId,dynamicUrlParameters:a.dynamicUrlParameters,redirectState:b,consentLanguageKeys:a.consentLanguageKeys,partnerConfigMinReadTimestamp:a.partnerConfigMinReadTimestamp}).then(function(d){var e=d.getLink();e={statusCode:1,link:ruc(e)};msc(_.Cx(d,3))!==void 0&&(e.callerState=msc(_.Cx(d,3)));a.galLogger.logInternalEvent(134);return e}))})},FY={getPostMessagePopup:function(a){return new ODc(a)},
getRedirectStateFromUri:function(){var a=_.Jg(FY.getLocation()).fragment_;return(new _.nA(a)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(a){_.Sda(window.location,_.Gd(a))},
createOAuthFlow:function(a,b){return new TDc(a.serviceId,a.sessionId,a.galService,b,a.galLogger,a.interactionMode,a.redirectServiceUrl,a.consentLanguageKeys,a.dynamicUrlParameters,a.partnerConfigMinReadTimestamp)}};var WDc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(WDc,_.Xc);var XDc=_.kd(WDc);var YDc=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),ZDc=function(a,b,c,d,e,g,k,m,n){var r=this;this.serviceId=a;this.sessionId=b;this.galService=c;this.gsiWebFlowDetails=d;this.colorScheme=e;this.showCloseOption=g;this.galLogger=k;this.interactionMode=m;this.redirectServiceUrl=n;this.started=!1;this.JSC$16963_dataValidator=function(t,u){var w=YDc.has(u);w||r.redirectServiceUrl===
void 0||(w=r.redirectServiceUrl===u);return w?t.sentinel==="gal":!1};
this.logEventProcessor=function(t){return t.result?(t=huc(t.result))?iuc(r.galLogger,t):!1:!1}};
ZDc.prototype.complete=function(){var a=this,b,c;return _.l(function(d){if(a.interactionMode!==1)return d.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));b=GY.getRedirectStateFromUri();if(b===void 0)return a.galLogger.JSC$16903_logErrorEvent(131),d.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return c=$Dc(a,b),d.return(aEc(a,c))}catch(e){return d.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
ZDc.prototype.start=function(){var a=this,b;return _.l(function(c){if(a.started)return c.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.Ox(a.gsiWebFlowDetails,1))return c.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(a.interactionMode===1)return GY.setLocation(bEc(a,_.Ox(a.gsiWebFlowDetails,1))),c.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
a.started=!0;b=GY.getPostMessagePopup(a.JSC$16963_dataValidator,a.logEventProcessor);return c.return(b.open(bEc(a,_.Ox(a.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(d){a.started=!1;if((d==null?void 0:d.result)===void 0)throw a.galLogger.JSC$16903_logErrorEvent(131),Error("Tj");d=$Dc(a,d.result);return aEc(a,d)}).catch(function(d){a.started=!1;
return d.errorCode!==void 0?{statusCode:d.errorCode,statusMessage:d.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var bEc=function(a,b){a=["result_channel",a.interactionMode===1?"2":"1","color_scheme",juc(a.colorScheme),"show_close_option",a.showCloseOption];return RBc(b,a)},aEc=function(a,b){if(b!==null&&_.zx(b,DY,2)){var c,d=b==null?void 0:(c=_.Xj(b,DY,2))==null?void 0:_.Px(c,2);
d&&a.galLogger.JSC$16903_logErrorEvent(muc(d));return FDc(_.Xj(b,DY,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 a.galService.getLink({serviceId:a.serviceId,sessionId:a.sessionId,consistencyKey:_.Ox(b,1)}).then(function(e){e=ruc(e);a.galLogger.logInternalEvent(134);return{statusCode:1,link:e}})},$Dc=function(a,b){b=XDc(b);
if(!_.zx(b,DY,2)&&_.Ox(b,1)==="")throw a.galLogger.JSC$16903_logErrorEvent(5),Error("Uj");return b},GY={getPostMessagePopup:function(a,b){return new ODc(a,b)},
getRedirectStateFromUri:function(){return _.Kg(_.Jg(GY.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(a){_.Sda(window.location,_.Gd(a))},
createStreamlinedFlow:function(a,b){return new ZDc(a.serviceId,a.sessionId,a.galService,b,a.colorScheme,a.showCloseOption,a.galLogger,a.interactionMode,a.redirectServiceUrl)}};var Guc=function(){var a=_.Toa("GAL");this.storage=a?new _.rj(a):null};var VZ=function(){};
_.z(VZ,HDc);VZ.prototype.logStateTransition=function(){};
VZ.prototype.logInternalEvent=function(){};
VZ.prototype.JSC$16903_logErrorEvent=function(){};var cEc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(cEc,_.Xc);cEc.prototype.getCompletionUrl=function(){return _.Ox(this,15)};var WZ=function(a,b,c,d,e,g){this.serviceId=a;this.environment=b;this.sessionId=c;this.colorSchemeSelected=d;this.colorThemeDisplayed=e;this.JSC$16976_transport=g;this.currentState=1};
_.z(WZ,HDc);WZ.prototype.logStateTransition=function(a){var b=dEc(this);b=_.Yj(b,3,this.currentState);b=_.Yj(b,1,a);this.currentState=a;a=fAc(1);this.dispatch(b,a)};
WZ.prototype.logInternalEvent=function(a){a=fAc(a);this.dispatch(dEc(this),a)};
WZ.prototype.JSC$16903_logErrorEvent=function(a){var b=dEc(this);b=_.Yj(b,1,10);a=fAc(a);this.dispatch(b,a)};
var dEc=function(a){var b=new cEc;b=_.Yj(b,1,a.currentState);b=_.sf(b,7,a.serviceId);var c,d,e;((c=window)==null?0:(d=c.location)==null?0:d.href)?e=_.Jg(window.location.href).JSC$7879_domain_:e="NO_PACKAGE_NAME";c=_.sf(b,8,e);c=_.Yj(c,6,a.environment);c=_.sf(c,5,"100");c=_.Yj(c,11,a.colorSchemeSelected);return _.Yj(c,12,a.colorThemeDisplayed)};
WZ.prototype.dispatch=function(a,b){b===void 0&&(b=new _.rz);var c=b;a=a.serialize();c=_.sf(c,8,a);_.sl(c,12,this.sessionId);this.JSC$16976_transport.dispatch(b)};var eEc=function(a,b){this.loggerType=a;this.sessionIndex=b!=null?b:0},fEc;
eEc.prototype.create=function(a,b,c,d,e){switch(this.loggerType){case 0:return new VZ;case 1:return fEc||(fEc=(new _.fg(555,this.sessionIndex.toString())).build()),new WZ(a,b,c,d,e,fEc);default:_.Sb(this.loggerType,"unknown logger type")}};var HY=[6,2,3,1],Luc=new Map([[4,1],[1,6],[2,2],[3,3]]),vuc={statusCode:7,statusMessage:"Failed to create flow object"},Euc=function(a,b,c,d,e,g,k,m,n,r){this.serviceId=a;this.sessionId=b;this.config=c;this.galService=d;this.JSC$16983_linkingSession=e;this.googleScopes=g;this.callerState=k;this.consentLanguageKeys=m;this.dynamicUrlParameters=n;this.partnerConfigMinReadTimestamp=r;this.currentFlow=0;d=this.JSC$16983_linkingSession;e=new Set;_.zx(d,Auc,1)&&e.add(1);_.zx(d,SCc,2)&&_.zx(d,Buc,6)&&e.add(2);
_.zx(d,RCc,3)&&_.zx(d,Buc,6)&&e.add(3);_.zx(d,PCc,4)&&e.add(6);this.supportedFlows=e;d=c.loggerType;e=c.clientEnvironment;a:{g=c.colorScheme;switch(g){case 0:g=1;break a;case 1:g=2;break a;case 2:g=3;break a;default:_.Sb(g)}g=void 0}a:{k=c.colorScheme;k=KDc(k);switch(k){case 0:k=1;break a;case 1:k=2;break a;default:_.Sb(k)}k=void 0}this.galLogger=(new eEc(d,c.authUser)).create(a,e,b,g,k)},hEc=function(a){return new Promise(function(b){var c,d,e,g,k,m,n,r,t,u;
return _.l(function(w){switch(w.nextAddress){case 1:c=Cuc(a.currentFlow,a.supportedFlows),d=!1,e=new LDc(a.JSC$16983_linkingSession,a.config.dataUsageNoticeConfig);case 2:if(c===void 0){w.jumpTo(4);break}_.me(w,5);var A=e,C=c,G=void 0;d?C===1&&(G=A.displayInfoMap.get(2)):C===2||C===3?G=A.displayInfoMap.get(1):C===1&&(G=A.displayInfoMap.get(3));g=G?G:[];k=a.consentLanguageKeys;m=_.h(g);n=m.next();case 7:if(n.done)return a.currentFlow=c,_.p(w,xuc(gEc(a,k)),11);r=n.value;return _.p(w,nuc(r,a.config.dataUsageNoticeConfig.uiAdapter,
a.config.colorScheme,a.galLogger),10);case 10:t=w.yieldResult;if(t.statusCode!==1)return Huc(a.serviceId),a.currentFlow=0,b(EY({statusCode:t.statusCode,statusMessage:t.statusMessage},a.callerState)),w.return();t.consentLanguageKeys!==void 0&&(k=t.consentLanguageKeys);n=m.next();w.jumpTo(7);break;case 11:u=w.yieldResult;if(u.statusCode!==10)return u.statusCode!==6&&(Huc(a.serviceId),a.currentFlow=0),u.statusCode!==1&&a.callerState!==void 0&&(u.callerState=a.callerState),b(u),w.return();_.Jj(w,6);break;
case 5:_.re(w);case 6:c=Cuc(a.currentFlow,a.supportedFlows);d=!0;w.jumpTo(2);break;case 4:Huc(a.serviceId),a.currentFlow=0,b(EY({statusCode:12,statusMessage:"Linking failed"},a.callerState)),_.se(w)}})})},Juc=function(a,b,c){a.currentFlow=b;
return yuc(gEc(a,c)).then(function(d){return d.statusCode===10&&a.config.interactionMode===1&&Cuc(a.currentFlow,a.supportedFlows)!==void 0?hEc(a):d})},gEc=function(a,b){return{flowParams:{serviceId:a.serviceId,
sessionId:a.sessionId,galService:a.galService,galLogger:a.galLogger,interactionMode:a.config.interactionMode,redirectServiceUrl:a.config.redirectServiceUrl,colorScheme:a.config.colorScheme,consentLanguageKeys:b,dynamicUrlParameters:a.dynamicUrlParameters,showCloseOption:a.config.showCloseOption,partnerConfigMinReadTimestamp:a.partnerConfigMinReadTimestamp},currentFlow:a.currentFlow,config:a.config,session:a.JSC$16983_linkingSession,googleScopes:a.googleScopes,callerState:a.callerState}};var Vuc=function(a,b){this.config=a;this.galService=b.getService();this.JSC$16996_galRepository=b.JSC$17033_galRepository};
Vuc.prototype.getLink=function(a,b){return iEc(this,a,b)};
var iEc=function(a,b,c){return a.JSC$16996_galRepository.getLink({serviceId:b,scopes:void 0,capabilities:void 0,linkName:c}).then(function(d){return{statusCode:1,link:d}}).catch(function(d){return{statusCode:Muc(d.code),
statusMessage:d.message}})};
Vuc.prototype.deleteLink=function(a,b){return this.JSC$16996_galRepository.deleteLink(a,this.config.accountLinkingEntryPoint,b).then(function(){return{statusCode:1}}).catch(function(c){return{statusCode:Muc(c.code),
statusMessage:c.message}})};
Vuc.prototype.startLinkingSession=function(a){var b=a.serviceId;var c=a.sessionId;return Fuc({serviceId:b,sessionId:c!==void 0?c:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:a.loginHint,callerState:a.callerState,consentLanguageKeys:a.consentLanguageKeys,linkName:a.linkName,dynamicUrlParameters:a.dynamicUrlParameters,partnerConfigMinReadTimestamp:a.partnerConfigMinReadTimestamp})};var Nuc=null,Ruc=new WeakMap;var jEc=function(){};
jEc.prototype.send=function(a,b){Uuc(a);return this.makeRequest(a).then(function(c){if(b){var d=new b;if(c!=null){if(b==null)throw Error("Wj");new b;throw Error("Yj");}c=d}return c})};var kEc=function(a,b,c,d,e){this.gapiUrl=a;this.gapiKey=b;this.gapiConfigUpdates=c||{};this.gapiAuthParams=d||{};this.defaultApiId=e};
_.z(kEc,jEc);var mEc=function(a){return Puc().then(function(b){b=b||window.gapi;lEc(a,b);return Tuc(b,{apiKey:a.gapiKey,clientId:a.gapiAuthParams.clientId,scope:a.gapiAuthParams.scope,hostedDomain:a.gapiAuthParams.hostedDomain,fetchBasicProfile:a.gapiAuthParams.fetchBasicProfile}).then(function(){return b})})};
kEc.prototype.makeRequest=function(a){var b=this;return mEc(this).then(function(c){return _.l(function(d){if(d.nextAddress==1)return b.gapiAuthParams.minAuthTokenTimeRemaining===void 0?d.jumpTo(2):_.p(d,Suc(c,b.gapiAuthParams.minAuthTokenTimeRemaining),2);lEc(b,c);return d.return(nEc(c.client.request({root:b.gapiUrl,path:a.path,method:a.httpMethod,body:a.body,params:a.queryParams,headers:a.headers,authType:a.authType,apiId:a.apiId||b.defaultApiId})))})})};
var nEc=function(a){return new Promise(function(b,c){a.then(function(d){b(d.result===!1&&d.body!=null?{data:d.body}:d.result)},function(d){c(d.result===!1&&d.body!=null?{data:d.body}:d.result)})})},lEc=function(a,b){for(var c in a.gapiConfigUpdates)if(a.gapiConfigUpdates.hasOwnProperty(c)){var d=b,e=c,g=a.gapiConfigUpdates[c],k=d.config.get(e);
g!==k&&d.config.update(e,g)}};
kEc.$inject=["gapiUrl","gapiKey","gapiConfigUpdates","gapiAuthParams","defaultApiId"];var XZ=function(a,b,c,d,e,g,k,m){this.apiKey=b;this.authUser=c;this.oauthToken=d;this.bucket=e;this.locale=k;this.galSdkEventHandler=m;if(d===void 0){if(b===void 0)throw Error("Zj");this.requestService=new kEc(a,b,{"googleapis.config/auth/useFirstPartyAuth":!0,"googleapis.config/auth/useFirstPartyAuthV2":!0,"client/xd4":g===void 0||g===!1,"client/xd3":g===!0})}this.galServiceClient=new vDc(a)};
XZ.prototype.deleteLink=function(a){var b=a.serviceId;var c=a.sessionId;var d=a.accountLinkingEntryPoint;var e=a.linkName;var g=this,k;return _.l(function(m){var n=(new EZ).setHeader(YZ(g,c));var r=oEc({serviceId:b,linkName:e});n=_.pd(n,2,r);k=_.Ux(n,3,d);return m.return(g.makeRequest(g.galServiceClient.deleteLink,k,[1,3],[2,4]))})};
var VDc=function(a,b){var c=b.serviceId;var d=b.sessionId;var e=b.dynamicUrlParameters;var g=b.redirectState;var k=b.consentLanguageKeys;var m=b.partnerConfigMinReadTimestamp;var n;return _.l(function(r){var t=(new GZ).setHeader(YZ(a,d,e));t=_.ew(t,2,c);n=_.ew(t,4,g);k!==void 0&&_.ew(n,5,k);m!==void 0&&_.pd(n,6,m);return r.return(a.makeRequest(a.galServiceClient.JSC$16882_finishOAuth,n,[1,3],[2,4]))})};
XZ.prototype.getLink=function(a){var b=a.serviceId;var c=a.sessionId;var d=a.scopes;var e=a.capabilities;var g=a.consistencyKey;var k=a.linkName;var m=this,n;return _.l(function(r){var t=(new HZ).setHeader(YZ(m,c)),u=oEc({serviceId:b,scopes:d,capabilities:e,linkName:k});n=_.pd(t,2,u);g!==void 0&&(t=CCc(),t=_.ew(t,2,g),_.pd(n,3,t));return r.return(m.makeRequest(m.galServiceClient.getLink,n,[1,3],[2,4]))})};
var zuc=function(a,b){var c=b.serviceId;var d=b.sessionId;var e=b.googleScopes;var g=b.consistencyKey;var k;return _.l(function(m){var n=(new FZ).setHeader(YZ(a,d));n=_.ew(n,2,c);var r=Array.from(e.values());n=_.Oc(n,3,r,_.lc);r=CCc();r=_.ew(r,2,g);k=_.pd(n,4,r);return m.return(a.makeRequest(a.galServiceClient.JSC$16882_depositGoogleCredential,k,[1,3],[2,4]))})};
XZ.prototype.startLinkingSession=function(a){var b=a.serviceId;var c=a.sessionId;var d=a.scopes;var e=a.capabilities;var g=a.loginHint;var k=a.supportedFlows;var m=a.completionUrl;var n=a.usePingPong;var r=a.twoWayLinking;var t=a.accountLinkingEntryPoint;var u=a.callerState;var w=a.consentLanguageKeys;var A=a.googleScopes;var C=a.dataUsageNoticeConfig;var G=a.linkName;var J=a.dynamicUrlParameters;var I=a.partnerConfigMinReadTimestamp;var R=this,ca,V;return _.l(function(fa){if(e!==void 0&&d!==void 0)throw Error("Rj");
var aa=(new JZ).setHeader(YZ(R,c,J));ca=_.ew(aa,2,b);G!==void 0&&_.ew(ca,14,G);if(e!==void 0){aa=ca;var ma=Array.from(e.values());_.Oc(aa,5,ma,_.lc)}else d!==void 0&&(aa=ca,ma=Array.from(d.values()),_.Oc(aa,3,ma,_.lc));m!==void 0&&_.ew(ca,6,m);n!==void 0&&_.Bn(ca,15,n);k!==void 0&&(aa=ca,ma=Array.from(k.values()),_.Oc(aa,4,ma,_.Xb));if(r!==void 0){if(r&&(!A||A.size===0))throw Error("$j");_.Bn(ca,8,r)}t!==void 0&&_.Ux(ca,9,t);g!==void 0&&_.ew(ca,13,g);u!==void 0&&(aa=ca,ma=(new TextEncoder).encode(u),
_.Qc(aa,12,_.yb(ma,!1),_.wb()));w!==void 0&&_.ew(ca,16,w);I!==void 0&&_.pd(ca,18,I);if(C!==void 0&&C.size>0||A!==void 0&&A.size>0)V=new UCc,A!==void 0&&A.size>0&&(aa=V,ma=Array.from(A.values()),_.Oc(aa,1,ma,_.lc)),C!==void 0&&(C.has(0)&&_.rca(V,2,_.Xb,1,_.Zb),C.has(1)&&_.rca(V,2,_.Xb,2,_.Zb)),_.pd(ca,17,V);return fa.return(R.makeRequest(R.galServiceClient.startLinkingSession,ca,[1],[2]))})};
XZ.prototype.getMetadata=function(){var a=this,b,c,d;return _.l(function(e){if(e.nextAddress==1)return b={},a.requestService?_.p(e,mEc(a.requestService),3):(b.Authorization="Bearer "+a.oauthToken,e.jumpTo(2));e.nextAddress!=2&&(c=e.yieldResult,b["X-Goog-Api-Key"]=a.apiKey,b["X-Goog-AuthUser"]=a.authUser!==void 0?a.authUser.toString():"0",(d=c.auth.getAuthHeaderValueForFirstParty([]))&&(b.Authorization=d));a.locale&&(b["accept-language"]=a.locale);return e.return(b)})};
XZ.prototype.makeRequest=function(a,b,c,d){var e=this,g;return _.l(function(k){if(k.nextAddress==1)return _.p(k,e.getMetadata(),2);g=k.yieldResult;pEc(e,c);return k.return(a.bind(e.galServiceClient)(b,g).finally(function(){pEc(e,d)}))})};
var pEc=function(a,b){a.galSdkEventHandler!==void 0&&b.forEach(function(c){a.galSdkEventHandler.onEvent(c)})},YZ=function(a,b,c){var d=new BZ;
b=_.Qc(d,2,_.ac(b),0);b=_.Ux(b,5,3);c=_.Oc(b,8,c,_.lc);a.bucket!==void 0&&_.ew(c,1,a.bucket);return c},oEc=function(a){var b=a.serviceId;
var c=a.scopes;var d=a.capabilities;a=a.linkName;if(d!==void 0&&c!==void 0)throw Error("Rj");var e=new ACc;b=_.ew(e,1,b);d!==void 0?(c=Array.from(d.values()),_.Oc(b,5,c,_.lc)):c!==void 0&&(c=Array.from(c.values()),_.Oc(b,3,c,_.lc));a!==void 0&&_.ew(b,6,a);return b};var Wuc=function(a){this.galService=new XZ(a.alsDomain,a.apiKey,a.authUser,a.oauthToken,a.bucket,a.clientXd3,a.locale,a.galSdkEventHandler);this.JSC$17033_galRepository=new MDc(this.galService)};
Wuc.prototype.getService=function(){return this.galService};var qEc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(qEc,_.Xc);var rEc=function(a){var b=new qEc;return _.Yj(b,1,a)};
qEc.prototype.setErrorMessage=function(a){return _.sf(this,2,a)};var sEc=[0,_.gy,_.cy,_.gy];var ZZ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(ZZ,_.Xc);var tEc=[0,[1,2,3],_.fy,[0,GBc,JBc,-1],_.fy,[0,IBc,-1],_.w$a];var uEc=[0,_.ay,1,_.gy,_.cy,-1,1,_.z$a,_.$x,_.gy,-1,tEc];var vEc=[0,_.gy,[0,_.z$a,_.$x,[0,_.cy]],_.by,[0,_.gy,-1]];var pZ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(pZ,_.Xc);var wEc=[0,_.cy,_.gy,-2,_.ay,_.gy,_.ay,_.gy,-2,1,_.by];var xEc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(xEc,_.Xc);var yEc=[0,_.ay];var zEc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(zEc,_.Xc);var AEc=[0,_.gy,vEc,yEc,wEc,uEc];var Lzc=_.gd(zEc,AEc);var BEc=[0,wDc];var Rzc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(Rzc,_.Xc);var CEc=[0,[1,3],PBc,_.gy,PBc];var nZ=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(nZ,_.Xc);var DEc=[0,_.gy];var EEc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(EEc,_.Xc);var oZ=function(a){return _.Sx(a,qEc,2,mZ)},FEc=function(a,b){return _.qd(a,2,mZ,b)},mZ=[1,
2];var GEc=[0,mZ,_.fy,DEc,_.fy,sEc,_.ey,CEc,1,_.gy,BEc];var HEc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(HEc,_.Xc);var IEc=function(a,b){return _.pd(a,3,b)};var JEc=[0,_.gy,GEc,AEc,_.Gdb,[0,[5,6],[0,_.gy,-2],[0,_.ay,_.gy,_.cy],[0,tEc],[0,_.cy,_.gy,-1,_.Fdb],_.fy,[0,[0,_.ay],_.gy,-1],_.fy,[0,[3,4],_.gy,-1,_.fy,[0,[0,_.gy,_.by]],_.fy,[0]]],_.Gdb,-1,[0,[2,3],_.gy,_.fy,DEc,_.fy,sEc,_.ey,CEc,[0,wDc]]];var KEc=_.gd(HEc,JEc),LEc=_.hd(JEc);var MEc=function(){_.tg.call(this)};
_.z(MEc,_.tg);MEc.prototype.init=function(){};
new MEc;var NEc=_.cx(["data-"]),OEc=_.cx(["aria-"]),PEc=_.cx(["aria-"]),QEc=function(a,b){this.isLatencyMeasurementExperiment=a===void 0?!1:a;this.enableDialogA11yFix=b===void 0?!1:b;this.JSC$17060_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.Nbb(_.ja.location.href)},Nzc=function(a,b){a.onConsentPrimitiveShownCallback=b},REc=function(a,b){return a.overriddenIframeLoadTimeout?a.overriddenIframeLoadTimeout:b!==void 0?b:5E3},Pzc=function(a){if(a.prewarmPromise!==void 0)return a.prewarmPromise;
a.prewarmPromise=new Promise(function(b,c){$Z(a,1);SEc(a,TEc(a,!0),UEc(a));a.iframe?a.prewarmChannel||VEc(a,a.iframe,b):c(Error("ak"))});
a.prewarmPromise.finally(function(){a.prewarmPromise=void 0});
return a.prewarmPromise},Qzc=function(a){if(a.consentPromise!==void 0)return a.consentPromise;
var b=Date.now();WEc(a,b);a.consentPromise=new Promise(function(c,d){$Z(a,0,b);var e=a.isDarkTheme();a.isLatencyMeasurementExperiment||a.initialLoadingStrategy===1||a.initialLoadingStrategy===2||(a.loadingBar||(a.loadingBar=$uc(getComputedStyle(document.body).direction==="rtl",e),a.loadingBar.style.position="fixed",a.loadingBar.style.zIndex="15000"),document.body.appendChild(a.loadingBar));SEc(a,TEc(a),UEc(a));a.iframe?a.channel||XEc(a,a.iframe,c,d):(YEc(a),d(Error("ak")))});
a.consentPromise.finally(function(){a.consentPromise=void 0});
return a.consentPromise},XEc=function(a,b,c,d){var e;
_.l(function(g){switch(g.nextAddress){case 1:$Z(a,3);e=!1;setTimeout(function(){e||(YEc(a),ZEc(a),$Ec(),c(FEc(new EEc,rEc(7).setErrorMessage("Timeout connecting to iframe"))))},REc(a,aFc(a)));
if(!a.prewarmPromise){g.jumpTo(2);break}_.me(g,3);return _.p(g,a.prewarmPromise,5);case 5:_.Jj(g,2);break;case 3:_.re(g),c(FEc(new EEc,rEc(4).setErrorMessage("Error while prewarming.")));case 2:a.prewarmChannel&&a.prewarmChannel.send(LEc(IEc(new HEc,a.consentPrimitiveRequest))),a.channel=_.jy({destination:a.JSC$17060_win,iframe:b,origin:bFc(a),channelName:"cpw",onEstablished:function(){e=!0;YEc(a);a.isLatencyMeasurementExperiment||(a.JSC$17060_previousBodyOverflow=document.body.style.overflow,a.JSC$17060_previousHtmlOverscroll=
document.documentElement.style.overscrollBehavior,a.JSC$17060_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",a.enableDialogA11yFix&&window.addEventListener("blur",a.focusChangeListener));var k=a.iframe;k.style.bottom="0";k.style.position="fixed";k.style.right="0";k.style.border="none";k.style.left="0";k.style.top="0";k.style.zIndex="5000";
k.style.pointerEvents="";k.style.visibility="";a.initialLoadingStrategy===2||a.initialLoadingStrategy===3?$Z(a,4):$Z(a,6);var m;(m=a.onConsentPrimitiveShownCallback)==null||m.call(a)},
onMessage:function(k){var m=KEc(k.data);switch(_.Px(m,1)){case 1:k=_.Xj(m,EEc,2);ZEc(a);var n=avc(_.Xj(m,_.Wv,7));n&&(a.initialLoadingStrategy!==2&&a.initialLoadingStrategy!==3||$Z(a,6,n),$Z(a,5,n));if(m=avc(_.Xj(m,_.Wv,6)))$Z(a,7,m),$Z(a,8);_.Ex(k,mZ)===0&&d(Error("bk"));c(k);break;case 2:$Ec()}}}),_.se(g)}})},VEc=function(a,b,c){a.prewarmChannel=_.jy({destination:a.JSC$17060_win,
iframe:b,origin:bFc(a),channelName:"pwcp",onEstablished:function(){$Z(a,2);c()}})},bFc=function(a){var b=_.xd(a.src).toString();
return b&&b.indexOf("://")<0&&b.indexOf("//")!==0?a.origin:_.Nbb(b)},TEc=function(a,b){b=b===void 0?!1:b;
var c,d=new Map([["origin",a.origin],["hl",(c=cFc(a))!=null?c:null]]);b&&d.set("pw","1");b=_.h([["cpr",a.consentPrimitiveRequest.serialize()]]);for(c=b.next();!c.done;c=b.next()){var e=_.h(c.value);c=e.next().value;e=e.next().value;d.set(c,e)}a.isDarkTheme()&&d.set("color_scheme","dark");return _.ff(a.src,d)},YEc=function(a){a.isLatencyMeasurementExperiment||a.loadingBar&&document.body.removeChild(a.loadingBar)};
QEc.prototype.getSrc=function(){var a=_.Si(this.origin),b;var c=(b=_.Xj(this.consentPrimitiveRequest,xEc,3))==null?void 0:_.Xf(b,1);b="consent.google.com";c=c?"/u/"+encodeURIComponent(c.toString()):"";(a==null?0:a.endsWith("youtube.com"))?b="consent.youtube.com":(a=a==null?void 0:a.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(b="consent.google."+((a[1]?"co.":"")+encodeURIComponent(a[2])));return _.vd("https://"+b+"/signedin"+c+"/landing")};
var SEc=function(a,b,c){a.iframe||(a.iframe=document.createElement("iframe"),a.iframe.style.width="100%",a.iframe.style.height="100%",c!==112496729&&(a.iframe.style.colorScheme="auto"),a.isLatencyMeasurementExperiment&&(a.iframe.style.display="none"),_.Qd(a.iframe,b),a.iframe.setAttribute("jsname","C5o1O"),dFc(a.iframe),document.body.appendChild(a.iframe))},dFc=function(a){a.style.bottom="-200vh";
a.style.position="fixed";a.style.right="-200vw";a.style.border="";a.style.left="";a.style.top="";a.style.zIndex="";a.style.pointerEvents="none";a.style.visibility="hidden"},ZEc=function(a){a.iframe&&(a.isLatencyMeasurementExperiment||(a.JSC$17060_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=a.JSC$17060_previousHtmlOverscroll),a.JSC$17060_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=a.JSC$17060_previousBodyOverscroll),a.JSC$17060_previousBodyOverflow!==
void 0&&(document.body.style.overflow=a.JSC$17060_previousBodyOverflow),a.enableDialogA11yFix&&eFc(a,!1)),dFc(a.iframe))};
QEc.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(eFc(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var eFc=function(a,b){var c,d,e=(c=a.iframe)==null?void 0:(d=c.parentElement)==null?void 0:d.children;if(e)for(c=0;c<e.length;c++)d=e[c],d!==a.iframe&&(b?(d.hasAttribute("aria-hidden")&&_.Zd([_.cf(NEc)],d,"data-old-aria-hidden",d.getAttribute("aria-hidden")),_.Zd([_.cf(OEc)],d,"aria-hidden","true")):(d.removeAttribute("aria-hidden"),d.hasAttribute("data-old-aria-hidden")&&(_.Zd([_.cf(PEc)],d,"aria-hidden",d.getAttribute("data-old-aria-hidden")),d.removeAttribute("data-old-aria-hidden"))))},$Z=function(a,
b,c){var d;
(d=a.latencyCallback)==null||d.call(a,{latencyType:b,timestampEpochMillis:c!=null?c:Date.now()})};var fFc=function(a,b,c){QEc.call(this,b,c===void 0?!1:c);this.consentPrimitiveRequest=a;a=cFc(this);if(!(0,_.x9a)(a))throw Error("H``"+String(a));this.src=this.getSrc();var d;this.initialLoadingStrategy=(d=_.Xj(this.consentPrimitiveRequest,pZ,4))==null?void 0:_.Px(d,4)},a_;
_.z(fFc,QEc);var Mzc=function(a){var b=_.x("enable_primitive_dialog_aria_hide_siblings");a={request:a,enableDialogA11yFix:b===void 0?!1:b};a_||(a_=new fFc(a.request,a.isLatencyMeasurementExperiment||_.Px(a.request,1)===2,a.enableDialogA11yFix));return a_},$Ec=function(){a_&&(a_.channel=void 0,a_.prewarmChannel=void 0,a_.iframe&&(document.body.contains(a_.iframe)&&document.body.removeChild(a_.iframe),a_.iframe=void 0),a_=void 0)},cFc=function(a){var b;
return(b=_.Xj(a.consentPrimitiveRequest,pZ,4))==null?void 0:_.Ox(b,1)},WEc=function(a,b){if(!_.zx(a.consentPrimitiveRequest,ZZ,5)){var c=a.consentPrimitiveRequest,d=new ZZ;
_.pd(c,5,d)}var e;if((e=_.Xj(a.consentPrimitiveRequest,ZZ,5))==null||_.Hx(e,8)==null){var g;(g=_.Xj(a.consentPrimitiveRequest,ZZ,5))!=null&&_.sl(g,8,b)}},UEc=function(a){var b;
return(b=_.Xj(a.consentPrimitiveRequest,ZZ,5))==null?void 0:_.Xf(b,1)};
fFc.prototype.isDarkTheme=function(){var a;return((a=_.Xj(this.consentPrimitiveRequest,pZ,4))==null?void 0:_.Px(a,2))===2};
var aFc=function(a){var b;return((b=_.Xj(a.consentPrimitiveRequest,pZ,4))==null?void 0:_.Xf(b,5))||void 0};for(var b_={},gFc=(b_[64]="ma",b_[73]="ogb",b_[89]="cr",b_[21]="test",b_[0]="unkn",b_[137]="con",b_[155]="hl",b_[78]="yt",b_[171]="lp",b_[172]="ap",b_[177]="amo",b_[178]="pqe",b_[74]="gg",b_[1]="gm",b_[140]="am",b_),hFc=_.h(Object.keys(gFc)),iFc=hFc.next();!iFc.done;iFc=hFc.next());var jFc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(jFc,_.Xc);var kFc=[0,[2,3,4],_.gy,HBc,PBc,_.w$a];var lFc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(lFc,_.Xc);var mFc=_.gd(lFc,[0,OBc,_.cy,_.gy,_.cy,_.gy,kFc]);var nFc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(nFc,_.Xc);nFc.prototype.getCommand=function(){return _.Px(this,1)};
var oFc=function(){var a=new nFc;return _.Ux(a,1,0)};var pFc=_.hd([0,OBc,_.cy,[0,_.gy,_.cy,-1]]);var qFc=new _.xz("s"),rFc=new _.xz("t"),sFc=new _.xz("u"),tFc=new _.xz("v"),uFc=function(a,b,c){_.yz.call(this,qFc);this.mediaKey=a;this.photoUrl=b;this.photoSource=c};
_.z(uFc,_.yz);var vFc=function(){_.yz.call(this,rFc)};
_.z(vFc,_.yz);var wFc=function(a){a=a===void 0?!1:a;_.yz.call(this,sFc);this.isError=a};
_.z(wFc,_.yz);var xFc=function(){_.yz.call(this,tFc)};
_.z(xFc,_.yz);var yFc=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,CFc=function(a){if(typeof a=="string"){if(a.charAt(0)==".")return zFc(a.substr(1));if(a.charAt(0)=="["){var b=yFc.exec(a);a=a.indexOf("=")==-1?void 0:b[3];return AFc(b[1],a)}return BFc(a)}return a},zFc=function(a){return function(b){return b.getAttribute&&_.Xz(b,a)}},AFc=function(a,b){return function(c){return b!==void 0?c.getAttribute&&c.getAttribute(a)==b:c.hasAttribute&&c.hasAttribute(a)}},BFc=function(a){a=a.toUpperCase();
return function(b){return(b=b.tagName)&&b.toUpperCase()==a}},DFc=function(){return!0};var c_=function(a,b){this.JSC$17087_key_=a;this.JSC$17087_value_=b},d_=function(a){throw Error("ck`"+a.JSC$17087_key_);
},EFc=function(a,b){return new TypeError("dk`"+b+"`"+a.JSC$17087_key_+"`"+a.JSC$17087_value_+"`"+typeof a.JSC$17087_value_)};
c_.prototype.string=function(a){if(arguments.length==0)var b=FFc(this);else{var c;b=(c=GFc(this))!=null?c:a}return b};
var FFc=function(a){var b=GFc(a);b===null&&d_(a);return b},GFc=function(a){var b=a.JSC$17087_value_;
if(b==null)return null;if(typeof b==="string")return b;throw EFc(a,"string");};
c_.prototype.bool=function(a){if(arguments.length==0){var b=this.optionalBool();b===null&&d_(this)}else{var c;b=(c=this.optionalBool())!=null?c:a}return b};
c_.prototype.optionalBool=function(){var a=this.JSC$17087_value_;if(a==null)return null;if(typeof a==="boolean")return a;if(typeof a==="string"){a=a.toLowerCase();if(a==="true"||a==="1")return!0;if(a==="false"||a==="0")return!1}throw EFc(this,"boolean");};
c_.prototype.number=function(a){if(arguments.length==0){var b=HFc(this);b===null&&d_(this)}else{var c;b=(c=HFc(this))!=null?c:a}return b};
var HFc=function(a){var b=a.JSC$17087_value_;if(b==null)return null;if(typeof b==="number")return b;if(typeof b==="string"){var c=Number(b);if(!isNaN(c)&&(c!==0||b.trim().length!==0))return c}throw EFc(a,"number");};
c_.prototype.toString=function(){return FFc(this)};
c_.prototype.array=function(a){if(arguments.length==0){var b=IFc(this);b===null&&d_(this);return b}b=IFc(this);return b==null?a:b};
var IFc=function(a){var b=a.JSC$17087_value_;if(b==null)return null;Array.isArray(b)||(typeof b!=="string"?b=[b]:(b=b.trim(),b=b==""?[]:b.split(",").map(function(c){return c.trim()})));
return JFc(a,b)},JFc=function(a,b){var c=a.JSC$17087_key_+"[";
return Array.from(b,function(d,e){return new c_(c+e+"]",d)})};
c_.prototype.object=function(a){var b=this.JSC$17087_value_;if(b==null)return a===void 0&&d_(this),a;if(typeof b==="object"&&b.constructor===Object){a={};var c=this.JSC$17087_key_+".",d;for(d in b)a[d]=new c_(c+d,b[d]);return a}throw EFc(this,"object");};var e_=function(a){this.list_=KFc(a)},KFc=function(a){if(a instanceof e_)a=a.list_;
else if(a[0]instanceof e_){for(var b=new Set,c=0;c<a.length;c++)for(var d=_.h(a[c].list_),e=d.next();!e.done;e=d.next())b.add(e.value);a=b}return[].concat(_.Be(a))};
_.f=e_.prototype;_.f.each=function(a,b,c){((c===void 0?0:c)?hsc:_.Mi)(this.list_,a,b);return this};
_.f.size=function(){return this.list_.length};
_.f.isEmpty=function(){return this.list_.length===0};
_.f.get=function(a){return this.list_[a]||null};
_.f.el=function(){return this.list_[0]||null};
_.f.map=function(a,b){return _.zf(this.list_,a,b)};
_.f.equals=function(a){return this===a||_.cb(this.list_,a.list_)};
_.f.first=function(){return this.list_.length==0?null:new f_(this.list_[0])};
_.f.find=function(a){var b=[];this.each(function(c){c=c.querySelectorAll(String(a));for(var d=0;d<c.length;d++)b.push(c[d])});
return new e_(b)};
_.f.parent=function(){var a=[];this.each(function(b){(b=b.parentElement||null)&&!_.Pa(a,b)&&a.push(b)});
return new e_(a)};
_.f.children=function(){var a=[];this.each(function(b){b=_.Uy(b);for(var c=0;c<b.length;c++)a.push(b[c])});
return new e_(a)};
_.f.filter=function(a){a=_.qx(this.list_,CFc(a));return new e_(a)};
_.f.closest=function(a){var b=[],c=CFc(a),d=function(e){return _.Sk(e)&&c(e)};
this.each(function(e){(e=_.Ef(e,d,!0))&&!_.Pa(b,e)&&b.push(e)});
return new e_(b)};
_.f.next=function(a){return LFc(this,_.Ncb,a)};
_.f.prev=function(a){return LFc(this,TBc,a)};
var LFc=function(a,b,c){var d=[];var e=c?CFc(c):DFc;a.each(function(g){(g=b(g))&&e(g)&&d.push(g)});
return new e_(d)};
e_.prototype.setClass=function(a){return this.each(function(b){_.Wz(b,a)})};
var MFc=function(a,b){return a.each(function(c){_.Ts(c,b)})},NFc=function(a,b){return a.each(function(c){_.Rs(c,b)})};
e_.prototype.toggleClass=function(a,b){return b===!0?MFc(this,a):b===!1?NFc(this,a):this.each(function(c){_.Xz(c,a)?_.Rs(c,a):_.Ts(c,a)})};
e_.prototype.setText=function(a){return this.each(function(b){_.Vy(b,a)})};
var OFc=function(a){a.each(function(b){b.removeAttribute("aria-hidden")})};
e_.prototype.getStyle=function(a){if(this.list_.length>0){var b=this.list_[0],c=b.style[_.qn(a)];return typeof c!=="undefined"?c:b.style[_.cdb(b,a)]||""}};
e_.prototype.getData=function(a){if(this.list_.length===0)return new c_(a,null);var b=osc(this.list_[0],a);return new c_(a,b)};
e_.prototype.focus=function(a){try{a?this.el().focus(a):this.el().focus()}catch(b){}return this};
e_.prototype.click=function(){var a=_.Cf(this.el());if(a.createEvent){var b=a.createEvent("MouseEvents");b.initMouseEvent("click",!0,!0,a.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(b)}else a=a.createEventObject(),a.clientX=0,a.clientY=0,a.screenX=0,a.screenY=0,a.altKey=!1,a.ctrlKey=!1,a.shiftKey=!1,a.button=0,this.el().fireEvent("onclick",a)};
var g_=function(a,b,c,d){function e(m,n,r){var t=n;n&&n.parentNode&&(t=n.cloneNode(!0));m(t,r)}
d=d===void 0?!1:d;if(a.list_.length==1){var g=a.list_[0],k=function(m){return b(m,g)};
c instanceof e_?c.each(k,void 0,d):Array.isArray(c)?(d?hsc:_.Mi)(c,k):k(c);return a}return a.each(function(m){c instanceof e_?c.each(function(n){e(b,n,m)}):Array.isArray(c)?_.Mi(c,function(n){e(b,n,m)}):e(b,c,m)})};
_.f=e_.prototype;_.f.append=function(a){return g_(this,function(b,c){b&&c.appendChild(b)},a)};
_.f.appendTo=function(a){(new e_([a])).append(this);return this};
_.f.remove=function(){return g_(this,function(a,b){_.mg(b)},null)};
_.f.empty=function(){return g_(this,function(a,b){_.Ry(b)},null)};
_.f.after=function(a,b){return g_(this,function(c,d){c&&_.Ty(c,d)},a,!(b===void 0||b))};
_.f.before=function(a){return g_(this,function(b,c){b&&_.Sy(b,c)},a)};
_.f.replaceWith=function(a){return g_(this,function(b,c){b&&_.Kcb(b,c)},a)};
_.f.toggle=function(a){return this.each(function(b){_.Mg(b,a)})};
_.f.show=function(){return this.toggle(!0)};
_.f.hide=function(){return this.toggle(!1)};
_.f.trigger=function(a,b,c,d){return PFc(this,a,b,c,d)};
var PFc=function(a,b,c,d,e){return a.each(function(g){_.Rja(_.Cf(g)).triggerWizEventInternal(g,b,c,d,e)})},f_=function(a,b){a instanceof e_&&(b=a.list_,a=null);
this.list_=KFc(a!=null?[a]:b)};
_.nx(f_,e_);_.f=f_.prototype;_.f.children=function(){return new e_(Array.prototype.slice.call(_.Uy(this.list_[0])))};
_.f.each=function(a,b){a.call(b,this.list_[0],0);return this};
_.f.size=function(){return 1};
_.f.el=function(){return this.list_[0]};
_.f.first=function(){return this};var h_=function(a,b){b=b===void 0?window:b;this.hostId=a;this.JSC$17098_win=b;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$17098_previousHtmlOverscroll=this.JSC$17098_previousBodyOverscroll=this.JSC$17098_previousBodyOverflow="";this.eventTarget=new _.Dz;this.JSC$17098_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
SFc=function(a){var b=QFc(QFc(QFc(new RFc(78),"po"),"hppp"),"hhc");
b.authUser=Number(_.Ei("SESSION_INDEX","0"));b.colorScheme=a;return b};
h_.prototype.getOrigin=function(){return this.origin?this.origin:_.iA(_.hA(_.gA(new _.Wn,this.JSC$17098_win.location.protocol),this.JSC$17098_win.location.hostname),this.JSC$17098_win.location.port).toString()};
h_.prototype.getTargetOrigin=function(){return _.iA(_.hA(_.gA(new _.Wn,this.scheme),this.domain),this.port)};
h_.prototype.preloadIframe=function(a){var b=this;if(this.iframeLoadPromise===void 0){var c=document.createElement("iframe");this.iframe=c;hvc(c,a);this.iframeLoadPromise=new Promise(function(d,e){var g=!1,k=function(m){m.stopPropagation();c.removeEventListener("error",k);c.removeEventListener("securitypolicyviolation",k);e(m)};
c.addEventListener("error",k);c.addEventListener("securitypolicyviolation",k);setTimeout(function(){g||e(Error("ek"))},3E4);
TFc(b,c,function(){g=!0;c.removeEventListener("error",k);c.removeEventListener("securitypolicyviolation",k);d()})});
UFc(this);a=this.getTargetOrigin().toString();c.setAttribute("allow","camera "+a+"; display-capture "+a);this.parentElement.appendChild(c)}return this.iframeLoadPromise};
var XFc=function(a,b){var c,d;return _.l(function(e){if(e.nextAddress==1)return c=$uc(getComputedStyle(a.parentElement).direction==="rtl"),a.parentElement.appendChild(c),document.activeElement instanceof HTMLElement&&(a.elementToFocusAfterClose=document.activeElement),_.me(e,2),_.p(e,a.preloadIframe(b),4);if(e.nextAddress!=2){a.parentElement.removeChild(c);a.JSC$17098_previousBodyOverflow=a.parentElement.style.overflow;a.JSC$17098_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
a.JSC$17098_previousBodyOverscroll=a.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";a.parentElement.style.overscrollBehavior="contain";a.parentElement.style.overflow="hidden";var g=a.iframe;g.style.bottom="0";g.style.border="none";g.style.height="100%";g.style.left="0";g.style.position=a.iframePosition;g.style.right="0";g.style.top="0";g.style.width="100%";g.style.zIndex="2202";g.setAttribute("aria-hidden","false");g.setAttribute("aria-modal","true");
a.opened=!0;VFc(a);return _.Jj(e,0)}d=_.re(e);a.parentElement.removeChild(c);evc(a.isDarkTheme());WFc(a,!1);throw Error("fk",{cause:d});})},WFc=function(a,b){b=b===void 0?!0:b;
a.iframe!==void 0&&(YFc(a),document.documentElement.style.overscrollBehavior=a.JSC$17098_previousHtmlOverscroll,a.parentElement.style.overscrollBehavior=a.JSC$17098_previousBodyOverscroll,a.parentElement.style.overflow=a.JSC$17098_previousBodyOverflow,a.elementToFocusAfterClose!==void 0&&(a.elementToFocusAfterClose.focus(),a.elementToFocusAfterClose=void 0),b?UFc(a):(a.parentElement.removeChild(a.iframe),a.iframe=void 0,a.iframeLoadPromise=void 0,a.mainChannel=void 0),a.opened=!1)},YFc=function(a){a.backgroundElementsAriaHiddenIsNull&&
(OFc(a.backgroundElementsAriaHiddenIsNull),a.backgroundElementsAriaHiddenIsNull=void 0);
a.backgroundElementsAriaHiddenIsFalse&&(a.backgroundElementsAriaHiddenIsFalse.each(function(b){b.setAttribute("aria-hidden","false")}),a.backgroundElementsAriaHiddenIsFalse=void 0);
a.backgroundElementsWithoutInert&&(a.backgroundElementsWithoutInert.each(function(b){b.removeAttribute("inert")}),a.backgroundElementsWithoutInert=void 0)},VFc=function(a){a.backgroundElementsAriaHiddenIsNull=(new f_(a.iframe.parentElement)).children().filter(function(b){return b.getAttribute("aria-hidden")===null&&b!==a.iframe});
a.backgroundElementsAriaHiddenIsNull.each(function(b){b.setAttribute("aria-hidden","true")});
a.backgroundElementsAriaHiddenIsFalse=(new f_(a.iframe.parentElement)).children().filter(function(b){return b.getAttribute("aria-hidden")==="false"&&b!==a.iframe});
a.backgroundElementsAriaHiddenIsFalse.each(function(b){b.setAttribute("aria-hidden","true")});
a.backgroundElementsWithoutInert=(new f_(a.iframe.parentElement)).children().filter(function(b){return!b.hasAttribute("inert")&&b!==a.iframe});
a.backgroundElementsWithoutInert.each(function(b){b.setAttribute("inert","true")})},UFc=function(a){a=a.iframe;
a.style.bottom="-1000px";a.style.position="fixed";a.style.right="-1000px";a.style.border="";a.style.height="";a.style.left="";a.style.top="";a.style.width="";a.style.zIndex="";a.setAttribute("aria-hidden","true");a.setAttribute("aria-modal","false")};
h_.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var RFc=function(a,b){h_.call(this,gFc[a],b);this.options=[];this.style=""};
_.z(RFc,h_);var ZFc=function(a){a.style="youtube";return a},$Fc=function(a,b){a.eventTarget.listen(sFc,b);
return a},aGc=function(a,b){a.eventTarget.listen(qFc,b);
return a},QFc=function(a,b){a.options.push(b);
return a},bGc=function(a){var b=[a.getOrigin()];
a.ancestorOrigins&&b.push.apply(b,_.Be(a.ancestorOrigins));var c=new _.Wn(a.JSC$17098_win.location.href),d=a.startUrl?a.startUrl:a.options.includes("po")?"profile-picture/art":"profile-picture";b=qZ(_.jA(a.getTargetOrigin(),d),"origin",b);a.startUrl&&_.Lg(b,"startPath",a.startUrl);a.authUser>0&&_.Lg(b,"authuser",a.authUser);a.pageId!==void 0&&_.Lg(b,"pageId",a.pageId);_.Lg(b,"hostId",a.hostId);a.jsMode!==void 0&&_.Lg(b,"jsmode",a.jsMode);a.options.length>0&&_.Lg(b,"opts",a.options.join(","));try{for(var e=
_.h(["utm_source","utm_medium","utm_campaign","utm_content"]),g=e.next();!g.done;g=e.next()){var k=g.value;_.Kg(c,k)&&_.Lg(b,k,_.Kg(c,k))}var m,n=(m=a.hl)!=null?m:_.Kg(c,"hl");n!==void 0&&_.Lg(b,"hl",n)}catch(r){if(!(r instanceof URIError))throw r;}a.colorScheme&&_.Lg(b,"theme",a.colorScheme);a.style&&_.Lg(b,"style",a.style);return b},cGc=function(a,b){a.mainChannel=_.jy({destination:a.JSC$17098_win,
iframe:b,origin:a.getTargetOrigin().toString(),channelName:"ow",onMessage:function(c){c=mFc(c.data);if(b===a.iframe)switch(_.Px(c,1)){case 1:a.eventTarget.dispatchEvent(new wFc);WFc(a);break;case 2:a.eventTarget.dispatchEvent(new uFc(_.Gb(_.Ox(c,4)),_.Gb(_.Ox(c,2)),_.Gb(_.Px(c,5)),_.Gb(_.Xj(c,jFc,6))));break;case 0:var d;a.eventTarget.dispatchEvent(new vFc(_.Gb(_.Ox(c,2)),(d=_.Px(c,3))!=null?d:0));break;case 3:a.eventTarget.dispatchEvent(new wFc(!0));WFc(a,!1);break;case 4:a.eventTarget.dispatchEvent(new xFc)}}})},
TFc=function(a,b,c){_.jy({destination:a.JSC$17098_win,
iframe:b,origin:_.iA(_.hA(_.gA(new _.Wn,a.scheme),a.domain),a.port).toString(),channelName:"owi",onMessage:function(d){b===a.iframe&&(c!==void 0&&c(),cGc(a,b),a.opened&&a.mainChannel.send(pFc(oFc())),d.reply(),TFc(a,b))}})};
RFc.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?h_.prototype.preloadIframe.call(this,bGc(this).toString()):this.iframeLoadPromise};
RFc.prototype.openPicker=function(a){var b=this;return _.l(function(c){if(c.nextAddress==1)return b.startUrl=a?a:b.options.includes("po")?"profile-picture/art":"profile-picture",_.p(c,XFc(b,bGc(b).toString()),2);if(b.mainChannel){var d=b.mainChannel,e=d.send;var g=oFc();g=_.sf(g,2,b.startUrl);e.call(d,pFc(g))}_.se(c)})};var dGc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(dGc,_.Xc);_.f=dGc.prototype;_.f.getSize=function(){return _.Kx(this,1)};
_.f.setSize=function(a){return _.Tx(this,1,a)};
_.f.getWidth=function(){return _.Kx(this,12)};
_.f.getHeight=function(){return _.Kx(this,13)};
_.f.setCenterCrop=function(a){return _.cg(this,20,a)};
_.f.getHtml=function(){return _.Lx(this,4)};
_.f.getToken=function(){return _.kg(this,24)};
_.f.setToken=function(a){return _.sf(this,24,a)};
_.f.getBackgroundColor=function(){return _.Kx(this,87)};
_.f.hasBackgroundColor=function(){return _.Kx(this,87)!=null};
_.f.getStoryboardLevel=function(){return _.Kx(this,109)};var i_=function(a){this.JSC$17106_value_=void 0;this.childNodes_={};if(a){var b=_.Xhb(a);a=_.fA(a);for(var c=0;c<b.length;c++)this.set(b[c],a[c])}};
i_.prototype.set=function(a,b){eGc(this,a,b,!1)};
i_.prototype.add=function(a,b){eGc(this,a,b,!0)};
var eGc=function(a,b,c,d){for(var e=0;e<b.length;e++){var g=b.charAt(e);a.childNodes_[g]||(a.childNodes_[g]=new i_);a=a.childNodes_[g]}if(d&&a.JSC$17106_value_!==void 0)throw Error("gk`"+b);a.JSC$17106_value_=c},fGc=function(a,b){for(var c=0;c<b.length;c++)if(a=a.childNodes_[b.charAt(c)],!a)return;
return a};
i_.prototype.get=function(a){return(a=fGc(this,a))?a.JSC$17106_value_:void 0};
i_.prototype.getValues=function(){var a=[];gGc(this,a);return a};
var gGc=function(a,b){a.JSC$17106_value_!==void 0&&b.push(a.JSC$17106_value_);for(var c in a.childNodes_)gGc(a.childNodes_[c],b)};
i_.prototype.getKeys=function(a){var b=[];if(a){for(var c=this,d=0;d<a.length;d++){var e=a.charAt(d);if(!c.childNodes_[e])return[];c=c.childNodes_[e]}hGc(c,a,b)}else hGc(this,"",b);return b};
var hGc=function(a,b,c){a.JSC$17106_value_!==void 0&&c.push(b);for(var d in a.childNodes_)hGc(a.childNodes_[d],b+d,c)};
_.f=i_.prototype;_.f.containsKey=function(a){return this.get(a)!==void 0};
_.f.containsValue=function(a){if(this.JSC$17106_value_===a)return!0;for(var b in this.childNodes_)if(this.childNodes_[b].containsValue(a))return!0;return!1};
_.f.clear=function(){this.childNodes_={};this.JSC$17106_value_=void 0};
_.f.remove=function(a){for(var b=this,c=[],d=0;d<a.length;d++){var e=a.charAt(d);if(!b.childNodes_[e])throw Error("hk`"+a);c.push([b,e]);b=b.childNodes_[e]}a=b.JSC$17106_value_;for(delete b.JSC$17106_value_;c.length>0;)if(d=c.pop(),b=d[0],d=d[1],b.childNodes_[d].isEmpty())delete b.childNodes_[d];else break;return a};
_.f.clone=function(){return new i_(this)};
_.f.getCount=function(){return WBc(this.getValues())};
_.f.isEmpty=function(){return this.JSC$17106_value_===void 0&&_.yf.isEmpty(this.childNodes_)};var mvc=function(){if(!iGc){var a=iGc=new i_,b;for(b in jGc)a.add(b,jGc[b])}},iGc,j_=function(a,b){this.types=a;
this.setters=b},jGc={a:new j_([3,
0],[function(a,b){_.cg(a,21,b)},
function(a,b){_.Tx(a,56,b)}]),
al:new j_([3],[function(a,b){_.cg(a,74,b)}]),
b:new j_([3,0],[function(a,b){_.cg(a,23,b)},
function(a,b){_.Tx(a,38,b)}]),
ba:new j_([0],[function(a,b){_.Tx(a,85,b)}]),
bc:new j_([0],[function(a,b){_.Tx(a,87,b)}]),
br:new j_([0],[function(a,b){_.Tx(a,86,b)}]),
c:new j_([3,0],[function(a,b){_.cg(a,2,b)},
function(a,b){_.Tx(a,39,b)}]),
cc:new j_([3],[function(a,b){_.cg(a,51,b)}]),
ci:new j_([3],[function(a,b){_.cg(a,32,b)}]),
ckm:new j_([3],[function(a,b){_.cg(a,104,b)}]),
cp:new j_([0],[function(a,b){_.Tx(a,92,b)}]),
cr:new j_([3],[function(a,b){_.cg(a,108,b)}]),
cv:new j_([0],[function(a,b){_.Tx(a,94,b)}]),
d:new j_([3],[function(a,b){_.cg(a,3,b)}]),
dc:new j_([5],[function(a,b){_.sf(a,99,b)}]),
df:new j_([3],[function(a,b){_.cg(a,80,b)}]),
dv:new j_([3],[function(a,b){_.cg(a,90,b)}]),
e:new j_([0],[function(a,b){_.Tx(a,15,b)}]),
em:new j_([0],[function(a,b){_.Tx(a,107,b)}]),
f:new j_([4],[function(a,b){_.sf(a,16,b)}]),
fg:new j_([3],[function(a,b){_.cg(a,34,b)}]),
fh:new j_([3],[function(a,b){_.cg(a,30,b)}]),
fm:new j_([3],[function(a,b){_.cg(a,84,b)}]),
fo:new j_([2],[function(a,b){_.Zj(a,79,_.Ub(b))}]),
ft:new j_([3],[function(a,b){_.cg(a,50,b)}]),
fv:new j_([3],[function(a,b){_.cg(a,31,b)}]),
g:new j_([3],[function(a,b){_.cg(a,14,b)}]),
gce:new j_([4],[function(a,b){_.sf(a,112,b)}]),
gd:new j_([3],[function(a,b){_.cg(a,83,b)}]),
gm:new j_([3],[function(a,b){_.cg(a,105,b)}]),
h:new j_([3,0],[function(a,b){_.cg(a,4,b)},
function(a,b){_.Tx(a,13,b)}]),
i:new j_([3],[function(a,b){_.cg(a,22,b)}]),
ic:new j_([0],[function(a,b){_.Tx(a,71,b)}]),
id:new j_([3],[function(a,b){_.cg(a,70,b)}]),
il:new j_([3],[function(a,b){_.cg(a,96,b)}]),
ip:new j_([3],[function(a,b){_.cg(a,54,b)}]),
iv:new j_([0],[function(a,b){_.sl(a,75,b)}]),
j:new j_([1],[function(a,b){b=b==null?b:lsc(b);_.Zj(a,29,b)}]),
k:new j_([3,0],[function(a,b){_.cg(a,17,b)},
function(a,b){_.Tx(a,42,b)}]),
l:new j_([0],[function(a,b){_.Tx(a,44,b)}]),
lf:new j_([3],[function(a,b){_.cg(a,65,b)}]),
lo:new j_([3],[function(a,b){_.cg(a,97,b)}]),
m:new j_([0],[function(a,b){_.Tx(a,63,b)}]),
md:new j_([3],[function(a,b){_.cg(a,91,b)}]),
mm:new j_([4],[function(a,b){_.sf(a,81,b)}]),
mo:new j_([3],[function(a,b){_.cg(a,73,b)}]),
mv:new j_([3],[function(a,b){_.cg(a,66,b)}]),
n:new j_([3],[function(a,b){a.setCenterCrop(b)}]),
nc:new j_([3],[function(a,b){_.cg(a,55,b)}]),
nd:new j_([3],[function(a,b){_.cg(a,53,b)}]),
ng:new j_([3],[function(a,b){_.cg(a,95,b)}]),
ngm:new j_([3],[function(a,b){_.cg(a,106,b)}]),
no:new j_([3],[function(a,b){_.cg(a,37,b)}]),
ns:new j_([3],[function(a,b){_.cg(a,40,b)}]),
nt0:new j_([4],[function(a,b){_.sf(a,36,b)}]),
ntm:new j_([3],[function(a,b){_.cg(a,114,b)}]),
nu:new j_([3],[function(a,b){_.cg(a,46,b)}]),
nw:new j_([3],[function(a,b){_.cg(a,48,b)}]),
o:new j_([1,3],[function(a,b){b=b==null?b:lsc(b);_.Zj(a,7,b)},
function(a,b){_.cg(a,27,b)}]),
p:new j_([3,0],[function(a,b){_.cg(a,19,b)},
function(a,b){_.Tx(a,43,b)}]),
pa:new j_([3],[function(a,b){_.cg(a,61,b)}]),
pc:new j_([0],[function(a,b){_.Tx(a,88,b)}]),
pd:new j_([3],[function(a,b){_.cg(a,60,b)}]),
pf:new j_([3],[function(a,b){_.cg(a,67,b)}]),
pg:new j_([3],[function(a,b){_.cg(a,72,b)}]),
pi:new j_([2],[function(a,b){_.Zj(a,76,_.Ub(b))}]),
pp:new j_([3],[function(a,b){_.cg(a,52,b)}]),
pt:new j_([4],[function(a,b){_.sf(a,111,b)}]),
q:new j_([4],[function(a,b){_.sf(a,28,b)}]),
r:new j_([3,0],[function(a,b){_.cg(a,6,b)},
function(a,b){_.Tx(a,26,b)}]),
ra:new j_([3],[function(a,b){_.cg(a,103,b)}]),
rf:new j_([3],[function(a,b){_.cg(a,100,b)}]),
rg:new j_([3],[function(a,b){_.cg(a,59,b)}]),
rh:new j_([3],[function(a,b){_.cg(a,49,b)}]),
rj:new j_([3],[function(a,b){_.cg(a,57,b)}]),
ro:new j_([2],[function(a,b){_.Zj(a,78,_.Ub(b))}]),
rp:new j_([3],[function(a,b){_.cg(a,58,b)}]),
rw:new j_([3],[function(a,b){_.cg(a,35,b)}]),
rwa:new j_([3],[function(a,b){_.cg(a,64,b)}]),
rwu:new j_([3],[function(a,b){_.cg(a,41,b)}]),
s:new j_([3,0],[function(a,b){_.cg(a,33,b)},
function(a,b){a.setSize(b)}]),
sb:new j_([0],[function(a,b){_.Tx(a,110,b)}]),
sc:new j_([0],[function(a,b){_.Tx(a,89,b)}]),
sg:new j_([3],[function(a,b){_.cg(a,82,b)}]),
sl:new j_([0],[function(a,b){_.Tx(a,109,b)}]),
sm:new j_([3],[function(a,b){_.cg(a,93,b)}]),
t:new j_([4],[function(a,b){a.setToken(b)}]),
tm:new j_([3],[function(a,b){_.cg(a,113,b)}]),
u:new j_([3],[function(a,b){_.cg(a,18,b)}]),
ut:new j_([3],[function(a,b){_.cg(a,45,b)}]),
v:new j_([0],[function(a,b){_.Tx(a,62,b)}]),
vb:new j_([0],[function(a,b){_.sl(a,68,b)}]),
vf:new j_([4],[function(a,b){_.sf(a,102,b)}]),
vl:new j_([0],[function(a,b){_.sl(a,69,b)}]),
vm:new j_([3],[function(a,b){_.cg(a,98,b)}]),
w:new j_([0],[function(a,b){_.Tx(a,12,b)}]),
x:new j_([0],[function(a,b){_.Tx(a,9,b)}]),
y:new j_([0],[function(a,b){_.Tx(a,10,b)}]),
ya:new j_([2],[function(a,b){_.Zj(a,77,_.Ub(b))}]),
z:new j_([0],[function(a,b){_.Tx(a,11,b)}])};
mvc.prototype.parse=function(a){var b=new dGc,c=new dGc;if(a=="")a=!0;else{a=a.split("-");for(var d=!0,e=0;e<a.length;e++){var g=a[e];if(g.length==0)d=!1;else{var k=g,m=!1;var n=k;var r=k.charAt(0);r!=r.toLowerCase()&&(m=!0,n=k.charAt(0).toLowerCase()+k.substring(1));var t=iGc;for(r=1;r<=n.length;++r){var u=t,w=n.substring(0,r);if(w.length==0?u.isEmpty():!fGc(u,w))break}n=r==1?null:(n=t.get(n.substring(0,r-1)))?{option:k.substring(0,r-1),value:k.substring(r-1),signed:m,attributes:n}:null;if(n){k=
[];m=[];r=!1;for(t=0;t<n.attributes.types.length;t++){u=n.attributes.types[t];var A=n.value;w=e;if(n.signed&&u==1)for(var C=A.length;C<12&&w<a.length-1;)A+="-"+a[w+1],C=A.length,++w;else if(u==2)for(;w<a.length-1&&a[w+1].match(/^[\d\.]/);)A+="-"+a[w+1],++w;C=n.attributes.setters[t];A=kGc(this,u)(n.option,A,b,c,C);if(A===null){r=!0;e=w;break}else k.push(u),m.push(A)}if(!r)for(n=0;n<m.length;n++)t=k[n],A=m[n],lGc(this,t)(g,A);d=d&&r}else d=!1}}a=d}return new mGc(b,c,a)};
var k_=function(a,b,c,d,e,g){e(c,b);a=a.charAt(0);g=g(a==a.toUpperCase());e(d,g)};
_.f=mvc.prototype;_.f.parseAndSetIntOption_=function(a,b,c,d,e){if(b=="")return 0;isFinite(b)&&(b=String(b));b=typeof b==="string"?/^\s*-?0x/i.test(b)?parseInt(b,16):parseInt(b,10):NaN;if(isNaN(b))return 1;k_(a,b,c,d,e,Number);return null};
_.f.logIntParseError_=function(){};
_.f.parseAndSetFloatOption_=function(a,b,c,d,e){if(b=="")return 0;var g=Number(b);b=g==0&&_.qa(b)?NaN:g;if(isNaN(b))return 1;k_(a,b,c,d,e,Number);return null};
_.f.logFloatParseError_=function(){};
_.f.parseAndSetBoolOption_=function(a,b,c,d,e){if(b!="")return 2;k_(a,!0,c,d,e,Boolean);return null};
_.f.logBoolParseError_=function(){};
_.f.parseAndSetStringOption_=function(a,b,c,d,e){if(b=="")return 0;k_(a,b,c,d,e,function(g){return g?"1":""});
return null};
_.f.logStringParseError_=function(){};
_.f.parseAndSetUint64Base64Option_=function(a,b,c,d,e){if(b=="")return 0;k_(a,b,c,d,e,function(g){return g?1:0});
return null};
var kGc=function(a,b){switch(b){case 0:return(0,_.ug)(a.parseAndSetIntOption_,a);case 2:return(0,_.ug)(a.parseAndSetFloatOption_,a);case 3:return(0,_.ug)(a.parseAndSetBoolOption_,a);case 4:return(0,_.ug)(a.parseAndSetStringOption_,a);case 1:return(0,_.ug)(a.parseAndSetUint64Base64Option_,a);default:return function(){}}},lGc=function(a,b){switch(b){case 0:return(0,_.ug)(a.logIntParseError_,a);
case 2:return(0,_.ug)(a.logFloatParseError_,a);case 3:return(0,_.ug)(a.logBoolParseError_,a);case 4:case 1:return(0,_.ug)(a.logStringParseError_,a);default:return function(){}}},mGc=function(a,b,c){this.valueProto_=a;
this.signatureFlagProto_=b;this.JSC$17118_valid_=c};
mGc.prototype.isValid=function(){return this.JSC$17118_valid_};var ivc=function(a){this.JSC$17119_parser_=null;this.JSC$17119_components_=[];this.JSC$17119_parsedOptions_=null;nGc(this,a)},oGc=function(a){a.JSC$17119_parser_==null&&(a.JSC$17119_parser_=new mvc);
return a.JSC$17119_parser_},nGc=function(a,b){a.JSC$17119_parsedOptions_=b?typeof b==="string"?oGc(a).parse(b):b:oGc(a).parse("")},l_=function(a,b){return a==b?!1:!0};
_.f=ivc.prototype;_.f.JSC$17121_setCrop=function(a){a=a||void 0;var b=this.JSC$17119_parsedOptions_,c=b.valueProto_;l_(a,_.Lx(c,2),_.Lx(b.signatureFlagProto_,2))&&_.cg(c,2,a);return this};
_.f.JSC$17121_setCircleCrop=function(a){a=a||void 0;var b=this.JSC$17119_parsedOptions_,c=b.valueProto_;l_(a,_.Jx(c,51),_.Jx(b.signatureFlagProto_,51))&&_.cg(c,51,a);return this};
_.f.JSC$17121_setImageCrop=function(a){a=a||void 0;var b=this.JSC$17119_parsedOptions_,c=b.valueProto_;l_(a,_.Jx(c,32),_.Jx(b.signatureFlagProto_,32))&&_.cg(c,32,a);return this};
_.f.JSC$17121_setHeight=function(a){var b=this.JSC$17119_parsedOptions_,c=b.valueProto_;l_(a,c.getHeight(),b.signatureFlagProto_.getHeight())&&_.Tx(c,13,a);return this};
_.f.setCenterCrop=function(a){a=a||void 0;var b=this.JSC$17119_parsedOptions_,c=b.valueProto_;l_(a,_.Lx(c,20),_.Lx(b.signatureFlagProto_,20))&&c.setCenterCrop(a);return this};
_.f.JSC$17121_setSmartCrop=function(a){a=a||void 0;var b=this.JSC$17119_parsedOptions_,c=b.valueProto_;l_(a,_.Lx(c,19),_.Lx(b.signatureFlagProto_,19))&&_.cg(c,19,a);return this};
_.f.JSC$17121_setPad=function(a){a=a||void 0;var b=this.JSC$17119_parsedOptions_,c=b.valueProto_;l_(a,_.Jx(c,60),_.Jx(b.signatureFlagProto_,60))&&_.cg(c,60,a);return this};
_.f.JSC$17121_setSmartCropUseFace=function(a){a=a||void 0;var b=this.JSC$17119_parsedOptions_,c=b.valueProto_;l_(a,_.Lx(c,67),_.Lx(b.signatureFlagProto_,67))&&_.cg(c,67,a);return this};
_.f.JSC$17121_setSmartCropNoClip=function(a){a=a||void 0;var b=this.JSC$17119_parsedOptions_,c=b.valueProto_;l_(a,_.Lx(c,52),_.Lx(b.signatureFlagProto_,52))&&_.cg(c,52,a);return this};
_.f.setSize=function(a){var b=this.JSC$17119_parsedOptions_,c=b.valueProto_;l_(a,c.getSize(),b.signatureFlagProto_.getSize())&&c.setSize(a);return this};
_.f.setToken=function(a){a=a||void 0;var b=this.JSC$17119_parsedOptions_,c=b.valueProto_;l_(a,c.getToken(),b.signatureFlagProto_.getToken())&&c.setToken(a);return this};
_.f.JSC$17121_setWidth=function(a){var b=this.JSC$17119_parsedOptions_,c=b.valueProto_;l_(a,c.getWidth(),b.signatureFlagProto_.getWidth())&&_.Tx(c,12,a);return this};
_.f.clearOptions=function(){nGc(this,"");return this};
_.f.build=function(){this.JSC$17119_components_.length=0;var a=this.JSC$17119_parsedOptions_,b=a.valueProto_;a=a.signatureFlagProto_;m_(this,"s",b.getSize(),a.getSize());m_(this,"w",b.getWidth(),a.getWidth());n_(this,"c",_.Lx(b,2),_.Lx(a,2));n_(this,"d",_.Lx(b,3),_.Lx(a,3));m_(this,"h",b.getHeight(),a.getHeight());n_(this,"s",_.Jx(b,33),_.Jx(a,33));n_(this,"h",b.getHtml(),a.getHtml());n_(this,"p",_.Lx(b,19),_.Lx(a,19));n_(this,"pp",_.Lx(b,52),_.Lx(a,52));n_(this,"pf",_.Lx(b,67),_.Lx(a,67));n_(this,
"n",_.Lx(b,20),_.Lx(a,20));m_(this,"r",_.Kx(b,26),_.Kx(a,26));n_(this,"r",_.Lx(b,6),_.Lx(a,6));n_(this,"o",_.Jx(b,27),_.Jx(a,27));var c=_.Ix(b,7);o_(this,"o",c,_.Ix(a,7));c=_.Ix(b,29);o_(this,"j",c,_.Ix(a,29));m_(this,"x",_.Kx(b,9),_.Kx(a,9));m_(this,"y",_.Kx(b,10),_.Kx(a,10));m_(this,"z",_.Kx(b,11),_.Kx(a,11));n_(this,"g",_.Lx(b,14),_.Lx(a,14));m_(this,"e",_.Kx(b,15),_.Kx(a,15));o_(this,"f",_.kg(b,16),_.kg(a,16));n_(this,"k",_.Jx(b,17),_.Jx(a,17));n_(this,"u",_.Jx(b,18),!0);n_(this,"ut",_.Jx(b,45),
!0);n_(this,"i",_.Jx(b,22),!0);n_(this,"a",_.Jx(b,21),_.Jx(a,21));n_(this,"b",_.Lx(b,23),_.Lx(a,23));m_(this,"b",_.Kx(b,38),_.Kx(a,38));m_(this,"c",_.Kx(b,39),_.Kx(a,39),16,8);o_(this,"q",_.kg(b,28),_.kg(a,28));n_(this,"fh",_.Jx(b,30),_.Jx(a,30));n_(this,"fv",_.Jx(b,31),_.Jx(a,31));n_(this,"fg",_.Lx(b,34),_.Lx(a,34));n_(this,"ci",_.Jx(b,32),_.Jx(a,32));o_(this,"t",b.getToken(),a.getToken());o_(this,"nt0",_.kg(b,36),_.kg(a,36));n_(this,"rw",_.Lx(b,35),_.Lx(a,35));n_(this,"rwu",_.Lx(b,41),_.Lx(a,41));
n_(this,"rwa",_.Lx(b,64),_.Lx(a,64));n_(this,"nw",_.Lx(b,48),_.Lx(a,48));n_(this,"rh",_.Lx(b,49),_.Lx(a,49));n_(this,"no",_.Lx(b,37),_.Lx(a,37));n_(this,"ns",_.Jx(b,40),_.Jx(a,40));m_(this,"k",_.Kx(b,42),_.Kx(a,42));m_(this,"p",_.Kx(b,43),_.Kx(a,43));m_(this,"l",_.Kx(b,44),_.Kx(a,44));m_(this,"v",_.Kx(b,62),_.Kx(a,62));n_(this,"nu",_.Jx(b,46),_.Jx(a,46));n_(this,"ft",_.Jx(b,50),_.Jx(a,50));n_(this,"cc",_.Jx(b,51),_.Jx(a,51));n_(this,"nd",_.Jx(b,53),_.Jx(a,53));n_(this,"ip",_.Jx(b,54),_.Jx(a,54));
n_(this,"nc",_.Jx(b,55),_.Jx(a,55));m_(this,"a",_.Kx(b,56),_.Kx(a,56));n_(this,"rj",_.Jx(b,57),_.Jx(a,57));n_(this,"rp",_.Jx(b,58),_.Jx(a,58));n_(this,"rg",_.Jx(b,59),_.Jx(a,59));n_(this,"pd",_.Jx(b,60),_.Jx(a,60));n_(this,"pa",_.Jx(b,61),_.Jx(a,61));m_(this,"m",_.Kx(b,63),_.Kx(a,63));m_(this,"vb",_.Hx(b,68),_.Hx(a,68));m_(this,"vl",_.Hx(b,69),_.Hx(a,69));n_(this,"lf",_.Jx(b,65),_.Jx(a,65));n_(this,"mv",_.Jx(b,66),_.Jx(a,66));n_(this,"id",_.Jx(b,70),_.Jx(a,70));m_(this,"ic",_.Kx(b,71),!0);n_(this,
"pg",_.Lx(b,72),_.Lx(a,72));n_(this,"mo",_.Jx(b,73),_.Jx(a,73));n_(this,"al",_.Jx(b,74),_.Jx(a,74));m_(this,"iv",_.Hx(b,75),_.Hx(a,75));m_(this,"pi",_.Bx(b,76),_.Bx(a,76));m_(this,"ya",_.Bx(b,77),_.Bx(a,77));m_(this,"ro",_.Bx(b,78),_.Bx(a,78));m_(this,"fo",_.Bx(b,79),_.Bx(a,79));n_(this,"df",_.Jx(b,80),_.Jx(a,80));o_(this,"mm",_.kg(b,81),_.kg(a,81));n_(this,"sg",_.Jx(b,82),_.Jx(a,82));n_(this,"gd",_.Jx(b,83),_.Jx(a,83));n_(this,"fm",_.Jx(b,84),_.Jx(a,84));m_(this,"ba",_.Kx(b,85),_.Kx(a,85));m_(this,
"br",_.Kx(b,86),_.Kx(a,86));m_(this,"bc",b.getBackgroundColor(),a.getBackgroundColor(),16,8);m_(this,"pc",_.Kx(b,88),_.Kx(a,88),16,8);m_(this,"sc",_.Kx(b,89),_.Kx(a,89),16,8);n_(this,"dv",_.Jx(b,90),_.Jx(a,90));n_(this,"md",_.Jx(b,91),_.Jx(a,91));m_(this,"cp",_.Kx(b,92),_.Kx(a,92));n_(this,"sm",_.Jx(b,93),_.Jx(a,93));m_(this,"cv",_.Kx(b,94),_.Kx(a,94));n_(this,"ng",_.Jx(b,95),_.Jx(a,95));n_(this,"il",_.Jx(b,96),_.Jx(a,96));n_(this,"lo",_.Jx(b,97),_.Jx(a,97));n_(this,"vm",_.Jx(b,98),_.Jx(a,98));o_(this,
"dc",_.kg(b,99),_.kg(a,99));n_(this,"rf",_.Jx(b,100),_.Jx(a,100));o_(this,"vf",_.kg(b,102),_.kg(a,102));n_(this,"ra",_.Lx(b,103),_.Lx(a,103));n_(this,"ckm",_.Jx(b,104),_.Jx(a,104));n_(this,"gm",_.Jx(b,105),_.Jx(a,105));n_(this,"ngm",_.Jx(b,106),_.Jx(a,106));m_(this,"em",_.Kx(b,107),_.Kx(a,107));n_(this,"cr",_.Jx(b,108),_.Jx(a,108));m_(this,"sl",b.getStoryboardLevel(),a.getStoryboardLevel());m_(this,"sb",_.Kx(b,110),_.Kx(a,110));o_(this,"pt",_.kg(b,111),_.kg(a,111));o_(this,"gce",_.kg(b,112),_.kg(a,
112));n_(this,"tm",_.Jx(b,113),_.Jx(a,113));n_(this,"ntm",_.Jx(b,114),_.Jx(a,114));return this.JSC$17119_components_.join("-")};
var m_=function(a,b,c,d,e,g){if(c!=null){var k=e==void 0||e!=10&&e!=16?10:e;c=c.toString(k);e=new Dsc;e.append(k==16?"0x":"");k=e.append;g==void 0?g="":(g-=c.length,g=g<=0?"":(0,_.bbb)("0",g));k.call(e,g);e.append(c);pGc(a,b,e.toString(),!!d)}},n_=function(a,b,c,d){c&&pGc(a,b,"",!!d)},o_=function(a,b,c,d){c&&pGc(a,b,c,!!d)},pGc=function(a,b,c,d){d&&(b=b.charAt(0).toUpperCase()+b.substring(1));
a.JSC$17119_components_.push(b+c)};_.nx(IY,ivc);_.f=IY.prototype;_.f.JSC$17121_setCrop=function(a){a&&p_(this);return IY.superClass_.JSC$17121_setCrop.call(this,a)};
_.f.JSC$17121_setHeight=function(a){a=a==null||a<0?void 0:a;a!=null&&this.setSize();return IY.superClass_.JSC$17121_setHeight.call(this,a)};
_.f.JSC$17121_setImageCrop=function(a){a&&p_(this);return IY.superClass_.JSC$17121_setImageCrop.call(this,a)};
_.f.JSC$17121_setCircleCrop=function(a){a&&p_(this);return IY.superClass_.JSC$17121_setCircleCrop.call(this,a)};
_.f.setSize=function(a){_.$a(a)&&(a=Math.max(a.width,a.height));a=a==null||a<0?void 0:a;a!=null&&(this.JSC$17121_setWidth(),this.JSC$17121_setHeight());return IY.superClass_.setSize.call(this,a)};
_.f.JSC$17121_setSmartCrop=function(a){a&&p_(this);return IY.superClass_.JSC$17121_setSmartCrop.call(this,a)};
_.f.JSC$17121_setSmartCropNoClip=function(a){a&&p_(this);return IY.superClass_.JSC$17121_setSmartCropNoClip.call(this,a)};
_.f.JSC$17121_setSmartCropUseFace=function(a){a&&p_(this);return IY.superClass_.JSC$17121_setSmartCropUseFace.call(this,a)};
_.f.setCenterCrop=function(a){a&&p_(this);return IY.superClass_.setCenterCrop.call(this,a)};
_.f.JSC$17121_setPad=function(a){a&&p_(this);return IY.superClass_.JSC$17121_setPad.call(this,a)};
_.f.JSC$17121_setWidth=function(a){a=a==null||a<0?void 0:a;a!=null&&this.setSize();return IY.superClass_.JSC$17121_setWidth.call(this,a)};
var qGc=function(a){a.clearOptions();var b=a.JSC$17119_parsedOptions_,c=b.valueProto_;l_(!0,_.Lx(c,3),_.Lx(b.signatureFlagProto_,3))&&_.cg(c,3,!0);return a},p_=function(a){a.setCenterCrop();
a.JSC$17121_setCircleCrop();a.JSC$17121_setCrop();a.JSC$17121_setImageCrop();a.JSC$17121_setPad();a.JSC$17121_setSmartCrop();a.JSC$17121_setSmartCropNoClip();a.JSC$17121_setSmartCropUseFace()};
IY.prototype.build=function(){var a=this.JSC$17119_parsedOptions_.valueProto_;_.Jx(a,18)||_.Jx(a,45)?a.getSize()||this.setSize(0):(a=this.JSC$17119_parsedOptions_.valueProto_,a.getSize()||a.getWidth()||a.getHeight()||(this.setSize(),this.JSC$17121_setHeight(),this.JSC$17121_setWidth(),p_(this)));return IY.superClass_.build.call(this)};var rGc=/^[^\/]*\/\//,q_=function(a,b){b=b===void 0?!1:b;this.original_=a;this.originalPrefix_="";(a=this.original_.match(rGc))&&a[0]?(this.originalPrefix_=a[0],a=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):a="http://"+this.original_;this.uri_=_.Jg(a,!0);this.isFreeformUrl_=b;this.JSC$17125_valid_=!0;this.obfuscated_=!1},sGc=function(a,b){a.JSC$17127_pathPrefix_=a.JSC$17127_pathPrefix_?a.JSC$17127_pathPrefix_+("/"+b):b},r_=function(a){if(a.JSC$17127_components_==
void 0){var b=a.uri_.getPath().substring(1);
a.JSC$17127_pathPrefix_=null;if(a.isFreeformUrl_){a.JSC$17127_components_=[];if((b.match(/=/g)||[]).length>1)return a.JSC$17125_valid_=!1,a.JSC$17127_components_;var c=b.indexOf("=");c!=-1?(a.JSC$17127_components_.push(b.substr(0,c)),a.JSC$17127_components_.push(b.substr(c+1))):a.JSC$17127_components_.push(b);return a.JSC$17127_components_}a.JSC$17127_components_=b.split("/");b=a.JSC$17127_components_.length;b>2&&a.JSC$17127_components_[0]=="u"&&(sGc(a,a.JSC$17127_components_[0]+"/"+a.JSC$17127_components_[1]),
a.JSC$17127_components_.shift(),a.JSC$17127_components_.shift(),b-=2);if(b==0||b==4||b>7)return a.JSC$17125_valid_=!1,a.JSC$17127_components_;if(b==2)sGc(a,a.JSC$17127_components_[0]);else if(a.JSC$17127_components_[0]=="image")sGc(a,a.JSC$17127_components_[0]);else if(b==7||b==3)return a.JSC$17125_valid_=!1,a.JSC$17127_components_;if(b<=3){a.obfuscated_=!0;b==3&&(sGc(a,a.JSC$17127_components_[1]),a.JSC$17127_components_.shift(),--b);--b;c=a.JSC$17127_components_[b];var d=c.indexOf("=");d!=-1&&(a.JSC$17127_components_[b]=
c.substr(0,d),a.JSC$17127_components_.push(c.substr(d+1)))}}return a.JSC$17127_components_};
q_.prototype.isValid=function(){r_(this);return this.JSC$17125_valid_};
q_.prototype.isObfuscated=function(){r_(this);return this.obfuscated_};
var tGc=function(a){r_(a);return a.isFreeformUrl_},s_=function(a){r_(a);
a.JSC$17127_pathPrefix_==void 0&&(a.JSC$17127_pathPrefix_=null);return a.JSC$17127_pathPrefix_},uGc=function(a){switch(r_(a).length){case 7:return!0;
case 6:return s_(a)==null;case 5:return!1;case 3:return!0;case 2:return s_(a)==null;case 1:return!1;default:return!1}},t_=function(a,b){if(tGc(a))a:{switch(b){case 7:b=0;
break;case 4:if(!uGc(a)){a=null;break a}b=1;break;default:a=null;break a}a=r_(a)[b]}else if(a.isObfuscated())a:{var c=s_(a)!=null?1:0;switch(b){case 6:b=c;break;case 4:if(!uGc(a)){a=null;break a}b=1+c;break;default:a=null;break a}a=r_(a)[b]}else a:{c=s_(a)!=null?1:0;switch(b){case 0:b=c;break;case 1:b=1+c;break;case 2:b=2+c;break;case 3:b=3+c;break;case 4:if(!uGc(a)){a=null;break a}b=4+c;break;case 5:b=uGc(a)?1:0;b=4+c+b;break;default:a=null;break a}a=r_(a)[b]}return a};
q_.prototype.getOptions=function(){this.options_==void 0&&(this.options_=t_(this,4));return this.options_};var lvc=function(){};
lvc.prototype.parse=function(a,b){return new jvc(a,b===void 0?!1:b)};
var jvc=function(a,b){q_.call(this,a,b===void 0?!1:b)};
_.z(jvc,q_);_.nx(JY,IY);var kvc;JY.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
JY.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var a=JY.superClass_.build.call(this),b=[];s_(this.parsedImageUrl_)!=null&&b.push(s_(this.parsedImageUrl_));var c=tGc(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var d=this.parsedImageUrl_;d.obfuscatedData_==void 0&&(d.obfuscatedData_=t_(d,6));b.push(d.obfuscatedData_+(a?"="+a:""))}else if(c){d=b.push;var e=this.parsedImageUrl_;e.freeformUrlPath_===void 0&&(e.freeformUrlPath_=t_(e,
7));d.call(b,e.freeformUrlPath_);a&&b.push(a)}else d=b.push,e=this.parsedImageUrl_,e.obfuscatedGaiaId_==void 0&&(e.obfuscatedGaiaId_=t_(e,0)),d.call(b,e.obfuscatedGaiaId_),d=b.push,e=this.parsedImageUrl_,e.photoId_==void 0&&(e.photoId_=t_(e,1)),d.call(b,e.photoId_),d=b.push,e=this.parsedImageUrl_,e.imageVersion_==void 0&&(e.imageVersion_=t_(e,2)),d.call(b,e.imageVersion_),d=b.push,e=this.parsedImageUrl_,e.signature_==void 0&&(e.signature_=t_(e,3)),d.call(b,e.signature_),a&&b.push(a),a=b.push,d=this.parsedImageUrl_,
d.filename_==void 0&&(d.filename_=t_(d,5)),a.call(b,d.filename_);b=c?b.join("="):b.join("/");b=_.Jg(this.protocolPrefix_+this.JSC$17133_domain_+"/"+b+(this.JSC$17133_query_?"?"+this.JSC$17133_query_:"")).toString();b.startsWith("%3a//")&&(b=b.replace("%3a//","://"));return b};var vGc=_.cx(["viewBox"]),wGc=_.cx(["width"]),xGc=_.cx(["height"]),yGc=_.cx(["fill"]),zGc=_.cx(["id"]),AGc=_.cx(["x"]),BGc=_.cx(["y"]);nvc.prototype.getLength=function(){return this.parsedData.length};
nvc.prototype.write=function(a){for(var b=0,c=this.parsedData.length;b<c;b++)a.put(this.parsedData[b],8)};
var uvc=function(a,b){var c=new nvc(b);a.dataList.push(c);c=a.errorCorrectLevel;var d=1,e=encodeURI(b).toString().replace(/%[0-9a-fA-F]{2}/g,"a");b=e.length+(e.length!=b?3:0);e=0;for(var g=u_.length;e<=g;e++){var k=0;switch(c){case 1:k=u_[e][0];break;case 0:k=u_[e][1];break;case 3:k=u_[e][2];break;case 2:k=u_[e][3]}if(b<=k)break;else d++}if(d>u_.length)throw Error("qk");a.typeNumber=d;a.dataCache=null};
ovc.prototype.isDark=function(a,b){if(a<0||this.moduleCount<=a||b<0||this.moduleCount<=b)throw Error("ik`"+a+"`"+b);return this.modules[a][b]};
for(var vvc=function(a,b,c){a.moduleCount=a.typeNumber*4+17;a.modules=Array(a.moduleCount);for(var d=0;d<a.moduleCount;d++){a.modules[d]=Array(a.moduleCount);for(var e=0;e<a.moduleCount;e++)a.modules[d][e]=null}CGc(a,0,0);CGc(a,a.moduleCount-7,0);CGc(a,0,a.moduleCount-7);d=DGc[a.typeNumber-1];for(e=0;e<d.length;e++)for(var g=0;g<d.length;g++){var k=d[e],m=d[g];if(a.modules[k][m]==null)for(var n=-2;n<=2;n++)for(var r=-2;r<=2;r++)a.modules[k+n][m+r]=n==-2||n==2||r==-2||r==2||n==0&&r==0?!0:!1}for(d=
8;d<a.moduleCount-8;d++)a.modules[d][6]==null&&(a.modules[d][6]=d%2==0);for(d=8;d<a.moduleCount-8;d++)a.modules[6][d]==null&&(a.modules[6][d]=d%2==0);d=a.errorCorrectLevel<<3|c;for(e=d<<10;v_(e)-v_(1335)>=0;)e^=1335<<v_(e)-v_(1335);d=(d<<10|e)^21522;for(e=0;e<15;e++)g=!b&&(d>>e&1)==1,e<6?a.modules[e][8]=g:e<8?a.modules[e+1][8]=g:a.modules[a.moduleCount-15+e][8]=g;for(e=0;e<15;e++)g=!b&&(d>>e&1)==1,e<8?a.modules[8][a.moduleCount-e-1]=g:e<9?a.modules[8][15-e-1+1]=g:a.modules[8][15-e-1]=g;a.modules[a.moduleCount-
8][8]=!b;if(a.typeNumber>=7){d=a.typeNumber;for(e=d<<12;v_(e)-v_(7973)>=0;)e^=7973<<v_(e)-v_(7973);d=d<<12|e;for(e=0;e<18;e++)g=!b&&(d>>e&1)==1,a.modules[Math.floor(e/3)][e%3+a.moduleCount-8-3]=g;for(e=0;e<18;e++)g=!b&&(d>>e&1)==1,a.modules[e%3+a.moduleCount-8-3][Math.floor(e/3)]=g}if(a.dataCache==null){e=a.typeNumber;g=a.dataList;b=a.errorCorrectLevel;d=EGc(e,b);if(d==void 0)throw Error("pk`"+e+"`"+b);k=d.length/3;b=[];for(m=0;m<k;m++){n=d[m*3];r=d[m*3+1];for(var t=d[m*3+2],u=0;u<n;u++)b.push(new pvc(r,
t))}d=new qvc;for(k=0;k<g.length;k++)m=g[k],d.put(m.mode,4),d.put(m.getLength(),FGc(m.mode,e)),m.write(d);for(k=e=0;k<b.length;k++)e+=b[k].dataCount;if(d.length>e*8)throw Error("jk`"+d.length+"`"+e*8);for(d.length+4<=e*8&&d.put(0,4);d.length%8!=0;)GGc(d,!1);for(;!(d.length>=e*8);){d.put(236,8);if(d.length>=e*8)break;d.put(17,8)}g=e=r=0;k=Array(b.length);m=Array(b.length);for(n=0;n<b.length;n++){u=b[n].dataCount;var w=b[n].totalCount-u;e=Math.max(e,u);g=Math.max(g,w);k[n]=Array(u);for(t=0;t<k[n].length;t++)k[n][t]=
255&d.buffer[t+r];r+=u;t=w;u=new KY([1],0);for(w=0;w<t;w++)u=u.multiply(new KY([1,HGc(w)],0));t=u;u=IGc(new KY(k[n],t.getLength()-1),t);m[n]=Array(t.getLength()-1);for(t=0;t<m[n].length;t++)w=t+u.getLength()-m[n].length,m[n][t]=w>=0?u.get(w):0}for(t=d=0;t<b.length;t++)d+=b[t].totalCount;d=Array(d);for(t=r=0;t<e;t++)for(n=0;n<b.length;n++)t<k[n].length&&(d[r++]=k[n][t]);for(t=0;t<g;t++)for(n=0;n<b.length;n++)t<m[n].length&&(d[r++]=m[n][t]);a.dataCache=d}b=a.dataCache;d=-1;e=a.moduleCount-1;g=7;k=0;
for(m=a.moduleCount-1;m>0;m-=2)for(m==6&&m--;;){for(n=0;n<2;n++)a.modules[e][m-n]==null&&(r=!1,k<b.length&&(r=(b[k]>>>g&1)==1),JGc(c,e,m-n)&&(r=!r),a.modules[e][m-n]=r,g--,g==-1&&(k++,g=7));e+=d;if(e<0||a.moduleCount<=e){e-=d;d=-d;break}}},CGc=function(a,b,c){for(var d=-1;d<=7;d++)if(!(b+d<=-1||a.moduleCount<=b+d))for(var e=-1;e<=7;e++)c+e<=-1||a.moduleCount<=c+e||(a.modules[b+d][c+e]=0<=d&&d<=6&&(e==0||e==6)||0<=e&&e<=6&&(d==0||d==6)||2<=d&&d<=4&&2<=e&&e<=4?!0:!1)},wvc=function(a){for(var b=0,c=
0,d=0;d<8;d++){vvc(a,!0,d);
var e=a;for(var g=e.moduleCount,k=0,m=0;m<g;m++)for(var n=0;n<g;n++){for(var r=0,t=e.isDark(m,n),u=-1;u<=1;u++)if(!(m+u<0||g<=m+u))for(var w=-1;w<=1;w++)n+w<0||g<=n+w||(u!=0||w!=0)&&t==e.isDark(m+u,n+w)&&r++;r>5&&(k+=3+r-5)}for(m=0;m<g-1;m++)for(n=0;n<g-1;n++)if(r=0,e.isDark(m,n)&&r++,e.isDark(m+1,n)&&r++,e.isDark(m,n+1)&&r++,e.isDark(m+1,n+1)&&r++,r==0||r==4)k+=3;for(m=0;m<g;m++)for(n=0;n<g-6;n++)e.isDark(m,n)&&!e.isDark(m,n+1)&&e.isDark(m,n+2)&&e.isDark(m,n+3)&&e.isDark(m,n+4)&&!e.isDark(m,n+5)&&
e.isDark(m,n+6)&&(k+=40);for(n=0;n<g;n++)for(m=0;m<g-6;m++)e.isDark(m,n)&&!e.isDark(m+1,n)&&e.isDark(m+2,n)&&e.isDark(m+3,n)&&e.isDark(m+4,n)&&!e.isDark(m+5,n)&&e.isDark(m+6,n)&&(k+=40);for(n=r=0;n<g;n++)for(m=0;m<g;m++)e.isDark(m,n)&&r++;e=k+=Math.abs(100*r/g/g-50)/5*10;if(d==0||b>e)b=e,c=d}return c},DGc=[[],
[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]],v_=function(a){for(var b=0;a!=0;)b++,a>>>=1;return b},JGc=function(a,b,c){switch(a){case 0:return(b+c)%2==0;
case 1:return b%2==0;case 2:return c%3==0;case 3:return(b+c)%3==0;case 4:return(Math.floor(b/2)+Math.floor(c/3))%2==0;case 5:return b*c%2+b*c%3==0;case 6:return(b*c%2+b*c%3)%2==0;case 7:return(b*c%3+(b+c)%2)%2==0;default:throw Error("kk`"+a);}},FGc=function(a,b){if(1<=b&&b<10)switch(a){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("lk`"+a);}else if(b<27)switch(a){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("lk`"+a);}else if(b<41)switch(a){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("lk`"+a);}else throw Error("mk`"+b);},w_=function(a){if(a<1)throw Error("nk`"+a);
return KGc[a]},HGc=function(a){for(;a<0;)a+=255;
for(;a>=256;)a-=255;return x_[a]},x_=Array(256),KGc=Array(256),LGc=0;LGc<8;LGc++)x_[LGc]=1<<LGc;
for(var y_=8;y_<256;y_++)x_[y_]=x_[y_-4]^x_[y_-5]^x_[y_-6]^x_[y_-8];for(var MGc=0;MGc<255;MGc++)KGc[x_[MGc]]=MGc;KY.prototype.get=function(a){return this.num[a]};
KY.prototype.getLength=function(){return this.num.length};
KY.prototype.multiply=function(a){for(var b=Array(this.getLength()+a.getLength()-1),c=0;c<this.getLength();c++)for(var d=0;d<a.getLength();d++)b[c+d]^=HGc(w_(this.get(c))+w_(a.get(d)));return new KY(b,0)};
var IGc=function(a,b){if(a.getLength()-b.getLength()<0)return a;for(var c=w_(a.get(0))-w_(b.get(0)),d=Array(a.getLength()),e=0;e<a.getLength();e++)d[e]=a.get(e);for(e=0;e<b.getLength();e++)d[e]^=HGc(w_(b.get(e))+c);return IGc(new KY(d,0),b)},NGc=[[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]],EGc=function(a,b){switch(b){case 1:return NGc[(a-1)*4];case 0:return NGc[(a-1)*4+1];case 3:return NGc[(a-1)*4+2];case 2:return NGc[(a-1)*4+3]}};
qvc.prototype.get=function(a){return(this.buffer[Math.floor(a/8)]>>>7-a%8&1)==1};
qvc.prototype.put=function(a,b){for(var c=0;c<b;c++)GGc(this,(a>>>b-c-1&1)==1)};
var GGc=function(a,b){var c=Math.floor(a.length/8);a.buffer.length<=c&&a.buffer.push(0);b&&(a.buffer[c]|=128>>>a.length%8);a.length++},u_=[[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]],tvc=function(){var a=function(b,c){this.JSC$17153__el=b;this.JSC$17153__htOption=c};
a.prototype.draw=function(b){function c(t,u){t=document.createElementNS("http://www.w3.org/2000/svg",t);for(var w in u)u.hasOwnProperty(w)&&(w==="href"?_.Fmc(t,u[w]):_.Zd([_.cf(vGc),_.cf(wGc),_.cf(xGc),_.cf(yGc),_.cf(zGc),_.cf(AGc),_.cf(BGc)],t,w,u[w]));return t}
var d=this.JSC$17153__htOption,e=this.JSC$17153__el,g=b.moduleCount;this.clear();var k=c("svg",{viewBox:"0 0 "+String(g)+" "+String(g),width:"100%",height:"100%",fill:d.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});e.appendChild(k);k.appendChild(c("rect",{fill:d.colorLight,width:"100%",height:"100%"}));k.appendChild(c("rect",{fill:d.colorDark,width:"1",height:"1",id:"template"}));for(var m=0;m<g;m++)for(var n=0;n<g;n++)if(b.isDark(m,n)){var r=c("use",{x:String(m),y:String(n),href:"#template"});
k.appendChild(r)}};
a.prototype.clear=function(){for(;this.JSC$17153__el.hasChildNodes();)this.JSC$17153__el.removeChild(this.JSC$17153__el.lastChild)};
return a}(),svc=document.documentElement.tagName.toLowerCase()==="svg"?tvc:typeof CanvasRenderingContext2D!="undefined"?function(){var a=function(b,c){this._bIsPainted=!1;
rvc();this.JSC$17153__htOption=c;this._elCanvas=document.createElement("canvas");this._elCanvas.width=c.width;this._elCanvas.height=c.height;b.appendChild(this._elCanvas);this.JSC$17153__el=b;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$17153__el.appendChild(this._elImage);this._bSupportDataURI=null};
a.prototype._onMakeImage=function(){var b=this._elCanvas.toDataURL("image/png");this._elImage.src=b;this._elImage.style.display="block";this._elCanvas.style.display="none"};
a.prototype._safeSetDataURI=function(b,c){var d=this;d._fFail=c;d._fSuccess=b;d._bSupportDataURI===null?(b=_.lg("IMG"),c=function(){d._bSupportDataURI=!1;d._fFail&&d._fFail.call(d)},b.onabort=c,b.onerror=c,b.onload=function(){d._bSupportDataURI=!0;
d._fSuccess&&d._fSuccess.call(d)},b.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):d._bSupportDataURI===!0&&d._fSuccess?d._fSuccess.call(d):d._bSupportDataURI===!1&&d._fFail&&d._fFail.call(d)};
a.prototype.draw=function(b){var c=this._oContext,d=this.JSC$17153__htOption,e=b.moduleCount,g=d.width/e,k=d.height/e,m=Math.round(g),n=Math.round(k);this._elImage.style.display="none";this.clear();for(var r=0;r<e;r++)for(var t=0;t<e;t++){var u=b.isDark(r,t),w=t*g,A=r*k;c.strokeStyle=u?d.colorDark:d.colorLight;c.lineWidth=1;c.fillStyle=u?d.colorDark:d.colorLight;c.fillRect(w,A,g,k);c.strokeRect(Math.floor(w)+.5,Math.floor(A)+.5,m,n);c.strokeRect(Math.ceil(w)-.5,Math.ceil(A)-.5,m,n)}this._bIsPainted=
!0};
a.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
a.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
a.prototype.round=function(b){return b?Math.floor(b*1E3)/1E3:b};
return a}():function(){var a=function(b,c){this.JSC$17153__el=b;
this.JSC$17153__htOption=c};
a.prototype.draw=function(b){for(var c=this.JSC$17153__htOption,d=this.JSC$17153__el,e=b.moduleCount,g=Math.floor(c.width/e),k=Math.floor(c.height/e),m=['<table style="border:0;border-collapse:collapse;">'],n=0;n<e;n++){m.push("<tr>");for(var r=0;r<e;r++)m.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+g+"px;height:"+k+"px;background-color:"+(b.isDark(n,r)?c.colorDark:c.colorLight)+';"></td>');m.push("</tr>")}m.push("</table>");b=m.join("");b=_.ecb(_.gcb,b);_.Yd(d,b);
b=d.childNodes[0];e=(c.width-b.offsetWidth)/2;g=(c.height-b.offsetHeight)/2;e>0&&g>0&&(b.style.margin=g+"px "+e+"px")};
a.prototype.clear=function(){this.JSC$17153__el.textContent=""};
return a}();
xvc.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$17156__android||this.JSC$17156__android>=3)&&this._oDrawing.makeImage()};
xvc.prototype.clear=function(){this._oDrawing.clear()};
_.ja.QRCode=xvc;var OGc={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var z_=function(){};
z_.prototype.stringify=function(a){return _.ja.JSON.stringify(a,void 0)};
z_.prototype.parse=function(a){return _.ja.JSON.parse(a,void 0)};var PGc=function(){_.yz.call(this,"z")};
_.nx(PGc,_.yz);var QGc=function(){_.yz.call(this,"y")};
_.nx(QGc,_.yz);var RGc=null,SGc=function(){return RGc=RGc||new _.Dz},TGc=function(a){_.yz.call(this,"serverreachability",a)};
_.nx(TGc,_.yz);var A_=function(a){var b=SGc();b.dispatchEvent(new TGc(b,a))},UGc=function(a){_.yz.call(this,"statevent",a)};
_.nx(UGc,_.yz);var B_=function(a){var b=SGc();b.dispatchEvent(new UGc(b,a))},VGc=function(a,b,c,d){_.yz.call(this,"timingevent",a);
this.size=b;this.rtt=c;this.retries=d};
_.nx(VGc,_.yz);var WGc=function(a,b,c){var d=SGc();d.dispatchEvent(new VGc(d,a,b,c))},C_=function(a,b){if(typeof a!=="function")throw Error("rk");
return _.ja.setTimeout(function(){a()},b)};var D_=function(){this.redactEnabled_=!0};
D_.prototype.disableRedact=function(){this.redactEnabled_=!1};
var XGc=function(a,b,c,d,e,g){a.info(function(){if(a.redactEnabled_)if(g){var k="";for(var m=g.split("&"),n=0;n<m.length;n++){var r=m[n].split("=");if(r.length>1){var t=r[0];r=r[1];var u=t.split("_");k=u.length>=2&&u[1]=="type"?k+(t+"="+r+"&"):k+(t+"=redacted&")}}}else k=null;else k=g;return"XMLHTTP REQ ("+d+") [attempt "+e+"]: "+b+"\n"+c+"\n"+k})},YGc=function(a,b,c,d,e,g,k){a.info(function(){return"XMLHTTP RESP ("+d+") [ attempt "+e+"]: "+b+"\n"+c+"\n"+g+" "+k})},E_=function(a,b,c,d){a.info(function(){return"XMLHTTP TEXT ("+
b+"): "+ZGc(a,c)+(d?" "+d:"")})},$Gc=function(a,b){a.info(function(){return"TIMEOUT: "+b})};
D_.prototype.debug=function(){};
D_.prototype.info=function(){};
D_.prototype.warning=function(){};
var ZGc=function(a,b){if(!a.redactEnabled_)return b;if(!b)return null;try{var c=JSON.parse(b);if(c)for(var d=0;d<c.length;d++)if(Array.isArray(c[d])){var e=c[d];if(!(e.length<2)){var g=e[1];if(Array.isArray(g)&&!(g.length<1)){var k=g[0];if(k!="noop"&&k!="stop"&&k!="close")for(var m=1;m<g.length;m++)g[m]=""}}}return(0,_.Kz)(c)}catch(n){return a.debug("Exception parsing expected JS array - probably was not JS"),b}};var F_=function(a,b,c,d,e){this.JSC$17178_channel_=a;this.JSC$17178_channelDebug_=b;this.sid_=c;this.JSC$17178_rid_=d;this.JSC$17178_retryId_=e||1;this.JSC$17178_eventHandler_=new _.bn(this);this.timeout_=45E3;this.JSC$17178_extraHeaders_=null;this.JSC$17178_successful_=!1;this.JSC$17178_postData_=this.JSC$17178_requestUri_=this.JSC$17178_baseUri_=this.JSC$17178_type_=this.JSC$17178_requestStartTime_=this.JSC$17178_watchDogTimeoutTime_=this.JSC$17178_watchDogTimerId_=null;this.JSC$17178_pendingMessages_=
[];this.JSC$17178_xmlHttp_=null;this.JSC$17178_xmlHttpChunkStart_=0;this.JSC$17178_lastError_=this.JSC$17178_verb_=null;this.JSC$17178_lastStatusCode_=-1;this.JSC$17178_cancelled_=!1;this.JSC$17178_readyStateChangeThrottleMs_=0;this.JSC$17178_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new aHc},aHc=function(){this.textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},bHc=function(a,b){switch(a){case 0:return"Non-200 return code ("+b+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},cHc={},dHc={};
F_.prototype.setTimeout=function(a){this.timeout_=a};
var fHc=function(a,b,c){a.JSC$17178_type_=1;a.JSC$17178_baseUri_=_.pA(b.clone());a.JSC$17178_postData_=c;a.decodeChunks_=!0;eHc(a,null)},eHc=function(a,b){a.JSC$17178_requestStartTime_=Date.now();
gHc(a);a.JSC$17178_requestUri_=a.JSC$17178_baseUri_.clone();qZ(a.JSC$17178_requestUri_,"t",a.JSC$17178_retryId_);a.JSC$17178_xmlHttpChunkStart_=0;var c=a.JSC$17178_channel_.JSC$17197_supportsCrossDomainXhrs_;a.fetchResponseState_=new aHc;a.JSC$17178_xmlHttp_=hHc(a.JSC$17178_channel_,c?b:null,!a.JSC$17178_postData_);a.JSC$17178_readyStateChangeThrottleMs_>0&&(a.JSC$17178_readyStateChangeThrottle_=new _.hv((0,_.ug)(a.JSC$17182_xmlHttpHandler_,a,a.JSC$17178_xmlHttp_),a.JSC$17178_readyStateChangeThrottleMs_));
a.JSC$17178_eventHandler_.listen(a.JSC$17178_xmlHttp_,"readystatechange",a.JSC$17182_readyStateChangeHandler_);b=a.JSC$17178_extraHeaders_?_.yf.clone(a.JSC$17178_extraHeaders_):{};a.JSC$17178_postData_?(a.JSC$17178_verb_||(a.JSC$17178_verb_="POST"),b["Content-Type"]="application/x-www-form-urlencoded",a.JSC$17178_xmlHttp_.send(a.JSC$17178_requestUri_,a.JSC$17178_verb_,a.JSC$17178_postData_,b)):(a.JSC$17178_verb_="GET",a.JSC$17178_xmlHttp_.send(a.JSC$17178_requestUri_,a.JSC$17178_verb_,null,b));A_(1);
XGc(a.JSC$17178_channelDebug_,a.JSC$17178_verb_,a.JSC$17178_requestUri_,a.JSC$17178_rid_,a.JSC$17178_retryId_,a.JSC$17178_postData_)};
F_.prototype.JSC$17182_readyStateChangeHandler_=function(a){a=a.target;var b=this.JSC$17178_readyStateChangeThrottle_;b&&_.Mz(a)==3?(this.JSC$17178_channelDebug_.debug("Throttling readystatechange."),b.fire()):this.JSC$17182_xmlHttpHandler_(a)};
F_.prototype.JSC$17182_xmlHttpHandler_=function(a){try{a==this.JSC$17178_xmlHttp_?iHc(this):this.JSC$17178_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(b){this.JSC$17178_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),jHc(this)}finally{}};
var iHc=function(a){var b=_.Mz(a.JSC$17178_xmlHttp_),c=a.JSC$17178_xmlHttp_.JSC$7648_lastErrorCode_,d=a.JSC$17178_xmlHttp_.getStatus();if(!(b<3||b==3&&!jHc(a))){a.JSC$17178_cancelled_||b!=4||c==7||(c==8||d<=0?A_(3):A_(2));kHc(a);var e=a.JSC$17178_xmlHttp_.getStatus();a.JSC$17178_lastStatusCode_=e;c=lHc(a);jHc(a)||a.JSC$17178_channelDebug_.debug(function(){return"No response text for uri "+a.JSC$17178_requestUri_+" status "+e});
a.JSC$17178_successful_=e==200;YGc(a.JSC$17178_channelDebug_,a.JSC$17178_verb_,a.JSC$17178_requestUri_,a.JSC$17178_rid_,a.JSC$17178_retryId_,b,e);if(a.JSC$17178_successful_){if(a.decodeInitialResponse_&&!a.initialResponseDecoded_)if(d=mHc(a))E_(a.JSC$17178_channelDebug_,a.JSC$17178_rid_,d,"Initial handshake response via X-HTTP-Initial-Response"),a.initialResponseDecoded_=!0,nHc(a,d);else{a.JSC$17178_successful_=!1;a.JSC$17178_lastError_=3;B_(12);a.JSC$17178_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
a.JSC$17178_rid_+")");G_(a);H_(a);return}a.decodeChunks_?oHc(a,b,c):(E_(a.JSC$17178_channelDebug_,a.JSC$17178_rid_,c,null),nHc(a,c));b==4&&G_(a);a.JSC$17178_successful_&&!a.JSC$17178_cancelled_&&(b==4?pHc(a.JSC$17178_channel_,a):(a.JSC$17178_successful_=!1,gHc(a)))}else gAc(a.JSC$17178_xmlHttp_),e==400&&c.indexOf("Unknown SID")>0?(a.JSC$17178_lastError_=3,B_(12),a.JSC$17178_channelDebug_.warning("XMLHTTP Unknown SID ("+a.JSC$17178_rid_+")")):(a.JSC$17178_lastError_=0,B_(13),a.JSC$17178_channelDebug_.warning("XMLHTTP Bad status "+
e+" ("+a.JSC$17178_rid_+")")),G_(a),H_(a)}},mHc=function(a){return a.JSC$17178_xmlHttp_&&(a=zY(a.JSC$17178_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.qa(a)?a:null},lHc=function(a){if(!qHc(a))return a.JSC$17178_xmlHttp_.getResponseText();
var b=a.JSC$17178_xmlHttp_.getResponse();if(b==="")return"";var c="",d=b.length,e=_.Mz(a.JSC$17178_xmlHttp_)==4;if(!a.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return G_(a),H_(a),"";a.fetchResponseState_.textDecoder=new _.ja.TextDecoder}for(var g=0;g<d;g++)a.fetchResponseState_.responseArrivedForFetch=!0,c+=a.fetchResponseState_.textDecoder.decode(b[g],{stream:!(e&&g==d-1)});b.length=0;a.fetchResponseState_.responseBuffer+=c;a.JSC$17178_xmlHttpChunkStart_=0;return a.fetchResponseState_.responseBuffer},
jHc=function(a){return a.JSC$17178_xmlHttp_?a.fetchResponseState_.responseArrivedForFetch?!0:!(!a.JSC$17178_xmlHttp_.getResponseText()&&!a.JSC$17178_xmlHttp_.getResponse()):!1},qHc=function(a){return a.JSC$17178_xmlHttp_?a.JSC$17178_verb_=="GET"&&a.JSC$17178_type_!=2&&a.JSC$17178_channel_.usesFetchStreams_:!1},oHc=function(a,b,c){for(var d=!0,e;!a.JSC$17178_cancelled_&&a.JSC$17178_xmlHttpChunkStart_<c.length;)if(e=rHc(a,c),e==dHc){b==4&&(a.JSC$17178_lastError_=4,B_(14),d=!1);
E_(a.JSC$17178_channelDebug_,a.JSC$17178_rid_,null,"[Incomplete Response]");break}else if(e==cHc){a.JSC$17178_lastError_=4;B_(15);E_(a.JSC$17178_channelDebug_,a.JSC$17178_rid_,c,"[Invalid Chunk]");d=!1;break}else E_(a.JSC$17178_channelDebug_,a.JSC$17178_rid_,e,null),nHc(a,e);qHc(a)&&a.JSC$17178_xmlHttpChunkStart_!=0&&(a.fetchResponseState_.responseBuffer=a.fetchResponseState_.responseBuffer.slice(a.JSC$17178_xmlHttpChunkStart_),a.JSC$17178_xmlHttpChunkStart_=0);b!=4||c.length!=0||a.fetchResponseState_.responseArrivedForFetch||
(a.JSC$17178_lastError_=1,B_(16),d=!1);a.JSC$17178_successful_=a.JSC$17178_successful_&&d;d?c.length>0&&!a.firstByteReceived_&&(a.firstByteReceived_=!0,b=a.JSC$17178_channel_,b.JSC$17197_backChannelRequest_==a&&b.detectBufferingProxy_&&!b.bpDetectionDone_&&(b.JSC$17197_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+c.length),sHc(b),b.bpDetectionDone_=!0,B_(11))):(E_(a.JSC$17178_channelDebug_,a.JSC$17178_rid_,c,"[Invalid Chunked Response]"),G_(a),H_(a))},rHc=function(a,b){var c=
a.JSC$17178_xmlHttpChunkStart_,d=b.indexOf("\n",c);
if(d==-1)return dHc;c=Number(b.substring(c,d));if(isNaN(c))return cHc;d+=1;if(d+c>b.length)return dHc;b=b.slice(d,d+c);a.JSC$17178_xmlHttpChunkStart_=d+c;return b};
F_.prototype.cancel=function(){this.JSC$17178_cancelled_=!0;G_(this)};
var gHc=function(a){a.JSC$17178_watchDogTimeoutTime_=Date.now()+a.timeout_;tHc(a,a.timeout_)},tHc=function(a,b){if(a.JSC$17178_watchDogTimerId_!=null)throw Error("sk");
a.JSC$17178_watchDogTimerId_=C_((0,_.ug)(a.JSC$17182_onWatchDogTimeout_,a),b)},kHc=function(a){a.JSC$17178_watchDogTimerId_&&(_.ja.clearTimeout(a.JSC$17178_watchDogTimerId_),a.JSC$17178_watchDogTimerId_=null)};
F_.prototype.JSC$17182_onWatchDogTimeout_=function(){this.JSC$17178_watchDogTimerId_=null;var a=Date.now();a-this.JSC$17178_watchDogTimeoutTime_>=0?($Gc(this.JSC$17178_channelDebug_,this.JSC$17178_requestUri_),this.JSC$17178_type_!=2&&(A_(3),B_(17)),G_(this),this.JSC$17178_lastError_=2,H_(this)):(this.JSC$17178_channelDebug_.warning("WatchDog timer called too early"),tHc(this,this.JSC$17178_watchDogTimeoutTime_-a))};
var H_=function(a){a.JSC$17178_channel_.state_==0||a.JSC$17178_cancelled_||pHc(a.JSC$17178_channel_,a)},G_=function(a){kHc(a);
_.Tf(a.JSC$17178_readyStateChangeThrottle_);a.JSC$17178_readyStateChangeThrottle_=null;a.JSC$17178_eventHandler_.removeAll();if(a.JSC$17178_xmlHttp_){var b=a.JSC$17178_xmlHttp_;a.JSC$17178_xmlHttp_=null;b.abort();b.dispose()}};
F_.prototype.getLastError=function(){return this.JSC$17178_lastError_};
var nHc=function(a,b){try{var c=a.JSC$17178_channel_;if(c.state_!=0&&(c.JSC$17197_backChannelRequest_==a||uHc(c.forwardChannelRequestPool_,a)))if(!a.initialResponseDecoded_&&uHc(c.forwardChannelRequestPool_,a)&&c.state_==3){try{var d=c.wireCodec_.JSC$17192_parser_.parse(b)}catch(m){d=null}if(Array.isArray(d)&&d.length==3){b=d;if(b[0]==0)a:if(c.JSC$17197_channelDebug_.debug("Server claims our backchannel is missing."),c.JSC$17197_backChannelTimerId_)c.JSC$17197_channelDebug_.debug("But we are currently starting the request.");
else{if(c.JSC$17197_backChannelRequest_)if(c.JSC$17197_backChannelRequest_.JSC$17178_requestStartTime_+3E3<a.JSC$17178_requestStartTime_)vHc(c),wHc(c);else break a;else c.JSC$17197_channelDebug_.warning("We do not have a BackChannel established");xHc(c);B_(18)}else{c.JSC$17197_lastPostResponseArrayId_=b[1];var e=c.JSC$17197_lastPostResponseArrayId_-c.JSC$17197_lastArrayId_;if(0<e){var g=b[2];c.JSC$17197_channelDebug_.debug(g+" bytes (in "+e+" arrays) are outstanding on the BackChannel");g<37500&&
c.enableStreaming_&&c.JSC$17197_backChannelRetryCount_==0&&!c.JSC$17197_deadBackChannelTimerId_&&(c.JSC$17197_deadBackChannelTimerId_=C_((0,_.ug)(c.JSC$17199_onBackChannelDead_,c),6E3))}}if(yHc(c.forwardChannelRequestPool_)<=1&&c.forwardChannelFlushedCallback_){try{c.forwardChannelFlushedCallback_()}catch(m){}c.forwardChannelFlushedCallback_=void 0}}else c.JSC$17197_channelDebug_.debug("Bad POST response data returned"),I_(c,11)}else if((a.initialResponseDecoded_||c.JSC$17197_backChannelRequest_==
a)&&vHc(c),!_.qa(b)){var k=c.wireCodec_.JSC$17192_parser_.parse(b);c.onInput_(k,a)}A_(4)}catch(m){}};var zHc=function(a,b){this.JSC$17185_mapId=a;this.map=b;this.context=null};var AHc=function(a){this.maxPoolSizeConfigured_=a||10;_.ja.PerformanceNavigationTiming?(a=_.ja.performance.getEntriesByType("navigation"),a=a.length>0&&(a[0].nextHopProtocol=="hq"||a[0].nextHopProtocol=="h2")):a=!!(_.ja.chrome&&_.ja.chrome.loadTimes&&_.ja.chrome.loadTimes()&&_.ja.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$17188_maxSize_=a?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$17188_maxSize_>1&&(this.requestPool_=new Set);this.JSC$17188_request_=null;this.JSC$17188_pendingMessages_=
[]},BHc=function(a){return a.JSC$17188_request_?!0:a.requestPool_?a.requestPool_.size>=a.JSC$17188_maxSize_:!1},yHc=function(a){return a.JSC$17188_request_?1:a.requestPool_?a.requestPool_.size:0},uHc=function(a,b){return a.JSC$17188_request_?a.JSC$17188_request_==b:a.requestPool_?a.requestPool_.has(b):!1},CHc=function(a,b){a.requestPool_?a.requestPool_.add(b):a.JSC$17188_request_=b},DHc=function(a,b){a.JSC$17188_request_&&a.JSC$17188_request_==b?a.JSC$17188_request_=null:a.requestPool_&&a.requestPool_.has(b)&&
a.requestPool_.delete(b)};
AHc.prototype.cancel=function(){this.JSC$17188_pendingMessages_=EHc(this);if(this.JSC$17188_request_)this.JSC$17188_request_.cancel(),this.JSC$17188_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var a=_.h(this.requestPool_.values()),b=a.next();!b.done;b=a.next())b.value.cancel();this.requestPool_.clear()}};
AHc.prototype.hasPendingRequest=function(){return this.JSC$17188_request_!=null||this.requestPool_!=null&&this.requestPool_.size!==0};
var EHc=function(a){if(a.JSC$17188_request_!=null)return a.JSC$17188_pendingMessages_.concat(a.JSC$17188_request_.JSC$17178_pendingMessages_);if(a.requestPool_!=null&&a.requestPool_.size!==0){var b=a.JSC$17188_pendingMessages_;a=_.h(a.requestPool_.values());for(var c=a.next();!c.done;c=a.next())b=b.concat(c.value.JSC$17178_pendingMessages_);return b}return _.Ra(a.JSC$17188_pendingMessages_)},FHc=function(a,b){a.JSC$17188_pendingMessages_=a.JSC$17188_pendingMessages_.concat(b)};var GHc=function(a,b){var c=new D_;c.debug("TestLoadImage: loading "+a);if(_.ja.Image){var d=new Image;d.onload=_.vo(J_,c,"TestLoadImage: loaded",!0,b,d);d.onerror=_.vo(J_,c,"TestLoadImage: error",!1,b,d);d.onabort=_.vo(J_,c,"TestLoadImage: abort",!1,b,d);d.ontimeout=_.vo(J_,c,"TestLoadImage: timeout",!1,b,d);_.ja.setTimeout(function(){if(d.ontimeout)d.ontimeout()},1E4);
d.src=a}else b(!1)},HHc=function(a,b){var c=new D_,d=new AbortController,e=setTimeout(function(){d.abort();
J_(c,"TestPingServer: timeout",!1,b)},1E4);
fetch(a,{signal:d.signal}).then(function(g){clearTimeout(e);g.ok?J_(c,"TestPingServer: ok",!0,b):J_(c,"TestPingServer: server error",!1,b)}).catch(function(){clearTimeout(e);
J_(c,"TestPingServer: error",!1,b)})},J_=function(a,b,c,d,e){try{a.debug(b),e&&(e.onload=null,e.onerror=null,e.onabort=null,e.ontimeout=null),d(c)}catch(g){}};var IHc=function(){this.JSC$17192_parser_=new z_},JHc=function(a,b,c){var d=c||"";
try{_.Yhb(a,function(e,g){var k=e;_.$a(e)&&(k=(0,_.Kz)(e));b.push(d+g+"="+encodeURIComponent(k))})}catch(e){throw b.push(d+"type="+encodeURIComponent("_badmap")),e;
}};var K_=function(a,b,c){return c&&c.internalChannelParams?c.internalChannelParams[a]||b:b},L_=function(a){this.serverVersion_=0;
this.JSC$17197_outgoingMaps_=[];this.JSC$17197_channelDebug_=new D_;this.JSC$17197_hostPrefix_=this.JSC$17197_backChannelUri_=this.JSC$17197_forwardChannelUri_=this.JSC$17197_path_=this.JSC$17197_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$17197_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$17197_extraHeaders_=null;this.JSC$17197_nextMapId_=this.JSC$17197_nextRid_=0;this.JSC$17197_failFast_=K_("failFast",!1,a);this.enableStreaming_=this.JSC$17197_deadBackChannelTimerId_=
this.JSC$17197_backChannelTimerId_=this.JSC$17197_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$17197_lastPostResponseArrayId_=this.JSC$17197_lastArrayId_=-1;this.JSC$17197_backChannelAttemptId_=this.JSC$17197_backChannelRetryCount_=this.JSC$17197_forwardChannelRetryCount_=0;this.JSC$17197_baseRetryDelayMs_=K_("baseRetryDelayMs",5E3,a);this.JSC$17197_retryDelaySeedMs_=K_("retryDelaySeedMs",1E4,a);this.JSC$17197_forwardChannelMaxRetries_=
K_("forwardChannelMaxRetries",2,a);this.JSC$17197_forwardChannelRequestTimeoutMs_=K_("forwardChannelRequestTimeoutMs",2E4,a);this.JSC$17197_xmlHttpFactory_=a&&a.xmlHttpFactory||void 0;this.networkTestUrl_=a&&a.networkTestUrl||void 0;this.usesFetchStreams_=a&&a.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$17197_supportsCrossDomainXhrs_=a&&a.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new AHc(a&&a.concurrentRequestLimit);this.wireCodec_=new IHc;this.fastHandshake_=
a&&a.fastHandshake||!1;this.encodeInitMessageHeaders_=a&&a.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$17197_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=a&&a.blockingHandshake||!1;a&&a.disableRedact&&this.JSC$17197_channelDebug_.disableRedact();a&&a.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
a&&a.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;a&&a.longPollingTimeout&&a.longPollingTimeout>0&&(this.longPollingTimeout_=a.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
L_.prototype.JSC$17199_channelVersion_=8;L_.prototype.state_=1;
L_.prototype.connect=function(a,b,c,d){this.JSC$17197_channelDebug_.debug("connect()");B_(0);this.JSC$17197_path_=a;this.JSC$17197_extraParams_=b||{};c&&d!==void 0&&(this.JSC$17197_extraParams_.OSID=c,this.JSC$17197_extraParams_.OAID=d);this.enableStreaming_=this.allowStreamingMode_;this.JSC$17197_channelDebug_.debug("connectChannel_()");a=KHc(this,null,this.JSC$17197_path_);this.JSC$17197_channelDebug_.debug("GetForwardChannelUri: "+a);this.JSC$17197_forwardChannelUri_=a;LHc(this)};
L_.prototype.disconnect=function(){this.JSC$17197_channelDebug_.debug("disconnect()");MHc(this);if(this.state_==3){var a=this.JSC$17197_nextRid_++,b=this.JSC$17197_forwardChannelUri_.clone();_.Lg(b,"SID",this.sid_);_.Lg(b,"RID",a);_.Lg(b,"TYPE","terminate");M_(this,b);a=new F_(this,this.JSC$17197_channelDebug_,this.sid_,a);a.JSC$17178_type_=2;a.JSC$17178_baseUri_=_.pA(b.clone());b=!1;if(_.ja.navigator&&_.ja.navigator.sendBeacon)try{b=_.ja.navigator.sendBeacon(a.JSC$17178_baseUri_.toString(),"")}catch(c){}!b&&
_.ja.Image&&((new Image).src=a.JSC$17178_baseUri_,b=!0);b||(a.JSC$17178_xmlHttp_=hHc(a.JSC$17178_channel_,null),a.JSC$17178_xmlHttp_.send(a.JSC$17178_baseUri_));a.JSC$17178_requestStartTime_=Date.now();gHc(a)}NHc(this)};
var wHc=function(a){a.JSC$17197_backChannelRequest_&&(sHc(a),a.JSC$17197_backChannelRequest_.cancel(),a.JSC$17197_backChannelRequest_=null)},MHc=function(a){wHc(a);
a.JSC$17197_backChannelTimerId_&&(_.ja.clearTimeout(a.JSC$17197_backChannelTimerId_),a.JSC$17197_backChannelTimerId_=null);vHc(a);a.forwardChannelRequestPool_.cancel();a.JSC$17197_forwardChannelTimerId_&&(typeof a.JSC$17197_forwardChannelTimerId_==="number"&&_.ja.clearTimeout(a.JSC$17197_forwardChannelTimerId_),a.JSC$17197_forwardChannelTimerId_=null)};
L_.prototype.getState=function(){return this.state_};
var LHc=function(a){BHc(a.forwardChannelRequestPool_)||a.JSC$17197_forwardChannelTimerId_||(a.JSC$17197_forwardChannelTimerId_=!0,_.Fz(a.JSC$17199_onStartForwardChannelTimer_,a),a.JSC$17197_forwardChannelRetryCount_=0)},PHc=function(a,b){if(yHc(a.forwardChannelRequestPool_)>=a.forwardChannelRequestPool_.JSC$17188_maxSize_-(a.JSC$17197_forwardChannelTimerId_?1:0))return!1;
if(a.JSC$17197_forwardChannelTimerId_)return a.JSC$17197_channelDebug_.debug("Use the retry request that is already scheduled."),a.JSC$17197_outgoingMaps_=b.JSC$17178_pendingMessages_.concat(a.JSC$17197_outgoingMaps_),!0;if(a.state_==1||a.state_==2||a.JSC$17197_forwardChannelRetryCount_>=(a.JSC$17197_failFast_?0:a.JSC$17197_forwardChannelMaxRetries_))return!1;a.JSC$17197_channelDebug_.debug("Going to retry POST");a.JSC$17197_forwardChannelTimerId_=C_((0,_.ug)(a.JSC$17199_onStartForwardChannelTimer_,
a,b),OHc(a,a.JSC$17197_forwardChannelRetryCount_));a.JSC$17197_forwardChannelRetryCount_++;return!0};
L_.prototype.JSC$17199_onStartForwardChannelTimer_=function(a){if(this.JSC$17197_forwardChannelTimerId_)if(this.JSC$17197_forwardChannelTimerId_=null,this.JSC$17197_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!a){this.JSC$17197_channelDebug_.debug("open_()");this.JSC$17197_nextRid_=Math.floor(Math.random()*1E5);a=this.JSC$17197_nextRid_++;var b=new F_(this,this.JSC$17197_channelDebug_,"",a),c=this.JSC$17197_extraHeaders_;this.initHeaders_&&(c?(c=_.yf.clone(c),_.yf.extend(c,this.initHeaders_)):
c=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(b.JSC$17178_extraHeaders_=c,c=null);var d;if(this.fastHandshake_)a:{for(var e=d=0;e<this.JSC$17197_outgoingMaps_.length;e++){b:{var g=this.JSC$17197_outgoingMaps_[e];if("__data__"in g.map&&(g=g.map.__data__,typeof g==="string")){g=g.length;break b}g=void 0}if(g===void 0)break;d+=g;if(d>4096){d=e;break a}if(d===4096||e===this.JSC$17197_outgoingMaps_.length-1){d=e+1;break a}}d=1E3}else d=1E3;d=QHc(this,b,d);
e=this.JSC$17197_forwardChannelUri_.clone();_.Lg(e,"RID",a);_.Lg(e,"CVER",22);this.httpSessionIdParam_&&_.Lg(e,"X-HTTP-Session-Id",this.httpSessionIdParam_);M_(this,e);c&&(this.encodeInitMessageHeaders_?d="headers="+_.Li(gDc(c))+"&"+d:this.httpHeadersOverwriteParam_&&hDc(e,this.httpHeadersOverwriteParam_,c));CHc(this.forwardChannelRequestPool_,b);this.blockingHandshake_&&_.Lg(e,"TYPE","init");this.fastHandshake_?(_.Lg(e,"$req",d),_.Lg(e,"SID","null"),b.decodeInitialResponse_=!0,fHc(b,e,null)):fHc(b,
e,d);this.state_=2}}else this.state_==3&&(a?RHc(this,a):this.JSC$17197_outgoingMaps_.length==0?this.JSC$17197_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):BHc(this.forwardChannelRequestPool_)||(RHc(this),this.JSC$17197_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var RHc=function(a,b){var c;b?c=b.JSC$17178_rid_:c=a.JSC$17197_nextRid_++;var d=a.JSC$17197_forwardChannelUri_.clone();_.Lg(d,"SID",a.sid_);_.Lg(d,"RID",c);_.Lg(d,"AID",a.JSC$17197_lastArrayId_);M_(a,d);a.httpHeadersOverwriteParam_&&a.JSC$17197_extraHeaders_&&hDc(d,a.httpHeadersOverwriteParam_,a.JSC$17197_extraHeaders_);c=new F_(a,a.JSC$17197_channelDebug_,a.sid_,c,a.JSC$17197_forwardChannelRetryCount_+1);a.httpHeadersOverwriteParam_===null&&(c.JSC$17178_extraHeaders_=a.JSC$17197_extraHeaders_);b&&
(a.JSC$17197_outgoingMaps_=b.JSC$17178_pendingMessages_.concat(a.JSC$17197_outgoingMaps_));b=QHc(a,c,1E3);c.setTimeout(Math.round(a.JSC$17197_forwardChannelRequestTimeoutMs_*.5)+Math.round(a.JSC$17197_forwardChannelRequestTimeoutMs_*.5*Math.random()));CHc(a.forwardChannelRequestPool_,c);fHc(c,d,b)},M_=function(a,b){a.JSC$17197_extraParams_&&_.yf.forEach(a.JSC$17197_extraParams_,function(c,d){_.Lg(b,d,c)});
a.handler_&&_.Yhb({},function(c,d){_.Lg(b,d,c)})},QHc=function(a,b,c){c=Math.min(a.JSC$17197_outgoingMaps_.length,c);
var d=a.handler_?(0,_.ug)(a.handler_.JSC$17203_badMapError,a.handler_,a):null;a:{for(var e=a.JSC$17197_outgoingMaps_,g=-1;;){var k=["count="+c];g==-1?c>0?(g=e[0].JSC$17185_mapId,k.push("ofs="+g)):g=0:k.push("ofs="+g);for(var m=!0,n=0;n<c;n++){var r=e[n].JSC$17185_mapId,t=e[n].map;r-=g;if(r<0)g=Math.max(0,e[n].JSC$17185_mapId-100),m=!1;else try{JHc(t,k,"req"+r+"_")}catch(u){d&&d(t)}}if(m){d=k.join("&");break a}}d=void 0}a=a.JSC$17197_outgoingMaps_.splice(0,c);b.JSC$17178_pendingMessages_=a;return d},
SHc=function(a){a.JSC$17197_backChannelRequest_||a.JSC$17197_backChannelTimerId_||(a.JSC$17197_backChannelAttemptId_=1,_.Fz(a.JSC$17199_onStartBackChannelTimer_,a),a.JSC$17197_backChannelRetryCount_=0)},xHc=function(a){if(a.JSC$17197_backChannelRequest_||a.JSC$17197_backChannelTimerId_||a.JSC$17197_backChannelRetryCount_>=3)return!1;
a.JSC$17197_channelDebug_.debug("Going to retry GET");a.JSC$17197_backChannelAttemptId_++;a.JSC$17197_backChannelTimerId_=C_((0,_.ug)(a.JSC$17199_onStartBackChannelTimer_,a),OHc(a,a.JSC$17197_backChannelRetryCount_));a.JSC$17197_backChannelRetryCount_++;return!0};
L_.prototype.JSC$17199_onStartBackChannelTimer_=function(){this.JSC$17197_backChannelTimerId_=null;THc(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$17197_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$17197_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$17197_backChannelRequest_+" "+this.handshakeRttMs_);else{var a=2*this.handshakeRttMs_;this.JSC$17197_channelDebug_.info("BP detection timer enabled: "+a);this.bpDetectionTimerId_=C_((0,_.ug)(this.onBpDetectionTimer_,
this),a)}};
L_.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$17197_channelDebug_.info("BP detection timeout reached.");if(this.JSC$17197_backChannelRequest_.JSC$17178_xmlHttp_!=null){var a=this.JSC$17197_backChannelRequest_.JSC$17178_xmlHttp_.getResponseText();a&&this.JSC$17197_channelDebug_.warning("Timer should have been cancelled : "+a)}this.JSC$17197_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;B_(10);wHc(this);THc(this)}else this.JSC$17197_channelDebug_.warning("Invalid operation.")};
var sHc=function(a){a.bpDetectionTimerId_!=null&&(a.JSC$17197_channelDebug_.debug("Cancel the BP detection timer."),_.ja.clearTimeout(a.bpDetectionTimerId_),a.bpDetectionTimerId_=null)},THc=function(a){a.JSC$17197_channelDebug_.debug("Creating new HttpRequest");
a.JSC$17197_backChannelRequest_=new F_(a,a.JSC$17197_channelDebug_,a.sid_,"rpc",a.JSC$17197_backChannelAttemptId_);a.httpHeadersOverwriteParam_===null&&(a.JSC$17197_backChannelRequest_.JSC$17178_extraHeaders_=a.JSC$17197_extraHeaders_);a.JSC$17197_backChannelRequest_.JSC$17178_readyStateChangeThrottleMs_=0;var b=a.JSC$17197_backChannelUri_.clone();_.Lg(b,"RID","rpc");_.Lg(b,"SID",a.sid_);_.Lg(b,"AID",a.JSC$17197_lastArrayId_);_.Lg(b,"CI",a.enableStreaming_?"0":"1");!a.enableStreaming_&&a.longPollingTimeout_&&
_.Lg(b,"TO",a.longPollingTimeout_);_.Lg(b,"TYPE","xmlhttp");M_(a,b);a.httpHeadersOverwriteParam_&&a.JSC$17197_extraHeaders_&&hDc(b,a.httpHeadersOverwriteParam_,a.JSC$17197_extraHeaders_);a.backChannelRequestTimeoutMs_&&a.JSC$17197_backChannelRequest_.setTimeout(a.backChannelRequestTimeoutMs_);var c=a.JSC$17197_backChannelRequest_,d=a.JSC$17197_hostPrefix_;c.JSC$17178_type_=1;c.JSC$17178_baseUri_=_.pA(b.clone());c.JSC$17178_postData_=null;c.decodeChunks_=!0;eHc(c,d);a.JSC$17197_channelDebug_.debug("New Request created")};
L_.prototype.JSC$17199_onBackChannelDead_=function(){this.JSC$17197_deadBackChannelTimerId_!=null&&(this.JSC$17197_deadBackChannelTimerId_=null,wHc(this),xHc(this),B_(19))};
var vHc=function(a){a.JSC$17197_deadBackChannelTimerId_!=null&&(_.ja.clearTimeout(a.JSC$17197_deadBackChannelTimerId_),a.JSC$17197_deadBackChannelTimerId_=null)},pHc=function(a,b){a.JSC$17197_channelDebug_.debug("Request complete");
var c=null;if(a.JSC$17197_backChannelRequest_==b){vHc(a);sHc(a);a.JSC$17197_backChannelRequest_=null;var d=2}else if(uHc(a.forwardChannelRequestPool_,b))c=b.JSC$17178_pendingMessages_,DHc(a.forwardChannelRequestPool_,b),d=1;else return;if(a.state_!=0)if(b.JSC$17178_successful_)d==1?(WGc(b.JSC$17178_postData_?b.JSC$17178_postData_.length:0,Date.now()-b.JSC$17178_requestStartTime_,a.JSC$17197_forwardChannelRetryCount_),LHc(a)):SHc(a);else{var e=b.JSC$17178_lastStatusCode_,g=b.getLastError();if(g==3||
g==0&&e>0)a.JSC$17197_channelDebug_.debug("Not retrying due to error type"),e>200&&(a.errorResponseStatusCode_=b.JSC$17178_lastStatusCode_);else{a.JSC$17197_channelDebug_.debug(function(){return"Maybe retrying, last error: "+bHc(g,a.errorResponseStatusCode_)});
if(d==1&&PHc(a,b)||d==2&&xHc(a))return;a.JSC$17197_channelDebug_.debug("Exceeded max number of retries")}c&&c.length>0&&FHc(a.forwardChannelRequestPool_,c);a.JSC$17197_channelDebug_.debug("Error: HTTP request failed");switch(g){case 1:I_(a,5);break;case 4:I_(a,10);break;case 3:I_(a,6);break;default:I_(a,2)}}},OHc=function(a,b){var c=a.JSC$17197_baseRetryDelayMs_+Math.floor(Math.random()*a.JSC$17197_retryDelaySeedMs_);
a.isActive()||(a.JSC$17197_channelDebug_.debug("Inactive channel"),c*=2);return c*b};
L_.prototype.onInput_=function(a,b){for(var c=0;c<a.length;c++){var d=a[c];this.JSC$17197_lastArrayId_=d[0];d=d[1];if(this.state_==2)if(d[0]=="c"){this.sid_=d[1];this.JSC$17197_hostPrefix_=d[2];var e=d[3];e!=null&&(this.JSC$17199_channelVersion_=e,this.JSC$17197_channelDebug_.info("VER="+this.JSC$17199_channelVersion_));e=d[4];e!=null&&(this.serverVersion_=e,this.JSC$17197_channelDebug_.info("SVER="+this.serverVersion_));d=d[5];d!=null&&typeof d==="number"&&d>0&&(this.backChannelRequestTimeoutMs_=
d*=1.5,this.JSC$17197_channelDebug_.info("backChannelRequestTimeoutMs_="+d));if(d=b.JSC$17178_xmlHttp_){var g=zY(d,"X-Client-Wire-Protocol");g&&(e=this.forwardChannelRequestPool_,!e.requestPool_&&(_.ra(g,"spdy")||_.ra(g,"quic")||_.ra(g,"h2"))&&(e.JSC$17188_maxSize_=e.maxPoolSizeConfigured_,e.requestPool_=new Set,e.JSC$17188_request_&&(CHc(e,e.JSC$17188_request_),e.JSC$17188_request_=null)));this.httpSessionIdParam_&&((d=zY(d,"X-HTTP-Session-Id"))?(this.httpSessionId_=d,_.Lg(this.JSC$17197_forwardChannelUri_,
this.httpSessionIdParam_,d)):this.JSC$17197_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=3;this.handler_&&this.handler_.JSC$17203_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-b.JSC$17178_requestStartTime_,this.JSC$17197_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));d=b;e=KHc(this,this.JSC$17197_supportsCrossDomainXhrs_?this.JSC$17197_hostPrefix_:null,this.JSC$17197_path_);this.JSC$17197_channelDebug_.debug("GetBackChannelUri: "+
e);this.JSC$17197_backChannelUri_=e;d.initialResponseDecoded_?(this.JSC$17197_channelDebug_.debug("Upgrade the handshake request to a backchannel."),DHc(this.forwardChannelRequestPool_,d),e=d,(g=this.backChannelRequestTimeoutMs_)&&e.setTimeout(g),e.JSC$17178_watchDogTimerId_&&(kHc(e),gHc(e)),this.JSC$17197_backChannelRequest_=d):SHc(this);this.JSC$17197_outgoingMaps_.length>0&&LHc(this)}else d[0]!="stop"&&d[0]!="close"||I_(this,7);else this.state_==3&&(d[0]=="stop"||d[0]=="close"?d[0]=="stop"?I_(this,
7):this.disconnect():d[0]!="noop"&&this.handler_&&this.handler_.JSC$17203_channelHandleArray(d),this.JSC$17197_backChannelRetryCount_=0)}};
var I_=function(a,b){a.JSC$17197_channelDebug_.info("Error code "+b);if(b==2){var c=(0,_.ug)(a.testNetworkCallback_,a),d=a.networkTestUrl_,e=!d;d=new _.Wn(d||"//www.google.com/images/cleardot.gif");_.ja.location&&_.ja.location.protocol=="http"||_.gA(d,"https");_.pA(d);e?GHc(d.toString(),c):HHc(d.toString(),c)}else B_(2);a.onError_(b)};
L_.prototype.testNetworkCallback_=function(a){a?(this.JSC$17197_channelDebug_.info("Successfully pinged google.com"),B_(2)):(this.JSC$17197_channelDebug_.info("Failed to ping google.com"),B_(1))};
L_.prototype.onError_=function(a){this.JSC$17197_channelDebug_.debug("HttpChannel: error - "+a);this.state_=0;this.handler_&&this.handler_.JSC$17203_channelError(a);NHc(this);MHc(this)};
var NHc=function(a){a.state_=0;a.nonAckedMapsAtChannelClose_=[];if(a.handler_){var b=EHc(a.forwardChannelRequestPool_);if(b.length!=0||a.JSC$17197_outgoingMaps_.length!=0)a.JSC$17197_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+b.length+", outgoing: "+a.JSC$17197_outgoingMaps_.length}),_.Wa(a.nonAckedMapsAtChannelClose_,b),_.Wa(a.nonAckedMapsAtChannelClose_,a.JSC$17197_outgoingMaps_),a.forwardChannelRequestPool_.JSC$17188_pendingMessages_.length=0,_.Ra(a.JSC$17197_outgoingMaps_),
a.JSC$17197_outgoingMaps_.length=0;
a.handler_.JSC$17203_channelClosed()}},UHc=function(a){if(a.state_==0)return a.nonAckedMapsAtChannelClose_;
var b=[];_.Wa(b,EHc(a.forwardChannelRequestPool_));_.Wa(b,a.JSC$17197_outgoingMaps_);return b},KHc=function(a,b,c){var d=_.Jg(c);
d.JSC$7879_domain_!=""?(b&&_.hA(d,b+"."+d.JSC$7879_domain_),_.iA(d,d.JSC$7879_port_)):(d=_.ja.location,d=YBc(d.protocol,b?b+"."+d.hostname:d.hostname,+d.port,c));b=a.httpSessionIdParam_;c=a.httpSessionId_;b&&c&&_.Lg(d,b,c);_.Lg(d,"VER",a.JSC$17199_channelVersion_);M_(a,d);return d},hHc=function(a,b,c){if(b&&!a.JSC$17197_supportsCrossDomainXhrs_)throw Error("tk");
b=a.usesFetchStreams_&&!a.JSC$17197_xmlHttpFactory_?new _.Lz(new NZ({streamBinaryChunks:c})):new _.Lz(a.JSC$17197_xmlHttpFactory_);b.JSC$7648_withCredentials_=a.JSC$17197_supportsCrossDomainXhrs_;return b};
L_.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var VHc=function(){};
_.f=VHc.prototype;_.f.JSC$17203_channelOpened=function(){};
_.f.JSC$17203_channelHandleArray=function(){};
_.f.JSC$17203_channelError=function(){};
_.f.JSC$17203_channelClosed=function(){};
_.f.isActive=function(){return!0};
_.f.JSC$17203_badMapError=function(){};var WHc=function(){},O_=function(a,b){_.Dz.call(this);
this.JSC$17206_channel_=new L_(b);this.JSC$17206_url_=a;this.messageUrlParams_=b&&b.messageUrlParams||null;a=b&&b.messageHeaders||null;b&&b.clientProtocolHeaderRequired&&(a?_.yf.set(a,"X-Client-Protocol","webchannel"):a=_.yf.create("X-Client-Protocol","webchannel"));this.JSC$17206_channel_.JSC$17197_extraHeaders_=a;a=b&&b.initMessageHeaders||null;b&&b.messageContentType&&(a?_.yf.set(a,"X-WebChannel-Content-Type",b.messageContentType):a=_.yf.create("X-WebChannel-Content-Type",b.messageContentType));
b&&b.clientProfile&&(a?_.yf.set(a,"X-WebChannel-Client-Profile",b.clientProfile):a=_.yf.create("X-WebChannel-Client-Profile",b.clientProfile));this.JSC$17206_channel_.initHeaders_=a;(a=b&&b.httpHeadersOverwriteParam)&&!_.qa(a)&&(this.JSC$17206_channel_.httpHeadersOverwriteParam_=a);this.supportsCrossDomainXhr_=b&&b.supportsCrossDomainXhr||!1;this.sendRawJson_=b&&b.sendRawJson||!1;(b=b&&b.httpSessionIdParam)&&!_.qa(b)&&(this.JSC$17206_channel_.httpSessionIdParam_=b,_.yf.containsKey(this.messageUrlParams_,
b)&&_.yf.remove(this.messageUrlParams_,b));this.channelHandler_=new N_(this)};
_.nx(O_,_.Dz);O_.prototype.open=function(){this.JSC$17206_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$17206_channel_.JSC$17197_supportsCrossDomainXhrs_=!0);this.JSC$17206_channel_.connect(this.JSC$17206_url_,this.messageUrlParams_||void 0)};
O_.prototype.close=function(){this.JSC$17206_channel_.disconnect()};
O_.prototype.send=function(a){var b=this.JSC$17206_channel_;if(typeof a==="string"){var c={};c.__data__=a;a=c}else this.sendRawJson_&&(c={},c.__data__=(0,_.Kz)(a),a=c);b.JSC$17197_outgoingMaps_.push(new zHc(b.JSC$17197_nextMapId_++,a));b.state_==3&&LHc(b)};
O_.prototype.disposeInternal=function(){this.JSC$17206_channel_.handler_=null;delete this.channelHandler_;this.JSC$17206_channel_.disconnect();delete this.JSC$17206_channel_;O_.superClass_.disposeInternal.call(this)};
var XHc=function(a){PGc.call(this);a.__headers__&&(this.headers=a.__headers__,this.statusCode=a.__status__,delete a.__headers__,delete a.__status__);var b=a.__sm__;b?this.data=(this.metadataKey=_.yf.getAnyKey(b))?_.yf.get(b,this.metadataKey):b:this.data=a};
_.nx(XHc,PGc);var YHc=function(a){QGc.call(this);this.status=1;this.errorCode=a};
_.nx(YHc,QGc);var N_=function(a){this.JSC$17213_channel_=a};
_.nx(N_,VHc);N_.prototype.JSC$17203_channelOpened=function(){this.JSC$17213_channel_.dispatchEvent("w")};
N_.prototype.JSC$17203_channelHandleArray=function(a){this.JSC$17213_channel_.dispatchEvent(new XHc(a))};
N_.prototype.JSC$17203_channelError=function(a){this.JSC$17213_channel_.dispatchEvent(new YHc(a))};
N_.prototype.JSC$17203_channelClosed=function(){this.JSC$17213_channel_.dispatchEvent("x")};
var ZHc=function(a,b){this.transportChannel_=a;this.JSC$17216_channel_=b},$Hc=function(a){return UHc(a.JSC$17216_channel_).map(function(b){var c=a.transportChannel_;
b=b.map;"__data__"in b?(b=b.__data__,c=c.sendRawJson_?(0,_.Dfb)(b):b):c=b;return c})};var P_=function(a){aIc.dispatchEvent(new bIc(aIc,a))},aIc=new _.Dz,bIc=function(a){_.yz.call(this,"statevent",a)};
_.z(bIc,_.yz);var Q_=function(a,b,c,d,e){this.JSC$17221_channel_=a;this.JSC$17221_channelDebug_=b;this.sid_=c;this.JSC$17221_rid_=d;this.JSC$17221_retryId_=e||1;this.timeout_=45E3;this.JSC$17221_eventHandler_=new _.bn(this);this.pollingTimer_=new _.an;this.pollingTimer_.setInterval(250)};
_.f=Q_.prototype;_.f.JSC$17223_extraHeaders_=null;_.f.JSC$17223_successful_=!1;_.f.JSC$17223_watchDogTimerId_=null;_.f.JSC$17223_watchDogTimeoutTime_=null;_.f.JSC$17223_requestStartTime_=null;_.f.JSC$17223_type_=null;_.f.JSC$17223_baseUri_=null;_.f.JSC$17223_requestUri_=null;_.f.JSC$17223_postData_=null;_.f.JSC$17223_xmlHttp_=null;_.f.JSC$17223_xmlHttpChunkStart_=0;_.f.trident_=null;_.f.JSC$17223_verb_=null;_.f.JSC$17223_lastError_=null;_.f.JSC$17223_lastStatusCode_=-1;_.f.sendClose_=!0;
_.f.JSC$17223_cancelled_=!1;_.f.JSC$17223_readyStateChangeThrottleMs_=0;_.f.JSC$17223_readyStateChangeThrottle_=null;var cIc=function(a,b){switch(a){case 0:return"Non-200 return code ("+b+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},dIc={},eIc={};
Q_.prototype.setTimeout=function(a){this.timeout_=a};
var gIc=function(a,b,c){a.JSC$17223_type_=1;a.JSC$17223_baseUri_=_.pA(b.clone());a.JSC$17223_postData_=c;a.decodeChunks_=!0;fIc(a,null)},hIc=function(a,b,c,d,e){a.JSC$17223_type_=1;
a.JSC$17223_baseUri_=_.pA(b.clone());a.JSC$17223_postData_=null;a.decodeChunks_=c;e&&(a.sendClose_=!1);fIc(a,d)},fIc=function(a,b){a.JSC$17223_requestStartTime_=Date.now();
iIc(a);a.JSC$17223_requestUri_=a.JSC$17223_baseUri_.clone();qZ(a.JSC$17223_requestUri_,"t",a.JSC$17221_retryId_);a.JSC$17223_xmlHttpChunkStart_=0;a.JSC$17223_xmlHttp_=a.JSC$17221_channel_.JSC$17230_createXhrIo(a.JSC$17221_channel_.JSC$17230_shouldUseSecondaryDomains()?b:null);a.JSC$17223_readyStateChangeThrottleMs_>0&&(a.JSC$17223_readyStateChangeThrottle_=new _.hv((0,_.ug)(a.JSC$17223_xmlHttpHandler_,a,a.JSC$17223_xmlHttp_),a.JSC$17223_readyStateChangeThrottleMs_));a.JSC$17221_eventHandler_.listen(a.JSC$17223_xmlHttp_,
"readystatechange",a.JSC$17223_readyStateChangeHandler_);b=a.JSC$17223_extraHeaders_?_.yf.clone(a.JSC$17223_extraHeaders_):{};a.JSC$17223_postData_?(a.JSC$17223_verb_="POST",b["Content-Type"]="application/x-www-form-urlencoded",a.JSC$17223_xmlHttp_.send(a.JSC$17223_requestUri_,a.JSC$17223_verb_,a.JSC$17223_postData_,b)):(a.JSC$17223_verb_="GET",a.sendClose_&&!_.ux&&(b.Connection="close"),a.JSC$17223_xmlHttp_.send(a.JSC$17223_requestUri_,a.JSC$17223_verb_,null,b));a.JSC$17221_channel_.notifyServerReachabilityEvent(1);
b=a.JSC$17221_channelDebug_;var c=a.JSC$17223_postData_;if(c){var d="";c=c.split("&");for(var e=0;e<c.length;e++){var g=c[e].split("=");if(g.length>1){var k=g[0];g=g[1];var m=k.split("_");d=m.length>=2&&m[1]=="type"?d+(k+"="+g+"&"):d+(k+"=redacted&")}}}else d=null;b.info("XMLHTTP REQ ("+a.JSC$17221_rid_+") [attempt "+a.JSC$17221_retryId_+"]: "+a.JSC$17223_verb_+"\n"+a.JSC$17223_requestUri_+"\n"+d)};
Q_.prototype.JSC$17223_readyStateChangeHandler_=function(a){a=a.target;var b=this.JSC$17223_readyStateChangeThrottle_;b&&_.Mz(a)==3?(this.JSC$17221_channelDebug_.debug("Throttling readystatechange."),b.fire()):this.JSC$17223_xmlHttpHandler_(a)};
Q_.prototype.JSC$17223_xmlHttpHandler_=function(a){try{if(a==this.JSC$17223_xmlHttp_)a:{var b=_.Mz(this.JSC$17223_xmlHttp_),c=this.JSC$17223_xmlHttp_.JSC$7648_lastErrorCode_,d=this.JSC$17223_xmlHttp_.getStatus();if(_.ux&&!aAc("420+")){if(b<4)break a}else if(b<3||b==3&&!this.JSC$17223_xmlHttp_.getResponseText())break a;this.JSC$17223_cancelled_||b!=4||c==7||(c==8||d<=0?this.JSC$17221_channel_.notifyServerReachabilityEvent(3):this.JSC$17221_channel_.notifyServerReachabilityEvent(2));jIc(this);var e=
this.JSC$17223_xmlHttp_.getStatus();this.JSC$17223_lastStatusCode_=e;var g=this.JSC$17223_xmlHttp_.getResponseText();g||this.JSC$17221_channelDebug_.debug("No response text for uri "+this.JSC$17223_requestUri_+" status "+e);this.JSC$17223_successful_=e==200;this.JSC$17221_channelDebug_.info("XMLHTTP RESP ("+this.JSC$17221_rid_+") [ attempt "+this.JSC$17221_retryId_+"]: "+this.JSC$17223_verb_+"\n"+this.JSC$17223_requestUri_+"\n"+b+" "+e);if(this.JSC$17223_successful_){b==4&&R_(this);if(this.decodeChunks_){for(a=
!0;!this.JSC$17223_cancelled_&&this.JSC$17223_xmlHttpChunkStart_<g.length;){var k=kIc(this,g);if(k==eIc){b==4&&(this.JSC$17223_lastError_=4,P_(15),a=!1);S_(this.JSC$17221_channelDebug_,this.JSC$17221_rid_,null,"[Incomplete Response]");break}else if(k==dIc){this.JSC$17223_lastError_=4;P_(16);S_(this.JSC$17221_channelDebug_,this.JSC$17221_rid_,g,"[Invalid Chunk]");a=!1;break}else S_(this.JSC$17221_channelDebug_,this.JSC$17221_rid_,k,null),lIc(this,k)}b==4&&g.length==0&&(this.JSC$17223_lastError_=1,
P_(17),a=!1);this.JSC$17223_successful_=this.JSC$17223_successful_&&a;a||(S_(this.JSC$17221_channelDebug_,this.JSC$17221_rid_,g,"[Invalid Chunked Response]"),R_(this),mIc(this))}else S_(this.JSC$17221_channelDebug_,this.JSC$17221_rid_,g,null),lIc(this,g);this.JSC$17223_successful_&&!this.JSC$17223_cancelled_&&(b==4?this.JSC$17221_channel_.JSC$17230_onRequestComplete(this):(this.JSC$17223_successful_=!1,iIc(this)))}else e==400&&g.indexOf("Unknown SID")>0?(this.JSC$17223_lastError_=3,P_(13),this.JSC$17221_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$17221_rid_+")")):(this.JSC$17223_lastError_=0,P_(14),this.JSC$17221_channelDebug_.warning("XMLHTTP Bad status "+e+" ("+this.JSC$17221_rid_+")")),R_(this),mIc(this)}else this.JSC$17221_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(m){this.JSC$17221_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var kIc=function(a,b){var c=a.JSC$17223_xmlHttpChunkStart_,d=b.indexOf("\n",c);if(d==-1)return eIc;c=Number(b.substring(c,d));if(isNaN(c))return dIc;d+=1;if(d+c>b.length)return eIc;b=b.slice(d,d+c);a.JSC$17223_xmlHttpChunkStart_=d+c;return b};
Q_.prototype.cancel=function(){this.JSC$17223_cancelled_=!0;R_(this)};
var iIc=function(a){a.JSC$17223_watchDogTimeoutTime_=Date.now()+a.timeout_;nIc(a,a.timeout_)},nIc=function(a,b){if(a.JSC$17223_watchDogTimerId_!=null)throw Error("sk");
a.JSC$17223_watchDogTimerId_=LY((0,_.ug)(a.JSC$17223_onWatchDogTimeout_,a),b)},jIc=function(a){a.JSC$17223_watchDogTimerId_&&(_.ja.clearTimeout(a.JSC$17223_watchDogTimerId_),a.JSC$17223_watchDogTimerId_=null)};
Q_.prototype.JSC$17223_onWatchDogTimeout_=function(){this.JSC$17223_watchDogTimerId_=null;var a=Date.now();a-this.JSC$17223_watchDogTimeoutTime_>=0?(this.JSC$17221_channelDebug_.info("TIMEOUT: "+this.JSC$17223_requestUri_),this.JSC$17223_type_!=2&&this.JSC$17221_channel_.notifyServerReachabilityEvent(3),R_(this),this.JSC$17223_lastError_=2,P_(18),mIc(this)):(this.JSC$17221_channelDebug_.warning("WatchDog timer called too early"),nIc(this,this.JSC$17223_watchDogTimeoutTime_-a))};
var mIc=function(a){a.JSC$17221_channel_.JSC$17230_isClosed()||a.JSC$17223_cancelled_||a.JSC$17221_channel_.JSC$17230_onRequestComplete(a)},R_=function(a){jIc(a);
_.Tf(a.JSC$17223_readyStateChangeThrottle_);a.JSC$17223_readyStateChangeThrottle_=null;a.pollingTimer_.stop();a.JSC$17221_eventHandler_.removeAll();if(a.JSC$17223_xmlHttp_){var b=a.JSC$17223_xmlHttp_;a.JSC$17223_xmlHttp_=null;b.abort();b.dispose()}a.trident_&&(a.trident_=null)};
Q_.prototype.getLastError=function(){return this.JSC$17223_lastError_};
var lIc=function(a,b){try{a.JSC$17221_channel_.JSC$17230_onRequestData(a,b),a.JSC$17221_channel_.notifyServerReachabilityEvent(4)}catch(c){}};var S_=function(a,b,c,d){var e=a.info;a:if(c&&c!="y2f%"){try{var g=JSON.parse(c);if(g)for(var k=0;k<g.length;k++)if(Array.isArray(g[k])){var m=g[k];if(!(m.length<2)){var n=m[1];if(Array.isArray(n)&&!(n.length<1)){var r=n[0];if(r!="noop"&&r!="stop")for(var t=1;t<n.length;t++)n[t]=""}}}var u=(0,_.Kz)(g);break a}catch(w){a.debug("Exception parsing expected JS array - probably was not JS");u=c;break a}u=void 0}else u=c;e.call(a,"XMLHTTP TEXT ("+b+"): "+u+(d?" "+d:""))};
MY.prototype.debug=function(a){this.info(a)};
MY.prototype.info=function(){};
MY.prototype.warning=function(){};var oIc=function(a,b){this.JSC$17228_channel_=a;this.JSC$17228_channelDebug_=b;this.JSC$17228_parser_=new z_};
_.f=oIc.prototype;_.f.JSC$17230_extraHeaders_=null;_.f.JSC$17230_request_=null;_.f.receivedIntermediateResult_=!1;_.f.JSC$17230_path_=null;_.f.state_=null;_.f.JSC$17230_lastStatusCode_=-1;_.f.JSC$17230_hostPrefix_=null;_.f.blockedPrefix_=null;
_.f.connect=function(a){this.JSC$17230_path_=a;a=pIc(this.JSC$17228_channel_,this.JSC$17230_path_);P_(3);Date.now();var b=this.JSC$17228_channel_.firstTestResults_;b!=null?(this.JSC$17230_hostPrefix_=b[0],(this.blockedPrefix_=b[1])?(this.state_=1,qIc(this)):(this.state_=2,rIc(this))):(qZ(a,"MODE","init"),this.JSC$17230_request_=new Q_(this,this.JSC$17228_channelDebug_),this.JSC$17230_request_.JSC$17223_extraHeaders_=this.JSC$17230_extraHeaders_,hIc(this.JSC$17230_request_,a,!1,null,!0),this.state_=
0)};
var qIc=function(a){var b=sIc(a.JSC$17228_channel_,a.blockedPrefix_,"/mail/images/cleardot.gif");_.pA(b);Avc(b.toString(),5E3,(0,_.ug)(a.checkBlockedCallback_,a),3,2E3);a.notifyServerReachabilityEvent(1)};
oIc.prototype.checkBlockedCallback_=function(a){if(a)this.state_=2,rIc(this);else{P_(4);var b=this.JSC$17228_channel_;b.JSC$17231_channelDebug_.debug("Test Connection Blocked");b.JSC$17235_lastStatusCode_=b.connectionTest_.JSC$17230_lastStatusCode_;T_(b,9)}a&&this.notifyServerReachabilityEvent(2)};
var rIc=function(a){a.JSC$17228_channelDebug_.debug("TestConnection: starting stage 2");var b=a.JSC$17228_channel_.secondTestResults_;b!=null?(a.JSC$17228_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+b?"Buffered":"Unbuffered"),P_(5),b?(P_(11),U_(a.JSC$17228_channel_,a,!1)):(P_(12),U_(a.JSC$17228_channel_,a,!0))):(a.JSC$17230_request_=new Q_(a,a.JSC$17228_channelDebug_),a.JSC$17230_request_.JSC$17223_extraHeaders_=a.JSC$17230_extraHeaders_,b=tIc(a.JSC$17228_channel_,
a.JSC$17230_hostPrefix_,a.JSC$17230_path_),P_(5),qZ(b,"TYPE","xmlhttp"),hIc(a.JSC$17230_request_,b,!1,a.JSC$17230_hostPrefix_,!1))};
_.f=oIc.prototype;_.f.JSC$17230_createXhrIo=function(a){return this.JSC$17228_channel_.JSC$17230_createXhrIo(a)};
_.f.abort=function(){this.JSC$17230_request_&&(this.JSC$17230_request_.cancel(),this.JSC$17230_request_=null);this.JSC$17230_lastStatusCode_=-1};
_.f.JSC$17230_isClosed=function(){return!1};
_.f.JSC$17230_onRequestData=function(a,b){this.JSC$17230_lastStatusCode_=a.JSC$17223_lastStatusCode_;if(this.state_==0)if(this.JSC$17228_channelDebug_.debug("TestConnection: Got data for stage 1"),b){try{var c=this.JSC$17228_parser_.parse(b)}catch(d){uIc(this.JSC$17228_channel_,this);return}this.JSC$17230_hostPrefix_=c[0];this.blockedPrefix_=c[1]}else this.JSC$17228_channelDebug_.debug("TestConnection: Null responseText"),uIc(this.JSC$17228_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(P_(7),Date.now()):b=="11111"?(P_(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$17230_lastStatusCode_=200,this.JSC$17230_request_.cancel(),this.JSC$17228_channelDebug_.debug("Test connection succeeded; using streaming connection"),P_(12),U_(this.JSC$17228_channel_,this,!0)):(P_(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.f.JSC$17230_onRequestComplete=function(){this.JSC$17230_lastStatusCode_=this.JSC$17230_request_.JSC$17223_lastStatusCode_;this.JSC$17230_request_.JSC$17223_successful_?this.state_==0?(this.JSC$17228_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,qIc(this)):(this.state_=2,rIc(this))):this.state_==2&&(this.JSC$17228_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$17228_channelDebug_.debug("Test connection succeeded; using streaming connection"),
P_(12),U_(this.JSC$17228_channel_,this,!0)):(this.JSC$17228_channelDebug_.debug("Test connection failed; not using streaming"),P_(11),U_(this.JSC$17228_channel_,this,!1))):(this.JSC$17228_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?P_(9):this.state_==2&&P_(10),uIc(this.JSC$17228_channel_,this,this.JSC$17230_request_.getLastError()))};
_.f.JSC$17230_shouldUseSecondaryDomains=function(){return this.JSC$17228_channel_.JSC$17230_shouldUseSecondaryDomains()};
_.f.isActive=function(){return this.JSC$17228_channel_.isActive()};
_.f.notifyServerReachabilityEvent=function(a){this.JSC$17228_channel_.notifyServerReachabilityEvent(a)};var V_=function(a,b,c){this.state_=1;this.JSC$17231_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$17231_channelDebug_=new MY;this.JSC$17231_parser_=new z_;this.firstTestResults_=a||null;this.secondTestResults_=b!=null?b:null;this.asyncTest_=c||!1},vIc=function(a,b){this.JSC$17233_mapId=a;
this.map=b;this.context=null};
_.f=V_.prototype;_.f.JSC$17235_extraHeaders_=null;_.f.JSC$17235_extraParams_=null;_.f.forwardChannelRequest_=null;_.f.JSC$17235_backChannelRequest_=null;_.f.JSC$17235_path_=null;_.f.JSC$17235_forwardChannelUri_=null;_.f.JSC$17235_backChannelUri_=null;_.f.JSC$17235_hostPrefix_=null;_.f.JSC$17235_nextRid_=0;_.f.JSC$17235_nextMapId_=0;_.f.handler_=null;_.f.JSC$17235_forwardChannelTimerId_=null;_.f.JSC$17235_backChannelTimerId_=null;_.f.JSC$17235_deadBackChannelTimerId_=null;_.f.connectionTest_=null;
_.f.useChunked_=null;_.f.JSC$17235_lastArrayId_=-1;_.f.JSC$17235_lastPostResponseArrayId_=-1;_.f.JSC$17235_lastStatusCode_=-1;_.f.JSC$17235_forwardChannelRetryCount_=0;_.f.JSC$17235_backChannelRetryCount_=0;_.f.JSC$17235_channelVersion_=8;var wIc=function(a,b,c,d){_.yz.call(this,"timingevent",a);this.size=b;this.rtt=c;this.retries=d};
_.nx(wIc,_.yz);var xIc=function(a){_.yz.call(this,"serverreachability",a)};
_.nx(xIc,_.yz);V_.prototype.connect=function(a,b,c,d,e){this.JSC$17231_channelDebug_.debug("connect()");P_(0);this.JSC$17235_path_=b;this.JSC$17235_extraParams_=c||{};d&&e!==void 0&&(this.JSC$17235_extraParams_.OSID=d,this.JSC$17235_extraParams_.OAID=e);this.asyncTest_?(LY((0,_.ug)(this.connectTest_,this,a),100),yIc(this)):this.connectTest_(a)};
V_.prototype.disconnect=function(){this.JSC$17231_channelDebug_.debug("disconnect()");zIc(this);if(this.state_==3){var a=this.JSC$17235_nextRid_++,b=this.JSC$17235_forwardChannelUri_.clone();_.Lg(b,"SID",this.sid_);_.Lg(b,"RID",a);_.Lg(b,"TYPE","terminate");W_(this,b);a=new Q_(this,this.JSC$17231_channelDebug_,this.sid_,a);a.JSC$17223_type_=2;a.JSC$17223_baseUri_=_.pA(b.clone());(new Image).src=a.JSC$17223_baseUri_.toString();a.JSC$17223_requestStartTime_=Date.now();iIc(a)}AIc(this)};
V_.prototype.connectTest_=function(a){this.JSC$17231_channelDebug_.debug("connectTest_()");this.connectionTest_=new oIc(this,this.JSC$17231_channelDebug_);this.connectionTest_.JSC$17230_extraHeaders_=this.JSC$17235_extraHeaders_;this.connectionTest_.JSC$17228_parser_=this.JSC$17231_parser_;this.connectionTest_.connect(a)};
var yIc=function(a){a.JSC$17231_channelDebug_.debug("connectChannel_()");a.JSC$17235_ensureInState_(1,0);a.JSC$17235_forwardChannelUri_=pIc(a,a.JSC$17235_path_);BIc(a)},zIc=function(a){a.connectionTest_&&(a.connectionTest_.abort(),a.connectionTest_=null);
a.JSC$17235_backChannelRequest_&&(a.JSC$17235_backChannelRequest_.cancel(),a.JSC$17235_backChannelRequest_=null);a.JSC$17235_backChannelTimerId_&&(_.ja.clearTimeout(a.JSC$17235_backChannelTimerId_),a.JSC$17235_backChannelTimerId_=null);CIc(a);a.forwardChannelRequest_&&(a.forwardChannelRequest_.cancel(),a.forwardChannelRequest_=null);a.JSC$17235_forwardChannelTimerId_&&(_.ja.clearTimeout(a.JSC$17235_forwardChannelTimerId_),a.JSC$17235_forwardChannelTimerId_=null)},DIc=function(a,b){if(a.state_==0)throw Error("vk");
a.JSC$17231_outgoingMaps_.length==1E3&&a.JSC$17231_parser_.stringify(b);a.JSC$17231_outgoingMaps_.push(new vIc(a.JSC$17235_nextMapId_++,b));a.state_!=2&&a.state_!=3||BIc(a)};
V_.prototype.JSC$17230_isClosed=function(){return this.state_==0};
V_.prototype.getState=function(){return this.state_};
var BIc=function(a){a.forwardChannelRequest_||a.JSC$17235_forwardChannelTimerId_||(a.JSC$17235_forwardChannelTimerId_=LY((0,_.ug)(a.JSC$17235_onStartForwardChannelTimer_,a),0),a.JSC$17235_forwardChannelRetryCount_=0)};
V_.prototype.JSC$17235_onStartForwardChannelTimer_=function(a){this.JSC$17235_forwardChannelTimerId_=null;EIc(this,a)};
var EIc=function(a,b){a.JSC$17231_channelDebug_.debug("startForwardChannel_");if(a.state_==1){if(!b){a.JSC$17231_channelDebug_.debug("open_()");a.JSC$17235_nextRid_=Math.floor(Math.random()*1E5);b=a.JSC$17235_nextRid_++;var c=new Q_(a,a.JSC$17231_channelDebug_,"",b);c.JSC$17223_extraHeaders_=a.JSC$17235_extraHeaders_;var d=FIc(a),e=a.JSC$17235_forwardChannelUri_.clone();_.Lg(e,"RID",b);_.Lg(e,"CVER","1");W_(a,e);gIc(c,e,d);a.forwardChannelRequest_=c;a.state_=2}}else a.state_==3&&(b?GIc(a,b):a.JSC$17231_outgoingMaps_.length==
0?a.JSC$17231_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):a.forwardChannelRequest_||(GIc(a),a.JSC$17231_channelDebug_.debug("startForwardChannel_ finished, sent request")))},GIc=function(a,b){if(b)if(a.JSC$17235_channelVersion_>6){a.JSC$17231_outgoingMaps_=a.pendingMaps_.concat(a.JSC$17231_outgoingMaps_);
a.pendingMaps_.length=0;var c=a.JSC$17235_nextRid_-1;b=FIc(a)}else c=b.JSC$17221_rid_,b=b.JSC$17223_postData_;else c=a.JSC$17235_nextRid_++,b=FIc(a);var d=a.JSC$17235_forwardChannelUri_.clone();_.Lg(d,"SID",a.sid_);_.Lg(d,"RID",c);_.Lg(d,"AID",a.JSC$17235_lastArrayId_);W_(a,d);c=new Q_(a,a.JSC$17231_channelDebug_,a.sid_,c,a.JSC$17235_forwardChannelRetryCount_+1);c.JSC$17223_extraHeaders_=a.JSC$17235_extraHeaders_;c.setTimeout(1E4+Math.round(1E4*Math.random()));a.forwardChannelRequest_=c;gIc(c,d,b)},
W_=function(a,b){a.handler_&&(a=a.handler_.JSC$17241_getAdditionalParams())&&_.yf.forEach(a,function(c,d){_.Lg(b,d,c)})},FIc=function(a){var b=Math.min(a.JSC$17231_outgoingMaps_.length,1E3),c=["count="+b];
if(a.JSC$17235_channelVersion_>6&&b>0){var d=a.JSC$17231_outgoingMaps_[0].JSC$17233_mapId;c.push("ofs="+d)}else d=0;for(var e={},g=0;g<b;e={mapId$jscomp$3:void 0},g++){e.mapId$jscomp$3=a.JSC$17231_outgoingMaps_[g].JSC$17233_mapId;var k=a.JSC$17231_outgoingMaps_[g].map;e.mapId$jscomp$3=a.JSC$17235_channelVersion_<=6?g:e.mapId$jscomp$3-d;try{_.yf.forEach(k,function(m){return function(n,r){c.push("req"+m.mapId$jscomp$3+"_"+r+"="+encodeURIComponent(n))}}(e))}catch(m){c.push("req"+e.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}a.pendingMaps_=a.pendingMaps_.concat(a.JSC$17231_outgoingMaps_.splice(0,b));
return c.join("&")},HIc=function(a){a.JSC$17235_backChannelRequest_||a.JSC$17235_backChannelTimerId_||(a.JSC$17235_backChannelAttemptId_=1,a.JSC$17235_backChannelTimerId_=LY((0,_.ug)(a.JSC$17235_onStartBackChannelTimer_,a),0),a.JSC$17235_backChannelRetryCount_=0)},JIc=function(a){if(a.JSC$17235_backChannelRequest_||a.JSC$17235_backChannelTimerId_||a.JSC$17235_backChannelRetryCount_>=3)return!1;
a.JSC$17231_channelDebug_.debug("Going to retry GET");a.JSC$17235_backChannelAttemptId_++;a.JSC$17235_backChannelTimerId_=LY((0,_.ug)(a.JSC$17235_onStartBackChannelTimer_,a),IIc(a,a.JSC$17235_backChannelRetryCount_));a.JSC$17235_backChannelRetryCount_++;return!0};
V_.prototype.JSC$17235_onStartBackChannelTimer_=function(){this.JSC$17235_backChannelTimerId_=null;this.JSC$17231_channelDebug_.debug("Creating new HttpRequest");this.JSC$17235_backChannelRequest_=new Q_(this,this.JSC$17231_channelDebug_,this.sid_,"rpc",this.JSC$17235_backChannelAttemptId_);this.JSC$17235_backChannelRequest_.JSC$17223_extraHeaders_=this.JSC$17235_extraHeaders_;this.JSC$17235_backChannelRequest_.JSC$17223_readyStateChangeThrottleMs_=0;var a=this.JSC$17235_backChannelUri_.clone();_.Lg(a,
"RID","rpc");_.Lg(a,"SID",this.sid_);_.Lg(a,"CI",this.useChunked_?"0":"1");_.Lg(a,"AID",this.JSC$17235_lastArrayId_);W_(this,a);_.Lg(a,"TYPE","xmlhttp");hIc(this.JSC$17235_backChannelRequest_,a,!0,this.JSC$17235_hostPrefix_,!1);this.JSC$17231_channelDebug_.debug("New Request created")};
var U_=function(a,b,c){a.JSC$17231_channelDebug_.debug("Test Connection Finished");a.useChunked_=a.secondTestResults_==null?c:!a.secondTestResults_;a.JSC$17235_lastStatusCode_=b.JSC$17230_lastStatusCode_;a.asyncTest_||yIc(a)},uIc=function(a,b){a.JSC$17231_channelDebug_.debug("Test Connection Failed");
a.JSC$17235_lastStatusCode_=b.JSC$17230_lastStatusCode_;T_(a,2)};
V_.prototype.JSC$17230_onRequestData=function(a,b){if(this.state_!=0&&(this.JSC$17235_backChannelRequest_==a||this.forwardChannelRequest_==a))if(this.JSC$17235_lastStatusCode_=a.JSC$17223_lastStatusCode_,this.forwardChannelRequest_==a&&this.state_==3)if(this.JSC$17235_channelVersion_>7){try{var c=this.JSC$17231_parser_.parse(b)}catch(d){c=null}if(Array.isArray(c)&&c.length==3)if(b=c,b[0]==0)a:if(this.JSC$17231_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$17235_backChannelTimerId_)this.JSC$17231_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$17235_backChannelRequest_)if(this.JSC$17235_backChannelRequest_.JSC$17223_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$17223_requestStartTime_)CIc(this),this.JSC$17235_backChannelRequest_.cancel(),this.JSC$17235_backChannelRequest_=null;else break a;else this.JSC$17231_channelDebug_.warning("We do not have a BackChannel established");JIc(this);P_(19)}else this.JSC$17235_lastPostResponseArrayId_=b[1],a=this.JSC$17235_lastPostResponseArrayId_-this.JSC$17235_lastArrayId_,0<
a&&(b=b[2],this.JSC$17231_channelDebug_.debug(b+" bytes (in "+a+" arrays) are outstanding on the BackChannel"),b<37500&&this.useChunked_&&this.JSC$17235_backChannelRetryCount_==0&&!this.JSC$17235_deadBackChannelTimerId_&&(this.JSC$17235_deadBackChannelTimerId_=LY((0,_.ug)(this.JSC$17235_onBackChannelDead_,this),6E3)));else this.JSC$17231_channelDebug_.debug("Bad POST response data returned"),T_(this,11)}else b!="y2f%"&&(this.JSC$17231_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
T_(this,11));else this.JSC$17235_backChannelRequest_==a&&CIc(this),_.qa(b)||(a=this.JSC$17231_parser_.parse(b),this.onInput_(a))};
V_.prototype.JSC$17235_onBackChannelDead_=function(){this.JSC$17235_deadBackChannelTimerId_!=null&&(this.JSC$17235_deadBackChannelTimerId_=null,this.JSC$17235_backChannelRequest_.cancel(),this.JSC$17235_backChannelRequest_=null,JIc(this),P_(20))};
var CIc=function(a){a.JSC$17235_deadBackChannelTimerId_!=null&&(_.ja.clearTimeout(a.JSC$17235_deadBackChannelTimerId_),a.JSC$17235_deadBackChannelTimerId_=null)};
V_.prototype.JSC$17230_onRequestComplete=function(a){this.JSC$17231_channelDebug_.debug("Request complete");if(this.JSC$17235_backChannelRequest_==a){CIc(this);this.JSC$17235_backChannelRequest_=null;var b=2}else if(this.forwardChannelRequest_==a)this.forwardChannelRequest_=null,b=1;else return;this.JSC$17235_lastStatusCode_=a.JSC$17223_lastStatusCode_;if(this.state_!=0)if(a.JSC$17223_successful_)if(b==1){b=a.JSC$17223_postData_?a.JSC$17223_postData_.length:0;a=Date.now()-a.JSC$17223_requestStartTime_;
var c=aIc;c.dispatchEvent(new wIc(c,b,a,this.JSC$17235_forwardChannelRetryCount_));BIc(this);this.handler_&&this.handler_.JSC$17241_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else HIc(this);else{c=a.getLastError();if(c==3||c==7||c==0&&this.JSC$17235_lastStatusCode_>0)this.JSC$17231_channelDebug_.debug("Not retrying due to error type");else{this.JSC$17231_channelDebug_.debug("Maybe retrying, last error: "+cIc(c,this.JSC$17235_lastStatusCode_));var d;if(d=b==1)this.forwardChannelRequest_||
this.JSC$17235_forwardChannelTimerId_||this.state_==1||this.JSC$17235_forwardChannelRetryCount_>=2?d=!1:(this.JSC$17231_channelDebug_.debug("Going to retry POST"),this.JSC$17235_forwardChannelTimerId_=LY((0,_.ug)(this.JSC$17235_onStartForwardChannelTimer_,this,a),IIc(this,this.JSC$17235_forwardChannelRetryCount_)),this.JSC$17235_forwardChannelRetryCount_++,d=!0);if(d||b==2&&JIc(this))return;this.JSC$17231_channelDebug_.debug("Exceeded max number of retries")}this.JSC$17231_channelDebug_.debug("Error: HTTP request failed");
switch(c){case 1:T_(this,5);break;case 4:T_(this,10);break;case 3:T_(this,6);break;case 7:T_(this,12);break;default:T_(this,2)}}};
var IIc=function(a,b){var c=5E3+Math.floor(Math.random()*1E4);a.isActive()||(a.JSC$17231_channelDebug_.debug("Inactive channel"),c*=2);return c*b};
V_.prototype.onInput_=function(a){for(var b=0;b<a.length;b++){var c=a[b];this.JSC$17235_lastArrayId_=c[0];c=c[1];this.state_==2?c[0]=="c"?(this.sid_=c[1],this.JSC$17235_hostPrefix_=c[2],c=c[3],c!=null?this.JSC$17235_channelVersion_=c:this.JSC$17235_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$17241_channelOpened(),this.JSC$17235_backChannelUri_=tIc(this,this.JSC$17235_hostPrefix_,this.JSC$17235_path_),HIc(this)):c[0]=="stop"&&T_(this,7):this.state_==3&&(c[0]=="stop"?T_(this,7):
c[0]!="noop"&&this.handler_&&this.handler_.JSC$17241_channelHandleArray(c),this.JSC$17235_backChannelRetryCount_=0)}};
V_.prototype.JSC$17235_ensureInState_=function(a){if(!_.Pa(arguments,this.state_))throw Error("wk`"+this.state_);};
var T_=function(a,b){a.JSC$17231_channelDebug_.info("Error code "+b);if(b==2||b==9){var c=null;a.handler_&&(c=null);var d=(0,_.ug)(a.testGoogleComCallback_,a);c||(c=new _.Wn("//www.google.com/images/cleardot.gif"),_.pA(c));zvc(c.toString(),1E4,d)}else P_(2);a.onError_(b)};
V_.prototype.testGoogleComCallback_=function(a){a?(this.JSC$17231_channelDebug_.info("Successfully pinged google.com"),P_(2)):(this.JSC$17231_channelDebug_.info("Failed to ping google.com"),P_(1),this.onError_(8))};
V_.prototype.onError_=function(a){this.JSC$17231_channelDebug_.debug("HttpChannel: error - "+a);this.state_=0;this.handler_&&this.handler_.JSC$17241_channelError(a);AIc(this);zIc(this)};
var AIc=function(a){a.state_=0;a.JSC$17235_lastStatusCode_=-1;if(a.handler_)if(a.pendingMaps_.length==0&&a.JSC$17231_outgoingMaps_.length==0)a.handler_.JSC$17241_channelClosed();else{a.JSC$17231_channelDebug_.debug("Number of undelivered maps, pending: "+a.pendingMaps_.length+", outgoing: "+a.JSC$17231_outgoingMaps_.length);var b=_.Ra(a.pendingMaps_),c=_.Ra(a.JSC$17231_outgoingMaps_);a.pendingMaps_.length=0;a.JSC$17231_outgoingMaps_.length=0;a.handler_.JSC$17241_channelClosed(b,c)}},pIc=function(a,
b){b=sIc(a,null,b);
a.JSC$17231_channelDebug_.debug("GetForwardChannelUri: "+b);return b},tIc=function(a,b,c){b=sIc(a,a.JSC$17230_shouldUseSecondaryDomains()?b:null,c);
a.JSC$17231_channelDebug_.debug("GetBackChannelUri: "+b);return b},sIc=function(a,b,c){var d=_.Jg(c);
if(d.JSC$7879_domain_!="")b&&_.hA(d,b+"."+d.JSC$7879_domain_),_.iA(d,d.JSC$7879_port_);else{var e=window.location;d=YBc(e.protocol,b?b+"."+e.hostname:e.hostname,+e.port,c)}a.JSC$17235_extraParams_&&_.yf.forEach(a.JSC$17235_extraParams_,function(g,k){_.Lg(d,k,g)});
_.Lg(d,"VER",a.JSC$17235_channelVersion_);W_(a,d);return d};
V_.prototype.JSC$17230_createXhrIo=function(a){if(a)throw Error("tk");a=new _.Lz;a.JSC$7648_withCredentials_=!1;return a};
V_.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
V_.prototype.notifyServerReachabilityEvent=function(a){var b=aIc;b.dispatchEvent(new xIc(b,a))};
V_.prototype.JSC$17230_shouldUseSecondaryDomains=function(){return!1};
new dCc;var KIc=function(){};
_.f=KIc.prototype;_.f.JSC$17241_channelOpened=function(){};
_.f.JSC$17241_channelHandleArray=function(){};
_.f.JSC$17241_channelSuccess=function(){};
_.f.JSC$17241_channelError=function(){};
_.f.JSC$17241_channelClosed=function(){};
_.f.JSC$17241_getAdditionalParams=function(){return{}};
_.f.isActive=function(){return!0};var LIc=function(a){a.front_.length===0&&(a.front_=a.back_,a.front_.reverse(),a.back_=[])};
_.f=Cvc.prototype;_.f.enqueue=function(a){this.back_.push(a)};
_.f.peek=function(){LIc(this);return _.Ja(this.front_)};
_.f.getCount=function(){return this.front_.length+this.back_.length};
_.f.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.f.clear=function(){this.front_=[];this.back_=[]};
_.f.contains=function(a){return _.Pa(this.front_,a)||_.Pa(this.back_,a)};
_.f.remove=function(a){var b=this.front_;var c=Array.prototype.lastIndexOf.call(b,a,b.length-1);c>=0?(_.waa(b,c),b=!0):b=!1;return b||_.Qa(this.back_,a)};
_.f.getValues=function(){for(var a=[],b=this.front_.length-1;b>=0;--b)a.push(this.front_[b]);b=this.back_.length;for(var c=0;c<b;++c)a.push(this.back_[c]);return a};var X_=function(a){this.JSC$17245_map_=new _.oD;this.size=0;a&&this.addAll(a)},MIc=function(a){var b=typeof a;
return b=="object"&&a||b=="function"?"o"+_.ab(a):b.charAt(0)+a};
_.f=X_.prototype;_.f.getCount=function(){return this.JSC$17245_map_.size};
_.f.add=function(a){this.JSC$17245_map_.set(MIc(a),a);this.size=this.JSC$17245_map_.size};
_.f.addAll=function(a){a=_.fA(a);for(var b=a.length,c=0;c<b;c++)this.add(a[c]);this.size=this.JSC$17245_map_.size};
_.f.removeAll=function(a){a=_.fA(a);for(var b=a.length,c=0;c<b;c++)this.remove(a[c]);this.size=this.JSC$17245_map_.size};
_.f.delete=function(a){a=this.JSC$17245_map_.remove(MIc(a));this.size=this.JSC$17245_map_.size;return a};
_.f.remove=function(a){return this.delete(a)};
_.f.clear=function(){this.JSC$17245_map_.clear();this.size=0};
_.f.isEmpty=function(){return this.JSC$17245_map_.size===0};
_.f.has=function(a){return this.JSC$17245_map_.containsKey(MIc(a))};
_.f.contains=function(a){return this.JSC$17245_map_.containsKey(MIc(a))};
_.f.getValues=function(){return this.JSC$17245_map_.getValues()};
_.f.values=function(){return this.JSC$17245_map_.values()};
_.f.clone=function(){return new X_(this)};
_.f.equals=function(a){return this.getCount()==WBc(a)&&NIc(this,a)};
var NIc=function(a,b){var c=WBc(b);if(a.getCount()>c)return!1;!(b instanceof X_)&&c>5&&(b=new X_(b));return XBc(a,function(d){var e=b;return e.contains&&typeof e.contains=="function"?e.contains(d):e.containsValue&&typeof e.containsValue=="function"?e.containsValue(d):_.Sa(e)||typeof e==="string"?_.Pa(e,d):_.yf.containsValue(e,d)})};
X_.prototype.__iterator__=function(){return this.JSC$17245_map_.__iterator__(!1)};
X_.prototype[Symbol.iterator]=function(){return this.values()};var OIc={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(a){return(this._clampValue(a)-this.min)/(this.max-this.min)},
_clampValue:function(a){return Math.min(this.max,Math.max(this.min,this._calcStep(a)))},
_calcStep:function(a){a=parseFloat(a);if(!this.step)return a;a=Math.round((a-this.min)/this.step);return this.step<1?a/(1/this.step)+this.min:a*this.step+this.min},
_validateValue:function(){var a=this._clampValue(this.value);this.value=this.oldValue=isNaN(a)?this.oldValue:a;return this.value!==a},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var PIc;var QIc;_.qr({_template:function(){if(QIc!==void 0)return QIc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;PIc===void 0&&(PIc=document.createElement("template"));var d=PIc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return QIc=a},
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(){_.Tm(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(a){a.keyCode===27&&(a.preventDefault(),this.close())},
_track:function(a){if(!this.persistent&&!this.disableSwipe)switch(a.preventDefault(),a.detail.state){case "start":this._trackStart(a);break;case "track":this._trackMove(a);break;case "end":this._trackEnd(a)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var a=this.$.contentContainer.getBoundingClientRect();this._savedWidth=a.width;this._translateOffset=this.position==="left"?a.left:a.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(a){this._trackDetails&&(this._translateDrawer(a.detail.dx+this._translateOffset),this._trackDetails.push({dx:a.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(a){if(this._trackDetails){var b=a.detail.dx+this._translateOffset,c=this.getWidth();b=this.position==="left"?b>=0||b<=-c:b<=0||b>=c;if(!b){var d=this._trackDetails;this._trackDetails=null;this._flingDrawer(a,d);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}c/=2;a.detail.dx<-c?this.opened=this.position==="right":a.detail.dx>c&&(this.opened=this.position==="left");b?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(a,b){for(var c=Date.now(),d=c-100,e,g=0,k=b.length-1;g<=k;){var m=g+k>>1,n=b[m];n.timeStamp>=d?(e=n,k=m-1):g=m+1}return e?(a.detail.dx-e.dx)/(c-e.timeStamp||1):0},
_flingDrawer:function(a,b){b=this._calculateVelocity(a,b);if(!(Math.abs(b)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;a=a.detail.dx+this._translateOffset;var c=this.getWidth(),d=this.position==="left",e=b>0;e?(b=Math.max(b,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(b=Math.min(b,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");b=this._FLING_INITIAL_SLOPE*(!e&&d?-(a+c):e&&!d?c-a:-a)/b;this._styleTransitionDuration(b);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,b)}},
_styleTransitionDuration:function(a){this.style.transitionDuration=a+"ms";this.$.contentContainer.style.transitionDuration=a+"ms";this.$.scrim.style.transitionDuration=a+"ms"},
_styleTransitionTimingFunction:function(a){this.$.contentContainer.style.transitionTimingFunction=a;this.$.scrim.style.transitionTimingFunction=a},
_translateDrawer:function(a){var b=this.getWidth();this.position==="left"?(a=Math.max(-b,Math.min(a,0)),this.$.scrim.style.opacity=1+a/b):(a=Math.max(0,Math.min(a,b)),this.$.scrim.style.opacity=1-a/b);this.translate3d(a+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var a=this._drawerState;a===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;a!==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=""),a!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var a=_.xn(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"])');a.length>0?(this._firstTabStop=a[0],this._lastTabStop=a[a.length-1]):
this._lastTabStop=this._firstTabStop=null;(a=this.getAttribute("tabindex"))&&parseInt(a,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(a){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||a.keyCode!==9||(a.shiftKey?this._firstTabStop&&_.xn(a).localTarget===this._firstTabStop&&(a.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.xn(a).localTarget===this._lastTabStop&&(a.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(a,b){this.toggleClass("visible",a&&!b,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 RIc;var SIc;_.qr({_template:function(){if(SIc!==void 0)return SIc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;RIc===void 0&&(RIc=document.createElement("template"));var d=RIc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return SIc=a},
is:"tp-yt-paper-progress",behaviors:[OIc],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(a){this.toggleClass("indeterminate",a,this.$.primaryProgress)},
_transformProgress:function(a,b){a.style.transform=a.style.webkitTransform="scaleX("+b/100+")"},
_mainRatioChanged:function(a){this._transformProgress(this.$.primaryProgress,a)},
_progressChanged:function(a,b,c,d,e){a=this._clampValue(a);b=this._clampValue(b);var g=this._calcRatio(a)*100,k=this._calcRatio(b)*100;this._setSecondaryRatio(g);this._transformProgress(this.$.secondaryProgress,g);this._transformProgress(this.$.primaryProgress,k);this.secondaryProgress=a;e?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",b);this.setAttribute("aria-valuemin",c);this.setAttribute("aria-valuemax",d)},
_disabledChanged:function(a){this.setAttribute("aria-disabled",a?"true":"false")},
_hideSecondaryProgress:function(a){return a===0}});var TIc;var UIc;var VIc=function(){};
_.f=VIc.prototype;_.f.registered=function(){};
_.f.addOwnKeyBinding=function(){};
_.f.removeOwnKeyBindings=function(){};
_.f.keyboardEventMatchesKeys=function(){};
_.f._collectKeyBindings=function(){};
_.f._prepKeyBindings=function(){};
_.f._addKeyBinding=function(){};
_.f._resetKeyEventListeners=function(){};
_.f._listenKeyEventListeners=function(){};
_.f._unlistenKeyEventListeners=function(){};
_.f._onKeyBindingEvent=function(){};
_.f._triggerKeyHandler=function(){};
_.f._tapHandler=function(){};
_.f._focusChanged=function(){};
_.f._detectKeyboardFocus=function(){};
_.f._userActivate=function(){};
_.f._upHandler=function(){};
_.f._spaceKeyDownHandler=function(){};
_.f._spaceKeyUpHandler=function(){};
_.f._asyncClick=function(){};
_.f._pressedChanged=function(){};
_.f._ariaActiveAttributeChanged=function(){};
_.f._activeChanged=function(){};
_.f._controlStateChanged=function(){};
_.f._changedButtonState=function(){};
_.f._focusBlurHandler=function(){};
_.f._disabledChanged=function(){};
_.f._changedControlState=function(){};
_.f._buttonStateChanged=function(){};
_.f._downHandler=function(){};
_.f.ensureRipple=function(){};
_.f.getRipple=function(){};
_.f.hasRipple=function(){};
_.f._noinkChanged=function(){};
_.f._calcRatio=function(){};
_.f._clampValue=function(){};
_.f._calcStep=function(){};
_.f._validateValue=function(){};
_.f._update=function(){};
_.f._setImmediateValue=function(){};
_.f._setExpand=function(){};
_.f._setDragging=function(){};
_.f._setTransiting=function(){};
_.f._setMarkers=function(){};
_.f._setPressed=function(){};
_.f._setPointerDown=function(){};
_.f._setReceivedFocusFromKeyboard=function(){};
_.f._setFocused=function(){};
_.f._setRatio=function(){};
VIc=_.qr({_template:function(){if(UIc!==void 0)return UIc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;TIc===void 0&&(TIc=document.createElement("template"));var d=TIc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return UIc=a},
is:"tp-yt-paper-slider",behaviors:[_.BD,_.FD,_.jwb,OIc],properties:{value:{type:Number,value:0},snaps:{type:Boolean,value:!1,notify:!0},pin:{type:Boolean,value:!1,notify:!0},secondaryProgress:{type:Number,value:0,notify:!0,observer:"_secondaryProgressChanged"},editable:{type:Boolean,value:!1},immediateValue:{type:Number,value:0,readOnly:!0,notify:!0},maxMarkers:{type:Number,value:0,notify:!0},expand:{type:Boolean,value:!1,readOnly:!0},ignoreBarTouch:{type:Boolean,value:!1},dragging:{type:Boolean,
value:!1,readOnly:!0,notify:!0},transiting:{type:Boolean,value:!1,readOnly:!0},markers:{type:Array,readOnly:!0,value:function(){return[]}}},
observers:["_updateKnob(value, min, max, snaps, step)","_valueChanged(value)","_immediateValueChanged(immediateValue)","_updateMarkers(maxMarkers, min, max, snaps)"],hostAttributes:{role:"slider",tabindex:0},keyBindings:{left:"_leftKey",right:"_rightKey","down pagedown home":"_decrementKey","up pageup end":"_incrementKey"},ready:function(){this.ignoreBarTouch&&_.Em(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(a,b,c){this.setAttribute("aria-valuemin",b);this.setAttribute("aria-valuemax",c);this.setAttribute("aria-valuenow",a);this._positionKnob(this._calcRatio(a)*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(a){this._setImmediateValue(this._calcStep(this._calcKnobPosition(a)));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(a){return(this.max-this.min)*a/100+this.min},
_onTrack:function(a){a.stopPropagation();switch(a.detail.state){case "start":this._trackStart(a);break;case "track":this._trackX(a);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(a){this.dragging||this._trackStart(a);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,a.detail.dx*(this._isRTL?-1:1)));a=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(a);a=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(a+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var a=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;a.transform=a.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(a){this._expandKnob();a.preventDefault();this.focus()},
_bartrack:function(a){this._allowBarEvent(a)&&this._onTrack(a)},
_barclick:function(a){this._w=this.$.sliderBar.offsetWidth;var b=this.$.sliderBar.getBoundingClientRect();b=(a.detail.x-b.left)/this._w*100;this._isRTL&&(b=100-b);var c=this.ratio;this._setTransiting(!0);this._positionKnob(b);c===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
a.preventDefault();this.focus()},
_bardown:function(a){this._allowBarEvent(a)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(a))},
_knobTransitionEnd:function(a){a.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(a,b,c,d){d||this._setMarkers([]);b=Math.round((c-b)/this.step);b>a&&(b=a);if(b<0||!isFinite(b))b=0;this._setMarkers(Array(b))},
_mergeClasses:function(a){return Object.keys(a).filter(function(b){return a[b]}).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(a){return!this.ignoreBarTouch||a.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(a){this._isRTL?this._incrementKey(a):this._decrementKey(a)},
_rightKey:function(a){this._isRTL?this._decrementKey(a):this._incrementKey(a)},
_incrementKey:function(a){this.disabled||(a.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),a.preventDefault())},
_decrementKey:function(a){this.disabled||(a.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),a.preventDefault())},
_changeValue:function(a){this.value=a.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(a){a.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.iwb._createRipple.call(this)},
_focusedChanged:function(a){a&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=a?"":"none",this._ripple.holdDown=a)}});var WIc;var XIc;var Y_=null,YIc=function(){};
_.f=YIc.prototype;_.f.fit=function(){};
_.f._discoverInfo=function(){};
_.f.resetFit=function(){};
_.f.refit=function(){};
_.f.position=function(){};
_.f.constrain=function(){};
_.f._sizeDimension=function(){};
_.f.__sizeDimension=function(){};
_.f.center=function(){};
_.f.__getNormalizedRect=function(){};
_.f.__getOffscreenArea=function(){};
_.f.__getPosition=function(){};
_.f.notifyResize=function(){};
_.f.assignParentResizable=function(){};
_.f.stopResizeNotificationsFor=function(){};
_.f._subscribeIronResize=function(){};
_.f._unsubscribeIronResize=function(){};
_.f.resizerShouldNotify=function(){};
_.f._onDescendantIronResize=function(){};
_.f._fireResize=function(){};
_.f._onIronRequestResizeNotifications=function(){};
_.f._parentResizableChanged=function(){};
_.f._notifyDescendant=function(){};
_.f._requestResizeNotifications=function(){};
_.f._findParent=function(){};
_.f.toggle=function(){};
_.f.open=function(){};
_.f.close=function(){};
_.f.cancel=function(){};
_.f.invalidateTabbables=function(){};
_.f._ensureSetup=function(){};
_.f._canceledChanged=function(){};
_.f._withBackdropChanged=function(){};
_.f._prepareRenderOpened=function(){};
_.f._finishRenderOpened=function(){};
_.f._finishRenderClosed=function(){};
_.f._preparePositioning=function(){};
_.f._finishPositioning=function(){};
_.f._applyFocus=function(){};
_.f._onCaptureClick=function(){};
_.f._onCaptureFocus=function(){};
_.f._onCaptureEsc=function(){};
_.f._onCaptureTab=function(){};
_.f._onIronResize=function(){};
_.f._onNodesChange=function(){};
_.f.__ensureFirstLastFocusables=function(){};
_.f.__openedChanged=function(){};
_.f.__deraf=function(){};
_.f.__updateScrollObservers=function(){};
_.f.__addScrollListeners=function(){};
_.f.__removeScrollListeners=function(){};
_.f.__isValidScrollAction=function(){};
_.f.__onCaptureScroll=function(){};
_.f.__saveScrollPosition=function(){};
_.f.__restoreScrollPosition=function(){};
_.f._setCanceled=function(){};
YIc=_.qr({_template:function(){if(XIc!==void 0)return XIc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;WIc===void 0&&(WIc=document.createElement("template"));var d=WIc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);return XIc=a},
is:"tp-yt-paper-toast",behaviors:[_.YD],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:""},noCancelOnOutsideClick:{type:Boolean,value:!0},noAutoFocus:{type:Boolean,value:!0},noIronAnnounce:{type:Boolean,value:!1}},listeners:{transitionend:"__onTransitionEnd"},get visible(){_.CC._warn("`visible` is deprecated, use `opened` instead");
return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.TD.requestAvailability()},
show:function(a){typeof a=="string"&&(a={text:a});for(var b in a)b.indexOf("_")===0?_.CC._warn('The property "'+b+'" is private and was not set.'):b in this?this[b]=a[b]:_.CC._warn('The property "'+b+'" is not valid.');this.open()},
hide:function(){this.close()},
__onTransitionEnd:function(a){a&&a.target===this&&a.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(Y_&&Y_!==this&&Y_.close(),Y_=this,this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text}),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):Y_===this&&(Y_=null);_.XD._openedChanged.apply(this,arguments)},
_renderOpened:function(){this.classList.add("paper-toast-open")},
_renderClosed:function(){this.classList.remove("paper-toast-open")},
_onFitIntoChanged:function(a){this.positionTarget=a}});var ZIc=new _.X("disablePersonalizationAction");var Jzc=new _.X("showDmaConsentFlowCommand");var Kzc=new _.X("showMmgNoticeCommand");var $Ic=new _.X("saveConsentAction");var aJc=function(a){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.Ac(a,void 0,void 0,3)};
_.z(aJc,_.Xc);var bJc=_.sda(aJc);var cJc=new _.X("updateTopbarAvatarAction");var dJc=new _.X("channelHandleValidationResultRenderer");var eJc=new _.X("generateHandleFromNameResultRenderer");var fJc=new _.X("channelHandleInputRenderer");var gJc=new _.X("copyLinkRenderer");var hJc=new _.X("timedCommand");var iJc=new _.X("clearCookieAction");var jJc=new _.X("getMultiPageMenuAction");var kJc=new _.X("addToGuideSectionAction"),lJc=new _.X("removeFromGuideSectionAction");var mJc=new _.X("updateNotificationsUnseenCountAction");var nJc=new _.X("persistSubscriptionsDisplayPreferencesCommand");var oJc=new _.X("resetChannelUnreadCountCommand");var pJc=new _.X("resetSubscriptionsUnreadDotCommand");var qJc=new _.X("selectCountryCommand");var rJc=new _.X("selectLanguageCommand");var Yyc=new _.X("sendFeedbackAction");var sJc=new _.X("uploadImageToScottyCommand");var tJc=new _.X("webNativeShareCommand");var uJc=new _.X("registerPromoCommand");var vJc=new _.X("setPushNotificationsEnabledCommand");var wJc=new _.X("desktopTopbarRenderer");var xJc=new _.X("surveyFollowUpRenderer");var yJc=new _.X("handlesClaimingRadioOptionRenderer");var zJc=new _.X("hotkeyDialogRenderer");var AJc=new _.X("modifyReportFormCommand");var BJc=new _.X("accountLinkCommand");var CJc=new _.X("accountUnlinkCommand");var DJc=new _.X("logAccountLinkingEventCommand");var EJc=new _.X("guideCollapsibleEntryRenderer");var FJc=new _.X("guideDownloadsEntryRenderer");var Z_=new _.X("guideEntryRenderer");var GJc=new _.X("getLocationCommand");var HJc=new _.X("locationCollectionCommand");var IJc=new _.X("storiesItemViewModel");var JJc=new _.X("addToRemoteQueueAction");var KJc=new _.X("insertInRemoteQueueAction");var LJc=new _.X("removeFromRemoteQueueAction");var MJc=new _.X("notificationRenderer");var uzc=new _.X("localWatchHistoryCommand");var NJc=new _.X("pdgBuyFlowHeaderRenderer");var OJc=new _.X("pdgColorSliderRenderer");var PJc=new _.X("pdgCommentOptionRenderer");var QJc=new _.X("pdgCommentPreviewRenderer");var RJc=new _.X("superVodSelectableItemButtonRenderer");var SJc=new _.X("switchButtonRenderer");var TJc=new _.X("upsellDialogRenderer");var UJc=new _.X("feedbackQuestionRenderer"),VJc=new _.X("feedbackOptionRenderer");var WJc=new _.X("sponsorshipsTierRenderer"),XJc=new _.X("sponsorshipsPromotionChannelRenderer");var YJc=new _.X("simpleSurveyMessageRenderer");var Yzc=new _.X("invokeInstrumentManagerAction");var ZJc=new _.X("logYpcFlowDismissCommand");var $Jc=new _.X("logYpcFlowStartCommand");var aKc=new _.X("unlimitedCreateFamilyEndpoint");var bKc=new _.X("iconBadgeRenderer");var lyc=new _.X("collaborativePlaylistVisibilityValidationRule");var cKc=function(a){_.yz.call(this,"channelMessage");this.message=a};
_.z(cKc,_.yz);var dKc=function(a){_.yz.call(this,"channelError");this.error=a};
_.z(dKc,_.yz);var eKc={AUTOPLAY:"atp",SKA_SKIPPABLE_ADS:"ska",QUEUE_SUPPORT:"que",MULTI_USER_SESSIONS:"mus",SINGLE_USER_SESSIONS:"sus",HAS_DISPLAY:"dsp",SCREEN_EXTENDED_QUEUE_SUPPORT:"seq",MIC:"mic",DPAD:"dpa",CAST_DIALOG_SIGN_IN:"cds",MULTISTATE_LOOP_MODE:"mlm",DISCONNECT_STRATEGY_DEFFERRED_TO_RECEIVER:"dsdtr",NATIVE_BROWSE:"ntb",VARIABLE_SPEED:"vsp",ENABLE_VIDEO_SOURCE_CLIENT_NAME:"scn",RECEIVER_PLAYLIST_EXPANSION:"rpe",DISABLE_CURRENTINDEX_IN_NOWPLAYING:"dcn",DISABLE_CURRENTINDEX_IN_PLAYLISTMODIFIED:"dcp",PAUSE_AT_START:"pas",
DISABLE_QUEUE_FOR_RECEIVER_ONLY_SESSION:"drq",ONUSERACTIVITY_POLLING_FREQUENCY:"opf",ENABLE_LOUNGE_STATUS_PLAYBACK:"els",ENABLE_IDENTITY_SWITCH_TO_GUEST:"isg",SERVER_QUEUES:"svq",MULTIVIEW_PLAYBACK:"mvp",ACTIVE_DEVICE_STORE_WRITES:"ads",STREAM_TRANSFER_CREATE_PLAYLIST:"stcp",SHORTS_ACTIVE_DEVICE_STORE_WRITES:"sads",DISABLE_LOGGED_OUT_CASTING:"dloc"},fKc={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},gKc={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},
hKc={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},iKc={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var $_=function(a){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 _.oD;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";a&&(this.id=a.id||a.name,this.name=a.name,this.clientName=a.clientName?a.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=a.app,this.type=a.type||"REMOTE_CONTROL",this.username=a.user||"",this.avatar=a.userAvatarUri||"",this.obfuscatedGaiaId=a.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=a.ownerObfuscatedGaiaId||"",this.theme=a.theme||"u",jKc(this,a.capabilities||""),kKc(this,a.compatibleSenderThemes||""),lKc(this,a.experiments||""),
this.remoteControllerUrl=a.remoteControllerUrl||"",this.localChannelEncryptionKey=a.localChannelEncryptionKey||"",this.deviceContext=a.deviceContext,this.brand=a.brand||"",this.model=a.model||"",this.year=a.year||0,this.os=a.os||"",this.osVersion=a.osVersion||"",this.chipset=a.chipset||"",this.mdxDialServerType=a.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=a.pairingType||"unknown",a=a.deviceInfo)&&(a=JSON.parse(a),this.brand=a.brand||"",this.model=a.model||"",this.year=a.year||
0,this.os=a.os||"",this.osVersion=a.osVersion||"",this.chipset=a.chipset||"",this.clientName=a.clientName?a.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=a.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
$_.prototype.copy=function(){var a={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&&(a.brand=this.brand);
this.model&&(a.model=this.model);this.year&&(a.year=this.year);this.os&&(a.os=this.os);this.osVersion&&(a.osVersion=this.osVersion);this.chipset&&(a.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(a.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(a.mdxDialServerType=this.mdxDialServerType);a=new $_(a);a.connected=this.connected;a.remoteControllerUrl=this.remoteControllerUrl;a.localChannelEncryptionKey=this.localChannelEncryptionKey;a.deviceContext=
this.deviceContext;return a};
$_.prototype.equals=function(a){return a?this.id==a.id:!1};
var jKc=function(a,b){a.capabilities.clear();_.qx(b.split(","),_.vo(_.yf.contains,eKc)).forEach(function(c){a.capabilities.add(c)})},kKc=function(a,b){a.compatibleSenderThemes.clear();
_.qx(b.split(","),_.vo(_.yf.contains,fKc)).forEach(function(c){a.compatibleSenderThemes.add(c)})},lKc=function(a,b){a.experiments.clear();
b.split(",").forEach(function(c){a.experiments.add(c)})};var mKc=function(a,b){this.action=a;this.params=b||{}};_.nx(Dvc,_.tg);_.f=Dvc.prototype;_.f.JSC$17281_onTick_=function(){this.JSC$17279_interval_=Math.min(3E5,this.JSC$17279_interval_*2);this.JSC$17281_listener_();this.nextTickTime_&&this.start()};
_.f.start=function(){var a=this.JSC$17279_interval_+15E3*Math.random(),b=this.delay_;b.isActive()||b.start(a);this.nextTickTime_=Date.now()+a};
_.f.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.f.isActive=function(){return this.delay_.isActive()};
_.f.reset=function(){this.delay_.stop();this.JSC$17279_interval_=5E3};_.nx(NY,KIc);_.f=NY.prototype;_.f.subscribe=function(a,b,c){return this.pubsub_.subscribe(a,b,c)};
_.f.unsubscribe=function(a,b,c){return this.pubsub_.unsubscribe(a,b,c)};
_.f.unsubscribeByKey=function(a){return this.pubsub_.unsubscribeByKey(a)};
_.f.publish=function(a,b){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.f.dispose=function(){this.JSC$17282_disposed_||(this.JSC$17282_disposed_=!0,_.Tf(this.pubsub_),this.disconnect(),_.Tf(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$17282_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.oo({})})};
_.f.isDisposed=function(){return this.JSC$17282_disposed_};
_.f.connect=function(a,b,c){var d=this,e,g,k,m;return _.l(function(n){if(n.nextAddress==1)return _.pe(n,2),d.useAsyncBrowserChannelHandler_?_.p(n,d.connectPromise_,2):n.jumpTo(2);_.oe(n);if(d.JSC$17282_disposed_||d.JSC$17282_channel_&&d.JSC$17282_channel_.getState()==2)return n.return();d.sCookie_="";d.reconnectTimer_.stop();d.connectionParams_=a||null;d.connectUi_=b||0;e=d.JSC$17282_pathPrefix_+"/test";g=d.JSC$17282_pathPrefix_+"/bind";k=new V_(c?c.firstTestResults:null,c?c.secondTestResults:null,
d.enableAsyncTest_);if(m=d.JSC$17282_channel_)m.handler_=null;k.handler_=d;d.JSC$17282_channel_=k;if(d.useAsyncBrowserChannelHandler_)return d.connectPromise_=nKc(d).then(function(){return oKc(d,e,g,m,c)}),n.return(d.connectPromise_.then(function(){d.connectPromise_=_.oo()}));
oKc(d,e,g,m,c);return _.qe(n,0)})};
var oKc=function(a,b,c,d,e){pKc(a);if(a.JSC$17282_channel_){var g=_.Ei("ID_TOKEN"),k=a.JSC$17282_channel_.JSC$17235_extraHeaders_||{};g?k["x-youtube-identity-token"]=g:delete k["x-youtube-identity-token"];a.JSC$17282_channel_.JSC$17235_extraHeaders_=k}qKc(a);d?(d.getState(),a.JSC$17282_channel_.connect(b,c,a.defaultQueryParams_,d.sid_,d.JSC$17235_lastArrayId_)):e?a.JSC$17282_channel_.connect(b,c,a.defaultQueryParams_,e.sessionId,e.arrayId):a.JSC$17282_channel_.connect(b,c,a.defaultQueryParams_)};
NY.prototype.disconnect=function(a){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.oo())}finally{this.disconnectUi_=a||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),pKc(this),this.JSC$17282_channel_&&(this.JSC$17282_channel_.getState()==3&&EIc(this.JSC$17282_channel_),this.JSC$17282_channel_.disconnect()),this.disconnectUi_=0}};
NY.prototype.sendMessage=function(a,b){var c=this,d;return _.l(function(e){switch(e.nextAddress){case 1:_.pe(e,2);if(!c.useAsyncBrowserChannelHandler_){e.jumpTo(2);break}return _.p(e,c.connectPromise_,2);case 2:_.oe(e);if(c.JSC$17282_disposed_)return e.return();d={_sc:a};b&&_.yf.extend(d,b);if(c.reconnectTimer_.isActive()||(c.JSC$17282_channel_?c.JSC$17282_channel_.getState():0)==2){c.JSC$17282_pendingMessages_.push(d);e.jumpTo(6);break}if(!c.isChannelOpened()){e.jumpTo(6);break}_.pe(e,8);if(!c.useAsyncBrowserChannelHandler_||
rKc(c,a)){e.jumpTo(8);break}return _.p(e,nKc(c),8);case 8:_.oe(e,0,0,1);c.isChannelOpened()&&(rKc(c,a)||qKc(c),pKc(c),DIc(c.JSC$17282_channel_,d));_.qe(e,6,1);break;case 6:_.qe(e,0)}})};
var rKc=function(a,b){return a.enableMdxAuthForConnectionOnly_?!0:a.disableMdxAuthForAdMessages_?Object.values(gKc).includes(b):a.disableMdxAuthForNonPlaybackMessages_?!Object.values(hKc).includes(b):a.disableMdxAuthForShortsMessages_?Object.values(iKc).includes(b):!1};
NY.prototype.JSC$17241_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$17282_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)sKc(this);else{var a=this.JSC$17282_pendingMessages_;this.JSC$17282_pendingMessages_=[];var b=a.length;qKc(this);tKc(this,a,b);uKc(this)}else uKc(this)};
var sKc=function(a){var b,c;_.l(function(d){if(d.nextAddress==1)return _.pe(d,2),_.p(d,nKc(a),2);_.oe(d);b=a.JSC$17282_pendingMessages_;a.JSC$17282_pendingMessages_=[];c=b.length;tKc(a,b,c);uKc(a);return _.qe(d,0)})},tKc=function(a,b,c){for(var d=0;d<c;++d)DIc(a.JSC$17282_channel_,b[d]);
uKc(a)},uKc=function(a){a.publish("handlerOpened");
a.JSC$17282_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.f=NY.prototype;_.f.JSC$17241_channelError=function(a){var b=a==2&&this.JSC$17282_channel_.JSC$17235_lastStatusCode_==401;a==4||b||this.reconnectTimer_.start();this.publish("handlerError",a,b);this.JSC$17282_channelErrorCounter.increment("BROWSER_CHANNEL")};
_.f.JSC$17241_channelClosed=function(a,b){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(b)for(var c=b.length,d=0;d<c;++d){var e=b[d].map;e&&this.JSC$17282_pendingMessages_.push(e)}this.JSC$17282_channelClosedCounter.increment("BROWSER_CHANNEL");a&&this.pendingMapsOnClosedCounter.JSC$7781_streamzService.JSC$7639_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",a.length);b&&this.undeliveredMapsOnClosedCounter.JSC$7784_streamzService.JSC$7639_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
b.length)};
_.f.JSC$17241_channelSuccess=function(a,b){b!=null&&a!=null&&this.channelMessageSentCounter.increment()};
_.f.JSC$17241_getAdditionalParams=function(){var a={v:2};this.sCookie_&&(a.gsessionid=this.sCookie_);this.connectUi_!=0&&(a.ui=""+this.connectUi_);this.disconnectUi_!=0&&(a.ui=""+this.disconnectUi_);this.connectionParams_&&_.yf.extend(a,this.connectionParams_);return a};
_.f.JSC$17241_channelHandleArray=function(a){a[0]=="S"?this.sCookie_=a[1]:a[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$17282_channel_.disconnect()):this.publish("handlerMessage",new mKc(a[0],a[1]));this.JSC$17282_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.f.isChannelOpened=function(){return!!this.JSC$17282_channel_&&this.JSC$17282_channel_.getState()==3};
var pKc=function(a){if(a.JSC$17282_channel_){var b=a.JSC$17282_getXsrfToken_(),c=a.JSC$17282_channel_.JSC$17235_extraHeaders_||{};b?c["x-youtube-lounge-xsrf-token"]=b:delete c["x-youtube-lounge-xsrf-token"];a.JSC$17282_channel_.JSC$17235_extraHeaders_=c}},nKc=function(a){if(a.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.oo();
if(!a.enableCachedUpdateAuthorizationHeader_)return vKc(a);a.updateAuthorizationHeaderPromise_===null&&(a.updateAuthorizationHeaderPromise_=vKc(a));return a.updateAuthorizationHeaderPromise_},vKc=function(a){return _.Hz(a.getAuthorizationHeader_().then(function(b){wKc(a,b)}).thenCatch(function(){}),function(){a.updateAuthorizationHeaderPromise_=null})},wKc=function(a,b){if(a.JSC$17282_channel_){var c=a.JSC$17282_channel_.JSC$17235_extraHeaders_||{};
b&&Object.keys(b).length>0?c=Object.assign({},c,b):delete c.Authorization;a.JSC$17282_channel_.JSC$17235_extraHeaders_=c}},qKc=function(a){a.getAuthorizationHeaderSync_&&!a.useAsyncBrowserChannelHandler_&&wKc(a,a.getAuthorizationHeaderSync_())};
_.f=NY.prototype;_.f.setLoungeToken=function(a){(this.defaultQueryParams_.loungeIdToken=a)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$17282_channel_){var b=this.JSC$17282_channel_.JSC$17235_extraHeaders_||{};a?b["X-YouTube-LoungeId-Token"]=a:delete b["X-YouTube-LoungeId-Token"];this.JSC$17282_channel_.JSC$17235_extraHeaders_=b}};
_.f.getDeviceId=function(){return this.defaultQueryParams_.id};
_.f.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.f.reconnect=function(){var a=this.reconnectTimer_;a.delay_.fire();a.start()};
_.f.safeReconnect_=function(){var a=this.JSC$17282_channel_,b=0;a.JSC$17235_backChannelRequest_&&b++;a.forwardChannelRequest_&&b++;b==0&&this.connect(this.connectionParams_,this.connectUi_)};var UY=function(a,b){var c=a.basePath;a.supportCors&&(c=a.scheme+"://"+a.domain+a.port+a.basePath);return _.Qi(c+b,{})};
OY.prototype.sendRequest=function(a,b,c,d,e,g,k){a={format:g?"RAW":"JSON",method:a,context:this,timeout:5E3,withCredentials:!!k,onSuccess:_.vo(this.JSC$17287_onSuccess_,d,!g),onError:_.vo(this.onError_,e),onTimeout:_.vo(this.JSC$17287_onTimeout_,e)};c&&(a.postParams=c,a.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.hj(b,a)};
OY.prototype.JSC$17287_onSuccess_=function(a,b,c,d){b?a(d):a({text:c.responseText})};
OY.prototype.onError_=function(a,b){a(Error("xk`"+b.status))};
OY.prototype.JSC$17287_onTimeout_=function(a){a(Error("yk"))};var QY=function(a,b){return!!b&&(a.id==b||a.uuid==b)},xKc=function(a){return{name:a.name,
screenId:a.id,loungeToken:a.token,dialId:a.uuid,screenIdType:a.idType}},yKc=function(a){return new PY(a)},zKc=function(a){return Array.isArray(a)?_.zf(a,yKc):[]},Mwc=function(a){if(!a)return"null";
var b=a.token?".."+a.token.slice(-6):"-",c=a.uuid?".."+a.uuid.slice(-6):"-";return'{name:"'+a.name+'",id:'+a.id.substr(0,6)+"..,token:"+(b+",uuid:"+c+",idType:"+a.idType+"}")},nwc=function(a){return Array.isArray(a)?"["+_.zf(a,Mwc).join(",")+"]":"null"};var Uvc="",TY=null;var cwc=function(a,b){_.Dz.call(this);var c=this;this.handler=a();this.handler.subscribe("handlerOpened",this.JSC$17294_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(d,e){c.onError(e)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=b};
_.z(cwc,_.Dz);_.f=cwc.prototype;_.f.connect=function(a,b,c){this.handler.connect(a,b,c)};
_.f.disconnect=function(a){this.handler.disconnect(a)};
_.f.reconnect=function(){this.handler.reconnect()};
_.f.getDeviceId=function(){return this.handler.getDeviceId()};
_.f.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.f.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.f.JSC$17294_onOpened=function(){this.dispatchEvent("channelOpened");var a=this.handler,b=this.currentScreenId;_.rG("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!a.JSC$17282_channel_.useChunked_,sessionId:a.JSC$17282_channel_.sid_,arrayId:a.JSC$17282_channel_.JSC$17235_lastArrayId_});_.rG("yt-remote-session-screen-id",b);a=Ovc();b=Pvc();_.Pa(a,b)||a.push(b);Tvc(a);Svc()};
_.f.onClosed=function(){this.dispatchEvent("channelClosed")};
_.f.onMessage=function(a){this.dispatchEvent(new cKc(a))};
_.f.onError=function(a){this.dispatchEvent(new dKc(a?1:0))};
_.f.sendMessage=function(a,b){this.handler.sendMessage(a,b)};
_.f.setLoungeToken=function(a){this.handler.setLoungeToken(a)};
_.f.dispose=function(){this.handler.dispose()};var bwc=function(a,b,c){var d=this;c=c===void 0?function(){return""}:c;
var e=e===void 0?new WHc:e;var g=g===void 0?new _.jj:g;this.pathPrefix=a;this.defaultQueryParams=b;this.getXsrfToken=c;this.JSC$17297_pubsub=g;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new Dvc(function(){var k;((k=d.channel)==null?void 0:yHc((new ZHc(k,k.JSC$17206_channel_)).JSC$17216_channel_.forwardChannelRequestPool_))===0&&d.connect(d.connectionParams,d.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$17297_disposed=!1;this.logger=null;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$17297_channelOpenedCounter=new Evc;this.JSC$17297_channelClosedCounter=new Fvc;this.JSC$17297_channelMessageReceivedCounter=new Hvc;this.JSC$17297_channelErrorCounter=new Ivc};
bwc.prototype.connect=function(a,b){a=a===void 0?{}:a;b=b===void 0?0:b;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=a,this.connectUi=b,AKc(this),(a=_.Ei("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=a: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 O_(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,BKc(this))};
var BKc=function(a){_.ss(a.channel,"w",function(){a.channelState=3;a.reconnectTimer.reset();a.connectionParams=null;a.connectUi=0;for(var b=_.h(a.nonAckedMessagesOnChannelClosed),c=b.next();!c.done;c=b.next())c=c.value,a.channel&&a.channel.send(c);a.nonAckedMessagesOnChannelClosed=[];a.publish("webChannelOpened");a.JSC$17297_channelOpenedCounter.increment("WEB_CHANNEL")});
_.ss(a.channel,"x",function(){a.channelState=0;a.reconnectTimer.isActive()||a.publish("webChannelClosed");var b,c=(b=a.channel)==null?void 0:$Hc(new ZHc(b,b.JSC$17206_channel_));c&&(a.nonAckedMessagesOnChannelClosed=[].concat(_.Be(c)));a.JSC$17297_channelClosedCounter.increment("WEB_CHANNEL")});
_.ss(a.channel,"z",function(b){var c=b.data;c[0]==="gracefulReconnect"?(a.reconnectTimer.start(),a.channel&&a.channel.close()):a.publish("webChannelMessage",new mKc(c[0],c[1]));a.lastStatusCode=b.statusCode;a.JSC$17297_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.ss(a.channel,"y",function(){a.lastStatusCode===401||a.reconnectTimer.start();a.publish("webChannelError");a.JSC$17297_channelErrorCounter.increment("WEB_CHANNEL")})};
_.f=bwc.prototype;_.f.disconnect=function(a){this.disconnectUi=a===void 0?0:a;this.reconnectTimer.stop();AKc(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.f.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.f.reconnect=function(){var a=this.reconnectTimer;a.delay_.fire();a.start()};
_.f.sendMessage=function(a,b){this.channel&&(AKc(this),a=Object.assign({},{_sc:a},b),this.channel.send(a))};
_.f.setLoungeToken=function(a){a||this.reconnectTimer.stop();a?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=a:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var AKc=function(a){var b=a.getXsrfToken();b?a.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=b:delete a.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.f=bwc.prototype;_.f.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.f.publish=function(a){return this.JSC$17297_pubsub.publish.apply(this.JSC$17297_pubsub,[a].concat(_.Be(_.Id.apply(1,arguments))))};
_.f.subscribe=function(a,b,c){return this.JSC$17297_pubsub.subscribe(a,b,c)};
_.f.unsubscribe=function(a,b,c){return this.JSC$17297_pubsub.unsubscribe(a,b,c)};
_.f.unsubscribeByKey=function(a){return this.JSC$17297_pubsub.unsubscribeByKey(a)};
_.f.dispose=function(){this.JSC$17297_disposed||(this.JSC$17297_disposed=!0,_.Tf(this.JSC$17297_pubsub),this.disconnect(),_.Tf(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.f.isDisposed=function(){return this.JSC$17297_disposed};var awc=function(a){_.Dz.call(this);this.webChannelService=a();this.webChannelService.subscribe("webChannelOpened",this.JSC$17305_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.z(awc,_.Dz);_.f=awc.prototype;_.f.connect=function(a,b){this.webChannelService.connect(a,b)};
_.f.disconnect=function(a){this.webChannelService.disconnect(a)};
_.f.reconnect=function(){this.webChannelService.reconnect()};
_.f.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.f.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.f.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.f.JSC$17305_onOpened=function(){this.dispatchEvent("channelOpened")};
_.f.onClosed=function(){this.dispatchEvent("channelClosed")};
_.f.onMessage=function(a){this.dispatchEvent(new cKc(a))};
_.f.onError=function(){this.dispatchEvent(new dKc(this.webChannelService.lastStatusCode===401?1:0))};
_.f.sendMessage=function(a,b){this.webChannelService.sendMessage(a,b)};
_.f.setLoungeToken=function(a){this.webChannelService.setLoungeToken(a)};
_.f.dispose=function(){this.webChannelService.dispose()};var mwc=Date.now(),VY=null,kwc=Array(50),YY=-1,lwc=!1;_.nx(ZY,_.gY);ZY.prototype.getScreens=function(){return this.screens};
ZY.prototype.contains=function(a){return!!Nvc(this.screens,a)};
ZY.prototype.get=function(a){return a?RY(this.screens,a):null};
var CKc=function(a,b){var c=a.get(b.uuid)||a.get(b.id);if(c)return a=c.name,c.id=b.id||c.id,c.name=b.name,c.token=b.token,c.uuid=b.uuid||c.uuid,c.name!=a;a.screens.push(b);return!0},DKc=function(a,b){var c=a.screens.length!=b.length;
a.screens=_.qx(a.screens,function(g){return!!Nvc(b,g)});
for(var d=b.length,e=0;e<d;e++)c=CKc(a,b[e])||c;return c},EKc=function(a,b){var c=a.screens.length;
a.screens=_.qx(a.screens,function(d){return!(d||b?!d!=!b?0:d.id==b.id:1)});
return a.screens.length<c};
ZY.prototype.info=function(a){WY(this.JSC$17306_logName_,a)};var FKc=function(a,b,c,d,e){_.gY.call(this);this.JSC$17309_http_=a;this.pairingCode_=b;this.deviceId_=c;this.friendlyName_=d;this.enableShortLivedLoungeToken_=e;this.pollIndex_=0;this.JSC$17309_xhr_=null;this.JSC$17309_timer_=NaN};
_.z(FKc,_.gY);_.f=FKc.prototype;_.f.start=function(){!this.JSC$17309_xhr_&&isNaN(this.JSC$17309_timer_)&&this.poll_()};
_.f.stop=function(){this.JSC$17309_xhr_&&(this.JSC$17309_xhr_.abort(),this.JSC$17309_xhr_=null);isNaN(this.JSC$17309_timer_)||(_.fj(this.JSC$17309_timer_),this.JSC$17309_timer_=NaN)};
_.f.disposeInternal=function(){this.stop();_.gY.prototype.disposeInternal.call(this)};
_.f.poll_=function(){this.JSC$17309_timer_=NaN;this.JSC$17309_xhr_=_.hj(UY(this.JSC$17309_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.ug)(this.JSC$17311_onSuccess_,this),onError:(0,_.ug)(this.onError_,this),onTimeout:(0,_.ug)(this.JSC$17311_onTimeout_,this)})};
_.f.JSC$17311_onSuccess_=function(a,b){this.JSC$17309_xhr_=null;a=b.screen||{};a.dialId=this.deviceId_;a.name=this.friendlyName_;b=-1;this.enableShortLivedLoungeToken_&&a.shortLivedLoungeToken&&a.shortLivedLoungeToken.value&&a.shortLivedLoungeToken.refreshIntervalMs&&(a.screenIdType="shortLived",a.loungeToken=a.shortLivedLoungeToken.value,b=a.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new PY(a),b)};
_.f.onError_=function(a){this.JSC$17309_xhr_=null;a.status&&a.status==404?this.pollIndex_>=GKc.length?this.publish("pairingFailed",Error("zk")):(a=GKc[this.pollIndex_],this.JSC$17309_timer_=_.dj((0,_.ug)(this.poll_,this),a),this.pollIndex_++):this.publish("pairingFailed",Error("Ak`"+a.status))};
_.f.JSC$17311_onTimeout_=function(){this.JSC$17309_xhr_=null;this.publish("pairingFailed",Error("Bk"))};
var GKc=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.nx(aZ,ZY);_.f=aZ.prototype;_.f.start=function(){$Y(this)&&this.publish("screenChange");!_.sG("yt-remote-lounge-token-expiration")&&HKc(this);_.fj(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.dj((0,_.ug)(this.start,this),1E4)};
_.f.add=function(a,b){$Y(this);CKc(this,a);IKc(this,!1);this.publish("screenChange");b(a);a.token||HKc(this)};
_.f.remove=function(a,b){var c=$Y(this);EKc(this,a)&&(IKc(this,!1),c=!0);b(a);c&&this.publish("screenChange")};
_.f.updateName=function(a,b,c,d){var e=$Y(this),g=this.get(a.id);g?(g.name!=b&&(g.name=b,IKc(this,!1),e=!0),c(a)):d(Error("Ck"));e&&this.publish("screenChange")};
_.f.disposeInternal=function(){_.fj(this.loungeTokenRefreshTimer_);aZ.superClass_.disposeInternal.call(this)};
var HKc=function(a){if(a.screens.length){var b=_.zf(a.screens,function(d){return d.id}),c=UY(a.JSC$17313_http_,"/pairing/get_lounge_token_batch");
a.JSC$17313_http_.sendRequest("POST",c,{screen_ids:b.join(",")},(0,_.ug)(a.handleLoungeTokens_,a),(0,_.ug)(a.handleLoungeTokenError_,a))}};
aZ.prototype.handleLoungeTokens_=function(a){$Y(this);var b=this.screens.length;a=a&&a.screens||[];for(var c=a.length,d=0;d<c;++d){var e=a[d],g=this.get(e.screenId);g&&(g.token=e.loungeToken,--b)}IKc(this,!b);b&&WY(this.JSC$17306_logName_,"Missed "+b+" lounge tokens.")};
aZ.prototype.handleLoungeTokenError_=function(a){WY(this.JSC$17306_logName_,"Requesting lounge tokens failed: "+a)};
var $Y=function(a){if(_.x("deprecate_pair_servlet_enabled"))return DKc(a,[]);var b=zKc(Wvc());b=_.qx(b,function(c){return!c.uuid});
return DKc(a,b)},IKc=function(a,b){Yvc(_.zf(a.screens,xKc));
b&&Xvc()};var a0=function(a,b){_.gY.call(this);this.getScreensToCheck_=b;b=(b=_.sG("yt-remote-online-screen-ids")||"")?b.split(","):[];for(var c={},d=this.getScreensToCheck_(),e=d.length,g=0;g<e;++g){var k=d[g].id;c[k]=_.Pa(b,k)}this.screenIdSet_=c;this.JSC$17316_http_=a;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;JKc("Initialized with "+(0,_.Kz)(this.screenIdSet_))};
_.z(a0,_.gY);a0.prototype.isOnline=function(a){return!!this.screenIdSet_[a]};
a0.prototype.start=function(){var a=parseInt(_.sG("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.mx()-144E5<a?0:a)?KKc(this):(this.fastCheckEndTime_=_.mx()+3E5,_.rG("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
a0.prototype.isEmpty=function(){return _.yf.isEmpty(this.screenIdSet_)};
a0.prototype.update=function(){JKc("Updating availability on schedule.");var a=this.getScreensToCheck_(),b=_.yf.filter(this.screenIdSet_,function(c,d){return c&&!!RY(a,d)},this);
LKc(this,b)};
var MKc=function(a,b,c){var d=UY(a.JSC$17316_http_,"/pairing/get_screen_availability");a.JSC$17316_http_.sendRequest("POST",d,{lounge_token:b.token},(0,_.ug)(function(e){e=e.screens||[];for(var g=e.length,k=0;k<g;++k)if(e[k].loungeToken==b.token){c(e[k].status=="online");return}c(!1)},a),(0,_.ug)(function(){c(!1)},a))};
a0.prototype.disposeInternal=function(){_.fj(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.gY.prototype.disposeInternal.call(this)};
var LKc=function(a,b){a:if(_.yf.getCount(b)!=_.yf.getCount(a.screenIdSet_))var c=!1;else{c=_.yf.getKeys(b);for(var d=c.length,e=0;e<d;++e)if(!a.screenIdSet_[c[e]]){c=!1;break a}c=!0}c||(JKc("Updated online screens: "+(0,_.Kz)(a.screenIdSet_)),a.screenIdSet_=b,a.publish("screenChange"));NKc(a)},KKc=function(a){isNaN(a.refreshTimer_)||_.fj(a.refreshTimer_);
a.refreshTimer_=_.dj((0,_.ug)(a.requestScreenAvailability_,a),a.fastCheckEndTime_>0&&a.fastCheckEndTime_<_.mx()?2E4:1E4)};
a0.prototype.requestScreenAvailability_=function(){_.fj(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var a=OKc(this);if(_.yf.getCount(a)){var b=UY(this.JSC$17316_http_,"/pairing/get_screen_availability"),c={lounge_token:_.yf.getKeys(a).join(",")};this.currentRequest_=this.JSC$17316_http_.sendRequest("POST",b,c,(0,_.ug)(this.onScreenAvailability_,this,a),(0,_.ug)(this.onScreenAvailabilityError_,this))}else LKc(this,{}),KKc(this)};
a0.prototype.onScreenAvailability_=function(a,b){this.currentRequest_=null;var c=_.yf.getKeys(OKc(this));if(_.cb(c,_.yf.getKeys(a))){b=b.screens||[];c={};for(var d=b.length,e=0;e<d;++e)c[a[b[e].loungeToken]]=b[e].status=="online";LKc(this,c);KKc(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
a0.prototype.onScreenAvailabilityError_=function(a){this.warn_("Screen availability failed: "+a);this.currentRequest_=null;KKc(this)};
var JKc=function(a){WY("OnlineScreenService",a)};
a0.prototype.warn_=function(a){WY("OnlineScreenService",a)};
var OKc=function(a){var b={};_.Mi(a.getScreensToCheck_(),function(c){c.token?b[c.token]=c.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return b},NKc=function(a){a=_.yf.getKeys(_.yf.filter(a.screenIdSet_,function(b){return b}));
a.sort(_.Aaa);a.length?_.rG("yt-remote-online-screen-ids",a.join(","),60):_.tG("yt-remote-online-screen-ids")};_.nx(bZ,ZY);_.f=bZ.prototype;_.f.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.f.add=function(a,b,c){this.localScreenService_.add(a,b,c)};
_.f.remove=function(a,b,c){this.localScreenService_.remove(a,b,c);this.onlineScreenService_.update()};
_.f.updateName=function(a,b,c,d){this.localScreenService_.contains(a)?this.localScreenService_.updateName(a,b,c,d):(a="Updating name of unknown screen: "+a.name,WY(this.JSC$17306_logName_,a),d(Error(a)))};
_.f.getScreens=function(a){return a?this.screens:jsc(this.screens,_.qx(this.automaticScreens_,function(b){return!this.contains(b)},this))};
_.f.JSC$17321_getOnlineScreens=function(){return _.qx(this.getScreens(!0),function(a){return this.onlineScreenService_.isOnline(a.id)},this)};
var QKc=function(a,b,c,d,e,g){a.info("getAutomaticScreenByIds "+c+" / "+b);c||(c=a.deviceToScreenId_[b]);var k=a.getScreens(),m=c?RY(k,c):null;c&&(a.disableAutomaticScreenCache_||m)||(m=RY(k,b));if(m){m.uuid=b;var n=b0(a,m);MKc(a.onlineScreenService_,n,function(r){e(r?n:null)})}else c?PKc(a,c,(0,_.ug)(function(r){var t=b0(this,new PY({name:d,
screenId:c,loungeToken:r,dialId:b||""}));MKc(this.onlineScreenService_,t,function(u){e(u?t:null)})},a),g):e(null)};
bZ.prototype.JSC$17321_getScreenByPollingPairingCode=function(a,b,c,d,e,g){var k=this;this.info("getDialScreenByPairingCode "+a+" / "+b);var m=new FKc(this.JSC$17319_http_,a,b,c,d);m.subscribe("pairingComplete",function(n,r){_.Tf(m);e(b0(k,n),r)});
m.subscribe("pairingFailed",function(n){_.Tf(m);g(n)});
m.start();return(0,_.ug)(m.stop,m)};
var RKc=function(a,b){for(var c=a.screens.length,d=0;d<c;++d)if(a.screens[d].name==b)return a.screens[d];return null};
bZ.prototype.JSC$17321_getScreenByPairingCode=function(a,b,c,d){_.hj(UY(this.JSC$17319_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:a},timeout:5E3,onSuccess:(0,_.ug)(function(e,g){e=new PY(g.screen||{});if(!e.name||RKc(this,e.name)){a:{g=e.name;for(var k=2,m=b(g,k);RKc(this,m);){k++;if(k>20)break a;m=b(g,k)}g=m}e.name=g}c(b0(this,e))},this),
onError:(0,_.ug)(function(e){d(Error("Dk`"+e.status))},this),
onTimeout:(0,_.ug)(function(){d(Error("Ek"))},this)})};
var SKc=function(a,b,c){MKc(a.onlineScreenService_,b,c)};
bZ.prototype.disposeInternal=function(){_.Tf(this.localScreenService_);_.Tf(this.onlineScreenService_);bZ.superClass_.disposeInternal.call(this)};
var PKc=function(a,b,c,d){a.info("requestLoungeToken_ for "+b);var e={postParams:{screen_ids:b},method:"POST",context:a,onSuccess:function(g,k){g=k&&k.screens||[];g[0]&&g[0].screenId==b?c(g[0].loungeToken):d(Error("Fk"))},
onError:function(){d(Error("Gk"))}};
_.hj(UY(a.JSC$17319_http_,"/pairing/get_lounge_token_batch"),e)},TKc=function(a){a.screens=a.localScreenService_.getScreens();
for(var b=_.yf.transpose(a.deviceToScreenId_),c=a.screens.length,d=0;d<c;++d){var e=a.screens[d];e.uuid=b[e.id]||""}a.info("Updated manual screens: "+nwc(a.screens))};
bZ.prototype.handleScreenChange_=function(){TKc(this);this.publish("screenChange");this.onlineScreenService_.update()};
var owc=function(a){UKc(a);a.localScreenService_=new aZ(a.JSC$17319_http_);a.localScreenService_.subscribe("screenChange",(0,_.ug)(a.handleScreenChange_,a));TKc(a);a.disableAutomaticScreenCache_||(a.automaticScreens_=zKc(_.sG("yt-remote-automatic-screen-cache")||[]));UKc(a);a.info("Initializing automatic screens: "+nwc(a.automaticScreens_));a.onlineScreenService_=new a0(a.JSC$17319_http_,(0,_.ug)(a.getScreens,a,!0));a.onlineScreenService_.subscribe("screenChange",(0,_.ug)(function(){this.publish("onlineScreenChange")},
a))},b0=function(a,b){var c=a.get(b.id);
c?(c.uuid=b.uuid,b=c):((c=RY(a.automaticScreens_,b.uuid))?(c.id=b.id,c.token=b.token,b=c):a.automaticScreens_.push(b),a.disableAutomaticScreenCache_||VKc(a));UKc(a);a.deviceToScreenId_[b.uuid]=b.id;_.rG("yt-remote-device-id-map",a.deviceToScreenId_,31536E3);return b},VKc=function(a){a=_.qx(a.automaticScreens_,function(b){return b.idType!="shortLived"});
_.rG("yt-remote-automatic-screen-cache",_.zf(a,xKc))},UKc=function(a){a.deviceToScreenId_=_.sG("yt-remote-device-id-map")||{}};
bZ.prototype.dispose=bZ.prototype.dispose;_.nx(cZ,_.gY);var c0=function(a,b){a.screen_=b;a.publish("sessionScreen",a.screen_)},WKc=function(a,b){a.screen_&&(a.screen_.token=b,b0(a.JSC$17323_screenService_,a.screen_));
a.publish("sessionScreen",a.screen_)};
cZ.prototype.onSessionStopped=function(a){this.isDisposed()||(a&&(d0(this,""+a),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
cZ.prototype.info=function(a){WY(this.JSC$17323_logName_,a)};
var d0=function(a,b){WY(a.JSC$17323_logName_,b)};
cZ.prototype.JSC$17325_getCastSession=function(){return null};
cZ.prototype.setDisplayStatus=function(a){var b=this.receiver_;a?(b.displayStatus=new chrome.cast.ReceiverDisplayStatus(a,[]),b.displayStatus.showStop=!0):b.displayStatus=null;chrome.cast.setReceiverDisplayStatus(b,(0,_.ug)(function(){this.info("Updated receiver status for "+b.friendlyName+": "+a)},this),(0,_.ug)(function(){d0(this,"Failed to update receiver status for: "+b.friendlyName)},this))};
cZ.prototype.disposeInternal=function(){this.setDisplayStatus("");cZ.superClass_.disposeInternal.call(this)};var e0=function(a,b,c){cZ.call(this,a,b,"CastSession");var d=this;this.config_=c;this.JSC$17328_session_=null;this.JSC$17328_boundSessionUpdate_=(0,_.ug)(this.JSC$17330_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.ug)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.dj(function(){XKc(d,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$17328_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$17328_isInitLoungeToken_=!1;this.JSC$17328_lastLoungeTokenRefreshError_="unknown"};
_.z(e0,cZ);_.f=e0.prototype;
_.f.setCastSession=function(a){if(this.JSC$17328_session_){if(this.JSC$17328_session_==a)return;d0(this,"Overriding cast session with new session object");YKc(this);this.JSC$17328_isInitLoungeToken_=!1;this.JSC$17328_lastLoungeTokenRefreshError_="unknown";this.JSC$17328_session_.removeUpdateListener(this.JSC$17328_boundSessionUpdate_);this.JSC$17328_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$17328_session_=a;this.JSC$17328_session_.addUpdateListener(this.JSC$17328_boundSessionUpdate_);this.JSC$17328_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);ZKc(this,"getMdxSessionStatus")};
_.f.launchWithParams=function(a){this.info("launchWithParams no-op for Cast: "+(0,_.Kz)(a))};
_.f.stop=function(){if(this.JSC$17328_session_)this.JSC$17328_session_.stop((0,_.ug)(function(){this.onSessionStopped()},this),(0,_.ug)(function(){this.onSessionStopped(Error("Hk"))},this));
else this.onSessionStopped(Error("Ik"))};
_.f.setDisplayStatus=function(){};
_.f.disposeInternal=function(){this.info("disposeInternal");YKc(this);this.JSC$17328_session_&&(this.JSC$17328_session_.removeUpdateListener(this.JSC$17328_boundSessionUpdate_),this.JSC$17328_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$17328_session_=null;cZ.prototype.disposeInternal.call(this)};
var aLc=function(a,b){_.fj(a.getLoungeTokenTimeoutKey_);a.getLoungeTokenTimeoutKey_=0;b==0?$Kc(a):a.getLoungeTokenTimeoutKey_=_.dj(function(){$Kc(a)},b)},$Kc=function(a){ZKc(a,"getLoungeToken");
_.fj(a.onLoungeTokenTimeoutKey_);a.onLoungeTokenTimeoutKey_=_.dj(function(){bLc(a,null)},3E4)},ZKc=function(a,b){a.info("sendYoutubeMessage_: "+b+" "+(0,_.Kz)(void 0));
var c={};c.type=b;a.JSC$17328_session_?a.JSC$17328_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",c,function(){},(0,_.ug)(function(){d0(this,"Failed to send message: "+b+".")},a)):d0(a,"Sending yt message without session: "+(0,_.Kz)(c))};
e0.prototype.onYoutubeMessage_=function(a,b){if(!this.isDisposed())if(b)if(b=(0,_.An)(b),_.$a(b))switch(a=""+b.type,b=b.data||{},this.info("onYoutubeMessage_: "+a+" "+(0,_.Kz)(b)),a){case "mdxSessionStatus":XKc(this,b);break;case "loungeToken":bLc(this,b);break;default:d0(this,"Unknown youtube message: "+a)}else d0(this,"Unable to parse message.");else d0(this,"No data in message.")};
var cLc=function(a,b){if(b)a.info("onConnectedScreenId_: Received screenId: "+b),a.screen_&&a.screen_.id==b||a.getScreen_(b,function(c){c0(a,c)},function(){return a.onSessionStopped()},5);
else a.onSessionStopped(Error("Jk"))},eLc=function(a,b,c){a.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(b));
var d=new PY(b);dLc(a,d,function(e){e?(a.JSC$17328_isInitLoungeToken_=!0,b0(a.JSC$17323_screenService_,d),c0(a,d),a.JSC$17328_lastLoungeTokenRefreshError_="unknown",aLc(a,c)):(_.Hi(Error("Kk`"+JSON.stringify(b))),a.onSessionStopped())},5)},XKc=function(a,b){_.fj(a.sessionStatusTimeoutKey_);
a.sessionStatusTimeoutKey_=0;if(b)a.config_.enableCastLoungeToken&&b.loungeToken?b.deviceId?a.screen_&&a.screen_.uuid==b.deviceId||(b.loungeTokenRefreshIntervalMs?eLc(a,{name:a.receiver_.friendlyName,screenId:b.screenId,loungeToken:b.loungeToken,dialId:b.deviceId,screenIdType:"shortLived"},b.loungeTokenRefreshIntervalMs):(_.Hi(Error("Mk`"+JSON.stringify(b))),cLc(a,b.screenId))):(_.Hi(Error("Lk`"+JSON.stringify(b))),cLc(a,b.screenId)):cLc(a,b.screenId);else a.onSessionStopped(Error("Jk"))},bLc=function(a,
b){_.fj(a.onLoungeTokenTimeoutKey_);
a.onLoungeTokenTimeoutKey_=0;var c=null;if(b)if(b.loungeToken){var d;((d=a.screen_)==null?void 0:d.token)==b.loungeToken&&(c="staleLoungeToken")}else c="missingLoungeToken";else c="noLoungeTokenResponse";c?(a.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(b)+", error: "+c)),a.JSC$17328_lastLoungeTokenRefreshError_=c,aLc(a,3E4)):(WKc(a,b.loungeToken),a.JSC$17328_isInitLoungeToken_=!1,a.JSC$17328_lastLoungeTokenRefreshError_="unknown",aLc(a,b.loungeTokenRefreshIntervalMs))};
e0.prototype.getScreen_=function(a,b,c,d){_.fj(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;QKc(this.JSC$17323_screenService_,this.receiver_.label,a,this.receiver_.friendlyName,(0,_.ug)(function(e){e?b(e):d>=0?(d0(this,"Screen "+a+" appears to be offline. "+d+" retries left."),this.getScreenTimeoutKey_=_.dj((0,_.ug)(this.getScreen_,this,a,b,c,d-1),300)):c(Error("Nk"))},this),c)};
var dLc=function(a,b,c,d){_.fj(a.JSC$17328_checkScreenAvailabilityTimeoutKey_);a.JSC$17328_checkScreenAvailabilityTimeoutKey_=0;SKc(a.JSC$17323_screenService_,b,function(e){e||d<0?c(e):a.JSC$17328_checkScreenAvailabilityTimeoutKey_=_.dj(function(){dLc(a,b,c,d-1)},300)})};
e0.prototype.JSC$17325_getCastSession=function(){return this.JSC$17328_session_};
e0.prototype.JSC$17330_onSessionUpdate_=function(a){this.isDisposed()||a||(d0(this,"Cast session died."),this.onSessionStopped())};
var YKc=function(a){_.fj(a.getScreenTimeoutKey_);a.getScreenTimeoutKey_=0;_.fj(a.JSC$17328_checkScreenAvailabilityTimeoutKey_);a.JSC$17328_checkScreenAvailabilityTimeoutKey_=0;_.fj(a.sessionStatusTimeoutKey_);a.sessionStatusTimeoutKey_=0;_.fj(a.onLoungeTokenTimeoutKey_);a.onLoungeTokenTimeoutKey_=0;_.fj(a.getLoungeTokenTimeoutKey_);a.getLoungeTokenTimeoutKey_=0};var f0=function(a,b,c,d){cZ.call(this,a,b,"DialSession");this.config_=d;this.JSC$17332_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$17332_theme_=c;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$17332_deferredLaunchDeadlineTimer_=NaN;this.JSC$17332_boundSessionUpdate_=(0,_.ug)(this.JSC$17334_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$17332_checkScreenAvailabilityTimeoutKey_=0;this.JSC$17332_isInitLoungeToken_=!1;this.JSC$17332_lastLoungeTokenRefreshError_="unknown"};
_.z(f0,cZ);f0.prototype.setCastSession=function(a){this.JSC$17332_session_=a;this.JSC$17332_session_.addUpdateListener(this.JSC$17332_boundSessionUpdate_)};
f0.prototype.launchWithParams=function(a){this.connectData_=a;this.deferredLaunch_()};
f0.prototype.stop=function(){fLc(this);if(this.JSC$17332_session_)this.JSC$17332_session_.stop((0,_.ug)(this.onSessionStopped,this,null),(0,_.ug)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
f0.prototype.disposeInternal=function(){fLc(this);this.JSC$17332_session_&&this.JSC$17332_session_.removeUpdateListener(this.JSC$17332_boundSessionUpdate_);this.JSC$17332_session_=null;cZ.prototype.disposeInternal.call(this)};
var gLc=function(a){var b;return!!(a.config_.enableDialLoungeToken&&((b=a.JSC$17332_session_)==null?0:b.getDialAppInfo))},hLc=function(a){a.cancelPolling_=a.JSC$17323_screenService_.JSC$17321_getScreenByPollingPairingCode(a.reversePairingCode_,a.receiver_.label,a.receiver_.friendlyName,gLc(a),function(b,c){a.cancelPolling_=function(){};
a.JSC$17332_isInitLoungeToken_=!0;c0(a,b);b.idType=="shortLived"&&c>0&&g0(a,c)},function(b){a.cancelPolling_=function(){};
a.onSessionStopped(b)})};
f0.prototype.JSC$17334_onSessionUpdate_=function(a){this.isDisposed()||a||(d0(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var iLc=function(a){var b={};b.pairingCode=a.reversePairingCode_;b.theme=a.JSC$17332_theme_;$vc()&&(b.env_useStageMdx=1);return _.ij(b)},jLc=function(a){return new Promise(function(b){a.reversePairingCode_=Lvc();
if(a.connectData_){var c=new chrome.cast.DialLaunchResponse(!0,iLc(a));b(c);hLc(a)}else a.deferredLaunch_=function(){_.fj(a.JSC$17332_deferredLaunchDeadlineTimer_);a.deferredLaunch_=function(){};
a.JSC$17332_deferredLaunchDeadlineTimer_=NaN;var d=new chrome.cast.DialLaunchResponse(!0,iLc(a));b(d);hLc(a)},a.JSC$17332_deferredLaunchDeadlineTimer_=_.dj(function(){a.deferredLaunch_()},100)})},lLc=function(a,b,c){a.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(b));
var d=new PY(b);return(new Promise(function(e){kLc(a,d,function(g){g?(a.JSC$17332_isInitLoungeToken_=!0,b0(a.JSC$17323_screenService_,d),c0(a,d),g0(a,c)):_.Hi(Error("Pk`"+JSON.stringify(b)));e(g)},5)})).then(function(e){return e?new chrome.cast.DialLaunchResponse(!1):jLc(a)})},mLc=function(a,b){var c=a.launchData_.receiver.label,d=a.receiver_.friendlyName;
return(new Promise(function(e){QKc(a.JSC$17323_screenService_,c,b,d,function(g){g&&g.token&&c0(a,g);e(g)},function(g){d0(a,"Failed to get DIAL screen: "+g);
e(null)})})).then(function(e){return e&&e.token?new chrome.cast.DialLaunchResponse(!1):jLc(a)})},kLc=function(a,b,c,d){_.fj(a.JSC$17332_checkScreenAvailabilityTimeoutKey_);
a.JSC$17332_checkScreenAvailabilityTimeoutKey_=0;SKc(a.JSC$17323_screenService_,b,function(e){e||d<0?c(e):a.JSC$17332_checkScreenAvailabilityTimeoutKey_=_.dj(function(){kLc(a,b,c,d-1)},300)})},g0=function(a,b){a.info("getDialAppInfoWithTimeout_ "+b);
gLc(a)&&(_.fj(a.getDialAppInfoTimeoutKey_),a.getDialAppInfoTimeoutKey_=0,b==0?nLc(a):a.getDialAppInfoTimeoutKey_=_.dj(function(){nLc(a)},b))},nLc=function(a){gLc(a)&&a.JSC$17332_session_.getDialAppInfo(function(b){a.info("getDialAppInfo dialLaunchData: "+JSON.stringify(b));
b=b.extraData||{};var c=null;if(b.loungeToken){var d;((d=a.screen_)==null?void 0:d.token)==b.loungeToken&&(c="staleLoungeToken")}else c="missingLoungeToken";c?(a.JSC$17332_lastLoungeTokenRefreshError_=c,g0(a,3E4)):(a.JSC$17332_isInitLoungeToken_=!1,a.JSC$17332_lastLoungeTokenRefreshError_="unknown",WKc(a,b.loungeToken),g0(a,b.loungeTokenRefreshIntervalMs))},function(b){a.info("getDialAppInfo error: "+b);
a.JSC$17332_lastLoungeTokenRefreshError_="noLoungeTokenResponse";g0(a,3E4)})},fLc=function(a){_.fj(a.JSC$17332_checkScreenAvailabilityTimeoutKey_);
a.JSC$17332_checkScreenAvailabilityTimeoutKey_=0;_.fj(a.getDialAppInfoTimeoutKey_);a.getDialAppInfoTimeoutKey_=0;a.cancelPolling_();a.cancelPolling_=function(){};
_.fj(a.JSC$17332_deferredLaunchDeadlineTimer_)};var h0=function(a,b){cZ.call(this,a,b,"ManualSession");this.JSC$17336_deferredLaunchDeadlineTimer_=_.dj((0,_.ug)(this.launchWithParams,this,null),150)};
_.z(h0,cZ);h0.prototype.stop=function(){this.onSessionStopped()};
h0.prototype.setCastSession=function(){};
h0.prototype.launchWithParams=function(){_.fj(this.JSC$17336_deferredLaunchDeadlineTimer_);this.JSC$17336_deferredLaunchDeadlineTimer_=NaN;var a=RY(this.JSC$17323_screenService_.getScreens(),this.receiver_.label);if(a)c0(this,a);else this.onSessionStopped(Error("Qk"))};
h0.prototype.disposeInternal=function(){_.fj(this.JSC$17336_deferredLaunchDeadlineTimer_);this.JSC$17336_deferredLaunchDeadlineTimer_=NaN;cZ.prototype.disposeInternal.call(this)};var gZ=function(a,b){_.gY.call(this);this.config_=b;this.JSC$17339_screenService_=a;this.JSC$17339_appId_=b.appId||"233637DE";this.JSC$17339_theme_=b.theme||"cl";this.disableDial_=b.disableCastApi||!1;this.forceMirroring_=b.forceMirroring||!1;this.JSC$17339_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.ug)(this.onReceiverAction_,this)};
_.z(gZ,_.gY);
gZ.prototype.init=function(a,b){chrome.cast.timeout.requestSession=3E4;var c=new chrome.cast.SessionRequest(this.JSC$17339_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.x("desktop_enable_cast_connect")&&(c.androidReceiverCompatible=!0);this.disableDial_||(c.dialRequest=new chrome.cast.DialRequest("YouTube"));var d=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;a=a||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var e=(0,_.ug)(this.onReceiverUpdated_,
this);c=new chrome.cast.ApiConfig(c,(0,_.ug)(this.onSessionEstablished_,this),e,d,a);c.customDialLaunchCallback=(0,_.ug)(this.onDialLaunchRequested_,this);chrome.cast.initialize(c,(0,_.ug)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),hwc(),this.JSC$17339_screenService_.subscribe("onlineScreenChange",(0,_.ug)(this.JSC$17341_onScreenChange_,this)),this.customReceivers_=oLc(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.ug)(function(g){this.warn_("Failed to set initial custom receivers: "+(0,_.Kz)(g))},this)),this.publish("yt-remote-cast2-availability-change",i0(this)),b(!0))},this),(0,_.ug)(function(g){this.warn_("Failed to initialize API: "+(0,_.Kz)(g));
b(!1)},this))};
gZ.prototype.setConnectedScreenStatus=function(a,b){j0("Setting connected screen ID: "+a+" -> "+b);if(this.JSC$17339_session_){var c=this.JSC$17339_session_.screen_;if(!a||c&&c.id!=a)j0("Unsetting old screen status: "+this.JSC$17339_session_.receiver_.friendlyName),k0(this,null)}if(a&&b){if(!this.JSC$17339_session_){a=RY(this.JSC$17339_screenService_.getScreens(),a);if(!a){j0("setConnectedScreenStatus: Unknown screen.");return}if(a.idType=="shortLived"){j0("setConnectedScreenStatus: Screen with id type to be short lived.");
return}c=pLc(this,a);c||(j0("setConnectedScreenStatus: Connected receiver not custom..."),c=new chrome.cast.Receiver(a.uuid?a.uuid:a.id,a.name),c.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(c),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.ug)(function(d){this.warn_("Failed to set initial custom receivers: "+(0,_.Kz)(d))},this)));
j0("setConnectedScreenStatus: new active receiver: "+c.friendlyName);k0(this,new h0(this.JSC$17339_screenService_,c),!0)}this.JSC$17339_session_.setDisplayStatus(b)}else j0("setConnectedScreenStatus: no screen.")};
var pLc=function(a,b){return b?_.Ka(a.customReceivers_,function(c){return QY(b,c.label)},a):null};
gZ.prototype.setLaunchParams=function(a){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$17339_session_?this.JSC$17339_session_.launchWithParams(a):this.warn_("Setting connection data without a session")};
gZ.prototype.JSC$17341_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$17339_session_?(this.JSC$17339_session_.stop(),k0(this,null)):j0("Stopping non-existing session")};
gZ.prototype.requestSession=function(){chrome.cast.requestSession((0,_.ug)(this.onSessionEstablished_,this),(0,_.ug)(this.onSessionRequestFailed_,this))};
gZ.prototype.disposeInternal=function(){this.JSC$17339_screenService_.unsubscribe("onlineScreenChange",(0,_.ug)(this.JSC$17341_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.Qa(_.Ji("yt.mdx.remote.debug.handlers_")||[],ewc);_.Tf(this.JSC$17339_session_);_.gY.prototype.disposeInternal.call(this)};
var j0=function(a){WY("Controller",a)};
gZ.prototype.warn_=function(a){WY("Controller",a)};
var ewc=function(a){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(a)},i0=function(a){return a.hasCastReceiver_||!!a.customReceivers_.length||!!a.JSC$17339_session_},k0=function(a,b,c){b!=a.JSC$17339_session_&&(_.Tf(a.JSC$17339_session_),(a.JSC$17339_session_=b)?(c?a.publish("yt-remote-cast2-receiver-resumed",b.receiver_):a.publish("yt-remote-cast2-receiver-selected",b.receiver_),b.subscribe("sessionScreen",(0,_.ug)(a.onSessionScreen_,a,b)),b.subscribe("sessionFailed",
function(){return qLc(a,b)}),b.screen_?a.publish("yt-remote-cast2-session-change",b.screen_):c&&a.JSC$17339_session_.launchWithParams(null)):a.publish("yt-remote-cast2-session-change",null))},qLc=function(a,b){a.JSC$17339_session_==b&&a.publish("yt-remote-cast2-session-failed")};
_.f=gZ.prototype;_.f.onSessionScreen_=function(a,b){this.JSC$17339_session_==a&&(b||k0(this,null),this.publish("yt-remote-cast2-session-change",b))};
_.f.onReceiverAction_=function(a,b){if(!this.isDisposed())if(a)switch(a.friendlyName=chrome.cast.unescape(a.friendlyName),j0("onReceiverAction_ "+a.label+" / "+a.friendlyName+"-- "+b),b){case chrome.cast.ReceiverAction.CAST:if(this.JSC$17339_session_)if(this.JSC$17339_session_.receiver_.label!=a.label)j0("onReceiverAction_: Stopping active receiver: "+this.JSC$17339_session_.receiver_.friendlyName),this.JSC$17339_session_.stop();else{j0("onReceiverAction_: Casting to active receiver.");this.JSC$17339_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$17339_session_.screen_);break}switch(a.receiverType){case chrome.cast.ReceiverType.CUSTOM:k0(this,new h0(this.JSC$17339_screenService_,a));break;case chrome.cast.ReceiverType.DIAL:k0(this,new f0(this.JSC$17339_screenService_,a,this.JSC$17339_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:k0(this,new e0(this.JSC$17339_screenService_,a,this.config_));break;default:this.warn_("Unknown receiver type: "+a.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$17339_session_&&
this.JSC$17339_session_.receiver_.label==a.label?this.JSC$17339_session_.stop():this.warn_("Stopping receiver w/o session: "+a.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.f.onDialLaunchRequested_=function(a){if(this.isDisposed())return Promise.reject(Error("Rk"));var b=a.receiver;b.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+b.friendlyName),b.receiverType=chrome.cast.ReceiverType.DIAL);var c=this.JSC$17339_session_?this.JSC$17339_session_.receiver_:null;if(!c||c.label!=b.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+b.friendlyName),Promise.reject(Error("Sk"));if(c&&c.label==b.label&&c.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$17339_session_.screen_)return j0("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$17339_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+c.receiverType+'" to "dial" for '+b.friendlyName);k0(this,new f0(this.JSC$17339_screenService_,b,this.JSC$17339_theme_,this.config_))}b=this.JSC$17339_session_;b.launchData_=a;b.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(a=b.launchData_.extraData||{},c=a.screenId||null,gLc(b)&&a.loungeToken?a.loungeTokenRefreshIntervalMs?a=lLc(b,{name:b.receiver_.friendlyName,screenId:a.screenId,loungeToken:a.loungeToken,dialId:b.launchData_.receiver.label,screenIdType:"shortLived"},a.loungeTokenRefreshIntervalMs):(_.Hi(Error("Ok`"+JSON.stringify(a))),a=mLc(b,c)):a=mLc(b,c)):a=jLc(b);return a};
_.f.onSessionEstablished_=function(a){var b=this;if(!this.isDisposed()&&!this.forceMirroring_){j0("New cast session ID: "+a.sessionId);var c=a.receiver;if(c.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$17339_session_)if(c.receiverType==chrome.cast.ReceiverType.CAST)j0("Got resumed cast session before resumed mdx connection."),c.friendlyName=chrome.cast.unescape(c.friendlyName),k0(this,new e0(this.JSC$17339_screenService_,c,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var d=this.JSC$17339_session_.receiver_,e=RY(this.JSC$17339_screenService_.getScreens(),d.label);e&&QY(e,c.label)&&d.receiverType!=chrome.cast.ReceiverType.CAST&&c.receiverType==chrome.cast.ReceiverType.CAST&&(j0("onSessionEstablished_: manual to cast session change "+c.friendlyName),_.Tf(this.JSC$17339_session_),this.JSC$17339_session_=new e0(this.JSC$17339_screenService_,c,this.config_),this.JSC$17339_session_.subscribe("sessionScreen",(0,_.ug)(this.onSessionScreen_,this,this.JSC$17339_session_)),
this.JSC$17339_session_.subscribe("sessionFailed",function(){return qLc(b,b.JSC$17339_session_)}),this.JSC$17339_session_.launchWithParams(null));
this.JSC$17339_session_.setCastSession(a)}}};
_.f.JSC$17341_getCastSession=function(){return this.JSC$17339_session_?this.JSC$17339_session_.JSC$17325_getCastSession():null};
_.f.onSessionRequestFailed_=function(a){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.Kz)(a)),a.code!=chrome.cast.ErrorCode.CANCEL&&k0(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.f.onReceiverUpdated_=function(a){j0("Receiver availability updated: "+a);if(!this.isDisposed()){var b=i0(this);this.hasCastReceiver_=a==chrome.cast.ReceiverAvailability.AVAILABLE;i0(this)!=b&&this.publish("yt-remote-cast2-availability-change",i0(this))}};
var oLc=function(a){var b=a.JSC$17339_screenService_.JSC$17321_getOnlineScreens(),c=a.JSC$17339_session_&&a.JSC$17339_session_.receiver_;a=_.zf(b,function(d){c&&QY(d,c.label)&&(c=null);var e=d.uuid?d.uuid:d.id,g=pLc(this,d);g?(g.label=e,g.friendlyName=d.name):(g=new chrome.cast.Receiver(e,d.name),g.receiverType=chrome.cast.ReceiverType.CUSTOM);return g},a);
c&&(c.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(c=new chrome.cast.Receiver(c.label,c.friendlyName),c.receiverType=chrome.cast.ReceiverType.CUSTOM),a.push(c));return a};
gZ.prototype.JSC$17341_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=oLc(this),j0("Updating custom receivers: "+(0,_.Kz)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.ug)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",i0(this)))};
gZ.prototype.setLaunchParams=gZ.prototype.setLaunchParams;gZ.prototype.setConnectedScreenStatus=gZ.prototype.setConnectedScreenStatus;gZ.prototype.stopSession=gZ.prototype.JSC$17341_stopSession;gZ.prototype.getCastSession=gZ.prototype.JSC$17341_getCastSession;gZ.prototype.requestSession=gZ.prototype.requestSession;gZ.prototype.init=gZ.prototype.init;gZ.prototype.dispose=gZ.prototype.dispose;var Fwc=[];var rLc=function(a){a.audioTrackId=null;a.trackData=null;a.playerState=-1;a.hasPrevious=!1;a.hasNext=!1;a.playerTime_=0;a.playerTimeAt_=_.mx();a.seekableStart_=0;a.seekableEnd_=0;a.duration_=0;a.loadedTime=0;a.liveIngestionTime_=NaN;a.isLive_=!1};
_.f=hZ.prototype;
_.f.reset=function(a){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;a&&(this.index=a.index,this.listId=a.listId,this.videoId=a.videoId,this.playerState=a.playerState,this.volume=a.volume,this.muted=a.muted,this.audioTrackId=a.audioTrackId,this.trackData=a.trackData,this.hasPrevious=a.hasPrevious,this.hasNext=a.hasNext,this.playerTime_=a.playerTime,this.playerTimeAt_=a.playerTimeAt,this.seekableStart_=a.seekableStart,this.seekableEnd_=a.seekableEnd,this.duration_=a.duration,this.loadedTime=
a.loadedTime,this.liveIngestionTime_=a.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.f.stopPlayer=function(){this.index=-1;this.videoId="";rLc(this)};
_.f.isPlaying=function(){return this.playerState==1};
_.f.isBuffering=function(){return this.playerState==3};
_.f.isAdPlaying=function(){return this.playerState==1081};
var l0=function(a,b){a.playerTime_=b;a.playerTimeAt_=_.mx()},sLc=function(a){switch(a.playerState){case 1:case 1081:return(_.mx()-a.playerTimeAt_)/1E3+a.playerTime_;
case -1E3:return 0}return a.playerTime_};
hZ.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.mx()-this.playerTimeAt_)/1E3:0):this.duration_};
var tLc=function(a,b,c){var d=a.videoId;a.videoId=b;a.index=c;b!=d&&rLc(a)},uLc=function(a){var b={};
b.index=a.index;b.listId=a.listId;b.videoId=a.videoId;b.playerState=a.playerState;b.volume=a.volume;b.muted=a.muted;b.audioTrackId=a.audioTrackId;b.trackData=_.yf.unsafeClone(a.trackData);b.hasPrevious=a.hasPrevious;b.hasNext=a.hasNext;b.playerTime=a.playerTime_;b.playerTimeAt=a.playerTimeAt_;b.seekableStart=a.seekableStart_;b.seekableEnd=a.seekableEnd_;b.duration=a.duration_;b.loadedTime=a.loadedTime;b.liveIngestionTime=a.liveIngestionTime_;return b};
hZ.prototype.clone=function(){return new hZ(uLc(this))};var m0=function(a,b){_.gY.call(this);var c=this;this.state_=0;this.connection_=a;this.contextSubscriptions_=[];this.actionQueue_=new Cvc;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.ug)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.ug)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.ug)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.ug)(this.onCloudviewAvailabilityChange_,this);var d=0;a?(d=a.getProxyState(),
d!=3&&(a.subscribe("proxyStateChange",this.setState_,this),vLc(this))):d=3;d!=0&&(b?this.setState_(d):_.dj(function(){c.setState_(d)},0));
(a=Jwc())&&wLc(this,a);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.z(m0,_.gY);m0.prototype.getState=function(){return this.state_};
m0.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
m0.prototype.reconnect=function(){this.connection_.reconnect()};
var n0=function(a){return new hZ(a.connection_.getPlayerContextData())};
_.f=m0.prototype;_.f.play=function(){o0(this)?(this.castMedia_?this.castMedia_.play(null,_.By,xLc(this,"play")):p0(this,"play"),yLc(this,1,sLc(n0(this))),this.publish("remotePlayerChange")):q0(this,this.play)};
_.f.pause=function(){o0(this)?(this.castMedia_?this.castMedia_.pause(null,_.By,xLc(this,"pause")):p0(this,"pause"),yLc(this,2,sLc(n0(this))),this.publish("remotePlayerChange")):q0(this,this.pause)};
_.f.seekTo=function(a){if(o0(this)){if(this.castMedia_){var b=n0(this),c=new chrome.cast.media.SeekRequest;c.currentTime=a;b.isPlaying()||b.isBuffering()?c.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:c.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(c,_.By,xLc(this,"seekTo",{newTime:a}))}else p0(this,"seekTo",{newTime:a});yLc(this,3,a);this.publish("remotePlayerChange")}else q0(this,_.vo(this.seekTo,a))};
_.f.stop=function(){if(o0(this)){this.castMedia_?this.castMedia_.stop(null,_.By,xLc(this,"stopVideo")):p0(this,"stopVideo");var a=n0(this);a.stopPlayer();r0(this,a);this.publish("remotePlayerChange")}else q0(this,this.stop)};
_.f.setVolume=function(a,b){if(o0(this)){var c=n0(this);if(this.castSession_){if(c.volume!=a){var d=Math.round(a)/100;this.castSession_.setReceiverVolumeLevel(d,(0,_.ug)(function(){XY("set receiver volume: "+d)},this),(0,_.ug)(function(){this.warn_("failed to set receiver volume.")},this))}c.muted!=b&&this.castSession_.setReceiverMuted(b,(0,_.ug)(function(){XY("set receiver muted: "+b)},this),(0,_.ug)(function(){this.warn_("failed to set receiver muted.")},this))}else{var e={volume:a,
muted:b};c.volume!=-1&&(e.delta=a-c.volume);p0(this,"setVolume",e)}c.muted=b;c.volume=a;r0(this,c)}else q0(this,_.vo(this.setVolume,a,b))};
_.f.setAudioTrack=function(a,b){o0(this)?(b=b.getLanguageInfo().getId(),p0(this,"setAudioTrack",{videoId:a,audioTrackId:b}),a=n0(this),a.audioTrackId=b,r0(this,a)):q0(this,_.vo(this.setAudioTrack,a,b))};
_.f.addVideo=function(a){o0(this)?p0(this,"addVideo",{videoId:a}):q0(this,_.vo(this.addVideo,a))};
_.f.addPlaylist=function(a){o0(this)?p0(this,"addVideos",{listId:a}):q0(this,_.vo(this.addPlaylist,a))};
_.f.addVideos=function(a){a.length==0?this.warn_("Ignore add videos request due to empty list"):o0(this)?p0(this,"addVideos",{videoIds:a.join(",")}):q0(this,_.vo(this.addVideos,a))};
_.f.JSC$17351_removeVideo=function(a){o0(this)?p0(this,"removeVideo",{videoId:a}):q0(this,_.vo(this.JSC$17351_removeVideo,a))};
_.f.JSC$17351_insertVideo=function(a){o0(this)?p0(this,"insertVideo",{videoId:a}):q0(this,_.vo(this.JSC$17351_insertVideo,a))};
_.f.playVideo=function(a,b,c,d,e,g,k){d=d===void 0?null:d;e=e===void 0?null:e;g=g===void 0?null:g;k=k===void 0?null:k;var m=n0(this),n={videoId:a};c!==void 0&&(n.currentIndex=c);tLc(m,a,c||0);b!==void 0&&(l0(m,b),n.currentTime=b);d&&(n.listId=d);e&&(n.playerParams=e);g&&(n.clickTrackingParams=g);k&&(n.locationInfo=(0,_.Kz)(k));p0(this,"setPlaylist",n);d||r0(this,m)};
_.f.nextVideo=function(a,b){if(o0(this)){if(a&&b){var c=n0(this);tLc(c,a,b);r0(this,c)}p0(this,"next")}else q0(this,_.vo(this.nextVideo,a,b))};
_.f.clearPlaylist=function(){if(o0(this)){p0(this,"clearPlaylist");var a=n0(this);a.reset();r0(this,a);this.publish("remotePlayerChange")}else q0(this,this.clearPlaylist)};
_.f.dispose=function(){if(this.state_!=3){var a=this.state_;this.state_=3;this.publish("proxyStateChange",a,this.state_)}_.gY.prototype.dispose.call(this)};
_.f.disposeInternal=function(){zLc(this);this.connection_=null;this.actionQueue_.clear();wLc(this,null);_.gY.prototype.disposeInternal.call(this)};
var vLc=function(a){_.Mi("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(b){this.contextSubscriptions_.push(this.connection_.subscribe(b,_.vo(this.onProxyEvent_,b),this))},a)},zLc=function(a){_.Mi(a.contextSubscriptions_,function(b){this.connection_.unsubscribeByKey(b)},a);
a.contextSubscriptions_.length=0},o0=function(a){return a.getState()==1},q0=function(a,b){a.actionQueue_.getCount()<50&&a.actionQueue_.enqueue(b)},yLc=function(a,b,c){var d=n0(a);
l0(d,c);d.playerState!=-1E3&&(d.playerState=b);r0(a,d)},p0=function(a,b,c){a.connection_.sendMessage(b,c)},r0=function(a,b){zLc(a);
a.connection_.setPlayerContextData(uLc(b));vLc(a)};
m0.prototype.setState_=function(a){if((a!=this.state_||a==2)&&this.state_!=3&&a!=0){var b=this.state_;this.state_=a;this.publish("proxyStateChange",b,a);if(a==1)for(;!this.actionQueue_.isEmpty();)a=this.actionQueue_,LIc(a),a.front_.pop().apply(this);else a==3&&this.dispose()}};
m0.prototype.onProxyEvent_=function(a,b){this.publish(a,b)};
var wLc=function(a,b){a.castSession_&&(a.castSession_.removeUpdateListener(a.boundCastStatusListener_),a.castSession_.removeMediaListener(a.boundCastMediaListener_),a.onCastMediaChange_(null));a.castSession_=b;if(a.castSession_&&(XY("Setting cast session: "+a.castSession_.sessionId),a.castSession_.addUpdateListener(a.boundCastStatusListener_),a.castSession_.addMediaListener(a.boundCastMediaListener_),a.castSession_.media.length))a.onCastMediaChange_(a.castSession_.media[0])};
m0.prototype.onCastStatusUpdate_=function(a){if(!a)this.onCastMediaChange_(null),wLc(this,null);else if(this.castSession_.receiver.volume){a=this.castSession_.receiver.volume;var b=n0(this),c=Math.round(100*a.level||0);if(b.volume!=c||b.muted!=a.muted)XY("Cast volume update: "+a.level+(a.muted?" muted":"")),b.volume=c,b.muted=!!a.muted,r0(this,b)}};
m0.prototype.onCastMediaChange_=function(a){XY("Cast media: "+!!a);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=a)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),ALc(this),this.publish("remotePlayerChange")};
var ALc=function(a){var b=a.castMedia_.media,c=a.castMedia_.customData;if(b&&c){var d=n0(a);b.contentId!=d.videoId&&XY("Cast changing video to: "+b.contentId);d.videoId=b.contentId;d.playerState=c.playerState;l0(d,a.castMedia_.getEstimatedTime());r0(a,d)}else XY("No cast media video. Ignoring state update.")};
m0.prototype.onCastMediaUpdate_=function(a){if(a)ALc(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
m0.prototype.onCloudviewAvailabilityChange_=function(){var a=Jwc();a&&wLc(this,a)};
m0.prototype.warn_=function(a){WY("CP",a)};
var xLc=function(a,b,c){return(0,_.ug)(function(d){this.warn_("Failed to "+b+" with cast v2 channel. Error code: "+d.code);d.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+b+" using MDx browser channel."),p0(this,b,c))},a)};var t0=function(a,b,c,d){d=d===void 0?!1:d;_.gY.call(this);var e=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$17358_http_=a;this.enableConnectWithInitialState_=d;this.listeners_.push(_.Vk(window,"beforeunload",function(){e.JSC$17361_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new hZ;this.currentScreenId_=b.id;this.currentScreenIdType_=b.idType;this.channelService=dwc(this.JSC$17358_http_,c,this.JSC$17361_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){BLc(e)});
this.channelService.listen("channelClosed",function(){s0("Channel closed");isNaN(e.connectTimerId_)?SY(!0):SY();e.dispose()});
this.channelService.listen("channelError",function(g){SY();isNaN(e.getReconnectTimeout_())?(g==1&&e.currentScreenIdType_=="shortLived"&&e.publish("browserChannelAuthError",g),s0("Channel error: "+g+" without reconnection"),e.dispose()):(e.reconnecting_=!0,s0("Channel error: "+g+" with reconnection in "+e.getReconnectTimeout_()+" ms"),CLc(e,2))});
this.channelService.listen("channelMessage",function(g){DLc(e,g)});
this.channelService.setLoungeToken(b.token);this.subscribe("remoteQueueChange",function(){var g=e.playerContext_.videoId;Qvc()&&_.rG("yt-remote-session-video-id",g)})};
_.z(t0,_.gY);
t0.prototype.connect=function(a,b){if(b){var c=b.listId,d=b.videoId,e=b.videoIds,g=b.playerParams,k=b.clickTrackingParams,m=b.index,n={videoId:d},r=b.currentTime,t=b.locationInfo;b=b.loopMode;r!==void 0&&(n.currentTime=r<=5?0:r);g&&(n.playerParams=g);t&&(n.locationInfo=t);k&&(n.clickTrackingParams=k);c&&(n.listId=c);e&&e.length>0&&(n.videoIds=e.join(","));m!==void 0&&(n.currentIndex=m);this.enableConnectWithInitialState_&&(n.loopMode=b||"LOOP_MODE_OFF");c&&(this.playerContext_.listId=c);this.playerContext_.videoId=
d;this.playerContext_.index=m||0;this.playerContext_.state=3;l0(this.playerContext_,r);this.autoplayMode_="UNSUPPORTED";c=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";s0("Connecting with "+c+" and params: "+(0,_.Kz)(n));this.channelService.connect({method:c,params:(0,_.Kz)(n)},a,Vvc())}else s0("Connecting without params"),this.channelService.connect({},a,Vvc());ELc(this)};
t0.prototype.setLoungeToken=function(a){this.channelService.setLoungeToken(a)};
t0.prototype.dispose=function(){this.isDisposed()||(_.Rj("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),CLc(this,3));_.gY.prototype.dispose.call(this)};
t0.prototype.disposeInternal=function(){FLc(this);GLc(this);HLc(this);_.fj(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.fj(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.rsa(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.gY.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var ILc=function(a){return _.Ka(a.connectedDevices_,function(b){return b.type=="LOUNGE_SCREEN"})},s0=function(a){WY("conn",a)},CLc=function(a,b){a.publish("proxyStateChange",b)},ELc=function(a){a.connectTimerId_=_.dj(function(){s0("Connecting timeout");
a.JSC$17361_disconnect_(1)},2E4)},FLc=function(a){_.fj(a.connectTimerId_);
a.connectTimerId_=NaN},HLc=function(a){_.fj(a.reconnectedCheckScreenTimeout_);
a.reconnectedCheckScreenTimeout_=NaN},JLc=function(a){GLc(a);
a.playingSyncTimerId_=_.dj(function(){u0(a,"getNowPlaying")},2E4)},GLc=function(a){_.fj(a.playingSyncTimerId_);
a.playingSyncTimerId_=NaN},BLc=function(a){s0("Channel opened");
a.reconnecting_&&(a.reconnecting_=!1,HLc(a),a.reconnectedCheckScreenTimeout_=_.dj(function(){s0("Timing out waiting for a screen.");a.JSC$17361_disconnect_(1)},15E3))},LLc=function(a,b){var c=null;
if(b){var d=ILc(a);d&&(c={clientName:d.clientName,deviceMake:d.brand,deviceModel:d.model,osVersion:d.osVersion})}_.Rj("yt.mdx.remote.remoteClient_",c);b&&(FLc(a),HLc(a));c=a.channelService.isChannelOpened()&&isNaN(a.connectTimerId_);b==c?b&&(CLc(a,1),u0(a,"getSubtitlesTrack")):b?(a.getOtherConnectedRemoteId_()&&a.playerContext_.reset(),CLc(a,1),u0(a,"getNowPlaying"),KLc(a)):a.JSC$17361_disconnect_(1)},MLc=function(a,b){var c=b.params.videoId;
delete b.params.videoId;c==a.playerContext_.videoId&&(_.yf.isEmpty(b.params)?a.playerContext_.trackData=null:a.playerContext_.trackData=b.params,a.publish("remotePlayerChange"))},NLc=function(a,b,c){var d=b.params.videoId||b.params.video_id,e=parseInt(b.params.currentIndex,10);
a.playerContext_.listId=b.params.listId||a.playerContext_.listId;tLc(a.playerContext_,d,e);a.publish("remoteQueueChange",c)},OLc=function(a,b){b.params=b.params||{};
NLc(a,b,"NOW_PLAYING_MAY_CHANGE");a.onStateChange_(b);a.publish("autoplayDismissed")};
t0.prototype.onStateChange_=function(a){var b=parseInt(a.params.currentTime||a.params.current_time,10);l0(this.playerContext_,isNaN(b)?0:b);b=parseInt(a.params.state,10);b=isNaN(b)?-1:b;b==-1&&this.playerContext_.playerState==-1E3&&(b=-1E3);this.playerContext_.playerState=b;b=Number(a.params.loadedTime);this.playerContext_.loadedTime=isNaN(b)?0:b;b=Number(a.params.duration);this.playerContext_.duration_=isNaN(b)?0:b;b=this.playerContext_;var c=Number(a.params.liveIngestionTime);b.liveIngestionTime_=
c;b.isLive_=isNaN(c)?!1:!0;b=this.playerContext_;c=Number(a.params.seekableStartTime);a=Number(a.params.seekableEndTime);b.seekableStart_=isNaN(c)?0:c;b.seekableEnd_=isNaN(a)?0:a;this.playerContext_.playerState==1?JLc(this):GLc(this);this.publish("remotePlayerChange")};
t0.prototype.onAdStateChange_=function(a){if(this.playerContext_.playerState!=-1E3){var b=1085;switch(parseInt(a.params.adState,10)){case 1:b=1081;break;case 2:b=1084;break;case 0:b=1083}this.playerContext_.playerState=b;a=parseInt(a.params.currentTime,10);l0(this.playerContext_,isNaN(a)?0:a);this.publish("remotePlayerChange")}};
var PLc=function(a,b){var c=b.params.muted=="true";a.playerContext_.volume=parseInt(b.params.volume,10);a.playerContext_.muted=c;a.publish("remotePlayerChange")},QLc=function(a,b){a.autoplayVideoId_=b.params.videoId;
a.publish("nowAutoplaying",parseInt(b.params.timeout,10))},RLc=function(a,b){a.autoplayVideoId_=b.params.videoId||null;
a.publish("autoplayUpNext",a.autoplayVideoId_)},SLc=function(a,b){a.autoplayMode_=b.params.autoplayMode;
a.publish("autoplayModeChange",a.autoplayMode_);a.autoplayMode_=="DISABLED"&&a.publish("autoplayDismissed")},TLc=function(a,b){var c=b.params.hasNext=="true";
a.playerContext_.hasPrevious=b.params.hasPrevious=="true";a.playerContext_.hasNext=c;a.publish("previousNextChange")};
t0.prototype.isCapabilitySupportedOnConnectedDevices_=function(a){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var b=_.h(this.connectedDevices_),c=b.next();!c.done;c=b.next())if(!c.value.capabilities.has(a))return!1;return!0};
var DLc=function(a,b){b=b.message;b.params?s0("Received: action="+b.action+", params="+(0,_.Kz)(b.params)):s0("Received: action="+b.action+" {}");switch(b.action){case "loungeStatus":b=(0,_.An)(b.params.devices);a.connectedDevices_=_.zf(b,function(d){return new $_(d)});
b=!!_.Ka(a.connectedDevices_,function(d){return d.type=="LOUNGE_SCREEN"});
LLc(a,b);b=a.isCapabilitySupportedOnConnectedDevices_("mlm");a.publish("multiStateLoopEnabled",b);break;case "loungeScreenDisconnected":isc(a.connectedDevices_,function(d){return d.type=="LOUNGE_SCREEN"});
LLc(a,!1);break;case "remoteConnected":var c=new $_((0,_.An)(b.params.device));_.Ka(a.connectedDevices_,function(d){return d.equals(c)})||_.vaa(a.connectedDevices_,c);
break;case "remoteDisconnected":c=new $_((0,_.An)(b.params.device));isc(a.connectedDevices_,function(d){return d.equals(c)});
break;case "gracefulDisconnect":break;case "playlistModified":NLc(a,b,"QUEUE_MODIFIED");break;case "nowPlaying":OLc(a,b);break;case "onStateChange":a.onStateChange_(b);break;case "onAdStateChange":a.onAdStateChange_(b);break;case "onVolumeChanged":PLc(a,b);break;case "onSubtitlesTrackChanged":MLc(a,b);break;case "nowAutoplaying":QLc(a,b);break;case "autoplayDismissed":a.publish("autoplayDismissed");break;case "autoplayUpNext":RLc(a,b);break;case "onAutoplayModeChanged":SLc(a,b);break;case "onHasPreviousNextChanged":TLc(a,
b);break;case "requestAssistedSignIn":a.publish("assistedSignInRequested",b.params.authCode);break;case "onLoopModeChanged":a.publish("loopModeChange",b.params.loopMode);break;default:s0("Unrecognized action: "+b.action)}};
_.f=t0.prototype;_.f.getProxyState_=function(){var a=3;this.isDisposed()||(a=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(a=1):a=2);return a};
_.f.JSC$17361_disconnect_=function(a){s0("Disconnecting with "+a);_.Rj("yt.mdx.remote.remoteClient_",null);FLc(this);this.publish("beforeDisconnect",a);a==1&&SY();this.channelService.disconnect(a);this.dispose()};
_.f.getPlayerContextData_=function(){var a=this.playerContext_;this.clientVideoId_&&(a=this.playerContext_.clone(),tLc(a,this.clientVideoId_,a.index));return uLc(a)};
_.f.setPlayerContextData_=function(a){var b=this,c=new hZ(a);c.videoId&&c.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=c.videoId,_.fj(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.dj(function(){if(b.clientVideoId_){var e=b.clientVideoId_;b.clientVideoId_=null;b.playerContext_.videoId!=e&&u0(b,"getNowPlaying")}},5E3));
var d=[];this.playerContext_.listId==c.listId&&this.playerContext_.videoId==c.videoId&&this.playerContext_.index==c.index||d.push("remoteQueueChange");this.playerContext_.playerState==c.playerState&&this.playerContext_.volume==c.volume&&this.playerContext_.muted==c.muted&&sLc(this.playerContext_)==sLc(c)&&(0,_.Kz)(this.playerContext_.trackData)==(0,_.Kz)(c.trackData)||d.push("remotePlayerChange");this.playerContext_.reset(a);_.Mi(d,function(e){this.publish(e)},this)};
_.f.getOtherConnectedRemoteId_=function(){var a=this.channelService.getDeviceId(),b=_.Ka(this.connectedDevices_,function(c){return c.type=="REMOTE_CONTROL"&&c.id!=a});
return b?b.id:""};
_.f.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.f.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.f.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.f.JSC$17361_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var KLc=function(a){_.fj(a.idleDisconnectTimerId_);a.idleDisconnectTimerId_=_.dj(function(){a.JSC$17361_disconnect_(1)},864E5)},u0=function(a,b,c){c?s0("Sending: action="+b+", params="+(0,_.Kz)(c)):s0("Sending: action="+b);
a.channelService.sendMessage(b,c)};
t0.prototype.sendMessageWithUserAction_=function(a,b){u0(this,a,b);KLc(this)};
t0.prototype.JSC$17361_getXsrfToken_=function(){var a=_.lj.get("SAPISID","")||_.lj.get("__Secure-1PAPISID",void 0)||"",b=_.lj.get("__Secure-3PAPISID","")||"";if(!a&&!b)return"";a=_.wc(_.rg(a),2);b=_.wc(_.rg(b),2);return _.wc(_.rg(","+a+","+b),2)};
t0.prototype.subscribe=t0.prototype.subscribe;t0.prototype.unsubscribeByKey=t0.prototype.unsubscribeByKey;t0.prototype.getProxyState=t0.prototype.getProxyState_;t0.prototype.disconnect=t0.prototype.JSC$17361_disconnect_;t0.prototype.getPlayerContextData=t0.prototype.getPlayerContextData_;t0.prototype.setPlayerContextData=t0.prototype.setPlayerContextData_;t0.prototype.getOtherConnectedRemoteId=t0.prototype.getOtherConnectedRemoteId_;t0.prototype.getReconnectTimeout=t0.prototype.getReconnectTimeout_;
t0.prototype.getAutoplayMode=t0.prototype.getAutoplayMode_;t0.prototype.getAutoplayVideoId=t0.prototype.getAutoplayVideoId_;t0.prototype.reconnect=t0.prototype.JSC$17361_reconnect_;t0.prototype.sendMessage=t0.prototype.sendMessageWithUserAction_;t0.prototype.getXsrfToken=t0.prototype.JSC$17361_getXsrfToken_;t0.prototype.isCapabilitySupportedOnConnectedDevices=t0.prototype.isCapabilitySupportedOnConnectedDevices_;var ULc=function(a){ZY.call(this,"ScreenServiceProxy");this.instance_=a;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.ug)(this.JSC$17364_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.ug)(this.onOnlineScreenChange_,this)))};
_.z(ULc,ZY);_.f=ULc.prototype;_.f.getScreens=function(a){return this.instance_.$_gs(a)};
_.f.contains=function(a){return!!this.instance_.$_c(a)};
_.f.get=function(a){return this.instance_.$_g(a)};
_.f.start=function(){this.instance_.$_st()};
_.f.add=function(a,b,c){this.instance_.$_a(a,b,c)};
_.f.remove=function(a,b,c){this.instance_.$_r(a,b,c)};
_.f.updateName=function(a,b,c,d){this.instance_.$_un(a,b,c,d)};
_.f.disposeInternal=function(){for(var a=this.subscriptionKeys_.length,b=0;b<a;++b)this.instance_.$_ubk(this.subscriptionKeys_[b]);this.subscriptionKeys_.length=0;this.instance_=null;ZY.prototype.disposeInternal.call(this)};
_.f.JSC$17364_onScreenChange_=function(){this.publish("screenChange")};
_.f.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
bZ.prototype.$_st=bZ.prototype.start;bZ.prototype.$_gspc=bZ.prototype.JSC$17321_getScreenByPairingCode;bZ.prototype.$_gsppc=bZ.prototype.JSC$17321_getScreenByPollingPairingCode;bZ.prototype.$_c=bZ.prototype.contains;bZ.prototype.$_g=bZ.prototype.get;bZ.prototype.$_a=bZ.prototype.add;bZ.prototype.$_un=bZ.prototype.updateName;bZ.prototype.$_r=bZ.prototype.remove;bZ.prototype.$_gs=bZ.prototype.getScreens;bZ.prototype.$_gos=bZ.prototype.JSC$17321_getOnlineScreens;bZ.prototype.$_s=bZ.prototype.subscribe;
bZ.prototype.$_ubk=bZ.prototype.unsubscribeByKey;var aMc=function(a){Zvc();if(!TY||!TY.get("yt-remote-disable-remote-module-for-dev")){a=_.Ei("MDX_CONFIG")||a;sCc();Svc();v0||(v0=new OY(a?a.loungeApiHost:void 0),$vc()&&(v0.basePath="/api/loungedev"));w0||(w0=_.Ji("yt.mdx.remote.deferredProxies_")||[],_.Rj("yt.mdx.remote.deferredProxies_",w0));VLc();var b=x0();if(!b){var c=new bZ(v0,a?a.disableAutomaticScreenCache||!1:!1);_.Rj("yt.mdx.remote.screenService_",c);b=x0();var d={};a&&(d={appId:a.appId,disableDial:a.disableDial,theme:a.theme,loadCastApiSetupScript:a.loadCastApiSetupScript,
disableCastApi:a.disableCastApi,enableDialLoungeToken:a.enableDialLoungeToken,enableCastLoungeToken:a.enableCastLoungeToken,forceMirroring:a.forceMirroring});_.Rj("yt.mdx.remote.enableConnectWithInitialState_",a?a.enableConnectWithInitialState||!1:!1);Dwc(c,function(g){g?y0()&&Lwc(y0(),"YouTube TV"):c.subscribe("onlineScreenChange",function(){nY("yt-remote-receiver-availability-change")})},d)}if(a&&!_.Ji("yt.mdx.remote.initialized_")){_.Rj("yt.mdx.remote.initialized_",!0);
z0("Initializing: "+(0,_.Kz)(a));A0.push(_.dl("yt-remote-cast2-api-ready",function(){nY("yt-remote-api-ready")}));
A0.push(_.dl("yt-remote-cast2-availability-change",function(){nY("yt-remote-receiver-availability-change")}));
A0.push(_.dl("yt-remote-cast2-receiver-selected",function(){WLc();nY("yt-remote-auto-connect","cast-selector-receiver")}));
A0.push(_.dl("yt-remote-cast2-receiver-resumed",function(){nY("yt-remote-receiver-resumed","cast-selector-receiver")}));
A0.push(_.dl("yt-remote-cast2-session-change",XLc));A0.push(_.dl("yt-remote-connection-change",function(g){g?Lwc(y0(),"YouTube TV"):YLc()||(Lwc(null,null),Iwc())}));
A0.push(_.dl("yt-remote-cast2-session-failed",function(){nY("yt-remote-connection-failed")}));
d=ZLc();a.isAuto&&(d.id+="#dial");var e=a.capabilities||[];_.x("desktop_enable_autoplay")&&e.push("atp");e.length>0&&(d.capabilities=e);d.name=a.device;d.app=a.app;(a=a.theme)&&(d.theme=a);z0(" -- with channel params: "+(0,_.Kz)(d));d?(_.rG("yt-remote-session-app",d.app),_.rG("yt-remote-session-name",d.name)):(_.tG("yt-remote-session-app"),_.tG("yt-remote-session-name"));_.Rj("yt.mdx.remote.channelParams_",d);b.start();y0()||$Lc()}}},cMc=function(){var a=x0().instance_.$_gos();
var b=bMc();b&&E0()&&(Nvc(a,b)||a.push(b));return Mvc(a)},dMc=function(){var a=cMc(),b=bMc();
b||(b=YLc());return _.Ka(a,function(c){return b&&QY(b,c.key)?!0:!1})},bMc=function(){var a=y0();
if(!a)return null;var b=x0().getScreens();return RY(b,a)},XLc=function(a){z0("remote.onCastSessionChange_: "+Mwc(a));
if(a){var b=bMc();b&&b.id==a.id?(Lwc(b.id,"YouTube TV"),a.idType=="shortLived"&&(a=a.token)&&(b=E0())&&b.setLoungeToken(a)):(b&&eMc(),fMc(a,1))}else E0()&&eMc()},eMc=function(){Kwc()?fZ().stopSession():eZ("stopSession called before API ready.");
var a=E0();a&&(a.disconnect(1),gMc(null))},hMc=function(){var a=E0();
return a&&a.getProxyState()!=3?new m0(E0(),void 0):null},z0=function(a){WY("remote",a)},x0=function(){if(!iMc){var a=_.Ji("yt.mdx.remote.screenService_");
iMc=a?new ULc(a):null}return iMc},y0=function(){return _.Ji("yt.mdx.remote.currentScreenId_")},jMc=function(a){_.Rj("yt.mdx.remote.currentScreenId_",a)},WLc=function(){_.Rj("yt.mdx.remote.connectData_",null)},E0=function(){return _.Ji("yt.mdx.remote.connection_")},gMc=function(a){var b=E0();
WLc();a||jMc("");_.Rj("yt.mdx.remote.connection_",a);w0&&(_.Mi(w0,function(c){c(a)}),w0.length=0);
b&&!a?nY("yt-remote-connection-change",!1):!b&&a&&nY("yt-remote-connection-change",!0)},YLc=function(){var a=Qvc();
if(!a)return null;var b=x0();if(!b)return null;b=b.getScreens();return RY(b,a)},fMc=function(a,b){jMc(a.id);
a=new t0(v0,a,ZLc(),_.Ji("yt.mdx.remote.enableConnectWithInitialState_")||!1);a.connect(b,_.Ji("yt.mdx.remote.connectData_"));a.subscribe("beforeDisconnect",function(c){nY("yt-remote-before-disconnect",c)});
a.subscribe("beforeDispose",function(){E0()&&gMc(null)});
a.subscribe("browserChannelAuthError",function(){var c=bMc();c&&c.idType=="shortLived"&&(Kwc()?fZ().handleBrowserChannelAuthError():eZ("refreshLoungeToken called before API ready."))});
gMc(a)},$Lc=function(){var a=YLc();
a?(z0("Resume connection to: "+Mwc(a)),fMc(a,0)):(SY(),Iwc(),z0("Skipping connecting because no session screen found."))},v0=null,w0=null,iMc=null,VLc=function(){var a=ZLc();
if(_.yf.isEmpty(a)){a=Pvc();var b=_.sG("yt-remote-session-name")||"",c=_.sG("yt-remote-session-app")||"";a={device:"REMOTE_CONTROL",id:a,name:b,app:c,mdxVersion:3};a.authuser=String(_.Ei("SESSION_INDEX","0"));(b=_.Ei("DELEGATED_SESSION_ID"))&&(a.pageId=String(b));_.Rj("yt.mdx.remote.channelParams_",a)}},ZLc=function(){return _.Ji("yt.mdx.remote.channelParams_")||{}},A0=[];var kMc=new _.Ek("yt-menu"),lMc=function(){},nMc=function(a,b,c){a=b=="right-click"?c.rightClickMenuPopupHint:c.menuPopupHint;
if(!(mMc(b)>10))return b=b||"default",kMc.set(b+"-impression",mMc(b)+1),a},mMc=function(a){return parseInt(kMc.get((a||"default")+"-impression")||0,10)};
_.lx(lMc);var oMc=function(){this.contexts_=new WeakMap;this.JSC$17370_networkService_=this.activeContext_=null},pMc=function(a,b,c){var d=a.contexts_.get(b);
d||(d=new rCc(a.JSC$17370_networkService_),a.contexts_.set(b,d));a.activeContext_=d;c&&a.activeContext_.reset();a.activeContext_.start();return a.activeContext_};var F0=function(){};
F0.prototype.enqueue=function(){var a=this,b;return _.l(function(c){if(a.isCounterfactual())return(b=a.getCounterfactualData())&&a.shouldLogCounterfactualImpression()&&a.sendImpressionEndpoints(b),c.return();a.doEnqueue();_.se(c)})};
F0.prototype.sendImpressionEndpoints=function(a){_.Nl.getInstance().triggerOptionalAction("yt-service-request",{},a[0])};var G0=function(a,b){this.renderer=a;this.page=b};
_.z(G0,F0);G0.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
G0.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
G0.prototype.shouldLogCounterfactualImpression=function(){return!0};
G0.prototype.doEnqueue=function(){var a=_.au(this.page);a&&a.pause();this.renderer.impressionCommand&&_.Nl.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.NB(_.Nl.getInstance(),[this.renderer.promoCommand],this.page)};var qMc=function(a,b){this.renderer=a;this.resolver=_.Tt();this.JSC$17382_enforcementCounter=new _.Xgb;b?this.JSC$17382_playerManager=_.au(b):this.JSC$17382_playerManager=null;_.kq(1,!0)};
_.z(qMc,F0);_.f=qMc.prototype;_.f.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var a=[];this.renderer.impressionEndpoints.forEach(function(b){(b=_.Es(b))&&a.push(b)});
return a}};
_.f.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.f.shouldLogCounterfactualImpression=function(){var a=_.w3a();a?(this.JSC$17382_enforcementCounter.increment("POPUP"),_.kq(3)):_.kq(2);return a};
_.f.cancel=function(){this.resolver.promise.cancel()};
_.f.doEnqueue=function(){var a=this;_.w3a()?(this.JSC$17382_enforcementCounter.increment("POPUP"),_.kq(3),rMc(this)):this.JSC$17382_playerManager?(this.resolver.promise.then(function(){rMc(a)}),sMc(this.resolver,this.JSC$17382_playerManager)):_.kq(2)};
var sMc=function(a,b){var c=_.Tt();b.getPlayerPromise().then(function(d){c.resolve(d)});
c.promise.then(function(d){d.addEventListener("onAbnormalityDetected",a.resolve);_.Hz(a.promise,function(){d.removeEventListener("onAbnormalityDetected",a.resolve)})});
a.promise.thenCatch(function(){c.promise.cancel()})},rMc=function(a){_.kq(3);
var b={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:a.renderer}};b=_.Nl.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:b},{});Promise.all(b).then(function(){tMc();a.JSC$17382_playerManager&&a.JSC$17382_playerManager.pause()})},tMc=function(){Vsc(function(a,b){_.Rrc(a,b);
a===0?_.kq(7):_.kq(4)})};var uMc=function(a,b){this.renderer=a;this.page=b;this.resolver=_.Tt()};
_.z(uMc,F0);_.f=uMc.prototype;_.f.cancel=function(){this.resolver.promise.cancel()};
_.f.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.f.isCounterfactual=function(){return!this.renderer.isVisible};
_.f.shouldLogCounterfactualImpression=function(){return!0};
_.f.doEnqueue=function(){var a=this;this.resolver.promise.then(function(){var c={popup:{mealbarPromoRenderer:a.renderer},popupType:"MEALBAR"};_.Nl.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:c},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var b=_.au(this.page);b&&vMc(this.resolver,b)}break;default:this.resolver.resolve()}};
var vMc=function(a,b){var c=_.Tt();b.getPlayerPromise().then(function(d){c.resolve(d)});
c.promise.then(function(d){d.addEventListener("onAdEnd",a.resolve);_.Hz(a.promise,function(){d.removeEventListener("onAdEnd",a.resolve)})});
a.promise.thenCatch(function(){c.promise.cancel()})};var wMc=function(a,b){this.renderer=a;this.page=b};
_.z(wMc,F0);_.f=wMc.prototype;_.f.cancel=function(){this.JSC$17390_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17390_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17390_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.f.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.f.isCounterfactual=function(){return!this.renderer.isVisible};
_.f.shouldLogCounterfactualImpression=function(){return!0};
_.f.doEnqueue=function(){var a=this,b,c;((b=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(c=b.playbackUpsellDialogTriggerConditionData)==null?void 0:c.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$17390_downloadedVideosCountSelectorUnsubscriber=_.wF(_.Yp(),Qsc,function(d,e){d>e&&(xMc(a),a.cancel())}):xMc(this)};
var xMc=function(a){var b={popup:{upsellDialogRenderer:a.renderer},popupType:"MODAL"};_.Nl.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:b},{});(a=_.au(a.page))&&a.pause()};var H0={},yMc=(H0.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",H0.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",H0.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",H0.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",H0.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",H0.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",H0.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",H0),zMc=function(a,b){this.renderer=a;this.targetManager=
b};
_.z(zMc,F0);_.f=zMc.prototype;_.f.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$17397_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17397_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17397_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.f.getCounterfactualData=function(){if(this.isCounterfactual()){var a;return(a=this.renderer.promoConfig)==null?void 0:a.impressionEndpoints}};
_.f.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.f.shouldLogCounterfactualImpression=function(){return!0};
_.f.doEnqueue=function(){var a=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$17397_downloadedVideosCountSelectorUnsubscriber=_.wF(_.Yp(),Qsc,function(b,c){a.renderer.targetId&&b>c&&(TAc(a.targetManager,a.renderer.targetId,AMc(a)),a.cancel())});
break;default:TAc(this.targetManager,this.renderer.targetId,AMc(this))}};
var AMc=function(a){var b;if((b=a.renderer.suggestedPosition)==null?0:b.type)var c=yMc[a.renderer.suggestedPosition.type];c||(c="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:a.renderer},popupType:"HINT",position:c}}};var BMc=function(){this.previousPage=null},CMc;
BMc.prototype.registerPromoCommand=function(a,b){DMc(this,void 0,void 0,_.y(a.roadblock,TJc),void 0,void 0,b)};
var DMc=function(a,b,c,d,e,g,k){a.previousPage!==k&&a.pendingTooltipPromo&&a.pendingTooltipPromo.cancel();a.previousPage=k;e?(a.pendingEnforcementPromo&&a.pendingEnforcementPromo.cancel(),a.pendingEnforcementPromo=new qMc(e,k),a.pendingEnforcementPromo.enqueue()):g?(a.pendingCommandWrapperPromo=new G0(g,k),a.pendingCommandWrapperPromo.enqueue()):d?(a.pendingRoadblockPromo&&a.pendingRoadblockPromo.cancel(),a.pendingRoadblockPromo=new wMc(d,k),a.pendingRoadblockPromo.enqueue()):b?(a.pendingMealbarPromo&&
a.pendingMealbarPromo.cancel(),a.pendingMealbarPromo=new uMc(b,k),a.pendingMealbarPromo.enqueue()):c&&(a.pendingTooltipPromo&&a.pendingTooltipPromo.cancel(),a.pendingTooltipPromo=new zMc(c,_.pG()),a.pendingTooltipPromo.enqueue())},EMc=function(){CMc||(CMc=new BMc);
return CMc};var Qwc=!1;var Xzc=function(a,b){var c=_.Ei("SESSION_INDEX");this.actionToken_=a;this.commonToken_=b;this.sessionIndex_=c},Wzc=function(a){var b=_.Tt(),c=_.Ji("payments.business.integration.bootstrap"),d=_.Ji("payments.business.integration"),e=d.Style.create().withMaterialDesignStyle(),g=d.mashupMode.popup("instrument-manager");
c.asMashupMode(g).usingUserIndex(a.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(e).inStandaloneContext(d.standaloneContextAuthId.forUserId()).instrumentManager(a.actionToken_,a.commonToken_.length>0?a.commonToken_:void 0,function(k){var m=k.instrumentId;m?b.resolve(m):(m=_.Ji("payments.business.integration.scenario.InstrumentManager"),b.reject(k.errorCode&&k.errorCode===m.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(k){_.Hi(k);
b.reject("instrumentManagerLoadError")});
return b.promise};var kZ=function(a,b,c){this.payloadName="transactionFlowFailed";this.payload={errorType:a,serializedTransactionFlowLoggingParams:b,isUserDismiss:c===void 0?!1:c}};
_.Rj("yt.ypc.shared.YpcTransactionFlowError",kZ);var FMc=function(){return _.ir.apply(this,arguments)||this};
_.z(FMc,_.ir);FMc.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
FMc.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
var I0=FMc;I0.prototype.onErrorMessageDismiss=I0.prototype.onErrorMessageDismiss;_.U([_.O({readOnly:!0,observer:"errorRendererChanged"}),_.W("design:type",Object)],I0.prototype,"errorRenderer",void 0);_.U([_.M("yt-live-chat-error-message-dismiss"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],I0.prototype,"onErrorMessageDismiss",null);I0=_.U([_.jr()],I0);var GMc=[I0.prototype];var HMc;var IMc;var JMc=new _.Ek("yt-live-chat"),KMc=new Map;KMc.set("timestamp_toggle","show-timestamps");KMc.set("reactions_toggle","allow-reactions");var LMc=function(){return _.P.apply(this,arguments)||this};
_.z(LMc,_.P);_.f=LMc.prototype;_.f.menuItemIdentifierChanged=function(){var a;(a=this.data)!=null&&a.menuItemIdentifier&&(a=KMc.get(this.data.menuItemIdentifier))&&(_.x("enable_lwe_web_mute")?(a=JMc.get(a),this.isToggled=!(a===void 0?!this.data.isToggled:!a)):this.isToggled=JMc.get(a))};
_.f.onFocus=function(){this.toggleButton.focus()};
_.f.onTap=function(){var a=this.data.command;a&&this.componentBehavior.resolveCommand(a)};
_.f.computeText=function(a,b,c){return this.componentBehavior.getSimpleString(a?c:b)};
_.f.computeIcon=function(a,b,c){return(a=a?c:b)&&a.iconType?_.fs(a.iconType):""};
var J0=LMc;J0.prototype.onTap=J0.prototype.onTap;J0.prototype.onFocus=J0.prototype.onFocus;J0.prototype.menuItemIdentifierChanged=J0.prototype.menuItemIdentifierChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],J0.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],J0.prototype,"componentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],J0.prototype,"data",void 0);
_.U([_.O({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.W("design:type",String)],J0.prototype,"icon",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],J0.prototype,"isToggled",void 0);_.U([_.gr("tp-yt-paper-toggle-button"),_.W("design:type",Object)],J0.prototype,"toggleButton",void 0);_.U([_.N("data.menuItemIdentifier"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],J0.prototype,"menuItemIdentifierChanged",null);
_.U([_.M("focus"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],J0.prototype,"onFocus",null);_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],J0.prototype,"onTap",null);J0=_.U([_.ur({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],J0);
_.S(J0,"yt-live-chat-toggle-renderer",function(){if(IMc===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;HMc===void 0&&(HMc=document.createElement("template"));var d=HMc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);IMc=a}a=IMc;return a},{mode:_.x("live_chat_enable_sink_wrapper")?2:0});var MMc=new _.fB("NAVIGATION_PROGRESS_TOKEN");_.Bi("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var NMc={},Xwc=(NMc.CSI=function(a,b){var c={};c[a]=b;a=_.Ii(_.wCa)(c);Object.keys(a).length>0&&_.Ho(a)},NMc.ECATCHER=function(a){return function(b,c){_.Ei(a)[b]=c}}("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"),NMc);var OMc={},PMc={},QMc=(PMc[HJc.name]=!0,PMc),K0=function(){var a=_.ir.apply(this,arguments)||this;a._noAccessors=!0;a.tabGesturesIsActive=!1;a.actionRouterIsRoot=!0;a.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"};a.pageTitle="";a.titleSuffix="YouTube";a.unseenNotificationCount=
0;a.hasNavigated=!1;a.hasSetScrollTopForNavigation=!1;a.pagePreparer=null;a.zwiebackInitJobId=0;a.dataUpdatePromise=null;a.loadDepsPromise=_.oo();a.hasPendingNavigation=!1;a.pendingPlayerOnResponseReceivedActions=[];return a};
_.z(K0,_.ir);K0.prototype.created=function(){this.pendingPlayerOnResponseReceivedActions=[];_.x("enable_browser_cookie_status_monitoring")&&_.ul(_.zk,this.reportBrowserCookieSetting)};
K0.prototype.reportBrowserCookieSetting=function(){var a=new VBc,b="other";_.wx?b="chrome":_.vx?b="firefox":_.Dj?b="safari":_.Pj&&(b="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(c){a.increment(_.nj(),c,b)}).catch(function(){a.increment(_.nj(),!1,b)}):a.increment(_.nj(),!1,b)};
K0.prototype.attached=function(){RMc(this);document.addEventListener("yt-navigate-cache",_.er(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var a=L0();a.init();a.dispatchElement=this.hostElement};
var RMc=function(a,b){b=b===void 0?0:b;var c=_.v().resolve(_.Wi(_.oG));if(c)SMc(a,c);else{if(b>=5)throw Error("Tk");setTimeout(function(){RMc(a,b+1)},0)}},SMc=function(a,b){b.addEventListener("yt-navigate-start",_.er(a,a.onYtNavigateStart));
b.addEventListener("yt-navigate-finish",_.er(a,a.onYtNavigateFinish));b.addEventListener("yt-navigate-error",_.er(a,a.onYtNavigateError));b.addEventListener("yt-page-data-fetched",_.er(a,a.onYtPageDataFetched));b.addEventListener("yt-navigate-redirect",_.er(a,a.onYtNavigateRedirect))};
_.f=K0.prototype;
_.f.detached=function(){var a=_.v().resolve(_.oG);a.removeEventListener("yt-navigate-start",_.er(this,this.onYtNavigateStart));a.removeEventListener("yt-navigate-finish",_.er(this,this.onYtNavigateFinish));a.removeEventListener("yt-navigate-error",_.er(this,this.onYtNavigateError));a.removeEventListener("yt-page-data-fetched",_.er(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.er(this,this.onYtNavigateCache));a.removeEventListener("yt-navigate-redirect",_.er(this,
this.onYtNavigateRedirect));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.f.setPageOffset=function(a,b){a?_.ho(this.hostElement,"yt-set-page-offset",[a,b]):_.Bl(Error("Uk"))};
_.f.setPageOffsetForNavigation=function(a,b){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(a,b))};
_.f.onYtNavigateSetPageOffset=function(a,b){this.setPageOffsetForNavigation(b.page,b.offset)};
_.f.getPageOffset=function(){var a=_.E(this.hostElement).querySelector("#page-manager").getCurrentPage(),b=0;a&&(b=_.ho(this.hostElement,"yt-get-page-offset",[a])[0]);return b};
_.f.onYtHistoryPop=function(a,b){if(_.Gi("DISABLE_WARM_LOADS"))a.preventDefault(),window.location.reload();else{var c=_.v().resolve(_.oG);c.hasPendingNavigation()&&a.preventDefault();c.cancelPendingNavigation();_.ko(this.hostElement,"yt-pending-navigation-cancelled");b.errorMsg&&(a=b.errorMsg.split(" - "),b=Error(a[0]),a.length==2&&a[1]&&(_.El(b,a[1]),_.Dl(b)),window.location.reload())}};
_.f.onYtHistoryLoad=function(a,b){var c=this;if(_.Gi("DISABLE_WARM_LOADS"))window.location.reload();else{this.hasError=!1;(a=b.endpoint)&&Object.keys(a).length||(a=null);var d=b.historyEntry,e=_.v().resolve(_.oG),g=_.v().resolve(_.$t),k=null;d&&d.rootData&&(k=d.rootData);var m=k&&TMc(k);!k||m||k.filler?a?(e.navigate(a,!0),UMc(this,a)):(b.legacyBorder||m||(b.JSC$26193_savedComponentState==null&&k==null?_.Dl(new _.qj("Incomplete history entry",b.forward)):_.Cl(new _.qj("Malformed history entry",b.JSC$26193_savedComponentState,
b.forward,k))),window.location.reload()):(_.GCa({isHot:!0}),_.Ho({webInfo:{navigationReason:"h"}}),_.TUa(),_.Jo("srt"),_.Jo("pdc"),this.cancelPendingTasks(),VMc(this,b.forward,k),k.player&&(k.player.loaded=!1),UMc(this,a),_.PWb(e,a||{},k,2,{},!1).then(function(){c.setPageOffset(g.getCurrentPage(),d.scrollTop||0)}))}};
_.f.initHistoryManager=function(a){if(!this.hasNavigated){this.hasNavigated=!0;var b=_.E(this.hostElement).querySelector("#page-manager").getCurrentData();a=isNaN(a)?this.getPageOffset():a;var c=_.v().resolve(_.oG).currentEndpoint;this.replaceState(c,b,a)}};
_.f.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.f.onYtNavigateStart=function(a,b){this.cancelPendingTasks();b.noProgressBar||(a=_.v().resolve(_.Wi(MMc)))&&a.start();a=this.hasPendingNavigation?null:this.data;this.hasError=!1;var c=_.v().resolve(_.$t),d,e,g;_.x("kevlar_use_vimio_behavior")&&!((d=b.endpoint)==null?0:(e=d.commandMetadata)==null?0:(g=e.webCommandMetadata)==null?0:g.ignoreNavigation)&&(d=c.getCurrentPage())&&d.disconnectVisibilityRoot();c.prepareForNavigation(b.pageType,b.endpoint);_.x("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=
new _.ZG(1,"pcl"),_.$G(this.pagePreparer,c.preparePage.bind(c,b.pageType,b.endpoint)));d=this.getPageOffset();this.initHistoryManager(d);b.reload||this.hasPendingNavigation?this.replaceState(b.endpoint,a,d):(a==null?void 0:a.page)==="watch"&&b.pageType==="watch"&&_.x("kevlar_replace_watch_to_watch_history_state")?this.replaceState(b.endpoint,a,d):(a==null?void 0:a.page)!=="shorts"||b.pageType!=="shorts"||b.endpoint.reelWatchEndpoint.sequenceParams||_.x("short_to_short_back_nav_killswitch")?b.type!=
"navigate-back"&&b.type!="navigate-forward"&&(b.pageType==="shorts"&&_.go(this.hostElement,"yt-shorts-reset"),this.saveAndPush(b.url,b.endpoint,a,d)):this.replaceState(b.endpoint,a,0);this.hasPendingNavigation=!0};
var WMc=function(a){a.hasPendingNavigation=!1;(a=_.v().resolve(_.Wi(MMc)))&&a.finish()};
K0.prototype.onYtNavigateError=function(a,b){WMc(this);this.hasError=!0;b&&b.errorMessage?this.errorMessage=b.errorMessage:this.errorMessage=void 0;a=this.get("endpoint.commandMetadata.webCommandMetadata.url",b);var c=_.Oi(window.location.href);a&&!c.pbjreload&&(b=b.navigationErrorReason||"10",_.x("kevlar_parent_on_pbjreload")&&(c={csn:_.Fn()},this.get("data.endpoint.clickTrackingParams")&&(c.itct=this.data.endpoint.clickTrackingParams),_.Zn(a,c)),_.Fq(_.Pi(a,{pbjreload:b})))};
K0.prototype.onYtNavigateCache=function(a,b){var c=this,d=b.url,e=b.endpoint,g=b.data;a=!!b.miniplayer;b=!!b.skipHistory;if(d&&e&&g){var k=this.getPageOffset(),m=this.data||null;b||this.saveAndPush(d,e,m,k);d=_.PWb(_.v().resolve(_.oG),e,g,a?4:3,{},a);a&&d.then(function(){c.dataUpdatePromise&&c.dataUpdatePromise.then(function(){var n=_.v().resolve(_.$t);c.setPageOffset(n.getCurrentPage(),0)})})}};
K0.prototype.onYtNavigateFinish=function(a,b){var c=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){XMc(c,b.fromHistory)})};
var XMc=function(a,b){WMc(a);if(a.pendingPlayerOnResponseReceivedActions){for(var c=_.h(a.pendingPlayerOnResponseReceivedActions),d=c.next();!d.done;d=c.next())_.is(d.value,a.hostElement);a.pendingPlayerOnResponseReceivedActions=[]}c=_.v().resolve(_.$t);!b&&a.hasNavigated&&((b=c.getCurrentPage())?b.is==="ytd-shorts"||a.tabGesturesIsActive||a.setPageOffsetForNavigation(b,0):_.Dl(Error("Vk")));_.Cr(function(){_.Cr(function(){_.Jo("pda")})})};
K0.prototype.onYtNavigateRedirect=function(a){a.detail.url&&this.replaceUrl(a.detail.url)};
K0.prototype.onYtNavigate=function(a){if(!a.detail.endpoint){var b=new _.qj("Error: Missing yt-navigate endpoint from target:",a.target,a.target.nodeName);_.Bl(b)}if(b=_.x("cold_missing_history"))b=L0(),b.init(!1),b=!(b.browserHistory.boundHistoryReplaceState&&b.browserHistory.boundHistoryPushState);if(b){_.Bi("DISABLE_WARM_LOADS",!0);b=new _.qj("Failed to initialize history manager",this.getDebugString());var c=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
c?_.Dl(b):_.Bl(b)}b=a.detail.endpoint;var d,e;_.x("debug_forward_web_query_parameters")&&((d=b.commandMetadata)==null?0:(e=d.webCommandMetadata)==null?0:e.url)&&(b=JSON.parse(JSON.stringify(b)),b.commandMetadata.webCommandMetadata.url=_.roa(b.commandMetadata.webCommandMetadata.url,window.location.search));a={type:0,command:b,form:{params:a.detail.params,tempData:a.detail.tempData||{},requestType:a.detail.type,createScreenConfig:a.detail.createScreenConfig,reload:a.detail.reload?a.detail.reload:!1}};
_.x("kevlar_yt_navigate_command_handler")?(d=_.v().resolve(_.Xi),a.form.skipDefaultElement=!0,d.resolveCommand(b,{form:a.form})):this.handleNavigate(a)};
K0.prototype.handleNavigate=function(a){this.hasSetScrollTopForNavigation=!1;var b=_.v().resolve(_.oG),c=a.form||{};b.navigate(a.command,c.reload,c.params,c.tempData,c.requestType,c.createScreenConfig)&&UMc(this,a.command,c.tempData)};
K0.prototype.onYtPageDataFetched=function(a,b){try{_.EOb().reset();this.data=b.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.v().resolve(_.$t).updatePageData(this.data);var c=this.get("playerResponse.responseContext.serviceTrackingParams",this.data);c&&Ywc(c);var d=this.get("response.responseContext.serviceTrackingParams",this.data);d&&Ywc(d);var e=
this.get("playerResponse.onResponseReceivedActions",this.data);e&&(e=YMc(this,e));e&&_.no(this.hostElement,e,this.hostElement);var g=this.get("playerResponse.responseContext.consistencyTokenJar",this.data),k=this.get("response.responseContext.consistencyTokenJar",this.data);if(g||k){var m=_.kJa(),n=(0,_.yf.getValues)(m.tokenJars);g&&m.replace(n,g);k&&m.replace(n,k)}}catch(r){_.Bl(r)}};
var UMc=function(a,b,c){try{a.onYtEndpointChangeHandler(b,c)}catch(d){_.Bl(d)}};
_.f=K0.prototype;_.f.onYtEndpointChangeHandler=function(){};
_.f.setPageTitle=function(a){a=(this.pageTitle=a)?a+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+a};
_.f.onYtUpdateTitle=function(a,b){this.setPageTitle(b)};
_.f.setUnseenNotificationCount=function(a){this.unseenNotificationCount=a;this.setPageTitle(this.pageTitle)};
_.f.handleUpdateNotificationsUnseenCountAction=function(a){_.y(a,mJc)&&((a=_.y(a,mJc).unseenCount)?this.setUnseenNotificationCount(a):this.setUnseenNotificationCount(0))};
_.f.handleClearCookieAction=function(a){var b;(a=(b=_.y(a,iJc))==null?void 0:b.cookieName)&&_.Joa(a)};
_.f.onYtUpdateUnseenNotificationCount=function(a,b){this.setUnseenNotificationCount(b)};
_.f.loadData=function(a){var b=this;this.loadDepsPromise.then(function(){var c=_.v().resolve(_.Wi(_.oG));c||_.Bl(Error("Wk"));if(a&&a.response){if(!a.endpoint){var d=_.Qn(window.document.location.href)||"/",e="";if(d==="/"||d.startsWith("/?"))e="WEB_PAGE_TYPE_BROWSE";a.endpoint={commandMetadata:{webCommandMetadata:{url:d,webPageType:e,rootVe:3854}}}}_.PWb(c,a.endpoint,a,5,{})}else a.endpoint?c.navigate(a.endpoint):c.navigate(_.vF);_.zk.cancelJob(b.zwiebackInitJobId);b.zwiebackInitJobId=_.zk.addLowPriorityJob(Rwc)})};
var L0=function(){return _.v().resolve(_.pWb)};
_.f=K0.prototype;_.f.getDebugString=function(){return L0().getDebugString()};
_.f.getThirdPartyManipulationSuspected=function(){return L0().getThirdPartyManipulationSuspected()};
_.f.replaceState=function(a,b,c){L0().saveAndReplace(a,b,c)};
_.f.saveAndPush=function(a,b,c,d){L0().saveAndPush(a,b,c,d)};
_.f.replaceUrl=function(a){L0().replaceUrl(a)};
var TMc=function(a){return _.x("web_honor_cache_for_back")&&(_.y(a.endpoint,_.Vn)||_.y(a.endpoint,_.tq))?!0:!a||isNaN(a.expirationTime)?!1:(0,_.Uj)()>a.expirationTime},VMc=function(a,b,c){var d=a.get("response.trackingParams",c),e=_.En(),g=_.Fn();
if(d&&e&&g&&(d=a.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",c),!d&&c.rootVe&&(d=c.rootVe),e=b?"forwardButton":"backButton",b=a.get("playerResponse.topbar.desktopTopbarRenderer."+e+".buttonRenderer.command.clickTrackingParams",a.data),a=a.get("response.topbar.desktopTopbarRenderer."+e+".buttonRenderer.command.clickTrackingParams",a.data),b=(a=b||a)?_.qs(a):void 0,a=_.ms(),e=[_.oo(c)],_.mF(a,d,b,{dataPromises:e,csnToClone:c.csn}),c.graftedVes))for(c=
_.h(c.graftedVes),d=c.next();!d.done;d=c.next())_.nF(a,d.value)};
K0.prototype.onStoreGraftedVeAction=function(a){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(a)):_.Dl(Error("Xk"))};
var YMc=function(a,b){return b.filter(function(c){for(var d in c)if(QMc[d])return a.pendingPlayerOnResponseReceivedActions.push(c),!0;return!1})};
_.Vm.Object.defineProperties(K0.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
var M0=K0;M0.prototype.onStoreGraftedVeAction=M0.prototype.onStoreGraftedVeAction;M0.prototype.loadData=M0.prototype.loadData;M0.prototype.onYtUpdateUnseenNotificationCount=M0.prototype.onYtUpdateUnseenNotificationCount;M0.prototype.handleClearCookieAction=M0.prototype.handleClearCookieAction;M0.prototype.handleUpdateNotificationsUnseenCountAction=M0.prototype.handleUpdateNotificationsUnseenCountAction;M0.prototype.setUnseenNotificationCount=M0.prototype.setUnseenNotificationCount;
M0.prototype.onYtUpdateTitle=M0.prototype.onYtUpdateTitle;M0.prototype.setPageTitle=M0.prototype.setPageTitle;M0.prototype.onYtEndpointChangeHandler=M0.prototype.onYtEndpointChangeHandler;M0.prototype.onYtPageDataFetched=M0.prototype.onYtPageDataFetched;M0.prototype.handleNavigate=M0.prototype.handleNavigate;M0.prototype.onYtNavigate=M0.prototype.onYtNavigate;M0.prototype.onYtNavigateRedirect=M0.prototype.onYtNavigateRedirect;M0.prototype.onYtNavigateFinish=M0.prototype.onYtNavigateFinish;
M0.prototype.onYtNavigateCache=M0.prototype.onYtNavigateCache;M0.prototype.onYtNavigateError=M0.prototype.onYtNavigateError;M0.prototype.onYtNavigateStart=M0.prototype.onYtNavigateStart;M0.prototype.cancelPendingTasks=M0.prototype.cancelPendingTasks;M0.prototype.initHistoryManager=M0.prototype.initHistoryManager;M0.prototype.onYtHistoryLoad=M0.prototype.onYtHistoryLoad;M0.prototype.onYtHistoryPop=M0.prototype.onYtHistoryPop;M0.prototype.onYtNavigateSetPageOffset=M0.prototype.onYtNavigateSetPageOffset;
M0.prototype.setPageOffset=M0.prototype.setPageOffset;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],M0.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],M0.prototype,"data",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],M0.prototype,"hasError",void 0);_.U([_.O(),_.W("design:type",Object)],M0.prototype,"errorMessage",void 0);
_.U([_.M("yt-navigate-set-page-offset"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],M0.prototype,"onYtNavigateSetPageOffset",null);_.U([_.M("yt-history-pop"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],M0.prototype,"onYtHistoryPop",null);
_.U([_.M("yt-history-load"),_.W("design:type",Function),_.W("design:paramtypes",[Event,_.iWb]),_.W("design:returntype")],M0.prototype,"onYtHistoryLoad",null);_.U([_.M("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],M0.prototype,"onYtNavigate",null);_.U([_.M("yt-update-title"),_.W("design:type",Function),_.W("design:paramtypes",[Event,String]),_.W("design:returntype")],M0.prototype,"onYtUpdateTitle",null);
_.U([_.M("yt-update-unseen-notification-count"),_.W("design:type",Function),_.W("design:paramtypes",[Event,Number]),_.W("design:returntype")],M0.prototype,"onYtUpdateUnseenNotificationCount",null);M0=_.U([_.jr()],M0);OMc.YtdAppBehavior=[_.bH.YtActionHandlerBehavior,M0.prototype];var N0=function(){var a=_.ir.apply(this,arguments)||this;a._noAccessors=!0;return a};
_.z(N0,_.ir);N0.prototype.ready=function(){var a=this;_.E(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){a.onChange_()})};
N0.prototype.dataChanged_=function(){_.E(this.hostElement).querySelector("#checkbox").checked=!1};
N0.prototype.onChange_=function(){var a=_.E(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.go(this.hostElement,"yt-dismissal-reason-"+a,this.data.feedbackToken)};
var O0=N0;O0.prototype.dataChanged_=O0.prototype.dataChanged_;_.U([_.O(),_.W("design:type",Object)],O0.prototype,"data",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],O0.prototype,"dataChanged_",null);O0=_.U([_.jr()],O0);var ZMc=[O0.prototype];var P0=function(){var a=_.ir.apply(this,arguments)||this;a.timeoutJobId=0;a.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return a};
_.z(P0,_.ir);P0.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
P0.prototype.startTimeout=function(){var a=this,b=this.data&&this.data.displayDurationSeconds;b&&!this.timeoutJobId&&(this.timeoutJobId=_.ul(_.zk,function(){_.ho(a.hostElement,"yt-close-popup-action",[a.is]);a.timeoutJobId=0},b*1E3))};
P0.prototype.cancelTimeout=function(){_.zk.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
var Q0=P0;Q0.prototype.ytdHatsSurveyBehaviorDataChanged=Q0.prototype.ytdHatsSurveyBehaviorDataChanged;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],Q0.prototype,"ytActionHandlerBehavior",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Q0.prototype,"ytdHatsSurveyBehaviorDataChanged",null);Q0=_.U([_.jr()],Q0);var $Mc=[_.bH.YtActionHandlerBehavior,Q0.prototype];var aNc=function(a,b){return a.SHARED_RENDERERS_.hasOwnProperty(b)?"yt":a.prefix},R0={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}};R0.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.x("kevlar_mealbar_above_player"),modern:_.x("web_modern_dialogs"),noAutoFocus:!0,noCancelOnOutsideClick:!0,withBackdrop:!1},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"}};
R0.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};R0.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};R0.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
R0.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)"}};
R0.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};
R0.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};
R0.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};
R0.CONTEXTUAL_SHEET={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1,avoidOuterEdge:!0},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0};R0.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"}};
R0.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};R0.TOAST={component:null,properties:{}};var bNc=new function(a,b,c){this.supportedPopups=a;this.navigationEndpointPopupMap=b;this.popupTypeMap=c;this.supportedPopups=a;this.navigationEndpointPopupMap=b;this.popupTypeMap=c}({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:_.x("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"}),cNc=new function(){this.prefix="ytd";this.SHARED_RENDERERS_={aboutThisAdRenderer:!0,
bubbleHintRenderer:!0,confirmDialogRenderer:!0,fancyDismissibleDialogRenderer:!0,mealbarPromoRenderer:!0,notificationActionRenderer:!0,reportDetailsFormRenderer:!0,reportFormModalRenderer:!0,sharingEmbedRenderer:!0,sharingRenderer:!0,showActionDialogRenderer:!0,sortFilterSubMenuPopupRenderer:!0,tooltipRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,upsellDialogRenderer:!0,ypcOffersModalRenderer:!0,ypcUpgradeDialogRenderer:!0,
loadingRenderer:!0,sheetViewModel:!0,miniAppGameInfoDialogViewModel:!0,profileCardViewModel:!0,genAiFeedbackFormViewModel:!0,dialogViewModel:!0,gulpTriggeringDialogViewModel:!0,imageEditorRenderer:!0,storiesViewerViewModel:!0};this.JSC$17449_popupConfig=R0;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 dNc=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.II.getInstance()},S0=function(a,b){var c=a.pageNameToElement.get(b);
if(!c){switch(b){case "watch":var d=_.x("web_watch_force_learning_journey_for_testing")?_.YG("ytd-watch-learning-journey"):_.x("kevlar_watch_fixie")?_.YG("ytd-watch-fixie"):_.x("kevlar_watch_grid")?_.YG("ytd-watch-grid"):_.YG("ytd-watch-flexy");break;case "learning-journey-watch":d=_.YG("ytd-watch-learning-journey");break;case "shorts":d=_.YG("ytd-shorts");break;case "search":d=_.YG("ytd-search");break;case "channel":d=_.YG("ytd-browse");d.pageSubtype="channels";break;case "trending":d=_.YG("ytd-browse");
d.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "live":case "news":case "sports":case "music":case "playables":case "mini_app":case "red":case "WEB_PAGE_TYPE_SETTINGS":case "history":case "labs":case "handle":case "subscriptions":case "filteredsubscriptions":case "memberships-and-purchases":case "channel-memberships-shopfront":case "yts-products":case "ypc-offers":case "ypc-checkout":case "fashion":case "hashtag-landing-page":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":d=
_.YG("ytd-browse");d.pageSubtype=b;break;case "browse":d=_.YG("ytd-browse");break;default:_.Dl(new _.qj("Error getting page element for type",b))}c=d;a.pageNameToElement.set(b,c)}return c};
dNc.prototype.preparePage=function(a,b,c){c&&(a=rY(c)||a);if(a!=="watch"){var d=this.elementPoolPopulator,e=a;e!=d.targetPage_&&d.pendingPages_.indexOf(e)>-1&&(d.targetPage_&&(d.pendingPages_.unshift(d.targetPage_),d.abort()),WAc(d,e),_.XUb(d,e))}if((d=S0(this,a))||!_.y(c,_.Ml)){d.isAttached||d===b||(d.hidden=!0);if(!(d.data||a==="watch"&&_.x("swatcheroo_page_pool_dont_provide_filler_data"))){var g;if(a=(g=_.Ei("FILLER_DATA",{})[a])==null?void 0:g.response)d.data=a}return d}};var eNc=function(a){this.JSC$28123_clientRoot=a;this.playlistHandlerActionMap={"yt-add-to-playlist-command":bxc,"yt-end-playlist-command":cxc,"yt-recover-playlist-command":exc,"yt-refresh-playlist-command":hxc,"yt-playlist-remove-videos-action":fxc};_.Ol(_.Nl.getInstance(),this.playlistHandlerActionMap,this.JSC$28123_clientRoot);fBc()},fNc;var T0=function(a,b,c){this.apiKey=a;this.endpoint=b;this.confidenceThreshold=c===void 0?.5:c;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=b==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||b==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
b==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||b==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new WHc};
_.f=T0.prototype;
_.f.start=function(a){if(this.state===0)if(this.isOnline()){a.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=a.supportsHttpHeadersOverwriteParam);a.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=a.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.Io("voice_assistant");_.Ko("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=a.languageCode||"en-US";this.supportsCrossDomainXhr=a.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=a.youtubeAssistantRequest||null;this.listeningHandler=a.listeningHandler||this.listeningHandler;this.audioDetectedHandler=a.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=a.stopHandler||this.stopHandler;this.completeHandler=a.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=a.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=a.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
a.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=a.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=a.accessToken;this.additionalHeaders=a.additionalHeaders||{};var b;this.prefetchResponseTimeoutMs=(b=a.prefetchResponseTimeoutMs)!=null?b:this.prefetchResponseTimeoutMs;gNc(this);this.startAudio();hNc(this)}else this.errorHandler("OFFLINE")};
_.f.stop=function(a){var b=a===void 0?{}:a;a=b.logCancel===void 0?!0:b.logCancel;var c=b.logMicClosed===void 0?!0:b.logMicClosed;var d=b.handleError===void 0?!0:b.handleError;b=b.handleStop===void 0?!0:b.handleStop;this.state!==0&&(a&&U0("voz_cx"),V0(this,{logMicClosed:c,handleStop:b}),d&&this.errorHandler("ABORTED"))};
_.f.getState=function(){return this.state};
_.f.isSupported=function(){return!0};
_.f.stopAudio=function(a){(a===void 0||a)&&U0("voz_mf")};
_.f.startAudio=function(){U0("voz_vp");return _.oo(null)};
var iNc=function(a,b){a.channelOpen&&(a.state!==2&&(a.state=2,U0("voz_ss"),a.listeningHandler()),b=new Uint8Array(b),b='{ "audioIn": "'+_.wc(b)+'" }',a.channel.send(b))},V0=function(a,b){var c=b===void 0?{}:b;
b=c.logMicClosed===void 0?!0:c.logMicClosed;c=c.handleStop===void 0?!0:c.handleStop;a.vozEndOfDataTimeout>-1&&(clearTimeout(a.vozEndOfDataTimeout),a.vozEndOfDataTimeout=-1);jNc(a);a.stopAudio(b);a.channel&&(a.channelOpen=!1,a.manuallyClosedChannel=!0,a.channel.close(),a.channel=void 0);a.transcribedSpeechResults=[];a.state=0;c&&a.stopHandler()},gNc=function(a){var b={httpHeadersOverwriteParam:a.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},a.additionalHeaders,a.accessToken&&a.isUsingVoz?{Authorization:"Bearer "+a.accessToken}:{"x-goog-api-key":a.apiKey}),supportsCrossDomainXhr:a.supportsCrossDomainXhr};a.channel=new O_(a.endpoint,b);a.channel.open();_.ss(a.channel,"w",function(){var c=a.channel,d=c.send,e=a.isUsingVoz?"PLACEHOLDER":"example";e={config:{dialogStateIn:{languageCode:a.languageCode},deviceConfig:{deviceId:e,deviceModelId:e},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!a.isUsingVoz)e.config.requestType=4;else if(a.isUsingVoz&&a.youtubeAssistantRequest){var g=JSON.stringify(a.youtubeAssistantRequest);e.config.internalIn={youtubeAssistantS3InputJson:g}}d.call(c,e);a.channelOpen=!0;a.manuallyClosedChannel=!1});
_.ss(a.channel,"x",function(){a.manuallyClosedChannel||(a.channelOpen=!1,a.channel=void 0,V0(a))});
_.ss(a.channel,"z",function(c){if(c.data){jNc(a);for(var d=0;d<c.data.length;d++){var e=a,g=c.data[d],k=g.speechResults;if(k)a:{var m=[];g=[];var n=!1;k=_.h(k);for(var r=k.next();!r.done;r=k.next()){r=r.value;if(r.noSpeech){V0(e);e.errorHandler("NO_SPEECH");break a}r.transcript!==void 0&&r.stability!==void 0&&(r.stability<e.confidenceThreshold&&(n=!0),n?g.push(r.transcript):m.push(r.transcript))}if(m.length!==0||g.length!==0)m=m.join(" "),g=g.join(" "),e.receivedEndOfUtterance&&!e.isUsingVoz?e.isUsingVoz||
e.completeHandler([m,g]):(n=e,k=m,r=g,U0("voz_sf"),n.transcriptionUpdateHandler(k,r),n.transcribedSpeechResults=[k,r]),e.receivedEndOfUtterance&&(U0("voz_eou"),e.transcriptionCompleteHandler([m,g]),e.isUsingVoz&&(e.prefetchResponseTimeoutMs===0?V0(e,{logMicClosed:!1,handleStop:!0}):e.prefetchResponseTimeoutMs>0&&kNc(e)))}else e.isUsingVoz&&(g==null?0:g.internalOut)?(g=JSON.parse(g.internalOut.youtubeAssistantS3OutputJson),g.userHasOptedInToVaa||g.vaaConsent?e.vaaConsentUpdateHandler(!!g.userHasOptedInToVaa,
!!g.vaaConsent):(lNc(e),g&&(m=e.transcribedSpeechResults,U0("voz_rqf"),e.completeHandler(m,g)))):g.eventType==="END_OF_UTTERANCE"?e.receivedEndOfUtterance=!0:(U0("voz_err"),e.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.Dl(Error("Yk")))}}});
_.ss(a.channel,"y",function(c){V0(a);switch(c.status){case 1:c="WEBCHANNEL_NETWORK_ERROR";break;case 2:c="WEBCHANNEL_SERVER_ERROR";break;default:c="WEBCHANNEL_UNKNOWN_ERROR"}a.errorHandler(c);a.logError(Error(c))})};
T0.prototype.logError=function(a){_.Bl(a)};
T0.prototype.isOnline=function(){return!0};
var kNc=function(a){lNc(a);a.prefetchResponseSetTimeoutId=setTimeout(function(){V0(a,{logMicClosed:!1,handleStop:!0})},a.prefetchResponseTimeoutMs)},lNc=function(a){a.prefetchResponseSetTimeoutId>-1&&(clearTimeout(a.prefetchResponseSetTimeoutId),a.prefetchResponseSetTimeoutId=-1)},hNc=function(a){jNc(a);
a.noResponseReceivedTimeout=window.setTimeout(function(){V0(a);a.errorHandler("NO_SPEECH")},11E3)},jNc=function(a){a.noResponseReceivedTimeout>-1&&(window.clearTimeout(a.noResponseReceivedTimeout),a.noResponseReceivedTimeout=-1)},U0=function(a){_.Jo(a,void 0,"voice_assistant")};var W0=function(){T0.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.z(W0,T0);W0.prototype.isSupported=function(){return ixc()};
W0.prototype.startAudio=function(){var a=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.Pn(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(d){mNc(a,d)};
this.processor.connect(this.audioContext.destination);var b=function(d){a.stream=d;if(!a.audioContext)return _.oo(null);d=a.audioContext.createMediaStreamSource(d);a.processor&&d.connect(a.processor);return _.oo(null)},c={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?b(this.stream):navigator.mediaDevices.getUserMedia(c).then(b).catch(function(d){V0(a);d.name&&d.name==="NotAllowedError"?a.errorHandler("NO_MICROPHONE_PERMISSION"):(a.errorHandler("AUDIO_ERROR"),a.logError(d));return _.Pn(null)});
return T0.prototype.startAudio.call(this)};
W0.prototype.stopAudio=function(a){a=a===void 0?!0:a;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(b){b.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;T0.prototype.stopAudio.call(this,a)};
W0.prototype.isOnline=function(){return navigator.onLine};
var mNc=function(a,b){if(a.audioContext)if(window.OfflineAudioContext){var c=a.audioContext.sampleRate,d=b.inputBuffer.getChannelData(0);b=new window.OfflineAudioContext(1,d.length,16E3);for(var e=b.createBuffer(1,d.length,c),g=e.getChannelData(0),k=0,m=0;m<d.length;m++)g[m]=d[m],k+=g[m]*g[m];!a.audioDetected&&Math.sqrt(k/d.length)>.01&&(a.audioDetected=!0,a.audioDetectedHandler());d=b.createBufferSource();d.buffer=e;d.connect(b.destination);d.start(0);b.oncomplete=function(n){n=n.renderedBuffer.getChannelData(0);
for(var r=Math.floor(16384E3/c),t=new Int16Array(r),u=0;u<r;++u)t[u]=Math.max(-1,Math.min(1,n[u]))*32767;iNc(a,t.buffer)};
b.startRendering()}else nNc(a,b)},nNc=function(a,b){var c=a.audioContext.sampleRate,d=b.inputBuffer.getChannelData(0),e=Math.floor((c+8E3)/16E3);
c=d.length/e;b=new Float32Array(c);for(var g=0;g<c;++g)b[g]=d[g*e];d=new Int16Array(c);for(e=0;e<c;++e)d[e]=Math.max(-1,Math.min(1,b[e]))*32767;iNc(a,d.buffer)};var oNc={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var pNc=function(){this.JSC$17514_audioEnabled=!0;this.audioFeedbackHolder={}};
pNc.prototype.isPlaying=function(a){return a.currentTime>0&&!a.paused&&!a.ended&&a.readyState>2};
var qNc=function(a){for(var b=_.h(Object.values(oNc)),c=b.next();!c.done;c=b.next())c=c.value,a.audioFeedbackHolder[c]=new Audio,a.audioFeedbackHolder[c].src="/s/search/audio/"+c+".mp3",a.audioFeedbackHolder[c].load()},X0=function(a,b){if(a.JSC$17514_audioEnabled!==!1&&b in a.audioFeedbackHolder){for(var c=_.h(Object.values(a.audioFeedbackHolder)),d=c.next();!d.done;d=c.next())d=d.value,a.isPlaying(d)&&d.pause();
a.audioFeedbackHolder[b].currentTime=0;a.audioFeedbackHolder[b].play().catch(function(){})}};var rNc=function(a,b){var c=this;this.store=a;this.service=b;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){c.setState("offline");c.stop()};
this.audioPlayer=new pNc;var d;(d=this.audioPlayer)==null||qNc(d)};
_.f=rNc.prototype;_.f.getService=function(){return this.service};
_.f.isEnabled=function(){return!!this.service};
_.f.isSupported=function(){var a;return(a=this.service)==null?void 0:a.isSupported()};
_.f.start=function(){var a=this,b,c,d,e,g,k,m,n,r,t,u,w,A;return _.l(function(C){switch(C.nextAddress){case 1:a.store.dispatch(kCc("",""));if(!navigator.onLine)return a.setState("offline"),C.return();window.addEventListener("offline",a.handleOfflineEvent);a.stream=null;if(!a.permissionsSupported){C.jumpTo(2);break}_.me(C,3);return _.p(C,sNc(a),5);case 5:b=C.yieldResult;if(!b)return(c=a.audioPlayer)==null||X0(c,"failure"),C.return();a.service.stream=a.stream;a.setState("listening");_.Jj(C,2);break;
case 3:_.re(C),a.permissionsSupported=!1;case 2:d={context:_.Qpa(_.Wj())},d.youtubeAssistantParams={searchParams:{inlineSearchResponse:a.enableInlineSearchResponse}},e=function(G,J){a.store.dispatch(lCc("transcribing"));a.store.dispatch(kCc(G,J))},g=function(){var G;
(G=a.audioPlayer)==null||X0(G,"open");a.setState("listening")},k=function(){a.setState("transcribing")},m=function(G){a.setErrorState(G)},n=function(G,J){var I;
(I=a.audioPlayer)==null||X0(I,"success");J&&(_.x("kevlar_voice_search_inline_search")&&(a.responseProcessor=_.v().resolve(_.L7a),a.responseProcessor&&(I=J.navigationAction,G=J.prefetchedSearchResponse,I&&G&&(I=(new _.egc).JSC$11743_getStoreKey(I),_.Zw(a.responseProcessor,G,I)))),a.JSC$17532_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",J))},r=function(){window.removeEventListener("offline",a.handleOfflineEvent)},t=_.Zpa(!1),u=t.Authorization!=null,w=a.enableFirstPartyAuth||
a.enableFPAForSignedInUsers&&u?t:{"X-Goog-Visitor-Id":t["X-Goog-Visitor-Id"]},A={completeHandler:n,
errorHandler:m,listeningHandler:g,audioDetectedHandler:k,stopHandler:r,transcriptionUpdateHandler:e,youtubeAssistantRequest:d,languageCode:tNc(),additionalHeaders:w,supportsCrossDomainXhr:a.enableFirstPartyAuth||a.enableFPAForSignedInUsers&&u,supportsHttpHeadersOverwriteParam:!a.disableHttpHeadersOverwrite},a.service.start(A),_.se(C)}})};
_.f.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.f.reset=function(){this.store.dispatch(_.gp({type:"RESET_VOICE_SEARCH_STATE"}))};
_.f.setState=function(a){this.store.dispatch(lCc(a))};
_.f.setErrorState=function(a){switch(a){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var b;(b=this.audioPlayer)==null||X0(b,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)sNc(this);else{var c;(c=this.audioPlayer)==null||X0(c,"failure");this.setState("permission-denied")}break;case "ABORTED":var d;(d=this.audioPlayer)==null||X0(d,"no_input");break;default:var e;(e=this.audioPlayer)==
null||X0(e,"no_input");this.setState("timeout")}};
var sNc=function(a){var b,c;return _.l(function(d){switch(d.nextAddress){case 1:return _.p(d,navigator.permissions.query({name:"microphone"}),2);case 2:b=d.yieldResult;if(b.state==="granted")return d.return(!0);if(b.state==="denied")return a.setState("permission-denied"),d.return(!1);a.setState("permission");c={audio:{sampleSize:16,channelCount:1},video:!1};_.me(d,3);return _.p(d,navigator.mediaDevices.getUserMedia(c),5);case 5:return a.stream=d.yieldResult,d.return(!0);case 3:return _.re(d),a.setState("permission-denied"),
d.return(!1)}})},tNc=function(){var a=_.Ei("INNERTUBE_CONTEXT_HL"),b=_.Ei("INNERTUBE_CONTEXT_GL");
return a.indexOf("-")>-1?a:a+"-"+b};var uNc=function(a,b,c){rNc.call(this,b,c);this.JSC$17532_actionRouter=a;this.enableInlineSearchResponse=_.x("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.x("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.x("kevlar_voice_search_enable_fpa_signedin_users")},vNc;
_.z(uNc,rNc);
var wNc=function(){if(!vNc){var a="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.x("kevlar_voice_search_auth_enabled")||_.x("kevlar_voice_search_use_yt_endpoint")?a="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.x("kevlar_voice_search_use_fp_endpoint")&&(a="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");vNc=
new uNc(_.Nl.getInstance(),_.Yp(),new W0(_.Ei("VOZ_API_KEY"),a,.5))}return vNc};var xNc=function(a){this.JSC$17536_clientRoot=a;this.autonavPauseReasons={scroll:!1,inputBoxFocus:!1,overlayOpen:!1,guideOpen:!1,backgroundAndMute:!1,requestedByPlayer:!1,longIdle:!1,youthereLactExperiment:!1,userEngagement:!1};this.autonavPauseActionMap={"ytd-log-youthere-nav":this.onYtEndpointChanged.bind(this),"yt-autonav-pause-user-engagement":this.onYtAutonavPauseUserEngagement.bind(this),"yt-user-activity":this.onYtUserActivity.bind(this),"yt-get-autonav-pause-debug-state":this.onYtGetAutonavPauseDebugState.bind(this)};
this.userEngagementCsn=null;this.eventListeners=new Map;this.eventListeners.set(document,new Map([["visibilitychange",this.onYtAutonavVisibilityChanged.bind(this)]]));this.eventListeners.set(this.JSC$17536_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)]]));a=_.h(this.eventListeners);for(var b=a.next();!b.done;b=a.next()){var c=_.h(b.value);b=c.next().value;c=c.next().value;c=_.h(c);for(var d=c.next();!d.done;d=c.next()){var e=
_.h(d.value);d=e.next().value;e=e.next().value;b.addEventListener(d,e)}}_.Ol(_.Nl.getInstance(),this.autonavPauseActionMap,this.JSC$17536_clientRoot)},yNc,zNc=function(a){return _.x("kevlar_autonav_popup_filtering")?(a=_.Qq(a))?a.hasAttribute("prevent-autonav"):!0:!0};
_.f=xNc.prototype;_.f.onIronOverlayOpened=function(a){zNc(a)&&(this.autonavPauseReasons.overlayOpen=!0,Y0(this))};
_.f.onIronOverlayClosed=function(a){zNc(a)&&(this.autonavPauseReasons.overlayOpen=!1,Y0(this))};
_.f.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;Y0(this)};
_.f.onYtAutonavPauseBlur=function(){var a=this;_.zk.addJob(function(){a.isInBackground()||(a.autonavPauseReasons.inputBoxFocus=!1,Y0(a))},8,0)};
_.f.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;Y0(this)};
_.f.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;Y0(this)};
_.f.onYtAutonavPauseScroll=function(){var a=_.v().resolve(_.$t);a.isOnWatch()&&(a=a.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=a.getBoundingClientRect().top<-200,Y0(this))};
_.f.onYtAutonavPauseUserEngagement=function(a){var b=this;if(_.x("user_engagement_enable_autoplay_pause_feature")){var c=Number(a.lowEngagementThresholdMs);isNaN(c)||c<=0||a.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.dY("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.v().resolve(_.Ft),_.$k()<c?_.ul(_.zk,function(){_.dY("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.Trc()?(this.userEngagementCsn=_.Fn(),_.ul(_.zk,function(){_.dY("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
b.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,Y0(this)):_.dY("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.dua(Error("Zk`"+JSON.stringify(a)))};
_.f.onYtAutonavPausePlayer=function(a){this.autonavPauseReasons.requestedByPlayer=!!a.detail;Y0(this)};
_.f.onYtAutonavVisibilityChanged=function(){var a=this,b,c,d;return _.l(function(e){if(e.nextAddress==1)return(b=_.bu())?_.p(e,b.getPlayerPromise(),2):e.return();c=e.yieldResult;d=c.isMuted()||c.getVolume()===0;a.autonavPauseReasons.backgroundAndMute=a.isInBackground()&&d;Y0(a);_.se(e)})};
_.f.onYtAutonavPausePlayerEnded=function(){_.v().resolve(_.Ft);var a=144E5;_.x("user_engagement_enable_autoplay_pause_feature")||_.x("is_part_of_any_user_engagement_experiment")||(a=45E5);this.autonavPauseReasons.longIdle=_.$k()>a;ANc(this);Y0(this)};
_.f.onYtUserActivity=function(){var a=this;this.autonavPauseReasons.userEngagement&&(_.ul(_.zk,function(){_.dY("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",a.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,Y0(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.ul(_.zk,function(){_.dY("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",a.userEngagementCsn);_.Al()}),this.autonavPauseReasons.youthereLactExperiment=!1,Y0(this));
this.autonavPauseReasons.longIdle&&!_.x("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,Y0(this))};
_.f.isInBackground=function(){var a=window.document.visibilityState;return!(!a||a==="visible")};
var Y0=function(a){for(var b=!1,c=_.h(Object.values(a.autonavPauseReasons)),d=c.next();!d.done;d=c.next())d=d.value,b=b||d;b?_.cF.getInstance().pause(a.autonavPauseReasons):(a=_.cF.getInstance(),a.autonavState_==3?(a.setState(2,!1,!1),a.autonavPauseReason_=void 0):a.autonavState_==1&&(a.disabledAutonavPauseReason_=void 0))},ANc=function(a){var b=!1;
if(_.x("enable_autoplay_pause_by_lact")){_.v().resolve(_.Ft);b=_.$i("autoplay_pause_by_lact_sec")*1E3;var c=_.$i("autoplay_pause_by_lact_sampling_fraction");(b=_.$k()>=b&&Math.random()<c)&&!_.Trc()&&(_.ul(_.zk,function(){_.dY("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),b=!1)}b!==a.autonavPauseReasons.youthereLactExperiment&&(a.autonavPauseReasons.youthereLactExperiment=b)&&(a.userEngagementCsn=_.Fn(),_.ul(_.zk,function(){_.dY("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",a.userEngagementCsn)}));
a.autonavPauseReasons.userEngagement&&_.ul(_.zk,function(){_.dY("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",a.userEngagementCsn)})};
xNc.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.dY("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.Al(),this.autonavPauseReasons.youthereLactExperiment=!1,Y0(this));this.autonavPauseReasons.userEngagement&&(_.dY("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,Y0(this))};
xNc.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var BNc=function(){var a=_.P.apply(this,arguments)||this;a.miniGuideVisible=!1;a.guideOpened=_.x("disable_initial_guide_state_fix")?!1:a.canFitPersistentGuide(a.initialBodyClientWidth);a.guideUserStateOpened=a.getInitialGuideUserStateOpened();a.isFullscreenShorts=!1;a.miniGuideWidthThreshold=_.$i("kevlar_mini_guide_width_threshold",791);a.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch".split(" ");a.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved).".split(" ");
a.persistentGuideBlockedPagePathRegex=new RegExp(a.persistentGuideBlockedPagesPatterns.join("|"));a.animationTransitionDuration=0;a.lateDataResolver=_.Tt();a.serviceEndpoint=vAc;a.initialGuideDataFetchFailed=!1;a.initialLoad=!0;a.guideRenderers=new Set;a.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts"};return a};
_.z(BNc,_.P);_.f=BNc.prototype;_.f.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.f.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.f.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.f.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.f.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.f.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.f.ready=function(){_.v().addProvider({provide:_.RI,useValue:this.hostElement})};
_.f.attached=function(){var a=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.er(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.er(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.er(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.er(this,this.onYtGuideShow));_.Tm(this,function(){a.animationTransitionDuration=200})};
_.f.detached=function(){document.removeEventListener("yt-navigate-finish",_.er(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.er(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.er(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.er(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.er(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.er(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.er(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.f.getData=function(){return this.data};
_.f.load=function(){var a=this,b,c,d,e;return _.l(function(g){switch(g.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=a.lateDataResolver.resolve.bind(a),g.return(a.lateDataResolver.promise);if(window.ytInitialGuideData)return b=_.Tt(),b.resolve(window.ytInitialGuideData),g.return(b.promise);d=!1;_.me(g,2);return _.p(g,a.fetchGuideData(),4);case 4:c=g.yieldResult;_.Jj(g,3);break;case 2:e=_.re(g),e.message==="Returned error"&&(d=!0);
case 3:if(c)return g.return(c);a.onYtGuideClose();d||(a.initialGuideDataFetchFailed=!0);return g.return(a.lateDataResolver.promise)}})};
_.f.fetchGuideData=function(){var a=this,b,c,d,e,g,k;return _.l(function(m){if(m.nextAddress==1)return a.guidePromise||(a.guidePromise=_.mo(a.hostElement,[a.serviceEndpoint])),_.p(m,a.guidePromise,2);if(m.nextAddress!=3)return b=m.yieldResult,c=_.v(),d=c.resolve(_.VV),_.p(m,d(),3);(e=m.yieldResult)&&((g=b)==null?0:g.data)&&((k=b.data.responseContext)==null?void 0:k.maxAgeSeconds)!==0&&e.put("service:guide:fallback",new _.oJ({innertubeResponse:b.data}));return m.return(b.data)})};
_.f.initializeGuideDataIfEmpty=function(){var a=this,b,c;return _.l(function(d){if(d.nextAddress==1){if(!a.initialGuideDataFetchFailed||a.data)return d.return();_.me(d,2);return _.p(d,a.fetchGuideData(),4)}if(d.nextAddress!=2)return(b=d.yieldResult)&&a.lateDataResolver.resolve(b),_.Jj(d,0);c=_.re(d);_.Dl(c);_.se(d)})};
_.f.initializeGuideData=function(){var a=this,b;return _.l(function(c){switch(c.nextAddress){case 1:return _.vw(Esc(),{mainAppWeb:_.Lq()}),_.me(c,2),_.p(c,a.load(),4);case 4:a.data=c.yieldResult;_.Jj(c,3);break;case 2:_.re(c),_.ww(Esc(),"FAILURE");case 3:b=a.data&&a.data.items&&a.data.items.length>0?"SUCCESS":"FAILURE",_.ww(Esc(),b),_.se(c)}})};
_.f.setGuideData=function(a){var b=this,c,d;return _.l(function(e){if(e.nextAddress==1)return b.disabled?e.return():b.data?(a.data=b.data,b.guideRenderers.add(a),e.return()):_.p(e,b.initializeGuideData(),2);b.graftGuideToPage();c=_.Gi("IS_HOMEPAGE_COLD")?"eop":void 0;_.x("disable_element_pool_populator")?b.setGuideDataAfterInit(a):(d=new _.ZG(1,c),_.$G(d,b.setGuideDataAfterInit.bind(b,a)));_.se(e)})};
_.f.setGuideDataAfterInit=function(a){a.data=this.data;a.markDirty();this.guideRenderers.add(a);_.Cr(function(){_.Jo("gle")});
_.Tm(this,function(){_.Jo("gpe")})};
_.f.graftGuideToPage=function(){if(this.data){var a=this.data&&this.data.trackingParams;a&&(a=_.qs(a),_.oF(_.ms(),a))}};
_.f.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.er(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.f.onDrawerOpenedChanged=function(a,b){!b.value&&this.guideOpened&&(this.guideOpened=!1)};
_.f.onYtGuideToggle=function(a){var b=this.guideOpened;this.guideOpened=!b;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var c=_.wo();_.xo(0,109,!this.guideUserStateOpened);c.save()}this.updateGuideDrawerElementState();if(this.guideElement){var d;this.guideOpened&&((d=a.detail)==null?0:d.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.er(this,this.onAppDrawerTransitionedFromKeyInput));this.guideElement.addEventListener("app-drawer-transitioned",_.er(this,
this.onAppDrawerTransitioned))}b||this.initializeGuideDataIfEmpty()};
_.f.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.er(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.Pk(this.guideElement)};
_.f.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.er(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(iCc(this.guideOpened))};
_.f.guidePersistentAndVisibleChanged=function(){_.ko(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.f.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.gp({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.f.miniGuideVisibleChanged=function(){_.ko(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.f.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(iCc(this.guideOpened)),this.initialLoad=!1);_.ko(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.f.activeEndpointChanged=function(){_.ko(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.f.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.f.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()};
_.f.cachedClientWidthChanged=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var a=this.canFitPersistentGuide(this.cachedClientWidth);a?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=a}this.updateGuideDrawerElementState()};
_.f.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.f.getGuideOpened=function(){return this.guideOpened};
_.f.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.f.getActiveEndpoint=function(){return this.activeEndpoint};
_.f.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.f.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&&_.go(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.f.computeGuidePersistentAndVisible=function(){var a=this;_.Dr(this,"computeGuidePersistentAndVisible",function(){a.guidePersistentAndVisible=a.guideOpened&&a.guidePersistent;a.guideIsVisibleButNotPersistent=!(!a.guideOpened||a.guidePersistent)})};
_.f.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.f.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.f.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.f.startLoadingWatch=function(){this.closeGuide()};
_.f.startLoadingShorts=function(){_.x("web_hide_guide_on_shorts")&&this.closeGuide()};
_.f.onYtNavigateFinish=function(a,b){if(!_.sx||b){this.activeEndpoint=b.endpoint;this.pageType=b.pageType;this.pageUrl=b.response.url;var c,d;a=(d=_.y((c=b.endpoint)==null?void 0:c.commandMetadata,_.ao))==null?void 0:d.url;!this.pageUrl&&a&&(this.pageUrl=a);_.x("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.f.getVisibleGuideRenderer=function(){for(var a=_.h(this.guideRenderers),b=a.next();!b.done;b=a.next())if(b=b.value,this.miniGuideVisible&&b.is==="ytd-mini-guide-renderer"||this.guideOpened&&b.is==="ytd-guide-renderer")return b;return null};
_.f.markGuideRendererDirty=function(a){if(a){typeof a.markDirty==="function"&&a.markDirty();a=_.h([].concat(_.Be(_.E(a).children)));for(var b=a.next();!b.done;b=a.next())this.markGuideRendererDirty(b.value)}};
_.f.persistentGuideEnabled=function(a,b){if(!b||a==="watch"||a==="settings"||a==="shorts"&&this.isFullscreenShorts||_.x("reels_web_disable_persistent_guide_shorts")&&a==="shorts")return!1;var c=_.gj(b)||"";return _.x("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(d){return c===d}):!this.persistentGuideBlockedPagePathRegex.test(c)};
_.f.canFitPersistentGuide=function(a){var b=_.$i("kevlar_persistent_guide_width_threshold",1312);return b===-1||_.x("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:a>b};
_.f.canFitMiniGuide=function(a){return this.miniGuideWidthThreshold===-1?!1:a>this.miniGuideWidthThreshold};
_.f.onResize=function(){var a=this;_.Dr(this,"calculateGuideState",function(){a.onResizeDebounced()})};
_.f.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.f.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.f.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.f.getInitialGuideUserStateOpened=function(){return!_.wo().getFlag(109)};
_.Vm.Object.defineProperties(BNc.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.Ei("initialBodyClientWidth")||window.innerWidth}}});
var Z0=BNc;Z0.prototype.onResize=Z0.prototype.onResize;Z0.prototype.observeForMiniGuideVisible=Z0.prototype.observeForMiniGuideVisible;Z0.prototype.computeGuidePersistentAndVisible=Z0.prototype.computeGuidePersistentAndVisible;Z0.prototype.cachedClientWidthChanged=Z0.prototype.cachedClientWidthChanged;Z0.prototype.resetGuide=Z0.prototype.resetGuide;Z0.prototype.activeEndpointChanged=Z0.prototype.activeEndpointChanged;Z0.prototype.guideOpenedChanged=Z0.prototype.guideOpenedChanged;
Z0.prototype.miniGuideVisibleChanged=Z0.prototype.miniGuideVisibleChanged;Z0.prototype.guideIsVisibleButNotPersistentChanged=Z0.prototype.guideIsVisibleButNotPersistentChanged;Z0.prototype.guidePersistentAndVisibleChanged=Z0.prototype.guidePersistentAndVisibleChanged;Z0.prototype.onGuideElementChanged=Z0.prototype.onGuideElementChanged;Z0.prototype.onGuidePersistentChanged=Z0.prototype.onGuidePersistentChanged;Z0.prototype.onRenderGuideChanged=Z0.prototype.onRenderGuideChanged;
Z0.prototype.onActiveEndpointChanged=Z0.prototype.onActiveEndpointChanged;Z0.prototype.onMiniGuideVisibleChanged=Z0.prototype.onMiniGuideVisibleChanged;Z0.prototype.onGuideIsVisibleButNotPersistentChanged=Z0.prototype.onGuideIsVisibleButNotPersistentChanged;Z0.prototype.onGuidePersistendAndVisibleChanged=Z0.prototype.onGuidePersistendAndVisibleChanged;_.U([_.H(_.KD),_.W("design:type",Object)],Z0.prototype,"ironResizableBehavior",void 0);
_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],Z0.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],Z0.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],Z0.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],Z0.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Boolean)],Z0.prototype,"disabled",void 0);
_.U([_.O(),_.W("design:type",Boolean)],Z0.prototype,"guidePersistentAndVisible",void 0);_.U([_.N("guidePersistentAndVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Z0.prototype,"onGuidePersistendAndVisibleChanged",null);_.U([_.O(),_.W("design:type",Boolean)],Z0.prototype,"guideIsVisibleButNotPersistent",void 0);
_.U([_.N("guideIsVisibleButNotPersistent"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Z0.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.U([_.O(),_.W("design:type",Object)],Z0.prototype,"miniGuideVisible",void 0);_.U([_.N("miniGuideVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Z0.prototype,"onMiniGuideVisibleChanged",null);_.U([_.O(),_.W("design:type",Boolean)],Z0.prototype,"forceMiniGuideClose",void 0);
_.U([_.O(),_.W("design:type",Object)],Z0.prototype,"activeEndpoint",void 0);_.U([_.N("activeEndpoint"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Z0.prototype,"onActiveEndpointChanged",null);_.U([_.O(),_.W("design:type",Boolean)],Z0.prototype,"renderGuide",void 0);_.U([_.N("renderGuide"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Z0.prototype,"onRenderGuideChanged",null);
_.U([_.O(),_.W("design:type",Object)],Z0.prototype,"guideOpened",void 0);_.U([_.O(),_.W("design:type",Boolean)],Z0.prototype,"guidePersistent",void 0);_.U([_.N("guidePersistent"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Z0.prototype,"onGuidePersistentChanged",null);_.U([_.O(),_.W("design:type",Object)],Z0.prototype,"guideUserStateOpened",void 0);_.U([_.O(),_.W("design:type",String)],Z0.prototype,"pageUrl",void 0);
_.U([_.O(),_.W("design:type",String)],Z0.prototype,"pageType",void 0);_.U([_.O(),_.W("design:type",Number)],Z0.prototype,"cachedClientWidth",void 0);_.U([_.O(),_.W("design:type",Object)],Z0.prototype,"guideElement",void 0);_.U([_.O({selector:_.Av}),_.W("design:type",Object)],Z0.prototype,"isFullscreenShorts",void 0);_.U([_.N("guideElement"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Z0.prototype,"onGuideElementChanged",null);
_.U([_.N("guidePersistentAndVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Z0.prototype,"guidePersistentAndVisibleChanged",null);_.U([_.kr("guideIsVisibleButNotPersistent"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Z0.prototype,"guideIsVisibleButNotPersistentChanged",null);
_.U([_.N("miniGuideVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Z0.prototype,"miniGuideVisibleChanged",null);_.U([_.kr("guideOpened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Z0.prototype,"guideOpenedChanged",null);_.U([_.N("activeEndpoint"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Z0.prototype,"activeEndpointChanged",null);
_.U([_.kr("pageUrl"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Z0.prototype,"resetGuide",null);_.U([_.kr("cachedClientWidth"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Z0.prototype,"cachedClientWidthChanged",null);_.U([_.N("guideOpened","guidePersistent"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Z0.prototype,"computeGuidePersistentAndVisible",null);
_.U([_.kr("guidePersistentAndVisible","pageUrl","cachedClientWidth"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Z0.prototype,"observeForMiniGuideVisible",null);_.U([_.M("iron-resize"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Z0.prototype,"onResize",null);Z0=_.U([_.Q({disableElementRegistration:!0,is:"yt-guide-manager"})],Z0);var CNc=_.S(Z0,"yt-guide-manager",void 0,{mode:_.as("kevlar_poly_si_batch_j081")?1:2});var DNc=function(){var a=_.P.apply(this,arguments)||this;a.JSC$17546_keyboardInUse=!1;a.boundHandleCapturedKeydownEvent=function(b){a.handleCapturedKeydownEvent(b)};
return a};
_.z(DNc,_.P);_.f=DNc.prototype;_.f.attached=function(){this.listenToDocument(document)};
_.f.listenToDocument=function(a){a.addEventListener("keydown",_.er(this,this.onKeyDownEvent));a.addEventListener("keyup",_.er(this,this.onKeyUpEvent));a.addEventListener("mousedown",_.er(this,this.onMouseDownEvent));_.x("desktop_keyboard_capture_keydown_killswitch")||a.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);a.addEventListener("yt-page-data-updated",_.er(this,this.onPageUpdate))};
_.f.detached=function(){this.unlistenFromDocument(document)};
_.f.unlistenFromDocument=function(a){a.removeEventListener("keydown",_.er(this,this.onKeyDownEvent));a.removeEventListener("keyup",_.er(this,this.onKeyUpEvent));a.removeEventListener("mousedown",_.er(this,this.onMouseDownEvent));_.x("desktop_keyboard_capture_keydown_killswitch")||a.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);a.removeEventListener("yt-page-data-updated",_.er(this,this.onPageUpdate))};
_.f.ready=function(){_.v().addProvider({provide:_.yu,useValue:this})};
_.f.isKeyBoardInUse=function(){return this.JSC$17546_keyboardInUse};
_.f.handleCapturedKeydownEvent=function(a){if(a.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(a)};
_.f.onMouseDownEvent=function(){this.JSC$17546_keyboardInUse=!1};
_.f.onPageUpdate=function(){if(_.x("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.x("web_shorts_keyboard_shortcut_usage_log")){_.jY.clear();for(var a=_.h(_.hY),b=a.next();!b.done;b=a.next()){var c=_.h(b.value);b=c.next().value;c=c.next().value;c=_.lu(c);_.jY.set(b,c);_.Ro(_.Fn(),_.En(),c)}_.kY.clear();a=_.h(_.iY);for(b=a.next();!b.done;b=a.next())c=_.h(b.value),b=c.next().value,c=c.next().value,c=_.lu(c),_.kY.set(b,c),_.Ro(_.Fn(),_.En(),c);_.eY(_.Fn(),_.En(),[].concat(_.Be(_.kY.values()),
_.Be(_.jY.values())));_.To(_.Fn(),[].concat(_.Be(_.kY.values()),_.Be(_.jY.values())))}};
_.f.onMiniplayerActiveChange=function(){var a;(a=_.v().resolve(_.Vw).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(a.document):this.unlistenFromDocument(a.document))};
_.f.ignoreKeyEvent=function(a){if(a.ctrlKey||a.altKey)if(_.x("kevlar_macro_markers_keyboard_shortcut")){if(a.keyCode!==37&&a.keyCode!==39)return!0}else return!0;var b=_.Pq(a)||[];return _.Wrc(b)?!0:a.defaultPrevented?(yY(a.keyCode,a.shiftKey,this.isShortsPage),!0):a.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(a):!1};
_.f.isSpacebarClick=function(a){var b=a||window.event;var c;b.composedPath&&typeof b.composedPath==="function"?c=b.composedPath():c=b.path;c&&c.length?b=c[0]:(b=b||window.event,b=b.target||b.srcElement,b.nodeType==3&&(b=b.parentNode));return b&&a.keyCode===32&&(a=b.tagName==="BUTTON"||b.tagName==="A"||b.tagName==="INPUT",b=(b=b.getAttribute("role"))&&(b==="option"||b==="button"||b.indexOf("menuitem")===0),a||b)?!0:!1};
_.f.onKeyDownEvent=function(a){if(!this.ignoreKeyEvent(a)&&(a.keyCode===191&&(a.shiftKey||a.metaKey?a.repeat!=null&&a.repeat||(this.openHotkeyDialog(),yY(a.keyCode,a.shiftKey,this.isShortsPage)):(this.focusSearchBox(),a.preventDefault())),!a.metaKey)){var b=_.v().resolve(_.Vw);switch(a.keyCode){case 9:this.JSC$17546_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(a);break;case 84:b.pipController.getWindow()&&window.focus();this.toggleTheaterMode(a.keyCode,a.shiftKey);break;case 73:b.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(a.keyCode,a.shiftKey);break;case 70:if(this.isShortsPage&&_.x("web_fullscreen_shorts")){_.Yrc();break}this.isMiniplayerActive()?b.pipController.getWindow()&&(b.close(!0),window.focus()):this.passEventToPlayer(a);break;case 27:this.closeMiniplayer(a.keyCode,a.shiftKey)||this.passEventToPlayer(a);break;case 13:a.shiftKey&&_.x("web_ephemeral_actions")&&_.v().resolve(_.aic).activate();break;default:this.passEventToPlayer(a)}}};
_.f.onKeyUpEvent=function(a){if(!this.ignoreKeyEvent(a))if(_.x("web_speedmaster_spacebar_control")&&a.keyCode===32)this.handlePlayerSpaceKey(a,!0);else{var b=this.getPlayerManager();b&&(b=b.getPlayer())&&b.handleGlobalKeyUp(a.keyCode,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code)}};
_.f.getPlayerManager=function(){var a=_.bu(),b=_.v().resolve(_.Wi(_.$t));return a&&b&&b.isOnWatch()?a:null};
_.f.passEventToPlayer=function(a,b){var c=this,d,e,g;return _.l(function(k){if(k.nextAddress==1)return!_.x("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&c.isMiniplayerActive()?d=_.v().resolve(_.Vw).getPlayerElement():c.inlinePreviewIsActive?(e=_.ko(c.hostElement,"yt-get-inline-preview-player-action"))&&e[0]&&(d=e[0]):d=_.bu(),d?_.p(k,d.getPlayerPromise(),3):k.jumpTo(0);g=k.yieldResult;b?g.handleGlobalKeyUp(a.keyCode,a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code,a.repeat):g.handleGlobalKeyDown(a.keyCode,
a.shiftKey,a.ctrlKey,a.altKey,a.metaKey,a.key,a.code,a.repeat);a.keyCode!==38&&a.keyCode!==40&&yY(a.keyCode,a.shiftKey,c.isShortsPage);_.se(k)})};
_.f.focusSearchBox=function(){_.go(this.hostElement,"yt-focus-searchbox")};
_.f.openHotkeyDialog=function(){_.go(this.hostElement,"yt-open-hotkey-dialog")};
_.f.isMiniplayerActive=function(){return _.v().resolve(_.Vw).isMiniplayerActive()};
_.f.closeMiniplayer=function(a,b){return this.isMiniplayerActive()?(_.v().resolve(_.Vw).close(),yY(a,b,this.isShortsPage),!0):!1};
_.f.toggleTheaterMode=function(a,b){var c=_.FW(_.Yp().getState()),d=this.getPlayerManager(),e=_.x("disable_theater_mode_keyboard")||_.Gi("START_IN_FULL_WINDOW_MODE");d&&!e&&(c=!c,_.bo()&&_.x("external_fullscreen")&&(c=!0),_.ho(this.hostElement,"yt-toggle-theater-mode",[c]),yY(a,b,this.isShortsPage))};
_.f.toggleMiniplayer=function(a,b){var c=this.getPlayerManager();if(this.isMiniplayerActive()){var d;((d=_.v().resolve(_.Wi(_.$t)))==null?0:d.isOnWatch())?_.v().resolve(_.Vw).close(!0):_.vW(_.v().resolve(_.Vw));yY(a,b,this.isShortsPage)}else c&&(_.ho(this.hostElement,"yt-activate-miniplayer-from-watch-action"),yY(a,b,this.isShortsPage))};
_.f.handlePlayerSpaceKey=function(a,b){var c=!!_.bu()||this.isMiniplayerActive();c=_.x("disable_space_scroll_fix")||c;_.x("global_spacebar_pause")&&!this.isKeyBoardInUse()&&c&&(a.preventDefault(),this.passEventToPlayer(a,b))};
var $0=DNc;$0.prototype.onMiniplayerActiveChange=$0.prototype.onMiniplayerActiveChange;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],$0.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],$0.prototype,"ytdReduxBehavior",void 0);_.U([_.O({selector:_.nFa}),_.W("design:type",Boolean)],$0.prototype,"inlinePreviewIsActive",void 0);_.U([_.O({selector:_.Urc}),_.W("design:type",Boolean)],$0.prototype,"isShortsPage",void 0);
_.U([_.O({selector:_.Gp}),_.W("design:type",Boolean)],$0.prototype,"miniplayerIsActive",void 0);_.U([_.N("miniplayerIsActive"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],$0.prototype,"onMiniplayerActiveChange",null);$0=_.U([_.Q({disableElementRegistration:!0,is:"yt-hotkey-manager"})],$0);_.S($0,"yt-hotkey-manager",void 0,{mode:_.as("kevlar_poly_si_batch_j081")?1:2});var ENc=function(){var a=_.P.apply(this,arguments)||this;a.loopStateEntityKey_=null;a.playlistLoopStateEntity_=null;a.isShuffleNextPlaylist=!1;a.JSC$17549_PLAYER_EVENTS_=new Map;a.playerListenersSetup_=!1;a.videoSkipJob_=0;a.canAutoAdvance_=!1;a.playerManager_=null;a.TEST_ONLY={};return a};
_.z(ENc,_.P);_.f=ENc.prototype;_.f.ready=function(){_.v().addProvider({provide:_.QF,useValue:this.hostElement})};
_.f.created=function(){this.JSC$17549_PLAYER_EVENTS_.set("onPlaylistNext",this.onPlaylistNext);this.JSC$17549_PLAYER_EVENTS_.set("onPlaylistPrevious",this.onPlaylistPrevious);this.JSC$17549_PLAYER_EVENTS_.set("onPlaylistIndex",this.onPlaylistIndex_);this.JSC$17549_PLAYER_EVENTS_.set("onStateChange",this.onPlayerStateChange_);this.JSC$17549_PLAYER_EVENTS_.set("onLoopChange",this.onPlayerLoopChange_);this.JSC$17549_PLAYER_EVENTS_.set("onSleepTimerSettingsChanged",this.onSleepTimerSettingsChanged_)};
_.f.attached=function(){document.addEventListener("yt-navigate-start",_.er(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.er(this,this.onYtNavigateFinish_))};
_.f.detached=function(){document.removeEventListener("yt-navigate-start",_.er(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.er(this,this.onYtNavigateFinish_))};
_.f.updatePlaylistEventListeners=function(a,b){b&&!this.playerListenersSetup_?(this.playerManager_=a,this.registerPlaylistEventListeners_(a)):!b&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(a))};
_.f.setPlayer=function(a){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=a};
_.f.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.f.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.f.registerPlaylistEventListeners_=function(a){var b=this;a.getPlayerPromise().then(function(c){b.playerListenersSetup_||(b.ytPlayerListenerBehavior.listenToPlayerEvents(c,b.JSC$17549_PLAYER_EVENTS_),b.playerListenersSetup_=!0)})};
_.f.removePlaylistEventListeners_=function(a){var b=this;a.getPlayerPromise().then(function(c){b.playerListenersSetup_&&(b.ytPlayerListenerBehavior.unlistenFromPlayerEvents(c,b.JSC$17549_PLAYER_EVENTS_),b.playerListenersSetup_=!1)})};
_.f.setPlaylistComponent=function(a){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.er(this,this.onPlaylistYtNavigate_)),a&&(a.data&&this.playlistComponent.data&&a.data.playlistId==this.playlistComponent.data.playlistId?(a.loopOn=this.playlistComponent.loopOn,a.shuffleOn=this.playlistComponent.shuffleOn):(a.loopOn=!1,a.shuffleOn=!1),this.isShuffleNextPlaylist&&(a.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=a;this.playlistComponent.addEventListener("yt-navigate",
_.er(this,this.onPlaylistYtNavigate_))};
_.f.setAutoplayRenderer=function(a){this.autoplayData=a};
_.f.setPlaylistData=function(a){this.currentPlaylistData_=a;_.go(this.hostElement,"yt-playlist-data-updated");_.yf.isEmpty(a)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(a)};
_.f.setPlayerPlaybackControlData=function(a){this.playerManager_&&this.playerManager_.updatePlayerComponents(a.playlistPanelRenderer)};
_.f.getPlaylistData=function(){return this.currentPlaylistData_};
_.f.getTempData_=function(a,b){if(this.playlistComponent==null)return null;a={};this.playlistComponent.shuffleOn&&(a.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(a.loop_on=this.playlistComponent.loopOn);b&&(a.autonav="1",_.v().resolve(_.Ft),b=_.$k(),b>0&&(a.lact=b),this.playerManager_&&(b=this.playerManager_.getPlayer())&&b.shouldSendVisibilityState()&&(b=b.getVisibilityState(),b!=0&&(a.vis=b)));_.x("enable_unknown_lact_fix_on_html5")&&(_.v().resolve(_.Ft),a.lact=_.$k());
return a};
_.f.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.f.setLoopStateEntityKey_=function(a){var b;this.loopStateEntityKey_=((b=this.getPlaylistLoopData_(a))==null?void 0:b.playlistLoopStateEntityKey)||null};
_.f.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.f.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.f.skipVideo=function(){var a=this,b=_.x("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||b)b=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.wu(_.zk,function(){a.onPlaylistNext();a.videoSkipJob_=0},b)};
_.f.cancelVideoSkip=function(){this.videoSkipJob_&&(_.zk.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.f.isInBackground_=function(){var a=window.document.visibilityState;return!(!a||a=="visible")};
_.f.onPlaylistIndex_=function(a){this.playlistComponent&&(a=this.playlistComponent.data.contents[a].playlistPanelVideoRenderer.navigationEndpoint,_.go(this.hostElement,"yt-navigate",{endpoint:a,tempData:this.getTempData_(a)}))};
_.f.onPlayerStateChange_=function(a){if(a=a==0&&this.playlistComponent&&this.canAutoAdvance_)a=_.cF.getInstance(),a=!(a.autonavState_===3?a.autonavPauseReason_&&a.autonavPauseReason_.inputBoxFocus===!0:a.autonavState_===1&&a.disabledAutonavPauseReason_&&a.disabledAutonavPauseReason_.inputBoxFocus===!0);a&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.f.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.f.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.f.navigateToAutoplayWatchEndpoint_=function(a,b,c){var d=this.playlistComponent.data.currentIndex,e=this.getNumPlayableVideos_();a=="NORMAL"&&b=="autoplayVideo"&&d+1>=e&&c||!(a=this.getVideoEndpoint_(a,b))||(c=this.getTempData_(a,c),_.go(this.hostElement,"yt-navigate",{endpoint:a,tempData:c}))};
_.f.getNumPlayableVideos_=function(){for(var a=0,b=_.h(this.playlistComponent.data.contents||[]),c=b.next();!c.done;c=b.next())c.value.playlistPanelVideoRenderer&&(a+=1);return a};
_.f.getVideoEndpoint_=function(a,b){if(this.autoplayData&&this.autoplayData.sets)for(var c=0,d=this.autoplayData.sets.length;c<d;c++){var e=this.autoplayData.sets[c];if(e.mode==a){if(e[b])return e[b];break}}else a=new _.qj("AutoplayData is undefined in playlist manager","Mode: "+a+" endpoint: "+b),_.Dl(a)};
_.f.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.f.onPlaylistYtNavigate_=function(a){if(a.detail.endpoint){a.stopPropagation();var b=a.detail;b.tempData=this.getTempData_(a.detail.endpoint);_.go(this.hostElement,"yt-navigate",b)}};
_.f.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.f.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.f.playlistLoopStateEntityChanged_=function(a){var b=this,c,d,e;return _.l(function(g){if(g.nextAddress==1){if(!a)return g.return();c=a.state==="PLAYLIST_LOOP_STATE_ONE";return b.playerManager_?_.p(g,b.playerManager_.getPlayerPromise(),3):g.jumpTo(2)}g.nextAddress!=2&&(d=g.yieldResult,d.setLoopVideo(c));e=a.state==="PLAYLIST_LOOP_STATE_ALL";b.playlistComponent&&(b.playlistComponent.loopOn=e);_.se(g)})};
_.f.getPlaylistLoopData_=function(a){var b,c;if(a=a==null?void 0:(b=a.playlistButtons)==null?void 0:(c=b.menuRenderer)==null?void 0:c.topLevelButtons)for(b=_.h(a),c=b.next();!c.done;c=b.next())if(c=c.value,c.playlistLoopButtonRenderer)return c.playlistLoopButtonRenderer};
_.f.getLoopStateCommand_=function(a){var b=this.getPlaylistData(),c;b=((c=this.getPlaylistLoopData_(b))==null?void 0:c.states)||[];var d;a=(d=_.y(b[a?1:2],_.nAb))==null?void 0:d.button;var e;return(e=_.y(a,_.OE))==null?void 0:e.command};
_.f.onPlayerLoopChange_=function(a){this.playlistLoopStateEntity_&&(a?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(a=this.getLoopStateCommand_(a))&&this.ytComponentBehavior.resolveCommand(a)};
_.f.onSleepTimerSettingsChanged_=function(a){this.canAutoAdvance_=a!=="End of video"};
var a1=ENc;a1.prototype.onPlaylistLoopStateEntityChanged=a1.prototype.onPlaylistLoopStateEntityChanged;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],a1.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.YI.YtPlayerListenerBehavior),_.W("design:type",_.ZI)],a1.prototype,"ytPlayerListenerBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],a1.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],a1.prototype,"loopStateEntityKey_",void 0);
_.U([_.O({selectorArgs:["loopStateEntityKey_"],selector:_.jVa}),_.W("design:type",Object)],a1.prototype,"playlistLoopStateEntity_",void 0);_.U([_.N("playlistLoopStateEntity_"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],a1.prototype,"onPlaylistLoopStateEntityChanged",null);a1=_.U([_.Q({disableElementRegistration:!0,is:"yt-playlist-manager"})],a1);_.S(a1,"yt-playlist-manager",void 0,{mode:_.as("kevlar_poly_si_batch_j081")?1:2});var FNc,GNc=function(){if(FNc!==void 0)return FNc;var a=document.createElement("template");_.B(a,"\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");a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return FNc=a};var HNc=function(){var a=_.P.apply(this,arguments)||this;a.lastCallback=null;a.getAccountLinkPromises={};a.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);a.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return a};
_.z(HNc,_.P);_.f=HNc.prototype;_.f.getLocation=function(){return window.location.href};
_.f.getCompletionUrl=function(){return _.Yn(this.getLocation())};
_.f.containsRedirectState=function(a){return(a=_.Kw(_.QUa(a)))?(new URLSearchParams(a)).get("redirect_state")!==null:!1};
_.f.createGalConfig=function(a,b){var c=new BDc;a=c=b?this.getPopupOrRedirectSetting(c,_.Ei("LINK_API_KEY"),_.Ei("LINK_API_KEY_REDIRECT"),a):CDc(c,_.Ei("LINK_API_KEY"));a.authUser=_.Ei("SESSION_INDEX")||0;a.supportedFlows=new Set([4]);return a.build()};
_.f.getPopupOrRedirectSetting=function(a,b,c,d){this.isGalInteractionPopupMode(d)?(a.interactionMode=0,a=CDc(a,b)):(a.interactionMode=1,b=this.getCompletionUrl(),a.completionUrl=b,a=CDc(a,c));return a};
_.f.isGalInteractionPopupMode=function(a){if(this.redirectModeProviderAllowlist.has(a))switch(a){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!_.x("main_web_redirect_integration_riot");default:return!1}return!0};
_.f.getStatusEntityKeyForProviderId=function(a){return _.lp(a+":all","accountLinkStatusEntity")};
_.f.findNestedPropValue=function(a,b){var c=!1,d=null;JSON.stringify(a,function(e,g){c||e!==b||(c=!0,d=g);return c?null:g});
return d};
_.f.findAccountLinkButtonViewModel=function(a,b){var c=null,d=!1;JSON.stringify(a,function(e,g){d||g.accountLinkStatusEntityKey!==b||g.accountLinkStatusSecondaryEntityKey||(d=!0,c=g);return d?null:g});
return c};
_.f.executeLinkingSuccessOrFailureCommands=function(a,b,c){var d=null,e;(b==null?0:(e=b.url)==null?0:e.includes("account_sharing"))?d=b==null?void 0:b.response:d=b==null?void 0:b.response;(b=this.findAccountLinkButtonViewModel(d,a))?(a=c?this.findNestedPropValue(b,"onSuccessCommand"):this.findNestedPropValue(b,"onFailureCommand"))?_.qo([a],this.hostElement):_.Ki(Error("$k")):_.Ki(Error("al`"+a))};
_.f.handleInitializeRequest=function(a,b){var c=this,d=Xuc(this.createGalConfig(a,!0));this.containsRedirectState(this.getLocation())?Kuc(a,d.config,d.galService).then(function(e){var g=c.getStatusEntityKeyForProviderId(a);if(e.statusCode===1)b&&c.executeLinkingSuccessOrFailureCommands(g,b,!0),e=c.getLocation().indexOf("#"),e!==-1&&window.history.pushState(null,"",c.getLocation().substring(0,e));else return b&&c.executeLinkingSuccessOrFailureCommands(g,b,!1),Promise.reject(Error(e.statusMessage))}).catch(function(e){_.Dl(e);
_.zl("gamingAccountLinkStatusChanged",{serviceId:a,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(e)}):this.getAccountLinkPromises[a]=d.startLinkingSession({serviceId:a})};
_.f.handleAccountLinkCommand=function(a){_.y(a,BJc)&&this.handleLinkRequest(_.y(a,BJc))};
_.f.handleLinkRequest=function(a){var b=this,c=a.thirdPartyId;if(c)if(this.isGalInteractionPopupMode(c)){var d=function(){b.closeAndFire("ytd-gaming-account-link-setting-renderer",a.onFailureCommand)},e=function(){b.closeAndFire("ytd-gaming-account-link-setting-renderer",a.onSuccessCommand)};
this.lastCallback=e;this.getAccountLinkPromises[c].then(function(g){hEc(g).then(function(k){k.statusCode===1?e():d()})}).catch(function(){d()})}else this.getAccountLinkPromises[c].then(function(g){hEc(g).then(function(k){if(k.statusCode!==1)return Promise.reject(Error(k.statusMessage))})}).catch(function(g){_.Dl(g);
_.zl("gamingAccountLinkStatusChanged",{serviceId:c,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(g)})};
_.f.closeAndFire=function(a,b){_.ho(this.hostElement,"yt-close-popup-action",[a]);b&&_.qo([b],this.hostElement)};
_.f.handleAccountUnlinkCommand=function(a){_.y(a,CJc)&&this.handleUnlinkRequest(_.y(a,CJc))};
_.f.handleUnlinkRequest=function(a){var b=this,c=a.thirdPartyId;if(c){var d=function(){b.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",a.onFailureCommand)},e=function(){b.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",a.onSuccessCommand)};
this.lastCallback=e;var g=Xuc(this.createGalConfig(c,!1));this.unlinkUserGal(g,c).then(function(k){k.statusCode===1?e():d()}).catch(function(){d()})}};
_.f.unlinkUserGal=function(a,b){return a.deleteLink(b)};
_.f.handleLogAccountLinkingEventCommand=function(a){_.x("enable_gel_log_commands")&&_.y(a,DJc)&&(a=_.y(a,DJc).event)&&_.zl("gamingAccountLinkStatusChanged",a)};
_.Vm.Object.defineProperties(HNc,{template:{configurable:!0,enumerable:!0,get:function(){return GNc()}}});
var b1=HNc;_.U([_.H(_.mH.YtOpenPopupBehavior),_.W("design:type",Object)],b1.prototype,"ytOpenPopupBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],b1.prototype,"ytActionHandlerBehavior",void 0);b1=_.U([_.Q({disableElementRegistration:!0,is:"ytd-third-party-manager"})],b1);_.S(b1,"ytd-third-party-manager",function(){return GNc()},{mode:_.as("kevlar_poly_si_batch_j081")?1:2});var INc,JNc=function(){return INc!==void 0?INc:INc=document.createElement("template")};
document.head.appendChild(JNc().content);var KNc,LNc=function(){if(KNc!==void 0)return KNc;var a=document.createElement("template");_.B(a,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.main_desktop.pages.ytd_page_manager.ytd.page.manager.transitions.css.js,video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");a.content.insertBefore(JNc().content.cloneNode(!0),a.content.firstChild);a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return KNc=a};var MNc=_.cx(["\n          :root {\n            --page-manager-transition-exit-ms: ","ms;\n            --page-manager-transition-wait-ms: ","ms;\n            --page-manager-transition-enter-ms: ","ms;\n          }\n      "]),NNc=function(){var a=_.P.apply(this,arguments)||this;a.currentPage=void 0;a.renderLoadingStateJobId=0;a.updatePageDataJobId=0;a.pageDisposeJobsets=new WeakMap;a.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-get-page-offset":"getPageOffset",
"yt-set-page-offset":"setPageOffset","yt-pause-active-page-context":"pauseActiveContext","yt-prepare-page-dispose":"preparePageDispose","yt-stop-old-player":"onYtStopOldPlayer"};a.applyZoomTransition=_.aj("web_page_transition_type")==="zoom";a.applySlideTransition=_.aj("web_page_transition_type")==="slide";a.TEST_ONLY=void 0;return a};
_.z(NNc,_.P);_.f=NNc.prototype;_.f.ready=function(){var a=_.v();a.addProvider({provide:_.$t,useValue:this});a.addProvider({provide:_.ydc,useValue:this})};
_.f.created=function(){this.pagePool=new dNc;this.contextSwitcher=new oMc};
_.f.attached=function(){_.go(this.hostElement,"attached");var a=_.v().resolve(_.Wi(_.wq));a&&(this.contextSwitcher.JSC$17370_networkService_=a);this.viewTransitionManager=_.v().resolve(_.Wi(_.zjc));this.setupPageTransitionAnimation()};
_.f.getPageOffset=function(a){return a.getScrollTop()};
_.f.setPageOffset=function(a,b){try{a.setScrollTop(b)}catch(c){}};
_.f.setPageOffsetForNavigation=function(a,b){_.go(this.hostElement,"yt-navigate-set-page-offset",{page:a,offset:b===void 0?0:b})};
_.f.pauseActiveContext=function(){var a=this.contextSwitcher;a.activeContext_&&a.activeContext_.pause()};
_.f.getModuleNameForType=function(a){return a==="watch"?_.x("kevlar_watch_fixie")?"watchFixie":_.x("kevlar_watch_grid")?"watchGrid":"watchFlexy":a==="shorts"||a==="search"?a:"browse"};
_.f.attachPage=function(a){var b,c=!_.x("pc_is_attached_ks")&&(a==null?void 0:(b=a.polymerController)==null?void 0:b.isAttached);if(!a.isAttached&&!c)try{_.E(this.hostElement).appendChild(a)}catch(e){var d;_.Dl(new _.qj("Error attaching page element for component",{origin:(d=this.currentPage)==null?void 0:d.is,component:a.is}))}};
_.f.setActivePage=function(a){var b=this,c=!1,d=function(){var e=b.isOnWatch(),g=b.currentPage;if(a)if(a!==b.currentPage){g&&(g.hidden=!0,g.active=!1,g.removeAttribute("role"));b.currentPage=a;var k,m=rY((k=b.data)==null?void 0:k.endpoint);g&&_.go(b.hostElement,"yt-page-type-changed",{oldPageType:g.is,newPageType:a.is,newPageSubtype:m});_.Ir().dispatch(_.gp({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:a.is}));_.Ir().dispatch(_.gp({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:m||""}));a.hidden=
!1;b.attachPage(a);a.active=!0;a.setAttribute("role","main");g&&b.setPageOffsetForNavigation(a,0);_.x("kevlar_remove_page_dom_on_switch")&&!e&&g&&_.E(b.hostElement).removeChild(g)}else c=!0;else e=new _.qj("Unable to set active page",g?g.is:"unknown origin",(m=b.data)==null?void 0:m.endpoint),_.Bl(e)};
this.viewTransitionManager?CBc(this.viewTransitionManager,d,this.viewTransitionConfigForSetActivePage(this.currentPage,a)):d();return c};
_.f.viewTransitionConfigForSetActivePage=function(a,b){return _.x("web_thumbnail_to_watch_transition")&&(a==null?void 0:a.is)==="ytd-browse"&&this.isWatchPage(b)?{viewTransitionOptions:{shouldWrap:!0}}:(this.applySlideTransition||this.applyZoomTransition)&&(a==null?void 0:a.is)==="ytd-browse"&&(b==null?void 0:b.is)==="ytd-browse"&&a!==b?this.applySlideTransition?{transitionName:"slide"}:{transitionName:"zoom"}:{viewTransitionOptions:{shouldWrap:!1}}};
_.f.updatePageData=function(a){var b=this,c=this.data;this.updatePageDataJobId&&_.zk.cancelJob(this.updatePageDataJobId);this.data=a;return new _.kl(function(d){var e=function(){a.filler?b.performDataUpdate(a,c):UAc(function(){b.performDataUpdate(a,c)});
var n=_.SF();_.TF(n,"cr")||n.processSignal("cr");d()},g=function(){a&&a.page==="watch"?b.updatePageDataJobId=_.wu(_.zk,e):e()};
if(_.x("kevlar_enable_mss_page_modules_client")&&a){var k=_.v().resolve(_.Xw),m=b.getModuleNameForType(a.page);(k=ABc(k,[m]))?k.then(g):g()}else g()})};
_.f.isDownloadsPage=function(a){var b,c;return(a==null?void 0:(b=a.endpoint)==null?void 0:(c=b.browseEndpoint)==null?void 0:c.browseId)==="FEdownloads"};
_.f.setPlayerSyncInterval=function(a){var b;return _.l(function(c){if(c.nextAddress==1)return _.p(c,_.v().resolve(_.gu),2);b=c.yieldResult;b.setUpPositionSyncInterval(a);_.se(c)})};
_.f.performDataUpdate=function(a,b){_.x("kevlar_early_popup_close")||_.ho(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var c=!a.filler;c&&(_.Jo("lps"),_.x("config_age_report_killswitch")||ktc());var d=mY(a),e,g=!1;if(_.x("kevlar_remove_page_dom_on_switch")){var k=b&&mY(b);d===k&&(e=this.getCurrentPage())}e||(e=S0(this.pagePool,d));c&&XAc(this.pagePool.elementPoolPopulator,d);c&&!this.renderLoadingStateJobId&&(g=this.setActivePage(e));if(e){k=d==="watch";var m=
d==="shorts";_.x("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(e);if(k||m)e.playerData=a.playerResponse;if(m){a.reelWatchSequenceResponse?e.reelWatchSequenceResponse=a.reelWatchSequenceResponse:a.cachedReelWatchSequenceResponse&&(e.reelWatchSequenceResponse=a.cachedReelWatchSequenceResponse);e.currentEndpoint=a.endpoint;var n;e.isPreviousPageShorts=!!(b==null?0:(n=b.endpoint)==null?0:n.reelWatchEndpoint);a.cachedReelWatchSequenceResponse=a.reelWatchSequenceResponse||
a.cachedReelWatchSequenceResponse||(b==null?void 0:b.cachedReelWatchSequenceResponse);e.cachedReelWatchSequenceResponse=a.cachedReelWatchSequenceResponse}n=this.isDownloadsPage(a);var r=this.isDownloadsPage(b);n&&!r?this.setPlayerSyncInterval(6E5):!n&&r&&this.setPlayerSyncInterval();_.x("block_all_player_prefetch_requests")||this.preparePrefetchRequest(a,e,c,k,m);DBc(_.v().resolve(_.Vw),b,a);_.QVb(_.v().resolve(_.Ft));_.x("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(e);
c?(c=typeof e.loadPage,c==="function"?(e.pageContext=pMc(this.contextSwitcher,e,e.data!==a.response),b=function(){e.loadPage(a.response)},(this.applySlideTransition||this.applyZoomTransition)&&this.viewTransitionManager&&e.is==="ytd-browse"&&g?this.applySlideTransition?CBc(this.viewTransitionManager,b,{transitionName:"slide"}):CBc(this.viewTransitionManager,b,{transitionName:"zoom"}):b()):_.Cl(new _.qj("b/38014653 ",[d,
e.is,e.nodeName,c,e.isAttached,b&&mY(b),this.hostElement.children.length])),_.Jo("pdl")):(e.hidden=!0,a.response.filler=!0,e.data=a.response,this.attachPage(e));_.go(this.hostElement,"yt-page-data-updated",{pageType:d})}_.ul(_.zk,function(){_.x("logging_avoid_blocking_during_navigation")&&_.Bta().transition("none");var t=EMc(),u=e;if(a){var w=Owc(a),A=Pwc(a),C;a:{if(a.playerResponse){var G=a.playerResponse,J;if((C=G.auxiliaryUi)==null?0:(J=C.messageRenderers)==null?0:J.upsellDialogRenderer){C=G.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(a.response&&(C=a.response,(G=C.overlay)==null?0:G.upsellDialogRenderer)){C=C.overlay.upsellDialogRenderer;break a}C=void 0}var I;var R;J=(I=a.playerResponse)==null?void 0:(R=I.auxiliaryUi)==null?void 0:R.messageRenderers;I=(J==null?void 0:J.enforcementMessageViewModel)||(J==null?void 0:J.bkaEnforcementMessageViewModel);I=(I==null?void 0:I.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?I:void 0;var ca;a:{if(a.response&&(R=a.response,(ca=R.overlay)==null?0:ca.commandWrapperPromoRenderer)){ca=
R.overlay.commandWrapperPromoRenderer;break a}ca=void 0}DMc(t,w,A,C,I,ca,u)}})};
_.f.preparePrefetchRequest=function(a,b,c,d,e){var g,k,m,n,r,t,u,w,A,C,G,J,I,R,ca;return _.l(function(V){if(V.nextAddress==1)return!c||!d&&!e||_.x("kevlar_disable_background_prefetch")&&_.Ii(_.vCa)()===0?V.return():(g=_.au(b))?_.p(V,g.getPlayerPromise(),2):V.return();k=V.yieldResult;m=_.v().resolve(_.Wi(_.wq));if(!m)return V.return();if(e)return n=_.mw(_.nG),dBc(n,(r=a.endpoint)==null?void 0:r.reelWatchEndpoint,b.reelWatchSequenceResponse,k,m),V.return();w=(t=a.response)==null?void 0:(u=t.responseContext)==
null?void 0:u.webResponseContextExtensionData;if(!w)return V.return();I=(A=a.response)==null?void 0:(C=A.contents)==null?void 0:(G=C.twoColumnWatchNextResults)==null?void 0:(J=G.autoplay)==null?void 0:J.autoplay;R=_.v().resolve(_.QF);ca=_.mw(_.nG);eBc(ca,w,k,m,R,I);_.se(V)})};
_.f.movePlayerToWatch=function(a){var b=this,c,d;return _.l(function(e){c=S0(b.pagePool,"watch");d=c.getPlayerContainer();a.appendTo(d);_.se(e)})};
_.f.movePlayerToShorts=function(a){var b=this,c,d,e;return _.l(function(g){c=S0(b.pagePool,"shorts");d=c.getPlayerContainer();(e=a)==null||e.appendTo(d,void 0,!0);_.se(g)})};
_.f.getPlayerFromWatch=function(){var a=S0(this.pagePool,"watch");return _.au(a)};
_.f.getPlayerFromShorts=function(){var a=S0(this.pagePool,"shorts");return _.au(a)};
_.f.startLoadingWatch=function(){var a=S0(this.pagePool,"watch");this.renderLoadingStateJobId?(_.zk.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,this.renderPageLoadingState("watch")):this.setActivePage(a)};
_.f.startLoadingShorts=function(){var a=S0(this.pagePool,"shorts");this.setActivePage(a)};
_.f.getCurrentPage=function(){return this.currentPage};
_.f.getDestinationPageType=function(){return this.destinationPageType};
_.f.getCurrentData=function(){return this.data};
_.f.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.f.isOnShorts=function(){var a;return((a=this.currentPage)==null?void 0:a.is)==="ytd-shorts"};
_.f.isWatchPage=function(a){return!!a&&(a.is==="ytd-watch-flexy"||a.is==="ytd-watch-fixie"||a.is==="ytd-watch-grid")};
_.f.preparePage=function(a,b){var c=this,d=function(){var k=c.pagePool.preparePage(a,c.currentPage,b);k&&c.attachPage(k)},e=function(k){_.El(k,b);
_.Dl(k)};
if(_.x("kevlar_enable_mss_page_modules_client")){var g=this.getModuleNameForType(a);if(g=ABc(_.v().resolve(_.Xw),[g])){g.then(d.bind(this)).catch(e.bind(this));return}}try{d()}catch(k){e(k)}};
_.f.lazyPrepareCriticalPages=function(a,b){a=rY(b)||a;_.x("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(a).then(this.maybePrepareWatchPage.bind(this,a)):this.maybePrepareWatchPage(a)};
_.f.maybePrepareWatchPage=function(a){a!=="watch"&&_.ul(_.zk,this.preparePage.bind(this,"watch"))};
_.f.downloadPageModules=function(a){a=this.getModuleNameForType(a);var b=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);b.delete(a);var c=_.v().resolve(_.Xw);c.JSC$16108_loadModules(a);return c.JSC$16108_loadModules.apply(c,_.Be(b))};
_.f.renderPageLoadingState=function(a,b){this.preparePage(a,b);var c=S0(this.pagePool,a);c.loadingData&&(c.loadingData.endpoint=b);c.loading=!0;this.setActivePage(c);a==="watch"&&_.go(this.hostElement,"yt-guide-close")};
_.f.prepareForNavigation=function(a,b){var c=this;if(this.currentPage&&this.data){var d=rY(b)||a;this.destinationPageType=d;mY(this.data)==d&&_.go(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if(a==="watch"&&this.data&&this.data.page!=="watch"){this.renderLoadingStateJobId&&_.zk.cancelJob(this.renderLoadingStateJobId);_.v().resolve(_.Vw).deactivate(b);var e=this.data;this.renderLoadingStateJobId=_.Du(_.zk,function(){if(c.data!=e){var g=S0(c.pagePool,a);c.setActivePage(g)}else c.renderPageLoadingState(a,
b);c.renderLoadingStateJobId=0},150)}};
_.f.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var a=new _.ZG(1);this.currentPage.pageDisposeJobs.forEach(function(b){_.$G(a,b)});
this.pageDisposeJobsets.set(this.currentPage,a)}};
_.f.flushPageDisposeJobset=function(a){var b=this.pageDisposeJobsets.get(a);b&&(b.flushJobs(),this.pageDisposeJobsets.delete(a))};
_.f.onYtStopOldPlayer=function(a,b){b=b===void 0?!1:b;var c,d=_.bj("kevlar_new_stop_old_player_logic_pages");if(_.x("kevlar_check_current_page_on_stop_old_player")&&(d.length===0||this.currentPage&&d.includes(this.currentPage.is)))if(this.data&&(c=mY(this.data)),mY(a)===c&&this.currentPage&&mY(this.currentPage.data)!==c)var e=_.au(this.currentPage);else c=mY(this.data),e=S0(this.pagePool,c),e=_.au(e);else this.data&&(c=mY(this.data),e=S0(this.pagePool,c),e=_.au(e));if(e)if(a=mY(a),d=S0(this.pagePool,
a),d=_.au(d),e==d)b&&!_.x("kevlar_disable_preemptive_player_reset")&&e.resetForNewPlayback();else if(b=c==="watch"&&a!=="watch",!b||a==="shorts"||_.KIb()&&!fsc(this.data)&&a!=="yts-products"&&a!="mini_app"&&a!="playables")c=_.v().resolve(_.Vw),b&&c.isMiniplayerActive()&&c.pipController.getWindow()||e.stop()};
_.f.setupPageTransitionAnimation=function(){var a=this;if((this.applyZoomTransition||this.applySlideTransition)&&this.viewTransitionManager){wZ(this.viewTransitionManager,"slide",{beforeTransition:function(){a.hostElement.style.viewTransitionName="page-manager-slide"},
afterTransition:function(){a.hostElement.style.viewTransitionName=""}});
wZ(this.viewTransitionManager,"zoom",{beforeTransition:function(){a.hostElement.style.viewTransitionName="page-manager-zoom"},
afterTransition:function(){a.hostElement.style.viewTransitionName=""}});
var b=_.$i("web_page_transition_exit_ms"),c=_.$i("web_page_transition_wait_ms"),d=_.$i("web_page_transition_enter_ms");if(!isNaN(b)||!isNaN(c)||!isNaN(d))if(b=nsc(MNc,b,c,d))c=document.createElement("style"),c.textContent=_.Rda(b),document.head.appendChild(c)}};
_.Vm.Object.defineProperties(NNc,{template:{configurable:!0,enumerable:!0,get:function(){return LNc()}}});
var ONc=NNc;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],ONc.prototype,"ytActionHandlerBehavior",void 0);ONc=_.U([_.Q({disableElementRegistration:!0,is:"ytd-page-manager"})],ONc);_.S(ONc,"ytd-page-manager",function(){return LNc()},{mode:_.as("kevlar_poly_si_batch_j081")?1:2});var c1=function(a,b,c){c=c===void 0?!1:c;_.tg.call(this);this.draggableElement=a;this.callbacks=b;this.allowClicks=c;this.dragOccurred=!1;this.internalDragger=new _.RA(this.draggableElement);this.dragDelay=new _.Ym(this.delayedDrag.bind(this));PNc(this);this.allowClicks&&(_.vkb(this.internalDragger,5),a.addEventListener("click",_.er(this,this.validateClick),{capture:!0}))};
_.z(c1,_.tg);var PNc=function(a){_.ss(a.internalDragger,"earlycancel",function(){a.allowClicks&&(a.dragOccurred=!1)});
_.ss(a.internalDragger,"start",function(b){var c,d;(d=(c=a.callbacks).onStartDrag)==null||d.call(c,b);!b.defaultPrevented&&a.allowClicks&&(a.dragOccurred=!0)});
_.ss(a.internalDragger,"beforedrag",function(b){b.preventDefault();a.lastOffset=new _.Af(b.clientX-a.internalDragger.startX,b.clientY-a.internalDragger.startY);a.dragDelay.start()});
_.ss(a.internalDragger,"end",function(){a.dragDelay.stop();var b,c;(c=(b=a.callbacks).onEndDrag)==null||c.call(b);a.lastOffset=void 0})};
c1.prototype.delayedDrag=function(){if(this.lastOffset)this.callbacks.onDrag(this.lastOffset)};
c1.prototype.disposeInternal=function(){this.internalDragger.dispose();this.allowClicks&&this.draggableElement.removeEventListener("click",_.er(this,this.validateClick),{capture:!0})};
c1.prototype.validateClick=function(a){this.dragOccurred&&(this.dragOccurred=!1,a.stopPropagation(),a.preventDefault())};var d1=function(a,b){_.tg.call(this);this.JSC$17571_resizeContainer=a;this.callbacks=b;this.aspectRatio=16/9;this.JSC$17571_resizers=[];a=_.h(this.JSC$17571_resizeContainer.children);for(b=a.next();!b.done;b=a.next())QNc(this,b.value)};
_.z(d1,_.tg);d1.prototype.disposeInternal=function(){for(var a=_.h(this.JSC$17571_resizers),b=a.next();!b.done;b=a.next())b.value.dispose();a=_.h(this.JSC$17571_resizeContainer.children);for(b=a.next();!b.done;b=a.next())b.value.setAttribute("disabled","");this.JSC$17571_resizers.length=0};
d1.prototype.setSize=function(a){this.currentMiniplayerSize=a};
d1.prototype.setAspectRatio=function(a){this.aspectRatio=a};
d1.prototype.update=function(a,b){for(var c=_.h(this.JSC$17571_resizeContainer.children),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.getAttribute("alignment");_.ar(d,"disabled",e===a||e===b)}};
var QNc=function(a,b){var c=b.getAttribute("alignment"),d=new c1(b,{onStartDrag:function(e){if(b.hasAttribute("disabled"))e.preventDefault();else{a.dragStartSize=a.currentMiniplayerSize;var g,k;(k=(g=a.callbacks).onStartResize)==null||k.call(g)}},
onDrag:function(e){if(a.dragStartSize){c!=="north"&&c!=="west"||e.scale(-1);var g=c==="north"||c==="south";e=g?e.y:e.x;g&&a.aspectRatio>=1?e*=a.aspectRatio:!g&&a.aspectRatio<1&&(e/=a.aspectRatio);a.callbacks.onResize(a.dragStartSize+e)}}});
a.JSC$17571_resizers.push(d)};var RNc,SNc=function(){return RNc!==void 0?RNc:RNc=document.createElement("template")};
document.head.appendChild(SNc().content);var TNc;var UNc=_.Rr(function(a){var b=_.Rl(),c=a.onDrag,d=a.onDragStart,e=a.onDragEnd,g=_.Or(a,{allowClicks:!1,dragThreshold:5}),k=g.dragThreshold,m=g.allowClicks;a=g.children;g=g.className;var n=void 0,r=void 0,t=new _.Af(0,0),u=!1;_.vi(function(){n=new _.RA(b.value);r=new _.Ym(A);w(n,r);if(m()){_.vkb(n,k());var G;(G=b.value)==null||G.addEventListener("click",C,{capture:!0})}_.wh(function(){var J;(J=n)==null||J.dispose();if(m()){var I;(I=b.value)==null||I.removeEventListener("click",C,{capture:!0})}})});
var w=function(G,J){_.ss(G,"earlycancel",function(){m()&&(u=!1)});
_.ss(G,"start",function(I){d==null||d(I);I.defaultPrevented||m()&&(u=!0)});
_.ss(G,"beforedrag",function(I){n&&r&&(I.preventDefault(),t=new _.Af(I.clientX-n.startX,I.clientY-n.startY),r.start())});
_.ss(G,"end",function(){J.stop();e==null||e();t=new _.Af(0,0)})},A=function(){t&&c(t)},C=function(G){u&&(u=!1,G.stopPropagation(),G.preventDefault())};
return _.q("yt-draggable",{el:b,class:_.jt("ytDraggableComponentHost",g)},a)});var VNc=_.Rr(function(a){var b=_.h(_.fh(0,"Pf10wb")),c=b.next().value,d=b.next().value;b=function(e){var g={},k={};return _.q(UNc,{className:_.jt("ytdMiniplayerComponentResizer",(g.ytdMiniplayerComponentResizerDisabled=function(){return e===a.horizontalAlignment()||e===a.verticalAlignment()},g.ytdMiniplayerComponentResizerNorth=e==="north",g.ytdMiniplayerComponentResizerEast=e==="east",g.ytdMiniplayerComponentResizerSouth=e==="south",g.ytdMiniplayerComponentResizerWest=e==="west",g)),
onDragStart:function(){d(a.currentMiniplayerSize())},
onDrag:function(m){e!=="north"&&e!=="west"||m.scale(-1);var n;m=(n=e==="north"||e==="south")?m.y:m.x;var r=a.currentAspectRatio();n&&r>=1?m*=r:!n&&r<1&&(m/=r);n=m;a.onResize(c()+n)}},_.q("div",{class:_.jt("ytdMiniplayerComponentResizerCorner",(k.ytdMiniplayerComponentResizerNorthCorner=e==="north",k.ytdMiniplayerComponentResizerEastCorner=e==="east",k.ytdMiniplayerComponentResizerSouthCorner=e==="south",k.ytdMiniplayerComponentResizerWestCorner=e==="west",k))}))};
return _.q("div",{class:"ytdMiniplayerComponentResizers"},b("north"),b("east"),b("south"),b("west"))});var WNc=16/9,XNc=_.Rr(function(){var a=_.Rl(),b=_.h(_.fh(new _.of(NaN,NaN),"yxHohf")),c=b.next().value,d=b.next().value;b=_.h(_.fh(!1,"ku1l7c"));var e=b.next().value,g=b.next().value;b=_.h(_.fh(!1,"pbOm3b"));var k=b.next().value,m=b.next().value;b=_.h(_.fh(!1,"LqfsYc"));var n=b.next().value,r=b.next().value;b=_.h(_.fh(!1,"wYZnZe"));var t=b.next().value,u=b.next().value;b=_.h(_.fh(!1,"KVndGb"));var w=b.next().value,A=b.next().value;b=_.h(_.fh(!1,"ofTiZe"));var C=b.next().value,G=b.next().value;b=_.h(_.fh(WNc,
"bpheWd"));var J=b.next().value,I=b.next().value,R=_.h(_.fh(!1,"MIV0Jb"));b=R.next().value;var ca=R.next().value;R=_.h(_.fh(!1,"Y2idSc"));var V=R.next().value,fa=R.next().value;R=_.h(_.fh(void 0,"IuZWBb"));var aa=R.next().value,ma=R.next().value;R=_.h(_.fh(_.Ei("HTML_DIR")==="rtl"?"west":"east","nLgCTd"));var Ba=R.next().value,Da=R.next().value;R=_.h(_.fh("south","mV91if"));var za=R.next().value,Fa=R.next().value;R=_.h(_.fh(400,"OwmImd"));var bb=R.next().value,kb=R.next().value,Ua=_.v().resolve(_.Vw).miniplayerPropSignalMap[0],
Fc=Ua.data,id=Ua.externalPlaylistData;R=Ua.toastData;var Mb=Ua.playabilityStatus,wd=Ua.isDisabled,Tb=Ua.watchWhile;Ua=_.h(_.qt(Ua.isReadyToResume));var tb=Ua.next().value,Fb=Ua.next().value,dd;_.vi(function(){d(_.sq());a.value.addEventListener("animationend",function(Ya){Ya.target===a.value&&(A(!1),G(!1))})});
_.Ql("yt-window-resized",function(Ya){Ya&&d(Ya)});
var be=function(){dd&&I(dd.getVideoAspectRatio())},ia=function(){if(dd){var Ya=dd.getPlayerState()===1;
tb()&&Ya&&Fb(!1)}};
_.Ql("yt-activate-miniplayer",function(Ya){var Oa;return _.l(function(pb){if(pb.nextAddress==1)return e()?pb.return():_.p(pb,(Oa=_.v().resolve(_.Vw).getPlayerElement())==null?void 0:Oa.getPlayerPromise(),2);dd=pb.yieldResult;if(!dd)return pb.return();!V()&&_.x("kevlar_watch_while_v2")&&(Fa(Ya&&!_.x("kevlar_watch_while_bottom_align")?"north":"south"),Da(_.Ei("HTML_DIR")==="rtl"?"west":"east"));var Yb=dd;Yb.addEventListener("onVideoDataChange",be);Yb.addEventListener("onStateChange",ia);I(dd.getVideoAspectRatio());
g(!0);A(!0);_.se(pb)})});
_.Ql("yt-deactivate-miniplayer",function(Ya){return _.l(function(Oa){g(!1);Fb(!1);G(Ya);A(!0);if(dd){var pb=dd;pb.removeEventListener("onVideoDataChange",be);pb.removeEventListener("onStateChange",ia)}_.se(Oa)})});
var gc=function(){var Ya=!!Fc(),Oa=w(),pb=Tb();return(pb===void 0?0:pb)&&_.x("kevlar_watch_while_modern")?!1:Ya||Oa},Pb=function(){var Ya;
return!((Ya=id())==null||!Ya.contents)},Lc=function(){var Ya=bb();
var Oa=c();Oa=Math.min(Math.min(Oa.width,Oa.height)-32,720);var pb=J(),Yb=gc(),Pc=Pb()&&k(),Db=Math.min(Ya,Oa);Ya=new _.of(192,Yb?116:192);pb=eAc(new _.of(Pc?WNc:pb,1),new _.of(Db,Yb?Db-76:Db));Ya.width<=pb.width&&Ya.height<=pb.height||(dAc(pb,Ya),pb.width=Math.min(pb.width,Oa),pb.height=Math.min(pb.height,Oa));return new _.of(pb.width,_.Qw(192,pb.height+nxc(Yb,Pc),720))},qb=function(){var Ya=Lc(),Oa=gc(),pb=Pb()&&k();
return new _.of(Ya.width,Ya.height-nxc(Oa,pb))},Ab=function(){var Ya=function(Oa){Oa.target===a.value&&t()&&(u(!1),a.value.removeEventListener("transitionend",Ya))};
a.value.addEventListener("transitionend",Ya);u(!0);m(!k())};
Ua={};return _.q("ytd-miniplayer",{el:a,class:_.jt("ytdMiniplayerComponentHost",(Ua.ytdMiniplayerComponentVisible=function(){return e()||w()},Ua.ytdMiniplayerComponentAnimatingSnap=n,Ua.ytdMiniplayerComponentAnimatingPlaylistExpand=t,Ua.ytdMiniplayerComponentAnimatingFade=w,Ua),function(){if(w()){var Ya=za();
var Oa=e(),pb=C();Ya=Oa?Ya==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":pb?Ya==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":Ya==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else Ya="";return Ya}),
style:_.rt({top:function(){return za()==="north"?"16px":""},
right:function(){return Ba()==="east"?"16px":""},
bottom:function(){return za()==="south"?"16px":""},
left:function(){return Ba()==="west"?"16px":""},
width:function(){return Lc().width+"px"},
height:function(){return Lc().height+"px"},
transform:function(){var Ya=aa();return Ya?"translate("+Ya.x+"px, "+Ya.y+"px)":""}})},_.q("div",{class:"ytdMiniplayerComponentContent"},_.q(UNc,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(Ya){var Oa=mxc(Ba(),za(),c(),Lc(),aa()),pb=qb();Math.abs(Ya.clientY-(Oa.y+pb.height))>15?ca(!0):Ya.preventDefault()},
onDrag:function(Ya){ma(Ya)},
onDragEnd:function(){var Ya=jxc(mxc(Ba(),za(),c(),Lc(),aa()),c(),Lc()),Oa=lxc(Ba(),za(),c(),Lc()),pb=lxc(Ya.horizontalAlignment,Ya.verticalAlignment,c(),Lc());pb=new _.Af(pb.x-Oa.x,pb.y-Oa.y);var Yb;Oa=Oa.y+(((Yb=aa())==null?void 0:Yb.y)||0)+Lc().height/2;var Pc=function(){Ba()===Ya.horizontalAlignment&&za()===Ya.verticalAlignment||fa(!0);Da(Ya.horizontalAlignment);Fa(Ya.verticalAlignment);ma(void 0)},Db=function(Vc){Vc.target===a.value&&n()&&(r(!1),Pc(),a.value.removeEventListener("transitionend",
Db))};
ca(!1);za()==="south"&&Oa>c().height?(Pc(),_.v().resolve(_.Vw).close()):(a.value.addEventListener("transitionend",Db),r(!0),ma(pb))}},_.q(_.oi,{cond:e,
then:function(){return _.q(_.Ejc,{isDisabled:wd,playabilityStatus:Mb,size:qb})}}),_.q(_.oi,{cond:gc,
then:function(){return _.q(_.Cjc,{isReadyToResume:tb,data:Fc,expanded:k,onExpandClick:Ab,playlistData:id})}}),_.q(_.oi,{cond:b,
then:function(){return _.q("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.q(_.oi,{cond:function(){return Pb()&&k()||t()},
then:function(){return _.q(_.Vdc,{className:"ytdMiniplayerComponentPlaylistPanel",data:id,hideHeaderText:!0,withinMiniplayer:!0})}}),_.q("div",{class:"ytdMiniplayerComponentToast"},_.q(_.Fjc,{toastData:R}))),_.q(VNc,{onResize:function(Ya){kb(_.Qw(192,Ya,720))},
currentAspectRatio:J,currentMiniplayerSize:bb,horizontalAlignment:Ba,verticalAlignment:za}))});_.x("ytd_miniplayer_to_wiz")&&_.Ws(XNc,"ytd-miniplayer",{});_.Ws(_.Fjc,"ytd-miniplayer-toast",{props:{toastData:_.SG}});var YNc=16/9,ZNc=new _.of(400,400/YNc),e1=function(){var a=_.P.apply(this,arguments)||this;a.active=!1;a.hasNoData=!1;a.enabled=!1;a.expanded=!1;a.readyToResume=!1;a.disabledState=!1;a.isDisabled=!1;a.externalPlaylistData={};a.premiumBadges=[];a.watchWhile=!1;a.playerState=null;a.verticalAttachment="south";a.horizontalAttachment=_.Ei("HTML_DIR")==="rtl"?"west":"east";a.isAnimatingFade=!1;a.isAnimatingSnap=!1;a.isAnimatingExpand=!1;a.isDragging=!1;a.playerHidden=!1;a.hasPlaylistData=!1;a.closed=!1;
a.expandedClosed=!1;a.isForReadyToResume=!1;a.watchResponse=null;a.player=null;a.playerVe=null;a.expandVe=null;a.closeVe=null;a.readyToResumeCloseVe=null;a.disabledInitialStateIsPlaying=!1;a.PLAYER_EVENTS=new Map;a.aspectRatio=YNc;a.currentMiniplayerSize=400;a.userSetSize=!1;a.userSetPosition=!1;a.userHasDragged=!1;a.maxMiniplayerSize=720;a.transform=new _.Af(0,0);a.windowDimensions=new _.of(NaN,NaN);a.dimensions=ZNc;a.screenLayer=3;a.actionMap={"yt-activate-miniplayer-action":"activate","yt-deactivate-miniplayer-action":"deactivate",
"yt-window-resized":"onWindowResized"};return a};
_.z(e1,_.P);_.f=e1.prototype;_.f.created=function(){this.PLAYER_EVENTS.set("onVideoDataChange",this.onPlayerVideoDataChange);this.PLAYER_EVENTS.set("onCloseMiniplayer",this.onPlayerCloseMiniplayer);this.PLAYER_EVENTS.set("onExpandMiniplayer",this.onPlayerExpandMiniplayer);this.PLAYER_EVENTS.set("onStateChange",this.onPlayerStateChange);this.registerViewTransitionTasks()};
_.f.ready=function(){this.setUpDragging();this.setUpResizing()};
_.f.attached=function(){this.onWindowResized(_.sq());this.hostElement.addEventListener("animationend",_.er(this,this.resetFadingAnimation))};
_.f.detached=function(){this.hostElement.removeEventListener("animationend",_.er(this,this.resetFadingAnimation))};
_.f.resetFadingAnimation=function(a){a.target===this.hostElement&&(this.isAnimatingFade=!1)};
_.f.hasPlaylistDataChanged=function(){!this.hasPlaylistData&&this.expanded&&(this.expanded=!1);this.updateDimensionsAndResize()};
_.f.onPlayerVeChange=function(){this.playerVe&&this.logMiniplayer()};
_.f.premiumBrandingChanged=function(){if(this.premiumBranding){this.readyToResume=this.isForReadyToResume=!0;var a=_.Fn(this.screenLayer);this.readyToResumeCloseVe&&a&&_.To(a,[this.readyToResumeCloseVe]);this.set("premiumBadges",[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}])}};
_.f.readyToResumeVeChanged=function(){if(this.readyToResumeVe){var a=_.Fn(0),b=_.En(0);a&&b&&(_.Ro(a,b,this.readyToResumeVe),_.To(a,[this.readyToResumeVe]))}};
_.f.onMiniplayerRendererChanged=function(){if(this.player&&!_.x("miniplayer_service_controls_disabling")){var a;if(((a=this.miniplayerRenderer)==null?void 0:a.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"){if(!_.x("miniplayer_disabled_open_popup_killswitch")){var b;(a=_.y((b=this.miniplayerRenderer)==null?void 0:b.minimizedEndpoint,_.GE))&&_.v().resolve(_.GJ).openSheet({openPopupActionCommand:{openPopupAction:a}},this.hostElement)}this.disabledState=!0;b=this.player.getPlayerState();(this.disabledInitialStateIsPlaying=
b===-1||b===1||b===3)&&this.player.pauseVideo()}else this.disabledState=!1}};
_.f.onIsDisabledChanged=function(){if(_.x("miniplayer_service_controls_disabling")&&this.isDisabled&&this.player){var a=this.player.getPlayerState();(this.disabledInitialStateIsPlaying=a===-1||a===1||a===3)&&this.player.pauseVideo()}};
_.f.computeDisabledHidden=function(a,b){return _.x("miniplayer_service_controls_disabling")?!b:!a};
_.f.activate=function(a,b){b=b===void 0?!1:b;var c=this,d;return _.l(function(e){if(e.nextAddress==1)return c.setInitialActivatePositioning(b),c.enabled=!0,c.active=!0,c.expanded=!1,c.closed=!1,c.expandedClosed=!1,c.watchWhileHidden||(c.isAnimatingFade=!0),_.v().resolve(_.QF).setPlaylistComponent(c.JSC$17582_playlistPanel),a.appendTo(c.playerContainer),_.p(e,a.getPlayerPromise(),2);d=e.yieldResult;d.setSizeStyle(!1,!0);c.ytPlayerListenerBehavior.listenToPlayerEvents(d,c.PLAYER_EVENTS);c.player=d;
c.watchWhile&&_.x("kevlar_watch_while_minimum_size")&&c.setMiniplayerSize(192);c.setAspectRatio(c.player.getVideoAspectRatio());c.onMiniplayerRendererChanged();c.onIsDisabledChanged();_.se(e)})};
_.f.setInitialActivatePositioning=function(a){if(!this.userSetPosition&&_.x("kevlar_watch_while_v2")){this.verticalAttachment=a&&!_.x("kevlar_watch_while_bottom_align")?"north":"south";this.horizontalAttachment=_.Ei("HTML_DIR")==="rtl"?"west":"east";var b;(b=this.JSC$17582_resizers)==null||b.update(this.horizontalAttachment,this.verticalAttachment)}};
_.f.deactivate=function(a,b){var c=this;return _.l(function(d){if(!c.active)return d.return();a||(c.expanded?c.expandedClosed=!0:c.closed=!0);c.active=!1;c.isForReadyToResume=!1;c.disabledState=!1;b&&_.x("kevlar_watch_while_counterfactual")||(c.isAnimatingFade=!0);c.player&&c.ytPlayerListenerBehavior.unlistenFromPlayerEvents(c.player,c.PLAYER_EVENTS);c.player=null;_.se(d)})};
_.f.onMetadataTap=function(a){this.expandVe&&(a===void 0||a)&&(a=_.Fn(this.screenLayer))&&_.Vo(a,this.expandVe);_.vW(_.v().resolve(_.Vw))};
_.f.onDisabledTap=function(a){a.target===_.E(this.hostElement).querySelector("#blocking-container")&&(this.disabledInitialStateIsPlaying&&this.player.playVideo(),this.onMetadataTap(),this.disabledState=!1)};
_.f.onPlaylistExpandTap=function(a){if(this.hasPlaylistData){a=_.Pq(a)||[];a=_.h(a);for(var b=a.next();!b.done;b=a.next()){b=b.value;if(b===this.hostElement)break;if(b.classList&&b.classList.contains("miniplayer-title"))return}this.playlistExpand()}};
_.f.playlistExpand=function(){this.hostElement.addEventListener("transitionend",_.er(this,this.animatedResizePlaylist));this.isAnimatingExpand=!0;this.ytRendererBehavior.markDirty();this.expanded=!this.expanded;this.updateDimensionsAndResize()};
_.f.animatedResizePlaylist=function(a){a.target===this.hostElement&&(this.isAnimatingExpand=!1,this.hostElement.removeEventListener("transitionend",_.er(this,this.animatedResizePlaylist)))};
_.f.getExpandIcon=function(a){return a?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"};
_.f.onPlayerVideoDataChange=function(){var a,b=(a=this.player)==null?void 0:a.getVideoAspectRatio();b&&b!==this.aspectRatio&&this.setAspectRatio(b)};
_.f.setAspectRatio=function(a){if(this.active){this.aspectRatio=a;this.updateDimensionsAndResize();var b;(b=this.JSC$17582_resizers)==null||b.setAspectRatio(a)}};
_.f.updateDimensionsAndResize=function(){var a=Math.min(this.currentMiniplayerSize,this.maxMiniplayerSize),b=this.expanded?YNc:this.aspectRatio,c=new _.of(192,this.showInfoBar?116:192);a=eAc(new _.of(b,1),new _.of(a,this.showInfoBar?a-76:a));c.width<=a.width&&c.height<=a.height||(dAc(a,c),a.width=Math.min(a.width,this.maxMiniplayerSize),a.height=Math.min(a.height,this.maxMiniplayerSize),this.setMiniplayerSize(this.showInfoBar&&b<=1?Math.max(a.width,a.height)+76:Math.max(a.width,a.height)));this.dimensions=
new _.of(a.width,this.clamp(a.height+this.getNonPlayerHeight()));this.resize()};
_.f.resize=function(){this.hostElement.style.width=this.dimensions.width+"px";this.hostElement.style.height=this.dimensions.height+"px";var a=this.getPlayerSize(this.dimensions);this.playerContainer.style.height=a.height+"px";var b;(b=this.player)==null||b.setInternalSize(a.width,a.height)};
_.f.getPlayerSize=function(a){var b=Math.max(0,a.height-this.getNonPlayerHeight());return new _.of(a.width,b)};
_.f.getNonPlayerHeight=function(){var a=0;this.showInfoBar&&(a+=76);this.expanded&&(a+=285);return a};
_.f.onDisabledCloseMiniplayer=function(){this.logClosingClick();_.v().resolve(_.Vw).close()};
_.f.onPlayerCloseMiniplayer=function(){this.logClosingClick()};
_.f.logClosingClick=function(){this.closeVe&&_.Vo(_.Fn(this.screenLayer),this.closeVe);this.isForReadyToResume&&this.readyToResumeCloseVe&&_.Vo(_.Fn(this.screenLayer),this.readyToResumeCloseVe)};
_.f.onPlayerExpandMiniplayer=function(){if(this.expandVe){var a=_.Fn(this.screenLayer);a&&_.Vo(a,this.expandVe)}};
_.f.onPlayerStateChange=function(){if(this.player){this.playerState=this.player.getPlayerState();var a=this.playerState===1;this.continueWatching&&a&&(this.continueWatching=!1);this.premiumBadges.length&&a&&(this.set("premiumBadges",[]),this.readyToResume=this.premiumBranding=!1,this.updateDimensionsAndResize())}};
_.f.getScreenLayer=function(){return this.screenLayer};
_.f.logMiniplayer=function(){var a=_.Fn(this.screenLayer),b=_.En(this.screenLayer);a&&b&&this.playerVe&&(_.Ro(a,b,this.playerVe),this.expandVe&&this.closeVe&&this.readyToResumeCloseVe&&(_.eY(a,this.playerVe,[this.expandVe,this.closeVe,this.readyToResumeCloseVe]),_.To(a,[this.expandVe,this.closeVe])),this.repositionVe&&this.resizeVe&&_.eY(a,this.playerVe,[this.repositionVe,this.resizeVe]))};
_.f.computePlaylistData=function(a,b){return b};
_.f.computeHasPlaylistData=function(){return!!this.playlistData&&!!this.playlistData.contents};
_.f.updateHeader=function(a,b,c){this.data||(this.data={miniplayerTitle:{simpleText:""},miniplayerSubtitle:{simpleText:""},playlistData:null});a&&this.set("data.miniplayerTitle",a);b&&this.set("data.miniplayerSubtitle",b);c&&this.set("data.watchEndpoint",c);this.set("premiumBadges",[]);this.readyToResume=!1};
_.f.computeExpandButtonHidden=function(a,b,c){return!a||!b||c};
_.f.computePlaylistIndexHidden=function(a,b){return!a||b};
_.f.computePlaylistPanelHidden=function(a,b){return!b&&!a};
_.f.computeExpandButtonLabel=function(a){return a?_.to("MINIPLAYER_COLLAPSE_LABEL"):_.to("MINIPLAYER_EXPAND_LABEL")};
_.f.computeDisabledStateCloseButtonLabel=function(){return _.to("MINIPLAYER_CLOSE",void 0,"Close")};
_.f.onWindowResized=function(a){a&&(a=this.windowDimensions=a,this.maxMiniplayerSize=Math.min(Math.min(a.width,a.height)-32,720),this.updateDimensionsAndResize())};
_.f.setUpResizing=function(){var a=this;this.JSC$17582_resizers||(this.JSC$17582_resizers=new d1(this.JSC$17582_resizeContainer,{onStartResize:function(){a.handleResizeStart()},
onResize:function(b){a.handleResize(b)}}),this.JSC$17582_resizers.setSize(this.currentMiniplayerSize),this.JSC$17582_resizers.update(this.horizontalAttachment,this.verticalAttachment))};
_.f.handleResizeStart=function(){var a=_.Fn(this.screenLayer);this.userSetSize||(this.userSetSize=!0,a&&this.resizeVe&&_.To(a,[this.resizeVe]));a&&this.resizeVe&&_.Vo(a,this.resizeVe)};
_.f.handleResize=function(a){this.setMiniplayerSize(a);this.updateDimensionsAndResize()};
_.f.setUpDragging=function(){var a=this;this.JSC$17582_dragger||(this.JSC$17582_dragger=new c1(this.draggableContainer,{onStartDrag:function(b){!a.isSafeToDrag(b)||a.isAnimatingSnap?b.preventDefault():a.handleDragStart()},
onDrag:function(b){a.transform=b;a.setTransform(a.transform)},
onEndDrag:function(){a.handleDragEnd()}},!0))};
_.f.handleDragStart=function(){this.isDragging=!0;var a=_.Fn(this.screenLayer);this.userHasDragged||(this.userHasDragged=!0,a&&this.repositionVe&&_.To(a,[this.repositionVe]));a&&this.repositionVe&&_.Vo(a,this.repositionVe)};
_.f.handleDragEnd=function(){this.isDragging=!1;var a=this.getCurrentGlobalPosition().y+this.dimensions.height/2;this.verticalAttachment==="south"&&a>this.windowDimensions.height&&_.v().resolve(_.Vw).close();this.animateSnapToCorner()};
_.f.animateSnapToCorner=function(){var a=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment),b=this.getNearestAttachments();b=this.getGlobalPositionFromAttachments(b.horizontalAttachment,b.verticalAttachment);a=new _.Af(b.x-a.x,b.y-a.y);this.isAnimatingSnap=!0;this.setTransform(a);this.hostElement.addEventListener("transitionend",_.er(this,this.endSnapAnimation))};
_.f.endSnapAnimation=function(a){a.target===this.hostElement&&this.isAnimatingSnap&&(this.hostElement.removeEventListener("transitionend",_.er(this,this.endSnapAnimation)),this.endDrag())};
_.f.endDrag=function(){this.isAnimatingSnap=!1;this.updateAttachments();this.setTransform(null)};
_.f.setTransform=function(a){this.hostElement.style.transform=a?"translate("+a.x+"px, "+a.y+"px)":""};
_.f.getGlobalPositionFromAttachments=function(a,b){return new _.Af(a==="west"?16:this.windowDimensions.width-this.dimensions.width-16,b==="north"?16:this.windowDimensions.height-this.dimensions.height-16)};
_.f.updateAttachments=function(){var a=this.getNearestAttachments();if(this.horizontalAttachment!==a.horizontalAttachment||this.verticalAttachment!==a.verticalAttachment)this.userSetPosition=!0;this.horizontalAttachment=a.horizontalAttachment;this.verticalAttachment=a.verticalAttachment;var b;(b=this.JSC$17582_resizers)==null||b.update(this.horizontalAttachment,this.verticalAttachment)};
_.f.getNearestAttachments=function(){var a=this.getCurrentGlobalPosition();return{horizontalAttachment:a.x+this.dimensions.width/2<this.windowDimensions.width/2?"west":"east",verticalAttachment:a.y+this.dimensions.height/2<this.windowDimensions.height/2?"north":"south"}};
_.f.getCurrentGlobalPosition=function(){var a=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment);return kxc(a,this.transform)};
_.f.isSafeToDrag=function(a){var b=this.playerContainer.getBoundingClientRect();return Math.abs(a.clientY-(b.y+b.height))>15};
_.f.setMiniplayerSize=function(a){this.currentMiniplayerSize=this.clamp(a);var b;(b=this.JSC$17582_resizers)==null||b.setSize(this.currentMiniplayerSize)};
_.f.clamp=function(a){return _.Qw(192,a,720)};
_.f.registerViewTransitionTasks=function(){var a=this,b=_.v().resolve(_.Wi(_.zjc));if(b){var c={beforeTransition:function(){a.hostElement&&(a.hostElement.style.viewTransitionName="miniplayer-page-transition")},
afterTransition:function(){a.hostElement&&(a.hostElement.style.viewTransitionName="")}};
wZ(b,"slide",c);wZ(b,"zoom",c)}};
_.Vm.Object.defineProperties(e1.prototype,{showInfoBar:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile?!_.x("kevlar_watch_while_modern"):!0}},
showOverlayPremiumBadges:{configurable:!0,enumerable:!0,get:function(){return!this.showInfoBar&&!!this.premiumBadges.length}},
miniplayerSubtitle:{configurable:!0,enumerable:!0,get:function(){if(this.continueWatching)return{simpleText:_.to("CONTINUE_WATCHING",void 0,"Continue watching")};var a;if((a=this.externalPlaylistData)==null?0:a.contents)return this.externalPlaylistData.titleText;var b;return(b=this.data)==null?void 0:b.miniplayerSubtitle}},
miniplayerTitle:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.externalPlaylistData)==null?0:a.contents){var b;return(b=_.XGa(this.externalPlaylistData))==null?void 0:b.title}var c;return(c=this.data)==null?void 0:c.miniplayerTitle}},
playlistIndexMessage:{configurable:!0,enumerable:!0,get:function(){var a,b,c,d;return((a=this.externalPlaylistData)==null?void 0:a.currentIndex)!==void 0&&((b=this.externalPlaylistData)==null?0:b.totalVideos)&&!((c=this.data)==null?0:(d=c.playlistData)==null?0:d.isCourse)?this.externalPlaylistData.currentIndex+1+" / "+this.externalPlaylistData.totalVideos:null}},
showErrorScreen:{configurable:!0,enumerable:!0,get:function(){return!!this.playabilityStatus&&!_.D5a(this.playabilityStatus)}},
watchWhileHidden:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile&&_.x("kevlar_watch_while_counterfactual")}}});
e1.prototype.onIsDisabledChanged=e1.prototype.onIsDisabledChanged;e1.prototype.onMiniplayerRendererChanged=e1.prototype.onMiniplayerRendererChanged;e1.prototype.readyToResumeVeChanged=e1.prototype.readyToResumeVeChanged;e1.prototype.premiumBrandingChanged=e1.prototype.premiumBrandingChanged;e1.prototype.onPlayerVeChange=e1.prototype.onPlayerVeChange;e1.prototype.hasPlaylistDataChanged=e1.prototype.hasPlaylistDataChanged;
_.U([_.H(_.YI.YtPlayerListenerBehavior),_.W("design:type",_.ZI)],e1.prototype,"ytPlayerListenerBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],e1.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],e1.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],e1.prototype,"ytComponentBehavior",void 0);
_.U([_.H(_.LI),_.W("design:type",Object)],e1.prototype,"ytdReduxBehavior",void 0);_.U([_.gr("#draggable"),_.W("design:type",HTMLDivElement)],e1.prototype,"draggableContainer",void 0);_.U([_.gr("#resize-container"),_.W("design:type",HTMLDivElement)],e1.prototype,"JSC$17582_resizeContainer",void 0);_.U([_.gr("#video-container"),_.W("design:type",HTMLDivElement)],e1.prototype,"videoContainer",void 0);_.U([_.gr("#player-container"),_.W("design:type",HTMLDivElement)],e1.prototype,"playerContainer",void 0);
_.U([_.gr("#playlist"),_.W("design:type",HTMLDivElement)],e1.prototype,"JSC$17582_playlistPanel",void 0);_.U([_.O(),_.W("design:type",Object)],e1.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],e1.prototype,"active",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],e1.prototype,"hasNoData",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],e1.prototype,"enabled",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],e1.prototype,"expanded",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],e1.prototype,"readyToResume",void 0);_.U([_.O(),_.W("design:type",Object)],e1.prototype,"disabledState",void 0);_.U([_.O(),_.W("design:type",Object)],e1.prototype,"isDisabled",void 0);_.U([_.O(),_.W("design:type",Object)],e1.prototype,"externalPlaylistData",void 0);_.U([_.O(),_.W("design:type",Array)],e1.prototype,"premiumBadges",void 0);
_.U([_.O(),_.W("design:type",Object)],e1.prototype,"toastData",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],e1.prototype,"watchWhile",void 0);_.U([_.O(),_.W("design:type",Boolean)],e1.prototype,"premiumBranding",void 0);_.U([_.O(),_.W("design:type",Object)],e1.prototype,"playerState",void 0);_.U([_.O(),_.W("design:type",Boolean)],e1.prototype,"continueWatching",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],e1.prototype,"verticalAttachment",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],e1.prototype,"horizontalAttachment",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],e1.prototype,"isAnimatingFade",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],e1.prototype,"isAnimatingSnap",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],e1.prototype,"isAnimatingExpand",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],e1.prototype,"isDragging",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],e1.prototype,"playerHidden",void 0);_.U([_.O({computed:"computePlaylistData(data.playlistData, externalPlaylistData)"}),_.W("design:type",Object)],e1.prototype,"playlistData",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHasPlaylistData(playlistData)"}),_.W("design:type",Object)],e1.prototype,"hasPlaylistData",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],e1.prototype,"closed",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],e1.prototype,"expandedClosed",void 0);_.U([_.O({selector:_.lFa}),_.W("design:type",Boolean)],e1.prototype,"isSingleOptionSurveyActive",void 0);_.U([_.O({reflectToAttribute:!0,selector:_.Hp}),_.W("design:type",Boolean)],e1.prototype,"isWatchPage",void 0);_.U([_.O({reflectToAttribute:!0}),_.K("watchWhile"),_.W("design:type",Object),_.W("design:paramtypes",[])],e1.prototype,"showInfoBar",null);
_.U([_.K("premiumBadges","showInfoBar"),_.W("design:type",Object),_.W("design:paramtypes",[])],e1.prototype,"showOverlayPremiumBadges",null);_.U([_.O(),_.W("design:type",Object)],e1.prototype,"watchResponse",void 0);_.U([_.O(),_.W("design:type",Object)],e1.prototype,"miniplayerRenderer",void 0);_.U([_.O(),_.W("design:type",Object)],e1.prototype,"playabilityStatus",void 0);_.U([_.O(),_.W("design:type",Object)],e1.prototype,"playerVe",void 0);
_.U([_.O(),_.W("design:type",Object)],e1.prototype,"expandVe",void 0);_.U([_.O(),_.W("design:type",Object)],e1.prototype,"closeVe",void 0);_.U([_.O(),_.W("design:type",Object)],e1.prototype,"readyToResumeCloseVe",void 0);_.U([_.O(),_.W("design:type",_.Dn)],e1.prototype,"readyToResumeVe",void 0);_.U([_.O(),_.W("design:type",_.Dn)],e1.prototype,"resizeVe",void 0);_.U([_.O(),_.W("design:type",_.Dn)],e1.prototype,"repositionVe",void 0);
_.U([_.N("hasPlaylistData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],e1.prototype,"hasPlaylistDataChanged",null);_.U([_.N("playerVe"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],e1.prototype,"onPlayerVeChange",null);_.U([_.N("premiumBranding"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],e1.prototype,"premiumBrandingChanged",null);
_.U([_.N("readyToResumeVe"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],e1.prototype,"readyToResumeVeChanged",null);_.U([_.N("miniplayerRenderer"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],e1.prototype,"onMiniplayerRendererChanged",null);_.U([_.N("isDisabled"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],e1.prototype,"onIsDisabledChanged",null);
_.U([_.K("continueWatching","data.miniplayerSubtitle","externalPlaylistData"),_.W("design:type",Object),_.W("design:paramtypes",[])],e1.prototype,"miniplayerSubtitle",null);_.U([_.K("data.miniplayerTitle","externalPlaylistData"),_.W("design:type",Object),_.W("design:paramtypes",[])],e1.prototype,"miniplayerTitle",null);_.U([_.K("externalPlaylistData","continueWatching"),_.W("design:type",Object),_.W("design:paramtypes",[])],e1.prototype,"playlistIndexMessage",null);
_.U([_.O({reflectToAttribute:!0}),_.K("playabilityStatus"),_.W("design:type",Object),_.W("design:paramtypes",[])],e1.prototype,"showErrorScreen",null);_.U([_.O({reflectToAttribute:!0}),_.K("watchWhile"),_.W("design:type",Object),_.W("design:paramtypes",[])],e1.prototype,"watchWhileHidden",null);
_.x("ytd_miniplayer_to_wiz")||_.S(e1,"ytd-miniplayer",function(){if(TNc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-miniplayer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.main_desktop.player.ytd_miniplayer.ytd.miniplayer.view.transition.css.js,video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="blocking-container" hidden="[[computeDisabledHidden(disabledState, isDisabled)]]" on-click="onDisabledTap" class="style-scope ytd-miniplayer">\n  <yt-icon-button aria-label$="[[computeDisabledStateCloseButtonLabel()]]" on-click="onDisabledCloseMiniplayer" class="style-scope ytd-miniplayer">\n    <yt-icon id="close-icon" icon="yt-icons:close" class="style-scope ytd-miniplayer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div class="miniplayer style-scope ytd-miniplayer" role="dialog">\n  <div id="card" class="style-scope ytd-miniplayer">\n    <div id="draggable" class="style-scope ytd-miniplayer">\n      <div id="video-container" class="style-scope ytd-miniplayer">\n        <div id="player-container" class="style-scope ytd-miniplayer"></div>\n        <yt-playability-error-supported-renderers id="error-screen" compact="" data="[[playabilityStatus.errorScreen]]" hidden$="[[!showErrorScreen]]" reason="[[playabilityStatus.reason]]" status="[[playabilityStatus.status]]" class="style-scope ytd-miniplayer">\n        </yt-playability-error-supported-renderers>\n        <ytd-badge-supported-renderer class="premium-badges overlay style-scope ytd-miniplayer" badges="[[premiumBadges]]" hidden="[[!showOverlayPremiumBadges]]" overlay-premium="">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="card-owner-name" class="owner-name style-scope ytd-miniplayer" hidden="[[!showOverlayPremiumBadges]]" no-endpoints="" text="[[miniplayerSubtitle]]">\n        </yt-formatted-string>\n      </div>\n      <div id="info-bar" on-click="onPlaylistExpandTap" hidden="[[!showInfoBar]]" class="style-scope ytd-miniplayer">\n        <div class="metadata style-scope ytd-miniplayer">\n          <h1 aria-label$="[[getSimpleString(data.miniplayerTitle)]]" class="title meta style-scope ytd-miniplayer" hidden="[[!active]]" on-click="onMetadataTap" role="heading">\n            <yt-formatted-string class="miniplayer-title style-scope ytd-miniplayer" ellipsis-truncate="" text="[[miniplayerTitle]]">\n            </yt-formatted-string>\n          </h1>\n          <div class="channel style-scope ytd-miniplayer">\n            <ytd-badge-supported-renderer class="premium-badges style-scope ytd-miniplayer" badges="[[premiumBadges]]" hidden="[[!premiumBadges.length]]">\n            </ytd-badge-supported-renderer>\n            <yt-formatted-string id="owner-name" no-endpoints="" text="[[miniplayerSubtitle]]" class="style-scope ytd-miniplayer">\n            </yt-formatted-string>\n            <div class="index-message style-scope ytd-miniplayer" hidden="[[computePlaylistIndexHidden(playlistIndexMessage, readyToResume)]]">\n              <span class="text-divider style-scope ytd-miniplayer">\u2022</span>\n              <span class="style-scope ytd-miniplayer">[[playlistIndexMessage]]</span>\n            </div>\n          </div>\n        </div>\n        <div class="expander style-scope ytd-miniplayer" hidden="[[computeExpandButtonHidden(hasPlaylistData, active, disabledState)]]">\n          <yt-icon-button label="[[computeExpandButtonLabel(expanded)]]" class="style-scope ytd-miniplayer">\n            <yt-icon icon="[[getExpandIcon(expanded)]]" class="style-scope ytd-miniplayer"></yt-icon>\n          </yt-icon-button>\n        </div>\n      </div>\n      <div class="dragging-cover style-scope ytd-miniplayer" hidden="[[!isDragging]]"></div>\n    </div>\n    <ytd-playlist-panel-renderer id="playlist" data="[[playlistData]]" hidden="[[computePlaylistPanelHidden(expanded, isAnimatingExpand)]]" hide-header-text="" within-miniplayer="" class="style-scope ytd-miniplayer">\n    </ytd-playlist-panel-renderer>\n    <div class="toast-container style-scope ytd-miniplayer">\n      <ytd-miniplayer-toast toast-data="[[toastData]]" class="style-scope ytd-miniplayer"></ytd-miniplayer-toast>\n    </div>\n  </div>\n  <div id="resize-container" aria-hidden="true" class="style-scope ytd-miniplayer">\n    \n    <div class="resizer style-scope ytd-miniplayer" alignment="north"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="east"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="south"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="west"><div class="corner style-scope ytd-miniplayer"></div></div>\n  </div>\n</div>\n');a.content.insertBefore(SNc().content.cloneNode(!0),
a.content.firstChild);a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);TNc=a}a=TNc;return a},{mode:2});var $Nc;var f1=function(){var a=_.P.apply(this,arguments)||this;a.useListItemStyles=_.x("web_list_item_style_for_menu_items");a.systemIcons=_.x("kevlar_system_icons");return a};
_.z(f1,_.P);_.f=f1.prototype;_.f.ready=function(){this.hostElement.addEventListener("tap",_.er(this,this.onEndpointTapExtra))};
_.f.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.f.onFocus=function(){var a;(a=_.E(this.hostElement).querySelector("tp-yt-paper-item"))==null||a.focus()};
_.f.onEndpointTapExtra=function(a){_.go(this.hostElement,"iron-activate");var b=this.data.navigationEndpoint;b&&_.y(b,_.yTa)&&(a.stopPropagation(),_.no(this.hostElement,[b],this.hostElement))};
_.f.computeIcon=function(a){return a&&a.iconType?_.fs(a.iconType):""};
_.f.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.f.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.f.forceUpdateStylesOnLegacyBrowsers=function(){_.x("kevlar_legacy_browsers")&&_.dr(this.hostElement)};
f1.prototype.forceUpdateStylesOnLegacyBrowsers=f1.prototype.forceUpdateStylesOnLegacyBrowsers;f1.prototype.onFocus=f1.prototype.onFocus;_.U([_.H(_.YH),_.W("design:type",Object)],f1.prototype,"ytdOpenPopupBehavior",void 0);_.U([_.H(_.Ydc.YtConditionalRendererBehavior),_.W("design:type",Object)],f1.prototype,"ytConditionalRendererBehavior",void 0);_.U([_.H(_.nH.YtEndpointBehavior),_.W("design:type",Object)],f1.prototype,"ytEndpointBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],f1.prototype,"data",void 0);_.U([_.O({computed:"computeIcon(data.icon)",value:""}),_.W("design:type",String)],f1.prototype,"icon",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],f1.prototype,"useIcons",void 0);_.U([_.O({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.W("design:type",Boolean)],f1.prototype,"hasSeparator",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],f1.prototype,"useListItemStyles",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],f1.prototype,"systemIcons",void 0);_.U([_.M("focus"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],f1.prototype,"onFocus",null);_.U([_.N("useIcons","hasSeparator"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],f1.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.S(f1,"ytd-menu-navigation-item-renderer",function(){if($Nc===void 0){var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);$Nc=a}a=$Nc;return a},{mode:1});var aOc;var bOc=_.Up(_.to("DOWNLOAD",{},"Download")),cOc=_.Up(_.to("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),dOc=_.Up(_.to("RETRY",{},"Retry")),eOc=_.Up(_.to("PAUSE_DOWNLOADING",{},"Pause downloading")),fOc=_.Up(_.to("RESUME_DOWNLOAD",{},"Resume download")),g1=function(){var a=_.P.apply(this,arguments)||this;a.primaryText=bOc;a.primaryIconType="OFFLINE_DOWNLOAD";a.hasSecondaryContent=!1;a.hasSeparator=!1;a.transferState="TRANSFER_STATE_UNKNOWN";a.isVideoDeletedByUser=!1;a.isHidden=!1;a.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return a};
_.z(g1,_.P);_.f=g1.prototype;_.f.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.f.onFocus=function(){this.primaryEntry.focus()};
_.f.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.f.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.f.getRemoveAction=function(){return"ACTION_REMOVE"};
_.f.sendOfflineAction=function(a){var b=this.data.serviceEndpoint;if(b){var c=_.y(b,_.qu);c&&a&&(c.action=a);this.ytComponentBehavior.resolveCommand(b)}};
_.f.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=bOc,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=bOc;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=dOc;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=cOc;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=fOc;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=cOc;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
eOc;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=cOc;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=cOc;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=bOc,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.f.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.f.isSecondaryEntryHidden=function(a,b){return a?!0:!b};
_.f.computeHasSeparator=function(){var a;return!((a=this.data)==null||!a.hasSeparator)};
g1.prototype.showHideButton=g1.prototype.showHideButton;g1.prototype.onTransferStateChange=g1.prototype.onTransferStateChange;g1.prototype.onFocus=g1.prototype.onFocus;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],g1.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],g1.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],g1.prototype,"ytComponentBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],g1.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],g1.prototype,"primaryText",void 0);_.U([_.O(),_.W("design:type",String)],g1.prototype,"primaryIconType",void 0);_.U([_.O(),_.W("design:type",String)],g1.prototype,"primaryAction",void 0);_.U([_.O(),_.W("design:type",Object)],g1.prototype,"secondaryText",void 0);_.U([_.O(),_.W("design:type",String)],g1.prototype,"secondaryIconType",void 0);
_.U([_.O(),_.W("design:type",String)],g1.prototype,"secondaryAction",void 0);_.U([_.O(),_.W("design:type",Object)],g1.prototype,"hasSecondaryContent",void 0);_.U([_.O({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.W("design:type",Object)],g1.prototype,"hasSeparator",void 0);_.U([_.O({selector:_.Jp,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.W("design:type",String)],g1.prototype,"transferState",void 0);
_.U([_.O({selector:_.DFa,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.W("design:type",Object)],g1.prototype,"isVideoDeletedByUser",void 0);_.U([_.O(),_.W("design:type",Object)],g1.prototype,"isHidden",void 0);_.U([_.O({selector:_.yFa,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.W("design:type",Object)],g1.prototype,"offlineabilityState",void 0);_.U([_.gr("#primary-entry"),_.W("design:type",Object)],g1.prototype,"primaryEntry",void 0);
_.U([_.M("focus"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],g1.prototype,"onFocus",null);_.U([_.kr("transferState","isVideoDeletedByUser"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],g1.prototype,"onTransferStateChange",null);_.U([_.kr("offlineabilityState"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],g1.prototype,"showHideButton",null);
_.S(g1,"ytd-menu-service-item-download-renderer",function(){if(aOc===void 0){var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);aOc=a}a=aOc;return a},{mode:1});var gOc;var h1=function(){var a=_.P.apply(this,arguments)||this;a.useIcons=!1;a.systemIcons=_.x("kevlar_system_icons");a.useListItemStyles=_.x("web_list_item_style_for_menu_items");return a};
_.z(h1,_.P);_.f=h1.prototype;_.f.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.f.onFocus=function(){var a;(a=_.E(this.hostElement).querySelector("tp-yt-paper-item"))==null||a.focus()};
_.f.onTap=function(){_.ko(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var a=this.data.serviceEndpoint,b=this.data.command;if(a){var c,d=(c=this.data)==null?void 0:c.trackingParams;c=!!_.y(a,_.qDb);d&&c&&_.Yp().dispatch(_.gp({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:d}}));this.ytComponentBehavior.resolveCommand(a)||(_.x("web_ytd_menu_service_item_renderer_command_resolver_ks")?_.mo(this.hostElement,[a]):_.v().resolve(_.Xi).resolveCommand(a,
{form:{element:this.hostElement}}))}b&&(this.ytComponentBehavior.resolveCommand(b)||_.no(this.hostElement,[b],this.hostElement))};
_.f.computeIcon=function(a){return a&&a.iconType?_.fs(a.iconType):""};
_.f.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.f.computeHasSeparator=function(){var a;return!((a=this.data)==null||!a.hasSeparator)};
_.f.forceUpdateStylesOnLegacyBrowsers=function(){_.x("kevlar_legacy_browsers")&&_.dr(this.hostElement)};
_.f.computeIsSelected=function(){var a;return!((a=this.data)==null||!a.isSelected)};
h1.prototype.forceUpdateStylesOnLegacyBrowsers=h1.prototype.forceUpdateStylesOnLegacyBrowsers;h1.prototype.onTap=h1.prototype.onTap;h1.prototype.onFocus=h1.prototype.onFocus;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],h1.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.YH),_.W("design:type",Object)],h1.prototype,"ytdOpenPopupBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],h1.prototype,"ytComponentBehavior",void 0);
_.U([_.H(_.Ydc.YtConditionalRendererBehavior),_.W("design:type",Object)],h1.prototype,"ytConditionalRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],h1.prototype,"data",void 0);_.U([_.O({computed:"computeIcon(data.icon)",value:""}),_.W("design:type",String)],h1.prototype,"icon",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],h1.prototype,"useIcons",void 0);
_.U([_.O({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.W("design:type",Boolean)],h1.prototype,"hasSeparator",void 0);_.U([_.O({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.W("design:type",Boolean)],h1.prototype,"isSelected",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],h1.prototype,"systemIcons",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],h1.prototype,"useListItemStyles",void 0);
_.U([_.M("focus"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],h1.prototype,"onFocus",null);_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],h1.prototype,"onTap",null);_.U([_.N("useIcons","hasSeparator"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],h1.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.S(h1,"ytd-menu-service-item-renderer",function(){if(gOc===void 0){var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);gOc=a}a=gOc;return a},{mode:2});var hOc;var iOc=function(){return _.P.apply(this,arguments)||this};
_.z(iOc,_.P);_.f=iOc.prototype;_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.f.onDataChanged=function(){var a=this;_.Tm(this,function(){a.postbox.openDialog();a.focus();_.go(a.hostElement,"yt-refit")})};
_.f.focus=function(){this.postbox.focus()};
_.f.closePopup=function(){_.ho(this.hostElement,"yt-close-popup-action")};
_.f.onYtCommentboxDismiss=function(){this.closePopup()};
var i1=iOc;i1.prototype.onYtCommentboxDismiss=i1.prototype.onYtCommentboxDismiss;i1.prototype.onDataChanged=i1.prototype.onDataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],i1.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],i1.prototype,"data",void 0);_.U([_.O({value:function(){return _.to("SBOX_INAPPROPRIATE_CANCEL")}}),
_.W("design:type",String)],i1.prototype,"closeButtonAriaLabel",void 0);_.U([_.gr("#postbox"),_.W("design:type",Object)],i1.prototype,"postbox",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],i1.prototype,"onDataChanged",null);_.U([_.M("yt-commentbox-dismiss"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],i1.prototype,"onYtCommentboxDismiss",null);
i1=_.U([_.Q({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],i1);
_.S(i1,"ytd-backstage-post-dialog-popup-renderer",function(){if(hOc!==void 0)return hOc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return hOc=a},{mode:1});var jOc;var kOc=function(){return _.P.apply(this,arguments)||this};
_.z(kOc,_.P);var j1=kOc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],j1.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],j1.prototype,"data",void 0);j1=_.U([_.Q({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],j1);
_.S(j1,"ytd-sender-id-section-renderer",function(){if(jOc!==void 0)return jOc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sender-id-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text" class="style-scope ytd-sender-id-section-renderer">[[getSimpleString(data.text)]]</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);
return jOc=a},{mode:1});var lOc;var mOc;var nOc;var oOc=function(){return _.P.apply(this,arguments)||this};
_.z(oOc,_.P);oOc.prototype.closePopup=function(){_.ho(this.hostElement,"yt-close-popup-action")};
var k1=oOc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],k1.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],k1.prototype,"data",void 0);k1=_.U([_.ur({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],k1);
_.S(k1,"yt-community-post-section-renderer",function(){if(nOc===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;mOc===void 0&&(mOc=document.createElement("template"));var d=mOc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);nOc=a}a=nOc;return a},{mode:2});var pOc;var qOc;var rOc;var sOc;var tOc;var uOc;var vOc=function(){return _.P.apply(this,arguments)||this};
_.z(vOc,_.P);var l1=vOc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],l1.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],l1.prototype,"data",void 0);l1=_.U([_.ur({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],l1);
_.S(l1,"yt-share-start-time-with-context-renderer",function(){if(uOc===void 0){var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;tOc===void 0&&(tOc=document.createElement("template"));var d=tOc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);uOc=a}a=uOc;return a},{mode:2});var wOc=function(){return _.P.apply(this,arguments)||this};
_.z(wOc,_.P);wOc.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
var m1=wOc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],m1.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],m1.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],m1.prototype,"data",void 0);m1=_.U([_.ur({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],m1);
_.S(m1,"yt-share-panel-title-v15-renderer",function(){if(sOc===void 0){var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;rOc===void 0&&(rOc=document.createElement("template"));var d=rOc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);sOc=a}a=sOc;return a},{mode:2});var xOc=function(){return _.P.apply(this,arguments)||this};
_.z(xOc,_.P);xOc.prototype.configureRendererStamper=function(){return{"data.title":{id:"title",mapping:{sharePanelTitleV15Renderer:"yt-share-panel-title-v15-renderer"}},"data.communityPost":{id:"community-post",mapping:{communityPostSectionRenderer:"yt-community-post-section-renderer"}}}};
var n1=xOc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],n1.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],n1.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],n1.prototype,"data",void 0);n1=_.U([_.ur({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],n1);
_.S(n1,"yt-share-panel-header-renderer",function(){if(qOc===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;pOc===void 0&&(pOc=document.createElement("template"));var d=pOc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);qOc=a}a=qOc;return a},{mode:2});var yOc;var pRc;var qRc=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-open-popup-action":"onOpen"};return a};
_.z(qRc,_.P);_.f=qRc.prototype;_.f.attached=function(){this.onOpen()};
_.f.updateTimeSecs=function(a){this.currentTimeSecs=a};
_.f.computeTimeString=function(a){a=a.toString();var b=Math.floor(Number(a)/3600),c=Math.floor(Number(a)%3600%60);return(b>0?b+":":"")+_.my(Math.floor(Number(a)%3600/60),b>0?2:1)+":"+_.my(c,2)};
_.f.computeTimeStringA11y=function(a){a=_.FFa({seconds:a});var b=a.hours===void 0?0:a.hours,c=a.minutes===void 0?0:a.minutes,d=a.seconds===void 0?0:a.seconds;a=[];if(b>0){var e=Usc().format({hours:b});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(_.Np)||b>9999)e=e.replace(b.toString(),_.GFa(b)),_.Np==="km"&&(e=e.replace(".",","));a.push(e)}c>0&&a.push(Usc().format({minutes:c}));d>0&&a.push(Usc().format({seconds:d}));b="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");c=_.Np==
"am"?"{0}\u1363 ":_.Np=="fa"?"{0}\u060c\u200f ":_.Np=="my"?"{0} - ":_.Np=="ne"?"{0},":_.Np=="th"?"{0} ":_.Np=="ur"?"{0}\u060c ":_.Np=="ar"||_.Np=="ar-XB"?"{0} \u0648":_.Np=="ja"||_.Np=="zh-CN"||_.Np=="zh-HK"||_.Np=="zh-TW"?"{0}\u3001":"{0}, ";d=_.Np=="am"?"\u1363 ":_.Np=="fa"?"\u060c\u200f ":_.Np=="my"?" - ":_.Np=="th"?" ":_.Np=="ur"?"\u060c ":_.Np=="ar"||_.Np=="ar-XB"?" \u0648":_.Np=="ja"||_.Np=="zh-CN"||_.Np=="zh-HK"||_.Np=="zh-TW"?"\u3001":", ";e=_.Np=="am"?" \u12a5\u1293 {0}":_.Np=="as"?" \u0986\u09f0\u09c1 {0}":
_.Np=="az"?" v\u0259 {0}":_.Np=="bn"?" \u098f\u09ac\u0982 {0}":_.Np=="cs"?" a\u00a0{0}":_.Np=="de"?" und {0}":_.Np=="el"?" \u03ba\u03b1\u03b9 {0}":_.Np=="eu"?" eta {0}":_.Np=="fa"?"\u060c \u0648 {0}":_.Np=="fil"?", at {0}":_.Np=="gu"?" \u0a85\u0aa8\u0ac7 {0}":_.Np=="hi"?", \u0914\u0930 {0}":_.Np=="hu"?" \u00e9s {0}":_.Np=="hy"?" \u0587 {0}":_.Np=="id"?", dan {0}":_.Np=="iw"?" \u05d5-{0}":_.Np=="ja"?"\u3001{0}":_.Np=="ka"?" \u10d3\u10d0 {0}":_.Np=="km"?" \u1793\u17b7\u1784 {0}":_.Np=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":
_.Np=="ko"?" \ubc0f {0}":_.Np=="ky"?" \u0436\u0430\u043d\u0430 {0}":_.Np=="lt"?" ir {0}":_.Np=="lv"?" un {0}":_.Np=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":_.Np=="mr"?" \u0906\u0923\u093f {0}":_.Np=="ms"?" dan {0}":_.Np=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":_.Np=="ne"?" \u0930 {0}":_.Np=="or"?", \u0b13 {0}":_.Np=="pa"?" \u0a05\u0a24\u0a47 {0}":_.Np=="ro"?" \u0219i {0}":_.Np=="si"?", \u0dc3\u0dc4 {0}":_.Np=="sk"?" a {0}":_.Np=="sl"?" in {0}":_.Np=="sq"?" dhe {0}":_.Np=="sv"?" och {0}":
_.Np=="sw"?" na {0}":_.Np=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":_.Np=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":_.Np=="th"?" \u0e41\u0e25\u0e30{0}":_.Np=="tr"?" ve {0}":_.Np=="ur"?"\u060c \u0627\u0648\u0631 {0}":_.Np=="uz"?" va {0}":_.Np=="vi"?" v\u00e0 {0}":_.Np=="zh-HK"?"\u53ca{0}":_.Np=="zu"?", ne-{0}":_.Np=="af"||_.Np=="nl"?" en {0}":_.Np=="ar"||_.Np=="ar-XB"?" \u0648{0}":_.Np=="be"||_.Np=="uk"?" \u0456 {0}":_.Np=="en-GB"||_.Np=="en-IN"?" and {0}":_.Np=="en"||_.Np=="en-XA"?
", and {0}":_.Np=="et"||_.Np=="fi"?" ja {0}":_.Np=="fr"||_.Np=="fr-CA"?" et {0}":_.Np=="zh-CN"||_.Np=="zh-TW"?"\u548c{0}":_.Np=="da"||_.Np=="is"||_.Np=="no"?" og {0}":_.Np=="es"||_.Np=="es-419"||_.Np=="es-US"?" y {0}":_.Np=="kk"||_.Np=="lo"||_.Np=="mn"?", {0}":_.Np=="bg"||_.Np=="mk"||_.Np=="ru"||_.Np=="sr"?" \u0438 {0}":_.Np=="gl"||_.Np=="it"||_.Np=="pt-BR"||_.Np=="pt-PT"?" e {0}":" i {0}";var g=_.Np=="am"?"{0} \u12a5\u1293 {1}":_.Np=="as"?"{0} \u0986\u09f0\u09c1 {1}":_.Np=="az"?"{0} v\u0259 {1}":
_.Np=="bn"?"{0} \u098f\u09ac\u0982 {1}":_.Np=="de"?"{0} und {1}":_.Np=="el"?"{0} \u03ba\u03b1\u03b9 {1}":_.Np=="eu"?"{0} eta {1}":_.Np=="fa"?"{0} \u0648 {1}":_.Np=="fil"?"{0} at {1}":_.Np=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":_.Np=="hi"?"{0} \u0914\u0930 {1}":_.Np=="hu"?"{0} \u00e9s {1}":_.Np=="hy"?"{0} \u0587 {1}":_.Np=="iw"?"{0} \u05d5-{1}":_.Np=="ja"?"{0}\u3001{1}":_.Np=="ka"?"{0} \u10d3\u10d0 {1}":_.Np=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":_.Np=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":_.Np=="kn"?
"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":_.Np=="ko"?"{0} \ubc0f {1}":_.Np=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":_.Np=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":_.Np=="lt"?"{0} ir {1}":_.Np=="lv"?"{0} un {1}":_.Np=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":_.Np=="mn"?"{0}, {1}":_.Np=="mr"?"{0} \u0906\u0923\u093f {1}":_.Np=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":_.Np=="ne"?"{0} \u0930 {1}":_.Np=="or"?"{0} \u0b13 {1}":_.Np=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":_.Np=="ro"?"{0} \u0219i {1}":_.Np==
"si"?"{0} \u0dc3\u0dc4 {1}":_.Np=="sl"?"{0} in {1}":_.Np=="sq"?"{0} dhe {1}":_.Np=="sv"?"{0} och {1}":_.Np=="sw"?"{0} na {1}":_.Np=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":_.Np=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":_.Np=="th"?"{0}\u0e41\u0e25\u0e30{1}":_.Np=="tr"?"{0} ve {1}":_.Np=="ur"?"{0} \u0627\u0648\u0631 {1}":_.Np=="uz"?"{0} va {1}":_.Np=="vi"?"{0} v\u00e0 {1}":_.Np=="zh-HK"?"{0}\u53ca{1}":_.Np=="zu"?"{0} ne-{1}":_.Np=="af"||_.Np=="nl"?"{0} en {1}":_.Np=="ar"||_.Np==
"ar-XB"?"{0} \u0648{1}":_.Np=="be"||_.Np=="uk"?"{0} \u0456 {1}":_.Np=="cs"||_.Np=="sk"?"{0} a\u00a0{1}":_.Np=="et"||_.Np=="fi"?"{0} ja {1}":_.Np=="fr"||_.Np=="fr-CA"?"{0} et {1}":_.Np=="id"||_.Np=="ms"?"{0} dan {1}":_.Np=="zh-CN"||_.Np=="zh-TW"?"{0}\u548c{1}":_.Np=="da"||_.Np=="is"||_.Np=="no"?"{0} og {1}":_.Np=="es"||_.Np=="es-419"||_.Np=="es-US"?"{0} y {1}":_.Np=="bg"||_.Np=="mk"||_.Np=="ru"||_.Np=="sr"?"{0} \u0438 {1}":_.Np=="en"||_.Np=="en-GB"||_.Np=="en-IN"||_.Np=="en-XA"?"{0} and {1}":_.Np==
"gl"||_.Np=="it"||_.Np=="pt-BR"||_.Np=="pt-PT"?"{0} e {1}":"{0} i {1}";_.Np==="sq"?(e=e.replace("dhe","e"),g=g.replace("dhe","e")):_.Np==="th"?(d=d.replace("{0}"," {0}"),g=g.replace("{0}","{0} "),g=g.replace("{1}"," {1}")):_.Np==="ne"?d=",":_.Np==="zh-CN"?d="":b.includes(_.Np)&&(d=" ");return a.length<2?a.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(_.Np)?a.length===2?
g.replace("{0}",a[0]).replace("{1}",a[1]):c.replace("{0}",a[0])+a.slice(1,-1).join(d)+e.replace("{0}",a[a.length-1]):a.join(d)};
_.f.getTimeParam=function(){return oxc(this.timeString)};
_.f.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var a={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},b;_.qF(_.ms(),(b=this.data)==null?void 0:b.trackingParams,a,7)};
_.f.onChangeStartAtTimestamp=function(){for(var a=this.startAtTimestamp.value.split(":"),b=0,c=1,d=a.length-1;d>=0;d--)b+=Number(a[d])*c,c*=60;this.updateTimeSecs(b);this.setTimestamp()};
_.f.onOpen=function(){var a=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var b=_.bu();b?b.getPlayerPromise().then(function(c){c=c.getCurrentTime();a.updateTimeSecs(c)}):Stc()&&this.updateTimeSecs(Stc())};
_.f.setTimestamp=function(){var a=Math.floor(this.currentTimeSecs);_.ho(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!a,timestamp:a||""}])};
var o1=qRc;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],o1.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],o1.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],o1.prototype,"data",void 0);_.U([_.O({value:!1,notify:!0}),_.W("design:type",Boolean)],o1.prototype,"isStartAtChecked",void 0);_.U([_.O(),_.W("design:type",Number)],o1.prototype,"currentTimeSecs",void 0);
_.U([_.O({computed:"computeTimeString(currentTimeSecs)"}),_.W("design:type",String)],o1.prototype,"timeString",void 0);_.U([_.O({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.W("design:type",String)],o1.prototype,"timeStringA11y",void 0);_.U([_.gr("#start-at-timestamp"),_.W("design:type",Object)],o1.prototype,"startAtTimestamp",void 0);o1=_.U([_.ur({is:"yt-start-at-renderer",disableElementRegistration:!0})],o1);
_.S(o1,"yt-start-at-renderer",function(){if(pRc===void 0){var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;yOc===void 0&&(yOc=document.createElement("template"));var d=yOc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);pRc=a}a=pRc;return a},{mode:2});var rRc;var sRc;var tRc=new Map([["ADD_TO_PLAYLIST","playlist_add"],["ADD_TO_REMOTE_QUEUE","add_to_queue"],["CAST_ICON","chromecast-filled"],["CAST_OUTLINE","chromecast"],["DISLIKE","dislike_outline"],["DISLIKE_SELECTED","dislike"],["ERROR_WHITE","error"],["FAVORITE","like_outline"],["LIKE","like_outline"],["LIKE_SELECTED","like"],["LOOP","music_repeat_all"],["LOOP_ONE","music_repeat_one"],["PLAYLIST_PLAY","playlists"],["QUEUE_PLAY_NEXT","playlists"],["REMOVE","delete"],["REMOVE_FROM_HISTORY","delete"],["REMOVE_FROM_PLAYLIST",
"delete"],["SHUFFLE","music_shuffle"],["SUBSCRIPTIONS","subscriptions"],["TAB_EXPLORE","explore"],["TAB_MUSIC_PREMIUM","youtube_music_monochrome"],["UNFAVORITE","like"]]),uRc=new Map([["BOOKMARK","bookmark-filled"],["CLOUD_UPLOAD","cloud_arrow_up"],["DISLIKE","dislike"],["DISLIKE_SELECTED","dislike-filled"],["ERROR_WHITE","error-filled"],["FAVORITE","like"],["INSERT_CHART_OUTLINED","bar_graph_box_vertical"],["LIKE","like"],["LIKE_SELECTED","like-filled"],["MUSIC_EXPLICIT_BADGE","music_explicit_badge-filled"],
["MUSIC_SHUFFLE","shuffle"],["PAUSE","offline_pause"],["REMOVE","delete"],["REMOVE_FROM_HISTORY","delete"],["REMOVE_FROM_PLAYLIST","delete"],["TAB_MUSIC_PREMIUM","youtube_music_monochrome"],["UNFAVORITE","like-filled"],["VOLUME_UP","volume_up"],["DISMISS_QUEUE","list_remove"]]),vRc=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var wRc={};wRc.YtBindingExpressionsBehavior={identity:_.Ma,msg:function(a,b){b=b===void 0?{}:b;return _.to(a,b,a)},
msgPlural:function(a,b){return _.uo(a,b)},
getMusicIconFromType:function(a){if(_.x("music_web_enable_icon_wil"))a=_.fs(a);else if(uRc.has(a))a="yt-sys-icons:"+uRc.get(a);else{var b=tRc.get(a)||_.fs(a).split(":")[1];b=_.mPa(b);var c;a=((c=vRc.get(a))!=null?c:"yt-sys-icons:")+b}return a}};var xRc;var yRc;var zRc;var ARc=document.head,BRc=ARc.appendChild,CRc;if(zRc===void 0){var DRc=document.createElement("template");_.B(DRc,'\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>');zRc=DRc}CRc=zRc;BRc.call(ARc,CRc.content);var p1=function(){var a=_.P.apply(this,arguments)||this;a.screenLayer=7;return a};
_.z(p1,_.P);p1.prototype.getScreenLayer=function(){return this.screenLayer};
p1.prototype.onTap=function(a){a&&a.detail&&(a.detail.x||a.detail.y)&&_.E(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.mo(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(a=this.getScreenLayer(),_.go(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:a}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.Vm.Object.defineProperties(p1.prototype,{title:{configurable:!0,enumerable:!0,get:function(){return this.ytRendererBehavior.getSimpleString(this.data.title)}},
icon:{configurable:!0,enumerable:!0,get:function(){return"socialNetworksRound:"+this.data.serviceName.toLowerCase()}}});
var q1=p1;q1.prototype.onTap=q1.prototype.onTap;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],q1.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],q1.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],q1.prototype,"data",void 0);_.U([_.K("data.title"),_.W("design:type",Object),_.W("design:paramtypes",[])],q1.prototype,"title",null);
_.U([_.K("data.serviceName"),_.W("design:type",String),_.W("design:paramtypes",[])],q1.prototype,"icon",null);_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],q1.prototype,"onTap",null);q1=_.U([_.ur({is:"yt-share-target-renderer",disableElementRegistration:!0})],q1);
_.S(q1,"yt-share-target-renderer",function(){if(yRc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-target-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_target_renderer.yt.share.target.renderer.css.js--\x3e<button id="target" title="[[title]]" class="style-scope yt-share-target-renderer">\n  <yt-icon class="icon-resize style-scope yt-share-target-renderer" icon="[[icon]]"></yt-icon>\n  <div id="title" style-target="title" class="style-scope yt-share-target-renderer">[[title]]</div>\n</button>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;xRc===void 0&&(xRc=document.createElement("template"));var d=xRc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);yRc=a}a=yRc;return a},{mode:2});var ERc;var FRc;var GRc=function(){var a=_.P.apply(this,arguments)||this;a.SHARE_TARGET_WIDTH=70;a.SHARE_TARGET_MARGIN_RIGHT=8;a.PAGE_SCROLL_SPEED=9;a.actionMap={"yt-share-panel-reset-action":"onReset_"};return a};
_.z(GRc,_.P);_.f=GRc.prototype;_.f.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.f.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.E(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.E(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.f.onReset_=function(){if(_.E(this.hostElement).querySelector("#list")){var a=_.E(this.hostElement).querySelector("#list");var b=_.E(this.hostElement).querySelector("#list");var c=b.offsetLeft,d=b.offsetParent;d||_.edb(b)!="fixed"||(d=_.Cf(b).documentElement);if(d){if(_.tx&&!aAc(58)){var e=_.mdb(d);c+=e.left}else Number(_.k9a)>=8&&!(Number(_.k9a)>=9)&&(e=_.mdb(d),c-=e.left);b=_.kdb(d)?d.clientWidth-(c+b.offsetWidth):c}else b=c;aCc(a,b);this.updateScrollButtons_()}};
_.f.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.f.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.f.onScrollWheel_=function(a){a.stopPropagation();a.preventDefault();var b=$Bc(_.E(this.hostElement).querySelector("#list"));a=Math.abs(a.deltaX)>Math.abs(a.deltaY)?a.deltaX:a.deltaY;aCc(_.E(this.hostElement).querySelector("#list"),b+a);this.updateScrollButtons_()};
_.f.smoothScrollByOnePage_=function(a){var b=_.E(this.hostElement).querySelector("#list"),c=(Math.floor(b.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,d=$Bc(b),e=c*(a?1:-1),g=this.PAGE_SCROLL_SPEED,k=this.updateScrollButtons_.bind(this),m=0,n;(function t(){m+=g;n=m/c*2;aCc(b,d+e*(n<1?n*n:-n*n+4*n-2));m<c?window.requestAnimationFrame(t):k()})()};
_.f.updateScrollButtons_=function(){var a=$Bc(_.E(this.hostElement).querySelector("#list")),b=_.E(this.hostElement).querySelector("#list").scrollWidth-_.E(this.hostElement).querySelector("#list").clientWidth;_.E(this.hostElement).querySelector("#scroll-button-back").hidden=a<=0;_.E(this.hostElement).querySelector("#scroll-button-forward").hidden=a>=b};
var r1=GRc;r1.prototype.onScrollWheel_=r1.prototype.onScrollWheel_;r1.prototype.onDataChanged_=r1.prototype.onDataChanged_;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],r1.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],r1.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(wRc.YtBindingExpressionsBehavior),_.W("design:type",Object)],r1.prototype,"ytBindingExpressionsBehavior",void 0);
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],r1.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],r1.prototype,"data",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],r1.prototype,"onDataChanged_",null);_.U([_.M("wheel"),_.W("design:type",Function),_.W("design:paramtypes",[WheelEvent]),_.W("design:returntype")],r1.prototype,"onScrollWheel_",null);
r1=_.U([_.ur({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],r1);
_.S(r1,"yt-third-party-share-target-section-renderer",function(){if(FRc===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;ERc===void 0&&(ERc=document.createElement("template"));var d=ERc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);FRc=a}a=FRc;return a},{mode:2});var HRc=function(){return _.P.apply(this,arguments)||this};
_.z(HRc,_.P);HRc.prototype.configureRendererStamper=function(){return{"data.shareTargetContainer":{id:"share-targets",mapping:{thirdPartyShareTargetSectionRenderer:"yt-third-party-share-target-section-renderer"}},"data.copyLinkContainer":{id:"copy-link",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}},"data.startAtContainer":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
var s1=HRc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],s1.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],s1.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],s1.prototype,"data",void 0);s1=_.U([_.ur({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],s1);
_.S(s1,"yt-third-party-network-section-renderer",function(){if(sRc===void 0){var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;rRc===void 0&&(rRc=document.createElement("template"));var d=rRc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);sRc=a}a=sRc;return a},{mode:2});_.Ws(_.Rr(function(a){return _.q("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.q("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.q(_.Eu,{data:function(){return a.data().firstPartyItems}},{listItemViewModel:_.yQ})))}),"first-party-network-section-view-model",{props:{data:_.SG}});var IRc=_.cx(["data:image/svg+xml;charset=UTF-8;base64,",""]),JRc=function(){var a=_.P.apply(this,arguments)||this;a.screenLayer=7;a.qrCodeEnabled=_.x("web_enable_sharing_qr_code");a.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return a};
_.z(JRc,_.P);_.f=JRc.prototype;_.f.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{senderIdSectionRenderer:"ytd-sender-id-section-renderer",thirdPartyNetworkSection:"yt-third-party-network-section-renderer",firstPartyNetworkSectionViewModel:"first-party-network-section-view-model"}}}};
_.f.onDataChanged=function(){var a=this,b;(b=this.data)!=null&&b.contents&&(this.hostElement.setAttribute("links-only","true"),_.ar(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.Tm(this,function(){_.go(a.hostElement,"yt-refit");a.focusSharePanelHeader()}))};
_.f.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.f.handleSetTimestamp=function(a){var b=this.shortUrl();a.isSet&&(b=_.Fy(b,"t",a.timestamp));this.maybeRenderQrCode(b)};
_.f.shortUrl=function(){var a,b=(a=this.data)==null?void 0:a.contents;if(b)for(a=0;a<b.length;a++){var c=void 0,d=void 0;if((c=b[a])==null?0:(d=c.thirdPartyNetworkSection)==null?0:d.copyLinkContainer){var e=d=c=void 0;return(e=_.y((c=b[a])==null?void 0:(d=c.thirdPartyNetworkSection)==null?void 0:d.copyLinkContainer,gJc))==null?void 0:e.shortUrl}}};
_.f.maybeRenderQrCode=function(a){var b=this,c,d,e,g,k,m,n,r,t;return _.l(function(u){if(u.nextAddress==1){c=_.E(b.hostElement).querySelector("#qr-code");if(!b.qrCodeEnabled||!a)return c&&(c.style.display="none"),u.return();d=_.BSa(_.v().resolve(_.gs),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});e=document.createElement("div");return typeof d==="function"?(d(e),u.jumpTo(2)):_.p(u,d,3)}u.nextAddress!=2&&(g=u.yieldResult,g(e));n=(k=e)==null?void 0:(m=k.firstChild)==null?void 0:m.firstChild;
r=document.createElement("img");t=_.Jd(IRc,btoa(n.outerHTML));r.onload=function(){var w={canvas:c,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:r},A=new ovc;uvc(A,a);vvc(A,!1,wvc(A));var C=A.modules,G=Object.assign({},OGc,w);C=structuredClone(C);w=C.length;var J,I=(J=G.canvas)!=null?J:document.createElement("canvas");J=G.cellSize;A=G.logo;var R,ca=(R=G.logoSize)!=null?R:Math.floor(w/4);w%2!==ca%2&&ca++;var V=G.logoPadding,fa=G.backgroundColor;R=w*J;var aa=
G.width,ma=0;aa&&(ma=G.padding,ma=Math.ceil(ma*R/(aa-ma*2)),I.style.width=aa+"px",I.style.height=aa+"px");I.width!==R+ma*2&&(I.width=R+ma*2);I.height!==R+ma*2&&(I.height=R+ma*2);R=I.getContext("2d");G.autoClear&&R.clearRect(0,0,I.width,I.height);R.fillStyle=fa;R.beginPath();R.roundRect(0,0,I.width,I.height,G.borderRadius);R.fill();R.save();R.translate(ma,ma);if(A)for(I=Math.floor(w-ca)/2-V,V=Math.floor(w+ca)/2+V,fa=I;fa<V;fa++)for(aa=I;aa<V;aa++)C[fa][aa]=!1;for(I=0;I<w;I++)for(V=0;V<w;V++)(I<7&&
V<7||I<7&&V>=w-7||I>=w-7&&V<7)&&(C[I][V]=!1);var Ba;I=(Ba=G.markerColor)!=null?Ba:G.color;yvc(R,0,0,J,I);yvc(R,J*(w-7),0,J,I);yvc(R,0,J*(w-7),J,I);switch(G.cellStyle){case 0:Ba=C;C=Ba.length;I=G.cellSize;R.beginPath();for(V=0;V<C;V++)for(fa=0;fa<C;fa++)Ba[V][fa]&&R.rect(V*I,fa*I,I,I);R.fillStyle=G.color;R.fill();break;case 1:Ba=C;C=Ba.length;I=G.cellSize;V=I*G.relativeCircleSize;R.fillStyle=G.color;R.beginPath();for(G=0;G<C;G++)for(fa=0;fa<C;fa++)Ba[G][fa]&&(R.beginPath(),R.ellipse((G+.5)*I,(fa+.5)*
I,V/2,V/2,0,0,2*Math.PI),R.fill());R.fill();break;case 2:Ba=C;C=Ba.length;I=G.cellSize;R.fillStyle=G.color;G=[[1,1],[-1,1],[-1,-1],[1,-1]];R.beginPath();for(V=0;V<C;V++)for(fa=0;fa<C;fa++)if(Ba[V][fa])R.roundRect(V*I,fa*I,I,I,I/2),V+1<C&&Ba[V+1][fa]&&R.rect(V*I+I/2,fa*I,I,I),fa+1<C&&Ba[V][fa+1]&&R.rect(V*I,fa*I+I/2,I,I);else{aa=V*I+I/2;ma=fa*I+I/2;for(var Da=0;Da<4;Da++){var za=_.h(G[Da]),Fa=za.next().value;za=za.next().value;V+Fa>=0&&V+Fa<C&&fa+za>=0&&fa+za<C&&Ba[V+Fa][fa]&&Ba[V][fa+za]&&Ba[V+Fa][fa+
za]&&(Fa=Da*Math.PI/2,za=I/2,R.moveTo(aa+za*Math.cos(Fa),ma+za*Math.sin(Fa)),R.arc(aa,ma,I/2,Fa,Fa+Math.PI/2,!1),R.lineTo(aa+za*(Math.cos(Fa)-Math.sin(Fa)),ma+za*(Math.cos(Fa)+Math.sin(Fa))),R.lineTo(aa+za*Math.cos(Fa),ma+za*Math.sin(Fa)))}}R.fill()}A&&R.drawImage(A,(w-ca)*J/2,(w-ca)*J/2,ca*J,ca*J);R.restore();c.style.removeProperty("display")};
r.src=_.Cd(t);_.se(u)})};
_.f.hasCommunityPostRenderer=function(){var a,b,c,d;return!!((a=this.data)==null?0:(b=a.header)==null?0:(c=b.sharePanelHeaderRenderer)==null?0:(d=c.communityPost)==null?0:d.communityPostSectionRenderer)};
_.f.onTapClose=function(){_.ho(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.f.getScreenLayer=function(){return this.screenLayer};
_.f.logSharePanelPage=function(){if(!_.x("enable_share_panel_navigation_logging_fix_on_web")){var a;if((a=this.data)!=null&&a.trackingParams){a=this.data.trackingParams;var b=this.parentClickTrackingParams;b=b?_.qs(b):void 0;var c=_.ms();_.mF(c,21760,b,{layer:7,parentLayer:0});c.graftServerVe(a,void 0,7);_.Yp().dispatch(_.gp({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
var t1=JRc;t1.prototype.onDataChanged=t1.prototype.onDataChanged;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],t1.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],t1.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],t1.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],t1.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],t1.prototype,"data",void 0);_.U([_.O({value:_.to("SBOX_INAPPROPRIATE_CANCEL")}),_.W("design:type",String)],t1.prototype,"closeButtonAriaLabel",void 0);_.U([_.gr("yt-share-panel-header-renderer"),_.W("design:type",HTMLElement)],t1.prototype,"header",void 0);_.U([_.O({selector:function(a){return a.share.parentClickTrackingParams}}),
_.W("design:type",String)],t1.prototype,"parentClickTrackingParams",void 0);_.U([_.O(),_.W("design:type",Object)],t1.prototype,"qrCodeEnabled",void 0);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],t1.prototype,"onDataChanged",null);t1=_.U([_.Q({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],t1);
_.S(t1,"ytd-unified-share-panel-renderer",function(){if(lOc!==void 0)return lOc;var a=document.createElement("template");_.B(a,'\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<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"></canvas>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return lOc=a},{mode:1});var KRc;var u1=function(){var a=_.P.apply(this,arguments)||this;a.modernModal=_.x("kevlar_sign_in_modal_modernization");return a};
_.z(u1,_.P);u1.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
u1.prototype.computeShouldHideOldButtons=function(){var a;return!((a=this.data)==null?0:a.button)};
_.Vm.Object.defineProperties(u1.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var a,b;if(this.modernModal&&((a=this.data)==null?0:(b=a.button)==null?0:b.buttonRenderer))return Object.assign({},this.data.button.buttonRenderer,{style:"STYLE_MONO_FILLED"});var c,d;return(c=this.data)==null?void 0:(d=c.button)==null?void 0:d.buttonRenderer}}});
var v1=u1;_.U([_.O(),_.W("design:type",Object)],v1.prototype,"data",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],v1.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.CK.YtEventForwardingBehavior),_.W("design:type",Object)],v1.prototype,"ytEventForwardingBehavior",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],v1.prototype,"modernModal",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],v1.prototype,"buttonRendererData",null);
v1=_.U([_.Q({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],v1);
_.S(v1,"ytd-modal-with-title-and-button-renderer",function(){if(KRc!==void 0)return KRc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return KRc=a},{mode:1});var LRc;var MRc=function(){return _.P.apply(this,arguments)||this};
_.z(MRc,_.P);MRc.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.TH("page-changed",this.page))};
var w1=MRc;w1.prototype.pageChangedForBinding=w1.prototype.pageChangedForBinding;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],w1.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],w1.prototype,"data",void 0);_.U([_.O(),_.W("design:type",String)],w1.prototype,"page",void 0);_.U([_.N("page"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],w1.prototype,"pageChangedForBinding",null);
w1=_.U([_.Q({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],w1);
_.S(w1,"ytd-account-item-section-header-renderer",function(){if(LRc!==void 0)return LRc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return LRc=a},{mode:1});var NRc;var ORc=function(){return _.P.apply(this,arguments)||this};
_.z(ORc,_.P);ORc.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"}}}};
ORc.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
var x1=ORc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],x1.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],x1.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.RM),_.W("design:type",Object)],x1.prototype,"ytContinuationHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],x1.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!1}),_.W("design:type",Function)],x1.prototype,"onAccountItemTap",void 0);
x1=_.U([_.Q({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],x1);
_.S(x1,"ytd-account-item-section-renderer",function(){if(NRc!==void 0)return NRc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return NRc=a},{mode:1});var PRc;var QRc;var RRc=function(){return _.P.apply(this,arguments)||this};
_.z(RRc,_.P);var y1=RRc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],y1.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],y1.prototype,"data",void 0);y1=_.U([_.Q({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],y1);
_.S(y1,"ytd-accounts-dialog-header-renderer",function(){if(QRc!==void 0)return QRc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return QRc=a},{mode:1});var SRc;var TRc=function(){return _.P.apply(this,arguments)||this};
_.z(TRc,_.P);TRc.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
var z1=TRc;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],z1.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],z1.prototype,"data",void 0);z1=_.U([_.Q({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],z1);
_.S(z1,"ytd-google-account-header-renderer",function(){if(SRc!==void 0)return SRc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return SRc=a},{mode:1});var URc=function(){return _.P.apply(this,arguments)||this};
_.z(URc,_.P);URc.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"}}}};
URc.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.TH("page-changed",this.page))};
var A1=URc;A1.prototype.pageChangedForBinding=A1.prototype.pageChangedForBinding;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],A1.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],A1.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],A1.prototype,"data",void 0);_.U([_.O(),_.W("design:type",String)],A1.prototype,"page",void 0);
_.U([_.N("page"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],A1.prototype,"pageChangedForBinding",null);A1=_.U([_.Q({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],A1);
_.$r()(A1,"ytd-account-section-list-renderer",function(){if(PRc===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);PRc=a}a=PRc;return a},{allowedProps:["data"],
mode:1});var VRc;var WRc=function(){var a=_.P.apply(this,arguments)||this;a.enableHandlesAccountMenuSwitcher=_.x("enable_handles_account_menu_switcher");return a};
_.z(WRc,_.P);WRc.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
var B1=WRc;B1.prototype.dataChanged=B1.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],B1.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],B1.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],B1.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.U([_.gr("#avatar"),_.W("design:type",Object)],B1.prototype,"avatar",void 0);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],B1.prototype,"dataChanged",null);B1=_.U([_.Q({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],B1);
_.$r()(B1,"ytd-active-account-header-renderer",function(){if(VRc===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);VRc=a}a=VRc;return a},{allowedProps:["data"],
mode:1});var XRc;var YRc;var ZRc=function(){return _.P.apply(this,arguments)||this};
_.z(ZRc,_.P);ZRc.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
ZRc.prototype.onBackTap=function(){_.go(this.hostElement,"yt-menu-back-tapped")};
var C1=ZRc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],C1.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],C1.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],C1.prototype,"data",void 0);C1=_.U([_.Q({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],C1);
_.$r()(C1,"ytd-simple-menu-header-renderer",function(){if(YRc===void 0){var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);YRc=a}a=YRc;return a},{allowedProps:["data"],
mode:2});var $Rc;var aSc=function(){return _.P.apply(this,arguments)||this};
_.z(aSc,_.P);var D1=aSc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],D1.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],D1.prototype,"data",void 0);D1=_.U([_.Q({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],D1);
_.S(D1,"ytd-comment-video-thumbnail-header-renderer",function(){if($Rc!==void 0)return $Rc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return $Rc=a},{mode:1});var bSc;var cSc=function(){return _.P.apply(this,arguments)||this};
_.z(cSc,_.P);var E1=cSc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],E1.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],E1.prototype,"data",void 0);E1=_.U([_.Q({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],E1);
_.S(E1,"ytd-abuse-type-selector-renderer",function(){if(bSc!==void 0)return bSc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return bSc=a},{mode:1});var dSc;var F1=function(){return _.P.apply(this,arguments)||this};
_.z(F1,_.P);F1.prototype.attached=function(){var a=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){a.additionalContextInput.focusTextInput()})};
F1.prototype.handleAdditionalContextChanged=function(){var a=this;_.Dr(this,"ytd-report-channel-additional-context-update",function(){a.ytdReduxBehavior.dispatch(_.gp({type:"ADDITIONAL_CONTEXT_UPDATED",payload:a.additionalContext}))},300)};
F1.prototype.updateAdditionalContextFromBinding=function(a){this.additionalContext=a.detail.value};
var G1=F1;G1.prototype.handleAdditionalContextChanged=G1.prototype.handleAdditionalContextChanged;_.U([_.H(_.LI),_.W("design:type",Object)],G1.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",String)],G1.prototype,"additionalContext",void 0);_.U([_.O({selector:function(a){return a.reportChannelAbuse.additionalContext}}),
_.W("design:type",String)],G1.prototype,"additionalContextRedux",void 0);_.U([_.O(),_.W("design:type",Object)],G1.prototype,"data",void 0);_.U([_.gr("yt-text-input-form-field-renderer"),_.W("design:type",Object)],G1.prototype,"additionalContextInput",void 0);_.U([_.N("additionalContext"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],G1.prototype,"handleAdditionalContextChanged",null);
G1=_.U([_.Q({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],G1);
_.S(G1,"ytd-report-channel-modal-additional-context-renderer",function(){if(dSc!==void 0)return dSc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return dSc=a},{mode:1});var eSc;var fSc=function(){var a=_.P.apply(this,arguments)||this;a.nextButtonDisabled=null;a.submitEndpoint=null;a.navigationEndpoint=null;a.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return a};
_.z(fSc,_.P);_.f=fSc.prototype;_.f.computeNextButtonData=function(a,b,c){var d={};b&&(d.navigationEndpoint=b);c&&(d.serviceEndpoint=c);a&&a.buttonRenderer&&_.yf.extend(d,a.buttonRenderer);return d};
_.f.handleReportChannelModalDisableNextButtonAction=function(a){this.setNextButtonIsDisabled(a)};
_.f.handleReportFormEndpointUpdateAction=function(a){this.setNextButtonIsDisabled(!!a.disableSubmitButton);this.resetEndpointData();a.submitEndpoint?this.submitEndpoint=a.submitEndpoint:a.submitNavigationEndpoint&&(this.navigationEndpoint=a.submitNavigationEndpoint)};
_.f.handleSignalActionSubmitForm=function(){var a,b=Object.keys(((a=this.reportChannelAbuseForm)==null?void 0:a.selectedVideoIds)||{}),c;a=((c=this.reportChannelAbuseForm)==null?void 0:c.additionalContext)||"";var d;c=((d=this.reportChannelAbuseForm)==null?void 0:d.impersonatedChannelUrl)||"";var e;if((e=this.data)==null?0:e.submitEndpoint)if(b={impersonated_channel_url:c,text:a,video_ids:b},_.x("web_ytd_report_channel_modal_footer_renderer_command_resolver_ks")){var g;_.mo(this.hostElement,[(g=this.data)==
null?void 0:g.submitEndpoint,b])}else{var k;_.v().resolve(_.Xi).resolveCommand((k=this.data)==null?void 0:k.submitEndpoint,{form:Object.assign({},b,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.f.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.f.onYtServiceRequestError=function(a){this.setNextButtonIsDisabled(!1);_.KW(this.hostElement,a.detail.error.message)};
_.f.setNextButtonIsDisabled=function(a){this.set("data.nextButton.buttonRenderer.isDisabled",a)};
_.f.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
var H1=fSc;H1.prototype.onYtServiceRequestError=H1.prototype.onYtServiceRequestError;H1.prototype.onYtServiceRequestCompleted=H1.prototype.onYtServiceRequestCompleted;_.U([_.O(),_.W("design:type",Object)],H1.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],H1.prototype,"nextButtonDisabled",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],H1.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],H1.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],H1.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],H1.prototype,"submitEndpoint",void 0);_.U([_.O(),_.W("design:type",Object)],H1.prototype,"navigationEndpoint",void 0);_.U([_.O({selector:function(a){return a.reportChannelAbuse}}),
_.W("design:type",Object)],H1.prototype,"reportChannelAbuseForm",void 0);_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],H1.prototype,"onYtServiceRequestCompleted",null);_.U([_.M("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],H1.prototype,"onYtServiceRequestError",null);
H1=_.U([_.Q({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],H1);
_.S(H1,"ytd-report-channel-modal-footer-renderer",function(){if(eSc!==void 0)return eSc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return eSc=a},{mode:1});var gSc;var I1=function(){var a=_.P.apply(this,arguments)||this;a.boundOnTapDismissButton=function(){a.closePopup()};
return a};
_.z(I1,_.P);I1.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
I1.prototype.handleDataChanged=function(){_.Ok(this.hostElement)};
I1.prototype.closePopup=function(){_.ho(this.hostElement,"yt-close-popup-action")};
var J1=I1;J1.prototype.handleDataChanged=J1.prototype.handleDataChanged;_.U([_.O(),_.W("design:type",Object)],J1.prototype,"boundOnTapDismissButton",void 0);_.U([_.O(),_.W("design:type",Object)],J1.prototype,"data",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],J1.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],J1.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],J1.prototype,"handleDataChanged",null);J1=_.U([_.Q({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],J1);
_.S(J1,"ytd-report-channel-modal-header-renderer",function(){if(gSc!==void 0)return gSc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return gSc=a},{mode:1});var hSc;var iSc=function(){var a=_.P.apply(this,arguments)||this;a.autoValidate=!1;a.invalid=!1;a.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return a};
_.z(iSc,_.P);_.f=iSc.prototype;_.f.attached=function(){var a=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){a.channelUrlInput.focusTextInput()})};
_.f.disableNextButton=function(a){_.ho(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[a])};
_.f.handleImpersonatedChannelUrlChanged=function(){var a=this;this.disableNextButton(!0);this.invalid=!1;_.Dr(this,"ytd-report-channel-impersonated-channel-update",function(){var b=a.impersonatedChannelUrl.trim();a.ytdReduxBehavior.dispatch(_.gp({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:b}));var c;((c=a.data)==null?0:c.submitEndpoint)&&b&&_.mo(a.hostElement,[a.data.submitEndpoint,{impersonated_channel_url:b}])},500)};
_.f.handleModifyReportFormCommand=function(a){this.invalid=this.get("modifyReportFormCommand.action",a)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.f.updateInvalidFromBinding=function(a){this.invalid=a.detail.value};
_.f.updateImpersonatedChannelUrlFromBinding=function(a){this.impersonatedChannelUrl=a.detail.value};
var K1=iSc;K1.prototype.handleImpersonatedChannelUrlChanged=K1.prototype.handleImpersonatedChannelUrlChanged;_.U([_.H(_.LI),_.W("design:type",Object)],K1.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],K1.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],K1.prototype,"autoValidate",void 0);_.U([_.O(),_.W("design:type",Object)],K1.prototype,"invalid",void 0);
_.U([_.O(),_.W("design:type",String)],K1.prototype,"impersonatedChannelUrl",void 0);_.U([_.O({selector:function(a){return a.reportChannelAbuse.impersonatedChannelUrl}}),
_.W("design:type",String)],K1.prototype,"impersonatedChannelUrlRedux",void 0);_.U([_.O(),_.W("design:type",Object)],K1.prototype,"data",void 0);_.U([_.gr("#text-input"),_.W("design:type",Object)],K1.prototype,"channelUrlInput",void 0);_.U([_.N("impersonatedChannelUrl"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],K1.prototype,"handleImpersonatedChannelUrlChanged",null);
K1=_.U([_.Q({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],K1);
_.S(K1,"ytd-report-channel-modal-impersonation-renderer",function(){if(hSc!==void 0)return hSc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return hSc=a},{mode:1});var jSc;var kSc;var L1=function(){return _.P.apply(this,arguments)||this};
_.z(L1,_.P);L1.prototype.onCheckboxToggled=function(a){var b,c,d=(c=_.y((b=this.data)==null?void 0:b.video,_.uEb))==null?void 0:c.videoId;d&&this.ytdReduxBehavior.dispatch(a.target.checked?_.gp({type:"VIDEO_SELECTED",payload:d}):_.gp({type:"VIDEO_UNSELECTED",payload:d}))};
L1.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.Vm.Object.defineProperties(L1.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var a,b=(a=this.data)==null?void 0:a.video;if(!b)return{};var c;a=(c=_.y(b,_.uEb))==null?void 0:c.navigationEndpoint;if(!a)return b;_.y(a==null?void 0:a.commandMetadata,_.ao)&&(_.y(a.commandMetadata,_.ao).ignoreNavigation=!0);return b}}});
var M1=L1;_.U([_.O({reflectToAttribute:!0,selector:function(a,b){return b in a.reportChannelAbuse.selectedVideoIds},
selectorArgs:["data.video.videoRenderer.videoId"]}),_.W("design:type",Boolean)],M1.prototype,"checked",void 0);_.U([_.O(),_.W("design:type",Object)],M1.prototype,"data",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],M1.prototype,"video",null);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],M1.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],M1.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.H(_.LI),_.W("design:type",Object)],M1.prototype,"ytdReduxBehavior",void 0);M1=_.U([_.Q({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],M1);
_.S(M1,"ytd-selectable-video-renderer",function(){if(kSc!==void 0)return kSc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return kSc=a},{mode:1});var lSc=function(){var a=_.P.apply(this,arguments)||this;a.monitorScroll=!0;return a};
_.z(lSc,_.P);lSc.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
var N1=lSc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],N1.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],N1.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],N1.prototype,"data",void 0);N1=_.U([_.Q({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],N1);
_.S(N1,"ytd-selectable-video-list-renderer",function(){if(jSc!==void 0)return jSc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return jSc=a},{mode:1});var mSc;_.It("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var O1=function(){return _.P.apply(this,arguments)||this};
_.z(O1,_.P);O1.prototype.onChange=function(a){if(a=_.Qq(a).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.x("kevlar_command_handler_migration_killswitch"))_.no(this.hostElement,a,this.hostElement);else{a=_.h(a);for(var b=a.next();!b.done;b=a.next())this.ytComponentBehavior.resolveCommand(b.value)}};
O1.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
O1.prototype.updateDataToggledFromBinding=function(a){this.set("data.toggled",a.detail.value)};
var P1=O1;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],P1.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],P1.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],P1.prototype,"data",void 0);_.U([_.O({computed:"isEnabled(data)"}),_.W("design:type",Boolean)],P1.prototype,"enabled",void 0);P1=_.U([_.Q({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],P1);
_.S(P1,"ytd-toggle-item-renderer",function(){if(mSc!==void 0)return mSc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return mSc=a},{mode:1});var nSc;var oSc;var pSc;var Q1=function(){var a=_.P.apply(this,arguments)||this;a.setVisible=!1;a.boundOnSubmitButtonClick=function(){a.onSubmitButtonClick()};
a.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return a};
_.z(Q1,_.P);Q1.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}}}}}};
Q1.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
Q1.prototype.onSubmitButtonClick=function(){var a;((a=this.data)==null?0:a.submitEndpoint)&&!_.x("enable_ytc_refunds_submit_form_signal_action")&&_.mo(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
Q1.prototype.handleSignalActionSubmitForm=function(){var a;((a=this.data)==null?0:a.submitEndpoint)&&_.mo(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.Vm.Object.defineProperties(Q1.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.hiddenByDefault)&&!this.setVisible}}});
var R1=Q1;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],R1.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],R1.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],R1.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],R1.prototype,"setVisible",void 0);_.U([_.O(),_.W("design:type",Object)],R1.prototype,"data",void 0);
_.U([_.O(),_.W("design:type",Object)],R1.prototype,"surveyFeedbackData",void 0);_.U([_.O(),_.W("design:type",Object)],R1.prototype,"boundOnSubmitButtonClick",void 0);_.U([_.O({reflectToAttribute:!0}),_.K("data","setVisible"),_.W("design:type",Object),_.W("design:paramtypes",[])],R1.prototype,"visibilityHidden",null);R1=_.U([_.ur({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],R1);
_.S(R1,"yt-flow-footer-renderer",function(){if(pSc===void 0){var a=document.createElement("template");_.B(a,'\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>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;oSc===void 0&&(oSc=document.createElement("template"));var d=oSc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);pSc=a}a=pSc;return a},{mode:2});var qSc=function(){return _.P.apply(this,arguments)||this};
_.z(qSc,_.P);var S1=qSc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],S1.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],S1.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],S1.prototype,"data",void 0);_.U([_.O({selector:function(a){return a.ypc.surveyFeedbackData}}),
_.W("design:type",Object)],S1.prototype,"surveyFeedbackData",void 0);S1=_.U([_.Q({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],S1);
_.S(S1,"ytd-flow-footer-renderer",function(){if(nSc!==void 0)return nSc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return nSc=a},{mode:_.as("kevlar_poly_si_batch_j025")?1:2});var rSc;var sSc;var tSc=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return a};
_.z(tSc,_.P);_.f=tSc.prototype;_.f.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.Jt("multiPageMenuSectionItems")}}};
_.f.handleHideEnclosingAction_=function(a){if(this.data&&this.data.items)for(var b=0;b<this.data.items.length;b++){var c=this.data.items[b].notificationRenderer;if(c&&c.notificationId==a.hideEnclosingAction.notificationId){this.splice("data.items",b,1);_.ho(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.f.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.ar(this.hostElement,"hidden",!0)};
_.f.updateMenu_=function(a){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&a&&!a.doNotRefreshInbox){a=this.data.continuations;for(var b=0;b<a.length;b++)if(a[b].invalidationContinuationData){var c=void 0;var d=(c=a[b].invalidationContinuationData)==null?void 0:c.continuation;break}a=_.yf.clone(this.data.continuationUpdateEndpoint||null);a.continuation=d;a.click_tracking_params=this.data.trackingParams;_.mo(this.hostElement,[a])}};
_.f.onServiceRequestCompleted_=function(a,b){if(this.data&&(a=b.actions)){b=0;for(var c=a.length;b<c;b++){var d=_.y(a[b],_.Czb);if(!d)break;if((d.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||d.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&d.continuationItems&&this.data.items){var e=this.data.items.length-1;this.data.items[e].continuationItemRenderer&&this.splice.apply(this,["data.items",e,1].concat(d.continuationItems))}}}};
var T1=tSc;T1.prototype.onServiceRequestCompleted_=T1.prototype.onServiceRequestCompleted_;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],T1.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],T1.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],T1.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],T1.prototype,"data",void 0);
_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Wt]),_.W("design:returntype")],T1.prototype,"onServiceRequestCompleted_",null);T1=_.U([_.ur({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],T1);
_.$r()(T1,"yt-multi-page-menu-section-renderer",function(){if(sSc===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;rSc===void 0&&(rSc=document.createElement("template"));var d=rSc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);sSc=a}a=sSc;return a},{allowedProps:["data"],
mode:2});var uSc;var vSc;var wSc=function(){return _.P.apply(this,arguments)||this};
_.z(wSc,_.P);wSc.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.Vm.Object.defineProperties(wSc.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.progress)==null?0:this.data.progress*100}}});
var U1=wSc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],U1.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],U1.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],U1.prototype,"data",void 0);_.U([_.K("data.progress"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],U1.prototype,"showProgressBar",null);
_.U([_.K("data.progress"),_.W("design:type",Number),_.W("design:paramtypes",[])],U1.prototype,"progress",null);U1=_.U([_.ur({is:"yt-flow-header-renderer",disableElementRegistration:!0})],U1);
_.S(U1,"yt-flow-header-renderer",function(){if(vSc===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;uSc===void 0&&(uSc=document.createElement("template"));var d=uSc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);vSc=a}a=vSc;return a},{mode:2});var xSc;var ySc;var zSc=function(){return _.P.apply(this,arguments)||this};
_.z(zSc,_.P);zSc.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
var V1=zSc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],V1.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],V1.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],V1.prototype,"data",void 0);V1=_.U([_.ur({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],V1);
_.S(V1,"yt-post-confirmation-flow-step-renderer",function(){if(ySc===void 0){var a=document.createElement("template");_.B(a,'\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>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;xSc===void 0&&(xSc=document.createElement("template"));var d=xSc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);ySc=a}a=ySc;return a},{mode:2});var ASc;var BSc;var CSc=function(){return _.P.apply(this,arguments)||this};
_.z(CSc,_.P);
CSc.prototype.configureRendererStamper=function(){return{"data.userInfo":{id:"user-info",mapping:{cardItemTextWithImageRenderer:{component:"yt-card-item-text-with-image-renderer"}}},"data.confirmationText":{id:"confirmation-text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.confirmationDetailsHeader":{id:"confirmation-details",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"}}},"data.productDetails":{id:"product-details",mapping:{activityItemRenderer:{component:"yt-activity-item-renderer"}}},
"data.billingDetails":{id:"billing-details",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
var W1=CSc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],W1.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],W1.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],W1.prototype,"data",void 0);W1=_.U([_.ur({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],W1);
_.S(W1,"yt-refund-confirmation-flow-step-renderer",function(){if(BSc===void 0){var a=document.createElement("template");_.B(a,'\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>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;ASc===void 0&&(ASc=document.createElement("template"));var d=ASc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);BSc=a}a=BSc;return a},{mode:2});_.am(pxc);_.am(qxc);var rxc=_.Au({avatarViewModel:_.Gv});_.am(sxc);var txc=_.Au({commentInteractionViewModel:qxc,sharedSubscriptionViewModel:sxc,buttonViewModel:_.Ju});_.am(uxc);_.am(vxc);_.am(wxc);_.am(xxc);_.am(yxc);var zxc=_.Au({profileIdentityInfoViewModel:_.Tmc,profileInfoViewModel:yxc});_.am(Axc);_.dt(Axc,"yt-profile-card-view-model",{propNames:["data"]});var DSc=function(){var a=_.P.apply(this,arguments)||this;a.enableFocusFix=_.x("music_web_enable_focus_on_setting_menu_fix")&&_.Gi("IS_MOBILE_WEB",!1);a.covered=!1;a.hideMenu=!1;a.isCommentNotificationOnProfileCard=!1;a.scrolledByTouch=!1;a.disableBackdropFilter=_.x("web_disable_backdrop_filter");a.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return a};
_.z(DSc,_.P);_.f=DSc.prototype;
_.f.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"}}}};
_.f.ready=function(){var a=this;this.JSC$17743_containerElement.addEventListener("scroll",function(){a.ytRendererBehavior.markDirty()})};
_.f.attributeChanged=function(a,b){a==="menu-style"&&_.ho(this.hostElement,"yt-multi-page-menu-closed-action",[b])};
_.f.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.er(this,this.focusOnStampFinished))};
_.f.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.er(this,this.focusOnStampFinished))};
_.f.reset=function(){this.closeJobId&&(_.zk.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.f.focusOnStampFinished=function(a){a.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.er(this,this.focusOnStampFinished)),this.doFocus())};
_.f.doFocus=function(){var a=_.Qvb(this.sectionsElement);a.length&&a[0].focus()};
_.f.computeMenuStyle=function(a){return a?a.toLowerCase().replace(/_/g,"-"):""};
_.f.computeIsCommentNotificationOnProfileCard=function(a){return _.x("enable_profile_cards_on_comments")&&a.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.f.computeHideMenu=function(a,b){return a||!(!b||!b.showLoadingSpinner)};
_.f.onPopupClosed=function(){this.isPopUpOpen=!1;_.ho(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.f.onPopupOpened=function(a,b){this.isPopUpOpen=!0;b.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.go(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.gp({type:"CHANNEL_REPORT_RESET"})))};
_.f.onYtNavigate=function(a,b){this.shouldCloseOnNavigateEvent(b.endpoint)&&_.ho(this.hostElement,"yt-close-all-popups-action")};
_.f.handleEndpoint=function(a){a=_.y(a,_.KE);!this.isCommentNotificationOnProfileCard&&a&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$17743_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.f.handleActions=function(a){for(var b=0,c=a.length;b<c;b++){var d=_.y(a[b],jJc);d&&this.handleGetMultiPageMenuAction(d);(d=_.y(a[b],_.Czb))&&this.handleAppendContinuationItemsAction(d)}};
_.f.onServiceRequestSentOrCompleted=function(a,b){a.detail&&a.detail.endpoint&&this.handleEndpoint(a.detail.endpoint);b.actions&&this.handleActions(b.actions)};
_.f.handleGetMultiPageMenuAction=function(a){var b=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.E(this.submenuElement).appendChild(b);(a=a.menu.multiPageMenuRenderer)&&this.logSubmenu(a);b.data=a;b.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.f.handleAppendContinuationItemsAction=function(a){if(this.data&&a.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&a.continuationItems&&this.data.sections){var b=this.data.sections.length-1;this.data.sections[b].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),b--);if(this.data.sections[b].multiPageMenuNotificationSectionRenderer&&a.continuationItems){a=_.h(a==null?void 0:a.continuationItems);for(var c=a.next();!c.done;c=a.next())if(c=c.value,_.y(c,MJc)){var d=
void 0,e=void 0,g=void 0,k=void 0,m=void 0;((d=this)==null?0:(e=d.data)==null?0:(g=e.sections)==null?0:(k=g[b])==null?0:(m=k.multiPageMenuNotificationSectionRenderer)==null?0:m.items)&&this.push("data.sections."+b+".multiPageMenuNotificationSectionRenderer.items",c)}else if(_.y(c,_.mAb)||_.y(c,_.lw))this.push("data.sections",c),b++}}};
_.f.logSubmenu=function(a){if(!_.x("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var b=this.ytRendererBehavior.getScreenLayer(),c=_.Fn(b),d=_.En(b);if((a=a.trackingParams)&&c&&d){var e=_.qs(a);_.x("combine_ve_grafts")?_.ms().graftServerVe(a,d,b):_.Ro(c,d,e)}}};
_.f.emptySubmenuContainer=function(){for(var a=_.E(this.submenuElement);a.firstChild;)a.removeChild(a.firstChild)};
_.f.onMenuBackTap=function(a){_.go(this.hostElement,"yt-submenu-closed");a.stopPropagation()};
_.f.onSubmenuClosed=function(a){_.Qq(a)!==this.hostElement&&(this.covered=!1,_.go(this.hostElement,"yt-refit"),a.stopPropagation())};
_.f.onRetrieveLocation=function(a,b){b.hasComments&&(b.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),a.stopPropagation())};
_.f.shouldCloseOnNavigateEvent=function(a){if(!a)return!0;if(_.y(a,_.jDb)||_.y(a,_.kDb)||_.y(a,_.iDb)||_.y(a,_.Ml))return!1;var b;return((b=_.y(a==null?void 0:a.commandMetadata,_.ao))==null?0:b.ignoreNavigation)?!1:!0};
_.f.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.f.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.f.refitAfterRender=function(){var a=this;_.Tm(this,function(){_.go(a.hostElement,"yt-refit")})};
var X1=DSc;X1.prototype.refitAfterRender=X1.prototype.refitAfterRender;X1.prototype.onRetrieveLocation=X1.prototype.onRetrieveLocation;X1.prototype.onSubmenuClosed=X1.prototype.onSubmenuClosed;X1.prototype.onMenuBackTap=X1.prototype.onMenuBackTap;X1.prototype.onServiceRequestSentOrCompleted=X1.prototype.onServiceRequestSentOrCompleted;X1.prototype.onYtNavigate=X1.prototype.onYtNavigate;X1.prototype.onPopupOpened=X1.prototype.onPopupOpened;X1.prototype.onPopupClosed=X1.prototype.onPopupClosed;
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],X1.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.CK.YtEventForwardingBehavior),_.W("design:type",Object)],X1.prototype,"ytEventForwardingBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],X1.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],X1.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],X1.prototype,"data",void 0);
_.U([_.O(),_.W("design:type",Object)],X1.prototype,"enableFocusFix",void 0);_.U([_.O(),_.W("design:type",Object)],X1.prototype,"covered",void 0);_.U([_.O({computed:"computeHideMenu(covered, data)"}),_.W("design:type",Object)],X1.prototype,"hideMenu",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.W("design:type",String)],X1.prototype,"menuStyle",void 0);
_.U([_.O({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.W("design:type",Object)],X1.prototype,"isCommentNotificationOnProfileCard",void 0);_.U([_.O(),_.W("design:type",Boolean)],X1.prototype,"isPopUpOpen",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],X1.prototype,"scrolledByTouch",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],X1.prototype,"disableBackdropFilter",void 0);
_.U([_.gr("#sections"),_.W("design:type",HTMLElement)],X1.prototype,"sectionsElement",void 0);_.U([_.gr("#spinner"),_.W("design:type",HTMLElement)],X1.prototype,"spinnerElement",void 0);_.U([_.gr("#header"),_.W("design:type",HTMLElement)],X1.prototype,"headerElement",void 0);_.U([_.gr("#container"),_.W("design:type",HTMLElement)],X1.prototype,"JSC$17743_containerElement",void 0);_.U([_.gr("#submenu"),_.W("design:type",HTMLElement)],X1.prototype,"submenuElement",void 0);
_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],X1.prototype,"onPopupClosed",null);_.U([_.M("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],X1.prototype,"onPopupOpened",null);_.U([_.M("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],X1.prototype,"onYtNavigate",null);
_.U([_.M("yt-service-request-completed"),_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Wt]),_.W("design:returntype")],X1.prototype,"onServiceRequestSentOrCompleted",null);_.U([_.M("yt-menu-back-tapped"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],X1.prototype,"onMenuBackTap",null);
_.U([_.M("yt-submenu-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],X1.prototype,"onSubmenuClosed",null);_.U([_.M("yt-retrieve-location"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],X1.prototype,"onRetrieveLocation",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],X1.prototype,"refitAfterRender",null);
X1=_.U([_.Q({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],X1);
_.S(X1,"ytd-multi-page-menu-renderer",function(){if(XRc!==void 0)return XRc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return XRc=a},{mode:1});var ESc;var FSc=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return a};
_.z(FSc,_.P);_.f=FSc.prototype;_.f.created=function(){this.showTooltips=!0};
_.f.computeAccessibility_=function(a){return this.get("accessibility.accessibilityData",a)||null};
_.f.onTap=function(){var a=_.ko(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(a&&a.length===1&&a[0])_.ho(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var b;if((b=this.data)==null?0:b.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var c;((c=this.data)==null?0:c.menuRequest)&&_.mo(this.hostElement,[this.data.menuRequest])}}};
_.f.handleTopbarMenuClosedAction=function(a){var b,c;(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(a)===((b=this.data)==null?void 0:(c=b.icon)==null?void 0:c.iconType)&&this.toggleIconState(!1)};
_.f.toggleIconState=function(a){_.x("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=a)};
_.f.handleUpdateTopbarAvatarAction=function(a){var b;a=(b=_.y(a,cJc))==null?void 0:b.avatarUrl;var c,d;b=(c=this.data)==null?void 0:(d=c.avatar)==null?void 0:d.thumbnails;a&&b&&(c={thumbnails:[Object.assign({},b[0],{url:a})]},this.set("data.avatar",c))};
_.Vm.Object.defineProperties(FSc.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.E(this.hostElement).querySelector("#button")}}});
var Y1=FSc;Y1.prototype.onTap=Y1.prototype.onTap;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],Y1.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],Y1.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.YH),_.W("design:type",Object)],Y1.prototype,"ytdOpenPopupBehavior",void 0);_.U([_.H(_.IPb.YtButtonBehavior),_.W("design:type",Object)],Y1.prototype,"ytButtonBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],Y1.prototype,"data",void 0);_.U([_.gr("yt-icon-button#button"),_.W("design:type",Object)],Y1.prototype,"iconButton",void 0);_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Y1.prototype,"onTap",null);Y1=_.U([_.Q({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],Y1);
_.S(Y1,"ytd-topbar-menu-button-renderer",function(){if(ESc!==void 0)return ESc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return ESc=a},{mode:1});var GSc;var HSc=function(){return _.P.apply(this,arguments)||this};
_.z(HSc,_.P);HSc.prototype.getSelected=function(){return this.reasons.selected};
var Z1=HSc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],Z1.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],Z1.prototype,"data",void 0);_.U([_.gr("#reasons"),_.W("design:type",Object)],Z1.prototype,"reasons",void 0);Z1=_.U([_.Q({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],Z1);
_.S(Z1,"ytd-ad-feedback-content",function(){if(GSc!==void 0)return GSc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return GSc=a},{mode:1});var ISc;var JSc=function(){return _.P.apply(this,arguments)||this};
_.z(JSc,_.P);_.f=JSc.prototype;_.f.onPopupOpened=function(){_.ho(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.f.computeConfirmButton=function(a){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:a.confirmLabel}};
_.f.computeCancelButton=function(a){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:a.cancelLabel}};
_.f.onConfirmTap=function(){var a=this.content.getSelected();a!==void 0&&(a=this.data.reasons[a].endpoint)&&(_.x("web_ytd_ad_feedback_renderer_command_resolver_ks")?_.mo(this.hostElement,[a]):_.v().resolve(_.Xi).resolveCommand(a,{form:{element:this.hostElement}}),_.ho(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.f.sendFeedbackSubmitToastAction=function(){var a;(a=this.data)!=null&&a.completionMessage&&_.ho(this.hostElement,"yt-open-popup-action",[_.$p(this.data.completionMessage),this])};
_.f.onCancelTap=function(){_.ho(this.hostElement,"yt-close-popup-action")};
var $1=JSc;$1.prototype.onPopupOpened=$1.prototype.onPopupOpened;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],$1.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],$1.prototype,"data",void 0);_.U([_.gr("#content"),_.W("design:type",Object)],$1.prototype,"content",void 0);_.U([_.M("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],$1.prototype,"onPopupOpened",null);
$1=_.U([_.Q({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],$1);
_.S($1,"ytd-ad-feedback-renderer",function(){if(ISc!==void 0)return ISc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return ISc=a},{mode:1});var KSc;var LSc=function(){return _.P.apply(this,arguments)||this};
_.z(LSc,_.P);var a2=LSc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],a2.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],a2.prototype,"data",void 0);a2=_.U([_.Q({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],a2);
_.S(a2,"ytd-ad-info-dialog-content",function(){if(KSc!==void 0)return KSc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return KSc=a},{mode:1});var MSc;var b2=function(){return _.P.apply(this,arguments)||this};
_.z(b2,_.P);b2.prototype.computeConfirmButton=function(a){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:a.confirmLabel}};
b2.prototype.onConfirmTap=function(){_.ho(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
b2.prototype.computeShouldShowTitle=function(){var a;return!((a=this.data)==null||!a.title)};
b2.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.v().resolve(_.Xi).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
var c2=b2;c2.prototype.onPopupClosed=c2.prototype.onPopupClosed;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],c2.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],c2.prototype,"data",void 0);_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],c2.prototype,"onPopupClosed",null);c2=_.U([_.Q({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],c2);
_.S(c2,"ytd-ad-info-dialog-renderer",function(){if(MSc!==void 0)return MSc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return MSc=a},{mode:1});var NSc;var OSc=function(){var a=_.P.apply(this,arguments)||this;a.actionButtonClass="action-button";a.dismissButtonId="dismiss-button";a.dialogDismiss=!0;return a};
_.z(OSc,_.P);_.f=OSc.prototype;_.f.computeInPlayer=function(a){return(a==null?void 0:a.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.f.computedLogo=function(){var a,b;return this.isDarkTheme()?(a=this.data)==null?void 0:a.logoDark:(b=this.data)==null?void 0:b.logo};
_.f.computedHeaderImage=function(){var a,b;return this.isDarkTheme()?(a=this.data)==null?void 0:a.headerImageDark:(b=this.data)==null?void 0:b.headerImage};
_.f.computeLogoIconId=function(){var a,b,c,d=(a=this.computedLogo())==null?void 0:(b=a.sources)==null?void 0:(c=b[0])==null?void 0:c.height;return d&&d%31===0?"logo-icon-with-padding":"logo-icon"};
_.f.computeLogoIconHeight=function(){var a,b,c,d=(a=this.computedLogo())==null?void 0:(b=a.sources)==null?void 0:(c=b[0])==null?void 0:c.height;return d&&d%31===0?"31":"24"};
_.f.onPopupClosed=function(){_.v().resolve(_.sS).dispose()};
_.f.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.f.onShow=function(){this.inPlayer&&_.kq(6)};
_.f.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var a=0;a<this.data.impressionEndpoints.length;a++){var b=_.y(this.data.impressionEndpoints[a],_.Ds);b&&this.ytComponentBehavior.resolveCommand(b)}};
_.f.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.ho(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.Vm.Object.defineProperties(OSc.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var a,b;return!((a=this.data)==null||!a.headerImageDark)&&!((b=this.data)==null||!b.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.secondaryButton)}}});
var d2=OSc;d2.prototype.onPopupClosed=d2.prototype.onPopupClosed;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],d2.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],d2.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.OG.YtVisibilityBehavior),_.W("design:type",Object)],d2.prototype,"ytVisibilityBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],d2.prototype,"data",void 0);
_.U([_.O(),_.W("design:type",Object)],d2.prototype,"actionButtonClass",void 0);_.U([_.O(),_.W("design:type",Object)],d2.prototype,"dismissButtonId",void 0);_.U([_.O(),_.W("design:type",Object)],d2.prototype,"dialogDismiss",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],d2.prototype,"hasHeaderImage",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],d2.prototype,"hasPremiumButton",null);
_.U([_.O({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.W("design:type",Boolean)],d2.prototype,"inPlayer",void 0);_.U([_.gr("#dismiss-button"),_.W("design:type",HTMLElement)],d2.prototype,"dismissButton",void 0);_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],d2.prototype,"onPopupClosed",null);d2=_.U([_.Q({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],d2);
_.S(d2,"ytd-enforcement-message-view-model",function(){if(NSc!==void 0)return NSc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-enforcement-message-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-enforcement-message-view-model">\n<div id="header" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedLogo(data)]]" height$="[[computeLogoIconHeight()]]" id$="[[computeLogoIconId()]]" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n  <yt-button-view-model id="[[dismissButtonId]]" data="[[data.dismissButton]]" icon="[[data.dismissButton.iconName]]" scoping-class-name="[[is]]" on-click="onDismissClicked" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="header-image" hidden="[[!hasHeaderImage]]" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedHeaderImage(data)]]" height="64" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n</div>\n\n<div id="title" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string data="[[data.title]]" class="style-scope ytd-enforcement-message-view-model"></yt-attributed-string>\n</div>\n\n<ul id="body" class="style-scope ytd-enforcement-message-view-model">\n  <template is="dom-repeat" items="[[data.bulletList.bulletListItems]]" as="item" class="style-scope ytd-enforcement-message-view-model">\n    <li class="style-scope ytd-enforcement-message-view-model">\n      <yt-attributed-string class="body-message style-scope ytd-enforcement-message-view-model" data="[[item.title]]"></yt-attributed-string>\n    </li>\n  </template>\n</ul>\n\n<div id="buttons" class="style-scope ytd-enforcement-message-view-model">\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.primaryButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.secondaryButton]]" dialog-dismiss="[[dialogDismiss]]" hidden$="[[!hasPremiumButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="divider" class="style-scope ytd-enforcement-message-view-model"></div>\n\n<div id="feedback" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string id="feedback-message" data="[[data.feedbackMessage]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-attributed-string>\n</div>\n</div>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return NSc=a},{mode:1});var PSc;var QSc;var RSc=function(){var a=_.P.apply(this,arguments)||this;a.TEST_ONLY={immediateValidation:function(){a.immediateValidation()},
onValidationResponse:function(b){a.onValidationResponse(b)},
onGenerateHandleFromNameResponse:function(b){a.onGenerateHandleFromNameResponse(b)}};
return a};
_.z(RSc,_.P);_.f=RSc.prototype;_.f.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.f.validate=function(){this.immediateValidation()};
_.f.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.f.setHandleInputValue=function(a){this.handleDir=this.getHandleDir(a);this.handleInput.value=a;this.validationState={status:"PENDING"};this.immediateValidation()};
_.f.getHandleDir=function(a){var b=a===""&&!1;return(b=_.Ilb.test.call(_.Ilb,a))?"rtl":"ltr"};
_.f.onDataChanged=function(){var a,b;this.handleDir=this.getHandleDir((b=(a=this.data)==null?void 0:a.handle)!=null?b:"");var c;this.validationState=((c=this.data)==null?0:c.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var d;((d=this.data)==null?0:d.validateOnInit)&&this.immediateValidation()};
_.f.stopPropagation=function(a){a.stopPropagation()};
_.f.onInput=function(){var a;this.handleDir=this.getHandleDir((a=this.handleInput.value)!=null?a:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.f.onFocusout=function(a){this.handleInput.contains(a.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.f.delayedValidation=function(){var a,b;this.debouncedValidation((b=(a=this.data)==null?void 0:a.validationDelayMs)!=null?b:1E3)};
_.f.immediateValidation=function(){this.debouncedValidation(0)};
_.f.debouncedValidation=function(a){var b=this;_.Dr(this,"debouncedValidation",function(){var c,d=b.staticValidation((c=b.handleInput.value)!=null?c:"");if(d!==void 0)b.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:d};else{var e;if((e=b.data)!=null&&e.validateChannelHandleCommand){b.validationState={status:"LOADING"};var g;b.ytComponentBehavior.resolveCommand(b.data.validateChannelHandleCommand,{form:{handle:(g=b.handleInput.value)!=null?g:""},commandController:{onSuccess:function(k,
m){b.onValidationResponse(m)},
onServerError:function(k,m){b.onValidationServerError(m)}}})}else b.handleUnexpectedValidationError(new _.qj("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",b.data))}},a)};
_.f.staticValidation=function(a){var b;if(((b=this.data)==null?void 0:b.channelHandleStaticValidationParams)!==void 0){b=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(a)&&b.validValueRegexpErrorMessage!==void 0)return b.validValueRegexpErrorMessage;if(b.minLength!==void 0&&a.length<b.minLength&&b.minLengthErrorMessage!==void 0)return b.minLengthErrorMessage;if(b.maxLength!==void 0&&a.length>b.maxLength&&b.maxLengthErrorMessage!==void 0)return b.maxLengthErrorMessage}};
_.f.onValidationResponse=function(a){var b=_.y(a.result,dJc);b===void 0?this.handleUnexpectedValidationError(new _.qj("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",a)):this.handleValidationResultRenderer(b)};
_.f.onValidationServerError=function(a){this.handleUnexpectedValidationError(new _.qj("ValidateChannelHandle request failed.",a))};
_.f.handleValidationResultRenderer=function(a){if(a.handle===void 0)this.handleUnexpectedValidationError(new _.qj("ChannelHandleValidationResultRenderer does not contain handle.",a));else if(a.handle===this.handleInput.value)switch(a.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:a.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:a.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.qj("Unrecognized ChannelHandleValidationResult",a));break;default:_.Sb(a.result)}};
_.f.handleUnexpectedValidationError=function(a){var b;this.validationState={status:"UNKNOWN",handle:(b=this.handleInput.value)!=null?b:""};_.Dl(a)};
_.f.stopEventPropagation=function(a){a.stopPropagation()};
_.f.updateHandleOnChannelNameInputChange=function(a){if(!this.wasEdited){var b,c;this.debouncedGenerateHandleFromName(a,(c=(b=this.data)==null?void 0:b.validationDelayMs)!=null?c:1E3)}};
_.f.debouncedGenerateHandleFromName=function(a,b){var c=this;_.Dr(this,"debouncedGenerateHandleFromName",function(){var d;(d=c.data)!=null&&d.validateChannelHandleCommand?c.ytComponentBehavior.resolveCommand(c.data.validateChannelHandleCommand,{form:{name:a},commandController:{onSuccess:function(e,g){c.onGenerateHandleFromNameResponse(g)},
onServerError:function(e,g){_.Dl(new _.qj("Error calling GenerateHandleFromName",g))}}}):_.Dl(new _.qj("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",c.data))},b)};
_.f.onGenerateHandleFromNameResponse=function(a){this.wasEdited||((a=_.y(a.result,eJc))?this.setHandleInputValue(a.handle):_.Dl(new _.qj("Invalid results when generate handle from name")))};
_.Vm.Object.defineProperties(RSc.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var a;if(a=this.validationState)a=this.validationState,a=a.status==="OK"||a.status==="UNKNOWN";if(a)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var a;if(((a=this.validationState)==null?void 0:a.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 a,b=(a=this.channelHandleEntity)==null?void 0:a.handleEdit;this.handleDir=this.getHandleDir(b!=null?b:"");return b}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var a,b;if(((a=this.data)==null?void 0:(b=a.channelHandleStaticValidationParams)==null?void 0:b.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
var e2=RSc;e2.prototype.stopEventPropagation=e2.prototype.stopEventPropagation;e2.prototype.onDataChanged=e2.prototype.onDataChanged;e2.prototype.applyHandleEdit=e2.prototype.applyHandleEdit;e2.prototype.onValueChanged=e2.prototype.onValueChanged;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],e2.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],e2.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],e2.prototype,"data",void 0);
_.U([_.O(),_.W("design:type",Boolean)],e2.prototype,"wasEdited",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],e2.prototype,"handleDir",void 0);_.U([_.gr("#handle-input"),_.W("design:type",Object)],e2.prototype,"handleInput",void 0);_.U([_.O(),_.K("validationState"),_.W("design:type",Object),_.W("design:paramtypes",[])],e2.prototype,"value",null);
_.U([_.N("value"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],e2.prototype,"onValueChanged",null);_.U([_.K("validationState"),_.W("design:type",Object),_.W("design:paramtypes",[])],e2.prototype,"errorIndicator",null);_.U([_.O({reflectToAttribute:!0}),_.K("errorIndicator"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],e2.prototype,"borderErrorIndicator",null);
_.U([_.O({selectorArgs:["data.channelHandleEntityKey"],selector:function(a,b){return _.mp(a.entities,"channelHandle",b)}}),
_.W("design:type",Object)],e2.prototype,"channelHandleEntity",void 0);_.U([_.K("channelHandleEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],e2.prototype,"handleEdit",null);_.U([_.N("handleEdit"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],e2.prototype,"applyHandleEdit",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],e2.prototype,"onDataChanged",null);
_.U([_.K("data.channelHandleStaticValidationParams.validValueRegexp"),_.W("design:type",Object),_.W("design:paramtypes",[])],e2.prototype,"validValueRegexp",null);_.U([_.M("yt-service-request-sent"),_.M("yt-service-request-completed"),_.M("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],e2.prototype,"stopEventPropagation",null);e2=_.U([_.Q({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],e2);
_.S(e2,"ytd-channel-handle-input-renderer",function(){if(QSc!==void 0)return QSc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return QSc=a},{mode:_.as("kevlar_poly_si_batch_j025")?1:2});var SSc=function(){var a=_.P.apply(this,arguments)||this;a.data=null;a.errorMessage=null;a.isLoading=!0;a.hideContainer=!1;a.enableNewChannelCreationOnIdForAll=_.x("enable_new_channel_creation_for_id4all");a.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"};a.testOnly={setErrorMessage:function(b){a.resetErrorState();
a.setErrorState(b)}};
return a};
_.z(SSc,_.P);_.f=SSc.prototype;_.f.created=function(){this.logScreenVe()};
_.f.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")};
_.f.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var a;((a=this.zeroStepErrorMessageEntity)==null?0:a.value)&&this.set("errorMessage",_.Up(this.zeroStepErrorMessageEntity.value))};
_.f.onCreateTap=function(){var a=this;if(this.data&&this.data.channelCreationEndpoint){var b,c;if(!((b=this.data.createChannelButton)==null?0:(c=b.buttonRenderer)==null?0:c.isDisabled)){var d;if((d=this.nameInput)!=null&&d.value){this.setLoadingState();var e,g;b=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(e=this.handleInput)==null?void 0:e.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((g=this.handleInput)==null?void 0:g.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:b,commandController:{onSuccess:function(k,m){a.onChannelCreationEndpointSuccess(m);a.obakeImageSource&&_.zl("channelCreatedWithObakeImage",{imageSourceType:a.obakeImageSource})},
onServerError:function(){a.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.f.endpointRequiresServiceRequestAction=function(a){return!!_.y(a,_.Ow)||!!_.y(a,cJc)};
_.f.isNavigateAction=function(a){var b;return!!_.y(a,_.SW)||!!_.y((b=_.y(a,hJc))==null?void 0:b.command,_.SW)};
_.f.isPlaylistAction=function(a){return!!_.y(a,_.LE)||!!_.y(a,_.RE)};
_.f.onChannelCreationEndpointSuccess=function(a){if(a.createChannelError){var b;this.setErrorState((b=a.createChannelError)==null?void 0:b.errorMessage);this.handleInput&&this.handleInput.validate()}else{_.x("enable_secondary_channel_creation_form")&&a.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(a.navigationEndpoint);if(a.actions){b=_.h(a.actions);for(var c=b.next();!c.done;c=b.next())if(c=c.value,this.endpointRequiresServiceRequestAction(c)&&this.ytComponentBehavior.resolveCommand(c),
this.isNavigateAction(c)){var d=void 0;c=_.y((d=_.y(c,hJc))==null?void 0:d.command,_.SW);d=void 0;this.isPlaylistAction((d=c)==null?void 0:d.endpoint)&&(_.ho(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),d=void 0,this.ytComponentBehavior.resolveCommand((d=c)==null?void 0:d.endpoint))}}a.actions&&a.actions.some(function(e){var g;return _.y(e,_.SW)||_.y((g=_.y(e,hJc))==null?void 0:g.command,_.SW)})||_.ho(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.f.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.f.onCancelTap=function(){var a,b,c;if(!((a=this.data)==null?0:(b=a.cancelButton)==null?0:(c=b.buttonRenderer)==null?0:c.isDisabled)){var d,e,g;a=(d=this.data)==null?void 0:(e=d.cancelButton)==null?void 0:(g=e.buttonRenderer)==null?void 0:g.command;if(!a||!_.y(a,_.aUa)){var k;this.nameInput&&((k=this.data)==null?0:k.name)&&(this.nameInput.value=this.data.name);var m;this.handleInput&&((m=this.data)==null?0:m.channelHandleInput)&&(this.handleInput.data=_.y(this.data.channelHandleInput,fJc));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.f.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.f.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.f.onClearProfilePhotoTap=function(){var a,b,c;((a=this.data)==null?0:(b=a.clearProfilePhotoButton)==null?0:(c=b.buttonRenderer)==null?0:c.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.f.onEditAvatarTap=function(){var a,b,c;((a=this.data)==null?0:(b=a.editAvatarButton)==null?0:(c=b.buttonRenderer)==null?0:c.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.f.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)};
_.f.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var a;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((a=this.data)==null?0:a.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.f.setErrorState=function(a){this.resetErrorState();if(a)this.set("errorMessage",a);else{var b;if((b=this.zeroStepErrorMessageEntity)==null?0:b.value)this.set("errorMessage",_.Up(this.zeroStepErrorMessageEntity.value));else{var c;((c=this.data)==null?0:c.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.f.fetchImageBlobWithAlr=function(a,b){b=b===void 0?5:b;var c=this,d,e,g,k,m;return _.l(function(n){switch(n.nextAddress){case 1:return _.p(n,fetch(a,{method:"GET",mode:"cors"}),2);case 2:d=n.yieldResult;if(d.ok){n.jumpTo(3);break}if(b===0)throw Error();e=c.addJitter(Math.pow(2,5-b));return _.p(n,new Promise(function(r){setTimeout(r,e*1E3)}),4);
case 4:return n.return(c.fetchImageBlobWithAlr(a,b-1));case 3:if(!_.Gb(d.headers.get("content-type")).split(";").some(function(r){return r.trim()==="text/plain"})){n.jumpTo(5);
break}g=c;k=g.fetchImageBlobWithAlr;return _.p(n,d.text(),6);case 6:return n.return(k.call(g,n.yieldResult,b-1));case 5:return _.p(n,d.blob(),7);case 7:return m=n.yieldResult,n.return(m)}})};
_.f.addJitter=function(a){var b=a*.3*Math.random();Math.random()>.5&&(b*=-1);return a+b};
_.f.openProfilePicturePicker=function(){var a=this,b,c,d,e,g;return _.l(function(k){if(k.nextAddress==1){b=a.data.scottyUploadUrl;if(!b)return k.return();c=document.documentElement.hasAttribute("dark");d=document.body.style.colorScheme;c&&(document.body.style.colorScheme="dark");e=$Fc(aGc(ZFc(SFc(c?"dark":"light")),function(m){var n,r,t,u,w;return _.l(function(A){if(A.nextAddress==1)return n=_.Fy(qGc(new JY(m.photoUrl,!1)).build(),"alr","yes"),a.obakeImageSource=a.pictureChangeSourceToObakeImageSourceType(m.photoSource),
_.me(A,2),a.setLoadingState(),_.p(A,a.fetchImageBlobWithAlr(n),4);if(A.nextAddress!=2)return r=A.yieldResult,t=new FileReader,t.addEventListener("load",function(){var C,G,J,I,R,ca;return _.l(function(V){if(V.nextAddress==1){if(r.size>15728640)return a.setErrorState((C=a.data)==null?void 0:C.imageSizeErrorMessage),_.Dl(Error("el")),V.return();if(!t.result)return a.setErrorState((G=a.data)==null?void 0:G.genericImageLoadErrorMessage),_.Dl(Error("fl")),V.return();J=t.result;_.me(V,2);return _.p(V,Bxc(r,
b),4)}if(V.nextAddress!=2)return I=V.yieldResult,a.handleImageUpdatedAction(J,I),a.resetErrorState(),_.Jj(V,0);R=_.re(V);a.setErrorState((ca=a.data)==null?void 0:ca.uploadErrorMessage);if(R instanceof Error)_.Bl(R);else{var fa=new _.qj(JSON.stringify(R));_.Bl(fa)}_.se(V)})}),t.readAsDataURL(r),_.Jj(A,0);
u=_.re(A);a.setErrorState((w=a.data)==null?void 0:w.genericImageLoadErrorMessage);u instanceof Error?_.Bl(u):_.Cl(new _.qj(JSON.stringify(u)));_.se(A)})}),function(){a.hideContainer=!1;
document.body.style.colorScheme=d});
_.me(k,2);return _.p(k,e.openPicker(),4)}if(k.nextAddress!=2)return _.Jj(k,0);_.re(k);a.setErrorState((g=a.data)==null?void 0:g.selectImageErrorMessage);_.se(k)})};
_.f.pictureChangeSourceToObakeImageSourceType=function(a){switch(a){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.f.logScreenVe=function(){_.mF(_.ms(),124448)};
_.f.graftServerVe=function(){var a=_.En(),b,c,d=(b=this.data)==null?void 0:(c=b.loggingDirectives)==null?void 0:c.trackingParams;d&&a&&(this.channelCreationFormVe=_.ms().graftServerVe(d,a),a={visualElement:this.channelCreationFormVe},_.ks().reportShown(a))};
_.f.isNameChanged=function(a){var b;return((b=this.data)==null?void 0:b.name)!==a};
_.f.isHandleChanged=function(a){var b,c=_.y((b=this.data)==null?void 0:b.channelHandleInput,fJc);return c&&a?c.handle!==a:!1};
_.f.handleImageUpdatedAction=function(a,b){this.hideContainer=!1;this.previewDataUrl=a;this.encryptedBlobId=b};
_.f.handleImageSelectionErrorAction=function(a){this.hideContainer=!1;this.setErrorState(a)};
_.f.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.f.showContainer=function(){this.hideContainer=!1};
_.f.maybeWipeZeroStepErrorMessage=function(){var a,b=(a=this.data)==null?void 0:a.zeroStepErrorMessageEntityKey,c;b&&((c=this.zeroStepErrorMessageEntity)==null?0:c.value)&&this.ytdReduxBehavior.dispatch(_.vu("stringEntity",b,{key:b,value:""}))};
_.Vm.Object.defineProperties(SSc.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 a;return((a=this.photoThumbnail)==null?0:a.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 a;return!((a=this.data)==null||!a.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.descriptionInfo}}});
var f2=SSc;f2.prototype.dataChanged=f2.prototype.dataChanged;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],f2.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],f2.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],f2.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],f2.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],f2.prototype,"errorMessage",void 0);
_.U([_.O(),_.W("design:type",Object)],f2.prototype,"isLoading",void 0);_.U([_.O(),_.W("design:type",String)],f2.prototype,"previewDataUrl",void 0);_.U([_.O(),_.W("design:type",Number)],f2.prototype,"obakeImageSource",void 0);_.U([_.O(),_.W("design:type",Object)],f2.prototype,"hideContainer",void 0);_.U([_.gr("#title-input"),_.W("design:type",Object)],f2.prototype,"nameInput",void 0);_.U([_.gr("#handle-input"),_.W("design:type",Object)],f2.prototype,"handleInput",void 0);
_.U([_.O(),_.W("design:type",Boolean)],f2.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.U([_.O({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.bPa}),_.W("design:type",Object)],f2.prototype,"zeroStepErrorMessageEntity",void 0);_.U([_.K("data","data.isDefaultProfilePhoto","previewDataUrl"),_.W("design:type",Object),_.W("design:paramtypes",[])],f2.prototype,"photoThumbnail",null);
_.U([_.K("data","data.isDefaultProfilePhoto","photoThumbnail"),_.W("design:type",Object),_.W("design:paramtypes",[])],f2.prototype,"userSetPhotoThumbnailUrl",null);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],f2.prototype,"hideProfilePhotoButtonLayer",null);_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],f2.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.U([_.kr("data","zeroStepErrorMessageEntity"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],f2.prototype,"dataChanged",null);_.U([_.O({reflectToAttribute:!0}),_.K("data.descriptionInfo","zeroStepErrorMessageEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],f2.prototype,"description",null);f2=_.U([_.Q({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],f2);
_.S(f2,"ytd-channel-creation-dialog-renderer",function(){if(PSc!==void 0)return PSc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return PSc=a},{mode:1});var TSc;var g2=function(){var a=_.P.apply(this,arguments)||this;a.isLoading=!1;a.isDisabled=!1;return a};
_.z(g2,_.P);g2.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
g2.prototype.updateDisabled=function(){var a;this.isDisabled=this.isLoading||((a=this.handleInput)==null?void 0:a.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
g2.prototype.onSaveClick=function(){var a=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var b;((b=this.data)==null?void 0:b.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 c;if((c=a.data)==null?0:c.nextEndpoint){var d;a.ytComponentBehavior.resolveCommand((d=a.data)==null?void 0:d.nextEndpoint)}else a.isLoading=
!1,a.closeDialog()},
onServerError:function(){a.isLoading=!1;a.handleInput.validate();var c;a.errorMessage=(c=a.data)==null?void 0:c.errorMessage}}}))}};
g2.prototype.closeDialog=function(){_.ho(this.hostElement,"yt-close-popup-action",[this.is])};
var h2=g2;h2.prototype.updateDisabled=h2.prototype.updateDisabled;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],h2.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],h2.prototype,"data",void 0);_.U([_.gr("#handle-input"),_.W("design:type",Object)],h2.prototype,"handleInput",void 0);_.U([_.N("isLoading"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],h2.prototype,"updateDisabled",null);
h2=_.U([_.Q({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],h2);
_.S(h2,"ytd-channel-handle-edit-dialog-renderer",function(){if(TSc!==void 0)return TSc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return TSc=a},{mode:1});var USc;var VSc=function(){return _.P.apply(this,arguments)||this};
_.z(VSc,_.P);VSc.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
var i2=VSc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],i2.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],i2.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],i2.prototype,"data",void 0);i2=_.U([_.Q({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],i2);
_.S(i2,"ytd-channel-switcher-footer-renderer",function(){if(USc!==void 0)return USc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return USc=a},{mode:1});var WSc;var XSc;var YSc=function(){return _.P.apply(this,arguments)||this};
_.z(YSc,_.P);YSc.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
var j2=YSc;j2.prototype.onIronChange=j2.prototype.onIronChange;_.U([_.O(),_.W("design:type",Object)],j2.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!1}),_.W("design:type",Function)],j2.prototype,"onDontAskAgainChanged",void 0);_.U([_.gr("#checkbox"),_.W("design:type",Object)],j2.prototype,"checkbox",void 0);_.U([_.M("iron-change"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],j2.prototype,"onIronChange",null);
j2=_.U([_.Q({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],j2);
_.S(j2,"ytd-identity-prompt-footer-renderer",function(){if(XSc!==void 0)return XSc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return XSc=a},{mode:1});var ZSc=function(){var a=_.P.apply(this,arguments)||this;a.dontAskAgain=!1;a.showPopup=!1;a.boundDontAskAgainChanged=function(b){a.dontAskAgainChanged(b)};
a.boundOnAccountItemTap=function(b){a.onAccountItemTap(b)};
return a};
_.z(ZSc,_.P);_.f=ZSc.prototype;
_.f.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]]"}}}}}};
_.f.ready=function(){var a=this;_.E(this.hostElement).querySelector("#container").addEventListener("scroll",function(){a.ytRendererBehavior.markDirty()})};
_.f.dontAskAgainChanged=function(a){this.dontAskAgain=a};
_.f.onAccountItemTap=function(a){if(a){var b={};this.dontAskAgain&&(b={dont_ask_again:this.dontAskAgain});_.Fq(a,b)}};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.f.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.f.redirectOnlyAccount=function(a){a.sections&&a.sections.length>0&&(a=_.y(a.sections[0],_.zyb),(a==null?0:a.contents)&&(a==null?void 0:a.contents.length)<=1?(a=_.Oi(window.location.href),(a==null?0:a.next)&&_.Yna(a.next)?_.Fq(a.next):_.Fq("/")):this.showPopup=!0)};
var k2=ZSc;k2.prototype.dataChanged=k2.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],k2.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],k2.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],k2.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!1}),_.W("design:type",Object)],k2.prototype,"dontAskAgain",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],k2.prototype,"showPopup",void 0);_.U([_.O({reflectToAttribute:!1}),_.W("design:type",Object)],k2.prototype,"boundDontAskAgainChanged",void 0);_.U([_.O({reflectToAttribute:!1}),_.W("design:type",Object)],k2.prototype,"boundOnAccountItemTap",void 0);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],k2.prototype,"dataChanged",null);
k2=_.U([_.Q({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],k2);
_.S(k2,"ytd-channel-switcher-renderer",function(){if(WSc!==void 0)return WSc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return WSc=a},{mode:1});var $Sc;var aTc=function(){return _.P.apply(this,arguments)||this};
_.z(aTc,_.P);_.Vm.Object.defineProperties(aTc.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
var l2=aTc;_.U([_.O(),_.W("design:type",Object)],l2.prototype,"data",void 0);_.U([_.K("data"),_.W("design:type",Array),_.W("design:paramtypes",[])],l2.prototype,"steps",null);l2=_.U([_.Q({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],l2);
_.S(l2,"ytd-channel-transfer-stepper-renderer",function(){if($Sc!==void 0)return $Sc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return $Sc=a},{mode:1});var bTc;var cTc=function(){var a=_.P.apply(this,arguments)||this;a.data=null;a.isError=!1;a.isLoading=!1;return a};
_.z(cTc,_.P);_.f=cTc.prototype;_.f.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"}}}};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.f.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.f.computeProfileName=function(a){return a?a.givenNameValue+" "+a.familyNameValue:""};
_.f.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)};
_.f.onYtServiceRequestError=function(){this.set("data.personalAccountTile.selectButton.buttonRenderer.isDisabled",!1);this.set("data.brandAccountTile.selectButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.set("isLoading",!1);this.set("isError",!0)};
var m2=cTc;m2.prototype.onYtServiceRequestError=m2.prototype.onYtServiceRequestError;m2.prototype.onYtServiceRequestSent=m2.prototype.onYtServiceRequestSent;m2.prototype.dataChanged=m2.prototype.dataChanged;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],m2.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],m2.prototype,"data",void 0);
_.U([_.O({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.W("design:type",String)],m2.prototype,"profileName",void 0);_.U([_.O(),_.W("design:type",Object)],m2.prototype,"isError",void 0);_.U([_.O(),_.W("design:type",Object)],m2.prototype,"isLoading",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],m2.prototype,"dataChanged",null);
_.U([_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Ot]),_.W("design:returntype")],m2.prototype,"onYtServiceRequestSent",null);_.U([_.M("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Ot]),_.W("design:returntype")],m2.prototype,"onYtServiceRequestError",null);m2=_.U([_.Q({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],m2);
_.S(m2,"ytd-channel-warm-welcome-cont-renderer",function(){if(bTc!==void 0)return bTc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return bTc=a},{mode:1});var dTc;var eTc=function(){var a=_.P.apply(this,arguments)||this;a.data=null;return a};
_.z(eTc,_.P);eTc.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
eTc.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
var n2=eTc;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],n2.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],n2.prototype,"data",void 0);n2=_.U([_.Q({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],n2);
_.S(n2,"ytd-channel-warm-welcome-renderer",function(){if(dTc!==void 0)return dTc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return dTc=a},{mode:1});var fTc;var gTc=function(){return _.P.apply(this,arguments)||this};
_.z(gTc,_.P);_.Vm.Object.defineProperties(gTc.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.authorThumbnail)||{}}}});
var o2=gTc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],o2.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],o2.prototype,"data",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],o2.prototype,"thumbnailDetails",null);o2=_.U([_.Q({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],o2);
_.S(o2,"ytd-comment-preview-renderer",function(){if(fTc!==void 0)return fTc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return fTc=a},{mode:1});var hTc;var iTc=function(){return _.P.apply(this,arguments)||this};
_.z(iTc,_.P);iTc.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Vm.Object.defineProperties(iTc.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.submitButton}}});
var p2=iTc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],p2.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],p2.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],p2.prototype,"data",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],p2.prototype,"submitButton",null);p2=_.U([_.Q({is:"ytd-notice-renderer",disableElementRegistration:!0})],p2);
_.S(p2,"ytd-notice-renderer",function(){if(hTc!==void 0)return hTc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return hTc=a},{mode:1});var jTc;var kTc=function(){return _.P.apply(this,arguments)||this};
_.z(kTc,_.P);kTc.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
var q2=kTc;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],q2.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],q2.prototype,"data",void 0);q2=_.U([_.Q({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],q2);
_.S(q2,"ytd-preview-comment-dialog-content",function(){if(jTc!==void 0)return jTc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return jTc=a},{mode:1});var lTc;var mTc=function(){return _.P.apply(this,arguments)||this};
_.z(mTc,_.P);mTc.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
mTc.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
var r2=mTc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],r2.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],r2.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],r2.prototype,"data",void 0);r2=_.U([_.Q({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],r2);
_.S(r2,"ytd-preview-comment-dialog-renderer",function(){if(lTc!==void 0)return lTc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return lTc=a},{mode:1});var nTc;var oTc=_.x("web_button_rework")&&_.Gi("BUTTON_REWORK")||_.x("web_button_rework_with_live"),pTc=function(){var a=_.P.apply(this,arguments)||this;a.selectedAmountIndex=1;a.privacyCheckboxValue=!1;a.useAmsterdamStyle=oTc;a.amountPlaceholderIndex=-1;return a};
_.z(pTc,_.P);_.f=pTc.prototype;_.f.onAmountClick=function(a){this.selectedAmountIndex=_.E(this.hostElement).querySelector("#amounts").indexForElement(a.currentTarget)};
_.f.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.ho(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.f.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.ho(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.ho(this.hostElement,"yt-close-popup-action",[this.is]);var a;(a=_.bu())==null||a.getPlayerPromise().then(function(b){b.pauseVideo()})}};
_.f.donationCallback=function(a){a.success?(this.hostElement.hasAttribute("live-chat")&&a.response&&a.response.data&&a.response.data.actions&&_.ho(this.hostElement,"yt-live-chat-open-popup",[a.response.data.actions[0]]),_.ho(this.hostElement,"yt-close-popup-action",[this.is]),_.ho(this.hostElement,"yt-live-chat-close-buy-flow")):a.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(a.errorMessageRenderer)};
_.f.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.E(this.hostElement).querySelector("#custom-amount-input").focus()};
_.f.updateConfirmationDialogTextWithAmount=function(a){var b=this.getConfirmDialogRuns();b&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(b),"text"],this.getFormattedAmount(a))};
_.f.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.f.getAmountPlaceholderIndex=function(a){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=a.findIndex(function(b){return b.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.f.getFormattedAmount=function(a){var b;return(new _.Op(4,((b=this.data)==null?void 0:b.currencyCode)||"")).format(a)};
_.f.isAmountValid=function(a){if(a==="")return!1;a=Number(a)*1E6;var b=this.get("minAmountMicros",this.data),c=this.get("maxAmountMicros",this.data);return b&&a<b||c&&a>c?!1:!0};
_.f.setInputError=function(){this.shouldShowValidationError?_.E(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.E(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.f.setInitialCheckboxValue=function(){var a;this.privacyCheckboxValue=!((a=this.data)==null||!a.privacyCheckboxInitialState)};
_.f.updateCustomAmountInputFromBinding=function(a){this.customAmountInput=a.detail.value};
_.f.updatePrivacyCheckboxValueFromBinding=function(a){this.privacyCheckboxValue=a.detail.value};
_.Vm.Object.defineProperties(pTc.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var a=this,b,c;return((b=this.data)==null?void 0:(c=b.suggestedAmounts)==null?void 0:c.map(function(d,e){return{buttonRenderer:{style:a.selectedAmountIndex===e?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:d.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 a;return!((a=this.data)==null||!a.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 a=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(a&&this.amountMicros!==null)return Object.assign({},a,{ypcGetCartEndpoint:Object.assign({},a.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 a=this.get("confirmLargeAmount",this.data);if(a&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),a}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var a=this.get("donateButton.buttonRenderer",this.data);if(a)return Object.assign({},a,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
var s2=pTc;s2.prototype.setInitialCheckboxValue=s2.prototype.setInitialCheckboxValue;s2.prototype.setInputError=s2.prototype.setInputError;s2.prototype.setFocusOnCustomAmountInput=s2.prototype.setFocusOnCustomAmountInput;_.U([_.H(GMc),_.W("design:type",Object)],s2.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],s2.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],s2.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],s2.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],s2.prototype,"selectedAmountIndex",void 0);_.U([_.O(),_.W("design:type",String)],s2.prototype,"customAmountInput",void 0);_.U([_.O(),_.W("design:type",Object)],s2.prototype,"privacyCheckboxValue",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],s2.prototype,"useAmsterdamStyle",void 0);_.U([_.N("customAmount"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],s2.prototype,"setFocusOnCustomAmountInput",null);_.U([_.K("data","selectedAmountIndex"),_.W("design:type",Array),_.W("design:paramtypes",[])],s2.prototype,"suggestedAmountButtons",null);
_.U([_.K("data","selectedAmountIndex"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],s2.prototype,"isCustomAmountSelected",null);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],s2.prototype,"showPrivacyCheckbox",null);_.U([_.K("data","selectedAmountIndex","customAmount"),_.W("design:type",Object),_.W("design:paramtypes",[])],s2.prototype,"amountMicros",null);
_.U([_.K("isCustomAmountSelected","customAmountInput"),_.W("design:type",Object),_.W("design:paramtypes",[])],s2.prototype,"customAmount",null);_.U([_.K("customAmount"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],s2.prototype,"shouldShowValidationError",null);_.U([_.K("customAmount"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],s2.prototype,"isDonateButtonEnabled",null);
_.U([_.K("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.W("design:type",Object),_.W("design:paramtypes",[])],s2.prototype,"donateCommand",null);_.U([_.K("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.W("design:type",Object),_.W("design:paramtypes",[])],s2.prototype,"donateCommandWithConfirmation",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],s2.prototype,"largeDonationThreshold",null);
_.U([_.K("customAmount","donateCommand","amountMicros"),_.W("design:type",Object),_.W("design:paramtypes",[])],s2.prototype,"confirmLargeAmountCommand",null);_.U([_.K("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.W("design:type",Object),_.W("design:paramtypes",[])],s2.prototype,"donateButtonRenderer",null);_.U([_.N("shouldShowValidationError"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],s2.prototype,"setInputError",null);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],s2.prototype,"setInitialCheckboxValue",null);s2=_.U([_.Q({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],s2);
_.S(s2,"ytd-donation-amount-picker-renderer",function(){if(nTc!==void 0)return nTc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-amount-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-donation-amount-picker-renderer">\n  <div id="top-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="title-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="title" class="style-scope ytd-donation-amount-picker-renderer">\n        <div class="title-text style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.pickerTitle)]]</div>\n        <yt-icon-button dialog-dismiss="" on-click="onCloseClick" class="style-scope ytd-donation-amount-picker-renderer">\n          <yt-icon icon="yt-icons:dismissal" class="style-scope ytd-donation-amount-picker-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n    </div>\n    <div id="campaign-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-img-shadow object-fit="CONTAIN" thumbnail="[[data.campaignThumbnail]]" class="style-scope ytd-donation-amount-picker-renderer">\n      </yt-img-shadow>\n      <div id="text-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="campaign-title" class="style-scope ytd-donation-amount-picker-renderer">\n          [[getSimpleString(data.campaignTitle)]]\n        </div>\n        <div id="campaign-subtitle" class="style-scope ytd-donation-amount-picker-renderer">\n          [[getSimpleString(data.campaignSubtitle)]]\n        </div>\n        <div id="description-column" class="style-scope ytd-donation-amount-picker-renderer">\n          <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n          <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">\n            [[getSimpleString(data.campaignDescription)]]\n          </div>\n        </div>\n      </div>\n    </div>\n    <div id="live-chat-description-column" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">\n        [[getSimpleString(data.campaignDescription)]]\n      </div>\n      <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n    </div>\n  </div>\n  <div id="bottom-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="nonprofit-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="nonprofit-title" class="style-scope ytd-donation-amount-picker-renderer">\n          [[getSimpleString(data.nonprofitTitle)]]\n          <yt-icon id="verified-icon" class="inline-icon style-scope ytd-donation-amount-picker-renderer" icon="check_circle" default-to-filled="true">\n          </yt-icon>\n        </div>\n        <yt-formatted-string id="nonprofit-subtitle" text="[[data.nonprofitSubtitle]]" class="style-scope ytd-donation-amount-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div id="amount-selector" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="suggested-amount-buttons-row" class="style-scope ytd-donation-amount-picker-renderer">\n        <template id="amounts" is="dom-repeat" items="[[suggestedAmountButtons]]" class="style-scope ytd-donation-amount-picker-renderer">\n          <ytd-button-renderer class="suggested-amount style-scope ytd-donation-amount-picker-renderer" data="[[item.buttonRenderer]]" on-click="onAmountClick"></ytd-button-renderer>\n        </template>\n      </div>\n      <div id="custom-amount-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <tp-yt-paper-input id="custom-amount-input" allowed-pattern="[0-9]" always-float-label="" error-message="[[getSimpleString(data.amountError)]]" hidden="[[!isCustomAmountSelected]]" label="[[getSimpleString(data.customAmountLabel)]]" use-v2-underline="" value="[[customAmountInput]]" on-value-changed="updateCustomAmountInputFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n          <div prefix="" slot="prefix" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.currencySymbol)]]\u00a0</div>\n        </tp-yt-paper-input>\n      </div>\n    </div>\n\n    <tp-yt-paper-checkbox id="privacy-checkbox" checked="[[privacyCheckboxValue]]" hidden="[[!showPrivacyCheckbox]]" on-checked-changed="updatePrivacyCheckboxValueFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-formatted-string split-lines="" text="[[data.privacyCheckboxText]]" class="style-scope ytd-donation-amount-picker-renderer">\n      </yt-formatted-string>\n    </tp-yt-paper-checkbox>\n\n    <div id="button-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <ytd-button-renderer data="[[donateButtonRenderer]]" on-click="onDonateButtonClick" class="style-scope ytd-donation-amount-picker-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return nTc=a},{mode:1});var qTc;var rTc=function(){return _.P.apply(this,arguments)||this};
_.z(rTc,_.P);var t2=rTc;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],t2.prototype,"ytComponentBehavior",void 0);_.U([_.O({}),_.W("design:type",Object)],t2.prototype,"data",void 0);t2=_.U([_.Q({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],t2);
_.S(t2,"ytd-donation-post-transaction-content",function(){if(qTc!==void 0)return qTc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return qTc=a},{mode:1});var sTc;var tTc=function(){return _.P.apply(this,arguments)||this};
_.z(tTc,_.P);tTc.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
var u2=tTc;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],u2.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],u2.prototype,"ytRendererBehavior",void 0);_.U([_.O({}),_.W("design:type",Object)],u2.prototype,"data",void 0);u2=_.U([_.Q({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],u2);
_.S(u2,"ytd-donation-post-transaction-renderer",function(){if(sTc!==void 0)return sTc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return sTc=a},{mode:1});var uTc;var vTc;var wTc=function(){return _.P.apply(this,arguments)||this};
_.z(wTc,_.P);wTc.prototype.computeIsStreamingProvider=function(a){return!!a.isStreamingShelf};
wTc.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
var v2=wTc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],v2.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],v2.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],v2.prototype,"data",void 0);_.U([_.O({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],v2.prototype,"isStreamingProvider",void 0);
v2=_.U([_.Q({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],v2);
_.S(v2,"ytd-media-provider-renderer",function(){if(vTc!==void 0)return vTc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return vTc=a},{mode:1});var xTc;var yTc=function(){return _.P.apply(this,arguments)||this};
_.z(yTc,_.P);yTc.prototype.observeLightsourcePalette=function(){var a,b=(a=this.data)==null?void 0:a.vibrantsourceColorPaletteData;b&&_.Gt(this.hostElement,b)};
var w2=yTc;w2.prototype.observeLightsourcePalette=w2.prototype.observeLightsourcePalette;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],w2.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],w2.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],w2.prototype,"data",void 0);
_.U([_.N("data.vibrantsourceColorPaletteData"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],w2.prototype,"observeLightsourcePalette",null);w2=_.U([_.Q({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],w2);
_.S(w2,"ytd-streaming-pop-up-dialog",function(){if(xTc!==void 0)return xTc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return xTc=a},{mode:1});var x2=function(){return _.P.apply(this,arguments)||this};
_.z(x2,_.P);x2.prototype.onPopupOpened_=function(){var a;if((a=this.data)==null?0:a.serviceEndpoint)_.x("web_ytd_brandconnect_popup_renderer_command_resolver_ks")?_.mo(this.hostElement,[this.data.serviceEndpoint]):_.v().resolve(_.Xi).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
x2.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
x2.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.content":{id:"content",mapping:{streamingPopUpDialog:{component:"ytd-streaming-pop-up-dialog"}}}}};
var y2=x2;y2.prototype.onPopupOpened_=y2.prototype.onPopupOpened_;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],y2.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],y2.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.RM),_.W("design:type",Object)],y2.prototype,"ytContinuationHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],y2.prototype,"data",void 0);
_.U([_.M("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],y2.prototype,"onPopupOpened_",null);y2=_.U([_.Q({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],y2);
_.S(y2,"ytd-brandconnect-popup-renderer",function(){if(uTc!==void 0)return uTc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return uTc=a},{mode:1});var zTc;var ATc=function(){return _.P.apply(this,arguments)||this};
_.z(ATc,_.P);_.f=ATc.prototype;_.f.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.f.dataChanged=function(){for(var a=0;a<this.getOptionRenderers().length;a++)this.notifyPath("data.options."+a+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+a+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.f.updateSubmitButton=function(a){this.set("data.submitButton.buttonRenderer.isDisabled",!a)};
_.f.computeAlt=function(a){return _.Vp(a)};
_.f.onDismissTap=function(){_.ho(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.v().resolve(_.Xi).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.f.getOptionRenderers=function(a){return(a=a||this.data)&&a.options?a.options.reduce(function(b,c){c.checkboxSurveyOptionRenderer&&b.push(c.checkboxSurveyOptionRenderer);return b},[]):[]};
_.f.onOptionChange=function(a){var b=this,c=!1;if(a.detail.checked)for(var d=this.getOptionRenderers().find(function(m){return m.value===a.detail.value}),e=this.getOptionRenderers(),g=0;g<e.length;g++){var k=e[g];
this.notifyPath("data.options."+g+".checkboxSurveyOptionRenderer.checked");k.checked&&((d==null?0:d.isExclusiveOption)?!k.isExclusiveOption:k.isExclusiveOption)?this.set("data.options."+g+".checkboxSurveyOptionRenderer.checked",!1):k.checked&&(c=!0)}else c=this.getOptionRenderers().some(function(m,n){b.notifyPath("data.options."+n+".checkboxSurveyOptionRenderer.checked");return m.checked});
this.updateSubmitButton(c)};
_.f.onSubmitTap=function(){var a=this.getOptionRenderers().filter(function(g){return g.checked});
if(a.length!==0){var b=a.map(function(g){return g.responseEndpoint});
a=[];for(var c=1;c<b.length;c++){var d=void 0,e=(d=_.y(b[c],_.Pw))==null?void 0:d.feedbackToken;e&&a.push(e)}b=[b[0]];a.length&&b.push({extra_feedback_tokens:a});_.mo(this.hostElement,b);_.ho(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);a=this.data&&this.data.submitActions||[];if(_.x("kevlar_command_handler_migration_killswitch"))_.no(this.hostElement,a,this.hostElement);else for(a=_.h(a),b=a.next();!b.done;b=a.next())this.ytComponentBehavior.resolveCommand(b.value)}};
var z2=ATc;z2.prototype.onOptionChange=z2.prototype.onOptionChange;z2.prototype.dataChanged=z2.prototype.dataChanged;_.U([_.H(_.CK.YtEventForwardingBehavior),_.W("design:type",Object)],z2.prototype,"ytEventForwardingBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],z2.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],z2.prototype,"ytComponentBehavior",void 0);
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],z2.prototype,"ytRendererBehavior",void 0);_.U([_.H($Mc),_.W("design:type",Object)],z2.prototype,"ytdHatsSurveyBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],z2.prototype,"data",void 0);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],z2.prototype,"dataChanged",null);
_.U([_.M("ytd-checkbox-survey-option-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],z2.prototype,"onOptionChange",null);z2=_.U([_.Q({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],z2);
_.S(z2,"ytd-checkbox-survey-renderer",function(){if(zTc!==void 0)return zTc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return zTc=a},{mode:1});var BTc;var CTc;var DTc=function(){return _.P.apply(this,arguments)||this};
_.z(DTc,_.P);var A2=DTc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],A2.prototype,"ytRendererBehavior",void 0);_.U([_.H(ZMc),_.W("design:type",Object)],A2.prototype,"ytdDismissalReasonBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],A2.prototype,"data",void 0);A2=_.U([_.Q({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],A2);
_.S(A2,"ytd-dismissal-reason-text-renderer",function(){if(CTc!==void 0)return CTc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return CTc=a},{mode:1});var ETc;var FTc=function(){return _.P.apply(this,arguments)||this};
_.z(FTc,_.P);var B2=FTc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],B2.prototype,"ytRendererBehavior",void 0);_.U([_.H(ZMc),_.W("design:type",Object)],B2.prototype,"ytdDismissalReasonBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],B2.prototype,"data",void 0);B2=_.U([_.Q({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],B2);
_.S(B2,"ytd-dismissal-reason-video-renderer",function(){if(ETc!==void 0)return ETc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return ETc=a},{mode:1});var GTc=function(){var a=_.P.apply(this,arguments)||this;a.darkerDarkTheme=_.x("web_darker_dark_theme");return a};
_.z(GTc,_.P);_.f=GTc.prototype;_.f.created=function(){this.selectedFeedbackTokens=new X_};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.f.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.f.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.f.onDismissalReasonSelected=function(a,b){_.go(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(b);this.hasReasonsSelected=!0};
_.f.onDismissalReasonDeselected=function(a,b){_.go(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(b);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.f.onCancelTap=function(){_.ho(this.hostElement,"yt-close-popup-action")};
_.f.onSubmitTap=function(){var a={feedback_tokens:Array.from(this.selectedFeedbackTokens.values())};_.mo(this.hostElement,[this.data.submitFeedbackEndpoint,a]);_.ho(this.hostElement,"yt-close-popup-action")};
var C2=GTc;C2.prototype.onDismissalReasonDeselected=C2.prototype.onDismissalReasonDeselected;C2.prototype.onDismissalReasonSelected=C2.prototype.onDismissalReasonSelected;C2.prototype.dataChanged=C2.prototype.dataChanged;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],C2.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],C2.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],C2.prototype,"data",void 0);
_.U([_.O(),_.W("design:type",Boolean)],C2.prototype,"hasReasonsSelected",void 0);_.U([_.O(),_.W("design:type",X_)],C2.prototype,"selectedFeedbackTokens",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],C2.prototype,"darkerDarkTheme",void 0);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],C2.prototype,"dataChanged",null);
_.U([_.M("yt-dismissal-reason-selected"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,String]),_.W("design:returntype")],C2.prototype,"onDismissalReasonSelected",null);_.U([_.M("yt-dismissal-reason-deselected"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,String]),_.W("design:returntype")],C2.prototype,"onDismissalReasonDeselected",null);C2=_.U([_.Q({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],C2);
_.S(C2,"ytd-dismissal-follow-up-renderer",function(){if(BTc!==void 0)return BTc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return BTc=a},{mode:1});var HTc;var ITc=function(){return _.P.apply(this,arguments)||this};
_.z(ITc,_.P);_.f=ITc.prototype;_.f.onCheckedChange=function(){this.multiselect||_.go(this.hostElement,"yt-feedback-single-select-changed");_.E(this.hostElement).querySelector("#freeform").focus();_.go(this.hostElement,"yt-refit")};
_.f.showTextBox=function(a,b){return a&&b};
_.f.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))};
_.f.updateDataCheckedFromBinding=function(a){this.set("data.checked",a.detail.value)};
_.f.updateDataResultTextFromBinding=function(a){this.set("data.resultText",a.detail.value)};
var D2=ITc;D2.prototype.dataChanged=D2.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],D2.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],D2.prototype,"data",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],D2.prototype,"multiselect",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D2.prototype,"dataChanged",null);
D2=_.U([_.Q({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],D2);
_.S(D2,"ytd-feedback-option-renderer",function(){if(HTc!==void 0)return HTc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return HTc=a},{mode:1});var JTc;var KTc=function(){return _.P.apply(this,arguments)||this};
_.z(KTc,_.P);KTc.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
KTc.prototype.onSingleSelectCheckedChanged=function(a){a=_.Qq(a);for(var b=0;b<this.data.options.length;b++)if(a.data!==_.y(this.data.options[b],VJc)){var c="data.options."+b+".feedbackOptionRenderer.checked";this.notifyPath(c);this.set(c,!1)}};
var E2=KTc;E2.prototype.onSingleSelectCheckedChanged=E2.prototype.onSingleSelectCheckedChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],E2.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],E2.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],E2.prototype,"data",void 0);
_.U([_.M("yt-feedback-single-select-changed"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],E2.prototype,"onSingleSelectCheckedChanged",null);E2=_.U([_.Q({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],E2);
_.S(E2,"ytd-feedback-question-renderer",function(){if(JTc!==void 0)return JTc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return JTc=a},{mode:1});var LTc;var F2=function(){return _.P.apply(this,arguments)||this};
_.z(F2,_.P);F2.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
F2.prototype.getSelectedFeedbackResults=function(){for(var a={},b=0;b<this.data.questions.length;b++)for(var c=_.y(this.data.questions[b],UJc),d=0;d<c.options.length;d++){var e=_.y(c.options[d],VJc);e&&e.checked&&(a[e.optionKey]=e.resultText)}return a};
F2.prototype.onKeyUp=function(){var a=this;_.at(_.zk,function(){_.go(a.hostElement,"yt-refit")});
_.zk.start()};
F2.prototype.submitSurvey=function(){var a=this.getSelectedFeedbackResults();Object.keys(a).length>0&&_.mo(this.hostElement,[this.data.submitFeedbackEndpoint,{survey_results:a,is_feedback_token_unencrypted:!0}])};
var G2=F2;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],G2.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],G2.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],G2.prototype,"data",void 0);G2=_.U([_.Q({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],G2);
_.S(G2,"ytd-feedback-survey-renderer",function(){if(LTc!==void 0)return LTc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return LTc=a},{mode:1});var MTc;var NTc;var H2=function(){return _.P.apply(this,arguments)||this};
_.z(H2,_.P);H2.prototype.computeAlt=function(a){return _.Vp(a)};
H2.prototype.submitResponse=function(){var a,b;(a=this.data)!=null&&a.feedbackToken&&((b=this.data)==null?void 0:b.nextStageIndex)!==void 0&&(_.ko(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.ko(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
H2.prototype.onClick=function(){this.submitResponse()};
var I2=H2;I2.prototype.onClick=I2.prototype.onClick;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],I2.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],I2.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],I2.prototype,"vertical",void 0);_.U([_.M("click"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],I2.prototype,"onClick",null);
I2=_.U([_.Q({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],I2);
_.S(I2,"ytd-single-select-answer-option-renderer",function(){if(NTc!==void 0)return NTc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return NTc=a},{mode:1});var OTc;var J2=function(){var a=_.P.apply(this,arguments)||this;a.darkerDarkTheme=_.x("web_darker_dark_theme");a.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return a};
_.z(J2,_.P);J2.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
J2.prototype.dataChanged=function(){var a,b;this.vertical=((b=(a=this.data)==null?void 0:a.answerOrientation)!=null?b:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
J2.prototype.submitFeedback=function(a){var b;((b=this.data)==null?0:b.responseEndpoint)&&a&&_.mo(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[a]}])};
var K2=J2;K2.prototype.dataChanged=K2.prototype.dataChanged;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],K2.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.CK.YtEventForwardingBehavior),_.W("design:type",Object)],K2.prototype,"eventForwardingBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],K2.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],K2.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],K2.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],K2.prototype,"vertical",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],K2.prototype,"darkerDarkTheme",void 0);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],K2.prototype,"dataChanged",null);K2=_.U([_.Q({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],K2);
_.S(K2,"ytd-single-select-question-renderer",function(){if(OTc!==void 0)return OTc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return OTc=a},{mode:1});var PTc=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return a};
_.z(PTc,_.P);_.f=PTc.prototype;_.f.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"}}}};
_.f.dataChanged=function(){this.jumpToStage(0)};
_.f.jumpToStage=function(a){var b,c;if((b=this.data)==null?0:(c=b.stages)==null?0:c[a])this.currentStage=this.data.stages[a],this.refitAfterRender()};
_.f.computeAlt=function(a){return _.Vp(a)};
_.f.computeSimpleMessage=function(a){var b;return(b=_.y(a,YJc))==null?void 0:b.messageText};
_.f.computeHideDismiss=function(a){var b;return(b=_.y(a,xJc))==null?void 0:b.hideParentDismissButton};
_.f.onDismissTap=function(){_.ho(this.hostElement,"yt-close-popup-action");_.y(this.currentStage,YJc)||this.data.dismissalEndpoint&&(_.x("web_ytd_multi_stage_survey_renderer_command_resolver_ks")?_.mo(this.hostElement,[this.data.dismissalEndpoint]):_.v().resolve(_.Xi).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}}))};
_.f.refitAfterRender=function(){var a=this;_.Tm(this,function(){_.go(a.hostElement,"yt-refit")})};
var L2=PTc;L2.prototype.dataChanged=L2.prototype.dataChanged;_.U([_.H(_.CK.YtEventForwardingBehavior),_.W("design:type",Object)],L2.prototype,"eventForwardingBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],L2.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],L2.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],L2.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.H($Mc),_.W("design:type",Object)],L2.prototype,"ytdHatsSurveyBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],L2.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],L2.prototype,"currentStage",void 0);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],L2.prototype,"dataChanged",null);L2=_.U([_.Q({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],L2);
_.S(L2,"ytd-multi-stage-survey-renderer",function(){if(MTc!==void 0)return MTc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return MTc=a},{mode:1});var QTc;var M2=function(){return _.P.apply(this,arguments)||this};
_.z(M2,_.P);M2.prototype.computeAlt=function(a){return _.Vp(a)};
M2.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.v().resolve(_.Xi).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.ho(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.Emc(!1)))};
M2.prototype.onTap=function(){this.vertical&&this.submitResponse()};
var N2=M2;N2.prototype.onTap=N2.prototype.onTap;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],N2.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],N2.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],N2.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],N2.prototype,"vertical",void 0);
_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],N2.prototype,"onTap",null);N2=_.U([_.Q({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],N2);
_.S(N2,"ytd-single-option-survey-option-renderer",function(){if(QTc!==void 0)return QTc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return QTc=a},{mode:1});var RTc;var STc=function(){return _.P.apply(this,arguments)||this};
_.z(STc,_.P);_.f=STc.prototype;_.f.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.f.dataChanged=function(){var a,b;this.vertical=(((a=this.data)==null?void 0:(b=a.surveyOrientation)==null?void 0:b.type)||"HORIZONTAL")==="VERTICAL"};
_.f.computeAlt=function(a){return _.Vp(a)};
_.f.onDismissTap=function(){_.ho(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.v().resolve(_.Xi).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.Emc(!1))};
var O2=STc;O2.prototype.dataChanged=O2.prototype.dataChanged;_.U([_.H(_.CK.YtEventForwardingBehavior),_.W("design:type",Object)],O2.prototype,"eventForwardingBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],O2.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],O2.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H($Mc),_.W("design:type",Object)],O2.prototype,"ytdHatsSurveyBehavior",void 0);
_.U([_.H(_.LI),_.W("design:type",Object)],O2.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],O2.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],O2.prototype,"vertical",void 0);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],O2.prototype,"dataChanged",null);O2=_.U([_.Q({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],O2);
_.S(O2,"ytd-single-option-survey-renderer",function(){if(RTc!==void 0)return RTc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return RTc=a},{mode:1});var TTc;var P2=function(){var a=_.P.apply(this,arguments)||this;a.darkerDarkTheme=_.x("web_darker_dark_theme");return a};
_.z(P2,_.P);P2.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
P2.prototype.onDismissTap=function(){_.ho(this.hostElement,"yt-close-popup-action")};
P2.prototype.onNavigate=function(){_.ho(this.hostElement,"yt-close-popup-action")};
var Q2=P2;Q2.prototype.onNavigate=Q2.prototype.onNavigate;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],Q2.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.CK.YtEventForwardingBehavior),_.W("design:type",Object)],Q2.prototype,"ytEventForwardingBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],Q2.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],Q2.prototype,"darkerDarkTheme",void 0);
_.U([_.M("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Q2.prototype,"onNavigate",null);Q2=_.U([_.Q({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],Q2);
_.S(Q2,"ytd-survey-follow-up-renderer",function(){if(TTc!==void 0)return TTc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return TTc=a},{mode:1});var UTc;var VTc;var WTc;var XTc=function(){var a=_.P.apply(this,arguments)||this;a.polymer2="Element"in Polymer;return a};
_.z(XTc,_.P);_.f=XTc.prototype;_.f.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.f.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.f.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.f.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.TH("minutes-changed",this.minutes))};
_.f.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.TH("seconds-changed",this.seconds))};
_.f.updateMinutesFromBinding=function(a){this.minutes=a.detail.value};
_.f.updateSecondsFromBinding=function(a){this.seconds=a.detail.value};
var R2=XTc;R2.prototype.secondsChangedForBinding=R2.prototype.secondsChangedForBinding;R2.prototype.minutesChangedForBinding=R2.prototype.minutesChangedForBinding;R2.prototype.secondsChanged=R2.prototype.secondsChanged;_.U([_.O(),_.W("design:type",String)],R2.prototype,"minutes",void 0);_.U([_.O(),_.W("design:type",String)],R2.prototype,"seconds",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],R2.prototype,"polymer2",void 0);
_.U([_.gr("#seconds"),_.W("design:type",Object)],R2.prototype,"secondsEl",void 0);_.U([_.N("seconds"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],R2.prototype,"secondsChanged",null);_.U([_.N("minutes"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],R2.prototype,"minutesChangedForBinding",null);
_.U([_.N("seconds"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],R2.prototype,"secondsChangedForBinding",null);R2=_.U([_.ur({is:"yt-timestamp-input",disableElementRegistration:!0})],R2);
_.S(R2,"yt-timestamp-input",function(){if(WTc===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;VTc===void 0&&(VTc=document.createElement("template"));var d=VTc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);WTc=a}a=WTc;return a},{mode:2});var YTc=function(){return _.P.apply(this,arguments)||this};
_.z(YTc,_.P);_.f=YTc.prototype;_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$17916_scroller.dialogElement=this.hostElement.parentNode};
_.f.dataChanged=function(){var a=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.cu().getPlayerPromise().then(function(b){b=b.getCurrentTime();a.minutes=Math.floor(b/60).toString();a.seconds=(Math.floor(b)%60).toString()})};
_.f.onTapSubmit=function(a){a.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(a={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(a.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(a.minutes=this.minutes,a.seconds=this.seconds),_.x("web_ytd_legal_report_details_form_renderer_command_resolver_ks")?_.mo(this.hostElement,[this.serviceEndpoint,a]):_.v().resolve(_.Xi).resolveCommand(this.serviceEndpoint,
{form:Object.assign({},a,{element:this.hostElement})}))};
_.f.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.f.onYtServiceRequestCompleted=function(a,b){b=b.actions;if(Array.isArray(b))for(var c=0,d=b.length;c<d;c++)_.y(b[c],_.GE)&&(a.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(b[c]))};
_.f.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.f.toggleSubmitButton=function(a){this.set("submitButton.isDisabled",!a)};
_.f.handleInput=function(){var a=this.issueType,b=this.affiliation,c=this.minutes,d=this.seconds;c=!this.showTimestamp||!!c&&!!d;this.toggleSubmitButton(!!this.descriptionText&&!!a&&!!b&&c)};
_.f.computeServiceEndpoint=function(a){return this.get("submitButton.buttonRenderer.serviceEndpoint",a)};
_.f.computeSubmitButton=function(a){(a=this.get("submitButton.buttonRenderer",a))&&(a=Object.assign({},a,{serviceEndpoint:void 0}));return a};
_.f.computeShowTimestamp=function(a){return!!a};
_.f.onValueChangedForIssueType=function(a){this.issueType=a.detail.value};
_.f.onValueChangedForAffiliation=function(a){this.affiliation=a.detail.value};
_.f.updateDescriptionTextFromBinding=function(a){this.descriptionText=a.detail.value};
_.f.updateFullNameTextFromBinding=function(a){this.fullNameText=a.detail.value};
_.f.updateMinutesFromBinding=function(a){this.minutes=a.detail.value};
_.f.updateSecondsFromBinding=function(a){this.seconds=a.detail.value};
var S2=YTc;S2.prototype.handleInput=S2.prototype.handleInput;S2.prototype.onYtServiceRequestError=S2.prototype.onYtServiceRequestError;S2.prototype.onYtServiceRequestCompleted=S2.prototype.onYtServiceRequestCompleted;S2.prototype.onYtServiceRequestSent=S2.prototype.onYtServiceRequestSent;S2.prototype.dataChanged=S2.prototype.dataChanged;_.U([_.H(_.mH.YtOpenPopupBehavior),_.W("design:type",Object)],S2.prototype,"ytOpenPopupBehavior",void 0);
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],S2.prototype,"ytRendererBehavior",void 0);_.U([_.gr("#scroller"),_.W("design:type",Object)],S2.prototype,"JSC$17916_scroller",void 0);_.U([_.gr("#description"),_.W("design:type",HTMLInputElement)],S2.prototype,"description",void 0);_.U([_.gr("#full-name"),_.W("design:type",Object)],S2.prototype,"fullName",void 0);_.U([_.O(),_.W("design:type",Object)],S2.prototype,"data",void 0);
_.U([_.O({computed:"computeShowTimestamp(data.timestampLabel)"}),_.W("design:type",Boolean)],S2.prototype,"showTimestamp",void 0);_.U([_.O({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.W("design:type",Object)],S2.prototype,"serviceEndpoint",void 0);_.U([_.O({computed:"computeSubmitButton(data)"}),_.W("design:type",Object)],S2.prototype,"submitButton",void 0);_.U([_.O(),_.W("design:type",String)],S2.prototype,"descriptionText",void 0);
_.U([_.O(),_.W("design:type",Number)],S2.prototype,"issueType",void 0);_.U([_.O(),_.W("design:type",Number)],S2.prototype,"affiliation",void 0);_.U([_.O(),_.W("design:type",String)],S2.prototype,"fullNameText",void 0);_.U([_.O(),_.W("design:type",String)],S2.prototype,"minutes",void 0);_.U([_.O(),_.W("design:type",String)],S2.prototype,"seconds",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],S2.prototype,"dataChanged",null);
_.U([_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Ot]),_.W("design:returntype")],S2.prototype,"onYtServiceRequestSent",null);_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Wt]),_.W("design:returntype")],S2.prototype,"onYtServiceRequestCompleted",null);
_.U([_.M("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],S2.prototype,"onYtServiceRequestError",null);_.U([_.N("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],S2.prototype,"handleInput",null);S2=_.U([_.Q({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],S2);
_.S(S2,"ytd-legal-report-details-form-renderer",function(){if(UTc!==void 0)return UTc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return UTc=a},{mode:1});var ZTc;var T2=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return a};
_.z(T2,_.P);T2.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
T2.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var a=this.formRenderer.getForm();a&&this.data.submitEndpoint&&(_.x("web_ytd_form_popup_content_command_resolver_ks")?_.mo(this.hostElement,[this.data.submitEndpoint,a]):_.v().resolve(_.Xi).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},a,{element:this.hostElement})}),_.ho(this.hostElement,"yt-close-popup-action"))}};
T2.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.ho(this.hostElement,"yt-close-popup-action"))};
T2.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
var U2=T2;U2.prototype.onPopupClosed=U2.prototype.onPopupClosed;_.U([_.H(_.CK.YtEventForwardingBehavior),_.W("design:type",Object)],U2.prototype,"ytEventForwardingBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],U2.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],U2.prototype,"ytActionHandlerBehavior",void 0);
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],U2.prototype,"ytRendererBehavior",void 0);_.U([_.gr("yt-form-renderer"),_.W("design:type",Object)],U2.prototype,"formRenderer",void 0);_.U([_.O(),_.W("design:type",Object)],U2.prototype,"data",void 0);_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],U2.prototype,"onPopupClosed",null);U2=_.U([_.Q({is:"ytd-form-popup-content",disableElementRegistration:!0})],U2);
_.S(U2,"ytd-form-popup-content",function(){if(ZTc!==void 0)return ZTc;var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return ZTc=a},{mode:1});var $Tc;var V2=function(){return _.P.apply(this,arguments)||this};
_.z(V2,_.P);V2.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
V2.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
V2.prototype.onPopupOpened=function(){_.go(this.hostElement,"yt-invalidate-popup-tabbables")};
V2.prototype.onYtServiceRequestCompleted=function(a,b){b.data&&b.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.go(this.hostElement,"yt-invalidate-popup-tabbables"))};
var W2=V2;W2.prototype.onYtServiceRequestCompleted=W2.prototype.onYtServiceRequestCompleted;W2.prototype.onPopupOpened=W2.prototype.onPopupOpened;_.U([_.H(_.CK.YtEventForwardingBehavior),_.W("design:type",Object)],W2.prototype,"ytEventForwardingBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],W2.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],W2.prototype,"ytRendererBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],W2.prototype,"data",void 0);_.U([_.M("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],W2.prototype,"onPopupOpened",null);_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Wt]),_.W("design:returntype")],W2.prototype,"onYtServiceRequestCompleted",null);W2=_.U([_.Q({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],W2);
_.S(W2,"ytd-form-popup-renderer",function(){if($Tc!==void 0)return $Tc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return $Tc=a},{mode:1});var aUc;var bUc=function(){var a=_.P.apply(this,arguments)||this;a.isLoading=!1;return a};
_.z(bUc,_.P);_.f=bUc.prototype;_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");Nsc(this.hostElement)};
_.f.onYtServiceRequestSent=function(){this.isLoading=!0};
_.f.onYtServiceRequestCompleted=function(){_.ho(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.f.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.no(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.f.closePopupHandler=function(){this.fireOnCloseActions()};
_.f.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var a=this.get("data.headerImage.thumbnails");a&&(a=_.Xs(a,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+a+")")}};
_.f.onYtNavigate=function(a){(a=_.Qq(a))&&a.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
var X2=bUc;X2.prototype.onYtNavigate=X2.prototype.onYtNavigate;X2.prototype.onHeaderImageChanged=X2.prototype.onHeaderImageChanged;X2.prototype.closePopupHandler=X2.prototype.closePopupHandler;X2.prototype.onYtServiceRequestCompleted=X2.prototype.onYtServiceRequestCompleted;X2.prototype.onYtServiceRequestSent=X2.prototype.onYtServiceRequestSent;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],X2.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.CK.YtEventForwardingBehavior),_.W("design:type",Object)],X2.prototype,"ytEventForwardingBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],X2.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],X2.prototype,"isLoading",void 0);_.U([_.gr("#header"),_.W("design:type",HTMLDivElement)],X2.prototype,"header",void 0);_.U([_.gr("#confirm-button"),_.W("design:type",_.tH)],X2.prototype,"confirmButton",void 0);
_.U([_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],X2.prototype,"onYtServiceRequestSent",null);_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],X2.prototype,"onYtServiceRequestCompleted",null);
_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],X2.prototype,"closePopupHandler",null);_.U([_.N("data.headerImage"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],X2.prototype,"onHeaderImageChanged",null);_.U([_.M("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],X2.prototype,"onYtNavigate",null);
X2=_.U([_.Q({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],X2);
_.S(X2,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(aUc!==void 0)return aUc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return aUc=a},{mode:1});var cUc;var dUc=function(){var a=_.P.apply(this,arguments)||this;a.isLoading=!1;return a};
_.z(dUc,_.P);_.f=dUc.prototype;_.f.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"}}}};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);Nsc(this.hostElement)};
_.f.onYtServiceRequestCompleted=function(){_.ho(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.f.onYtServiceRequestError=function(a){_.KW(this.hostElement,a.detail.error.message)};
_.f.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.f.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.ho(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.f.onDataChanged=function(){this.isLoading=!1;var a=this.get("data.headerImage.thumbnails");a&&(a=_.Xs(a,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+a+")");a=_.Fn();var b=_.En(),c=this.get("data.trackingParams");c&&b&&a&&_.Ro(a,b,_.qs(c))};
_.Vm.Object.defineProperties(dUc.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
var Y2=dUc;Y2.prototype.onDataChanged=Y2.prototype.onDataChanged;Y2.prototype.onDomChange=Y2.prototype.onDomChange;Y2.prototype.onYtServiceRequestError=Y2.prototype.onYtServiceRequestError;Y2.prototype.onYtServiceRequestCompleted=Y2.prototype.onYtServiceRequestCompleted;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],Y2.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],Y2.prototype,"ytRendererBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],Y2.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],Y2.prototype,"isLoading",void 0);_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Y2.prototype,"hasDescription",null);_.U([_.gr("tp-yt-paper-dialog-scrollable"),_.W("design:type",Object)],Y2.prototype,"scrollable",void 0);_.U([_.gr("#header"),_.W("design:type",HTMLElement)],Y2.prototype,"header",void 0);
_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Y2.prototype,"onYtServiceRequestCompleted",null);_.U([_.M("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Y2.prototype,"onYtServiceRequestError",null);
_.U([_.M("dom-change"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Y2.prototype,"onDomChange",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Y2.prototype,"onDataChanged",null);Y2=_.U([_.Q({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],Y2);
_.S(Y2,"ytd-gaming-account-link-setting-renderer",function(){if(cUc!==void 0)return cUc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return cUc=a},{mode:1});var eUc;var fUc;var gUc=function(){var a=_.P.apply(this,arguments)||this;a.isHeader=!1;a.getEndpointForm=Hxc;return a};
_.z(gUc,_.P);_.f=gUc.prototype;_.f.triggerHintActions=function(){var a=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var b=_.ko(a.hostElement,"yt-get-opened-popups-action");!(b&&b.length===1?b[0]:[]).some(function(c){c=c.openPopupAction.popupType;return c==="SURVEY"||c==="MEALBAR"||c==="HINT"})&&a.data.hintActions&&a.guideOpened&&(_.no(a.hostElement,a.data.hintActions,a.hostElement),a.data.hintActions=void 0)})};
_.f.getBadgeIconType=function(a){return a&&a.liveBroadcasting?"live":null};
_.f.onDown=function(){this.interaction.triggerDown()};
_.f.onUp=function(){this.interaction.triggerUp()};
_.f.onTap=function(a){if(this.data.serviceEndpoint){var b;_.x("shorts_controller_retrieve_seedless_sequence_v2")&&((b=_.y(this.data.serviceEndpoint,_.tq))==null?void 0:b.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):Gxc(this.data.serviceEndpoint,this);a.preventDefault()}else this.data.navigationEndpoint&&!_.Xt(_.Pq(a),this.hostElement,["A".toString()])&&_.go(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.f.computeActive=function(a,b){if(!a)return!1;var c=a.navigationEndpoint;a=a.serviceEndpoint;if(!c&&!a||!b)return!1;if(c){a=(a=rY(b))&&["subscriptions","filteredsubscriptions"].includes(a);if(_.y(c,_.pq)&&_.y(b,_.pq)&&!a){var d=_.y(c,_.pq).browseId;b=_.y(b,_.pq).browseId;return d!==void 0&&b!==void 0&&(d===b||d==="VLWL"&&b==="FEwatch_later"||d==="FEwatch_later"&&b==="VLWL")}var e;c=(e=_.y(c.commandMetadata,_.ao))==null?void 0:e.url;b=(d=_.y(b.commandMetadata,_.ao))==null?void 0:d.url;return!(!c||
!b||c!==b&&c!==_.gj(b))}return this.isActiveShortsTab(a,b)};
_.f.isActiveShortsTab=function(a,b){b=!!_.y(b,_.tq)||!!_.y(b,_.ME);return(!!_.y(a,_.tq)||!!_.y(a,_.ME))&&b};
_.f.computeIsPrimary=function(a){return!!a};
_.Vm.Object.defineProperties(gUc.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 a=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&a)return a}}});
var Z2=gUc;Z2.prototype.onTap=Z2.prototype.onTap;Z2.prototype.onUp=Z2.prototype.onUp;Z2.prototype.onDown=Z2.prototype.onDown;Z2.prototype.triggerHintActions=Z2.prototype.triggerHintActions;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],Z2.prototype,"componentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],Z2.prototype,"rendererBehavior",void 0);_.U([_.H(_.XG.YtTaskEmitterBehavior),_.W("design:type",Object)],Z2.prototype,"taskEmitterBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],Z2.prototype,"activeEndpoint",void 0);_.U([_.O(),_.W("design:type",Object)],Z2.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Boolean)],Z2.prototype,"guideOpened",void 0);_.U([_.O(),_.W("design:type",String)],Z2.prototype,"type",void 0);_.U([_.gr("yt-interaction"),_.W("design:type",Object)],Z2.prototype,"interaction",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],Z2.prototype,"isHeader",void 0);
_.U([_.O({reflectToAttribute:!0}),_.K("data","activeEndpoint"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Z2.prototype,"active",null);_.U([_.O({reflectToAttribute:!0}),_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],Z2.prototype,"isPrimary",null);_.U([_.O({reflectToAttribute:!0}),_.K("data.count","data.presentationStyle","data.badges.*"),_.W("design:type",String),_.W("design:paramtypes",[])],Z2.prototype,"lineEndStyle",null);
_.U([_.K("lineEndStyle"),_.W("design:type",Object),_.W("design:paramtypes",[])],Z2.prototype,"ariaLabel",null);_.U([_.N("data.hintActions","guideOpened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Z2.prototype,"triggerHintActions",null);_.U([_.M("down"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Z2.prototype,"onDown",null);
_.U([_.M("up"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Z2.prototype,"onUp",null);_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Z2.prototype,"onTap",null);Z2=_.U([_.Q({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],Z2);
_.S(Z2,"ytd-guide-entry-renderer",function(){if(fUc!==void 0)return fUc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return fUc=a},{mode:1});var hUc=function(){var a=_.P.apply(this,arguments)||this;a.userToggled=!1;return a};
_.z(hUc,_.P);_.f=hUc.prototype;_.f.getItemsPath=function(){return"data.expandableItems"};
_.f.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.f.onExpanderItemTapped=function(a){var b=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.x("kevlar_guide_expandable_items_killswitch")&&_.Tm(this,function(){_.Pk(b.expandableItems)});
a.preventDefault()};
_.f.onCollapserItemTapped=function(a){var b=this;this._setExpanded(!1);this.userToggled=!0;a.preventDefault();this.expandableItems&&!_.x("kevlar_guide_collapsible_items_killswitch")&&_.Tm(this,function(){_.Ok(b.hostElement)})};
_.f.observeActiveEndpoint=function(){for(var a=this.activeEndpoint,b=this.data,c=this.expandableItems.children,d=0,e=c.length;d<e;d++)c[d].activeEndpoint=a;b&&b.autoExpandCommand&&a&&!this.userToggled&&(c=this.data.autoExpandCommand,b=!(!_.y(c,_.pq)||!_.y(a,_.pq)||_.y(c,_.pq).browseId!==_.y(a,_.pq).browseId),a=this.get("commandMetadata.webCommandMetadata.url",a),c=this.get("commandMetadata.webCommandMetadata.url",c),b=b||!!(a&&c&&a.includes(c)),this._setExpanded(b),b&&this.ytLazyListBehavior.fillRemainingListItems())};
var $2=hUc;$2.prototype.observeActiveEndpoint=$2.prototype.observeActiveEndpoint;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],$2.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],$2.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.gJ.YtLazyListBehavior),_.W("design:type",Object)],$2.prototype,"ytLazyListBehavior",void 0);_.U([_.gr("#expandable-items"),_.W("design:type",HTMLElement)],$2.prototype,"expandableItems",void 0);
_.U([_.O(),_.W("design:type",Object)],$2.prototype,"data",void 0);_.U([_.O({readOnly:!0,reflectToAttribute:!0}),_.W("design:type",Boolean)],$2.prototype,"expanded",void 0);_.U([_.O({value:0}),_.W("design:type",Number)],$2.prototype,"initialCount",void 0);_.U([_.O(),_.W("design:type",Object)],$2.prototype,"activeEndpoint",void 0);_.U([_.N("data","activeEndpoint","canShowMore"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],$2.prototype,"observeActiveEndpoint",null);
$2=_.U([_.Q({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],$2);
_.S($2,"ytd-guide-collapsible-entry-renderer",function(){if(eUc!==void 0)return eUc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-guide-entry-renderer id="expander-item" data="[[data.expanderItem.guideEntryRenderer]]" detail="[[isDetail]]" on-click="onExpanderItemTapped" class="style-scope ytd-guide-collapsible-entry-renderer">\n</ytd-guide-entry-renderer>\n<div id="expanded" class="style-scope ytd-guide-collapsible-entry-renderer">\n  <div id="expandable-items" class="style-scope ytd-guide-collapsible-entry-renderer"></div>\n  <ytd-guide-entry-renderer id="collapser-item" data="[[data.collapserItem.guideEntryRenderer]]" detail="[[isDetail]]" on-click="onCollapserItemTapped" class="style-scope ytd-guide-collapsible-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return eUc=a},{mode:_.as("kevlar_poly_si_batch_j079")?1:2});var iUc;var jUc;var kUc=function(){var a=_.P.apply(this,arguments)||this;a.allVideosCount=0;a.renderGuideEntry=!1;return a};
_.z(kUc,_.P);kUc.prototype.observeRenderEntry=function(){var a;this.renderGuideEntry=!((a=this.data)==null||!a.alwaysShow)||!!this.allVideosCount};
var a3=kUc;a3.prototype.observeRenderEntry=a3.prototype.observeRenderEntry;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],a3.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],a3.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],a3.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],a3.prototype,"activeEndpoint",void 0);_.U([_.O({selector:_.tFa}),_.W("design:type",Object)],a3.prototype,"allVideosCount",void 0);
_.U([_.O(),_.W("design:type",Object)],a3.prototype,"renderGuideEntry",void 0);_.U([_.kr("allVideosCount","data.alwaysShow"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],a3.prototype,"observeRenderEntry",null);a3=_.U([_.Q({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],a3);
_.S(a3,"ytd-guide-downloads-entry-renderer",function(){if(jUc===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);jUc=a}a=jUc;return a},{mode:1});var lUc=function(){var a=_.P.apply(this,arguments)||this;a.youtab=_.x("web_enable_youtab");a.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return a};
_.z(lUc,_.P);_.f=lUc.prototype;_.f.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]]"}}}}}};
_.f.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var a=this.sectionItems.children,b=0,c=a.length;b<c;b++)a[b].activeEndpoint=this.activeEndpoint}};
_.f.handleAddToGuideSectionAction=function(a){var b=_.y(a,kJc);if(b&&this.data&&(a=b.items,b=b.handlerData,a&&b&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(b)>-1)){b=0;for(var c=a.length;b<c;b++)a[b].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,a[b])}};
_.f.handleRemoveFromGuideSectionAction=function(a){var b=_.y(a,lJc);b&&this.data&&(a=b.guideEntryId,b=b.handlerData,a&&b&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(b)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(a,this.data.sectionItems),this.removeFromCollapsedSection(a,this.data.sectionItems)))};
_.f.removeFromExpandedSection=function(a,b){a=this.getEntryIndexMatchingId(a,b);a!==-1&&this.splice("data.sectionItems",a,1)};
_.f.removeFromCollapsedSection=function(a,b){var c=b.findIndex(function(d){return!!_.y(d,EJc)});
c&&c!==-1&&b[c]&&_.y(b[c],EJc)&&(b=_.y(b[c],EJc).expandableItems)&&(a=this.getEntryIndexMatchingId(a,b),a!==-1&&this.splice("data.sectionItems."+c+".guideCollapsibleEntryRenderer.expandableItems",a,1))};
_.f.getEntryIndexMatchingId=function(a,b){var c=this;return b.findIndex(function(d){return c.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",d)===a})};
var b3=lUc;b3.prototype.activeEndpointChanged=b3.prototype.activeEndpointChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],b3.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],b3.prototype,"actionHandlerBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],b3.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.gr("#section-items"),_.W("design:type",HTMLDivElement)],b3.prototype,"sectionItems",void 0);_.U([_.gr("#header-entry"),_.W("design:type",Object)],b3.prototype,"headerEntry",void 0);_.U([_.O(),_.W("design:type",Object)],b3.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],b3.prototype,"activeEndpoint",void 0);_.U([_.O(),_.W("design:type",Object)],b3.prototype,"youtab",void 0);
_.U([_.N("activeEndpoint"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],b3.prototype,"activeEndpointChanged",null);b3=_.U([_.Q({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],b3);
_.S(b3,"ytd-guide-collapsible-section-entry-renderer",function(){if(iUc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-section-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  <ytd-guide-entry-renderer id="header-entry" data="[[data.headerEntry.guideEntryRenderer]]" is-header="[[youtab]]" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n<div id="section-items" class="style-scope ytd-guide-collapsible-section-entry-renderer"></div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);iUc=a}a=iUc;return a},{mode:1});var mUc;var nUc;var oUc=function(){var a=_.P.apply(this,arguments)||this;a.modernTypography=_.x("web_modern_typography");a.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 a};
_.z(oUc,_.P);_.f=oUc.prototype;
_.f.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}}}}};
_.f.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var a=_.ko(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);a&&a.length===1&&a[0]&&_.ko(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.f.handleResetChannelUnreadCountCommand=function(a){var b;(a=(b=_.y(a,oJc))==null?void 0:b.channelId)&&this.data&&this.data.items&&(b=this.getPathToEntryMatchingId(a))&&(this.set(b+".guideEntryRenderer.count",0),this.set(b+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.f.handleResetSubscriptionsUnreadDotCommand=function(a){var b,c=(b=_.y(a,pJc))==null?void 0:b.targetId,d;c&&(d=this.data)!=null&&d.items&&(a=this.data.items.findIndex(function(e){var g;return((g=e.guideEntryRenderer)==null?void 0:g.targetId)===c}),a<0||this.set("data.items."+a+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.f.getPathToEntryMatchingId=function(a){if(this.data&&this.data.items){var b=this.getEntryIndexMatchingId(a,this.data.items);if(b>-1)return"data.items."+b;for(var c=0;c<this.data.items.length;c++)if(b=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[c]))if(b=this.getEntryIndexMatchingId(a,b),b>-1)return"data.items."+c+".guideCollapsibleEntryRenderer.expandableItems."+b}};
_.f.handleAddToGuideSectionAction=function(a){var b=this;if(_.y(a,kJc)){var c=_.y(a,kJc).items;a=_.y(a,kJc).handlerData;var d,e;c&&a&&((d=this.data)==null?void 0:(e=d.handlerDatas)==null?void 0:e.indexOf(a))>-1&&(c=c.filter(function(g){return(g=b.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",g))&&!b.isGuideItemPresent(g)}),this.unshift.apply(this,["data.items"].concat(_.Be(c))))}};
_.f.isGuideItemPresent=function(a){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(a,this.data.items)!==-1)return!0;var b=this.data.items.find(function(c){return!!c.guideCollapsibleEntryRenderer});
if((b==null?0:b.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(a,b.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.f.getEntryIndexMatchingId=function(a,b){var c=this;return b.findIndex(function(d){return c.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",d)===a})};
_.f.handleRemoveFromGuideSectionAction=function(a){if(_.y(a,lJc)){var b=_.y(a,lJc).guideEntryId;a=_.y(a,lJc).handlerData;var c,d;b&&a&&((c=this.data)==null?void 0:(d=c.handlerDatas)==null?void 0:d.indexOf(a))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(b,this.data.items),this.removeFromCollapsedSection(b,this.data.items))}};
_.f.removeFromExpandedSection=function(a,b){a=this.getEntryIndexMatchingId(a,b);a!==-1&&this.splice("data.items",a,1)};
_.f.removeFromCollapsedSection=function(a,b){var c=b.findIndex(function(d){return!!d.guideCollapsibleEntryRenderer});
c!==-1&&(b=b[c].guideCollapsibleEntryRenderer.expandableItems)&&(a=this.getEntryIndexMatchingId(a,b),a!==-1&&this.splice("data.items."+c+".guideCollapsibleEntryRenderer.expandableItems",a,1))};
_.f.activeEndpointChanged=function(){for(var a=_.E(this.hostElement).querySelector("#items").children,b=0,c=a.length;b<c;b++)a[b].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.f.guideOpenedChanged=function(){for(var a=_.E(this.hostElement).querySelector("#items").children,b=0,c=a.length;b<c;b++)a[b].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
var c3=oUc;c3.prototype.guideOpenedChanged=c3.prototype.guideOpenedChanged;c3.prototype.activeEndpointChanged=c3.prototype.activeEndpointChanged;c3.prototype.persistentGuideChanged=c3.prototype.persistentGuideChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],c3.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],c3.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],c3.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.gJ.YtLazyListBehavior),_.W("design:type",Object)],c3.prototype,"ytLazyListBehavior",void 0);_.U([_.H(_.SI.YtdGuideStateAwareBehavior),_.W("design:type",Object)],c3.prototype,"ytdGuideStateAwareBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],c3.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],c3.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],c3.prototype,"modernTypography",void 0);_.U([_.O(),_.W("design:type",String)],c3.prototype,"type",void 0);_.U([_.O({value:20}),_.W("design:type",Number)],c3.prototype,"initialCount",void 0);_.U([_.O({value:10}),_.W("design:type",Number)],c3.prototype,"targetFramerate",void 0);_.U([_.O({value:!0}),_.W("design:type",Boolean)],c3.prototype,"autoFill",void 0);_.U([_.O({value:50}),_.W("design:type",Number)],c3.prototype,"renderDelay",void 0);
_.U([_.N("guidePersistentAndVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],c3.prototype,"persistentGuideChanged",null);_.U([_.kr("activeEndpoint"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],c3.prototype,"activeEndpointChanged",null);_.U([_.kr("guideOpened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],c3.prototype,"guideOpenedChanged",null);
c3=_.U([_.Q({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],c3);
_.S(c3,"ytd-guide-section-renderer",function(){if(nUc!==void 0)return nUc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return nUc=a},{mode:_.as("kevlar_poly_si_batch_j073")?1:2});var pUc;var qUc=function(){return _.P.apply(this,arguments)||this};
_.z(qUc,_.P);_.Vm.Object.defineProperties(qUc.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
var d3=qUc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],d3.prototype,"rendererBehaviors",void 0);_.U([_.O(),_.W("design:type",Object)],d3.prototype,"data",void 0);_.U([_.O(),_.K("data.signInButton.buttonRenderer.style"),_.W("design:type",Object),_.W("design:paramtypes",[])],d3.prototype,"alignByText",null);d3=_.U([_.Q({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],d3);
_.S(d3,"ytd-guide-signin-promo-renderer",function(){if(pUc===void 0){var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);pUc=a}a=pUc;return a},{mode:1});var e3=function(){var a=_.P.apply(this,arguments)||this;a.showFooter=!1;return a};
_.z(e3,_.P);e3.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}}}}};
e3.prototype.attached=function(){var a=this,b;return _.l(function(c){if(c.nextAddress==1){b=_.v().resolve(_.Wi(_.RI));if(!b)return c.jumpTo(0);b.setGuideData(a.hostElement);return _.p(c,0,3)}a.ytLazyListBehavior.initialCount=2;return c.return()})};
e3.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
var f3=e3;f3.prototype.dataChanged=f3.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],f3.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],f3.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.gJ.YtLazyListBehavior),_.W("design:type",Object)],f3.prototype,"ytLazyListBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],f3.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],f3.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],f3.prototype,"showFooter",void 0);_.U([_.O({value:!0}),_.W("design:type",Boolean)],f3.prototype,"autoFill",void 0);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],f3.prototype,"dataChanged",null);f3=_.U([_.Q({is:"ytd-guide-renderer",disableElementRegistration:!0})],f3);
_.S(f3,"ytd-guide-renderer",function(){if(mUc!==void 0)return mUc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return mUc=a},{mode:_.as("kevlar_poly_si_batch_j073")?1:2});var rUc;var sUc=function(){var a=_.P.apply(this,arguments)||this;a.systemIcons=_.x("kevlar_system_icons");a.frostedGlass=_.x("web_frosted_glass");a.getEndpointForm=Hxc;return a};
_.z(sUc,_.P);_.f=sUc.prototype;_.f.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.f.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.Vp(this.data.formattedTitle))};
_.f.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.f.onDown=function(){this.interaction.triggerDown()};
_.f.onUp=function(){this.interaction.triggerUp()};
_.f.onTap=function(a){if(this.data.serviceEndpoint){var b;_.x("shorts_controller_retrieve_seedless_sequence_v2")&&((b=_.y(this.data.serviceEndpoint,_.tq))==null?void 0:b.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):Gxc(this.data.serviceEndpoint,this);a.preventDefault()}else{var c;((c=this.data)==null?0:c.navigationEndpoint)&&!_.Xt(_.Pq(a),this.hostElement,["A".toString()])&&_.go(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.f.computeActive=function(a,b){if(!a)return!1;var c=a.navigationEndpoint;a=a.serviceEndpoint;if(!c&&!a||!b)return!1;if(c){a=_.y(c,_.pq);var d=_.y(b,_.pq);if(a&&d)return a.browseId===d.browseId&&a.params===d.params;var e;c=(e=_.y(c.commandMetadata,_.ao))==null?void 0:e.url;var g;b=(g=_.y(b.commandMetadata,_.ao))==null?void 0:g.url;return!(!c||!b||c!==b&&c!==_.gj(b))}return this.isActiveShortsTab(a,b)};
_.f.isActiveShortsTab=function(a,b){b=!!_.y(b,_.tq)||!!_.y(b,_.ME);return(!!_.y(a,_.tq)||!!_.y(a,_.ME))&&b};
_.f.computeTitle=function(a,b){return b?"":_.Vp(a)};
_.Vm.Object.defineProperties(sUc.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
var g3=sUc;g3.prototype.onTap=g3.prototype.onTap;g3.prototype.onUp=g3.prototype.onUp;g3.prototype.onDown=g3.prototype.onDown;g3.prototype.onActiveStateChange=g3.prototype.onActiveStateChange;g3.prototype.dataChanged=g3.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],g3.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],g3.prototype,"ytComponentBehavior",void 0);
_.U([_.H(_.MD),_.W("design:type",Object)],g3.prototype,"ironButtonState",void 0);_.U([_.O(),_.W("design:type",Object)],g3.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],g3.prototype,"activeEndpoint",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],g3.prototype,"noLabels",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.W("design:type",Boolean)],g3.prototype,"isActive",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],g3.prototype,"systemIcons",void 0);_.U([_.gr("yt-interaction"),_.W("design:type",Object)],g3.prototype,"interaction",void 0);_.U([_.K("isActive"),_.W("design:type",Object),_.W("design:paramtypes",[])],g3.prototype,"ariaSelected",null);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],g3.prototype,"frostedGlass",void 0);
_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],g3.prototype,"dataChanged",null);_.U([_.N("isActive"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],g3.prototype,"onActiveStateChange",null);_.U([_.M("down"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],g3.prototype,"onDown",null);
_.U([_.M("up"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],g3.prototype,"onUp",null);_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],g3.prototype,"onTap",null);g3=_.U([_.Q({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],g3);
_.S(g3,"ytd-mini-guide-entry-renderer",function(){if(rUc!==void 0)return rUc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-guide-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" tabindex="-1" class="yt-simple-endpoint style-scope ytd-mini-guide-entry-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" title="[[computeTitle(data.formattedTitle, noLabels)]]" get-form="[[getEndpointForm]]">\n  <yt-icon id="icon" class="guide-icon style-scope ytd-mini-guide-entry-renderer" active="[[isActive]]" disable-upgrade$="[[data.thumbnail]]" hidden="[[data.thumbnail]]" icon="[[data.icon.iconType]]">\n  </yt-icon>\n  <span class="title style-scope ytd-mini-guide-entry-renderer" hidden="[[noLabels]]">[[getSimpleString(data.formattedTitle)]]</span>\n  <tp-yt-paper-tooltip animation-delay="0" hidden="[[!noLabels]]" offset="4" position="right" class="style-scope ytd-mini-guide-entry-renderer">\n    [[getSimpleString(data.formattedTitle)]]\n  </tp-yt-paper-tooltip>\n  <yt-interaction class="style-scope ytd-mini-guide-entry-renderer"></yt-interaction>\n</a>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return rUc=a},{mode:_.as("kevlar_poly_si_batch_j063")?1:2});var tUc;var uUc=function(){var a=_.P.apply(this,arguments)||this;a.allVideosCount=0;a.noLabels=_.x("kevlar_mini_guide_no_labels");a.frostedGlass=_.x("web_frosted_glass");return a};
_.z(uUc,_.P);_.f=uUc.prototype;_.f.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.f.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation")};
_.f.visibleChanged=function(){if(this.visible&&!this.data){var a=_.v().resolve(_.Wi(_.RI));a&&a.setGuideData(this.hostElement)}};
_.f.dataChanged=function(){var a=[],b;if((b=this.data)!=null&&b.items){b=_.h(this.data.items);for(var c=b.next();!c.done;c=b.next()){c=c.value;var d=void 0;if((d=c.guideSectionRenderer)==null?0:d.items)for(d=void 0,c=_.h((d=c.guideSectionRenderer)==null?void 0:d.items),d=c.next();!d.done;d=c.next())if(d=d.value,d.guideEntryRenderer)d=d.guideEntryRenderer,d.isPrimary&&a.push({guideEntryRenderer:d});else if(d.guideCollapsibleSectionEntryRenderer){var e=void 0;((e=_.y(d.guideCollapsibleSectionEntryRenderer.headerEntry,
Z_))==null?0:e.isPrimary)&&a.push({guideEntryRenderer:_.y(d.guideCollapsibleSectionEntryRenderer.headerEntry,Z_)});if(d=d.guideCollapsibleSectionEntryRenderer.sectionItems)for(d=_.h(d),e=d.next();!e.done;e=d.next()){var g=e.value;e=_.y(g,FJc);var k=void 0;((k=_.y(g,Z_))==null?0:k.isPrimary)?a.push({guideEntryRenderer:_.y(g,Z_)}):e&&(g=void 0,_.y((g=e)==null?void 0:g.entryRenderer,Z_)&&(e.alwaysShow||this.allVideosCount)&&a.push({guideEntryRenderer:_.y(e.entryRenderer,Z_)}))}}}}this.miniGuideItems=
a};
_.f.activeEndpointChanged=function(){for(var a=this.items.children,b=0;b<a.length;b++)a[b].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
var h3=uUc;h3.prototype.activeEndpointChanged=h3.prototype.activeEndpointChanged;h3.prototype.dataChanged=h3.prototype.dataChanged;h3.prototype.visibleChanged=h3.prototype.visibleChanged;_.U([_.H(_.LI),_.W("design:type",Object)],h3.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],h3.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],h3.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.H(_.SI.YtdGuideStateAwareBehavior),_.W("design:type",Object)],h3.prototype,"ytdGuideStateAwareBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],h3.prototype,"ytComponentBehavior",void 0);_.U([_.gr("#items"),_.W("design:type",Object)],h3.prototype,"items",void 0);_.U([_.O(),_.W("design:type",Object)],h3.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Boolean)],h3.prototype,"visible",void 0);
_.U([_.O(),_.W("design:type",Object)],h3.prototype,"miniGuideItems",void 0);_.U([_.O({selector:_.tFa}),_.W("design:type",Object)],h3.prototype,"allVideosCount",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],h3.prototype,"noLabels",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],h3.prototype,"frostedGlass",void 0);_.U([_.kr("visible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],h3.prototype,"visibleChanged",null);
_.U([_.kr("data","allVideosCount"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],h3.prototype,"dataChanged",null);_.U([_.kr("activeEndpoint"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],h3.prototype,"activeEndpointChanged",null);h3=_.U([_.Q({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],h3);
_.S(h3,"ytd-mini-guide-renderer",function(){if(tUc===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);tUc=a}a=tUc;return a},{mode:1});var vUc;var wUc=/^[\x00-\x7F]+$/,xUc=function(){var a=_.P.apply(this,arguments)||this;a.darkerDarkTheme=_.x("web_darker_dark_theme");return a};
_.z(xUc,_.P);_.Vm.Object.defineProperties(xUc.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var a,b=_.Vp((a=this.data)==null?void 0:a.handle);if(b)return _.Up("@"+b)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var a=_.Vp(this.displayHandle),b,c=_.Vp((b=this.data)==null?void 0:b.handleUrl);if(a&&c)return _.Up(c+a)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var a=_.Vp(this.displayHandle);if(a&&!wUc.test(a)){var b;return(b=this.data)==null?void 0:b.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var a=_.Vp(this.displayHandleUrl),b,c=_.Vp((b=this.data)==null?void 0:b.urlInfoText);if(a&&c)return _.Up(c+" "+a)}}});
var i3=xUc;_.U([_.O(),_.W("design:type",Object)],i3.prototype,"data",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],i3.prototype,"displayHandle",null);_.U([_.K("displayHandle"),_.W("design:type",Object),_.W("design:paramtypes",[])],i3.prototype,"displayHandleUrl",null);_.U([_.K("displayHandle"),_.W("design:type",Object),_.W("design:paramtypes",[])],i3.prototype,"warningText",null);
_.U([_.K("displayHandleUrl"),_.W("design:type",Object),_.W("design:paramtypes",[])],i3.prototype,"urlInfoTextWithUrl",null);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],i3.prototype,"darkerDarkTheme",void 0);i3=_.U([_.Q({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],i3);
_.S(i3,"ytd-handles-claiming-confirm-dialog-content",function(){if(vUc!==void 0)return vUc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return vUc=a},{mode:1});var yUc;var zUc=function(){var a=_.P.apply(this,arguments)||this;a.okButtonOverride={style:"mono",type:"outline",size:"M"};return a};
_.z(zUc,_.P);zUc.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
zUc.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
var j3=zUc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],j3.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],j3.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],j3.prototype,"okButtonOverride",void 0);_.U([_.O(),_.W("design:type",Object)],j3.prototype,"data",void 0);j3=_.U([_.Q({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],j3);
_.S(j3,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(yUc!==void 0)return yUc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return yUc=a},{mode:1});var AUc;var BUc=/^[\x00-\x7F]+$/,CUc=function(){var a=_.P.apply(this,arguments)||this;a.isLoading=!1;a.darkerDarkTheme=_.x("web_darker_dark_theme");return a};
_.z(CUc,_.P);CUc.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var a;this.selectedHandle=(a=this.handleInput)==null?void 0:a.value;this.onSelectedHandleChanged(this.selectedHandle);_.ko(this.hostElement,"yt-refit-popups-action")}};
_.Vm.Object.defineProperties(CUc.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var a;return(a=this.data)==null?void 0:a.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.Up("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.Up(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!BUc.test(this.selectedHandle)){var a;return(a=this.data)==null?void 0:a.warningText}}}});
var k3=CUc;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],k3.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],k3.prototype,"data",void 0);_.U([_.O(),_.W("design:type",String)],k3.prototype,"selectedHandle",void 0);_.U([_.O(),_.W("design:type",Object)],k3.prototype,"isLoading",void 0);_.U([_.O(),_.W("design:type",Function)],k3.prototype,"onSelectedHandleChanged",void 0);
_.U([_.gr("#channel-handle-input"),_.W("design:type",Object)],k3.prototype,"handleInput",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],k3.prototype,"handleUrlPrefix",null);_.U([_.K("selectedHandle"),_.W("design:type",Object),_.W("design:paramtypes",[])],k3.prototype,"displayHandle",null);_.U([_.K("selectedHandle"),_.W("design:type",Object),_.W("design:paramtypes",[])],k3.prototype,"displayHandleUrl",null);
_.U([_.K("selectedHandle"),_.W("design:type",Object),_.W("design:paramtypes",[])],k3.prototype,"warningText",null);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],k3.prototype,"darkerDarkTheme",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],k3.prototype,"ytRendererBehavior",void 0);k3=_.U([_.Q({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],k3);
_.S(k3,"ytd-handles-claiming-edit-dialog-content",function(){if(AUc!==void 0)return AUc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return AUc=a},{mode:1});var DUc;var EUc=function(){var a=_.P.apply(this,arguments)||this;a.actionButtonOverride={style:"mono",type:"filled",size:"M"};a.cancelButtonOverride={style:"mono",type:"text",size:"M"};a.selectButtonDisabled=!1;a.isLoading=!1;a.hasSelectedHandleEventListener=!1;a.selectedHandleChanged=function(b){a.selectedHandle=b};
return a};
_.z(EUc,_.P);_.f=EUc.prototype;_.f.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.f.onDataChanged=function(){var a,b;this.selectedHandle=(b=_.y((a=this.data)==null?void 0:a.inputField,fJc))==null?void 0:b.handle};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.f.onCancel=function(){this.selectedHandle="";_.ho(this.hostElement,"yt-close-popup-action",[this.is])};
_.f.onSelectHandle=function(){var a=this;if(this.selectedHandle!==void 0){var b;((b=this.data)==null?void 0:b.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(c,d){if(d.newHandleUpdateStatus!==void 0&&d.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&d.newHandleUpdateStatus.errorMessage)_.KW(a.hostElement,_.Vp(d.newHandleUpdateStatus.errorMessage)),
a.isLoading=!1;else{var e;if((e=a.data)==null?0:e.onChannelUpdateSuccess){c=a.data.onChannelUpdateSuccess;var g,k;if(d=(g=_.y(c,_.GE))==null?void 0:(k=g.popup)==null?void 0:k.handlesClaimingConfirmDialogRenderer)d.handle=_.Up(a.selectedHandle);a.ytComponentBehavior.resolveCommand(c);_.ho(a.hostElement,"yt-close-popup-action",[a.is])}else a.isLoading=!1}},
onServerError:function(){var c;a.content&&((c=a.content)==null?0:c.handleInput)&&a.content.handleInput.validate();a.isLoading=!1;_.KW(a.hostElement,_.to("TRY_AGAIN_LATER"))}}}))}};
_.f.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
var l3=EUc;l3.prototype.onDataChanged=l3.prototype.onDataChanged;l3.prototype.onSelectedHandleChanged=l3.prototype.onSelectedHandleChanged;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],l3.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],l3.prototype,"actionButtonOverride",void 0);_.U([_.O(),_.W("design:type",Object)],l3.prototype,"cancelButtonOverride",void 0);_.U([_.O(),_.W("design:type",Object)],l3.prototype,"data",void 0);
_.U([_.O(),_.W("design:type",String)],l3.prototype,"selectedHandle",void 0);_.U([_.O(),_.W("design:type",Object)],l3.prototype,"selectButtonDisabled",void 0);_.U([_.O(),_.W("design:type",Object)],l3.prototype,"isLoading",void 0);_.U([_.O(),_.W("design:type",Object)],l3.prototype,"hasSelectedHandleEventListener",void 0);_.U([_.O(),_.W("design:type",Object)],l3.prototype,"handleInput",void 0);
_.U([_.N("selectedHandle"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],l3.prototype,"onSelectedHandleChanged",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],l3.prototype,"onDataChanged",null);_.U([_.gr("ytd-handles-claiming-edit-dialog-content"),_.W("design:type",Object)],l3.prototype,"content",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],l3.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],l3.prototype,"ytRendererstamperBehavior",void 0);l3=_.U([_.Q({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],l3);
_.S(l3,"ytd-handles-claiming-edit-dialog-renderer",function(){if(DUc!==void 0)return DUc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return DUc=a},{mode:1});var FUc;var GUc=function(){return _.P.apply(this,arguments)||this};
_.z(GUc,_.P);_.Vm.Object.defineProperties(GUc.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)==null?0:a.handle){var b;return _.Up("@"+_.Vp((b=this.data)==null?void 0:b.handle))}}}});
var m3=GUc;_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],m3.prototype,"formattedHandle",null);_.U([_.O(),_.W("design:type",Object)],m3.prototype,"data",void 0);m3=_.U([_.Q({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],m3);
_.S(m3,"ytd-handles-claiming-radio-option-renderer",function(){if(FUc!==void 0)return FUc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return FUc=a},{mode:1});var HUc;var IUc=/^[\x00-\x7F]+$/,n3=function(){var a=_.P.apply(this,arguments)||this;a.initialRadioIndex="-1";a.isLoading=!1;a.darkerDarkTheme=_.x("web_darker_dark_theme");a.maybeSubmitFeedback=function(){a.feedbackSurveyRenderer.submitSurvey()};
return a};
_.z(n3,_.P);n3.prototype.updateSelectedHandleIndexFromBinding=function(a){this.selectedRadioIndex=+a.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(a)};
n3.prototype.selectedHandleChanged=function(a){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var b;this.selectedHandle=(b=this.handleInput)==null?void 0:b.value;this.onSelectedHandleChanged(a)}};
_.Vm.Object.defineProperties(n3.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var a;return(((a=this.data)==null?void 0:a.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var a;return this.ytRendererBehavior.getSimpleString((a=this.data)==null?void 0:a.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.Up("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.Up(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!IUc.test(this.selectedHandle)){var a;return(a=this.data)==null?void 0:a.warningText}}}});
var o3=n3;_.U([_.O(),_.W("design:type",Object)],o3.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],o3.prototype,"initialRadioIndex",void 0);_.U([_.O(),_.W("design:type",Number)],o3.prototype,"selectedRadioIndex",void 0);_.U([_.O(),_.W("design:type",String)],o3.prototype,"selectedHandle",void 0);_.U([_.O(),_.W("design:type",Object)],o3.prototype,"isLoading",void 0);_.U([_.O(),_.W("design:type",Function)],o3.prototype,"onSelectedHandleChanged",void 0);
_.U([_.O(),_.W("design:type",Function)],o3.prototype,"onSelectedRadioIndexChanged",void 0);_.U([_.gr("#channel-handle-input"),_.W("design:type",Object)],o3.prototype,"handleInput",void 0);_.U([_.gr("ytd-feedback-survey-renderer"),_.W("design:type",Object)],o3.prototype,"feedbackSurveyRenderer",void 0);_.U([_.K("data"),_.W("design:type",Number),_.W("design:paramtypes",[])],o3.prototype,"radioButtonLength",null);
_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],o3.prototype,"handleUrlPrefix",null);_.U([_.K("selectedHandle"),_.W("design:type",Object),_.W("design:paramtypes",[])],o3.prototype,"displayHandle",null);_.U([_.K("selectedHandle"),_.W("design:type",Object),_.W("design:paramtypes",[])],o3.prototype,"displayHandleUrl",null);_.U([_.K("selectedHandle"),_.W("design:type",Object),_.W("design:paramtypes",[])],o3.prototype,"warningText",null);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],o3.prototype,"darkerDarkTheme",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],o3.prototype,"ytRendererBehavior",void 0);o3=_.U([_.Q({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],o3);
_.S(o3,"ytd-handles-claiming-select-dialog-content",function(){if(HUc!==void 0)return HUc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return HUc=a},{mode:1});var JUc;var KUc=function(){var a=_.P.apply(this,arguments)||this;a.actionButtonOverride={style:"mono",type:"filled",size:"M"};a.cancelButtonOverride={style:"mono",type:"text",size:"M"};a.initialRadioIndex="-1";a.selectButtonDisabled=!1;a.isLoading=!1;a.selectedRadioIndexChanged=function(b){a.selectedRadioIndex=Number(b.detail.value)};
a.selectedHandleChanged=function(b){a.selectedHandle=b.detail.value};
a.darkerDarkTheme=_.x("web_darker_dark_theme");return a};
_.z(KUc,_.P);_.f=KUc.prototype;_.f.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.f.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.f.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.ko(this.hostElement,"yt-refit-popups-action")};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.f.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.ho(this.hostElement,"yt-close-popup-action",[this.is])};
_.f.onSelectHandle=function(){var a=this;if(this.selectedHandle!==void 0){var b;((b=this.data)==null?void 0:b.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(c,d){if(d.newHandleUpdateStatus!==void 0&&d.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&d.newHandleUpdateStatus.errorMessage)_.KW(a.hostElement,_.Vp(d.newHandleUpdateStatus.errorMessage)),
a.isLoading=!1;else{var e;if((e=a.data)==null?0:e.onChannelUpdateSuccess){c=a.data.onChannelUpdateSuccess;d=_.y(c,_.GE);var g;if(d==null?0:(g=d.popup)==null?0:g.handlesClaimingConfirmDialogRenderer)d.popup.handlesClaimingConfirmDialogRenderer.handle=_.Up(a.selectedHandle);a.ytComponentBehavior.resolveCommand(c);_.ho(a.hostElement,"yt-close-popup-action",[a.is])}else a.isLoading=!1}},
onServerError:function(){if(a.selectedRadioIndex===a.radioButtonLength){var c;a.content&&((c=a.content)==null?0:c.handleInput)&&a.content.handleInput.validate()}a.isLoading=!1;_.KW(a.hostElement,_.to("TRY_AGAIN_LATER"))}}}))}};
_.f.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var a,b;this.selectedHandle=(a=this.content)==null?void 0:(b=a.handleInput)==null?void 0:b.value}else this.selectedRadioIndex>=0&&((a=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(a==null?void 0:a.handle):this.selectedHandle=void 0)};
_.f.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.f.getRadioItem=function(a){if(this.radioButtonLength>a&&a>=0)return _.y(this.data.radioButton[a],yJc)};
_.Vm.Object.defineProperties(KUc.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var a;return(((a=this.data)==null?void 0:a.radioButton)||[]).length}}});
var p3=KUc;p3.prototype.onSelectedHandleChanged=p3.prototype.onSelectedHandleChanged;p3.prototype.onSelectedHandleIndexChanged=p3.prototype.onSelectedHandleIndexChanged;p3.prototype.onDataChanged=p3.prototype.onDataChanged;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],p3.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],p3.prototype,"actionButtonOverride",void 0);_.U([_.O(),_.W("design:type",Object)],p3.prototype,"cancelButtonOverride",void 0);
_.U([_.O(),_.W("design:type",Object)],p3.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],p3.prototype,"initialRadioIndex",void 0);_.U([_.O(),_.W("design:type",Number)],p3.prototype,"selectedRadioIndex",void 0);_.U([_.O(),_.W("design:type",String)],p3.prototype,"selectedHandle",void 0);_.U([_.O(),_.W("design:type",Object)],p3.prototype,"selectButtonDisabled",void 0);_.U([_.O(),_.W("design:type",Object)],p3.prototype,"isLoading",void 0);
_.U([_.K("data"),_.W("design:type",Number),_.W("design:paramtypes",[])],p3.prototype,"radioButtonLength",null);_.U([_.gr("ytd-handles-claiming-select-dialog-content"),_.W("design:type",Object)],p3.prototype,"content",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],p3.prototype,"onDataChanged",null);
_.U([_.N("selectedRadioIndex"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],p3.prototype,"onSelectedHandleIndexChanged",null);_.U([_.N("selectedHandle"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],p3.prototype,"onSelectedHandleChanged",null);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],p3.prototype,"darkerDarkTheme",void 0);
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],p3.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],p3.prototype,"ytRendererstamperBehavior",void 0);p3=_.U([_.Q({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],p3);
_.S(p3,"ytd-handles-claiming-select-dialog-renderer",function(){if(JUc!==void 0)return JUc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return JUc=a},{mode:1});var LUc;var MUc;var NUc=function(){return _.P.apply(this,arguments)||this};
_.z(NUc,_.P);NUc.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
var q3=NUc;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],q3.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],q3.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],q3.prototype,"data",void 0);q3=_.U([_.Q({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],q3);
_.S(q3,"ytd-hotkey-dialog-section-option-renderer",function(){if(MUc!==void 0)return MUc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return MUc=a},{mode:1});var OUc;var PUc=function(){return _.P.apply(this,arguments)||this};
_.z(PUc,_.P);PUc.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
var r3=PUc;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],r3.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],r3.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],r3.prototype,"data",void 0);r3=_.U([_.Q({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],r3);
_.S(r3,"ytd-hotkey-dialog-section-renderer",function(){if(OUc!==void 0)return OUc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return OUc=a},{mode:1});var QUc=function(){var a=_.P.apply(this,arguments)||this;a.darkerDarkTheme=_.x("web_darker_dark_theme");return a};
_.z(QUc,_.P);QUc.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
var s3=QUc;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],s3.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],s3.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],s3.prototype,"darkerDarkTheme",void 0);s3=_.U([_.Q({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],s3);
_.S(s3,"ytd-hotkey-dialog-content",function(){if(LUc!==void 0)return LUc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return LUc=a},{mode:1});var RUc;var SUc=function(){return _.P.apply(this,arguments)||this};
_.z(SUc,_.P);SUc.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var a=document.querySelector("ytd-hotkey-dialog-content #scrollable");a&&(a.dialogElement=this.hostElement.parentElement)};
SUc.prototype.onCloseTap=function(){_.ho(this.hostElement,"yt-close-popup-action")};
var t3=SUc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],t3.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],t3.prototype,"data",void 0);t3=_.U([_.Q({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],t3);
_.S(t3,"ytd-hotkey-dialog-renderer",function(){if(RUc!==void 0)return RUc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return RUc=a},{mode:1});var TUc;var u3=function(){return _.P.apply(this,arguments)||this};
_.z(u3,_.P);u3.prototype.onYtServiceRequestError=function(){if(this.blocked){var a;var b=(a=this.data)==null?void 0:a.defaultServiceEndpoint}else{var c;b=(c=this.data)==null?void 0:c.toggledServiceEndpoint}var d;(b=(d=_.y(b,_.rBb))==null?void 0:d.onFailureAction)&&this.ytComponentBehavior.resolveCommand(b);this.updateBlockState(!this.blocked)};
u3.prototype.onYtToggleButton=function(a){this.updateBlockState(a.detail.toggled)};
u3.prototype.updateBlockState=function(a){if(a!==this.blocked){var b=this.blockedEntityKey;b&&this.ytdReduxBehavior.dispatch(_.vu("blockStateEntity",b,{key:b,blocked:a}));this.set("data.isToggled",a)}};
_.Vm.Object.defineProperties(u3.prototype,{blocked:{configurable:!0,enumerable:!0,get:function(){return this.blockStateEntity?(this.set("data.isToggled",this.blocked),!!this.blockStateEntity.blocked):!(!this.data||!this.data.isToggled)}}});
var v3=u3;v3.prototype.onYtToggleButton=v3.prototype.onYtToggleButton;v3.prototype.onYtServiceRequestError=v3.prototype.onYtServiceRequestError;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],v3.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],v3.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],v3.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],v3.prototype,"blockedEntityKey",void 0);
_.U([_.O({selectorArgs:["blockedEntityKey"],selector:function(a,b){return _.mp(a.entities,"blockStateEntity",b)}}),
_.W("design:type",Object)],v3.prototype,"blockStateEntity",void 0);_.U([_.K("data","blockStateEntity"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],v3.prototype,"blocked",null);_.U([_.M("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],v3.prototype,"onYtServiceRequestError",null);
_.U([_.M("yt-toggle-button"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],v3.prototype,"onYtToggleButton",null);v3=_.U([_.Q({is:"ytd-block-button",disableElementRegistration:!0})],v3);
_.S(v3,"ytd-block-button",function(){if(TUc!==void 0)return TUc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return TUc=a},
{mode:1});var UUc;var VUc;var WUc=function(){return _.P.apply(this,arguments)||this};
_.z(WUc,_.P);var w3=WUc;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],w3.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],w3.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],w3.prototype,"data",void 0);w3=_.U([_.Q({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],w3);
_.S(w3,"ytd-kids-blocklist-picker-item-renderer",function(){if(VUc!==void 0)return VUc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return VUc=a},{mode:1});var XUc=function(){return _.P.apply(this,arguments)||this};
_.z(XUc,_.P);XUc.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
var x3=XUc;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],x3.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],x3.prototype,"data",void 0);x3=_.U([_.Q({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],x3);
_.S(x3,"ytd-kids-blocklist-picker-content",function(){if(UUc!==void 0)return UUc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return UUc=
a},{mode:_.as("kevlar_poly_si_batch_j025")?1:2});var YUc;var ZUc=function(){var a=_.P.apply(this,arguments)||this;a.hasAnyRequestSucceeded=!1;a.hasAnyRequestFailed=!1;a.numPendingRequests=0;return a};
_.z(ZUc,_.P);_.f=ZUc.prototype;_.f.attached=function(){this.hostElement.setAttribute("dialog","")};
_.f.onDoneButtonTap=function(){_.ho(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.f.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.f.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.f.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.f.onPopupClosed=function(a){var b,c;if(((b=a.detail)==null?void 0:(c=b.popup)==null?void 0:c.is)==="tp-yt-paper-dialog"){var d;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((d=this.data)==null?0:d.successfulToastActionMessage)&&this.ytComponentBehavior.resolveCommand(_.$p(this.data.successfulToastActionMessage));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
var y3=ZUc;y3.prototype.onPopupClosed=y3.prototype.onPopupClosed;y3.prototype.onYtServiceRequestError=y3.prototype.onYtServiceRequestError;y3.prototype.onYtServiceRequestCompleted=y3.prototype.onYtServiceRequestCompleted;y3.prototype.onYtServiceRequestSent=y3.prototype.onYtServiceRequestSent;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],y3.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],y3.prototype,"ytRendererBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],y3.prototype,"data",void 0);_.U([_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],y3.prototype,"onYtServiceRequestSent",null);_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],y3.prototype,"onYtServiceRequestCompleted",null);
_.U([_.M("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],y3.prototype,"onYtServiceRequestError",null);_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],y3.prototype,"onPopupClosed",null);y3=_.U([_.Q({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],y3);
_.S(y3,"ytd-kids-blocklist-picker-renderer",function(){if(YUc!==void 0)return YUc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return YUc=a},{mode:1});var $Uc;var aVc;var bVc=function(){return _.P.apply(this,arguments)||this};
_.z(bVc,_.P);bVc.prototype.setTip=function(a){var b=this;this.data&&(this.tip=nMc(lMc.getInstance(),a,this.data),_.Tm(this,function(){_.go(b.hostElement,"yt-refit")}))};
bVc.prototype.clearTip=function(){this.tip=void 0};
bVc.prototype.computeHidden=function(a){return!a};
var z3=bVc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],z3.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],z3.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.W("design:type",Boolean)],z3.prototype,"hidden",void 0);_.U([_.O(),_.W("design:type",Object)],z3.prototype,"tip",void 0);z3=_.U([_.Q({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],z3);
_.S(z3,"ytd-menu-popup-tip-renderer",function(){if(aVc!==void 0)return aVc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);
return aVc=a},{mode:1});var cVc;var dVc=function(){var a=_.P.apply(this,arguments)||this;a.useIcons=!1;a.systemIcons=_.x("kevlar_system_icons");a.useListItemStyles=_.x("web_list_item_style_for_menu_items");return a};
_.z(dVc,_.P);_.f=dVc.prototype;_.f.onFocus=function(){var a;(a=_.E(this.hostElement).querySelector("tp-yt-paper-item"))==null||a.focus()};
_.f.onTap=function(){var a=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(a&&_.y(a,_.po))this.componentBehavior.resolveCommand(a),this.updateToggledStateInEntity();else if(a){this.componentBehavior.resolveCommand(a)||(_.x("web_ytd_toggle_menu_service_item_renderer_command_resolver_ks")?_.mo(this.hostElement,[a]):_.v().resolve(_.Xi).resolveCommand(a,{form:{element:this.hostElement}}));var b;((b=_.y(a,_.ro))==null?void 0:b.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.f.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.f.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.f.updateToggledStateInEntity=function(){var a=this.data.toggleMenuServiceItemEntityKey,b=!this.data.isToggled;a&&this.ytdReduxBehavior.dispatch(_.vu("toggleMenuServiceItemEntity",a,{key:a,isToggled:b}))};
_.f.computeIcon=function(a,b,c){return(a=a?c:b)&&a.iconType?_.fs(a.iconType):""};
_.f.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.f.isIconActive=function(a){return!_.x("toggle_menu_active_icon_killswitch")&&a};
_.Vm.Object.defineProperties(dVc.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return((a=this.data)==null?0:a.isToggled)?(b=this.data)==null?void 0:b.toggledText:(c=this.data)==null?void 0:c.defaultText}}});
var A3=dVc;A3.prototype.toggledStateEntityChanged=A3.prototype.toggledStateEntityChanged;A3.prototype.onYtServiceRequestCompleted=A3.prototype.onYtServiceRequestCompleted;A3.prototype.onTap=A3.prototype.onTap;A3.prototype.onFocus=A3.prototype.onFocus;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],A3.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],A3.prototype,"componentBehavior",void 0);
_.U([_.H(_.LI),_.W("design:type",Object)],A3.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],A3.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],A3.prototype,"useIcons",void 0);_.U([_.O({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.W("design:type",String)],A3.prototype,"icon",void 0);
_.U([_.O({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(a,b){return _.mp(a.entities,"toggleMenuServiceItemEntity",b)}}),
_.W("design:type",Object)],A3.prototype,"toggleMenuServiceItemEntity",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],A3.prototype,"systemIcons",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],A3.prototype,"useListItemStyles",void 0);_.U([_.M("focus"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],A3.prototype,"onFocus",null);
_.U([_.K("data.isToggled"),_.W("design:type",Object),_.W("design:paramtypes",[])],A3.prototype,"toggleButtonText",null);_.U([_.M("tap"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],A3.prototype,"onTap",null);_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],A3.prototype,"onYtServiceRequestCompleted",null);
_.U([_.N("toggleMenuServiceItemEntity.isToggled","data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],A3.prototype,"toggledStateEntityChanged",null);A3=_.U([_.Q({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],A3);
_.S(A3,"ytd-toggle-menu-service-item-renderer",function(){if(cVc!==void 0)return cVc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return cVc=a},{mode:1});var eVc;var fVc=function(){return _.P.apply(this,arguments)||this};
_.z(fVc,_.P);fVc.prototype.onFocus=function(){var a;(a=_.E(this.hostElement).querySelector("tp-yt-paper-item"))==null||a.focus()};
_.Vm.Object.defineProperties(fVc.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.Gd(this.data.iconUrl)}}});
var B3=fVc;B3.prototype.onFocus=B3.prototype.onFocus;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],B3.prototype,"rendererBehavior",void 0);_.U([_.H(_.nH.YtEndpointBehavior),_.W("design:type",Object)],B3.prototype,"ytEndpointBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],B3.prototype,"data",void 0);_.U([_.M("focus"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],B3.prototype,"onFocus",null);
_.U([_.K("data.iconUrl"),_.W("design:type",Object),_.W("design:paramtypes",[])],B3.prototype,"imageSource",null);B3=_.U([_.Q({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],B3);
_.S(B3,"ytd-menu-custom-icon-item-renderer",function(){if(eVc!==void 0)return eVc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return eVc=a},{mode:_.as("kevlar_poly_si_batch_j028")?1:2});_.Ws(_.yQ,"yt-list-item-view-model",{props:{data:_.SG,isMenuItem:_.SG,isCompact:_.SG,onTap:_.Vs,trailingAccessory:_.SG,hideSelectionTextChevron:_.SG,disabled:_.SG,inPopup:_.SG,disableHorizontalPadding:_.SG,isOverlay:_.SG}});var gVc=function(){var a=_.P.apply(this,arguments)||this;a.disableBackdropFilter=_.x("web_disable_backdrop_filter");return a};
_.z(gVc,_.P);_.f=gVc.prototype;
_.f.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"}}}};
_.f.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.f.computeAriaLabel=function(a){return a};
_.f.onPopupOpened=function(){this.items.selected=0;for(var a=_.h(_.E(this.items).children),b=a.next();!b.done;b=a.next())b.value.popupPositionTarget=this.positionTarget;if(a=this.popupTip||void 0)a.setTip(this.source||""),this.source=void 0;this.veData&&(a=_.Fn())&&_.To(a,[this.veData])};
_.f.onPopupClosed=function(){var a=this.popupTip||void 0;a&&a.clearTip()};
_.f.onIronActivate=function(a){this.shouldPersist(a)||_.ho(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(a=_.Fn())&&_.Vo(a,this.veData)};
_.f.shouldPersist=function(a){var b,c;if(((b=a.detail)==null?void 0:b.selected)===void 0||(c=this.data)==null||!c.items)return!1;var d,e;return!((e=(d=this.data.items[a.detail.selected])==null?void 0:d.toggleMenuServiceItemRenderer)==null||!e.persistentOnMenuPopup)};
_.f.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(a){return a.menuNavigationItemRenderer?!!a.menuNavigationItemRenderer.icon:a.menuServiceItemRenderer?!!a.menuServiceItemRenderer.icon:a.menuConditionalServiceItemRenderer?!!a.menuConditionalServiceItemRenderer.icon:a.menuConditionalNavigationItemRenderer?!!a.menuConditionalNavigationItemRenderer.icon:a.toggleMenuServiceItemRenderer?!!a.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
var C3=gVc;C3.prototype.onPopupClosed=C3.prototype.onPopupClosed;C3.prototype.onPopupOpened=C3.prototype.onPopupOpened;_.U([_.H(_.CK.YtEventForwardingBehavior),_.W("design:type",Object)],C3.prototype,"ytEventForwardingBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],C3.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],C3.prototype,"ytRendererBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],C3.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],C3.prototype,"veData",void 0);_.U([_.O({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.W("design:type",String)],C3.prototype,"ariaLabel",void 0);_.U([_.O({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],C3.prototype,"useIcons",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],C3.prototype,"disableBackdropFilter",void 0);_.U([_.gr("#items"),_.W("design:type",Object)],C3.prototype,"items",void 0);_.U([_.gr("ytd-menu-popup-tip-renderer"),_.W("design:type",Object)],C3.prototype,"popupTip",void 0);_.U([_.M("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],C3.prototype,"onPopupOpened",null);
_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],C3.prototype,"onPopupClosed",null);C3=_.U([_.Q({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],C3);
_.S(C3,"ytd-menu-popup-renderer",function(){if($Uc!==void 0)return $Uc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return $Uc=a},{mode:1});var hVc;var iVc=_.Rr(function(a){a=_.Or(a,{icon:void 0});var b=a.data;a=a.icon;var c=function(){return b().iconBadgeText},d={},e=_.jt("yt-spec-icon-badge-shape",function(){a:switch(b().iconBadgeType){case "notification":var g="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":g="yt-spec-icon-badge-shape--type-cart";break a;default:g=""}return g},function(){a:switch(b().iconBadgeStyle){case "overlay":var g="yt-spec-icon-badge-shape--style-overlay";
break a;default:g=""}return g},(d["yt-spec-icon-badge-shape--text-size-small"]=function(){var g=c();
return!!((g==null?0:g.length)&&g.length>2)},d));
return _.q("yt-icon-badge-shape",null,_.q(_.oi,{cond:a,then:function(g){return _.q("div",{class:e},_.q("div",{class:"yt-spec-icon-badge-shape__icon"},_.q(_.tt,{icon:g})),_.q(_.oi,{cond:c,then:function(k){return _.q("div",{class:"yt-spec-icon-badge-shape__badge"},k)}}))}}))});
iVc.idomCompat=!0;_.Ws(iVc,"yt-icon-badge-shape",{props:{data:_.SG,icon:_.SG}});var jVc=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};a.unseenCount=0;a.isOverlay=!1;return a};
_.z(jVc,_.P);_.f=jVc.prototype;_.f.attached=function(){var a=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(b){a.onServiceWorkerMessage(b)})};
_.f.onDataChanged=function(){this.isAttached&&!this.JSC$18046_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$18046_lastData=this.data};
_.f.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.f.computeIcon=function(){var a,b;return(a=this.data)==null?void 0:(b=a.icon)==null?void 0:b.iconType};
_.f.onServiceWorkerMessage=function(a){a.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.f.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.y(this.data.updateUnseenCountEndpoint,_.ro)&&_.y(this.data.updateUnseenCountEndpoint,_.ro).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.f.handleUpdateNotificationsUnseenCountAction=function(a){var b=this;a=_.y(a,mJc);a!=null&&a.unseenCount&&a.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(a.unseenCount),_.zk.addLowPriorityJob(function(){b.data.updateUnseenCountEndpoint&&b.ytComponentBehavior.resolveCommand(b.data.updateUnseenCountEndpoint)},a.timeoutMs))};
_.f.onClick=function(){_.go(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var a=_.ko(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),b=this.data.menuRequest;a&&a.length===1&&a[0]?_.ho(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):b&&this.ytComponentBehavior.resolveCommand(b)};
_.f.handleTopbarMenuClosedAction=function(a){a==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.f.toggleIconState=function(a){this.iconButton&&(this.iconButton.pressed=a)};
_.f.sendUnseenCountRequest=function(a){var b=this;_.ul(_.zk,function(){b.ytComponentBehavior.resolveCommand(a)})};
_.f.updateCountUI=function(a){this.set("unseenCount",a<9?a:"9+")};
_.Vm.Object.defineProperties(jVc.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
var D3=jVc;D3.prototype.handleUpdateNotificationsUnseenCountAction=D3.prototype.handleUpdateNotificationsUnseenCountAction;D3.prototype.onDataChanged=D3.prototype.onDataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],D3.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],D3.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.YH),_.W("design:type",Object)],D3.prototype,"ytdOpenPopupBehavior",void 0);
_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],D3.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],D3.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],D3.prototype,"unseenCount",void 0);_.U([_.O(),_.W("design:type",Object)],D3.prototype,"isOverlay",void 0);_.U([_.O({value:!0}),_.W("design:type",Boolean)],D3.prototype,"showTooltips",void 0);_.U([_.gr("yt-icon-button"),_.W("design:type",Object)],D3.prototype,"iconButton",void 0);
_.U([_.K("unseenCount"),_.W("design:type",Object),_.W("design:paramtypes",[])],D3.prototype,"showNotificationCount",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D3.prototype,"onDataChanged",null);_.U([_.M("yt-update-notifications-unseen-count-action"),_.W("design:type",Function),_.W("design:paramtypes",[Object]),_.W("design:returntype")],D3.prototype,"handleUpdateNotificationsUnseenCountAction",null);
D3=_.U([_.Q({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],D3);
_.S(D3,"ytd-notification-topbar-button-renderer",function(){if(hVc!==void 0)return hVc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return hVc=a},{mode:_.as("kevlar_poly_si_batch_j025")?1:2});var kVc;var lVc=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return a};
_.z(lVc,_.P);lVc.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}}}}}};
lVc.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
lVc.prototype.onDarkModeToggled=function(a){this.dark=a};
var E3=lVc;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],E3.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],E3.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],E3.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],E3.prototype,"data",void 0);_.U([_.O({value:!0,reflectToAttribute:!0}),_.W("design:type",Boolean)],E3.prototype,"dark",void 0);
E3=_.U([_.Q({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],E3);
_.S(E3,"yt-pdg-buy-flow-header-renderer",function(){if(kVc!==void 0)return kVc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return kVc=a},{mode:1});var mVc;var nVc;var oVc=function(){var a=_.P.apply(this,arguments)||this;a.immediateValue=0;a.isDarkTheme=!1;a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a};
_.z(oVc,_.P);_.f=oVc.prototype;_.f.created=function(){_.TD.requestAvailability()};
_.f.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.f.dataChanged=function(){var a=_.E(this.hostElement).querySelector("#color-slider");a.immediateValue&&this.updateSliderKnobAndGradientStyles(a.immediateValue);this.data.notches[0].knobColorArgb&&_.dr(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.Cq(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.Ei("HTML_DIR")==="rtl"&&_.E(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.f.onSliderImmediateChange=function(){var a=_.E(this.hostElement).querySelector("#color-slider");a.dragging&&(a.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(a.immediateValue),this.updateSliderKnobAndGradientStyles(a.immediateValue)),this.updateSliderAria())};
_.f.onSliderChange=function(){var a=_.E(this.hostElement).querySelector("#color-slider");a.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(a.immediateValue),this.updateSliderKnobAndGradientStyles(a.immediateValue));this.updateSliderAria()};
_.f.updateSliderAria=function(){var a=_.E(this.hostElement).querySelector("#color-slider"),b=_.E(this.hostElement).querySelector("#color-slider");b=_.Vp(this.data.notches[b.immediateValue].tierValue);_.jaa()&&_.go(this.hostElement,"iron-announce",{text:b});a.setAttribute("aria-valuetext",b)};
_.f.updateSuperThanksSelectedTierEntity=function(a){if(a!==this.immediateValue){var b,c,d=this==null?void 0:(b=this.data)==null?void 0:(c=b.superThanksSelectedTierEntity)==null?void 0:c.key;d&&d.length>0&&this.ytdReduxBehavior.dispatch(_.vu("superThanksSelectedTierEntity",d,{key:d,index:a}))}};
_.f.onDarkModeToggledAction=function(a){this.isDarkTheme=a};
_.f.updateSliderKnobAndGradientStyles=function(a){this.immediateValue=a;a=this.data.notches[a];if(a==null?0:a.knobColorArgb)var b={"--ytd-pdg-color-slider-knob-color":_.Cq(a.knobColorArgb)};(a==null?0:a.linearGradientCssStyle)&&b!==null&&(b=Object.assign({},b,{"--ytd-pdg-color-slider-active-color":a==null?void 0:a.linearGradientCssStyle}));b!==null&&_.dr(this.hostElement,b)};
var F3=oVc;F3.prototype.onSliderChange=F3.prototype.onSliderChange;F3.prototype.onSliderImmediateChange=F3.prototype.onSliderImmediateChange;F3.prototype.dataChanged=F3.prototype.dataChanged;_.U([_.O(),_.W("design:type",Object)],F3.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],F3.prototype,"immediateValue",void 0);_.U([_.O(),_.W("design:type",Number)],F3.prototype,"maxMarkers",void 0);
_.U([_.O({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:Vtc}),_.W("design:type",Object)],F3.prototype,"superThanksSelectedTierEntity",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],F3.prototype,"isDarkTheme",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],F3.prototype,"ytdReduxBehavior",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],F3.prototype,"dataChanged",null);
_.U([_.M("immediate-value-change"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],F3.prototype,"onSliderImmediateChange",null);_.U([_.M("change"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],F3.prototype,"onSliderChange",null);F3=_.U([_.Q({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],F3);
_.S(F3,"ytd-pdg-color-slider-renderer",function(){if(nVc!==void 0)return nVc;var a=document.createElement("template");_.B(a,'\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>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return nVc=a},{mode:1});var pVc;var qVc;var G3=null;
_.qr({is:"ytd-comment-input",_template:function(){if(qVc!==void 0)return qVc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return qVc=a},
behaviors:[_.bLa.YtHostElementBehavior,_.BD,_.LG.YtComponentBehavior,_.aH.YtRendererstamperBehavior,_.mVb.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 _.PH}},
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",_.er(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;_.sC();this.focus()},
detached:function(){document.removeEventListener("tap",_.er(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(a){a=a.detail;a=a.isCustomEmoji?a.shortcuts[0]:a.emojiId;var b=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(b,a);this.maybeUpdateTextDirection_();_.go(this.hostElement,"input")},
getInputRange_:function(){var a=_.lv();if(a){a=a.getBrowserRangeObject();for(var b=a.commonAncestorContainer;b;){if(b===this.getEditableTextArea_())return a;b=b.parentNode}}a=this.getEditableTextArea_();a=_.PC(a,a.childNodes.length);a.select();return a.getBrowserRangeObject()},
insertTextWithEmojis_:function(a,b,c){(b=this.emojiManager.createDocumentFragment(b,!0,!1,c===void 0?!0:c))&&b.childNodes.length!==0&&(a.collapsed||a.deleteContents(),c=b.lastChild,a.insertNode(b),_.Qqb(c).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var a=_.lv();if(a){var b=a.JSC$9073_getStartNode(),c=a.JSC$9073_getEndNode();if(Ixc(b)&&Ixc(c)){var d=a.JSC$9073_getStartOffset(),e;if(_.vx&&b.nodeType===Node.ELEMENT_NODE&&(e=_.Ccb(b)))_.PC(e,0).select();else{e=iZ(b)?b:_.Ef(b,iZ);var g=iZ(c)?c:_.Ef(c,iZ);if(e||g)if(a.isCollapsed()){if(b.nodeType===Node.TEXT_NODE){a=!0;d===b.length&&(a=!1);if(G3==="end"||G3==="right")a=!1;b=b.parentNode;a=[].concat(_.Be(b.parentNode.childNodes)).indexOf(b)+(a?0:1);_.PC(b.parentNode,a).select()}}else e?
e.previousSibling&&e.previousSibling.length>0?_.QC(c,a.JSC$9073_getEndOffset(),e.previousSibling,e.previousSibling.length-1).select():(b=document.createTextNode("\u200b"),e.parentNode.insertBefore(b,e),_.QC(c,a.JSC$9073_getEndOffset(),b,0).select()):g&&(g.nextSibling&&g.nextSibling.length>0?_.QC(b,a.JSC$9073_getStartOffset(),g.nextSibling,1).select():(c=document.createTextNode("\u200b"),g.parentNode.insertBefore(c,g.nextSibling),_.QC(b,a.JSC$9073_getStartOffset(),c,c.length).select()));G3=null}}else G3=
null}else G3=null},
leftKeyPressed_:function(){G3="left"},
rightKeyPressed_:function(){G3="right"},
endKeyPressed_:function(){G3="end"},
maybeDeleteChip_:function(){var a=Oxc(!0);if(a){var b=_.lv(),c=b.JSC$9073_getStartNode();b=b.JSC$9073_getStartOffset();_.KC(c,b,a,a.childNodes.length).select()}},
maybeBackspaceChip_:function(){var a=Oxc(!1);if(a){var b=_.lv(),c=b.JSC$9073_getStartNode();b=b.JSC$9073_getStartOffset();_.KC(c,b,a,0).select()}},
maybeBackspaceChipWordMode_:function(a){var b=_.lv();if(b.isCollapsed()){var c=b.JSC$9073_getStartNode();b=b.JSC$9073_getStartOffset();var d=Pxc(c,b,!0);d&&(_.KC(c,b,d,0).select(),document.execCommand("delete"),a.preventDefault(),a.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(a){var b=_.lv();if(b.isCollapsed()){var c=b.JSC$9073_getStartNode();b=b.JSC$9073_getStartOffset();var d=Pxc(c,b,!1);d&&(_.KC(c,b,d,d.childNodes.length).select(),document.execCommand("delete"),a.preventDefault(),a.stopImmediatePropagation())}},
onContentClick:function(a){a.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(a){a.defaultPrevented||a.currentTarget.tagName==="YTD-COMMENT-INPUT"&&iZ(a.target)&&a.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.E(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.E(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(a,b){a=Kxc(a,this.emojiManager,b).cloneNode(!0);for(b=a.firstChild;b;)if(b.nodeType!==1)b=b.nextSibling;else switch(b.tagName){case "BR":var c=_.Py();_.Kcb(c,b);b=c.nextSibling;break;case "DIV":(c=b.lastChild)&&b.nextSibling&&_.Ty(_.Py(),c);b.previousSibling&&(b.previousSibling.nodeType===1||b.previousSibling.nodeType===3&&!b.previousSibling.textContent.endsWith("\n"))&&_.Sy(_.Py(),b);c&&c.nodeName==="BR"&&_.mg(c);c=b;b.hasChildNodes()?(b=b.firstChild,
_.Lcb(c)):(b=b.nextSibling,_.mg(c));break;default:b=b.nextSibling}return Qxc(a)},
setTextAreaValue:function(a){a||(a="");var b=this.getEditableFormattedString_();b.text="";this.getEditableTextArea_().innerText="";typeof a==="string"&&(a={runs:[{text:a}]});b.text=a},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();G3=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var a=this.getEditableTextArea_();a&&(_.PC(a,a.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.Ei("HTML_DIR")==="rtl"){var a=this.getEditableTextArea_(),b=this.getTextAreaValue()!==""?"auto":"rtl";a.setAttribute("dir",b)}},
handleInputEvent_:function(){var a=null;if(this.isEmojiButtonDisplayed){var b=this.getInputRange_();b&&(a=this.emojiInput.retrieveTextBeforeRange(b))}this.insertText_(a,!0);this.updateCharCount_();a=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=a.scrollHeight>a.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var a=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:a})},
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(a){this.isEmojiButtonDisplayed&&(a.preventDefault(),a.stopImmediatePropagation(),a=a.clipboardData.getData("text/plain"),this.insertText_(a,!1,!1),_.go(this.hostElement,"input"))},
insertText_:function(a,b,c){b=b===void 0?!1:b;c=c===void 0?!0:c;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&a){var d=this.getInputRange_().cloneRange();this.emojiManager&&d&&(b&&this.emojiInput.offsetStartOfRangeBy(d,a.length),this.insertTextWithEmojis_(d,a,c),Jxc(this.getEditableTextArea_().lastChild)||(d=this.getInputRange_().cloneRange()),d&&(this.emojiInput.updateSuggestions(d,a),this.updateSuggestionOffset_(d)))}},
getSimpleString:_.Vp,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(a){return a?"focused":"not-focused"},
computePlaceholderText_:function(a){return this.getSimpleString(a)},
computeEditableText_:function(a){return this.getSimpleString(a)},
onPrefilledContentDismissed_:function(a){a.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(a,b){a?this.fire("yt-autonav-pause-focus"):b!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(a){var b=this.getEditableTextArea_();[].concat(_.Be(a.dataTransfer.items)).forEach(function(c){c.kind==="string"&&c.type.match("^text/plain")&&c.getAsString(function(d){b.appendChild(document.createTextNode(d))})});
a.preventDefault()},
preventDefault_:function(a){a.preventDefault()},
onSuggestionInsert_:function(a){this.insertTextWithEmojis_(a.detail.range,a.detail.text)},
onEmojiSuggestionClick_:function(a){this.emojiInput.insertSuggestion(a.detail)},
updateSuggestionOffset_:function(a){if(this.emojiInput&&_.E(this.emojiInput).querySelector("#dropdown")){var b=this.getEditableTextArea_().getBoundingClientRect().bottom,c=a.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(b-c)+5;b=this.getEditableTextArea_().getBoundingClientRect().left;a=a.getBoundingClientRect().left-b;_.E(this.emojiInput).querySelector("#dropdown").style.marginLeft=a+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.Ek("yt-post"));return this.localStorage}});var rVc=function(){var a=_.P.apply(this,arguments)||this;a.currentCommentOptionIndex=0;a.isEmojiPickerDisplayed=!1;a.emojiManager=_.PH;a.isUgcEmpty=!1;a.userGeneratedCommentChangedHandler=function(){_.go(a.hostElement,"ytd-pdg-user-generated-comment-changed");a.isEmojiYtdCommentInputEnabled&&(a.isUgcEmpty=!a.ytdCommentInputEl.getTextAreaValue())};
a.pasteHandler=function(b){b.preventDefault();b.stopImmediatePropagation();var c;if(b=(c=b.clipboardData)==null?void 0:c.getData("text/plain"))c=document.getSelection().getRangeAt(0),c.collapsed||c.deleteContents(),b=document.createTextNode(b),c.insertNode(b),c.selectNodeContents(b),c.collapse(!1),b=window.getSelection(),b.removeAllRanges(),b.addRange(c)};
a.onDocumentClick=function(b){if(a.isEmojiPickerDisplayed){var c,d,e;!(b.target instanceof Node)||(c=b.composedPath())!=null&&c.includes(a.editableTextEl)||(d=b.composedPath())!=null&&d.includes(a.emojiButtonEl)||(e=b.composedPath())!=null&&e.includes(a.emojiPickerEl)||(a.isEmojiPickerDisplayed=!1)}};
return a};
_.z(rVc,_.P);_.f=rVc.prototype;_.f.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.f.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.f.detached=function(){var a;(a=this.contentEl)==null||a.removeEventListener("input",this.userGeneratedCommentChangedHandler);var b;(b=this.contentEl)==null||b.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.f.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.f.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var a;this.contentEl.textContent=this.rendererBehavior.getSimpleString((a=this.data)==null?void 0:a.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.f.reloadEmojis=function(){this.emojiPickerEl&&_.y(this.emojiPicker,_.CBb)&&this.emojiPickerEl.updateEmojiCategories()};
_.f.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.dr(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.f.handleBackgroundColorStyling=function(){var a;if((a=this.currentCommentOption)==null?0:a.commentBackgroundColorArgb){var b;_.dr(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.Cq((b=this.currentCommentOption)==null?void 0:b.commentBackgroundColorArgb)})}else _.dr(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.f.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var a;(a=this.contentEl)==null||a.focus()}};
_.f.onEditButtonClick=function(a){var b=document.getSelection();b&&this.contentEl&&(a.stopPropagation(),a.preventDefault(),b.selectAllChildren(this.contentEl),b.collapseToEnd())};
_.f.onContentDrop=function(a){var b=this;if(a.dataTransfer){a=_.h(a.dataTransfer.items);for(var c=a.next();!c.done;c=a.next())c=c.value,c.kind==="string"&&c.type.match("^text/plain")&&c.getAsString(function(d){var e;(e=b.contentEl)==null||e.appendChild(document.createTextNode(d))})}};
_.f.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.f.getUserGeneratedCommentText=function(){var a,b=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(a=this.contentEl)==null?void 0:a.textContent;return b?b.trim():""};
_.f.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.f.onEmojiSelect=function(a){this.ytdCommentInputEl.onEmojiSelect(a)};
_.Vm.Object.defineProperties(rVc.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.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 a;return!((a=this.currentCommentOption)==null||!a.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var a;if(_.y((a=this.currentCommentOption)==null?void 0:a.chipRenderer,_.MDb)){var b;return _.y((b=this.currentCommentOption)==null?void 0:b.chipRenderer,_.MDb)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var a,b;return((a=this.data)==null?0:a.commentOptionRenderers)?_.y((b=this.data)==null?void 0:b.commentOptionRenderers[this.superThanksSelectedTierEntity.index],PJc):void 0}var c,d;return((c=this.data)==null?0:c.commentOptionRenderers)?_.y((d=this.data)==null?void 0:d.commentOptionRenderers[this.currentCommentOptionIndex],PJc):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var a;return this.rendererBehavior.getSimpleString((a=this.data)==null?void 0:a.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var a;return this.rendererBehavior.getSimpleString((a=this.data)==null?void 0:a.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var a,b;return(b=_.y((a=this.data)==null?void 0:a.commentDialog,_.wzb))==null?void 0:b.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var a,b;return(b=_.y((a=this.data)==null?void 0:a.commentDialog,_.wzb))==null?void 0:b.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var a,b;return(b=_.y((a=this.data)==null?void 0:a.commentDialog,_.wzb))==null?void 0:b.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var a,b,c=(b=_.y((a=this.data)==null?void 0:a.commentDialog,_.wzb))==null?void 0:b.emojiPicker;if(!_.y(c,_.CBb)||!_.y(c,_.CBb).categories)return!1;a=function(g){return g.emojiPickerCategoryRenderer?g.emojiPickerCategoryRenderer.emojiIds&&g.emojiPickerCategoryRenderer.emojiIds.length>0:g.emojiPickerUpsellCategoryRenderer?g.emojiPickerUpsellCategoryRenderer.emojis&&g.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var d,e;return((d=_.y(c,_.CBb))==null?0:(e=d.categories)==null?0:e.find(a))?!0:!1}}});
var H3=rVc;H3.prototype.onEmojiSelect=H3.prototype.onEmojiSelect;H3.prototype.dataChanged=H3.prototype.dataChanged;H3.prototype.currentCommentOptionChanged=H3.prototype.currentCommentOptionChanged;_.U([_.H(_.LI),_.W("design:type",Object)],H3.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],H3.prototype,"rendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],H3.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.gr("#content-dom-if"),_.W("design:type",_.sr)],H3.prototype,"contentDomIfEl",void 0);_.U([_.gr("#content-no-emojis"),_.W("design:type",HTMLElement)],H3.prototype,"contentEl",void 0);_.U([_.gr("#container"),_.W("design:type",HTMLElement)],H3.prototype,"containerEl",void 0);_.U([_.gr("#comment-chip-container"),_.W("design:type",HTMLElement)],H3.prototype,"paidCommentChipContainerEl",void 0);_.U([_.gr("#text-input"),_.W("design:type",HTMLElement)],H3.prototype,"editableTextEl",void 0);
_.U([_.gr("#emoji-button"),_.W("design:type",HTMLElement)],H3.prototype,"emojiButtonEl",void 0);_.U([_.gr("#emoji-picker > yt-emoji-picker-renderer"),_.W("design:type",Object)],H3.prototype,"emojiPickerEl",void 0);_.U([_.gr("#text-input > ytd-comment-input"),_.W("design:type",Object)],H3.prototype,"ytdCommentInputEl",void 0);_.U([_.O(),_.W("design:type",Object)],H3.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],H3.prototype,"currentCommentOptionIndex",void 0);
_.U([_.O({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:Vtc}),_.W("design:type",Object)],H3.prototype,"superThanksSelectedTierEntity",void 0);_.U([_.O(),_.W("design:type",Object)],H3.prototype,"isEmojiPickerDisplayed",void 0);_.U([_.O(),_.W("design:type",Object)],H3.prototype,"emojiManager",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],H3.prototype,"isUgcEmpty",void 0);
_.U([_.N("currentCommentOption"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],H3.prototype,"currentCommentOptionChanged",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],H3.prototype,"dataChanged",null);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],H3.prototype,"isEmojiYtdCommentInputEnabled",null);
_.U([_.K("data.title"),_.W("design:type",Object),_.W("design:paramtypes",[])],H3.prototype,"title",null);_.U([_.K("data.authorText"),_.W("design:type",Object),_.W("design:paramtypes",[])],H3.prototype,"channelName",null);_.U([_.K("data.commentOptionRenderers","currentCommentOption"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],H3.prototype,"shouldShowPaidCommentChipRenderer",null);
_.U([_.K("data.commentOptionRenderers","currentCommentOption"),_.W("design:type",Object),_.W("design:paramtypes",[])],H3.prototype,"paidCommentChipRenderer",null);_.U([_.K("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],H3.prototype,"currentCommentOption",null);
_.U([_.K("data.defaultCommentText","superThanksSelectedTierEntity"),_.W("design:type",Object),_.W("design:paramtypes",[])],H3.prototype,"commentText",null);_.U([_.K("data.placeholderText"),_.W("design:type",Object),_.W("design:paramtypes",[])],H3.prototype,"placeholderText",null);_.U([_.K("data.commentDialog.commentDialogRenderer.editableText"),_.W("design:type",Object),_.W("design:paramtypes",[])],H3.prototype,"editableText",null);
_.U([_.K("data.commentDialog.commentDialogRenderer.emojiButton"),_.W("design:type",Object),_.W("design:paramtypes",[])],H3.prototype,"emojiButton",null);_.U([_.K("data.commentDialog.commentDialogRenderer.emojiPicker"),_.W("design:type",Object),_.W("design:paramtypes",[])],H3.prototype,"emojiPicker",null);
_.U([_.K("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],H3.prototype,"isEmojiButtonDisplayed",null);_.U([_.M("yt-emoji-select"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],H3.prototype,"onEmojiSelect",null);H3=_.U([_.Q({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],H3);
_.S(H3,"ytd-pdg-comment-preview-renderer",function(){if(pVc!==void 0)return pVc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return pVc=a},{mode:2});var sVc;var tVc=function(){var a=_.P.apply(this,arguments)||this;a.selected=!1;return a};
_.z(tVc,_.P);_.f=tVc.prototype;_.f.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.f.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.f.dataChanged=function(){this.data&&(_.Zq(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.dr(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.Cq(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.Cq(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.f.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.f.onClick=function(){this.logClick()};
_.f.onKeyboardSelect=function(){_.go(this.hostElement,"tap");this.onClick()};
_.f.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
var V3=tVc;V3.prototype.onClick=V3.prototype.onClick;V3.prototype.selectedChanged=V3.prototype.selectedChanged;V3.prototype.dataChanged=V3.prototype.dataChanged;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],V3.prototype,"componentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],V3.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.BD),_.W("design:type",Object)],V3.prototype,"ironA11yKeysBehavior",void 0);
_.U([_.H(_.Fr),_.W("design:type",Object)],V3.prototype,"ironSelectableBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],V3.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],V3.prototype,"shownThumbnail",void 0);_.U([_.O(),_.W("design:type",Object)],V3.prototype,"basePriceText",void 0);_.U([_.O(),_.W("design:type",Object)],V3.prototype,"purchaseCommand",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],V3.prototype,"selected",void 0);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],V3.prototype,"dataChanged",null);_.U([_.N("selected"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],V3.prototype,"selectedChanged",null);_.U([_.M("click"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],V3.prototype,"onClick",null);
V3=_.U([_.Q({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],V3);
_.S(V3,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(sVc!==void 0)return sVc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return sVc=a},{mode:1});var uVc=function(){var a=_.P.apply(this,arguments)||this;a.selectedItemIndex=0;a.buyButtonDisabled=!1;return a};
_.z(uVc,_.P);_.f=uVc.prototype;
_.f.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]]"}}}}}};
_.f.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var a;var b=(a=_.y(this.data.colorSlider,OJc))==null?void 0:a.notches[this.selectedItemIndex].purchaseCommand}else{var c;b=(c=_.y(this.data.selectableItemButtons[this.selectedItemIndex],RJc))==null?void 0:c.purchaseCommand}if(b){a=_.y(b,_.aGb);a.productData||(a.productData={});var d;a.productData={pdgData:{commentMessageText:(d=this.commentPreviewRenderer)==null?void 0:d.getUserGeneratedCommentText()}};
_.go(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(b)}}};
_.f.dataChanged=function(){if(this.data){_.PH.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.WQb(_.PH,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.PH.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var a;this.buyButtonDisabled=!((a=_.y(this.data.commentPreview,QJc))==null||!a.placeholderText);this.updatePriceSelectorStatus();var b;if((b=this.data)==null?0:b.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;a=[];this.data.preloadImages&&(a=this.data.preloadImages);
a=a.map(function(c){return _.Xs(c.thumbnails,1920)});
a=_.h(a);for(b=a.next();!b.done;b=a.next())(b=b.value)&&_.lUa(b).thenCatch(function(){_.Dl(Error("gl"))})}};
_.f.superThanksSelectedTierEntityChanged=function(){var a;(this==null?void 0:(a=this.superThanksSelectedTierEntity)==null?void 0:a.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.f.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.f.updatePriceSelectorStatus=function(){this.isColorSlider?(_.E(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.E(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.E(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.E(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.f.closeBuyFlow=function(){_.ho(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.f.onUserGeneratedContentChanged=function(){var a;this.buyButtonDisabled=!((a=this.commentPreviewRenderer)==null?0:a.getUserGeneratedCommentText())};
_.f.updateSelectedItemIndexFromBinding=function(a){this.selectedItemIndex=a.detail.value};
_.Vm.Object.defineProperties(uVc.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var a;return!((a=this.data)==null||!a.disclaimerText)}}});
var W3=uVc;W3.prototype.onUserGeneratedContentChanged=W3.prototype.onUserGeneratedContentChanged;W3.prototype.closeBuyFlow=W3.prototype.closeBuyFlow;W3.prototype.selectedItemIndexChanged=W3.prototype.selectedItemIndexChanged;W3.prototype.superThanksSelectedTierEntityChanged=W3.prototype.superThanksSelectedTierEntityChanged;W3.prototype.dataChanged=W3.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],W3.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],W3.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],W3.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],W3.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],W3.prototype,"selectedItemIndex",void 0);_.U([_.O(),_.W("design:type",Boolean)],W3.prototype,"isColorSlider",void 0);
_.U([_.O(),_.W("design:type",Object)],W3.prototype,"buyButtonDisabled",void 0);_.U([_.O({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:Vtc}),_.W("design:type",Object)],W3.prototype,"superThanksSelectedTierEntity",void 0);_.U([_.gr("ytd-pdg-comment-preview-renderer"),_.W("design:type",Object)],W3.prototype,"commentPreviewRenderer",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],W3.prototype,"ytdReduxBehavior",void 0);
_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],W3.prototype,"dataChanged",null);_.U([_.N("superThanksSelectedTierEntity"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],W3.prototype,"superThanksSelectedTierEntityChanged",null);_.U([_.N("selectedItemIndex"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],W3.prototype,"selectedItemIndexChanged",null);
_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],W3.prototype,"closeBuyFlow",null);_.U([_.M("ytd-pdg-user-generated-comment-changed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],W3.prototype,"onUserGeneratedContentChanged",null);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],W3.prototype,"isDisclaimerTextShown",null);
W3=_.U([_.Q({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],W3);
_.S(W3,"yt-super-vod-buy-flow-content-renderer",function(){if(mVc!==void 0)return mVc;var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return mVc=a},{mode:1});var vVc;var wVc=function(){var a=_.P.apply(this,arguments)||this;a.lottieAnimationRef={};return a};
_.z(wVc,_.P);_.f=wVc.prototype;_.f.created=function(){_.TD.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.er(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.f.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.go(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.f.detached=function(){this.autoCloseJobId&&_.zk.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.er(this,this.onPopupIronOverlayOpened))};
_.f.dataChanged=function(){var a=this;this.data&&this.data.autoCloseDelay&&(_.ho(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.at(_.zk,function(){a.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.dr(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.f.onDOMLoadedLottie=function(){var a=this,b,c,d=Number((b=this.data)==null?void 0:(c=b.autoCloseDelay)==null?void 0:c.seconds)||0;this.fadeOutJobId=_.at(_.zk,function(){a.lottiePlayerEl.classList.add("fadeout")},(d-.25)*1E3);
this.autoCloseJobId=_.at(_.zk,function(){a.closePopup()},d*1E3)};
_.f.openPopup=function(){this.ironOverlayBehavior.open()};
_.f.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.ho(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.no(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&(_.x("web_ytd_desktop_image_overlay_renderer_command_resolver_ks")?_.mo(this.hostElement,[this.data.onCloseSurveyCommand]):_.v().resolve(_.Xi).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}})),
this.autoCloseJobId&&_.zk.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.zk.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&this.lottiePlayerEl.classList.remove("fadeout"))};
_.f.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var a,b;(a=this.lottieAnimationRef)==null||(b=a.lottieEl)==null||b.destroy();a=this.data.lottie;var c,d;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:a.url+"_"+Math.random(),path:a.url,autoplay:!0,loop:(d=(c=a.settings)==null?void 0:c.loop)!=null?d:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.Vm.Object.defineProperties(wVc.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var a,b;return!!((a=this.data)==null?0:(b=a.lottie)==null?0:b.url)}}});
var X3=wVc;X3.prototype.maybeInitializeLottie=X3.prototype.maybeInitializeLottie;X3.prototype.dataChanged=X3.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],X3.prototype,"rendererBehavior",void 0);_.U([_.H(_.YD),_.W("design:type",Object)],X3.prototype,"ironOverlayBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],X3.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],X3.prototype,"lottiePlayerProps",void 0);
_.U([_.O(),_.W("design:type",Object)],X3.prototype,"lottieAnimationRef",void 0);_.U([_.gr("ytd-lottie-player"),_.W("design:type",HTMLElement)],X3.prototype,"lottiePlayerEl",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],X3.prototype,"dataChanged",null);_.U([_.K("data"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],X3.prototype,"hasLottieAnimation",null);
_.U([_.N("data.lottie.url"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],X3.prototype,"maybeInitializeLottie",null);X3=_.U([_.Q({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],X3);
_.S(X3,"ytd-desktop-image-overlay-renderer",function(){if(vVc!==void 0)return vVc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return vVc=a},{mode:1});var xVc;var yVc=function(){return _.P.apply(this,arguments)||this};
_.z(yVc,_.P);_.f=yVc.prototype;_.f.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"}}}}};
_.f.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",_.er(this,this.closePopup))};
_.f.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.er(this,this.closePopup))};
_.f.dataChanged=function(){_.ko(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.y(this.data.header,NJc)&&(this.hasBackgroundBanner=!!_.y(this.data.header,NJc).backgroundBanner)};
_.f.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.er(this,this.closePopup))};
_.f.closePopup=function(){this.data&&this.data.onCloseCommand&&_.mo(this.hostElement,[this.data.onCloseCommand])};
var Y3=yVc;Y3.prototype.handleBuyflowSelectionSubmitted=Y3.prototype.handleBuyflowSelectionSubmitted;Y3.prototype.dataChanged=Y3.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],Y3.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],Y3.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],Y3.prototype,"data",void 0);
_.U([_.O({value:!0,reflectToAttribute:!0}),_.W("design:type",Boolean)],Y3.prototype,"hasBackgroundBanner",void 0);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Y3.prototype,"dataChanged",null);_.U([_.M("yt-pdg-buy-flow-selection-submitted"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Y3.prototype,"handleBuyflowSelectionSubmitted",null);
Y3=_.U([_.Q({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],Y3);
_.S(Y3,"ytd-pdg-buy-flow-renderer",function(){if(xVc!==void 0)return xVc;var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return xVc=a},{mode:1});var zVc;var AVc=function(){var a=_.P.apply(this,arguments)||this;a.isOpen=!1;a.isPlaylistCreated=!1;return a};
_.z(AVc,_.P);_.f=AVc.prototype;_.f.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.f.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.go(this.hostElement,"yt-refit")};
_.f.onCreateTap=function(){var a=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.mo(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(b,c){if(!_.x("killswitch_ep_in_create_playlist_response")&&(c==null?0:c.actions))for(b=_.h(c.actions),c=b.next();!c.done;c=b.next())c=c.value,_.y(c,_.Ow)&&a.ytComponentBehavior.resolveCommand(c)}}]),this.isPlaylistCreated=!0)};
_.f.onKeydown=function(a){if(a.keyCode===13)this.onCreateTap()};
_.f.onServiceRequestCompleted=function(a){a.stopPropagation();_.ho(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.f.computePrivacyBadge=function(a){return a?[{metadataBadgeRenderer:a}]:[]};
var Z3=AVc;Z3.prototype.onServiceRequestCompleted=Z3.prototype.onServiceRequestCompleted;Z3.prototype.onKeydown=Z3.prototype.onKeydown;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],Z3.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],Z3.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],Z3.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],Z3.prototype,"isOpen",void 0);
_.U([_.O(),_.W("design:type",Object)],Z3.prototype,"isPlaylistCreated",void 0);_.U([_.O({value:{REQUIRED_LABEL:_.to("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.to("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.W("design:type",Object)],Z3.prototype,"addToStrings",void 0);_.U([_.O({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.W("design:type",Array)],Z3.prototype,"privacyBadge",void 0);
_.U([_.gr("#privacy-input"),_.W("design:type",Object)],Z3.prototype,"privacyInput",void 0);_.U([_.gr("#name-input"),_.W("design:type",Object)],Z3.prototype,"nameInput",void 0);_.U([_.M("keydown"),_.W("design:type",Function),_.W("design:paramtypes",[KeyboardEvent]),_.W("design:returntype")],Z3.prototype,"onKeydown",null);_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],Z3.prototype,"onServiceRequestCompleted",null);
Z3=_.U([_.Q({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],Z3);
_.S(Z3,"ytd-add-to-playlist-create-renderer",function(){if(zVc!==void 0)return zVc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return zVc=a},{mode:1});var BVc;var CVc;var DVc=function(){var a=_.P.apply(this,arguments)||this;a.transferState="TRANSFER_STATE_UNKNOWN";return a};
_.z(DVc,_.P);DVc.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
DVc.prototype.onCheckboxChange=function(a){var b=this;this.data&&_.Dr(this,"yt-playlist-checkbox-changed",function(){var c=_.Qq(a).checked?b.data.addToPlaylistServiceEndpoint:b.data.removeFromPlaylistServiceEndpoint;c&&(_.x("web_ytd_playlist_add_to_option_renderer_command_resolver_ks")?_.mo(b.hostElement,[c]):_.v().resolve(_.Xi).resolveCommand(c,{form:{element:b.hostElement}}));_.x("dl_playlist_killswitch")||b.transferState!=="TRANSFER_STATE_UNKNOWN"&&b.transferState!=="TRANSFER_STATE_FAILED"&&b.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:b.data.playlistId,
action:"ACTION_SYNC"}})},100)};
DVc.prototype.computeIconType=function(a){return a?"yt-icons:"+a.toLowerCase():null};
var $3=DVc;$3.prototype.dataChanged=$3.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],$3.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],$3.prototype,"data",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],$3.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],$3.prototype,"ytComponentBehavior",void 0);_.U([_.gr("#checkbox"),_.W("design:type",HTMLInputElement)],$3.prototype,"checkbox",void 0);
_.U([_.O({selector:_.Kp,selectorArgs:["data.playlistId"]}),_.W("design:type",String)],$3.prototype,"transferState",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],$3.prototype,"dataChanged",null);$3=_.U([_.Q({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],$3);
_.S($3,"ytd-playlist-add-to-option-renderer",function(){if(CVc!==void 0)return CVc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return CVc=a},{mode:1});_.am(Rxc);_.dt(Rxc,"ytd-menu-title-renderer",{propNames:["data"]});var EVc=function(){var a=_.P.apply(this,arguments)||this;a.addToStrings={ADD_TO_DROPDOWN_LABEL:_.to("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};a.closeButtonAriaLabel=_.to("SBOX_INAPPROPRIATE_CANCEL");a.dialog=_.x("desktop_add_to_playlist_renderer_dialog_popup");return a};
_.z(EVc,_.P);_.f=EVc.prototype;_.f.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"}}}};
_.f.onPopupOpened=function(){_.$q(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.f.onPopupClosed=function(){_.$q(this.playlists,"scrollable",!1)};
_.f.computeAriaLabel=function(){var a;if(this==null?0:(a=this.data)==null?0:a.actions){a=_.h(this.data.actions);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.menuTitleRenderer)return _.Vp(b.menuTitleRenderer.title)}};
_.f.onTapClose=function(){_.ho(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.Vm.Object.defineProperties(EVc.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var a;if(this==null?0:(a=this.data)==null?0:a.actions){a=_.h(this.data.actions);for(var b=a.next();!b.done;b=a.next())if(b=b.value,b.menuTitleRenderer)return b.menuTitleRenderer}return!1}}});
var a4=EVc;a4.prototype.onPopupClosed=a4.prototype.onPopupClosed;a4.prototype.onPopupOpened=a4.prototype.onPopupOpened;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],a4.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.CK.YtEventForwardingBehavior),_.W("design:type",Object)],a4.prototype,"ytEventForwardingBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],a4.prototype,"ytRendererStamperBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],a4.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],a4.prototype,"addToStrings",void 0);_.U([_.O({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.W("design:type",String)],a4.prototype,"ariaLabel",void 0);_.U([_.O(),_.W("design:type",String)],a4.prototype,"closeButtonAriaLabel",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],a4.prototype,"dialog",void 0);
_.U([_.gr("#playlists"),_.W("design:type",HTMLElement)],a4.prototype,"playlists",void 0);_.U([_.gr("ytd-add-to-playlist-create-renderer"),_.W("design:type",Object)],a4.prototype,"createRenderer",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],a4.prototype,"menuTitleRenderer",null);_.U([_.M("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],a4.prototype,"onPopupOpened",null);
_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],a4.prototype,"onPopupClosed",null);a4=_.U([_.Q({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],a4);
_.S(a4,"ytd-add-to-playlist-renderer",function(){if(BVc!==void 0)return BVc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return BVc=a},{mode:1});var FVc;var GVc=function(){var a=_.P.apply(this,arguments)||this;a.isPlaylistEditComplete=!1;a.isCollabEngagementDisabled=!1;a.closeButtonAriaLabel=_.to("SBOX_INAPPROPRIATE_CANCEL");a.saveButton={title:_.to("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"};a.onValueChanged=function(){a.updateSaveButtonState();a.computeCollabEngagementDisabled()};
return a};
_.z(GVc,_.P);_.f=GVc.prototype;_.f.attached=function(){this.JSC$18102_scroller&&(this.JSC$18102_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18102_scroller.attached&&typeof this.JSC$18102_scroller.attached==="function"&&this.JSC$18102_scroller.attached())};
_.f.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.f.onPopupClosed=function(){this.reset()};
_.f.close=function(){_.ho(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.f.onClickSave=function(){var a=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var b=[];this.nameInput.value!==null&&b.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&b.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var c=Number(this.privacyInput.value);isNaN(c)||b.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:c})}this.votingInput.value!==null&&(c=this.votingInput.value)&&b.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:c});if(b.length>0){var d;_.y((d=this.data)==null?void 0:d.updateSettingsEndpoint,_.LE).actions=b;var e;if((e=this.data)==null?0:e.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){a.close()}}}),this.isPlaylistEditComplete=!0}}};
_.f.computePrivacyBadge=function(a){return a?[{metadataBadgeRenderer:a}]:[]};
_.f.computeEditorData=function(a){var b,c;return a==null?void 0:(b=a.sections)==null?void 0:(c=b[0])==null?void 0:c.playlistSettingsEditorCasualSectionRenderer};
_.f.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.f.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}}}}}};
_.f.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"}))};
_.f.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.f.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.f.isNameChanged=function(){var a,b,c;return(((a=this.editorData)==null?void 0:(b=a.name)==null?void 0:(c=b.textInputFormFieldRenderer)==null?void 0:c.value)||"")!==(this.nameInput.value||"")};
_.f.isDescriptionChanged=function(){var a,b,c;return(((a=this.editorData)==null?void 0:(b=a.description)==null?void 0:(c=b.textInputFormFieldRenderer)==null?void 0:c.value)||"")!==(this.descriptionInput.value||"")};
_.f.isPrivacyChanged=function(){var a,b,c,d,e,g,k,m;return((k=(a=this.editorData)==null?void 0:(b=a.privacy)==null?void 0:(c=b.dropdownFormFieldRenderer)==null?void 0:(d=c.dropdown)==null?void 0:(e=d.dropdownRenderer)==null?void 0:(g=e.entries)==null?void 0:g.find(function(n){var r;return n==null?void 0:(r=n.privacyDropdownItemRenderer)==null?void 0:r.isSelected}))==null?void 0:(m=k.privacyDropdownItemRenderer)==null?void 0:m.int32Value)!==this.privacyInput.value};
_.f.isVotingChanged=function(){var a,b,c,d,e,g,k,m;return((k=(a=this.editorData)==null?void 0:(b=a.voting)==null?void 0:(c=b.dropdownFormFieldRenderer)==null?void 0:(d=c.dropdown)==null?void 0:(e=d.dropdownRenderer)==null?void 0:(g=e.entries)==null?void 0:g.find(function(n){var r;return n==null?void 0:(r=n.privacyDropdownItemRenderer)==null?void 0:r.isSelected}))==null?void 0:(m=k.privacyDropdownItemRenderer)==null?void 0:m.int32Value)!==this.votingInput.value};
var b4=GVc;b4.prototype.onPopupClosed=b4.prototype.onPopupClosed;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],b4.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],b4.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.CK.YtEventForwardingBehavior),_.W("design:type",Object)],b4.prototype,"ytEventForwardingBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],b4.prototype,"ytRendererStamperBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],b4.prototype,"data",void 0);_.U([_.O({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.W("design:type",Array)],b4.prototype,"privacyBadge",void 0);_.U([_.O({computed:"computeEditorData(data)"}),_.W("design:type",Object)],b4.prototype,"editorData",void 0);_.U([_.O(),_.W("design:type",Object)],b4.prototype,"isPlaylistEditComplete",void 0);_.U([_.O(),_.W("design:type",Object)],b4.prototype,"isCollabEngagementDisabled",void 0);
_.U([_.O({value:{REQUIRED_LABEL:_.to("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.to("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.W("design:type",Object)],b4.prototype,"addToStrings",void 0);_.U([_.O(),_.W("design:type",String)],b4.prototype,"closeButtonAriaLabel",void 0);_.U([_.O(),_.W("design:type",Object)],b4.prototype,"saveButton",void 0);_.U([_.gr("#name-input"),_.W("design:type",Object)],b4.prototype,"nameInput",void 0);
_.U([_.gr("#description-input"),_.W("design:type",Object)],b4.prototype,"descriptionInput",void 0);_.U([_.gr("#privacy-input"),_.W("design:type",Object)],b4.prototype,"privacyInput",void 0);_.U([_.gr("#voting-input"),_.W("design:type",Object)],b4.prototype,"votingInput",void 0);_.U([_.gr("#scroller"),_.W("design:type",Object)],b4.prototype,"JSC$18102_scroller",void 0);
_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],b4.prototype,"onPopupClosed",null);_.U([_.O(),_.W("design:type",Object)],b4.prototype,"onValueChanged",void 0);b4=_.U([_.Q({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],b4);
_.S(b4,"ytd-playlist-settings-editor-renderer",function(){if(FVc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-settings-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-playlist-settings-editor-renderer">\n  <div id="header-title" class="style-scope ytd-playlist-settings-editor-renderer">\n    <yt-formatted-string text="[[editorData.title]]" class="style-scope ytd-playlist-settings-editor-renderer"></yt-formatted-string>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="close" class="style-scope ytd-playlist-settings-editor-renderer">\n    <yt-icon icon="close" class="style-scope ytd-playlist-settings-editor-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-playlist-settings-editor-renderer">\n  <div id="content" class="style-scope ytd-playlist-settings-editor-renderer">\n    <div id="thumbnail" class="style-scope ytd-playlist-settings-editor-renderer"></div>\n    <div id="edit-playlist-form" class="style-scope ytd-playlist-settings-editor-renderer">\n      <yt-text-input-form-field-renderer id="name-input" data="[[editorData.name.textInputFormFieldRenderer]]" on-value-changed="[[onValueChanged]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </yt-text-input-form-field-renderer>\n      <yt-text-input-form-field-renderer id="description-input" data="[[editorData.description.textInputFormFieldRenderer]]" on-value-changed="[[onValueChanged]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </yt-text-input-form-field-renderer>\n      <ytd-badge-supported-renderer badges="[[privacyBadge]]" hidden="[[!editorData.privacy.metadataBadgeRenderer]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-badge-supported-renderer>\n      <ytd-dropdown-renderer id="privacy-input" data="[[editorData.privacy.dropdownFormFieldRenderer.dropdown.dropdownRenderer]]" hidden="[[!editorData.privacy]]" on-value-changed="onValueChanged" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-dropdown-renderer>\n      <ytd-dropdown-renderer id="voting-input" data="[[editorData.voting.dropdownFormFieldRenderer.dropdown.dropdownRenderer]]" disabled="[[isCollabEngagementDisabled]]" hidden="[[!editorData.voting]]" on-value-changed="onValueChanged" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-dropdown-renderer>\n      <div id="collaborate" class="style-scope ytd-playlist-settings-editor-renderer">\n        <yt-list-item-view-model data="[[editorData.collaborate.listItemViewModel]]" disabled="[[isCollabEngagementDisabled]]" hidden$="[[!editorData.collaborate]]" class="style-scope ytd-playlist-settings-editor-renderer"></yt-list-item-view-model>\n      </div>\n    </div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="actions" class="style-scope ytd-playlist-settings-editor-renderer">\n  <yt-button-view-model data="[[saveButton]]" scoping-class-name="[[is]]" on-click="onClickSave" class="style-scope ytd-playlist-settings-editor-renderer">\n  </yt-button-view-model>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);FVc=a}a=FVc;return a},{mode:1});var HVc;_.It("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var IVc=function(){return _.P.apply(this,arguments)||this};
_.z(IVc,_.P);_.f=IVc.prototype;_.f.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}}}}}};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.f.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 a=this.get("data.nextButton.buttonRenderer.navigationEndpoint");a&&(this.nextNavigationEndpoint=a,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.f.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 a={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",a)}}};
_.f.onPopupOpened=function(a){a.detail!==this&&a.detail!==this.hostElement||!_.x("enable_premium_voluntary_pause")||_.ho(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.f.onNextButtonTap=function(){var a=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);a&&this.ytdOpenPopupBehavior.openPopup(a)};
_.f.updateSelectedResponseIndexFromBinding=function(a){this.selectedResponseIndex=a.detail.value};
var c4=IVc;c4.prototype.onPopupOpened=c4.prototype.onPopupOpened;c4.prototype.onSelectedResponseIndexChange=c4.prototype.onSelectedResponseIndexChange;c4.prototype.dataChanged=c4.prototype.dataChanged;_.U([_.H(_.YH),_.W("design:type",Object)],c4.prototype,"ytdOpenPopupBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],c4.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],c4.prototype,"ytRendererstamperBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],c4.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Number)],c4.prototype,"selectedResponseIndex",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],c4.prototype,"dataChanged",null);_.U([_.N("selectedResponseIndex"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],c4.prototype,"onSelectedResponseIndexChange",null);
_.U([_.M("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],c4.prototype,"onPopupOpened",null);c4=_.U([_.Q({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],c4);
_.S(c4,"ytd-red-cancel-survey-renderer",function(){if(HVc!==void 0)return HVc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return HVc=a},{mode:1});var JVc;var KVc=function(){var a=_.P.apply(this,arguments)||this;a.closeButtonAriaLabel=_.to("SBOX_INAPPROPRIATE_CANCEL");return a};
_.z(KVc,_.P);KVc.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
KVc.prototype.onClickClose=function(){_.ho(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
var d4=KVc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],d4.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],d4.prototype,"rendererStamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],d4.prototype,"data",void 0);_.U([_.O(),_.W("design:type",String)],d4.prototype,"closeButtonAriaLabel",void 0);d4=_.U([_.Q({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],d4);
_.S(d4,"ytd-search-filter-options-dialog-renderer",function(){if(JVc!==void 0)return JVc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return JVc=a},{mode:1});var LVc;var Uxc=function(){return function(a){a=a.availabilityType;return a===void 0||a==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||a==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var MVc=function(){var a=_.P.apply(this,arguments)||this;a.qualityOptions=[];a.upsellOptions=[];a.showUpsellSection=!1;a.darkerDarkTheme=_.x("web_darker_dark_theme");a.rememberSettingsChecked=!1;return a};
_.z(MVc,_.P);_.f=MVc.prototype;_.f.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}}}}};
_.f.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.f.updateQualityOptions=function(){if(this.formats===void 0)_.ho(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var a=[],b=[];this.showUpsellSection=!1;for(var c=_.h(this.formats),d=c.next();!d.done;d=c.next())(d=d.value)&&(d.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?b.push(d):a.push(d));a.length&&(this.qualityOptions=Txc(a));b.length&&(this.showUpsellSection=!0,this.upsellOptions=Txc(b))}};
_.f.updateRememberString=function(){if(this.downloadQualityPickerEntity)var a=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var b;a=(b=this.data)==null?void 0:b.premiumRememberSettingString}else{var c;a=(c=this.data)==null?void 0:c.rememberSettingString}a=a===void 0?_.to("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):a;this.rememberSettingsCheckboxRenderer={title:_.dp(a),disabled:!1}};
_.f.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.Vm.Object.defineProperties(MVc.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var a;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(a=this.data)==null?void 0:a.qualityFormats}}});
var e4=MVc;e4.prototype.updateRememberString=e4.prototype.updateRememberString;e4.prototype.updateQualityOptions=e4.prototype.updateQualityOptions;e4.prototype.dataChanged=e4.prototype.dataChanged;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],e4.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],e4.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],e4.prototype,"data",void 0);
_.U([_.H(_.LI),_.W("design:type",Object)],e4.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Boolean)],e4.prototype,"selectedUpsellQuality",void 0);_.U([_.O({computed:"computeIcon_(data.premiumIcon)",value:""}),_.W("design:type",String)],e4.prototype,"premiumIcon",void 0);_.U([_.O({selector:Rsc,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.W("design:type",Object)],e4.prototype,"downloadQualityPickerEntity",void 0);
_.U([_.O(),_.W("design:type",Array)],e4.prototype,"qualityOptions",void 0);_.U([_.O(),_.W("design:type",Array)],e4.prototype,"upsellOptions",void 0);_.U([_.O(),_.W("design:type",Object)],e4.prototype,"showUpsellSection",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],e4.prototype,"darkerDarkTheme",void 0);_.U([_.O(),_.W("design:type",Object)],e4.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.U([_.gr("#remember-settings"),_.W("design:type",HTMLInputElement)],e4.prototype,"rememberSettingsCheckbox",void 0);_.U([_.O(),_.W("design:type",Object)],e4.prototype,"rememberSettingsChecked",void 0);_.U([_.O(),_.W("design:type",Function)],e4.prototype,"onRememberSettingsCheckedChanged",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],e4.prototype,"dataChanged",null);
_.U([_.N("downloadQualityPickerEntity"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],e4.prototype,"updateQualityOptions",null);_.U([_.N("selectedUpsellQuality"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],e4.prototype,"updateRememberString",null);e4=_.U([_.Q({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],e4);
_.S(e4,"ytd-download-quality-selector-content",function(){if(LVc!==void 0)return LVc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return LVc=a},{mode:1});var NVc;var OVc=function(){var a=_.P.apply(this,arguments)||this;a.selectedUpsellQuality=!1;a.qualityOptions=[];a.darkerDarkTheme=_.x("web_darker_dark_theme");a.useUpsellDismissAlternate=_.x("use_not_now_dl_upsell_dismiss_cta");a.shouldShowAlternateUpsellDimiss=!1;a.rememberSettings=!1;a.rememberSettingsChecked=!1;a.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};a.rememberSettingsCheckedChanged=function(b){a.rememberSettingsChecked=b};
return a};
_.z(OVc,_.P);_.f=OVc.prototype;
_.f.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.dp(_.to("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.dp(_.to("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.dp(_.to("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.dp(_.to("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.f.updateQualityOptions=function(){this.formats===void 0?_.ho(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=Txc(this.formats)};
_.f.onQualityOptionsSelect=function(a){if(this.qualityOptions&&a){a!==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 b=_.h(this.qualityOptions.entries()),c=b.next();!c.done;c=
b.next()){c=_.h(c.value);var d=c.next().value;c=c.next().value;var e=void 0,g=void 0;if(((e=c)==null?void 0:(g=e.settingsRadioOptionRenderer)==null?void 0:g.id)===a){this.selectedQualityIndex=d;a=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((a=this.formats[d])==null?void 0:a.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.f.onClickSubmit=function(){var a;if((a=this.downloadButtonRenderer)==null||!a.isDisabled){var b,c;a=(c=(b=this.data)==null?void 0:b.onSubmitEndpoint)!=null?c:{};var d,e;if(this.formats&&(((d=_.y(a,_.qu))==null?0:d.videoId)||((e=_.y(a,_.ru))==null?0:e.playlistId))){var g,k,m,n,r,t;b={formatType:(n=(g=this.formats)==null?void 0:(k=g[(m=this.selectedQualityIndex)!=null?m:0])==null?void 0:k.format)!=null?n:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(r=this.getOfflineEndpoint(a))==null?void 0:(t=r.actionParams)==null?void 0:t.settingsAction)};this.getOfflineEndpoint(a).actionParams=b;this.ytComponentBehavior.resolveCommand(a)}_.ho(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.f.onClickUpsell=function(){var a;if((a=this.upsellButtonRenderer)==null||!a.isDisabled){var b,c;a=(c=(b=this.data)==null?void 0:b.upsellEndpoint)!=null?c:{};this.ytComponentBehavior.resolveCommand(a);_.ho(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);b="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var d,e,g,k;b=(k=(d=this.formats)==null?void 0:(e=d[(g=this.selectedQualityIndex)!=null?g:0])==null?void 0:e.format)!=null?k:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:b}})}};
_.f.onClickClose=function(){_.ho(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.f.getOfflineSettingsAction=function(a,b){return a?b===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":b:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.f.getOfflineEndpoint=function(a){return _.y(a,_.qu)?_.y(a,_.qu):_.y(a,_.ru)};
_.Vm.Object.defineProperties(OVc.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.dp(_.to("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var a;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(a=this.data)==null?void 0:a.qualityFormats}}});
var f4=OVc;f4.prototype.updateQualityOptions=f4.prototype.updateQualityOptions;f4.prototype.dataChanged=f4.prototype.dataChanged;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],f4.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],f4.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],f4.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],f4.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],f4.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Number)],f4.prototype,"selectedQualityIndex",void 0);_.U([_.O(),_.W("design:type",Object)],f4.prototype,"selectedUpsellQuality",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],f4.prototype,"ytdReduxBehavior",void 0);
_.U([_.O({selector:Rsc,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.W("design:type",Object)],f4.prototype,"downloadQualityPickerEntity",void 0);_.U([_.O(),_.W("design:type",Array)],f4.prototype,"qualityOptions",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],f4.prototype,"darkerDarkTheme",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],f4.prototype,"useUpsellDismissAlternate",void 0);
_.U([_.O(),_.W("design:type",Object)],f4.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.U([_.O(),_.W("design:type",Object)],f4.prototype,"downloadButtonRenderer",void 0);_.U([_.O(),_.W("design:type",Object)],f4.prototype,"upsellButtonRenderer",void 0);_.U([_.O(),_.W("design:type",Object)],f4.prototype,"cancelButtonRenderer",void 0);_.U([_.O(),_.W("design:type",Object)],f4.prototype,"upsellCancelButtonRenderer",void 0);_.U([_.O(),_.W("design:type",Object)],f4.prototype,"rememberSettings",void 0);
_.U([_.O(),_.W("design:type",Object)],f4.prototype,"rememberSettingsChecked",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],f4.prototype,"dataChanged",null);_.U([_.N("downloadQualityPickerEntity"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],f4.prototype,"updateQualityOptions",null);f4=_.U([_.Q({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],f4);
_.S(f4,"ytd-download-quality-selector-renderer",function(){if(NVc!==void 0)return NVc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return NVc=a},{mode:1});var PVc;var QVc=function(){var a=_.P.apply(this,arguments)||this;a.darkerDarkTheme=_.x("web_darker_dark_theme");return a};
_.z(QVc,_.P);QVc.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
QVc.prototype.configureRendererStamper=function(){return{"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}},"data.nextButton":{id:"next-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}}}};
var g4=QVc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],g4.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],g4.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],g4.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],g4.prototype,"darkerDarkTheme",void 0);_.U([_.O({computed:"computeIcon_(data.infoIcon)"}),_.W("design:type",Object)],g4.prototype,"infoIcon",void 0);
_.U([_.O({computed:"computeIcon_(data.warningIcon)"}),_.W("design:type",Object)],g4.prototype,"warningIcon",void 0);g4=_.U([_.Q({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],g4);
_.S(g4,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(PVc!==void 0)return PVc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return PVc=a},{mode:1});var RVc;var SVc=function(){var a=_.P.apply(this,arguments)||this;a.darkerDarkTheme=_.x("web_darker_dark_theme");return a};
_.z(SVc,_.P);SVc.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
SVc.prototype.configureRendererStamper=function(){return{"data.stepper":{id:"stepper",mapping:{channelTransferStepperRenderer:"ytd-channel-transfer-stepper-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}},"data.signinButton":{id:"signin-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
var h4=SVc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],h4.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],h4.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],h4.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],h4.prototype,"darkerDarkTheme",void 0);h4=_.U([_.Q({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],h4);
_.S(h4,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(RVc!==void 0)return RVc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return RVc=a},{mode:1});var TVc;var UVc=function(){var a=_.P.apply(this,arguments)||this;a.darkerDarkTheme=_.x("web_darker_dark_theme");return a};
_.z(UVc,_.P);UVc.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
UVc.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"}}}}};
UVc.prototype.onServiceRequestSentOrCompleted=function(a,b){b&&b.actions&&b.actions.length>0&&_.ho(this.hostElement,"yt-close-popup-action",[this.is])};
var i4=UVc;i4.prototype.onServiceRequestSentOrCompleted=i4.prototype.onServiceRequestSentOrCompleted;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],i4.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],i4.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],i4.prototype,"darkerDarkTheme",void 0);_.U([_.O(),_.W("design:type",Object)],i4.prototype,"data",void 0);
_.U([_.M("yt-service-request-completed"),_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Wt]),_.W("design:returntype")],i4.prototype,"onServiceRequestSentOrCompleted",null);i4=_.U([_.Q({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],i4);
_.S(i4,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(TVc!==void 0)return TVc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return TVc=a},{mode:1});var VVc;var WVc=function(){var a=_.P.apply(this,arguments)||this;a.darkerDarkTheme=_.x("web_darker_dark_theme");a.submitButtonDisabled=!0;return a};
_.z(WVc,_.P);_.f=WVc.prototype;_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.f.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.f.onDataChanged=function(){var a,b,c;if(((a=this.data)==null?void 0:(b=a.confirmButton)==null?void 0:(c=b.buttonRenderer)==null?void 0:c.isDisabled)!==void 0){var d,e,g;this.submitButtonDisabled=(d=this.data)==null?void 0:(e=d.confirmButton)==null?void 0:(g=e.buttonRenderer)==null?void 0:g.isDisabled}};
_.f.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.f.updateSubmitButtonDisabledFromBinding=function(a){this.submitButtonDisabled=a.detail.value};
_.f.updateSubmitButtonDisabledFromConfirmCheckbox=function(a){this.submitButtonDisabled=!a.detail.value};
var j4=WVc;j4.prototype.onDataChanged=j4.prototype.onDataChanged;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],j4.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],j4.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],j4.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],j4.prototype,"darkerDarkTheme",void 0);
_.U([_.O(),_.W("design:type",Object)],j4.prototype,"submitButtonDisabled",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],j4.prototype,"onDataChanged",null);j4=_.U([_.Q({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],j4);
_.S(j4,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(VVc!==void 0)return VVc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return VVc=a},{mode:1});var XVc;var YVc=function(){return _.P.apply(this,arguments)||this};
_.z(YVc,_.P);_.Vm.Object.defineProperties(YVc.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var a,b,c;return((a=this.data)==null?void 0:a.title)+" "+((b=this.data)==null?void 0:b.metadataPrimary)+" "+((c=this.data)==null?void 0:c.metadataSecondary)}}});
var k4=YVc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],k4.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],k4.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],k4.prototype,"data",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],k4.prototype,"ariaLabel",null);k4=_.U([_.Q({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],k4);
_.S(k4,"ytd-compact-product-list-item-renderer",function(){if(XVc!==void 0)return XVc;var a=document.createElement("template");_.B(a,'\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>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return XVc=a},{mode:1});var ZVc;var $Vc=function(){return _.P.apply(this,arguments)||this};
_.z($Vc,_.P);$Vc.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactProductListItemRenderer:"ytd-compact-product-list-item-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.Vm.Object.defineProperties($Vc.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
var l4=$Vc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],l4.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],l4.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],l4.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],l4.prototype,"data",void 0);l4=_.U([_.Q({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],l4);
_.S(l4,"ytd-compact-product-list-renderer",function(){if(ZVc!==void 0)return ZVc;var a=document.createElement("template");_.B(a,'\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>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return ZVc=a},{mode:1});var aWc;var bWc=function(){var a=_.P.apply(this,arguments)||this;a.darkerDarkTheme=_.x("web_darker_dark_theme");return a};
_.z(bWc,_.P);_.f=bWc.prototype;_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.f.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.f.getBackgroundUrl=function(){var a=this.get("data.headerImage.thumbnails");return a?"url("+_.Xs(a,this.hostElement.clientWidth)+")":""};
_.f.onDataChanged=function(){var a=this.getBackgroundUrl();a&&(this.header.style.backgroundImage=a);a=_.Fn();var b=_.En(),c=this.get("data.trackingParams");c&&b&&a&&_.Ro(a,b,_.qs(c));a=_.h(this.hostElement.querySelectorAll("yt-img-shadow"));for(b=a.next();!b.done;b=a.next())b.value.onShow()};
_.f.onPopupClosed=function(a){_.Qq(a).localName==="ytd-membership-post-cancel-renderer"&&_.ho(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
var m4=bWc;m4.prototype.onPopupClosed=m4.prototype.onPopupClosed;m4.prototype.onDataChanged=m4.prototype.onDataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],m4.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],m4.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],m4.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],m4.prototype,"darkerDarkTheme",void 0);
_.U([_.gr("#header"),_.W("design:type",HTMLDivElement)],m4.prototype,"header",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],m4.prototype,"onDataChanged",null);_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],m4.prototype,"onPopupClosed",null);m4=_.U([_.Q({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],m4);
_.S(m4,"ytd-membership-post-cancel-renderer",function(){if(aWc!==void 0)return aWc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return aWc=a},{mode:1});var cWc;var dWc=function(){var a=_.P.apply(this,arguments)||this;a.darkerDarkTheme=_.x("web_darker_dark_theme");return a};
_.z(dWc,_.P);dWc.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
dWc.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
var n4=dWc;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],n4.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],n4.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],n4.prototype,"darkerDarkTheme",void 0);_.U([_.gr("ytd-feedback-survey-renderer"),_.W("design:type",Object)],n4.prototype,"feedbackSurveyRenderer",void 0);n4=_.U([_.Q({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],n4);
_.S(n4,"ytd-sponsorship-confirm-cancel-content",function(){if(cWc!==void 0)return cWc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return cWc=a},{mode:1});var eWc;var fWc=function(){var a=_.P.apply(this,arguments)||this;a.darkerDarkTheme=_.x("web_darker_dark_theme");a.maybeSubmitFeedback=function(){a.content&&a.content.maybeSubmitFeedback()};
return a};
_.z(fWc,_.P);_.f=fWc.prototype;_.f.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.f.onYtPopupOpened=function(a,b){b===this&&this.data&&this.data.onOpenCommands&&_.no(this.hostElement,this.data.onOpenCommands,this.hostElement);_.ho(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.f.onYtPopupClosed=function(a,b){(b&&b.canceled===!0||b&&b.canceled===!1&&b.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.no(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.f.onYtServiceRequestCompleted=function(){_.ho(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.f.onYtServiceRequestError=function(a){_.KW(this.hostElement,a.detail.error.message)};
_.f.onDataChanged=function(){if(this.isAttached){var a=this.backgroundUrl;a&&(_.E(this.hostElement).querySelector("#header").style.backgroundImage=a)}};
_.Vm.Object.defineProperties(fWc.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var a=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return a?"url("+_.Xs(a,this.hostElement.clientWidth)+")":""}}});
var o4=fWc;o4.prototype.onDataChanged=o4.prototype.onDataChanged;o4.prototype.onYtServiceRequestError=o4.prototype.onYtServiceRequestError;o4.prototype.onYtServiceRequestCompleted=o4.prototype.onYtServiceRequestCompleted;o4.prototype.onYtPopupClosed=o4.prototype.onYtPopupClosed;o4.prototype.onYtPopupOpened=o4.prototype.onYtPopupOpened;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],o4.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],o4.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],o4.prototype,"data",void 0);_.U([_.O({value:function(){return _.to("SBOX_INAPPROPRIATE_CANCEL")}}),
_.W("design:type",String)],o4.prototype,"closeButtonAriaLabel",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],o4.prototype,"darkerDarkTheme",void 0);_.U([_.gr("#scrollable"),_.W("design:type",Object)],o4.prototype,"scrollable",void 0);_.U([_.gr("ytd-sponsorship-confirm-cancel-content"),_.W("design:type",Object)],o4.prototype,"content",void 0);
_.U([_.M("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],o4.prototype,"onYtPopupOpened",null);_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],o4.prototype,"onYtPopupClosed",null);
_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],o4.prototype,"onYtServiceRequestCompleted",null);_.U([_.M("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],o4.prototype,"onYtServiceRequestError",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],o4.prototype,"onDataChanged",null);
o4=_.U([_.Q({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],o4);
_.S(o4,"ytd-sponsorship-confirm-cancel-renderer",function(){if(eWc!==void 0)return eWc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return eWc=a},{mode:_.as("kevlar_poly_si_batch_j081")?1:2});var gWc;var hWc=function(){var a=_.P.apply(this,arguments)||this;a.darkerDarkTheme=_.x("web_darker_dark_theme");return a};
_.z(hWc,_.P);hWc.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
var p4=hWc;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],p4.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],p4.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],p4.prototype,"darkerDarkTheme",void 0);p4=_.U([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],p4);
_.S(p4,"ytd-sponsorships-celebration-content",function(){if(gWc!==void 0)return gWc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return gWc=
a},{mode:1});var iWc;var jWc=_.cx(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),kWc=function(){var a=_.P.apply(this,arguments)||this;a.scriptsAppended=!1;a.buttonOverrides={type:"tonal",style:"overlay-dark"};return a};
_.z(kWc,_.P);_.f=kWc.prototype;
_.f.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:_.x("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",
attributes:{"dialog-dismiss":!0}}}}}};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.f.onDataChanged=function(){var a;(a=this.header)==null||a.style.setProperty("background-color",this.backgroundColor);if(a=this.headerImageUrl){var b;(b=this.header)==null||b.style.setProperty("background-image",a)}b=_.Fn(4);a=_.En(4);var c=this.get("data.trackingParams");if(c&&a&&b){var d=_.qs(c);_.Ro(b,a,d);_.x("combine_ve_grafts")?_.ms().graftServerVe(c,a,4):_.Ro(b,a,d)}b=_.h(this.hostElement.querySelectorAll("yt-img-shadow"));for(a=b.next();!a.done;a=b.next())a.value.onShow();if(b=this.get("data.gtmId"))_.yG(b,
_.Ei("GL","")),this.setupConversionTracking()};
_.f.setupConversionTracking=function(){if(!this.scriptsAppended){var a=document.createElement("script");var b=_.Ud(jWc.join(""));_.Wd(a,b);document.head.appendChild(a);a=document.createElement("noscript");a.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(a);this.scriptsAppended=!0}};
_.f.onPopupClosed=function(a){if(_.Qq(a).localName==="ytd-sponsorships-celebration-renderer"){_.ho(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var b;this.data&&((b=this.data)==null?0:b.dismissCommand)&&_.hs.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.Vm.Object.defineProperties(kWc.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var a=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.Cq(a)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var a=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return a?"url("+_.Xs(a,this.hostElement.getBoundingClientRect().width)+")":""}}});
var q4=kWc;q4.prototype.onPopupClosed=q4.prototype.onPopupClosed;q4.prototype.onDataChanged=q4.prototype.onDataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],q4.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],q4.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],q4.prototype,"data",void 0);_.U([_.gr("#header"),_.W("design:type",HTMLElement)],q4.prototype,"header",void 0);
_.U([_.O(),_.W("design:type",Object)],q4.prototype,"scriptsAppended",void 0);_.U([_.O(),_.W("design:type",Object)],q4.prototype,"buttonOverrides",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],q4.prototype,"onDataChanged",null);_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],q4.prototype,"onPopupClosed",null);
q4=_.U([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],q4);
_.S(q4,"ytd-sponsorships-celebration-renderer",function(){if(iWc!==void 0)return iWc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="avatar-container" class="style-scope ytd-sponsorships-celebration-renderer">\n    <yt-img-shadow class="avatar style-scope ytd-sponsorships-celebration-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="title-container style-scope ytd-sponsorships-celebration-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<ytd-sponsorships-celebration-content data="[[data]]" class="style-scope ytd-sponsorships-celebration-renderer"></ytd-sponsorships-celebration-content>\n<div id="top-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n<div id="button-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="secondary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n  <div id="primary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return iWc=a},{mode:1});var lWc;var r4=function(){var a=_.P.apply(this,arguments)||this;a.isToggleChecked=!1;return a};
_.z(r4,_.P);r4.prototype.onDataChanged=function(){var a;this.isToggleChecked=((a=this.data)==null?void 0:a.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
r4.prototype.close=function(){var a;((a=this.data)==null?0:a.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
r4.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var a,b=_.y((a=this.data)==null?void 0:a.switchButton,SJc);b&&(this.isToggleChecked&&b.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(b.switchOnInnertubeCommand),!this.isToggleChecked&&b.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(b.switchOffInnertubeCommand))};
r4.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
var s4=r4;s4.prototype.onDataChanged=s4.prototype.onDataChanged;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],s4.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],s4.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],s4.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],s4.prototype,"isToggleChecked",void 0);
_.U([_.O({value:_.to("CLOSE")}),_.W("design:type",String)],s4.prototype,"closeButtonAriaLabel",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],s4.prototype,"onDataChanged",null);s4=_.U([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],s4);
_.S(s4,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(lWc!==void 0)return lWc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return lWc=a},{mode:1});var mWc;var nWc=function(){return _.P.apply(this,arguments)||this};
_.z(nWc,_.P);_.f=nWc.prototype;_.f.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"}}}}};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.f.detached=function(){this.playerElement.stop()};
_.f.onYtServiceRequestCompleted=function(){_.ho(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.f.onYtServiceRequestError=function(a){_.KW(this.hostElement,a.detail.error.message)};
_.f.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.f.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.f.getTier=function(a,b){return!a||!a.tiers||b<0?null:_.y(a.tiers[b],WJc)};
_.f.moreThanOne=function(a){return!!(a&&a.length>1)};
_.f.tierOverviewTap=function(a){var b=this;this.selectedTier=a.model.index;_.Tm(this,function(){_.go(b.hostElement,"yt-refit")})};
_.f.computeSelectedClass=function(a,b){return this.isSelected(a,b)?"selected":""};
_.f.computeButtonAriaPressed=function(a,b){return this.isSelected(a,b)?"true":"false"};
_.f.isSelected=function(a,b){return a===b};
_.f.onDataChanged=function(){_.E(this.hostElement).querySelector("#header-overlay").style.visibility="";_.E(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 a=_.h(this.hostElement.querySelectorAll("yt-img-shadow")),
b=a.next();!b.done;b=a.next())b.value.onShow();var c;this.set("selectedTier",(c=this.get("data.targetTierIndex"))!=null?c:0);var d;(a=(d=this.data)==null?void 0:d.onVisible)&&this.ytComponentBehavior.resolveCommand(a)};
_.f.initializeVe=function(a){var b=_.Fn(),c=_.En(),d=this.get("data.trackingParams");c&&b&&(this.screenLayer=4,b=_.Ii(_.UCa)(void 0,69877,{clientScreenNonce:b,visualElement:c},void 0,void 0,void 0),_.XAa(b,69877,4),c=_.En(4),d&&c&&(d=_.qs(d),_.Ro(b,c,d),a&&(this.offerVideoVe=_.lu(74659),_.Ro(b,d,this.offerVideoVe))))};
_.f.setHeaderBackground=function(){var a=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.E(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.Cq(a);if(a=this.getHeaderImage())a=_.Xs(a,screen.width),_.E(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+a+")"};
_.f.getHeaderImage=function(){var a=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&a?a:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.f.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.f.setupVideoPlayer=function(a){var b=this,c,d,e,g;return _.l(function(k){if(k.nextAddress==1)return c=b.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),d=b.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.x("kevlar_player_update_killswitch")?b.playerElement.update({args:{autoplay:c,video_id:a,player_params:d}}):b.playerElement.loadVideoWithPlayerVars({autoplay:c,video_id:a,player_params:d}),
_.p(k,b.playerElement.getPlayerPromise(),2);e=k.yieldResult;e.addEventListener("onStateChange",function(m){b.onPlayerStateChange(m)});
e.setScreenLayer(b.screenLayer);(g=_.Fn(4))&&b.offerVideoVe&&_.So(g,b.offerVideoVe);c&&(b.pauseOtherPlayers(),b.playerElement.focusOnPlayer(),b.playerElement.getPlayer().hideControls(),_.ul(_.zk,function(){b.fadeOutHeaderOverlay()},4E3));
_.se(k)})};
_.f.onPlayerStateChange=function(a){a===1?this.backgroundPlayerElement&&(a=this.backgroundPlayerElement.player_.getPlayerState(),a!==1&&a!==3||this.backgroundPlayerElement.pause()):a===0&&(_.E(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.E(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.f.fadeOutHeaderOverlay=function(){_.E(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.f.onHeaderTap=function(){if(this.offerVideo){_.E(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var a;((a=this.playerElement.player_)==null?void 0:a.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(a=_.Fn(4))&&this.offerVideoVe&&_.Vo(a,this.offerVideoVe)}};
_.f.getBackgroundImageLayerClass=function(a){return a?"background-image-layer-with-video":""};
_.f.getHeaderClass=function(a){return a?"header-with-video":""};
_.f.getHeaderOverlayClass=function(a){return a?"header-overlay-with-video":""};
_.f.getTitleContainerClass=function(a,b){return a?"title-container-with-video":b?"title-container-without-video-flexible":"title-container-without-video"};
_.f.tierTitleDisplayStatus=function(a){return this.moreThanOne(a)?"hide":"show"};
_.f.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.v().resolve(_.Vw).getPlayerElement():this.backgroundPlayerElement=_.bu();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var a=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=a===1||a===3;this.backgroundPlayerElement.pause()}};
_.f.isMiniplayerActive=function(){return _.v().resolve(_.Vw).isMiniplayerActive()};
_.f.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.TH("selected-tier-changed",this.selectedTier))};
var t4=nWc;t4.prototype.selectedTierChangedForBinding=t4.prototype.selectedTierChangedForBinding;t4.prototype.onDataChanged=t4.prototype.onDataChanged;t4.prototype.onYtPopupClosed=t4.prototype.onYtPopupClosed;t4.prototype.onYtPopupOpened=t4.prototype.onYtPopupOpened;t4.prototype.onYtServiceRequestError=t4.prototype.onYtServiceRequestError;t4.prototype.onYtServiceRequestCompleted=t4.prototype.onYtServiceRequestCompleted;
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],t4.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],t4.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],t4.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],t4.prototype,"data",void 0);_.U([_.O({value:0}),_.W("design:type",Number)],t4.prototype,"selectedTier",void 0);
_.U([_.O({value:""}),_.W("design:type",String)],t4.prototype,"offerVideo",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],t4.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.U([_.O({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.ab(this)}}),
_.W("design:type",String)],t4.prototype,"playerId",void 0);_.U([_.gr("tp-yt-paper-dialog-scrollable"),_.W("design:type",Object)],t4.prototype,"scrollable",void 0);_.U([_.gr("ytd-sponsorships-tier-renderer"),_.W("design:type",Object)],t4.prototype,"tierRenderer",void 0);_.U([_.gr("#player"),_.W("design:type",Object)],t4.prototype,"playerElement",void 0);
_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],t4.prototype,"onYtServiceRequestCompleted",null);_.U([_.M("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],t4.prototype,"onYtServiceRequestError",null);_.U([_.M("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],t4.prototype,"onYtPopupOpened",null);
_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],t4.prototype,"onYtPopupClosed",null);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],t4.prototype,"onDataChanged",null);_.U([_.N("selectedTier"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],t4.prototype,"selectedTierChangedForBinding",null);
t4=_.U([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],t4);
_.S(t4,"ytd-sponsorships-offer-renderer",function(){if(mWc!==void 0)return mWc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return mWc=a},{mode:_.as("kevlar_poly_si_batch_j077")?1:2});var oWc;var pWc=function(){var a=_.P.apply(this,arguments)||this;a.buttonOverrides={type:"filled",style:"mono"};return a};
_.z(pWc,_.P);pWc.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}}}}}};
pWc.prototype.backgroundColorChanged=function(){var a,b,c,d=(b=_.y((a=this.data)==null?void 0:a.content,XJc))==null?void 0:(c=b.backgroundColor)==null?void 0:c.backgroundColor;d&&(a=_.Bq(d),_.E(this.hostElement).querySelector("#banner").style.backgroundColor=a,_.E(this.hostElement).querySelector("#abstract-art").style.backgroundColor=a)};
pWc.prototype.attached=function(){this.JSC$18188_scroller&&(this.JSC$18188_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18188_scroller.attached&&typeof this.JSC$18188_scroller.attached==="function"&&this.JSC$18188_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
var u4=pWc;u4.prototype.backgroundColorChanged=u4.prototype.backgroundColorChanged;_.U([_.O(),_.W("design:type",Object)],u4.prototype,"data",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],u4.prototype,"ytRendererstamperBehavior",void 0);_.U([_.gr("#scroller"),_.W("design:type",Object)],u4.prototype,"JSC$18188_scroller",void 0);_.U([_.O(),_.W("design:type",Object)],u4.prototype,"buttonOverrides",void 0);
_.U([_.N("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],u4.prototype,"backgroundColorChanged",null);u4=_.U([_.Q({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],u4);
_.S(u4,"ytd-sponsorships-promotion-celebration-renderer",function(){if(oWc!==void 0)return oWc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return oWc=a},{mode:_.as("kevlar_poly_si_batch_j077")?1:2});var qWc;var rWc;var sWc=function(){return _.P.apply(this,arguments)||this};
_.z(sWc,_.P);sWc.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
sWc.prototype.computeIsInitiallyChecked=function(a){return a===1};
var v4=sWc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],v4.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],v4.prototype,"data",void 0);_.U([_.gr("#checkbox"),_.W("design:type",Object)],v4.prototype,"checkbox",void 0);v4=_.U([_.Q({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],v4);
_.S(v4,"ytd-subscription-toggle-option-renderer",function(){if(rWc!==void 0)return rWc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return rWc=a},{mode:1});var w4=function(){var a=_.P.apply(this,arguments)||this;a.darkerDarkTheme=_.x("web_darker_dark_theme");a.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return a};
_.z(w4,_.P);w4.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"}}}};
w4.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
w4.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var a=_.E(this.hostElement).querySelector("#options").selected;a=this.data.options[a].subscriptionRadioOptionRenderer.serviceEndpoint;var b=_.E(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");b&&a&&a.modifyChannelNotificationPreferenceEndpoint&&(b=b.getValue())&&(a.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[b]);_.v().resolve(_.Xi).resolveCommand(a,{form:{element:this.hostElement}});
_.ho(this.hostElement,"yt-close-popup-action")};
_.Vm.Object.defineProperties(w4.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var a=this.data.options,b=0;b<a.length;b++){var c=a[b].subscriptionRadioOptionRenderer;if(c&&c.selected)return b}return null}}});
var x4=w4;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],x4.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],x4.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.CK.YtEventForwardingBehavior),_.W("design:type",Object)],x4.prototype,"eventForwardingBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],x4.prototype,"ytRendererBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],x4.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],x4.prototype,"darkerDarkTheme",void 0);_.U([_.K("data.options"),_.W("design:type",Object),_.W("design:paramtypes",[])],x4.prototype,"initialIndex",null);x4=_.U([_.Q({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],x4);
_.S(x4,"ytd-subscription-notification-options-renderer",function(){if(qWc!==void 0)return qWc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return qWc=a},{mode:1});var tWc;var uWc=function(){return _.P.apply(this,arguments)||this};
_.z(uWc,_.P);var vWc=uWc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],vWc.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],vWc.prototype,"data",void 0);vWc=_.U([_.Q({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],vWc);
_.S(vWc,"ytd-tvfilm-offer-groups-renderer",function(){if(tWc!==void 0)return tWc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return tWc=a},{mode:1});var wWc;var xWc=function(){var a=_.P.apply(this,arguments)||this;a.darkerDarkTheme=_.x("web_darker_dark_theme");return a};
_.z(xWc,_.P);_.f=xWc.prototype;_.f.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"}}}};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.f.computeThumbnailClass=function(a){return a.thumbnailOverlays?a.isShow?"thumbnail-show":"thumbnail-movie":a.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.f.computeCommerceSectionClass=function(a){return a.offers&&a.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.f.computeTitleClass=function(a){return a.offers&&a.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.f.onDataChanged=function(){[].concat(_.Be(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(a){a.onShow()})};
var y4=xWc;y4.prototype.onDataChanged=y4.prototype.onDataChanged;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],y4.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],y4.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],y4.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],y4.prototype,"darkerDarkTheme",void 0);
_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],y4.prototype,"onDataChanged",null);y4=_.U([_.Q({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],y4);
_.S(y4,"ytd-ypc-offers-overlay-renderer",function(){if(wWc!==void 0)return wWc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return wWc=a},{mode:_.as("kevlar_poly_si_batch_j028")?1:2});var yWc;var zWc=function(){this.usedMethods=new Set};
zWc.prototype.add=function(a){this.usedMethods.add(a)};
zWc.prototype.reset=function(){this.usedMethods.clear()};var CWc=function(a,b){this.query=a;this.previousSearchQuery=b;this.id=AWc++;if(!BWc){b=_.Ei("SBOX_SETTINGS");a="https://"+((b==null?void 0:b.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var c=b==null?void 0:b.REQUEST_LANGUAGE;c&&(a+="&hl="+c);(c=b==null?void 0:b.REQUEST_DOMAIN)&&(a+="&gl="+c);a+="&client=youtube&gs_ri=youtube";(c=b==null?void 0:b.SUGG_EXP_ID)&&(a+="&sugexp="+encodeURIComponent(c));(c=b==null?void 0:b.PSUGGEST_TOKEN)&&(a+="&tok="+c);(b=
b==null?void 0:b.SESSION_INDEX)&&(a+="&authuser="+b);_.x("desktop_enable_visual_suggest")&&(a+="&h=180&w=320&ytvs=1");BWc=a}},DWc=function(a){var b="q="+encodeURIComponent(a.query);
a.previousSearchQuery&&(b+="&pq="+encodeURIComponent(a.previousSearchQuery));return b},EWc=function(){var a=_.Ei("SBOX_SETTINGS"),b={};
if(a==null?0:a.SEND_VISITOR_DATA)b["X-Goog-Visitor-Id"]=a==null?void 0:a.VISITOR_DATA;return b},FWc=function(a){var b=BWc;
b+="&gs_id="+a.id.toString(36);b+="&q="+encodeURIComponent(a.query);b+="&cp="+a.query.length;a.previousSearchQuery&&(b+="&pq="+encodeURIComponent(a.previousSearchQuery));(a=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(b+="&video_id="+a);return b},AWc=0,BWc="";var GWc=function(a,b){this.text=a;this.bold=b},HWc=function(a,b,c){this.input=b;
this.index=c;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=a[0];this.type=a[1];this.subtypes=a[2];var d;this.displayText=Wxc((d=a[3])==null?void 0:d.b);var e;this.ignoredPrefix=Wxc((e=a[3])==null?void 0:e.a);var g,k;this.hasNewVideo=((g=a[3])==null?void 0:(k=g.zam)==null?void 0:k.toString())==="true"?!0:!1;var m;this.visualSuggestUrl=(m=a[3])==null?void 0:m.zai},IWc=function(a){var b=[],c,d=(c=a.displayText)!=null?c:a.text;
if(a.type===33)return b.push(new GWc(d,!1)),b;if(d.length>=a.input.length&&d.substring(0,a.input.length)===a.input)b.push(new GWc(a.input,!1)),b.push(new GWc(d.substring(a.input.length),!0));else{var e=new Set(a.input.split(/\s/)),g=d.split(/\s/);b=g.map(function(k,m){return new GWc(k.trim()+(m===g.length-1?"":" "),!e.has(k))})}return b};var JWc=function(a){this.rawResponse=["",[],{}];this.suggestions=[];try{var b=JSON.parse(Xxc(a));if(typeof b==="object"&&b!==null)this.rawResponse=b;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(d){console.log("Suggest: Failed to parse SuggestResponse!");return}var c=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(d,e){return new HWc(d,c,e)})};var KWc=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new zWc;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$18224_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},LWc,MWc=function(){LWc||(LWc=new KWc);
return LWc};
KWc.prototype.updateSuggestions=function(a){var b=this;this.availableSuggestions.forEach(function(c){b.previousSuggestions[c]=!0});
this.availableSuggestions=a.map(function(c){var d=c.type.toString();c.subtypes.length>0&&(d+="i"+c.subtypes.join("i"),d+="k"+c.suggestionSources.COMPLETE_SERVER.toString());return d})};
var NWc=function(a,b){var c=Date.now();a.firstEditTime<0&&(a.firstEditTime=c);b&&(a.lastQueryBuildTime=c);a.lastEditTime=c};
KWc.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$18224_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var OWc=function(a){var b="";a.availableSuggestions.forEach(function(e){delete a.previousSuggestions[e]});
for(var c=_.h(Object.keys(a.previousSuggestions)),d=c.next();!d.done;d=c.next())d=d.value,a.previousSuggestions[d]&&(b+=(b?"j":"")+d);return b},PWc=function(a,b){var c=[];
b&&(c[1]=b.toString());c[0]="youtube";c[7]=Date.now()-a.startTime;c[6]=a.sessionNumber;a.zeroPrefixSuggestionCount>=0&&(c[33]=a.zeroPrefixSuggestionCount);c[13]=a.outOfSyncResponseCount;if(a.availableSuggestions.length>0){for(var d=b="",e=0,g=_.h(a.availableSuggestions),k=g.next();!k.done;k=g.next())k=k.value,k!==d&&(e>1&&(b+="l"+e),b+=(d?"j":"")+k,e=0,d=k),e+=1;e>1&&(b+="l"+e);c[3]=b}c[35]=OWc(a);a.selectedSuggestionIndex>=0&&(c[2]=a.selectedSuggestionIndex);var m;if(b=(m=_.Ei("SBOX_SETTINGS"))==
null?void 0:m.SUGG_EXP_ID)c[19]=a.normalize(b),m=0,a.experimentTriggeredBeforeFinal&&(m|=1),a.experimentTriggeredFinal&&(m|=2),c[20]=m;c[26]=Array.from(a.inputMethodsTracker.usedMethods).join("j");if(a.JSC$18224_totalRoundTripTime>0){c[15]=a.JSC$18224_totalRoundTripTime;c[14]=a.maxRoundTripTime;m=[];for(e=b=0;e<10;e++)d=a.roundTripTimeHistogram[e],d===0?b++:(b>1?m.push(e+"-"+d):b===1?m.push("0j"+d):m.push(d.toString()),b=0);m=m.join("j");c[16]=m}a.zeroPrefixRoundTripTime>0&&(c[36]=a.zeroPrefixRoundTripTime);
a.lastQueryBuildTime>0&&(c[18]=a.lastQueryBuildTime-a.startTime);a.firstEditTime>0&&(c[4]=a.firstEditTime-a.startTime);a.lastEditTime>0&&(c[5]=a.lastEditTime-a.startTime);return c.join(".")};
KWc.prototype.normalize=function(a){return a.replaceAll(".","-")};
var QWc=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var RWc=function(){var a=_.P.apply(this,arguments)||this;a.microphoneSpinnerActive=!1;a.noAnimations=!1;a.boundExitClick=function(){a.onExitButtonClick()};
a.speechOverlayClassName="";a.isLevelAnimating=!1;a.playCloseDialogAudioFeedback=!0;a.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return a};
_.z(RWc,_.P);_.f=RWc.prototype;_.f.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.f.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=wNc()};
_.f.dataChanged=function(){this.logDialog()};
_.f.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var a;(a=this.manager.audioPlayer)!=null&&(a.JSC$17514_audioEnabled=!1)}this.manager.stop();(a=this.manager.audioPlayer)!=null&&(a.JSC$17514_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.f.handleSpeechQueryCompleteAction=function(a){var b=a.navigationAction;b&&(a.trackingParams&&_.ms().graftServerVe(a.trackingParams,this.dialogVe,5),_.go(this.hostElement,"yt-navigate",{endpoint:b,tempData:this.getNavigationParams(b),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.f.onExitButtonClick=function(){this.closeDialog()};
_.f.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var a;if((a=this.manager)!=null){var b;(b=a.audioPlayer)==null||X0(b,"failure");a.setState("microphone-off");a.stop()}}else(a=this.manager)==null||a.start()};
_.f.transcriptionChanged=function(){var a,b;(((a=this.transcription)==null?0:a.low)||((b=this.transcription)==null?0:b.high))&&this.setState("transcribing",this.transcription)};
_.f.stateChanged=function(){this.setState(this.state,this.transcription)};
_.f.logDialog=function(){var a;(a=this.data)!=null&&a.trackingParams&&(a=_.ms(),_.mF(a,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=a.graftServerVe(this.data.trackingParams,void 0,5))};
_.f.getNavigationParams=function(a){var b={};if(_.x("web_yt_searchbox")){var c=MWc();c.inputMethodsTracker.add(6);c=PWc(c,15);b.gs_l=c;var d;b.oq=((d=_.y(a,_.qq))==null?void 0:d.query)||""}else if(a=window.ytvoicesearchloggingparams){if(a=a())b.oq=a.oq,b.gs_l=a.gs_l}else _.Ki(Error("hl"));return b};
_.f.closeDialog=function(){_.ho(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.f.setState=function(a,b){if(this.data){var c=this.data,d={};switch(a){case "listening":d={headerText:c.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:c.microphoneButtonAriaLabel};break;case "timeout":d={headerText:c.promptHeader,microphoneState:"try-again",microphoneLabel:c.promptMicrophoneLabel,microphoneAriaLabel:c.promptMicrophoneLabel};break;case "microphone-off":d={headerText:c.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:c.promptMicrophoneLabel,
microphoneAriaLabel:c.promptMicrophoneLabel};break;case "transcribing":(b==null?0:b.low)||(b==null?0:b.high)?d={transcriptionLow:b==null?void 0:b.low,transcriptionHigh:b==null?void 0:b.high,microphoneState:"speaking",microphoneAriaLabel:c.microphoneButtonAriaLabel}:d={headerText:c.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:c.microphoneButtonAriaLabel};break;case "processing":d={headerText:c.loadingHeader,microphoneState:"processing",microphoneAriaLabel:c.microphoneButtonAriaLabel};
break;case "offline":d={headerText:c.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:c.connectionErrorMicrophoneLabel,microphoneAriaLabel:c.connectionErrorMicrophoneLabel};break;case "permission":d={headerText:c.permissionsHeader,bodyLine1:c.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:c.permissionsSubtext};break;case "permission-denied":d={headerText:c.disabledHeader,bodyLine1:c.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:c.disabledSubtext}}d.className=
a;this.speechOverlayState=d;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.f.setMicrophoneState=function(a){var b=this.isLevelAnimating;this.isLevelAnimating=a==="speaking";!b&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=a==="processing"&&!this.noAnimations};
_.f.setClass=function(a){this.speechOverlayClassName&&_.$q(this.hostElement,this.speechOverlayClassName,!1);a&&(this.speechOverlayClassName=a,_.$q(this.hostElement,a,!0))};
_.f.runLevelAnimation=function(){var a=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var b=1+Math.random()*.75,c=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+c/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+b+")");_.zk.addJob(function(){a.runLevelAnimation()},3,c)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
var z4=RWc;z4.prototype.stateChanged=z4.prototype.stateChanged;z4.prototype.transcriptionChanged=z4.prototype.transcriptionChanged;z4.prototype.onPopupClosed=z4.prototype.onPopupClosed;z4.prototype.dataChanged=z4.prototype.dataChanged;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],z4.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],z4.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],z4.prototype,"rendererStamperBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],z4.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.CK.YtEventForwardingBehavior),_.W("design:type",Object)],z4.prototype,"eventForwardingBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],z4.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],z4.prototype,"speechOverlayState",void 0);
_.U([_.O(),_.W("design:type",Object)],z4.prototype,"microphoneSpinnerActive",void 0);_.U([_.O({type:_.x("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.W("design:type",Object)],z4.prototype,"noAnimations",void 0);_.U([_.O({selector:function(a){var b;return(b=a.voiceSearch)==null?void 0:b.transcription}}),
_.W("design:type",Object)],z4.prototype,"transcription",void 0);_.U([_.O({selector:function(a){var b;return(b=a.voiceSearch)==null?void 0:b.overlay}}),
_.W("design:type",String)],z4.prototype,"state",void 0);_.U([_.O(),_.W("design:type",Object)],z4.prototype,"boundExitClick",void 0);_.U([_.gr("#microphone-levels"),_.W("design:type",HTMLElement)],z4.prototype,"level",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],z4.prototype,"dataChanged",null);_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],z4.prototype,"onPopupClosed",null);
_.U([_.kr("transcription"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],z4.prototype,"transcriptionChanged",null);_.U([_.kr("state"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],z4.prototype,"stateChanged",null);z4=_.U([_.Q({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],z4);
_.S(z4,"ytd-voice-search-dialog-renderer",function(){if(yWc!==void 0)return yWc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return yWc=a},{mode:1});var SWc;var TWc=function(){var a=_.P.apply(this,arguments)||this;a.isOverlay=!1;a.hidden=!1;return a};
_.z(TWc,_.P);_.f=TWc.prototype;_.f.onPopupClosed=function(){this.toggleIconState(!1)};
_.f.computeIcon=function(){var a,b,c;return(b=_.y((a=this.data)==null?void 0:a.icon,bKc))==null?void 0:(c=b.icon)==null?void 0:c.iconType};
_.f.computeIconBadgeShape=function(){var a;return{iconBadgeType:"cart",iconBadgeText:(a=this.iconBadgeEntity)==null?void 0:a.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.f.onClick=function(){var a;(a=this.data)!=null&&a.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.f.computeHidden=function(a){return!a};
_.f.toggleIconState=function(a){this.iconButton&&(this.iconButton.pressed=a)};
var A4=TWc;A4.prototype.onPopupClosed=A4.prototype.onPopupClosed;_.U([_.H(_.LI),_.W("design:type",Object)],A4.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],A4.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],A4.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],A4.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],A4.prototype,"isOverlay",void 0);
_.U([_.O({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.W("design:type",Object)],A4.prototype,"hidden",void 0);_.U([_.O({selectorArgs:["data.iconBadgeEntityKey"],selector:function(a,b){return _.mp(a.entities,"iconBadgeEntity",b)}}),
_.W("design:type",Object)],A4.prototype,"iconBadgeEntity",void 0);_.U([_.gr("yt-icon-button"),_.W("design:type",HTMLButtonElement)],A4.prototype,"iconButton",void 0);_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],A4.prototype,"onPopupClosed",null);A4=_.U([_.Q({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],A4);
_.S(A4,"ytd-icon-badge-topbar-button-renderer",function(){if(SWc!==void 0)return SWc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return SWc=a},{mode:1});var UWc;var VWc=function(){var a=_.P.apply(this,arguments)||this;a.premiumOptions=[];a.darkerDarkTheme=_.x("web_darker_dark_theme");return a};
_.z(VWc,_.P);VWc.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.Vm.Object.defineProperties(VWc.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
var B4=VWc;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],B4.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],B4.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Array)],B4.prototype,"premiumOptions",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],B4.prototype,"darkerDarkTheme",void 0);_.U([_.K("premiumOptions"),_.W("design:type",Object),_.W("design:paramtypes",[])],B4.prototype,"hasPremiumOptions",null);
B4=_.U([_.Q({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],B4);
_.S(B4,"ytd-offline-promo-content",function(){if(UWc!==void 0)return UWc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n<div id="premium-options" hidden="[[!hasPremiumOptions]]" class="style-scope ytd-offline-promo-content"></div>\n<yt-formatted-string id="description" hidden="[[!hasPremiumOptions]]" text="[[data.description]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return UWc=a},{mode:1});var WWc;var C4=function(){var a=_.P.apply(this,arguments)||this;a.premiumOptions=[];return a};
_.z(C4,_.P);C4.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var a;this.premiumOptions=Vxc((a=this.data)==null?void 0:a.formats)};
C4.prototype.onClickSubmit=function(){_.ho(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var a;(a=_.bu())==null||a.pause()};
C4.prototype.attached=function(){this.JSC$18244_scroller&&(this.JSC$18244_scroller.dialogElement=this.hostElement.parentNode)};
_.Vm.Object.defineProperties(C4.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
var D4=C4;D4.prototype.dataChanged=D4.prototype.dataChanged;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],D4.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],D4.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],D4.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],D4.prototype,"data",void 0);
_.U([_.O({computed:"computeIcon_(data.headersIcon)",value:""}),_.W("design:type",String)],D4.prototype,"headersIcon",void 0);_.U([_.O(),_.W("design:type",Array)],D4.prototype,"premiumOptions",void 0);_.U([_.gr("#scroller"),_.W("design:type",Object)],D4.prototype,"JSC$18244_scroller",void 0);_.U([_.K("headersIcon"),_.W("design:type",Object),_.W("design:paramtypes",[])],D4.prototype,"showIcon",null);
_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],D4.prototype,"dataChanged",null);D4=_.U([_.Q({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],D4);
_.S(D4,"ytd-offline-promo-renderer",function(){if(WWc!==void 0)return WWc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return WWc=a},{mode:1});var XWc;var YWc=function(){var a=_.P.apply(this,arguments)||this;a.playbackPauseInterval=NaN;a.isLoading=!1;a.hasError=!1;a.dialogClass="";a.youtubeLabel=_.to("LOGO_ALT_LABEL",{},"YouTube Home");a.logoName="yt-logos-ext:yt-logo-updated";a.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return a};
_.z(YWc,_.P);_.f=YWc.prototype;_.f.onDataChange=function(){var a;if(this.showEOMV1Text=!((a=this.data)==null||!a.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.f.attached=function(){this.pausePlayer()};
_.f.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.f.handleLangSelect=function(a){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[a.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.f.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.f.handleSaveConsent=function(a){var b=this;this.showLoadingSpinner();this.showLoadingSpinner();Gsc(_.y(a,$Ic)).catch(function(c){_.Dl(new _.qj("Something went wrong when save consent "+(c.message?c.message:c)+"."));b.hideLoadingSpinner();b.showErrorMessage()})};
_.f.handleDisablePersonalization=function(a){var b=this;this.showLoadingSpinner();Hsc(_.y(a,ZIc)).then(function(){b.dialog.close();b.resumePlayer()}).catch(function(c){_.Dl(new _.qj("Something went wrong when disable personalization "+(c.message?c.message:c)+"."));
b.hideLoadingSpinner();b.showErrorMessage()})};
_.f.showLoadingSpinner=function(){var a=this;this.showSpinnerJobId=_.zk.addLowPriorityJob(function(){a.isLoading=!0},500)};
_.f.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.zk.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.f.showErrorMessage=function(){var a=this;this.hasError=!0;_.zk.addLowPriorityJob(function(){a.hasError=!1},2E3)};
_.f.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.ej(function(){try{var a=_.bu();a&&a.pause()}catch(b){}},100))};
_.f.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var a=_.bu();a&&a.play()}catch(b){}};
_.Vm.Object.defineProperties(YWc.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)==null||!a.eomV1Text)return[];a=[];for(var b=["SHIELD","WARNING","BAR_CHART"],c=this.data.eomV1Text.essentialCookieMsg.items,d=0;d<b.length&&d<c.length;d++)a.push({icon:b[d],text:c[d]});return a}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var a;if((a=this.data)==null||!a.eomV1Text)return[];a=[];for(var b=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],c=this.data.eomV1Text.nonEssentialCookieMsg.items,d=0;d<b.length&&d<c.length;d++)a.push({icon:b[d],text:c[d]});return a}}});
var E4=YWc;E4.prototype.onDataChange=E4.prototype.onDataChange;_.U([_.O(),_.W("design:type",Object)],E4.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Boolean)],E4.prototype,"showEOMV1Text",void 0);_.U([_.O(),_.W("design:type",Object)],E4.prototype,"isLoading",void 0);_.U([_.O(),_.W("design:type",Object)],E4.prototype,"hasError",void 0);_.U([_.O(),_.W("design:type",Number)],E4.prototype,"showSpinnerJobId",void 0);_.U([_.O(),_.W("design:type",Object)],E4.prototype,"dialogClass",void 0);
_.U([_.gr("#dialog"),_.W("design:type",Object)],E4.prototype,"dialog",void 0);_.U([_.gr("#cb-header"),_.W("design:type",HTMLElement)],E4.prototype,"header",void 0);_.U([_.gr("#lang-select"),_.W("design:type",HTMLElement)],E4.prototype,"langSelect",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],E4.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],E4.prototype,"ytComponentBehavior",void 0);
_.U([_.O(),_.W("design:type",String)],E4.prototype,"youtubeLabel",void 0);_.U([_.O(),_.W("design:type",Object)],E4.prototype,"logoName",void 0);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],E4.prototype,"onDataChange",null);_.U([_.K("data"),_.W("design:type",Array),_.W("design:paramtypes",[])],E4.prototype,"eomEssentialCookieMsgItems",null);
_.U([_.K("data"),_.W("design:type",Array),_.W("design:paramtypes",[])],E4.prototype,"eomNonEssentialCookieMsgItems",null);E4=_.U([_.Q({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],E4);
_.S(E4,"ytd-consent-bump-v2-lightbox",function(){if(XWc!==void 0)return XWc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return XWc=a},{mode:1});var ZWc;var $Wc=function(){return _.P.apply(this,arguments)||this};
_.z($Wc,_.P);$Wc.prototype.ready=function(){if(!_.nj()||hCc)var a=!0;else hCc=!0,a=!1;a||(a=document.querySelector("ytd-app"),a||(a=document.body),this.internalLightBox=_.E(a).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
var aXc=$Wc;_.U([_.O(),_.W("design:type",Object)],aXc.prototype,"data",void 0);_.U([_.gr("#lightbox"),_.W("design:type",Object)],aXc.prototype,"lightBox",void 0);aXc=_.U([_.Q({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],aXc);
_.S(aXc,"ytd-consent-bump-v2-renderer",function(){if(ZWc!==void 0)return ZWc;var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return ZWc=a},{mode:1});var bXc;var cXc;var dXc;var eXc=function(){var a=_.P.apply(this,arguments)||this;a.ephemeralActionsEnabled=_.x("web_ephemeral_actions");return a};
_.z(eXc,_.P);_.f=eXc.prototype;_.f.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&wBc(this.toastManager,this.toastType)};
_.f.open=function(a){this.toast&&(this.ephemeralAction&&_.v().resolve(_.aic).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=a!=null?a:0,this.toastManager.enqueue(this.toast,a)):this.toast.open())};
_.f.close=function(a){var b;(b=this.toast)==null||b.close();this.toastManager&&a===1&&wBc(this.toastManager,a)};
_.f.refit=function(){var a;(a=this.toast)==null||a.refit()};
_.f.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var a;(a=this.toast)==null||a.close()}};
_.f.setVerticalOffset=function(a){this.toast&&(this.toast.verticalOffset=a,this.toast.fit())};
_.f.computeButtonClass_=function(a){return a?"toast-button":""};
_.f.computeText_=function(a){return _.Vp(a)};
_.f.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.TH("toast-opened-changed",this.toastOpened))};
_.f.updateToastOpenedFromBinding=function(a){this.toastOpened=a.detail.value};
_.Vm.Object.defineProperties(eXc.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var a,b,c=(a=this.data)==null?void 0:(b=a.actionButton)==null?void 0:b.buttonRenderer;return(c==null?void 0:c.command)||(c==null?void 0:c.serviceEndpoint)||(c==null?void 0:c.navigationEndpoint)}},
ephemeralAction:{configurable:!0,enumerable:!0,get:function(){if(this.ephemeralActionsEnabled&&this.labelText&&this.command&&this.duration)return{announcement: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 a=[],b;((b=this.data)==null?0:b.responseText)&&a.push(_.Vp(this.data.responseText));var c;((c=this.data)==null?0:c.subText)&&a.push(_.Vp(this.data.subText));var d,e;if((d=this.data)==null?0:(e=d.actionButton)==null?0:e.buttonRenderer){var g,k;a.push(((g=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(k=g.accessibilityData)==null?void 0:k.label)||_.Vp(this.data.actionButton.buttonRenderer.text))}return a.filter(function(m){return m}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var a,b;return(b=(a=this.toast)==null?void 0:a.opened)!=null?b:!1}}});
var F4=eXc;F4.prototype.toastOpenedChangedForBinding=F4.prototype.toastOpenedChangedForBinding;F4.prototype.toastOpenedChanged=F4.prototype.toastOpenedChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],F4.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.CK.YtEventForwardingBehavior),_.W("design:type",Object)],F4.prototype,"ytEventForwardingBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],F4.prototype,"data",void 0);
_.U([_.O(),_.W("design:type",Object)],F4.prototype,"duration",void 0);_.U([_.O(),_.W("design:type",Number)],F4.prototype,"toastType",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],F4.prototype,"useCloseButton",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],F4.prototype,"closeToastOnActionButtonClick",void 0);_.U([_.O({value:function(){return _.to("SBOX_INAPPROPRIATE_CANCEL")}}),
_.W("design:type",String)],F4.prototype,"closeButtonAriaLabel",void 0);_.U([_.O(),_.W("design:type",Boolean)],F4.prototype,"toastOpened",void 0);_.U([_.O(),_.W("design:type",Boolean)],F4.prototype,"hasOpened",void 0);_.U([_.O(),_.W("design:type",Object)],F4.prototype,"ephemeralActionsEnabled",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],F4.prototype,"command",null);
_.U([_.K("ephemeralActionsEnabled","labelText","command","duration"),_.W("design:type",Object),_.W("design:paramtypes",[])],F4.prototype,"ephemeralAction",null);_.U([_.K("ephemeralAction"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],F4.prototype,"hasEphemeralAction",null);_.U([_.gr("#toast"),_.W("design:type",Object)],F4.prototype,"toast",void 0);_.U([_.O({value:function(){return{style:"call-to-action-inverse"}}}),
_.W("design:type",Object)],F4.prototype,"buttonOverrides",void 0);_.U([_.O({value:{style:"mono-inverse"}}),_.W("design:type",Object)],F4.prototype,"closeButtonOverrides",void 0);_.U([_.O({value:function(){return _.v().resolve(_.Wi(_.uhc))}}),
_.W("design:type",Object)],F4.prototype,"toastManager",void 0);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],F4.prototype,"labelText",null);_.U([_.N("toastOpened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],F4.prototype,"toastOpenedChanged",null);_.U([_.N("toastOpened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],F4.prototype,"toastOpenedChangedForBinding",null);
F4=_.U([_.ur({is:"yt-notification-action-renderer",disableElementRegistration:!0})],F4);
_.S(F4,"yt-notification-action-renderer",function(){if(dXc===void 0){var a=document.createElement("template");_.B(a,'\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="" 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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;cXc===void 0&&(cXc=document.createElement("template"));var d=cXc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);dXc=a}a=dXc;return a},{mode:2});var fXc=function(){var a=_.P.apply(this,arguments)||this;a.duration=4E3;a.downloadingCount=0;a.downloadedCount=0;a.downloadingOnlySmartDownloads=!1;a.sessionTotalDownloads=0;a.sessionDownloaded=0;a.previousSessionsDownloaded=0;a.totalDownloadPercentage=0;a.currentDownloadProgress=0;a.currentDownloadPercentage=0;a.isLeaderTab=!0;a.isFullScreen=!1;a.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};a.boundBeforeUnload=function(b){a.isLeaderTab&&a.downloadingCount>0&&(b.preventDefault(),
b.returnValue=!0)};
return a};
_.z(fXc,_.P);_.f=fXc.prototype;
_.f.open=function(){var a=this;this.updateDownloadState();if(this.data){var b=this.sessionDownloaded+1,c=this.sessionTotalDownloads>1?_.to("VIDEOS_DOWNLOADING_RATIO",{downloaded:b.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+b+"/"+this.sessionTotalDownloads):_.to("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(c=this.sessionTotalDownloads>1?_.to("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:b.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
b+"/"+this.sessionTotalDownloads):_.to("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));b=this.isLeaderTab?_.to("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.Vp(this.data.responseText)!==c||_.Vp(this.data.subText)!==b)this.set("data.responseText",_.Up(c)),this.set("data.subText",_.Up(b)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);_.OKb().isKeyBoardInUse()&&_.Tm(this,function(){a.hostElement.focus()});
window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.f.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.f.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.f.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.f.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var a=this.downloadedCount-this.previousSessionsDownloaded;a<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-a);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.f.handleFullscreenChange=function(a){(this.isFullScreen=a)||this.updatePopup()};
var G4=fXc;G4.prototype.updateCurrentDownloadProgress=G4.prototype.updateCurrentDownloadProgress;G4.prototype.updatePopup=G4.prototype.updatePopup;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],G4.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],G4.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.CK.YtEventForwardingBehavior),_.W("design:type",Object)],G4.prototype,"ytEventForwardingBehavior",void 0);
_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],G4.prototype,"actionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],G4.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],G4.prototype,"duration",void 0);_.U([_.O({selector:function(a){return _.uEa(a.entities).length}}),
_.W("design:type",Object)],G4.prototype,"downloadingCount",void 0);_.U([_.O({selector:Qsc}),_.W("design:type",Object)],G4.prototype,"downloadedCount",void 0);_.U([_.O({selector:function(a){var b=_.uEa(a.entities);return Psc(a.entities,b)}}),
_.W("design:type",Object)],G4.prototype,"downloadingOnlySmartDownloads",void 0);_.U([_.O(),_.W("design:type",Object)],G4.prototype,"sessionTotalDownloads",void 0);_.U([_.O(),_.W("design:type",Object)],G4.prototype,"sessionDownloaded",void 0);_.U([_.O(),_.W("design:type",Object)],G4.prototype,"previousSessionsDownloaded",void 0);_.U([_.O(),_.W("design:type",Object)],G4.prototype,"totalDownloadPercentage",void 0);
_.U([_.O({selector:function(a){var b;a=(b=_.uEa(a.entities))!=null?b:[];return a.length>0?_.iEa(a.slice(-1)):0}}),
_.W("design:type",Object)],G4.prototype,"currentDownloadProgress",void 0);_.U([_.O(),_.W("design:type",Object)],G4.prototype,"currentDownloadPercentage",void 0);_.U([_.O({selector:_.xFa}),_.W("design:type",Object)],G4.prototype,"isLeaderTab",void 0);_.U([_.gr("yt-notification-action-renderer"),_.W("design:type",Object)],G4.prototype,"notificationActionRenderer",void 0);
_.U([_.kr("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],G4.prototype,"updatePopup",null);_.U([_.kr("currentDownloadProgress"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],G4.prototype,"updateCurrentDownloadProgress",null);G4=_.U([_.Q({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],G4);
_.S(G4,"ytd-video-download-toast-renderer",function(){if(bXc!==void 0)return bXc;var a=document.createElement("template");_.B(a,'\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>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return bXc=a},{mode:1});var gXc;var hXc;var iXc=function(){return _.P.apply(this,arguments)||this};
_.z(iXc,_.P);iXc.prototype.computeIsRedLogo=function(a,b){!a&&b&&(a=b);return a==="YOUTUBE_RED_LOGO"||a==="YOUTUBE_PREMIUM_LOGO"};
iXc.prototype.computeLogoName=function(a){a=this.componentBehavior.computeIcon_(a);return a===""?"yt-logos-ext:yt-logo-updated":a};
var H4=iXc;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],H4.prototype,"componentBehavior",void 0);_.U([_.O({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.W("design:type",Boolean)],H4.prototype,"isRedLogo",void 0);_.U([_.O({computed:"computeLogoName(data)"}),_.W("design:type",String)],H4.prototype,"logoName",void 0);_.U([_.O({value:{}}),_.W("design:type",Object)],H4.prototype,"data",void 0);
_.U([_.O(),_.W("design:type",Object)],H4.prototype,"logoType",void 0);H4=_.U([_.Q({disableElementRegistration:!0,is:"ytd-logo"})],H4);
_.S(H4,"ytd-logo",function(){if(hXc!==void 0)return hXc;var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return hXc=a},{mode:_.as("kevlar_poly_si_batch_j074")?1:2});var jXc=function(){var a=_.P.apply(this,arguments)||this;a.animationRef={};return a};
_.z(jXc,_.P);_.f=jXc.prototype;_.f.attached=function(){document.addEventListener("yt-navigate-finish",_.er(this,this.logYoodle))};
_.f.detached=function(){document.removeEventListener("yt-navigate-finish",_.er(this,this.logYoodle))};
_.f.logYoodle=function(){var a,b;if((a=this.data)==null?0:(b=a.loggingDirectives)==null?0:b.trackingParams)this.ytRendererBehavior.markDirty(),_.ms().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.f.computeHideImg=function(a,b){return!!a||!!b};
_.f.computeHideYtdLogo=function(a,b){return!a||!!b};
_.f.computeHideLottie=function(a){return!a};
_.f.computeIsRedLogo=function(a){return a==="YOUTUBE_RED_LOGO"||a==="YOUTUBE_PREMIUM_LOGO"};
_.f.renderLogoEntity=function(){var a=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),b=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),c=this.getLogoTitleText(this.data),d=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==a&&(this.url=a);this.animatedUrl!==b&&(this.animatedUrl=b);this.logoTitleText!==c&&(this.logoTitleText=c);this.lottieUrl!==d&&(this.lottieUrl=d,this.lottiePlayerProps=this.computeLottiePlayerProps(d))};
_.f.getSanitizedThumbnail=function(a){return a&&a.thumbnails?_.IRa(a.thumbnails,122)||"":""};
_.f.getThumbnailUrl=function(a,b){if(!b)return"";var c,d;a=a?(c=b.darkThemeLogo)==null?void 0:c.thumbnail:(d=b.lightThemeLogo)==null?void 0:d.thumbnail;return this.getSanitizedThumbnail(a)};
_.f.getAnimatedThumbnailUrl=function(a,b){return b?this.getSanitizedThumbnail(a?b.darkThemeAnimatedLogo:b.lightThemeAnimatedLogo):""};
_.f.getLogoTitleText=function(a){if(a)return _.Vp(a.tooltipText)};
_.f.computeLogoIcon=function(a,b){if(b){var c,d;return a?(c=b.darkThemeLogo)==null?void 0:c.icon:(d=b.lightThemeLogo)==null?void 0:d.icon}};
_.f.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.f.getLottieUrl=function(a,b){var c,d,e,g;return a?b==null?void 0:(c=b.darkThemeLogo)==null?void 0:(d=c.lottieAnimation)==null?void 0:d.url:b==null?void 0:(e=b.lightThemeLogo)==null?void 0:(g=e.lottieAnimation)==null?void 0:g.url};
_.f.computeLottiePlayerProps=function(a){if(a){var b;if((b=this.animationRef)==null?0:b.lottieEl){var c;(c=this.animationRef)==null||c.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:a,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.f.onLottieError=function(){this.data&&this.lottieUrl&&_.go(this.hostElement,"yoodle-error")};
_.f.onImgError=function(){this.data&&!this.lottieUrl&&_.go(this.hostElement,"yoodle-error")};
var I4=jXc;I4.prototype.playAnimation=I4.prototype.playAnimation;I4.prototype.renderLogoEntity=I4.prototype.renderLogoEntity;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],I4.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],I4.prototype,"data",void 0);_.U([_.O({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.W("design:type",Boolean)],I4.prototype,"hideImg",void 0);
_.U([_.O({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.W("design:type",Boolean)],I4.prototype,"hideYtdLogo",void 0);_.U([_.O({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.W("design:type",Boolean)],I4.prototype,"hideLottie",void 0);_.U([_.O({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.W("design:type",Boolean)],I4.prototype,"isRedLogo",void 0);
_.U([_.O(),_.W("design:type",Boolean)],I4.prototype,"useDarkThemeYoodle",void 0);_.U([_.O(),_.W("design:type",String)],I4.prototype,"url",void 0);_.U([_.O(),_.W("design:type",String)],I4.prototype,"animatedUrl",void 0);_.U([_.O(),_.W("design:type",String)],I4.prototype,"logoTitleText",void 0);_.U([_.O({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.W("design:type",Object)],I4.prototype,"logoIcon",void 0);_.U([_.O(),_.W("design:type",Object)],I4.prototype,"logoType",void 0);
_.U([_.O(),_.W("design:type",String)],I4.prototype,"lottieUrl",void 0);_.U([_.O(),_.W("design:type",Object)],I4.prototype,"lottiePlayerProps",void 0);_.U([_.O(),_.W("design:type",Object)],I4.prototype,"animationRef",void 0);_.U([_.N("data"),_.N("useDarkThemeYoodle"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],I4.prototype,"renderLogoEntity",null);
_.U([_.M("click"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],I4.prototype,"playAnimation",null);I4=_.U([_.Q({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],I4);
_.S(I4,"ytd-yoodle-renderer",function(){if(gXc!==void 0)return gXc;var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return gXc=a},{mode:_.as("kevlar_poly_si_batch_j074")?1:2});var kXc;var lXc;var mXc=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return a};
_.z(mXc,_.P);_.f=mXc.prototype;_.f.onYoodleError=function(){_.x("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.f.computeLogoName=function(a){a=this.componentBehavior.computeIcon_(a);return a===""?"yt-logos-ext:yt-logo-updated":a};
_.f.computeTitle=function(a,b,c){return c&&(b==null?0:b.tooltipText)?_.Vp(b.tooltipText):_.Vp(a)};
_.f.computeAriaLabel=function(a,b,c){return c&&(b==null?0:b.tooltipText)?_.Vp(a):""};
_.f.computeShowYoodle=function(a,b,c){return!a||!b&&!!c&&!_.yf.isEmpty(c)};
_.f.onNavigateHomeAction=function(){if(_.x("kevlar_miniplayer_navigate_home_from_app_killswitch")){var a;(a=_.E(this.hostElement).querySelector(".yt-simple-endpoint"))==null||a.click()}};
_.f.computeLogoHref=function(a,b,c){var d;(c==null?0:c.onTapCommand)?d=this.componentBehavior.computeHref_(c.onTapCommand):a&&(d=this.componentBehavior.computeHref_(a));return d?d:b};
_.f.computeCommand=function(a,b){return(b==null?void 0:b.onTapCommand)||a};
_.f.getEndpointForm=function(){if(_.x("kevlar_topbar_disable_cache_only_home")){var a=_.v().resolve(_.IG),b=Wtc(a.getState())||"";a=_.DYa(a.getState())||"";return{disableCache:b==="ytd-browse"&&a==="home"}}return{disableCache:!0}};
var J4=mXc;J4.prototype.onYoodleError=J4.prototype.onYoodleError;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],J4.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],J4.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],J4.prototype,"componentBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],J4.prototype,"ytdReduxBehavior",void 0);
_.U([_.O(),_.W("design:type",Object)],J4.prototype,"data",void 0);_.U([_.O(),_.W("design:type",String)],J4.prototype,"countryCode",void 0);_.U([_.O({selectorArgs:["data.overrideEntityKey"],selector:function(a,b){return _.mp(a.entities,"logoEntity",b)}}),
_.W("design:type",Object)],J4.prototype,"logoEntity",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.W("design:type",Boolean)],J4.prototype,"showYoodle",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],J4.prototype,"yoodleError",void 0);_.U([_.O({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.W("design:type",String)],J4.prototype,"titleText",void 0);
_.U([_.O({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.W("design:type",String)],J4.prototype,"ariaLabelText",void 0);_.U([_.O({value:"/"}),_.W("design:type",String)],J4.prototype,"defaultEndpointUrl",void 0);_.U([_.O({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.W("design:type",String)],J4.prototype,"endpointUrl",void 0);
_.U([_.O({computed:"computeCommand(data.endpoint, logoEntity)"}),_.W("design:type",String)],J4.prototype,"command",void 0);_.U([_.O(),_.W("design:type",Object)],J4.prototype,"logoType",void 0);_.U([_.O({}),_.W("design:type",Boolean)],J4.prototype,"useDarkThemeYoodle",void 0);_.U([_.M("yoodle-error"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],J4.prototype,"onYoodleError",null);J4=_.U([_.Q({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],J4);
_.S(J4,"ytd-topbar-logo-renderer",function(){if(lXc!==void 0)return lXc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return lXc=a},{mode:_.as("kevlar_poly_si_batch_j027")?1:2});var nXc=0;var oXc=_.$X.SEARCH_APPEND_LABEL,pXc=_.$X.SUGGESTION_NEW_VIDEOS_TEXT,qXc=_.$X.SUGGESTION_THUMBNAIL_LABEL,rXc=_.Rr(function(a){function b(Ab){var Ya,Oa;return _.l(function(pb){if(pb.nextAddress==1)return Ya=new Request(Ab),_.me(pb,2),_.p(pb,fetch(Ya,{credentials:"include"}),4);if(pb.nextAddress!=2)return wd(!0),_.Jj(pb,0);Oa=_.re(pb);_.Dl(Oa);_.se(pb)})}
var c=a.isHighlighted;var d=a.suggestion;var e=a.onClickCallback;var g=a.onHoverUpdateCallback;var k=a.labels;var m=a.queryBuilderFunction;var n=a.onRemoveCallback;var r=a.suggestionIndex;var t=a.generateUniqueId;var u=a.highlightedId;var w=a.useScrollMargin;var A=a.isKeyboardMode;var C=null,G=null,J=_.Rl(),I=_.Rl(),R=_.Sl(function(Ab){Ab&&_.Rw(237477,Ab,G,function(Ya){G=Ya})}),ca=_.Sl(function(Ab){Ab&&_.Rw(237477,Ab,G,function(Ya){G=Ya})}),V=_.ot(function(Ab){if((Ab==null?void 0:Ab.button)===2)return Ab.preventDefault(),
!1;
var Ya=_.Fn();Ya&&C&&_.Wo(Ya,C,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var Oa;e(Ab,d().text,d().index,Ab==null?void 0:(Oa=Ab.detail)==null?void 0:Oa.wasSelectedByKeyboard);return!1}),fa=function(){return d().type===35},aa=function(){return _.x("desktop_enable_single_suggestion_highlight")},ma=function(){return _.$i("desktop_suggestions_panel_row_height")||0},Ba=function(){var Ab;
return _.x("desktop_enable_new_video_metadata")&&((Ab=d())==null?void 0:Ab.hasNewVideo)===!0},Da=function(){return _.x("desktop_enable_visual_suggest")},za=function(){return aa()?(c==null?void 0:c())||Fb()&&!(A==null?0:A()):(c==null?void 0:c())||Fb()},Fa=function(){var Ab=_.Ei("SBOX_SETTINGS");
return fa()&&!(Ab==null?0:Ab.HIDE_REMOVE_LINK)},bb=function(){return IWc(d())},kb,Ua=!((kb=_.v().resolve(_.Wi(_.Ns)))==null||!kb()),Fc=function(){return fa()?"ARROW_TIME":"SEARCH"},id=function(){return k==null?void 0:k().SUGGESTION_DISMISS_LABEL},Mb=function(){return k==null?void 0:k().SUGGESTION_DISMISSED_LABEL};
kb=_.h(_.fh(!1,"l3epFd"));a=kb.next().value;var wd=kb.next().value;kb=_.h(_.fh(!1,"IdYnHc"));var Tb=kb.next().value,tb=kb.next().value,Fb=Tb,dd=_.ot(function(){m(I.value.innerText);return!1}),be=_.ot(function(Ab){Ab.preventDefault();
return!1}),ia=_.ot(function(Ab){var Ya=d().text,Oa=_.Ei("SBOX_SETTINGS"),pb="https://"+(Oa.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
pb+="&delq="+encodeURIComponent(Ya);(Ya=Oa==null?void 0:Oa.PSUGGEST_TOKEN)&&(pb+="&tok="+Ya);(Oa=Oa==null?void 0:Oa.SESSION_INDEX)&&(pb+="&authuser="+Oa);b(pb);Ab.preventDefault();(Ab=_.Fn())&&G&&_.Wo(Ab,G,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");n(r==null?void 0:r());return!1}),gc=_.ot(function(){if(aa()&&(A==null?0:A()))return!1;
tb(!0);g(!0);return!1}),Pb=_.ot(function(){tb(!1);
g(!1);return!1});
kb=_.h(_.fh("","bHTG2e"));var Lc=kb.next().value,qb=kb.next().value;_.ti(function(){Fa()&&qb(t==null?void 0:t(r==null?void 0:r()));J.value&&_.Rw(12453,J.value,C,function(Ab){C=Ab})});
return _.q(_.oi,{cond:a,then:function(){var Ab={};return _.q("div",{class:_.jt("ytSuggestionComponentRemovedText",(Ab.ytSuggestionComponentLargerRemovedText=function(){return Da()},Ab)),
style:function(){return ma()>0?"height: "+ma()+"px;":""},
role:"button"},Mb)},
else:function(){var Ab={},Ya={};return _.q("div",{class:_.jt("ytSuggestionComponentSuggestion",(Ab.ytSuggestionComponentSuggestionHover=function(){return!aa()},Ab.ytSuggestionComponentHighlighted=za,Ab.ytSuggestionComponentPersonalizedSuggestion=fa,Ab.ytSuggestionComponentMweb=!1,Ab.ytSuggestionComponentLargerSuggestion=function(){return Ba()||Da()},Ab.ytSuggestionComponentThumbnailSuggestion=function(){return Da()},Ab.ytSuggestionComponentRoundedSuggestion=function(){return _.x("desktop_enable_scrollable_suggestions_panel")&&
_.x("desktop_enable_suggestions_panel_padding")},Ab)),
style:function(){return ma()>0?"height: "+ma()+"px;":""},
role:"presentation","on:mousedown":V,"on:mouseover":gc,"on:mouseout":Pb,el:J},_.q("div",{class:_.jt("ytSuggestionComponentText",(Ya.ytSuggestionComponentScrollMargin=w,Ya)),"aria-label":function(){return Ba()?d().text+" "+pXc:d().text},
id:function(){return t==null?void 0:t(r==null?void 0:r())},
"on:mousedown":V,role:"option"},_.q(_.oi,{cond:function(){return d().type!==33},
then:function(){return _.q(_.tt,{icon:Fc,className:"ytSuggestionComponentIcon"})}}),_.q("div",{class:"ytSuggestionComponentLeftContainer"},_.q("span",{el:I,
role:"button",tabindex:0},_.q(_.ni,{each:bb},function(Oa){return Oa.bold?_.q("span",{class:"ytSuggestionComponentBold"},Oa.text):_.q("span",null,Oa.text)})),_.q(_.oi,{cond:function(){return Ba()},
then:function(){return _.q("div",{class:"ytSuggestionComponentNewVideoContainer"},_.q("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.q("div",{class:"ytSuggestionComponentNewVideoText"},pXc))}}))),_.q("div",{class:"ytSuggestionComponentRightContainer"},_.q(_.oi,{cond:function(){return Da()&&d().visualSuggestUrl!==void 0},
then:function(){return _.q("img",{"aria-label":qXc,class:"ytSuggestionComponentvisualSuggestThumbnail",src:function(){return d().visualSuggestUrl}})}}),_.q(_.qi,null,_.q(_.pi,{when:function(){return Da()&&Fa()}},function(){var Oa={};
return _.q("button",{class:_.jt("ytSuggestionComponentRemoveLinkClearButton",(Oa.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return Lc()&&Lc()===(u==null?void 0:u())},Oa.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!za()},Oa)),
el:ca,"on:mousedown":ia,"aria-label":id,id:function(){return Lc()}},_.q(_.tt,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.q(_.pi,{when:function(){return!(Da()&&d().visualSuggestUrl!==void 0)&&Fa()}},function(){var Oa={};
return _.q("a",{class:_.jt("ytSuggestionComponentRemoveLink",(Oa.ytSuggestionComponentRemoveLinkDark=Ua,Oa.ytSuggestionComponentRemoveLinkSelected=function(){return Lc()&&Lc()===(u==null?void 0:u())},Oa)),
el:R,"on:mousedown":ia,"aria-label":id,tabindex:0,role:"button",id:function(){return Lc()}},id)}),_.q(_.pi,{when:function(){return!1}},function(){return _.q("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":dd,"on:mousedown":be,role:"button","aria-label":oXc},_.q(_.tt,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})});var sXc=_.Rr(function(){var a=_.ot(function(){MWc().inputMethodsTracker.add(3);var b,c=(b=_.Ei("SBOX_SETTINGS"))==null?void 0:b.REQUEST_LANGUAGE;if(c)return _.Ln("//www.google.com/textinputassistant/14/"+c+"_tia.js"),!1});
return _.q("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.q("button",{class:"ytdTextInputAssistantButton","on:click":a},_.q("img",{class:"ytdTextInputAssistantIcon",tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))});var tXc=function(){this.cache=new Map},uXc=function(a){for(var b=_.h(a.cache.entries()),c=b.next();!c.done;c=b.next()){var d=_.h(c.value);
c=d.next().value;d=d.next().value;d.suggestions.some(function(e){return e.type===35})&&a.cache.delete(c)}};var vXc=_.$X.SEARCH,wXc=_.$X.SEARCH_CLEAR_LABEL,xXc=new _.fB("FAKE_SUGGEST_RESPONSE");_.Ws(_.Rr(function(a){function b(){Oa||(Oa=setTimeout(function(){Yb()},1E3))}
function c(fb,ib){if(fb.trim()){Ya=fb;_.Bi("REFINEMENTS_TUPLE",void 0);qb=!0;var Qb;ib=PWc(be,ib);var xb=(Qb=a.searchEndpoint)==null?void 0:Qb.call(a);Qb=Tb.value.value;xb||(xb=uAc);var sd;(sd=_.y(xb.commandMetadata,_.ao))!=null&&sd.url||(sd=Error("il`"+JSON.stringify(xb)),_.Bl(sd),xb=uAc);sd=_.yf.unsafeClone(xb);xb=_.Il(_.y(sd.commandMetadata,_.ao).url,"search_query",fb);_.Hg(location.href,"sv")==="1"&&(_.y(sd,_.qq).params="EgOAAgE%3D",xb=_.Il(xb,"sv","1"));_.y(sd,_.qq)&&(_.y(sd,_.qq).query=fb);
xb=xb.replace(/%20/g,"+");_.y(sd.commandMetadata,_.ao).url=xb;_.v().resolve(_.Xi).resolveCommand(sd,{form:{tempData:{gs_l:ib,oq:Qb!=null?Qb:fb}}});Yb();Tb.value.value=fb;Tb.value.blur();be.reset()}}
function d(fb){return _.l(function(ib){return ib.return(new Promise(function(Qb){var xb=new XMLHttpRequest;xb.open("GET",FWc(fb),!0);xb.withCredentials=!0;var sd=_.Ei("SBOX_SETTINGS");(sd==null?0:sd.SEND_VISITOR_DATA)&&xb.setRequestHeader("X-Goog-Visitor-Id",sd==null?void 0:sd.VISITOR_DATA);xb.onload=function(){Qb(xb.responseText)};
xb.onerror=function(){_.Dl(Error("jl"));Qb(null)};
setTimeout(function(){xb.abort()},1E4);
xb.send(null)}))})}
function e(fb){var ib,Qb,xb,sd;return _.l(function(Yf){switch(Yf.nextAddress){case 1:return ib={credentials:"include",headers:EWc()},window.AbortController&&(Qb=new AbortController,setTimeout(function(){Qb.abort("ytsbox-suggest-timeout")},1E4),ib.signal=Qb.signal),_.me(Yf,2),_.p(Yf,fetch(FWc(fb),ib),4);
case 4:xb=Yf.yieldResult.text();_.Jj(Yf,3);break;case 2:return sd=_.re(Yf),sd!=="ytsbox-abort-last"&&sd!=="ytsbox-suggest-timeout"&&_.Dl(sd),Yf.return(null);case 3:return Yf.return(xb)}})}
function g(fb){var ib,Qb,xb;return _.l(function(sd){switch(sd.nextAddress){case 1:if(ib=_.v().resolve(_.Wi(xXc)))return sd.return(ib);Qb=Date.now();b();return _.x("yt_searchbox_xhr")?_.p(sd,d(fb),5):_.p(sd,e(fb),4);case 4:xb=sd.yieldResult;sd.jumpTo(3);break;case 5:xb=sd.yieldResult;case 3:if(xb){Oa&&(clearTimeout(Oa),Oa=null);var Yf=be,zb=Qb,pk=fb.query.length===0;zb=Date.now()-zb;pk?Yf.zeroPrefixRoundTripTime=zb:(Yf.JSC$18224_totalRoundTripTime+=zb,Yf.maxRoundTripTime=Math.max(Yf.maxRoundTripTime,
zb),pk=Math.floor(zb/100),pk>=QWc.length?++Yf.roundTripTimeHistogram[9]:++Yf.roundTripTimeHistogram[QWc[pk]])}return sd.return(xb)}})}
function k(fb){var ib,Qb,xb;return _.l(function(sd){if(sd.nextAddress==1)return(ib=dd.cache.get(DWc(fb)))?sd.return(ib):_.p(sd,g(fb),2);Qb=sd.yieldResult;if(Qb===null)return sd.return(null);xb=new JWc(Qb);fb.query.length===0&&xb.suggestions.length===0||dd.cache.set(DWc(fb),xb);return sd.return(xb)})}
function m(fb){var ib,Qb;return _.l(function(xb){if(xb.nextAddress==1){Ab=!1;var sd=Ya;sd=_.K_a()==="search"?(_.Hg(location.href,"search_query")||_.Hg(location.href,"q"))===sd:!1;ib=new CWc(fb,sd?Ya:null);return _.p(xb,k(ib),2)}Qb=xb.yieldResult;if(Qb===null)return xb.return();ib.query.length===0&&(be.zeroPrefixSuggestionCount=Qb.suggestions.length);if(ib.id<=pb)return be.outOfSyncResponseCount++,xb.return();if(document.activeElement!==Tb.value)return xb.return();pb=ib.id;var Yf=be,zb=Qb.rawResponse[2]||
{};Yf.experimentTriggeredBeforeFinal||(Yf.experimentTriggeredBeforeFinal=Yf.experimentTriggeredFinal);Yf.experimentTriggeredFinal=!!zb.e;be.updateSuggestions(Qb.suggestions);J(-1);Fc([]);Qb.suggestions!==A()&&Qk(Qb.suggestions.length);C(Qb.suggestions);Ba(Qb.suggestions.length>0&&Qb.suggestions[0].type===33);Fb&&(Fb.hidden=Qb.suggestions.length===0,ma()?(Fb.style.minWidth="",Yf=Fb.style,zb=(sd=A()[0])==null?void 0:sd.ignoredPrefix,Yf.marginLeft=(zb?Math.min(zb.length*6,tb.value.offsetWidth):0).toString()+
"px"):(Fb.style.minWidth=tb.value.offsetWidth+"px",Fb.style.marginLeft="0"),Zi());_.se(xb)})}
function n(){if(!qb)return!1;var fb=_.Ei("REFINEMENTS_TUPLE");return fb?(fb=fb[1].map(function(ib,Qb){return new HWc([ib,0,[71]],Tb.value.value,Qb)}),A()!==fb&&Qk(fb.length),Fc([]),C(fb),be.updateSuggestions(fb),qb=!1,Fb.hidden=fb.length===0,Ab=fb.length>0,!0):!1}
function r(){var fb=Tb.value.value;(typeof fb==="string"||fb instanceof String)&&fb!==""?V(!0):V(!1)}
function t(){if(_.K_a()==="search"){var fb=window.location.href;try{var ib=_.Hg(fb,"search_query")||_.Hg(fb,"q")||""}catch(Qb){ib=""}ib&&(Tb.value.value=ib,V(!0))}}
var u=_.h(_.fh([],"nfrtkb")),w=u.next().value;u=u.next().value;var A=w,C=u;w=_.h(_.fh(-1,"cRyFvd"));var G=w.next().value,J=w.next().value;w=_.h(_.fh(-1,"EriPWe"));var I=w.next().value,R=w.next().value;w=_.h(_.fh(!1,"UK7opd"));var ca=w.next().value,V=w.next().value;w=_.h(_.fh(!1,"ego0bc"));var fa=w.next().value,aa=w.next().value;u=_.h(_.fh(!1,"lRwSBb"));w=u.next().value;u=u.next().value;var ma=w,Ba=u;u=_.h(_.fh(!1,"gLkpXb"));w=u.next().value;var Da=u.next().value;u=_.h(_.fh(!1,"In4Zlb"));var za=u.next().value,
Fa=u.next().value;u=_.h(_.fh(1,"pQNR0c"));var bb=u.next().value,kb=u.next().value;u=_.h(_.fh([],"EFteUe"));var Ua=u.next().value,Fc=u.next().value;u=_.h(_.fh(!1,"fnEGyd"));var id=u.next().value,Mb=u.next().value;u=_.x("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var wd=_.Rl(),Tb=_.Rl(),tb=_.Rl(),Fb,dd=new tXc,be=MWc(),ia=_.v().resolve(_.Wi(_.Ns)),gc=function(){var fb;return((fb=a.forceDarkMode)==null?
void 0:fb.call(a))||!(ia==null||!ia())},Pb=function(){return _.x("desktop_enable_scrollable_suggestions_panel")},Lc="i"+nXc++,qb=!1,Ab=!1,Ya="",Oa=null,pb=-1,Yb=function(){Fc([]);
C([]);Ba(!1);Fb&&(Fb.hidden=!0);Oa&&(clearTimeout(Oa),Oa=null);J(-1)},Pc=function(fb,ib){fb.preventDefault();
Mb(!0);Fb&&(Fb.hidden=!1);var Qb=G();fb=A();var xb=Ua();ib=Yxc(ib);Qb+=ib;for(Qb>=fb.length?Qb=-1:Qb<-1&&(Qb=fb.length-1);Qb!==-1&&(xb.includes(Qb)||Qb>=fb.length||Qb<0);)Qb+=ib,Qb>=fb.length&&(Qb=-1);J(Qb);G()>=0&&(Tb.value.value=A()[G()].text,R(0),r(),fb=G(),xb=I(),(xb=document.getElementById(nd[fb][xb]))&&Pb()&&(fb===A().length-1?Fb.scrollTop=Fb.scrollHeight:xb.scrollIntoView({block:"nearest",inline:"start"})))};
_.Tl(Tb,"focus",function(fb){if(!(fb.relatedTarget instanceof Element&&fb.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){aa(!0);var ib;(ib=a.focusCallback)==null||ib.call(a,!0);n()||(Ab?Fb.hidden=!1:(_.go(wd.value,"yt-autonav-pause-focus",{}),m(fb.target.value)))}});
_.Tl(Tb,"blur",function(fb){if(!(fb.relatedTarget instanceof Element&&fb.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){aa(!1);var ib;(ib=a.focusCallback)==null||ib.call(a,!1);Fb.scrollTop=0;Fb.hidden=!0;_.go(wd.value,"yt-autonav-pause-blur",{})}});
var Db=function(fb){fb=Yxc(fb);var ib;((ib=nd[G()])==null?0:ib[I()+fb])&&R(I()+fb)},Vc=_.ot(function(fb){var ib=fb.target;
switch(fb.keyCode){case 13:fb.preventDefault();var Qb;if((Qb=nd[G()])==null?0:Qb[I()]){var xb;(xb=document.getElementById(nd[G()][I()]))==null||xb.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}fb=fb.shiftKey?4:3;Qb=be;xb=G();Qb.selectedSuggestionIndex=xb;c(ib.value,fb);break;case 27:Fb&&(Fb.hidden=!0);break;case 40:Pc(fb,40);break;case 38:Pc(fb,38);break;case 39:Db(39);break;case 37:Db(37);break;case 229:be.inputMethodsTracker.add(4);break;default:be.inputMethodsTracker.add(1),
NWc(be)}return!1}),zd=_.ot(function(fb){m(fb.target.value);
r();Pb()&&Fb&&(Fb.scrollTop=0);return!1}),pm=_.ot(function(){be.inputMethodsTracker.add(2);
NWc(be);return!1});
_.ti(function(){if(Fb){be.reset();if(window.ResizeObserver){var fb=new ResizeObserver(function(){ma()||(Fb.style.minWidth=tb.value.offsetWidth+"px")});
fb.observe(tb.value);(new ResizeObserver(function(){Zi()})).observe(Fb);
_.wh(function(){fb.disconnect()})}t();
window.addEventListener("yt-navigate-finish",t);window.addEventListener("yt-focus-searchbox",function(){Tb.value.focus()});
var ib;Da((ib=_.Ei("SBOX_SETTINGS"))==null?void 0:ib.HAS_ON_SCREEN_KEYBOARD)}else _.Bl(new _.qj("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var jd=_.ot(function(fb){fb.preventDefault();c(Tb.value.value,12);return!1}),Mf=_.ot(function(fb){fb.preventDefault();
var ib,Qb;(ib=Tb)==null||(Qb=ib.value)==null||Qb.focus();var xb,sd;((xb=Tb)==null?void 0:(sd=xb.value)==null?void 0:sd.value)!==""&&(Tb.value.value="",Tb.value.dispatchEvent(new Event("input")));return!1}),$o=_.ot(function(){var fb=Xtc(Tb.value.value,A().filter(function(ib){return ib.type!==35}).map(function(ib){return{label:ib.text}}));
_.ho(wd.value,"yt-open-popup-action",[{openPopupAction:fb},document.body]);return!1}),Ye=_.ot(function(){Tb.value.focus();
return!1}),Yg=function(fb,ib,Qb,xb){be.selectedSuggestionIndex=Qb;
c(ib,xb?3:1)},Ci=function(fb){Tb.value.value=fb;
Tb.value.dispatchEvent(new Event("input"));be.inputMethodsTracker.add(5);NWc(be,!0)},nd=[[]],Xp=function(fb){var ib="searchbox-suggestion"+_.Kv(_.Lv);
nd[fb].push(ib);return ib},Qk=function(fb){if(A()){nd=[[]];
for(var ib=0;ib<fb;ib++)nd.push([])}},Zi=function(){if(Pb()){var fb=Fb,ib=fb.scrollTop;
fb=fb.scrollHeight-fb.clientHeight;Fa(ib>=fb);ib=Math.abs(fb-ib);ib<=40?kb(1-(40-ib)/40):kb(1)}},Di=function(){return"opacity: "+bb()*100+"%"},Ke=_.ot(function(){Zi();
return!1}),ap=_.ot(function(){Mb(!1);
return!1}),sa,Ga={},La={},mb={},fc={};
return _.q("yt-searchbox",{class:_.jt("ytSearchboxComponentHost",(Ga.ytSearchboxComponentMweb=!1,Ga.ytSearchboxComponentDesktop=!0,Ga["yt-searchbox-filled-query"]=function(){return ca()},Ga["ytd-masthead"]=function(){return!fa()},Ga.ytSearchboxComponentHostDark=gc,Ga)),
role:"search",el:wd,"client-ve-type":10349},_.q("div",{el:tb,"on:click":Ye,class:_.jt("ytSearchboxComponentInputBox",(La.ytSearchboxComponentInputBoxDark=gc,La.ytSearchboxComponentInputBoxHasFocus=fa,La))},_.q("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":jd},_.q(_.oi,{cond:fa,then:function(){return _.q("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.q(_.tt,{icon:"SEARCH"}))}}),_.q("input",{el:Tb,
class:_.jt("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":Lc,"aria-expanded":!((sa=Fb)==null?0:sa.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:!1,"on:input":zd,"on:keydown":Vc,"on:paste":pm,placeholder:a.placeholderText,"aria-activedescendant":function(){var fb;return(fb=nd[G()])==null?void 0:fb[I()]},
"aria-autocomplete":"list",role:"combobox"})),_.q(_.oi,{cond:w,then:function(){return _.q("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.q(sXc,null))}}),_.q(_.oi,{cond:ca,
then:function(){return _.q("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.q("button",{class:"ytSearchboxComponentClearButton","on:click":Mf,"aria-label":a.clearButtonAriaLabel||wXc},_.q(_.tt,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.q(_.xt,{model:{}})))}})),_.q("button",{class:_.jt("ytSearchboxComponentSearchButton",(mb.ytSearchboxComponentSearchButtonDark=gc,mb)),
"on:click":jd,"aria-label":vXc,title:a.placeholderText},_.q(_.tt,{icon:"SEARCH"})),_.q(_.oi,{cond:function(){if(ixc()&&_.x("mweb_voice_search")&&a.voiceSearchButton)return a.voiceSearchButton()},
then:function(fb){var ib={};return _.q("div",{class:_.jt("ytSearchboxComponentVoiceSearchWrapper",(ib.ytSearchboxComponentHideVoiceSearchButton=function(){return ca()},ib))},_.q(_.Eu,{data:fb},{buttonRenderer:function(Qb){return _.q(_.dL,{data:Qb.data,
onButtonClickCallback:function(){}})}}))}}),_.q("div",{el:_.qRa(function(fb){return void(Fb=fb)}),
id:Lc,class:_.jt("ytSearchboxComponentSuggestionsContainer",(fc.ytSearchboxComponentSuggestionsContainerDark=gc,fc["yt-searchbox-suggestions-container"]=!1,fc.ytSearchboxComponentSuggestionsContainerScrollable=Pb(),fc.ytSearchboxComponentSuggestionsContainerAnimated=u,fc)),"on:scroll":Ke,"on:mousemove":ap,role:"listbox",hidden:!0},_.q(_.ni,{each:A},function(fb,ib){return _.q(rXc,{suggestion:fb,isHighlighted:function(){return ib()===G()},
onClickCallback:Yg,onHoverUpdateCallback:function(Qb){if(_.x("desktop_enable_single_suggestion_highlight")){var xb=ib();Qb&&(R(0),J(xb))}},
onRemoveCallback:function(Qb){uXc(dd);Qb===void 0||Qb<0||Ua().includes(Qb)||Fc([].concat(_.Be(Ua()),[Qb]))},
labels:a.labels,queryBuilderFunction:Ci,suggestionIndex:ib,generateUniqueId:Xp,highlightedId:function(){var Qb;return(Qb=nd[G()])==null?void 0:Qb[I()]},
useScrollMargin:Pb(),isKeyboardMode:id})}),_.q(_.oi,{cond:function(){return!ma()&&A().find(function(fb){return fb.type!==35})&&_.x("searchbox_reporting")},
then:function(){return _.q("button",{class:"ytSearchboxComponentReportButton","on:mousedown":$o},_.to("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.q(_.oi,{cond:function(){return!za()&&Pb()},
then:function(){return _.q("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.q("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:Di}))}})))}),"yt-searchbox",{props:{searchEndpoint:_.SG,
placeholderText:_.SG,labels:_.SG,voiceSearchButton:_.SG,focusCallback:_.Vs,clearButtonAriaLabel:_.SG,forceDarkMode:_.SG}});var yXc=function(){var a=_.P.apply(this,arguments)||this;a.menuButtonTargetId="topbar-guide-menu";a.narrow=!1;a.menuStrings={BACK_ALT_LABEL:_.to("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.to("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.to("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.to("SBOX_PLACEHOLDER",void 0,"Search")};a.pageDarkTheme=document.documentElement.hasAttribute("dark");a.watchPageScrollTop=0;a.theater=!1;a.fullscreen=!1;a.desktopUnifiedSearchPanelMode=_.x("desktop_enable_unified_search_panel");
a.cinematicTheaterMode=_.x("web_cinematic_theater_mode");a.ytSearchboxFocused=!1;a.searchboxLabels=_.Ei("SBOX_LABELS");a.topbarIsAboveChipbar=!1;a.isDarkThemeForced=!1;a.areGhostCardsHidden=!1;a.guideKeyboardToggle=!1;a.voiceSearchManager=wNc();a.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};a.setYtSearchboxFocused=function(b){a.ytSearchboxFocused=b};
return a};
_.z(yXc,_.P);_.f=yXc.prototype;_.f.computeSimpleText=function(a){return _.Vp(a)};
_.f.onDarkChanged=function(){for(var a=_.h(this.buttons||[]),b=a.next();!b.done;b=a.next())b.value.isOverlay=!!this.dark;a=_.h(this.buttonRenderers||[]);for(b=a.next();!b.done;b=a.next())b.value.overrides=this.computeButtonOverride()};
_.f.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.f.configureRendererStamper=function(){return{"data.interstitial":{id:"interstitial",mapping:{consentBumpV2Renderer:"ytd-consent-bump-v2-renderer"}},"data.voiceSearchButton":{id:"voice-search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapVoiceButton]]",overrides:"[[buttonOverrides]]"}}},reuseComponents:!1},"data.topbarButtons":{id:"buttons",events:!0,mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}},
notificationTopbarButtonRenderer:{component:"ytd-notification-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},iconBadgeTopbarButtonRenderer:{component:"ytd-icon-badge-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},topbarMenuButtonRenderer:"ytd-topbar-menu-button-renderer"},initialRenderPriority:1},"data.a11ySkipNavigationButton":{id:"skip-navigation",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.f.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var a=_.TF(_.SF(),"aa");_.$q(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||a||(this.isDarkThemeForced=this.dark=!0);this.logoType?(a=this.hostElement.querySelector("#masthead-logo"))&&(_.x("polymer_on_demand_shady_dom")?a.setAttribute("slot","masthead-logo-old"):_.mg(a)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.er(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.er(this,this.onSetTheaterModeEnabled))};
_.f.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.er(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.er(this,this.onSetTheaterModeEnabled))};
_.f.dataChanged=function(){var a=this.data;a&&(this.voiceEnabled=a.voiceSearchButton?wNc().isSupported():!1,_.yLb(_.pG(),this.menuButtonTargetId,this.guideButton),a.onReceivedActions&&a.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.no(this.hostElement,a.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&a&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.$q(this.hostElement,"dark",!1),_.$q(this.hostElement,"theater",!1),
(a=this.hostElement.querySelector("#masthead-logo"))&&(_.x("polymer_on_demand_shady_dom")?a.setAttribute("slot","masthead-logo-old"):_.mg(a))))};
_.f.computeCenterHidden=function(){var a;return this.data&&!((a=this.data.searchbox)==null?0:a.fusionSearchboxRenderer)};
_.f.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.$q(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.f.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.f.onWatchScroll=function(a){this.watchPageScrollTop=a.detail||0;this.updateMastheadBackgroundOpacity()};
_.f.onFullscreenChangeAction=function(a){a||(this.watchPageScrollTop=0);this.fullscreen=a;this.updateMastheadBackgroundOpacity()};
_.f.onSetTheaterModeEnabled=function(a){this.theater=a.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.f.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.f.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.f.setBackgroundOpacity=function(a){a=this.calculateBackgroundOpacity(a);this.background.style.opacity=""+a};
_.f.calculateBackgroundOpacity=function(a){var b=this.theater&&this.cinematicTheaterMode?.6:0,c=this.hostElement.clientHeight/2;return Math.min(Math.max(a,0),c)/c*(1-b)+b};
_.f.shouldShowCinematicMastHead=function(){var a=_.x("kevlar_watch_grid")&&!_.x("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(a||this.pageDarkTheme)};
_.f.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.f.focusGuide=function(){this.guideButton.focus()};
_.f.onIronResize=function(){(this.get("data.interstitial")||this.get("data.ticker"))&&_.go(this.hostElement,"yt-masthead-height-changed",{height:this.hostElement.clientHeight})};
_.f.onGuideToggleTap=function(){_.go(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.f.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.f.onGuideToggleHover=function(){_.go(this.hostElement,"yt-guide-hover")};
_.f.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.f.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.f.closeOnOutsideClickCondition=function(a){for(a=_.Pq(a);a[0];){var b=a.shift();if(b instanceof Element&&b.id==="kbd")return!1}return!0};
_.f.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.f.pausePlayer=function(){var a;(a=_.bu())==null||a.pause();this.pauseMiniplayer()};
_.f.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var a;(a=_.v().resolve(_.Vw).getPlayerElement())==null||a.pause()}};
_.f.isMiniplayerActive=function(){return _.v().resolve(_.Vw).isMiniplayerActive()};
_.f.updateNarrowFromBinding=function(a){this.narrow=a.detail.value};
_.f.onYtSendFeedbackAction=function(){_.ho(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.Vm.Object.defineProperties(yXc.prototype,{shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var a;return(a=this.data)==null?void 0:a.voiceSearchButton}}}});
var K4=yXc;K4.prototype.narrowChanged=K4.prototype.narrowChanged;K4.prototype.onIronResize=K4.prototype.onIronResize;K4.prototype.onWatchPageChange=K4.prototype.onWatchPageChange;K4.prototype.onRendererStamperFinished=K4.prototype.onRendererStamperFinished;K4.prototype.dataChanged=K4.prototype.dataChanged;K4.prototype.onDarkChanged=K4.prototype.onDarkChanged;_.U([_.H(_.KD),_.W("design:type",Object)],K4.prototype,"ironResizableBehavior",void 0);
_.U([_.H(_.nmc),_.W("design:type",Object)],K4.prototype,"ytdExpandableInputBehavior",void 0);_.U([_.H(_.SI.YtdGuideStateAwareBehavior),_.W("design:type",Object)],K4.prototype,"ytdGuideStateAwareBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],K4.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],K4.prototype,"ytComponentBehavior",void 0);
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],K4.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],K4.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.LI),_.W("design:type",Object)],K4.prototype,"ytdReduxBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],K4.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],K4.prototype,"narrow",void 0);_.U([_.O(),_.W("design:type",Object)],K4.prototype,"logoType",void 0);
_.U([_.O(),_.W("design:type",Boolean)],K4.prototype,"voiceEnabled",void 0);_.U([_.O(),_.W("design:type",Object)],K4.prototype,"menuStrings",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],K4.prototype,"dark",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],K4.prototype,"pageDarkTheme",void 0);_.U([_.O(),_.W("design:type",Object)],K4.prototype,"watchPageScrollTop",void 0);
_.U([_.O({reflectToAttribute:!0,selector:_.Hp}),_.W("design:type",Boolean)],K4.prototype,"isWatchPage",void 0);_.U([_.O({reflectToAttribute:!0,selector:_.mFa}),_.W("design:type",Boolean)],K4.prototype,"isShortsPage",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],K4.prototype,"theater",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],K4.prototype,"fullscreen",void 0);
_.U([_.O({reflectToAttribute:!0,selector:_.qFa}),_.W("design:type",String)],K4.prototype,"frostedGlassMode",void 0);_.U([_.O(),_.W("design:type",Object)],K4.prototype,"ytSearchboxFocused",void 0);_.U([_.hr("#buttons > *"),_.W("design:type",Array)],K4.prototype,"buttons",void 0);_.U([_.hr("ytd-button-renderer"),_.W("design:type",Array)],K4.prototype,"buttonRenderers",void 0);_.U([_.gr("#background"),_.W("design:type",HTMLDivElement)],K4.prototype,"background",void 0);
_.U([_.gr("#guide-button"),_.W("design:type",Object)],K4.prototype,"guideButton",void 0);_.U([_.gr("#logo"),_.W("design:type",Object)],K4.prototype,"logo",void 0);_.U([_.O({computed:"computeButtonOverride(dark)"}),_.W("design:type",Object)],K4.prototype,"buttonOverrides",void 0);_.U([_.kr("dark"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],K4.prototype,"onDarkChanged",null);_.U([_.O({value:function(){return this.onVoiceTap.bind(this)}}),
_.W("design:type",Function)],K4.prototype,"boundOnTapVoiceButton",void 0);_.U([_.O(),_.W("design:type",Object)],K4.prototype,"topbarIsAboveChipbar",void 0);_.U([_.K("voiceEnabled"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],K4.prototype,"shouldShowVoiceSearchButton",null);_.U([_.K("data"),_.W("design:type",Object),_.W("design:paramtypes",[])],K4.prototype,"voiceSearchButton",null);
_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],K4.prototype,"dataChanged",null);_.U([_.M("yt-rendererstamper-finished"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],K4.prototype,"onRendererStamperFinished",null);_.U([_.kr("isWatchPage"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],K4.prototype,"onWatchPageChange",null);
_.U([_.M("iron-resize"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],K4.prototype,"onIronResize",null);_.U([_.kr("narrow"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],K4.prototype,"narrowChanged",null);K4=_.U([_.Q({disableElementRegistration:!0,is:"ytd-masthead"})],K4);
_.S(K4,"ytd-masthead",function(){if(kXc!==void 0)return kXc;var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-masthead--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="max-width: 656px" query-matches="[[narrow]]" on-query-matches-changed="updateNarrowFromBinding" class="style-scope ytd-masthead">\n</iron-media-query>\n<div id="ticker" class="style-scope ytd-masthead"></div>\n<div id="interstitial" class="style-scope ytd-masthead"></div>\n<div id="background" hidden="[[hideBackground]]" class="style-scope ytd-masthead"></div>\n<div id="container" class="style-scope ytd-masthead">\n  <div id="start" class="style-scope ytd-masthead">\n    <yt-icon-button id="back-button" label="[[menuStrings.BACK_ALT_LABEL]]" on-click="onSearchCloseClick" class="style-scope ytd-masthead">\n      <yt-icon disable-upgrade$="[[!showInput]]" icon="yt-icons:arrow-back" class="style-scope ytd-masthead">\n      </yt-icon>\n    </yt-icon-button>\n    <tp-yt-paper-tooltip id="back-button-tooltip" disable-upgrade$="[[!showInput]]" for="back-button" class="style-scope ytd-masthead">\n      [[menuStrings.BACK_ALT_LABEL]]\n    </tp-yt-paper-tooltip>\n    <yt-icon-button id="guide-button" label="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="[[guideOpened]]" toggleable="true" on-click="onGuideToggleTap" on-keydown="onGuideButtonKeydown" on-mouseenter="onGuideToggleHover" class="style-scope ytd-masthead">\n      <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-masthead"></yt-icon>\n    </yt-icon-button>\n    <slot name="masthead-logo" class="style-scope ytd-masthead"></slot>\n    <ytd-topbar-logo-renderer id="logo" country-code="[[data.countryCode]]" data="[[data.logo.topbarLogoRenderer]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[dark]]" class="style-scope ytd-masthead">\n    </ytd-topbar-logo-renderer>\n    <div id="skip-navigation" class="style-scope ytd-masthead"></div>\n  </div>\n  <div id="center" hidden="[[computeCenterHidden(data)]]" class="style-scope ytd-masthead">\n    <yt-searchbox clear-button-aria-label="[[data.searchbox.fusionSearchboxRenderer.clearButton.buttonRenderer.accessibilityData.accessibilityData.label]]" focus-callback="[[setYtSearchboxFocused]]" force-dark-mode="[[dark]]" labels="[[searchboxLabels]]" placeholder-text="[[computeSimpleText(data.searchbox.fusionSearchboxRenderer.placeholderText)]]" search-endpoint="[[data.searchbox.fusionSearchboxRenderer.searchEndpoint]]" voice-search-button="[[voiceSearchButton]]" class="style-scope ytd-masthead">\n    </yt-searchbox>\n    <yt-icon-button id="search-button-narrow" label="[[menuStrings.SEARCH_ALT_LABEL]]" on-click="openOnClick_" class="style-scope ytd-masthead">\n      <yt-icon class="topbar-icons style-scope ytd-masthead" disable-upgrade$="[[!narrow]]" icon="yt-icons:search">\n      </yt-icon>\n      <tp-yt-paper-tooltip disable-upgrade$="[[!narrow]]" for="search-button-narrow" hidden="[[!narrow]]" class="style-scope ytd-masthead">\n        [[menuStrings.SEARCH_ALT_LABEL]]\n      </tp-yt-paper-tooltip>\n    </yt-icon-button>\n    <div id="voice-search-button" hidden="[[!shouldShowVoiceSearchButton]]" class="style-scope ytd-masthead">\n    </div>\n  </div>\n  <div id="end" class="style-scope ytd-masthead">\n    <slot name="masthead-skeleton" class="style-scope ytd-masthead"></slot>\n    <div id="buttons" class="style-scope ytd-masthead"></div>\n  </div>\n</div>\n');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return kXc=a},{mode:_.as("kevlar_poly_si_batch_j036")?1:2});var zXc;var AXc={},BXc={},CXc={},DXc={},EXc=(DXc.OFFLINE=(AXc["publicytnetworkstatus-online"]="BACK_ONLINE",AXc),DXc.ONLINE=(BXc["publicytnetworkstatus-offline"]="OFFLINE",BXc),DXc.BACK_ONLINE=(CXc["publicytnetworkstatus-offline"]="OFFLINE",CXc.TIMER_TRIGGER="ONLINE",CXc),DXc),FXc=function(){var a=_.P.apply(this,arguments)||this;a.currentState="ONLINE";a.scheduledJobId=0;a.bannerString="";a.bannerVe=null;a.networkStatusManagerInstance=new _.Lk;return a};
_.z(FXc,_.P);_.f=FXc.prototype;_.f.attached=function(){var a=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){a.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){a.stateChangeHandler("publicytnetworkstatus-offline")})};
_.f.detached=function(){var a=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){a.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){a.stateChangeHandler("publicytnetworkstatus-offline")})};
_.f.enterState=function(a){var b=this;this.scheduledJobId&&_.zk.cancelJob(this.scheduledJobId);a==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):a==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.to("NO_INTERNET_CONNECTION",void 0,"No internet connection")):a==="BACK_ONLINE"&&(this.bannerString=_.to("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.ul(_.zk,function(){b.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=a};
_.f.stateChangeHandler=function(a){(a=EXc[this.currentState][a])&&this.enterState(a)};
_.f.logVisibility=function(a){var b=_.Fn();this.createBannerVe(a);b&&this.bannerVe&&(a?_.To(b,[this.bannerVe]):_.Uo(b,[this.bannerVe]))};
_.f.createBannerVe=function(a){!this.bannerVe&&a&&(this.bannerVe=_.lu(37929),_.oF(_.ms(),this.bannerVe))};
var L4=FXc;_.U([_.O({reflectToAttribute:!0}),_.W("design:type",String)],L4.prototype,"currentState",void 0);_.U([_.O(),_.W("design:type",Object)],L4.prototype,"scheduledJobId",void 0);_.U([_.O(),_.W("design:type",Object)],L4.prototype,"bannerString",void 0);L4=_.U([_.Q({disableElementRegistration:!0,is:"ytd-network-status-banner"})],L4);
_.S(L4,"ytd-network-status-banner",function(){if(zXc!==void 0)return zXc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return zXc=
a},{mode:1});var GXc;var HXc=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};a.hidden=!0;a.frostedGlass=_.x("web_frosted_glass");return a};
_.z(HXc,_.P);HXc.prototype.computeHidden=function(a){return a&&a.status?!1:!0};
HXc.prototype.handleUpdatePermissionRoleCommand=function(a){if(a=_.y(a,_.ODb))if(a=_.y(a.renderer,_.NDb))this.data=a};
var M4=HXc;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],M4.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],M4.prototype,"componentBehavior",void 0);_.U([_.O({value:!0,computed:"computeHidden(data)"}),_.W("design:type",Object)],M4.prototype,"hidden",void 0);_.U([_.O(),_.W("design:type",Object)],M4.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],M4.prototype,"frostedGlass",void 0);
M4=_.U([_.Q({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],M4);
_.S(M4,"ytd-permission-role-bottom-bar-renderer",function(){if(GXc!==void 0)return GXc;var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);return GXc=a},{mode:1});var IXc;var JXc;var Zxc={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var KXc=function(){return _.P.apply(this,arguments)||this};
_.z(KXc,_.P);_.f=KXc.prototype;_.f.attached=function(){this.JSC$18326_scroller&&(this.JSC$18326_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18326_scroller.attached&&typeof this.JSC$18326_scroller.attached==="function"&&this.JSC$18326_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.f.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(c){c.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var a=_.E(this.hostElement);a.querySelector("tp-yt-paper-radio-group").selected="";var b=a.querySelector("#reason-text");b&&(b.value="");a.querySelector("#description-text").value=""}};
_.f.canSubmit=function(a,b){_.go(this.hostElement,"yt-invalidate-popup-tabbables");return!(a&&b)};
_.f.onCancel=function(){_.ho(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.f.onSubmit=function(){var a=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(g){return g.active}).map(function(g){return g.innerText.trim()}),b=this.hostElement.querySelector("tp-yt-paper-radio-group"),c=b.selectedItem,d=c.name;
c=c.innerText.trim();var e=b.querySelector("#reason-text");b=void 0;e&&(b=e.value);(e=this.descriptionText.value)&&(e=e.trim());$xc(this.data.searchQuery,a,d,c,e,b);_.ho(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.f.sendFormSubmitToast=function(){var a=_.aq(_.to("SBOX_INAPPROPRIATE_TOAST"));_.ho(this.hostElement,"yt-open-popup-action",[a,this])};
_.f.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(a){return a.active})};
_.f.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
var N4=KXc;N4.prototype.onIronSelect=N4.prototype.onIronSelect;N4.prototype.onIronChange=N4.prototype.onIronChange;N4.prototype.dataChanged=N4.prototype.dataChanged;_.U([_.O(),_.W("design:type",Object)],N4.prototype,"data",void 0);_.U([_.O({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.W("design:type",Boolean)],N4.prototype,"submitDisabled",void 0);_.U([_.O(),_.W("design:type",Boolean)],N4.prototype,"suggestionSelected",void 0);
_.U([_.O(),_.W("design:type",Boolean)],N4.prototype,"catagorySelected",void 0);_.U([_.gr("#scroller"),_.W("design:type",Object)],N4.prototype,"JSC$18326_scroller",void 0);_.U([_.gr("#description-text"),_.W("design:type",Object)],N4.prototype,"descriptionText",void 0);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],N4.prototype,"dataChanged",null);
_.U([_.M("iron-change"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],N4.prototype,"onIronChange",null);_.U([_.M("iron-select"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],N4.prototype,"onIronSelect",null);N4=_.U([_.Q({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],N4);
_.S(N4,"ytd-search-suggestion-report-dialog",function(){if(JXc!==void 0)return JXc;var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return JXc=a},{mode:1});var O4=function(a){var b=a.openPopupAction;var c=a.target;var d=a.container;var e=a.popupContainerConfig;var g=a.getElement;a=a.removeWhenClosed===void 0?!1:a.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=b;this.target=c;this.container=d;this.popupContainerConfig=e;this.getElement=g;this.JSC$18332_popupConfig=this.popupContainerConfig.JSC$17449_popupConfig[this.openPopupAction.popupType];this.rendererName=(b=this.getName())?_.jua(b,aNc(this.popupContainerConfig,
b)):"";_.x("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=a);this.createPopup()};
O4.prototype.updatePopup=function(a){this.openPopupAction=a;this.JSC$18332_popupConfig=this.popupContainerConfig.JSC$17449_popupConfig[this.openPopupAction.popupType];LXc(this);_.x("reorder_popup_updates_killswitch")&&MXc(this);_.x("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
var PXc=function(a,b,c){a.target=c;var d;c=((d=a.target.polymerController)!=null?d:a.target).popupPositionTarget||a.target;a.JSC$18332_popupConfig.targetContainer&&(c=a.container);a.popup.positionTarget=c;a.popupContent.positionTarget=c;_.x("reorder_popup_updates_killswitch")||MXc(a);a.JSC$18332_popupConfig.forceFocus&&(a.popupContent.style.outline="none");a.popupContent.tabIndex=-1;a.JSC$18332_popupConfig.narrowProperties&&(a.popup.style.position="static");a.JSC$18332_popupConfig.preventAutonav&&
a.popup.setAttribute("prevent-autonav",!0);a.JSC$18332_popupConfig.forceCloseOnOutsideClick&&a.popup.setAttribute("force-close-on-outside-click",!0);NXc(a,b);OXc(a,a.JSC$18332_popupConfig.styles);a.isRtl()&&OXc(a,a.JSC$18332_popupConfig.rtlStyles);if(!a.openPopupAction.shouldStopParentSignal){var e;b=(e=a.target.polymerController)!=null?e:a.target;(a.popupContent.startForwardingEvents||a.popupContainerConfig.forwardingEnabledPopups.has(a.rendererName))&&b.parentComponent!==a.popupContent&&a.popupContent!==
a.target&&a.target!==document.body&&(a.popupContent.startForwardingEvents?a.popupContent.startForwardingEvents(a.popupContainerConfig.forwardedEvents,a.target):(a.JSC$18332_eventForwarder||(a.JSC$18332_eventForwarder=new _.uw(a.popupContent)),a.JSC$18332_eventForwarder.start(a.popupContainerConfig.forwardedEvents,a.target)))}};
O4.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var NXc=function(a,b){QXc(a,b&&a.JSC$18332_popupConfig.narrowProperties?a.JSC$18332_popupConfig.narrowProperties:a.JSC$18332_popupConfig.properties);a.isRtl()&&QXc(a,a.JSC$18332_popupConfig.rtlProperties);MXc(a)};
O4.prototype.createPopup=function(){var a=this.JSC$18332_popupConfig.component;if(this.popupContent=RXc(this,this.rendererName)){if(a){this.popup=RXc(this,a);var b=this.popupContent;_.x("web_enable_wrapper_for_cow_component_in_popup")&&(b=document.createElement("div"),b.appendChild(this.popupContent));_.x("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$18332_popupConfig.slotName&&b.setAttribute("slot",this.JSC$18332_popupConfig.slotName);a=this.popup;var c=this.container.tagName.toLowerCase(),
d=_.Rq(b);_.XJa(_.Tq(a),_.Wq(b,c,d));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.x("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.E(this.container).appendChild(this.popup)}};
var LXc=function(a){var b,c,d=(b=a.openPopupAction.accessibilityData)==null?void 0:(c=b.accessibilityData)==null?void 0:c.label;d&&(a.popup.ariaLabel=d);var e;((e=a.popupContent.polymerController)!=null?e:a.popupContent).data=(0,_.yf.unsafeClone)(a.openPopupAction.popup[a.getName()]);a.popupContent.duration=SXc(a);a.popupContent.positionType=a.openPopupAction.position;var g=a.openPopupAction.properties;g&&Object.keys(g).forEach(function(k){a.popupContent[k]=g[k]})},QXc=function(a,b){if(b)for(var c=
_.h(Object.keys(b)),d=c.next();!d.done;d=c.next())d=d.value,a.popup[d]=b[d]},MXc=function(a){if(a.openPopupAction.position){var b=a.JSC$18332_popupConfig.positionalProperties&&a.JSC$18332_popupConfig.positionalProperties[a.openPopupAction.position],c=a.JSC$18332_popupConfig.rtlPositionalProperties&&a.JSC$18332_popupConfig.rtlPositionalProperties[a.openPopupAction.position];
b=a.isRtl()&&c?c:b;b.shiftedHorizontalOffset&&(c=a.popup.style.display,a.popup.style.display="block",a.popupContent&&a.popup.positionTarget&&a.popupContent.clientWidth>a.popup.positionTarget.clientWidth&&(b.horizontalOffset=a.popup.positionTarget.clientWidth/2-b.shiftedHorizontalOffset),a.popup.style.display=c);QXc(a,b)}},OXc=function(a,b){if(b)for(var c=_.h(Object.keys(b)),d=c.next();!d.done;d=c.next())d=d.value,a.popup.style[d]=b[d]};
O4.prototype.getName=function(){return _.zi(this.openPopupAction.popup,"renderer")||_.zi(this.openPopupAction.popup,"dialog")||_.zi(this.openPopupAction.popup,"model")||void 0};
var SXc=function(a){a=a.openPopupAction.durationHintMs;return a===0?a:Math.max(4E3,a||4E3)};
O4.prototype.isRtl=function(){return _.Ei("HTML_DIR")==="rtl"};
var RXc=function(a,b){a=a.getElement(b,a.target);a==null&&_.Dl(new _.qj("popup getElement returned null",b));return a};var TXc={};
TXc.YtPopupContainerBehavior=[_.LG.YtComponentBehavior,_.bH.YtActionHandlerBehavior,{created:function(){this.popupContainerConfig=null;this.popups_={};this.shownPopupKeys_=new Set;this.popupContainerActionMap_={"yt-close-popup-action":"handleClosePopupAction_","yt-close-popup-command":"handleClosePopupCommand_","yt-close-popups-action":"handleClosePopupsAction_","yt-close-all-popups-action":"handleCloseAllPopupsAction_","yt-get-popup-opened-action":"handleGetPopupOpenedAction_","yt-get-opened-popups-action":"handleGetOpenedPopupsAction_","yt-open-popup-action":"handleOpenPopupAction",
"yt-signal-action-close-popup":"handleSignalActionClosePopup_","yt-window-scrolled":"windowResizedOrScrolled_","yt-window-resized":"windowResizedOrScrolled_","yt-refit-popups-action":"refitPopups_"};this.narrowMediaQuery_=void 0;this.repositionEventsBound_=!1;this.setPopupVisibilityJobId_=this.setPopupPositioningJobId_=0;this.dynamicallyPositionedElements_=new Set},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.eo(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.fo(this.hostElement)},
closePopup:function(a){var b=this.createCacheKey(void 0,a);this.popups_[b]&&this.handleClosePopupAction_(void 0,a)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.zk.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.zk.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(a){a.opened&&a.keepBelowPlayer&&this.ensurePopupBelowPlayer(a)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var a in this.popups_){var b=this.popups_[a];if(b.popup.scrollAction==="refit"){var c=b.popup.positionTarget.getBoundingClientRect(),d=b.popup;c=c.top;var e=b;if(!e.naturalHeight){e.popup.hidden=!1;e.popup.style.position="fixed";e.popup.style.top="0px";e.popup.style.left="0px";var g=e.popup.getBoundingClientRect();e.naturalHeight=g.bottom-g.top;e.popup.refit()}d.hidden=!(c>=e.naturalHeight+60);b.popupContent.clientHeight===0&&b.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(a){this.popupContainerConfig=a},
handleOpenPopupAction:function(a,b){var c=a.openPopupAction,d=_.v().resolve(_.Wi(_.uhc))&&c.popupType==="TOAST";d&&!c.uniqueId&&(c.uniqueId=_.GW());if(!_.x("popup_container_parent_target_killswitch")){var e;b=(e=this.getParentTarget(b))!=null?e:b}var g=this.ensurePopup_(c,b);return new _.kl(function(k){g.then(function(m){if(!m)return k();this.maybeCreateNarrowMediaQuery_();var n=this.createCacheKey(m.rendererName,m.openPopupAction.uniqueId);if(c.showOncePerUniqueId){if(this.shownPopupKeys_.has(n))return k();
this.shownPopupKeys_.add(n)}n=this.popups_[n];var r=!(!n||!n.openPopupAction.beReused);r=!!c.reusePopup||r;if(m.popup.opened&&!r){d&&!m.openPopupAction.replacePopup||this.handleClosePopupAction_(m.rendererName,m.openPopupAction.uniqueId);r=c.popupType==="DIALOG"&&!_.x("popup_container_dialog_reopen_killswitch");if(!d&&!r&&n&&n.target==b&&!m.openPopupAction.replacePopup)return k();_.Tm(m.popup,function(){this.completeOpenPopupAction_(c,b,m);k()}.bind(this))}else m.popup.opened?m.updatePopup(c):this.completeOpenPopupAction_(c,
b,m),k()}.bind(this))}.bind(this))},
getParentTarget:function(a){if(a&&a instanceof HTMLElement)for(var b=_.h(Object.entries(this.popups_)),c=b.next();!c.done;c=b.next())if(c=_.h(c.value),c.next(),c=c.next().value,c.popup.tagName==="TP-YT-IRON-DROPDOWN"&&c.popup.opened&&a.closest(c.rendererName))return c.target},
completeOpenPopupAction_:function(a,b,c){_.x("reorder_popup_updates_killswitch")?(PXc(c,this.narrowMediaQuery_.queryMatches,b),c.updatePopup(a)):(c.updatePopup(a),PXc(c,this.narrowMediaQuery_.queryMatches,b));a=c.popup;a.addEventListener("iron-overlay-opened",_.er(this,this.onPopupIronOverlayOpened_));a.addEventListener("iron-overlay-closed",_.er(this,this.onPopupIronOverlayClosed_));a.addEventListener("iron-overlay-canceled",_.er(this,this.onPopupIronOverlayCanceled_));a.addEventListener("yt-refit",
_.er(this,this.refitPopup_));a.addEventListener("yt-invalidate-popup-tabbables",_.er(this,this.handleInvalidatePopupTabbables_));a.open()},
getPopupDurationMs_:function(a){return a.durationHintMs===0?a.durationHintMs:Math.max(4E3,a.durationHintMs||4E3)},
handleClosePopupAction_:function(a,b){var c=_.x("web_popup_cache_key_killswitch")||!!b;if(a||c){var d=this.createCacheKey(a,b);a=(a=this.popups_[d])&&a.popup}else a=_.Tvb(_.WD);if(a&&a.close){if(b=_.v().resolve(_.Wi(_.yu)))a.restoreFocusOnClose=b.isKeyBoardInUse();a.close();this.removePopup_(a,d)}},
handleClosePopupCommand_:function(a){a.closePopupCommand&&a.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,a.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(a){var b={},c;for(c in this.popups_)if(b={key$jscomp$1168:b.key$jscomp$1168},b.key$jscomp$1168=c,!a||!a.some(function(g){return function(k){return k==g.key$jscomp$1168}}(b))){var d=this.popups_[b.key$jscomp$1168],e=d.popup;
_.v().resolve(_.Wi(_.uhc))&&d.openPopupAction.popupType==="TOAST"||(e&&e.close&&e.close(),this.removePopup_(e,b.key$jscomp$1168))}},
handleClosePopupsAction_:function(a){a.forEach(function(b){var c=this.popups_[b];c&&((c=c.popup)&&c.close&&c.close(),this.removePopup_(c,b))}.bind(this))},
handleGetPopupOpenedAction_:function(a,b){return(b=this.createCacheKey(a,b))&&this.popups_[b]?this.popups_[a].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var a=[],b;for(b in this.popups_){var c=this.popups_[b];c.popup.opened&&a.push(c)}return a},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(a,b){_.x("ytpopup_disable_default_html_caching")&&a&&a.removeWhenClosed&&(_.E(this.hostElement).removeChild(a),b&&this.popups_[b]&&delete this.popups_[b])},
shouldReusePopup_:function(a){return!(!a||!a.reusePopup)||!(!a||!a.beReused)},
ensurePopup_:function(a,b){this.maybeCreateNarrowMediaQuery_();var c=_.zi(a.popup,"renderer")||_.zi(a.popup,"dialog")||_.zi(a.popup,"model");if(!c)return _.oo();c=_.jua(c,aNc(this.popupContainerConfig,c));return _.oo(this.getAndMaybeCreatePopup_(a,c,b))},
getAndMaybeCreatePopup_:function(a,b,c){var d=this.createCacheKey(b,a.uniqueId);if(this.popups_[d])return this.popups_[d];a=new O4({openPopupAction:a,target:c,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(b)});return this.popups_[d]=a},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(a){return _.x("ytpopup_disable_default_html_caching")?a&&a.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",_.er(this,this.openPopupQueryMatchesChanged_)),_.E(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(a){a=a.detail.value;for(var b in this.popups_)NXc(this.popups_[b],a)},
onPopupIronOverlayClosed_:function(a){var b=a.currentTarget,c=_.qKa(b);c=c.length>0?c[0]:b;if(c.is!=="ytd-reel-watch-while-dialog-renderer"||a.target.is!=="tp-yt-iron-dropdown"){a.detail.popup=b;a.detail.popupRenderer=c;var d,e={context:{openingElement:((d=this.popups_[(c==null?void 0:c.is)||""])==null?void 0:d.target)||void 0}};Object.assign(e,a.detail);var g;_.go((g=c.hostElement)!=null?g:c,"yt-popup-closed",e);b.removeEventListener("yt-refit",_.er(this,this.refitPopup_));b.removeEventListener("yt-invalidate-popup-tabbables",
_.er(this,this.handleInvalidatePopupTabbables_));b.removeEventListener("iron-overlay-canceled",_.er(this,this.onPopupIronOverlayCanceled_));b.removeEventListener("iron-overlay-closed",_.er(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(b)}},
onPopupIronOverlayCanceled_:function(a,b){var c=a.currentTarget,d=_.qKa(c);d=d.length>0?d[0]:c;if(d.is!=="ytd-reel-watch-while-dialog-renderer"||a.target.is!=="tp-yt-iron-dropdown"){var e;_.go((e=d.hostElement)!=null?e:d,"yt-popup-canceled",a.detail);e=b?_.Pq(b):null;(!b||["click","tap"].includes(b.type))&&!c.hasAttribute("force-close-on-outside-click")&&c.positionTarget&&e&&e.includes(c.positionTarget)&&a.preventDefault();c.restoreFocusOnClose=_.BD.keyboardEventMatchesKeys(b,"esc")}},
onPopupIronOverlayOpened_:function(a){a=a.currentTarget;var b=_.qKa(a);b=b.length>0?b[0]:a;var c,d;_.go((c=b.hostElement)!=null?c:b,"yt-popup-opened",(d=b.hostElement)!=null?d:b);a.keepBelowPlayer&&(this.ensurePopupBelowPlayer(a,!0),this.dynamicallyPositionedElements_.add(a));c=_.v().resolve(_.Wi(_.yu));d=!!b.querySelector("#toast");c&&c.isKeyBoardInUse()&&!d&&(typeof b.focusFirstItem==="function"?b.focusFirstItem():(b=_.Qvb(a),b.length&&b[0].focus()));a.removeEventListener("iron-overlay-opened",
_.er(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(a){a=a.currentTarget;a.refit&&a.refit()},
refitPopups_:function(){for(var a in this.popups_)this.popups_[a].refit()},
handleInvalidatePopupTabbables_:function(a){a=a.currentTarget;a.invalidateTabbables&&a.invalidateTabbables()},
createCacheKey:function(a,b){return _.x("web_popup_cache_key_killswitch")?b?a+"#"+b:a:b?"#"+b:a},
openSheet:function(a,b){var c=a==null?void 0:a.openPopupActionCommand;!c&&(a==null?0:a.viewModel)&&(c={openPopupAction:{popup:{sheetViewModel:a.viewModel},popupType:"CONTEXTUAL_SHEET"}});c&&this.handleOpenPopupAction(c,b)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var a=this;return _.l(function(b){return b.return(a.handleGetOpenedPopupsAction_().filter(function(c){var d;return((d=c.openPopupAction)==null?void 0:d.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(a,b,c){if(_.x("web_dialog_utils_killswitch")){var d=a==null?void 0:a.openPopupActionCommand,e=(c==null?0:c.ariaLabel)?{accessibilityData:{accessibilityData:{label:c.ariaLabel}}}:void 0;!d&&(a==null?0:a.viewModel)&&(d={openPopupAction:Object.assign({},{popup:{dialogViewModel:a.viewModel},popupType:(c==null?0:c.isModal)?"MODAL":"DIALOG"},e&&e)});d&&this.handleOpenPopupAction(d,b)}else{if(e=a==null?void 0:a.viewModel){var g=c=c===void 0?{}:c;c=g.ariaLabel;e={popup:{dialogViewModel:e},
popupType:g.isModal?"MODAL":"DIALOG"};g={accessibilityData:{label:c}};c&&(e.accessibilityData=g);e={openPopupAction:e}}else e=void 0;(e=(d=e)!=null?d:a==null?void 0:a.openPopupActionCommand)&&this.handleOpenPopupAction(e,b)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var a=this;return _.l(function(b){return b.return(a.handleGetOpenedPopupsAction_().filter(function(c){var d;return((d=c.openPopupAction)==null?void 0:d.popupType)==="DIALOG"}).length>0)})}}];var UXc;var VXc;var WXc=_.cx(["about:blank"]),XXc=function(){var a=_.P.apply(this,arguments)||this;a.isMuted=!1;a.pageLoadTimeoutId=void 0;return a};
_.z(XXc,_.P);_.f=XXc.prototype;_.f.dataChanged=function(){var a=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var b=this.data.url,c=_.Ak(b);_.x("enable_yt_ata_iframe_authuser")?(c=_.Ak(b),_.Qd(this.iframe,ayc(c))):_.Qd(this.iframe,c);this.pageLoadTimeoutId=_.ul(_.Lw(),function(){return void a.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.jy({destination:window,iframe:this.iframe,origin:_.Nbb(c.toString()),channelName:"ataiframe",onMessage:_.lab(aJc,function(d){bJc(d.data)?(d=_.Mc(d.data,1,_.Zb,_.Wf()),d.length!==1?_.Dl(Error("kl")):(d=d[0],d===3?(a.isMuted=!0,a.logStateChanged({adMuteRequested:!0})):d===1&&a.close())):_.Dl(Error("ll"))}),
onEstablished:function(){a.cancelPageLoadTimeout();a.logStateChanged({pageLoadSucceeded:!0})}})}};
_.f.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.Lw().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.f.logStateChanged=function(a){var b;if((b=this.data)==null?0:b.trackingParams)a={adsClientData:{aboutThisAdData:a}},_.ms().stateChanged(this.data.trackingParams,a)};
_.f.close=function(){_.ho(this.hostElement,"yt-close-popup-action",[this.is])};
_.f.handlesPopupClosed=function(a,b){var c=this,d,e;return _.l(function(g){if(g.nextAddress==1)return _.Ei("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.ho(c.hostElement,"on-about-this-ad-popup-closed",[c.isMuted,b]),g.jumpTo(0)):a&&byc(a)?_.p(g,cyc(a),4):(c.isMuted&&_.ho(c.hostElement,"yt-mute-ad-action",[c.is,c]),g.jumpTo(0));if(d=g.yieldResult){var k=e=new _.zM(d),m=c.isMuted;k.getOptions().includes("onAboutThisAdPopupClosed")?_.D2b(k,"onAboutThisAdPopupClosed",{isMuted:m,layoutId:b}):_.nv("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.se(g)})};
_.f.onPopupClosed=function(a){var b=this,c,d;return _.l(function(e){c=_.ef(WXc);_.Qd(b.iframe,c);b.cancelPageLoadTimeout();if(!b.data)return e.jumpTo(0);b.ytRendererBehavior.markDirty();d=a.detail.context.openingElement;return _.p(e,b.handlesPopupClosed(d,b.data.layoutId),0)})};
_.f.detached=function(){this.cancelPageLoadTimeout()};
_.f.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
var P4=XXc;P4.prototype.onPopupClosed=P4.prototype.onPopupClosed;P4.prototype.dataChanged=P4.prototype.dataChanged;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],P4.prototype,"ytRendererBehavior",void 0);_.U([_.gr("#iframe"),_.W("design:type",HTMLIFrameElement)],P4.prototype,"iframe",void 0);_.U([_.O(),_.W("design:type",Object)],P4.prototype,"data",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],P4.prototype,"dataChanged",null);
_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype",Promise)],P4.prototype,"onPopupClosed",null);P4=_.U([_.ur({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],P4);
_.S(P4,"yt-about-this-ad-renderer",function(){if(VXc===void 0){var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;UXc===void 0&&(UXc=document.createElement("template"));var d=UXc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);VXc=a}a=VXc;return a},{mode:2});var YXc;var ZXc;var $Xc=function(a){var b=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=b.message;"stack"in b&&(this.stack=b.stack);this.maxFileSizeMB=a;Object.setPrototypeOf(this,$Xc.prototype)};
_.z($Xc,Error);var aYc=function(a,b){var c=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=c.message;"stack"in c&&(this.stack=c.stack);this.minWidth=a;this.minHeight=b;Object.setPrototypeOf(this,aYc.prototype)};
_.z(aYc,Error);var bYc=function(a){this.requirements=a;this.JSC$18360_maxFileSize=a.maxFileSizeMB*1024*1024},cYc=function(a,b){if(b.size>a.JSC$18360_maxFileSize)throw new $Xc(a.requirements.maxFileSizeMB);
};var dYc=function(a,b){this.canvas=a;this.imageEditorBuilder=b};
dYc.prototype.addEventListeners=function(a){var b=function(e){eYc(a,e)};
this.JSC$18366_mouseDownEvent=b;var c=function(e){fYc(a,e)};
this.JSC$18366_mouseMoveEvent=c;var d=function(){gYc(a)};
this.JSC$18366_mouseUpEvent=d;this.canvas.addEventListener("mousedown",b);this.canvas.addEventListener("mousemove",c);document.addEventListener("mouseup",d)};
dYc.prototype.removeEventListeners=function(){this.JSC$18366_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$18366_mouseDownEvent);this.JSC$18366_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$18366_mouseMoveEvent);this.JSC$18366_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$18366_mouseUpEvent)};
var hYc=function(a,b){a.removeEventListeners();return new Promise(function(c){var d=new Image;d.crossOrigin="anonymous";d.onload=function(){var e=a.imageEditorBuilder(a.canvas,d);a.addEventListeners(e);c(e)};
d.src=b})},Q4=function(a,b,c,d,e,g,k,m){this.canvas=a;
this.image=b;this.requiredRatio=c;this.minImageCropDimension=d;this.minOutputImageResolution=e;this.component=g;this.styleFocusedCorner=m===void 0?!0:m;this.action=2;this.focusedCorner=this.resizeCorner=0;a=this.canvas.getContext("2d");if(!a)throw Error("ml");this.ctx=a;this.canvasMargin=k!=null?k:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;k=this.image;a=this.canvasInnerWidth/k.width;k.height*a>912&&(a=k.width/k.height*912/k.width);k=a;this.scaledImageWidth=this.canvas.width%2?
eyc(this.image.width*k):dyc(this.image.width*k);this.scaledImageHeight=Math.round(this.image.height*k);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$18369_overlayMarginBottom=this.JSC$18369_overlayMarginTop=this.canvasMargin;this.JSC$18369_overlayMarginRight=this.JSC$18369_overlayMarginLeft=this.horizontalMargin;this.JSC$18369_overlayWidth=this.scaledImageWidth;this.JSC$18369_overlayHeight=this.scaledImageHeight;
a=this.image.width/this.image.height;a>this.requiredRatio?(this.JSC$18369_overlayWidth=this.canvas.width%2?eyc(this.scaledImageHeight*this.requiredRatio):dyc(this.scaledImageHeight*this.requiredRatio),this.JSC$18369_overlayMarginRight=this.JSC$18369_overlayMarginLeft=(this.canvas.width-this.JSC$18369_overlayWidth)/2):a<this.requiredRatio&&(this.JSC$18369_overlayHeight=this.canvas.height%2?eyc(this.scaledImageWidth/this.requiredRatio):dyc(this.scaledImageWidth/this.requiredRatio),this.JSC$18369_overlayMarginBottom=
this.JSC$18369_overlayMarginTop=(this.canvas.height-this.JSC$18369_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*k,this.scaledImageWidth);iYc(this)};
Q4.prototype.getContext=function(){return this.ctx};
var eYc=function(a,b){b={x:Math.round(b.pageX-a.canvas.getBoundingClientRect().left),y:Math.round(b.pageY-a.canvas.getBoundingClientRect().top)};a.dragStart=b;jYc(a,b)!==0?(a.action=1,kYc(a,b),a.resizeCorner=jYc(a,b)):b.x>a.JSC$18369_overlayMarginLeft&&b.x<a.JSC$18369_overlayMarginLeft+a.JSC$18369_overlayWidth&&b.y>a.JSC$18369_overlayMarginTop&&b.y<a.JSC$18369_overlayMarginTop+a.JSC$18369_overlayHeight&&(a.action=0)},lYc=function(a,b){switch(b){case 1:return{x:a.JSC$18369_overlayMarginLeft,
y:a.JSC$18369_overlayMarginTop};case 2:return{x:a.JSC$18369_overlayMarginLeft,y:a.JSC$18369_overlayMarginTop+a.JSC$18369_overlayHeight};case 3:return{x:a.JSC$18369_overlayMarginLeft+a.JSC$18369_overlayWidth,y:a.JSC$18369_overlayMarginTop};case 4:return{x:a.JSC$18369_overlayMarginLeft+a.JSC$18369_overlayWidth,y:a.JSC$18369_overlayMarginTop+a.JSC$18369_overlayHeight};default:throw Error("nl");}},nYc=function(a,b){if(a.focusedCorner!==0){a.dragStart=lYc(a,a.focusedCorner);
a.action=1;a.resizeCorner=a.focusedCorner;var c=a.dragStart.x,d=a.dragStart.y;switch(b){case 0:a.focusedCorner===1||a.focusedCorner===4?(c-=10,d-=10):(c-=10,d+=10);break;case 1:a.focusedCorner===1||a.focusedCorner===4?(c+=10,d+=10):(c+=10,d-=10);break;case 2:c=a.focusedCorner===1||a.focusedCorner===4?c-10:c+10;d-=10;break;case 3:c=a.focusedCorner===1||a.focusedCorner===4?c+10:c-10;d+=10;break;default:throw Error("ol");}mYc(a,{x:c,y:d});iYc(a);a.action=2;a.dragStart=void 0}},fYc=function(a,b){b={x:Math.round(b.pageX-
a.canvas.getBoundingClientRect().left),
y:Math.round(b.pageY-a.canvas.getBoundingClientRect().top)};kYc(a,b);switch(a.action){case 1:mYc(a,b);break;case 0:a.dragStart&&(a.JSC$18369_overlayMarginLeft=Math.max(a.horizontalMargin,Math.min(a.JSC$18369_overlayMarginLeft-(a.dragStart.x-b.x),a.horizontalMargin+a.scaledImageWidth-a.JSC$18369_overlayWidth)),a.JSC$18369_overlayMarginRight=a.canvas.width-a.JSC$18369_overlayMarginLeft-a.JSC$18369_overlayWidth,a.JSC$18369_overlayMarginTop=Math.max(a.canvasMargin,Math.min(a.JSC$18369_overlayMarginTop-
(a.dragStart.y-b.y),a.scaledImageHeight-a.JSC$18369_overlayHeight+a.canvasMargin)),a.JSC$18369_overlayMarginBottom=a.canvas.height-(a.JSC$18369_overlayMarginTop+a.JSC$18369_overlayHeight));break;default:return}iYc(a);a.dragStart=b},gYc=function(a){a.action=2;
a.dragStart=void 0;document.body.style.cursor="auto"},kYc=function(a,b){switch(jYc(a,b)){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:a.action!==1&&(document.body.style.cursor="auto")}},jYc=function(a,b){var c=a.JSC$18369_overlayMarginLeft-5,d=a.JSC$18369_overlayMarginTop-5,e=a.JSC$18369_overlayMarginLeft+a.JSC$18369_overlayWidth-5;
a=a.JSC$18369_overlayMarginTop+a.JSC$18369_overlayHeight-5;return oYc(b,{x:c,y:d})?1:oYc(b,{x:e,y:d})?3:oYc(b,{x:c,y:a})?2:oYc(b,{x:e,y:a})?4:0},oYc=function(a,b){return a.x>=b.x&&a.x<=b.x+10&&a.y>=b.y&&a.y<=b.y+10},mYc=function(a,b){if(a.dragStart)switch(a.resizeCorner){case 2:Math.abs((a.JSC$18369_overlayMarginLeft+a.JSC$18369_overlayWidth-b.x)/(b.y-a.JSC$18369_overlayMarginTop))>=a.requiredRatio?pYc(a,b.x):qYc(a,b.y);
break;case 1:Math.abs((a.JSC$18369_overlayMarginLeft+a.JSC$18369_overlayWidth-b.x)/(a.JSC$18369_overlayMarginTop+a.JSC$18369_overlayHeight-b.y))>=a.requiredRatio?rYc(a,b.x):qYc(a,b.y);break;case 4:Math.abs((b.x-a.JSC$18369_overlayMarginLeft)/(b.y-a.JSC$18369_overlayMarginTop))>=a.requiredRatio?pYc(a,b.x):sYc(a,b.y);break;case 3:Math.abs((b.x-a.JSC$18369_overlayMarginLeft)/(a.JSC$18369_overlayMarginTop+a.JSC$18369_overlayHeight-b.y))>=a.requiredRatio?rYc(a,b.x):sYc(a,b.y);break;default:throw Error("pl");
}},pYc=function(a,b){var c=a.JSC$18369_overlayMarginTop;
a.JSC$18369_overlayMarginBottom=tYc(a,b);a.JSC$18369_overlayHeight=a.canvas.height-a.JSC$18369_overlayMarginBottom-c;a.JSC$18369_overlayWidth=Math.round(a.JSC$18369_overlayHeight*a.requiredRatio);uYc(a)},rYc=function(a,b){var c=a.JSC$18369_overlayMarginTop+a.JSC$18369_overlayHeight;
a.JSC$18369_overlayMarginTop=tYc(a,b);a.JSC$18369_overlayHeight=c-a.JSC$18369_overlayMarginTop;a.JSC$18369_overlayWidth=Math.round(a.JSC$18369_overlayHeight*a.requiredRatio);uYc(a)},uYc=function(a){switch(a.resizeCorner){case 2:case 1:a.JSC$18369_overlayMarginLeft=a.canvas.width-a.JSC$18369_overlayMarginRight-a.JSC$18369_overlayWidth;
break;case 4:case 3:a.JSC$18369_overlayMarginRight=a.canvas.width-a.JSC$18369_overlayMarginLeft-a.JSC$18369_overlayWidth;break;default:throw Error("pl");}},qYc=function(a,b){var c=a.JSC$18369_overlayMarginLeft+a.JSC$18369_overlayWidth;
a.JSC$18369_overlayMarginLeft=vYc(a,b);a.JSC$18369_overlayWidth=c-a.JSC$18369_overlayMarginLeft;a.JSC$18369_overlayHeight=Math.round(a.JSC$18369_overlayWidth/a.requiredRatio);wYc(a)},sYc=function(a,b){var c=a.JSC$18369_overlayMarginLeft;
a.JSC$18369_overlayMarginRight=vYc(a,b);a.JSC$18369_overlayWidth=a.canvas.width-a.JSC$18369_overlayMarginRight-c;a.JSC$18369_overlayHeight=Math.round(a.JSC$18369_overlayWidth/a.requiredRatio);wYc(a)},wYc=function(a){switch(a.resizeCorner){case 2:case 4:a.JSC$18369_overlayMarginBottom=a.canvas.height-a.JSC$18369_overlayMarginTop-a.JSC$18369_overlayHeight;
break;case 1:case 3:a.JSC$18369_overlayMarginTop=a.canvas.height-a.JSC$18369_overlayMarginBottom-a.JSC$18369_overlayHeight;break;default:throw Error("pl");}},tYc=function(a,b){switch(a.resizeCorner){case 2:b=a.canvas.height-(a.JSC$18369_overlayMarginTop+xYc(a,b));
break;case 4:b=a.canvas.height-(a.JSC$18369_overlayMarginTop+yYc(a,b));break;case 1:b=a.JSC$18369_overlayMarginTop+a.JSC$18369_overlayHeight-xYc(a,b);break;case 3:b=a.JSC$18369_overlayMarginTop+a.JSC$18369_overlayHeight-yYc(a,b);break;default:throw Error("pl");}return Math.max(b,a.canvasMargin)},xYc=function(a,b){b=a.JSC$18369_overlayMarginLeft+a.JSC$18369_overlayWidth-Math.max(b,a.horizontalMargin);
b=b<0?a.JSC$18369_overlayWidth:Math.max(b,a.minOverlayWidth);return Math.round(b/a.requiredRatio)},yYc=function(a,b){b=a.canvas.width-Math.max(a.canvas.width-b,a.horizontalMargin)-a.JSC$18369_overlayMarginLeft;
b=b<0?a.JSC$18369_overlayWidth:Math.max(b,a.minOverlayWidth);return Math.round(b/a.requiredRatio)},vYc=function(a,b){switch(a.resizeCorner){case 2:b=a.canvas.width-a.JSC$18369_overlayMarginRight-zYc(a,b);
break;case 4:b=a.canvas.width-a.JSC$18369_overlayMarginLeft-zYc(a,b);break;case 1:b=a.canvas.width-a.JSC$18369_overlayMarginRight-AYc(a,b);break;case 3:b=a.canvas.width-a.JSC$18369_overlayMarginLeft-AYc(a,b);break;default:throw Error("pl");}return Math.max(b,a.horizontalMargin)},zYc=function(a,b){b=a.canvas.height-Math.max(a.canvas.height-b,a.canvasMargin)-a.JSC$18369_overlayMarginTop;
return b<0?a.JSC$18369_overlayWidth:Math.max(Math.round(b*a.requiredRatio),a.minOverlayWidth)},AYc=function(a,b){b=a.JSC$18369_overlayMarginTop+a.JSC$18369_overlayHeight-Math.max(b,a.canvasMargin);
return b<0?a.JSC$18369_overlayWidth:Math.max(Math.round(b*a.requiredRatio),a.minOverlayWidth)},iYc=function(a){a.ctx.clearRect(0,0,a.canvas.width,a.canvas.height);
a.ctx.drawImage(a.image,0,0,a.image.width,a.image.height,a.horizontalMargin,a.canvasMargin,a.canvas.width-2*a.horizontalMargin,a.scaledImageHeight);a.ctx.fillStyle="rgba(0, 0, 0, 0.7)";a.ctx.fillRect(a.horizontalMargin,a.JSC$18369_overlayMarginTop,a.JSC$18369_overlayMarginLeft-a.horizontalMargin,a.JSC$18369_overlayHeight);a.ctx.fillRect(a.JSC$18369_overlayMarginLeft+a.JSC$18369_overlayWidth,a.JSC$18369_overlayMarginTop,a.JSC$18369_overlayMarginRight-a.horizontalMargin,a.JSC$18369_overlayHeight);a.ctx.fillRect(a.horizontalMargin,
a.canvasMargin,a.scaledImageWidth,a.JSC$18369_overlayMarginTop-a.canvasMargin);a.ctx.fillRect(a.horizontalMargin,a.JSC$18369_overlayMarginTop+a.JSC$18369_overlayHeight,a.scaledImageWidth,a.JSC$18369_overlayMarginBottom-a.canvasMargin);a.drawOverlay();a.component&&_.go(a.component,"image-updated")};
Q4.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$18369_overlayMarginLeft,this.JSC$18369_overlayMarginTop,this.JSC$18369_overlayWidth,this.JSC$18369_overlayHeight);BYc(this)};
var BYc=function(a){var b=a.JSC$18369_overlayMarginLeft-5,c=a.JSC$18369_overlayMarginTop-5,d=a.JSC$18369_overlayMarginLeft+a.JSC$18369_overlayWidth-5,e=a.JSC$18369_overlayMarginTop+a.JSC$18369_overlayHeight-5;a.ctx.fillStyle="#FFF";a.ctx.fillRect(b,c,10,10);a.ctx.strokeRect(b,c,10,10);a.ctx.fillRect(d,c,10,10);a.ctx.strokeRect(d,c,10,10);a.ctx.fillRect(b,e,10,10);a.ctx.strokeRect(b,e,10,10);a.ctx.fillRect(d,e,10,10);a.ctx.strokeRect(d,e,10,10);if(a.focusedCorner!==0&&a.styleFocusedCorner){a.ctx.lineWidth=
4;a.ctx.strokeStyle="#3EA6FF";switch(a.focusedCorner){case 1:--b;--c;break;case 2:--b;c=e-1;break;case 3:b=d-1;--c;break;case 4:b=d-1;c=e-1;break;default:return}a.ctx.strokeRect(b,c,12,12)}};
Q4.prototype.crop=function(a,b){b=b===void 0?!0:b;var c=this.image.width/this.scaledImageWidth,d=document.createElement("canvas"),e=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],g=this.JSC$18369_overlayWidth*c,k=this.JSC$18369_overlayHeight*c;d.width=Math.max(g,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);d.height=Math.max(k,e);a&&(d.width=Math.min(d.width,d.height),d.height=Math.min(d.width,d.height));
a=d.getContext("2d");if(!a)throw Error("dl");e=(this.JSC$18369_overlayMarginLeft-this.horizontalMargin)*c;c*=this.JSC$18369_overlayMarginTop-this.canvasMargin;b||(a.fillStyle="white",a.fillRect(0,0,d.width,d.height));a.drawImage(this.image,e,c,g,k,0,0,d.width,d.height);return d};var CYc=function(a,b,c,d,e){Q4.call(this,a,b,c,d,void 0,e,8,!1)};
_.z(CYc,Q4);CYc.prototype.drawOverlay=function(){var a=this.getContext(),b=this.JSC$18369_overlayWidth,c=this.JSC$18369_overlayHeight,d=this.JSC$18369_overlayMarginTop,e=this.JSC$18369_overlayMarginLeft;a.lineWidth=2;a.strokeStyle="#3EA6FF";a.beginPath();a.arc(e+b/2,d+c/2,b/2,0,2*Math.PI);a.stroke();a.strokeRect(e,d,b,c);BYc(this)};
var DYc={maxFileSizeMB:15,minWidth:98,minHeight:98},EYc=["image/png","image/jpeg","image/gif"],FYc=function(){var a=_.P.apply(this,arguments)||this;a.fileSelectorFocusListener=null;a.errorMessage=null;a.isLoading=!0;a.hideContainer=!0;a.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return a};
_.z(FYc,_.P);_.f=FYc.prototype;_.f.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.f.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.f.computePlaylistThumbnail=function(a){return a==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.f.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.ho(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.f.setErrorState=function(a){this.resetErrorState();a&&(this.errorMessage=a)};
_.f.showPopup=function(){var a=this;this.hideContainer=!1;_.ul(_.zk,function(){_.go(a.hostElement,"yt-refit")});
this.isLoading=!1};
_.f.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.f.closePopup=function(){this.resetFileSelector();_.ho(this.hostElement,"yt-close-popup-action",[this.is])};
_.f.onCancelTap=function(){this.isPlaylistThumbnail||_.ho(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.f.openFileSelector=function(){var a=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.ul(_.zk,function(){setTimeout(function(){if(!a.fileSelector.files||a.fileSelector.files.length===0)a.onCancelTap();a.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(b){b instanceof Error?_.Bl(b):_.Cl(new _.qj(JSON.stringify(b)))}};
_.f.handleFileSelection=function(){var a=this,b,c,d,e,g,k;return _.l(function(m){switch(m.nextAddress){case 1:_.me(m,2);if(!a.fileSelector.files||!a.imageEditorCanvas)return a.onCancelTap(),m.return();b=a.fileSelector.files[0];cYc(a.imageChecker,b);_.me(m,4);return _.p(m,Dxc(b),6);case 6:a.mimeType=m.yieldResult;_.Jj(m,5,2);break;case 4:_.re(m,2),_.ho(a.hostElement,"yt-image-selection-error-action",[(c=a.data)==null?void 0:c.genericImageLoadErrorMessage]),a.onCancelTap();case 5:d=new FileReader;d.addEventListener("load",
function(){var n,r;return _.l(function(t){if(t.nextAddress==1){if(!d.result)return _.Dl(Error("fl")),t.return();n=d.result;r=new Image;r.src=n;r.onload=function(){try{var u=a.imageChecker;if(r.width<u.requirements.minWidth||r.height<u.requirements.minHeight)throw new aYc(u.requirements.minWidth,u.requirements.minHeight);}catch(A){if(A instanceof aYc){var w;_.ho(a.hostElement,"yt-image-selection-error-action",[(w=a.data)==null?void 0:w.imageDimensionErrorMessage]);a.logImageDimensionErrorVe()}else A instanceof
Error?_.Bl(A):(u=new _.qj(JSON.stringify(A)),_.Bl(u));a.onCancelTap()}a.showPopup()};
r.onerror=function(){var u;_.ho(a.hostElement,"yt-image-selection-error-action",[(u=a.data)==null?void 0:u.genericImageLoadErrorMessage]);a.onCancelTap()};
return _.p(t,hYc(a.imageEditorCanvas,n),2)}a.imageEditor=t.yieldResult;a.updatePositionOfAllCorners();a.addEventListeners(a.imageEditor);_.se(t)})},!1);
d.readAsDataURL(b);_.Jj(m,0);break;case 2:e=_.re(m),e instanceof $Xc?_.ho(a.hostElement,"yt-image-selection-error-action",[(g=a.data)==null?void 0:g.imageSizeErrorMessage]):(e instanceof Error?_.Bl(e):_.Cl(new _.qj(JSON.stringify(e))),_.ho(a.hostElement,"yt-image-selection-error-action",[(k=a.data)==null?void 0:k.genericImageLoadErrorMessage])),a.onCancelTap(),_.se(m)}})};
_.f.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var a=_.ls(_.ms(),{veType:232707,visualElement:_.lu(232707)});a&&(a={visualElement:a},_.ks().reportShown(a))}};
_.f.handleImageSelectionErrorAction=function(a){this.isPlaylistThumbnail&&_.D_a(this.hostElement,a)};
_.f.convertToImageFormatBundle=function(a){var b=this,c,d,e;return _.l(function(g){switch(g.nextAddress){case 1:return c=a.toDataURL(b.outputMimeType,1),_.p(g,Exc(c),2);case 2:d=g.yieldResult;_.me(g,3);cYc(b.imageChecker,d);_.Jj(g,4);break;case 3:e=_.re(g);if(!(e instanceof $Xc))throw e;_.Dl(new _.qj("Output size is bigger than input size for image",b.mimeType,b.outputMimeType,d.size));c=a.toDataURL("image/jpeg",.95);return _.p(g,Exc(c),6);case 6:d=g.yieldResult;case 4:return g.return({dataUrl:c,
imageFile:d})}})};
_.f.handleUploadImageToScottyCommand=function(a){var b=this,c,d,e,g,k,m,n,r,t,u;return _.l(function(w){switch(w.nextAddress){case 1:if(!b.imageEditor||!_.y(a,sJc))return w.return();c=_.y(a,sJc).scottyUploadUrl;if(!c){var A=new _.qj("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.Bl(A);return w.return()}_.me(w,2);b.setLoadingState();d=b.imageEditor.crop(!1,!1);return _.p(w,b.convertToImageFormatBundle(d),4);case 4:return e=w.yieldResult,_.p(w,Bxc(e.imageFile,c),5);case 5:g=
w.yieldResult;((k=b.data)==null?0:k.onUploadEndpoint)?(m=b.buildUploadServiceEndpoint(g),b.ytComponentBehavior.resolveCommand(m),n=_.y(m,_.LE),((r=n)==null?0:r.params)?b.closePopup():b.resetFileSelector()):(_.ho(b.hostElement,"yt-image-updated-action",[e.dataUrl,g]),b.closePopup());_.Jj(w,0);break;case 2:t=_.re(w),b.setErrorState((u=b.data)==null?void 0:u.uploadErrorMessage),t instanceof Error?_.Bl(t):(A=new _.qj(JSON.stringify(t)),_.Bl(A)),_.se(w)}})};
_.f.buildUploadServiceEndpoint=function(a){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",a),this.data.onUploadEndpoint):null};
_.f.dataChanged=function(){var a=this,b;return _.l(function(c){if(c.nextAddress==1){if(!a.data||!a.canvasElement)return c.return();a.data.imageRatio&&a.data.minImageCropWidth||_.Cl(new _.qj("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));b=function(d,e){return a.data.imageType==="IMAGE_TYPE_AVATAR"?new CYc(d,e,a.data.imageRatio,[a.data.minImageCropWidth,a.data.minImageCropWidth/a.data.imageRatio],a.hostElement):new Q4(d,e,a.data.imageRatio,[a.data.minImageCropWidth,
a.data.minImageCropWidth/a.data.imageRatio],void 0,a.hostElement,8,!1)};
a.imageEditorCanvas=new dYc(a.canvasElement,b);return a.data.url?_.p(c,hYc(a.imageEditorCanvas,a.data.url),3):(a.hideContainer=!0,a.openFileSelector(),c.jumpTo(0))}a.imageEditor=c.yieldResult;a.showPopup();a.addEventListeners(a.imageEditor);_.se(c)})};
_.f.addEventListeners=function(a){this.removeEventListeners();var b=function(e){eYc(a,e)};
this.JSC$18377_mouseDownEvent=b;var c=function(e){fYc(a,e)};
this.JSC$18377_mouseMoveEvent=c;var d=function(){gYc(a)};
this.JSC$18377_mouseUpEvent=d;this.topLeftCorner.addEventListener("mousedown",b);this.topLeftCorner.addEventListener("mousemove",c);this.topLeftCorner.addEventListener("mouseup",d);this.topRightCorner.addEventListener("mousedown",b);this.topRightCorner.addEventListener("mousemove",c);this.topRightCorner.addEventListener("mouseup",d);this.bottomLeftCorner.addEventListener("mousedown",b);this.bottomLeftCorner.addEventListener("mousemove",c);this.bottomLeftCorner.addEventListener("mouseup",d);this.bottomRightCorner.addEventListener("mousedown",
b);this.bottomRightCorner.addEventListener("mousemove",c);this.bottomRightCorner.addEventListener("mouseup",d)};
_.f.removeEventListeners=function(){this.JSC$18377_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$18377_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$18377_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$18377_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$18377_mouseDownEvent));this.JSC$18377_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$18377_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$18377_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$18377_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$18377_mouseMoveEvent));this.JSC$18377_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$18377_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$18377_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$18377_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$18377_mouseUpEvent))};
_.f.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var a=document.activeElement;a&&a.shadowRoot&&a.shadowRoot.activeElement;)a=a.shadowRoot.activeElement;switch(a){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};
_.f.updatePositionOfCorner=function(a,b){var c=a.y-b.offsetHeight/2+4;b.style.left=a.x-b.offsetWidth/2+16+"px";b.style.top=c+"px"};
_.f.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var a=_.h([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),b=a.next();!b.done;b=a.next()){b=b.value;var c=lYc(this.imageEditor,b.corner);this.updatePositionOfCorner(c,b.div)}};
_.f.onLeft=function(a){this.imageEditor&&this.setFocusInImageEditor()&&(nYc(this.imageEditor,0),this.updatePositionOfAllCorners(),a.preventDefault())};
_.f.onRight=function(a){this.imageEditor&&this.setFocusInImageEditor()&&(nYc(this.imageEditor,1),this.updatePositionOfAllCorners(),a.preventDefault())};
_.f.onUp=function(a){this.imageEditor&&this.setFocusInImageEditor()&&(nYc(this.imageEditor,2),this.updatePositionOfAllCorners(),a.preventDefault())};
_.f.onDown=function(a){this.imageEditor&&this.setFocusInImageEditor()&&(nYc(this.imageEditor,3),this.updatePositionOfAllCorners(),a.preventDefault())};
_.f.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.f.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.Vm.Object.defineProperties(FYc.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&EYc.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var a,b,c;((b=this.data)==null?0:b.imageRatio)&&((c=this.data)==null?0:c.minImageCropWidth)?a={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:a=DYc;return new bYc(a)}}});
var R4=FYc;R4.prototype.updatePositionOfAllCorners=R4.prototype.updatePositionOfAllCorners;R4.prototype.dataChanged=R4.prototype.dataChanged;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],R4.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],R4.prototype,"ytComponentBehavior",void 0);_.U([_.H(_.BD),_.W("design:type",Object)],R4.prototype,"ironA11yKeysBehavior",void 0);
_.U([_.gr("#canvas"),_.W("design:type",HTMLCanvasElement)],R4.prototype,"canvasElement",void 0);_.U([_.gr("#file-selector"),_.W("design:type",HTMLInputElement)],R4.prototype,"fileSelector",void 0);_.U([_.gr("#top-left-corner"),_.W("design:type",HTMLDivElement)],R4.prototype,"topLeftCorner",void 0);_.U([_.gr("#top-right-corner"),_.W("design:type",HTMLDivElement)],R4.prototype,"topRightCorner",void 0);
_.U([_.gr("#bottom-left-corner"),_.W("design:type",HTMLDivElement)],R4.prototype,"bottomLeftCorner",void 0);_.U([_.gr("#bottom-right-corner"),_.W("design:type",HTMLDivElement)],R4.prototype,"bottomRightCorner",void 0);_.U([_.O(),_.W("design:type",Object)],R4.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],R4.prototype,"errorMessage",void 0);_.U([_.O(),_.W("design:type",Object)],R4.prototype,"isLoading",void 0);_.U([_.O(),_.W("design:type",Object)],R4.prototype,"hideContainer",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.W("design:type",Boolean)],R4.prototype,"isPlaylistThumbnail",void 0);_.U([_.kr("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype",Promise)],R4.prototype,"dataChanged",null);_.U([_.M("image-updated"),_.M("yt-refit"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],R4.prototype,"updatePositionOfAllCorners",null);
R4=_.U([_.ur({is:"yt-image-editor-renderer",disableElementRegistration:!0})],R4);
_.S(R4,"yt-image-editor-renderer",function(){if(ZXc===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;YXc===void 0&&(YXc=document.createElement("template"));var d=YXc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);ZXc=a}a=ZXc;return a},{mode:2});var GYc;var HYc;var IYc=function(){return _.P.apply(this,arguments)||this};
_.z(IYc,_.P);IYc.prototype.updateMinutesFromBinding=function(a){this.handleMinutesChanged&&this.handleMinutesChanged(a)};
IYc.prototype.updateSecondsFromBinding=function(a){this.handleSecondsChanged&&this.handleSecondsChanged(a)};
IYc.prototype.updateDescriptionFromBinding=function(a){this.handleDescriptionChanged&&this.handleDescriptionChanged(a)};
var S4=IYc;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],S4.prototype,"ytComponentBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],S4.prototype,"data",void 0);_.U([_.O(),_.W("design:type",String)],S4.prototype,"minutes",void 0);_.U([_.O(),_.W("design:type",String)],S4.prototype,"seconds",void 0);_.U([_.O(),_.W("design:type",String)],S4.prototype,"description",void 0);_.U([_.O(),_.W("design:type",Function)],S4.prototype,"handleMinutesChanged",void 0);
_.U([_.O(),_.W("design:type",Function)],S4.prototype,"handleSecondsChanged",void 0);_.U([_.O(),_.W("design:type",Function)],S4.prototype,"handleDescriptionChanged",void 0);_.U([_.O(),_.W("design:type",Number)],S4.prototype,"characterLimit",void 0);_.U([_.O(),_.W("design:type",Number)],S4.prototype,"textNumRows",void 0);S4=_.U([_.ur({is:"yt-report-details-form-content",disableElementRegistration:!0})],S4);
_.S(S4,"yt-report-details-form-content",function(){if(HYc===void 0){var a=document.createElement("template");_.B(a,'\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>');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;GYc===void 0&&(GYc=document.createElement("template"));var d=GYc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);HYc=a}a=HYc;return a},{mode:2});var JYc;var KYc;var LYc=function(){var a=_.P.apply(this,arguments)||this;a.updateMinutesFromBinding=function(b){a.minutes=b.detail.value};
a.updateSecondsFromBinding=function(b){a.seconds=b.detail.value};
a.updateDescriptionFromBinding=function(b){a.description=b.detail.value};
return a};
_.z(LYc,_.P);_.f=LYc.prototype;_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.f.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"}}}};
_.f.ready=function(){_.E(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.f.onSubmitYtAction=function(a){var b=a.detail;b.actionName==="yt-service-request"&&(b=b.args[1],b.flagEndpoint&&(a.stopPropagation(),this.refireAction(b)))};
_.f.refireAction=function(a){var b={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(b.vss_id=this.vssId);_.mo(this.hostElement,[a,b]);this.submitDisabled=!0};
_.f.dataChanged=function(){var a=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var b=_.bu();b&&b.getPlayerPromise().then(function(c){var d=c.getOption("cc","track")||c.getOption("captions","track");d&&(a.vssId=d.vss_id);c=c.getCurrentTime();a.minutes=Math.floor(c/60).toString();a.seconds=(Math.floor(c)%60).toString()})};
_.f.updateSubmitButtonState=function(){var a;((a=this.data)==null?0:a.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==="")};
_.f.onYtServiceRequestCompleted=function(){_.ho(this.hostElement,"yt-close-popup-action")};
_.f.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.Vm.Object.defineProperties(LYc.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var a;return((a=this.data)==null?void 0:a.textNumRows)||4}}});
var T4=LYc;T4.prototype.onYtServiceRequestError=T4.prototype.onYtServiceRequestError;T4.prototype.onYtServiceRequestCompleted=T4.prototype.onYtServiceRequestCompleted;T4.prototype.updateSubmitButtonState=T4.prototype.updateSubmitButtonState;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],T4.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],T4.prototype,"ytRendererBehavior",void 0);
_.U([_.O({observer:"dataChanged"}),_.W("design:type",Object)],T4.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Boolean)],T4.prototype,"submitDisabled",void 0);_.U([_.O(),_.W("design:type",String)],T4.prototype,"minutes",void 0);_.U([_.O(),_.W("design:type",String)],T4.prototype,"seconds",void 0);_.U([_.O(),_.W("design:type",String)],T4.prototype,"description",void 0);_.U([_.O(),_.W("design:type",String)],T4.prototype,"vssId",void 0);
_.U([_.O({value:_.Ei("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.W("design:type",Boolean)],T4.prototype,"isMusic",void 0);_.U([_.K("data"),_.W("design:type",Number),_.W("design:paramtypes",[])],T4.prototype,"characterLimit",null);_.U([_.K("data"),_.W("design:type",Number),_.W("design:paramtypes",[])],T4.prototype,"textNumRows",null);
_.U([_.kr("minutes","seconds","description","submitDisabled"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],T4.prototype,"updateSubmitButtonState",null);_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],T4.prototype,"onYtServiceRequestCompleted",null);
_.U([_.M("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],T4.prototype,"onYtServiceRequestError",null);T4=_.U([_.ur({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],T4);
_.S(T4,"yt-report-details-form-renderer",function(){if(KYc===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;JYc===void 0&&(JYc=document.createElement("template"));var d=JYc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);KYc=a}a=KYc;return a});var MYc;var NYc;var OYc;var PYc;var QYc=function(){return _.P.apply(this,arguments)||this};
_.z(QYc,_.P);
QYc.prototype.onCheckedChanged_=function(){if(this.data){var a=_.E(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.ho(this.hostElement,"yt-additional-detail-checkbox-update",[a]):this.data.identifier==="yt-hide-user-checkbox"?_.ho(this.hostElement,"yt-hide-user-checkbox-update",[a]):a&&this.data.enableCommand?_.ho(this.hostElement,"yt-modify-report-form-command",[_.y(this.data.enableCommand,AJc)]):!a&&this.data.disableCommand&&_.ho(this.hostElement,
"yt-modify-report-form-command",[_.y(this.data.enableCommand,AJc)])}};
QYc.prototype.onLabelTap_=function(a){a.target.tagName!="A"&&(_.E(this.hostElement).querySelector("#checkbox").checked=!_.E(this.hostElement).querySelector("#checkbox").checked)};
var RYc=QYc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],RYc.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],RYc.prototype,"data",void 0);RYc=_.U([_.ur({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],RYc);
_.S(RYc,"yt-boolean-form-field-v2-renderer",function(){if(PYc===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;OYc===void 0&&(OYc=document.createElement("template"));var d=OYc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);PYc=a}a=PYc;return a});var SYc=function(){var a=_.P.apply(this,arguments)||this;a.canShowAdditionalDetailCheckbox=!1;a.canShowCheckbox=!1;a.keepDropdownFocusedAfterSelection=!0;return a};
_.z(SYc,_.P);SYc.prototype.configureRendererStamper=function(){return{"data.legalReportCheckbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}},"data.additionalDetailCheckbox":{id:"additional-detail-checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
var U4=SYc;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],U4.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],U4.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],U4.prototype,"canShowAdditionalDetailCheckbox",void 0);_.U([_.O(),_.W("design:type",Object)],U4.prototype,"canShowCheckbox",void 0);_.U([_.O(),_.W("design:type",Object)],U4.prototype,"keepDropdownFocusedAfterSelection",void 0);
U4=_.U([_.ur({is:"yt-report-form-modal-content",disableElementRegistration:!0})],U4);
_.S(U4,"yt-report-form-modal-content",function(){if(NYc===void 0){var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;MYc===void 0&&(MYc=document.createElement("template"));var d=MYc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);NYc=a}a=NYc;return a},{mode:2});var TYc;var UYc;var VYc=function(){var a=_.P.apply(this,arguments)||this;a.submitting=!1;a.submitButtonDisabled=!0;a.command=null;a.canShowCheckbox=!1;a.canShowAdditionalDetailCheckbox=!1;a.canShowNextButton=!1;a.additionalDetailCheckboxChecked=!1;a.refitJob=0;a.keepDropdownFocusedAfterSelection=!0;a.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 a};
_.z(VYc,_.P);_.f=VYc.prototype;_.f.created=function(){this.refitJob=0};
_.f.attached=function(){this.JSC$18400_scroller&&(this.JSC$18400_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18400_scroller.attached&&typeof this.JSC$18400_scroller.attached==="function"&&this.JSC$18400_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.f.dataChanged=function(a){a&&(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,a.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),a.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.f.onYtPopupOpened=function(){var a=_.bu();a&&a.getPlayerPromise().then(function(b){b.pauseVideo()})};
_.f.onYtNavigate=function(a){_.y(a.detail.endpoint,_.ezb)&&(a.stopPropagation(),this.hideReportForm=!0)};
_.f.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.f.onYtServiceRequestCompleted=function(a,b){var c=b.actions;if(c){if(c.length===1&&_.y(c[0],_.po)){var d;c=((d=_.y(c[0],_.po))==null?void 0:d.commands)||[]}d=0;for(var e=c.length;d<e;d++)_.y(c[d],_.GE)&&(a.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(c[d]))}if(b.data&&(a=this.get("feedbackResponses",b.data)))for(b=0;b<a.length;b++)if(a[b].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.f.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.f._onDescendantIronResize=function(a){a.stopPropagation();return!1};
_.f.handleReportFormEndpointUpdateAction=function(a){if(a.submitEndpoint){var b=this.command=a.submitEndpoint;b=_.y(b,_.PAb);if(b==null?0:b.additionalDetailCheckboxChecked)b.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else a.submitNavigationEndpoint?(this.command=a.submitNavigationEndpoint,this.toggleSubmitButton(!1)):a.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:a.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;a.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",a));this.refit()};
_.f.handleConfirmDialogCloseAction=function(a){a.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.f.submitButtonDisabledChanged=function(){var a=this.hostElement.parentElement;a&&a.invalidateTabbables&&a.invalidateTabbables()};
_.f.handleModifyReportFormCommand=function(a){a=this.get("action",a);a==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:a==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:a==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:a==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:a==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:a==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.f.updateDialogStyling=function(){var a,b,c,d,e,g=((e=(a=this.data)==null?void 0:(b=a.optionsSupportedRenderers)==null?void 0:(c=b.optionsRenderer)==null?void 0:(d=c.items)==null?void 0:d.length)!=null?e:0)<=2?0:240;_.dr(this.hostElement,{"--yt-report-form-modal-renderer-min-width":g+"px"})};
_.f.toggleSubmitButton=function(a){this.submitButtonDisabled=!a;this.submitButtonDisabled=a};
_.f.computeSubmitButtonData=function(a,b){var c={};_.y(b,_.ezb)?c.navigationEndpoint=b:c.command=b||void 0;a&&a.buttonRenderer&&_.yf.extend(c,a.buttonRenderer);return c};
_.f.computeNextButtonData=function(a,b){var c={};if(!a||!a.buttonRenderer)return c;_.yf.extend(c,a.buttonRenderer);if(!b)return c;if(_.y(b,_.ezb))c.navigationEndpoint=FBc(b);else if(c.command=FBc(b),a=_.y(c.command,_.PAb))a.legalCheckboxChecked=!0;return c};
_.f.computeShowNextButton=function(a,b,c){return!!a&&b&&c};
_.f.refit=function(){var a=this;this.refitJob||(this.refitJob=_.zk.addLowPriorityJob(function(){_.go(a.hostElement,"yt-refit");a.refitJob=0}))};
_.f.handleAdditionalDetailCheckboxUpdateAction=function(a){this.additionalDetailCheckboxChecked=a;_.y(this.command,_.PAb).additionalDetailCheckboxChecked=a};
_.Vm.Object.defineProperties(VYc,{template:{configurable:!0,enumerable:!0,get:function(){if(UYc===void 0){var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;TYc===void 0&&(TYc=document.createElement("template"));var d=TYc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);UYc=a}a=UYc;return a}}});
var V4=VYc;V4.prototype.onYtServiceRequestError=V4.prototype.onYtServiceRequestError;V4.prototype.onYtServiceRequestCompleted=V4.prototype.onYtServiceRequestCompleted;V4.prototype.onYtServiceRequestSent=V4.prototype.onYtServiceRequestSent;V4.prototype.onYtNavigate=V4.prototype.onYtNavigate;V4.prototype.onYtPopupOpened=V4.prototype.onYtPopupOpened;_.U([_.H(_.mH.YtOpenPopupBehavior),_.W("design:type",Object)],V4.prototype,"openPopupBehavior",void 0);
_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],V4.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],V4.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.CK.YtEventForwardingBehavior),_.W("design:type",Object)],V4.prototype,"eventForwardingBehavior",void 0);_.U([_.H(_.KD),_.W("design:type",Object)],V4.prototype,"ironResizableBehavior",void 0);_.U([_.O({observer:"dataChanged"}),_.W("design:type",Object)],V4.prototype,"data",void 0);
_.U([_.O(),_.W("design:type",Object)],V4.prototype,"submitting",void 0);_.U([_.O({observer:"submitButtonDisabledChanged"}),_.W("design:type",Object)],V4.prototype,"submitButtonDisabled",void 0);_.U([_.O(),_.W("design:type",Object)],V4.prototype,"command",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],V4.prototype,"hideReportForm",void 0);_.U([_.O(),_.W("design:type",Object)],V4.prototype,"canShowCheckbox",void 0);
_.U([_.O(),_.W("design:type",Object)],V4.prototype,"canShowAdditionalDetailCheckbox",void 0);_.U([_.O(),_.W("design:type",Object)],V4.prototype,"canShowNextButton",void 0);_.U([_.O(),_.W("design:type",Object)],V4.prototype,"additionalDetailCheckboxChecked",void 0);_.U([_.O(),_.W("design:type",Object)],V4.prototype,"refitJob",void 0);_.U([_.O(),_.W("design:type",Object)],V4.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.U([_.gr("#scroller"),_.W("design:type",Object)],V4.prototype,"JSC$18400_scroller",void 0);_.U([_.M("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],V4.prototype,"onYtPopupOpened",null);_.U([_.M("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],V4.prototype,"onYtNavigate",null);
_.U([_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Ot]),_.W("design:returntype")],V4.prototype,"onYtServiceRequestSent",null);_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Wt]),_.W("design:returntype")],V4.prototype,"onYtServiceRequestCompleted",null);
_.U([_.M("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],V4.prototype,"onYtServiceRequestError",null);V4=_.U([_.ur({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],V4);var WYc;var XYc;var YYc=function(){return _.P.apply(this,arguments)||this};
_.z(YYc,_.P);_.f=YYc.prototype;_.f.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.f.onThumbnailLoaded=function(){_.go(this.hostElement,"yt-refit")};
_.f.onDismissTap=function(){_.ho(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.f.computeAlternateIcon=function(a){return a?a==="BACKSTAGE_ARTWORK"?"backstage:artwork":a:null};
_.f.computeFontFamily=function(a){return a==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.f.computeBackgroundStyle=function(a,b){if(a=this.computeBackgroundImage(a,b))if(a=_.Ys(a.thumbnails))return'background-image: url("'+a+'");'};
_.f.computeHasFullHeightImage=function(a){return!(!(a&&a.thumbnails&&a.thumbnails.length>0)||this.modern)};
_.f.isModernStyle=function(a){return a.style==="STYLE_MODERN"};
_.f.computeIcon=function(a,b){if(a&&a.icon)return b?a.iconDark:a.icon};
_.f.computeBackgroundImage=function(a,b){if(a&&a.backgroundImage)return b?a.backgroundImageDark:a.backgroundImage};
_.f.computeLogo=function(a,b){if(a&&a.logo)return b?a.logoDark:a.logo};
_.f.computeShouldShowModernIcon=function(a,b){return a&&!!b};
_.f.getLogoContainerClassName=function(a){return this.logoWithPadding(a)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.f.getLogoImageId=function(a){return this.logoWithPadding(a)?"mealbar-logo-with-padding":"mealbar-logo"};
_.f.logoWithPadding=function(a){var b,c,d;return(a=(b=this.computeLogo(a,this.isDarkTheme))==null?void 0:(c=b.thumbnails)==null?void 0:(d=c[0])==null?void 0:d.height)&&a%31===0?!0:!1};
var W4=YYc;W4.prototype.onThumbnailLoaded=W4.prototype.onThumbnailLoaded;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],W4.prototype,"ytRendererBehavior",void 0);_.U([_.O({}),_.W("design:type",Object)],W4.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.W("design:type",Boolean)],W4.prototype,"modern",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],W4.prototype,"isDarkTheme",void 0);
_.U([_.O({computed:"computeIcon(data, isDarkTheme)"}),_.W("design:type",Object)],W4.prototype,"icon",void 0);_.U([_.O({computed:"computeLogo(data, isDarkTheme)"}),_.W("design:type",Object)],W4.prototype,"logo",void 0);_.U([_.O({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.W("design:type",Object)],W4.prototype,"backgroundStyle",void 0);_.U([_.O({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.W("design:type",Object)],W4.prototype,"alternateIcon",void 0);
_.U([_.O({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.W("design:type",Boolean)],W4.prototype,"hasFullHeightImage",void 0);_.U([_.O({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.W("design:type",Boolean)],W4.prototype,"useYoutubeSans",void 0);_.U([_.O({computed:"computeShouldShowModernIcon(modern, icon)"}),_.W("design:type",Boolean)],W4.prototype,"shouldShowModernIcon",void 0);
_.U([_.M("yt-img-shadow-loaded"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],W4.prototype,"onThumbnailLoaded",null);W4=_.U([_.ur({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],W4);
_.S(W4,"yt-mealbar-promo-renderer",function(){if(XYc===void 0){var a=document.createElement("template");_.B(a,'\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]]" tabindex="0" 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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;WYc===void 0&&(WYc=document.createElement("template"));var d=WYc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);XYc=a}a=XYc;return a},{mode:2});var ZYc;var $Yc;var aZc=function(){return _.P.apply(this,arguments)||this};
_.z(aZc,_.P);_.f=aZc.prototype;_.f.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]]"}}}}}};
_.f.computeHasButtons_=function(a){return!(!a.dismissButton&&!a.acceptButton)};
_.f.computeStyle_=function(a){return a||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.f.observeImpressionEndpoints_=function(){var a=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(b){b.clickTrackingParams&&delete b.clickTrackingParams;_.mo(a.hostElement,[b])})};
_.f.onTap_=function(){_.ho(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
var X4=aZc;X4.prototype.observeImpressionEndpoints_=X4.prototype.observeImpressionEndpoints_;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],X4.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.CK.YtEventForwardingBehavior),_.W("design:type",Object)],X4.prototype,"ytEventForwardingBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],X4.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],X4.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],X4.prototype,"positionType",void 0);_.U([_.O({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.W("design:type",Boolean)],X4.prototype,"hasButtons_",void 0);_.U([_.O({value:function(){return this.onTap_.bind(this)}}),
_.W("design:type",Function)],X4.prototype,"boundOnTap_",void 0);_.U([_.O({value:{style:"mono-inverse"}}),_.W("design:type",Object)],X4.prototype,"buttonOverride",void 0);_.U([_.N("data.promoConfig.impressionEndpoints"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],X4.prototype,"observeImpressionEndpoints_",null);X4=_.U([_.ur({is:"yt-tooltip-renderer",disableElementRegistration:!0})],X4);
_.S(X4,"yt-tooltip-renderer",function(){if($Yc===void 0){var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;ZYc===void 0&&(ZYc=document.createElement("template"));var d=ZYc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);$Yc=a}a=$Yc;return a},{mode:2});var bZc;var cZc;var dZc={},eZc=(dZc.WEB_REMIX="music.youtube.com",dZc),fZc=function(){var a=_.P.apply(this,arguments)||this;a.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return a};
_.z(fZc,_.P);_.f=fZc.prototype;_.f.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.f.created=function(){this.embedHost_=eZc[_.Ei("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.f.ready=function(){_.E(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.f.computeEmbedCode_=function(a,b,c,d,e){if(!a)return"";var g=a.videoId,k=a.fullListId,m=[];a.attributionId&&m.push("si="+a.attributionId);d||m.push("controls=0");c&&Number(b)>0&&m.push("start="+b);k&&(g="videoseries",m.push("list="+k));c="https://"+(e?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+g;a.clipId&&(m.push("clip="+a.clipId),m.push("clipt="+a.clipTiming));b=m.length>0?c+"?"+m.join("&amp;"):c;a.encryptedEmbedConfig&&m.push("embed_config="+JSON.stringify({enc:a.encryptedEmbedConfig}));
m=m.length>0?c+"?"+m.join("&amp;"):c;_.x("web_sharing_embed_preview_killswitch")?_.E(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(m,a.previewWidth||854,a.previewHeight||480):(_.Ry(this.videoPreviewContainer),_.E(this.videoPreviewContainer).appendChild(this.buildIframeElement(m)));return this.getEmbedCode_(b,a.width||560,a.height||315)};
_.f.buildIframeElement=function(a){var b=document.createElement("iframe"),c,d;b.width=""+((d=(c=this.data)==null?void 0:c.previewWidth)!=null?d:854);var e,g;b.height=""+((g=(e=this.data)==null?void 0:e.previewHeight)!=null?g:480);_.Lda(b,2,a);b.title="YouTube video player";b.frameBorder="0";b.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";b.referrerPolicy="strict-origin-when-cross-origin";b.allowFullscreen=!0;return b};
_.f.computeIsSquareAspectRatio_=function(a){return a.previewHeight&&a.previewWidth?a.previewHeight==a.previewWidth:!1};
_.f.computeShowEmbedOptions_=function(a){return!!a.enablePrivacyModeOptionLabel||!!a.showPlayerControlsOptionLabel};
_.f.getEmbedCode_=function(a,b,c){return'<iframe width="'+b+'" height="'+c+'" src="'+a+'" 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>'};
_.f.handleSignalActionCopyShareEmbedUrl_=function(){_.E(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.f.handleSetTimestamp_=function(a){this.startAtTimeStamp_=(this.startAtChecked_=a.isSet)?a.timestamp:0};
_.f.closePanel_=function(){_.ho(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.f.onEmbedCode_=function(){_.E(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.f.onYtPopupClosed_=function(){_.Ry(_.E(this.hostElement).querySelector("#video-preview"))};
_.f.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.y(this.data.actionButtons[0],_.OE)&&this.ytRendererBehavior.logExplicitClick(_.y(this.data.actionButtons[0],_.OE))};
var Y4=fZc;Y4.prototype.onYtPopupClosed_=Y4.prototype.onYtPopupClosed_;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],Y4.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],Y4.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],Y4.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],Y4.prototype,"data",void 0);
_.U([_.O({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.W("design:type",String)],Y4.prototype,"embedCode_",void 0);_.U([_.O({value:!0}),_.W("design:type",Boolean)],Y4.prototype,"isPlayerControlsOptionChecked_",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],Y4.prototype,"isPrivacyModeOptionChecked_",void 0);_.U([_.O({value:!1,notify:!0}),_.W("design:type",Boolean)],Y4.prototype,"startAtChecked_",void 0);
_.U([_.O({value:0}),_.W("design:type",Number)],Y4.prototype,"startAtTimeStamp_",void 0);_.U([_.O({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],Y4.prototype,"isSquareAspectRatio_",void 0);_.U([_.gr("#video-preview"),_.W("design:type",HTMLElement)],Y4.prototype,"videoPreviewContainer",void 0);_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Y4.prototype,"onYtPopupClosed_",null);
Y4=_.U([_.ur({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],Y4);
_.S(Y4,"yt-sharing-embed-renderer",function(){if(cZc===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;bZc===void 0&&(bZc=document.createElement("template"));var d=bZc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);cZc=a}a=cZc;return a},{mode:2});var gZc={};
gZc.YtUnlimitedFamilyInterstitialBehavior=[_.mH.YtOpenPopupBehavior,_.bH.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(a){a=_.Zcb(_.Qq(a),"yt-button-renderer");return a?a.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(a){this.dialogHistory_.push(a)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var a=this.popFromHistory();if(a){var b={openPopupAction:{popupType:"DIALOG",popup:{}}};b.openPopupAction.popup[a.renderer]=a.data;this.showingPreviousDialog_=!0;this.openPopup(b)}},
handleOpenPopupAction_:function(a){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var b=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(d){return!!a.openPopupAction.popup[d]}),c=this.getElementName_();
b&&this.data&&(this.pushToHistory({renderer:c,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(a){if(a=_.y(a,aKc))this.loading=!0,_.ho(this.hostElement,"yt-open-create-family-dialog",[a,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var a=this.hostElement.nodeName.split("-").slice(1).map(function(b){return""+b[0].toUpperCase()+b.slice(1).toLowerCase()}).join("");
return a[0].toLowerCase()+a.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var hZc;var iZc;var jZc=function(){return _.P.apply(this,arguments)||this};
_.z(jZc,_.P);_.f=jZc.prototype;_.f.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}}}}}};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.ho(this.hostElement,"yt-register-create-family-dialog");_.E(this.hostElement).querySelector("#thumbnail").onShow()};
_.f.fireOnCloseCommand_=function(){var a;((a=this.data)==null?0:a.onCloseCommand)&&_.no(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.f.onYtServiceRequestSent_=function(a,b){b&&b.endpoint&&_.y(b.endpoint,_.ro)||(this.loading=!0)};
_.f.onYtServiceRequestCompleted_=function(){var a=this.hostElement.parentElement;a.close&&a.close();this.loading=!1};
_.f.openPopupHandler_=function(a){if(a.detail==this){var b;((b=this.data)==null?0:b.onOpenCommands)&&_.no(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.f.closePopupHandler_=function(a,b){this.fireOnCloseCommand_();if(b&&b.canceled===!0||b&&b.canceled===!1&&b.confirmed===!1){var c;((c=this.data)==null?0:c.onDismissCommands)&&_.no(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.f.dataChanged_=function(){this.loading=!1};
var Z4=jZc;Z4.prototype.dataChanged_=Z4.prototype.dataChanged_;Z4.prototype.closePopupHandler_=Z4.prototype.closePopupHandler_;Z4.prototype.openPopupHandler_=Z4.prototype.openPopupHandler_;Z4.prototype.onYtServiceRequestCompleted_=Z4.prototype.onYtServiceRequestCompleted_;Z4.prototype.onYtServiceRequestSent_=Z4.prototype.onYtServiceRequestSent_;_.U([_.H(_.CK.YtEventForwardingBehavior),_.W("design:type",Object)],Z4.prototype,"ytEventForwardingBehavior",void 0);
_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],Z4.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(gZc.YtUnlimitedFamilyInterstitialBehavior),_.W("design:type",Object)],Z4.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],Z4.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],Z4.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],Z4.prototype,"loading",void 0);_.U([_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Ot]),_.W("design:returntype")],Z4.prototype,"onYtServiceRequestSent_",null);_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Wt]),_.W("design:returntype")],Z4.prototype,"onYtServiceRequestCompleted_",null);
_.U([_.M("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],Z4.prototype,"openPopupHandler_",null);_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],Z4.prototype,"closePopupHandler_",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],Z4.prototype,"dataChanged_",null);
Z4=_.U([_.ur({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],Z4);
_.S(Z4,"yt-unlimited-family-message-interstitial-renderer",function(){if(iZc===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;hZc===void 0&&(hZc=document.createElement("template"));var d=hZc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);iZc=a}a=iZc;return a},{mode:2});var kZc;var lZc;var $4=function(){return _.P.apply(this,arguments)||this};
_.z($4,_.P);$4.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"}}}};
$4.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.E(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(a){a.onShow()});
_.E(this.hostElement).querySelector("#main-thumbnail").onShow()};
$4.prototype.onButtonTap_=function(a){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(a)};
$4.prototype.computeMainThumbnailWidth_=function(a){return a&&a.length!==0?72:96};
var a5=$4;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],a5.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],a5.prototype,"ytRendererBehavior",void 0);_.U([_.H(gZc.YtUnlimitedFamilyInterstitialBehavior),_.W("design:type",Object)],a5.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],a5.prototype,"data",void 0);
_.U([_.O({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.W("design:type",Number)],a5.prototype,"mainThumbnailWidth_",void 0);_.U([_.O({value:function(){return this.onButtonTap_.bind(this)}}),
_.W("design:type",Function)],a5.prototype,"boundButtonTap_",void 0);a5=_.U([_.ur({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],a5);
_.S(a5,"yt-unlimited-family-profile-interstitial-renderer",function(){if(lZc===void 0){var a=document.createElement("template");_.B(a,'\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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;kZc===void 0&&(kZc=document.createElement("template"));var d=kZc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);lZc=a}a=lZc;return a},{mode:2});var mZc;var nZc;var oZc=function(){var a=_.P.apply(this,arguments)||this;a.sliderAriaLabel_=null;a.selectedIndex_=0;return a};
_.z(oZc,_.P);_.f=oZc.prototype;_.f.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_]]"}}}}}};
_.f.onPopupOpened_=function(a){a.detail==this&&_.x("enable_premium_voluntary_pause")&&(_.ho(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.f.setDialogData=function(a){this.data=a;this.resetSlider_()};
_.f.dataChanged_=function(){this.data&&this.resetSlider_()};
_.f.onSubmitTap_=function(){if(this.data.confirmCommand){var a=this.data.confirmCommand;_.y(a,_.MFb)&&_.mo(this.hostElement,[a,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.f.onExitButtonTap_=function(){_.ho(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.f.closePopupHandler_=function(a,b){(b&&b.canceled===!0||b.canceled===!1&&b.confirmed===!1)&&this.handleOnDismissCommands_()};
_.f.onSliderChange_=function(){this.selectedIndex_=_.E(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.f.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaLabel_())};
_.f.setSliderAriaLabel_=function(){this.selectedData_&&(this.sliderAriaLabel_=this.selectedData_.accessibilityData.label)};
_.f.resetSlider_=function(){if(this.data){var a=this.data.defaultEndOptionIndex||0,b=_.E(this.hostElement).querySelector("#id-pause-slider");if(b.immediateValue<a)for(;b.immediateValue!=a;)b.increment();else if(a<b.immediateValue)for(;b.immediateValue!=a;)b.decrement();this.selectedIndex_=a;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.f.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.no(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.f.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.no(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.f.onYtServiceRequestSent=function(){this.loading=!0};
_.f.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
var b5=oZc;b5.prototype.onYtServiceRequestCompleted=b5.prototype.onYtServiceRequestCompleted;b5.prototype.onYtServiceRequestSent=b5.prototype.onYtServiceRequestSent;b5.prototype.closePopupHandler_=b5.prototype.closePopupHandler_;b5.prototype.dataChanged_=b5.prototype.dataChanged_;b5.prototype.onPopupOpened_=b5.prototype.onPopupOpened_;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],b5.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],b5.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],b5.prototype,"data",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],b5.prototype,"loading",void 0);_.U([_.O(),_.W("design:type",Number)],b5.prototype,"selectIndexMax_",void 0);_.U([_.O(),_.W("design:type",Object)],b5.prototype,"selectedData_",void 0);
_.U([_.O(),_.W("design:type",Object)],b5.prototype,"sliderAriaLabel_",void 0);_.U([_.O({value:function(){return this.onSubmitTap_.bind(this)}}),
_.W("design:type",Function)],b5.prototype,"onButtonTap_",void 0);_.U([_.O({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.W("design:type",Function)],b5.prototype,"onSecondaryTap_",void 0);_.U([_.M("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],b5.prototype,"onPopupOpened_",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],b5.prototype,"dataChanged_",null);
_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],b5.prototype,"closePopupHandler_",null);_.U([_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Ot]),_.W("design:returntype")],b5.prototype,"onYtServiceRequestSent",null);
_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Wt]),_.W("design:returntype")],b5.prototype,"onYtServiceRequestCompleted",null);b5=_.U([_.ur({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],b5);
_.S(b5,"yt-unplugged-pause-membership-dialog-renderer",function(){if(nZc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unplugged-pause-membership-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unplugged_pause_membership_dialog_renderer.yt.unplugged.pause.membership.dialog.renderer.css.js--\x3e<tp-yt-paper-spinner-lite active="[[loading]]" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></tp-yt-paper-spinner-lite><div class="dialog-title style-scope yt-unplugged-pause-membership-dialog-renderer">[[getSimpleString(data.title)]]</div><div class="duration-title style-scope yt-unplugged-pause-membership-dialog-renderer">\n  [[getSimpleString(selectedData_.pausePeriodMessage)]]\n</div><div class="duration-subtitle style-scope yt-unplugged-pause-membership-dialog-renderer">\n  [[getSimpleString(selectedData_.pauseEndMessage)]]\n</div><tp-yt-paper-slider id="id-pause-slider" class="pause-slider style-scope yt-unplugged-pause-membership-dialog-renderer" aria-label$="[[sliderAriaLabel_]]" 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>');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;mZc===void 0&&(mZc=document.createElement("template"));var d=mZc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);nZc=a}a=nZc;return a},{mode:2});var pZc;var qZc;var rZc=function(){return _.P.apply(this,arguments)||this};
_.z(rZc,_.P);rZc.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.Jt("vcBalanceRenderer")}}};
var c5=rZc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],c5.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],c5.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],c5.prototype,"data",void 0);c5=_.U([_.ur({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],c5);
_.S(c5,"yt-vc-offer-layout-header-renderer",function(){if(qZc===void 0){var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;pZc===void 0&&(pZc=document.createElement("template"));var d=pZc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);qZc=a}a=qZc;return a},{mode:2});var sZc;var tZc;var uZc;var vZc;var wZc=function(){return _.P.apply(this,arguments)||this};
_.z(wZc,_.P);wZc.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.Vm.Object.defineProperties(wZc.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityText?this.data.accessibilityText:""}},
vcOfferStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_OFFER_STYLE_STANDARD"}},
showTitleText:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||this.data.style!=="VC_OFFER_STYLE_HERO"||!this.data.titleText)}}});
var d5=wZc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],d5.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],d5.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Kbc.YtTappableItemBehavior),_.W("design:type",Object)],d5.prototype,"ytTappableItemBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],d5.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.K("data.accessibilityText"),_.W("design:type",String),_.W("design:paramtypes",[])],d5.prototype,"ariaLabel",null);_.U([_.O({reflectToAttribute:!0}),_.K("data.style"),_.W("design:type",String),_.W("design:paramtypes",[])],d5.prototype,"vcOfferStyle",null);_.U([_.K("data.style","data.titleText"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],d5.prototype,"showTitleText",null);d5=_.U([_.ur({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],d5);
_.S(d5,"yt-vc-offer-renderer",function(){if(vZc===void 0){var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;uZc===void 0&&(uZc=document.createElement("template"));var d=uZc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);vZc=a}a=vZc;return a},{mode:2});var xZc=function(){return _.P.apply(this,arguments)||this};
_.z(xZc,_.P);xZc.prototype.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{vcOfferLayoutHeaderRenderer:{component:"yt-vc-offer-layout-header-renderer"}}},"data.offers":{id:"offers",mapping:{vcOfferRenderer:{component:"yt-vc-offer-renderer",attributes:{"dialog-dismiss":!0}}}}}};
var e5=xZc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],e5.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],e5.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],e5.prototype,"data",void 0);e5=_.U([_.ur({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],e5);
_.S(e5,"yt-vc-offer-layout-renderer",function(){if(tZc===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;sZc===void 0&&(sZc=document.createElement("template"));var d=sZc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);tZc=a}a=tZc;return a},{mode:2});var yZc;var zZc;var AZc;var BZc;var CZc=function(){return _.P.apply(this,arguments)||this};
_.z(CZc,_.P);CZc.prototype.configureRendererStamper=function(){return{"data.dismiss":{id:"dismiss",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}},"data.helpLink":{id:"help-link",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{noink:!0}}}}}};
var f5=CZc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],f5.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],f5.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],f5.prototype,"data",void 0);f5=_.U([_.ur({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],f5);
_.S(f5,"yt-ypc-offers-modal-top-bar-renderer",function(){if(BZc===void 0){var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;AZc===void 0&&(AZc=document.createElement("template"));var d=AZc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);BZc=a}a=BZc;return a},{mode:2});var DZc=function(){return _.P.apply(this,arguments)||this};
_.z(DZc,_.P);DZc.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"}}}}};
DZc.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
DZc.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var a=this.scrollable;a.attached&&typeof a.attached==="function"&&a.attached()};
var g5=DZc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],g5.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],g5.prototype,"ytRendererstamperBehavior",void 0);_.U([_.gr("#scrollable"),_.W("design:type",Object)],g5.prototype,"scrollable",void 0);_.U([_.O(),_.W("design:type",Object)],g5.prototype,"data",void 0);g5=_.U([_.ur({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],g5);
_.S(g5,"yt-ypc-offers-modal-renderer",function(){if(zZc===void 0){var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;yZc===void 0&&(yZc=document.createElement("template"));var d=yZc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);zZc=a}a=zZc;return a},{mode:2});var EZc;var FZc;var GZc=function(){return _.P.apply(this,arguments)||this};
_.z(GZc,_.P);_.f=GZc.prototype;_.f.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}}}}}};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.E(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.f.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.ho(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.f.onYtPopupOpened_=function(a,b){(b==null?void 0:b.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.no(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.f.onYtPopupClosed_=function(a,b){this.continueButtonTapped||b&&(b.canceled===!0||b.canceled===!1&&b.confirmed===!1)&&this.data.onDismissCommands&&_.no(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.f.onYtServiceRequestError_=function(a){this.set("showSpinner",!1);_.KW(this.hostElement,a.detail.error.message)};
_.f.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.x("enable_ypc_spinners")?_.ho(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
var h5=GZc;h5.prototype.onYtServiceRequestError_=h5.prototype.onYtServiceRequestError_;h5.prototype.onYtPopupClosed_=h5.prototype.onYtPopupClosed_;h5.prototype.onYtPopupOpened_=h5.prototype.onYtPopupOpened_;h5.prototype.onYtServiceRequestCompleted_=h5.prototype.onYtServiceRequestCompleted_;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],h5.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],h5.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],h5.prototype,"data",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],h5.prototype,"showSpinner",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],h5.prototype,"continueButtonTapped",void 0);_.U([_.O({value:function(){return this.onContinueTapped_.bind(this)}}),
_.W("design:type",Function)],h5.prototype,"bindOnContinueTapped_",void 0);_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],h5.prototype,"onYtServiceRequestCompleted_",null);_.U([_.M("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],h5.prototype,"onYtPopupOpened_",null);
_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],h5.prototype,"onYtPopupClosed_",null);_.U([_.M("yt-service-request-error"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],h5.prototype,"onYtServiceRequestError_",null);h5=_.U([_.ur({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],h5);
_.S(h5,"yt-ypc-upgrade-dialog-renderer",function(){if(FZc===void 0){var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;EZc===void 0&&(EZc=document.createElement("template"));var d=EZc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);FZc=a}a=FZc;return a},{mode:2});var HZc;var IZc;var JZc=function(){return _.P.apply(this,arguments)||this};
_.z(JZc,_.P);JZc.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
JZc.prototype.computeHasButtons_=function(a){return!(!a.dismissButton&&!a.confirmButton)};
JZc.prototype.computeStyle_=function(a){return a||"BUBBLE_HINT_STYLE_UNKNOWN"};
var i5=JZc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],i5.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.CK.YtEventForwardingBehavior),_.W("design:type",Object)],i5.prototype,"ytEventForwardingBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],i5.prototype,"ytRendererstamperBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],i5.prototype,"data",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],i5.prototype,"positionType",void 0);_.U([_.O({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.W("design:type",Boolean)],i5.prototype,"hasButtons_",void 0);_.U([_.O({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.W("design:type",Boolean)],i5.prototype,"style_",void 0);i5=_.U([_.ur({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],i5);
_.S(i5,"yt-bubble-hint-renderer",function(){if(IZc===void 0){var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;HZc===void 0&&(HZc=document.createElement("template"));var d=HZc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);IZc=a}a=IZc;return a},{mode:2});var KZc;var LZc;var MZc=function(){var a=_.Wm.apply(this,arguments)||this;a.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return a};
_.z(MZc,_.Wm);_.f=MZc.prototype;_.f.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.f.attached=function(){var a=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){a.$.thumbnail.onShow();a.$["header-image"].onShow()})};
_.f.handleCheckBoxUpdateAction_=function(a){this.canShowCheckboxEnabledConfirmButton=a};
_.f.computeUseOverlayForSpinner_=function(a,b){return!!a&&b};
_.f.computeShowSpinner_=function(a,b){return a||!!b};
_.f.fireOnCloseActions_=function(){var a,b=_.h(((a=this.data)==null?void 0:a.onClosedActions)||[]);for(a=b.next();!a.done;a=b.next())this.ytRendererBehavior.resolveCommand(a.value)};
_.f.fireOnOpenCommands_=function(a){var b,c=(b=this.data)==null?void 0:b.onOpenCommands;if(c)for(a.stopImmediatePropagation(),a=_.h(c),b=a.next();!b.done;b=a.next())this.ytRendererBehavior.resolveCommand(b.value)};
_.f.fireOnDismissCommands_=function(a){var b,c=(b=this.data)==null?void 0:b.onDismissCommands;if(c)for(a.stopImmediatePropagation(),a=_.h(c),b=a.next();!b.done;b=a.next())this.ytRendererBehavior.resolveCommand(b.value)};
_.f.openPopupHandler_=function(a){a.detail==this&&this.fireOnOpenCommands_(a)};
_.f.closePopupHandler_=function(a,b){_.ko(this,"yt-confirm-dialog-close-action",[b]);this.fireOnCloseActions_();(b&&b.canceled===!0||b&&b.canceled===!1&&b.confirmed===!1)&&this.fireOnDismissCommands_(a)};
_.f.onHeaderImageChanged_=function(){var a;((a=this.data)==null?0:a.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.f.computeHasHeaderImageWidth_=function(a){return a!=void 0};
_.f.computeHasLoadingMessage=function(a){return!!a};
_.f.onHeaderImageWidthChanged_=function(){var a,b=(a=this.data)==null?void 0:a.headerImageWidth;if(b){if(a=1.25*b*2+b,this.$.main.style.width=a+"px",b=this.$.scroller.firstElementChild)b.style.minWidth=a+"px"}else this.$.main.style.width="100%"};
_.f.onThumbnailChanged_=function(){var a;((a=this.data)==null?0:a.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")};
_.f.onYtNavigate_=function(a){a=_.Qq(a);a instanceof Node&&_.Zq(this.$["confirm-button"]).contains(a)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.f.computePrimaryIsCancel_=function(a){return a};
_.f.computeIsCancelButtonHidden_=function(a){return a.skipCancelButton||!a.cancelButton};
_.f.computeIsCheckboxHidden_=function(a){return!a.checkbox};
_.f.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.f.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.f.onYtServiceRequestCompleted_=function(){var a;((a=this.data)==null?0:a.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.Vm.Object.defineProperties(MZc,{template:{configurable:!0,enumerable:!0,get:function(){if(LZc===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_confirm_dialog_renderer.yt.confirm.dialog.renderer.css.js--\x3e<div id="spinner" hidden="[[!showSpinner_]]" class="style-scope yt-confirm-dialog-renderer">\n  <tp-yt-paper-spinner active="[[showSpinner_]]" class="style-scope yt-confirm-dialog-renderer"></tp-yt-paper-spinner>\n  <div id="loading-message" class="body-text style-scope yt-confirm-dialog-renderer" hidden="[[!data.loadingMessage]]">\n    <yt-formatted-string text="[[data.loadingMessage]]" class="style-scope yt-confirm-dialog-renderer"></yt-formatted-string>\n  </div>\n</div>\n<yt-img-shadow id="thumbnail" hidden="[[!data.thumbnail]]" notify-on-loaded="" thumbnail="[[data.thumbnail]]" width="256" class="style-scope yt-confirm-dialog-renderer">\n</yt-img-shadow>\n<div id="main" hidden="[[data.showLoadingSpinner]]" class="style-scope yt-confirm-dialog-renderer">\n  <yt-img-shadow id="header-image" hidden="[[!data.headerImage]]" notify-on-loaded="" thumbnail="[[data.headerImage]]" width="[[data.headerImageWidth]]" class="style-scope yt-confirm-dialog-renderer">\n  </yt-img-shadow>\n  <yt-formatted-string id="title" hidden$="[[!data.title]]" text="[[data.title]]" class="style-scope yt-confirm-dialog-renderer"></yt-formatted-string>\n  <tp-yt-paper-dialog-scrollable id="scroller" class="body-text style-scope yt-confirm-dialog-renderer">\n    <template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope yt-confirm-dialog-renderer">\n      <yt-formatted-string class="line-text style-scope yt-confirm-dialog-renderer" respect-html-dir="" split-lines="" text="[[item]]">\n      </yt-formatted-string>\n    </template>\n  </tp-yt-paper-dialog-scrollable>\n  <div id="checkbox-container" hidden="[[isCheckboxHidden]]" class="style-scope yt-confirm-dialog-renderer"></div>\n  <div class="buttons style-scope yt-confirm-dialog-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" hidden="[[isCancelButtonHidden]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="checkbox-enabled-confirm-button" data="[[data.checkboxEnabledConfirmButton.buttonRenderer]]" dialog-confirm="" hidden="[[!canShowCheckboxEnabledConfirmButton]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="confirm-button" data="[[data.confirmButton.buttonRenderer]]" dialog-confirm$="[[!data.showLoadingSpinnerOnAction]]" hidden="[[canShowCheckboxEnabledConfirmButton]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n  </div>\n</div>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;KZc===void 0&&(KZc=document.createElement("template"));var d=KZc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);LZc=a}a=LZc;return a}}});
var j5=MZc;j5.prototype.onYtServiceRequestCompleted_=j5.prototype.onYtServiceRequestCompleted_;j5.prototype.onYtServiceRequestSent_=j5.prototype.onYtServiceRequestSent_;j5.prototype.onThumbnailLoaded_=j5.prototype.onThumbnailLoaded_;j5.prototype.onYtNavigate_=j5.prototype.onYtNavigate_;j5.prototype.onThumbnailChanged_=j5.prototype.onThumbnailChanged_;j5.prototype.onHeaderImageWidthChanged_=j5.prototype.onHeaderImageWidthChanged_;j5.prototype.onHeaderImageChanged_=j5.prototype.onHeaderImageChanged_;
j5.prototype.closePopupHandler_=j5.prototype.closePopupHandler_;j5.prototype.openPopupHandler_=j5.prototype.openPopupHandler_;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],j5.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],j5.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],j5.prototype,"ytRendererBehavior",void 0);
_.U([_.H(_.CK.YtEventForwardingBehavior),_.W("design:type",Object)],j5.prototype,"ytEventForwardingBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],j5.prototype,"data",void 0);_.U([_.O({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.W("design:type",Boolean)],j5.prototype,"primaryIsCancel",void 0);_.U([_.O({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.W("design:type",Boolean)],j5.prototype,"isCancelButtonHidden",void 0);
_.U([_.O({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.W("design:type",Boolean)],j5.prototype,"isCheckboxHidden",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],j5.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.U([_.O({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.W("design:type",Boolean)],j5.prototype,"useOverlayForSpinner_",void 0);
_.U([_.O({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.W("design:type",Boolean)],j5.prototype,"showSpinner_",void 0);_.U([_.O({value:!1}),_.W("design:type",Boolean)],j5.prototype,"isActionInProgress_",void 0);_.U([_.O({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.W("design:type",Boolean)],j5.prototype,"hasHeaderImageWidth_",void 0);
_.U([_.O({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.W("design:type",Boolean)],j5.prototype,"hasLoadingMessage",void 0);_.U([_.M("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],j5.prototype,"openPopupHandler_",null);_.U([_.M("yt-popup-closed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],j5.prototype,"closePopupHandler_",null);
_.U([_.N("data.headerImage"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],j5.prototype,"onHeaderImageChanged_",null);_.U([_.N("data.headerImageWidth"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],j5.prototype,"onHeaderImageWidthChanged_",null);_.U([_.N("data.thumbnail"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],j5.prototype,"onThumbnailChanged_",null);
_.U([_.M("yt-navigate"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],j5.prototype,"onYtNavigate_",null);_.U([_.M("yt-img-shadow-loaded"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],j5.prototype,"onThumbnailLoaded_",null);_.U([_.M("yt-service-request-sent"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Ot]),_.W("design:returntype")],j5.prototype,"onYtServiceRequestSent_",null);
_.U([_.M("yt-service-request-completed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,_.Wt]),_.W("design:returntype")],j5.prototype,"onYtServiceRequestCompleted_",null);j5=_.U([_.ur({is:"yt-confirm-dialog-renderer",noInjection:!0})],j5);var NZc;var OZc;var PZc=function(){return _.P.apply(this,arguments)||this};
_.z(PZc,_.P);PZc.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.E(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
PZc.prototype.computeConfirmButton_=function(a){var b={text:a.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};a.confirmNavigationEndpoint?b.navigationEndpoint=a.confirmNavigationEndpoint:a.confirmServiceEndpoint&&(b.serviceEndpoint=a.confirmServiceEndpoint);return b};
PZc.prototype.computeShowTitle_=function(a){return!(a==null||!a.title)};
var k5=PZc;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],k5.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],k5.prototype,"data",void 0);_.U([_.O({computed:"computeShowTitle_(data)"}),_.W("design:type",Boolean)],k5.prototype,"showTitle",void 0);k5=_.U([_.ur({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],k5);
_.S(k5,"yt-fancy-dismissible-dialog-renderer",function(){if(OZc===void 0){var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;NZc===void 0&&(NZc=document.createElement("template"));var d=NZc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);OZc=a}a=OZc;return a});var QZc;var RZc;var SZc=function(){var a=_.P.apply(this,arguments)||this;a.spinnerActive=!1;return a};
_.z(SZc,_.P);SZc.prototype.created=function(){lAc(2201)};
SZc.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
SZc.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
var l5=SZc;l5.prototype.onIronOverlayClosed=l5.prototype.onIronOverlayClosed;l5.prototype.onIronOverlayOpened=l5.prototype.onIronOverlayOpened;_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],l5.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.YD),_.W("design:type",Object)],l5.prototype,"tpYtIronOverlayBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],l5.prototype,"data",void 0);_.U([_.O(),_.W("design:type",Object)],l5.prototype,"spinnerActive",void 0);
_.U([_.M("iron-overlay-opened"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],l5.prototype,"onIronOverlayOpened",null);_.U([_.M("iron-overlay-closed"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],l5.prototype,"onIronOverlayClosed",null);l5=_.U([_.ur({is:"yt-loading-renderer",disableElementRegistration:!0})],l5);
_.S(l5,"yt-loading-renderer",function(){if(RZc===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;QZc===void 0&&(QZc=document.createElement("template"));var d=QZc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);RZc=a}a=RZc;return a},{mode:2});var TZc;var UZc;var VZc=function(){var a=_.P.apply(this,arguments)||this;a.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);a.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);a.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";a.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return a};
_.z(VZc,_.P);_.f=VZc.prototype;_.f.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.f.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.f.onDarkModeToggledAction=function(a){this.isDarkTheme=a};
_.f.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.f.openPopupHandler_=function(a){a.detail===this.hostElement&&this.hostElement.hidden&&_.ho(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.f.onDismissButtonTap_=function(){var a;this.closeOnDismissButton_.has(((a=this.data)==null?void 0:a.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.ho(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.f.onAcceptButtonTap_=function(){var a;this.closeOnAcceptButton_.has(((a=this.data)==null?void 0:a.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.ho(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.f.computeHasHeader_=function(a){return!!a.headerBackgroundImage};
_.f.computeLayoutStyle_=function(a){return a};
_.f.computePopupSize_=function(a){return a};
_.f.computeIconType_=function(a){return a.dialogIcon&&a.dialogIcon.iconType?a.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":a.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":a.dialogIcon.iconType:""};
_.f.computeIsLogo_=function(a){return!!a.dialogIcon&&!!a.dialogIcon.iconType&&(a.dialogIcon.iconType==="YOUTUBE_LOGO"||a.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||a.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.f.computeHasCustomLogo=function(a){return!(a==null||!a.headerForegroundImage)};
_.f.computeCustomLogo=function(a,b){if(a!=null&&a.headerForegroundImage)return a.headerForegroundImageDark?b?a.headerForegroundImageDark:a.headerForegroundImage:a.headerForegroundImage};
_.f.computeHeaderBackgroundImage=function(a,b){if(a!=null&&a.headerBackgroundImage)return b&&(a==null?0:a.headerBackgroundImageDark)?a.headerBackgroundImageDark:a.headerBackgroundImage};
_.f.shouldShowIconContainer=function(a,b){return a&&!b};
_.f.shouldShowNonYouTubeIcon=function(a,b){return!a&&!b};
_.f.getLogoImageId=function(a){var b,c,d;return(a=(b=this.computeCustomLogo(a,this.isDarkTheme))==null?void 0:(c=b.thumbnails)==null?void 0:(d=c[0])==null?void 0:d.height)&&a%31===0?"custom-logo-with-padding":"custom-logo"};
var m5=VZc;m5.prototype.openPopupHandler_=m5.prototype.openPopupHandler_;m5.prototype.dataChanged_=m5.prototype.dataChanged_;_.U([_.H(_.aH.YtRendererstamperBehavior),_.W("design:type",Object)],m5.prototype,"ytRendererstamperBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],m5.prototype,"ytRendererBehavior",void 0);_.U([_.O(),_.W("design:type",Boolean)],m5.prototype,"isDarkTheme",void 0);
_.U([_.O({computed:"computeCustomLogo(data, isDarkTheme)"}),_.W("design:type",Object)],m5.prototype,"customLogo",void 0);_.U([_.O({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.W("design:type",Object)],m5.prototype,"headerBackgroundImage",void 0);_.U([_.O(),_.W("design:type",Object)],m5.prototype,"data",void 0);_.U([_.O({computed:"computeHasHeader_(data)"}),_.W("design:type",Boolean)],m5.prototype,"hasHeader",void 0);
_.U([_.O({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.W("design:type",Object)],m5.prototype,"layoutStyle",void 0);_.U([_.O({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.W("design:type",Object)],m5.prototype,"popupSize",void 0);_.U([_.O({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],m5.prototype,"hasLogo",void 0);
_.U([_.O({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.W("design:type",Boolean)],m5.prototype,"hasCustomLogo",void 0);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],m5.prototype,"dataChanged_",null);_.U([_.M("yt-popup-opened"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],m5.prototype,"openPopupHandler_",null);
m5=_.U([_.ur({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],m5);
_.S(m5,"yt-upsell-dialog-renderer",function(){if(UZc===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;TZc===void 0&&(TZc=document.createElement("template"));var d=TZc;c.call(b,d.content.cloneNode(!0),a.content.firstChild);UZc=a}a=UZc;return a},{mode:2});var iyc=_.Au({buttonViewModel:_.Ju});_.am(jyc);_.dt(jyc,"yt-mini-app-game-info-dialog-view-model",{propNames:["data"]});_.Ws(_.Rr(function(a){var b=a.data;return _.q("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.q(_.Ss,{data:function(){return b().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.q("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.q("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.q(_.oi,{cond:function(){var c=b().ytLogo;return c?c.iconType:null},
then:function(c){return _.q(_.tt,{icon:c,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.q("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.q("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.q(_.wt,{text:function(){return b().title}})),_.q("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.q(_.wt,{text:function(){return b().body}})),_.q("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.q(_.wt,{text:function(){return b().verifyStateText}}))),
_.q("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.q("div",null,_.q(_.Eu,{data:function(){return b().dismissButton}},{buttonViewModel:_.Ju})),_.q("div",null,_.q(_.Eu,{data:function(){return b().linkParentButton}},{buttonViewModel:_.Ju})))))}),"yt-gulp-triggering-dialog-view-model",{props:{data:_.SG}});var WZc=_.Rr(function(a){var b=a.data;return _.q("installment-agreements-view-model",{class:_.jt("ytInstallmentAgreementsViewModelHost")},_.q(_.ni,{each:_.Nr(function(){return b().agreements},[])},function(c){return _.q("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.q("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.q(_.wt,{text:c.label})),_.q("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.q(_.Eu,{data:function(){return c.openButton}},{buttonViewModel:_.Ju})))}))});
WZc.idomCompat=!0;var XZc=_.Rr(function(a){return _.q("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.q("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.q(_.wt,{text:function(){return a.data().inviteMessage}})),_.q("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.q(_.wt,{text:function(){return a.data().attributedAccountSectionHeaderText}})),_.q("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.q(_.Eu,{data:function(){return a.data().accountAvatar}},{avatarViewModel:_.LK}),_.q("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.q(_.wt,{text:function(){return a.data().accountName}}),_.q("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.q(_.wt,{text:function(){return a.data().handle}}))),_.q(_.Eu,{data:function(){return a.data().trailingButton}},{buttonViewModel:_.Ju})),_.q("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.q(_.wt,{text:function(){return a.data().termsOfService}})))});var YZc=_.Rr(function(a){var b=_.h(_.qt(function(){var aa,ma;return((aa=a.data().createPlaylistDialogFormSchema)==null?0:(ma=aa.initialValues)==null?0:ma.title)?a.data().createPlaylistDialogFormSchema.initialValues.title:""})),c=b.next().value,d=b.next().value;
b=_.h(_.qt(function(){a.data();return!1}));
var e=b.next().value,g=b.next().value;b=_.h(_.qt(function(){a.data();return!1}));
var k=b.next().value,m=b.next().value;b=_.h(_.qt(function(){var aa,ma;return(aa=a.data().createPlaylistDialogFormSchema)==null?void 0:(ma=aa.initialValues)==null?void 0:ma.visibility}));
var n=b.next().value,r=b.next().value;b=_.h(_.qt(function(){a.data();return!1}));
var t=b.next().value,u=b.next().value;b=_.h(_.qt(function(){var aa,ma;return(aa=a.data().createPlaylistDialogFormSchema)==null?void 0:(ma=aa.initialValues)==null?void 0:ma.isCollaborative}));
var w=b.next().value,A=b.next().value,C=_.Rl();_.yh(function(){var aa=C.value.querySelector("textarea");aa&&(aa.value=c())},"vFR7w");
_.vi(function(){var aa;_.xnc((aa=a.data().createPlaylistDialogFormSchema)==null?void 0:aa.id,{onSubmit:function(){var ma=c();var Ba=n(),Da=w(),za=a.data();ma={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:ma,privacyStatus:Ba,videoIds:za.videoIds,sourcePlaylistId:za.sourcePlaylistId,params:Da?za.createPlaylistParamsCollaborationEnabled:za.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.v().resolve(_.Xi).resolveCommand(ma)},
isValid:function(){return e()&&!k()&&!t()}})});
var G=function(aa){if(aa!==void 0&&(d(aa),!e()&&aa.length>0&&g(!0),e())){var ma=kyc(a.data());if(ma){var Ba=ma.minLength;ma=ma.maxLength;Ba&&aa.length<Ba?m(!0):ma&&aa.length>ma?m(!0):m(!1)}}},J=function(){var aa=!(!w()||n()!=="PRIVATE");
u(aa)},I=function(aa){aa!==void 0&&(r(aa),J())},R=function(){if(t())return myc(a.data())},ca=function(){A(!w());
J()},V=function(){return{validate:function(aa){if(e()){var ma=kyc(a.data());
if(ma){var Ba=ma.minLength;ma=ma.translations;if(Ba&&aa.length<Ba)return ma==null?void 0:ma.minLengthErrorMessage}}}}},fa=function(){var aa=kyc(a.data()),ma=aa==null?void 0:aa.maxLength,Ba;
aa=aa==null?void 0:(Ba=aa.translations)==null?void 0:Ba.maxLengthErrorMessage;if(ma&&aa)return{maxChars:ma,errorMessage:aa}};
return _.q("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.q("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:C},_.q(_.Eu,{data:function(){return a.data().playlistTitle}},{textFormFieldViewModel:function(aa){return _.q(_.Sqc,{data:aa.data,
text:c,onInput:G,validation:V,characterLimit:fa})},
textFieldViewModel:function(aa){return _.q(_.Rqc,{data:aa.data,text:c,onInput:G,validation:V,characterLimit:fa})}})),_.q("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.q(_.Eu,{data:function(){return a.data().playlistVisibility}},{dropdownViewModel:function(aa){return _.q(_.hrc,{data:aa.data,
onSelected:I,error:R})}})),_.q(_.oi,{cond:function(){return!!a.data().playlistCollaborate},
then:function(){return _.q("div",null,_.q(_.Eu,{data:function(){return a.data().playlistCollaborate}},{switchListItemViewModel:function(aa){return _.q(_.q$b,{data:aa.data,
onTap:ca})}}))}}))});var ZZc=_.Rr(function(a){var b=_.Nr(a.noPadding,!1),c=function(){var e,g;return(g=(e=a.data().logo.accessibilityData)==null?void 0:e.label)!=null?g:""},d={};
return _.q("upsell-view-model",{class:_.jt("ytUpsellViewModelHost",(d.ytUpsellViewModelHostNoPadding=function(){return b()},d))},_.q("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.q(_.oi,{cond:function(){return _.fv(a.data().logo)},
then:function(e){return _.q(_.Ss,{data:e,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:c})}})),_.q("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.q(_.wt,{text:function(){return a.data().title}})),_.q("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.q(_.ni,{each:function(){var e;
return(e=a.data().subtitles)!=null?e:[]},
keyBy:"INDEX"},function(e){return _.q("div",{class:"ytUpsellViewModelHostUpsellSubtitleSectionSubtitle"},_.q(_.wt,{text:e}))})),_.q("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.q(_.ni,{each:function(){var e;
return(e=a.data().benefitInfos)!=null?e:[]},
keyBy:"INDEX"},function(e){return _.q(_.oi,{cond:function(){return e().info},
then:function(g){return _.q("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.q(_.tt,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.q(_.wt,{text:g}))}})})),_.q("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.q(_.ni,{each:function(){var e;
return(e=a.data().legalInfos)!=null?e:[]},
keyBy:"INDEX"},function(e){return _.q("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo"},_.q(_.wt,{text:e}))})))});var $Zc=_.Rr(function(a){var b=a.data;a={};a=(a.ytMiniAppScoreChallengeViewModelScoreRadial=!0,a.ytMiniAppScoreChallengeViewModelDarkScoreRadial=nyc(),a);return _.q("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.q("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return b().title}),_.q("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return b().subtitle}),_.q("div",{class:_.lt(a)},_.q("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return b().score})),_.q("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return b().prompt}))});var a_c=function(){this.store=_.Ir();this.formId=""};var b_c=_.Rr(function(a){function b(m){if(m&&(m=_.y(m,_.nWa)))return Object.assign({},m,{isSelected:g()})}
var c=_.h(_.qt(function(){var m,n;return(n=(m=_.y(a.data().option,_.nWa))==null?void 0:m.isSelected)!=null?n:!1})),d=c.next().value,e=c.next().value,g=d;
_.vi(function(){var m;_.xnc((m=a.data().formSchema)==null?void 0:m.id,{onSubmit:function(){var n=_.v().resolve(_.Xi),r=!!a.data().selectedCommand,t=!!a.data().unselectedCommand;if(g()){if(r)var u=a.data().selectedCommand}else t&&(u=a.data().unselectedCommand);u=_.Es(u);b(a.data().option)&&!u?(n="",!r&&t?n="selected ":r&&!t&&(n="unselected "),r=new _.qj("No "+n+"command found for SelectionListItemFormViewModel"),_.Bl(r)):u&&n.resolveCommand(u)},
isValid:function(){return!0}})});
var k=function(){e(!g())};
_.wh(function(){var m,n,r=(m=a.data())==null?void 0:(n=m.formSchema)==null?void 0:n.id;r&&_.vnc()().delete(r)});
return _.q("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.q("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.q(_.wt,{text:function(){return a.data().paragraph}})),_.q(_.oi,{cond:function(){return b(a.data().option)},
then:function(m){return _.q(_.yQ,{data:m,isCompact:!0,hideSelectionTextChevron:!0,onTap:k,disableHorizontalPadding:!0})}}))});var qyc=_.Au({avatarStackViewModel:_.wZb}),c_c=_.mt(ryc);_.am(ryc);var d_c=_.Rr(function(a){var b=_.ync(function(){return a.data().formId}),c=b.onSubmit,d=b.isValid;
return _.q("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.q(_.Eu,{data:function(){return a.data().panelFooter}},{panelFooterViewModel:function(e){return _.q(_.XX,{data:e.data,
disablePadding:!0,disablePrimaryButton:function(){return!d()},
onClickPrimaryButton:function(){c()}})}}))});var g_c=_.Rr(function(a){var b=_.Or(a,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),c=b.elRefCallback;a=b.iconWiz;var d=b.assetWiz,e=b.assetType,g=b.titleWiz,k=b.leadingActionHeaderWiz,m=b.trailingActionHeaderWiz,n=b.headerPosition,r=b.contentWiz,t=b.buttonLayout,u=b.buttonStyle,w=b.primaryButtonWiz,A=b.secondaryButtonWiz,C=b.contentAlignment,G=b.isFullscreen,J=b.width,I=b.maxHeight,R=b.isHeaderWizDefined,
ca=b.headerWiz,V=b.isFooterWizDefined,fa=b.footerWiz;b=_.Rl(function(Ua){c==null||c(Ua)});
var aa=d?function(){return d({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,ma=w?function(){var Ua={};
return w({buttonOverrides:function(){return{style:(u==null?void 0:u())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.jt((Ua["yt-spec-dialog-layout__dialog-layout-button"]=!0,Ua["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(t==null?void 0:t())===0||(t==null?void 0:t())===2},Ua))})}:void 0,Ba=A?function(){var Ua={};
return A({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.jt((Ua["yt-spec-dialog-layout__dialog-layout-button"]=!0,Ua["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(t==null?void 0:t())===0||(t==null?void 0:t())===2},Ua))})}:void 0,Da=function(){return(!!g||!!k||!!m)&&n()===0},za={},Fa={},bb={},kb={};
return _.q("dialog-layout",{el:b,class:_.jt((za["yt-spec-dialog-layout"]=!0,za["yt-spec-dialog-layout--dialog-layout-fullscreen"]=G,za["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!G()},za["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return I()===1},za["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(e==null?void 0:e())===1},za)),
style:function(){return(J==null?void 0:J())!==void 0?"width: "+J+"px;":""}},a?_.q("div",{class:_.jt((Fa["yt-spec-dialog-layout__dialog-layout-icon"]=!0,Fa["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!d&&n()===1},Fa["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return C()===1},Fa))},_.q(a,null)):null,_.q(_.oi,{cond:R,
then:function(){return ca?_.q("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.q(ca,null)):null},
else:function(){return _.q(_.Vh,null,_.q(_.oi,{cond:Da,then:function(){return _.q(e_c,{contentAlignment:C,LeadingActionHeader:k,TrailingActionHeader:m,Title:g,isAboveAsset:!!aa})}}),aa?_.q("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.q(aa,null)):null)}}),_.q("div",{class:_.jt((bb["yt-spec-dialog-layout__dialog-layout-container"]=!0,bb["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(C==null?void 0:C())===1},bb["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-container-top-padding"]=
function(){return!g&&!ca||!!aa&&(n==null?void 0:n())===0},bb))},_.q(_.oi,{cond:function(){return g&&!ca&&(n==null?void 0:n())===1},
then:function(){return _.q(e_c,{contentAlignment:C,LeadingActionHeader:k,TrailingActionHeader:m,Title:g,isAboveAsset:!1})}}),r?_.q("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.q("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.q(r,null))):null,_.q(_.oi,{cond:V,
then:function(){return fa?_.q("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.q(fa,null)):null}}),ma||Ba?_.q(f_c,{footerClasses:_.jt((kb["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,kb["yt-spec-dialog-layout__dialog-layout-footer"]=!0,kb["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(t==null?void 0:t())===2},kb["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(t==null?void 0:t())===1},kb)),
PrimaryButton:ma,SecondaryButton:Ba}):null))}),e_c=_.Rr(function(a){var b=_.Or(a,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),c=b.contentAlignment,d=b.LeadingActionHeader;a=b.Title;var e=b.TrailingActionHeader,g=b.isAboveAsset,k=b.enableLeadingActionHeader;b={};return _.q("div",{class:_.jt((b["yt-spec-dialog-layout__dialog-header-container"]=!0,b["yt-spec-dialog-layout__dialog-header"]=!0,b["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=g,b["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(c==null?void 0:c())===1&&k()},b))},_.q(_.oi,{cond:function(){return k()},
then:function(){return d?_.q("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.q(d,null)):null}}),a?_.q("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.q(a,null)):null,e?_.q("div",null,_.q(e,null)):null)}),f_c=_.Rr(function(a){var b=a.footerClasses;
var c=a.PrimaryButton;a=a.SecondaryButton;return _.q("div",{class:b},a?_.q(a,null):null,c?_.q(c,null):null)});var h_c=_.Rr(function(a){var b=a.data;return _.q("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.q("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.q(_.Eu,{data:function(){return b().avatar}},{avatarViewModel:_.LK})),_.q("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.q(_.wt,{text:function(){return b().title}})),_.q(_.wt,{text:function(){return b().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))});var i_c=_.Rr(function(a){var b=a.data;return _.q("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.q("div",{class:"ytAccessConfirmationViewModelContent"},_.q(_.Eu,{data:function(){return b().dualAvatar}},{dualAvatarViewModel:function(c){return _.q("div",{class:"ytAccessConfirmationViewModelDualAvatar"},_.q(_.Idc,{data:c.data}))}}),_.q("h2",{class:"ytAccessConfirmationViewModelTitle"},_.q(_.wt,{text:function(){return b().title}})),_.q(_.wt,{text:function(){return b().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))});var j_c=_.Rr(function(a){var b=a.data;var c=void 0;a=_.h(_.fh("","O14qgc"));var d=a.next().value,e=a.next().value,g,k=function(){e("");var r;(r=c)!=null&&r.store.dispatch(_.gp({type:"RESET_COMMAND_MAP"}))};
_.vi(function(){c=new a_c;window.addEventListener("yt-popup-closed",k)});
_.yh(function(){if(c&&g!==b().formId){var r=c,t=b();t.formId&&(r.formId=t.formId,r.store.dispatch(_.gp({type:"SET_CURRENT_FORM_ID",payload:{formId:r.formId}})));g=b().formId}},"sYS2Db");
_.wh(function(){window.removeEventListener("yt-popup-closed",k)});
var m=function(r,t,u){t.key&&u&&t.key!==d()&&(e(t.key),c&&t.command&&c.store.dispatch(_.gp({type:"SET_COMMAND_FOR_GROUP_ID",payload:{groupId:u,command:t.command}})))},n=function(){if(_.y(b().content,_.Poc))return!(d==null?0:d())};
return _.q("yt-dialog-view-model",{class:_.jt("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.q(g_c,{headerWiz:function(){return _.q("span",{skip:!0},_.q(_.Eu,{data:function(){return b().header}},{dialogHeaderViewModel:function(r){return _.q(c_c,{data:r.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!b().header},
contentWiz:function(){return _.q("span",{skip:!0},_.q(_.Eu,{data:function(){return b().customContent?b().customContent:b().content}},{basicContentViewModel:_.whc,
createPlaylistDialogFormViewModel:YZc,collaborativePlaylistInviteMessageViewModel:XZc,miniAppScoreChallengeViewModel:$Zc,radioButtonGroupViewModel:function(r){return _.q(_.drc,{data:r.data,selectedKey:d,onSelected:m})},
selectionListItemFormViewModel:b_c,upsellViewModel:function(r){return _.q(ZZc,{data:r.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:h_c,installmentAgreementsViewModel:WZc,accessConfirmationViewModel:i_c,listViewModel:_.x$b}))},
footerWiz:function(){return _.q("span",{skip:!0},_.q(_.Eu,{data:function(){return b().footer}},{panelFooterViewModel:function(r){return _.q(_.XX,{data:r.data,
disablePadding:!0,disablePrimaryButton:n})},
formPanelFooterViewModel:d_c,formFooterViewModel:function(r){return _.q(_.Oqc,{data:r.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!b().footer}}))});
j_c.idomCompat=!0;_.Ws(j_c,"yt-dialog-view-model",{props:{data:_.SG},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var syc=_.Au({buttonViewModel:_.Ju});_.am(tyc);var k_c=_.mt(tyc);var l_c=_.Rr(function(a){var b=_.ot(function(g){var k;if((k=a.skipContentClick)==null?0:k.call(a))return!1;a.onContentWrapperClick(g);return!0}),c,d,e;
return _.q("div",{class:_.jt("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return a.isAnimating()?"transform: translateY("+a.currentY()+"px);transition: 0.2s":""}},(c=a.header)==null?void 0:c.call(a),_.q("div",{id:a.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.rt({"max-height":(0,_.xQ)(a.maxHeightForContentWrapper)}),"on:scroll":xyc(a.onScroll),"on:touchmove":xyc(function(g){return void g.stopPropagation()})},_.q("div",{el:{onRender:a.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":b},(d=a.body)==null?void 0:d.call(a))),(e=a.footer)==null?void 0:e.call(a))});
l_c.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var m_c=_.Rr(function(a){var b=_.Nr(a.leadingLabel),c=_.Nr(a.trailingLabel),d=_.Nr(a.footerButtonType),e=function(){return b()||c()||a.primaryButton||a.secondaryButton},g={},k=_.jt("yt-spec-bottom-sheet-layout__primary-button",(g["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return d()===0&&!!a.primaryButton},g["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return d()===1&&!!a.primaryButton},g["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return d()===2&&!!a.primaryButton},g["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return d()===3&&!!a.primaryButton},g));
g={};var m=_.jt("yt-spec-bottom-sheet-layout__secondary-button",(g["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return d()===1&&!!a.secondaryButton},g["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return d()===2&&!!a.secondaryButton},g["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return d()===3&&!!a.primaryButton},g));
return _.q(_.oi,{cond:function(){return!!a.footerOverride},
then:function(){var n;return _.q(_.Vh,null,(n=a.footerOverride)==null?void 0:n.call(a))},
else:function(){return _.q(_.oi,{cond:e,then:function(){return _.q("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.q(_.oi,{cond:function(){return b()||c()},
then:function(){var n={};return _.q("div",{class:_.jt("yt-spec-bottom-sheet-layout__footer-label-wrapper",(n["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!a.primaryButton},n))},_.q(_.oi,{cond:b,
then:function(){return _.q("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},b)}}),_.q(_.oi,{cond:c,
then:function(){return _.q("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},c)}}))}}),_.q(_.oi,{cond:function(){return!!a.primaryButton||!!a.secondaryButton},
then:function(){var n={};return _.q("div",{class:_.jt("yt-spec-bottom-sheet-layout__footer-button-wrapper",(n["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.qOb,n))},_.q(_.oi,{cond:function(){return!!a.secondaryButton&&d()!==0},
then:function(){var r;return _.q("div",{class:m},(r=a.secondaryButton)==null?void 0:r.call(a))}}),_.q(_.oi,{cond:function(){return!!a.primaryButton},
then:function(){var r;return _.q("div",{class:k},(r=a.primaryButton)==null?void 0:r.call(a))}}))}}))}})}})});
m_c.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var n_c=_.Rr(function(a){var b=_.Nr(a.title),c=_.Nr(a.subtitle),d=_.ot(function(k){var m;(m=a.touchstart)==null||m.call(a,k);return!1}),e=_.ot(function(k){var m;
(m=a.touchmove)==null||m.call(a,k);return!1}),g=_.ot(function(k){var m;
(m=a.touchend)==null||m.call(a,k);return!1});
return _.q("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:a.headerId,"on:touchstart":d,"on:touchmove":e,"on:touchend":g},_.q("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.q(_.oi,{cond:function(){return!!a.headerOverride},
then:function(){var k;return _.q(_.Vh,null,(k=a.headerOverride)==null?void 0:k.call(a))},
else:function(){var k={};return _.q("div",{class:_.jt((k["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,k["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=b,k))},_.q("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.q(_.oi,{cond:b,then:function(){return _.q(_.Vh,null,_.q("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},b),_.q(_.oi,{cond:c,then:function(){return _.q("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
c)}}))}})),_.q(_.oi,{cond:function(){return b()&&!!a.actionHeader},
then:function(){var m;return _.q("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(m=a.actionHeader)==null?void 0:m.call(a))}}))}}))});
n_c.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.Rr(function(a){var b={stack:[],error:void 0,hasError:!1};try{var c=function(){bb().dispatch("Close Sheet",{clientHeight:w(),maxHeight:0});setTimeout(function(){yyc()},250)},d=function(){document.body.style.overscrollBehavior="";
Fa.isFullScreen[0]()?Fa.currentY[0]()>=60?bb().dispatch("Snap To Neutral Position",{maxHeight:aa()}):bb().dispatch("Snap To Full Screen",{maxHeight:Ba()}):Fa.currentY[0]()>=60?c():Fa.currentY[0]()<=-60&&I()>aa()?bb().dispatch("Snap To Full Screen",{maxHeight:Ba()}):bb().dispatch("Snap To Neutral Position",{maxHeight:aa()})},e=function(Ua){Ua.preventDefault();
bb().dispatch("Touch Move",{event:Ua,contentScrollable:I()>aa(),fullContentWrapperHeight:Ba(),contentWrapperHeight:aa(),contentHeightMap:za,contentWrapperId:"content-wrapper",header:zyc(a),footer:zyc(a)})},g=function(Ua){document.body.style.overscrollBehavior="none";
Ua.preventDefault();bb().dispatch("Touch Start",{event:Ua})},k=function(){A(window.innerHeight);
I()>aa()||ma(I());Fa.isFullScreen[0]()&&I()>aa()?bb().dispatch("Snap To Full Screen",{maxHeight:Ba()}):bb().dispatch("Snap To Neutral Position",{maxHeight:aa()})},m=function(Ua){typeof Da!=="undefined"&&(za["content-wrapper"]===void 0&&(za["content-wrapper"]=Ua.children[0].clientHeight),R(za["content-wrapper"]),I()>aa()||ma(I()))},n=function(Ua){if(!Da&&typeof MutationObserver!=="undefined"){var Fc={childList:!0};
"MutationObserver"in window&&(Da=new MutationObserver(m.bind(void 0,Ua)),Da.observe(Ua,Fc))}};
_.Pr(b,_.Ug(_.Rg));var r=_.h(_.fh(window.innerHeight,"Qnt0xd")),t=r.next().value,u=r.next().value,w=t,A=u,C=_.h(_.fh(0,"RAgLke")),G=C.next().value,J=C.next().value,I=G,R=J,ca=_.h(_.qt(function(){var Ua=zyc(a);return.6*w()-uyc(Ua)-vyc(Ua)})),V=ca.next().value,fa=ca.next().value,aa=V,ma=fa,Ba=function(){var Ua=zyc(a);
return w()-uyc(Ua)-vyc(Ua)-24-24},Da=null,za={},Fa={initialY:_.fh(0,"tEW7g"),
currentY:_.fh(0,"U1kcGd"),isAnimating:_.fh(!1,"E0Lilc"),isFullScreen:_.fh(!1,"WYAXAc"),maxHeightForContentWrapper:_.qt(aa)},bb=function(){var Ua=null;return function(){if(!Ua){var Fc={initialY:Fa.initialY[0](),currentY:Fa.currentY[0](),isAnimating:Fa.isAnimating[0](),isFullScreen:Fa.isFullScreen[0](),maxHeightForContentWrapper:Fa.maxHeightForContentWrapper[0]()};Ua=wyc(Fc)}return Ua}}();
_.vi(function(){window.addEventListener("resize",k);bb().subscribe(function(Ua){Fa.initialY[1](Ua.initialY);Fa.currentY[1](Ua.currentY);Fa.isAnimating[1](Ua.isAnimating);Fa.isFullScreen[1](Ua.isFullScreen);Fa.maxHeightForContentWrapper[1](Ua.maxHeightForContentWrapper)})});
_.wh(function(){window.removeEventListener("resize",k);Da&&(Da.disconnect(),Da=null)});
var kb=_.jt({"bottom-sheet-content-without-icon":function(){var Ua;return!((Ua=a.shouldShowIcons)==null?0:Ua.call(a))}});
return _.q("bottom-sheet-layout",null,_.q(l_c,{contentWrapperId:"content-wrapper",isAnimating:function(){return Fa.isAnimating[0]()},
currentY:function(){return Fa.currentY[0]()},
maxHeightForContentWrapper:function(){return Fa.maxHeightForContentWrapper[0]()},
shouldShowIcons:a.shouldShowIcons,skipContentClick:a.skipContentClick,onScroll:function(){var Ua=document.getElementById("header-wrapper"),Fc=document.getElementById("content-wrapper");if(Ua&&Fc){var id={};id=(id["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,id["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,id);Ua.className=Fc.scrollTop>1?_.lt(id):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:yyc,contentWrapperEl:function(Ua){n(Ua);requestAnimationFrame(function(){m(Ua)})},
header:function(){return _.q(n_c,{touchstart:g,touchmove:e,touchend:d,title:a.headerTitle,subtitle:a.headerSubtitle,headerId:"header-wrapper",headerOverride:a.headerFn,actionHeader:a.headerActionHeader})},
footer:function(){return _.q(m_c,{footerButtonType:a.footerButtonType,leadingLabel:a.footerLeadingLabel,trailingLabel:a.footerTrailingLabel,primaryButton:a.footerPrimaryButton,secondaryButton:a.footerSecondaryButton,footerOverride:a.footerFn})},
body:function(){return _.q(_.oi,{cond:function(){return!!a.contentWiz},
then:function(){var Ua;return _.q("div",{class:kb},(Ua=a.contentWiz)==null?void 0:Ua.call(a))}})}}))}catch(Ua){b.error=Ua,b.hasError=!0}finally{_.Qr(b)}}).idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentWiz:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};_.am(Ayc);var o_c=_.Rr(function(a){var b=_.v().resolve(_.GJ),c=_.ot(function(){return void b.closeSheet()});
return _.q("yt-contextual-sheet-layout",{class:"yt-contextual-sheet-layout-wiz","on:click":c},_.q(_.oi,{cond:function(){return!!a.header},
then:function(){return _.q("div",{class:"yt-contextual-sheet-layout-wiz__header-container"},a.header())}}),_.q(_.oi,{cond:function(){return!!a.content},
then:function(){return _.q("div",{class:"yt-contextual-sheet-layout-wiz__content-container"},a.content())}}),_.q(_.oi,{cond:function(){return!!a.footer},
then:function(){return _.q("div",{class:"yt-contextual-sheet-layout-wiz__footer-container"},a.footer())}}))}),Byc=_.x("web_enable_sink_yt_contextual_sheet_layout")?o_c:Ayc,p_c=_.x("web_enable_sink_yt_contextual_sheet_layout")?o_c:_.mt(Ayc,{callbacks:{header:!0,
content:!0,footer:!0}});o_c.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var Cyc=_.Au({panelHeaderViewModel:tyc,listViewModel:_.K1a,upsellViewModel:ZZc,panelFooterViewModel:_.XX,miniAppScoreChallengeViewModel:$Zc});_.am(Dyc);var q_c=_.Rr(function(a){a=a.data;var b={};return _.q("yt-sheet-view-model",{class:_.jt("yt-sheet-view-model-wiz",(b["yt-sheet-view-model-wiz--contextual"]=!0,b["yt-sheet-view-model-wiz--disable-backdrop-filter"]=_.x("web_disable_backdrop_filter"),b))},_.q(_.oi,{cond:a,then:function(c){return _.q(p_c,{header:function(){return _.q(_.Eu,{data:function(){return c().header}},{panelHeaderViewModel:k_c})},
content:function(){return _.q(_.Eu,{data:function(){return c().content}},{listViewModel:function(d){return _.q(_.x$b,{data:d.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:ZZc,miniAppScoreChallengeViewModel:$Zc})},
footer:function(){return _.q(_.Eu,{data:function(){return c().footer}},{panelFooterViewModel:_.XX})}})}}))}),r_c=_.x("web_enable_sink_yt_sheet_view_model")?q_c:Dyc;
q_c.idomCompat=!0;_.x("web_enable_sink_yt_sheet_view_model")?_.Ws(r_c,"yt-sheet-view-model",{props:{data:_.SG}}):_.dt(r_c,"yt-sheet-view-model",{propNames:["data"]});var t_c=_.Rr(function(a){var b=function(){var c;return(c=a.data().enableDebuggingFeatures)!=null?c:!1};
return _.q("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.q(_.ni,{each:function(){var c;return(c=a.data().stickers)!=null?c:[]}},function(c){return _.q(s_c,{data:function(){return c},
debugMode:b})}))}),s_c=_.Rr(function(a){var b=_.Or(a,{debugMode:!1}).debugMode,c=_.Nr(function(){var n;
return(n=a.data().region)==null?void 0:n.w},0),d=_.Nr(function(){var n;
return(n=a.data().region)==null?void 0:n.h},0),e=_.Nr(function(){var n;
return(n=a.data().region)==null?void 0:n.x},0),g=_.Nr(function(){var n;
return(n=a.data().region)==null?void 0:n.y},0),k=_.ot(function(){var n=a.data().onTap;
n&&_.Js(n)}),m={};
return _.q("div",{class:_.jt("ytStoriesStickerLayerViewModelSticker",(m.ytStoriesStickerLayerViewModelDebugMode=b,m)),style:_.rt({width:function(){return 100*c()+"%"},
height:function(){return 100*d()+"%"},
left:function(){return 100*e()+"%"},
top:function(){return 100*g()+"%"},
"flex-direction":function(){return Eyc(a.data().flexDirection)},
"justify-content":function(){return Fyc(a.data().justifyContent)},
"align-items":function(){return Gyc(a.data().alignItems)}}),
"on:click":k},_.q(_.Eu,{data:function(){return a.data().button||a.data().toggleButton}},{buttonViewModel:function(n){return _.q(_.Ju,{data:n.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(n){return _.q(_.Hu,{data:n.data,className:"ytStoriesStickerLayerViewModelButton"})}}))});var v_c=_.Rr(function(a){var b=function(){return a.data()},c=_.Nr(function(){return b().backgroundColor},0),d=_.Nr(function(){return b().actionButtons},[]),e=_.Nr(function(){return b().stickerLayer},{}),g={},k=function(){var n,r;
return{animationRef:g,animationConfig:{autoplay:!1,loop:!1,path:(r=(n=b().foregroundAnimation)==null?void 0:n.url)!=null?r:"",name:"stories_item_foreground_animation"},listeners:{complete:function(){a.navigateToNextItemOnLottieComplete()}}}},m=function(){var n,r,t,u,w,A,C,G;
return{animationConfig:{autoplay:(A=(n=b().backgroundAnimation)==null?void 0:(r=n.settings)==null?void 0:r.autoplay)!=null?A:!1,loop:(C=(t=b().backgroundAnimation)==null?void 0:(u=t.settings)==null?void 0:u.loop)!=null?C:!1,path:(G=(w=b().backgroundAnimation)==null?void 0:w.url)!=null?G:"",name:"stories_item_background_animation"}}};
_.yh(function(){if(a.isVisible()){var n;(n=g.lottieEl)==null||n.play()}else{var r;(r=g.lottieEl)==null||r.stop()}},"mqLH7c");
return _.q("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.rt({"background-color":function(){return _.Cq(c())+";"}})},_.q("div",{class:"ytStoriesItemViewModelAssetContent"},_.q(_.oi,{cond:function(){return!!b().backgroundAnimation},
then:function(){return _.q(_.kt,{data:m,animationName:function(){return m().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.q(_.oi,{cond:function(){return!!b().backgroundImage},
then:function(){return _.q(_.Ss,{data:function(){return b().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.q(_.oi,{cond:function(){return!!b().foregroundAnimation},
then:function(){return _.q(_.kt,{data:k,animationName:function(){return k().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.q(_.oi,{cond:function(){return!!b().foregroundImage},
then:function(){return _.q(_.Ss,{data:function(){return b().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.q("div",{class:"ytStoriesItemViewModelTopShadow"}),_.q(_.Eu,{data:function(){return e()}},{storiesStickerLayerViewModel:t_c})),_.q("div",{class:"ytStoriesItemViewModelBottomShadow"},_.q("div",{class:"ytStoriesItemViewModelActionButtonWrapper",
"on:click":_.ot(a.pauseAutoNavigation)},_.q(_.ni,{each:d},function(n){return _.q(u_c,{data:function(){return n}})}))))}),u_c=_.Rr(function(a){var b={};
return _.q("div",{class:_.jt("ytStoriesItemViewModelActionButton",(b.ytStoriesItemViewModelStretchedActionButton=function(){return a.data().size==="STORIES_BUTTON_SIZE_STRETCH"},b))},_.q(_.Eu,{data:function(){return a.data().button}},{buttonViewModel:function(c){return _.q(_.Ju,{data:c.data,
className:"ytStoriesItemViewModelButton"})}}))});_.Ws(_.Rr(function(a){var b=_.h(_.qt(function(){var R;return(R=a.data().startIndex)!=null?R:0})),c=b.next().value,d=b.next().value;
b=_.h(_.fh(!1,"klmjc"));var e=b.next().value,g=b.next().value,k=function(){var R;return(R=a.data().storyItems)!=null?R:[]},m=function(){return a.data().dismissButton},n=function(){var R;
return _.y((R=_.y(m(),_.Fu))==null?void 0:R.onTap,_.Ds)},r=_.Rl(),t,u=function(){var R;
(R=t)==null||R.cancel();t=w(c()).animate([{width:"0%"},{width:"100%"}],{duration:9E3,easing:"linear"});t.onfinish=function(){w(c()).style.width="100%";var ca=_.y(k()[c()],IJc),V,fa;ca!=null&&ca.foregroundAnimation&&((ca==null?0:(V=ca.foregroundAnimation)==null?0:V.url)||(ca==null?0:(fa=ca.foregroundAnimation)==null?0:fa.payload))||(c()!==k().length-1?(d(c()+1),u()):n()&&_.Fs(n()))}},w=function(R){return r.value.children[R].children[0]},A=function(){for(var R=0;R<c();R++)w(R).style.width="100%"};
b=_.ot(function(){e()?g(!1):(c()===k().length-1&&n()&&_.Fs(n()),w(c()).style.width="100%",c()!==k().length-1&&(d(c()+1),u()))});
var C=_.ot(function(){e()?g(!1):(w(c()).style.width="0%",c()!==0?d(c()-1):d(c()),u())}),G=function(){g(!0)},J=function(){w(c()).style.width="100%";
c()!==k().length-1?(d(c()+1),u()):n()&&_.Fs(n())},I=_.ot(function(){var R;
(R=t)==null||R.pause()});
_.yh(function(){if(e()){var R;(R=t)==null||R.pause()}else{var ca;(ca=t)==null||ca.play()}},"DOw9ke");
_.yh(function(){A();c()===a.data().startIndex&&u()},"vR1mL");
_.vi(function(){A();u()});
return _.q("yt-stories-viewer-view-model",{class:_.jt("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.q("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.q("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":C,"on:mousedown":I}),_.q("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":b,"on:mousedown":I})),_.q(_.Eu,{data:k},{storiesItemViewModel:function(R,ca){var V=R.data;return _.q(_.oi,{cond:function(){return Math.abs(ca()-
c())<=1},
then:function(){var fa={};return _.q("div",{class:_.jt("ytStoriesViewerViewModelStoryItem",(fa.ytStoriesViewerViewModelHiddenStoryItem=function(){return ca()!==c()},fa))},_.q(v_c,{data:V,
pauseAutoNavigation:G,navigateToNextItemOnLottieComplete:J,isVisible:function(){return ca()===c()}}))}})}}),_.q("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:r},_.q(_.ni,{each:k},function(){return _.q("div",{class:"ytStoriesViewerViewModelProgressBar"},_.q("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.q("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.q(_.Eu,{data:m},{buttonViewModel:_.Ju})))}),"yt-stories-viewer-view-model",{props:{data:_.SG}});_.Ws(_.Rr(function(a){var b=a.data;var c=_.Rl(),d=[];return _.q("yt-gen-ai-feedback-form-view-model",{el:c,class:"ytGenAiFeedbackFormViewModelHost"},_.q(_.wt,{text:function(){return b().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.q("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.q(_.Eu,{data:function(){return b().feedbackChips}},{toggleButtonViewModel:function(e){var g=e.data;
return _.q(_.Hu,{data:g,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(k){var m=g();m=_.y(m,_.Gu);m=_.y(m==null?void 0:m.defaultButtonViewModel,_.Fu).trackingParams;k?d.push(m):(k=d.indexOf(m),k>-1&&d.splice(k,1))}})}})),_.q(_.wt,{text:function(){return b().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.q("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.q(_.Eu,{data:function(){return b().submitButton}},{buttonViewModel:function(e){return _.q(_.Ju,{data:e.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){Hyc(c.value,d,b().uniqueId)}})}}),_.q(_.Eu,{data:function(){return b().moreFeedbackButton}},{buttonViewModel:function(e){return _.q(_.Ju,{data:e.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))}),"yt-gen-ai-feedback-form-view-model",{props:{data:_.SG},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var n5=function(){return _.P.apply(this,arguments)||this};
_.z(n5,_.P);n5.prototype.created=function(){lAc(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(cNc);var a=_.v().resolve(_.bhc);a&&(a.container=this.ytPopupContainerBehavior);if(a=_.v().resolve(_.GJ))a.container=this.ytPopupContainerBehavior;if(a=_.v().resolve(_.HJ)){var b=this.ytPopupContainerBehavior;a.containerWasInjected?_.Dl(Error("$i")):a.container=b}};
n5.prototype.ensurePopupBelowPlayer=function(a,b){var c=_.v().resolve(_.Wi(_.$t));if(!c||!c.isOnWatch()||!_.bu())return!1;c=c.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.sq().height>c+this.getPopupHeight(a,b)?(a.style.top="auto",a.style.bottom="0px"):(a.style.top=c+"px",a.style.bottom="auto");return!0};
n5.prototype.getPopupHeight=function(a,b){b&&(a.cachedPopupHeight=0);if(!a.cachedPopupHeight){b=0;var c=a.clientHeight,d=window.getComputedStyle(a);b+=parseInt(d.marginTop,10);b+=parseInt(d.marginBottom,10);a.cachedPopupHeight=c+b}return a.cachedPopupHeight};
n5.prototype.getElement=function(a){return document.createElement(a)};
var w_c=n5;_.U([_.H(TXc.YtPopupContainerBehavior),_.W("design:type",Object)],w_c.prototype,"ytPopupContainerBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],w_c.prototype,"ytComponentBehavior",void 0);w_c=_.U([_.Q({disableElementRegistration:!0,is:"ytd-popup-container"})],w_c);
_.S(w_c,"ytd-popup-container",function(){if(IXc!==void 0)return IXc;var a=document.createElement("template");_.B(a,"\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");a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);return IXc=a},{mode:1});var x_c;var y_c={};y_c.YtLogYpcFlowCommandsBehavior=[_.bH.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(a){_.y(a,$Jc)&&(a=_.y(a,$Jc))&&(a.serializedTransactionFlowLoggingParams?_.rJa(a.serializedTransactionFlowLoggingParams):a.serializedYpcCancelFlowLoggingParams?(a=a.serializedYpcCancelFlowLoggingParams)&&_.JW("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",a):a.serializedYpcResumeFlowLoggingParams?(a=a.serializedYpcResumeFlowLoggingParams)&&_.JW("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",a):a.serializedYpcPauseFlowLoggingParams?(a=a.serializedYpcPauseFlowLoggingParams)&&
_.JW("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",a):a.serializedYpcRefundFlowLoggingParams?(a=a.serializedYpcRefundFlowLoggingParams)&&Ntc("YPC_EVENT_TYPE_START",a):a.serializedYpcDeactivateFlowLoggingParams?(a=a.serializedYpcDeactivateFlowLoggingParams)&&_.JW("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",a):a.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(a=a.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.JW("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",a))},
handleLogYpcFlowDismiss_:function(a){_.y(a,ZJc)&&(a=_.y(a,ZJc),a.serializedTransactionFlowLoggingParams?_.sJa(a.serializedTransactionFlowLoggingParams):a.serializedYpcCancelFlowLoggingParams?(a=a.serializedYpcCancelFlowLoggingParams)&&_.JW("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",a):a.serializedYpcResumeFlowLoggingParams?(a=a.serializedYpcResumeFlowLoggingParams)&&_.JW("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",a):a.serializedYpcPauseFlowLoggingParams?(a=
a.serializedYpcPauseFlowLoggingParams)&&_.JW("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",a):a.serializedYpcRefundFlowLoggingParams&&(a=a.serializedYpcRefundFlowLoggingParams)&&Ntc("YPC_EVENT_TYPE_CANCEL",a))}}];var z_c={};z_c.YtCancelRecurrenceBehavior=[_.LG.YtComponentBehavior,_.xRb,{attached:function(){var a=this;VAc(this,function(b,c){return a.ypcCancelRecurrenceHandler(b,c)})},
ypcCancelRecurrenceHandler:function(a,b){var c=this;if(!b||!b.ypcCancelRecurrenceEndpoint)return!1;if(!b.ypcCancelRecurrenceEndpoint.params)return _.Hi(Error("ql")),!0;_.aw(this.hostElement);var d=_.Qt.instance,e=_.v().resolve(_.Wi(_.wq));d&&_.Rt(d,b)?_.St(d,b).then(function(g){c.ypcCancelRecurrenceSuccess_(a,b,{data:g})},function(g){c.ypcCancelRecurrenceFailure_(a,b,g)}).thenCatch(function(){_.Hi(Error("rl"))}):e?e.requestDataForServiceEndpoint(b).then(function(g){c.ypcCancelRecurrenceSuccess_(a,
b,g)},function(g){c.ypcCancelRecurrenceFailure_(a,b,g)}).thenCatch(function(){_.Hi(Error("rl"))}):_.Hi(Error("sl"));
return!0},
ypcCancelRecurrenceSuccess_:function(a,b,c){_.bw(this.hostElement);c.data||(c={data:c});c.data&&c.data.actions&&_.no(this.hostElement,c.data.actions,this.hostElement);c.data.messageRenderer?Ptc(b.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(b=b.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.JW("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",b);_.go(a,"yt-service-request-completed",c)},
ypcCancelRecurrenceFailure_:function(a,b,c){_.bw(this.hostElement);Ptc(b.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.go(a,"yt-service-request-error",{error:c,params:[a,b]})}}];var A_c=function(a,b){_.da.call(this,b)};
_.z(A_c,uCc);var B_c={};B_c.YtCompleteTransactionBehavior=[_.LG.YtComponentBehavior,_.xRb,{attached:function(){var a=this;VAc(this,function(b,c){return a.ypcCompleteTransactionHandler(b,c)})},
completeTransaction:function(a,b){var c=this;b={payments_payload:window.btoa(b.integratorData),buybucket_params:a.data.buybucketParams,offer_params:a.data.offerParams};var d=_.v().resolve(_.wq),e=a.data.completeTransactionEndpoint,g=this.get("ypcCompleteTransactionEndpoint.actions",e);g&&_.no(this.hostElement,g,this.hostElement);return(g=_.Qt.instance)&&_.Rt(g,e)?_.St(g,e,b).then(function(k){return!k||(k==null?0:k.error)?(k=c.get("data.serializedTransactionFlowLoggingParams",a),_.Pn(new kZ("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
k))):{data:k}}).then(function(k){return c.handleCompleteTransactionSuccess_(k,a)},function(){return c.handleCompleteTransactionFailure_(a)}):d.requestDataForServiceEndpoint(e,b).then(function(k){return c.handleCompleteTransactionSuccess_(k,a)},function(){return c.handleCompleteTransactionFailure_(a)})},
handleCompleteTransactionSuccess_:function(a,b){a.data||(a={data:a});if(a.data.messageRenderer)return _.Pn(new A_c(a.data.messageRenderer));if(a.data.trackingParams){var c=_.Fn(),d=_.En();c&&d&&_.Ro(c,d,_.qs(a.data.trackingParams))}b=this.get("data.serializedTransactionFlowLoggingParams",b);Otc(b);return _.oo(a)},
handleCompleteTransactionFailure_:function(a){a=this.get("data.serializedTransactionFlowLoggingParams",a);_.Nq("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",a);return _.Pn(new kZ("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",a))},
ypcCompleteTransactionHandler:function(a,b){var c=this;if(!b.ypcCompleteTransactionEndpoint)return!1;if(!b.ypcCompleteTransactionEndpoint.transactionParams)return _.Hi(Error("tl")),!0;b.ypcCompleteTransactionEndpoint&&b.ypcCompleteTransactionEndpoint.gtmData&&_.zG(b.ypcCompleteTransactionEndpoint.gtmData);var d=_.v().resolve(_.Wi(_.wq));if(d){_.aw(this.hostElement);var e=_.Qt.instance;e&&_.Rt(e,b)?_.St(e,b).then(function(g){return!g||(g==null?0:g.error)?(g=c.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
b),_.Pn(new kZ("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",g))):{data:g}}).then(function(g){_.go(a,"yt-service-request-completed");
c.ypcCompleteTransactionSuccess_(b,g)},function(){return c.ypcCompleteTransactionFailure_(b)}):d.requestDataForServiceEndpoint(b).then(function(g){_.go(a,"yt-service-request-completed");
c.ypcCompleteTransactionSuccess_(b,g)},function(){return c.ypcCompleteTransactionFailure_(b)})}return!0},
ypcCompleteTransactionSuccess_:function(a,b){_.bw(this.hostElement);b.data||(b={data:b});_.ho(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);b.data.messageRenderer||b.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(a):(_.zG('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",a));b.data.actions&&(a=Vwc(b.data.actions),b=Wwc(b.data.actions),a.length&&_.mo(this.hostElement,
a),b.length&&_.no(this.hostElement,b,this.hostElement))},
ypcCompleteTransactionFailure_:function(a){_.bw(this.hostElement);_.ho(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",a,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(a,b,c){if(b=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",b))b={serializedTransactionFlowLoggingParams:b},c&&(b.errorType=c),_.zl(a,b),_.Al()}}];var C_c={};C_c.YtEndpointHandlerWithYpcBehavior=[_.xRb,_.bH.YtActionHandlerBehavior,[{openWalletDialog:function(a,b,c,d,e,g,k){var m=this,n=_.Tt();b=b.replace(/-/g,"+").replace(/_/g,"/");var r=_.wo().get("hl");_.y4a(_.mw(_.Oq),b,n.resolve,e,function(t){g&&g();n.reject(t)},r,function(t){return m.onServerBackendAnalyticEvent_(a,c,t)},this.onDialogClose_.bind(this),d,k);
return n.promise},
openFixFlowDialog:function(a,b,c,d){a=a.replace(/-/g,"+").replace(/_/g,"/");_.mw(_.Oq).openFixFlowDialog(a,b,c,d)},
onDialogClose_:function(){_.ho(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(a,b,c){a.fire("yt-commerce-action-init-done");b&&_.mo(this.hostElement,[b,{backend_analytics:c}])}}],
_.mH.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(a,b){a=this.get("data.nativeFlowEndpoint",b);b=this.get("data.fallbackEndpoint",b);a?_.mo(this.hostElement,[a]):b&&_.go(this.hostElement,"yt-navigate",{endpoint:b})}}],
z_c.YtCancelRecurrenceBehavior,B_c.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 a=this;VAc(this,function(b,c,d){return a.handleYPCEndpoint(b,c,d)});
this.ypcRegisterActionMapJobId_=_.ul(_.zk,function(){a.registerActionMap(a.buyFlowActionMap_)})},
detached:function(){var a=this;_.zk.cancelJob(this.ypcRegisterActionMapJobId_);_.ul(_.zk,function(){a.unregisterActionMap(a.buyFlowActionMap_)})},
handleYPCEndpoint:function(a,b,c){var d=b.ypcGetCartEndpoint;if(d){_.Io("commerce_transaction");var e=d.gtmId;e&&_.yG(e);(d=d.gtmData)&&_.zG(d)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",b)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(a,b),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",b)!=null?(this.handleYPCFixInstrumentEndpoint_(a,b),!0):b.ypcPauseSubscriptionCommand?(Qyc(this.hostElement,a,b,c),
!0):b.ypcResumeSubscriptionCommand?(Tyc(this.hostElement,a,b),!0):b.getPaymentInstrumentsParamsCommand?(Nyc(this.hostElement,a,b),!0):b.ypcHandleTransactionEndpoint?(Lyc(this.hostElement,a,b,c),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(a,b){var c=this;_.Jo("ttcr",void 0,"commerce_transaction");b=b.ypcGetCartEndpoint;var d=b.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,e=d.encryptedPurchaseParams,g=d.serializedTransactionFlowLoggingParams,k=d.serializedPaymentsClientParams,m=this.createGetCartResponseFromParams_(d,b.offerParams,g);this.changeButtonState(a,!0);_.Hz(this.openWalletDialog(a,e,d.ypcLogWalletAnalyticDataEndpoint,g,function(){c.changeButtonState(a,!1)},function(){c.changeButtonState(a,
!1)},k).then(function(n){return c.handleBuyFlowCompleteCallback_(a,m,n)},function(){return c.handleOnLoadError(m)}).then(function(n){return void c.handlePostPurchaseSuccess_(a,m,n)},function(n){return void c.handlePostPurchaseError_(n)}),function(){c.changeButtonState(a,!1);
a instanceof Element&&_.go(a,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(a,b,c){var d=a.completeTransactionEndpoint,e=a.handleTransactionEndpoint;b={data:{offerParams:window.btoa(b),serializedTransactionFlowLoggingParams:c}};e?b.data.handleTransactionEndpoint=e:b.data.completeTransactionEndpoint=d;a.onCartDismissCommand&&(b.data.onCartDismissCommand=a.onCartDismissCommand);return b},
onGetCartServiceRequestCompleted_:function(a,b){var c=this,d=a.target;if(b&&b.data&&b.data.messageRenderer)_.bw(this.hostElement),this.handleMessageRenderer_(b.data.messageRenderer),this.changeButtonState(d,!1);else{var e=this.get("data.encryptedPurchaseParams",b),g=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",b),k=this.get("data.ypcLogWalletAnalyticDataEndpoint",b),m=this.get("data.serializedPaymentsClientParams",b),n=this.getLoggingParams_(b);if(n||e||g)a.stopPropagation(),_.Jo("ttcr",
void 0,"commerce_transaction"),e||_.bw(this.hostElement),this.changeButtonState(d,!1),g?_.ho(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.Ei("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:g}}},this]):e&&(this.changeButtonState(d,!0),a=null,a=this.openWalletDialog(d,e,k,n,function(){_.bw(c.hostElement);c.changeButtonState(d,!1)},function(){_.bw(c.hostElement);
c.changeButtonState(d,!1)},m),_.Hz(a.then(function(r){return c.handleBuyFlowCompleteCallback_(d,b,r)},function(){return c.handleOnLoadError(b)}).then(function(r){return c.handlePostPurchaseSuccess_(d,b,r)},function(r){return c.handlePostPurchaseError_(r)}),function(){c.changeButtonState(d,!1);
_.go(d,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(a,b){b&&b.endpoint&&b.endpoint.ypcGetCartEndpoint&&!b.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",b.endpoint.ypcGetCartEndpoint)&&_.no(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",b.endpoint.ypcGetCartEndpoint)],a.target),_.aw(this.hostElement),this.changeButtonState(a.target,!0))},
onServiceRequestError_:function(a,b){if(b&&b.params&&b.params.length){b=_.h(b.params);for(var c=b.next();!c.done;c=b.next())if((c=c.value)&&c.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",c.ypcGetCartEndpoint)&&_.no(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",c.ypcGetCartEndpoint)],a.target);_.bw(this.hostElement);this.changeButtonState(a.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(a,b,c){var d=c.integratorData;return d==null||d===""||c.error!=null?(d=this.getLoggingParams_(b),String(c.error)==="-1"?(b.data.onCartDismissCommand&&_.no(this.hostElement,[b.data.onCartDismissCommand],a),_.Pn(new kZ("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",d,!0))):_.Pn(new kZ("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",d))):b.data.handleTransactionEndpoint?Myc(this.hostElement,b.data.handleTransactionEndpoint,{payments_payload:d,funds_guarantee_callback_client_data:c.integratorClientCallbackData}):
this.completeTransaction(b,c)},
handlePostPurchaseSuccess_:function(a,b,c){b=c.data;var d=!1,e,g;if(b&&((e=b.command)==null?0:(g=e.commandExecutorCommand)==null?0:g.commands)){var k,m;e=(k=b.command)==null?void 0:(m=k.commandExecutorCommand)==null?void 0:m.commands;for(k=0;k<e.length;k++)if(_.y(e[k],_.KFb)){d=!0;break}}d||(b&&b.gtmDatas&&b.gtmDatas.length?_.zG(b.gtmDatas[0]):_.zG('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));c.data&&c.data.actions&&(b=Vwc(c.data.actions),c=Wwc(c.data.actions),b.length&&
_.mo(this.hostElement,b),c.length&&_.no(this.hostElement,c,a))},
handlePostPurchaseError_:function(a){a&&a.payload&&a.payload.isUserDismiss||_.Bl(Error("vl"))},
handleOnLoadError:function(a){a=this.getLoggingParams_(a);return _.Pn(new kZ("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",a))},
getLoggingParams_:function(a){return this.get("data.serializedTransactionFlowLoggingParams",a)},
handleMessageRenderer_:function(a){var b=_.zi(a,"renderer"),c=_.Ei("openPopupConfig");b==="confirmDialogRenderer"&&c&&_.ho(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:c.popupTypeMap[b],popup:a}},this])},
handleYPCFixInstrumentEndpoint_:function(a,b){var c=this,d=b.ypcFixInstrumentEndpoint;b=d.encryptedFixInstrumentParameters;this.logFixFopEvent_(d,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(a,!0);this.openFixFlowDialog(b,function(e,g){c.onFixFlowCompleteCallback_(d,e,g)},function(){return c.changeButtonState(a,!1)},function(){c.changeButtonState(a,!1);
c.logFixFopEvent_(d,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(a,b,c){var d=_.Ji("payments.business.integration.scenario.FixInstrument");if(b==d.IntegratorCallbackType.ON_COMPLETE){b="FIX_FOP_EVENT_TYPE_CANCEL";var e=null;c.error!=null?c.error!=d.OnCompleteCallbackError.USER_CANCELLED&&(_.no(this.hostElement,[a.errorAction],this.hostElement),b="FIX_FOP_EVENT_TYPE_FAILURE",e="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.no(this.hostElement,[a.successAction],this.hostElement),b="FIX_FOP_EVENT_TYPE_SUCCESS");_.no(this.hostElement,[a.onFinishAction],
this.hostElement);this.logFixFopEvent_(a,b,e)}},
logFixFopEvent_:function(a,b,c){(a=a.serializedFixFopLoggingParams)?(b={eventType:b,serializedFixFopLoggingParams:a},c!=null&&(b.errorType=c),_.zl("fixFopFlow",b),_.Al()):_.Bl(Error("wl"))},
changeButtonState:function(a,b){_.x("enable_ypc_spinners")&&a&&(a.is==="yt-button-renderer"||a.is==="ytd-button-renderer")&&(a.disabled=b)}}];var D_c=function(a){this.JSC$28425_clientRoot=a;this.feedbackCollectorActionMap={"yt-help-dialog-requested":Vyc,"yt-feedback-dialog-requested":Uyc,"yt-signal-action-help":Wyc,"yt-signal-action-send-feedback":Xyc,"yt-send-feedback-action":Zyc,"yt-user-feedback-endpoint":$yc};_.Ol(_.Nl.getInstance(),this.feedbackCollectorActionMap,this.JSC$28425_clientRoot)},E_c;var F_c=function(a){this.JSC$28430_clientRoot=a;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":azc.bind(null,this.JSC$28430_clientRoot),"yt-signal-action-delete-all-downloads":czc,"yt-signal-action-delete-download":dzc,"yt-signal-action-delete-playlist-download":fzc,"yt-signal-action-install-pwa":lzc,"yt-signal-action-refresh-downloads":jzc,"yt-offline-video-endpoint":nzc,"yt-offline-playlist-endpoint":pzc,"yt-update-local-app-setting-command":rzc,"yt-offline-orchestration-action-command":tzc,
"yt-signal-action-undo-delete-download":hzc,"yt-local-watch-history-command":wzc};_.Ol(_.Nl.getInstance(),this.downloadManagerActionMap,this.JSC$28430_clientRoot);_.Jq.instance=new _.Jq},G_c;var H_c=function(){var a=_.P.apply(this,arguments)||this;a.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_"};a.remoteApi_=null;return a};
_.z(H_c,_.P);_.f=H_c.prototype;
_.f.ready=function(){_.x("polymer_enable_mdx")&&(aMc({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.x("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.x("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.x("enable_cast_short_lived_lounge_token")}),_.dl("yt-remote-connection-change",this.handleConnectionChange_,this),_.dl("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=hMc())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.f.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.f.handleConnectionChange_=function(a){(this.mdxConnected=a)?(a=dMc(),!a&&Gwc()&&Hwc()&&(a={key:"cast-selector-receiver",name:Hwc()}),a=a.name):a=null;this.receiverName=a;_.Tf(this.remoteApi_);(this.remoteApi_=hMc())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.f.handleReceiverAvailabilityChange_=function(){var a=cMc();Gwc()&&_.sG("yt-remote-cast-available")&&a.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=a.length>0};
_.f.handleRemoteQueueChange_=function(){var a=this.currentVideoId_,b=this.currentListId_,c=n0(this.remoteApi_);this.currentVideoId_=c.videoId;this.currentListId_=c.listId;this.currentVideoId_&&_.ho(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.x("polymer_enable_mdx_queue")?this.currentListId_:null,a,b])};
_.f.handleAddToQueueAction_=function(a){a=_.y(a,JJc);this.remoteApi_&&(a.videoId?this.remoteApi_.addVideo(a.videoId):a.playlistId&&this.remoteApi_.addPlaylist(a.playlistId))};
_.f.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.f.handleInsertInQueueAction_=function(a){a=_.y(a,KJc);this.remoteApi_&&a.videoId&&this.remoteApi_.JSC$17351_insertVideo(a.videoId)};
_.f.handleRemoveFromQueueAction_=function(a){a=_.y(a,LJc);this.remoteApi_&&a.videoId&&this.remoteApi_.JSC$17351_removeVideo(a.videoId)};
var o5=H_c;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],o5.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O(),_.W("design:type",Object)],o5.prototype,"appId",void 0);_.U([_.O(),_.W("design:type",Boolean)],o5.prototype,"mdxConnected",void 0);_.U([_.O(),_.W("design:type",Boolean)],o5.prototype,"receiverAvailable",void 0);_.U([_.O(),_.W("design:type",Object)],o5.prototype,"receiverName",void 0);_.U([_.O(),_.W("design:type",Object)],o5.prototype,"currentVideoId_",void 0);
_.U([_.O(),_.W("design:type",Object)],o5.prototype,"currentListId_",void 0);o5=_.U([_.ur({is:"yt-mdx-manager",disableElementRegistration:!0})],o5);_.S(o5,"yt-mdx-manager",void 0,{mode:2});var I_c;var J_c;var K_c=function(){var a=_.P.apply(this,arguments)||this;a.APP_IDS={ytr:3,ytm:5};a.JSC$18593_timeoutId_=0;a.actionMap={"yt-open-create-family-dialog":"open"};return a};
_.z(K_c,_.P);_.f=K_c.prototype;_.f.created=function(){lAc(2200)};
_.f.detached=function(){this.observer_&&this.observer_.disconnect()};
_.f.open=function(a,b){var c=this,d=a.serializedYpcFamilyCreateLoggingParams;this.JSC$18593_timeoutId_=setTimeout(this.abort_.bind(this,a.postFlowErrorEndpoint,d),3E4);b&&(this.onReadyCallback_=b);var e=_.E(this.hostElement).querySelector("#unicorn-iframe");d&&d&&Mtc("ypcFamilyCreateFlowStarted",d);_.SBa("family_creation",function(){var g=_.Ji("gapi.family_creation.render");_.Ji("gapi.config.update")("iframes/family_creation/url",c.getFamilyCreationUrlWithUnicornParams_());var k=3;a.appId&&a.appId in
c.APP_IDS&&(k=c.APP_IDS[a.appId]);k={authUser:_.Ei("SESSION_INDEX")||0,clientId:k,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.Ei("HL"),initialflow:[4,5,6,7],m:c.isMobile?1:0,onFlowComplete:c.onUnicornFlowComplete_.bind(c,a.postFlowSuccessEndpoint,d),onError:c.onUnicornFlowError_.bind(c,a.postFlowErrorEndpoint,d),onReady:c.onUnicornFlowReady_.bind(c,a.referencePcidParams)};g(e,k)})};
_.f.close=function(){_.E(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.f.onUnicornFlowComplete_=function(a,b){this.close();b&&b&&Mtc("ypcFamilyCreateFlowSucceeded",b);_.go(this.hostElement,"yt-navigate",{endpoint:a})};
_.f.onUnicornFlowError_=function(a,b){this.close();b&&Mtc("ypcFamilyCreateFlowCancelled",b);_.go(this.hostElement,"yt-navigate",{endpoint:a})};
_.f.onUnicornFlowReady_=function(a){var b=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();a&&_.Ji("gapi.family_creation.setConfig")(0,a);this.observer_=new MutationObserver(function(){_.E(b.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.E(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.E(this.hostElement).querySelector("#dialog").open()};
_.f.getFamilyCreationUrlWithUnicornParams_=function(){return _.Ei("YTR_FAMILY_CREATION_URL")};
_.f.getCurrentUrl_=function(){return document.location.href};
_.f.abort_=function(a,b){this.clearTimeout_();this.onUnicornFlowError_(a,b)};
_.f.clearTimeout_=function(){clearTimeout(this.JSC$18593_timeoutId_)};
var p5=K_c;_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],p5.prototype,"ytActionHandlerBehavior",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],p5.prototype,"isMobile",void 0);_.U([_.O(),_.W("design:type",Object)],p5.prototype,"onReadyCallback_",void 0);_.U([_.O(),_.W("design:type",Object)],p5.prototype,"observer_",void 0);p5=_.U([_.ur({is:"yt-create-family-dialog",disableElementRegistration:!0})],p5);
_.S(p5,"yt-create-family-dialog",function(){if(J_c===void 0){var a=document.createElement("template");_.B(a,'\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');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);var b=a.content,c=b.insertBefore;I_c===void 0&&(I_c=document.createElement("template"));var d=I_c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);J_c=a}a=J_c;return a},{mode:2});var L_c;var M_c;var N_c=function(){var a=_.P.apply(this,arguments)||this;a.STEP=1;a.BLOCK_ON=80;a.MIN_PROGESS=0;a.MAX_PROGESS=100;return a};
_.z(N_c,_.P);_.f=N_c.prototype;_.f.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.f.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));_.v().addProvider({provide:MMc,useValue:this})};
_.f.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.f.finish=function(){var a=this;this.progress=this.MAX_PROGESS;xzc(function(){a.progress==a.MAX_PROGESS&&(a.hostElement.hidden=!0)})};
_.f.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.Vm.Object.defineProperties(N_c.prototype,{progress:{configurable:!0,enumerable:!0,set:function(a){this.progress_=a;var b="scaleX("+a/this.MAX_PROGESS+")",c=_.E(this.hostElement).querySelector("#progress").style;c.transform=b;c.webkitTransform=b;this.hostElement.setAttribute("aria-valuenow",String(a))},
get:function(){return this.progress_}}});
var O_c=N_c;_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],O_c.prototype,"ytComponentBehavior",void 0);O_c=_.U([_.ur({is:"yt-page-navigation-progress",disableElementRegistration:!0})],O_c);
_.S(O_c,"yt-page-navigation-progress",function(){if(M_c===void 0){var a=document.createElement("template");_.B(a,'\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');a.content.insertBefore(_.Y().content.cloneNode(!0),
a.content.firstChild);var b=a.content,c=b.insertBefore;L_c===void 0&&(L_c=document.createElement("template"));var d=L_c;c.call(b,d.content.cloneNode(!0),a.content.firstChild);M_c=a}a=M_c;return a},{mode:2});var P_c={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"},Q_c={"font-size":"12px","font-style":"italic"},R_c={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.Bzc=function(){return _.l(function(a){_.se(a)})};_.Ws(_.Rr(function(){var a=_.Mr(_.c5a);return _.q("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var b;return(b=a())==null?void 0:b.announcement})}),"yt-ephemeral-actions");var Tzc=new Map;var ssc=function(a,b){var c=this;this.handleError=a;this.logEventInternal=b;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){c.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
ssc.prototype.logError=function(a){this.handleError(a)};
ssc.prototype.logEvent=function(a,b){switch(a){case "IDB_DATA_CORRUPTED":_.x("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",b);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",b);break;case "IS_SUPPORTED_COMPLETED":_.x("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",b);break;case "QUOTA_EXCEEDED":S_c(this,b);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",b);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":a=Object.assign({},b,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",a)}};
var S_c=function(a,b){_.pW.getInstance().estimate().then(function(c){c=Object.assign({},b,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:Vzc(c==null?void 0:c.usage),deviceStorageQuotaMbytes:Vzc(c==null?void 0:c.quota)});a.logEventInternal("idbQuotaExceeded",c)})};var T_c=function(){var a=_.P.apply(this,arguments)||this;a.tabGesturesIsActive=!1;a.deprecateFullerscreenUi=_.x("web_watch_fullerscreen_deprecation_ui");a.hasDelegation=!1;a.darkerDarkTheme=_.x("web_darker_dark_theme");a.isFrostedGlassInitialized=!1;a.frostedGlassExp=_.x("web_frosted_glass");a.mastheadHiddenFocusWithinKillswitch=_.x("web_masthead_hidden_focus_within_killswitch");a.ephemeralActionsEnabled=_.x("web_ephemeral_actions");a.scrollAtTop=!0;a.guideScrollTop=0;a.isTheaterModeSession=_.Gi("START_IN_THEATER_MODE");
a.isFullWindowSession=_.Gi("START_IN_FULL_WINDOW_MODE");a.hasCreateFamilyDialog=!1;a.mastheadHeight=56;a.networkStatusManager=new _.Lk;a.actionMap={"yt-command-executor-command":"handleCommandWithCommandHandler","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-edu-dismiss-action":"handleEduDismissAction","yt-edu-impression-action":"handleEduImpressionAction","yt-navigate-action":"onYtNavigateAction","yt-navigate-home-action":"onYtNavigateHomeAction","yt-player-fullscreen":"onPlayerFullscreen",
"yt-register-create-family-dialog":"onYtRegisterCreateFamilyDialog","yt-select-country-command":"handleSelectCountryCommand","yt-select-language-command":"handleSelectLanguageCommand","yt-clear-url-param-command":"handleClearUrlParamCommand","yt-set-push-notifications-enabled-command":"onSetPushNotificationsEnabledCommand","yt-signal-action-copy-debug-data":"onYtSignalActionCopyDebugData","yt-signal-action-enable-chrome-notifications":"onYtSignalActionEnableChromeNotifications","yt-signal-action-toggle-restricted-mode-on":"onYtSignalActionToggleRestrictedModeOnAction",
"yt-signal-action-toggle-restricted-mode-off":"onYtSignalActionToggleRestrictedModeOffAction","yt-signal-action-confirm-mentions-edu":"onYtSignalActionConfirmMentionsEdu","yt-signal-action-record-mentions-edu-impression":"onYtSignalActionRecordMentionsEduImpression","yt-signal-action-show-keyboard-shortcut-dialog":"onYtSignalActionShowKeyboardShortcutDialog","yt-signal-action-skip-navigation":"onYtSignalActionSkipNavigation","yt-signal-action-request-persistent-storage":"onYtSignalActionRequestPersistentStorage",
"yt-timed-command":"onYtTimedCommand","yt-window-resized":"onWindowResized","yt-window-scrolled":"onWindowScrolled","yt-persist-subscriptions-display-preferences-command":"handlePersistSubscriptionsDisplayPreferencesCommand","yt-invoke-instrument-manager-action":"onInvokeInstrumentManagerAction","yt-entity-update-command":"handleEntityUpdateCommand","yt-web-native-share-command":"handleWebNativeShareCommand","yt-confirm-dialog-endpoint":"handleConfirmDialogEndpoint","yt-ad-feedback-endpoint":"handleOpenPopupNavigationEndpoints",
"yt-create-backstage-post-dialog-endpoint":"handleOpenPopupNavigationEndpoints","yt-manage-purchase-endpoint":"handleOpenPopupNavigationEndpoints","yt-modal-endpoint":"handleOpenPopupNavigationEndpoints","yt-unlimited-family-flow-endpoint":"handleOpenPopupNavigationEndpoints","yt-ypc-cancel-survey-endpoint":"handleOpenPopupNavigationEndpoints","yt-register-promo-command":"handleYtRegisterPromoCommand","yt-location-collection-command":"onYtLocationCollectionCommand","yt-get-location-command":"onYtGetLocationCommand",
"yt-log-flow-logging-event-command":"logFlowLoggingEventCommand","yt-save-command-to-session-storage-action":"handleSaveCommandToSessionStorage","yt-show-dma-consent-flow-command":"handleShowConsentPrimitive","yt-signal-action-show-dma-consent-flow":"handleShowConsentPrimitive","yt-show-mmg-notice-command":"handleShowConsentPrimitive","yt-signal-action-toggle-dark-theme-on":"handleSignalActionToggleDarkThemeOn","yt-signal-action-toggle-dark-theme-off":"handleSignalActionToggleDarkThemeOff","yt-signal-action-toggle-dark-theme-device":"handleSignalActionToggleDarkThemeDevice",
"yt-select-active-identity-endpoint":"handleSelectActiveIdentityEndpointInternal","yt-update-permission-role-command":"handleUpdatePermissionRoleCommand","yt-channel-creation-form-endpoint":"handleYtChannelCreationFormEndpoints","yt-show-engagement-panel-endpoint":"handleShowEngagementPanelEndpoint","yt-google-payment-billing-command":"handleCommandWithCommandHandler"};a.dynamicActionMap={"yt-run-attestation-command":function(b){var c=_.Gec.instance,d=_.y(b,_.vyb);return d?_.x("use_rta_manager_for_async")&&
csc()?aBc(c,d,b.clickTrackingParams):$Ac(c,d,b.clickTrackingParams):_.Pn(Error("ji"))}};
a.isFrostedGlassDisabled=!1;a.isChannelOrPlaylistPage=!1;return a};
_.z(T_c,_.P);_.f=T_c.prototype;_.f.created=function(){var a=_.v();_.x("kevlar_clear_duplicate_pref_cookie")&&_.ul(_.zk,function(){var b=_.lj.get("PREF");b&&!/f\d=/.test(b)&&(b=_.aj("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=b?"PREF=null;domain="+b+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.x("gzip_gel_with_worker")&&_.era();_.x("jspb_serialize_with_worker")&&Csc();_.x("web_worker_availability_check")&&Uzc();_.x("nwl_init_killswitch")||Asc().then(function(){_.zk.addLowPriorityJob(Nwc)});
this.pageManagerAttachedPromise=_.Tt();this.ytdAppBehavior.loadDepsPromise=_.Gz([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.hv(this.onThrottledScroll,200,this);_.x("external_fullscreen")&&(this.fullscreen=!1);this.ephemeralResponseStore=a.resolve(_.nJ);this.boundOnTouchStart=this.onTouchStart.bind(this);tsc();tCc=!!_.Ji("ytappsettings.initialized");xY=_.Ji("ytappsettings.previousValue");ttc=_.Ji("ytappsettings.previousSnapshotTime");tCc||
(tCc=!0,utc());Twc();Uwc();_.Bi("DEFERRED_DETACH",_.x("kevlar_tuner_should_defer_detach"));_.Bi("REUSE_COMPONENTS",!0);_.Bi("STAMPER_STABLE_LIST",!0);_.Bi("SCHEDULED_LAZY_LIST",!0);_.Bi("openPopupConfig",bNc);_.Bi("useClickHandler",!0);_.x("kevlar_shell_cleanup")&&_.zk.addLowPriorityJob(itc.bind(this,_.ja.caches));_.Gi("IS_SHELL_LOAD")&&_.Ho({shellStartupDurationMs:Math.round((0,_.Uj)()-_.Co())});Fzc(this.networkStatusManager);_.x("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",yzc(P_c)),
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!",yzc(Q_c)),console.log("%cVisit http://go/join-youtube-web to apply today.",yzc(R_c)));_.Goc(a.resolve(_.mW),1E3)};
_.f.ready=function(){this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var a=Msc();a&&!_.x("external_fullscreen_killswitch")&&document.addEventListener(a,this.setFullscreen.bind(this));(a=window.matchMedia("(prefers-color-scheme: dark)"))&&a.addEventListener&&a.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged()};
_.f.attached=function(){var a=this;_.SF().processSignal("ci");_.x("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.fab?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.ww(_.fBa(),"SUCCESS");this.updateIconSet();_.eo(this.guideInnerContent,!1);_.pG().initVisibilityObserver();this.guideService.guideElement=this.guide;var b=document.createElement("ytd-miniplayer"),c=_.E(this.hostElement).querySelector("#content");
_.E(this.hostElement).insertBefore(b,c);_.SF().processSignal("ma");_.v().resolve(_.Vw).init(b);_.Gi("IS_SHELL_LOAD")&&(c=document.createElement("ytd-network-status-banner"),_.E(this.hostElement).insertBefore(c,b));_.x("kevlar_right_click_on_lockups")&&_.WD._onCaptureClick&&document.addEventListener("contextmenu",_.WD._onCaptureClick.bind(_.WD),!0);var d=function(){var e=_.YG("yt-page-navigation-progress");_.E(a.hostElement).appendChild(e)};
setTimeout(function(){_.SF().parkOrScheduleJob(d,0,"eocs",16)},0);
_.x("service_worker_push_enabled")&&_.ul(_.zk,Ltc);_.Ol(_.Nl.getInstance(),this.dynamicActionMap,this.hostElement);_.go(this.hostElement,"ytd-app-attached");_.SF().processSignal("aa");btc(this.hostElement);_.Rj("gapi.load",_.SBa);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.ul(_.zk,
function(){var e=document.createElement("ytd-video-preview");_.E(_.E(a.hostElement).querySelector("#video-preview")).appendChild(e)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.ul(_.zk,function(){Czc();a.registerViewTransitionTasks()});
if(_.Iq()&&this.isAppDarkTheme()!==_.Gq())this.onDarkModeToggledAction();else b=_.Hq()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==b&&(_.x("enable_dark_theme_only_on_shorts")?_.Fq(_.x("enable_dark_theme_only_on_shorts_control")?window.location.href:_.Pi(window.location.href,{theme:"dark"})):_.Dl(new _.qj("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(fNc=new eNc(this.hostElement)),G_c=new F_c(this.hostElement),E_c=new D_c(this.hostElement),yNc=new xNc(this.hostElement),
_.v().resolve(_.Vw).install(this.hostElement)};
_.f.getThemeSettingsToLog=function(){var a=_.Hq()==="USER_INTERFACE_THEME_DARK";a=_.Iq()?_.Gq()?"os-dark":"os-light":a?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:a,cookiesEnabled:_.nj()}};
_.f.detached=function(){_.fo(this.guideInnerContent);_.zk.cancelJob(sY);sY=0;_.zk.cancelJob(uY);uY=0;_.rsa(atc);atc.length=0;Ysc=_.ZHa=null;_.pG().dispose();_.x("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.Pl(_.Nl.getInstance(),fNc.playlistHandlerActionMap,fNc.JSC$28123_clientRoot);_.Pl(_.Nl.getInstance(),G_c.downloadManagerActionMap,G_c.JSC$28430_clientRoot);_.Pl(_.Nl.getInstance(),E_c.feedbackCollectorActionMap,E_c.JSC$28425_clientRoot);
for(var a=_.h(yNc.eventListeners),b=a.next();!b.done;b=a.next()){var c=_.h(b.value);b=c.next().value;c=c.next().value;c=_.h(c);for(var d=c.next();!d.done;d=c.next()){var e=_.h(d.value);d=e.next().value;e=e.next().value;b.removeEventListener(d,e)}}_.Pl(_.Nl.getInstance(),yNc.autonavPauseActionMap,yNc.JSC$17536_clientRoot);_.v().resolve(_.Vw).uninstall()};
_.f.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.wo().getFlag(186)};
_.f.computeIsInlinePreviewEnabled=function(a,b,c){return!c&&_.Coc({miniplayerIsActive:a,miniplayerPlaybackState:b})};
_.f.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.gp({type:"SET_FROSTED_GLASS_MODE",payload:!_.x("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"}))};
_.f.computeIsFrostedGlassDisabled=function(a,b,c,d){return a||b||c||d&&_.x("web_frosted_glass_disable_watch")};
_.f.computeIsHomePage=function(a,b){if(!a||b==null||!b.endpoint)return!1;var c;return((c=_.y(b.endpoint,_.pq))==null?void 0:c.browseId)==="FEwhat_to_watch"};
_.f.updateIsChannelOrPlaylistPage=function(){if(_.x("web_frosted_glass")){var a,b,c=(b=(a=_.v().resolve(_.Wi(_.$t)))==null?void 0:a.getCurrentPage())==null?void 0:b.pageSubtype;this.isChannelOrPlaylistPage=c?["channel","channels","playlist"].includes(c):!1}};
_.f.scheduleFrostedGlassInitialization=function(){var a=this;_.x("web_frosted_glass")&&_.SF().parkOrScheduleJob(function(){a.isFrostedGlassInitialized=!0},0,_.LW(["eocs",
"cr"]),300)};
_.f.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.FJb(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.gp({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.gp({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.f.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(jCc(!0))};
_.f.onYtSignalActionRequestPersistentStorage=function(){if(!_.x("request_persistent_storage_killswitch")){var a=_.v().resolve(_.rhc);a.cachedPersistStatePromise||(a.cachedPersistStatePromise=zBc())}};
_.f.handleYtChannelCreationFormEndpoints=function(a){a&&this.ytComponentBehavior.resolveCommand(a)};
_.f.handleShowEngagementPanelEndpoint=function(a){a&&this.ytComponentBehavior.resolveCommand(a)};
_.f.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(jCc(!1))};
_.f.initIconDefs=function(a,b,c){var d=document.createElement("iron-iconset-svg");d.name=a;a=document.createElementNS("http://www.w3.org/2000/svg","svg");d.appendChild(a);a.appendChild(b);if(c)for(var e in c)d[e]=c[e];document.body.appendChild(d);return d};
_.f.onWindowResized=function(){_.ho(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var a=_.LKb.getInstance();a.documentWidth_=document.body.clientWidth;AAc(a)};
_.f.onWindowScrolled=function(){var a=_.v().resolve(_.$t).getCurrentPage();if(a!=null&&a.getScrollTop){var b=this.ytdReduxBehavior,c=b.dispatch;a=a.getScrollTop()<=0;c.call(b,_.gp({type:"SET_SCROLL_AT_TOP",payload:a}))}};
_.f.guideIsVisibleButNotPersistentSelectorChanged=function(){var a=_.v().resolve(_.$t).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=a.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"),
a.setScrollTop(this.guideScrollTop));_.ko(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.f.getCurrentPageScrollableElementType=function(){var a=_.v().resolve(_.$t).getCurrentPage();if(a&&a.getPageScrollingElement())return a.getPageScrollingElement().nodeName};
_.f.observeGuideVisibility=function(){var a=_.LKb.getInstance(),b=this.miniGuideVisible;a.guidePersistentAndVisible_=this.guidePersistentAndVisible;a.miniGuideVisible_=b;AAc(a)};
_.f.handleEduDismissAction=function(a){a&&a.eduDismissAction&&(_.ho(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.GKb.getInstance(),_.eG.set(a.eduDismissAction.key+"-dismissed",!0))};
_.f.handleEduImpressionAction=function(a){if(a&&a.eduImpressionAction){var b=_.GKb.getInstance();a=a.eduImpressionAction.key;b.JSC$10711_eduDisplayedThisLoad_[_.FKb[a].setKey||a]=!0;_.eG.set(a+"-impression",parseInt(_.eG.get(a+"-impression")||0,10)+1)}};
_.f.onYtSignalActionConfirmMentionsEdu=function(){_.ho(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.hG.getInstance();_.gG.set("edu-dismissed",!0)};
_.f.onYtSignalActionRecordMentionsEduImpression=function(){_.hG.getInstance();var a=_.gG.set,b=parseInt(_.gG.get("edu-impressions"),10);a.call(_.gG,"edu-impressions",(isFinite(b)?b:0)+1)};
_.f.onYtPageManagerAttached=function(a){var b;((b=_.Qq(a))==null?void 0:b.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.f.onInvokeInstrumentManagerAction=function(a,b){Zzc(b,a)};
_.f.updateIconSet=function(){var a=this.hostElement.querySelector("#masthead");if(a){var b=_.Zq(a),c=b.querySelector("g#yt-logo-updated");c&&(a=document.createElementNS("http://www.w3.org/2000/svg","defs"),a.appendChild(c.cloneNode(!0)),(b=b.querySelector("g#yt-logo-red-updated"))&&a.appendChild(b.cloneNode(!0)),this.initIconDefs("yt-logos-ext",a))}};
_.f.updateMastheadData=function(){var a=this,b,c,d,e;return _.l(function(g){if(g.nextAddress==1){b=a.data;c=a.hostElement.querySelector("#masthead");if(!c)return g.return();_.Tm(a,function(){c.data=a.topbarData});
return a.get("response.topbar",b)&&a.get("response.topbar.responseContext.maxAgeSeconds",b)!==0?(d=_.v().resolve(_.VV))?_.p(g,d(),7):a.ephemeralResponseStore?_.p(g,a.ephemeralResponseStore.put("service:topbar:fallback",new _.oJ({innertubeResponse:a.get("response.topbar",b)})),0):g.jumpTo(0):g.jumpTo(0)}return(e=g.yieldResult)?_.p(g,e.put("service:topbar:fallback",new _.oJ({innertubeResponse:a.get("response.topbar",b)})),0):g.jumpTo(0)})};
_.f.computeTopbarData=function(a){if(!a)return null;var b;return this.isShortsPage&&this.topbarData&&!_.y((b=a.response)==null?void 0:b.topbar,wJc)?this.topbarData:a.response&&"topbar"in a.response?_.y(a.response.topbar,wJc)||null:null};
_.f.onSetTheaterModeEnabled=function(a,b){this.isTheaterModeSession=b.enabled;this.setTheaterModeStyles(b.enabled)};
_.f.setTheaterModeStyles=function(){this.setMastheadTheme()};
_.f.onDarkModeToggledAction=function(){var a=_.gj(window.location.href);if(!_.hJa(a)){(a=!!_.Oi(window.location.href).themeRefresh)&&_.Dl(new _.qj("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!a){utc();a={themeRefresh:1};var b=_.v().resolve(_.$t);if(b.isOnWatch()){var c,d;b=((c=b.getPlayerFromWatch())==null?void 0:(d=c.getPlayer())==null?void 0:d.getCurrentTime())||0;b>=1&&(a.time_continue=Math.floor(b))}_.nj()||_.Hq()!=="USER_INTERFACE_THEME_DARK"||(a.theme="dark");_.Fq(_.Pi(window.location.href,
a))}_.x("web_appshell_refresh_trigger")&&_.ja.caches&&this.refreshAppShellResponse();c=_.Qn(window.location.href);_.v().resolve(_.pWb).replaceUrl(_.$n(c,"theme"))}};
_.f.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.f.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.f.onPlayerFullscreen=function(a){_.bo();this.playerFullscreen=a};
_.f.setRestrictedMode=function(a){var b=_.wo();_.xo(0,58,a);b.save();_.v().resolve(_.oG).reload()};
_.f.onPageChanged=function(a){a.detail.newPageType==="ytd-watch-flexy"||a.detail.newPageType==="ytd-watch-fixie"||a.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.Mw("WEB_PAGE_TYPE_WATCH")):a.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.Mw("WEB_PAGE_TYPE_SHORTS")):a.detail.newPageType==="ytd-browse"&&a.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.Mw("WEB_PAGE_TYPE_MINI_APP")):_.x("web_frosted_glass")&&a.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.Mw("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.Mw("WEB_PAGE_TYPE_UNKNOWN"));a.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.f.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.f.onGuideToggleTap=function(){_.go(this.hostElement,"yt-guide-toggle")};
_.f.onGuideToggleHover=function(){_.go(this.hostElement,"yt-guide-hover")};
_.f.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.f.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.f.setMastheadTheme=function(){var a=_.Zq(this.hostElement).querySelector("#masthead");a&&(a.dark=a.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),a.isDarkThemeForced=!1)};
_.f.onRequestPanelModeChange=function(a,b){this.hideHeaderShadow=b.mode!=="seamed"};
_.f.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.f.onDrawerIronSelect=function(a){_.Qq(a).id==="guide"&&this.processDrawerIronSelect()};
_.f.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var a="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(a="opened"));_.go(this.hostElement,"yt-autonav-pause-guide-"+a)};
_.f.onAddElementToApp=function(a){_.E(this.hostElement).appendChild(a.detail)};
_.f.onThrottledScroll=function(){var a=_.v().resolve(_.$t).getCurrentPage();a&&(this.scrollAtTop=a.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.f.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.f.setFullscreen=function(){if(_.x("external_fullscreen")||!this.isWatchPage){var a=_.x("kevlar_fullerscreen_root_only_killswitch")?!!_.bo():!!_.bo()&&_.bo()===document.documentElement;a=(this.isWatchPage||_.x("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(a||this.isFullWindowSession);this.fullscreen!==a&&((this.fullscreen=a)&&_.ko(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.Yp().dispatch(_.Xrc(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.toggleFullscreenStyles(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen),_.ho(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.f.setFullscreenLoggingForShorts=function(a){var b,c,d;return _.l(function(e){if(e.nextAddress==1)return _.p(e,(b=_.bu())==null?void 0:b.getPlayerPromise(),2);c=e.yieldResult;(d=c)==null||d.setAppFullscreen(a);_.se(e)})};
_.f.updateMastheadCssHeight=function(){var a=this.mastheadHeight;this.fullscreen&&(a=0);_.dr(this.hostElement,{"--ytd-masthead-height":a+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.f.updateNetworkStatusBannerDisplayStatus=function(){var a="unset";this.fullscreen&&(a="none");_.dr(this.hostElement,{"--ytd-network-status-banner-display":a})};
_.f.updateNetworkStatusBannerCssHeight=function(){var a="unset";this.fullscreen&&(a="0px");_.dr(this.hostElement,{"--ytd-network-status-banner-max-height":a})};
_.f.toggleFullscreenStyles=function(a,b,c){var d=_.v().resolve(_.$t).getCurrentPage();a||b?(document.body.classList.add("no-scroll"),d.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.er(this,this.onScroll)),d.setScrollTop(0),_.dr(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.HW()+"px"})):c?_.go(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.go(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),d.pageScrollElement=
null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.er(this,this.onScroll)));this.mastheadHidden=a||b||c;this.updateMastheadCssHeight();_.x("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.f.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.f.onYtMastheadHeightChanged=function(a,b){this.mastheadHeight=b.height;this.updateMastheadCssHeight()};
_.f.onYtNavigateAction=function(a){a=this.get("navigateAction.endpoint",a);_.go(this.hostElement,"yt-navigate",{endpoint:a})};
_.f.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var a=document.createElement("yt-create-family-dialog");_.E(this.hostElement).appendChild(a);this.hasCreateFamilyDialog=!0}};
_.f.onSetPushNotificationsEnabledCommand=function(a){var b=this,c=_.y(a,vJc);c&&typeof c.enabled==="boolean"&&(Notification.permission!=="granted"?Gtc().then(function(){Notification.permission==="granted"?(ptc(!c.enabled).then(stc),c.successAction&&_.mo(b.hostElement,[c.successAction])):c.failureAction&&_.mo(b.hostElement,[c.failureAction])}):(ptc(!c.enabled).then(stc),c.successAction&&_.mo(this.hostElement,[c.successAction])))};
_.f.onYtSignalActionEnableChromeNotifications=function(){Htc(!0)};
_.f.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.y(this.topbarData.hotkeyDialog,zJc)}}})};
_.f.onYtSignalActionShowKeyboardShortcutDialog=function(){_.ho(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.f.onYtEndpointChangeHandler=function(a,b){var c=_.mw(_.nG);c.pendingPrefetchJob_&&(b=!(!b||b.autonav!="1"),c.pendingPrefetchJob_.resolve(a&&_.$Ha(a)?_.aIa(a,b):""),c.pendingPrefetchJob_=null);_.ho(this.hostElement,"yt-pause-active-page-context");_.ho(this.hostElement,"ytd-log-youthere-nav");_.ho(this.hostElement,"yt-prepare-page-dispose")};
_.f.handleClearUrlParamCommand=function(a){if(a.clearUrlParamCommand&&a.clearUrlParamCommand.paramKeys){var b=a.clearUrlParamCommand.paramKeys;a=_.Jg(window.location.href);b=_.h(b);for(var c=b.next();!c.done;c=b.next())a.JSC$7879_queryData_.remove(c.value);window.history.replaceState(window.history.state,document.title,a.toString())}};
_.f.handleCommandWithCommandHandler=function(a,b){_.hs.instance.resolveCommand(a,{form:{element:b}})};
_.f.onYtTimedCommand=function(a){var b=this;a=_.y(a,hJc);var c=a.command;c&&_.Du(_.zk,function(){var d=_.y(c,_.xEb);d?(_.hs.instance.resolveCommand(c),b.maybeLogGetAnswerRequestTick(d)):_.no(b.hostElement,[c],b.hostElement)},a.timeoutMs||0)};
_.f.maybeLogGetAnswerRequestTick=function(a){a&&a.isFirstRequest&&(_.Io("search_overview_answer"),_.Jo("so_rq",void 0,"search_overview_answer"))};
_.f.onYtSignalActionSkipNavigation=function(){var a=_.v().resolve(_.$t).getCurrentPage();_.Pk(a)};
_.f.onYtSignalActionCopyDebugData=function(){Utc()};
_.f.handleEntityUpdateCommand=function(a){_.sp(_.y(a,_.BAb).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.f.logFlowLoggingEventCommand=function(a){if(a=_.y(a,_.FPa))if(a.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var b=a.flowEventNamespace,c=a.flowEventType,d=a.flowType;d&&b&&c&&_.RHa(_.hq(b,c,a.flowEventMetadata),d)}else{b=_.jq();c=a.flowEventNamespace;d=a.flowEventType;var e=a.flowType;e&&c&&d&&_.iq(b,_.hq(c,d,a.flowEventMetadata),e,a.flowNonce)}};
_.f.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.f.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.f.onTouchStart=function(){var a=_.qG();_.Fn()&&_.Pt(a.JSC$10864_screenManager,{visualElement:a.ve})};
_.f.handleWebNativeShareCommand=function(a){navigator.share({url:_.y(a,tJc).url}).catch(function(){})};
_.f.handleSelectCountryCommand=function(a){if(a=_.y(a,qJc).gl){var b={persist_gl:1,gl:a},c=_.wo();c.set("gl",a);c.save();a=SBc(b);_.Fq(a)}};
_.f.handlePersistSubscriptionsDisplayPreferencesCommand=function(a){if(a=_.y(a,nJc)){var b=_.wo();_.xo(0,155,a.useListView);b.save()}};
_.f.handleSelectLanguageCommand=function(a){if(a=_.y(a,rJc).hl){var b=_.wo();b.set("hl",a);b.save();_.v().resolve(_.oG).reload()}};
_.f.handleConfirmDialogEndpoint=function(a){(a=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(a))&&this.ytOpenPopupBehavior.openPopup(a)};
_.f.handleOpenPopupNavigationEndpoints=function(a,b){_.x("web_button_rework")&&(a=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(a))&&this.ytOpenPopupBehavior.openPopup(a,b)};
_.f.handleSaveCommandToSessionStorage=function(a){if(a=_.y(a,_.Byb)){var b=a.key;b&&a.command&&window.sessionStorage.setItem(b,JSON.stringify(a.command))}};
_.f.hardReloadWithShellPurge=function(a){a=a===void 0?{}:a;a=Object.assign({},a,{purge_shell:1});a=SBc(a);_.Fq(a)};
_.f.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(a){a&&a.active&&a.active.postMessage({type:"refresh_shell"})}).catch(function(a){a.name!=="SecurityError"&&_.Bl(a)})};
_.f.onDeviceThemeChanged=function(){var a=_.Gq();_.xo(_.wo(),185,a);_.wo().save()};
_.f.handleYtRegisterPromoCommand=function(a){if(_.y(a,uJc)){var b=_.v().resolve(_.$t).getCurrentPage()||this.hostElement;EMc().registerPromoCommand(_.y(a,uJc),b)}};
_.f.onYtNavigateHomeAction=function(){if(!_.x("kevlar_miniplayer_navigate_home_from_app_killswitch")){var a,b,c,d,e=(d=(a=this.topbarData)==null?void 0:(b=a.logo)==null?void 0:(c=b.topbarLogoRenderer)==null?void 0:c.endpoint)!=null?d:_.vF;this.ytComponentBehavior.resolveCommand(e)}};
_.f.onYtLocationCollectionCommand=function(a){Azc(_.y(a,HJc))};
_.f.onYtGetLocationCommand=function(a){$wc(_.y(a,GJc),this)};
_.f.updateRenderGuideFromBinding=function(a){this.renderGuide=a.detail.value};
_.f.updateGuidePersistentAndVisibleFromBinding=function(a){this.guidePersistentAndVisible=a.detail.value};
_.f.updateMiniGuideVisibleFromBinding=function(a){this.miniGuideVisible=a.detail.value};
_.f.onThemeSelected=function(a,b){var c=_.wo(),d=a||b?a:_.Gq(),e=(d&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!d&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.hJa(_.gj(window.location.href));_.xo(0,165,a);_.xo(0,174,b);c.save();e&&_.ho(this.hostElement,"yt-dark-mode-toggled-action",[d]);_.ho(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.f.getCurrentTheme=function(){return _.Iq()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.Hq()};
_.f.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.f.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.f.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.f.handleShowConsentPrimitive=function(a){var b=this,c,d;return _.l(function(e){if(e.nextAddress==1){try{c=(d=_.bu())==null?void 0:d.getPlayerPromise()}catch(g){}return _.p(e,Szc(a,c),2)}_.ho(b.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.se(e)})};
_.f.handleSelectActiveIdentityEndpointInternal=function(a){_.ZIa();a=_.y(a,_.LEb);if(a!=null&&a.supportedTokens){a=_.h(a.supportedTokens);for(var b=a.next();!b.done;b=a.next())b=b.value,b.accountSigninToken&&_.Fq(b.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.f.handleUpdatePermissionRoleCommand=function(a){if(a=_.y(a,_.ODb)){var b;this.hasDelegation=!((b=_.y(a.renderer,_.NDb))==null||!b.status)}};
_.f.registerViewTransitionTasks=function(){var a=this,b=_.v().resolve(_.Wi(_.zjc));if(b){var c,d=(c=this.guide)==null?void 0:c.querySelector("#scrim"),e,g=(e=this.guide)==null?void 0:e.querySelector("#contentContainer");d&&g&&(c={beforeTransition:function(){var k;(k=a.guide)!=null&&k.persistent||(d.style.viewTransitionName="app-drawer-scrim",g.style.viewTransitionName="app-drawer-container")},
afterTransition:function(){var k;(k=a.guide)!=null&&k.persistent||(d.style.viewTransitionName="",g.style.viewTransitionName="")}},wZ(b,"slide",c),wZ(b,"zoom",c))}};
_.Vm.Object.defineProperties(T_c.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.x("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.Vm.Object.defineProperties(T_c,{template:{configurable:!0,enumerable:!0,get:function(){if(x_c===void 0){var a=document.createElement("template");_.B(a,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-app--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-guide-manager id="guide-service" disabled="[[standalone]]" guide-persistent-and-visible="[[guidePersistentAndVisible]]" mini-guide-visible="[[miniGuideVisible]]" render-guide="[[renderGuide]]" on-guide-persistent-and-visible-changed="updateGuidePersistentAndVisibleFromBinding" on-mini-guide-visible-changed="updateMiniGuideVisibleFromBinding" on-render-guide-changed="updateRenderGuideFromBinding" class="style-scope ytd-app">\n</yt-guide-manager>\n<yt-mdx-manager class="style-scope ytd-app"></yt-mdx-manager>\n<yt-playlist-manager class="style-scope ytd-app"></yt-playlist-manager>\n<yt-hotkey-manager class="style-scope ytd-app"></yt-hotkey-manager>\n<div id="content" class="style-scope ytd-app">\n  <div id="frosted-glass" class$="[[frostedGlassMode]] style-scope ytd-app"></div>\n  <div id="masthead-container" class="style-scope ytd-app">\n    <slot name="masthead" class="style-scope ytd-app"></slot>\n  </div>\n  <tp-yt-app-drawer id="guide" align="start" role="navigation" class="style-scope ytd-app">\n    <div id="guide-wrapper" class="style-scope ytd-app">\n      <div id="guide-spacer" class="style-scope ytd-app"></div>\n      <div id="guide-content" class="style-scope ytd-app">\n        <div id="header" hidden="[[guidePersistentAndVisible]]" class="style-scope ytd-app">\n          \n          <yt-icon-button id="guide-button" aria-label$="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="true" toggleable="true" on-mouseenter="onGuideToggleHover" on-tap="onGuideToggleTap" class="style-scope ytd-app">\n            <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-app"></yt-icon>\n          </yt-icon-button>\n          <ytd-topbar-logo-renderer country-code="[[topbarData.countryCode]]" data="[[topbarData.logo.topbarLogoRenderer]]" disable-upgrade$="[[guideIsVisibleButNotPersistent]]" class="style-scope ytd-app">\n          </ytd-topbar-logo-renderer>\n        </div>\n        <div id="guide-inner-content" on-touchstart="onGuideTouchStart" on-touchend="onGuideTouchEnd" class="style-scope ytd-app">\n          <template is="dom-if" if="[[renderGuide]]" class="style-scope ytd-app">\n            <ytd-guide-renderer id="guide-renderer" class="style-scope ytd-app">\n              <slot name="guide-links-primary" slot="guide-links-primary" class="style-scope ytd-app"></slot>\n              <slot name="guide-links-secondary" slot="guide-links-secondary" class="style-scope ytd-app"></slot>\n              <slot name="vat-notice" slot="vat-notice" class="style-scope ytd-app"></slot>\n              <slot name="copyright" slot="copyright" class="style-scope ytd-app"></slot>\n            </ytd-guide-renderer>\n          </template>\n        </div>\n      </div>\n    </div>\n  </tp-yt-app-drawer>\n  <ytd-mini-guide-renderer disable-upgrade$="[[!miniGuideVisible]]" hidden="[[!miniGuideVisible]]" visible="[[miniGuideVisible]]" class="style-scope ytd-app">\n  </ytd-mini-guide-renderer>\n  <ytd-page-manager id="page-manager" class="style-scope ytd-app"></ytd-page-manager>\n</div>\n<ytd-permission-role-bottom-bar-renderer class="style-scope ytd-app"></ytd-permission-role-bottom-bar-renderer>\n<ytd-popup-container class="style-scope ytd-app"></ytd-popup-container>\n<ytd-third-party-manager class="style-scope ytd-app"></ytd-third-party-manager>\n<div id="video-preview" class="style-scope ytd-app"></div>\n<template is="dom-if" if="[[ephemeralActionsEnabled]]" class="style-scope ytd-app">\n  <yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n</template>\n');
a.content.insertBefore(_.Y().content.cloneNode(!0),a.content.firstChild);x_c=a}a=x_c;return a}}});
var q5=T_c;q5.prototype.onOpenHotkeyDialog=q5.prototype.onOpenHotkeyDialog;q5.prototype.onYtMastheadHeightChanged=q5.prototype.onYtMastheadHeightChanged;q5.prototype.setFullscreen=q5.prototype.setFullscreen;q5.prototype.onAddElementToApp=q5.prototype.onAddElementToApp;q5.prototype.onDrawerIronSelect=q5.prototype.onDrawerIronSelect;q5.prototype.onGuideOpenButtonHover=q5.prototype.onGuideOpenButtonHover;q5.prototype.onRequestPanelModeChange=q5.prototype.onRequestPanelModeChange;
q5.prototype.onPageDataUpdated=q5.prototype.onPageDataUpdated;q5.prototype.onPageChanged=q5.prototype.onPageChanged;q5.prototype.onSetTheaterModeEnabled=q5.prototype.onSetTheaterModeEnabled;q5.prototype.updateMastheadData=q5.prototype.updateMastheadData;q5.prototype.onYtPageManagerAttached=q5.prototype.onYtPageManagerAttached;q5.prototype.observeGuideVisibility=q5.prototype.observeGuideVisibility;q5.prototype.guideIsVisibleButNotPersistentSelectorChanged=q5.prototype.guideIsVisibleButNotPersistentSelectorChanged;
q5.prototype.isInlinePreviewEnabledChanged=q5.prototype.isInlinePreviewEnabledChanged;q5.prototype.dispatchFrostedGlassMode=q5.prototype.dispatchFrostedGlassMode;_.U([_.H(_.LI),_.W("design:type",Object)],q5.prototype,"ytdReduxBehavior",void 0);_.U([_.H(_.CK.YtEventForwardingBehavior),_.W("design:type",Object)],q5.prototype,"ytEventForwardingBehavior",void 0);_.U([_.H(_.mH.YtOpenPopupBehavior),_.W("design:type",Object)],q5.prototype,"ytOpenPopupBehavior",void 0);
_.U([_.H(_.bH.YtActionHandlerBehavior),_.W("design:type",Object)],q5.prototype,"ytActionHandlerBehavior",void 0);_.U([_.H({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.Nl.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.x("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var a;((a=this.actionRouterNode.hostElement)!=null?a:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var a;((a=this.actionRouterNode.hostElement)!=null?a:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(a){this.actionRouter_.handleAction(a.detail)}}),
_.W("design:type",Object)],q5.prototype,"ytActionRouterBehavior",void 0);_.U([_.H(OMc.YtdAppBehavior),_.W("design:type",Object)],q5.prototype,"ytdAppBehavior",void 0);_.U([_.H(_.nH.YtEndpointBehavior),_.W("design:type",Object)],q5.prototype,"ytEndpointBehavior",void 0);_.U([_.H(C_c.YtEndpointHandlerWithYpcBehavior),_.W("design:type",Object)],q5.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.U([_.H(y_c.YtLogYpcFlowCommandsBehavior),_.W("design:type",Object)],q5.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.U([_.H(_.Z.YtRendererBehavior),_.W("design:type",Object)],q5.prototype,"ytRendererBehavior",void 0);_.U([_.H(_.LG.YtComponentBehavior),_.W("design:type",Object)],q5.prototype,"ytComponentBehavior",void 0);_.U([_.O({selector:_.$lc}),_.W("design:type",Object)],q5.prototype,"tabGesturesIsActive",void 0);_.U([_.O(),_.W("design:type",Boolean)],q5.prototype,"renderGuide",void 0);
_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],q5.prototype,"guidePersistentAndVisible",void 0);_.U([_.O({selector:_.Zlc}),_.W("design:type",Boolean)],q5.prototype,"guideIsVisibleButNotPersistent",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],q5.prototype,"standalone",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],q5.prototype,"miniGuideVisible",void 0);
_.U([_.O({selector:_.pFa}),_.W("design:type",Number)],q5.prototype,"miniplayerPlaybackState",void 0);_.U([_.O({selector:_.Gp,reflectToAttribute:!0}),_.W("design:type",Boolean)],q5.prototype,"miniplayerIsActive",void 0);_.U([_.O({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.W("design:type",Boolean)],q5.prototype,"isInlinePreviewEnabled",void 0);_.U([_.O(),_.W("design:type",Boolean)],q5.prototype,"isInlinePreviewDisabled",void 0);
_.U([_.O({reflectToAttribute:!0,value:function(){return _.Gi("START_IN_FULL_WINDOW_MODE")}}),
_.W("design:type",Boolean)],q5.prototype,"mastheadHidden",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],q5.prototype,"playerFullscreen",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],q5.prototype,"deprecateFullerscreenUi",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],q5.prototype,"fullscreen",void 0);_.U([_.O({value:!1,reflectToAttribute:!0}),_.W("design:type",Boolean)],q5.prototype,"hideHeaderShadow",void 0);
_.U([_.O({value:{GUIDE_ALT_LABEL:_.to("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.W("design:type",Object)],q5.prototype,"menuStrings",void 0);_.U([_.O({computed:"computeTopbarData(data)"}),_.W("design:type",Object)],q5.prototype,"topbarData",void 0);_.U([_.O({selector:_.Hp}),_.W("design:type",Boolean)],q5.prototype,"isWatchPage",void 0);_.U([_.O({selector:_.mFa,reflectToAttribute:!0}),_.W("design:type",Boolean)],q5.prototype,"isShortsPage",void 0);
_.U([_.O({selector:function(a){return a.ui.currentPageType==="WEB_PAGE_TYPE_MINI_APP"}}),
_.W("design:type",Boolean)],q5.prototype,"isMiniAppPage",void 0);_.U([_.O({selector:function(a){return a.ui.currentPageType==="WEB_PAGE_TYPE_BROWSE"}}),
_.W("design:type",Boolean)],q5.prototype,"isBrowsePage",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Boolean)],q5.prototype,"scrolling",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],q5.prototype,"hasDelegation",void 0);_.U([_.O({reflectToAttribute:!0,value:!1}),_.W("design:type",Boolean)],q5.prototype,"guideScrolledByTouch",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],q5.prototype,"darkerDarkTheme",void 0);
_.U([_.O(),_.W("design:type",Object)],q5.prototype,"isFrostedGlassInitialized",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],q5.prototype,"frostedGlassExp",void 0);_.U([_.O({selector:function(a){return a.ui.chipBarIsSticky}}),
_.W("design:type",Boolean)],q5.prototype,"chipBarIsSticky",void 0);_.U([_.O({computed:"computeIsHomePage(isBrowsePage, data)"}),_.W("design:type",Boolean)],q5.prototype,"isHomePage",void 0);_.U([_.O({reflectToAttribute:!0}),_.W("design:type",Object)],q5.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);_.U([_.O(),_.W("design:type",Object)],q5.prototype,"ephemeralActionsEnabled",void 0);_.U([_.fY("guide"),_.W("design:type",Object)],q5.prototype,"guide",void 0);
_.U([_.fY("guide-service"),_.W("design:type",CNc)],q5.prototype,"guideService",void 0);_.U([_.fY("guide-inner-content"),_.W("design:type",HTMLDivElement)],q5.prototype,"guideInnerContent",void 0);_.U([_.O({selector:_.qFa}),_.W("design:type",String)],q5.prototype,"frostedGlassMode",void 0);
_.U([_.N("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],q5.prototype,"dispatchFrostedGlassMode",null);_.U([_.O({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.W("design:type",Object)],q5.prototype,"isFrostedGlassDisabled",void 0);
_.U([_.K("isHomePage","chipBarIsSticky"),_.W("design:type",Boolean),_.W("design:paramtypes",[])],q5.prototype,"applyFrostedGlassToChipBar",null);_.U([_.O(),_.W("design:type",Object)],q5.prototype,"isChannelOrPlaylistPage",void 0);_.U([_.kr("isInlinePreviewEnabled"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],q5.prototype,"isInlinePreviewEnabledChanged",null);
_.U([_.N("guideIsVisibleButNotPersistent"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],q5.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);_.U([_.N("guidePersistentAndVisible","miniGuideVisible"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],q5.prototype,"observeGuideVisibility",null);
_.U([_.M("attached"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],q5.prototype,"onYtPageManagerAttached",null);_.U([_.N("data"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype",Promise)],q5.prototype,"updateMastheadData",null);_.U([_.M("yt-set-theater-mode-enabled"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],q5.prototype,"onSetTheaterModeEnabled",null);
_.U([_.M("yt-page-type-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],q5.prototype,"onPageChanged",null);_.U([_.M("yt-page-data-updated"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],q5.prototype,"onPageDataUpdated",null);_.U([_.M("yt-request-panel-mode-change"),_.W("design:type",Function),_.W("design:paramtypes",[Event,Object]),_.W("design:returntype")],q5.prototype,"onRequestPanelModeChange",null);
_.U([_.M("yt-guide-hover"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],q5.prototype,"onGuideOpenButtonHover",null);_.U([_.M("app-drawer-transitioned"),_.W("design:type",Function),_.W("design:paramtypes",[Event]),_.W("design:returntype")],q5.prototype,"onDrawerIronSelect",null);_.U([_.M("yt-add-element-to-app"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent]),_.W("design:returntype")],q5.prototype,"onAddElementToApp",null);
_.U([_.M("yt-set-fullerscreen-styles"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],q5.prototype,"setFullscreen",null);_.U([_.M("yt-masthead-height-changed"),_.W("design:type",Function),_.W("design:paramtypes",[CustomEvent,Object]),_.W("design:returntype")],q5.prototype,"onYtMastheadHeightChanged",null);_.U([_.M("yt-open-hotkey-dialog"),_.W("design:type",Function),_.W("design:paramtypes",[]),_.W("design:returntype")],q5.prototype,"onOpenHotkeyDialog",null);
q5=_.U([_.Q({is:"ytd-app"})],q5);_.SF().processSignal("eor");
_.Bg();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
